Skip to content

Commit

Permalink
Codegen for openapi 19ea774
Browse files Browse the repository at this point in the history
  • Loading branch information
cjavilla-stripe committed Jul 13, 2020
1 parent 96588c8 commit 187d0ed
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 13 deletions.
2 changes: 1 addition & 1 deletion types/2020-03-02/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ declare module 'stripe' {
disabled_reason: string | null;

/**
* The fields that need to be collected again because validation or verification failed for some reason.
* The fields that are `currently_due` and need to be collected again because validation or verification failed for some reason.
*/
errors: Array<Requirements.Error> | null;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ declare module 'stripe' {
disabled_reason: string | null;

/**
* The fields that need to be collected again because validation or verification failed for some reason.
* The fields that are `currently_due` and need to be collected again because validation or verification failed for some reason.
*/
errors: Array<Requirements.Error>;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ declare module 'stripe' {
recipient?: string | Stripe.Recipient | null;

/**
* If the card number is tokenized, this is the method that was used. Can be `amex_express_checkout`, `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
* If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
*/
tokenization_method: string | null;
}
Expand Down
4 changes: 3 additions & 1 deletion types/2020-03-02/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ declare module 'stripe' {
| 'el'
| 'en'
| 'es'
| 'es-419'
| 'et'
| 'fi'
| 'fr'
Expand Down Expand Up @@ -670,7 +671,7 @@ declare module 'stripe' {
quantity: number;

/**
* The tax rates which apply to this line item. This is only allowed in subscription mode.
* The [tax rates](https://stripe.com/docs/api/tax_rates) which apply to this line item. This is only allowed in subscription mode.
*/
tax_rates?: Array<string>;
}
Expand Down Expand Up @@ -758,6 +759,7 @@ declare module 'stripe' {
| 'el'
| 'en'
| 'es'
| 'es-419'
| 'et'
| 'fi'
| 'fr'
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ declare module 'stripe' {
/**
* The customer's current subscriptions, if any.
*/
subscriptions?: ApiList<Stripe.Subscription>;
subscriptions: ApiList<Stripe.Subscription> | null;

/**
* Describes the customer's tax exemption status. One of `none`, `exempt`, or `reverse`. When set to `reverse`, invoice and receipt PDFs include the text **"Reverse charge"**.
Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Issuing/Transactions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ declare module 'stripe' {
type: string;

/**
* The units for `volume`. One of `us_gallon` or `liter`.
* The units for `volume_decimal`. One of `us_gallon` or `liter`.
*/
unit: string;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-03-02/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ declare module 'stripe' {
currently_due: Array<string>;

/**
* The fields that need to be collected again because validation or verification failed for some reason.
* The fields that are `currently_due` and need to be collected again because validation or verification failed for some reason.
*/
errors: Array<Requirements.Error>;

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

interface DefaultSettings {
/**
* Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
*/
billing_cycle_anchor: DefaultSettings.BillingCycleAnchor;

/**
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
*/
Expand Down Expand Up @@ -123,6 +128,8 @@ declare module 'stripe' {
}

namespace DefaultSettings {
type BillingCycleAnchor = 'automatic' | 'phase_start';

interface BillingThresholds {
/**
* Monetary threshold that triggers the subscription to create an invoice
Expand Down Expand Up @@ -170,6 +177,11 @@ declare module 'stripe' {
*/
application_fee_percent: number | null;

/**
* Possible values are `phase_start` or `automatic`. If `phase_start` then billing cycle anchor of the subscription is set to the start of the phase when entering the phase. If `automatic` then the billing cycle anchor is automatically modified as needed when entering the phase. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
*/
billing_cycle_anchor: Phase.BillingCycleAnchor | null;

/**
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
*/
Expand Down Expand Up @@ -249,6 +261,8 @@ declare module 'stripe' {
quantity: number | null;
}

type BillingCycleAnchor = 'automatic' | 'phase_start';

interface BillingThresholds {
/**
* Monetary threshold that triggers the subscription to create an invoice
Expand Down Expand Up @@ -376,6 +390,11 @@ declare module 'stripe' {

namespace SubscriptionScheduleCreateParams {
interface DefaultSettings {
/**
* Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
*/
billing_cycle_anchor?: DefaultSettings.BillingCycleAnchor;

/**
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
*/
Expand Down Expand Up @@ -403,6 +422,8 @@ declare module 'stripe' {
}

namespace DefaultSettings {
type BillingCycleAnchor = 'automatic' | 'phase_start';

interface BillingThresholds {
/**
* Monetary threshold that triggers the subscription to advance to a new billing period
Expand Down Expand Up @@ -450,6 +471,11 @@ declare module 'stripe' {
*/
application_fee_percent?: number;

/**
* Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
*/
billing_cycle_anchor?: Phase.BillingCycleAnchor;

/**
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
*/
Expand Down Expand Up @@ -563,6 +589,8 @@ declare module 'stripe' {
}
}

type BillingCycleAnchor = 'automatic' | 'phase_start';

interface BillingThresholds {
/**
* Monetary threshold that triggers the subscription to advance to a new billing period
Expand Down Expand Up @@ -735,6 +763,11 @@ declare module 'stripe' {

namespace SubscriptionScheduleUpdateParams {
interface DefaultSettings {
/**
* Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
*/
billing_cycle_anchor?: DefaultSettings.BillingCycleAnchor;

/**
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
*/
Expand Down Expand Up @@ -762,6 +795,8 @@ declare module 'stripe' {
}

namespace DefaultSettings {
type BillingCycleAnchor = 'automatic' | 'phase_start';

interface BillingThresholds {
/**
* Monetary threshold that triggers the subscription to advance to a new billing period
Expand Down Expand Up @@ -809,6 +844,11 @@ declare module 'stripe' {
*/
application_fee_percent?: number;

/**
* Can be set to `phase_start` to set the anchor to the start of the phase or `automatic` to automatically change it if needed. Cannot be set to `phase_start` if this phase specifies a trial. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle).
*/
billing_cycle_anchor?: Phase.BillingCycleAnchor;

/**
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
*/
Expand Down Expand Up @@ -927,6 +967,8 @@ declare module 'stripe' {
}
}

type BillingCycleAnchor = 'automatic' | 'phase_start';

interface BillingThresholds {
/**
* Monetary threshold that triggers the subscription to advance to a new billing period
Expand Down
12 changes: 6 additions & 6 deletions types/2020-03-02/TaxRates.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ declare module 'stripe' {
object: 'tax_rate';

/**
* Defaults to `true`. When set to `false`, this tax rate cannot be applied to objects in the API, but will still be applied to subscriptions and invoices that already have it set.
* Defaults to `true`. When set to `false`, this tax rate is considered archived and cannot be applied to new applications or Checkout Sessions, but will still be applied to subscriptions and invoices that already have it set.
*/
active: boolean;

Expand Down Expand Up @@ -77,7 +77,7 @@ declare module 'stripe' {
percentage: number;

/**
* Flag determining whether the tax rate is active or inactive. Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications.
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications or Checkout Sessions.
*/
active?: boolean;

Expand Down Expand Up @@ -111,7 +111,7 @@ declare module 'stripe' {

interface TaxRateUpdateParams {
/**
* Flag determining whether the tax rate is active or inactive. Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications.
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications or Checkout Sessions.
*/
active?: boolean;

Expand Down Expand Up @@ -143,12 +143,12 @@ declare module 'stripe' {

interface TaxRateListParams extends PaginationParams {
/**
* Optional flag to filter by tax rates that are either active or not active (archived)
* Optional flag to filter by tax rates that are either active or inactive (archived).
*/
active?: boolean;

/**
* Optional range for filtering created date
* Optional range for filtering created date.
*/
created?: RangeQueryParam | number;

Expand All @@ -158,7 +158,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* Optional flag to filter by tax rates that are inclusive (or those that are not inclusive)
* Optional flag to filter by tax rates that are inclusive (or those that are not inclusive).
*/
inclusive?: boolean;
}
Expand Down

0 comments on commit 187d0ed

Please sign in to comment.