@types/braintree-web
Advanced tools
Comparing version 3.75.23 to 3.94.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for Braintree-web 3.75 | ||
// Type definitions for Braintree-web 3.94 | ||
// Project: https://github.com/braintree/braintree-web | ||
@@ -20,3 +20,3 @@ // Definitions by: Jason Buckner <https://github.com/jbuckner> | ||
ApplePayRecurringPaymentDateUnit, | ||
ApplePayTokenizeValues | ||
ApplePayTokenizeValues, | ||
} from './modules/apple-pay'; | ||
@@ -23,0 +23,0 @@ import { Client, CreditCardInfo } from './modules/client'; |
@@ -98,3 +98,6 @@ import { callback } from './core'; | ||
*/ | ||
request(options: { method: string; endpoint: string; data: any; timeout?: number | undefined }, callback: callback): void; | ||
request( | ||
options: { method: string; endpoint: string; data: any; timeout?: number | undefined }, | ||
callback: callback, | ||
): void; | ||
@@ -101,0 +104,0 @@ /** |
@@ -5,4 +5,11 @@ import { callback } from './core'; | ||
export interface DataCollector { | ||
create(options: { client: Client; kount?: boolean | undefined; paypal?: boolean | undefined }): Promise<DataCollector>; | ||
create(options: { client: Client; kount?: boolean | undefined; paypal?: boolean | undefined }, callback: callback<DataCollector>): void; | ||
create(options: { | ||
client: Client; | ||
kount?: boolean | undefined; | ||
paypal?: boolean | undefined; | ||
}): Promise<DataCollector>; | ||
create( | ||
options: { client: Client; kount?: boolean | undefined; paypal?: boolean | undefined }, | ||
callback: callback<DataCollector>, | ||
): void; | ||
@@ -9,0 +16,0 @@ VERSION: string; |
@@ -230,5 +230,7 @@ /// <reference types="googlepay" /> | ||
emailRequired?: boolean | undefined; | ||
merchantInfo?: { | ||
merchantId: string; | ||
} | undefined; | ||
merchantInfo?: | ||
| { | ||
merchantId: string; | ||
} | ||
| undefined; | ||
transactionInfo: { | ||
@@ -235,0 +237,0 @@ currencyCode: string; |
@@ -181,3 +181,3 @@ import { callback } from './core'; | ||
authenticationInsight?: { | ||
regulationEnvironment?: 'psd2' | 'unregulated' | 'unavailable'; | ||
regulationEnvironment?: 'psd2' | 'unregulated' | 'unavailable'; | ||
}; | ||
@@ -288,4 +288,10 @@ } | ||
on<EventType extends HostedFieldEventType>(event: EventType, handler: (event: HostedFieldsEventTypeMap[EventType]) => void): void; | ||
off<EventType extends HostedFieldEventType>(event: EventType, handler: (event: HostedFieldsEventTypeMap[EventType]) => void): void; | ||
on<EventType extends HostedFieldEventType>( | ||
event: EventType, | ||
handler: (event: HostedFieldsEventTypeMap[EventType]) => void, | ||
): void; | ||
off<EventType extends HostedFieldEventType>( | ||
event: EventType, | ||
handler: (event: HostedFieldsEventTypeMap[EventType]) => void, | ||
): void; | ||
@@ -292,0 +298,0 @@ teardown(callback?: callback): void; |
@@ -76,28 +76,30 @@ /// <reference types="paypal-checkout-components" /> | ||
*/ | ||
dataAttributes?: { | ||
/** | ||
* CSP nonce used for rendering the button. | ||
*/ | ||
'csp-nonce'?: string | undefined; | ||
dataAttributes?: | ||
| { | ||
/** | ||
* CSP nonce used for rendering the button. | ||
*/ | ||
'csp-nonce'?: string | undefined; | ||
/** | ||
* Client token used for identifying your buyers. | ||
*/ | ||
'data-client-token'?: string | undefined; | ||
/** | ||
* Client token used for identifying your buyers. | ||
*/ | ||
'data-client-token'?: string | undefined; | ||
/** | ||
* Order ID used for optimizing the funding that displays. | ||
*/ | ||
'data-order-id'?: string | undefined; | ||
/** | ||
* Order ID used for optimizing the funding that displays. | ||
*/ | ||
'data-order-id'?: string | undefined; | ||
/** | ||
* Log page type and interactions for the JavaScript SDK. | ||
*/ | ||
'data-page-type'?: string | undefined; | ||
/** | ||
* Log page type and interactions for the JavaScript SDK. | ||
*/ | ||
'data-page-type'?: string | undefined; | ||
/** | ||
* Partner attribution ID used for revenue attribution. | ||
*/ | ||
'data-partner-attribution-id'?: string | undefined; | ||
} | undefined; | ||
/** | ||
* Partner attribution ID used for revenue attribution. | ||
*/ | ||
'data-partner-attribution-id'?: string | undefined; | ||
} | ||
| undefined; | ||
/** | ||
@@ -165,4 +167,15 @@ * Funding sources to disallow from showing in the checkout buttons. | ||
*/ | ||
create(options: { client?: Client | undefined; authorization?: string | undefined; merchantAccountId?: string | undefined }): Promise<PayPalCheckout>; | ||
create(options: { client?: Client | undefined; authorization?: string | undefined; merchantAccountId?: string | undefined }, callback?: callback): void; | ||
create(options: { | ||
client?: Client | undefined; | ||
authorization?: string | undefined; | ||
merchantAccountId?: string | undefined; | ||
}): Promise<PayPalCheckout>; | ||
create( | ||
options: { | ||
client?: Client | undefined; | ||
authorization?: string | undefined; | ||
merchantAccountId?: string | undefined; | ||
}, | ||
callback?: callback, | ||
): void; | ||
@@ -169,0 +182,0 @@ /** |
@@ -128,2 +128,6 @@ import { callback, BraintreeError } from './core'; | ||
challengeRequested?: boolean | undefined; | ||
/** | ||
* If set to `true`, device data such as browser screen dimensions, language and time zone is submitted with lookup data. | ||
*/ | ||
collectDeviceData?: boolean | undefined; | ||
exemptionRequested?: boolean | undefined; | ||
@@ -134,3 +138,5 @@ email?: string | undefined; | ||
additionalInformation?: ThreeDSecureAdditionalInformation | undefined; | ||
/** @deprecated Only to be used for 3DS 1.0 integrations. */ | ||
addFrame?: ((err?: BraintreeError, iframe?: HTMLIFrameElement) => void) | undefined; | ||
/** @deprecated Only to be used for 3DS 1.0 integrations. */ | ||
removeFrame?: (() => void) | undefined; | ||
@@ -194,6 +200,3 @@ } | ||
create(options: ThreeDSecureCreateOptions): Promise<ThreeDSecure>; | ||
create( | ||
options: ThreeDSecureCreateOptions, | ||
callback: callback<ThreeDSecure>, | ||
): void; | ||
create(options: ThreeDSecureCreateOptions, callback: callback<ThreeDSecure>): void; | ||
@@ -200,0 +203,0 @@ /** |
@@ -15,4 +15,7 @@ import { callback } from './core'; | ||
export class VaultManager { | ||
static create(options: { client?: Client | undefined; authorization?: string | undefined; }): Promise<VaultManager>; | ||
static create(options: { client?: Client | undefined; authorization?: string | undefined; }, callback: callback<VaultManager>): void; | ||
static create(options: { client?: Client | undefined; authorization?: string | undefined }): Promise<VaultManager>; | ||
static create( | ||
options: { client?: Client | undefined; authorization?: string | undefined }, | ||
callback: callback<VaultManager>, | ||
): void; | ||
@@ -42,3 +45,11 @@ /** | ||
default: boolean; | ||
details?: HostedFieldsAccountDetails | ThreeDSecureAccountDetails | GooglePaymentDetails | PayPalAccountDetails | UnionPayAccountDetails | VenmoAccountDetails | Record<string, any> | undefined; | ||
details?: | ||
| HostedFieldsAccountDetails | ||
| ThreeDSecureAccountDetails | ||
| GooglePaymentDetails | ||
| PayPalAccountDetails | ||
| UnionPayAccountDetails | ||
| VenmoAccountDetails | ||
| Record<string, any> | ||
| undefined; | ||
type: string; | ||
@@ -45,0 +56,0 @@ description: string | null; |
{ | ||
"name": "@types/braintree-web", | ||
"version": "3.75.23", | ||
"version": "3.94.0", | ||
"description": "TypeScript definitions for Braintree-web", | ||
@@ -26,4 +26,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/braintree-web", | ||
}, | ||
"typesPublisherContentHash": "5f42640886fb6cb9508437a347cfb304c0ef294ca09b2a0fe8375962c96ba23e", | ||
"typeScriptVersion": "4.2" | ||
"typesPublisherContentHash": "3b0d24c41a8ceb0a50b8c371f4a96b0f0bf4618fc10ffc75d71db6d5adae4bd8", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 16 Mar 2023 00:32:35 GMT | ||
* Last updated: Mon, 07 Aug 2023 23:02:52 GMT | ||
* Dependencies: [@types/googlepay](https://npmjs.com/package/@types/googlepay), [@types/paypal-checkout-components](https://npmjs.com/package/@types/paypal-checkout-components) | ||
@@ -14,0 +14,0 @@ * Global values: `braintree` |
108920
2741