mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* Add GooglePayment interface This also adds a dependency on the `googlepay` types * Add parameters and `teardown` Promise to `HostedFields` * Add PayPalCheckout interface * Add Venmo interface * Export `venmo`, `googlePayment`, and `paypalCheckout` * Add PayPalCheckout test * Bump version to 3.1 * Test removing the dependency * Split braintree-web into modules * Import us-bank-account * Update types and add tests * Add google pay test * Clean up some exports * Bump version of braintree-web * Run prettier * Remove unneeded references * Update paypal-checkout createPayment return value * Move braintree paypal checkout definitions to paypal-checkout-components There were several definitions that were part of PayPal, not Braintree so this puts them in their correct spot. * Add tests and organize * Linting * Add createPayment and tokenize options interfaces * Add myself to the "by" line * Remove tsling tweaks except namespace I couldn't figure out how to not use this rule override. * Disable max-length * Clean up paypal modules * Convert declare namespace to module style This updates the format of braintree-web and paypal-checkout-components to use module-style. Previously it was using `declare namespace` declarations. Now it uses module style imports and exports so it's more explicit. * Add a few additional exports and methods
52 lines
2.4 KiB
TypeScript
52 lines
2.4 KiB
TypeScript
// Type definitions for Braintree-web 3.62
|
|
// Project: https://github.com/braintree/braintree-web
|
|
// Definitions by: Guy Shahine <https://github.com/chlela>
|
|
// Jason Buckner <https://github.com/jbuckner>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
// TypeScript Version: 3.1
|
|
|
|
import { VERSION, BraintreeError, callback } from './modules/core';
|
|
import { AmericanExpress } from './modules/american-express';
|
|
import { ApplePay, ApplePaySession, ApplePayStatusCodes, ApplePayPayload } from './modules/apple-pay';
|
|
import { Client, CreditCardInfo } from './modules/client';
|
|
import { DataCollector } from './modules/data-collector';
|
|
import { GooglePayment, GooglePaymentTokenizePayload } from './modules/google-payment';
|
|
import { HostedFields, HostedFieldFieldOptions, HostedFieldsTokenizePayload, HostedFieldsStateObject } from './modules/hosted-fields';
|
|
import { PayPal, PayPalTokenizePayload } from './modules/paypal';
|
|
import { PayPalCheckout, PayPalCheckoutCreatePaymentOptions } from './modules/paypal-checkout';
|
|
import { ThreeDSecure, ThreeDSecureVerifyPayload } from './modules/three-d-secure';
|
|
import { UnionPay, UnionPayFetchCapabilitiesPayload, UnionPayEnrollPayload, UnionPayTokenizePayload } from './modules/unionpay';
|
|
import { USBankAccount } from './modules/us-bank-account';
|
|
import { Venmo, VenmoTokenizePayload } from './modules/venmo';
|
|
|
|
export const americanExpress: AmericanExpress;
|
|
export const applePay: ApplePay;
|
|
export const client: Client;
|
|
export const dataCollector: DataCollector;
|
|
export const googlePayment: GooglePayment;
|
|
export const hostedFields: HostedFields;
|
|
export const paypal: PayPal;
|
|
export const paypalCheckout: PayPalCheckout;
|
|
export const threeDSecure: ThreeDSecure;
|
|
export const unionpay: UnionPay;
|
|
export const usBankAccount: USBankAccount;
|
|
export const venmo: Venmo;
|
|
|
|
export {
|
|
VERSION, BraintreeError, callback,
|
|
AmericanExpress,
|
|
ApplePay, ApplePaySession, ApplePayStatusCodes, ApplePayPayload,
|
|
Client, CreditCardInfo,
|
|
DataCollector,
|
|
GooglePayment, GooglePaymentTokenizePayload,
|
|
HostedFields, HostedFieldFieldOptions, HostedFieldsTokenizePayload, HostedFieldsStateObject,
|
|
PayPal, PayPalTokenizePayload,
|
|
PayPalCheckout, PayPalCheckoutCreatePaymentOptions,
|
|
ThreeDSecure, ThreeDSecureVerifyPayload,
|
|
UnionPay, UnionPayFetchCapabilitiesPayload, UnionPayEnrollPayload, UnionPayTokenizePayload,
|
|
USBankAccount,
|
|
Venmo, VenmoTokenizePayload
|
|
};
|
|
|
|
export as namespace braintree;
|