stripe 18.5.0-beta.2 → 18.6.0-beta.1
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 +37 -0
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +55 -55
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources.js +24 -24
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +44 -44
- package/esm/apiVersion.js +1 -1
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources.js +5 -5
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +76 -13
- package/types/Accounts.d.ts +2 -2
- package/types/Balance.d.ts +2 -7
- package/types/BalanceSettings.d.ts +52 -46
- package/types/BalanceSettingsResource.d.ts +55 -46
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/MeterUsageRows.d.ts +1 -1
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +5 -0
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/Charges.d.ts +81 -5
- package/types/Checkout/Sessions.d.ts +70 -2
- package/types/Checkout/SessionsResource.d.ts +117 -3
- package/types/CreditNotesResource.d.ts +3 -3
- package/types/Disputes.d.ts +7 -2
- package/types/Errors.d.ts +45 -45
- package/types/FileLinksResource.d.ts +1 -1
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +3 -1
- package/types/InvoicePaymentsResource.d.ts +3 -0
- package/types/Invoices.d.ts +3 -1
- package/types/InvoicesResource.d.ts +59 -0
- package/types/Issuing/CardsResource.d.ts +10 -0
- package/types/Mandates.d.ts +58 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/PaymentAttemptRecords.d.ts +164 -9
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntents.d.ts +136 -2
- package/types/PaymentIntentsResource.d.ts +280 -3
- package/types/PaymentLinksResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentRecords.d.ts +164 -9
- package/types/PaymentRecordsResource.d.ts +24 -3
- package/types/Payouts.d.ts +1 -1
- package/types/PromotionCodes.d.ts +5 -2
- package/types/QuotePreviewInvoices.d.ts +3 -1
- package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
- package/types/SetupAttempts.d.ts +7 -1
- package/types/SetupIntents.d.ts +95 -1
- package/types/SetupIntentsResource.d.ts +207 -0
- package/types/SubscriptionSchedules.d.ts +47 -0
- package/types/SubscriptionSchedulesResource.d.ts +112 -0
- package/types/SubscriptionsResource.d.ts +119 -7
- package/types/Terminal/Configurations.d.ts +28 -0
- package/types/Terminal/ConfigurationsResource.d.ts +72 -0
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
- package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
- package/types/V2/Core/Accounts.d.ts +49 -0
- package/types/V2/Core/AccountsResource.d.ts +78 -0
- package/types/V2/Core/Persons.d.ts +16 -0
- package/types/V2/EventTypes.d.ts +377 -377
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +5 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/index.d.ts +5 -5
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 18.6.0-beta.1 - 2025-08-27
|
|
4
|
+
This release changes the pinned API version to `2025-08-27.preview`.
|
|
5
|
+
|
|
6
|
+
* [#2381](https://github.com/stripe/stripe-node/pull/2381) Update generated code for beta
|
|
7
|
+
* Add support for `list` and `retrieve` methods on resource `InvoicePayment`
|
|
8
|
+
* Add support for `list` method on resource `Mandate`
|
|
9
|
+
* Add support for `applied` on `V2.Core.Account.configuration.customer`, `V2.Core.Account.configuration.merchant`, `V2.Core.Account.configuration.recipient`, `V2.Core.Account.configuration.storer`, `V2.Core.AccountUpdateParams.configuration.customer`, `V2.Core.AccountUpdateParams.configuration.merchant`, `V2.Core.AccountUpdateParams.configuration.recipient`, and `V2.Core.AccountUpdateParams.configuration.storer`
|
|
10
|
+
* Add support for new values `ao_nif`, `az_tin`, `bd_etin`, `cr_cpj`, `cr_nite`, `do_rcn`, `gt_nit`, `kz_bin`, `mz_nuit`, `pe_ruc`, `pk_ntn`, `sa_crn`, and `sa_tin` on enums `V2.Core.Account.identity.business_details.id_numbers[].type`, `V2.Core.AccountCreateParams.identity.business_details.id_numbers[].type`, and `V2.Core.AccountUpdateParams.identity.business_details.id_numbers[].type`
|
|
11
|
+
* Add support for new values `ao_nif`, `az_tin`, `bd_brc`, `bd_etin`, `bd_nid`, `cr_cpf`, `cr_dimex`, `cr_nite`, `do_rcn`, `gt_nit`, `kz_iin`, `mz_nuit`, `pe_dni`, `pk_cnic`, `pk_snic`, and `sa_tin` on enums `V2.Core.Account.identity.individual.id_numbers[].type`, `V2.Core.AccountCreateParams.identity.individual.id_numbers[].type`, `V2.Core.AccountUpdateParams.identity.individual.id_numbers[].type`, `V2.Core.Person.id_numbers[].type`, `V2.Core.PersonCreateParams.id_numbers[].type`, and `V2.Core.PersonUpdateParams.id_numbers[].type`
|
|
12
|
+
* Change type of `Billing.AlertTriggered.value` from `longInteger` to `decimal_string`
|
|
13
|
+
* Add support for `display_name` on `V2.MoneyManagement.FinancialAccountCreateParams` and `V2.MoneyManagement.FinancialAccount`
|
|
14
|
+
* Add support for new value `currency_conversion` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.transaction_details.category`
|
|
15
|
+
* Add support for `currency_conversion` on `V2.MoneyManagement.Transaction.flow` and `V2.MoneyManagement.TransactionEntry.transaction_details.flow`
|
|
16
|
+
* Add support for new value `currency_conversion` on enums `V2.MoneyManagement.Transaction.flow.type` and `V2.MoneyManagement.TransactionEntry.transaction_details.flow.type`
|
|
17
|
+
* Add support for `payments` on `BalanceSettingUpdateParams` and `BalanceSettings`
|
|
18
|
+
* Remove support for `debit_negative_balances`, `payouts`, and `settlement_timing` on `BalanceSettingUpdateParams` and `BalanceSettings`
|
|
19
|
+
* Add support for `mandate` on `Charge.payment_method_details.pix`, `PaymentAttemptRecord.payment_method_details.pix`, and `PaymentRecord.payment_method_details.pix`
|
|
20
|
+
* Add support for `coupon_data` on `Checkout.SessionCreateParams.discounts[]`
|
|
21
|
+
* Add support for `mandate_options` on `Checkout.Session.payment_method_options.pix`, `Checkout.SessionCreateParams.payment_method_options.pix`, `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix`
|
|
22
|
+
* Change type of `Checkout.Session.payment_method_options.pix.setup_future_usage`, `Checkout.SessionCreateParams.payment_method_options.pix.setup_future_usage`, `PaymentIntent.payment_method_options.pix.setup_future_usage`, `PaymentIntentConfirmParams.payment_method_options.pix.setup_future_usage`, `PaymentIntentCreateParams.payment_method_options.pix.setup_future_usage`, and `PaymentIntentUpdateParams.payment_method_options.pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
|
|
23
|
+
* Add support for `amount` on `Mandate.multi_use`, `PaymentAttemptRecord`, and `PaymentRecord`
|
|
24
|
+
* Add support for `currency` on `Mandate.multi_use`
|
|
25
|
+
* Add support for `pix` on `Mandate.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
|
|
26
|
+
* Add support for `limit` on `PaymentAttemptRecordListParams`
|
|
27
|
+
* Add support for `amount_authorized`, `amount_refunded`, and `application` on `PaymentAttemptRecord` and `PaymentRecord`
|
|
28
|
+
* Add support for `processor_details` on `PaymentAttemptRecord`, `PaymentRecordReportPaymentParams`, and `PaymentRecord`
|
|
29
|
+
* Remove support for `payment_reference` on `PaymentAttemptRecord`, `PaymentRecordReportPaymentParams`, and `PaymentRecord`
|
|
30
|
+
* Add support for `installments` on `PaymentAttemptRecord.payment_method_details.alma` and `PaymentRecord.payment_method_details.alma`
|
|
31
|
+
* Add support for `transaction_id` on `PaymentAttemptRecord.payment_method_details.alma`, `PaymentAttemptRecord.payment_method_details.amazon_pay`, `PaymentAttemptRecord.payment_method_details.billie`, `PaymentAttemptRecord.payment_method_details.kakao_pay`, `PaymentAttemptRecord.payment_method_details.kr_card`, `PaymentAttemptRecord.payment_method_details.naver_pay`, `PaymentAttemptRecord.payment_method_details.payco`, `PaymentAttemptRecord.payment_method_details.revolut_pay`, `PaymentAttemptRecord.payment_method_details.samsung_pay`, `PaymentAttemptRecord.payment_method_details.satispay`, `PaymentRecord.payment_method_details.alma`, `PaymentRecord.payment_method_details.amazon_pay`, `PaymentRecord.payment_method_details.billie`, `PaymentRecord.payment_method_details.kakao_pay`, `PaymentRecord.payment_method_details.kr_card`, `PaymentRecord.payment_method_details.naver_pay`, `PaymentRecord.payment_method_details.payco`, `PaymentRecord.payment_method_details.revolut_pay`, `PaymentRecord.payment_method_details.samsung_pay`, and `PaymentRecord.payment_method_details.satispay`
|
|
32
|
+
* Add support for `location` and `reader` on `PaymentAttemptRecord.payment_method_details.paynow` and `PaymentRecord.payment_method_details.paynow`
|
|
33
|
+
* Add support for `latest_active_mandate` on `PaymentMethod`
|
|
34
|
+
* Change `Payout.payout_method` to be required
|
|
35
|
+
* Add support for `metadata` and `period` on `QuotePreviewSubscriptionSchedule.phases[].add_invoice_items[]`
|
|
36
|
+
* Add support for `pix_display_qr_code` on `SetupIntent.next_action`
|
|
37
|
+
* Add support for `reader_security` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
|
|
38
|
+
* Add support for error codes `customer_session_expired` and `india_recurring_payment_mandate_canceled` on `QuotePreviewInvoice.last_finalization_error`
|
|
39
|
+
|
|
3
40
|
## 18.5.0-beta.2 - 2025-08-06
|
|
4
41
|
* [#2383](https://github.com/stripe/stripe-node/pull/2383) Bring back GA invoice payments APIs that were missing in the public preview SDKs
|
|
5
42
|
* Add support for new resource `InvoicePayment`
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v1932
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
18.
|
|
1
|
+
18.6.0-beta.1
|
package/cjs/Error.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable camelcase */
|
|
3
3
|
/* eslint-disable no-warning-comments */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.TemporarySessionExpiredError = exports.RecipientNotNotifiableError = exports.QuotaExceededError = exports.NotCancelableError = exports.NonZeroBalanceError = exports.InvalidPayoutMethodError = exports.InvalidPaymentMethodError = exports.InsufficientFundsError = exports.FinancialAccountNotOpenError = exports.FeatureNotEnabledError = exports.ControlledByDashboardError = exports.BlockedByStripeError = exports.AlreadyExistsError = exports.AlreadyCanceledError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
|
|
6
6
|
const generateV1Error = (rawStripeError) => {
|
|
7
7
|
switch (rawStripeError.type) {
|
|
8
8
|
case 'card_error':
|
|
@@ -28,34 +28,34 @@ exports.generateV1Error = generateV1Error;
|
|
|
28
28
|
const generateV2Error = (rawStripeError) => {
|
|
29
29
|
switch (rawStripeError.type) {
|
|
30
30
|
// switchCases: The beginning of the section generated from our OpenAPI spec
|
|
31
|
-
case '
|
|
32
|
-
return new
|
|
33
|
-
case 'non_zero_balance':
|
|
34
|
-
return new NonZeroBalanceError(rawStripeError);
|
|
31
|
+
case 'already_canceled':
|
|
32
|
+
return new AlreadyCanceledError(rawStripeError);
|
|
35
33
|
case 'already_exists':
|
|
36
34
|
return new AlreadyExistsError(rawStripeError);
|
|
35
|
+
case 'blocked_by_stripe':
|
|
36
|
+
return new BlockedByStripeError(rawStripeError);
|
|
37
|
+
case 'controlled_by_dashboard':
|
|
38
|
+
return new ControlledByDashboardError(rawStripeError);
|
|
37
39
|
case 'feature_not_enabled':
|
|
38
40
|
return new FeatureNotEnabledError(rawStripeError);
|
|
39
41
|
case 'financial_account_not_open':
|
|
40
42
|
return new FinancialAccountNotOpenError(rawStripeError);
|
|
41
|
-
case 'blocked_by_stripe':
|
|
42
|
-
return new BlockedByStripeError(rawStripeError);
|
|
43
|
-
case 'already_canceled':
|
|
44
|
-
return new AlreadyCanceledError(rawStripeError);
|
|
45
|
-
case 'not_cancelable':
|
|
46
|
-
return new NotCancelableError(rawStripeError);
|
|
47
43
|
case 'insufficient_funds':
|
|
48
44
|
return new InsufficientFundsError(rawStripeError);
|
|
45
|
+
case 'invalid_payment_method':
|
|
46
|
+
return new InvalidPaymentMethodError(rawStripeError);
|
|
47
|
+
case 'invalid_payout_method':
|
|
48
|
+
return new InvalidPayoutMethodError(rawStripeError);
|
|
49
|
+
case 'non_zero_balance':
|
|
50
|
+
return new NonZeroBalanceError(rawStripeError);
|
|
51
|
+
case 'not_cancelable':
|
|
52
|
+
return new NotCancelableError(rawStripeError);
|
|
49
53
|
case 'quota_exceeded':
|
|
50
54
|
return new QuotaExceededError(rawStripeError);
|
|
51
55
|
case 'recipient_not_notifiable':
|
|
52
56
|
return new RecipientNotNotifiableError(rawStripeError);
|
|
53
|
-
case '
|
|
54
|
-
return new
|
|
55
|
-
case 'controlled_by_dashboard':
|
|
56
|
-
return new ControlledByDashboardError(rawStripeError);
|
|
57
|
-
case 'invalid_payment_method':
|
|
58
|
-
return new InvalidPaymentMethodError(rawStripeError);
|
|
57
|
+
case 'temporary_session_expired':
|
|
58
|
+
return new TemporarySessionExpiredError(rawStripeError);
|
|
59
59
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
60
60
|
}
|
|
61
61
|
// Special handling for requests with missing required fields in V2 APIs.
|
|
@@ -220,24 +220,30 @@ class StripeUnknownError extends StripeError {
|
|
|
220
220
|
}
|
|
221
221
|
exports.StripeUnknownError = StripeUnknownError;
|
|
222
222
|
// classDefinitions: The beginning of the section generated from our OpenAPI spec
|
|
223
|
-
class
|
|
224
|
-
constructor(rawStripeError = {}) {
|
|
225
|
-
super(rawStripeError, 'TemporarySessionExpiredError');
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
exports.TemporarySessionExpiredError = TemporarySessionExpiredError;
|
|
229
|
-
class NonZeroBalanceError extends StripeError {
|
|
223
|
+
class AlreadyCanceledError extends StripeError {
|
|
230
224
|
constructor(rawStripeError = {}) {
|
|
231
|
-
super(rawStripeError, '
|
|
225
|
+
super(rawStripeError, 'AlreadyCanceledError');
|
|
232
226
|
}
|
|
233
227
|
}
|
|
234
|
-
exports.
|
|
228
|
+
exports.AlreadyCanceledError = AlreadyCanceledError;
|
|
235
229
|
class AlreadyExistsError extends StripeError {
|
|
236
230
|
constructor(rawStripeError = {}) {
|
|
237
231
|
super(rawStripeError, 'AlreadyExistsError');
|
|
238
232
|
}
|
|
239
233
|
}
|
|
240
234
|
exports.AlreadyExistsError = AlreadyExistsError;
|
|
235
|
+
class BlockedByStripeError extends StripeError {
|
|
236
|
+
constructor(rawStripeError = {}) {
|
|
237
|
+
super(rawStripeError, 'BlockedByStripeError');
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
exports.BlockedByStripeError = BlockedByStripeError;
|
|
241
|
+
class ControlledByDashboardError extends StripeError {
|
|
242
|
+
constructor(rawStripeError = {}) {
|
|
243
|
+
super(rawStripeError, 'ControlledByDashboardError');
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
exports.ControlledByDashboardError = ControlledByDashboardError;
|
|
241
247
|
class FeatureNotEnabledError extends StripeError {
|
|
242
248
|
constructor(rawStripeError = {}) {
|
|
243
249
|
super(rawStripeError, 'FeatureNotEnabledError');
|
|
@@ -250,30 +256,38 @@ class FinancialAccountNotOpenError extends StripeError {
|
|
|
250
256
|
}
|
|
251
257
|
}
|
|
252
258
|
exports.FinancialAccountNotOpenError = FinancialAccountNotOpenError;
|
|
253
|
-
class
|
|
259
|
+
class InsufficientFundsError extends StripeError {
|
|
254
260
|
constructor(rawStripeError = {}) {
|
|
255
|
-
super(rawStripeError, '
|
|
261
|
+
super(rawStripeError, 'InsufficientFundsError');
|
|
256
262
|
}
|
|
257
263
|
}
|
|
258
|
-
exports.
|
|
259
|
-
class
|
|
264
|
+
exports.InsufficientFundsError = InsufficientFundsError;
|
|
265
|
+
class InvalidPaymentMethodError extends StripeError {
|
|
266
|
+
constructor(rawStripeError) {
|
|
267
|
+
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
268
|
+
// @ts-ignore
|
|
269
|
+
this.invalid_param = this.raw.invalid_param;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
exports.InvalidPaymentMethodError = InvalidPaymentMethodError;
|
|
273
|
+
class InvalidPayoutMethodError extends StripeError {
|
|
260
274
|
constructor(rawStripeError = {}) {
|
|
261
|
-
super(rawStripeError, '
|
|
275
|
+
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
262
276
|
}
|
|
263
277
|
}
|
|
264
|
-
exports.
|
|
265
|
-
class
|
|
278
|
+
exports.InvalidPayoutMethodError = InvalidPayoutMethodError;
|
|
279
|
+
class NonZeroBalanceError extends StripeError {
|
|
266
280
|
constructor(rawStripeError = {}) {
|
|
267
|
-
super(rawStripeError, '
|
|
281
|
+
super(rawStripeError, 'NonZeroBalanceError');
|
|
268
282
|
}
|
|
269
283
|
}
|
|
270
|
-
exports.
|
|
271
|
-
class
|
|
284
|
+
exports.NonZeroBalanceError = NonZeroBalanceError;
|
|
285
|
+
class NotCancelableError extends StripeError {
|
|
272
286
|
constructor(rawStripeError = {}) {
|
|
273
|
-
super(rawStripeError, '
|
|
287
|
+
super(rawStripeError, 'NotCancelableError');
|
|
274
288
|
}
|
|
275
289
|
}
|
|
276
|
-
exports.
|
|
290
|
+
exports.NotCancelableError = NotCancelableError;
|
|
277
291
|
class QuotaExceededError extends StripeError {
|
|
278
292
|
constructor(rawStripeError = {}) {
|
|
279
293
|
super(rawStripeError, 'QuotaExceededError');
|
|
@@ -286,24 +300,10 @@ class RecipientNotNotifiableError extends StripeError {
|
|
|
286
300
|
}
|
|
287
301
|
}
|
|
288
302
|
exports.RecipientNotNotifiableError = RecipientNotNotifiableError;
|
|
289
|
-
class
|
|
290
|
-
constructor(rawStripeError = {}) {
|
|
291
|
-
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
exports.InvalidPayoutMethodError = InvalidPayoutMethodError;
|
|
295
|
-
class ControlledByDashboardError extends StripeError {
|
|
303
|
+
class TemporarySessionExpiredError extends StripeError {
|
|
296
304
|
constructor(rawStripeError = {}) {
|
|
297
|
-
super(rawStripeError, '
|
|
298
|
-
}
|
|
299
|
-
}
|
|
300
|
-
exports.ControlledByDashboardError = ControlledByDashboardError;
|
|
301
|
-
class InvalidPaymentMethodError extends StripeError {
|
|
302
|
-
constructor(rawStripeError) {
|
|
303
|
-
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
304
|
-
// @ts-ignore
|
|
305
|
-
this.invalid_param = this.raw.invalid_param;
|
|
305
|
+
super(rawStripeError, 'TemporarySessionExpiredError');
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
|
-
exports.
|
|
308
|
+
exports.TemporarySessionExpiredError = TemporarySessionExpiredError;
|
|
309
309
|
// classDefinitions: The end of the section generated from our OpenAPI spec
|
package/cjs/apiVersion.js
CHANGED
|
@@ -6,4 +6,9 @@ const StripeResource_js_1 = require("../StripeResource.js");
|
|
|
6
6
|
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
7
|
exports.Mandates = StripeResource_js_1.StripeResource.extend({
|
|
8
8
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/mandates/{mandate}' }),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/mandates',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
9
14
|
});
|
package/cjs/resources.js
CHANGED
|
@@ -11,12 +11,12 @@ const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlem
|
|
|
11
11
|
const Adjustments_js_1 = require("./resources/V2/MoneyManagement/Adjustments.js");
|
|
12
12
|
const Alerts_js_1 = require("./resources/Billing/Alerts.js");
|
|
13
13
|
const Associations_js_1 = require("./resources/Tax/Associations.js");
|
|
14
|
-
const Authorizations_js_1 = require("./resources/
|
|
15
|
-
const Authorizations_js_2 = require("./resources/Issuing/Authorizations.js");
|
|
14
|
+
const Authorizations_js_1 = require("./resources/Issuing/Authorizations.js");
|
|
15
|
+
const Authorizations_js_2 = require("./resources/TestHelpers/Issuing/Authorizations.js");
|
|
16
16
|
const Calculations_js_1 = require("./resources/Tax/Calculations.js");
|
|
17
17
|
const Cardholders_js_1 = require("./resources/Issuing/Cardholders.js");
|
|
18
|
-
const Cards_js_1 = require("./resources/
|
|
19
|
-
const Cards_js_2 = require("./resources/Issuing/Cards.js");
|
|
18
|
+
const Cards_js_1 = require("./resources/Issuing/Cards.js");
|
|
19
|
+
const Cards_js_2 = require("./resources/TestHelpers/Issuing/Cards.js");
|
|
20
20
|
const Configurations_js_1 = require("./resources/BillingPortal/Configurations.js");
|
|
21
21
|
const Configurations_js_2 = require("./resources/Terminal/Configurations.js");
|
|
22
22
|
const ConfirmationTokens_js_1 = require("./resources/TestHelpers/ConfirmationTokens.js");
|
|
@@ -70,13 +70,13 @@ const OutboundTransfers_js_2 = require("./resources/Treasury/OutboundTransfers.j
|
|
|
70
70
|
const OutboundTransfers_js_3 = require("./resources/V2/MoneyManagement/OutboundTransfers.js");
|
|
71
71
|
const PayoutMethods_js_1 = require("./resources/V2/MoneyManagement/PayoutMethods.js");
|
|
72
72
|
const PayoutMethodsBankAccountSpec_js_1 = require("./resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js");
|
|
73
|
-
const PersonalizationDesigns_js_1 = require("./resources/
|
|
74
|
-
const PersonalizationDesigns_js_2 = require("./resources/Issuing/PersonalizationDesigns.js");
|
|
73
|
+
const PersonalizationDesigns_js_1 = require("./resources/Issuing/PersonalizationDesigns.js");
|
|
74
|
+
const PersonalizationDesigns_js_2 = require("./resources/TestHelpers/Issuing/PersonalizationDesigns.js");
|
|
75
75
|
const PhysicalBundles_js_1 = require("./resources/Issuing/PhysicalBundles.js");
|
|
76
76
|
const Products_js_1 = require("./resources/Climate/Products.js");
|
|
77
77
|
const ReaderCollectedData_js_1 = require("./resources/Terminal/ReaderCollectedData.js");
|
|
78
|
-
const Readers_js_1 = require("./resources/
|
|
79
|
-
const Readers_js_2 = require("./resources/Terminal/Readers.js");
|
|
78
|
+
const Readers_js_1 = require("./resources/Terminal/Readers.js");
|
|
79
|
+
const Readers_js_2 = require("./resources/TestHelpers/Terminal/Readers.js");
|
|
80
80
|
const ReceivedCredits_js_1 = require("./resources/TestHelpers/Treasury/ReceivedCredits.js");
|
|
81
81
|
const ReceivedCredits_js_2 = require("./resources/Treasury/ReceivedCredits.js");
|
|
82
82
|
const ReceivedCredits_js_3 = require("./resources/V2/MoneyManagement/ReceivedCredits.js");
|
|
@@ -100,10 +100,10 @@ const TestClocks_js_1 = require("./resources/TestHelpers/TestClocks.js");
|
|
|
100
100
|
const Tokens_js_1 = require("./resources/Issuing/Tokens.js");
|
|
101
101
|
const TransactionEntries_js_1 = require("./resources/Treasury/TransactionEntries.js");
|
|
102
102
|
const TransactionEntries_js_2 = require("./resources/V2/MoneyManagement/TransactionEntries.js");
|
|
103
|
-
const Transactions_js_1 = require("./resources/
|
|
104
|
-
const Transactions_js_2 = require("./resources/
|
|
105
|
-
const Transactions_js_3 = require("./resources/
|
|
106
|
-
const Transactions_js_4 = require("./resources/
|
|
103
|
+
const Transactions_js_1 = require("./resources/FinancialConnections/Transactions.js");
|
|
104
|
+
const Transactions_js_2 = require("./resources/Issuing/Transactions.js");
|
|
105
|
+
const Transactions_js_3 = require("./resources/Tax/Transactions.js");
|
|
106
|
+
const Transactions_js_4 = require("./resources/TestHelpers/Issuing/Transactions.js");
|
|
107
107
|
const Transactions_js_5 = require("./resources/Treasury/Transactions.js");
|
|
108
108
|
const Transactions_js_6 = require("./resources/V2/MoneyManagement/Transactions.js");
|
|
109
109
|
const UsBankAccounts_js_1 = require("./resources/V2/Core/Vault/UsBankAccounts.js");
|
|
@@ -271,7 +271,7 @@ exports.FinancialConnections = (0, ResourceNamespace_js_1.resourceNamespace)('fi
|
|
|
271
271
|
Accounts: Accounts_js_1.Accounts,
|
|
272
272
|
Institutions: Institutions_js_1.Institutions,
|
|
273
273
|
Sessions: Sessions_js_3.Sessions,
|
|
274
|
-
Transactions:
|
|
274
|
+
Transactions: Transactions_js_1.Transactions,
|
|
275
275
|
});
|
|
276
276
|
exports.Forwarding = (0, ResourceNamespace_js_1.resourceNamespace)('forwarding', {
|
|
277
277
|
Requests: Requests_js_1.Requests,
|
|
@@ -281,17 +281,17 @@ exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
|
|
|
281
281
|
VerificationSessions: VerificationSessions_js_1.VerificationSessions,
|
|
282
282
|
});
|
|
283
283
|
exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
284
|
-
Authorizations:
|
|
284
|
+
Authorizations: Authorizations_js_1.Authorizations,
|
|
285
285
|
Cardholders: Cardholders_js_1.Cardholders,
|
|
286
|
-
Cards:
|
|
286
|
+
Cards: Cards_js_1.Cards,
|
|
287
287
|
CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
|
|
288
288
|
DisputeSettlementDetails: DisputeSettlementDetails_js_1.DisputeSettlementDetails,
|
|
289
289
|
Disputes: Disputes_js_1.Disputes,
|
|
290
290
|
FraudLiabilityDebits: FraudLiabilityDebits_js_1.FraudLiabilityDebits,
|
|
291
|
-
PersonalizationDesigns:
|
|
291
|
+
PersonalizationDesigns: PersonalizationDesigns_js_1.PersonalizationDesigns,
|
|
292
292
|
PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
|
|
293
293
|
Tokens: Tokens_js_1.Tokens,
|
|
294
|
-
Transactions:
|
|
294
|
+
Transactions: Transactions_js_2.Transactions,
|
|
295
295
|
});
|
|
296
296
|
exports.Privacy = (0, ResourceNamespace_js_1.resourceNamespace)('privacy', {
|
|
297
297
|
RedactionJobs: RedactionJobs_js_1.RedactionJobs,
|
|
@@ -314,7 +314,7 @@ exports.Tax = (0, ResourceNamespace_js_1.resourceNamespace)('tax', {
|
|
|
314
314
|
Forms: Forms_js_1.Forms,
|
|
315
315
|
Registrations: Registrations_js_1.Registrations,
|
|
316
316
|
Settings: Settings_js_1.Settings,
|
|
317
|
-
Transactions:
|
|
317
|
+
Transactions: Transactions_js_3.Transactions,
|
|
318
318
|
});
|
|
319
319
|
exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
|
|
320
320
|
Configurations: Configurations_js_2.Configurations,
|
|
@@ -322,7 +322,7 @@ exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
|
|
|
322
322
|
Locations: Locations_js_1.Locations,
|
|
323
323
|
OnboardingLinks: OnboardingLinks_js_1.OnboardingLinks,
|
|
324
324
|
ReaderCollectedData: ReaderCollectedData_js_1.ReaderCollectedData,
|
|
325
|
-
Readers:
|
|
325
|
+
Readers: Readers_js_1.Readers,
|
|
326
326
|
});
|
|
327
327
|
exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers', {
|
|
328
328
|
ConfirmationTokens: ConfirmationTokens_js_1.ConfirmationTokens,
|
|
@@ -330,13 +330,13 @@ exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers
|
|
|
330
330
|
Refunds: Refunds_js_1.Refunds,
|
|
331
331
|
TestClocks: TestClocks_js_1.TestClocks,
|
|
332
332
|
Issuing: (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
333
|
-
Authorizations:
|
|
334
|
-
Cards:
|
|
335
|
-
PersonalizationDesigns:
|
|
336
|
-
Transactions:
|
|
333
|
+
Authorizations: Authorizations_js_2.Authorizations,
|
|
334
|
+
Cards: Cards_js_2.Cards,
|
|
335
|
+
PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,
|
|
336
|
+
Transactions: Transactions_js_4.Transactions,
|
|
337
337
|
}),
|
|
338
338
|
Terminal: (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
|
|
339
|
-
Readers:
|
|
339
|
+
Readers: Readers_js_2.Readers,
|
|
340
340
|
}),
|
|
341
341
|
Treasury: (0, ResourceNamespace_js_1.resourceNamespace)('treasury', {
|
|
342
342
|
InboundTransfers: InboundTransfers_js_1.InboundTransfers,
|
package/cjs/stripe.core.js
CHANGED
|
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
36
36
|
];
|
|
37
37
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
38
38
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
39
|
-
Stripe.PACKAGE_VERSION = '18.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '18.6.0-beta.1';
|
|
40
40
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
41
41
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
42
42
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
package/esm/Error.js
CHANGED
|
@@ -24,34 +24,34 @@ export const generateV1Error = (rawStripeError) => {
|
|
|
24
24
|
export const generateV2Error = (rawStripeError) => {
|
|
25
25
|
switch (rawStripeError.type) {
|
|
26
26
|
// switchCases: The beginning of the section generated from our OpenAPI spec
|
|
27
|
-
case '
|
|
28
|
-
return new
|
|
29
|
-
case 'non_zero_balance':
|
|
30
|
-
return new NonZeroBalanceError(rawStripeError);
|
|
27
|
+
case 'already_canceled':
|
|
28
|
+
return new AlreadyCanceledError(rawStripeError);
|
|
31
29
|
case 'already_exists':
|
|
32
30
|
return new AlreadyExistsError(rawStripeError);
|
|
31
|
+
case 'blocked_by_stripe':
|
|
32
|
+
return new BlockedByStripeError(rawStripeError);
|
|
33
|
+
case 'controlled_by_dashboard':
|
|
34
|
+
return new ControlledByDashboardError(rawStripeError);
|
|
33
35
|
case 'feature_not_enabled':
|
|
34
36
|
return new FeatureNotEnabledError(rawStripeError);
|
|
35
37
|
case 'financial_account_not_open':
|
|
36
38
|
return new FinancialAccountNotOpenError(rawStripeError);
|
|
37
|
-
case 'blocked_by_stripe':
|
|
38
|
-
return new BlockedByStripeError(rawStripeError);
|
|
39
|
-
case 'already_canceled':
|
|
40
|
-
return new AlreadyCanceledError(rawStripeError);
|
|
41
|
-
case 'not_cancelable':
|
|
42
|
-
return new NotCancelableError(rawStripeError);
|
|
43
39
|
case 'insufficient_funds':
|
|
44
40
|
return new InsufficientFundsError(rawStripeError);
|
|
41
|
+
case 'invalid_payment_method':
|
|
42
|
+
return new InvalidPaymentMethodError(rawStripeError);
|
|
43
|
+
case 'invalid_payout_method':
|
|
44
|
+
return new InvalidPayoutMethodError(rawStripeError);
|
|
45
|
+
case 'non_zero_balance':
|
|
46
|
+
return new NonZeroBalanceError(rawStripeError);
|
|
47
|
+
case 'not_cancelable':
|
|
48
|
+
return new NotCancelableError(rawStripeError);
|
|
45
49
|
case 'quota_exceeded':
|
|
46
50
|
return new QuotaExceededError(rawStripeError);
|
|
47
51
|
case 'recipient_not_notifiable':
|
|
48
52
|
return new RecipientNotNotifiableError(rawStripeError);
|
|
49
|
-
case '
|
|
50
|
-
return new
|
|
51
|
-
case 'controlled_by_dashboard':
|
|
52
|
-
return new ControlledByDashboardError(rawStripeError);
|
|
53
|
-
case 'invalid_payment_method':
|
|
54
|
-
return new InvalidPaymentMethodError(rawStripeError);
|
|
53
|
+
case 'temporary_session_expired':
|
|
54
|
+
return new TemporarySessionExpiredError(rawStripeError);
|
|
55
55
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
56
56
|
}
|
|
57
57
|
// Special handling for requests with missing required fields in V2 APIs.
|
|
@@ -203,19 +203,24 @@ export class StripeUnknownError extends StripeError {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
// classDefinitions: The beginning of the section generated from our OpenAPI spec
|
|
206
|
-
export class
|
|
206
|
+
export class AlreadyCanceledError extends StripeError {
|
|
207
207
|
constructor(rawStripeError = {}) {
|
|
208
|
-
super(rawStripeError, '
|
|
208
|
+
super(rawStripeError, 'AlreadyCanceledError');
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
export class
|
|
211
|
+
export class AlreadyExistsError extends StripeError {
|
|
212
212
|
constructor(rawStripeError = {}) {
|
|
213
|
-
super(rawStripeError, '
|
|
213
|
+
super(rawStripeError, 'AlreadyExistsError');
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
export class
|
|
216
|
+
export class BlockedByStripeError extends StripeError {
|
|
217
217
|
constructor(rawStripeError = {}) {
|
|
218
|
-
super(rawStripeError, '
|
|
218
|
+
super(rawStripeError, 'BlockedByStripeError');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
export class ControlledByDashboardError extends StripeError {
|
|
222
|
+
constructor(rawStripeError = {}) {
|
|
223
|
+
super(rawStripeError, 'ControlledByDashboardError');
|
|
219
224
|
}
|
|
220
225
|
}
|
|
221
226
|
export class FeatureNotEnabledError extends StripeError {
|
|
@@ -228,24 +233,31 @@ export class FinancialAccountNotOpenError extends StripeError {
|
|
|
228
233
|
super(rawStripeError, 'FinancialAccountNotOpenError');
|
|
229
234
|
}
|
|
230
235
|
}
|
|
231
|
-
export class
|
|
236
|
+
export class InsufficientFundsError extends StripeError {
|
|
232
237
|
constructor(rawStripeError = {}) {
|
|
233
|
-
super(rawStripeError, '
|
|
238
|
+
super(rawStripeError, 'InsufficientFundsError');
|
|
234
239
|
}
|
|
235
240
|
}
|
|
236
|
-
export class
|
|
241
|
+
export class InvalidPaymentMethodError extends StripeError {
|
|
242
|
+
constructor(rawStripeError) {
|
|
243
|
+
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
244
|
+
// @ts-ignore
|
|
245
|
+
this.invalid_param = this.raw.invalid_param;
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
export class InvalidPayoutMethodError extends StripeError {
|
|
237
249
|
constructor(rawStripeError = {}) {
|
|
238
|
-
super(rawStripeError, '
|
|
250
|
+
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
239
251
|
}
|
|
240
252
|
}
|
|
241
|
-
export class
|
|
253
|
+
export class NonZeroBalanceError extends StripeError {
|
|
242
254
|
constructor(rawStripeError = {}) {
|
|
243
|
-
super(rawStripeError, '
|
|
255
|
+
super(rawStripeError, 'NonZeroBalanceError');
|
|
244
256
|
}
|
|
245
257
|
}
|
|
246
|
-
export class
|
|
258
|
+
export class NotCancelableError extends StripeError {
|
|
247
259
|
constructor(rawStripeError = {}) {
|
|
248
|
-
super(rawStripeError, '
|
|
260
|
+
super(rawStripeError, 'NotCancelableError');
|
|
249
261
|
}
|
|
250
262
|
}
|
|
251
263
|
export class QuotaExceededError extends StripeError {
|
|
@@ -258,21 +270,9 @@ export class RecipientNotNotifiableError extends StripeError {
|
|
|
258
270
|
super(rawStripeError, 'RecipientNotNotifiableError');
|
|
259
271
|
}
|
|
260
272
|
}
|
|
261
|
-
export class
|
|
262
|
-
constructor(rawStripeError = {}) {
|
|
263
|
-
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
export class ControlledByDashboardError extends StripeError {
|
|
273
|
+
export class TemporarySessionExpiredError extends StripeError {
|
|
267
274
|
constructor(rawStripeError = {}) {
|
|
268
|
-
super(rawStripeError, '
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
export class InvalidPaymentMethodError extends StripeError {
|
|
272
|
-
constructor(rawStripeError) {
|
|
273
|
-
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
274
|
-
// @ts-ignore
|
|
275
|
-
this.invalid_param = this.raw.invalid_param;
|
|
275
|
+
super(rawStripeError, 'TemporarySessionExpiredError');
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
278
|
// classDefinitions: The end of the section generated from our OpenAPI spec
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2025-
|
|
2
|
+
export const ApiVersion = '2025-08-27.preview';
|
|
@@ -3,4 +3,9 @@ import { StripeResource } from '../StripeResource.js';
|
|
|
3
3
|
const stripeMethod = StripeResource.method;
|
|
4
4
|
export const Mandates = StripeResource.extend({
|
|
5
5
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/mandates/{mandate}' }),
|
|
6
|
+
list: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v1/mandates',
|
|
9
|
+
methodType: 'list',
|
|
10
|
+
}),
|
|
6
11
|
});
|
package/esm/resources.js
CHANGED
|
@@ -7,12 +7,12 @@ import { ActiveEntitlements as EntitlementsActiveEntitlements } from './resource
|
|
|
7
7
|
import { Adjustments as V2MoneyManagementAdjustments } from './resources/V2/MoneyManagement/Adjustments.js';
|
|
8
8
|
import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
|
|
9
9
|
import { Associations as TaxAssociations } from './resources/Tax/Associations.js';
|
|
10
|
-
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
11
10
|
import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
|
|
11
|
+
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
12
12
|
import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
|
|
13
13
|
import { Cardholders as IssuingCardholders } from './resources/Issuing/Cardholders.js';
|
|
14
|
-
import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
|
|
15
14
|
import { Cards as IssuingCards } from './resources/Issuing/Cards.js';
|
|
15
|
+
import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
|
|
16
16
|
import { Configurations as BillingPortalConfigurations } from './resources/BillingPortal/Configurations.js';
|
|
17
17
|
import { Configurations as TerminalConfigurations } from './resources/Terminal/Configurations.js';
|
|
18
18
|
import { ConfirmationTokens as TestHelpersConfirmationTokens } from './resources/TestHelpers/ConfirmationTokens.js';
|
|
@@ -66,13 +66,13 @@ import { OutboundTransfers as TreasuryOutboundTransfers } from './resources/Trea
|
|
|
66
66
|
import { OutboundTransfers as V2MoneyManagementOutboundTransfers } from './resources/V2/MoneyManagement/OutboundTransfers.js';
|
|
67
67
|
import { PayoutMethods as V2MoneyManagementPayoutMethods } from './resources/V2/MoneyManagement/PayoutMethods.js';
|
|
68
68
|
import { PayoutMethodsBankAccountSpec as V2MoneyManagementPayoutMethodsBankAccountSpec } from './resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js';
|
|
69
|
-
import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
|
|
70
69
|
import { PersonalizationDesigns as IssuingPersonalizationDesigns } from './resources/Issuing/PersonalizationDesigns.js';
|
|
70
|
+
import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
|
|
71
71
|
import { PhysicalBundles as IssuingPhysicalBundles } from './resources/Issuing/PhysicalBundles.js';
|
|
72
72
|
import { Products as ClimateProducts } from './resources/Climate/Products.js';
|
|
73
73
|
import { ReaderCollectedData as TerminalReaderCollectedData } from './resources/Terminal/ReaderCollectedData.js';
|
|
74
|
-
import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
|
|
75
74
|
import { Readers as TerminalReaders } from './resources/Terminal/Readers.js';
|
|
75
|
+
import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
|
|
76
76
|
import { ReceivedCredits as TestHelpersTreasuryReceivedCredits } from './resources/TestHelpers/Treasury/ReceivedCredits.js';
|
|
77
77
|
import { ReceivedCredits as TreasuryReceivedCredits } from './resources/Treasury/ReceivedCredits.js';
|
|
78
78
|
import { ReceivedCredits as V2MoneyManagementReceivedCredits } from './resources/V2/MoneyManagement/ReceivedCredits.js';
|
|
@@ -96,10 +96,10 @@ import { TestClocks as TestHelpersTestClocks } from './resources/TestHelpers/Tes
|
|
|
96
96
|
import { Tokens as IssuingTokens } from './resources/Issuing/Tokens.js';
|
|
97
97
|
import { TransactionEntries as TreasuryTransactionEntries } from './resources/Treasury/TransactionEntries.js';
|
|
98
98
|
import { TransactionEntries as V2MoneyManagementTransactionEntries } from './resources/V2/MoneyManagement/TransactionEntries.js';
|
|
99
|
-
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
100
99
|
import { Transactions as FinancialConnectionsTransactions } from './resources/FinancialConnections/Transactions.js';
|
|
101
100
|
import { Transactions as IssuingTransactions } from './resources/Issuing/Transactions.js';
|
|
102
101
|
import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js';
|
|
102
|
+
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
103
103
|
import { Transactions as TreasuryTransactions } from './resources/Treasury/Transactions.js';
|
|
104
104
|
import { Transactions as V2MoneyManagementTransactions } from './resources/V2/MoneyManagement/Transactions.js';
|
|
105
105
|
import { UsBankAccounts as V2CoreVaultUsBankAccounts } from './resources/V2/Core/Vault/UsBankAccounts.js';
|
package/esm/stripe.core.js
CHANGED
|
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
33
33
|
];
|
|
34
34
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
35
35
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
36
|
-
Stripe.PACKAGE_VERSION = '18.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '18.6.0-beta.1';
|
|
37
37
|
Stripe.API_VERSION = ApiVersion;
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
39
39
|
Stripe.StripeResource = StripeResource;
|