Skip to content

Commit

Permalink
Merge pull request #777 from stripe/remi/codegen-32bf030
Browse files Browse the repository at this point in the history
Add support for `shipping[speed]` on Issuing `Card`
  • Loading branch information
remi-stripe authored Jan 24, 2020
2 parents 9e5854d + cd964c2 commit a916823
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 6 deletions.
2 changes: 1 addition & 1 deletion types/2019-12-03/InvoiceLineItems.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ declare module 'stripe' {
| InvoiceLineItemListUpcomingParams.SubscriptionBillingCycleAnchor;

/**
* Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period if `prorate=true`
* Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using `proration_behavior`.`
*/
subscription_cancel_at?: number | '';

Expand Down
2 changes: 1 addition & 1 deletion types/2019-12-03/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ declare module 'stripe' {
| InvoiceRetrieveUpcomingParams.SubscriptionBillingCycleAnchor;

/**
* Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period if `prorate=true`
* Timestamp indicating when the subscription should be scheduled to cancel. Will prorate if within the current period and prorations have been enabled using `proration_behavior`.`
*/
subscription_cancel_at?: number | '';

Expand Down
14 changes: 14 additions & 0 deletions types/2019-12-03/Issuing/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,11 @@ declare module 'stripe' {
*/
name: string;

/**
* Shipment speed.
*/
speed: Shipping.Speed;

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

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

type Status =
| 'canceled'
| 'delivered'
Expand Down Expand Up @@ -2092,6 +2099,11 @@ declare module 'stripe' {
*/
name: string;

/**
* Shipment speed.
*/
speed?: Shipping.Speed;

/**
* Packaging options.
*/
Expand Down Expand Up @@ -2131,6 +2143,8 @@ declare module 'stripe' {
state?: string;
}

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

type Type = 'bulk' | 'individual';
}

Expand Down
8 changes: 4 additions & 4 deletions types/2019-12-03/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ declare module 'stripe' {
billing_thresholds?: SubscriptionCreateParams.BillingThresholds | null;

/**
* A timestamp at which the subscription should cancel. If set to a date before the current period ends this will cause a proration if `prorate=true`.
* A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
*/
cancel_at?: number;

Expand Down Expand Up @@ -367,7 +367,7 @@ declare module 'stripe' {
pending_invoice_item_interval?: SubscriptionCreateParams.PendingInvoiceItemInterval | null;

/**
* Boolean (defaults to `true`) telling us whether to [credit for unused time](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g. when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. If `false`, the anchor period will be free (similar to a trial) and no proration adjustments will be created. This field has been deprecated and will be removed in a future API version. Use `proration_behavior=create_prorations` as a replacement for `prorate=true` and `proration_behavior=none` for `prorate=false`.
* This field has been renamed to `proration_behavior`. `prorate=true` can be replaced with `proration_behavior=create_prorations` and `prorate=false` can be replaced with `proration_behavior=none`.
*/
prorate?: boolean;

Expand Down Expand Up @@ -510,7 +510,7 @@ declare module 'stripe' {
billing_thresholds?: SubscriptionUpdateParams.BillingThresholds | null;

/**
* A timestamp at which the subscription should cancel. If set to a date before the current period ends this will cause a proration if `prorate=true`.
* A timestamp at which the subscription should cancel. If set to a date before the current period ends, this will cause a proration if prorations have been enabled using `proration_behavior`. If set during a future period, this will always cause a proration for that period.
*/
cancel_at?: number | '';

Expand Down Expand Up @@ -582,7 +582,7 @@ declare module 'stripe' {
pending_invoice_item_interval?: SubscriptionUpdateParams.PendingInvoiceItemInterval | null;

/**
* Boolean (defaults to `true`) telling us whether to [credit for unused time](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the billing cycle changes (e.g. when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. If `false`, the anchor period will be free (similar to a trial) and no proration adjustments will be created. This field has been deprecated and will be removed in a future API version. Use `proration_behavior=create_prorations` as a replacement for `prorate=true` and `proration_behavior=none` for `prorate=false`.
* This field has been renamed to `proration_behavior`. `prorate=true` can be replaced with `proration_behavior=create_prorations` and `prorate=false` can be replaced with `proration_behavior=none`.
*/
prorate?: boolean;

Expand Down

0 comments on commit a916823

Please sign in to comment.