stripe 17.3.0-beta.1 → 17.4.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 +55 -0
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/V2/Core/EventDestinations.js +41 -0
- package/cjs/resources/V2/Core.js +2 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/V2/Core/EventDestinations.js +38 -0
- package/esm/resources/V2/Core.js +2 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessionsResource.d.ts +12 -4
- package/types/Accounts.d.ts +28 -0
- package/types/AccountsResource.d.ts +83 -1
- package/types/Charges.d.ts +33 -0
- package/types/Checkout/Sessions.d.ts +75 -0
- package/types/Checkout/SessionsResource.d.ts +80 -0
- package/types/ConfirmationTokens.d.ts +17 -0
- package/types/CustomersResource.d.ts +1 -0
- package/types/Disputes.d.ts +3 -3
- package/types/EventTypes.d.ts +18 -0
- package/types/Events.d.ts +1 -0
- package/types/Invoices.d.ts +8 -1
- package/types/InvoicesResource.d.ts +30 -0
- package/types/PaymentIntents.d.ts +25 -1
- package/types/PaymentIntentsResource.d.ts +188 -0
- package/types/PaymentMethodConfigurations.d.ts +144 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +200 -0
- package/types/PaymentMethods.d.ts +17 -0
- package/types/PaymentMethodsResource.d.ts +18 -0
- package/types/QuotePreviewInvoices.d.ts +8 -1
- package/types/Refunds.d.ts +15 -4
- package/types/SetupAttempts.d.ts +28 -1
- package/types/SetupIntents.d.ts +0 -1
- package/types/SetupIntentsResource.d.ts +51 -0
- package/types/Subscriptions.d.ts +8 -0
- package/types/SubscriptionsResource.d.ts +20 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +17 -0
- package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
- package/types/V2/Core/EventsResource.d.ts +1 -1
- package/types/V2/CoreResource.d.ts +1 -0
- package/types/V2/EventDestinations.d.ts +164 -0
- package/types/WebhookEndpointsResource.d.ts +4 -1
- package/types/index.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.4.0-beta.1 - 2024-10-29
|
|
4
|
+
* [#2216](https://github.com/stripe/stripe-node/pull/2216) Update generated code for beta
|
|
5
|
+
* Add support for `trigger_action` method on resource `PaymentIntent`
|
|
6
|
+
* Add support for `id_bank_transfer_payments_bca` and `id_bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
7
|
+
* Add support for `bank_bca_onboarding` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings`
|
|
8
|
+
* Add support for `send_money` on `AccountSessionCreateParams.components.recipients.features`
|
|
9
|
+
* Remove support for value `payout_statement_descriptor_profanity` from enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
|
10
|
+
* Add support for `id_bank_transfer` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentUpdateParams.payment_method_data`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
|
|
11
|
+
* Change `Dispute.enhanced_eligibility_types`, `Dispute.evidence.enhanced_evidence`, and `Dispute.evidence_details.enhanced_eligibility` to be required
|
|
12
|
+
* Add support for `gopay`, `qris`, and `shopeepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
|
|
13
|
+
|
|
14
|
+
## 17.3.0 - 2024-10-29
|
|
15
|
+
* [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code
|
|
16
|
+
* Add support for new resource `V2.EventDestinations`
|
|
17
|
+
* Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`
|
|
18
|
+
* Add support for `submit_card` test helper method on resource `Issuing.Card`
|
|
19
|
+
* Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account`
|
|
20
|
+
* Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
21
|
+
* Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features`
|
|
22
|
+
* Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update`
|
|
23
|
+
* Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional
|
|
24
|
+
* Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
25
|
+
* Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
26
|
+
* Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
27
|
+
* Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
28
|
+
* Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
29
|
+
* Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
|
|
30
|
+
* Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
|
|
31
|
+
* Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
32
|
+
* Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location`
|
|
33
|
+
* Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
34
|
+
* Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence`
|
|
35
|
+
* Add support for `enhanced_eligibility_types` on `Dispute`
|
|
36
|
+
* Add support for `enhanced_eligibility` on `Dispute.evidence_details`
|
|
37
|
+
* Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type`
|
|
38
|
+
* Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request`
|
|
39
|
+
* Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams`
|
|
40
|
+
* Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]`
|
|
41
|
+
* Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
|
|
42
|
+
* Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
|
|
43
|
+
* Add support for `amazon_pay` on `PaymentMethodDomain`
|
|
44
|
+
* Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails`
|
|
45
|
+
* Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate`
|
|
46
|
+
* Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
|
|
47
|
+
* Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type`
|
|
48
|
+
* Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
|
|
49
|
+
* Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
50
|
+
* Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version`
|
|
51
|
+
|
|
3
52
|
## 17.3.0-beta.1 - 2024-10-18
|
|
4
53
|
* [#2206](https://github.com/stripe/stripe-node/pull/2206) Update generated code for beta
|
|
5
54
|
* Add support for `alma_payments`, `gopay_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, `qris_payments`, `samsung_pay_payments`, `shopeepay_payments`, `treasury_evolve`, `treasury_fifth_third`, and `treasury_goldman_sachs` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
@@ -25,6 +74,12 @@
|
|
|
25
74
|
* Add support for `bank` on `Treasury.FinancialAccountCreateParams.features.financial_addresses.aba`, `Treasury.FinancialAccountFeatures.financial_addresses.aba`, `Treasury.FinancialAccountUpdateFeaturesParams.financial_addresses.aba`, and `Treasury.FinancialAccountUpdateParams.features.financial_addresses.aba`
|
|
26
75
|
* [#2209](https://github.com/stripe/stripe-node/pull/2209) Ramya/merge node beta
|
|
27
76
|
|
|
77
|
+
## 17.2.1 - 2024-10-18
|
|
78
|
+
* [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes
|
|
79
|
+
|
|
80
|
+
- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
|
|
81
|
+
* [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link
|
|
82
|
+
|
|
28
83
|
## 17.2.0 - 2024-10-09
|
|
29
84
|
* [#2201](https://github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed
|
|
30
85
|
* `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
17.
|
|
1
|
+
17.4.0-beta.1
|
package/cjs/apiVersion.js
CHANGED
|
@@ -48,6 +48,10 @@ exports.PaymentIntents = StripeResource_js_1.StripeResource.extend({
|
|
|
48
48
|
fullPath: '/v1/payment_intents/search',
|
|
49
49
|
methodType: 'search',
|
|
50
50
|
}),
|
|
51
|
+
triggerAction: stripeMethod({
|
|
52
|
+
method: 'POST',
|
|
53
|
+
fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
|
|
54
|
+
}),
|
|
51
55
|
verifyMicrodeposits: stripeMethod({
|
|
52
56
|
method: 'POST',
|
|
53
57
|
fullPath: '/v1/payment_intents/{intent}/verify_microdeposits',
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.EventDestinations = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.EventDestinations = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
create: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v2/core/event_destinations',
|
|
11
|
+
}),
|
|
12
|
+
retrieve: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v2/core/event_destinations/{id}',
|
|
15
|
+
}),
|
|
16
|
+
update: stripeMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
fullPath: '/v2/core/event_destinations/{id}',
|
|
19
|
+
}),
|
|
20
|
+
list: stripeMethod({
|
|
21
|
+
method: 'GET',
|
|
22
|
+
fullPath: '/v2/core/event_destinations',
|
|
23
|
+
methodType: 'list',
|
|
24
|
+
}),
|
|
25
|
+
del: stripeMethod({
|
|
26
|
+
method: 'DELETE',
|
|
27
|
+
fullPath: '/v2/core/event_destinations/{id}',
|
|
28
|
+
}),
|
|
29
|
+
disable: stripeMethod({
|
|
30
|
+
method: 'POST',
|
|
31
|
+
fullPath: '/v2/core/event_destinations/{id}/disable',
|
|
32
|
+
}),
|
|
33
|
+
enable: stripeMethod({
|
|
34
|
+
method: 'POST',
|
|
35
|
+
fullPath: '/v2/core/event_destinations/{id}/enable',
|
|
36
|
+
}),
|
|
37
|
+
ping: stripeMethod({
|
|
38
|
+
method: 'POST',
|
|
39
|
+
fullPath: '/v2/core/event_destinations/{id}/ping',
|
|
40
|
+
}),
|
|
41
|
+
});
|
package/cjs/resources/V2/Core.js
CHANGED
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Core = void 0;
|
|
5
5
|
const StripeResource_js_1 = require("../../StripeResource.js");
|
|
6
|
+
const EventDestinations_js_1 = require("./Core/EventDestinations.js");
|
|
6
7
|
const Events_js_1 = require("./Core/Events.js");
|
|
7
8
|
exports.Core = StripeResource_js_1.StripeResource.extend({
|
|
8
9
|
constructor: function (...args) {
|
|
9
10
|
StripeResource_js_1.StripeResource.apply(this, args);
|
|
11
|
+
this.eventDestinations = new EventDestinations_js_1.EventDestinations(...args);
|
|
10
12
|
this.events = new Events_js_1.Events(...args);
|
|
11
13
|
},
|
|
12
14
|
});
|
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 = '17.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '17.4.0-beta.1';
|
|
40
40
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
41
41
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
42
42
|
Stripe.resources = resources;
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2024-
|
|
2
|
+
export const ApiVersion = '2024-10-28.acacia';
|
|
@@ -45,6 +45,10 @@ export const PaymentIntents = StripeResource.extend({
|
|
|
45
45
|
fullPath: '/v1/payment_intents/search',
|
|
46
46
|
methodType: 'search',
|
|
47
47
|
}),
|
|
48
|
+
triggerAction: stripeMethod({
|
|
49
|
+
method: 'POST',
|
|
50
|
+
fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
|
|
51
|
+
}),
|
|
48
52
|
verifyMicrodeposits: stripeMethod({
|
|
49
53
|
method: 'POST',
|
|
50
54
|
fullPath: '/v1/payment_intents/{intent}/verify_microdeposits',
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const EventDestinations = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v2/core/event_destinations',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v2/core/event_destinations/{id}',
|
|
12
|
+
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v2/core/event_destinations/{id}',
|
|
16
|
+
}),
|
|
17
|
+
list: stripeMethod({
|
|
18
|
+
method: 'GET',
|
|
19
|
+
fullPath: '/v2/core/event_destinations',
|
|
20
|
+
methodType: 'list',
|
|
21
|
+
}),
|
|
22
|
+
del: stripeMethod({
|
|
23
|
+
method: 'DELETE',
|
|
24
|
+
fullPath: '/v2/core/event_destinations/{id}',
|
|
25
|
+
}),
|
|
26
|
+
disable: stripeMethod({
|
|
27
|
+
method: 'POST',
|
|
28
|
+
fullPath: '/v2/core/event_destinations/{id}/disable',
|
|
29
|
+
}),
|
|
30
|
+
enable: stripeMethod({
|
|
31
|
+
method: 'POST',
|
|
32
|
+
fullPath: '/v2/core/event_destinations/{id}/enable',
|
|
33
|
+
}),
|
|
34
|
+
ping: stripeMethod({
|
|
35
|
+
method: 'POST',
|
|
36
|
+
fullPath: '/v2/core/event_destinations/{id}/ping',
|
|
37
|
+
}),
|
|
38
|
+
});
|
package/esm/resources/V2/Core.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
2
|
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
import { EventDestinations } from './Core/EventDestinations.js';
|
|
3
4
|
import { Events } from './Core/Events.js';
|
|
4
5
|
export const Core = StripeResource.extend({
|
|
5
6
|
constructor: function (...args) {
|
|
6
7
|
StripeResource.apply(this, args);
|
|
8
|
+
this.eventDestinations = new EventDestinations(...args);
|
|
7
9
|
this.events = new Events(...args);
|
|
8
10
|
},
|
|
9
11
|
});
|
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 = '17.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '17.4.0-beta.1';
|
|
37
37
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
38
38
|
Stripe.StripeResource = StripeResource;
|
|
39
39
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -121,6 +121,9 @@ declare module 'stripe' {
|
|
|
121
121
|
*/
|
|
122
122
|
payouts_list?: Components.PayoutsList;
|
|
123
123
|
|
|
124
|
+
/**
|
|
125
|
+
* Configuration for the recipients component.
|
|
126
|
+
*/
|
|
124
127
|
recipients?: Components.Recipients;
|
|
125
128
|
|
|
126
129
|
/**
|
|
@@ -361,6 +364,9 @@ declare module 'stripe' {
|
|
|
361
364
|
*/
|
|
362
365
|
enabled: boolean;
|
|
363
366
|
|
|
367
|
+
/**
|
|
368
|
+
* The list of features enabled in the embedded component.
|
|
369
|
+
*/
|
|
364
370
|
features?: FinancialAccount.Features;
|
|
365
371
|
}
|
|
366
372
|
|
|
@@ -640,14 +646,16 @@ declare module 'stripe' {
|
|
|
640
646
|
*/
|
|
641
647
|
enabled: boolean;
|
|
642
648
|
|
|
643
|
-
/**
|
|
644
|
-
* The list of features enabled in the embedded component.
|
|
645
|
-
*/
|
|
646
649
|
features?: Recipients.Features;
|
|
647
650
|
}
|
|
648
651
|
|
|
649
652
|
namespace Recipients {
|
|
650
|
-
interface Features {
|
|
653
|
+
interface Features {
|
|
654
|
+
/**
|
|
655
|
+
* Whether to allow sending money.
|
|
656
|
+
*/
|
|
657
|
+
send_money?: boolean;
|
|
658
|
+
}
|
|
651
659
|
}
|
|
652
660
|
|
|
653
661
|
interface ReportingChart {
|
package/types/Accounts.d.ts
CHANGED
|
@@ -324,6 +324,16 @@ declare module 'stripe' {
|
|
|
324
324
|
*/
|
|
325
325
|
grabpay_payments?: Capabilities.GrabpayPayments;
|
|
326
326
|
|
|
327
|
+
/**
|
|
328
|
+
* The status of the Indonesia Bank Transfer payments capability of the account, or whether the account can directly process Indonesia Bank Transfer charges.
|
|
329
|
+
*/
|
|
330
|
+
id_bank_transfer_payments?: Capabilities.IdBankTransferPayments;
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* The status of Bank BCA onboarding of the account.
|
|
334
|
+
*/
|
|
335
|
+
id_bank_transfer_payments_bca?: Capabilities.IdBankTransferPaymentsBca;
|
|
336
|
+
|
|
327
337
|
/**
|
|
328
338
|
* The status of the iDEAL payments capability of the account, or whether the account can directly process iDEAL charges.
|
|
329
339
|
*/
|
|
@@ -578,6 +588,10 @@ declare module 'stripe' {
|
|
|
578
588
|
|
|
579
589
|
type GrabpayPayments = 'active' | 'inactive' | 'pending';
|
|
580
590
|
|
|
591
|
+
type IdBankTransferPayments = 'active' | 'inactive' | 'pending';
|
|
592
|
+
|
|
593
|
+
type IdBankTransferPaymentsBca = 'active' | 'inactive' | 'pending';
|
|
594
|
+
|
|
581
595
|
type IdealPayments = 'active' | 'inactive' | 'pending';
|
|
582
596
|
|
|
583
597
|
type IndiaInternationalPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -1363,6 +1377,8 @@ declare module 'stripe' {
|
|
|
1363
1377
|
interface Settings {
|
|
1364
1378
|
bacs_debit_payments?: Settings.BacsDebitPayments;
|
|
1365
1379
|
|
|
1380
|
+
bank_bca_onboarding?: Settings.BankBcaOnboarding;
|
|
1381
|
+
|
|
1366
1382
|
branding: Settings.Branding;
|
|
1367
1383
|
|
|
1368
1384
|
capital?: Settings.Capital;
|
|
@@ -1399,6 +1415,18 @@ declare module 'stripe' {
|
|
|
1399
1415
|
service_user_number: string | null;
|
|
1400
1416
|
}
|
|
1401
1417
|
|
|
1418
|
+
interface BankBcaOnboarding {
|
|
1419
|
+
/**
|
|
1420
|
+
* Bank BCA business account holder name.
|
|
1421
|
+
*/
|
|
1422
|
+
account_holder_name?: string;
|
|
1423
|
+
|
|
1424
|
+
/**
|
|
1425
|
+
* Bank BCA business account number.
|
|
1426
|
+
*/
|
|
1427
|
+
business_account_number?: string;
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1402
1430
|
interface Branding {
|
|
1403
1431
|
/**
|
|
1404
1432
|
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
|
|
@@ -309,6 +309,16 @@ declare module 'stripe' {
|
|
|
309
309
|
*/
|
|
310
310
|
grabpay_payments?: Capabilities.GrabpayPayments;
|
|
311
311
|
|
|
312
|
+
/**
|
|
313
|
+
* The id_bank_transfer_payments capability.
|
|
314
|
+
*/
|
|
315
|
+
id_bank_transfer_payments?: Capabilities.IdBankTransferPayments;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* The id_bank_transfer_payments_bca capability.
|
|
319
|
+
*/
|
|
320
|
+
id_bank_transfer_payments_bca?: Capabilities.IdBankTransferPaymentsBca;
|
|
321
|
+
|
|
312
322
|
/**
|
|
313
323
|
* The ideal_payments capability.
|
|
314
324
|
*/
|
|
@@ -668,6 +678,20 @@ declare module 'stripe' {
|
|
|
668
678
|
requested?: boolean;
|
|
669
679
|
}
|
|
670
680
|
|
|
681
|
+
interface IdBankTransferPayments {
|
|
682
|
+
/**
|
|
683
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
684
|
+
*/
|
|
685
|
+
requested?: boolean;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
interface IdBankTransferPaymentsBca {
|
|
689
|
+
/**
|
|
690
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
691
|
+
*/
|
|
692
|
+
requested?: boolean;
|
|
693
|
+
}
|
|
694
|
+
|
|
671
695
|
interface IdealPayments {
|
|
672
696
|
/**
|
|
673
697
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -1593,6 +1617,11 @@ declare module 'stripe' {
|
|
|
1593
1617
|
*/
|
|
1594
1618
|
bacs_debit_payments?: Settings.BacsDebitPayments;
|
|
1595
1619
|
|
|
1620
|
+
/**
|
|
1621
|
+
* Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
|
|
1622
|
+
*/
|
|
1623
|
+
bank_bca_onboarding?: Settings.BankBcaOnboarding;
|
|
1624
|
+
|
|
1596
1625
|
/**
|
|
1597
1626
|
* Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
|
|
1598
1627
|
*/
|
|
@@ -1642,6 +1671,18 @@ declare module 'stripe' {
|
|
|
1642
1671
|
display_name?: string;
|
|
1643
1672
|
}
|
|
1644
1673
|
|
|
1674
|
+
interface BankBcaOnboarding {
|
|
1675
|
+
/**
|
|
1676
|
+
* Bank BCA business account holder name
|
|
1677
|
+
*/
|
|
1678
|
+
account_holder_name?: string;
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* Bank BCA business account number
|
|
1682
|
+
*/
|
|
1683
|
+
business_account_number?: string;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1645
1686
|
interface Branding {
|
|
1646
1687
|
/**
|
|
1647
1688
|
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
|
|
@@ -2214,6 +2255,16 @@ declare module 'stripe' {
|
|
|
2214
2255
|
*/
|
|
2215
2256
|
grabpay_payments?: Capabilities.GrabpayPayments;
|
|
2216
2257
|
|
|
2258
|
+
/**
|
|
2259
|
+
* The id_bank_transfer_payments capability.
|
|
2260
|
+
*/
|
|
2261
|
+
id_bank_transfer_payments?: Capabilities.IdBankTransferPayments;
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* The id_bank_transfer_payments_bca capability.
|
|
2265
|
+
*/
|
|
2266
|
+
id_bank_transfer_payments_bca?: Capabilities.IdBankTransferPaymentsBca;
|
|
2267
|
+
|
|
2217
2268
|
/**
|
|
2218
2269
|
* The ideal_payments capability.
|
|
2219
2270
|
*/
|
|
@@ -2573,6 +2624,20 @@ declare module 'stripe' {
|
|
|
2573
2624
|
requested?: boolean;
|
|
2574
2625
|
}
|
|
2575
2626
|
|
|
2627
|
+
interface IdBankTransferPayments {
|
|
2628
|
+
/**
|
|
2629
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2630
|
+
*/
|
|
2631
|
+
requested?: boolean;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
interface IdBankTransferPaymentsBca {
|
|
2635
|
+
/**
|
|
2636
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2637
|
+
*/
|
|
2638
|
+
requested?: boolean;
|
|
2639
|
+
}
|
|
2640
|
+
|
|
2576
2641
|
interface IdealPayments {
|
|
2577
2642
|
/**
|
|
2578
2643
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -3407,6 +3472,11 @@ declare module 'stripe' {
|
|
|
3407
3472
|
*/
|
|
3408
3473
|
bacs_debit_payments?: Settings.BacsDebitPayments;
|
|
3409
3474
|
|
|
3475
|
+
/**
|
|
3476
|
+
* Settings specific to bank BCA onboarding for Indonesia bank transfers payments method.
|
|
3477
|
+
*/
|
|
3478
|
+
bank_bca_onboarding?: Settings.BankBcaOnboarding;
|
|
3479
|
+
|
|
3410
3480
|
/**
|
|
3411
3481
|
* Settings used to apply the account's branding to email receipts, invoices, Checkout, and other products.
|
|
3412
3482
|
*/
|
|
@@ -3461,6 +3531,18 @@ declare module 'stripe' {
|
|
|
3461
3531
|
display_name?: string;
|
|
3462
3532
|
}
|
|
3463
3533
|
|
|
3534
|
+
interface BankBcaOnboarding {
|
|
3535
|
+
/**
|
|
3536
|
+
* Bank BCA business account holder name
|
|
3537
|
+
*/
|
|
3538
|
+
account_holder_name?: string;
|
|
3539
|
+
|
|
3540
|
+
/**
|
|
3541
|
+
* Bank BCA business account number
|
|
3542
|
+
*/
|
|
3543
|
+
business_account_number?: string;
|
|
3544
|
+
}
|
|
3545
|
+
|
|
3464
3546
|
interface Branding {
|
|
3465
3547
|
/**
|
|
3466
3548
|
* (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) An icon for the account. Must be square and at least 128px x 128px.
|
|
@@ -4756,7 +4838,7 @@ declare module 'stripe' {
|
|
|
4756
4838
|
): Promise<Stripe.Response<Stripe.ExternalAccount>>;
|
|
4757
4839
|
|
|
4758
4840
|
/**
|
|
4759
|
-
* Creates a
|
|
4841
|
+
* Creates a login link for a connected account to access the Express Dashboard.
|
|
4760
4842
|
*
|
|
4761
4843
|
* You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform.
|
|
4762
4844
|
*/
|
package/types/Charges.d.ts
CHANGED
|
@@ -412,6 +412,8 @@ declare module 'stripe' {
|
|
|
412
412
|
|
|
413
413
|
grabpay?: PaymentMethodDetails.Grabpay;
|
|
414
414
|
|
|
415
|
+
id_bank_transfer?: PaymentMethodDetails.IdBankTransfer;
|
|
416
|
+
|
|
415
417
|
ideal?: PaymentMethodDetails.Ideal;
|
|
416
418
|
|
|
417
419
|
interac_present?: PaymentMethodDetails.InteracPresent;
|
|
@@ -1471,6 +1473,37 @@ declare module 'stripe' {
|
|
|
1471
1473
|
transaction_id: string | null;
|
|
1472
1474
|
}
|
|
1473
1475
|
|
|
1476
|
+
interface IdBankTransfer {
|
|
1477
|
+
/**
|
|
1478
|
+
* Account number of the bank account to transfer funds to.
|
|
1479
|
+
*/
|
|
1480
|
+
account_number: string;
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* Bank where the account is located.
|
|
1484
|
+
*/
|
|
1485
|
+
bank: IdBankTransfer.Bank;
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* Local bank code of the bank.
|
|
1489
|
+
*/
|
|
1490
|
+
bank_code?: string;
|
|
1491
|
+
|
|
1492
|
+
/**
|
|
1493
|
+
* Name of the bank associated with the bank account.
|
|
1494
|
+
*/
|
|
1495
|
+
bank_name?: string;
|
|
1496
|
+
|
|
1497
|
+
/**
|
|
1498
|
+
* Merchant name and billing details name, for the customer to check for the correct merchant when performing the bank transfer.
|
|
1499
|
+
*/
|
|
1500
|
+
display_name?: string;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
namespace IdBankTransfer {
|
|
1504
|
+
type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata';
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1474
1507
|
interface Ideal {
|
|
1475
1508
|
/**
|
|
1476
1509
|
* The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
|