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

Multiple API changes for Issuing resources #836

Merged
merged 1 commit into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ declare module 'stripe' {
interface ShippingAddressCollection {
/**
* An array of two-letter ISO country codes representing which countries Checkout should provide as options for
* shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`.'
* shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`.
*/
allowed_countries: Array<ShippingAddressCollection.AllowedCountry>;
}
Expand Down
18 changes: 15 additions & 3 deletions types/2020-03-02/Issuing/Authorizations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ declare module 'stripe' {
/**
* What, if any, digital wallet was used for this authorization. One of `apple_pay`, `google_pay`, or `samsung_pay`.
*/
wallet_provider: string | null;
wallet: string | null;

/**
* [DEPRECATED] What, if any, digital wallet was used for this authorization. One of `apple_pay`, `google_pay`, or `samsung_pay`.
*/
wallet_provider?: string | null;
}

namespace Authorization {
Expand Down Expand Up @@ -261,9 +266,14 @@ declare module 'stripe' {
address_line1_check: VerificationData.AddressLine1Check;

/**
* Whether the cardholder provided a zip (or postal code) and if it matched the cardholder's `billing.address.postal_code`.
* Whether the cardholder provided a postal code and if it matched the cardholder's `billing.address.postal_code`.
*/
address_zip_check: VerificationData.AddressZipCheck;
address_postal_code_check: VerificationData.AddressPostalCodeCheck;

/**
* [DEPRECATED] Whether the cardholder provided a postal code and if it matched the cardholder's `billing.address.postal_code`.
*/
address_zip_check?: VerificationData.AddressZipCheck;

/**
* [DEPRECATED] Whether 3DS authentication was performed.
Expand All @@ -289,6 +299,8 @@ declare module 'stripe' {
namespace VerificationData {
type AddressLine1Check = 'match' | 'mismatch' | 'not_provided';

type AddressPostalCodeCheck = 'match' | 'mismatch' | 'not_provided';

type AddressZipCheck = 'match' | 'mismatch' | 'not_provided';

type Authentication = 'failure' | 'none' | 'success';
Expand Down
10 changes: 5 additions & 5 deletions types/2020-03-02/Issuing/Cardholders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ declare module 'stripe' {
individual: Cardholder.Individual | null;

/**
* Whether or not this cardholder is the default cardholder.
* [DEPRECATED] Whether or not this cardholder is the default cardholder.
*/
is_default: boolean;
is_default?: boolean;

/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
Expand Down Expand Up @@ -1155,7 +1155,7 @@ declare module 'stripe' {
individual?: CardholderCreateParams.Individual;

/**
* Specifies whether to set this as the default cardholder.
* [DEPRECATED] Specifies whether to set this as the default cardholder.
*/
is_default?: boolean;

Expand Down Expand Up @@ -2251,7 +2251,7 @@ declare module 'stripe' {
individual?: CardholderUpdateParams.Individual;

/**
* Specifies whether to set this as the default cardholder.
* [DEPRECATED] Specifies whether to set this as the default cardholder.
*/
is_default?: boolean;

Expand Down Expand Up @@ -3323,7 +3323,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* Only return the default cardholder.
* [DEPRECATED] Only return the default cardholder.
*/
is_default?: boolean;

Expand Down
20 changes: 17 additions & 3 deletions types/2020-03-02/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1066,9 +1066,14 @@ declare module 'stripe' {
name: string;

/**
* Shipment speed.
* Shipment service, such as standard or overnight.
*/
speed: Shipping.Speed;
service: Shipping.Service;

/**
* [DEPRECATED] Shipment service, such as standard or overnight.
*/
speed?: Shipping.Speed;

/**
* The delivery status of the card.
Expand All @@ -1094,6 +1099,8 @@ declare module 'stripe' {
namespace Shipping {
type Carrier = 'fedex' | 'usps';

type Service = 'express' | 'overnight' | 'standard';

type Speed = 'express' | 'overnight' | 'standard';

type Status =
Expand Down Expand Up @@ -2100,7 +2107,12 @@ declare module 'stripe' {
name: string;

/**
* Shipment speed.
* Shipment service.
*/
service?: Shipping.Service;

/**
* [DEPRECATED] Shipment service.
*/
speed?: Shipping.Speed;

Expand Down Expand Up @@ -2143,6 +2155,8 @@ declare module 'stripe' {
state?: string;
}

type Service = 'express' | 'overnight' | 'standard';

type Speed = 'express' | 'overnight' | 'standard';

type Type = 'bulk' | 'individual';
Expand Down