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

Merged
merged 1 commit into from
May 7, 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
78 changes: 78 additions & 0 deletions types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,11 @@ declare module 'stripe' {
*/
product_description?: string;

/**
* A publicly available mailing address for sending support issues to.
*/
support_address?: BusinessProfile.SupportAddress;

/**
* A publicly available email address for sending support issues to.
*/
Expand All @@ -782,6 +787,40 @@ declare module 'stripe' {
url?: string;
}

namespace BusinessProfile {
interface SupportAddress {
/**
* City, district, suburb, town, or village.
*/
city?: string;

/**
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
*/
country?: string;

/**
* Address line 1 (e.g., street, PO Box, or company name).
*/
line1?: string;

/**
* Address line 2 (e.g., apartment, suite, unit, or building).
*/
line2?: string;

/**
* ZIP or postal code.
*/
postal_code?: string;

/**
* State, county, province, or region.
*/
state?: string;
}
}

type BusinessType =
| 'company'
| 'government_entity'
Expand Down Expand Up @@ -1391,6 +1430,11 @@ declare module 'stripe' {
*/
product_description?: string;

/**
* A publicly available mailing address for sending support issues to.
*/
support_address?: BusinessProfile.SupportAddress;

/**
* A publicly available email address for sending support issues to.
*/
Expand All @@ -1412,6 +1456,40 @@ declare module 'stripe' {
url?: string;
}

namespace BusinessProfile {
interface SupportAddress {
/**
* City, district, suburb, town, or village.
*/
city?: string;

/**
* Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
*/
country?: string;

/**
* Address line 1 (e.g., street, PO Box, or company name).
*/
line1?: string;

/**
* Address line 2 (e.g., apartment, suite, unit, or building).
*/
line2?: string;

/**
* ZIP or postal code.
*/
postal_code?: string;

/**
* State, county, province, or region.
*/
state?: string;
}
}

type BusinessType =
| 'company'
| 'government_entity'
Expand Down
6 changes: 5 additions & 1 deletion types/2020-03-02/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,11 @@ declare module 'stripe' {
/**
* The version of 3D Secure that was used for this payment.
*/
version: string;
version: ThreeDSecure.Version;
}

namespace ThreeDSecure {
type Version = '1.0.2' | '2.1.0' | '2.2.0';
}

interface Wallet {
Expand Down
23 changes: 0 additions & 23 deletions types/2020-03-02/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -439,11 +439,6 @@ declare module 'stripe' {

namespace PriceData {
interface Recurring {
/**
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.
*/
aggregate_usage?: Recurring.AggregateUsage;

/**
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
*/
Expand All @@ -453,28 +448,10 @@ declare module 'stripe' {
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
*/
interval_count?: number;

/**
* Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://stripe.com/docs/api#create_subscription-trial_from_plan).
*/
trial_period_days?: number;

/**
* Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
*/
usage_type?: Recurring.UsageType;
}

namespace Recurring {
type AggregateUsage =
| 'last_during_period'
| 'last_ever'
| 'max'
| 'sum';

type Interval = 'day' | 'month' | 'week' | 'year';

type UsageType = 'licensed' | 'metered';
}
}
}
Expand Down
23 changes: 0 additions & 23 deletions types/2020-03-02/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1116,11 +1116,6 @@ declare module 'stripe' {

namespace PriceData {
interface Recurring {
/**
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.
*/
aggregate_usage?: Recurring.AggregateUsage;

/**
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
*/
Expand All @@ -1130,28 +1125,10 @@ declare module 'stripe' {
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
*/
interval_count?: number;

/**
* Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://stripe.com/docs/api#create_subscription-trial_from_plan).
*/
trial_period_days?: number;

/**
* Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
*/
usage_type?: Recurring.UsageType;
}

namespace Recurring {
type AggregateUsage =
| 'last_during_period'
| 'last_ever'
| 'max'
| 'sum';

type Interval = 'day' | 'month' | 'week' | 'year';

type UsageType = 'licensed' | 'metered';
}
}
}
Expand Down
7 changes: 7 additions & 0 deletions types/2020-03-02/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,11 @@ declare module 'stripe' {
}

interface PaymentMethodUpdateParams {
/**
* If this is an `au_becs_debit` PaymentMethod, this hash contains details about the bank account.
*/
au_becs_debit?: PaymentMethodUpdateParams.AuBecsDebit;

/**
* Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
*/
Expand Down Expand Up @@ -655,6 +660,8 @@ declare module 'stripe' {
}

namespace PaymentMethodUpdateParams {
interface AuBecsDebit {}

interface BillingDetails {
/**
* Billing address.
Expand Down
46 changes: 0 additions & 46 deletions types/2020-03-02/SubscriptionItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,11 +213,6 @@ declare module 'stripe' {

namespace PriceData {
interface Recurring {
/**
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.
*/
aggregate_usage?: Recurring.AggregateUsage;

/**
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
*/
Expand All @@ -227,28 +222,10 @@ declare module 'stripe' {
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
*/
interval_count?: number;

/**
* Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://stripe.com/docs/api#create_subscription-trial_from_plan).
*/
trial_period_days?: number;

/**
* Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
*/
usage_type?: Recurring.UsageType;
}

namespace Recurring {
type AggregateUsage =
| 'last_during_period'
| 'last_ever'
| 'max'
| 'sum';

type Interval = 'day' | 'month' | 'week' | 'year';

type UsageType = 'licensed' | 'metered';
}
}

Expand Down Expand Up @@ -379,11 +356,6 @@ declare module 'stripe' {

namespace PriceData {
interface Recurring {
/**
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.
*/
aggregate_usage?: Recurring.AggregateUsage;

/**
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
*/
Expand All @@ -393,28 +365,10 @@ declare module 'stripe' {
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
*/
interval_count?: number;

/**
* Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://stripe.com/docs/api#create_subscription-trial_from_plan).
*/
trial_period_days?: number;

/**
* Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
*/
usage_type?: Recurring.UsageType;
}

namespace Recurring {
type AggregateUsage =
| 'last_during_period'
| 'last_ever'
| 'max'
| 'sum';

type Interval = 'day' | 'month' | 'week' | 'year';

type UsageType = 'licensed' | 'metered';
}
}

Expand Down
46 changes: 0 additions & 46 deletions types/2020-03-02/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -591,11 +591,6 @@ declare module 'stripe' {

namespace PriceData {
interface Recurring {
/**
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.
*/
aggregate_usage?: Recurring.AggregateUsage;

/**
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
*/
Expand All @@ -605,28 +600,10 @@ declare module 'stripe' {
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
*/
interval_count?: number;

/**
* Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://stripe.com/docs/api#create_subscription-trial_from_plan).
*/
trial_period_days?: number;

/**
* Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
*/
usage_type?: Recurring.UsageType;
}

namespace Recurring {
type AggregateUsage =
| 'last_during_period'
| 'last_ever'
| 'max'
| 'sum';

type Interval = 'day' | 'month' | 'week' | 'year';

type UsageType = 'licensed' | 'metered';
}
}
}
Expand Down Expand Up @@ -944,11 +921,6 @@ declare module 'stripe' {

namespace PriceData {
interface Recurring {
/**
* Specifies a usage aggregation strategy for prices of `usage_type=metered`. Allowed values are `sum` for summing up all usage during a period, `last_during_period` for using the last usage record reported within a period, `last_ever` for using the last usage record ever (across period bounds) or `max` which uses the usage record with the maximum reported usage during a period. Defaults to `sum`.
*/
aggregate_usage?: Recurring.AggregateUsage;

/**
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
*/
Expand All @@ -958,28 +930,10 @@ declare module 'stripe' {
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
*/
interval_count?: number;

/**
* Default number of trial days when subscribing a customer to this price using [`trial_from_plan=true`](https://stripe.com/docs/api#create_subscription-trial_from_plan).
*/
trial_period_days?: number;

/**
* Configures how the quantity per period should be determined. Can be either `metered` or `licensed`. `licensed` automatically bills the `quantity` set when adding it to a subscription. `metered` aggregates the total usage based on usage records. Defaults to `licensed`.
*/
usage_type?: Recurring.UsageType;
}

namespace Recurring {
type AggregateUsage =
| 'last_during_period'
| 'last_ever'
| 'max'
| 'sum';

type Interval = 'day' | 'month' | 'week' | 'year';

type UsageType = 'licensed' | 'metered';
}
}
}
Expand Down
Loading