You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: types/2020-08-27/Accounts.d.ts
+3
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,9 @@ declare module 'stripe' {
70
70
/**
71
71
* This is an object representing a person associated with a Stripe account.
72
72
*
73
+
* A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
74
+
* See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform pre-filling and account onboarding steps.
75
+
*
73
76
* Related guide: [Handling Identity Verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information).
* The customer details including the customer's tax exempt status and the customer's tax IDs.
69
+
*/
70
+
customer_details: Session.CustomerDetails|null;
71
+
67
72
/**
68
73
* If provided, this value will be used when the Customer object is created.
69
74
* If not provided, customers will be asked to enter their email address.
@@ -158,6 +163,76 @@ declare module 'stripe' {
158
163
namespaceSession{
159
164
typeBillingAddressCollection='auto'|'required';
160
165
166
+
interfaceCustomerDetails{
167
+
/**
168
+
* The customer's email at time of checkout.
169
+
*/
170
+
email: string|null;
171
+
172
+
/**
173
+
* The customer's tax exempt status at time of checkout.
174
+
*/
175
+
tax_exempt: CustomerDetails.TaxExempt|null;
176
+
177
+
/**
178
+
* The customer's tax IDs at time of checkout.
179
+
*/
180
+
tax_ids: Array<CustomerDetails.TaxId>|null;
181
+
}
182
+
183
+
namespaceCustomerDetails{
184
+
typeTaxExempt='exempt'|'none'|'reverse';
185
+
186
+
interfaceTaxId{
187
+
/**
188
+
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `nz_gst`, `au_abn`, `in_gst`, `no_vat`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, or `unknown`
189
+
*/
190
+
type: TaxId.Type;
191
+
192
+
/**
193
+
* The value of the tax ID.
194
+
*/
195
+
value: string|null;
196
+
}
197
+
198
+
namespaceTaxId{
199
+
typeType=
200
+
|'ae_trn'
201
+
|'au_abn'
202
+
|'br_cnpj'
203
+
|'br_cpf'
204
+
|'ca_bn'
205
+
|'ca_qst'
206
+
|'ch_vat'
207
+
|'cl_tin'
208
+
|'es_cif'
209
+
|'eu_vat'
210
+
|'hk_br'
211
+
|'id_npwp'
212
+
|'in_gst'
213
+
|'jp_cn'
214
+
|'jp_rn'
215
+
|'kr_brn'
216
+
|'li_uid'
217
+
|'mx_rfc'
218
+
|'my_frp'
219
+
|'my_itn'
220
+
|'my_sst'
221
+
|'no_vat'
222
+
|'nz_gst'
223
+
|'ru_inn'
224
+
|'ru_kpp'
225
+
|'sa_vat'
226
+
|'sg_gst'
227
+
|'sg_uen'
228
+
|'th_vat'
229
+
|'tw_vat'
230
+
|'unknown'
231
+
|'us_ein'
232
+
|'za_vat';
233
+
}
234
+
}
235
+
161
236
typeLocale=
162
237
|'auto'
163
238
|'bg'
@@ -695,6 +770,11 @@ declare module 'stripe' {
695
770
*/
696
771
description?: string;
697
772
773
+
/**
774
+
* The [tax rates](https://stripe.com/docs/api/tax_rates) that will be applied to this line item depending on the customer's billing/shipping address. We currently support the following countries: US, GB, AU, and all countries in the EU.
775
+
*/
776
+
dynamic_tax_rates?: Array<string>;
777
+
698
778
/**
699
779
* A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
700
780
*/
@@ -721,7 +801,7 @@ declare module 'stripe' {
721
801
quantity: number;
722
802
723
803
/**
724
-
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item. This is only allowed in subscription mode.
804
+
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item.
725
805
*/
726
806
tax_rates?: Array<string>;
727
807
}
@@ -881,10 +961,17 @@ declare module 'stripe' {
881
961
* Indicates that you intend to make future payments with the payment
882
962
* method collected by this Checkout Session.
883
963
*
964
+
* When setting this to `on_session`, Checkout will show a notice to the
965
+
* customer that their payment details will be saved.
966
+
*
884
967
* When setting this to `off_session`, Checkout will show a notice to the
885
968
* customer that their payment details will be saved and used for future
886
969
* payments.
887
970
*
971
+
* For both values, Checkout will attach the payment method to either the
972
+
* provided Customer for the session, or a new Customer created by Checkout
973
+
* if one has not been provided.
974
+
*
888
975
* When processing card payments, Checkout also uses `setup_future_usage`
889
976
* to dynamically optimize your payment flow and comply with regional
Copy file name to clipboardexpand all lines: types/2020-08-27/TaxRates.d.ts
+30
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,11 @@ declare module 'stripe' {
21
21
*/
22
22
active: boolean;
23
23
24
+
/**
25
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
26
+
*/
27
+
country: string|null;
28
+
24
29
/**
25
30
* Time at which the object was created. Measured in seconds since the Unix epoch.
26
31
*/
@@ -60,6 +65,11 @@ declare module 'stripe' {
60
65
* This represents the tax rate percent out of 100.
61
66
*/
62
67
percentage: number;
68
+
69
+
/**
70
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
71
+
*/
72
+
state: string|null;
63
73
}
64
74
65
75
interfaceTaxRateCreateParams{
@@ -83,6 +93,11 @@ declare module 'stripe' {
83
93
*/
84
94
active?: boolean;
85
95
96
+
/**
97
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
98
+
*/
99
+
country?: string;
100
+
86
101
/**
87
102
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
88
103
*/
@@ -102,6 +117,11 @@ declare module 'stripe' {
102
117
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
103
118
*/
104
119
metadata?: Stripe.MetadataParam;
120
+
121
+
/**
122
+
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
123
+
*/
124
+
state?: string;
105
125
}
106
126
107
127
interfaceTaxRateRetrieveParams{
@@ -117,6 +137,11 @@ declare module 'stripe' {
117
137
*/
118
138
active?: boolean;
119
139
140
+
/**
141
+
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
142
+
*/
143
+
country?: string;
144
+
120
145
/**
121
146
* An arbitrary string attached to the tax rate for your internal use only. It will not be visible to your customers.
122
147
*/
@@ -141,6 +166,11 @@ declare module 'stripe' {
141
166
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
0 commit comments