Skip to content

Commit

Permalink
Codegen for openapi b87e570 (#1299)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Nov 19, 2021
1 parent b2e2488 commit c2020a1
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions types/2020-08-27/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ declare module 'stripe' {
* The type of the card.
*/
type: Card.Type;

/**
* Information relating to digital wallets (like Apple Pay and Google Pay).
*/
wallets: Card.Wallets | null;
}

namespace Card {
Expand Down Expand Up @@ -1101,6 +1106,57 @@ declare module 'stripe' {
type Status = 'active' | 'canceled' | 'inactive';

type Type = 'physical' | 'virtual';

interface Wallets {
apple_pay: Wallets.ApplePay;

google_pay: Wallets.GooglePay;

/**
* Unique identifier for a card used with digital wallets
*/
primary_account_identifier: string | null;
}

namespace Wallets {
interface ApplePay {
/**
* Apple Pay Eligibility
*/
eligible: boolean;

/**
* Reason the card is ineligible for Apple Pay
*/
ineligible_reason: ApplePay.IneligibleReason | null;
}

namespace ApplePay {
type IneligibleReason =
| 'missing_agreement'
| 'missing_cardholder_contact'
| 'unsupported_region';
}

interface GooglePay {
/**
* Google Pay Eligibility
*/
eligible: boolean;

/**
* Reason the card is ineligible for Google Pay
*/
ineligible_reason: GooglePay.IneligibleReason | null;
}

namespace GooglePay {
type IneligibleReason =
| 'missing_agreement'
| 'missing_cardholder_contact'
| 'unsupported_region';
}
}
}

interface CardCreateParams {
Expand Down

0 comments on commit c2020a1

Please sign in to comment.