@stripe/stripe-js 3.0.9 → 3.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +12792 -4
- package/dist/index.d.ts +12792 -4
- package/dist/{index.js → stripe.js} +1 -1
- package/dist/{index.mjs → stripe.mjs} +1 -1
- package/package.json +10 -11
- package/pure/index.d.mts +12771 -1
- package/pure/index.d.ts +12771 -1
- package/pure/index.js +204 -1
- package/pure/index.mjs +200 -1
- package/dist/api/bank-accounts.d.mts +0 -61
- package/dist/api/bank-accounts.d.ts +0 -61
- package/dist/api/cards.d.mts +0 -130
- package/dist/api/cards.d.ts +0 -130
- package/dist/api/financial-connections.d.mts +0 -232
- package/dist/api/financial-connections.d.ts +0 -232
- package/dist/api/index.d.mts +0 -11
- package/dist/api/index.d.ts +0 -11
- package/dist/api/orders.d.mts +0 -122
- package/dist/api/orders.d.ts +0 -122
- package/dist/api/payment-intents.d.mts +0 -330
- package/dist/api/payment-intents.d.ts +0 -330
- package/dist/api/payment-methods.d.mts +0 -452
- package/dist/api/payment-methods.d.ts +0 -452
- package/dist/api/setup-intents.d.mts +0 -184
- package/dist/api/setup-intents.d.ts +0 -184
- package/dist/api/shared.d.mts +0 -125
- package/dist/api/shared.d.ts +0 -125
- package/dist/api/sources.d.mts +0 -1045
- package/dist/api/sources.d.ts +0 -1045
- package/dist/api/tokens.d.mts +0 -639
- package/dist/api/tokens.d.ts +0 -639
- package/dist/api/verification-sessions.d.mts +0 -9
- package/dist/api/verification-sessions.d.ts +0 -9
- package/dist/pure.d.mts +0 -5
- package/dist/pure.d.ts +0 -5
- package/dist/pure.js +0 -204
- package/dist/pure.mjs +0 -200
- package/dist/shared.d.mts +0 -6
- package/dist/shared.d.ts +0 -6
- package/dist/stripe-js/checkout.d.mts +0 -153
- package/dist/stripe-js/checkout.d.ts +0 -153
- package/dist/stripe-js/custom-checkout.d.mts +0 -402
- package/dist/stripe-js/custom-checkout.d.ts +0 -402
- package/dist/stripe-js/elements/address.d.mts +0 -261
- package/dist/stripe-js/elements/address.d.ts +0 -261
- package/dist/stripe-js/elements/affirm-message.d.mts +0 -65
- package/dist/stripe-js/elements/affirm-message.d.ts +0 -65
- package/dist/stripe-js/elements/afterpay-clearpay-message.d.mts +0 -119
- package/dist/stripe-js/elements/afterpay-clearpay-message.d.ts +0 -119
- package/dist/stripe-js/elements/apple-pay.d.mts +0 -156
- package/dist/stripe-js/elements/apple-pay.d.ts +0 -156
- package/dist/stripe-js/elements/au-bank-account.d.mts +0 -138
- package/dist/stripe-js/elements/au-bank-account.d.ts +0 -138
- package/dist/stripe-js/elements/base.d.mts +0 -264
- package/dist/stripe-js/elements/base.d.ts +0 -264
- package/dist/stripe-js/elements/card-cvc.d.mts +0 -119
- package/dist/stripe-js/elements/card-cvc.d.ts +0 -119
- package/dist/stripe-js/elements/card-expiry.d.mts +0 -119
- package/dist/stripe-js/elements/card-expiry.d.ts +0 -119
- package/dist/stripe-js/elements/card-number.d.mts +0 -200
- package/dist/stripe-js/elements/card-number.d.ts +0 -200
- package/dist/stripe-js/elements/card.d.mts +0 -226
- package/dist/stripe-js/elements/card.d.ts +0 -226
- package/dist/stripe-js/elements/cart.d.mts +0 -224
- package/dist/stripe-js/elements/cart.d.ts +0 -224
- package/dist/stripe-js/elements/eps-bank.d.mts +0 -140
- package/dist/stripe-js/elements/eps-bank.d.ts +0 -140
- package/dist/stripe-js/elements/express-checkout.d.mts +0 -446
- package/dist/stripe-js/elements/express-checkout.d.ts +0 -446
- package/dist/stripe-js/elements/fpx-bank.d.mts +0 -134
- package/dist/stripe-js/elements/fpx-bank.d.ts +0 -134
- package/dist/stripe-js/elements/iban.d.mts +0 -135
- package/dist/stripe-js/elements/iban.d.ts +0 -135
- package/dist/stripe-js/elements/ideal-bank.d.mts +0 -140
- package/dist/stripe-js/elements/ideal-bank.d.ts +0 -140
- package/dist/stripe-js/elements/index.d.mts +0 -22
- package/dist/stripe-js/elements/index.d.ts +0 -22
- package/dist/stripe-js/elements/issuing/index.d.mts +0 -5
- package/dist/stripe-js/elements/issuing/index.d.ts +0 -5
- package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.mts +0 -37
- package/dist/stripe-js/elements/issuing/issuing-card-copy-button.d.ts +0 -37
- package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.mts +0 -32
- package/dist/stripe-js/elements/issuing/issuing-card-cvc-display.d.ts +0 -32
- package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.mts +0 -32
- package/dist/stripe-js/elements/issuing/issuing-card-expiry-display.d.ts +0 -32
- package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.mts +0 -40
- package/dist/stripe-js/elements/issuing/issuing-card-number-display.d.ts +0 -40
- package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.mts +0 -32
- package/dist/stripe-js/elements/issuing/issuing-card-pin-display.d.ts +0 -32
- package/dist/stripe-js/elements/link-authentication.d.mts +0 -158
- package/dist/stripe-js/elements/link-authentication.d.ts +0 -158
- package/dist/stripe-js/elements/p24-bank.d.mts +0 -140
- package/dist/stripe-js/elements/p24-bank.d.ts +0 -140
- package/dist/stripe-js/elements/payment-method-messaging.d.mts +0 -98
- package/dist/stripe-js/elements/payment-method-messaging.d.ts +0 -98
- package/dist/stripe-js/elements/payment-request-button.d.mts +0 -151
- package/dist/stripe-js/elements/payment-request-button.d.ts +0 -151
- package/dist/stripe-js/elements/payment.d.mts +0 -275
- package/dist/stripe-js/elements/payment.d.ts +0 -275
- package/dist/stripe-js/elements/shipping-address.d.mts +0 -215
- package/dist/stripe-js/elements/shipping-address.d.ts +0 -215
- package/dist/stripe-js/elements-group.d.mts +0 -1129
- package/dist/stripe-js/elements-group.d.ts +0 -1129
- package/dist/stripe-js/embedded-checkout.d.mts +0 -35
- package/dist/stripe-js/embedded-checkout.d.ts +0 -35
- package/dist/stripe-js/ephemeral-keys.d.mts +0 -3
- package/dist/stripe-js/ephemeral-keys.d.ts +0 -3
- package/dist/stripe-js/financial-connections.d.mts +0 -19
- package/dist/stripe-js/financial-connections.d.ts +0 -19
- package/dist/stripe-js/index.d.mts +0 -13
- package/dist/stripe-js/index.d.ts +0 -13
- package/dist/stripe-js/orders.d.mts +0 -9
- package/dist/stripe-js/orders.d.ts +0 -9
- package/dist/stripe-js/payment-intents.d.mts +0 -1470
- package/dist/stripe-js/payment-intents.d.ts +0 -1470
- package/dist/stripe-js/payment-request.d.mts +0 -529
- package/dist/stripe-js/payment-request.d.ts +0 -529
- package/dist/stripe-js/setup-intents.d.mts +0 -250
- package/dist/stripe-js/setup-intents.d.ts +0 -250
- package/dist/stripe-js/stripe.d.mts +0 -1472
- package/dist/stripe-js/stripe.d.ts +0 -1472
- package/dist/stripe-js/token-and-sources.d.mts +0 -110
- package/dist/stripe-js/token-and-sources.d.ts +0 -110
- package/dist/utils.d.mts +0 -2
- package/dist/utils.d.ts +0 -2
- package/lib/index.d.mts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -2
- package/lib/index.mjs +0 -1
package/dist/api/cards.d.ts
DELETED
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import {Metadata} from './shared';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* The Card object.
|
|
5
|
-
*/
|
|
6
|
-
export interface Card {
|
|
7
|
-
/**
|
|
8
|
-
* Unique identifier for the object.
|
|
9
|
-
*/
|
|
10
|
-
id: string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* String representing the object's type. Objects of the same type share the same value.
|
|
14
|
-
*/
|
|
15
|
-
object: 'card';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* City/District/Suburb/Town/Village.
|
|
19
|
-
*/
|
|
20
|
-
address_city: string | null;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Billing address country, if provided when creating card.
|
|
24
|
-
*/
|
|
25
|
-
address_country: string | null;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Address line 1 (Street address/PO Box/Company name).
|
|
29
|
-
*/
|
|
30
|
-
address_line1: string | null;
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* If `address_line1` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
34
|
-
*/
|
|
35
|
-
address_line1_check: string | null;
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Address line 2 (Apartment/Suite/Unit/Building).
|
|
39
|
-
*/
|
|
40
|
-
address_line2: string | null;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* State/County/Province/Region.
|
|
44
|
-
*/
|
|
45
|
-
address_state: string | null;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* ZIP or postal code.
|
|
49
|
-
*/
|
|
50
|
-
address_zip: string | null;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
54
|
-
*/
|
|
55
|
-
address_zip_check: string | null;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Card brand. Can be `American Express`, `Diners Club`, `Discover`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
|
|
59
|
-
*/
|
|
60
|
-
brand: string;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
|
|
64
|
-
*/
|
|
65
|
-
country: string | null;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
69
|
-
*/
|
|
70
|
-
currency?: string | null;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* The customer that this card belongs to. This attribute will not be in the card object if the card belongs to an account or recipient instead.
|
|
74
|
-
*/
|
|
75
|
-
customer?: string | null;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* If a CVC was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
|
|
79
|
-
*/
|
|
80
|
-
cvc_check: string | null;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* (For tokenized numbers only.) The last four digits of the device account number.
|
|
84
|
-
*/
|
|
85
|
-
dynamic_last4: string | null;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Two-digit number representing the card's expiration month.
|
|
89
|
-
*/
|
|
90
|
-
exp_month: number;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Four-digit number representing the card's expiration year.
|
|
94
|
-
*/
|
|
95
|
-
exp_year: number;
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example.
|
|
99
|
-
*/
|
|
100
|
-
fingerprint?: string | null;
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
|
|
104
|
-
*/
|
|
105
|
-
funding: string;
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The last four digits of the card.
|
|
109
|
-
*/
|
|
110
|
-
last4: string;
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
114
|
-
*/
|
|
115
|
-
metadata: Metadata;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Cardholder name.
|
|
119
|
-
*/
|
|
120
|
-
name: string | null;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* If the card number is tokenized, this is the method that was used. Can be `apple_pay` or `google_pay`.
|
|
124
|
-
*/
|
|
125
|
-
tokenization_method: string | null;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export namespace Card {
|
|
129
|
-
export type AvailablePayoutMethod = 'instant' | 'standard';
|
|
130
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
type SupportedPaymentMethodType = 'us_bank_account' | 'link';
|
|
2
|
-
|
|
3
|
-
interface CommonBalance {
|
|
4
|
-
/**
|
|
5
|
-
* The time that the external institution calculated this balance. Measured
|
|
6
|
-
* in seconds since the Unix epoch.
|
|
7
|
-
*/
|
|
8
|
-
as_of: number;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The balances owed to (or by) the account holder.
|
|
12
|
-
*
|
|
13
|
-
* Each key is a three-letter ISO currency code, in lowercase.
|
|
14
|
-
*
|
|
15
|
-
* Each value is a integer amount. A positive amount indicates money owed to
|
|
16
|
-
* the account holder. A negative amount indicates money owed by the account
|
|
17
|
-
* holder.
|
|
18
|
-
*/
|
|
19
|
-
current: {
|
|
20
|
-
[key: string]: number | undefined;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface CashBalance {
|
|
25
|
-
/**
|
|
26
|
-
* Information on a `cash` balance. Only set if `balance.type` is `cash`.
|
|
27
|
-
*/
|
|
28
|
-
cash: {
|
|
29
|
-
/**
|
|
30
|
-
* The funds available to the account holder. Typically this is the
|
|
31
|
-
* current balance less any holds.
|
|
32
|
-
*
|
|
33
|
-
* Each key is a three-letter ISO currency code, in lowercase.
|
|
34
|
-
*
|
|
35
|
-
* Each value is a integer amount. A positive amount indicates money owed
|
|
36
|
-
* to the account holder. A negative amount indicates money owed by the
|
|
37
|
-
* account holder.
|
|
38
|
-
*/
|
|
39
|
-
available: {[key: string]: number | undefined};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
type: 'cash';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface CreditBalance {
|
|
46
|
-
/**
|
|
47
|
-
* Information on a `credit` balance. Only set if `balance.type` is `credit`.
|
|
48
|
-
*/
|
|
49
|
-
credit: {
|
|
50
|
-
/**
|
|
51
|
-
* The credit that has been used by the account holder.
|
|
52
|
-
*
|
|
53
|
-
* Each key is a three-letter ISO currency code, in lowercase
|
|
54
|
-
*
|
|
55
|
-
* Each value is a integer amount. A positive amount indicates money owed
|
|
56
|
-
* to the account holder. A negative amount indicates money owed by the
|
|
57
|
-
* account holder.
|
|
58
|
-
*/
|
|
59
|
-
used: {[key: string]: number | undefined};
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
type: 'credit';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
type Balance = (CommonBalance & CashBalance) | (CommonBalance & CreditBalance);
|
|
66
|
-
|
|
67
|
-
interface BalanceRefresh {
|
|
68
|
-
/**
|
|
69
|
-
* The status of the Balance Refresh
|
|
70
|
-
*/
|
|
71
|
-
status: 'pending' | 'succeeded' | 'failed';
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Time at which the Balance Refresh was attempted. Measured in seconds since the Unix epoch.
|
|
75
|
-
*/
|
|
76
|
-
last_attempted_at: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface OwnershipRefresh {
|
|
80
|
-
/**
|
|
81
|
-
* The status of the Ownership Refresh
|
|
82
|
-
*/
|
|
83
|
-
status: 'pending' | 'succeeded' | 'failed';
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Time at which the Ownersip Refresh was attempted. Measured in seconds since the Unix epoch.
|
|
87
|
-
*/
|
|
88
|
-
last_attempted_at: number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* The Financial Connections Session object
|
|
93
|
-
*/
|
|
94
|
-
export interface FinancialConnectionsSession {
|
|
95
|
-
/**
|
|
96
|
-
* Unique identifier for the object.
|
|
97
|
-
*/
|
|
98
|
-
id: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* List of accounts collected by the Session
|
|
102
|
-
*/
|
|
103
|
-
accounts: FinancialConnectionsSession.Account[];
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Filters applied to the Session
|
|
107
|
-
*/
|
|
108
|
-
filters?: FinancialConnectionsSession.Filters;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* List of data permissions requested in the Session
|
|
112
|
-
*/
|
|
113
|
-
permissions?: FinancialConnectionsSession.Permission[];
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* For webview integrations only. The user will be redirected to this URL to return to your app.
|
|
117
|
-
*/
|
|
118
|
-
return_url?: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export namespace FinancialConnectionsSession {
|
|
122
|
-
/**
|
|
123
|
-
* The Financial Connections Account object
|
|
124
|
-
*/
|
|
125
|
-
export interface Account {
|
|
126
|
-
/**
|
|
127
|
-
* Unique identifier for the object.
|
|
128
|
-
*/
|
|
129
|
-
id: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* String representing the object's type. `'linked_account'` is present for backwards-compatibility.
|
|
133
|
-
*/
|
|
134
|
-
object: 'linked_account' | 'financial_connections.account';
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The balance for this Account
|
|
138
|
-
*/
|
|
139
|
-
balance: null | Balance;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The most recent Balance Refresh for this Account
|
|
143
|
-
*/
|
|
144
|
-
balance_refresh: null | BalanceRefresh;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The type of the account.
|
|
148
|
-
*/
|
|
149
|
-
category: 'cash' | 'credit' | 'investment' | 'other';
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
153
|
-
*/
|
|
154
|
-
created: number;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* A human-readable name that has been assigned to this account, either by the account holder or by the institution.
|
|
158
|
-
*/
|
|
159
|
-
display_name: string;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The name of the institution that holds this account.
|
|
163
|
-
*/
|
|
164
|
-
institution_name: string;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* The last 4 digits of the account number. If present, this will be 4 numeric characters.
|
|
168
|
-
*/
|
|
169
|
-
last4: string | null;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
173
|
-
*/
|
|
174
|
-
livemode: boolean;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* The ID of this account's Ownership resource.
|
|
178
|
-
*/
|
|
179
|
-
ownership: string | null;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The most recent Ownership Refresh for this Account
|
|
183
|
-
*/
|
|
184
|
-
ownership_refresh: null | OwnershipRefresh;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Permissions granted on this Account
|
|
188
|
-
*/
|
|
189
|
-
permissions: Permission[];
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* The status of the Account
|
|
193
|
-
*/
|
|
194
|
-
status: 'active' | 'inactive' | 'disconnected';
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* The sub-category of the Account
|
|
198
|
-
*/
|
|
199
|
-
subcategory:
|
|
200
|
-
| 'checking'
|
|
201
|
-
| 'savings'
|
|
202
|
-
| 'mortgage'
|
|
203
|
-
| 'line_of_credit'
|
|
204
|
-
| 'credit_card'
|
|
205
|
-
| 'other';
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* The types of Payment Methods which can be set up by this Account
|
|
209
|
-
*/
|
|
210
|
-
supported_payment_method_types: SupportedPaymentMethodType[];
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Filters to restrict the kinds of accounts to collect.
|
|
215
|
-
*/
|
|
216
|
-
export interface Filters {
|
|
217
|
-
/**
|
|
218
|
-
* List of countries from which to collect accounts.
|
|
219
|
-
*/
|
|
220
|
-
countries?: string[];
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Data features to which access can be requested
|
|
225
|
-
*/
|
|
226
|
-
export type Permission =
|
|
227
|
-
| 'payment_method'
|
|
228
|
-
| 'balances'
|
|
229
|
-
| 'transactions'
|
|
230
|
-
| 'ownership'
|
|
231
|
-
| 'account_numbers';
|
|
232
|
-
}
|
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
type SupportedPaymentMethodType = 'us_bank_account' | 'link';
|
|
2
|
-
|
|
3
|
-
interface CommonBalance {
|
|
4
|
-
/**
|
|
5
|
-
* The time that the external institution calculated this balance. Measured
|
|
6
|
-
* in seconds since the Unix epoch.
|
|
7
|
-
*/
|
|
8
|
-
as_of: number;
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The balances owed to (or by) the account holder.
|
|
12
|
-
*
|
|
13
|
-
* Each key is a three-letter ISO currency code, in lowercase.
|
|
14
|
-
*
|
|
15
|
-
* Each value is a integer amount. A positive amount indicates money owed to
|
|
16
|
-
* the account holder. A negative amount indicates money owed by the account
|
|
17
|
-
* holder.
|
|
18
|
-
*/
|
|
19
|
-
current: {
|
|
20
|
-
[key: string]: number | undefined;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
interface CashBalance {
|
|
25
|
-
/**
|
|
26
|
-
* Information on a `cash` balance. Only set if `balance.type` is `cash`.
|
|
27
|
-
*/
|
|
28
|
-
cash: {
|
|
29
|
-
/**
|
|
30
|
-
* The funds available to the account holder. Typically this is the
|
|
31
|
-
* current balance less any holds.
|
|
32
|
-
*
|
|
33
|
-
* Each key is a three-letter ISO currency code, in lowercase.
|
|
34
|
-
*
|
|
35
|
-
* Each value is a integer amount. A positive amount indicates money owed
|
|
36
|
-
* to the account holder. A negative amount indicates money owed by the
|
|
37
|
-
* account holder.
|
|
38
|
-
*/
|
|
39
|
-
available: {[key: string]: number | undefined};
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
type: 'cash';
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
interface CreditBalance {
|
|
46
|
-
/**
|
|
47
|
-
* Information on a `credit` balance. Only set if `balance.type` is `credit`.
|
|
48
|
-
*/
|
|
49
|
-
credit: {
|
|
50
|
-
/**
|
|
51
|
-
* The credit that has been used by the account holder.
|
|
52
|
-
*
|
|
53
|
-
* Each key is a three-letter ISO currency code, in lowercase
|
|
54
|
-
*
|
|
55
|
-
* Each value is a integer amount. A positive amount indicates money owed
|
|
56
|
-
* to the account holder. A negative amount indicates money owed by the
|
|
57
|
-
* account holder.
|
|
58
|
-
*/
|
|
59
|
-
used: {[key: string]: number | undefined};
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
type: 'credit';
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
type Balance = (CommonBalance & CashBalance) | (CommonBalance & CreditBalance);
|
|
66
|
-
|
|
67
|
-
interface BalanceRefresh {
|
|
68
|
-
/**
|
|
69
|
-
* The status of the Balance Refresh
|
|
70
|
-
*/
|
|
71
|
-
status: 'pending' | 'succeeded' | 'failed';
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Time at which the Balance Refresh was attempted. Measured in seconds since the Unix epoch.
|
|
75
|
-
*/
|
|
76
|
-
last_attempted_at: number;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface OwnershipRefresh {
|
|
80
|
-
/**
|
|
81
|
-
* The status of the Ownership Refresh
|
|
82
|
-
*/
|
|
83
|
-
status: 'pending' | 'succeeded' | 'failed';
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Time at which the Ownersip Refresh was attempted. Measured in seconds since the Unix epoch.
|
|
87
|
-
*/
|
|
88
|
-
last_attempted_at: number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* The Financial Connections Session object
|
|
93
|
-
*/
|
|
94
|
-
export interface FinancialConnectionsSession {
|
|
95
|
-
/**
|
|
96
|
-
* Unique identifier for the object.
|
|
97
|
-
*/
|
|
98
|
-
id: string;
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* List of accounts collected by the Session
|
|
102
|
-
*/
|
|
103
|
-
accounts: FinancialConnectionsSession.Account[];
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Filters applied to the Session
|
|
107
|
-
*/
|
|
108
|
-
filters?: FinancialConnectionsSession.Filters;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* List of data permissions requested in the Session
|
|
112
|
-
*/
|
|
113
|
-
permissions?: FinancialConnectionsSession.Permission[];
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* For webview integrations only. The user will be redirected to this URL to return to your app.
|
|
117
|
-
*/
|
|
118
|
-
return_url?: string;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
export namespace FinancialConnectionsSession {
|
|
122
|
-
/**
|
|
123
|
-
* The Financial Connections Account object
|
|
124
|
-
*/
|
|
125
|
-
export interface Account {
|
|
126
|
-
/**
|
|
127
|
-
* Unique identifier for the object.
|
|
128
|
-
*/
|
|
129
|
-
id: string;
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* String representing the object's type. `'linked_account'` is present for backwards-compatibility.
|
|
133
|
-
*/
|
|
134
|
-
object: 'linked_account' | 'financial_connections.account';
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The balance for this Account
|
|
138
|
-
*/
|
|
139
|
-
balance: null | Balance;
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* The most recent Balance Refresh for this Account
|
|
143
|
-
*/
|
|
144
|
-
balance_refresh: null | BalanceRefresh;
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* The type of the account.
|
|
148
|
-
*/
|
|
149
|
-
category: 'cash' | 'credit' | 'investment' | 'other';
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
153
|
-
*/
|
|
154
|
-
created: number;
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* A human-readable name that has been assigned to this account, either by the account holder or by the institution.
|
|
158
|
-
*/
|
|
159
|
-
display_name: string;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The name of the institution that holds this account.
|
|
163
|
-
*/
|
|
164
|
-
institution_name: string;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* The last 4 digits of the account number. If present, this will be 4 numeric characters.
|
|
168
|
-
*/
|
|
169
|
-
last4: string | null;
|
|
170
|
-
|
|
171
|
-
/**
|
|
172
|
-
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
173
|
-
*/
|
|
174
|
-
livemode: boolean;
|
|
175
|
-
|
|
176
|
-
/**
|
|
177
|
-
* The ID of this account's Ownership resource.
|
|
178
|
-
*/
|
|
179
|
-
ownership: string | null;
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* The most recent Ownership Refresh for this Account
|
|
183
|
-
*/
|
|
184
|
-
ownership_refresh: null | OwnershipRefresh;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Permissions granted on this Account
|
|
188
|
-
*/
|
|
189
|
-
permissions: Permission[];
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* The status of the Account
|
|
193
|
-
*/
|
|
194
|
-
status: 'active' | 'inactive' | 'disconnected';
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* The sub-category of the Account
|
|
198
|
-
*/
|
|
199
|
-
subcategory:
|
|
200
|
-
| 'checking'
|
|
201
|
-
| 'savings'
|
|
202
|
-
| 'mortgage'
|
|
203
|
-
| 'line_of_credit'
|
|
204
|
-
| 'credit_card'
|
|
205
|
-
| 'other';
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* The types of Payment Methods which can be set up by this Account
|
|
209
|
-
*/
|
|
210
|
-
supported_payment_method_types: SupportedPaymentMethodType[];
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* Filters to restrict the kinds of accounts to collect.
|
|
215
|
-
*/
|
|
216
|
-
export interface Filters {
|
|
217
|
-
/**
|
|
218
|
-
* List of countries from which to collect accounts.
|
|
219
|
-
*/
|
|
220
|
-
countries?: string[];
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Data features to which access can be requested
|
|
225
|
-
*/
|
|
226
|
-
export type Permission =
|
|
227
|
-
| 'payment_method'
|
|
228
|
-
| 'balances'
|
|
229
|
-
| 'transactions'
|
|
230
|
-
| 'ownership'
|
|
231
|
-
| 'account_numbers';
|
|
232
|
-
}
|
package/dist/api/index.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './payment-methods';
|
|
3
|
-
export * from './payment-intents';
|
|
4
|
-
export * from './orders';
|
|
5
|
-
export * from './setup-intents';
|
|
6
|
-
export * from './sources';
|
|
7
|
-
export * from './tokens';
|
|
8
|
-
export * from './bank-accounts';
|
|
9
|
-
export * from './cards';
|
|
10
|
-
export * from './verification-sessions';
|
|
11
|
-
export * from './financial-connections';
|
package/dist/api/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './shared';
|
|
2
|
-
export * from './payment-methods';
|
|
3
|
-
export * from './payment-intents';
|
|
4
|
-
export * from './orders';
|
|
5
|
-
export * from './setup-intents';
|
|
6
|
-
export * from './sources';
|
|
7
|
-
export * from './tokens';
|
|
8
|
-
export * from './bank-accounts';
|
|
9
|
-
export * from './cards';
|
|
10
|
-
export * from './verification-sessions';
|
|
11
|
-
export * from './financial-connections';
|