stripe 8.208.0 → 8.209.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 +10 -0
- package/VERSION +1 -1
- package/lib/autoPagination.js +1 -1
- package/package.json +1 -1
- package/types/2020-08-27/Charges.d.ts +5 -0
- package/types/2020-08-27/PaymentIntents.d.ts +263 -1
- package/types/2020-08-27/PaymentLinks.d.ts +6 -9
- package/types/2020-08-27/SetupIntents.d.ts +252 -0
- package/types/lib.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.209.0 - 2022-03-11
|
|
4
|
+
* [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates
|
|
5
|
+
* Add support for `mandate` on `Charge.payment_method_details.card`
|
|
6
|
+
* Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card`
|
|
7
|
+
* Add support for `card_await_notification` on `PaymentIntent.next_action`
|
|
8
|
+
* Add support for `customer_notification` on `PaymentIntent.processing.card`
|
|
9
|
+
* Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams`
|
|
10
|
+
|
|
11
|
+
* [#1364](https://github.com/stripe/stripe-node/pull/1364) Update search pagination to use page param instead of next_page.
|
|
12
|
+
|
|
3
13
|
## 8.208.0 - 2022-03-09
|
|
4
14
|
* [#1366](https://github.com/stripe/stripe-node/pull/1366) API Updates
|
|
5
15
|
* Add support for `test_clock` on `CustomerListParams`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.209.0
|
package/lib/autoPagination.js
CHANGED
package/package.json
CHANGED
|
@@ -725,6 +725,11 @@ declare module 'stripe' {
|
|
|
725
725
|
*/
|
|
726
726
|
last4: string | null;
|
|
727
727
|
|
|
728
|
+
/**
|
|
729
|
+
* ID of the mandate used to make this payment or created by it.
|
|
730
|
+
*/
|
|
731
|
+
mandate: string | null;
|
|
732
|
+
|
|
728
733
|
/**
|
|
729
734
|
* True if this payment was marked as MOTO and out of scope for SCA.
|
|
730
735
|
*/
|
|
@@ -341,6 +341,8 @@ declare module 'stripe' {
|
|
|
341
341
|
|
|
342
342
|
boleto_display_details?: NextAction.BoletoDisplayDetails;
|
|
343
343
|
|
|
344
|
+
card_await_notification?: NextAction.CardAwaitNotification;
|
|
345
|
+
|
|
344
346
|
konbini_display_details?: NextAction.KonbiniDisplayDetails;
|
|
345
347
|
|
|
346
348
|
oxxo_display_details?: NextAction.OxxoDisplayDetails;
|
|
@@ -411,6 +413,18 @@ declare module 'stripe' {
|
|
|
411
413
|
pdf: string | null;
|
|
412
414
|
}
|
|
413
415
|
|
|
416
|
+
interface CardAwaitNotification {
|
|
417
|
+
/**
|
|
418
|
+
* The time that payment will be attempted. If customer approval is required, they need to provide approval before this time.
|
|
419
|
+
*/
|
|
420
|
+
charge_attempt_at: number | null;
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* For payments greater than INR 5000, the customer must provide explicit approval of the payment with their bank. For payments of lower amount, no customer action is required.
|
|
424
|
+
*/
|
|
425
|
+
customer_approval_required: boolean | null;
|
|
426
|
+
}
|
|
427
|
+
|
|
414
428
|
interface KonbiniDisplayDetails {
|
|
415
429
|
/**
|
|
416
430
|
* The timestamp at which the pending Konbini payment expires.
|
|
@@ -820,6 +834,11 @@ declare module 'stripe' {
|
|
|
820
834
|
*/
|
|
821
835
|
installments: Card.Installments | null;
|
|
822
836
|
|
|
837
|
+
/**
|
|
838
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
839
|
+
*/
|
|
840
|
+
mandate_options: Card.MandateOptions | null;
|
|
841
|
+
|
|
823
842
|
/**
|
|
824
843
|
* Selected network to process this payment intent on. Depends on the available networks of the card attached to the payment intent. Can be only set confirm-time.
|
|
825
844
|
*/
|
|
@@ -896,6 +915,59 @@ declare module 'stripe' {
|
|
|
896
915
|
}
|
|
897
916
|
}
|
|
898
917
|
|
|
918
|
+
interface MandateOptions {
|
|
919
|
+
/**
|
|
920
|
+
* Amount to be charged for future payments.
|
|
921
|
+
*/
|
|
922
|
+
amount: number;
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
926
|
+
*/
|
|
927
|
+
amount_type: MandateOptions.AmountType;
|
|
928
|
+
|
|
929
|
+
/**
|
|
930
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
931
|
+
*/
|
|
932
|
+
description: string | null;
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
936
|
+
*/
|
|
937
|
+
end_date: number | null;
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
941
|
+
*/
|
|
942
|
+
interval: MandateOptions.Interval;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
946
|
+
*/
|
|
947
|
+
interval_count: number | null;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* Unique identifier for the mandate or subscription.
|
|
951
|
+
*/
|
|
952
|
+
reference: string;
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
956
|
+
*/
|
|
957
|
+
start_date: number;
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
961
|
+
*/
|
|
962
|
+
supported_types: Array<'india'> | null;
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
namespace MandateOptions {
|
|
966
|
+
type AmountType = 'fixed' | 'maximum';
|
|
967
|
+
|
|
968
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
969
|
+
}
|
|
970
|
+
|
|
899
971
|
type Network =
|
|
900
972
|
| 'amex'
|
|
901
973
|
| 'cartes_bancaires'
|
|
@@ -1134,7 +1206,23 @@ declare module 'stripe' {
|
|
|
1134
1206
|
}
|
|
1135
1207
|
|
|
1136
1208
|
namespace Processing {
|
|
1137
|
-
interface Card {
|
|
1209
|
+
interface Card {
|
|
1210
|
+
customer_notification?: Card.CustomerNotification;
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
namespace Card {
|
|
1214
|
+
interface CustomerNotification {
|
|
1215
|
+
/**
|
|
1216
|
+
* Whether customer approval has been requested for this payment. For payments greater than INR 5000 or mandate amount, the customer must provide explicit approval of the payment with their bank.
|
|
1217
|
+
*/
|
|
1218
|
+
approval_requested: boolean | null;
|
|
1219
|
+
|
|
1220
|
+
/**
|
|
1221
|
+
* If customer approval is required, they need to provide approval before this time.
|
|
1222
|
+
*/
|
|
1223
|
+
completes_at: number | null;
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1138
1226
|
}
|
|
1139
1227
|
|
|
1140
1228
|
type SetupFutureUsage = 'off_session' | 'on_session';
|
|
@@ -2125,6 +2213,11 @@ declare module 'stripe' {
|
|
|
2125
2213
|
*/
|
|
2126
2214
|
installments?: Card.Installments;
|
|
2127
2215
|
|
|
2216
|
+
/**
|
|
2217
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
2218
|
+
*/
|
|
2219
|
+
mandate_options?: Card.MandateOptions;
|
|
2220
|
+
|
|
2128
2221
|
/**
|
|
2129
2222
|
* When specified, this parameter indicates that a transaction will be marked
|
|
2130
2223
|
* as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
|
@@ -2190,6 +2283,59 @@ declare module 'stripe' {
|
|
|
2190
2283
|
}
|
|
2191
2284
|
}
|
|
2192
2285
|
|
|
2286
|
+
interface MandateOptions {
|
|
2287
|
+
/**
|
|
2288
|
+
* Amount to be charged for future payments.
|
|
2289
|
+
*/
|
|
2290
|
+
amount: number;
|
|
2291
|
+
|
|
2292
|
+
/**
|
|
2293
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
2294
|
+
*/
|
|
2295
|
+
amount_type: MandateOptions.AmountType;
|
|
2296
|
+
|
|
2297
|
+
/**
|
|
2298
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
2299
|
+
*/
|
|
2300
|
+
description?: string;
|
|
2301
|
+
|
|
2302
|
+
/**
|
|
2303
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
2304
|
+
*/
|
|
2305
|
+
end_date?: number;
|
|
2306
|
+
|
|
2307
|
+
/**
|
|
2308
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
2309
|
+
*/
|
|
2310
|
+
interval: MandateOptions.Interval;
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
2314
|
+
*/
|
|
2315
|
+
interval_count?: number;
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* Unique identifier for the mandate or subscription.
|
|
2319
|
+
*/
|
|
2320
|
+
reference: string;
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
2324
|
+
*/
|
|
2325
|
+
start_date: number;
|
|
2326
|
+
|
|
2327
|
+
/**
|
|
2328
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
2329
|
+
*/
|
|
2330
|
+
supported_types?: Array<'india'>;
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
namespace MandateOptions {
|
|
2334
|
+
type AmountType = 'fixed' | 'maximum';
|
|
2335
|
+
|
|
2336
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2193
2339
|
type Network =
|
|
2194
2340
|
| 'amex'
|
|
2195
2341
|
| 'cartes_bancaires'
|
|
@@ -3376,6 +3522,11 @@ declare module 'stripe' {
|
|
|
3376
3522
|
*/
|
|
3377
3523
|
installments?: Card.Installments;
|
|
3378
3524
|
|
|
3525
|
+
/**
|
|
3526
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
3527
|
+
*/
|
|
3528
|
+
mandate_options?: Card.MandateOptions;
|
|
3529
|
+
|
|
3379
3530
|
/**
|
|
3380
3531
|
* When specified, this parameter indicates that a transaction will be marked
|
|
3381
3532
|
* as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
|
@@ -3441,6 +3592,59 @@ declare module 'stripe' {
|
|
|
3441
3592
|
}
|
|
3442
3593
|
}
|
|
3443
3594
|
|
|
3595
|
+
interface MandateOptions {
|
|
3596
|
+
/**
|
|
3597
|
+
* Amount to be charged for future payments.
|
|
3598
|
+
*/
|
|
3599
|
+
amount: number;
|
|
3600
|
+
|
|
3601
|
+
/**
|
|
3602
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
3603
|
+
*/
|
|
3604
|
+
amount_type: MandateOptions.AmountType;
|
|
3605
|
+
|
|
3606
|
+
/**
|
|
3607
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
3608
|
+
*/
|
|
3609
|
+
description?: string;
|
|
3610
|
+
|
|
3611
|
+
/**
|
|
3612
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
3613
|
+
*/
|
|
3614
|
+
end_date?: number;
|
|
3615
|
+
|
|
3616
|
+
/**
|
|
3617
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
3618
|
+
*/
|
|
3619
|
+
interval: MandateOptions.Interval;
|
|
3620
|
+
|
|
3621
|
+
/**
|
|
3622
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
3623
|
+
*/
|
|
3624
|
+
interval_count?: number;
|
|
3625
|
+
|
|
3626
|
+
/**
|
|
3627
|
+
* Unique identifier for the mandate or subscription.
|
|
3628
|
+
*/
|
|
3629
|
+
reference: string;
|
|
3630
|
+
|
|
3631
|
+
/**
|
|
3632
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
3633
|
+
*/
|
|
3634
|
+
start_date: number;
|
|
3635
|
+
|
|
3636
|
+
/**
|
|
3637
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
3638
|
+
*/
|
|
3639
|
+
supported_types?: Array<'india'>;
|
|
3640
|
+
}
|
|
3641
|
+
|
|
3642
|
+
namespace MandateOptions {
|
|
3643
|
+
type AmountType = 'fixed' | 'maximum';
|
|
3644
|
+
|
|
3645
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
3646
|
+
}
|
|
3647
|
+
|
|
3444
3648
|
type Network =
|
|
3445
3649
|
| 'amex'
|
|
3446
3650
|
| 'cartes_bancaires'
|
|
@@ -4741,6 +4945,11 @@ declare module 'stripe' {
|
|
|
4741
4945
|
*/
|
|
4742
4946
|
installments?: Card.Installments;
|
|
4743
4947
|
|
|
4948
|
+
/**
|
|
4949
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
4950
|
+
*/
|
|
4951
|
+
mandate_options?: Card.MandateOptions;
|
|
4952
|
+
|
|
4744
4953
|
/**
|
|
4745
4954
|
* When specified, this parameter indicates that a transaction will be marked
|
|
4746
4955
|
* as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
|
@@ -4806,6 +5015,59 @@ declare module 'stripe' {
|
|
|
4806
5015
|
}
|
|
4807
5016
|
}
|
|
4808
5017
|
|
|
5018
|
+
interface MandateOptions {
|
|
5019
|
+
/**
|
|
5020
|
+
* Amount to be charged for future payments.
|
|
5021
|
+
*/
|
|
5022
|
+
amount: number;
|
|
5023
|
+
|
|
5024
|
+
/**
|
|
5025
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
5026
|
+
*/
|
|
5027
|
+
amount_type: MandateOptions.AmountType;
|
|
5028
|
+
|
|
5029
|
+
/**
|
|
5030
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
5031
|
+
*/
|
|
5032
|
+
description?: string;
|
|
5033
|
+
|
|
5034
|
+
/**
|
|
5035
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
5036
|
+
*/
|
|
5037
|
+
end_date?: number;
|
|
5038
|
+
|
|
5039
|
+
/**
|
|
5040
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
5041
|
+
*/
|
|
5042
|
+
interval: MandateOptions.Interval;
|
|
5043
|
+
|
|
5044
|
+
/**
|
|
5045
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
5046
|
+
*/
|
|
5047
|
+
interval_count?: number;
|
|
5048
|
+
|
|
5049
|
+
/**
|
|
5050
|
+
* Unique identifier for the mandate or subscription.
|
|
5051
|
+
*/
|
|
5052
|
+
reference: string;
|
|
5053
|
+
|
|
5054
|
+
/**
|
|
5055
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
5056
|
+
*/
|
|
5057
|
+
start_date: number;
|
|
5058
|
+
|
|
5059
|
+
/**
|
|
5060
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
5061
|
+
*/
|
|
5062
|
+
supported_types?: Array<'india'>;
|
|
5063
|
+
}
|
|
5064
|
+
|
|
5065
|
+
namespace MandateOptions {
|
|
5066
|
+
type AmountType = 'fixed' | 'maximum';
|
|
5067
|
+
|
|
5068
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
5069
|
+
}
|
|
5070
|
+
|
|
4809
5071
|
type Network =
|
|
4810
5072
|
| 'amex'
|
|
4811
5073
|
| 'cartes_bancaires'
|
|
@@ -408,6 +408,11 @@ declare module 'stripe' {
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
interface PaymentLinkCreateParams {
|
|
411
|
+
/**
|
|
412
|
+
* The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported.
|
|
413
|
+
*/
|
|
414
|
+
line_items: Array<PaymentLinkCreateParams.LineItem>;
|
|
415
|
+
|
|
411
416
|
/**
|
|
412
417
|
* Behavior after the purchase is complete.
|
|
413
418
|
*/
|
|
@@ -443,11 +448,6 @@ declare module 'stripe' {
|
|
|
443
448
|
*/
|
|
444
449
|
expand?: Array<string>;
|
|
445
450
|
|
|
446
|
-
/**
|
|
447
|
-
* The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported.
|
|
448
|
-
*/
|
|
449
|
-
line_items?: Array<PaymentLinkCreateParams.LineItem>;
|
|
450
|
-
|
|
451
451
|
/**
|
|
452
452
|
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://stripe.com/docs/api/checkout/sessions) created by this payment link.
|
|
453
453
|
*/
|
|
@@ -1262,10 +1262,7 @@ declare module 'stripe' {
|
|
|
1262
1262
|
* Creates a payment link.
|
|
1263
1263
|
*/
|
|
1264
1264
|
create(
|
|
1265
|
-
params
|
|
1266
|
-
options?: RequestOptions
|
|
1267
|
-
): Promise<Stripe.Response<Stripe.PaymentLink>>;
|
|
1268
|
-
create(
|
|
1265
|
+
params: PaymentLinkCreateParams,
|
|
1269
1266
|
options?: RequestOptions
|
|
1270
1267
|
): Promise<Stripe.Response<Stripe.PaymentLink>>;
|
|
1271
1268
|
|
|
@@ -335,6 +335,11 @@ declare module 'stripe' {
|
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
interface Card {
|
|
338
|
+
/**
|
|
339
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
340
|
+
*/
|
|
341
|
+
mandate_options: Card.MandateOptions | null;
|
|
342
|
+
|
|
338
343
|
/**
|
|
339
344
|
* We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Permitted values include: `automatic` or `any`. If not provided, defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
|
|
340
345
|
*/
|
|
@@ -342,6 +347,64 @@ declare module 'stripe' {
|
|
|
342
347
|
}
|
|
343
348
|
|
|
344
349
|
namespace Card {
|
|
350
|
+
interface MandateOptions {
|
|
351
|
+
/**
|
|
352
|
+
* Amount to be charged for future payments.
|
|
353
|
+
*/
|
|
354
|
+
amount: number;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
358
|
+
*/
|
|
359
|
+
amount_type: MandateOptions.AmountType;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
363
|
+
*/
|
|
364
|
+
currency: string;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
368
|
+
*/
|
|
369
|
+
description: string | null;
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
373
|
+
*/
|
|
374
|
+
end_date: number | null;
|
|
375
|
+
|
|
376
|
+
/**
|
|
377
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
378
|
+
*/
|
|
379
|
+
interval: MandateOptions.Interval;
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
383
|
+
*/
|
|
384
|
+
interval_count: number | null;
|
|
385
|
+
|
|
386
|
+
/**
|
|
387
|
+
* Unique identifier for the mandate or subscription.
|
|
388
|
+
*/
|
|
389
|
+
reference: string;
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
393
|
+
*/
|
|
394
|
+
start_date: number;
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
398
|
+
*/
|
|
399
|
+
supported_types: Array<'india'> | null;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
namespace MandateOptions {
|
|
403
|
+
type AmountType = 'fixed' | 'maximum';
|
|
404
|
+
|
|
405
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
406
|
+
}
|
|
407
|
+
|
|
345
408
|
type RequestThreeDSecure = 'any' | 'automatic' | 'challenge_only';
|
|
346
409
|
}
|
|
347
410
|
|
|
@@ -561,6 +624,11 @@ declare module 'stripe' {
|
|
|
561
624
|
}
|
|
562
625
|
|
|
563
626
|
interface Card {
|
|
627
|
+
/**
|
|
628
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
629
|
+
*/
|
|
630
|
+
mandate_options?: Card.MandateOptions;
|
|
631
|
+
|
|
564
632
|
/**
|
|
565
633
|
* When specified, this parameter signals that a card has been collected
|
|
566
634
|
* as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
|
@@ -575,6 +643,64 @@ declare module 'stripe' {
|
|
|
575
643
|
}
|
|
576
644
|
|
|
577
645
|
namespace Card {
|
|
646
|
+
interface MandateOptions {
|
|
647
|
+
/**
|
|
648
|
+
* Amount to be charged for future payments.
|
|
649
|
+
*/
|
|
650
|
+
amount: number;
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
654
|
+
*/
|
|
655
|
+
amount_type: MandateOptions.AmountType;
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
659
|
+
*/
|
|
660
|
+
currency: string;
|
|
661
|
+
|
|
662
|
+
/**
|
|
663
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
664
|
+
*/
|
|
665
|
+
description?: string;
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
669
|
+
*/
|
|
670
|
+
end_date?: number;
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
674
|
+
*/
|
|
675
|
+
interval: MandateOptions.Interval;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
679
|
+
*/
|
|
680
|
+
interval_count?: number;
|
|
681
|
+
|
|
682
|
+
/**
|
|
683
|
+
* Unique identifier for the mandate or subscription.
|
|
684
|
+
*/
|
|
685
|
+
reference: string;
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
689
|
+
*/
|
|
690
|
+
start_date: number;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
694
|
+
*/
|
|
695
|
+
supported_types?: Array<'india'>;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
namespace MandateOptions {
|
|
699
|
+
type AmountType = 'fixed' | 'maximum';
|
|
700
|
+
|
|
701
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
702
|
+
}
|
|
703
|
+
|
|
578
704
|
type RequestThreeDSecure = 'any' | 'automatic';
|
|
579
705
|
}
|
|
580
706
|
|
|
@@ -736,6 +862,11 @@ declare module 'stripe' {
|
|
|
736
862
|
}
|
|
737
863
|
|
|
738
864
|
interface Card {
|
|
865
|
+
/**
|
|
866
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
867
|
+
*/
|
|
868
|
+
mandate_options?: Card.MandateOptions;
|
|
869
|
+
|
|
739
870
|
/**
|
|
740
871
|
* When specified, this parameter signals that a card has been collected
|
|
741
872
|
* as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
|
@@ -750,6 +881,64 @@ declare module 'stripe' {
|
|
|
750
881
|
}
|
|
751
882
|
|
|
752
883
|
namespace Card {
|
|
884
|
+
interface MandateOptions {
|
|
885
|
+
/**
|
|
886
|
+
* Amount to be charged for future payments.
|
|
887
|
+
*/
|
|
888
|
+
amount: number;
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
892
|
+
*/
|
|
893
|
+
amount_type: MandateOptions.AmountType;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
897
|
+
*/
|
|
898
|
+
currency: string;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
902
|
+
*/
|
|
903
|
+
description?: string;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
907
|
+
*/
|
|
908
|
+
end_date?: number;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
912
|
+
*/
|
|
913
|
+
interval: MandateOptions.Interval;
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
917
|
+
*/
|
|
918
|
+
interval_count?: number;
|
|
919
|
+
|
|
920
|
+
/**
|
|
921
|
+
* Unique identifier for the mandate or subscription.
|
|
922
|
+
*/
|
|
923
|
+
reference: string;
|
|
924
|
+
|
|
925
|
+
/**
|
|
926
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
927
|
+
*/
|
|
928
|
+
start_date: number;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
932
|
+
*/
|
|
933
|
+
supported_types?: Array<'india'>;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
namespace MandateOptions {
|
|
937
|
+
type AmountType = 'fixed' | 'maximum';
|
|
938
|
+
|
|
939
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
940
|
+
}
|
|
941
|
+
|
|
753
942
|
type RequestThreeDSecure = 'any' | 'automatic';
|
|
754
943
|
}
|
|
755
944
|
|
|
@@ -1002,6 +1191,11 @@ declare module 'stripe' {
|
|
|
1002
1191
|
}
|
|
1003
1192
|
|
|
1004
1193
|
interface Card {
|
|
1194
|
+
/**
|
|
1195
|
+
* Configuration options for setting up an eMandate for cards issued in India.
|
|
1196
|
+
*/
|
|
1197
|
+
mandate_options?: Card.MandateOptions;
|
|
1198
|
+
|
|
1005
1199
|
/**
|
|
1006
1200
|
* When specified, this parameter signals that a card has been collected
|
|
1007
1201
|
* as MOTO (Mail Order Telephone Order) and thus out of scope for SCA. This
|
|
@@ -1016,6 +1210,64 @@ declare module 'stripe' {
|
|
|
1016
1210
|
}
|
|
1017
1211
|
|
|
1018
1212
|
namespace Card {
|
|
1213
|
+
interface MandateOptions {
|
|
1214
|
+
/**
|
|
1215
|
+
* Amount to be charged for future payments.
|
|
1216
|
+
*/
|
|
1217
|
+
amount: number;
|
|
1218
|
+
|
|
1219
|
+
/**
|
|
1220
|
+
* One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param.
|
|
1221
|
+
*/
|
|
1222
|
+
amount_type: MandateOptions.AmountType;
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Currency in which future payments will be charged. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
1226
|
+
*/
|
|
1227
|
+
currency: string;
|
|
1228
|
+
|
|
1229
|
+
/**
|
|
1230
|
+
* A description of the mandate or subscription that is meant to be displayed to the customer.
|
|
1231
|
+
*/
|
|
1232
|
+
description?: string;
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* End date of the mandate or subscription. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
|
|
1236
|
+
*/
|
|
1237
|
+
end_date?: number;
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Specifies payment frequency. One of `day`, `week`, `month`, `year`, or `sporadic`.
|
|
1241
|
+
*/
|
|
1242
|
+
interval: MandateOptions.Interval;
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* The number of intervals between payments. For example, `interval=month` and `interval_count=3` indicates one payment every three months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks). This parameter is optional when `interval=sporadic`.
|
|
1246
|
+
*/
|
|
1247
|
+
interval_count?: number;
|
|
1248
|
+
|
|
1249
|
+
/**
|
|
1250
|
+
* Unique identifier for the mandate or subscription.
|
|
1251
|
+
*/
|
|
1252
|
+
reference: string;
|
|
1253
|
+
|
|
1254
|
+
/**
|
|
1255
|
+
* Start date of the mandate or subscription. Start date should not be lesser than yesterday.
|
|
1256
|
+
*/
|
|
1257
|
+
start_date: number;
|
|
1258
|
+
|
|
1259
|
+
/**
|
|
1260
|
+
* Specifies the type of mandates supported. Possible values are `india`.
|
|
1261
|
+
*/
|
|
1262
|
+
supported_types?: Array<'india'>;
|
|
1263
|
+
}
|
|
1264
|
+
|
|
1265
|
+
namespace MandateOptions {
|
|
1266
|
+
type AmountType = 'fixed' | 'maximum';
|
|
1267
|
+
|
|
1268
|
+
type Interval = 'day' | 'month' | 'sporadic' | 'week' | 'year';
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1019
1271
|
type RequestThreeDSecure = 'any' | 'automatic';
|
|
1020
1272
|
}
|
|
1021
1273
|
|
package/types/lib.d.ts
CHANGED
|
@@ -249,9 +249,9 @@ declare module 'stripe' {
|
|
|
249
249
|
|
|
250
250
|
/**
|
|
251
251
|
* The page token to use to get the next page of results. If `has_more` is
|
|
252
|
-
* true, this will be set.
|
|
252
|
+
* true, this will be set to a concrete string value.
|
|
253
253
|
*/
|
|
254
|
-
next_page
|
|
254
|
+
next_page: string | null;
|
|
255
255
|
}
|
|
256
256
|
export interface ApiSearchResultPromise<T>
|
|
257
257
|
extends Promise<Response<ApiSearchResult<T>>>,
|