stripe 16.5.0 → 16.6.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.
@@ -651,6 +651,7 @@ declare module 'stripe' {
651
651
  | 'charge_already_refunded'
652
652
  | 'charge_disputed'
653
653
  | 'charge_exceeds_source_limit'
654
+ | 'charge_exceeds_transaction_limit'
654
655
  | 'charge_expired_for_capture'
655
656
  | 'charge_invalid_parameter'
656
657
  | 'charge_not_refundable'
@@ -125,7 +125,7 @@ declare module 'stripe' {
125
125
  on_behalf_of: string | Stripe.Account | null;
126
126
 
127
127
  /**
128
- * ID of the payment method used with this SetupIntent.
128
+ * ID of the payment method used with this SetupIntent. If the payment method is `card_present` and isn't a digital wallet, then the [generated_card](https://docs.corp.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card) associated with the `latest_attempt` is attached to the Customer instead.
129
129
  */
130
130
  payment_method: string | Stripe.PaymentMethod | null;
131
131
 
@@ -321,6 +321,7 @@ declare module 'stripe' {
321
321
  | 'charge_already_refunded'
322
322
  | 'charge_disputed'
323
323
  | 'charge_exceeds_source_limit'
324
+ | 'charge_exceeds_transaction_limit'
324
325
  | 'charge_expired_for_capture'
325
326
  | 'charge_invalid_parameter'
326
327
  | 'charge_not_refundable'
@@ -1264,7 +1264,7 @@ declare module 'stripe' {
1264
1264
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
1265
1265
 
1266
1266
  /**
1267
- * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent.
1267
+ * ID of the payment method (a PaymentMethod, Card, or saved Source object) to attach to this SetupIntent. To unset this field to null, pass in an empty string.
1268
1268
  */
1269
1269
  payment_method?: string;
1270
1270
 
@@ -198,7 +198,7 @@ declare module 'stripe' {
198
198
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
199
199
 
200
200
  /**
201
- * Indicates if a customer is on or off-session while an invoice payment is attempted.
201
+ * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
202
202
  */
203
203
  off_session?: boolean;
204
204
 
@@ -121,7 +121,7 @@ declare module 'stripe' {
121
121
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
122
122
 
123
123
  /**
124
- * Indicates if a customer is on or off-session while an invoice payment is attempted.
124
+ * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
125
125
  */
126
126
  off_session?: boolean;
127
127
 
@@ -961,7 +961,7 @@ declare module 'stripe' {
961
961
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
962
962
 
963
963
  /**
964
- * Indicates if a customer is on or off-session while an invoice payment is attempted.
964
+ * Indicates if a customer is on or off-session while an invoice payment is attempted. Defaults to `false` (on-session).
965
965
  */
966
966
  off_session?: boolean;
967
967
 
@@ -156,6 +156,7 @@ declare module 'stripe' {
156
156
  | 'application_fee.refund.updated'
157
157
  | 'application_fee.refunded'
158
158
  | 'balance.available'
159
+ | 'billing.alert.triggered'
159
160
  | 'billing_portal.configuration.created'
160
161
  | 'billing_portal.configuration.updated'
161
162
  | 'billing_portal.session.created'
@@ -436,6 +437,7 @@ declare module 'stripe' {
436
437
  | 'application_fee.refund.updated'
437
438
  | 'application_fee.refunded'
438
439
  | 'balance.available'
440
+ | 'billing.alert.triggered'
439
441
  | 'billing_portal.configuration.created'
440
442
  | 'billing_portal.configuration.updated'
441
443
  | 'billing_portal.session.created'
package/types/index.d.ts CHANGED
@@ -134,6 +134,8 @@
134
134
  ///<reference path='./BalanceTransactionSources.d.ts' />
135
135
  ///<reference path='./BalanceTransactions.d.ts' />
136
136
  ///<reference path='./BankAccounts.d.ts' />
137
+ ///<reference path='./Billing/AlertTriggereds.d.ts' />
138
+ ///<reference path='./Billing/Alerts.d.ts' />
137
139
  ///<reference path='./Billing/MeterEventAdjustments.d.ts' />
138
140
  ///<reference path='./Billing/MeterEventSummaries.d.ts' />
139
141
  ///<reference path='./Billing/MeterEvents.d.ts' />