stripe 15.12.0-beta.1 → 16.0.0
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/CHANGELOG.md +155 -746
- package/README.md +0 -33
- package/VERSION +1 -1
- package/cjs/RequestSender.js +5 -66
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/multipart.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -25
- package/cjs/resources/OAuth.js +1 -1
- package/cjs/resources/PaymentIntents.js +0 -4
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
- package/cjs/resources.js +10 -36
- package/cjs/stripe.core.js +3 -6
- package/cjs/utils.js +3 -30
- package/esm/RequestSender.js +6 -67
- package/esm/StripeResource.js +2 -2
- package/esm/apiVersion.js +1 -2
- package/esm/multipart.js +2 -2
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -25
- package/esm/resources/OAuth.js +2 -2
- package/esm/resources/PaymentIntents.js +0 -4
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
- package/esm/resources.js +0 -22
- package/esm/stripe.core.js +3 -6
- package/esm/utils.js +1 -27
- package/package.json +5 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -15
- package/types/AccountSessionsResource.d.ts +0 -205
- package/types/Accounts.d.ts +1 -88
- package/types/AccountsResource.d.ts +1 -205
- package/types/BalanceTransactionSources.d.ts +0 -1
- package/types/Capabilities.d.ts +27 -7
- package/types/Charges.d.ts +0 -67
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +3 -24
- package/types/Checkout/SessionsResource.d.ts +3 -17
- package/types/ConfirmationTokens.d.ts +0 -83
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomerSessions.d.ts +0 -55
- package/types/CustomerSessionsResource.d.ts +0 -55
- package/types/CustomersResource.d.ts +4 -4
- package/types/Disputes.d.ts +0 -167
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +0 -426
- package/types/Events.d.ts +0 -83
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -44
- package/types/FinancialConnections/SessionsResource.d.ts +1 -33
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +0 -22
- package/types/Invoices.d.ts +3 -111
- package/types/InvoicesResource.d.ts +2171 -6311
- package/types/Issuing/Authorizations.d.ts +173 -0
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Cards.d.ts +0 -34
- package/types/Issuing/CardsResource.d.ts +0 -125
- package/types/Issuing/Transactions.d.ts +112 -6
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +1 -463
- package/types/PaymentIntentsResource.d.ts +3360 -6731
- package/types/PaymentLinks.d.ts +1 -0
- package/types/PaymentLinksResource.d.ts +15 -1
- package/types/PaymentMethods.d.ts +0 -62
- package/types/PaymentMethodsResource.d.ts +12 -124
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -578
- package/types/QuotesResource.d.ts +266 -3175
- package/types/SetupAttempts.d.ts +0 -8
- package/types/SetupIntents.d.ts +1 -104
- package/types/SetupIntentsResource.d.ts +9 -527
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -164
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -41
- package/types/SubscriptionsResource.d.ts +2 -337
- package/types/Tax/Calculations.d.ts +2 -1
- package/types/Tax/CalculationsResource.d.ts +4 -3
- package/types/Tax/Transactions.d.ts +2 -1
- package/types/TaxIds.d.ts +2 -1
- package/types/TaxIdsResource.d.ts +2 -1
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/ConnectionTokensResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -208
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/WebhookEndpointsResource.d.ts +2 -51
- package/types/index.d.ts +0 -62
- package/types/lib.d.ts +1 -13
- package/types/test/typescriptTest.ts +3 -3
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/QuotePhases.js +0 -22
- package/cjs/resources/Tax/Forms.js +0 -20
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/QuotePhases.js +0 -19
- package/esm/resources/Tax/Forms.js +0 -17
- package/types/AccountNotices.d.ts +0 -110
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -91
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1056
- package/types/OrdersResource.d.ts +0 -2709
- package/types/PlatformTaxFees.d.ts +0 -35
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePhases.d.ts +0 -198
- package/types/QuotePhasesResource.d.ts +0 -67
- package/types/QuotePreviewInvoices.d.ts +0 -1514
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -778
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
|
@@ -66,6 +66,16 @@ declare module 'stripe' {
|
|
|
66
66
|
*/
|
|
67
67
|
currency: string;
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* Fleet-specific information for authorizations using Fleet cards.
|
|
71
|
+
*/
|
|
72
|
+
fleet: Authorization.Fleet | null;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed.
|
|
76
|
+
*/
|
|
77
|
+
fuel: Authorization.Fuel | null;
|
|
78
|
+
|
|
69
79
|
/**
|
|
70
80
|
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
71
81
|
*/
|
|
@@ -151,6 +161,164 @@ declare module 'stripe' {
|
|
|
151
161
|
| 'online'
|
|
152
162
|
| 'swipe';
|
|
153
163
|
|
|
164
|
+
interface Fleet {
|
|
165
|
+
/**
|
|
166
|
+
* Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
|
167
|
+
*/
|
|
168
|
+
cardholder_prompt_data: Fleet.CardholderPromptData | null;
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* The type of purchase.
|
|
172
|
+
*/
|
|
173
|
+
purchase_type: Fleet.PurchaseType | null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* More information about the total amount. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
|
177
|
+
*/
|
|
178
|
+
reported_breakdown: Fleet.ReportedBreakdown | null;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* The type of fuel service.
|
|
182
|
+
*/
|
|
183
|
+
service_type: Fleet.ServiceType | null;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
namespace Fleet {
|
|
187
|
+
interface CardholderPromptData {
|
|
188
|
+
/**
|
|
189
|
+
* [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID.
|
|
190
|
+
* @deprecated
|
|
191
|
+
*/
|
|
192
|
+
alphanumeric_id: string | null;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Driver ID.
|
|
196
|
+
*/
|
|
197
|
+
driver_id: string | null;
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Odometer reading.
|
|
201
|
+
*/
|
|
202
|
+
odometer: number | null;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
|
206
|
+
*/
|
|
207
|
+
unspecified_id: string | null;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* User ID.
|
|
211
|
+
*/
|
|
212
|
+
user_id: string | null;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Vehicle number.
|
|
216
|
+
*/
|
|
217
|
+
vehicle_number: string | null;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
type PurchaseType =
|
|
221
|
+
| 'fuel_and_non_fuel_purchase'
|
|
222
|
+
| 'fuel_purchase'
|
|
223
|
+
| 'non_fuel_purchase';
|
|
224
|
+
|
|
225
|
+
interface ReportedBreakdown {
|
|
226
|
+
/**
|
|
227
|
+
* Breakdown of fuel portion of the purchase.
|
|
228
|
+
*/
|
|
229
|
+
fuel: ReportedBreakdown.Fuel | null;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Breakdown of non-fuel portion of the purchase.
|
|
233
|
+
*/
|
|
234
|
+
non_fuel: ReportedBreakdown.NonFuel | null;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Information about tax included in this transaction.
|
|
238
|
+
*/
|
|
239
|
+
tax: ReportedBreakdown.Tax | null;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
namespace ReportedBreakdown {
|
|
243
|
+
interface Fuel {
|
|
244
|
+
/**
|
|
245
|
+
* Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes.
|
|
246
|
+
*/
|
|
247
|
+
gross_amount_decimal: string | null;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
interface NonFuel {
|
|
251
|
+
/**
|
|
252
|
+
* Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
|
253
|
+
*/
|
|
254
|
+
gross_amount_decimal: string | null;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
interface Tax {
|
|
258
|
+
/**
|
|
259
|
+
* Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax.
|
|
260
|
+
*/
|
|
261
|
+
local_amount_decimal: string | null;
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax.
|
|
265
|
+
*/
|
|
266
|
+
national_amount_decimal: string | null;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
type ServiceType =
|
|
271
|
+
| 'full_service'
|
|
272
|
+
| 'non_fuel_transaction'
|
|
273
|
+
| 'self_service';
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
interface Fuel {
|
|
277
|
+
/**
|
|
278
|
+
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
|
279
|
+
*/
|
|
280
|
+
industry_product_code: string | null;
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
|
284
|
+
*/
|
|
285
|
+
quantity_decimal: string | null;
|
|
286
|
+
|
|
287
|
+
/**
|
|
288
|
+
* The type of fuel that was purchased.
|
|
289
|
+
*/
|
|
290
|
+
type: Fuel.Type | null;
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* The units for `quantity_decimal`.
|
|
294
|
+
*/
|
|
295
|
+
unit: Fuel.Unit | null;
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
|
299
|
+
*/
|
|
300
|
+
unit_cost_decimal: string | null;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
namespace Fuel {
|
|
304
|
+
type Type =
|
|
305
|
+
| 'diesel'
|
|
306
|
+
| 'other'
|
|
307
|
+
| 'unleaded_plus'
|
|
308
|
+
| 'unleaded_regular'
|
|
309
|
+
| 'unleaded_super';
|
|
310
|
+
|
|
311
|
+
type Unit =
|
|
312
|
+
| 'charging_minute'
|
|
313
|
+
| 'imperial_gallon'
|
|
314
|
+
| 'kilogram'
|
|
315
|
+
| 'kilowatt_hour'
|
|
316
|
+
| 'liter'
|
|
317
|
+
| 'other'
|
|
318
|
+
| 'pound'
|
|
319
|
+
| 'us_gallon';
|
|
320
|
+
}
|
|
321
|
+
|
|
154
322
|
interface MerchantData {
|
|
155
323
|
/**
|
|
156
324
|
* A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
|
|
@@ -349,11 +517,16 @@ declare module 'stripe' {
|
|
|
349
517
|
type Reason =
|
|
350
518
|
| 'account_disabled'
|
|
351
519
|
| 'card_active'
|
|
520
|
+
| 'card_canceled'
|
|
521
|
+
| 'card_expired'
|
|
352
522
|
| 'card_inactive'
|
|
523
|
+
| 'cardholder_blocked'
|
|
353
524
|
| 'cardholder_inactive'
|
|
354
525
|
| 'cardholder_verification_required'
|
|
526
|
+
| 'insecure_authorization_method'
|
|
355
527
|
| 'insufficient_funds'
|
|
356
528
|
| 'not_allowed'
|
|
529
|
+
| 'pin_blocked'
|
|
357
530
|
| 'spending_controls'
|
|
358
531
|
| 'suspected_fraud'
|
|
359
532
|
| 'verification_failed'
|
|
@@ -40,8 +40,7 @@ declare module 'stripe' {
|
|
|
40
40
|
metadata?: Stripe.MetadataParam;
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* The cardholder's phone number. This will be transformed to [E.164](https://en.wikipedia.org/wiki/E.164) if it is not provided in that format already. This is required for all cardholders who will be creating EU cards.
|
|
44
|
-
* While phone number is optional if the cardholder will not be creating EU cards, note that this cardholder will not be eligible for 3DS without a phone number. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied) for more details.
|
|
43
|
+
* The cardholder's phone number. This will be transformed to [E.164](https://en.wikipedia.org/wiki/E.164) if it is not provided in that format already. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied) for more details.
|
|
45
44
|
*/
|
|
46
45
|
phone_number?: string;
|
|
47
46
|
|
package/types/Issuing/Cards.d.ts
CHANGED
|
@@ -138,11 +138,6 @@ declare module 'stripe' {
|
|
|
138
138
|
interface Shipping {
|
|
139
139
|
address: Stripe.Address;
|
|
140
140
|
|
|
141
|
-
/**
|
|
142
|
-
* Address validation details for the shipment.
|
|
143
|
-
*/
|
|
144
|
-
address_validation?: Shipping.AddressValidation | null;
|
|
145
|
-
|
|
146
141
|
/**
|
|
147
142
|
* The delivery company that shipped a card.
|
|
148
143
|
*/
|
|
@@ -200,35 +195,6 @@ declare module 'stripe' {
|
|
|
200
195
|
}
|
|
201
196
|
|
|
202
197
|
namespace Shipping {
|
|
203
|
-
interface AddressValidation {
|
|
204
|
-
/**
|
|
205
|
-
* The address validation capabilities to use.
|
|
206
|
-
*/
|
|
207
|
-
mode: AddressValidation.Mode;
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* The normalized shipping address.
|
|
211
|
-
*/
|
|
212
|
-
normalized_address: Stripe.Address | null;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* The validation result for the shipping address.
|
|
216
|
-
*/
|
|
217
|
-
result: AddressValidation.Result | null;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
namespace AddressValidation {
|
|
221
|
-
type Mode =
|
|
222
|
-
| 'disabled'
|
|
223
|
-
| 'normalization_only'
|
|
224
|
-
| 'validation_and_normalization';
|
|
225
|
-
|
|
226
|
-
type Result =
|
|
227
|
-
| 'indeterminate'
|
|
228
|
-
| 'likely_deliverable'
|
|
229
|
-
| 'likely_undeliverable';
|
|
230
|
-
}
|
|
231
|
-
|
|
232
198
|
type Carrier = 'dhl' | 'fedex' | 'royal_mail' | 'usps';
|
|
233
199
|
|
|
234
200
|
interface Customs {
|
|
@@ -88,11 +88,6 @@ declare module 'stripe' {
|
|
|
88
88
|
*/
|
|
89
89
|
address: Shipping.Address;
|
|
90
90
|
|
|
91
|
-
/**
|
|
92
|
-
* Address validation settings.
|
|
93
|
-
*/
|
|
94
|
-
address_validation?: Shipping.AddressValidation;
|
|
95
|
-
|
|
96
91
|
/**
|
|
97
92
|
* Customs information for the shipment.
|
|
98
93
|
*/
|
|
@@ -157,20 +152,6 @@ declare module 'stripe' {
|
|
|
157
152
|
state?: string;
|
|
158
153
|
}
|
|
159
154
|
|
|
160
|
-
interface AddressValidation {
|
|
161
|
-
/**
|
|
162
|
-
* The address validation capabilities to use.
|
|
163
|
-
*/
|
|
164
|
-
mode: AddressValidation.Mode;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
namespace AddressValidation {
|
|
168
|
-
type Mode =
|
|
169
|
-
| 'disabled'
|
|
170
|
-
| 'normalization_only'
|
|
171
|
-
| 'validation_and_normalization';
|
|
172
|
-
}
|
|
173
|
-
|
|
174
155
|
interface Customs {
|
|
175
156
|
/**
|
|
176
157
|
* The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe.
|
|
@@ -1165,11 +1146,6 @@ declare module 'stripe' {
|
|
|
1165
1146
|
*/
|
|
1166
1147
|
pin?: CardUpdateParams.Pin;
|
|
1167
1148
|
|
|
1168
|
-
/**
|
|
1169
|
-
* Updated shipping information for the card.
|
|
1170
|
-
*/
|
|
1171
|
-
shipping?: CardUpdateParams.Shipping;
|
|
1172
|
-
|
|
1173
1149
|
/**
|
|
1174
1150
|
* Rules that control spending for this card. Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details.
|
|
1175
1151
|
*/
|
|
@@ -1191,107 +1167,6 @@ declare module 'stripe' {
|
|
|
1191
1167
|
encrypted_number?: string;
|
|
1192
1168
|
}
|
|
1193
1169
|
|
|
1194
|
-
interface Shipping {
|
|
1195
|
-
/**
|
|
1196
|
-
* The address that the card is shipped to.
|
|
1197
|
-
*/
|
|
1198
|
-
address: Shipping.Address;
|
|
1199
|
-
|
|
1200
|
-
/**
|
|
1201
|
-
* Address validation settings.
|
|
1202
|
-
*/
|
|
1203
|
-
address_validation?: Shipping.AddressValidation;
|
|
1204
|
-
|
|
1205
|
-
/**
|
|
1206
|
-
* Customs information for the shipment.
|
|
1207
|
-
*/
|
|
1208
|
-
customs?: Shipping.Customs;
|
|
1209
|
-
|
|
1210
|
-
/**
|
|
1211
|
-
* The name printed on the shipping label when shipping the card.
|
|
1212
|
-
*/
|
|
1213
|
-
name: string;
|
|
1214
|
-
|
|
1215
|
-
/**
|
|
1216
|
-
* Phone number of the recipient of the shipment.
|
|
1217
|
-
*/
|
|
1218
|
-
phone_number?: string;
|
|
1219
|
-
|
|
1220
|
-
/**
|
|
1221
|
-
* Whether a signature is required for card delivery.
|
|
1222
|
-
*/
|
|
1223
|
-
require_signature?: boolean;
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* Shipment service.
|
|
1227
|
-
*/
|
|
1228
|
-
service?: Shipping.Service;
|
|
1229
|
-
|
|
1230
|
-
/**
|
|
1231
|
-
* Packaging options.
|
|
1232
|
-
*/
|
|
1233
|
-
type?: Shipping.Type;
|
|
1234
|
-
}
|
|
1235
|
-
|
|
1236
|
-
namespace Shipping {
|
|
1237
|
-
interface Address {
|
|
1238
|
-
/**
|
|
1239
|
-
* City, district, suburb, town, or village.
|
|
1240
|
-
*/
|
|
1241
|
-
city: string;
|
|
1242
|
-
|
|
1243
|
-
/**
|
|
1244
|
-
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
|
|
1245
|
-
*/
|
|
1246
|
-
country: string;
|
|
1247
|
-
|
|
1248
|
-
/**
|
|
1249
|
-
* Address line 1 (e.g., street, PO Box, or company name).
|
|
1250
|
-
*/
|
|
1251
|
-
line1: string;
|
|
1252
|
-
|
|
1253
|
-
/**
|
|
1254
|
-
* Address line 2 (e.g., apartment, suite, unit, or building).
|
|
1255
|
-
*/
|
|
1256
|
-
line2?: string;
|
|
1257
|
-
|
|
1258
|
-
/**
|
|
1259
|
-
* ZIP or postal code.
|
|
1260
|
-
*/
|
|
1261
|
-
postal_code: string;
|
|
1262
|
-
|
|
1263
|
-
/**
|
|
1264
|
-
* State, county, province, or region.
|
|
1265
|
-
*/
|
|
1266
|
-
state?: string;
|
|
1267
|
-
}
|
|
1268
|
-
|
|
1269
|
-
interface AddressValidation {
|
|
1270
|
-
/**
|
|
1271
|
-
* The address validation capabilities to use.
|
|
1272
|
-
*/
|
|
1273
|
-
mode: AddressValidation.Mode;
|
|
1274
|
-
}
|
|
1275
|
-
|
|
1276
|
-
namespace AddressValidation {
|
|
1277
|
-
type Mode =
|
|
1278
|
-
| 'disabled'
|
|
1279
|
-
| 'normalization_only'
|
|
1280
|
-
| 'validation_and_normalization';
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
interface Customs {
|
|
1284
|
-
/**
|
|
1285
|
-
* The Economic Operators Registration and Identification (EORI) number to use for Customs. Required for bulk shipments to Europe.
|
|
1286
|
-
*/
|
|
1287
|
-
eori_number?: string;
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
type Service = 'express' | 'priority' | 'standard';
|
|
1291
|
-
|
|
1292
|
-
type Type = 'bulk' | 'individual';
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
1170
|
interface SpendingControls {
|
|
1296
1171
|
/**
|
|
1297
1172
|
* Array of strings containing [categories](https://stripe.com/docs/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`.
|
|
@@ -202,6 +202,11 @@ declare module 'stripe' {
|
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
interface PurchaseDetails {
|
|
205
|
+
/**
|
|
206
|
+
* Fleet-specific information for transactions using Fleet cards.
|
|
207
|
+
*/
|
|
208
|
+
fleet: PurchaseDetails.Fleet | null;
|
|
209
|
+
|
|
205
210
|
/**
|
|
206
211
|
* Information about the flight that was purchased with this transaction.
|
|
207
212
|
*/
|
|
@@ -229,6 +234,102 @@ declare module 'stripe' {
|
|
|
229
234
|
}
|
|
230
235
|
|
|
231
236
|
namespace PurchaseDetails {
|
|
237
|
+
interface Fleet {
|
|
238
|
+
/**
|
|
239
|
+
* Answers to prompts presented to cardholder at point of sale.
|
|
240
|
+
*/
|
|
241
|
+
cardholder_prompt_data: Fleet.CardholderPromptData | null;
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
|
245
|
+
*/
|
|
246
|
+
purchase_type: string | null;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
|
250
|
+
*/
|
|
251
|
+
reported_breakdown: Fleet.ReportedBreakdown | null;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
|
255
|
+
*/
|
|
256
|
+
service_type: string | null;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
namespace Fleet {
|
|
260
|
+
interface CardholderPromptData {
|
|
261
|
+
/**
|
|
262
|
+
* Driver ID.
|
|
263
|
+
*/
|
|
264
|
+
driver_id: string | null;
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Odometer reading.
|
|
268
|
+
*/
|
|
269
|
+
odometer: number | null;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
|
273
|
+
*/
|
|
274
|
+
unspecified_id: string | null;
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* User ID.
|
|
278
|
+
*/
|
|
279
|
+
user_id: string | null;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Vehicle number.
|
|
283
|
+
*/
|
|
284
|
+
vehicle_number: string | null;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
interface ReportedBreakdown {
|
|
288
|
+
/**
|
|
289
|
+
* Breakdown of fuel portion of the purchase.
|
|
290
|
+
*/
|
|
291
|
+
fuel: ReportedBreakdown.Fuel | null;
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Breakdown of non-fuel portion of the purchase.
|
|
295
|
+
*/
|
|
296
|
+
non_fuel: ReportedBreakdown.NonFuel | null;
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Information about tax included in this transaction.
|
|
300
|
+
*/
|
|
301
|
+
tax: ReportedBreakdown.Tax | null;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
namespace ReportedBreakdown {
|
|
305
|
+
interface Fuel {
|
|
306
|
+
/**
|
|
307
|
+
* Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
|
308
|
+
*/
|
|
309
|
+
gross_amount_decimal: string | null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
interface NonFuel {
|
|
313
|
+
/**
|
|
314
|
+
* Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
|
315
|
+
*/
|
|
316
|
+
gross_amount_decimal: string | null;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
interface Tax {
|
|
320
|
+
/**
|
|
321
|
+
* Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
322
|
+
*/
|
|
323
|
+
local_amount_decimal: string | null;
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
327
|
+
*/
|
|
328
|
+
national_amount_decimal: string | null;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
232
333
|
interface Flight {
|
|
233
334
|
/**
|
|
234
335
|
* The time that the flight departed.
|
|
@@ -291,13 +392,23 @@ declare module 'stripe' {
|
|
|
291
392
|
}
|
|
292
393
|
|
|
293
394
|
interface Fuel {
|
|
395
|
+
/**
|
|
396
|
+
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
|
397
|
+
*/
|
|
398
|
+
industry_product_code: string | null;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
|
402
|
+
*/
|
|
403
|
+
quantity_decimal: string | null;
|
|
404
|
+
|
|
294
405
|
/**
|
|
295
406
|
* The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
|
296
407
|
*/
|
|
297
408
|
type: string;
|
|
298
409
|
|
|
299
410
|
/**
|
|
300
|
-
* The units for `
|
|
411
|
+
* The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
|
301
412
|
*/
|
|
302
413
|
unit: string;
|
|
303
414
|
|
|
@@ -305,11 +416,6 @@ declare module 'stripe' {
|
|
|
305
416
|
* The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
|
306
417
|
*/
|
|
307
418
|
unit_cost_decimal: string;
|
|
308
|
-
|
|
309
|
-
/**
|
|
310
|
-
* The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
|
|
311
|
-
*/
|
|
312
|
-
volume_decimal: string | null;
|
|
313
419
|
}
|
|
314
420
|
|
|
315
421
|
interface Lodging {
|
package/types/LineItems.d.ts
CHANGED
|
@@ -56,13 +56,6 @@ declare module 'stripe' {
|
|
|
56
56
|
*/
|
|
57
57
|
price: Stripe.Price | null;
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* The ID of the product for this line item.
|
|
61
|
-
*
|
|
62
|
-
* This will always be the same as `price.product`.
|
|
63
|
-
*/
|
|
64
|
-
product?: string | Stripe.Product | Stripe.DeletedProduct;
|
|
65
|
-
|
|
66
59
|
/**
|
|
67
60
|
* The quantity of products being purchased.
|
|
68
61
|
*/
|
package/types/Mandates.d.ts
CHANGED
|
@@ -104,8 +104,6 @@ declare module 'stripe' {
|
|
|
104
104
|
|
|
105
105
|
paypal?: PaymentMethodDetails.Paypal;
|
|
106
106
|
|
|
107
|
-
payto?: PaymentMethodDetails.Payto;
|
|
108
|
-
|
|
109
107
|
revolut_pay?: PaymentMethodDetails.RevolutPay;
|
|
110
108
|
|
|
111
109
|
sepa_debit?: PaymentMethodDetails.SepaDebit;
|
|
@@ -203,85 +201,10 @@ declare module 'stripe' {
|
|
|
203
201
|
*/
|
|
204
202
|
billing_agreement_id: string | null;
|
|
205
203
|
|
|
206
|
-
/**
|
|
207
|
-
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
|
|
208
|
-
*/
|
|
209
|
-
fingerprint?: string | null;
|
|
210
|
-
|
|
211
204
|
/**
|
|
212
205
|
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
|
|
213
206
|
*/
|
|
214
207
|
payer_id: string | null;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* Owner's verified email. Values are verified or provided by PayPal directly
|
|
218
|
-
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
|
|
219
|
-
*/
|
|
220
|
-
verified_email?: string | null;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
interface Payto {
|
|
224
|
-
/**
|
|
225
|
-
* Amount that will be collected. It is required when `amount_type` is `fixed`.
|
|
226
|
-
*/
|
|
227
|
-
amount: number | null;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
|
|
231
|
-
*/
|
|
232
|
-
amount_type: Payto.AmountType;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
|
|
236
|
-
*/
|
|
237
|
-
end_date: string | null;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* The periodicity at which payments will be collected.
|
|
241
|
-
*/
|
|
242
|
-
payment_schedule: Payto.PaymentSchedule;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
|
|
246
|
-
*/
|
|
247
|
-
payments_per_period: number | null;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* The purpose for which payments are made. Defaults to retail.
|
|
251
|
-
*/
|
|
252
|
-
purpose: Payto.Purpose | null;
|
|
253
|
-
|
|
254
|
-
/**
|
|
255
|
-
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
|
|
256
|
-
*/
|
|
257
|
-
start_date: string | null;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
namespace Payto {
|
|
261
|
-
type AmountType = 'fixed' | 'maximum';
|
|
262
|
-
|
|
263
|
-
type PaymentSchedule =
|
|
264
|
-
| 'adhoc'
|
|
265
|
-
| 'annual'
|
|
266
|
-
| 'daily'
|
|
267
|
-
| 'fortnightly'
|
|
268
|
-
| 'monthly'
|
|
269
|
-
| 'quarterly'
|
|
270
|
-
| 'semi_annual'
|
|
271
|
-
| 'weekly';
|
|
272
|
-
|
|
273
|
-
type Purpose =
|
|
274
|
-
| 'dependant_support'
|
|
275
|
-
| 'government'
|
|
276
|
-
| 'loan'
|
|
277
|
-
| 'mortgage'
|
|
278
|
-
| 'other'
|
|
279
|
-
| 'pension'
|
|
280
|
-
| 'personal'
|
|
281
|
-
| 'retail'
|
|
282
|
-
| 'salary'
|
|
283
|
-
| 'tax'
|
|
284
|
-
| 'utility';
|
|
285
208
|
}
|
|
286
209
|
|
|
287
210
|
interface RevolutPay {}
|