Set optional parameters for paypal.tokenize (#15999)

As described in https://braintree.github.io/braintree-web/current/PayPal.html#tokenize
This commit is contained in:
Gustav Bylund
2017-04-26 21:05:22 +02:00
committed by Sheetal Nandi
parent 141f50ad45
commit ef5ec2e273

View File

@@ -1087,7 +1087,7 @@ declare namespace braintree {
* });
* @returns {PayPal~tokenizeReturn} A handle to close the PayPal checkout frame.
*/
tokenize(options: { flow: string, intent: string, offerCredit: boolean, useraction: string, amount: (string | number), currency: string, displayName: string, locale: string, enableShippingAddress: boolean, shippingAddressOverride: PayPalShippingAddress, shippingAddressEditable: boolean, billingAgreementDescription: string }, callback: callback): PayPalTokenizeReturn;
tokenize(options: { flow: string, intent?: string, offerCredit?: boolean, useraction?: string, amount?: (string | number), currency?: string, displayName?: string, locale?: string, enableShippingAddress?: boolean, shippingAddressOverride?: PayPalShippingAddress, shippingAddressEditable?: boolean, billingAgreementDescription?: string }, callback: callback): PayPalTokenizeReturn;
/**
* Cleanly tear down anything set up by {@link module:braintree-web/paypal.create|create}.