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 #1242

Merged
merged 2 commits into from
Sep 15, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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-08-27/BillingPortal/Configurations.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ declare module 'stripe' {
}

interface SubscriptionCancel {
cancellation_reason?: SubscriptionCancel.CancellationReason;
cancellation_reason: SubscriptionCancel.CancellationReason;

/**
* Whether the feature is enabled.
Expand Down
4 changes: 2 additions & 2 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ declare module 'stripe' {
brand: string | null;

/**
* 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 (`/`).
* 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.
*/
cardholder_name: string | null;

Expand Down Expand Up @@ -1252,7 +1252,7 @@ declare module 'stripe' {
brand: string | null;

/**
* 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 (`/`).
* 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.
*/
cardholder_name: string | null;

Expand Down
14 changes: 14 additions & 0 deletions types/2020-08-27/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,11 @@ declare module 'stripe' {
*/
custom_mandate_url?: string;

/**
* List of Stripe products where this mandate can be selected automatically. Returned when the Session is in `setup` mode.
*/
default_for?: Array<MandateOptions.DefaultFor>;

/**
* Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
*/
Expand All @@ -439,6 +444,8 @@ declare module 'stripe' {
}

namespace MandateOptions {
type DefaultFor = 'invoice' | 'subscription';

type PaymentSchedule = 'combined' | 'interval' | 'sporadic';

type TransactionType = 'business' | 'personal';
Expand Down Expand Up @@ -1456,6 +1463,11 @@ declare module 'stripe' {
*/
custom_mandate_url?: Stripe.Emptyable<string>;

/**
* List of Stripe products where this mandate can be selected automatically. Only usable in `setup` mode.
*/
default_for?: Array<MandateOptions.DefaultFor>;

/**
* Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
*/
Expand All @@ -1473,6 +1485,8 @@ declare module 'stripe' {
}

namespace MandateOptions {
type DefaultFor = 'invoice' | 'subscription';

type PaymentSchedule = 'combined' | 'interval' | 'sporadic';

type TransactionType = 'business' | 'personal';
Expand Down
96 changes: 96 additions & 0 deletions types/2020-08-27/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,11 @@ declare module 'stripe' {

namespace PaymentSettings {
interface PaymentMethodOptions {
/**
* If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
*/
acss_debit: PaymentMethodOptions.AcssDebit | null;

/**
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
*/
Expand All @@ -593,6 +598,30 @@ declare module 'stripe' {
}

namespace PaymentMethodOptions {
interface AcssDebit {
mandate_options?: AcssDebit.MandateOptions;

/**
* Bank account verification method.
*/
verification_method?: AcssDebit.VerificationMethod;
}

namespace AcssDebit {
interface MandateOptions {
/**
* Transaction type of the mandate.
*/
transaction_type: MandateOptions.TransactionType | null;
}

namespace MandateOptions {
type TransactionType = 'business' | 'personal';
}

type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand All @@ -619,6 +648,7 @@ declare module 'stripe' {
type PaymentMethodType =
| 'ach_credit_transfer'
| 'ach_debit'
| 'acss_debit'
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
Expand Down Expand Up @@ -913,6 +943,11 @@ declare module 'stripe' {

namespace PaymentSettings {
interface PaymentMethodOptions {
/**
* If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
*/
acss_debit?: Stripe.Emptyable<PaymentMethodOptions.AcssDebit>;

/**
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
*/
Expand All @@ -925,6 +960,33 @@ declare module 'stripe' {
}

namespace PaymentMethodOptions {
interface AcssDebit {
/**
* Additional fields for Mandate creation
*/
mandate_options?: AcssDebit.MandateOptions;

/**
* Verification method for the intent
*/
verification_method?: AcssDebit.VerificationMethod;
}

namespace AcssDebit {
interface MandateOptions {
/**
* Transaction type of the mandate.
*/
transaction_type?: MandateOptions.TransactionType;
}

namespace MandateOptions {
type TransactionType = 'business' | 'personal';
}

type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand All @@ -951,6 +1013,7 @@ declare module 'stripe' {
type PaymentMethodType =
| 'ach_credit_transfer'
| 'ach_debit'
| 'acss_debit'
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
Expand Down Expand Up @@ -1137,6 +1200,11 @@ declare module 'stripe' {

namespace PaymentSettings {
interface PaymentMethodOptions {
/**
* If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
*/
acss_debit?: Stripe.Emptyable<PaymentMethodOptions.AcssDebit>;

/**
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
*/
Expand All @@ -1149,6 +1217,33 @@ declare module 'stripe' {
}

namespace PaymentMethodOptions {
interface AcssDebit {
/**
* Additional fields for Mandate creation
*/
mandate_options?: AcssDebit.MandateOptions;

/**
* Verification method for the intent
*/
verification_method?: AcssDebit.VerificationMethod;
}

namespace AcssDebit {
interface MandateOptions {
/**
* Transaction type of the mandate.
*/
transaction_type?: MandateOptions.TransactionType;
}

namespace MandateOptions {
type TransactionType = 'business' | 'personal';
}

type VerificationMethod = 'automatic' | 'instant' | 'microdeposits';
}

interface Bancontact {
/**
* Preferred language of the Bancontact authorization page that the customer is redirected to.
Expand All @@ -1175,6 +1270,7 @@ declare module 'stripe' {
type PaymentMethodType =
| 'ach_credit_transfer'
| 'ach_debit'
| 'acss_debit'
| 'au_becs_debit'
| 'bacs_debit'
| 'bancontact'
Expand Down
7 changes: 7 additions & 0 deletions types/2020-08-27/Mandates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ declare module 'stripe' {

namespace PaymentMethodDetails {
interface AcssDebit {
/**
* List of Stripe products where this mandate can be selected automatically.
*/
default_for?: Array<AcssDebit.DefaultFor>;

/**
* Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
*/
Expand All @@ -118,6 +123,8 @@ declare module 'stripe' {
}

namespace AcssDebit {
type DefaultFor = 'invoice' | 'subscription';

type PaymentSchedule = 'combined' | 'interval' | 'sporadic';

type TransactionType = 'business' | 'personal';
Expand Down
5 changes: 5 additions & 0 deletions types/2020-08-27/Reporting/ReportTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ declare module 'stripe' {
*/
default_columns: Array<string> | null;

/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
*/
livemode: boolean;

/**
* Human-readable name of the Report Type
*/
Expand Down
28 changes: 28 additions & 0 deletions types/2020-08-27/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,11 @@ declare module 'stripe' {
*/
custom_mandate_url?: string;

/**
* List of Stripe products where this mandate can be selected automatically.
*/
default_for?: Array<MandateOptions.DefaultFor>;

/**
* Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'.
*/
Expand All @@ -319,6 +324,8 @@ declare module 'stripe' {
}

namespace MandateOptions {
type DefaultFor = 'invoice' | 'subscription';

type PaymentSchedule = 'combined' | 'interval' | 'sporadic';

type TransactionType = 'business' | 'personal';
Expand Down Expand Up @@ -521,6 +528,11 @@ declare module 'stripe' {
*/
custom_mandate_url?: Stripe.Emptyable<string>;

/**
* List of Stripe products where this mandate can be selected automatically.
*/
default_for?: Array<MandateOptions.DefaultFor>;

/**
* Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
*/
Expand All @@ -538,6 +550,8 @@ declare module 'stripe' {
}

namespace MandateOptions {
type DefaultFor = 'invoice' | 'subscription';

type PaymentSchedule = 'combined' | 'interval' | 'sporadic';

type TransactionType = 'business' | 'personal';
Expand Down Expand Up @@ -689,6 +703,11 @@ declare module 'stripe' {
*/
custom_mandate_url?: Stripe.Emptyable<string>;

/**
* List of Stripe products where this mandate can be selected automatically.
*/
default_for?: Array<MandateOptions.DefaultFor>;

/**
* Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
*/
Expand All @@ -706,6 +725,8 @@ declare module 'stripe' {
}

namespace MandateOptions {
type DefaultFor = 'invoice' | 'subscription';

type PaymentSchedule = 'combined' | 'interval' | 'sporadic';

type TransactionType = 'business' | 'personal';
Expand Down Expand Up @@ -948,6 +969,11 @@ declare module 'stripe' {
*/
custom_mandate_url?: Stripe.Emptyable<string>;

/**
* List of Stripe products where this mandate can be selected automatically.
*/
default_for?: Array<MandateOptions.DefaultFor>;

/**
* Description of the mandate interval. Only required if 'payment_schedule' parameter is 'interval' or 'combined'.
*/
Expand All @@ -965,6 +991,8 @@ declare module 'stripe' {
}

namespace MandateOptions {
type DefaultFor = 'invoice' | 'subscription';

type PaymentSchedule = 'combined' | 'interval' | 'sporadic';

type TransactionType = 'business' | 'personal';
Expand Down
Loading