stripe 8.217.0 → 8.218.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 +11 -0
- package/VERSION +1 -1
- package/lib/resources/Customers.js +5 -0
- package/lib/resources/Terminal/Configurations.js +36 -0
- package/lib/resources.js +1 -0
- package/package.json +1 -1
- package/types/2020-08-27/Charges.d.ts +5 -1
- package/types/2020-08-27/Customers.d.ts +116 -0
- package/types/2020-08-27/FundingInstructions.d.ts +80 -0
- package/types/2020-08-27/PaymentIntents.d.ts +291 -4
- package/types/2020-08-27/PaymentMethods.d.ts +14 -0
- package/types/2020-08-27/Terminal/Configurations.d.ts +1075 -0
- package/types/2020-08-27/Terminal/Locations.d.ts +15 -0
- package/types/2020-08-27/index.d.ts +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.218.0 - 2022-04-18
|
|
4
|
+
* [#1396](https://github.com/stripe/stripe-node/pull/1396) API Updates
|
|
5
|
+
* Add support for new resources `FundingInstructions` and `Terminal.Configuration`
|
|
6
|
+
* Add support for `create_funding_instructions` method on resource `Customer`
|
|
7
|
+
* Add support for new value `customer_balance` as a payment method `type`.
|
|
8
|
+
* Add support for `customer_balance` 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`, and `PaymentMethod`
|
|
9
|
+
* Add support for `cash_balance` on `CustomerCreateParams` and `CustomerUpdateParams`
|
|
10
|
+
* Add support for `amount_details` on `PaymentIntent`
|
|
11
|
+
* Add support for `display_bank_transfer_instructions` on `PaymentIntent.next_action`
|
|
12
|
+
* Add support for `configuration_overrides` on `Terminal.Location`, `TerminalLocationCreateParams`, and `TerminalLocationUpdateParams`
|
|
13
|
+
|
|
3
14
|
## 8.217.0 - 2022-04-13
|
|
4
15
|
* [#1395](https://github.com/stripe/stripe-node/pull/1395) API Updates
|
|
5
16
|
* Add support for `increment_authorization` method on resource `PaymentIntent`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.218.0
|
|
@@ -34,6 +34,11 @@ module.exports = StripeResource.extend({
|
|
|
34
34
|
path: '/{customer}',
|
|
35
35
|
}),
|
|
36
36
|
|
|
37
|
+
createFundingInstructions: stripeMethod({
|
|
38
|
+
method: 'POST',
|
|
39
|
+
path: '/{customer}/funding_instructions',
|
|
40
|
+
}),
|
|
41
|
+
|
|
37
42
|
deleteDiscount: stripeMethod({
|
|
38
43
|
method: 'DELETE',
|
|
39
44
|
path: '/{customer}/discount',
|
|
@@ -0,0 +1,36 @@
|
|
|
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: 'terminal/configurations',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{configuration}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
update: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '/{configuration}',
|
|
24
|
+
}),
|
|
25
|
+
|
|
26
|
+
list: stripeMethod({
|
|
27
|
+
method: 'GET',
|
|
28
|
+
path: '',
|
|
29
|
+
methodType: 'list',
|
|
30
|
+
}),
|
|
31
|
+
|
|
32
|
+
del: stripeMethod({
|
|
33
|
+
method: 'DELETE',
|
|
34
|
+
path: '/{configuration}',
|
|
35
|
+
}),
|
|
36
|
+
});
|
package/lib/resources.js
CHANGED
|
@@ -87,6 +87,7 @@ module.exports = {
|
|
|
87
87
|
ScheduledQueryRuns: require('./resources/Sigma/ScheduledQueryRuns'),
|
|
88
88
|
}),
|
|
89
89
|
Terminal: resourceNamespace('terminal', {
|
|
90
|
+
Configurations: require('./resources/Terminal/Configurations'),
|
|
90
91
|
ConnectionTokens: require('./resources/Terminal/ConnectionTokens'),
|
|
91
92
|
Locations: require('./resources/Terminal/Locations'),
|
|
92
93
|
Readers: require('./resources/Terminal/Readers'),
|
package/package.json
CHANGED
|
@@ -409,6 +409,8 @@ declare module 'stripe' {
|
|
|
409
409
|
|
|
410
410
|
card_present?: PaymentMethodDetails.CardPresent;
|
|
411
411
|
|
|
412
|
+
customer_balance?: PaymentMethodDetails.CustomerBalance;
|
|
413
|
+
|
|
412
414
|
eps?: PaymentMethodDetails.Eps;
|
|
413
415
|
|
|
414
416
|
fpx?: PaymentMethodDetails.Fpx;
|
|
@@ -1007,7 +1009,7 @@ declare module 'stripe' {
|
|
|
1007
1009
|
iin?: string | null;
|
|
1008
1010
|
|
|
1009
1011
|
/**
|
|
1010
|
-
* Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support]
|
|
1012
|
+
* Whether this [PaymentIntent](https://stripe.com/docs/api/payment_intents) is eligible for incremental authorizations. Request support using [request_incremental_authorization_support](https://stripe.com/docs/api/payment_intents/create#create_payment_intent-payment_method_options-card_present-request_incremental_authorization_support).
|
|
1011
1013
|
*/
|
|
1012
1014
|
incremental_authorization_supported: boolean | null;
|
|
1013
1015
|
|
|
@@ -1102,6 +1104,8 @@ declare module 'stripe' {
|
|
|
1102
1104
|
}
|
|
1103
1105
|
}
|
|
1104
1106
|
|
|
1107
|
+
interface CustomerBalance {}
|
|
1108
|
+
|
|
1105
1109
|
interface Eps {
|
|
1106
1110
|
/**
|
|
1107
1111
|
* The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`.
|
|
@@ -277,6 +277,11 @@ declare module 'stripe' {
|
|
|
277
277
|
*/
|
|
278
278
|
balance?: number;
|
|
279
279
|
|
|
280
|
+
/**
|
|
281
|
+
* Balance information and default balance settings for this customer.
|
|
282
|
+
*/
|
|
283
|
+
cash_balance?: CustomerCreateParams.CashBalance;
|
|
284
|
+
|
|
280
285
|
coupon?: string;
|
|
281
286
|
|
|
282
287
|
/**
|
|
@@ -365,6 +370,34 @@ declare module 'stripe' {
|
|
|
365
370
|
}
|
|
366
371
|
|
|
367
372
|
namespace CustomerCreateParams {
|
|
373
|
+
interface CashBalance {
|
|
374
|
+
/**
|
|
375
|
+
* Settings controlling the behavior of the customer's cash balance,
|
|
376
|
+
* such as reconciliation of funds received.
|
|
377
|
+
*/
|
|
378
|
+
settings?: CashBalance.Settings;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
namespace CashBalance {
|
|
382
|
+
interface Settings {
|
|
383
|
+
/**
|
|
384
|
+
* Method for using the customer balance to pay outstanding
|
|
385
|
+
* `customer_balance` PaymentIntents. If set to `automatic`, all available
|
|
386
|
+
* funds will automatically be used to pay any outstanding PaymentIntent.
|
|
387
|
+
* If set to `manual`, only customer balance funds from bank transfers
|
|
388
|
+
* with a reference code matching
|
|
389
|
+
* `payment_intent.next_action.display_bank_transfer_intructions.reference_code` will
|
|
390
|
+
* automatically be used to pay the corresponding outstanding
|
|
391
|
+
* PaymentIntent.
|
|
392
|
+
*/
|
|
393
|
+
reconciliation_mode?: Settings.ReconciliationMode;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
namespace Settings {
|
|
397
|
+
type ReconciliationMode = 'automatic' | 'manual';
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
368
401
|
interface InvoiceSettings {
|
|
369
402
|
/**
|
|
370
403
|
* Default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
|
|
@@ -508,6 +541,11 @@ declare module 'stripe' {
|
|
|
508
541
|
*/
|
|
509
542
|
balance?: number;
|
|
510
543
|
|
|
544
|
+
/**
|
|
545
|
+
* Balance information and default balance settings for this customer.
|
|
546
|
+
*/
|
|
547
|
+
cash_balance?: CustomerUpdateParams.CashBalance;
|
|
548
|
+
|
|
511
549
|
coupon?: string;
|
|
512
550
|
|
|
513
551
|
/**
|
|
@@ -598,6 +636,34 @@ declare module 'stripe' {
|
|
|
598
636
|
}
|
|
599
637
|
|
|
600
638
|
namespace CustomerUpdateParams {
|
|
639
|
+
interface CashBalance {
|
|
640
|
+
/**
|
|
641
|
+
* Settings controlling the behavior of the customer's cash balance,
|
|
642
|
+
* such as reconciliation of funds received.
|
|
643
|
+
*/
|
|
644
|
+
settings?: CashBalance.Settings;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
namespace CashBalance {
|
|
648
|
+
interface Settings {
|
|
649
|
+
/**
|
|
650
|
+
* Method for using the customer balance to pay outstanding
|
|
651
|
+
* `customer_balance` PaymentIntents. If set to `automatic`, all available
|
|
652
|
+
* funds will automatically be used to pay any outstanding PaymentIntent.
|
|
653
|
+
* If set to `manual`, only customer balance funds from bank transfers
|
|
654
|
+
* with a reference code matching
|
|
655
|
+
* `payment_intent.next_action.display_bank_transfer_intructions.reference_code` will
|
|
656
|
+
* automatically be used to pay the corresponding outstanding
|
|
657
|
+
* PaymentIntent.
|
|
658
|
+
*/
|
|
659
|
+
reconciliation_mode?: Settings.ReconciliationMode;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
namespace Settings {
|
|
663
|
+
type ReconciliationMode = 'automatic' | 'manual';
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
601
667
|
interface InvoiceSettings {
|
|
602
668
|
/**
|
|
603
669
|
* Default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
|
|
@@ -683,6 +749,44 @@ declare module 'stripe' {
|
|
|
683
749
|
|
|
684
750
|
interface CustomerDeleteParams {}
|
|
685
751
|
|
|
752
|
+
interface CustomerCreateFundingInstructionsParams {
|
|
753
|
+
/**
|
|
754
|
+
* Additional parameters for `bank_transfer` funding types
|
|
755
|
+
*/
|
|
756
|
+
bank_transfer: CustomerCreateFundingInstructionsParams.BankTransfer;
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* 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).
|
|
760
|
+
*/
|
|
761
|
+
currency: string;
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* The `funding_type` to get the instructions for.
|
|
765
|
+
*/
|
|
766
|
+
funding_type: 'bank_transfer';
|
|
767
|
+
|
|
768
|
+
/**
|
|
769
|
+
* Specifies which fields in the response should be expanded.
|
|
770
|
+
*/
|
|
771
|
+
expand?: Array<string>;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
namespace CustomerCreateFundingInstructionsParams {
|
|
775
|
+
interface BankTransfer {
|
|
776
|
+
/**
|
|
777
|
+
* List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned.
|
|
778
|
+
*
|
|
779
|
+
* Permitted values include: `zengin`.
|
|
780
|
+
*/
|
|
781
|
+
requested_address_types?: Array<'zengin'>;
|
|
782
|
+
|
|
783
|
+
/**
|
|
784
|
+
* The type of the `bank_transfer`
|
|
785
|
+
*/
|
|
786
|
+
type: 'jp_bank_transfer';
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
686
790
|
interface CustomerDeleteDiscountParams {}
|
|
687
791
|
|
|
688
792
|
interface CustomerListPaymentMethodsParams extends PaginationParams {
|
|
@@ -708,6 +812,7 @@ declare module 'stripe' {
|
|
|
708
812
|
| 'boleto'
|
|
709
813
|
| 'card'
|
|
710
814
|
| 'card_present'
|
|
815
|
+
| 'customer_balance'
|
|
711
816
|
| 'eps'
|
|
712
817
|
| 'fpx'
|
|
713
818
|
| 'giropay'
|
|
@@ -804,6 +909,17 @@ declare module 'stripe' {
|
|
|
804
909
|
options?: RequestOptions
|
|
805
910
|
): Promise<Stripe.Response<Stripe.DeletedCustomer>>;
|
|
806
911
|
|
|
912
|
+
/**
|
|
913
|
+
* Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new
|
|
914
|
+
* funding instructions will be created. If funding instructions have already been created for a given customer, the same
|
|
915
|
+
* funding instructions will be retrieved. In other words, we will return the same funding instructions each time.
|
|
916
|
+
*/
|
|
917
|
+
createFundingInstructions(
|
|
918
|
+
id: string,
|
|
919
|
+
params: CustomerCreateFundingInstructionsParams,
|
|
920
|
+
options?: RequestOptions
|
|
921
|
+
): Promise<Stripe.Response<Stripe.FundingInstructions>>;
|
|
922
|
+
|
|
807
923
|
/**
|
|
808
924
|
* Removes the currently applied discount on a customer.
|
|
809
925
|
*/
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
/**
|
|
6
|
+
* The FundingInstructions object.
|
|
7
|
+
*/
|
|
8
|
+
interface FundingInstructions {
|
|
9
|
+
/**
|
|
10
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
11
|
+
*/
|
|
12
|
+
object: 'funding_instructions';
|
|
13
|
+
|
|
14
|
+
bank_transfer: FundingInstructions.BankTransfer;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 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).
|
|
18
|
+
*/
|
|
19
|
+
currency: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The `funding_type` of the returned instructions
|
|
23
|
+
*/
|
|
24
|
+
funding_type: 'bank_transfer';
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
28
|
+
*/
|
|
29
|
+
livemode: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
namespace FundingInstructions {
|
|
33
|
+
interface BankTransfer {
|
|
34
|
+
/**
|
|
35
|
+
* The country of the bank account to fund
|
|
36
|
+
*/
|
|
37
|
+
country: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* A list of financial addresses that can be used to fund a particular balance
|
|
41
|
+
*/
|
|
42
|
+
financial_addresses: Array<BankTransfer.FinancialAddress>;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The bank_transfer type
|
|
46
|
+
*/
|
|
47
|
+
type: BankTransfer.Type;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
namespace BankTransfer {
|
|
51
|
+
interface FinancialAddress {
|
|
52
|
+
/**
|
|
53
|
+
* The payment networks supported by this FinancialAddress
|
|
54
|
+
*/
|
|
55
|
+
supported_networks?: Array<FinancialAddress.SupportedNetwork>;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* The type of financial address
|
|
59
|
+
*/
|
|
60
|
+
type: FinancialAddress.Type;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Zengin Records contain Japan bank account details per the Zengin format.
|
|
64
|
+
*/
|
|
65
|
+
zengin?: FinancialAddress.Zengin;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
namespace FinancialAddress {
|
|
69
|
+
type SupportedNetwork = 'sepa' | 'zengin';
|
|
70
|
+
|
|
71
|
+
type Type = 'iban' | 'zengin';
|
|
72
|
+
|
|
73
|
+
interface Zengin {}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
type Type = 'eu_bank_transfer' | 'jp_bank_transfer';
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|