diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index b5dadb32d8..56064147e7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v936 \ No newline at end of file +v937 \ No newline at end of file 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.