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

Merged
merged 2 commits into from
Mar 9, 2022
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
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. The response will not include customers with test clocks if this parameter is not set.
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