stripe 9.0.0 → 9.3.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 +35 -0
- package/VERSION +1 -1
- package/lib/resources/Apps/Secrets.js +31 -0
- package/lib/resources/Customers.js +5 -0
- package/lib/resources/FinancialConnections/Accounts.js +12 -0
- package/lib/resources/TestHelpers/Treasury/InboundTransfers.js +25 -0
- package/lib/resources/TestHelpers/Treasury/OutboundPayments.js +25 -0
- package/lib/resources/TestHelpers/Treasury/OutboundTransfers.js +25 -0
- package/lib/resources/TestHelpers/Treasury/ReceivedCredits.js +15 -0
- package/lib/resources/TestHelpers/Treasury/ReceivedDebits.js +15 -0
- package/lib/resources/Treasury/CreditReversals.js +26 -0
- package/lib/resources/Treasury/DebitReversals.js +26 -0
- package/lib/resources/Treasury/FinancialAccounts.js +41 -0
- package/lib/resources/Treasury/InboundTransfers.js +31 -0
- package/lib/resources/Treasury/OutboundPayments.js +31 -0
- package/lib/resources/Treasury/OutboundTransfers.js +31 -0
- package/lib/resources/Treasury/ReceivedCredits.js +21 -0
- package/lib/resources/Treasury/ReceivedDebits.js +21 -0
- package/lib/resources/Treasury/TransactionEntries.js +21 -0
- package/lib/resources/Treasury/Transactions.js +21 -0
- package/lib/resources.js +22 -0
- package/package.json +1 -1
- package/types/2020-08-27/Accounts.d.ts +5 -5
- package/types/2020-08-27/Apps/Secrets.d.ts +241 -0
- package/types/2020-08-27/BillingPortal/Configurations.d.ts +1 -1
- package/types/2020-08-27/BillingPortal/Sessions.d.ts +1 -1
- package/types/2020-08-27/Charges.d.ts +8 -0
- package/types/2020-08-27/Checkout/Sessions.d.ts +51 -3
- package/types/2020-08-27/Customers.d.ts +24 -0
- package/types/2020-08-27/Discounts.d.ts +4 -4
- package/types/2020-08-27/FinancialConnections/Accounts.d.ts +63 -0
- package/types/2020-08-27/Invoices.d.ts +3 -0
- package/types/2020-08-27/Issuing/Authorizations.d.ts +22 -0
- package/types/2020-08-27/Issuing/Cards.d.ts +7 -0
- package/types/2020-08-27/Issuing/Disputes.d.ts +29 -0
- package/types/2020-08-27/Issuing/Transactions.d.ts +17 -0
- package/types/2020-08-27/LineItems.d.ts +2 -3
- package/types/2020-08-27/Mandates.d.ts +4 -0
- package/types/2020-08-27/Orders.d.ts +84 -4
- package/types/2020-08-27/PaymentIntents.d.ts +332 -2
- package/types/2020-08-27/PaymentLinks.d.ts +167 -0
- package/types/2020-08-27/PaymentMethods.d.ts +73 -0
- package/types/2020-08-27/PromotionCodes.d.ts +2 -2
- package/types/2020-08-27/Quotes.d.ts +6 -9
- package/types/2020-08-27/Refunds.d.ts +1 -1
- package/types/2020-08-27/SetupAttempts.d.ts +4 -0
- package/types/2020-08-27/SetupIntents.d.ts +157 -0
- package/types/2020-08-27/SubscriptionSchedules.d.ts +15 -0
- package/types/2020-08-27/Subscriptions.d.ts +41 -2
- package/types/2020-08-27/Terminal/Configurations.d.ts +63 -0
- package/types/2020-08-27/TestHelpers/Treasury/InboundTransfers.d.ts +108 -0
- package/types/2020-08-27/TestHelpers/Treasury/OutboundPayments.d.ts +105 -0
- package/types/2020-08-27/TestHelpers/Treasury/OutboundTransfers.d.ts +105 -0
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts +93 -0
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts +91 -0
- package/types/2020-08-27/Tokens.d.ts +2 -2
- package/types/2020-08-27/Treasury/CreditReversals.d.ts +168 -0
- package/types/2020-08-27/Treasury/DebitReversals.d.ts +187 -0
- package/types/2020-08-27/Treasury/FinancialAccountFeatures.d.ts +622 -0
- package/types/2020-08-27/Treasury/FinancialAccounts.d.ts +833 -0
- package/types/2020-08-27/Treasury/InboundTransfers.d.ts +349 -0
- package/types/2020-08-27/Treasury/OutboundPayments.d.ts +550 -0
- package/types/2020-08-27/Treasury/OutboundTransfers.d.ts +385 -0
- package/types/2020-08-27/Treasury/ReceivedCredits.d.ts +303 -0
- package/types/2020-08-27/Treasury/ReceivedDebits.d.ts +231 -0
- package/types/2020-08-27/Treasury/TransactionEntries.d.ts +257 -0
- package/types/2020-08-27/Treasury/Transactions.d.ts +268 -0
- package/types/2020-08-27/WebhookEndpoints.d.ts +62 -2
- package/types/2020-08-27/index.d.ts +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 9.3.0 - 2022-05-23
|
|
4
|
+
* [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates
|
|
5
|
+
* Add support for new resource `Apps.Secret`
|
|
6
|
+
* Add support for `affirm` on `Charge.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`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
7
|
+
* Add support for `link` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `OrderCreateParams.payment.settings.payment_method_options`, `OrderUpdateParams.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`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
|
|
8
|
+
* Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type`
|
|
9
|
+
* Add support for new value `link` 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[]`
|
|
10
|
+
* Add support for new values `affirm` and `link` on enums `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`
|
|
11
|
+
* Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type`
|
|
12
|
+
* Add support for new values `affirm` and `link` on enum `PaymentMethod.type`
|
|
13
|
+
|
|
14
|
+
## 9.2.0 - 2022-05-19
|
|
15
|
+
* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates
|
|
16
|
+
* Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction`
|
|
17
|
+
* Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `IssuingDisputeCreateParams`
|
|
18
|
+
* Add support for `retrieve_payment_method` method on resource `Customer`
|
|
19
|
+
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
|
20
|
+
* Change `BillingPortalConfigurationCreateParams.features.customer_update.allowed_updates` to be optional
|
|
21
|
+
* Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)`
|
|
22
|
+
* Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.Session.payment_method_options`
|
|
23
|
+
* Add support for `financial_account` on `Issuing.Card` and `IssuingCardCreateParams`
|
|
24
|
+
* Add support for `client_secret` on `Order`
|
|
25
|
+
* Add support for `networks` on `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `PaymentMethod.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account`
|
|
26
|
+
* Add support for `attach_to_self` and `flow_directions` on `SetupIntent`
|
|
27
|
+
* Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings`
|
|
28
|
+
* Add support for `czk` on `Terminal.Configuration.tipping`, `TerminalConfigurationCreateParams.tipping`, and `TerminalConfigurationUpdateParams.tipping`
|
|
29
|
+
|
|
30
|
+
## 9.1.0 - 2022-05-11
|
|
31
|
+
* [#1420](https://github.com/stripe/stripe-node/pull/1420) API Updates
|
|
32
|
+
* Add support for `description` on `CheckoutSessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
|
|
33
|
+
* Add support for `consent_collection`, `payment_intent_data`, `shipping_options`, `submit_type`, and `tax_id_collection` on `PaymentLinkCreateParams` and `PaymentLink`
|
|
34
|
+
* Add support for `customer_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
|
|
35
|
+
* Add support for `metadata` on `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]`
|
|
36
|
+
* Add support for new value `billing_portal.session.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
37
|
+
|
|
3
38
|
## 9.0.0 - 2022-05-09
|
|
4
39
|
Major version release - The [migration guide](https://github.com/stripe/stripe-node/wiki/Migration-Guide-for-v9) contains a detailed list of backwards-incompatible changes with upgrade instructions.
|
|
5
40
|
(⚠️ = breaking changes):
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.
|
|
1
|
+
9.3.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'apps/secrets',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
|
|
22
|
+
deleteWhere: stripeMethod({
|
|
23
|
+
method: 'POST',
|
|
24
|
+
path: '/delete',
|
|
25
|
+
}),
|
|
26
|
+
|
|
27
|
+
find: stripeMethod({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
path: '/find',
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
@@ -50,6 +50,11 @@ module.exports = StripeResource.extend({
|
|
|
50
50
|
methodType: 'list',
|
|
51
51
|
}),
|
|
52
52
|
|
|
53
|
+
retrievePaymentMethod: stripeMethod({
|
|
54
|
+
method: 'GET',
|
|
55
|
+
path: '/{customer}/payment_methods/{paymentMethod}',
|
|
56
|
+
}),
|
|
57
|
+
|
|
53
58
|
search: stripeMethod({
|
|
54
59
|
method: 'GET',
|
|
55
60
|
path: '/search',
|
|
@@ -13,11 +13,23 @@ module.exports = StripeResource.extend({
|
|
|
13
13
|
path: '/{account}',
|
|
14
14
|
}),
|
|
15
15
|
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
|
|
16
22
|
disconnect: stripeMethod({
|
|
17
23
|
method: 'POST',
|
|
18
24
|
path: '/{account}/disconnect',
|
|
19
25
|
}),
|
|
20
26
|
|
|
27
|
+
listOwners: stripeMethod({
|
|
28
|
+
method: 'GET',
|
|
29
|
+
path: '/{account}/owners',
|
|
30
|
+
methodType: 'list',
|
|
31
|
+
}),
|
|
32
|
+
|
|
21
33
|
refresh: stripeMethod({
|
|
22
34
|
method: 'POST',
|
|
23
35
|
path: '/{account}/refresh',
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'test_helpers/treasury/inbound_transfers',
|
|
10
|
+
|
|
11
|
+
fail: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '/{id}/fail',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
returnInboundTransfer: stripeMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
path: '/{id}/return',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
succeed: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '/{id}/succeed',
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'test_helpers/treasury/outbound_payments',
|
|
10
|
+
|
|
11
|
+
fail: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '/{id}/fail',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
post: stripeMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
path: '/{id}/post',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
returnOutboundPayment: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '/{id}/return',
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'test_helpers/treasury/outbound_transfers',
|
|
10
|
+
|
|
11
|
+
fail: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '/{outboundTransfer}/fail',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
post: stripeMethod({
|
|
17
|
+
method: 'POST',
|
|
18
|
+
path: '/{outboundTransfer}/post',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
returnOutboundTransfer: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '/{outboundTransfer}/return',
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'test_helpers/treasury/received_credits',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'test_helpers/treasury/received_debits',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/credit_reversals',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{creditReversal}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
list: stripeMethod({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
path: '',
|
|
24
|
+
methodType: 'list',
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/debit_reversals',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{debitReversal}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
list: stripeMethod({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
path: '',
|
|
24
|
+
methodType: 'list',
|
|
25
|
+
}),
|
|
26
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/financial_accounts',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{financialAccount}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
update: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '/{financialAccount}',
|
|
24
|
+
}),
|
|
25
|
+
|
|
26
|
+
list: stripeMethod({
|
|
27
|
+
method: 'GET',
|
|
28
|
+
path: '',
|
|
29
|
+
methodType: 'list',
|
|
30
|
+
}),
|
|
31
|
+
|
|
32
|
+
retrieveFeatures: stripeMethod({
|
|
33
|
+
method: 'GET',
|
|
34
|
+
path: '/{financialAccount}/features',
|
|
35
|
+
}),
|
|
36
|
+
|
|
37
|
+
updateFeatures: stripeMethod({
|
|
38
|
+
method: 'POST',
|
|
39
|
+
path: '/{financialAccount}/features',
|
|
40
|
+
}),
|
|
41
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/inbound_transfers',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{id}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
list: stripeMethod({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
path: '',
|
|
24
|
+
methodType: 'list',
|
|
25
|
+
}),
|
|
26
|
+
|
|
27
|
+
cancel: stripeMethod({
|
|
28
|
+
method: 'POST',
|
|
29
|
+
path: '/{inboundTransfer}/cancel',
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/outbound_payments',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{id}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
list: stripeMethod({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
path: '',
|
|
24
|
+
methodType: 'list',
|
|
25
|
+
}),
|
|
26
|
+
|
|
27
|
+
cancel: stripeMethod({
|
|
28
|
+
method: 'POST',
|
|
29
|
+
path: '/{id}/cancel',
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/outbound_transfers',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{outboundTransfer}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
list: stripeMethod({
|
|
22
|
+
method: 'GET',
|
|
23
|
+
path: '',
|
|
24
|
+
methodType: 'list',
|
|
25
|
+
}),
|
|
26
|
+
|
|
27
|
+
cancel: stripeMethod({
|
|
28
|
+
method: 'POST',
|
|
29
|
+
path: '/{outboundTransfer}/cancel',
|
|
30
|
+
}),
|
|
31
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/received_credits',
|
|
10
|
+
|
|
11
|
+
retrieve: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
path: '/{id}',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/received_debits',
|
|
10
|
+
|
|
11
|
+
retrieve: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
path: '/{id}',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/transaction_entries',
|
|
10
|
+
|
|
11
|
+
retrieve: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
path: '/{id}',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'treasury/transactions',
|
|
10
|
+
|
|
11
|
+
retrieve: stripeMethod({
|
|
12
|
+
method: 'GET',
|
|
13
|
+
path: '/{id}',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
list: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '',
|
|
19
|
+
methodType: 'list',
|
|
20
|
+
}),
|
|
21
|
+
});
|
package/lib/resources.js
CHANGED
|
@@ -55,6 +55,9 @@ module.exports = {
|
|
|
55
55
|
Topups: require('./resources/Topups'),
|
|
56
56
|
Transfers: require('./resources/Transfers'),
|
|
57
57
|
WebhookEndpoints: require('./resources/WebhookEndpoints'),
|
|
58
|
+
Apps: resourceNamespace('apps', {
|
|
59
|
+
Secrets: require('./resources/Apps/Secrets'),
|
|
60
|
+
}),
|
|
58
61
|
BillingPortal: resourceNamespace('billingPortal', {
|
|
59
62
|
Configurations: require('./resources/BillingPortal/Configurations'),
|
|
60
63
|
Sessions: require('./resources/BillingPortal/Sessions'),
|
|
@@ -101,5 +104,24 @@ module.exports = {
|
|
|
101
104
|
Terminal: resourceNamespace('terminal', {
|
|
102
105
|
Readers: require('./resources/TestHelpers/Terminal/Readers'),
|
|
103
106
|
}),
|
|
107
|
+
Treasury: resourceNamespace('treasury', {
|
|
108
|
+
InboundTransfers: require('./resources/TestHelpers/Treasury/InboundTransfers'),
|
|
109
|
+
OutboundPayments: require('./resources/TestHelpers/Treasury/OutboundPayments'),
|
|
110
|
+
OutboundTransfers: require('./resources/TestHelpers/Treasury/OutboundTransfers'),
|
|
111
|
+
ReceivedCredits: require('./resources/TestHelpers/Treasury/ReceivedCredits'),
|
|
112
|
+
ReceivedDebits: require('./resources/TestHelpers/Treasury/ReceivedDebits'),
|
|
113
|
+
}),
|
|
114
|
+
}),
|
|
115
|
+
Treasury: resourceNamespace('treasury', {
|
|
116
|
+
CreditReversals: require('./resources/Treasury/CreditReversals'),
|
|
117
|
+
DebitReversals: require('./resources/Treasury/DebitReversals'),
|
|
118
|
+
FinancialAccounts: require('./resources/Treasury/FinancialAccounts'),
|
|
119
|
+
InboundTransfers: require('./resources/Treasury/InboundTransfers'),
|
|
120
|
+
OutboundPayments: require('./resources/Treasury/OutboundPayments'),
|
|
121
|
+
OutboundTransfers: require('./resources/Treasury/OutboundTransfers'),
|
|
122
|
+
ReceivedCredits: require('./resources/Treasury/ReceivedCredits'),
|
|
123
|
+
ReceivedDebits: require('./resources/Treasury/ReceivedDebits'),
|
|
124
|
+
Transactions: require('./resources/Treasury/Transactions'),
|
|
125
|
+
TransactionEntries: require('./resources/Treasury/TransactionEntries'),
|
|
104
126
|
}),
|
|
105
127
|
};
|
package/package.json
CHANGED
|
@@ -1078,7 +1078,7 @@ declare module 'stripe' {
|
|
|
1078
1078
|
company?: AccountCreateParams.Company;
|
|
1079
1079
|
|
|
1080
1080
|
/**
|
|
1081
|
-
* The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created.
|
|
1081
|
+
* The country in which the account holder resides, or in which the business is legally established. This should be an ISO 3166-1 alpha-2 country code. For example, if you are in the United States and the business for which you're creating an account is legally represented in Canada, you would use `CA` as the country for the account being created. Available countries include [Stripe's global markets](https://stripe.com/global) as well as countries where [cross-border payouts](https://stripe.com/docs/connect/cross-border-payouts) are supported.
|
|
1082
1082
|
*/
|
|
1083
1083
|
country?: string;
|
|
1084
1084
|
|
|
@@ -1870,12 +1870,12 @@ declare module 'stripe' {
|
|
|
1870
1870
|
last_name?: string;
|
|
1871
1871
|
|
|
1872
1872
|
/**
|
|
1873
|
-
* The Kana
|
|
1873
|
+
* The Kana variation of the individual's last name (Japan only).
|
|
1874
1874
|
*/
|
|
1875
1875
|
last_name_kana?: string;
|
|
1876
1876
|
|
|
1877
1877
|
/**
|
|
1878
|
-
* The Kanji
|
|
1878
|
+
* The Kanji variation of the individual's last name (Japan only).
|
|
1879
1879
|
*/
|
|
1880
1880
|
last_name_kanji?: string;
|
|
1881
1881
|
|
|
@@ -2960,12 +2960,12 @@ declare module 'stripe' {
|
|
|
2960
2960
|
last_name?: string;
|
|
2961
2961
|
|
|
2962
2962
|
/**
|
|
2963
|
-
* The Kana
|
|
2963
|
+
* The Kana variation of the individual's last name (Japan only).
|
|
2964
2964
|
*/
|
|
2965
2965
|
last_name_kana?: string;
|
|
2966
2966
|
|
|
2967
2967
|
/**
|
|
2968
|
-
* The Kanji
|
|
2968
|
+
* The Kanji variation of the individual's last name (Japan only).
|
|
2969
2969
|
*/
|
|
2970
2970
|
last_name_kanji?: string;
|
|
2971
2971
|
|