From a0027d9588da963599c0fb25eaf9fb9192ea55f9 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 25 Jan 2024 17:23:21 +0000 Subject: [PATCH] OpenAPI Update (#630) Update OpenAPI for 12788b1abd690d87ddd720c03168e56343e828e4 Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- embedded/openapi/fixtures3.beta.json | 102 ++--- embedded/openapi/fixtures3.json | 54 +-- embedded/openapi/spec3.beta.sdk.json | 226 +++++++++-- embedded/openapi/spec3.json | 580 ++++++++++++++++++++++++++- 4 files changed, 847 insertions(+), 115 deletions(-) diff --git a/embedded/openapi/fixtures3.beta.json b/embedded/openapi/fixtures3.beta.json index d816d97f..c60749fb 100755 --- a/embedded/openapi/fixtures3.beta.json +++ b/embedded/openapi/fixtures3.beta.json @@ -2,6 +2,8 @@ "resources": { "account": { "business_profile": { + "annual_revenue": null, + "estimated_worker_count": null, "mcc": null, "name": null, "product_description": null, @@ -376,6 +378,7 @@ }, "capital.financing_offer": { "account": "acct_1OMeebH46bnxIHYh", + "charged_off_at": 1234567890, "created": 1702420938, "expires_after": 1704931200, "financing_type": "flex_loan", @@ -451,7 +454,7 @@ "id": "card_1OMe4BCLDLpHmE6uOaydeTvZ", "last4": "4242", "metadata": {}, - "name": null, + "name": "Jenny Rosen", "object": "card", "tokenization_method": null }, @@ -485,7 +488,7 @@ "state": null }, "email": null, - "name": null, + "name": "Jenny Rosen", "phone": null }, "calculated_statement_descriptor": null, @@ -575,6 +578,7 @@ "amount_total": null, "automatic_tax": { "enabled": false, + "liability": null, "status": null }, "billing_address_collection": null, @@ -797,7 +801,7 @@ "account_type": "checking", "bank_name": "STRIPE TEST BANK", "financial_connections_account": null, - "fingerprint": "DqWZz1tv4VpwS8on", + "fingerprint": "ykKdWTbdcobSIANT", "last4": "6789", "networks": { "preferred": "ach", @@ -813,18 +817,7 @@ "return_url": "https://example.com/return", "setup_future_usage": "off_session", "setup_intent": null, - "shipping": { - "address": { - "city": "San Francisco", - "country": "US", - "line1": "1234 Fake Street", - "line2": null, - "postal_code": "94102", - "state": "CA" - }, - "name": "Jenny Rosen", - "phone": null - } + "shipping": null }, "country_spec": { "default_currency": "usd", @@ -1115,6 +1108,7 @@ "id": "txr_1OMeecCLDLpHmE6u4OI2hNDW", "inclusive": false, "jurisdiction": "DE", + "jurisdiction_level": null, "livemode": false, "metadata": {}, "object": "tax_rate", @@ -1549,59 +1543,48 @@ "links": { "data": [ { - "created": 1702420937, - "expired": false, - "expires_at": null, - "file": "file_1OMe4bCLDLpHmE6ueaXq2SbR", - "id": "link_1OMeebCLDLpHmE6uLnphcM5z", - "livemode": false, - "metadata": {}, - "object": "file_link", - "url": "https://rwashburne-g8ezbf--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT01lM3JDTERMcEhtRTZ1fGZsX3Rlc3RfVUt1eWZHM1ZyYW93TkpGZjJOWnh4ZUN00051VsNoBe" - }, - { - "created": 1702418705, + "created": 1706200034, "expired": false, "expires_at": null, - "file": "file_1OMe4bCLDLpHmE6ueaXq2SbR", - "id": "link_1OMe4bCLDLpHmE6ukprsWAB2", + "file": "file_1OcVhzDy8zbvZdAPbMdtICx2", + "id": "link_1OcVlmDy8zbvZdAPLYHrev4d", "livemode": false, "metadata": {}, "object": "file_link", - "url": "https://rwashburne-g8ezbf--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT01lM3JDTERMcEhtRTZ1fGZsX3Rlc3RfU1BWbWdMcFVLVTFIUHZpM0lpTFFDRmtm00yC4jtB6H" + "url": "https://pakrym-upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT2NWaGNEeTh6YnZaZEFQfGZsX3Rlc3RfOVlHeXdVdWMyR0lrNVM1ejdGNFBqZmZ2003Ot96ygb" }, { - "created": 1705517612, + "created": 1706200033, "expired": false, "expires_at": null, - "file": "file_1OZeEyBdtFoQDc8hiLctksU9", - "id": "link_1OZeEyBdtFoQDc8hkuUWhWwb", + "file": "file_1OcVhzDy8zbvZdAPbMdtICx2", + "id": "link_1OcVllDy8zbvZdAPFm2Rw3az", "livemode": false, "metadata": {}, "object": "file_link", - "url": "https://anniel-ob52sw--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT1plRVhCZHRGb1FEYzhofGZsX3Rlc3RfNUZpaDd5YU4yS01sVVVFalBLNDRmb01I00dvOQbCJw" + "url": "https://pakrym-upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT2NWaGNEeTh6YnZaZEFQfGZsX3Rlc3RfMkpENmxlajRVSkN6UWcyN2tDbXJzb1hz00ZUdPIHXo" }, { - "created": 1705518728, + "created": 1706199800, "expired": false, "expires_at": null, - "file": "file_1OZeEyBdtFoQDc8hiLctksU9", - "id": "link_1OZeWyBdtFoQDc8hnxJ5gmNE", + "file": "file_1OcVhzDy8zbvZdAPbMdtICx2", + "id": "link_1OcVi0Dy8zbvZdAPelDMzIr9", "livemode": false, "metadata": {}, "object": "file_link", - "url": "https://anniel-ob52sw--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT1plRVhCZHRGb1FEYzhofGZsX3Rlc3RfaTd5TldodW94MWM0M3pJSld1eDNRbkpL00x9dR5ays" + "url": "https://pakrym-upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT2NWaGNEeTh6YnZaZEFQfGZsX3Rlc3RfSzFXUUhwdTVnTzJNcWFBMTVOYWl4ZE8500ozp8ilyy" }, { - "created": 1705517612, + "created": 1706199799, "expired": false, "expires_at": null, - "file": "file_1OZeEyBdtFoQDc8hiLctksU9", - "id": "link_1OZeEyBdtFoQDc8hkuUWhWwb", + "file": "file_1OcVhzDy8zbvZdAPbMdtICx2", + "id": "link_1OcVhzDy8zbvZdAPamJnikfg", "livemode": false, "metadata": {}, "object": "file_link", - "url": "https://anniel-ob52sw--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT1plRVhCZHRGb1FEYzhofGZsX3Rlc3RfNUZpaDd5YU4yS01sVVVFalBLNDRmb01I00dvOQbCJw" + "url": "https://pakrym-upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT2NWaGNEeTh6YnZaZEFQfGZsX3Rlc3RfRjJLSVNGMTBoR1FmVldGN2JhV0FaeXVz009hUvBCR4" } ], "has_more": false, @@ -2637,7 +2620,8 @@ "application_fee_amount": null, "application_fee_percent": null, "automatic_tax": { - "enabled": false + "enabled": false, + "liability": null }, "billing_address_collection": "auto", "consent_collection": null, @@ -2931,6 +2915,8 @@ }, "payment_source": { "business_profile": { + "annual_revenue": null, + "estimated_worker_count": null, "mcc": null, "name": null, "product_description": null, @@ -3190,7 +3176,7 @@ "product": { "active": true, "created": 1234567890, - "default_price": "price_1OMe4GCLDLpHmE6uj9Z5NUFO", + "default_price": "price_1OcVhoDy8zbvZdAPqFLkL5vf", "description": "Comfortable gray cotton t-shirt", "features": [], "id": "prod_PB04hpc8sz6smG", @@ -3251,6 +3237,7 @@ "application_fee_percent": null, "automatic_tax": { "enabled": false, + "liability": null, "status": null }, "collection_method": "charge_automatically", @@ -3279,7 +3266,10 @@ "id": "qt_1OMeeOCLDLpHmE6uueNJOCPf", "invoice": null, "invoice_settings": { - "days_until_due": null + "days_until_due": null, + "issuer": { + "type": "self" + } }, "livemode": false, "metadata": {}, @@ -3966,7 +3956,8 @@ "default_settings": { "application_fee_percent": null, "automatic_tax": { - "enabled": false + "enabled": false, + "liability": null }, "billing_cycle_anchor": "automatic", "billing_thresholds": null, @@ -3974,7 +3965,10 @@ "default_payment_method": null, "description": null, "invoice_settings": { - "days_until_due": null + "days_until_due": null, + "issuer": { + "type": "self" + } }, "on_behalf_of": null, "transfer_data": null @@ -4613,13 +4607,19 @@ "created": 1234567890, "currency": "usd", "customer": null, - "description": null, + "description": "OutboundPayment to a 3rd party", "destination_payment_method": null, - "destination_payment_method_details": null, - "end_user_details": null, + "destination_payment_method_details": { + "destination": "ba_1OcVhmGkxD9yTwSQ7jMFO6gg", + "type": "us_bank_account" + }, + "end_user_details": { + "ip_address": null, + "present": false + }, "expected_arrival_date": 1234567890, "financial_account": "fa_1OMeeYCLDLpHmE6unDhjFTR3", - "hosted_regulatory_receipt_url": null, + "hosted_regulatory_receipt_url": "https://pakrym-agrippa-mydev.dev.stripe.me/regulatory-receipt/CBQaFwoVYWNjdF8xT2NWaGVHa3hEOXlUd1NRKJ2Wyq0GMgZ2QpQnXjU6Nf2L1hWUOFKU4MM7DBmGbyCirzoWBUjqQ3QS5OIpYDy8LxXlsMCw4pDnVOEQhVCNUAd1tagZ", "id": "obp_1OMeeeCLDLpHmE6uj7LV979T", "livemode": false, "metadata": {}, diff --git a/embedded/openapi/fixtures3.json b/embedded/openapi/fixtures3.json index 5d8192f4..23bd9271 100644 --- a/embedded/openapi/fixtures3.json +++ b/embedded/openapi/fixtures3.json @@ -2,6 +2,8 @@ "resources": { "account": { "business_profile": { + "annual_revenue": null, + "estimated_worker_count": null, "mcc": null, "name": null, "product_description": null, @@ -379,7 +381,7 @@ "id": "card_1OPoudJN5vQBdWExoijT3YAB", "last4": "4242", "metadata": {}, - "name": null, + "name": "Jenny Rosen", "object": "card", "tokenization_method": null }, @@ -413,7 +415,7 @@ "state": null }, "email": null, - "name": null, + "name": "Jenny Rosen", "phone": null }, "calculated_statement_descriptor": null, @@ -502,6 +504,7 @@ "amount_total": null, "automatic_tax": { "enabled": false, + "liability": null, "status": null }, "billing_address_collection": null, @@ -984,6 +987,7 @@ "id": "txr_1OPouvJN5vQBdWExvkEZYzsQ", "inclusive": false, "jurisdiction": "DE", + "jurisdiction_level": null, "livemode": false, "metadata": {}, "object": "tax_rate", @@ -1452,37 +1456,26 @@ "url": "https://pakrym-upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT1hYY1VEMnFQN1F0SmVHfGZsX3Rlc3RfUzNDbHVhMWc0dEJuaWZVTFlQbXVSelhu00rmgafjqm" }, { - "created": 1705517612, - "expired": false, - "expires_at": null, - "file": "file_1OZeEyBdtFoQDc8hiLctksU9", - "id": "link_1OZeEyBdtFoQDc8hkuUWhWwb", - "livemode": false, - "metadata": {}, - "object": "file_link", - "url": "https://anniel-ob52sw--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT1plRVhCZHRGb1FEYzhofGZsX3Rlc3RfNUZpaDd5YU4yS01sVVVFalBLNDRmb01I00dvOQbCJw" - }, - { - "created": 1705518728, + "created": 1706199800, "expired": false, "expires_at": null, - "file": "file_1OZeEyBdtFoQDc8hiLctksU9", - "id": "link_1OZeWyBdtFoQDc8hnxJ5gmNE", + "file": "file_1OcVhzDy8zbvZdAPbMdtICx2", + "id": "link_1OcVi0Dy8zbvZdAPelDMzIr9", "livemode": false, "metadata": {}, "object": "file_link", - "url": "https://anniel-ob52sw--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT1plRVhCZHRGb1FEYzhofGZsX3Rlc3RfaTd5TldodW94MWM0M3pJSld1eDNRbkpL00x9dR5ays" + "url": "https://pakrym-upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT2NWaGNEeTh6YnZaZEFQfGZsX3Rlc3RfSzFXUUhwdTVnTzJNcWFBMTVOYWl4ZE8500ozp8ilyy" }, { - "created": 1705517612, + "created": 1706199799, "expired": false, "expires_at": null, - "file": "file_1OZeEyBdtFoQDc8hiLctksU9", - "id": "link_1OZeEyBdtFoQDc8hkuUWhWwb", + "file": "file_1OcVhzDy8zbvZdAPbMdtICx2", + "id": "link_1OcVhzDy8zbvZdAPamJnikfg", "livemode": false, "metadata": {}, "object": "file_link", - "url": "https://anniel-ob52sw--upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT1plRVhCZHRGb1FEYzhofGZsX3Rlc3RfNUZpaDd5YU4yS01sVVVFalBLNDRmb01I00dvOQbCJw" + "url": "https://pakrym-upload-mydev.dev.stripe.me/links/MDB8YWNjdF8xT2NWaGNEeTh6YnZaZEFQfGZsX3Rlc3RfRjJLSVNGMTBoR1FmVldGN2JhV0FaeXVz009hUvBCR4" } ], "has_more": false, @@ -2365,7 +2358,8 @@ "application_fee_amount": null, "application_fee_percent": null, "automatic_tax": { - "enabled": false + "enabled": false, + "liability": null }, "billing_address_collection": "auto", "consent_collection": null, @@ -2659,6 +2653,8 @@ }, "payment_source": { "business_profile": { + "annual_revenue": null, + "estimated_worker_count": null, "mcc": null, "name": null, "product_description": null, @@ -2978,6 +2974,7 @@ "application_fee_percent": null, "automatic_tax": { "enabled": false, + "liability": null, "status": null }, "collection_method": "charge_automatically", @@ -3006,7 +3003,10 @@ "id": "qt_1OPoumJN5vQBdWExJFNWX8UZ", "invoice": null, "invoice_settings": { - "days_until_due": null + "days_until_due": null, + "issuer": { + "type": "self" + } }, "livemode": false, "metadata": {}, @@ -3516,7 +3516,8 @@ "default_settings": { "application_fee_percent": null, "automatic_tax": { - "enabled": false + "enabled": false, + "liability": null }, "billing_cycle_anchor": "automatic", "billing_thresholds": null, @@ -3524,7 +3525,10 @@ "default_payment_method": null, "description": null, "invoice_settings": { - "days_until_due": null + "days_until_due": null, + "issuer": { + "type": "self" + } }, "on_behalf_of": null, "transfer_data": null diff --git a/embedded/openapi/spec3.beta.sdk.json b/embedded/openapi/spec3.beta.sdk.json index f3d4c041..e110052a 100644 --- a/embedded/openapi/spec3.beta.sdk.json +++ b/embedded/openapi/spec3.beta.sdk.json @@ -377,6 +377,35 @@ "type": "account.updated" } }, + "account_annual_revenue": { + "description": "", + "properties": { + "amount": { + "description": "A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).", + "nullable": true, + "type": "integer" + }, + "currency": { + "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).", + "nullable": true, + "type": "string" + }, + "fiscal_year_end": { + "description": "The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.", + "maxLength": 5000, + "nullable": true, + "type": "string" + } + }, + "required": [ + "amount", + "currency", + "fiscal_year_end" + ], + "title": "AccountAnnualRevenue", + "type": "object", + "x-expandableFields": [] + }, "account_bacs_debit_payments_settings": { "description": "", "properties": { @@ -473,6 +502,20 @@ "account_business_profile": { "description": "", "properties": { + "annual_revenue": { + "anyOf": [ + { + "$ref": "#/components/schemas/account_annual_revenue" + } + ], + "description": "The applicant's gross annual revenue for its preceding fiscal year.", + "nullable": true + }, + "estimated_worker_count": { + "description": "An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.", + "nullable": true, + "type": "integer" + }, "mcc": { "description": "[The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.", "maxLength": 5000, @@ -529,6 +572,8 @@ } }, "required": [ + "annual_revenue", + "estimated_worker_count", "mcc", "name", "support_address", @@ -540,6 +585,7 @@ "title": "AccountBusinessProfile", "type": "object", "x-expandableFields": [ + "annual_revenue", "monthly_estimated_revenue", "support_address" ] @@ -4503,6 +4549,11 @@ "maxLength": 5000, "type": "string" }, + "charged_off_at": { + "description": "The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.", + "format": "unix-time", + "type": "integer" + }, "created": { "description": "Time at which the offer was created. Given in seconds since unix epoch.", "type": "integer" @@ -6629,7 +6680,7 @@ "nullable": true }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "$ref": "#/components/schemas/payment_pages_checkout_session_custom_fields" }, @@ -13808,18 +13859,40 @@ ], "description": "Details to determine how long the discount should be applied for.", "nullable": true + }, + "promotion_code": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "$ref": "#/components/schemas/promotion_code" + } + ], + "description": "ID of the promotion code to create a new discount for.", + "nullable": true, + "x-expansionResources": { + "oneOf": [ + { + "$ref": "#/components/schemas/promotion_code" + } + ] + } } }, "required": [ "coupon", - "discount" + "discount", + "promotion_code" ], "title": "DiscountsResourceStackableDiscount", "type": "object", "x-expandableFields": [ "coupon", "discount", - "discount_end" + "discount_end", + "promotion_code" ] }, "dispute": { @@ -20404,7 +20477,8 @@ } }, "required": [ - "days_until_due" + "days_until_due", + "issuer" ], "title": "InvoiceSettingQuoteSetting", "type": "object", @@ -20448,7 +20522,8 @@ } }, "required": [ - "days_until_due" + "days_until_due", + "issuer" ], "title": "InvoiceSettingSubscriptionSchedulePhaseSetting", "type": "object", @@ -20469,7 +20544,8 @@ } }, "required": [ - "days_until_due" + "days_until_due", + "issuer" ], "title": "InvoiceSettingSubscriptionScheduleSetting", "type": "object", @@ -34087,7 +34163,7 @@ "type": "string" }, "request_incremental_authorization": { - "description": "Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", + "description": "Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", "enum": [ "if_available", "never" @@ -34490,7 +34566,7 @@ "type": "string" }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "$ref": "#/components/schemas/payment_links_resource_custom_fields" }, @@ -34903,7 +34979,8 @@ } }, "required": [ - "enabled" + "enabled", + "liability" ], "title": "PaymentLinksResourceAutomaticTax", "type": "object", @@ -35353,6 +35430,7 @@ "custom_fields", "description", "footer", + "issuer", "metadata", "rendering_options" ], @@ -35814,6 +35892,7 @@ }, "required": [ "description", + "invoice_settings", "metadata", "trial_period_days", "trial_settings" @@ -35832,6 +35911,9 @@ "$ref": "#/components/schemas/connect_account_reference" } }, + "required": [ + "issuer" + ], "title": "PaymentLinksResourceSubscriptionDataInvoiceSettings", "type": "object", "x-expandableFields": [ @@ -48090,6 +48172,7 @@ }, "required": [ "enabled", + "liability", "status" ], "title": "QuotesResourceAutomaticTax", @@ -51223,7 +51306,8 @@ } }, "required": [ - "enabled" + "enabled", + "liability" ], "title": "SchedulesPhaseAutomaticTax", "type": "object", @@ -55404,19 +55488,41 @@ "description": "The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.", "nullable": true, "type": "integer" + }, + "promotion_code": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "$ref": "#/components/schemas/promotion_code" + } + ], + "description": "ID of the promotion code to create a new discount for.", + "nullable": true, + "x-expansionResources": { + "oneOf": [ + { + "$ref": "#/components/schemas/promotion_code" + } + ] + } } }, "required": [ "coupon", "discount", - "index" + "index", + "promotion_code" ], "title": "StackableDiscountWithIndexAndDiscountEnd", "type": "object", "x-expandableFields": [ "coupon", "discount", - "discount_end" + "discount_end", + "promotion_code" ] }, "subscription": { @@ -57447,7 +57553,8 @@ } }, "required": [ - "enabled" + "enabled", + "liability" ], "title": "SubscriptionSchedulesResourceDefaultSettingsAutomaticTax", "type": "object", @@ -67431,7 +67538,7 @@ "type": "string" }, "future_requirements": { - "description": "Options for collecting future_requirements in Connect Onboarding", + "description": "Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.", "enum": [ "include", "omit" @@ -68256,6 +68363,35 @@ "business_profile": { "description": "Business information about the account.", "properties": { + "annual_revenue": { + "description": "The applicant's gross annual revenue for its preceding fiscal year.", + "properties": { + "amount": { + "description": "A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).", + "type": "integer" + }, + "currency": { + "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" + }, + "fiscal_year_end": { + "description": "The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.", + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "amount", + "currency", + "fiscal_year_end" + ], + "title": "annual_revenue_specs", + "type": "object" + }, + "estimated_worker_count": { + "description": "An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.", + "type": "integer" + }, "mcc": { "description": "[The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.", "maxLength": 4, @@ -70136,6 +70272,35 @@ "business_profile": { "description": "Business information about the account.", "properties": { + "annual_revenue": { + "description": "The applicant's gross annual revenue for its preceding fiscal year.", + "properties": { + "amount": { + "description": "A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).", + "type": "integer" + }, + "currency": { + "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" + }, + "fiscal_year_end": { + "description": "The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.", + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "amount", + "currency", + "fiscal_year_end" + ], + "title": "annual_revenue_specs", + "type": "object" + }, + "estimated_worker_count": { + "description": "An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.", + "type": "integer" + }, "mcc": { "description": "[The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.", "maxLength": 4, @@ -78550,7 +78715,7 @@ } }, "post": { - "description": "

Use the Payment Intents API to initiate a new payment instead\nof using this method. Confirmation of the PaymentIntent creates the Charge\nobject used to request payment, so this method is limited to legacy integrations.

", + "description": "

This method is no longer recommended—use the Payment Intents API\nto initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge\nobject used to request payment.

", "operationId": "PostCharges", "requestBody": { "content": { @@ -81639,7 +81804,7 @@ "type": "string" }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "properties": { "dropdown": { @@ -93929,7 +94094,7 @@ "type": "array" }, "features": { - "description": "The list of account features to which you would like to subscribe.`.", + "description": "The list of account features to which you would like to subscribe.", "items": { "enum": [ "inferred_balances", @@ -125318,7 +125483,7 @@ "type": "string" }, "request_incremental_authorization": { - "description": "Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", + "description": "Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", "enum": [ "if_available", "never" @@ -129129,7 +129294,7 @@ "type": "string" }, "request_incremental_authorization": { - "description": "Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", + "description": "Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", "enum": [ "if_available", "never" @@ -133876,7 +134041,7 @@ "type": "string" }, "request_incremental_authorization": { - "description": "Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", + "description": "Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", "enum": [ "if_available", "never" @@ -135861,7 +136026,7 @@ "type": "string" }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "properties": { "dropdown": { @@ -137246,7 +137411,7 @@ "type": "string" } ], - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported." + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported." }, "custom_text": { "description": "Display additional text for your customers using custom text.", @@ -142236,12 +142401,20 @@ "description": "If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.", "properties": { "account_holder_type": { - "description": "Bank account type.", + "description": "Bank account holder type.", "enum": [ "company", "individual" ], "type": "string" + }, + "account_type": { + "description": "Bank account type.", + "enum": [ + "checking", + "savings" + ], + "type": "string" } }, "title": "update_param", @@ -171499,7 +171672,12 @@ }, "description": "Error response." } - } + }, + "servers": [ + { + "url": "https://files.stripe.com/" + } + ] } }, "/v1/tax/registrations": { diff --git a/embedded/openapi/spec3.json b/embedded/openapi/spec3.json index 6f03d80c..b6906233 100644 --- a/embedded/openapi/spec3.json +++ b/embedded/openapi/spec3.json @@ -186,6 +186,30 @@ ], "x-resourceId": "account" }, + "account_annual_revenue": { + "description": "", + "properties": { + "amount": { + "description": "A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).", + "nullable": true, + "type": "integer" + }, + "currency": { + "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).", + "nullable": true, + "type": "string" + }, + "fiscal_year_end": { + "description": "The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.", + "maxLength": 5000, + "nullable": true, + "type": "string" + } + }, + "title": "AccountAnnualRevenue", + "type": "object", + "x-expandableFields": [] + }, "account_bacs_debit_payments_settings": { "description": "", "properties": { @@ -272,6 +296,20 @@ "account_business_profile": { "description": "", "properties": { + "annual_revenue": { + "anyOf": [ + { + "$ref": "#/components/schemas/account_annual_revenue" + } + ], + "description": "The applicant's gross annual revenue for its preceding fiscal year.", + "nullable": true + }, + "estimated_worker_count": { + "description": "An estimated upper bound of employees, contractors, vendors, etc. currently working for the business.", + "nullable": true, + "type": "integer" + }, "mcc": { "description": "[The merchant category code for the account](https://stripe.com/docs/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.", "maxLength": 5000, @@ -330,6 +368,7 @@ "title": "AccountBusinessProfile", "type": "object", "x-expandableFields": [ + "annual_revenue", "monthly_estimated_revenue", "support_address" ] @@ -4339,7 +4378,7 @@ "nullable": true }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "$ref": "#/components/schemas/payment_pages_checkout_session_custom_fields" }, @@ -13578,11 +13617,19 @@ "description": "Number of days within which a customer must pay invoices generated by this quote. This value will be `null` for quotes where `collection_method=charge_automatically`.", "nullable": true, "type": "integer" + }, + "issuer": { + "$ref": "#/components/schemas/connect_account_reference" } }, + "required": [ + "issuer" + ], "title": "InvoiceSettingQuoteSetting", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "issuer" + ] }, "invoice_setting_rendering_options": { "description": "", @@ -13605,11 +13652,22 @@ "description": "Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.", "nullable": true, "type": "integer" + }, + "issuer": { + "anyOf": [ + { + "$ref": "#/components/schemas/connect_account_reference" + } + ], + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "nullable": true } }, "title": "InvoiceSettingSubscriptionSchedulePhaseSetting", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "issuer" + ] }, "invoice_setting_subscription_schedule_setting": { "description": "", @@ -13618,11 +13676,19 @@ "description": "Number of days within which a customer must pay invoices generated by this subscription schedule. This value will be `null` for subscription schedules where `billing=charge_automatically`.", "nullable": true, "type": "integer" + }, + "issuer": { + "$ref": "#/components/schemas/connect_account_reference" } }, + "required": [ + "issuer" + ], "title": "InvoiceSettingSubscriptionScheduleSetting", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "issuer" + ] }, "invoice_tax_amount": { "description": "", @@ -22865,7 +22931,7 @@ "type": "string" }, "request_incremental_authorization": { - "description": "Request ability to [increment](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", + "description": "Request ability to [increment the authorization](https://stripe.com/docs/payments/incremental-authorization) for this PaymentIntent.", "enum": [ "if_available", "never" @@ -23232,7 +23298,7 @@ "type": "string" }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "$ref": "#/components/schemas/payment_links_resource_custom_fields" }, @@ -23546,6 +23612,15 @@ "enabled": { "description": "If `true`, tax will be calculated automatically using the customer's location.", "type": "boolean" + }, + "liability": { + "anyOf": [ + { + "$ref": "#/components/schemas/connect_account_reference" + } + ], + "description": "The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.", + "nullable": true } }, "required": [ @@ -23553,7 +23628,9 @@ ], "title": "PaymentLinksResourceAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "payment_links_resource_completed_sessions": { "description": "", @@ -23936,6 +24013,15 @@ "nullable": true, "type": "string" }, + "issuer": { + "anyOf": [ + { + "$ref": "#/components/schemas/connect_account_reference" + } + ], + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "nullable": true + }, "metadata": { "additionalProperties": { "maxLength": 500, @@ -23960,6 +24046,7 @@ "x-expandableFields": [ "account_tax_ids", "custom_fields", + "issuer", "rendering_options" ] }, @@ -24378,6 +24465,9 @@ "nullable": true, "type": "string" }, + "invoice_settings": { + "$ref": "#/components/schemas/payment_links_resource_subscription_data_invoice_settings" + }, "metadata": { "additionalProperties": { "maxLength": 500, @@ -24402,14 +24492,32 @@ } }, "required": [ + "invoice_settings", "metadata" ], "title": "PaymentLinksResourceSubscriptionData", "type": "object", "x-expandableFields": [ + "invoice_settings", "trial_settings" ] }, + "payment_links_resource_subscription_data_invoice_settings": { + "description": "", + "properties": { + "issuer": { + "$ref": "#/components/schemas/connect_account_reference" + } + }, + "required": [ + "issuer" + ], + "title": "PaymentLinksResourceSubscriptionDataInvoiceSettings", + "type": "object", + "x-expandableFields": [ + "issuer" + ] + }, "payment_links_resource_tax_id_collection": { "description": "", "properties": { @@ -32811,6 +32919,15 @@ "description": "Automatically calculate taxes", "type": "boolean" }, + "liability": { + "anyOf": [ + { + "$ref": "#/components/schemas/connect_account_reference" + } + ], + "description": "The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.", + "nullable": true + }, "status": { "description": "The status of the most recent automated tax calculation for this quote.", "enum": [ @@ -32827,7 +32944,9 @@ ], "title": "QuotesResourceAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "quotes_resource_computed": { "description": "", @@ -34469,6 +34588,15 @@ "enabled": { "description": "Whether Stripe automatically computes tax on invoices created during this phase.", "type": "boolean" + }, + "liability": { + "anyOf": [ + { + "$ref": "#/components/schemas/connect_account_reference" + } + ], + "description": "The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.", + "nullable": true } }, "required": [ @@ -34476,7 +34604,9 @@ ], "title": "SchedulesPhaseAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "secret_service_resource_scope": { "description": "", @@ -39294,6 +39424,15 @@ "enabled": { "description": "Whether Stripe automatically computes tax on invoices created during this phase.", "type": "boolean" + }, + "liability": { + "anyOf": [ + { + "$ref": "#/components/schemas/connect_account_reference" + } + ], + "description": "The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.", + "nullable": true } }, "required": [ @@ -39301,7 +39440,9 @@ ], "title": "SubscriptionSchedulesResourceDefaultSettingsAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "subscription_transfer_data": { "description": "", @@ -46732,6 +46873,30 @@ "business_profile": { "description": "Business information about the account.", "properties": { + "annual_revenue": { + "properties": { + "amount": { + "type": "integer" + }, + "currency": { + "type": "string" + }, + "fiscal_year_end": { + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "amount", + "currency", + "fiscal_year_end" + ], + "title": "annual_revenue_specs", + "type": "object" + }, + "estimated_worker_count": { + "type": "integer" + }, "mcc": { "maxLength": 4, "type": "string" @@ -48298,6 +48463,30 @@ "business_profile": { "description": "Business information about the account.", "properties": { + "annual_revenue": { + "properties": { + "amount": { + "type": "integer" + }, + "currency": { + "type": "string" + }, + "fiscal_year_end": { + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "amount", + "currency", + "fiscal_year_end" + ], + "title": "annual_revenue_specs", + "type": "object" + }, + "estimated_worker_count": { + "type": "integer" + }, "mcc": { "maxLength": 4, "type": "string" @@ -57622,7 +57811,7 @@ } }, "post": { - "description": "

Use the Payment Intents API to initiate a new payment instead\nof using this method. Confirmation of the PaymentIntent creates the Charge\nobject used to request payment, so this method is limited to legacy integrations.

", + "description": "

This method is no longer recommended—use the Payment Intents API\nto initiate a new payment instead. Confirmation of the PaymentIntent creates the Charge\nobject used to request payment.

", "operationId": "PostCharges", "requestBody": { "content": { @@ -59793,7 +59982,7 @@ "type": "string" }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "properties": { "dropdown": { @@ -76161,7 +76350,7 @@ "type": "array" }, "features": { - "description": "The list of account features to which you would like to subscribe.`.", + "description": "The list of account features to which you would like to subscribe.", "items": { "enum": [ "transactions" @@ -101452,6 +101641,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -101510,7 +101718,7 @@ "type": "string" }, "custom_fields": { - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported.", + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported.", "items": { "properties": { "dropdown": { @@ -101797,6 +102005,25 @@ "maxLength": 5000, "type": "string" }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + }, "metadata": { "anyOf": [ { @@ -102309,6 +102536,31 @@ "maxLength": 500, "type": "string" }, + "invoice_settings": { + "properties": { + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + } + }, + "title": "subscription_data_invoice_settings_params", + "type": "object" + }, "metadata": { "additionalProperties": { "type": "string" @@ -102610,6 +102862,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -102738,7 +103009,7 @@ "type": "string" } ], - "description": "Collect additional information from your customer using custom fields. Up to 2 fields are supported." + "description": "Collect additional information from your customer using custom fields. Up to 3 fields are supported." }, "custom_text": { "description": "Display additional text for your customers using custom text.", @@ -102934,6 +103205,25 @@ "maxLength": 5000, "type": "string" }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + }, "metadata": { "anyOf": [ { @@ -103465,6 +103755,31 @@ "subscription_data": { "description": "When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.", "properties": { + "invoice_settings": { + "properties": { + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + } + }, + "title": "subscription_data_invoice_settings_params", + "type": "object" + }, "metadata": { "anyOf": [ { @@ -107439,6 +107754,13 @@ "individual" ], "type": "string" + }, + "account_type": { + "enum": [ + "checking", + "savings" + ], + "type": "string" } }, "title": "update_param", @@ -111805,6 +112127,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -111952,6 +112293,25 @@ "properties": { "days_until_due": { "type": "integer" + }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "quote_param", @@ -112364,6 +112724,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -112494,6 +112873,25 @@ "properties": { "days_until_due": { "type": "integer" + }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "quote_param", @@ -123553,6 +123951,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -123619,6 +124036,25 @@ "properties": { "days_until_due": { "type": "integer" + }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "subscription_schedule_default_settings_param", @@ -123782,6 +124218,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -123876,6 +124331,25 @@ "properties": { "days_until_due": { "type": "integer" + }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "invoice_settings", @@ -124210,6 +124684,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -124276,6 +124769,25 @@ "properties": { "days_until_due": { "type": "integer" + }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "subscription_schedule_default_settings_param", @@ -124434,6 +124946,25 @@ "properties": { "enabled": { "type": "boolean" + }, + "liability": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -124536,6 +125067,25 @@ "properties": { "days_until_due": { "type": "integer" + }, + "issuer": { + "properties": { + "account": { + "type": "string" + }, + "type": { + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "invoice_settings",