diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index d91517e107..7e097336c4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v938 +v940 \ No newline at end of file diff --git a/api_version.go b/api_version.go index 84b0ae67a5..029f46298f 100644 --- a/api_version.go +++ b/api_version.go @@ -7,5 +7,5 @@ package stripe const ( - apiVersion string = "2023-10-16" + apiVersion string = "2024-04-10" ) diff --git a/invoice.go b/invoice.go index 01243e0292..adb0af3a8e 100644 --- a/invoice.go +++ b/invoice.go @@ -292,8 +292,6 @@ type InvoiceParams struct { PendingInvoiceItemsBehavior *string `form:"pending_invoice_items_behavior"` // The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. Rendering *InvoiceRenderingParams `form:"rendering"` - // This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering. - RenderingOptions *InvoiceRenderingOptionsParams `form:"rendering_options"` // Settings for the cost of shipping for this invoice. ShippingCost *InvoiceShippingCostParams `form:"shipping_cost"` // Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer. @@ -502,12 +500,6 @@ type InvoiceRenderingParams struct { PDF *InvoiceRenderingPDFParams `form:"pdf"` } -// This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering. -type InvoiceRenderingOptionsParams struct { - // How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. - AmountTaxDisplay *string `form:"amount_tax_display"` -} - // The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite. type InvoiceShippingCostShippingRateDataDeliveryEstimateMaximumParams struct { // A unit of time. @@ -1375,12 +1367,6 @@ type InvoiceRendering struct { PDF *InvoiceRenderingPDF `json:"pdf"` } -// This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering. -type InvoiceRenderingOptions struct { - // How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. - AmountTaxDisplay string `json:"amount_tax_display"` -} - // The taxes applied to the shipping rate. type InvoiceShippingCostTax struct { // Amount of tax applied for this rate. @@ -1634,8 +1620,6 @@ type Invoice struct { ReceiptNumber string `json:"receipt_number"` // The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page. Rendering *InvoiceRendering `json:"rendering"` - // This is a legacy field that will be removed soon. For details about `rendering_options`, refer to `rendering` instead. Options for invoice PDF rendering. - RenderingOptions *InvoiceRenderingOptions `json:"rendering_options"` // The details of the cost of shipping, including the ShippingRate applied on the invoice. ShippingCost *InvoiceShippingCost `json:"shipping_cost"` // Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer. diff --git a/product.go b/product.go index e61503c861..a1fca8066a 100644 --- a/product.go +++ b/product.go @@ -33,12 +33,12 @@ type ProductParams struct { Description *string `form:"description"` // Specifies which fields in the response should be expanded. Expand []*string `form:"expand"` - // A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). - Features []*ProductFeatureParams `form:"features"` // An identifier will be randomly generated by Stripe. You can optionally override this ID, but the ID must be unique across all products in your Stripe account. ID *string `form:"id"` // A list of up to 8 URLs of images for this product, meant to be displayable to the customer. Images []*string `form:"images"` + // A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). + MarketingFeatures []*ProductMarketingFeatureParams `form:"marketing_features"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. Metadata map[string]string `form:"metadata"` // The product's name, meant to be displayable to the customer. @@ -77,7 +77,7 @@ func (p *ProductParams) AddMetadata(key string, value string) { } // A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). -type ProductFeatureParams struct { +type ProductMarketingFeatureParams struct { // The marketing feature name. Up to 80 characters long. Name *string `form:"name"` } @@ -210,7 +210,7 @@ func (p *ProductSearchParams) AddExpand(f string) { } // A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). -type ProductFeature struct { +type ProductMarketingFeature struct { // The marketing feature name. Up to 80 characters long. Name string `json:"name"` } @@ -246,14 +246,14 @@ type Product struct { Deleted bool `json:"deleted"` // The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. Description string `json:"description"` - // A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). - Features []*ProductFeature `json:"features"` // Unique identifier for the object. ID string `json:"id"` // A list of up to 8 URLs of images for this product, meant to be displayable to the customer. Images []string `json:"images"` // Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. Livemode bool `json:"livemode"` + // A list of up to 15 marketing features for this product. These are displayed in [pricing tables](https://stripe.com/docs/payments/checkout/pricing-table). + MarketingFeatures []*ProductMarketingFeature `json:"marketing_features"` // Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Metadata map[string]string `json:"metadata"` // The product's name, meant to be displayable to the customer.