@types/braintree-web
Advanced tools
@@ -1,3 +0,3 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,12 +0,12 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
| // See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitemtype | ||
| export type ApplePayLineItemType = 'final' | 'pending'; | ||
| export type ApplePayLineItemType = "final" | "pending"; | ||
| // See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypaymenttiming | ||
| export type ApplePayPaymentTiming = 'immediate' | 'recurring' | 'deferred' | 'automaticReload'; | ||
| 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'; | ||
| export type ApplePayRecurringPaymentDateUnit = "year" | "month" | "day" | "hour" | "minute"; | ||
@@ -98,3 +98,3 @@ // See https://developer.apple.com/documentation/apple_pay_on_the_web/applepaylineitem | ||
| export type ApplePayTokenizeValues = 'Yes' | 'No' | 'Unknown'; | ||
| export type ApplePayTokenizeValues = "Yes" | "No" | "Unknown"; | ||
@@ -236,13 +236,13 @@ export interface ApplePayDetails { | ||
| * // { total: { }, countryCode: 'US', currencyCode: 'USD', merchantCapabilities: [ ], supportedNetworks: [ ] } | ||
| * | ||
| */ | ||
| createPaymentRequest( | ||
| paymentRequest: Omit< | ||
| ApplePayPaymentRequest, | ||
| 'countryCode' | 'currencyCode' | 'merchantCapabilities' | 'supportedNetworks' | ||
| > & | ||
| Partial< | ||
| paymentRequest: | ||
| & Omit< | ||
| ApplePayPaymentRequest, | ||
| "countryCode" | "currencyCode" | "merchantCapabilities" | "supportedNetworks" | ||
| > | ||
| & Partial< | ||
| Pick< | ||
| ApplePayPaymentRequest, | ||
| 'countryCode' | 'currencyCode' | 'merchantCapabilities' | 'supportedNetworks' | ||
| "countryCode" | "currencyCode" | "merchantCapabilities" | "supportedNetworks" | ||
| > | ||
@@ -249,0 +249,0 @@ >, |
@@ -1,2 +0,2 @@ | ||
| import { callback } from './core'; | ||
| import { callback } from "./core"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -11,3 +11,3 @@ /** | ||
| */ | ||
| export type BraintreeErrorTypes = 'CUSTOMER' | 'MERCHANT' | 'NETWORK' | 'INTERNAL' | 'UNKNOWN'; | ||
| export type BraintreeErrorTypes = "CUSTOMER" | "MERCHANT" | "NETWORK" | "INTERNAL" | "UNKNOWN"; | ||
@@ -14,0 +14,0 @@ export interface BraintreeError extends Error { |
@@ -1,3 +0,3 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
@@ -4,0 +4,0 @@ export interface DataCollector { |
| /// <reference types="googlepay" /> | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
| export type GooglePaymentTokenizeValues = 'Yes' | 'No' | 'Unknown'; | ||
| export type GooglePaymentTokenizeValues = "Yes" | "No" | "Unknown"; | ||
@@ -112,4 +112,4 @@ export interface GooglePaymentDetails { | ||
| | { | ||
| merchantId: string; | ||
| } | ||
| merchantId: string; | ||
| } | ||
| | undefined; | ||
@@ -255,3 +255,2 @@ transactionInfo: { | ||
| * }); | ||
| * | ||
| */ | ||
@@ -258,0 +257,0 @@ export function create(options: { |
@@ -1,3 +0,3 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
@@ -122,9 +122,9 @@ export interface HostedFieldsFieldMaskInput { | ||
| export type HostedFieldsHostedFieldsFieldName = | ||
| | 'number' | ||
| | 'cvv' | ||
| | 'expirationDate' | ||
| | 'expirationMonth' | ||
| | 'expirationYear' | ||
| | 'postalCode' | ||
| | 'cardholderName'; | ||
| | "number" | ||
| | "cvv" | ||
| | "expirationDate" | ||
| | "expirationMonth" | ||
| | "expirationYear" | ||
| | "postalCode" | ||
| | "cardholderName"; | ||
@@ -182,3 +182,3 @@ export type HostedFieldsFieldDataFields = { | ||
| authenticationInsight?: { | ||
| regulationEnvironment?: 'psd2' | 'unregulated' | 'unavailable'; | ||
| regulationEnvironment?: "psd2" | "unregulated" | "unavailable"; | ||
| }; | ||
@@ -190,3 +190,3 @@ } | ||
| */ | ||
| export type HostedFieldAttributeName = 'aria-invalid' | 'aria-required' | 'disabled' | 'placeholder'; | ||
| export type HostedFieldAttributeName = "aria-invalid" | "aria-required" | "disabled" | "placeholder"; | ||
@@ -470,3 +470,2 @@ /** | ||
| * }); | ||
| * | ||
| */ | ||
@@ -473,0 +472,0 @@ setMessage(options: HostedFieldMessageOptions): void; |
+39
-39
@@ -8,49 +8,49 @@ // Type definitions for Braintree-web 3.96 | ||
| import { VERSION, BraintreeError, callback } from './core'; | ||
| import { AmericanExpress, create as americanExpressCreate } from './american-express'; | ||
| import { AmericanExpress, create as americanExpressCreate } from "./american-express"; | ||
| import { | ||
| ApplePay, | ||
| ApplePaySession, | ||
| ApplePayStatusCodes, | ||
| ApplePayDetails, | ||
| ApplePayLineItem, | ||
| ApplePayLineItemType, | ||
| ApplePayPayload, | ||
| ApplePayPaymentRequest, | ||
| ApplePayLineItem, | ||
| ApplePayLineItemType, | ||
| ApplePayPaymentTiming, | ||
| ApplePayRecurringPaymentDateUnit, | ||
| ApplePaySession, | ||
| ApplePayStatusCodes, | ||
| ApplePayTokenizeValues, | ||
| create as applePayCreate, | ||
| } from './apple-pay'; | ||
| import { Client, CreditCardInfo, create as clientCreate } from './client'; | ||
| import { DataCollector, create as dataCollectorCreate } from './data-collector'; | ||
| import { GooglePayment, GooglePaymentTokenizePayload, create as googlePaymentCreate } from './google-payment'; | ||
| } from "./apple-pay"; | ||
| import { Client, create as clientCreate, CreditCardInfo } from "./client"; | ||
| import { BraintreeError, callback, VERSION } from "./core"; | ||
| import { create as dataCollectorCreate, DataCollector } from "./data-collector"; | ||
| import { create as googlePaymentCreate, GooglePayment, GooglePaymentTokenizePayload } from "./google-payment"; | ||
| import { | ||
| create as hostedFieldsCreate, | ||
| HostedFieldFieldOptions, | ||
| HostedFields, | ||
| HostedFieldFieldOptions, | ||
| HostedFieldsTokenizePayload, | ||
| HostedFieldsBinPayload, | ||
| HostedFieldsEvent, | ||
| HostedFieldsStateObject, | ||
| HostedFieldsBinPayload, | ||
| create as hostedFieldsCreate, | ||
| } from './hosted-fields'; | ||
| HostedFieldsTokenizePayload, | ||
| } from "./hosted-fields"; | ||
| import { | ||
| create as localPaymentCreate, | ||
| LocalPayment, | ||
| LocalPaymentTokenizePayload, | ||
| LocalPaymentTypes, | ||
| create as localPaymentCreate, | ||
| } from './local-payment'; | ||
| import { PayPal, PayPalTokenizePayload, create as payPalCreate } from './paypal'; | ||
| import { PayPalCheckout, PayPalCheckoutCreatePaymentOptions, create as payPalCheckoutCreate } from './paypal-checkout'; | ||
| import { ThreeDSecure, ThreeDSecureVerifyPayload, create as threeDSecureCreate } from './three-d-secure'; | ||
| } from "./local-payment"; | ||
| import { create as payPalCreate, PayPal, PayPalTokenizePayload } from "./paypal"; | ||
| import { create as payPalCheckoutCreate, PayPalCheckout, PayPalCheckoutCreatePaymentOptions } from "./paypal-checkout"; | ||
| import { create as threeDSecureCreate, ThreeDSecure, ThreeDSecureVerifyPayload } from "./three-d-secure"; | ||
| import { | ||
| create as unionPayCreate, | ||
| UnionPay, | ||
| UnionPayEnrollPayload, | ||
| UnionPayFetchCapabilitiesPayload, | ||
| UnionPayEnrollPayload, | ||
| UnionPayTokenizePayload, | ||
| create as unionPayCreate, | ||
| } from './unionpay'; | ||
| import { USBankAccount, create as usBankAccountCreate } from './us-bank-account'; | ||
| import { VaultManager, FetchPaymentMethodsPayload, create as vaultManagerCreate } from './vault-manager'; | ||
| import { Venmo, VenmoTokenizePayload, create as venmoCreate } from './venmo'; | ||
| } from "./unionpay"; | ||
| import { create as usBankAccountCreate, USBankAccount } from "./us-bank-account"; | ||
| import { create as vaultManagerCreate, FetchPaymentMethodsPayload, VaultManager } from "./vault-manager"; | ||
| import { create as venmoCreate, Venmo, VenmoTokenizePayload } from "./venmo"; | ||
@@ -77,48 +77,48 @@ interface PaymentClient<T> { | ||
| export { | ||
| VERSION, | ||
| BraintreeError, | ||
| callback, | ||
| AmericanExpress, | ||
| ApplePay, | ||
| ApplePaySession, | ||
| ApplePayDetails, | ||
| ApplePayStatusCodes, | ||
| ApplePayLineItem, | ||
| ApplePayLineItemType, | ||
| ApplePayPayload, | ||
| ApplePayPaymentRequest, | ||
| ApplePayLineItem, | ||
| ApplePayLineItemType, | ||
| ApplePayPaymentTiming, | ||
| ApplePayRecurringPaymentDateUnit, | ||
| ApplePaySession, | ||
| ApplePayStatusCodes, | ||
| ApplePayTokenizeValues, | ||
| BraintreeError, | ||
| callback, | ||
| Client, | ||
| CreditCardInfo, | ||
| DataCollector, | ||
| FetchPaymentMethodsPayload, | ||
| GooglePayment, | ||
| GooglePaymentTokenizePayload, | ||
| HostedFieldFieldOptions, | ||
| HostedFields, | ||
| HostedFieldFieldOptions, | ||
| HostedFieldsBinPayload, | ||
| HostedFieldsTokenizePayload, | ||
| HostedFieldsEvent, | ||
| HostedFieldsStateObject, | ||
| HostedFieldsTokenizePayload, | ||
| LocalPayment, | ||
| LocalPaymentTokenizePayload, | ||
| LocalPaymentTypes, | ||
| LocalPaymentTokenizePayload, | ||
| PayPal, | ||
| PayPalTokenizePayload, | ||
| PayPalCheckout, | ||
| PayPalCheckoutCreatePaymentOptions, | ||
| PayPalTokenizePayload, | ||
| ThreeDSecure, | ||
| ThreeDSecureVerifyPayload, | ||
| UnionPay, | ||
| UnionPayEnrollPayload, | ||
| UnionPayFetchCapabilitiesPayload, | ||
| UnionPayEnrollPayload, | ||
| UnionPayTokenizePayload, | ||
| USBankAccount, | ||
| VaultManager, | ||
| FetchPaymentMethodsPayload, | ||
| Venmo, | ||
| VenmoTokenizePayload, | ||
| VERSION, | ||
| }; | ||
| export as namespace braintree; |
@@ -1,14 +0,14 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
| export type LocalPaymentTypes = | ||
| | 'bancontact' | ||
| | 'blik' | ||
| | 'eps' | ||
| | 'giropay' | ||
| | 'ideal' | ||
| | 'sofort' | ||
| | 'mybank' | ||
| | 'p24' | ||
| | 'trustly'; | ||
| | "bancontact" | ||
| | "blik" | ||
| | "eps" | ||
| | "giropay" | ||
| | "ideal" | ||
| | "sofort" | ||
| | "mybank" | ||
| | "p24" | ||
| | "trustly"; | ||
@@ -49,5 +49,5 @@ export interface LocalPaymentTokenizePayload { | ||
| | { | ||
| width?: number | undefined; | ||
| height?: number | undefined; | ||
| } | ||
| width?: number | undefined; | ||
| height?: number | undefined; | ||
| } | ||
| | undefined; | ||
@@ -54,0 +54,0 @@ givenName?: string | undefined; |
| { | ||
| "name": "@types/braintree-web", | ||
| "version": "3.96.4", | ||
| "version": "3.96.5", | ||
| "description": "TypeScript definitions for Braintree-web", | ||
@@ -31,4 +31,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/braintree-web", | ||
| }, | ||
| "typesPublisherContentHash": "719928760fd562a9be6baaa8b65523e2f939ff99a54b09d77f5ef65c071c3e5d", | ||
| "typeScriptVersion": "4.3" | ||
| "typesPublisherContentHash": "f0e201fb4498349bc86cae3ac7d67e65c549a38016f59912ab87e6ebb81fb0c0", | ||
| "typeScriptVersion": "4.5" | ||
| } |
| /// <reference types="paypal-checkout-components" /> | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
@@ -38,3 +38,3 @@ export interface PayPalCheckoutCreatePaymentOptions { | ||
| */ | ||
| 'client-id'?: string | undefined; | ||
| "client-id"?: string | undefined; | ||
@@ -50,3 +50,3 @@ /** | ||
| */ | ||
| intent?: 'authorize' | 'capture' | 'sale' | 'tokenize' | undefined; | ||
| intent?: "authorize" | "capture" | "sale" | "tokenize" | undefined; | ||
@@ -72,3 +72,3 @@ /** | ||
| */ | ||
| components?: 'buttons' | 'messages' | 'buttons,messages' | undefined; | ||
| components?: "buttons" | "messages" | "buttons,messages" | undefined; | ||
@@ -81,27 +81,27 @@ /** | ||
| | { | ||
| /** | ||
| * CSP nonce used for rendering the button. | ||
| */ | ||
| 'csp-nonce'?: string | undefined; | ||
| /** | ||
| * 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; | ||
| } | ||
| /** | ||
| * Partner attribution ID used for revenue attribution. | ||
| */ | ||
| "data-partner-attribution-id"?: string | undefined; | ||
| } | ||
| | undefined; | ||
@@ -114,3 +114,3 @@ /** | ||
| */ | ||
| 'disable-funding'?: string; | ||
| "disable-funding"?: string; | ||
| /** | ||
@@ -121,3 +121,3 @@ * Funding sources to allow in the checkout buttons. | ||
| */ | ||
| 'enable-funding'?: string; | ||
| "enable-funding"?: string; | ||
| /** | ||
@@ -143,3 +143,3 @@ * The locale used to localize any components. | ||
| */ | ||
| 'buyer-country'?: string; | ||
| "buyer-country"?: string; | ||
| /** | ||
@@ -149,7 +149,7 @@ * The date of integration. Used to ensure backwards compatibility. | ||
| */ | ||
| 'integration-date'?: string; | ||
| "integration-date"?: string; | ||
| /** | ||
| * The merchant for whom you are facilitating a transaction. | ||
| */ | ||
| 'merchant-id'?: string; | ||
| "merchant-id"?: string; | ||
| } | ||
@@ -279,3 +279,2 @@ | ||
| * ``` | ||
| * | ||
| */ | ||
@@ -304,3 +303,2 @@ createPayment(options: PayPalCheckoutCreatePaymentOptions, callback?: callback): Promise<string>; | ||
| * }).render('#paypal-button'); | ||
| * | ||
| */ | ||
@@ -348,3 +346,2 @@ tokenizePayment(tokenizeOptions: PayPalCheckoutTokenizationOptions): Promise<paypal.TokenizePayload>; | ||
| * }); | ||
| * | ||
| */ | ||
@@ -351,0 +348,0 @@ startVaultInitiatedCheckout(options: { optOutOfModalBackdrop: boolean }): Promise<void>; |
@@ -1,3 +0,3 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
| export interface PayPalTokenizeReturn { | ||
@@ -4,0 +4,0 @@ close: () => any; |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Mon, 04 Sep 2023 17:16:35 GMT | ||
| * Last updated: Fri, 15 Sep 2023 19:06: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` |
@@ -1,3 +0,3 @@ | ||
| import { callback, BraintreeError } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { BraintreeError, callback } from "./core"; | ||
@@ -163,10 +163,9 @@ export interface ThreeDSecureAccountDetails { | ||
| * for an explanation of each event type. | ||
| * | ||
| */ | ||
| export type ThreeDSecureEvent = | ||
| | 'lookup-complete' | ||
| | 'customer-canceled' | ||
| | 'authentication-iframe-available' | ||
| | 'authentication-modal-render' | ||
| | 'authentication-modal-close'; | ||
| | "lookup-complete" | ||
| | "customer-canceled" | ||
| | "authentication-iframe-available" | ||
| | "authentication-modal-render" | ||
| | "authentication-modal-close"; | ||
@@ -186,5 +185,4 @@ export interface ThreeDSecureCreateOptions { | ||
| * 2-inline-iframe - A 3D Secure v2.0 integration that provides the authentication iframe directly to the merchant. | ||
| * | ||
| */ | ||
| version?: 1 | '1' | 2 | '2' | '2-bootstrap3-modal' | '2-inline-iframe' | undefined; | ||
| version?: 1 | "1" | 2 | "2" | "2-bootstrap3-modal" | "2-inline-iframe" | undefined; | ||
| client?: Client | undefined; | ||
@@ -293,3 +291,3 @@ } | ||
| */ | ||
| on(event: 'lookup-complete', handler: (data?: ThreeDSecureVerificationData, next?: () => void) => void): void; | ||
| on(event: "lookup-complete", handler: (data?: ThreeDSecureVerificationData, next?: () => void) => void): void; | ||
@@ -296,0 +294,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { HostedFields } from './hosted-fields'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
| import { HostedFields } from "./hosted-fields"; | ||
@@ -211,6 +211,6 @@ export interface UnionPayAccountDetails { | ||
| | { | ||
| hostedFields: HostedFields; | ||
| enrollmentId: string; | ||
| smsCode: string; | ||
| }, | ||
| hostedFields: HostedFields; | ||
| enrollmentId: string; | ||
| smsCode: string; | ||
| }, | ||
| ): Promise<UnionPayTokenizePayload>; | ||
@@ -217,0 +217,0 @@ |
@@ -1,3 +0,3 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
@@ -4,0 +4,0 @@ export interface USBankAccount { |
@@ -1,9 +0,9 @@ | ||
| import { callback } from './core'; | ||
| import { Client } from './client'; | ||
| import { GooglePaymentDetails } from './google-payment'; | ||
| import { HostedFieldsAccountDetails } from './hosted-fields'; | ||
| import { PayPalAccountDetails } from './paypal'; | ||
| import { ThreeDSecureAccountDetails } from './three-d-secure'; | ||
| import { UnionPayAccountDetails } from './unionpay'; | ||
| import { VenmoAccountDetails } from './venmo'; | ||
| import { Client } from "./client"; | ||
| import { callback } from "./core"; | ||
| import { GooglePaymentDetails } from "./google-payment"; | ||
| import { HostedFieldsAccountDetails } from "./hosted-fields"; | ||
| import { PayPalAccountDetails } from "./paypal"; | ||
| import { ThreeDSecureAccountDetails } from "./three-d-secure"; | ||
| import { UnionPayAccountDetails } from "./unionpay"; | ||
| import { VenmoAccountDetails } from "./venmo"; | ||
@@ -10,0 +10,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
| import { callback, BraintreeError } from './core'; | ||
| import { Client } from './client'; | ||
| import { Client } from "./client"; | ||
| import { BraintreeError, callback } from "./core"; | ||
@@ -90,3 +90,3 @@ export interface VenmoAccountDetails { | ||
| */ | ||
| export type VenmoPaymentMethodUsage = 'single_use' | 'multi_use'; | ||
| export type VenmoPaymentMethodUsage = "single_use" | "multi_use"; | ||
@@ -93,0 +93,0 @@ /** |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
110951
-0.07%2781
-0.25%6
20%