stripe 9.5.0 → 9.8.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 +54 -29
- package/README.md +1 -1
- package/VERSION +1 -1
- package/package.json +1 -1
- package/types/2020-08-27/Charges.d.ts +26 -2
- package/types/2020-08-27/Checkout/Sessions.d.ts +610 -15
- package/types/2020-08-27/CreditNoteLineItems.d.ts +6 -6
- package/types/2020-08-27/CreditNotes.d.ts +12 -12
- package/types/2020-08-27/CustomerBalanceTransactions.d.ts +1 -1
- package/types/2020-08-27/Customers.d.ts +2 -2
- package/types/2020-08-27/FeeRefunds.d.ts +1 -1
- package/types/2020-08-27/FundingInstructions.d.ts +36 -1
- package/types/2020-08-27/InvoiceItems.d.ts +10 -10
- package/types/2020-08-27/InvoiceLineItems.d.ts +8 -12
- package/types/2020-08-27/Invoices.d.ts +16 -20
- package/types/2020-08-27/Orders.d.ts +12 -24
- package/types/2020-08-27/PaymentIntents.d.ts +111 -26
- package/types/2020-08-27/PaymentMethods.d.ts +25 -1
- package/types/2020-08-27/Plans.d.ts +2 -2
- package/types/2020-08-27/Prices.d.ts +3 -3
- package/types/2020-08-27/Products.d.ts +2 -2
- package/types/2020-08-27/Quotes.d.ts +4 -4
- package/types/2020-08-27/SetupAttempts.d.ts +16 -0
- package/types/2020-08-27/SetupIntents.d.ts +96 -4
- package/types/2020-08-27/SubscriptionItems.d.ts +7 -19
- package/types/2020-08-27/SubscriptionSchedules.d.ts +8 -8
- package/types/2020-08-27/Subscriptions.d.ts +19 -25
- package/types/2020-08-27/Terminal/Readers.d.ts +3 -1
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts +26 -0
- package/types/2020-08-27/TransferReversals.d.ts +1 -1
- package/types/2020-08-27/Transfers.d.ts +1 -1
- package/types/2020-08-27/Treasury/OutboundTransfers.d.ts +52 -0
- package/types/2020-08-27/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/2020-08-27/Treasury/ReceivedDebits.d.ts +32 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,39 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 9.8.0-beta.1 - 2022-06-08
|
|
4
|
+
* [#1442](https://github.com/stripe/stripe-node/pull/1442) API Updates
|
|
5
|
+
* Add support for `network_details` method on resource `ReceivedCredits`/`ReceivedDebits`
|
|
6
|
+
|
|
7
|
+
## 9.7.0 - 2022-06-08
|
|
8
|
+
* [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates
|
|
9
|
+
* Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `CheckoutSessionCreateParams.payment_method_options`
|
|
10
|
+
* Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `CheckoutSessionCreateParams.payment_method_options`
|
|
11
|
+
* Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.*` and `CheckoutSessionCreateParams.payment_method_options.*`,
|
|
12
|
+
* Change `PaymentMethod.us_bank_account.networks` and `SetupIntent.flow_directions` to be required
|
|
13
|
+
* Add support for `attach_to_self` on `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, and `SetupIntentUpdateParams`
|
|
14
|
+
* Add support for `flow_directions` on `SetupAttempt`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams`
|
|
15
|
+
|
|
16
|
+
## 9.6.0 - 2022-06-01
|
|
17
|
+
* [#1439](https://github.com/stripe/stripe-node/pull/1439) API Updates
|
|
18
|
+
* Add support for `radar_options` on `ChargeCreateParams`, `Charge`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
19
|
+
* Add support for `account_holder_name`, `account_number`, `account_type`, `bank_code`, `bank_name`, `branch_code`, and `branch_name` on `FundingInstructions.bank_transfer.financial_addresses[].zengin` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin`
|
|
20
|
+
* Add support for new values `en-AU` and `en-NZ` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`
|
|
21
|
+
* Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type` and `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type` from `enum` to `literal('jp_bank_transfer')`
|
|
22
|
+
* This is technically breaking in Typescript, but now accurately represents the behavior that was allowed by the server. We haven't historically treated breaking Typescript changes as requiring a major.
|
|
23
|
+
* Change `PaymentIntent.next_action.display_bank_transfer_instructions.hosted_instructions_url` to be required
|
|
24
|
+
* Add support for `network` on `SetupIntent.payment_method_options.card`
|
|
25
|
+
* Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `TerminalReaderListParams.device_type`
|
|
26
|
+
|
|
27
|
+
|
|
3
28
|
## 9.5.0 - 2022-05-26
|
|
4
29
|
* [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates
|
|
5
|
-
* Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
6
|
-
* Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person`
|
|
7
|
-
* Add support for new value `affirm` on enum `CheckoutSessionCreateParams.payment_method_types[]`
|
|
8
|
-
* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions`
|
|
9
|
-
* Add support for `id_number_secondary_provided` on `Person`
|
|
10
|
-
* Add support for `card_issuing` on `TreasuryFinancialAccountCreateParams.features`, `TreasuryFinancialAccountUpdateFeaturesParams`, and `TreasuryFinancialAccountUpdateParams.features`
|
|
11
|
-
|
|
30
|
+
* Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
31
|
+
* Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person`
|
|
32
|
+
* Add support for new value `affirm` on enum `CheckoutSessionCreateParams.payment_method_types[]`
|
|
33
|
+
* Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions`
|
|
34
|
+
* Add support for `id_number_secondary_provided` on `Person`
|
|
35
|
+
* Add support for `card_issuing` on `TreasuryFinancialAccountCreateParams.features`, `TreasuryFinancialAccountUpdateFeaturesParams`, and `TreasuryFinancialAccountUpdateParams.features`
|
|
36
|
+
|
|
12
37
|
* [#1432](https://github.com/stripe/stripe-node/pull/1432) docs: Update HttpClient documentation to remove experimental status.
|
|
13
38
|
|
|
14
39
|
## 9.4.0 - 2022-05-23
|
|
@@ -29,18 +54,18 @@
|
|
|
29
54
|
## 9.2.0 - 2022-05-19
|
|
30
55
|
* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates
|
|
31
56
|
* Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction`
|
|
32
|
-
* Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `IssuingDisputeCreateParams`
|
|
57
|
+
* Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `IssuingDisputeCreateParams`
|
|
33
58
|
* Add support for `retrieve_payment_method` method on resource `Customer`
|
|
34
|
-
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
|
35
|
-
* Change `BillingPortalConfigurationCreateParams.features.customer_update.allowed_updates` to be optional
|
|
36
|
-
* Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)`
|
|
37
|
-
* 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`
|
|
38
|
-
* Add support for `financial_account` on `Issuing.Card` and `IssuingCardCreateParams`
|
|
39
|
-
* Add support for `client_secret` on `Order`
|
|
40
|
-
* 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`
|
|
41
|
-
* Add support for `attach_to_self` and `flow_directions` on `SetupIntent`
|
|
42
|
-
* Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings`
|
|
43
|
-
* Add support for `czk` on `Terminal.Configuration.tipping`, `TerminalConfigurationCreateParams.tipping`, and `TerminalConfigurationUpdateParams.tipping`
|
|
59
|
+
* Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account`
|
|
60
|
+
* Change `BillingPortalConfigurationCreateParams.features.customer_update.allowed_updates` to be optional
|
|
61
|
+
* Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)`
|
|
62
|
+
* 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`
|
|
63
|
+
* Add support for `financial_account` on `Issuing.Card` and `IssuingCardCreateParams`
|
|
64
|
+
* Add support for `client_secret` on `Order`
|
|
65
|
+
* 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`
|
|
66
|
+
* Add support for `attach_to_self` and `flow_directions` on `SetupIntent`
|
|
67
|
+
* Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings`
|
|
68
|
+
* Add support for `czk` on `Terminal.Configuration.tipping`, `TerminalConfigurationCreateParams.tipping`, and `TerminalConfigurationUpdateParams.tipping`
|
|
44
69
|
|
|
45
70
|
## 9.1.0 - 2022-05-11
|
|
46
71
|
* [#1420](https://github.com/stripe/stripe-node/pull/1420) API Updates
|
|
@@ -55,28 +80,28 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
|
|
|
55
80
|
(⚠️ = breaking changes):
|
|
56
81
|
* ⚠️[#1336](https://github.com/stripe/stripe-node/pull/1336) feat(http-client): retry closed connection errors
|
|
57
82
|
* [#1415](https://github.com/stripe/stripe-node/pull/1415) [#1417](https://github.com/stripe/stripe-node/pull/1417) API Updates
|
|
58
|
-
* ⚠️ Replace the legacy `Order` API with the new `Order` API.
|
|
83
|
+
* ⚠️ Replace the legacy `Order` API with the new `Order` API.
|
|
59
84
|
* Resource modified: `Order`.
|
|
60
85
|
* New methods: `cancel`, `list_line_items`, `reopen`, and `submit`
|
|
61
86
|
* Removed methods: `pay` and `return_order`
|
|
62
87
|
* Removed resources: `OrderItem` and `OrderReturn`
|
|
63
88
|
* Removed references from other resources: `Charge.order`
|
|
64
|
-
* Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem`
|
|
89
|
+
* Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem`
|
|
65
90
|
* Change type of `Charge.shipping.name`, `Checkout.Session.shipping.name`, `Customer.shipping.name`, `Invoice.customer_shipping.name`, `PaymentIntent.shipping.name`, `ShippingDetails.name`, and `Source.source_order.shipping.name` from `nullable(string)` to `string`
|
|
66
91
|
|
|
67
92
|
## 8.222.0 - 2022-05-05
|
|
68
93
|
* [#1414](https://github.com/stripe/stripe-node/pull/1414) API Updates
|
|
69
|
-
* Add support for `default_price_data` on `ProductCreateParams`
|
|
70
|
-
* Add support for `default_price` on `ProductUpdateParams` and `Product`
|
|
71
|
-
* Add support for `instructions_email` on `RefundCreateParams` and `Refund`
|
|
72
|
-
|
|
94
|
+
* Add support for `default_price_data` on `ProductCreateParams`
|
|
95
|
+
* Add support for `default_price` on `ProductUpdateParams` and `Product`
|
|
96
|
+
* Add support for `instructions_email` on `RefundCreateParams` and `Refund`
|
|
97
|
+
|
|
73
98
|
|
|
74
99
|
## 8.221.0 - 2022-05-05
|
|
75
100
|
* [#1413](https://github.com/stripe/stripe-node/pull/1413) API Updates
|
|
76
|
-
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
|
77
|
-
* Add support for `financial_connections` on `Checkout.Session.payment_method_options.us_bank_account`, `CheckoutSessionCreateParams.payment_method_options.us_bank_account`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, `SetupIntentUpdateParams.payment_method_options.us_bank_account`, `Subscription.payment_settings.payment_method_options.us_bank_account`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account`
|
|
78
|
-
* Add support for `financial_connections_account` on `PaymentIntentConfirmParams.payment_method_data.us_bank_account`, `PaymentIntentCreateParams.payment_method_data.us_bank_account`, `PaymentIntentUpdateParams.payment_method_data.us_bank_account`, `PaymentMethod.us_bank_account`, `PaymentMethodCreateParams.us_bank_account`, `SetupIntentConfirmParams.payment_method_data.us_bank_account`, `SetupIntentCreateParams.payment_method_data.us_bank_account`, and `SetupIntentUpdateParams.payment_method_data.us_bank_account`
|
|
79
|
-
|
|
101
|
+
* Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
|
|
102
|
+
* Add support for `financial_connections` on `Checkout.Session.payment_method_options.us_bank_account`, `CheckoutSessionCreateParams.payment_method_options.us_bank_account`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, `SetupIntentUpdateParams.payment_method_options.us_bank_account`, `Subscription.payment_settings.payment_method_options.us_bank_account`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account`
|
|
103
|
+
* Add support for `financial_connections_account` on `PaymentIntentConfirmParams.payment_method_data.us_bank_account`, `PaymentIntentCreateParams.payment_method_data.us_bank_account`, `PaymentIntentUpdateParams.payment_method_data.us_bank_account`, `PaymentMethod.us_bank_account`, `PaymentMethodCreateParams.us_bank_account`, `SetupIntentConfirmParams.payment_method_data.us_bank_account`, `SetupIntentCreateParams.payment_method_data.us_bank_account`, and `SetupIntentUpdateParams.payment_method_data.us_bank_account`
|
|
104
|
+
|
|
80
105
|
* [#1410](https://github.com/stripe/stripe-node/pull/1410) API Updates
|
|
81
106
|
* Add support for `registered_address` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person`
|
|
82
107
|
* Change type of `PaymentIntent.amount_details.tip.amount` from `nullable(integer)` to `integer`
|
|
@@ -134,7 +159,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
|
|
|
134
159
|
* Add support for new value `customer_balance` 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[]`
|
|
135
160
|
* Add support for `request_extended_authorization` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
|
|
136
161
|
* Add support for new values `payment_intent.partially_funded`, `terminal.reader.action_failed`, and `terminal.reader.action_succeeded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
137
|
-
|
|
162
|
+
|
|
138
163
|
* [#1388](https://github.com/stripe/stripe-node/pull/1388) Stop sending Content-Length header for verbs which don't have bodies.
|
|
139
164
|
* Fixes https://github.com/stripe/stripe-node/issues/1360.
|
|
140
165
|
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Stripe Node.js Library
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.org/package/stripe)
|
|
4
|
-
[](https://github.com/stripe/stripe-node/actions?query=branch%3Amaster)
|
|
5
5
|
[](https://www.npmjs.com/package/stripe)
|
|
6
6
|
[](https://runkit.com/npm/stripe)
|
|
7
7
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
9.
|
|
1
|
+
9.8.0-beta.1
|
package/package.json
CHANGED
|
@@ -172,6 +172,11 @@ declare module 'stripe' {
|
|
|
172
172
|
*/
|
|
173
173
|
payment_method_details: Charge.PaymentMethodDetails | null;
|
|
174
174
|
|
|
175
|
+
/**
|
|
176
|
+
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
177
|
+
*/
|
|
178
|
+
radar_options?: Charge.RadarOptions;
|
|
179
|
+
|
|
175
180
|
/**
|
|
176
181
|
* This is the email address that the receipt for this charge was sent to.
|
|
177
182
|
*/
|
|
@@ -1450,7 +1455,7 @@ declare module 'stripe' {
|
|
|
1450
1455
|
|
|
1451
1456
|
/**
|
|
1452
1457
|
* Preferred language of the Klarna authorization page that the customer is redirected to.
|
|
1453
|
-
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, or `en-
|
|
1458
|
+
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `en-AU`, or `en-NZ`
|
|
1454
1459
|
*/
|
|
1455
1460
|
preferred_locale: string | null;
|
|
1456
1461
|
}
|
|
@@ -1715,6 +1720,13 @@ declare module 'stripe' {
|
|
|
1715
1720
|
}
|
|
1716
1721
|
}
|
|
1717
1722
|
|
|
1723
|
+
interface RadarOptions {
|
|
1724
|
+
/**
|
|
1725
|
+
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
1726
|
+
*/
|
|
1727
|
+
session?: string;
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1718
1730
|
interface Shipping {
|
|
1719
1731
|
address?: Stripe.Address;
|
|
1720
1732
|
|
|
@@ -1763,7 +1775,7 @@ declare module 'stripe' {
|
|
|
1763
1775
|
application_fee?: number;
|
|
1764
1776
|
|
|
1765
1777
|
/**
|
|
1766
|
-
* A fee in
|
|
1778
|
+
* A fee in cents (or local equivalent) that will be applied to the charge and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the `Stripe-Account` header in order to take an application fee. For more information, see the application fees [documentation](https://stripe.com/docs/connect/direct-charges#collecting-fees).
|
|
1767
1779
|
*/
|
|
1768
1780
|
application_fee_amount?: number;
|
|
1769
1781
|
|
|
@@ -1804,6 +1816,11 @@ declare module 'stripe' {
|
|
|
1804
1816
|
*/
|
|
1805
1817
|
on_behalf_of?: string;
|
|
1806
1818
|
|
|
1819
|
+
/**
|
|
1820
|
+
* Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information.
|
|
1821
|
+
*/
|
|
1822
|
+
radar_options?: ChargeCreateParams.RadarOptions;
|
|
1823
|
+
|
|
1807
1824
|
/**
|
|
1808
1825
|
* The email address to which this charge's [receipt](https://stripe.com/docs/dashboard/receipts) will be sent. The receipt will not be sent until the charge is paid, and no receipts will be sent for test mode charges. If this charge is for a [Customer](https://stripe.com/docs/api/customers/object), the email address specified here will override the customer's email address. If `receipt_email` is specified for a charge in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
|
|
1809
1826
|
*/
|
|
@@ -1853,6 +1870,13 @@ declare module 'stripe' {
|
|
|
1853
1870
|
amount?: number;
|
|
1854
1871
|
}
|
|
1855
1872
|
|
|
1873
|
+
interface RadarOptions {
|
|
1874
|
+
/**
|
|
1875
|
+
* A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments.
|
|
1876
|
+
*/
|
|
1877
|
+
session?: string;
|
|
1878
|
+
}
|
|
1879
|
+
|
|
1856
1880
|
interface Shipping {
|
|
1857
1881
|
/**
|
|
1858
1882
|
* Shipping address.
|