forked from paypal/paypal-checkout-components
/
types.js
77 lines (67 loc) · 1.62 KB
/
types.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* @flow */
import { CARD, WALLET_INSTRUMENT } from "@paypal/sdk-constants/src";
export type SecondaryInstruments = $ReadOnlyArray<{|
type: string,
label: string,
instrumentID: string,
|}>;
export type WalletInstrument = {|
type?: $Values<typeof WALLET_INSTRUMENT>,
label?: string,
logoUrl?: string,
instrumentID?: string,
tokenID?: string,
vendor?: $Values<typeof CARD>,
oneClick: boolean,
branded: boolean,
secondaryInstruments?: SecondaryInstruments,
|};
export type WalletPaymentType = {|
instruments: $ReadOnlyArray<WalletInstrument>,
|};
export type Wallet = {|
paypal: WalletPaymentType,
card: WalletPaymentType,
credit: WalletPaymentType,
venmo: WalletPaymentType,
|};
export type ContentType = {|
instantlyPayWith: string,
poweredBy: string,
chooseCardOrShipping: string,
useDifferentAccount: string,
deleteVaultedAccount: string,
deleteVaultedCard: string,
chooseCard: string,
balance: string,
payNow: string,
payWithDebitOrCreditCard: string,
credit: string,
payWith: string,
payLater: string,
flex: string,
payPalBalance: string,
moreOptions: string,
"label.paypal": string,
"label.checkout": string,
"label.buynow": string,
"label.pay": string,
"label.installment.withPeriod": string,
"label.installment.withoutPeriod": string,
|};
export type Experiment = {|
enableVenmo?: boolean,
disablePaylater?: boolean,
enableVenmoAppLabel?: boolean,
|};
export type Requires = {|
applepay?: boolean,
popup?: boolean,
native?: boolean,
|};
export type LazyExport<T> = {|
__get__: () => T,
|};
export type LazyProtectedExport<T> = {|
__get__: () => ?T,
|};