@types/braintree-web
Advanced tools
Comparing version 3.75.21 to 3.75.22
@@ -9,3 +9,15 @@ // Type definitions for Braintree-web 3.75 | ||
import { AmericanExpress } from './modules/american-express'; | ||
import { ApplePay, ApplePaySession, ApplePayStatusCodes, ApplePayPayload } from './modules/apple-pay'; | ||
import { | ||
ApplePay, | ||
ApplePaySession, | ||
ApplePayStatusCodes, | ||
ApplePayDetails, | ||
ApplePayPayload, | ||
ApplePayPaymentRequest, | ||
ApplePayLineItem, | ||
ApplePayLineItemType, | ||
ApplePayPaymentTiming, | ||
ApplePayRecurringPaymentDateUnit, | ||
ApplePayTokenizeValues | ||
} from './modules/apple-pay'; | ||
import { Client, CreditCardInfo } from './modules/client'; | ||
@@ -58,4 +70,11 @@ import { DataCollector } from './modules/data-collector'; | ||
ApplePaySession, | ||
ApplePayDetails, | ||
ApplePayStatusCodes, | ||
ApplePayPayload, | ||
ApplePayPaymentRequest, | ||
ApplePayLineItem, | ||
ApplePayLineItemType, | ||
ApplePayPaymentTiming, | ||
ApplePayRecurringPaymentDateUnit, | ||
ApplePayTokenizeValues, | ||
Client, | ||
@@ -62,0 +81,0 @@ CreditCardInfo, |
import { callback } from './core'; | ||
import { Client } from './client'; | ||
// See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitemtype | ||
export type ApplePayLineItemType = 'final' | 'pending'; | ||
// See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymenttiming | ||
export type ApplePayPaymentTiming = 'immediate' | 'recurring' | 'deferred' | 'automaticReload'; | ||
// See https://developer.apple.com/documentation/apple_pay_on_the_web/applepayrecurringpaymentdateunit | ||
export type ApplePayRecurringPaymentDateUnit = 'year' | 'month' | 'day' | 'hour' | 'minute'; | ||
// See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitem | ||
export interface ApplePayLineItem { | ||
type?: ApplePayLineItemType; | ||
label: string; | ||
amount: string; | ||
paymentTiming?: ApplePayPaymentTiming; | ||
recurringPaymentStartDate?: Date; | ||
recurringPaymentIntervalUnit?: ApplePayRecurringPaymentDateUnit; | ||
recurringPaymentIntervalCount?: number; | ||
recurringPaymentEndDate?: Date; | ||
deferredPaymentDate?: Date; | ||
automaticReloadPaymentThresholdAmount?: string; | ||
} | ||
// more info https://developer.apple.com/reference/applepayjs/1916082-applepay_js_data_types/paymentrequest | ||
@@ -41,2 +64,7 @@ | ||
billingContact?: any; | ||
/** | ||
* @description Optional array of items to display in the payment sheet per https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentrequest/1916120-lineitems | ||
*/ | ||
lineItems?: ApplePayLineItem[]; // See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymentrequest/1916120-lineitems | ||
shippingContact?: any; | ||
@@ -192,2 +220,7 @@ shippingMethods?: any; | ||
/** | ||
* @description A special merchant ID which represents the merchant association with Braintree. Required when using ApplePaySession.canMakePaymentsWithActiveCard. | ||
*/ | ||
merchantIdentifier?: string; // per https://braintree.github.io/braintree-web/current/ApplePay.html#merchantIdentifier | ||
/** | ||
* Merges a payment request with Braintree defaults | ||
@@ -194,0 +227,0 @@ * The following properties are assigned to `paymentRequest` if not already defined |
{ | ||
"name": "@types/braintree-web", | ||
"version": "3.75.21", | ||
"version": "3.75.22", | ||
"description": "TypeScript definitions for Braintree-web", | ||
@@ -26,4 +26,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/braintree-web", | ||
}, | ||
"typesPublisherContentHash": "2cc6ad752b08d5955bd974ae89528b6c16370f8fa96f2384dd5228c1028a4078", | ||
"typesPublisherContentHash": "8a73e27d6594c70c2118a1e63bd149663f58e91dfb47abb60e20a41006c4d0a3", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 15 Sep 2022 20:32:52 GMT | ||
* Last updated: Fri, 16 Sep 2022 22:32:48 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` |
105016
2628