From 502203936c7923f0a8faeb93be528d2aeb25e81b Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 8 Apr 2018 19:11:52 +0200 Subject: [PATCH] docs(braintree): typo --- src/@ionic-native/plugins/braintree/index.ts | 37 ++++++++++++-------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/src/@ionic-native/plugins/braintree/index.ts b/src/@ionic-native/plugins/braintree/index.ts index dd805ff9..22fe2b04 100644 --- a/src/@ionic-native/plugins/braintree/index.ts +++ b/src/@ionic-native/plugins/braintree/index.ts @@ -1,5 +1,5 @@ import { Injectable } from '@angular/core'; -import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core'; +import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core'; /** * Options for the setupApplePay method. @@ -116,8 +116,7 @@ export interface PaymentUIResult { /** * Information about the Apple Pay card used to complete a payment (if Apple Pay was used). */ - applePaycard: { - }; + applePaycard: {}; /** * Information about 3D Secure card used to complete a payment (if 3D Secure was used). @@ -140,7 +139,7 @@ export interface PaymentUIResult { * @description * This plugin enables the use of the Braintree Drop-In Payments UI in your Ionic applications on Android and iOS, using the native Drop-In UI for each platform (not the Javascript SDK). * - * Ionic Native utilizes [a maintaned fork](https://github.com/taracque/cordova-plugin-braintree) of the original `cordova-plugin-braintree` + * Ionic Native utilizes [a maintained fork](https://github.com/taracque/cordova-plugin-braintree) of the original `cordova-plugin-braintree` * * For information on how to use Apple Pay with this plugin, please refer to the [plugin documentation](https://github.com/Taracque/cordova-plugin-braintree#apple-pay-ios-only) * @@ -201,23 +200,25 @@ export interface PaymentUIResult { pluginRef: 'BraintreePlugin', repo: 'https://github.com/taracque/cordova-plugin-braintree', platforms: ['Android', 'iOS'], - install: 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', - installVariables: [], + install: + 'ionic cordova plugin add https://github.com/taracque/cordova-plugin-braintree', + installVariables: [] }) @Injectable() export class Braintree extends IonicNativePlugin { - /** * Used to initialize the Braintree client. This function must be called before other methods can be used. * As the initialize code is async, be sure you call all Braintree related methods after the initialize promise has resolved. * - * @param token {string} The client token or tokenization key to use with the Braintree client. + * @param {string} token The client token or tokenization key to use with the Braintree client. * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'], + platforms: ['Android', 'iOS'] }) - initialize(token: string): Promise { return; } + initialize(token: string): Promise { + return; + } /** * Used to configure Apple Pay on iOS. @@ -228,13 +229,15 @@ export class Braintree extends IonicNativePlugin { * * Calling this function on Android is a `noop` so you can call it without having to check which cordova platform you are on! :D * - * @param options {ApplePayOptions} The options used to configure Apple Pay. + * @param {ApplePayOptions}options The options used to configure Apple Pay. * @return {Promise} Returns a promise that resolves with undefined on successful initialization, or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['iOS'], + platforms: ['iOS'] }) - setupApplePay(options: ApplePayOptions): Promise { return; } + setupApplePay(options: ApplePayOptions): Promise { + return; + } /** * Shows Braintree's Drop-In Payments UI. @@ -244,7 +247,11 @@ export class Braintree extends IonicNativePlugin { * @return {Promise} Returns a promise that resolves with a PaymentUIResult object on successful payment (or the user cancels), or rejects with a string message describing the failure. */ @Cordova({ - platforms: ['Android', 'iOS'], + platforms: ['Android', 'iOS'] }) - presentDropInPaymentUI(options?: PaymentUIOptions): Promise { return; } + presentDropInPaymentUI( + options?: PaymentUIOptions + ): Promise { + return; + } }