stripe 9.1.0 → 9.4.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 +31 -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 +36 -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 +42 -0
- package/types/2020-08-27/Customers.d.ts +24 -0
- 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/Mandates.d.ts +4 -0
- package/types/2020-08-27/Orders.d.ts +81 -0
- package/types/2020-08-27/PaymentIntents.d.ts +332 -2
- package/types/2020-08-27/PaymentMethods.d.ts +73 -0
- 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/Subscriptions.d.ts +26 -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 +60 -2
- package/types/2020-08-27/index.d.ts +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,36 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 9.4.0 - 2022-05-23
|
|
4
|
+
* [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates
|
|
5
|
+
* Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
6
|
+
|
|
7
|
+
## 9.3.0 - 2022-05-23
|
|
8
|
+
* [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates
|
|
9
|
+
* Add support for new resource `Apps.Secret`
|
|
10
|
+
* 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`
|
|
11
|
+
* 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`
|
|
12
|
+
* Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type`
|
|
13
|
+
* 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[]`
|
|
14
|
+
* 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`
|
|
15
|
+
* Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type`
|
|
16
|
+
* Add support for new values `affirm` and `link` on enum `PaymentMethod.type`
|
|
17
|
+
|
|
18
|
+
## 9.2.0 - 2022-05-19
|
|
19
|
+
* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates
|
|
20
|
+
* Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction`
|
|
21
|
+
* Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `IssuingDisputeCreateParams`
|
|
22
|
+
* Add support for `retrieve_payment_method` method on resource `Customer`
|
|
23
|
+
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
|
24
|
+
* Change `BillingPortalConfigurationCreateParams.features.customer_update.allowed_updates` to be optional
|
|
25
|
+
* Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)`
|
|
26
|
+
* 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`
|
|
27
|
+
* Add support for `financial_account` on `Issuing.Card` and `IssuingCardCreateParams`
|
|
28
|
+
* Add support for `client_secret` on `Order`
|
|
29
|
+
* 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`
|
|
30
|
+
* Add support for `attach_to_self` and `flow_directions` on `SetupIntent`
|
|
31
|
+
* Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings`
|
|
32
|
+
* Add support for `czk` on `Terminal.Configuration.tipping`, `TerminalConfigurationCreateParams.tipping`, and `TerminalConfigurationUpdateParams.tipping`
|
|
33
|
+
|
|
3
34
|
## 9.1.0 - 2022-05-11
|
|
4
35
|
* [#1420](https://github.com/stripe/stripe-node/pull/1420) API Updates
|
|
5
36
|
* Add support for `description` on `CheckoutSessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.
|
|
1
|
+
9.4.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
|
@@ -291,6 +291,11 @@ declare module 'stripe' {
|
|
|
291
291
|
*/
|
|
292
292
|
transfers?: Capabilities.Transfers;
|
|
293
293
|
|
|
294
|
+
/**
|
|
295
|
+
* The status of the banking capability, or whether the account can have bank accounts.
|
|
296
|
+
*/
|
|
297
|
+
treasury?: Capabilities.Treasury;
|
|
298
|
+
|
|
294
299
|
/**
|
|
295
300
|
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
|
|
296
301
|
*/
|
|
@@ -352,6 +357,8 @@ declare module 'stripe' {
|
|
|
352
357
|
|
|
353
358
|
type Transfers = 'active' | 'inactive' | 'pending';
|
|
354
359
|
|
|
360
|
+
type Treasury = 'active' | 'inactive' | 'pending';
|
|
361
|
+
|
|
355
362
|
type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
|
|
356
363
|
}
|
|
357
364
|
|
|
@@ -1078,7 +1085,7 @@ declare module 'stripe' {
|
|
|
1078
1085
|
company?: AccountCreateParams.Company;
|
|
1079
1086
|
|
|
1080
1087
|
/**
|
|
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.
|
|
1088
|
+
* 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
1089
|
*/
|
|
1083
1090
|
country?: string;
|
|
1084
1091
|
|
|
@@ -1326,6 +1333,11 @@ declare module 'stripe' {
|
|
|
1326
1333
|
*/
|
|
1327
1334
|
transfers?: Capabilities.Transfers;
|
|
1328
1335
|
|
|
1336
|
+
/**
|
|
1337
|
+
* The treasury capability.
|
|
1338
|
+
*/
|
|
1339
|
+
treasury?: Capabilities.Treasury;
|
|
1340
|
+
|
|
1329
1341
|
/**
|
|
1330
1342
|
* The us_bank_account_ach_payments capability.
|
|
1331
1343
|
*/
|
|
@@ -1522,6 +1534,13 @@ declare module 'stripe' {
|
|
|
1522
1534
|
requested?: boolean;
|
|
1523
1535
|
}
|
|
1524
1536
|
|
|
1537
|
+
interface Treasury {
|
|
1538
|
+
/**
|
|
1539
|
+
* 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.
|
|
1540
|
+
*/
|
|
1541
|
+
requested?: boolean;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1525
1544
|
interface UsBankAccountAchPayments {
|
|
1526
1545
|
/**
|
|
1527
1546
|
* 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.
|
|
@@ -1870,12 +1889,12 @@ declare module 'stripe' {
|
|
|
1870
1889
|
last_name?: string;
|
|
1871
1890
|
|
|
1872
1891
|
/**
|
|
1873
|
-
* The Kana
|
|
1892
|
+
* The Kana variation of the individual's last name (Japan only).
|
|
1874
1893
|
*/
|
|
1875
1894
|
last_name_kana?: string;
|
|
1876
1895
|
|
|
1877
1896
|
/**
|
|
1878
|
-
* The Kanji
|
|
1897
|
+
* The Kanji variation of the individual's last name (Japan only).
|
|
1879
1898
|
*/
|
|
1880
1899
|
last_name_kanji?: string;
|
|
1881
1900
|
|
|
@@ -2453,6 +2472,11 @@ declare module 'stripe' {
|
|
|
2453
2472
|
*/
|
|
2454
2473
|
transfers?: Capabilities.Transfers;
|
|
2455
2474
|
|
|
2475
|
+
/**
|
|
2476
|
+
* The treasury capability.
|
|
2477
|
+
*/
|
|
2478
|
+
treasury?: Capabilities.Treasury;
|
|
2479
|
+
|
|
2456
2480
|
/**
|
|
2457
2481
|
* The us_bank_account_ach_payments capability.
|
|
2458
2482
|
*/
|
|
@@ -2649,6 +2673,13 @@ declare module 'stripe' {
|
|
|
2649
2673
|
requested?: boolean;
|
|
2650
2674
|
}
|
|
2651
2675
|
|
|
2676
|
+
interface Treasury {
|
|
2677
|
+
/**
|
|
2678
|
+
* 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.
|
|
2679
|
+
*/
|
|
2680
|
+
requested?: boolean;
|
|
2681
|
+
}
|
|
2682
|
+
|
|
2652
2683
|
interface UsBankAccountAchPayments {
|
|
2653
2684
|
/**
|
|
2654
2685
|
* 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.
|
|
@@ -2960,12 +2991,12 @@ declare module 'stripe' {
|
|
|
2960
2991
|
last_name?: string;
|
|
2961
2992
|
|
|
2962
2993
|
/**
|
|
2963
|
-
* The Kana
|
|
2994
|
+
* The Kana variation of the individual's last name (Japan only).
|
|
2964
2995
|
*/
|
|
2965
2996
|
last_name_kana?: string;
|
|
2966
2997
|
|
|
2967
2998
|
/**
|
|
2968
|
-
* The Kanji
|
|
2999
|
+
* The Kanji variation of the individual's last name (Japan only).
|
|
2969
3000
|
*/
|
|
2970
3001
|
last_name_kanji?: string;
|
|
2971
3002
|
|