From c98f478f3125af4b85dd9202e64884af4d99f5cc Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 4 Oct 2023 22:03:20 +0000 Subject: [PATCH] Update OpenAPI specification --- openapi/spec3.beta.sdk.json | 153 +++++++++++++---------------------- openapi/spec3.beta.sdk.yaml | 156 ++++++++++++++---------------------- openapi/spec3.json | 138 +++++++++++-------------------- openapi/spec3.sdk.json | 153 +++++++++++++---------------------- openapi/spec3.sdk.yaml | 156 ++++++++++++++---------------------- openapi/spec3.yaml | 126 +++++++++-------------------- 6 files changed, 320 insertions(+), 562 deletions(-) diff --git a/openapi/spec3.beta.sdk.json b/openapi/spec3.beta.sdk.json index 8e274945..125a9ab5 100644 --- a/openapi/spec3.beta.sdk.json +++ b/openapi/spec3.beta.sdk.json @@ -27592,29 +27592,6 @@ "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", "type": "boolean" }, - "margins": { - "description": "The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.", - "items": { - "anyOf": [ - { - "maxLength": 5000, - "type": "string" - }, - { - "$ref": "#/components/schemas/margin" - } - ], - "x-expansionResources": { - "oneOf": [ - { - "$ref": "#/components/schemas/margin" - } - ] - } - }, - "nullable": true, - "type": "array" - }, "metadata": { "additionalProperties": { "maxLength": 500, @@ -27747,7 +27724,6 @@ "discounts", "id", "livemode", - "margins", "metadata", "object", "period", @@ -27766,7 +27742,6 @@ "discount_amounts", "discounts", "invoice_item", - "margins", "period", "plan", "price", @@ -28396,78 +28371,6 @@ "in_package": "" } }, - "margin": { - "description": "A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who\nresell products and services and earn a discount (margin) for doing so.", - "properties": { - "active": { - "description": "Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`.", - "type": "boolean" - }, - "created": { - "description": "Time at which the object was created. Measured in seconds since the Unix epoch.", - "format": "unix-time", - "type": "integer" - }, - "id": { - "description": "Unique identifier for the object.", - "maxLength": 5000, - "type": "string" - }, - "livemode": { - "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", - "type": "boolean" - }, - "metadata": { - "additionalProperties": { - "maxLength": 500, - "type": "string" - }, - "description": "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.", - "nullable": true, - "type": "object" - }, - "name": { - "description": "Name of the margin that's displayed on, for example, invoices.", - "maxLength": 5000, - "nullable": true, - "type": "string" - }, - "object": { - "description": "String representing the object's type. Objects of the same type share the same value.", - "enum": [ - "margin" - ], - "type": "string" - }, - "percent_off": { - "description": "Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.", - "type": "number" - }, - "updated": { - "description": "Time at which the object was last updated. Measured in seconds since the Unix epoch.", - "format": "unix-time", - "type": "integer" - } - }, - "required": [ - "active", - "created", - "id", - "livemode", - "metadata", - "name", - "object", - "percent_off", - "updated" - ], - "title": "Margin", - "type": "object", - "x-expandableFields": [], - "x-stripeResource": { - "class_name": "Margin", - "in_package": "" - } - }, "migrate_to": { "description": "", "properties": { @@ -33787,12 +33690,26 @@ ], "nullable": true, "type": "string" + }, + "statement_descriptor": { + "description": "Extra information about the payment. This will appear on your customer's statement when this payment succeeds in creating a charge.", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, + "statement_descriptor_suffix": { + "description": "Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.", + "maxLength": 5000, + "nullable": true, + "type": "string" } }, "required": [ "capture_method", "metadata", - "setup_future_usage" + "setup_future_usage", + "statement_descriptor", + "statement_descriptor_suffix" ], "title": "PaymentLinksResourcePaymentIntentData", "type": "object", @@ -123522,6 +123439,16 @@ "on_session" ], "type": "string" + }, + "statement_descriptor": { + "description": "Extra information about the payment. This will appear on your customer's statement when this payment succeeds in creating a charge.", + "maxLength": 22, + "type": "string" + }, + "statement_descriptor_suffix": { + "description": "Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.", + "maxLength": 22, + "type": "string" } }, "title": "payment_intent_data_params", @@ -124594,6 +124521,36 @@ } ], "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Payment Intents] (/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values." + }, + "statement_descriptor": { + "anyOf": [ + { + "maxLength": 22, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "Extra information about the payment. This will appear on your customer's statement when this payment succeeds in creating a charge." + }, + "statement_descriptor_suffix": { + "anyOf": [ + { + "maxLength": 22, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor." } }, "title": "payment_intent_data_update_params", diff --git a/openapi/spec3.beta.sdk.yaml b/openapi/spec3.beta.sdk.yaml index 62fc2c31..0be998c5 100644 --- a/openapi/spec3.beta.sdk.yaml +++ b/openapi/spec3.beta.sdk.yaml @@ -24862,21 +24862,6 @@ components: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. type: boolean - margins: - description: >- - The margins applied to the line item. When set, the - `default_margins` on the invoice do not apply to the line item. Use - `expand[]=margins` to expand each margin. - items: - anyOf: - - maxLength: 5000 - type: string - - $ref: '#/components/schemas/margin' - x-expansionResources: - oneOf: - - $ref: '#/components/schemas/margin' - nullable: true - type: array metadata: additionalProperties: maxLength: 500 @@ -24981,7 +24966,6 @@ components: - discounts - id - livemode - - margins - metadata - object - period @@ -24999,7 +24983,6 @@ components: - discount_amounts - discounts - invoice_item - - margins - period - plan - price @@ -25529,83 +25512,6 @@ components: x-stripeResource: class_name: UsBankAccount in_package: '' - margin: - description: >- - A (partner) margin represents a specific discount distributed in partner - reseller programs to business partners who - - resell products and services and earn a discount (margin) for doing so. - properties: - active: - description: >- - Whether the margin can be applied to invoices, invoice items, or - invoice line items. Defaults to `true`. - type: boolean - created: - description: >- - Time at which the object was created. Measured in seconds since the - Unix epoch. - format: unix-time - type: integer - id: - description: Unique identifier for the object. - maxLength: 5000 - type: string - livemode: - description: >- - Has the value `true` if the object exists in live mode or the value - `false` if the object exists in test mode. - type: boolean - metadata: - additionalProperties: - maxLength: 500 - type: string - description: >- - 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. - nullable: true - type: object - name: - description: 'Name of the margin that''s displayed on, for example, invoices.' - maxLength: 5000 - nullable: true - type: string - object: - description: >- - String representing the object's type. Objects of the same type - share the same value. - enum: - - margin - type: string - percent_off: - description: >- - Percent that will be taken off the subtotal before tax (after all - other discounts and promotions) of any invoice to which the margin - is applied. - type: number - updated: - description: >- - Time at which the object was last updated. Measured in seconds since - the Unix epoch. - format: unix-time - type: integer - required: - - active - - created - - id - - livemode - - metadata - - name - - object - - percent_off - - updated - title: Margin - type: object - x-expandableFields: [] - x-stripeResource: - class_name: Margin - in_package: '' migrate_to: description: '' properties: @@ -30353,10 +30259,30 @@ components: - on_session nullable: true type: string + statement_descriptor: + description: >- + Extra information about the payment. This will appear on your + customer's statement when this payment succeeds in creating a + charge. + maxLength: 5000 + nullable: true + type: string + statement_descriptor_suffix: + description: >- + Provides information about the charge that customers see on their + statements. Concatenated with the prefix (shortened descriptor) or + statement descriptor that's set on the account to form the complete + statement descriptor. Maximum 22 characters for the concatenated + descriptor. + maxLength: 5000 + nullable: true + type: string required: - capture_method - metadata - setup_future_usage + - statement_descriptor + - statement_descriptor_suffix title: PaymentLinksResourcePaymentIntentData type: object x-expandableFields: [] @@ -115873,6 +115799,23 @@ paths: - off_session - on_session type: string + statement_descriptor: + description: >- + Extra information about the payment. This will appear on + your customer's statement when this payment succeeds in + creating a charge. + maxLength: 22 + type: string + statement_descriptor_suffix: + description: >- + Provides information about the charge that customers see + on their statements. Concatenated with the prefix + (shortened descriptor) or statement descriptor that's + set on the account to form the complete statement + descriptor. Maximum 22 characters for the concatenated + descriptor. + maxLength: 22 + type: string title: payment_intent_data_params type: object payment_method_collection: @@ -116882,6 +116825,31 @@ paths: (/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values. + statement_descriptor: + anyOf: + - maxLength: 22 + type: string + - enum: + - '' + type: string + description: >- + Extra information about the payment. This will appear on + your customer's statement when this payment succeeds in + creating a charge. + statement_descriptor_suffix: + anyOf: + - maxLength: 22 + type: string + - enum: + - '' + type: string + description: >- + Provides information about the charge that customers see + on their statements. Concatenated with the prefix + (shortened descriptor) or statement descriptor that's + set on the account to form the complete statement + descriptor. Maximum 22 characters for the concatenated + descriptor. title: payment_intent_data_update_params type: object payment_method_collection: diff --git a/openapi/spec3.json b/openapi/spec3.json index fe1579c5..8b8835dd 100644 --- a/openapi/spec3.json +++ b/openapi/spec3.json @@ -18720,29 +18720,6 @@ "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", "type": "boolean" }, - "margins": { - "description": "The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.", - "items": { - "anyOf": [ - { - "maxLength": 5000, - "type": "string" - }, - { - "$ref": "#/components/schemas/margin" - } - ], - "x-expansionResources": { - "oneOf": [ - { - "$ref": "#/components/schemas/margin" - } - ] - } - }, - "nullable": true, - "type": "array" - }, "metadata": { "additionalProperties": { "maxLength": 500, @@ -18874,7 +18851,6 @@ "discount_amounts", "discounts", "invoice_item", - "margins", "period", "price", "proration_details", @@ -19356,72 +19332,6 @@ "type": "object", "x-expandableFields": [] }, - "margin": { - "description": "A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who\nresell products and services and earn a discount (margin) for doing so.", - "properties": { - "active": { - "description": "Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`.", - "type": "boolean" - }, - "created": { - "description": "Time at which the object was created. Measured in seconds since the Unix epoch.", - "format": "unix-time", - "type": "integer" - }, - "id": { - "description": "Unique identifier for the object.", - "maxLength": 5000, - "type": "string" - }, - "livemode": { - "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", - "type": "boolean" - }, - "metadata": { - "additionalProperties": { - "maxLength": 500, - "type": "string" - }, - "description": "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.", - "nullable": true, - "type": "object" - }, - "name": { - "description": "Name of the margin that's displayed on, for example, invoices.", - "maxLength": 5000, - "nullable": true, - "type": "string" - }, - "object": { - "description": "String representing the object's type. Objects of the same type share the same value.", - "enum": [ - "margin" - ], - "type": "string" - }, - "percent_off": { - "description": "Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.", - "type": "number" - }, - "updated": { - "description": "Time at which the object was last updated. Measured in seconds since the Unix epoch.", - "format": "unix-time", - "type": "integer" - } - }, - "required": [ - "active", - "created", - "id", - "livemode", - "object", - "percent_off", - "updated" - ], - "title": "Margin", - "type": "object", - "x-expandableFields": [] - }, "networks": { "description": "", "properties": { @@ -22685,6 +22595,18 @@ ], "nullable": true, "type": "string" + }, + "statement_descriptor": { + "description": "Extra information about the payment. This will appear on your customer's statement when this payment succeeds in creating a charge.", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, + "statement_descriptor_suffix": { + "description": "Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.", + "maxLength": 5000, + "nullable": true, + "type": "string" } }, "required": [ @@ -95823,6 +95745,14 @@ "on_session" ], "type": "string" + }, + "statement_descriptor": { + "maxLength": 22, + "type": "string" + }, + "statement_descriptor_suffix": { + "maxLength": 22, + "type": "string" } }, "title": "payment_intent_data_params", @@ -96840,6 +96770,34 @@ "type": "string" } ] + }, + "statement_descriptor": { + "anyOf": [ + { + "maxLength": 22, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, + "statement_descriptor_suffix": { + "anyOf": [ + { + "maxLength": 22, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] } }, "title": "payment_intent_data_update_params", diff --git a/openapi/spec3.sdk.json b/openapi/spec3.sdk.json index 9e0910e1..575fca6a 100644 --- a/openapi/spec3.sdk.json +++ b/openapi/spec3.sdk.json @@ -24253,29 +24253,6 @@ "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", "type": "boolean" }, - "margins": { - "description": "The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.", - "items": { - "anyOf": [ - { - "maxLength": 5000, - "type": "string" - }, - { - "$ref": "#/components/schemas/margin" - } - ], - "x-expansionResources": { - "oneOf": [ - { - "$ref": "#/components/schemas/margin" - } - ] - } - }, - "nullable": true, - "type": "array" - }, "metadata": { "additionalProperties": { "maxLength": 500, @@ -24408,7 +24385,6 @@ "discounts", "id", "livemode", - "margins", "metadata", "object", "period", @@ -24427,7 +24403,6 @@ "discount_amounts", "discounts", "invoice_item", - "margins", "period", "plan", "price", @@ -25038,78 +25013,6 @@ "in_package": "" } }, - "margin": { - "description": "A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who\nresell products and services and earn a discount (margin) for doing so.", - "properties": { - "active": { - "description": "Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`.", - "type": "boolean" - }, - "created": { - "description": "Time at which the object was created. Measured in seconds since the Unix epoch.", - "format": "unix-time", - "type": "integer" - }, - "id": { - "description": "Unique identifier for the object.", - "maxLength": 5000, - "type": "string" - }, - "livemode": { - "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", - "type": "boolean" - }, - "metadata": { - "additionalProperties": { - "maxLength": 500, - "type": "string" - }, - "description": "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.", - "nullable": true, - "type": "object" - }, - "name": { - "description": "Name of the margin that's displayed on, for example, invoices.", - "maxLength": 5000, - "nullable": true, - "type": "string" - }, - "object": { - "description": "String representing the object's type. Objects of the same type share the same value.", - "enum": [ - "margin" - ], - "type": "string" - }, - "percent_off": { - "description": "Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied.", - "type": "number" - }, - "updated": { - "description": "Time at which the object was last updated. Measured in seconds since the Unix epoch.", - "format": "unix-time", - "type": "integer" - } - }, - "required": [ - "active", - "created", - "id", - "livemode", - "metadata", - "name", - "object", - "percent_off", - "updated" - ], - "title": "Margin", - "type": "object", - "x-expandableFields": [], - "x-stripeResource": { - "class_name": "Margin", - "in_package": "" - } - }, "networks": { "description": "", "properties": { @@ -28922,12 +28825,26 @@ ], "nullable": true, "type": "string" + }, + "statement_descriptor": { + "description": "Extra information about the payment. This will appear on your customer's statement when this payment succeeds in creating a charge.", + "maxLength": 5000, + "nullable": true, + "type": "string" + }, + "statement_descriptor_suffix": { + "description": "Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.", + "maxLength": 5000, + "nullable": true, + "type": "string" } }, "required": [ "capture_method", "metadata", - "setup_future_usage" + "setup_future_usage", + "statement_descriptor", + "statement_descriptor_suffix" ], "title": "PaymentLinksResourcePaymentIntentData", "type": "object", @@ -102725,6 +102642,16 @@ "on_session" ], "type": "string" + }, + "statement_descriptor": { + "description": "Extra information about the payment. This will appear on your customer's statement when this payment succeeds in creating a charge.", + "maxLength": 22, + "type": "string" + }, + "statement_descriptor_suffix": { + "description": "Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor.", + "maxLength": 22, + "type": "string" } }, "title": "payment_intent_data_params", @@ -103797,6 +103724,36 @@ } ], "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will declaratively set metadata on [Payment Intents] (/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values." + }, + "statement_descriptor": { + "anyOf": [ + { + "maxLength": 22, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "Extra information about the payment. This will appear on your customer's statement when this payment succeeds in creating a charge." + }, + "statement_descriptor_suffix": { + "anyOf": [ + { + "maxLength": 22, + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ], + "description": "Provides information about the charge that customers see on their statements. Concatenated with the prefix (shortened descriptor) or statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters for the concatenated descriptor." } }, "title": "payment_intent_data_update_params", diff --git a/openapi/spec3.sdk.yaml b/openapi/spec3.sdk.yaml index d89ec70e..7e5c1174 100644 --- a/openapi/spec3.sdk.yaml +++ b/openapi/spec3.sdk.yaml @@ -21988,21 +21988,6 @@ components: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. type: boolean - margins: - description: >- - The margins applied to the line item. When set, the - `default_margins` on the invoice do not apply to the line item. Use - `expand[]=margins` to expand each margin. - items: - anyOf: - - maxLength: 5000 - type: string - - $ref: '#/components/schemas/margin' - x-expansionResources: - oneOf: - - $ref: '#/components/schemas/margin' - nullable: true - type: array metadata: additionalProperties: maxLength: 500 @@ -22107,7 +22092,6 @@ components: - discounts - id - livemode - - margins - metadata - object - period @@ -22125,7 +22109,6 @@ components: - discount_amounts - discounts - invoice_item - - margins - period - plan - price @@ -22632,83 +22615,6 @@ components: x-stripeResource: class_name: UsBankAccount in_package: '' - margin: - description: >- - A (partner) margin represents a specific discount distributed in partner - reseller programs to business partners who - - resell products and services and earn a discount (margin) for doing so. - properties: - active: - description: >- - Whether the margin can be applied to invoices, invoice items, or - invoice line items. Defaults to `true`. - type: boolean - created: - description: >- - Time at which the object was created. Measured in seconds since the - Unix epoch. - format: unix-time - type: integer - id: - description: Unique identifier for the object. - maxLength: 5000 - type: string - livemode: - description: >- - Has the value `true` if the object exists in live mode or the value - `false` if the object exists in test mode. - type: boolean - metadata: - additionalProperties: - maxLength: 500 - type: string - description: >- - 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. - nullable: true - type: object - name: - description: 'Name of the margin that''s displayed on, for example, invoices.' - maxLength: 5000 - nullable: true - type: string - object: - description: >- - String representing the object's type. Objects of the same type - share the same value. - enum: - - margin - type: string - percent_off: - description: >- - Percent that will be taken off the subtotal before tax (after all - other discounts and promotions) of any invoice to which the margin - is applied. - type: number - updated: - description: >- - Time at which the object was last updated. Measured in seconds since - the Unix epoch. - format: unix-time - type: integer - required: - - active - - created - - id - - livemode - - metadata - - name - - object - - percent_off - - updated - title: Margin - type: object - x-expandableFields: [] - x-stripeResource: - class_name: Margin - in_package: '' networks: description: '' properties: @@ -26136,10 +26042,30 @@ components: - on_session nullable: true type: string + statement_descriptor: + description: >- + Extra information about the payment. This will appear on your + customer's statement when this payment succeeds in creating a + charge. + maxLength: 5000 + nullable: true + type: string + statement_descriptor_suffix: + description: >- + Provides information about the charge that customers see on their + statements. Concatenated with the prefix (shortened descriptor) or + statement descriptor that's set on the account to form the complete + statement descriptor. Maximum 22 characters for the concatenated + descriptor. + maxLength: 5000 + nullable: true + type: string required: - capture_method - metadata - setup_future_usage + - statement_descriptor + - statement_descriptor_suffix title: PaymentLinksResourcePaymentIntentData type: object x-expandableFields: [] @@ -96515,6 +96441,23 @@ paths: - off_session - on_session type: string + statement_descriptor: + description: >- + Extra information about the payment. This will appear on + your customer's statement when this payment succeeds in + creating a charge. + maxLength: 22 + type: string + statement_descriptor_suffix: + description: >- + Provides information about the charge that customers see + on their statements. Concatenated with the prefix + (shortened descriptor) or statement descriptor that's + set on the account to form the complete statement + descriptor. Maximum 22 characters for the concatenated + descriptor. + maxLength: 22 + type: string title: payment_intent_data_params type: object payment_method_collection: @@ -97524,6 +97467,31 @@ paths: (/docs/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values. + statement_descriptor: + anyOf: + - maxLength: 22 + type: string + - enum: + - '' + type: string + description: >- + Extra information about the payment. This will appear on + your customer's statement when this payment succeeds in + creating a charge. + statement_descriptor_suffix: + anyOf: + - maxLength: 22 + type: string + - enum: + - '' + type: string + description: >- + Provides information about the charge that customers see + on their statements. Concatenated with the prefix + (shortened descriptor) or statement descriptor that's + set on the account to form the complete statement + descriptor. Maximum 22 characters for the concatenated + descriptor. title: payment_intent_data_update_params type: object payment_method_collection: diff --git a/openapi/spec3.yaml b/openapi/spec3.yaml index 9017782b..25b3edc9 100644 --- a/openapi/spec3.yaml +++ b/openapi/spec3.yaml @@ -17729,21 +17729,6 @@ components: Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. type: boolean - margins: - description: >- - The margins applied to the line item. When set, the - `default_margins` on the invoice do not apply to the line item. Use - `expand[]=margins` to expand each margin. - items: - anyOf: - - maxLength: 5000 - type: string - - $ref: '#/components/schemas/margin' - x-expansionResources: - oneOf: - - $ref: '#/components/schemas/margin' - nullable: true - type: array metadata: additionalProperties: maxLength: 500 @@ -17848,7 +17833,6 @@ components: - discount_amounts - discounts - invoice_item - - margins - period - price - proration_details @@ -18261,78 +18245,6 @@ components: title: mandate_us_bank_account type: object x-expandableFields: [] - margin: - description: >- - A (partner) margin represents a specific discount distributed in partner - reseller programs to business partners who - - resell products and services and earn a discount (margin) for doing so. - properties: - active: - description: >- - Whether the margin can be applied to invoices, invoice items, or - invoice line items. Defaults to `true`. - type: boolean - created: - description: >- - Time at which the object was created. Measured in seconds since the - Unix epoch. - format: unix-time - type: integer - id: - description: Unique identifier for the object. - maxLength: 5000 - type: string - livemode: - description: >- - Has the value `true` if the object exists in live mode or the value - `false` if the object exists in test mode. - type: boolean - metadata: - additionalProperties: - maxLength: 500 - type: string - description: >- - 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. - nullable: true - type: object - name: - description: 'Name of the margin that''s displayed on, for example, invoices.' - maxLength: 5000 - nullable: true - type: string - object: - description: >- - String representing the object's type. Objects of the same type - share the same value. - enum: - - margin - type: string - percent_off: - description: >- - Percent that will be taken off the subtotal before tax (after all - other discounts and promotions) of any invoice to which the margin - is applied. - type: number - updated: - description: >- - Time at which the object was last updated. Measured in seconds since - the Unix epoch. - format: unix-time - type: integer - required: - - active - - created - - id - - livemode - - object - - percent_off - - updated - title: Margin - type: object - x-expandableFields: [] networks: description: '' properties: @@ -21261,6 +21173,24 @@ components: - on_session nullable: true type: string + statement_descriptor: + description: >- + Extra information about the payment. This will appear on your + customer's statement when this payment succeeds in creating a + charge. + maxLength: 5000 + nullable: true + type: string + statement_descriptor_suffix: + description: >- + Provides information about the charge that customers see on their + statements. Concatenated with the prefix (shortened descriptor) or + statement descriptor that's set on the account to form the complete + statement descriptor. Maximum 22 characters for the concatenated + descriptor. + maxLength: 5000 + nullable: true + type: string required: - metadata title: PaymentLinksResourcePaymentIntentData @@ -82433,6 +82363,12 @@ paths: - off_session - on_session type: string + statement_descriptor: + maxLength: 22 + type: string + statement_descriptor_suffix: + maxLength: 22 + type: string title: payment_intent_data_params type: object payment_method_collection: @@ -83263,6 +83199,20 @@ paths: - enum: - '' type: string + statement_descriptor: + anyOf: + - maxLength: 22 + type: string + - enum: + - '' + type: string + statement_descriptor_suffix: + anyOf: + - maxLength: 22 + type: string + - enum: + - '' + type: string title: payment_intent_data_update_params type: object payment_method_collection: