Skip to content

Commit

Permalink
Codegen for openapi d65ebba
Browse files Browse the repository at this point in the history
  • Loading branch information
dcr-stripe committed Mar 9, 2022
1 parent a1e4f72 commit adb1b59
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions checkout_session.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ type CheckoutSessionLineItemPriceDataProductDataParams struct {
TaxCode *string `form:"tax_code"`
}

// The recurring components of a price such as `interval` and `usage_type`.
// The recurring components of a price such as `interval` and `interval_count`.
type CheckoutSessionLineItemPriceDataRecurringParams struct {
AggregateUsage *string `form:"aggregate_usage"`
// Specifies billing frequency. Either `day`, `week`, `month` or `year`.
Expand All @@ -301,7 +301,7 @@ type CheckoutSessionLineItemPriceDataParams struct {
Product *string `form:"product"`
// Data used to generate a new product object inline. One of `product` or `product_data` is required.
ProductData *CheckoutSessionLineItemPriceDataProductDataParams `form:"product_data"`
// The recurring components of a price such as `interval` and `usage_type`.
// The recurring components of a price such as `interval` and `interval_count`.
Recurring *CheckoutSessionLineItemPriceDataRecurringParams `form:"recurring"`
// Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
TaxBehavior *string `form:"tax_behavior"`
Expand Down
2 changes: 2 additions & 0 deletions customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ type CustomerListParams struct {
CreatedRange *RangeQueryParams `form:"created"`
// A case-sensitive filter on the list based on the customer's `email` field. The value must be a string.
Email *string `form:"email"`
// Provides a list of customers that are associated with the specified test clock. If no list is provided, the response won't include customers with test clocks.
TestClock *string `form:"test_clock"`
}

// Default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
Expand Down
2 changes: 1 addition & 1 deletion invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ type InvoiceParams struct {
Paid *bool `form:"paid"`
// Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
PaymentSettings *InvoicePaymentSettingsParams `form:"payment_settings"`
// How to handle pending invoice items on invoice creation. One of `include`, `include_and_require`, or `exclude`. `include` will include any pending invoice items, and will create an empty draft invoice if no pending invoice items exist. `include_and_require` will include any pending invoice items, if no pending invoice items exist then the request will fail. `exclude` will always create an empty invoice draft regardless if there are pending invoice items or not. Defaults to `include_and_require` if the parameter is omitted.
// How to handle pending invoice items on invoice creation. One of `include`, `exclude`, or `include_and_require`. `include` will include any pending invoice items, and will create an empty draft invoice if no pending invoice items exist. `include_and_require` will include any pending invoice items, if no pending invoice items exist then the request will fail. `exclude` will always create an empty invoice draft regardless if there are pending invoice items or not. Defaults to `include_and_require` if the parameter is omitted.
PendingInvoiceItemsBehavior *string `form:"pending_invoice_items_behavior"`
// The identifier of the unstarted schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
Schedule *string `form:"schedule"`
Expand Down
2 changes: 1 addition & 1 deletion paymentmethod.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ type PaymentMethodAttachParams struct {
Customer *string `form:"customer"`
}

// Detaches a PaymentMethod object from a Customer.
// Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.
type PaymentMethodDetachParams struct {
Params `form:"*"`
}
Expand Down
4 changes: 2 additions & 2 deletions quote.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ type QuoteInvoiceSettingsParams struct {
DaysUntilDue *int64 `form:"days_until_due"`
}

// The recurring components of a price such as `interval` and `usage_type`.
// The recurring components of a price such as `interval` and `interval_count`.
type QuoteLineItemPriceDataRecurringParams struct {
// Specifies billing frequency. Either `day`, `week`, `month` or `year`.
Interval *string `form:"interval"`
Expand All @@ -127,7 +127,7 @@ type QuoteLineItemPriceDataParams struct {
Currency *string `form:"currency"`
// The ID of the product that this price will belong to.
Product *string `form:"product"`
// The recurring components of a price such as `interval` and `usage_type`.
// The recurring components of a price such as `interval` and `interval_count`.
Recurring *QuoteLineItemPriceDataRecurringParams `form:"recurring"`
// Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
TaxBehavior *string `form:"tax_behavior"`
Expand Down
4 changes: 2 additions & 2 deletions subitem.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type SubscriptionItemBillingThresholdsParams struct {
UsageGTE *int64 `form:"usage_gte"`
}

// The recurring components of a price such as `interval` and `usage_type`.
// The recurring components of a price such as `interval` and `interval_count`.
type SubscriptionItemPriceDataRecurringParams struct {
// Specifies billing frequency. Either `day`, `week`, `month` or `year`.
Interval *string `form:"interval"`
Expand All @@ -33,7 +33,7 @@ type SubscriptionItemPriceDataParams struct {
Currency *string `form:"currency"`
// The ID of the product that this price will belong to.
Product *string `form:"product"`
// The recurring components of a price such as `interval` and `usage_type`.
// The recurring components of a price such as `interval` and `interval_count`.
Recurring *SubscriptionItemPriceDataRecurringParams `form:"recurring"`
// Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`. Once specified as either `inclusive` or `exclusive`, it cannot be changed.
TaxBehavior *string `form:"tax_behavior"`
Expand Down

0 comments on commit adb1b59

Please sign in to comment.