stripe 15.7.0 → 15.9.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.
@@ -285,6 +285,11 @@ declare module 'stripe' {
285
285
  */
286
286
  funding: string;
287
287
 
288
+ /**
289
+ * Details of the original PaymentMethod that created this object.
290
+ */
291
+ generated_from: Card.GeneratedFrom | null;
292
+
288
293
  /**
289
294
  * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
290
295
  */
@@ -334,6 +339,221 @@ declare module 'stripe' {
334
339
  cvc_check: string | null;
335
340
  }
336
341
 
342
+ interface GeneratedFrom {
343
+ /**
344
+ * The charge that created this object.
345
+ */
346
+ charge: string | null;
347
+
348
+ /**
349
+ * Transaction-specific details of the payment method used in the payment.
350
+ */
351
+ payment_method_details: GeneratedFrom.PaymentMethodDetails | null;
352
+
353
+ /**
354
+ * The ID of the SetupAttempt that generated this PaymentMethod, if any.
355
+ */
356
+ setup_attempt: string | Stripe.SetupAttempt | null;
357
+ }
358
+
359
+ namespace GeneratedFrom {
360
+ interface PaymentMethodDetails {
361
+ card_present?: PaymentMethodDetails.CardPresent;
362
+
363
+ /**
364
+ * The type of payment method transaction-specific details from the transaction that generated this `card` payment method. Always `card_present`.
365
+ */
366
+ type: string;
367
+ }
368
+
369
+ namespace PaymentMethodDetails {
370
+ interface CardPresent {
371
+ /**
372
+ * The authorized amount
373
+ */
374
+ amount_authorized: number | null;
375
+
376
+ /**
377
+ * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
378
+ */
379
+ brand: string | null;
380
+
381
+ /**
382
+ * When using manual capture, a future timestamp after which the charge will be automatically refunded if uncaptured.
383
+ */
384
+ capture_before?: number;
385
+
386
+ /**
387
+ * The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay.
388
+ */
389
+ cardholder_name: string | null;
390
+
391
+ /**
392
+ * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected.
393
+ */
394
+ country: string | null;
395
+
396
+ /**
397
+ * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.)
398
+ */
399
+ description?: string | null;
400
+
401
+ /**
402
+ * Authorization response cryptogram.
403
+ */
404
+ emv_auth_data: string | null;
405
+
406
+ /**
407
+ * Two-digit number representing the card's expiration month.
408
+ */
409
+ exp_month: number;
410
+
411
+ /**
412
+ * Four-digit number representing the card's expiration year.
413
+ */
414
+ exp_year: number;
415
+
416
+ /**
417
+ * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
418
+ *
419
+ * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.*
420
+ */
421
+ fingerprint: string | null;
422
+
423
+ /**
424
+ * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`.
425
+ */
426
+ funding: string | null;
427
+
428
+ /**
429
+ * ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod.
430
+ */
431
+ generated_card: string | null;
432
+
433
+ /**
434
+ * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.)
435
+ */
436
+ iin?: string | null;
437
+
438
+ /**
439
+ * 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).
440
+ */
441
+ incremental_authorization_supported: boolean;
442
+
443
+ /**
444
+ * The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.)
445
+ */
446
+ issuer?: string | null;
447
+
448
+ /**
449
+ * The last four digits of the card.
450
+ */
451
+ last4: string | null;
452
+
453
+ /**
454
+ * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`.
455
+ */
456
+ network: string | null;
457
+
458
+ /**
459
+ * Details about payments collected offline.
460
+ */
461
+ offline: CardPresent.Offline | null;
462
+
463
+ /**
464
+ * Defines whether the authorized amount can be over-captured or not
465
+ */
466
+ overcapture_supported: boolean;
467
+
468
+ /**
469
+ * EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
470
+ */
471
+ preferred_locales: Array<string> | null;
472
+
473
+ /**
474
+ * How card details were read in this transaction.
475
+ */
476
+ read_method: CardPresent.ReadMethod | null;
477
+
478
+ /**
479
+ * A collection of fields required to be displayed on receipts. Only required for EMV transactions.
480
+ */
481
+ receipt: CardPresent.Receipt | null;
482
+ }
483
+
484
+ namespace CardPresent {
485
+ interface Offline {
486
+ /**
487
+ * Time at which the payment was collected while offline
488
+ */
489
+ stored_at: number | null;
490
+ }
491
+
492
+ type ReadMethod =
493
+ | 'contact_emv'
494
+ | 'contactless_emv'
495
+ | 'contactless_magstripe_mode'
496
+ | 'magnetic_stripe_fallback'
497
+ | 'magnetic_stripe_track2';
498
+
499
+ interface Receipt {
500
+ /**
501
+ * The type of account being debited or credited
502
+ */
503
+ account_type?: Receipt.AccountType;
504
+
505
+ /**
506
+ * EMV tag 9F26, cryptogram generated by the integrated circuit chip.
507
+ */
508
+ application_cryptogram: string | null;
509
+
510
+ /**
511
+ * Mnenomic of the Application Identifier.
512
+ */
513
+ application_preferred_name: string | null;
514
+
515
+ /**
516
+ * Identifier for this transaction.
517
+ */
518
+ authorization_code: string | null;
519
+
520
+ /**
521
+ * EMV tag 8A. A code returned by the card issuer.
522
+ */
523
+ authorization_response_code: string | null;
524
+
525
+ /**
526
+ * Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
527
+ */
528
+ cardholder_verification_method: string | null;
529
+
530
+ /**
531
+ * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
532
+ */
533
+ dedicated_file_name: string | null;
534
+
535
+ /**
536
+ * The outcome of a series of EMV functions performed by the card reader.
537
+ */
538
+ terminal_verification_results: string | null;
539
+
540
+ /**
541
+ * An indication of various EMV functions performed during the transaction.
542
+ */
543
+ transaction_status_information: string | null;
544
+ }
545
+
546
+ namespace Receipt {
547
+ type AccountType =
548
+ | 'checking'
549
+ | 'credit'
550
+ | 'prepaid'
551
+ | 'unknown';
552
+ }
553
+ }
554
+ }
555
+ }
556
+
337
557
  interface Networks {
338
558
  /**
339
559
  * All available networks for the card.
@@ -439,7 +439,8 @@ declare module 'stripe' {
439
439
  | 'verification_missing_directors'
440
440
  | 'verification_missing_executives'
441
441
  | 'verification_missing_owners'
442
- | 'verification_requires_additional_memorandum_of_associations';
442
+ | 'verification_requires_additional_memorandum_of_associations'
443
+ | 'verification_requires_additional_proof_of_registration';
443
444
  }
444
445
  }
445
446
 
@@ -633,7 +634,8 @@ declare module 'stripe' {
633
634
  | 'verification_missing_directors'
634
635
  | 'verification_missing_executives'
635
636
  | 'verification_missing_owners'
636
- | 'verification_requires_additional_memorandum_of_associations';
637
+ | 'verification_requires_additional_memorandum_of_associations'
638
+ | 'verification_requires_additional_proof_of_registration';
637
639
  }
638
640
  }
639
641
 
@@ -780,6 +780,7 @@ declare module 'stripe' {
780
780
  | 'terminal_location_country_unsupported'
781
781
  | 'terminal_reader_busy'
782
782
  | 'terminal_reader_hardware_fault'
783
+ | 'terminal_reader_invalid_location_for_payment'
783
784
  | 'terminal_reader_offline'
784
785
  | 'terminal_reader_timeout'
785
786
  | 'testmode_charges_only'
@@ -450,6 +450,7 @@ declare module 'stripe' {
450
450
  | 'terminal_location_country_unsupported'
451
451
  | 'terminal_reader_busy'
452
452
  | 'terminal_reader_hardware_fault'
453
+ | 'terminal_reader_invalid_location_for_payment'
453
454
  | 'terminal_reader_offline'
454
455
  | 'terminal_reader_timeout'
455
456
  | 'testmode_charges_only'
@@ -219,12 +219,12 @@ declare module 'stripe' {
219
219
  plan?: string;
220
220
 
221
221
  /**
222
- * The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
222
+ * The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
223
223
  */
224
224
  price?: string;
225
225
 
226
226
  /**
227
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
227
+ * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
228
228
  */
229
229
  price_data?: SubscriptionItemUpdateParams.PriceData;
230
230
 
@@ -316,12 +316,12 @@ declare module 'stripe' {
316
316
  discounts?: Array<AddInvoiceItem.Discount>;
317
317
 
318
318
  /**
319
- * The ID of the price object.
319
+ * The ID of the price object. One of `price` or `price_data` is required.
320
320
  */
321
321
  price?: string;
322
322
 
323
323
  /**
324
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
324
+ * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
325
325
  */
326
326
  price_data?: AddInvoiceItem.PriceData;
327
327
 
@@ -939,12 +939,12 @@ declare module 'stripe' {
939
939
  discounts?: Array<AddInvoiceItem.Discount>;
940
940
 
941
941
  /**
942
- * The ID of the price object.
942
+ * The ID of the price object. One of `price` or `price_data` is required.
943
943
  */
944
944
  price?: string;
945
945
 
946
946
  /**
947
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
947
+ * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
948
948
  */
949
949
  price_data?: AddInvoiceItem.PriceData;
950
950
 
@@ -201,12 +201,12 @@ declare module 'stripe' {
201
201
  discounts?: Array<AddInvoiceItem.Discount>;
202
202
 
203
203
  /**
204
- * The ID of the price object.
204
+ * The ID of the price object. One of `price` or `price_data` is required.
205
205
  */
206
206
  price?: string;
207
207
 
208
208
  /**
209
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
209
+ * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
210
210
  */
211
211
  price_data?: AddInvoiceItem.PriceData;
212
212
 
@@ -1026,12 +1026,12 @@ declare module 'stripe' {
1026
1026
  discounts?: Array<AddInvoiceItem.Discount>;
1027
1027
 
1028
1028
  /**
1029
- * The ID of the price object.
1029
+ * The ID of the price object. One of `price` or `price_data` is required.
1030
1030
  */
1031
1031
  price?: string;
1032
1032
 
1033
1033
  /**
1034
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
1034
+ * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
1035
1035
  */
1036
1036
  price_data?: AddInvoiceItem.PriceData;
1037
1037
 
@@ -1250,12 +1250,12 @@ declare module 'stripe' {
1250
1250
  plan?: string;
1251
1251
 
1252
1252
  /**
1253
- * The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
1253
+ * The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
1254
1254
  */
1255
1255
  price?: string;
1256
1256
 
1257
1257
  /**
1258
- * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
1258
+ * Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
1259
1259
  */
1260
1260
  price_data?: Item.PriceData;
1261
1261
 
@@ -254,6 +254,10 @@ declare module 'stripe' {
254
254
  | 'issuing_dispute.funds_reinstated'
255
255
  | 'issuing_dispute.submitted'
256
256
  | 'issuing_dispute.updated'
257
+ | 'issuing_personalization_design.activated'
258
+ | 'issuing_personalization_design.deactivated'
259
+ | 'issuing_personalization_design.rejected'
260
+ | 'issuing_personalization_design.updated'
257
261
  | 'issuing_token.created'
258
262
  | 'issuing_token.updated'
259
263
  | 'issuing_transaction.created'
@@ -527,6 +531,10 @@ declare module 'stripe' {
527
531
  | 'issuing_dispute.funds_reinstated'
528
532
  | 'issuing_dispute.submitted'
529
533
  | 'issuing_dispute.updated'
534
+ | 'issuing_personalization_design.activated'
535
+ | 'issuing_personalization_design.deactivated'
536
+ | 'issuing_personalization_design.rejected'
537
+ | 'issuing_personalization_design.updated'
530
538
  | 'issuing_token.created'
531
539
  | 'issuing_token.updated'
532
540
  | 'issuing_transaction.created'