Skip to content

Commit

Permalink
Update generated code for v940
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Apr 9, 2024
1 parent b8660f4 commit a65113d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v938
v940
2 changes: 1 addition & 1 deletion api_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
package stripe

const (
apiVersion string = "2023-10-16"
apiVersion string = "2024-04-10"
)
16 changes: 0 additions & 16 deletions invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
12 changes: 6 additions & 6 deletions product.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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"`
}
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit a65113d

Please sign in to comment.