stripe 15.8.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
 
@@ -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'