diff --git a/checkout_session.go b/checkout_session.go index 3dfaddd331..80a476ed09 100644 --- a/checkout_session.go +++ b/checkout_session.go @@ -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`. @@ -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"` diff --git a/customer.go b/customer.go index 927d07ac3a..123341db7f 100644 --- a/customer.go +++ b/customer.go @@ -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. diff --git a/invoice.go b/invoice.go index ba4e6d8050..1db6668c20 100644 --- a/invoice.go +++ b/invoice.go @@ -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"` diff --git a/paymentmethod.go b/paymentmethod.go index 6f801ca1e9..7d2ee172a1 100644 --- a/paymentmethod.go +++ b/paymentmethod.go @@ -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:"*"` } diff --git a/quote.go b/quote.go index 7c909ce8ac..a2f9683fb8 100644 --- a/quote.go +++ b/quote.go @@ -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"` @@ -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"` diff --git a/subitem.go b/subitem.go index b4a7c8074a..146a48d5e9 100644 --- a/subitem.go +++ b/subitem.go @@ -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"` @@ -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"`