mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
optional hoisted field styles; paypal promises (#40926)
This commit is contained in:
committed by
Daniel Rosenwasser
parent
e3e59c5d4e
commit
6001bbab25
Vendored
+5
-3
@@ -685,8 +685,8 @@ declare namespace braintree {
|
||||
* }
|
||||
* }, callback);
|
||||
*/
|
||||
create(options: { client: Client, fields: HostedFieldFieldOptions, styles: any }): Promise<HostedFields>;
|
||||
create(options: { client: Client, fields: HostedFieldFieldOptions, styles: any }, callback: callback): void;
|
||||
create(options: { client: Client, fields: HostedFieldFieldOptions, styles?: any }): Promise<HostedFields>;
|
||||
create(options: { client: Client, fields: HostedFieldFieldOptions, styles?: any }, callback: callback): void;
|
||||
|
||||
|
||||
/**
|
||||
@@ -1008,7 +1008,8 @@ declare namespace braintree {
|
||||
* });
|
||||
* @returns {void}
|
||||
*/
|
||||
create: (options: { client: Client }, callback: callback) => void;
|
||||
create(options: { client: Client }): Promise<PayPal>;
|
||||
create(options: { client: Client }, callback: callback): void;
|
||||
|
||||
/**
|
||||
* @description The current version of the SDK, i.e. `3.0.2`.
|
||||
@@ -1111,6 +1112,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 }): Promise<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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user