Skip to content

Commit

Permalink
Update OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Jun 9, 2022
1 parent 77e70c6 commit 4d1b21e
Show file tree
Hide file tree
Showing 6 changed files with 1,170 additions and 5 deletions.
226 changes: 224 additions & 2 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1855,6 +1855,9 @@
},
"sepa_debit_payments": {
"$ref": "#/components/schemas/account_sepa_debit_payments_settings"
},
"treasury": {
"$ref": "#/components/schemas/account_treasury_settings"
}
},
"required": [
Expand All @@ -1873,18 +1876,54 @@
"dashboard",
"payments",
"payouts",
"sepa_debit_payments"
"sepa_debit_payments",
"treasury"
],
"x-stripeResource": {
"class_name": "Settings",
"in_class": "account",
"inner_classes": [
"account_bacs_debit_payments_settings",
"account_card_issuing_settings",
"account_sepa_debit_payments_settings"
"account_sepa_debit_payments_settings",
"account_treasury_settings"
]
}
},
"account_terms_of_service": {
"description": "",
"properties": {
"date": {
"description": "The Unix timestamp marking when the account representative accepted the service agreement.",
"nullable": true,
"type": "integer"
},
"ip": {
"description": "The IP address from which the account representative accepted the service agreement.",
"maxLength": 5000,
"nullable": true,
"type": "string"
},
"user_agent": {
"description": "The user agent of the browser from which the account representative accepted the service agreement.",
"maxLength": 5000,
"type": "string"
}
},
"required": [
"date",
"ip"
],
"title": "AccountTermsOfService",
"type": "object",
"x-expandableFields": [

],
"x-stripeResource": {
"class_name": "TosAcceptance",
"in_class": "account_treasury_settings"
}
},
"account_tos_acceptance": {
"description": "",
"properties": {
Expand Down Expand Up @@ -1922,6 +1961,26 @@
"in_class": "account"
}
},
"account_treasury_settings": {
"description": "",
"properties": {
"tos_acceptance": {
"$ref": "#/components/schemas/account_terms_of_service"
}
},
"title": "AccountTreasurySettings",
"type": "object",
"x-expandableFields": [
"tos_acceptance"
],
"x-stripeResource": {
"class_name": "SettingsTreasury",
"in_class": "account_settings",
"inner_classes": [
"account_terms_of_service"
]
}
},
"account_unification_account_controller": {
"description": "",
"properties": {
Expand Down Expand Up @@ -7757,6 +7816,40 @@
"in_class": "credit_note"
}
},
"custom_unit_amount": {
"description": "",
"properties": {
"maximum": {
"description": "The maximum unit amount the customer can specify for this item.",
"nullable": true,
"type": "integer"
},
"minimum": {
"description": "The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.",
"nullable": true,
"type": "integer"
},
"preset": {
"description": "The starting unit amount which can be updated by the customer.",
"nullable": true,
"type": "integer"
}
},
"required": [
"maximum",
"minimum",
"preset"
],
"title": "CustomUnitAmount",
"type": "object",
"x-expandableFields": [

],
"x-stripeResource": {
"class_name": "CustomUnitAmount",
"in_class": "price"
}
},
"customer": {
"description": "This object represents a customer of your business. It lets you create recurring charges and track payments that belong to the same customer.\n\nRelated guide: [Save a card during payment](https://stripe.com/docs/payments/save-during-payment).",
"properties": {
Expand Down Expand Up @@ -33578,6 +33671,15 @@
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
"type": "string"
},
"custom_unit_amount": {
"anyOf": [
{
"$ref": "#/components/schemas/custom_unit_amount"
}
],
"description": "When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.",
"nullable": true
},
"id": {
"description": "Unique identifier for the object.",
"maxLength": 5000,
Expand Down Expand Up @@ -33726,6 +33828,7 @@
"title": "Price",
"type": "object",
"x-expandableFields": [
"custom_unit_amount",
"product",
"recurring",
"tiers",
Expand Down Expand Up @@ -33775,6 +33878,7 @@
"has_search_result_class": true,
"in_package": "",
"inner_classes": [
"custom_unit_amount",
"price_tier",
"recurring",
"transform_quantity"
Expand Down Expand Up @@ -50195,6 +50299,34 @@
},
"title": "payout_settings_specs",
"type": "object"
},
"treasury": {
"description": "Settings specific to the account's Treasury FinancialAccounts.",
"properties": {
"tos_acceptance": {
"description": "Details on the account's acceptance of the Stripe Treasury Services Agreement.",
"properties": {
"date": {
"description": "The Unix timestamp marking when the account representative accepted the service agreement.",
"format": "unix-time",
"type": "integer"
},
"ip": {
"description": "The IP address from which the account representative accepted the service agreement.",
"type": "string"
},
"user_agent": {
"description": "The user agent of the browser from which the account representative accepted the service agreement.",
"maxLength": 5000,
"type": "string"
}
},
"title": "settings_terms_of_service_specs",
"type": "object"
}
},
"title": "treasury_settings_specs",
"type": "object"
}
},
"title": "settings_specs",
Expand Down Expand Up @@ -51845,6 +51977,34 @@
},
"title": "payout_settings_specs",
"type": "object"
},
"treasury": {
"description": "Settings specific to the account's Treasury FinancialAccounts.",
"properties": {
"tos_acceptance": {
"description": "Details on the account's acceptance of the Stripe Treasury Services Agreement.",
"properties": {
"date": {
"description": "The Unix timestamp marking when the account representative accepted the service agreement.",
"format": "unix-time",
"type": "integer"
},
"ip": {
"description": "The IP address from which the account representative accepted the service agreement.",
"type": "string"
},
"user_agent": {
"description": "The user agent of the browser from which the account representative accepted the service agreement.",
"maxLength": 5000,
"type": "string"
}
},
"title": "settings_terms_of_service_specs",
"type": "object"
}
},
"title": "treasury_settings_specs",
"type": "object"
}
},
"title": "settings_specs_update",
Expand Down Expand Up @@ -63292,6 +63452,22 @@
"description": "Default footer to be displayed on invoices for this customer.",
"maxLength": 5000,
"type": "string"
},
"rendering_options": {
"description": "Default options for invoice PDF rendering for this customer.",
"properties": {
"amount_tax_display": {
"description": "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.",
"enum": [
"",
"exclude_tax",
"include_inclusive_tax"
],
"type": "string"
}
},
"title": "rendering_options_param",
"type": "object"
}
},
"title": "customer_param",
Expand Down Expand Up @@ -64040,6 +64216,22 @@
"description": "Default footer to be displayed on invoices for this customer.",
"maxLength": 5000,
"type": "string"
},
"rendering_options": {
"description": "Default options for invoice PDF rendering for this customer.",
"properties": {
"amount_tax_display": {
"description": "How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.",
"enum": [
"",
"exclude_tax",
"include_inclusive_tax"
],
"type": "string"
}
},
"title": "rendering_options_param",
"type": "object"
}
},
"title": "customer_param",
Expand Down Expand Up @@ -97860,6 +98052,10 @@
"content": {
"application/x-www-form-urlencoded": {
"encoding": {
"custom_unit_amount": {
"explode": true,
"style": "deepObject"
},
"expand": {
"explode": true,
"style": "deepObject"
Expand Down Expand Up @@ -97904,6 +98100,32 @@
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
"type": "string"
},
"custom_unit_amount": {
"description": "When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links.",
"properties": {
"enabled": {
"description": "Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`.",
"type": "boolean"
},
"maximum": {
"description": "The maximum unit amount the customer can specify for this item.",
"type": "integer"
},
"minimum": {
"description": "The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount.",
"type": "integer"
},
"preset": {
"description": "The starting unit amount which can be updated by the customer.",
"type": "integer"
}
},
"required": [
"enabled"
],
"title": "custom_unit_amount",
"type": "object"
},
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
Expand Down
Loading

0 comments on commit 4d1b21e

Please sign in to comment.