Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1299

Merged
merged 1 commit into from
Nov 19, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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