diff --git a/api/openapi-spec/spec3.sdk.json b/api/openapi-spec/spec3.sdk.json index 6806955b..fc84cacb 100644 --- a/api/openapi-spec/spec3.sdk.json +++ b/api/openapi-spec/spec3.sdk.json @@ -2,7 +2,7 @@ "components": { "schemas": { "account": { - "description": "This is an object representing a Stripe account. You can retrieve it to see\nproperties on the account like its current requirements or if the account is\nenabled to make live charges or receive payouts.\n\nFor Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that\naccount has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links)\nfor a Standard or Express account, some parameters are no longer returned. These are marked as **Custom Only** or **Custom and Express**\nbelow. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).", + "description": "This is an object representing a Stripe account. You can retrieve it to see\nproperties on the account like its current requirements or if the account is\nenabled to make live charges or receive payouts.\n\nFor Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that\naccount has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions),\nsome properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).", "properties": { "business_profile": { "anyOf": [ @@ -14,7 +14,7 @@ "nullable": true }, "business_type": { - "description": "The business type.", + "description": "The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property is only returned for Custom accounts.", "enum": [ "company", "government_entity", @@ -64,7 +64,7 @@ "type": "string" }, "external_accounts": { - "description": "External accounts (bank accounts and debit cards) currently attached to this account", + "description": "External accounts (bank accounts and debit cards) currently attached to this account. External accounts are only returned for requests where `controller[is_controller]` is true.", "properties": { "data": { "description": "The list contains all external accounts that have been attached to the Stripe account. These may be bank accounts or cards.", @@ -177,6 +177,13 @@ ], "x-resourceId": "account", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/accounts/{account}" + }, { "method_name": "retrieve", "method_on": "service", @@ -184,6 +191,13 @@ "operation": "get", "path": "/v1/account" }, + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/accounts" + }, { "method_name": "retrieve", "method_on": "service", @@ -192,18 +206,18 @@ "path": "/v1/accounts/{account}" }, { - "method_name": "update", + "method_name": "capabilities", "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/accounts/{account}" + "method_type": "custom", + "operation": "get", + "path": "/v1/accounts/{account}/capabilities" }, { - "method_name": "list", + "method_name": "persons", "method_on": "service", - "method_type": "list", + "method_type": "custom", "operation": "get", - "path": "/v1/accounts" + "path": "/v1/accounts/{account}/persons" }, { "method_name": "create", @@ -213,10 +227,10 @@ "path": "/v1/accounts" }, { - "method_name": "delete", + "method_name": "update", "method_on": "service", - "method_type": "delete", - "operation": "delete", + "method_type": "update", + "operation": "post", "path": "/v1/accounts/{account}" }, { @@ -225,20 +239,6 @@ "method_type": "custom", "operation": "post", "path": "/v1/accounts/{account}/reject" - }, - { - "method_name": "persons", - "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/accounts/{account}/persons" - }, - { - "method_name": "capabilities", - "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/accounts/{account}/capabilities" } ], "x-stripeResource": { @@ -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" ] @@ -2161,17 +2207,17 @@ "x-resourceId": "apple_pay_domain", "x-stripeOperations": [ { - "method_name": "list", + "method_name": "delete", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/apple_pay/domains" + "method_type": "delete", + "operation": "delete", + "path": "/v1/apple_pay/domains/{domain}" }, { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/apple_pay/domains" }, { @@ -2182,11 +2228,11 @@ "path": "/v1/apple_pay/domains/{domain}" }, { - "method_name": "delete", + "method_name": "create", "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/apple_pay/domains/{domain}" + "method_type": "create", + "operation": "post", + "path": "/v1/apple_pay/domains" } ], "x-stripeResource": { @@ -2573,6 +2619,13 @@ ], "x-resourceId": "apps.secret", "x-stripeOperations": [ + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/apps/secrets" + }, { "method_name": "find", "method_on": "service", @@ -2593,13 +2646,6 @@ "method_type": "custom", "operation": "post", "path": "/v1/apps/secrets/delete" - }, - { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/apps/secrets" } ], "x-stripeResource": { @@ -2615,6 +2661,15 @@ "description": "Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.", "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 invoice.", "enum": [ @@ -2628,11 +2683,14 @@ }, "required": [ "enabled", + "liability", "status" ], "title": "AutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "balance": { "description": "This is an object representing your Stripe balance. You can retrieve it to see\nthe balance currently on your Stripe account.\n\nYou can also retrieve the balance history, which contains a list of\n[transactions](https://stripe.com/docs/reporting/balance-transaction-types) that contributed to the balance\n(charges, payouts, and so forth).\n\nThe available and pending amounts for each currency are broken down further by\npayment source types.\n\nRelated guide: [Understanding Connect account balances](https://stripe.com/docs/connect/account-balances)", @@ -2906,7 +2964,7 @@ "type": "string" }, "type": { - "description": "Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.", + "description": "Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.", "enum": [ "adjustment", "advance", @@ -2923,12 +2981,8 @@ "issuing_authorization_release", "issuing_dispute", "issuing_transaction", - "obligation_inbound", "obligation_outbound", - "obligation_payout", - "obligation_payout_failure", "obligation_reversal_inbound", - "obligation_reversal_outbound", "payment", "payment_failure_refund", "payment_network_reserve_hold", @@ -3248,11 +3302,11 @@ "x-resourceId": "bank_account", "x-stripeOperations": [ { - "method_name": "update", + "method_name": "delete", "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/customers/{customer}/sources/{id}" + "method_type": "delete", + "operation": "delete", + "path": "/v1/accounts/{account}/external_accounts/{id}" }, { "method_name": "delete", @@ -3262,25 +3316,25 @@ "path": "/v1/customers/{customer}/sources/{id}" }, { - "method_name": "verify", + "method_name": "update", "method_on": "service", - "method_type": "custom", + "method_type": "update", "operation": "post", - "path": "/v1/customers/{customer}/sources/{id}/verify" + "path": "/v1/accounts/{account}/external_accounts/{id}" }, { "method_name": "update", "method_on": "service", "method_type": "update", "operation": "post", - "path": "/v1/accounts/{account}/external_accounts/{id}" + "path": "/v1/customers/{customer}/sources/{id}" }, { - "method_name": "delete", + "method_name": "verify", "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/accounts/{account}/external_accounts/{id}" + "method_type": "custom", + "operation": "post", + "path": "/v1/customers/{customer}/sources/{id}/verify" } ], "x-stripeResource": { @@ -3513,6 +3567,69 @@ "type": "object", "x-expandableFields": [] }, + "bank_connections_resource_transaction_refresh": { + "description": "", + "properties": { + "id": { + "description": "Unique identifier for the object.", + "maxLength": 5000, + "type": "string" + }, + "last_attempted_at": { + "description": "The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "type": "integer" + }, + "next_refresh_available_at": { + "description": "Time at which the next transaction refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "nullable": true, + "type": "integer" + }, + "status": { + "description": "The status of the last refresh attempt.", + "enum": [ + "failed", + "pending", + "succeeded" + ], + "type": "string" + } + }, + "required": [ + "id", + "last_attempted_at", + "next_refresh_available_at", + "status" + ], + "title": "BankConnectionsResourceTransactionRefresh", + "type": "object", + "x-expandableFields": [] + }, + "bank_connections_resource_transaction_resource_status_transitions": { + "description": "", + "properties": { + "posted_at": { + "description": "Time at which this transaction posted. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "nullable": true, + "type": "integer" + }, + "void_at": { + "description": "Time at which this transaction was voided. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "nullable": true, + "type": "integer" + } + }, + "required": [ + "posted_at", + "void_at" + ], + "title": "BankConnectionsResourceTransactionResourceStatusTransitions", + "type": "object", + "x-expandableFields": [] + }, "billing_details": { "description": "", "properties": { @@ -3676,6 +3793,13 @@ "operation": "get", "path": "/v1/billing_portal/configurations" }, + { + "method_name": "retrieve", + "method_on": "service", + "method_type": "retrieve", + "operation": "get", + "path": "/v1/billing_portal/configurations/{configuration}" + }, { "method_name": "create", "method_on": "service", @@ -3689,13 +3813,6 @@ "method_type": "update", "operation": "post", "path": "/v1/billing_portal/configurations/{configuration}" - }, - { - "method_name": "retrieve", - "method_on": "service", - "method_type": "retrieve", - "operation": "get", - "path": "/v1/billing_portal/configurations/{configuration}" } ], "x-stripeResource": { @@ -4349,11 +4466,11 @@ "x-resourceId": "card", "x-stripeOperations": [ { - "method_name": "update", + "method_name": "delete", "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/customers/{customer}/sources/{id}" + "method_type": "delete", + "operation": "delete", + "path": "/v1/accounts/{account}/external_accounts/{id}" }, { "method_name": "delete", @@ -4370,11 +4487,11 @@ "path": "/v1/accounts/{account}/external_accounts/{id}" }, { - "method_name": "delete", + "method_name": "update", "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/accounts/{account}/external_accounts/{id}" + "method_type": "update", + "operation": "post", + "path": "/v1/customers/{customer}/sources/{id}" } ], "x-stripeResource": { @@ -5056,18 +5173,25 @@ "x-resourceId": "charge", "x-stripeOperations": [ { - "method_name": "search", + "method_name": "list", "method_on": "service", - "method_type": "custom", + "method_type": "list", "operation": "get", - "path": "/v1/charges/search" + "path": "/v1/charges" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/charges" + "path": "/v1/charges/{charge}" + }, + { + "method_name": "search", + "method_on": "service", + "method_type": "custom", + "operation": "get", + "path": "/v1/charges/search" }, { "method_name": "create", @@ -5076,13 +5200,6 @@ "operation": "post", "path": "/v1/charges" }, - { - "method_name": "retrieve", - "method_on": "service", - "method_type": "retrieve", - "operation": "get", - "path": "/v1/charges/{charge}" - }, { "method_name": "update", "method_on": "service", @@ -5534,7 +5651,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" }, @@ -5921,7 +6038,7 @@ "type": "string" }, "submit_type": { - "description": "Describes the type of transaction being performed by Checkout in order to customize\nrelevant text on the page, such as the submit button. `submit_type` can only be\nspecified on Checkout Sessions in `payment` mode, but not Checkout Sessions\nin `subscription` or `setup` mode.", + "description": "Describes the type of transaction being performed by Checkout in order to customize\nrelevant text on the page, such as the submit button. `submit_type` can only be\nspecified on Checkout Sessions in `payment` mode, but not Checkout Sessions\nin `subscription` or `setup` mode. Possible values are `auto`, `pay`, `book`, `donate`. If blank or `auto`, `pay` is used.", "enum": [ "auto", "book", @@ -6082,13 +6199,6 @@ "operation": "get", "path": "/v1/checkout/sessions/{session}" }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/checkout/sessions" - }, { "method_name": "list_line_items", "method_on": "service", @@ -6096,6 +6206,13 @@ "operation": "get", "path": "/v1/checkout/sessions/{session}/line_items" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/checkout/sessions" + }, { "method_name": "expire", "method_on": "service", @@ -7132,18 +7249,18 @@ "x-resourceId": "climate.order", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/climate/orders/{order}" + "path": "/v1/climate/orders" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/climate/orders" + "path": "/v1/climate/orders/{order}" }, { "method_name": "create", @@ -7327,18 +7444,18 @@ "x-resourceId": "climate.product", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/climate/products/{product}" + "path": "/v1/climate/products" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/climate/products" + "path": "/v1/climate/products/{product}" } ], "x-stripeResource": { @@ -7442,18 +7559,18 @@ "x-resourceId": "climate.supplier", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/climate/suppliers/{supplier}" + "path": "/v1/climate/suppliers" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/climate/suppliers" + "path": "/v1/climate/suppliers/{supplier}" } ], "x-stripeResource": { @@ -7591,6 +7708,46 @@ "type": "object", "x-expandableFields": [] }, + "connect_account_reference": { + "description": "", + "properties": { + "account": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "$ref": "#/components/schemas/account" + } + ], + "description": "The connected account being referenced when `type` is `account`.", + "x-expansionResources": { + "oneOf": [ + { + "$ref": "#/components/schemas/account" + } + ] + } + }, + "type": { + "description": "Type of the account referenced.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "ConnectAccountReference", + "type": "object", + "x-expandableFields": [ + "account" + ] + }, "connect_collection_transfer": { "description": "", "properties": { @@ -7676,7 +7833,10 @@ } }, "required": [ - "account_onboarding" + "account_onboarding", + "payment_details", + "payments", + "payouts" ], "title": "ConnectEmbeddedAccountSessionCreateComponents", "type": "object", @@ -7739,7 +7899,8 @@ } }, "required": [ - "enabled" + "enabled", + "features" ], "title": "ConnectEmbeddedPaymentsConfig", "type": "object", @@ -7792,7 +7953,8 @@ } }, "required": [ - "enabled" + "enabled", + "features" ], "title": "ConnectEmbeddedPayoutsConfig", "type": "object", @@ -8104,17 +8266,17 @@ "x-resourceId": "coupon", "x-stripeOperations": [ { - "method_name": "list", + "method_name": "delete", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/coupons" + "method_type": "delete", + "operation": "delete", + "path": "/v1/coupons/{coupon}" }, { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/coupons" }, { @@ -8125,17 +8287,17 @@ "path": "/v1/coupons/{coupon}" }, { - "method_name": "update", + "method_name": "create", "method_on": "service", - "method_type": "update", + "method_type": "create", "operation": "post", - "path": "/v1/coupons/{coupon}" + "path": "/v1/coupons" }, { - "method_name": "delete", + "method_name": "update", "method_on": "service", - "method_type": "delete", - "operation": "delete", + "method_type": "update", + "operation": "post", "path": "/v1/coupons/{coupon}" } ], @@ -8548,12 +8710,19 @@ "x-resourceId": "credit_note", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/credit_notes" }, + { + "method_name": "retrieve", + "method_on": "service", + "method_type": "retrieve", + "operation": "get", + "path": "/v1/credit_notes/{id}" + }, { "method_name": "preview", "method_on": "service", @@ -8562,17 +8731,17 @@ "path": "/v1/credit_notes/preview" }, { - "method_name": "retrieve", + "method_name": "preview_lines", "method_on": "service", - "method_type": "retrieve", + "method_type": "custom", "operation": "get", - "path": "/v1/credit_notes/{id}" + "path": "/v1/credit_notes/preview/lines" }, { - "method_name": "list", + "method_name": "create", "method_on": "service", - "method_type": "list", - "operation": "get", + "method_type": "create", + "operation": "post", "path": "/v1/credit_notes" }, { @@ -8588,13 +8757,6 @@ "method_type": "custom", "operation": "post", "path": "/v1/credit_notes/{id}/void" - }, - { - "method_name": "preview_lines", - "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/credit_notes/preview/lines" } ], "x-stripeResource": { @@ -9282,11 +9444,18 @@ "x-resourceId": "customer", "x-stripeOperations": [ { - "method_name": "search", + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/customers/{customer}" + }, + { + "method_name": "delete_discount", "method_on": "service", "method_type": "custom", - "operation": "get", - "path": "/v1/customers/search" + "operation": "delete", + "path": "/v1/customers/{customer}/discount" }, { "method_name": "list", @@ -9295,13 +9464,6 @@ "operation": "get", "path": "/v1/customers" }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/customers" - }, { "method_name": "retrieve", "method_on": "service", @@ -9310,18 +9472,11 @@ "path": "/v1/customers/{customer}" }, { - "method_name": "update", - "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/customers/{customer}" - }, - { - "method_name": "delete", + "method_name": "balance_transactions", "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/customers/{customer}" + "method_type": "custom", + "operation": "get", + "path": "/v1/customers/{customer}/balance_transactions" }, { "method_name": "list_payment_methods", @@ -9338,18 +9493,25 @@ "path": "/v1/customers/{customer}/payment_methods/{payment_method}" }, { - "method_name": "balance_transactions", + "method_name": "search", "method_on": "service", "method_type": "custom", "operation": "get", - "path": "/v1/customers/{customer}/balance_transactions" + "path": "/v1/customers/search" }, { - "method_name": "fund_cash_balance", + "method_name": "create", "method_on": "service", - "method_type": "custom", + "method_type": "create", "operation": "post", - "path": "/v1/test_helpers/customers/{customer}/fund_cash_balance" + "path": "/v1/customers" + }, + { + "method_name": "update", + "method_on": "service", + "method_type": "update", + "operation": "post", + "path": "/v1/customers/{customer}" }, { "method_name": "create_funding_instructions", @@ -9359,11 +9521,11 @@ "path": "/v1/customers/{customer}/funding_instructions" }, { - "method_name": "delete_discount", + "method_name": "fund_cash_balance", "method_on": "service", "method_type": "custom", - "operation": "delete", - "path": "/v1/customers/{customer}/discount" + "operation": "post", + "path": "/v1/test_helpers/customers/{customer}/fund_cash_balance" } ], "x-stripeResource": { @@ -10336,32 +10498,32 @@ "x-resourceId": "customer_balance_transaction", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "collection", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/customers/{customer}/balance_transactions/{transaction}" + "path": "/v1/customers/{customer}/balance_transactions" }, { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/customers/{customer}/balance_transactions/{transaction}" + "path": "/v1/customers/{customer}/balance_transactions" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "collection", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/customers/{customer}/balance_transactions" + "path": "/v1/customers/{customer}/balance_transactions/{transaction}" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/customers/{customer}/balance_transactions" + "path": "/v1/customers/{customer}/balance_transactions/{transaction}" }, { "method_name": "create", @@ -10506,32 +10668,32 @@ "x-resourceId": "customer_cash_balance_transaction", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "collection", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/customers/{customer}/cash_balance_transactions/{transaction}" + "path": "/v1/customers/{customer}/cash_balance_transactions" }, { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/customers/{customer}/cash_balance_transactions/{transaction}" + "path": "/v1/customers/{customer}/cash_balance_transactions" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "collection", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/customers/{customer}/cash_balance_transactions" + "path": "/v1/customers/{customer}/cash_balance_transactions/{transaction}" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/customers/{customer}/cash_balance_transactions" + "path": "/v1/customers/{customer}/cash_balance_transactions/{transaction}" } ], "x-stripeResource": { @@ -10559,6 +10721,138 @@ "type": "customer_cash_balance_transaction.created" } }, + "customer_session": { + "description": "A customer session allows you to grant client access to Stripe's frontend SDKs (like StripeJs)\ncontrol over a customer.", + "properties": { + "client_secret": { + "description": "The client secret of this customer session. Used on the client to set up secure access to the given `customer`.\n\nThe client secret can be used to provide access to `customer` from your frontend. It should not be stored, logged, or exposed to anyone other than the relevant customer. Make sure that you have TLS enabled on any page that includes the client secret.", + "maxLength": 5000, + "type": "string" + }, + "components": { + "$ref": "#/components/schemas/customer_session_resource_components" + }, + "created": { + "description": "Time at which the object was created. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "type": "integer" + }, + "customer": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "$ref": "#/components/schemas/customer" + } + ], + "description": "The customer the customer session was created for.", + "x-expansionResources": { + "oneOf": [ + { + "$ref": "#/components/schemas/customer" + } + ] + } + }, + "expires_at": { + "description": "The timestamp at which this customer session will expire.", + "format": "unix-time", + "type": "integer" + }, + "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" + }, + "object": { + "description": "String representing the object's type. Objects of the same type share the same value.", + "enum": [ + "customer_session" + ], + "type": "string" + } + }, + "required": [ + "client_secret", + "created", + "customer", + "expires_at", + "livemode", + "object" + ], + "title": "CustomerSessionResourceCustomerSession", + "type": "object", + "x-expandableFields": [ + "components", + "customer" + ], + "x-resourceId": "customer_session", + "x-stripeOperations": [ + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/customer_sessions" + } + ], + "x-stripeResource": { + "class_name": "CustomerSession", + "in_package": "" + } + }, + "customer_session_resource_components": { + "description": "Configuration for the components supported by this customer session.", + "properties": { + "buy_button": { + "$ref": "#/components/schemas/customer_session_resource_components_resource_buy_button" + }, + "pricing_table": { + "$ref": "#/components/schemas/customer_session_resource_components_resource_pricing_table" + } + }, + "required": [ + "buy_button", + "pricing_table" + ], + "title": "CustomerSessionResourceComponents", + "type": "object", + "x-expandableFields": [ + "buy_button", + "pricing_table" + ] + }, + "customer_session_resource_components_resource_buy_button": { + "description": "This hash contains whether the buy button is enabled.", + "properties": { + "enabled": { + "description": "Whether the buy button is enabled.", + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "CustomerSessionResourceComponentsResourceBuyButton", + "type": "object", + "x-expandableFields": [] + }, + "customer_session_resource_components_resource_pricing_table": { + "description": "This hash contains whether the pricing table is enabled.", + "properties": { + "enabled": { + "description": "Whether the pricing table is enabled.", + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "CustomerSessionResourceComponentsResourcePricingTable", + "type": "object", + "x-expandableFields": [] + }, "customer_tax": { "description": "", "properties": { @@ -12476,19 +12770,19 @@ "x-expandableFields": [], "x-resourceId": "ephemeral_key", "x-stripeOperations": [ - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/ephemeral_keys" - }, { "method_name": "delete", "method_on": "service", "method_type": "delete", "operation": "delete", "path": "/v1/ephemeral_keys/{key}" + }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/ephemeral_keys" } ], "x-stripeResource": { @@ -12639,6 +12933,7 @@ "financial_connections.account.disconnected", "financial_connections.account.reactivated", "financial_connections.account.refreshed_balance", + "financial_connections.account.refreshed_transactions", "identity.verification_session.canceled", "identity.verification_session.created", "identity.verification_session.processing", @@ -12902,6 +13197,13 @@ "x-resourceId": "external_account", "x-stripeBypassValidation": true, "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/accounts/{account}/external_accounts/{id}" + }, { "method_name": "list", "method_on": "collection", @@ -12950,13 +13252,6 @@ "method_type": "update", "operation": "post", "path": "/v1/accounts/{account}/external_accounts/{id}" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/accounts/{account}/external_accounts/{id}" } ], "x-stripeResource": { @@ -13151,18 +13446,18 @@ "x-resourceId": "fee_refund", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "retrieve", "method_on": "collection", - "method_type": "create", - "operation": "post", - "path": "/v1/application_fees/{id}/refunds" + "method_type": "retrieve", + "operation": "get", + "path": "/v1/application_fees/{fee}/refunds/{id}" }, { - "method_name": "create", + "method_name": "retrieve", "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/application_fees/{id}/refunds" + "method_type": "retrieve", + "operation": "get", + "path": "/v1/application_fees/{fee}/refunds/{id}" }, { "method_name": "list", @@ -13179,25 +13474,25 @@ "path": "/v1/application_fees/{id}/refunds" }, { - "method_name": "retrieve", - "method_on": "collection", - "method_type": "retrieve", - "operation": "get", + "method_name": "update", + "method_on": "service", + "method_type": "update", + "operation": "post", "path": "/v1/application_fees/{fee}/refunds/{id}" }, { - "method_name": "retrieve", - "method_on": "service", - "method_type": "retrieve", - "operation": "get", - "path": "/v1/application_fees/{fee}/refunds/{id}" + "method_name": "create", + "method_on": "collection", + "method_type": "create", + "operation": "post", + "path": "/v1/application_fees/{id}/refunds" }, { - "method_name": "update", + "method_name": "create", "method_on": "service", - "method_type": "update", + "method_type": "create", "operation": "post", - "path": "/v1/application_fees/{fee}/refunds/{id}" + "path": "/v1/application_fees/{id}/refunds" } ], "x-stripeResource": { @@ -13476,6 +13771,13 @@ ], "x-resourceId": "file_link", "x-stripeOperations": [ + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/file_links" + }, { "method_name": "retrieve", "method_on": "service", @@ -13496,13 +13798,6 @@ "method_type": "update", "operation": "post", "path": "/v1/file_links/{link}" - }, - { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/file_links" } ], "x-stripeResource": { @@ -13653,6 +13948,18 @@ ], "type": "string" }, + "subscriptions": { + "description": "The list of data refresh subscriptions requested on this account.", + "items": { + "enum": [ + "transactions" + ], + "type": "string", + "x-stripeBypassValidation": true + }, + "nullable": true, + "type": "array" + }, "supported_payment_method_types": { "description": "The [PaymentMethod type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account.", "items": { @@ -13663,6 +13970,15 @@ "type": "string" }, "type": "array" + }, + "transaction_refresh": { + "anyOf": [ + { + "$ref": "#/components/schemas/bank_connections_resource_transaction_refresh" + } + ], + "description": "The state of the most recent attempt to refresh the account transactions.", + "nullable": true } }, "required": [ @@ -13682,7 +13998,9 @@ "permissions", "status", "subcategory", - "supported_payment_method_types" + "subscriptions", + "supported_payment_method_types", + "transaction_refresh" ], "title": "BankConnectionsResourceLinkedAccount", "type": "object", @@ -13691,7 +14009,8 @@ "balance", "balance_refresh", "ownership", - "ownership_refresh" + "ownership_refresh", + "transaction_refresh" ], "x-resourceId": "financial_connections.account", "x-stripeOperations": [ @@ -13716,6 +14035,13 @@ "operation": "get", "path": "/v1/financial_connections/accounts/{account}/owners" }, + { + "method_name": "disconnect", + "method_on": "service", + "method_type": "custom", + "operation": "post", + "path": "/v1/financial_connections/accounts/{account}/disconnect" + }, { "method_name": "refresh", "method_on": "service", @@ -13724,11 +14050,18 @@ "path": "/v1/financial_connections/accounts/{account}/refresh" }, { - "method_name": "disconnect", + "method_name": "subscribe", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/financial_connections/accounts/{account}/disconnect" + "path": "/v1/financial_connections/accounts/{account}/subscribe" + }, + { + "method_name": "unsubscribe", + "method_on": "service", + "method_type": "custom", + "operation": "post", + "path": "/v1/financial_connections/accounts/{account}/unsubscribe" } ], "x-stripeResource": { @@ -13817,6 +14150,22 @@ "type": "financial_connections.account.refreshed_balance" } }, + "financial_connections.account.refreshed_transactions": { + "description": "Occurs when an Account’s `transaction_refresh` status transitions from `pending` to either `succeeded` or `failed`.", + "properties": { + "object": { + "$ref": "#/components/schemas/financial_connections.account" + } + }, + "required": [ + "object" + ], + "type": "object", + "x-expandableFields": [], + "x-stripeEvent": { + "type": "financial_connections.account.refreshed_transactions" + } + }, "financial_connections.account_owner": { "description": "Describes an owner of an account.", "properties": { @@ -14058,7 +14407,8 @@ "items": { "enum": [ "balances", - "ownership" + "ownership", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -14091,23 +14441,131 @@ ], "x-resourceId": "financial_connections.session", "x-stripeOperations": [ + { + "method_name": "retrieve", + "method_on": "service", + "method_type": "retrieve", + "operation": "get", + "path": "/v1/financial_connections/sessions/{session}" + }, { "method_name": "create", "method_on": "service", "method_type": "create", "operation": "post", "path": "/v1/financial_connections/sessions" + } + ], + "x-stripeResource": { + "class_name": "Session", + "in_package": "FinancialConnections" + } + }, + "financial_connections.transaction": { + "description": "A Transaction represents a real transaction that affects a Financial Connections Account balance.", + "properties": { + "account": { + "description": "The ID of the Financial Connections Account this transaction belongs to.", + "maxLength": 5000, + "type": "string" + }, + "amount": { + "description": "The amount of this transaction, in cents (or local equivalent).", + "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).", + "maxLength": 5000, + "type": "string" + }, + "description": { + "description": "The description of this transaction.", + "maxLength": 5000, + "type": "string" + }, + "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" + }, + "object": { + "description": "String representing the object's type. Objects of the same type share the same value.", + "enum": [ + "financial_connections.transaction" + ], + "type": "string" + }, + "status": { + "description": "The status of the transaction.", + "enum": [ + "pending", + "posted", + "void" + ], + "type": "string" + }, + "status_transitions": { + "$ref": "#/components/schemas/bank_connections_resource_transaction_resource_status_transitions" + }, + "transacted_at": { + "description": "Time at which the transaction was transacted. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "type": "integer" + }, + "transaction_refresh": { + "description": "The token of the transaction refresh that last updated or created this transaction.", + "maxLength": 5000, + "type": "string" + }, + "updated": { + "description": "Time at which the object was last updated. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "type": "integer" + } + }, + "required": [ + "account", + "amount", + "currency", + "description", + "id", + "livemode", + "object", + "status", + "status_transitions", + "transacted_at", + "transaction_refresh", + "updated" + ], + "title": "BankConnectionsResourceTransaction", + "type": "object", + "x-expandableFields": [ + "status_transitions" + ], + "x-resourceId": "financial_connections.transaction", + "x-stripeOperations": [ + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/financial_connections/transactions" }, { "method_name": "retrieve", "method_on": "service", "method_type": "retrieve", "operation": "get", - "path": "/v1/financial_connections/sessions/{session}" + "path": "/v1/financial_connections/transactions/{transaction}" } ], "x-stripeResource": { - "class_name": "Session", + "class_name": "Transaction", + "has_collection_class": true, "in_package": "FinancialConnections" } }, @@ -15289,18 +15747,18 @@ "x-resourceId": "identity.verification_report", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/identity/verification_reports/{report}" + "path": "/v1/identity/verification_reports" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/identity/verification_reports" + "path": "/v1/identity/verification_reports/{report}" } ], "x-stripeResource": { @@ -15458,10 +15916,10 @@ "x-resourceId": "identity.verification_session", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/identity/verification_sessions" }, { @@ -15472,12 +15930,19 @@ "path": "/v1/identity/verification_sessions/{session}" }, { - "method_name": "list", + "method_name": "create", "method_on": "service", - "method_type": "list", - "operation": "get", + "method_type": "create", + "operation": "post", "path": "/v1/identity/verification_sessions" }, + { + "method_name": "update", + "method_on": "service", + "method_type": "update", + "operation": "post", + "path": "/v1/identity/verification_sessions/{session}" + }, { "method_name": "cancel", "method_on": "service", @@ -15491,13 +15956,6 @@ "method_type": "custom", "operation": "post", "path": "/v1/identity/verification_sessions/{session}/redact" - }, - { - "method_name": "update", - "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/identity/verification_sessions/{session}" } ], "x-stripeResource": { @@ -16088,6 +16546,9 @@ "nullable": true, "type": "string" }, + "issuer": { + "$ref": "#/components/schemas/connect_account_reference" + }, "last_finalization_error": { "anyOf": [ { @@ -16492,6 +16953,7 @@ "ending_balance", "footer", "from_invoice", + "issuer", "last_finalization_error", "latest_revision", "lines", @@ -16550,6 +17012,7 @@ "discount", "discounts", "from_invoice", + "issuer", "last_finalization_error", "latest_revision", "lines", @@ -16573,32 +17036,39 @@ "x-resourceId": "invoice", "x-stripeOperations": [ { - "method_name": "search", + "method_name": "delete", "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/invoices/search" + "method_type": "delete", + "operation": "delete", + "path": "/v1/invoices/{invoice}" }, { - "method_name": "upcoming", + "method_name": "list", "method_on": "service", - "method_type": "custom", + "method_type": "list", "operation": "get", - "path": "/v1/invoices/upcoming" + "path": "/v1/invoices" }, { - "method_name": "update", + "method_name": "retrieve", "method_on": "service", - "method_type": "update", - "operation": "post", + "method_type": "retrieve", + "operation": "get", "path": "/v1/invoices/{invoice}" }, { - "method_name": "pay", + "method_name": "search", "method_on": "service", "method_type": "custom", - "operation": "post", - "path": "/v1/invoices/{invoice}/pay" + "operation": "get", + "path": "/v1/invoices/search" + }, + { + "method_name": "upcoming", + "method_on": "service", + "method_type": "custom", + "operation": "get", + "path": "/v1/invoices/upcoming" }, { "method_name": "upcomingLines", @@ -16615,46 +17085,39 @@ "path": "/v1/invoices" }, { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/invoices" - }, - { - "method_name": "retrieve", + "method_name": "update", "method_on": "service", - "method_type": "retrieve", - "operation": "get", + "method_type": "update", + "operation": "post", "path": "/v1/invoices/{invoice}" }, { - "method_name": "delete", + "method_name": "finalize_invoice", "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/invoices/{invoice}" + "method_type": "custom", + "operation": "post", + "path": "/v1/invoices/{invoice}/finalize" }, { - "method_name": "finalize_invoice", + "method_name": "mark_uncollectible", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/invoices/{invoice}/finalize" + "path": "/v1/invoices/{invoice}/mark_uncollectible" }, { - "method_name": "send_invoice", + "method_name": "pay", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/invoices/{invoice}/send" + "path": "/v1/invoices/{invoice}/pay" }, { - "method_name": "mark_uncollectible", + "method_name": "send_invoice", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/invoices/{invoice}/mark_uncollectible" + "path": "/v1/invoices/{invoice}/send" }, { "method_name": "void_invoice", @@ -17048,7 +17511,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "nullable": true, "type": "string" @@ -17181,7 +17645,8 @@ "description": "Data features requested to be retrieved upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -17341,14 +17806,26 @@ "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 } }, "required": [ - "days_until_due" + "days_until_due", + "issuer" ], "title": "InvoiceSettingSubscriptionSchedulePhaseSetting", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "issuer" + ] }, "invoice_setting_subscription_schedule_setting": { "description": "", @@ -17357,14 +17834,20 @@ "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": [ - "days_until_due" + "days_until_due", + "issuer" ], "title": "InvoiceSettingSubscriptionScheduleSetting", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "issuer" + ] }, "invoice_tax_amount": { "description": "", @@ -17755,17 +18238,17 @@ "x-resourceId": "invoiceitem", "x-stripeOperations": [ { - "method_name": "list", + "method_name": "delete", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/invoiceitems" + "method_type": "delete", + "operation": "delete", + "path": "/v1/invoiceitems/{invoiceitem}" }, { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/invoiceitems" }, { @@ -17776,17 +18259,17 @@ "path": "/v1/invoiceitems/{invoiceitem}" }, { - "method_name": "update", + "method_name": "create", "method_on": "service", - "method_type": "update", + "method_type": "create", "operation": "post", - "path": "/v1/invoiceitems/{invoiceitem}" + "path": "/v1/invoiceitems" }, { - "method_name": "delete", + "method_name": "update", "method_on": "service", - "method_type": "delete", - "operation": "delete", + "method_type": "update", + "operation": "post", "path": "/v1/invoiceitems/{invoiceitem}" } ], @@ -18004,12 +18487,14 @@ "card", "cashapp", "customer_balance", + "eps", "fpx", "giropay", "grabpay", "ideal", "konbini", "link", + "p24", "paynow", "paypal", "promptpay", @@ -18540,32 +19025,32 @@ "path": "/v1/test_helpers/issuing/authorizations" }, { - "method_name": "increment", + "method_name": "capture", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/authorizations/{authorization}/increment" + "path": "/v1/test_helpers/issuing/authorizations/{authorization}/capture" }, { - "method_name": "reverse", + "method_name": "expire", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/authorizations/{authorization}/reverse" + "path": "/v1/test_helpers/issuing/authorizations/{authorization}/expire" }, { - "method_name": "expire", + "method_name": "increment", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/authorizations/{authorization}/expire" + "path": "/v1/test_helpers/issuing/authorizations/{authorization}/increment" }, { - "method_name": "capture", + "method_name": "reverse", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/authorizations/{authorization}/capture" + "path": "/v1/test_helpers/issuing/authorizations/{authorization}/reverse" } ], "x-stripeResource": { @@ -18794,13 +19279,6 @@ "operation": "get", "path": "/v1/issuing/cards" }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/issuing/cards" - }, { "method_name": "retrieve", "method_on": "service", @@ -18808,6 +19286,13 @@ "operation": "get", "path": "/v1/issuing/cards/{card}" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/issuing/cards" + }, { "method_name": "update", "method_on": "service", @@ -18823,11 +19308,11 @@ "path": "/v1/test_helpers/issuing/cards/{card}/shipping/deliver" }, { - "method_name": "ship_card", + "method_name": "fail_card", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/cards/{card}/shipping/ship" + "path": "/v1/test_helpers/issuing/cards/{card}/shipping/fail" }, { "method_name": "return_card", @@ -18837,11 +19322,11 @@ "path": "/v1/test_helpers/issuing/cards/{card}/shipping/return" }, { - "method_name": "fail_card", + "method_name": "ship_card", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/cards/{card}/shipping/fail" + "path": "/v1/test_helpers/issuing/cards/{card}/shipping/ship" } ], "x-stripeResource": { @@ -19002,13 +19487,6 @@ "operation": "get", "path": "/v1/issuing/cardholders" }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/issuing/cardholders" - }, { "method_name": "retrieve", "method_on": "service", @@ -19016,6 +19494,13 @@ "operation": "get", "path": "/v1/issuing/cardholders/{cardholder}" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/issuing/cardholders" + }, { "method_name": "update", "method_on": "service", @@ -19151,6 +19636,13 @@ "operation": "get", "path": "/v1/issuing/disputes" }, + { + "method_name": "retrieve", + "method_on": "service", + "method_type": "retrieve", + "operation": "get", + "path": "/v1/issuing/disputes/{dispute}" + }, { "method_name": "create", "method_on": "service", @@ -19165,13 +19657,6 @@ "operation": "post", "path": "/v1/issuing/disputes/{dispute}" }, - { - "method_name": "retrieve", - "method_on": "service", - "method_type": "retrieve", - "operation": "get", - "path": "/v1/issuing/disputes/{dispute}" - }, { "method_name": "submit", "method_on": "service", @@ -19613,25 +20098,25 @@ "path": "/v1/issuing/transactions/{transaction}" }, { - "method_name": "create_force_capture", + "method_name": "refund", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/transactions/create_force_capture" + "path": "/v1/test_helpers/issuing/transactions/{transaction}/refund" }, { - "method_name": "create_unlinked_refund", + "method_name": "create_force_capture", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/transactions/create_unlinked_refund" + "path": "/v1/test_helpers/issuing/transactions/create_force_capture" }, { - "method_name": "refund", + "method_name": "create_unlinked_refund", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/issuing/transactions/{transaction}/refund" + "path": "/v1/test_helpers/issuing/transactions/create_unlinked_refund" } ], "x-stripeResource": { @@ -19728,7 +20213,8 @@ "description": "The specific exemption claimed for this authorization.", "enum": [ "low_value_transaction", - "transaction_risk_analysis" + "transaction_risk_analysis", + "unknown" ], "type": "string", "x-stripeBypassValidation": true @@ -22055,7 +22541,7 @@ "$ref": "#/components/schemas/issuing_cardholder_user_terms_acceptance" } ], - "description": "Information about cardholder acceptance of [Authorized User Terms](https://stripe.com/docs/issuing/cards).", + "description": "Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.", "nullable": true } }, @@ -22604,13 +23090,13 @@ "description": "", "properties": { "date": { - "description": "The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.", + "description": "The Unix timestamp marking when the cardholder accepted the Authorized User Terms.", "format": "unix-time", "nullable": true, "type": "integer" }, "ip": { - "description": "The IP address from which the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.", + "description": "The IP address from which the cardholder accepted the Authorized User Terms.", "maxLength": 5000, "nullable": true, "type": "string" @@ -24163,6 +24649,7 @@ "public_company", "public_corporation", "public_partnership", + "registered_charity", "single_member_llc", "sole_establishment", "sole_proprietorship", @@ -24967,7 +25454,8 @@ "description": "Data features requested to be retrieved upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -25240,6 +25728,18 @@ "maxLength": 5000, "type": "string" }, + "revocation_reason": { + "description": "When the mandate is revoked on the Bacs network this field displays the reason for the revocation.", + "enum": [ + "account_closed", + "bank_account_restricted", + "bank_ownership_changed", + "could_not_process", + "debit_not_authorized" + ], + "nullable": true, + "type": "string" + }, "url": { "description": "The URL that will contain the mandate that the customer has signed.", "maxLength": 5000, @@ -25249,6 +25749,7 @@ "required": [ "network_status", "reference", + "revocation_reason", "url" ], "title": "mandate_bacs_debit", @@ -25405,7 +25906,16 @@ }, "mandate_us_bank_account": { "description": "", - "properties": {}, + "properties": { + "collection_method": { + "description": "Mandate collection method", + "enum": [ + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, "title": "mandate_us_bank_account", "type": "object", "x-expandableFields": [], @@ -26492,20 +27002,6 @@ ], "x-resourceId": "payment_intent", "x-stripeOperations": [ - { - "method_name": "search", - "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/payment_intents/search" - }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/payment_intents" - }, { "method_name": "list", "method_on": "service", @@ -26520,6 +27016,20 @@ "operation": "get", "path": "/v1/payment_intents/{intent}" }, + { + "method_name": "search", + "method_on": "service", + "method_type": "custom", + "operation": "get", + "path": "/v1/payment_intents/search" + }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/payment_intents" + }, { "method_name": "update", "method_on": "service", @@ -26528,11 +27038,11 @@ "path": "/v1/payment_intents/{intent}" }, { - "method_name": "confirm", + "method_name": "apply_customer_balance", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/payment_intents/{intent}/confirm" + "path": "/v1/payment_intents/{intent}/apply_customer_balance" }, { "method_name": "cancel", @@ -26549,25 +27059,25 @@ "path": "/v1/payment_intents/{intent}/capture" }, { - "method_name": "increment_authorization", + "method_name": "confirm", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/payment_intents/{intent}/increment_authorization" + "path": "/v1/payment_intents/{intent}/confirm" }, { - "method_name": "verify_microdeposits", + "method_name": "increment_authorization", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/payment_intents/{intent}/verify_microdeposits" + "path": "/v1/payment_intents/{intent}/increment_authorization" }, { - "method_name": "apply_customer_balance", + "method_name": "verify_microdeposits", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/payment_intents/{intent}/apply_customer_balance" + "path": "/v1/payment_intents/{intent}/verify_microdeposits" } ], "x-stripeResource": { @@ -27843,7 +28353,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "nullable": true, "type": "string", @@ -28011,6 +28522,9 @@ "financial_connections": { "$ref": "#/components/schemas/linked_account_options_us_bank_account" }, + "mandate_options": { + "$ref": "#/components/schemas/payment_method_options_us_bank_account_mandate_options" + }, "preferred_settlement_speed": { "description": "Preferred transaction settlement speed", "enum": [ @@ -28042,7 +28556,8 @@ "title": "payment_intent_payment_method_options_us_bank_account", "type": "object", "x-expandableFields": [ - "financial_connections" + "financial_connections", + "mandate_options" ] }, "payment_intent_processing": { @@ -28210,7 +28725,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" }, @@ -28461,6 +28976,7 @@ "custom_text", "customer_creation", "id", + "inactive_message", "invoice_creation", "livemode", "metadata", @@ -28470,6 +28986,7 @@ "payment_method_collection", "payment_method_types", "phone_number_collection", + "restrictions", "shipping_address_collection", "shipping_options", "submit_type", @@ -29828,10 +30345,10 @@ "x-resourceId": "payment_method", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/payment_methods" }, { @@ -29842,18 +30359,18 @@ "path": "/v1/payment_methods/{payment_method}" }, { - "method_name": "update", + "method_name": "create", "method_on": "service", - "method_type": "update", + "method_type": "create", "operation": "post", - "path": "/v1/payment_methods/{payment_method}" + "path": "/v1/payment_methods" }, { - "method_name": "list", + "method_name": "update", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/payment_methods" + "method_type": "update", + "operation": "post", + "path": "/v1/payment_methods/{payment_method}" }, { "method_name": "attach", @@ -30711,6 +31228,9 @@ "cashapp": { "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" }, + "customer_balance": { + "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" + }, "eps": { "$ref": "#/components/schemas/payment_method_config_resource_payment_method_properties" }, @@ -30829,6 +31349,7 @@ "card", "cartes_bancaires", "cashapp", + "customer_balance", "eps", "fpx", "giropay", @@ -30867,18 +31388,18 @@ "path": "/v1/payment_method_configurations/{configuration}" }, { - "method_name": "update", + "method_name": "create", "method_on": "service", - "method_type": "update", + "method_type": "create", "operation": "post", - "path": "/v1/payment_method_configurations/{configuration}" + "path": "/v1/payment_method_configurations" }, { - "method_name": "create", + "method_name": "update", "method_on": "service", - "method_type": "create", + "method_type": "update", "operation": "post", - "path": "/v1/payment_method_configurations" + "path": "/v1/payment_method_configurations/{configuration}" } ], "x-stripeResource": { @@ -32362,7 +32883,7 @@ "description": "", "properties": { "bank": { - "description": "The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.", + "description": "The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.", "enum": [ "abn_amro", "asn_bank", @@ -32372,6 +32893,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -32395,6 +32917,7 @@ "INGBNL2A", "KNABNL2H", "MOYONL21", + "NNBANL2G", "NTSBDEB1", "RABONL2U", "RBRBNL21", @@ -33345,18 +33868,18 @@ "x-resourceId": "payment_method_domain", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/payment_method_domains/{payment_method_domain}" + "path": "/v1/payment_method_domains" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/payment_method_domains" + "path": "/v1/payment_method_domains/{payment_method_domain}" }, { "method_name": "create", @@ -33539,7 +34062,7 @@ "description": "", "properties": { "bank": { - "description": "The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.", + "description": "The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.", "enum": [ "abn_amro", "asn_bank", @@ -33549,6 +34072,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -33572,6 +34096,7 @@ "INGBNL2A", "KNABNL2H", "MOYONL21", + "NNBANL2G", "NTSBDEB1", "RABONL2U", "RBRBNL21", @@ -34489,6 +35014,22 @@ "type": "object", "x-expandableFields": [] }, + "payment_method_options_us_bank_account_mandate_options": { + "description": "", + "properties": { + "collection_method": { + "description": "Mandate collection method", + "enum": [ + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, + "title": "payment_method_options_us_bank_account_mandate_options", + "type": "object", + "x-expandableFields": [] + }, "payment_method_options_wechat_pay": { "description": "", "properties": { @@ -34939,6 +35480,15 @@ "description": "Indicates whether automatic tax is enabled for the session", "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 session.", "enum": [ @@ -34952,11 +35502,14 @@ }, "required": [ "enabled", + "liability", "status" ], "title": "PaymentPagesCheckoutSessionAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "payment_pages_checkout_session_consent": { "description": "", @@ -35463,6 +36016,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, @@ -35487,6 +36049,7 @@ "custom_fields", "description", "footer", + "issuer", "metadata", "rendering_options" ], @@ -35495,6 +36058,7 @@ "x-expandableFields": [ "account_tax_ids", "custom_fields", + "issuer", "rendering_options" ] }, @@ -36370,18 +36934,18 @@ "x-resourceId": "payout", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/payouts/{payout}" + "path": "/v1/payouts" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/payouts" + "path": "/v1/payouts/{payout}" }, { "method_name": "create", @@ -36777,6 +37341,13 @@ ], "x-resourceId": "person", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/accounts/{account}/persons/{person}" + }, { "method_name": "list", "method_on": "collection", @@ -36825,13 +37396,6 @@ "method_type": "update", "operation": "post", "path": "/v1/accounts/{account}/persons/{person}" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/accounts/{account}/persons/{person}" } ], "x-stripeResource": { @@ -37307,17 +37871,17 @@ "x-resourceId": "plan", "x-stripeOperations": [ { - "method_name": "list", + "method_name": "delete", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/plans" + "method_type": "delete", + "operation": "delete", + "path": "/v1/plans/{plan}" }, { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/plans" }, { @@ -37328,17 +37892,17 @@ "path": "/v1/plans/{plan}" }, { - "method_name": "update", + "method_name": "create", "method_on": "service", - "method_type": "update", + "method_type": "create", "operation": "post", - "path": "/v1/plans/{plan}" + "path": "/v1/plans" }, { - "method_name": "delete", + "method_name": "update", "method_on": "service", - "method_type": "delete", - "operation": "delete", + "method_type": "update", + "operation": "post", "path": "/v1/plans/{plan}" } ], @@ -38317,18 +38881,25 @@ "x-resourceId": "price", "x-stripeOperations": [ { - "method_name": "search", + "method_name": "list", "method_on": "service", - "method_type": "custom", + "method_type": "list", "operation": "get", - "path": "/v1/prices/search" + "path": "/v1/prices" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/prices" + "path": "/v1/prices/{price}" + }, + { + "method_name": "search", + "method_on": "service", + "method_type": "custom", + "operation": "get", + "path": "/v1/prices/search" }, { "method_name": "create", @@ -38337,13 +38908,6 @@ "operation": "post", "path": "/v1/prices" }, - { - "method_name": "retrieve", - "method_on": "service", - "method_type": "retrieve", - "operation": "get", - "path": "/v1/prices/{price}" - }, { "method_name": "update", "method_on": "service", @@ -38626,17 +39190,17 @@ "x-resourceId": "product", "x-stripeOperations": [ { - "method_name": "search", + "method_name": "delete", "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/products/search" + "method_type": "delete", + "operation": "delete", + "path": "/v1/products/{id}" }, { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/products" }, { @@ -38647,24 +39211,24 @@ "path": "/v1/products/{id}" }, { - "method_name": "update", + "method_name": "search", "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/products/{id}" + "method_type": "custom", + "operation": "get", + "path": "/v1/products/search" }, { - "method_name": "list", + "method_name": "create", "method_on": "service", - "method_type": "list", - "operation": "get", + "method_type": "create", + "operation": "post", "path": "/v1/products" }, { - "method_name": "delete", + "method_name": "update", "method_on": "service", - "method_type": "delete", - "operation": "delete", + "method_type": "update", + "operation": "post", "path": "/v1/products/{id}" } ], @@ -38850,6 +39414,13 @@ ], "x-resourceId": "promotion_code", "x-stripeOperations": [ + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/promotion_codes" + }, { "method_name": "retrieve", "method_on": "service", @@ -38870,13 +39441,6 @@ "method_type": "update", "operation": "post", "path": "/v1/promotion_codes/{promotion_code}" - }, - { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/promotion_codes" } ], "x-stripeResource": { @@ -39410,6 +39974,13 @@ ], "x-resourceId": "quote", "x-stripeOperations": [ + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/quotes" + }, { "method_name": "retrieve", "method_on": "service", @@ -39418,32 +39989,32 @@ "path": "/v1/quotes/{quote}" }, { - "method_name": "create", + "method_name": "list_computed_upfront_line_items", "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/quotes" + "method_type": "custom", + "operation": "get", + "path": "/v1/quotes/{quote}/computed_upfront_line_items" }, { - "method_name": "update", + "method_name": "list_line_items", "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/quotes/{quote}" + "method_type": "custom", + "operation": "get", + "path": "/v1/quotes/{quote}/line_items" }, { - "method_name": "cancel", + "method_name": "create", "method_on": "service", - "method_type": "custom", + "method_type": "create", "operation": "post", - "path": "/v1/quotes/{quote}/cancel" + "path": "/v1/quotes" }, { - "method_name": "finalize_quote", + "method_name": "update", "method_on": "service", - "method_type": "custom", + "method_type": "update", "operation": "post", - "path": "/v1/quotes/{quote}/finalize" + "path": "/v1/quotes/{quote}" }, { "method_name": "accept", @@ -39453,25 +40024,18 @@ "path": "/v1/quotes/{quote}/accept" }, { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/quotes" - }, - { - "method_name": "list_line_items", + "method_name": "cancel", "method_on": "service", "method_type": "custom", - "operation": "get", - "path": "/v1/quotes/{quote}/line_items" + "operation": "post", + "path": "/v1/quotes/{quote}/cancel" }, { - "method_name": "list_computed_upfront_line_items", + "method_name": "finalize_quote", "method_on": "service", "method_type": "custom", - "operation": "get", - "path": "/v1/quotes/{quote}/computed_upfront_line_items" + "operation": "post", + "path": "/v1/quotes/{quote}/finalize" }, { "method_name": "pdf", @@ -40188,6 +40752,13 @@ ], "x-resourceId": "radar.value_list", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/radar/value_lists/{value_list}" + }, { "method_name": "list", "method_on": "service", @@ -40215,13 +40786,6 @@ "method_type": "update", "operation": "post", "path": "/v1/radar/value_lists/{value_list}" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/radar/value_lists/{value_list}" } ], "x-stripeResource": { @@ -40284,6 +40848,13 @@ "x-expandableFields": [], "x-resourceId": "radar.value_list_item", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/radar/value_list_items/{item}" + }, { "method_name": "list", "method_on": "service", @@ -40304,13 +40875,6 @@ "method_type": "create", "operation": "post", "path": "/v1/radar/value_list_items" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/radar/value_list_items/{item}" } ], "x-stripeResource": { @@ -40747,13 +41311,6 @@ "operation": "get", "path": "/v1/refunds" }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/refunds" - }, { "method_name": "retrieve", "method_on": "service", @@ -40761,6 +41318,13 @@ "operation": "get", "path": "/v1/refunds/{refund}" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/refunds" + }, { "method_name": "update", "method_on": "service", @@ -41137,6 +41701,13 @@ ], "x-resourceId": "reporting.report_run", "x-stripeOperations": [ + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/reporting/report_runs" + }, { "method_name": "retrieve", "method_on": "service", @@ -41150,13 +41721,6 @@ "method_type": "create", "operation": "post", "path": "/v1/reporting/report_runs" - }, - { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/reporting/report_runs" } ], "x-stripeResource": { @@ -41267,18 +41831,18 @@ "x-resourceId": "reporting.report_type", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/reporting/report_types/{report_type}" + "path": "/v1/reporting/report_types" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/reporting/report_types" + "path": "/v1/reporting/report_types/{report_type}" } ], "x-stripeResource": { @@ -41699,14 +42263,26 @@ "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": [ - "enabled" + "enabled", + "liability" ], "title": "SchedulesPhaseAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "secret_service_resource_scope": { "description": "", @@ -42435,7 +43011,7 @@ "description": "", "properties": { "bank": { - "description": "The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.", + "description": "The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.", "enum": [ "abn_amro", "asn_bank", @@ -42445,6 +43021,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -42468,6 +43045,7 @@ "INGBNL2A", "KNABNL2H", "MOYONL21", + "NNBANL2G", "NTSBDEB1", "RABONL2U", "RBRBNL21", @@ -43020,13 +43598,6 @@ ], "x-resourceId": "setup_intent", "x-stripeOperations": [ - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/setup_intents" - }, { "method_name": "list", "method_on": "service", @@ -43041,6 +43612,13 @@ "operation": "get", "path": "/v1/setup_intents/{intent}" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/setup_intents" + }, { "method_name": "update", "method_on": "service", @@ -43049,18 +43627,18 @@ "path": "/v1/setup_intents/{intent}" }, { - "method_name": "confirm", + "method_name": "cancel", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/setup_intents/{intent}/confirm" + "path": "/v1/setup_intents/{intent}/cancel" }, { - "method_name": "cancel", + "method_name": "confirm", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/setup_intents/{intent}/cancel" + "path": "/v1/setup_intents/{intent}/confirm" }, { "method_name": "verify_microdeposits", @@ -43351,7 +43929,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "nullable": true, "type": "string", @@ -43576,6 +44155,9 @@ "financial_connections": { "$ref": "#/components/schemas/linked_account_options_us_bank_account" }, + "mandate_options": { + "$ref": "#/components/schemas/payment_method_options_us_bank_account_mandate_options" + }, "verification_method": { "description": "Bank account verification method.", "enum": [ @@ -43590,7 +44172,8 @@ "title": "setup_intent_payment_method_options_us_bank_account", "type": "object", "x-expandableFields": [ - "financial_connections" + "financial_connections", + "mandate_options" ] }, "setup_intent_type_specific_payment_method_options_client": { @@ -44167,6 +44750,13 @@ "operation": "get", "path": "/v1/sources/{source}" }, + { + "method_name": "source_transactions", + "method_on": "service", + "method_type": "custom", + "operation": "get", + "path": "/v1/sources/{source}/source_transactions" + }, { "method_name": "create", "method_on": "service", @@ -44187,13 +44777,6 @@ "method_type": "custom", "operation": "post", "path": "/v1/sources/{source}/verify" - }, - { - "method_name": "source_transactions", - "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/sources/{source}/source_transactions" } ], "x-stripeResource": { @@ -45798,10 +46381,19 @@ "$ref": "#/components/schemas/subscription_automatic_tax" }, "billing_cycle_anchor": { - "description": "Determines the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.", + "description": "The reference point that aligns future [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.", "format": "unix-time", "type": "integer" }, + "billing_cycle_anchor_config": { + "anyOf": [ + { + "$ref": "#/components/schemas/subscriptions_resource_billing_cycle_anchor_config" + } + ], + "description": "The fixed values used to calculate the `billing_cycle_anchor`.", + "nullable": true + }, "billing_thresholds": { "anyOf": [ { @@ -46222,6 +46814,7 @@ "application_fee_percent", "automatic_tax", "billing_cycle_anchor", + "billing_cycle_anchor_config", "billing_thresholds", "cancel_at", "cancel_at_period_end", @@ -46266,6 +46859,7 @@ "x-expandableFields": [ "application", "automatic_tax", + "billing_cycle_anchor_config", "billing_thresholds", "cancellation_details", "customer", @@ -46289,33 +46883,26 @@ "x-resourceId": "subscription", "x-stripeOperations": [ { - "method_name": "search", + "method_name": "cancel", "method_on": "service", "method_type": "custom", - "operation": "get", - "path": "/v1/subscriptions/search" + "operation": "delete", + "path": "/v1/subscriptions/{subscription_exposed_id}" }, { - "method_name": "list", + "method_name": "delete_discount", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/subscriptions" + "method_type": "custom", + "operation": "delete", + "path": "/v1/subscriptions/{subscription_exposed_id}/discount" }, { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/subscriptions" }, - { - "method_name": "update", - "method_on": "service", - "method_type": "update", - "operation": "post", - "path": "/v1/subscriptions/{subscription_exposed_id}" - }, { "method_name": "retrieve", "method_on": "service", @@ -46324,11 +46911,18 @@ "path": "/v1/subscriptions/{subscription_exposed_id}" }, { - "method_name": "cancel", + "method_name": "search", "method_on": "service", "method_type": "custom", - "operation": "delete", - "path": "/v1/subscriptions/{subscription_exposed_id}" + "operation": "get", + "path": "/v1/subscriptions/search" + }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/subscriptions" }, { "method_name": "resume", @@ -46338,11 +46932,11 @@ "path": "/v1/subscriptions/{subscription}/resume" }, { - "method_name": "delete_discount", + "method_name": "update", "method_on": "service", - "method_type": "custom", - "operation": "delete", - "path": "/v1/subscriptions/{subscription_exposed_id}/discount" + "method_type": "update", + "operation": "post", + "path": "/v1/subscriptions/{subscription_exposed_id}" } ], "x-stripeResource": { @@ -46358,14 +46952,26 @@ "enabled": { "description": "Whether Stripe automatically computes tax on this subscription.", "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": [ - "enabled" + "enabled", + "liability" ], "title": "SubscriptionAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "subscription_billing_thresholds": { "description": "", @@ -46490,6 +47096,13 @@ ], "x-resourceId": "subscription_item", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/subscription_items/{item}" + }, { "method_name": "list", "method_on": "service", @@ -46504,6 +47117,13 @@ "operation": "get", "path": "/v1/subscription_items/{item}" }, + { + "method_name": "usage_record_summaries", + "method_on": "service", + "method_type": "custom", + "operation": "get", + "path": "/v1/subscription_items/{subscription_item}/usage_record_summaries" + }, { "method_name": "create", "method_on": "service", @@ -46517,20 +47137,6 @@ "method_type": "update", "operation": "post", "path": "/v1/subscription_items/{item}" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/subscription_items/{item}" - }, - { - "method_name": "usage_record_summaries", - "method_on": "service", - "method_type": "custom", - "operation": "get", - "path": "/v1/subscription_items/{subscription_item}/usage_record_summaries" } ], "x-stripeResource": { @@ -46583,7 +47189,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "nullable": true, "type": "string" @@ -46709,7 +47316,7 @@ "$ref": "#/components/schemas/subscription_schedules_resource_default_settings" }, "end_behavior": { - "description": "Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running.`cancel` will end the subscription schedule and cancel the underlying subscription.", + "description": "Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.", "enum": [ "cancel", "none", @@ -46854,13 +47461,6 @@ "operation": "get", "path": "/v1/subscription_schedules" }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/subscription_schedules" - }, { "method_name": "retrieve", "method_on": "service", @@ -46868,6 +47468,13 @@ "operation": "get", "path": "/v1/subscription_schedules/{schedule}" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/subscription_schedules" + }, { "method_name": "update", "method_on": "service", @@ -47470,13 +48077,7 @@ "type": "string" }, "invoice_settings": { - "anyOf": [ - { - "$ref": "#/components/schemas/invoice_setting_subscription_schedule_setting" - } - ], - "description": "The subscription schedule's default invoice settings.", - "nullable": true + "$ref": "#/components/schemas/invoice_setting_subscription_schedule_setting" }, "on_behalf_of": { "anyOf": [ @@ -47536,14 +48137,26 @@ "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": [ - "enabled" + "enabled", + "liability" ], "title": "SubscriptionSchedulesResourceDefaultSettingsAutomaticTax", "type": "object", - "x-expandableFields": [] + "x-expandableFields": [ + "liability" + ] }, "subscription_transfer_data": { "description": "", @@ -47583,6 +48196,45 @@ "destination" ] }, + "subscriptions_resource_billing_cycle_anchor_config": { + "description": "", + "properties": { + "day_of_month": { + "description": "The day of the month of the billing_cycle_anchor.", + "type": "integer" + }, + "hour": { + "description": "The hour of the day of the billing_cycle_anchor.", + "nullable": true, + "type": "integer" + }, + "minute": { + "description": "The minute of the hour of the billing_cycle_anchor.", + "nullable": true, + "type": "integer" + }, + "month": { + "description": "The month to start full cycle billing periods.", + "nullable": true, + "type": "integer" + }, + "second": { + "description": "The second of the minute of the billing_cycle_anchor.", + "nullable": true, + "type": "integer" + } + }, + "required": [ + "day_of_month", + "hour", + "minute", + "month", + "second" + ], + "title": "SubscriptionsResourceBillingCycleAnchorConfig", + "type": "object", + "x-expandableFields": [] + }, "subscriptions_resource_pause_collection": { "description": "The Pause Collection settings determine how we will pause collection for this subscription and for how long the subscription\nshould be paused.", "properties": { @@ -47713,12 +48365,14 @@ "card", "cashapp", "customer_balance", + "eps", "fpx", "giropay", "grabpay", "ideal", "konbini", "link", + "p24", "paynow", "paypal", "promptpay", @@ -47979,19 +48633,19 @@ ], "x-resourceId": "tax.calculation", "x-stripeOperations": [ - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/tax/calculations" - }, { "method_name": "list_line_items", "method_on": "service", "method_type": "custom", "operation": "get", "path": "/v1/tax/calculations/{calculation}/line_items" + }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/tax/calculations" } ], "x-stripeResource": { @@ -48167,6 +48821,13 @@ "operation": "get", "path": "/v1/tax/registrations" }, + { + "method_name": "retrieve", + "method_on": "service", + "method_type": "retrieve", + "operation": "get", + "path": "/v1/tax/registrations/{id}" + }, { "method_name": "create", "method_on": "service", @@ -48438,11 +49099,11 @@ "path": "/v1/tax/transactions/{transaction}" }, { - "method_name": "create_reversal", + "method_name": "list_line_items", "method_on": "service", "method_type": "custom", - "operation": "post", - "path": "/v1/tax/transactions/create_reversal" + "operation": "get", + "path": "/v1/tax/transactions/{transaction}/line_items" }, { "method_name": "create_from_calculation", @@ -48452,11 +49113,11 @@ "path": "/v1/tax/transactions/create_from_calculation" }, { - "method_name": "list_line_items", + "method_name": "create_reversal", "method_on": "service", "method_type": "custom", - "operation": "get", - "path": "/v1/tax/transactions/{transaction}/line_items" + "operation": "post", + "path": "/v1/tax/transactions/create_reversal" } ], "x-stripeResource": { @@ -48838,17 +49499,24 @@ "x-resourceId": "tax_id", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/customers/{customer}/tax_ids/{id}" + }, + { + "method_name": "list", "method_on": "collection", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/customers/{customer}/tax_ids" }, { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/customers/{customer}/tax_ids" }, { @@ -48866,25 +49534,18 @@ "path": "/v1/customers/{customer}/tax_ids/{id}" }, { - "method_name": "list", + "method_name": "create", "method_on": "collection", - "method_type": "list", - "operation": "get", + "method_type": "create", + "operation": "post", "path": "/v1/customers/{customer}/tax_ids" }, { - "method_name": "list", + "method_name": "create", "method_on": "service", - "method_type": "list", - "operation": "get", + "method_type": "create", + "operation": "post", "path": "/v1/customers/{customer}/tax_ids" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/customers/{customer}/tax_ids/{id}" } ], "x-stripeResource": { @@ -50237,11 +50898,11 @@ "x-resourceId": "terminal.configuration", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "delete", "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/terminal/configurations" + "method_type": "delete", + "operation": "delete", + "path": "/v1/terminal/configurations/{configuration}" }, { "method_name": "list", @@ -50258,17 +50919,17 @@ "path": "/v1/terminal/configurations/{configuration}" }, { - "method_name": "update", + "method_name": "create", "method_on": "service", - "method_type": "update", + "method_type": "create", "operation": "post", - "path": "/v1/terminal/configurations/{configuration}" + "path": "/v1/terminal/configurations" }, { - "method_name": "delete", + "method_name": "update", "method_on": "service", - "method_type": "delete", - "operation": "delete", + "method_type": "update", + "operation": "post", "path": "/v1/terminal/configurations/{configuration}" } ], @@ -50377,6 +51038,20 @@ ], "x-resourceId": "terminal.location", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/terminal/locations/{location}" + }, + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/terminal/locations" + }, { "method_name": "retrieve", "method_on": "service", @@ -50397,20 +51072,6 @@ "method_type": "update", "operation": "post", "path": "/v1/terminal/locations/{location}" - }, - { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/terminal/locations" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/terminal/locations/{location}" } ], "x-stripeResource": { @@ -50539,12 +51200,19 @@ "x-resourceId": "terminal.reader", "x-stripeOperations": [ { - "method_name": "update", + "method_name": "delete", "method_on": "service", - "method_type": "update", - "operation": "post", + "method_type": "delete", + "operation": "delete", "path": "/v1/terminal/readers/{reader}" }, + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/terminal/readers" + }, { "method_name": "retrieve", "method_on": "service", @@ -50560,18 +51228,18 @@ "path": "/v1/terminal/readers" }, { - "method_name": "list", + "method_name": "update", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/terminal/readers" + "method_type": "update", + "operation": "post", + "path": "/v1/terminal/readers/{reader}" }, { - "method_name": "delete", + "method_name": "cancel_action", "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/terminal/readers/{reader}" + "method_type": "custom", + "operation": "post", + "path": "/v1/terminal/readers/{reader}/cancel_action" }, { "method_name": "process_payment_intent", @@ -50588,11 +51256,11 @@ "path": "/v1/terminal/readers/{reader}/process_setup_intent" }, { - "method_name": "cancel_action", + "method_name": "refund_payment", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/terminal/readers/{reader}/cancel_action" + "path": "/v1/terminal/readers/{reader}/refund_payment" }, { "method_name": "set_reader_display", @@ -50601,13 +51269,6 @@ "operation": "post", "path": "/v1/terminal/readers/{reader}/set_reader_display" }, - { - "method_name": "refund_payment", - "method_on": "service", - "method_type": "custom", - "operation": "post", - "path": "/v1/terminal/readers/{reader}/refund_payment" - }, { "method_name": "present_payment_method", "method_on": "service", @@ -51223,6 +51884,20 @@ "x-expandableFields": [], "x-resourceId": "test_helpers.test_clock", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/test_helpers/test_clocks/{test_clock}" + }, + { + "method_name": "list", + "method_on": "service", + "method_type": "list", + "operation": "get", + "path": "/v1/test_helpers/test_clocks" + }, { "method_name": "retrieve", "method_on": "service", @@ -51237,26 +51912,12 @@ "operation": "post", "path": "/v1/test_helpers/test_clocks" }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/test_helpers/test_clocks/{test_clock}" - }, { "method_name": "advance", "method_on": "service", "method_type": "custom", "operation": "post", "path": "/v1/test_helpers/test_clocks/{test_clock}/advance" - }, - { - "method_name": "list", - "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/test_helpers/test_clocks" } ], "x-stripeResource": { @@ -51764,13 +52425,6 @@ ], "x-resourceId": "topup", "x-stripeOperations": [ - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/topups" - }, { "method_name": "list", "method_on": "service", @@ -51785,6 +52439,13 @@ "operation": "get", "path": "/v1/topups/{topup}" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/topups" + }, { "method_name": "update", "method_on": "service", @@ -52101,13 +52762,6 @@ ], "x-resourceId": "transfer", "x-stripeOperations": [ - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/transfers" - }, { "method_name": "list", "method_on": "service", @@ -52122,6 +52776,13 @@ "operation": "get", "path": "/v1/transfers/{transfer}" }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/transfers" + }, { "method_name": "update", "method_on": "service", @@ -52362,20 +53023,6 @@ ], "x-resourceId": "transfer_reversal", "x-stripeOperations": [ - { - "method_name": "create", - "method_on": "collection", - "method_type": "create", - "operation": "post", - "path": "/v1/transfers/{id}/reversals" - }, - { - "method_name": "create", - "method_on": "service", - "method_type": "create", - "operation": "post", - "path": "/v1/transfers/{id}/reversals" - }, { "method_name": "list", "method_on": "collection", @@ -52404,6 +53051,20 @@ "operation": "get", "path": "/v1/transfers/{transfer}/reversals/{id}" }, + { + "method_name": "create", + "method_on": "collection", + "method_type": "create", + "operation": "post", + "path": "/v1/transfers/{id}/reversals" + }, + { + "method_name": "create", + "method_on": "service", + "method_type": "create", + "operation": "post", + "path": "/v1/transfers/{id}/reversals" + }, { "method_name": "update", "method_on": "service", @@ -52814,10 +53475,10 @@ "x-resourceId": "treasury.debit_reversal", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/treasury/debit_reversals" }, { @@ -52828,10 +53489,10 @@ "path": "/v1/treasury/debit_reversals/{debit_reversal}" }, { - "method_name": "list", + "method_name": "create", "method_on": "service", - "method_type": "list", - "operation": "get", + "method_type": "create", + "operation": "post", "path": "/v1/treasury/debit_reversals" } ], @@ -53054,45 +53715,45 @@ "x-resourceId": "treasury.financial_account", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/treasury/financial_accounts" }, { - "method_name": "update", + "method_name": "retrieve", "method_on": "service", - "method_type": "update", - "operation": "post", + "method_type": "retrieve", + "operation": "get", "path": "/v1/treasury/financial_accounts/{financial_account}" }, { - "method_name": "update_features", + "method_name": "retrieve_features", "method_on": "service", "method_type": "custom", - "operation": "post", + "operation": "get", "path": "/v1/treasury/financial_accounts/{financial_account}/features" }, { - "method_name": "list", + "method_name": "create", "method_on": "service", - "method_type": "list", - "operation": "get", + "method_type": "create", + "operation": "post", "path": "/v1/treasury/financial_accounts" }, { - "method_name": "retrieve", + "method_name": "update", "method_on": "service", - "method_type": "retrieve", - "operation": "get", + "method_type": "update", + "operation": "post", "path": "/v1/treasury/financial_accounts/{financial_account}" }, { - "method_name": "retrieve_features", + "method_name": "update_features", "method_on": "service", "method_type": "custom", - "operation": "get", + "operation": "post", "path": "/v1/treasury/financial_accounts/{financial_account}/features" } ], @@ -53367,17 +54028,10 @@ "x-resourceId": "treasury.inbound_transfer", "x-stripeOperations": [ { - "method_name": "cancel", - "method_on": "service", - "method_type": "custom", - "operation": "post", - "path": "/v1/treasury/inbound_transfers/{inbound_transfer}/cancel" - }, - { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/treasury/inbound_transfers" }, { @@ -53388,11 +54042,18 @@ "path": "/v1/treasury/inbound_transfers/{id}" }, { - "method_name": "list", + "method_name": "fail", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/treasury/inbound_transfers" + "method_type": "custom", + "operation": "post", + "path": "/v1/test_helpers/treasury/inbound_transfers/{id}/fail" + }, + { + "method_name": "return_inbound_transfer", + "method_on": "service", + "method_type": "custom", + "operation": "post", + "path": "/v1/test_helpers/treasury/inbound_transfers/{id}/return" }, { "method_name": "succeed", @@ -53402,18 +54063,18 @@ "path": "/v1/test_helpers/treasury/inbound_transfers/{id}/succeed" }, { - "method_name": "fail", + "method_name": "create", "method_on": "service", - "method_type": "custom", + "method_type": "create", "operation": "post", - "path": "/v1/test_helpers/treasury/inbound_transfers/{id}/fail" + "path": "/v1/treasury/inbound_transfers" }, { - "method_name": "return_inbound_transfer", + "method_name": "cancel", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/treasury/inbound_transfers/{id}/return" + "path": "/v1/treasury/inbound_transfers/{inbound_transfer}/cancel" } ], "x-stripeResource": { @@ -53665,10 +54326,10 @@ "x-resourceId": "treasury.outbound_payment", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/treasury/outbound_payments" }, { @@ -53679,39 +54340,39 @@ "path": "/v1/treasury/outbound_payments/{id}" }, { - "method_name": "list", + "method_name": "fail", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/treasury/outbound_payments" + "method_type": "custom", + "operation": "post", + "path": "/v1/test_helpers/treasury/outbound_payments/{id}/fail" }, { - "method_name": "cancel", + "method_name": "post", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/treasury/outbound_payments/{id}/cancel" + "path": "/v1/test_helpers/treasury/outbound_payments/{id}/post" }, { - "method_name": "fail", + "method_name": "return_outbound_payment", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/treasury/outbound_payments/{id}/fail" + "path": "/v1/test_helpers/treasury/outbound_payments/{id}/return" }, { - "method_name": "post", + "method_name": "create", "method_on": "service", - "method_type": "custom", + "method_type": "create", "operation": "post", - "path": "/v1/test_helpers/treasury/outbound_payments/{id}/post" + "path": "/v1/treasury/outbound_payments" }, { - "method_name": "return_outbound_payment", + "method_name": "cancel", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/treasury/outbound_payments/{id}/return" + "path": "/v1/treasury/outbound_payments/{id}/cancel" } ], "x-stripeResource": { @@ -53971,10 +54632,10 @@ "x-resourceId": "treasury.outbound_transfer", "x-stripeOperations": [ { - "method_name": "create", + "method_name": "list", "method_on": "service", - "method_type": "create", - "operation": "post", + "method_type": "list", + "operation": "get", "path": "/v1/treasury/outbound_transfers" }, { @@ -53985,39 +54646,39 @@ "path": "/v1/treasury/outbound_transfers/{outbound_transfer}" }, { - "method_name": "list", + "method_name": "fail", "method_on": "service", - "method_type": "list", - "operation": "get", - "path": "/v1/treasury/outbound_transfers" + "method_type": "custom", + "operation": "post", + "path": "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail" }, { - "method_name": "cancel", + "method_name": "post", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/treasury/outbound_transfers/{outbound_transfer}/cancel" + "path": "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post" }, { - "method_name": "fail", + "method_name": "return_outbound_transfer", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail" + "path": "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return" }, { - "method_name": "post", + "method_name": "create", "method_on": "service", - "method_type": "custom", + "method_type": "create", "operation": "post", - "path": "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post" + "path": "/v1/treasury/outbound_transfers" }, { - "method_name": "return_outbound_transfer", + "method_name": "cancel", "method_on": "service", "method_type": "custom", "operation": "post", - "path": "/v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return" + "path": "/v1/treasury/outbound_transfers/{outbound_transfer}/cancel" } ], "x-stripeResource": { @@ -54685,18 +55346,18 @@ "x-resourceId": "treasury.transaction", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/treasury/transactions/{id}" + "path": "/v1/treasury/transactions" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/treasury/transactions" + "path": "/v1/treasury/transactions/{id}" } ], "x-stripeResource": { @@ -54847,18 +55508,18 @@ "x-resourceId": "treasury.transaction_entry", "x-stripeOperations": [ { - "method_name": "retrieve", + "method_name": "list", "method_on": "service", - "method_type": "retrieve", + "method_type": "list", "operation": "get", - "path": "/v1/treasury/transaction_entries/{id}" + "path": "/v1/treasury/transaction_entries" }, { - "method_name": "list", + "method_name": "retrieve", "method_on": "service", - "method_type": "list", + "method_type": "retrieve", "operation": "get", - "path": "/v1/treasury/transaction_entries" + "path": "/v1/treasury/transaction_entries/{id}" } ], "x-stripeResource": { @@ -56341,6 +57002,13 @@ "x-expandableFields": [], "x-resourceId": "webhook_endpoint", "x-stripeOperations": [ + { + "method_name": "delete", + "method_on": "service", + "method_type": "delete", + "operation": "delete", + "path": "/v1/webhook_endpoints/{webhook_endpoint}" + }, { "method_name": "list", "method_on": "service", @@ -56368,13 +57036,6 @@ "method_type": "update", "operation": "post", "path": "/v1/webhook_endpoints/{webhook_endpoint}" - }, - { - "method_name": "delete", - "method_on": "service", - "method_type": "delete", - "operation": "delete", - "path": "/v1/webhook_endpoints/{webhook_endpoint}" } ], "x-stripeResource": { @@ -56478,6 +57139,10 @@ "content": { "application/x-www-form-urlencoded": { "encoding": { + "collection_options": { + "explode": true, + "style": "deepObject" + }, "expand": { "explode": true, "style": "deepObject" @@ -56492,13 +57157,39 @@ "type": "string" }, "collect": { - "description": "Which information the platform needs to collect from the user. One of `currently_due` or `eventually_due`. Default is `currently_due`.", + "description": "The collect parameter is deprecated. Use `collection_options` instead.", "enum": [ "currently_due", "eventually_due" ], "type": "string" }, + "collection_options": { + "description": "Specifies the requirements that Stripe collects from connected accounts in the Connect Onboarding flow.", + "properties": { + "fields": { + "description": "Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify `collection_options`, the default value is `currently_due`.", + "enum": [ + "currently_due", + "eventually_due" + ], + "type": "string" + }, + "future_requirements": { + "description": "Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`.", + "enum": [ + "include", + "omit" + ], + "type": "string" + } + }, + "required": [ + "fields" + ], + "title": "collection_options_params", + "type": "object" + }, "expand": { "description": "Specifies which fields in the response should be expanded.", "items": { @@ -56966,6 +57657,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, @@ -57069,7 +57789,7 @@ "type": "object" }, "business_type": { - "description": "The business type.", + "description": "The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "enum": [ "company", "government_entity", @@ -57494,7 +58214,7 @@ "type": "object" }, "company": { - "description": "Information about the company or business. This field is available for any `business_type`.", + "description": "Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "properties": { "address": { "description": "The company's primary address.", @@ -57686,7 +58406,7 @@ "type": "string" }, "structure": { - "description": "The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.", + "description": "The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.", "enum": [ "", "free_zone_establishment", @@ -57704,6 +58424,7 @@ "public_company", "public_corporation", "public_partnership", + "registered_charity", "single_member_llc", "sole_establishment", "sole_proprietorship", @@ -57892,13 +58613,13 @@ "type": "array" }, "external_account": { - "description": "A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.

By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.", + "description": "A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.

By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.

Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "maxLength": 5000, "type": "string", "x-stripeBypassValidation": true }, "individual": { - "description": "Information about the person represented by the account. This field is null unless `business_type` is set to `individual`.", + "description": "Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "properties": { "address": { "description": "The individual's primary address.", @@ -58528,7 +59249,7 @@ "type": "object" }, "tos_acceptance": { - "description": "Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).", + "description": "Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance) This property can only be updated for Custom accounts.", "properties": { "date": { "description": "The Unix timestamp marking when the account representative accepted their service agreement.", @@ -58712,7 +59433,7 @@ } }, "post": { - "description": "

Updates a connected account by setting the values of the parameters passed. Any parameters not provided are\nleft unchanged.

\n\n

For Custom accounts, you can update any information on the account. For other accounts, you can update all information until that\naccount has started to go through Connect Onboarding. Once you create an Account Link\nfor a Standard or Express account, some parameters can no longer be changed. These are marked as Custom Only or Custom and Express\nbelow.

\n\n

To update your own account, use the Dashboard. Refer to our\nConnect documentation to learn more about updating accounts.

", + "description": "

Updates a connected account by setting the values of the parameters passed. Any parameters not provided are\nleft unchanged.

\n\n

For Custom accounts, you can update any information on the account. For other accounts, you can update all information until that\naccount has started to go through Connect Onboarding. Once you create an Account Link or Account Session,\nsome properties can only be changed or updated for Custom accounts.

\n\n

To update your own account, use the Dashboard. Refer to our\nConnect documentation to learn more about updating accounts.

", "operationId": "PostAccountsAccount", "parameters": [ { @@ -58778,6 +59499,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, @@ -58881,7 +59631,7 @@ "type": "object" }, "business_type": { - "description": "The business type.", + "description": "The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "enum": [ "company", "government_entity", @@ -59306,7 +60056,7 @@ "type": "object" }, "company": { - "description": "Information about the company or business. This field is available for any `business_type`.", + "description": "Information about the company or business. This field is available for any `business_type`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "properties": { "address": { "description": "The company's primary address.", @@ -59498,7 +60248,7 @@ "type": "string" }, "structure": { - "description": "The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.", + "description": "The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.", "enum": [ "", "free_zone_establishment", @@ -59516,6 +60266,7 @@ "public_company", "public_corporation", "public_partnership", + "registered_charity", "single_member_llc", "sole_establishment", "sole_proprietorship", @@ -59699,13 +60450,13 @@ "type": "array" }, "external_account": { - "description": "A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.

By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.", + "description": "A card or bank account to attach to the account for receiving [payouts](https://stripe.com/docs/connect/bank-debit-card-payouts) (you won’t be able to use it for top-ups). You can provide either a token, like the ones returned by [Stripe.js](https://stripe.com/docs/js), or a dictionary, as documented in the `external_account` parameter for [bank account](https://stripe.com/docs/api#account_create_bank_account) creation.

By default, providing an external account sets it as the new default external account for its currency, and deletes the old default if one exists. To add additional external accounts without replacing the existing default for the currency, use the [bank account](https://stripe.com/docs/api#account_create_bank_account) or [card creation](https://stripe.com/docs/api#account_create_card) APIs.

Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "maxLength": 5000, "type": "string", "x-stripeBypassValidation": true }, "individual": { - "description": "Information about the person represented by the account. This field is null unless `business_type` is set to `individual`.", + "description": "Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property can only be updated for Custom accounts.", "properties": { "address": { "description": "The individual's primary address.", @@ -60335,7 +61086,7 @@ "type": "object" }, "tos_acceptance": { - "description": "Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance).", + "description": "Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/docs/connect/updating-accounts#tos-acceptance) This property can only be updated for Custom accounts.", "properties": { "date": { "description": "The Unix timestamp marking when the account representative accepted their service agreement.", @@ -64492,7 +65243,7 @@ "style": "form" }, { - "description": "Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_inbound`, `obligation_outbound`, `obligation_reversal_inbound`, `obligation_reversal_outbound`, `obligation_payout`, `obligation_payout_failure`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.", + "description": "Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.", "in": "query", "name": "type", "required": false, @@ -66173,7 +66924,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": { @@ -67528,6 +68279,28 @@ "enabled": { "description": "Set to true to enable automatic taxes.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -67600,7 +68373,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": { @@ -67982,6 +68755,28 @@ "maxLength": 5000, "type": "string" }, + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + }, "metadata": { "additionalProperties": { "type": "string" @@ -68130,7 +68925,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -69045,7 +69840,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -69181,6 +69977,7 @@ }, "return_url": { "description": "The URL to redirect your customer back to after they authenticate or cancel their payment on the\npayment method's app or site. This parameter is required if ui_mode is `embedded`\nand redirect-based payment methods are enabled on the session.", + "maxLength": 5000, "type": "string" }, "setup_intent_data": { @@ -69624,7 +70421,7 @@ "type": "array" }, "submit_type": { - "description": "Describes the type of transaction being performed by Checkout in order to customize\nrelevant text on the page, such as the submit button. `submit_type` can only be\nspecified on Checkout Sessions in `payment` mode, but not Checkout Sessions\nin `subscription` or `setup` mode.", + "description": "Describes the type of transaction being performed by Checkout in order to customize\nrelevant text on the page, such as the submit button. `submit_type` can only be\nspecified on Checkout Sessions in `payment` mode, but not Checkout Sessions\nin `subscription` or `setup` mode. Possible values are `auto`, `pay`, `book`, `donate`. If blank or `auto`, `pay` is used.", "enum": [ "auto", "book", @@ -69658,6 +70455,35 @@ "maxLength": 500, "type": "string" }, + "invoice_settings": { + "description": "All invoices will be billed using the specified settings.", + "properties": { + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + } + }, + "title": "invoice_settings_params", + "type": "object" + }, "metadata": { "additionalProperties": { "type": "string" @@ -73091,6 +73917,109 @@ } } }, + "/v1/customer_sessions": { + "post": { + "description": "

Creates a customer session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.

", + "operationId": "PostCustomerSessions", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": { + "components": { + "explode": true, + "style": "deepObject" + }, + "expand": { + "explode": true, + "style": "deepObject" + } + }, + "schema": { + "additionalProperties": false, + "properties": { + "components": { + "description": "Configuration for each component. Exactly 1 component must be enabled.", + "properties": { + "buy_button": { + "description": "Configuration for buy button.", + "properties": { + "enabled": { + "description": "Whether the buy button is enabled.", + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "buy_button_param", + "type": "object" + }, + "pricing_table": { + "description": "Configuration for the pricing table.", + "properties": { + "enabled": { + "description": "Whether the pricing table is enabled.", + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "pricing_table_param", + "type": "object" + } + }, + "title": "components", + "type": "object" + }, + "customer": { + "description": "The ID of an existing customer for which to create the customer session.", + "maxLength": 5000, + "type": "string" + }, + "expand": { + "description": "Specifies which fields in the response should be expanded.", + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + } + }, + "required": [ + "components", + "customer" + ], + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/customer_session" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, "/v1/customers": { "get": { "description": "

Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.

", @@ -73457,7 +74386,7 @@ "type": "string" } ], - "description": "Default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields." + "description": "The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields." }, "default_payment_method": { "description": "ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.", @@ -74244,7 +75173,7 @@ "type": "string" } ], - "description": "Default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields." + "description": "The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields." }, "default_payment_method": { "description": "ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.", @@ -79299,7 +80228,178 @@ "items": { "enum": [ "balance", - "ownership" + "ownership", + "transactions" + ], + "type": "string", + "x-stripeBypassValidation": true + }, + "type": "array" + } + }, + "required": [ + "features" + ], + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/financial_connections.account" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, + "/v1/financial_connections/accounts/{account}/subscribe": { + "post": { + "description": "

Subscribes to periodic refreshes of data associated with a Financial Connections Account.

", + "operationId": "PostFinancialConnectionsAccountsAccountSubscribe", + "parameters": [ + { + "in": "path", + "name": "account", + "required": true, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "simple" + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": { + "expand": { + "explode": true, + "style": "deepObject" + }, + "features": { + "explode": true, + "style": "deepObject" + } + }, + "schema": { + "additionalProperties": false, + "properties": { + "expand": { + "description": "Specifies which fields in the response should be expanded.", + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "features": { + "description": "The list of account features to which you would like to subscribe.`.", + "items": { + "enum": [ + "transactions" + ], + "type": "string", + "x-stripeBypassValidation": true + }, + "type": "array" + } + }, + "required": [ + "features" + ], + "type": "object" + } + } + }, + "required": true + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/financial_connections.account" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, + "/v1/financial_connections/accounts/{account}/unsubscribe": { + "post": { + "description": "

Unsubscribes from periodic refreshes of data associated with a Financial Connections Account.

", + "operationId": "PostFinancialConnectionsAccountsAccountUnsubscribe", + "parameters": [ + { + "in": "path", + "name": "account", + "required": true, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "simple" + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": { + "expand": { + "explode": true, + "style": "deepObject" + }, + "features": { + "explode": true, + "style": "deepObject" + } + }, + "schema": { + "additionalProperties": false, + "properties": { + "expand": { + "description": "Specifies which fields in the response should be expanded.", + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "features": { + "description": "The list of account features from which you would like to unsubscribe.", + "items": { + "enum": [ + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -79446,7 +80546,8 @@ "items": { "enum": [ "balances", - "ownership" + "ownership", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -79561,6 +80662,271 @@ } } }, + "/v1/financial_connections/transactions": { + "get": { + "description": "

Returns a list of Financial Connections Transaction objects.

", + "operationId": "GetFinancialConnectionsTransactions", + "parameters": [ + { + "description": "The ID of the Stripe account whose transactions will be retrieved.", + "in": "query", + "name": "account", + "required": true, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "form" + }, + { + "description": "A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.", + "in": "query", + "name": "ending_before", + "required": false, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "form" + }, + { + "description": "Specifies which fields in the response should be expanded.", + "explode": true, + "in": "query", + "name": "expand", + "required": false, + "schema": { + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "style": "deepObject" + }, + { + "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", + "in": "query", + "name": "limit", + "required": false, + "schema": { + "type": "integer" + }, + "style": "form" + }, + { + "description": "A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.", + "in": "query", + "name": "starting_after", + "required": false, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "form" + }, + { + "description": "A filter on the list based on the object `transacted_at` field. The value can be a string with an integer Unix timestamp, or it can be a dictionary with the following options:", + "explode": true, + "in": "query", + "name": "transacted_at", + "required": false, + "schema": { + "anyOf": [ + { + "properties": { + "gt": { + "description": "Minimum value to filter by (exclusive)", + "type": "integer" + }, + "gte": { + "description": "Minimum value to filter by (inclusive)", + "type": "integer" + }, + "lt": { + "description": "Maximum value to filter by (exclusive)", + "type": "integer" + }, + "lte": { + "description": "Maximum value to filter by (inclusive)", + "type": "integer" + } + }, + "title": "range_query_specs", + "type": "object" + }, + { + "type": "integer" + } + ] + }, + "style": "deepObject" + }, + { + "description": "A filter on the list based on the object `transaction_refresh` field. The value can be a dictionary with the following options:", + "explode": true, + "in": "query", + "name": "transaction_refresh", + "required": false, + "schema": { + "properties": { + "after": { + "description": "Return results where the transactions were created or updated by a refresh that took place after this refresh (non-inclusive).", + "maxLength": 5000, + "type": "string" + } + }, + "required": [ + "after" + ], + "title": "transaction_refresh_params", + "type": "object" + }, + "style": "deepObject" + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": {}, + "schema": { + "additionalProperties": false, + "properties": {}, + "type": "object" + } + } + }, + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "description": "", + "properties": { + "data": { + "description": "Details about each object.", + "items": { + "$ref": "#/components/schemas/financial_connections.transaction" + }, + "type": "array" + }, + "has_more": { + "description": "True if this list has another page of items after this one that can be fetched.", + "type": "boolean" + }, + "object": { + "description": "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.", + "enum": [ + "list" + ], + "type": "string" + }, + "url": { + "description": "The URL where this list can be accessed.", + "maxLength": 5000, + "pattern": "^/v1/financial_connections/transactions", + "type": "string" + } + }, + "required": [ + "data", + "has_more", + "object", + "url" + ], + "title": "BankConnectionsResourceTransactionList", + "type": "object", + "x-expandableFields": [ + "data" + ] + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, + "/v1/financial_connections/transactions/{transaction}": { + "get": { + "description": "

Retrieves the details of a Financial Connections Transaction

", + "operationId": "GetFinancialConnectionsTransactionsTransaction", + "parameters": [ + { + "description": "Specifies which fields in the response should be expanded.", + "explode": true, + "in": "query", + "name": "expand", + "required": false, + "schema": { + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "style": "deepObject" + }, + { + "in": "path", + "name": "transaction", + "required": true, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "simple" + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": {}, + "schema": { + "additionalProperties": false, + "properties": {}, + "type": "object" + } + } + }, + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/financial_connections.transaction" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, "/v1/identity/verification_reports": { "get": { "description": "

List all verification reports.

", @@ -81599,6 +82965,10 @@ "explode": true, "style": "deepObject" }, + "issuer": { + "explode": true, + "style": "deepObject" + }, "metadata": { "explode": true, "style": "deepObject" @@ -81663,6 +83033,28 @@ "enabled": { "description": "Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -81826,6 +83218,28 @@ "title": "from_invoice", "type": "object" }, + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + }, "metadata": { "anyOf": [ { @@ -81996,7 +83410,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string" } @@ -82102,7 +83517,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -82155,12 +83571,14 @@ "card", "cashapp", "customer_balance", + "eps", "fpx", "giropay", "grabpay", "ideal", "konbini", "link", + "p24", "paynow", "paypal", "promptpay", @@ -82689,6 +84107,28 @@ "enabled": { "description": "Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -83003,6 +84443,11 @@ "description": "ID of an existing discount on the object (or one of its ancestors) to reuse.", "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -83075,6 +84520,11 @@ "description": "ID of an existing discount on the object (or one of its ancestors) to reuse.", "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -83239,6 +84689,56 @@ }, "style": "deepObject" }, + { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "explode": true, + "in": "query", + "name": "issuer", + "required": false, + "schema": { + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + }, + "style": "deepObject" + }, + { + "description": "The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.", + "explode": true, + "in": "query", + "name": "on_behalf_of", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, + "style": "deepObject" + }, { "description": "The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.", "in": "query", @@ -83451,7 +84951,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -83656,6 +85156,28 @@ "enabled": { "description": "Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -83970,6 +85492,11 @@ "description": "ID of an existing discount on the object (or one of its ancestors) to reuse.", "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -84053,6 +85580,11 @@ "description": "ID of an existing discount on the object (or one of its ancestors) to reuse.", "maxLength": 5000, "type": "string" + }, + "promotion_code": { + "description": "ID of the promotion code to create a new discount for.", + "maxLength": 5000, + "type": "string" } }, "title": "discounts_data_param", @@ -84217,6 +85749,35 @@ }, "style": "deepObject" }, + { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "explode": true, + "in": "query", + "name": "issuer", + "required": false, + "schema": { + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + }, + "style": "deepObject" + }, { "description": "A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.", "in": "query", @@ -84227,6 +85788,27 @@ }, "style": "form" }, + { + "description": "The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://stripe.com/docs/billing/invoices/connect) documentation for details.", + "explode": true, + "in": "query", + "name": "on_behalf_of", + "required": false, + "schema": { + "anyOf": [ + { + "type": "string" + }, + { + "enum": [ + "" + ], + "type": "string" + } + ] + }, + "style": "deepObject" + }, { "description": "The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.", "in": "query", @@ -84450,7 +86032,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -84844,6 +86426,10 @@ "explode": true, "style": "deepObject" }, + "issuer": { + "explode": true, + "style": "deepObject" + }, "metadata": { "explode": true, "style": "deepObject" @@ -84912,6 +86498,28 @@ "enabled": { "description": "Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -85072,6 +86680,28 @@ "maxLength": 5000, "type": "string" }, + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + }, "metadata": { "anyOf": [ { @@ -85252,7 +86882,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string" } @@ -85358,7 +86989,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -85411,12 +87043,14 @@ "card", "cashapp", "customer_balance", + "eps", "fpx", "giropay", "grabpay", "ideal", "konbini", "link", + "p24", "paynow", "paypal", "promptpay", @@ -87581,7 +89215,7 @@ "description": "Information related to the card_issuing program for this cardholder.", "properties": { "user_terms_acceptance": { - "description": "Information about cardholder acceptance of [Authorized User Terms](https://stripe.com/docs/issuing/cards).", + "description": "Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.", "properties": { "date": { "description": "The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.", @@ -88914,7 +90548,7 @@ "description": "Information related to the card_issuing program for this cardholder.", "properties": { "user_terms_acceptance": { - "description": "Information about cardholder acceptance of [Authorized User Terms](https://stripe.com/docs/issuing/cards).", + "description": "Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program.", "properties": { "date": { "description": "The Unix timestamp marking when the cardholder accepted the Authorized User Terms. Required for Celtic Spend Card users.", @@ -90277,6 +91911,10 @@ "explode": true, "style": "deepObject" }, + "pin": { + "explode": true, + "style": "deepObject" + }, "shipping": { "explode": true, "style": "deepObject" @@ -90316,6 +91954,18 @@ "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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.", "type": "object" }, + "pin": { + "description": "The desired PIN for this card.", + "properties": { + "encrypted_number": { + "description": "The card's desired new PIN, encrypted under Stripe's public key.", + "maxLength": 5000, + "type": "string" + } + }, + "title": "encrypted_pin_param", + "type": "object" + }, "replacement_for": { "description": "The card this is meant to be a replacement for (if any).", "maxLength": 5000, @@ -95943,6 +97593,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -96294,7 +97945,7 @@ "type": "string" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -96758,7 +98409,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string", "x-stripeBypassValidation": true @@ -97646,7 +99298,7 @@ "type": "string" } ], - "description": "If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options." + "description": "If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options." }, "sepa_debit": { "anyOf": [ @@ -97747,7 +99399,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -97763,6 +99416,22 @@ "title": "linked_account_options_param", "type": "object" }, + "mandate_options": { + "description": "Additional fields for Mandate creation", + "properties": { + "collection_method": { + "description": "The method used to collect offline mandate customer acceptance.", + "enum": [ + "", + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, + "title": "mandate_options_param", + "type": "object" + }, "networks": { "description": "Additional fields for network related functions", "properties": { @@ -97801,7 +99470,7 @@ "type": "string" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -98754,6 +100423,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -99105,7 +100775,7 @@ "type": "string" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -99569,7 +101239,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string", "x-stripeBypassValidation": true @@ -100457,7 +102128,7 @@ "type": "string" } ], - "description": "If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options." + "description": "If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options." }, "sepa_debit": { "anyOf": [ @@ -100558,7 +102229,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -100574,6 +102246,22 @@ "title": "linked_account_options_param", "type": "object" }, + "mandate_options": { + "description": "Additional fields for Mandate creation", + "properties": { + "collection_method": { + "description": "The method used to collect offline mandate customer acceptance.", + "enum": [ + "", + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, + "title": "mandate_options_param", + "type": "object" + }, "networks": { "description": "Additional fields for network related functions", "properties": { @@ -100612,7 +102300,7 @@ "type": "string" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -101708,6 +103396,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -102059,7 +103748,7 @@ "type": "string" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -102523,7 +104212,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string", "x-stripeBypassValidation": true @@ -103411,7 +105101,7 @@ "type": "string" } ], - "description": "If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Demo Pay payment method options." + "description": "If this is a `revolut_pay` PaymentMethod, this sub-hash contains details about the Revolut Pay payment method options." }, "sepa_debit": { "anyOf": [ @@ -103512,7 +105202,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -103528,6 +105219,22 @@ "title": "linked_account_options_param", "type": "object" }, + "mandate_options": { + "description": "Additional fields for Mandate creation", + "properties": { + "collection_method": { + "description": "The method used to collect offline mandate customer acceptance.", + "enum": [ + "", + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, + "title": "mandate_options_param", + "type": "object" + }, "networks": { "description": "Additional fields for network related functions", "properties": { @@ -103566,7 +105273,7 @@ "type": "string" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -104350,7 +106057,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": { @@ -105662,7 +107369,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.", @@ -106826,6 +108533,10 @@ "explode": true, "style": "deepObject" }, + "customer_balance": { + "explode": true, + "style": "deepObject" + }, "eps": { "explode": true, "style": "deepObject" @@ -107236,6 +108947,29 @@ "title": "payment_method_param", "type": "object" }, + "customer_balance": { + "description": "Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.", + "properties": { + "display_preference": { + "description": "Whether or not the payment method should be displayed.", + "properties": { + "preference": { + "description": "The account's preference for whether or not to display this payment method.", + "enum": [ + "none", + "off", + "on" + ], + "type": "string" + } + }, + "title": "display_preference_param", + "type": "object" + } + }, + "title": "payment_method_param", + "type": "object" + }, "eps": { "description": "EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details.", "properties": { @@ -107887,6 +109621,10 @@ "explode": true, "style": "deepObject" }, + "customer_balance": { + "explode": true, + "style": "deepObject" + }, "eps": { "explode": true, "style": "deepObject" @@ -108301,6 +110039,29 @@ "title": "payment_method_param", "type": "object" }, + "customer_balance": { + "description": "Uses a customer’s [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.", + "properties": { + "display_preference": { + "description": "Whether or not the payment method should be displayed.", + "properties": { + "preference": { + "description": "The account's preference for whether or not to display this payment method.", + "enum": [ + "none", + "off", + "on" + ], + "type": "string" + } + }, + "title": "display_preference_param", + "type": "object" + } + }, + "title": "payment_method_param", + "type": "object" + }, "eps": { "description": "EPS is an Austria-based payment method that allows customers to complete transactions online using their bank credentials. EPS is supported by all Austrian banks and is accepted by over 80% of Austrian online retailers. Check this [page](https://stripe.com/docs/payments/eps) for more details.", "properties": { @@ -109964,6 +111725,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -111217,7 +112979,7 @@ }, "/v1/payouts/{payout}/cancel": { "post": { - "description": "

You can cancel a previously created payout if it hasn’t been paid out yet. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.

", + "description": "

You can cancel a previously created payout if its status is pending. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.

", "operationId": "PostPayoutsPayoutCancel", "parameters": [ { @@ -111284,7 +113046,7 @@ }, "/v1/payouts/{payout}/reverse": { "post": { - "description": "

Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the pending status, use /v1/payouts/:id/cancel instead.

\n\n

By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.

", + "description": "

Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.

\n\n

By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.

", "operationId": "PostPayoutsPayoutReverse", "parameters": [ { @@ -111634,7 +113396,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" }, "metadata": { @@ -112601,7 +114363,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" }, "trial_period_days": { @@ -113567,7 +115329,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -115268,7 +117030,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -115838,7 +117600,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -116595,7 +118357,12 @@ }, "description": "Error response." } - } + }, + "servers": [ + { + "url": "https://files.stripe.com/" + } + ] } }, "/v1/radar/early_fraud_warnings": { @@ -118474,7 +120241,6 @@ "issuing_dispute", "issuing_transaction", "network_cost", - "obligation", "other_adjustment", "partial_capture_reversal", "payout", @@ -120571,6 +122337,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -120930,7 +122697,7 @@ "type": "object" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -121049,7 +122816,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string", "x-stripeBypassValidation": true @@ -121215,7 +122983,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -121231,6 +123000,22 @@ "title": "linked_account_options_param", "type": "object" }, + "mandate_options": { + "description": "Additional fields for Mandate creation", + "properties": { + "collection_method": { + "description": "The method used to collect offline mandate customer acceptance.", + "enum": [ + "", + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, + "title": "mandate_options_param", + "type": "object" + }, "networks": { "description": "Additional fields for network related functions", "properties": { @@ -121250,7 +123035,7 @@ "type": "object" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -121866,6 +123651,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -122225,7 +124011,7 @@ "type": "object" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -122344,7 +124130,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string", "x-stripeBypassValidation": true @@ -122510,7 +124297,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -122526,6 +124314,22 @@ "title": "linked_account_options_param", "type": "object" }, + "mandate_options": { + "description": "Additional fields for Mandate creation", + "properties": { + "collection_method": { + "description": "The method used to collect offline mandate customer acceptance.", + "enum": [ + "", + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, + "title": "mandate_options_param", + "type": "object" + }, "networks": { "description": "Additional fields for network related functions", "properties": { @@ -122545,7 +124349,7 @@ "type": "object" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -123188,6 +124992,7 @@ "knab", "moneyou", "n26", + "nn", "rabobank", "regiobank", "revolut", @@ -123547,7 +125352,7 @@ "type": "object" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -123666,7 +125471,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string", "x-stripeBypassValidation": true @@ -123832,7 +125638,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -123848,6 +125655,22 @@ "title": "linked_account_options_param", "type": "object" }, + "mandate_options": { + "description": "Additional fields for Mandate creation", + "properties": { + "collection_method": { + "description": "The method used to collect offline mandate customer acceptance.", + "enum": [ + "", + "paper" + ], + "type": "string", + "x-stripeBypassValidation": true + } + }, + "title": "mandate_options_param", + "type": "object" + }, "networks": { "description": "Additional fields for network related functions", "properties": { @@ -123867,7 +125690,7 @@ "type": "object" }, "verification_method": { - "description": "Verification method for the intent", + "description": "Bank account verification method.", "enum": [ "automatic", "instant", @@ -126204,7 +128027,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -126595,7 +128418,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -127277,6 +129100,28 @@ "enabled": { "description": "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -127352,6 +129197,28 @@ "days_until_due": { "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 `collection_method=charge_automatically`.", "type": "integer" + }, + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "subscription_schedule_default_settings_param", @@ -127404,7 +129271,7 @@ "type": "object" }, "end_behavior": { - "description": "Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running.`cancel` will end the subscription schedule and cancel the underlying subscription.", + "description": "Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.", "enum": [ "cancel", "none", @@ -127535,6 +129402,28 @@ "enabled": { "description": "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -127642,6 +129531,28 @@ "days_until_due": { "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`.", "type": "integer" + }, + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "invoice_settings", @@ -127718,7 +129629,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -128009,6 +129920,28 @@ "enabled": { "description": "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -128084,6 +130017,28 @@ "days_until_due": { "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 `collection_method=charge_automatically`.", "type": "integer" + }, + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "subscription_schedule_default_settings_param", @@ -128136,7 +130091,7 @@ "type": "object" }, "end_behavior": { - "description": "Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running.`cancel` will end the subscription schedule and cancel the underlying subscription.", + "description": "Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.", "enum": [ "cancel", "none", @@ -128262,6 +130217,28 @@ "enabled": { "description": "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -128380,6 +130357,28 @@ "days_until_due": { "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`.", "type": "integer" + }, + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "title": "invoice_settings", @@ -128456,7 +130455,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -129143,6 +131142,10 @@ "explode": true, "style": "deepObject" }, + "billing_cycle_anchor_config": { + "explode": true, + "style": "deepObject" + }, "billing_thresholds": { "explode": true, "style": "deepObject" @@ -129155,6 +131158,10 @@ "explode": true, "style": "deepObject" }, + "invoice_settings": { + "explode": true, + "style": "deepObject" + }, "items": { "explode": true, "style": "deepObject" @@ -129279,6 +131286,28 @@ "enabled": { "description": "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -129293,11 +131322,41 @@ "type": "integer" }, "billing_cycle_anchor": { - "description": "A future timestamp to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). This is used to determine the date of the first full invoice, and, for plans with `month` or `year` intervals, the day of the month for subsequent invoices. The timestamp is in UTC format.", + "description": "A future timestamp in UTC format to anchor the subscription's [billing cycle](https://stripe.com/docs/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.", "format": "unix-time", "type": "integer", "x-stripeBypassValidation": true }, + "billing_cycle_anchor_config": { + "description": "Mutually exclusive with billing_cycle_anchor and only valid with monthly and yearly price intervals. When provided, the billing_cycle_anchor is set to the next occurence of the day_of_month at the hour, minute, and second UTC.", + "properties": { + "day_of_month": { + "description": "The day of the month the billing_cycle_anchor should be. Ranges from 1 to 31.", + "type": "integer" + }, + "hour": { + "description": "The hour of the day the billing_cycle_anchor should be. Ranges from 0 to 23.", + "type": "integer" + }, + "minute": { + "description": "The minute of the hour the billing_cycle_anchor should be. Ranges from 0 to 59.", + "type": "integer" + }, + "month": { + "description": "The month to start full cycle billing periods. Ranges from 1 to 12.", + "type": "integer" + }, + "second": { + "description": "The second of the minute the billing_cycle_anchor should be. Ranges from 0 to 59.", + "type": "integer" + } + }, + "required": [ + "day_of_month" + ], + "title": "billing_cycle_anchor_config_param", + "type": "object" + }, "billing_thresholds": { "anyOf": [ { @@ -129399,6 +131458,35 @@ }, "type": "array" }, + "invoice_settings": { + "description": "All invoices will be billed using the specified settings.", + "properties": { + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + } + }, + "title": "invoice_settings_param", + "type": "object" + }, "items": { "description": "A list of up to 20 subscription items, each with an attached price.", "items": { @@ -129470,7 +131558,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -129706,7 +131794,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string" } @@ -129812,7 +131901,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -129865,12 +131955,14 @@ "card", "cashapp", "customer_balance", + "eps", "fpx", "giropay", "grabpay", "ideal", "konbini", "link", + "p24", "paynow", "paypal", "promptpay", @@ -130428,6 +132520,10 @@ "explode": true, "style": "deepObject" }, + "invoice_settings": { + "explode": true, + "style": "deepObject" + }, "items": { "explode": true, "style": "deepObject" @@ -130556,6 +132652,28 @@ "enabled": { "description": "Enabled automatic tax calculation which will automatically compute tax rates on all invoices generated by the subscription.", "type": "boolean" + }, + "liability": { + "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.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" } }, "required": [ @@ -130733,6 +132851,35 @@ }, "type": "array" }, + "invoice_settings": { + "description": "All invoices will be billed using the specified settings.", + "properties": { + "issuer": { + "description": "The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.", + "properties": { + "account": { + "description": "The connected account being referenced when `type` is `account`.", + "type": "string" + }, + "type": { + "description": "Type of the account referenced in the request.", + "enum": [ + "account", + "self" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "param", + "type": "object" + } + }, + "title": "invoice_settings_param", + "type": "object" + }, "items": { "description": "A list of up to 20 subscription items, each with an attached price.", "items": { @@ -130827,7 +132974,7 @@ "type": "string" }, "interval_count": { - "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).", + "description": "The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).", "type": "integer" } }, @@ -131097,7 +133244,8 @@ "description": "We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.", "enum": [ "any", - "automatic" + "automatic", + "challenge" ], "type": "string" } @@ -131203,7 +133351,8 @@ "description": "List of data features that you would like to retrieve upon account creation.", "items": { "enum": [ - "balances" + "balances", + "transactions" ], "type": "string", "x-stripeBypassValidation": true @@ -131256,12 +133405,14 @@ "card", "cashapp", "customer_balance", + "eps", "fpx", "giropay", "grabpay", "ideal", "konbini", "link", + "p24", "paynow", "paypal", "promptpay", @@ -133801,6 +135952,72 @@ } }, "/v1/tax/registrations/{id}": { + "get": { + "description": "

Returns a Tax Registration object.

", + "operationId": "GetTaxRegistrationsId", + "parameters": [ + { + "description": "Specifies which fields in the response should be expanded.", + "explode": true, + "in": "query", + "name": "expand", + "required": false, + "schema": { + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "style": "deepObject" + }, + { + "in": "path", + "name": "id", + "required": true, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "simple" + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": {}, + "schema": { + "additionalProperties": false, + "properties": {}, + "type": "object" + } + } + }, + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/tax.registration" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + }, "post": { "description": "

Updates an existing Tax Registration object.

\n\n

A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting expires_at.

", "operationId": "PostTaxRegistrationsId", @@ -138722,7 +140939,8 @@ "description": "The specific exemption claimed for this authorization.", "enum": [ "low_value_transaction", - "transaction_risk_analysis" + "transaction_risk_analysis", + "unknown" ], "type": "string", "x-stripeBypassValidation": true @@ -142536,7 +144754,7 @@ "type": "string" }, "structure": { - "description": "The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.", + "description": "The category identifying the legal structure of the company or legal entity. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.", "enum": [ "", "free_zone_establishment", @@ -142554,6 +144772,7 @@ "public_company", "public_corporation", "public_partnership", + "registered_charity", "single_member_llc", "sole_establishment", "sole_proprietorship", @@ -149730,6 +151949,7 @@ "financial_connections.account.disconnected", "financial_connections.account.reactivated", "financial_connections.account.refreshed_balance", + "financial_connections.account.refreshed_transactions", "identity.verification_session.canceled", "identity.verification_session.created", "identity.verification_session.processing", @@ -150205,6 +152425,7 @@ "financial_connections.account.disconnected", "financial_connections.account.reactivated", "financial_connections.account.refreshed_balance", + "financial_connections.account.refreshed_transactions", "identity.verification_session.canceled", "identity.verification_session.created", "identity.verification_session.processing", diff --git a/pkg/cmd/resources_cmds.go b/pkg/cmd/resources_cmds.go index 6da29c12..2b119a88 100644 --- a/pkg/cmd/resources_cmds.go +++ b/pkg/cmd/resources_cmds.go @@ -46,6 +46,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { rCreditNotesCmd := resource.NewResourceCmd(rootCmd, "credit_notes") rCustomerBalanceTransactionsCmd := resource.NewResourceCmd(rootCmd, "customer_balance_transactions") rCustomerCashBalanceTransactionsCmd := resource.NewResourceCmd(rootCmd, "customer_cash_balance_transactions") + rCustomerSessionsCmd := resource.NewResourceCmd(rootCmd, "customer_sessions") rCustomersCmd := resource.NewResourceCmd(rootCmd, "customers") rCustomersTestHelpersCmd := resource.NewResourceCmd(rCustomersCmd.Cmd, "test_helpers") rDisputesCmd := resource.NewResourceCmd(rootCmd, "disputes") @@ -104,6 +105,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { rClimateSuppliersCmd := resource.NewResourceCmd(nsClimateCmd.Cmd, "suppliers") rFinancialConnectionsAccountsCmd := resource.NewResourceCmd(nsFinancialConnectionsCmd.Cmd, "accounts") rFinancialConnectionsSessionsCmd := resource.NewResourceCmd(nsFinancialConnectionsCmd.Cmd, "sessions") + rFinancialConnectionsTransactionsCmd := resource.NewResourceCmd(nsFinancialConnectionsCmd.Cmd, "transactions") rIdentityVerificationReportsCmd := resource.NewResourceCmd(nsIdentityCmd.Cmd, "verification_reports") rIdentityVerificationSessionsCmd := resource.NewResourceCmd(nsIdentityCmd.Cmd, "verification_sessions") rIssuingAuthorizationsCmd := resource.NewResourceCmd(nsIssuingCmd.Cmd, "authorizations") @@ -162,11 +164,13 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { // Operation commands resource.NewOperationCmd(rAccountLinksCmd.Cmd, "create", "/v1/account_links", http.MethodPost, map[string]string{ - "account": "string", - "collect": "string", - "refresh_url": "string", - "return_url": "string", - "type": "string", + "account": "string", + "collect": "string", + "collection_options.fields": "string", + "collection_options.future_requirements": "string", + "refresh_url": "string", + "return_url": "string", + "type": "string", }, &Config) resource.NewOperationCmd(rAccountSessionsCmd.Cmd, "create", "/v1/account_sessions", http.MethodPost, map[string]string{ "account": "string", @@ -186,8 +190,12 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { }, &Config) resource.NewOperationCmd(rAccountsCmd.Cmd, "capabilities", "/v1/accounts/{account}/capabilities", http.MethodGet, map[string]string{}, &Config) resource.NewOperationCmd(rAccountsCmd.Cmd, "create", "/v1/accounts", http.MethodPost, map[string]string{ - "account_token": "string", - "business_profile.mcc": "string", + "account_token": "string", + "business_profile.annual_revenue.amount": "integer", + "business_profile.annual_revenue.currency": "string", + "business_profile.annual_revenue.fiscal_year_end": "string", + "business_profile.estimated_worker_count": "integer", + "business_profile.mcc": "string", "business_profile.monthly_estimated_revenue.amount": "integer", "business_profile.monthly_estimated_revenue.currency": "string", "business_profile.name": "string", @@ -383,8 +391,12 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { }, &Config) resource.NewOperationCmd(rAccountsCmd.Cmd, "retrieve", "/v1/account", http.MethodGet, map[string]string{}, &Config) resource.NewOperationCmd(rAccountsCmd.Cmd, "update", "/v1/accounts/{account}", http.MethodPost, map[string]string{ - "account_token": "string", - "business_profile.mcc": "string", + "account_token": "string", + "business_profile.annual_revenue.amount": "integer", + "business_profile.annual_revenue.currency": "string", + "business_profile.annual_revenue.fiscal_year_end": "string", + "business_profile.estimated_worker_count": "integer", + "business_profile.mcc": "string", "business_profile.monthly_estimated_revenue.amount": "integer", "business_profile.monthly_estimated_revenue.currency": "string", "business_profile.name": "string", @@ -592,28 +604,22 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "type": "string", }, &Config) resource.NewOperationCmd(rBalanceTransactionsCmd.Cmd, "retrieve", "/v1/balance_transactions/{id}", http.MethodGet, map[string]string{}, &Config) - resource.NewOperationCmd(rBankAccountsCmd.Cmd, "delete", "/v1/customers/{customer}/sources/{id}", http.MethodDelete, map[string]string{}, &Config) - resource.NewOperationCmd(rBankAccountsCmd.Cmd, "update", "/v1/customers/{customer}/sources/{id}", http.MethodPost, map[string]string{ - "account_holder_name": "string", - "account_holder_type": "string", - "address_city": "string", - "address_country": "string", - "address_line1": "string", - "address_line2": "string", - "address_state": "string", - "address_zip": "string", - "exp_month": "string", - "exp_year": "string", - "name": "string", - "owner.address.city": "string", - "owner.address.country": "string", - "owner.address.line1": "string", - "owner.address.line2": "string", - "owner.address.postal_code": "string", - "owner.address.state": "string", - "owner.email": "string", - "owner.name": "string", - "owner.phone": "string", + resource.NewOperationCmd(rBankAccountsCmd.Cmd, "delete", "/v1/accounts/{account}/external_accounts/{id}", http.MethodDelete, map[string]string{}, &Config) + resource.NewOperationCmd(rBankAccountsCmd.Cmd, "update", "/v1/accounts/{account}/external_accounts/{id}", http.MethodPost, map[string]string{ + "account_holder_name": "string", + "account_holder_type": "string", + "account_type": "string", + "address_city": "string", + "address_country": "string", + "address_line1": "string", + "address_line2": "string", + "address_state": "string", + "address_zip": "string", + "default_for_currency": "boolean", + "documents.bank_account_ownership_verification.files": "array", + "exp_month": "string", + "exp_year": "string", + "name": "string", }, &Config) resource.NewOperationCmd(rBankAccountsCmd.Cmd, "verify", "/v1/customers/{customer}/sources/{id}/verify", http.MethodPost, map[string]string{ "amounts": "array", @@ -623,28 +629,22 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { resource.NewOperationCmd(rCapabilitiesCmd.Cmd, "update", "/v1/accounts/{account}/capabilities/{capability}", http.MethodPost, map[string]string{ "requested": "boolean", }, &Config) - resource.NewOperationCmd(rCardsCmd.Cmd, "delete", "/v1/customers/{customer}/sources/{id}", http.MethodDelete, map[string]string{}, &Config) - resource.NewOperationCmd(rCardsCmd.Cmd, "update", "/v1/customers/{customer}/sources/{id}", http.MethodPost, map[string]string{ - "account_holder_name": "string", - "account_holder_type": "string", - "address_city": "string", - "address_country": "string", - "address_line1": "string", - "address_line2": "string", - "address_state": "string", - "address_zip": "string", - "exp_month": "string", - "exp_year": "string", - "name": "string", - "owner.address.city": "string", - "owner.address.country": "string", - "owner.address.line1": "string", - "owner.address.line2": "string", - "owner.address.postal_code": "string", - "owner.address.state": "string", - "owner.email": "string", - "owner.name": "string", - "owner.phone": "string", + resource.NewOperationCmd(rCardsCmd.Cmd, "delete", "/v1/accounts/{account}/external_accounts/{id}", http.MethodDelete, map[string]string{}, &Config) + resource.NewOperationCmd(rCardsCmd.Cmd, "update", "/v1/accounts/{account}/external_accounts/{id}", http.MethodPost, map[string]string{ + "account_holder_name": "string", + "account_holder_type": "string", + "account_type": "string", + "address_city": "string", + "address_country": "string", + "address_line1": "string", + "address_line2": "string", + "address_state": "string", + "address_zip": "string", + "default_for_currency": "boolean", + "documents.bank_account_ownership_verification.files": "array", + "exp_month": "string", + "exp_year": "string", + "name": "string", }, &Config) resource.NewOperationCmd(rCashBalancesCmd.Cmd, "retrieve", "/v1/customers/{customer}/cash_balance", http.MethodGet, map[string]string{}, &Config) resource.NewOperationCmd(rCashBalancesCmd.Cmd, "update", "/v1/customers/{customer}/cash_balance", http.MethodPost, map[string]string{ @@ -825,6 +825,11 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "starting_after": "string", }, &Config) resource.NewOperationCmd(rCustomerCashBalanceTransactionsCmd.Cmd, "retrieve", "/v1/customers/{customer}/cash_balance_transactions/{transaction}", http.MethodGet, map[string]string{}, &Config) + resource.NewOperationCmd(rCustomerSessionsCmd.Cmd, "create", "/v1/customer_sessions", http.MethodPost, map[string]string{ + "components.buy_button.enabled": "boolean", + "components.pricing_table.enabled": "boolean", + "customer": "string", + }, &Config) resource.NewOperationCmd(rCustomersCmd.Cmd, "balance_transactions", "/v1/customers/{customer}/balance_transactions", http.MethodGet, map[string]string{ "ending_before": "string", "limit": "integer", @@ -1092,6 +1097,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "application_fee_amount": "integer", "auto_advance": "boolean", "automatic_tax.enabled": "boolean", + "automatic_tax.liability.account": "string", + "automatic_tax.liability.type": "string", "collection_method": "string", "currency": "string", "customer": "string", @@ -1105,6 +1112,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "footer": "string", "from_invoice.action": "string", "from_invoice.invoice": "string", + "issuer.account": "string", + "issuer.type": "string", "on_behalf_of": "string", "payment_settings.default_mandate": "string", "payment_settings.payment_method_types": "array", @@ -1170,6 +1179,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "coupon": "string", "currency": "string", "customer": "string", + "on_behalf_of": "string", "schedule": "string", "subscription": "string", "subscription_billing_cycle_anchor": "string", @@ -1190,6 +1200,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "customer": "string", "ending_before": "string", "limit": "integer", + "on_behalf_of": "string", "schedule": "string", "starting_after": "string", "subscription": "string", @@ -1210,6 +1221,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "application_fee_amount": "integer", "auto_advance": "boolean", "automatic_tax.enabled": "boolean", + "automatic_tax.liability.account": "string", + "automatic_tax.liability.type": "string", "collection_method": "string", "days_until_due": "integer", "default_payment_method": "string", @@ -1219,6 +1232,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "due_date": "integer", "effective_at": "integer", "footer": "string", + "issuer.account": "string", + "issuer.type": "string", "on_behalf_of": "string", "payment_settings.default_mandate": "string", "payment_settings.payment_method_types": "array", @@ -1533,6 +1548,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "card.display_preference.preference": "string", "cartes_bancaires.display_preference.preference": "string", "cashapp.display_preference.preference": "string", + "customer_balance.display_preference.preference": "string", "eps.display_preference.preference": "string", "fpx.display_preference.preference": "string", "giropay.display_preference.preference": "string", @@ -1576,6 +1592,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "card.display_preference.preference": "string", "cartes_bancaires.display_preference.preference": "string", "cashapp.display_preference.preference": "string", + "customer_balance.display_preference.preference": "string", "eps.display_preference.preference": "string", "fpx.display_preference.preference": "string", "giropay.display_preference.preference": "string", @@ -2170,6 +2187,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "payment_method_options.us_bank_account.financial_connections.permissions": "array", "payment_method_options.us_bank_account.financial_connections.prefetch": "array", "payment_method_options.us_bank_account.financial_connections.return_url": "string", + "payment_method_options.us_bank_account.mandate_options.collection_method": "string", "payment_method_options.us_bank_account.networks.requested": "array", "payment_method_options.us_bank_account.verification_method": "string", "return_url": "string", @@ -2248,6 +2266,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "payment_method_options.us_bank_account.financial_connections.permissions": "array", "payment_method_options.us_bank_account.financial_connections.prefetch": "array", "payment_method_options.us_bank_account.financial_connections.return_url": "string", + "payment_method_options.us_bank_account.mandate_options.collection_method": "string", "payment_method_options.us_bank_account.networks.requested": "array", "payment_method_options.us_bank_account.verification_method": "string", "payment_method_types": "array", @@ -2338,6 +2357,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "payment_method_options.us_bank_account.financial_connections.permissions": "array", "payment_method_options.us_bank_account.financial_connections.prefetch": "array", "payment_method_options.us_bank_account.financial_connections.return_url": "string", + "payment_method_options.us_bank_account.mandate_options.collection_method": "string", "payment_method_options.us_bank_account.networks.requested": "array", "payment_method_options.us_bank_account.verification_method": "string", "payment_method_types": "array", @@ -2518,11 +2538,15 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "customer": "string", "default_settings.application_fee_percent": "number", "default_settings.automatic_tax.enabled": "boolean", + "default_settings.automatic_tax.liability.account": "string", + "default_settings.automatic_tax.liability.type": "string", "default_settings.billing_cycle_anchor": "string", "default_settings.collection_method": "string", "default_settings.default_payment_method": "string", "default_settings.description": "string", "default_settings.invoice_settings.days_until_due": "integer", + "default_settings.invoice_settings.issuer.account": "string", + "default_settings.invoice_settings.issuer.type": "string", "default_settings.on_behalf_of": "string", "end_behavior": "string", "from_subscription": "string", @@ -2546,44 +2570,57 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { resource.NewOperationCmd(rSubscriptionSchedulesCmd.Cmd, "update", "/v1/subscription_schedules/{schedule}", http.MethodPost, map[string]string{ "default_settings.application_fee_percent": "number", "default_settings.automatic_tax.enabled": "boolean", + "default_settings.automatic_tax.liability.account": "string", + "default_settings.automatic_tax.liability.type": "string", "default_settings.billing_cycle_anchor": "string", "default_settings.collection_method": "string", "default_settings.default_payment_method": "string", "default_settings.description": "string", "default_settings.invoice_settings.days_until_due": "integer", + "default_settings.invoice_settings.issuer.account": "string", + "default_settings.invoice_settings.issuer.type": "string", "default_settings.on_behalf_of": "string", "end_behavior": "string", "proration_behavior": "string", }, &Config) resource.NewOperationCmd(rSubscriptionsCmd.Cmd, "cancel", "/v1/subscriptions/{subscription_exposed_id}", http.MethodDelete, map[string]string{}, &Config) resource.NewOperationCmd(rSubscriptionsCmd.Cmd, "create", "/v1/subscriptions", http.MethodPost, map[string]string{ - "application_fee_percent": "number", - "automatic_tax.enabled": "boolean", - "backdate_start_date": "integer", - "billing_cycle_anchor": "integer", - "cancel_at": "integer", - "cancel_at_period_end": "boolean", - "collection_method": "string", - "coupon": "string", - "currency": "string", - "customer": "string", - "days_until_due": "integer", - "default_payment_method": "string", - "default_source": "string", - "default_tax_rates": "array", - "description": "string", - "off_session": "boolean", - "on_behalf_of": "string", - "payment_behavior": "string", - "payment_settings.payment_method_types": "array", - "payment_settings.save_default_payment_method": "string", - "promotion_code": "string", - "proration_behavior": "string", - "transfer_data.amount_percent": "number", - "transfer_data.destination": "string", - "trial_end": "string", - "trial_from_plan": "boolean", - "trial_period_days": "integer", + "application_fee_percent": "number", + "automatic_tax.enabled": "boolean", + "automatic_tax.liability.account": "string", + "automatic_tax.liability.type": "string", + "backdate_start_date": "integer", + "billing_cycle_anchor": "integer", + "billing_cycle_anchor_config.day_of_month": "integer", + "billing_cycle_anchor_config.hour": "integer", + "billing_cycle_anchor_config.minute": "integer", + "billing_cycle_anchor_config.month": "integer", + "billing_cycle_anchor_config.second": "integer", + "cancel_at": "integer", + "cancel_at_period_end": "boolean", + "collection_method": "string", + "coupon": "string", + "currency": "string", + "customer": "string", + "days_until_due": "integer", + "default_payment_method": "string", + "default_source": "string", + "default_tax_rates": "array", + "description": "string", + "invoice_settings.issuer.account": "string", + "invoice_settings.issuer.type": "string", + "off_session": "boolean", + "on_behalf_of": "string", + "payment_behavior": "string", + "payment_settings.payment_method_types": "array", + "payment_settings.save_default_payment_method": "string", + "promotion_code": "string", + "proration_behavior": "string", + "transfer_data.amount_percent": "number", + "transfer_data.destination": "string", + "trial_end": "string", + "trial_from_plan": "boolean", + "trial_period_days": "integer", "trial_settings.end_behavior.missing_payment_method": "string", }, &Config) resource.NewOperationCmd(rSubscriptionsCmd.Cmd, "delete_discount", "/v1/subscriptions/{subscription_exposed_id}/discount", http.MethodDelete, map[string]string{}, &Config) @@ -2615,6 +2652,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { resource.NewOperationCmd(rSubscriptionsCmd.Cmd, "update", "/v1/subscriptions/{subscription_exposed_id}", http.MethodPost, map[string]string{ "application_fee_percent": "number", "automatic_tax.enabled": "boolean", + "automatic_tax.liability.account": "string", + "automatic_tax.liability.type": "string", "billing_cycle_anchor": "string", "cancel_at": "integer", "cancel_at_period_end": "boolean", @@ -2627,6 +2666,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "default_source": "string", "default_tax_rates": "array", "description": "string", + "invoice_settings.issuer.account": "string", + "invoice_settings.issuer.type": "string", "off_session": "boolean", "on_behalf_of": "string", "payment_behavior": "string", @@ -3015,30 +3056,34 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "return_url": "string", }, &Config) resource.NewOperationCmd(rCheckoutSessionsCmd.Cmd, "create", "/v1/checkout/sessions", http.MethodPost, map[string]string{ - "after_expiration.recovery.allow_promotion_codes": "boolean", - "after_expiration.recovery.enabled": "boolean", - "allow_promotion_codes": "boolean", - "automatic_tax.enabled": "boolean", - "billing_address_collection": "string", - "cancel_url": "string", - "client_reference_id": "string", - "consent_collection.payment_method_reuse_agreement.position": "string", - "consent_collection.promotions": "string", - "consent_collection.terms_of_service": "string", - "currency": "string", - "customer": "string", - "customer_creation": "string", - "customer_email": "string", - "customer_update.address": "string", - "customer_update.name": "string", - "customer_update.shipping": "string", - "expires_at": "integer", - "invoice_creation.enabled": "boolean", - "invoice_creation.invoice_data.account_tax_ids": "array", - "invoice_creation.invoice_data.description": "string", - "invoice_creation.invoice_data.footer": "string", - "locale": "string", - "mode": "string", + "after_expiration.recovery.allow_promotion_codes": "boolean", + "after_expiration.recovery.enabled": "boolean", + "allow_promotion_codes": "boolean", + "automatic_tax.enabled": "boolean", + "automatic_tax.liability.account": "string", + "automatic_tax.liability.type": "string", + "billing_address_collection": "string", + "cancel_url": "string", + "client_reference_id": "string", + "consent_collection.payment_method_reuse_agreement.position": "string", + "consent_collection.promotions": "string", + "consent_collection.terms_of_service": "string", + "currency": "string", + "customer": "string", + "customer_creation": "string", + "customer_email": "string", + "customer_update.address": "string", + "customer_update.name": "string", + "customer_update.shipping": "string", + "expires_at": "integer", + "invoice_creation.enabled": "boolean", + "invoice_creation.invoice_data.account_tax_ids": "array", + "invoice_creation.invoice_data.description": "string", + "invoice_creation.invoice_data.footer": "string", + "invoice_creation.invoice_data.issuer.account": "string", + "invoice_creation.invoice_data.issuer.type": "string", + "locale": "string", + "mode": "string", "payment_intent_data.application_fee_amount": "integer", "payment_intent_data.capture_method": "string", "payment_intent_data.description": "string", @@ -3130,6 +3175,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "subscription_data.billing_cycle_anchor": "integer", "subscription_data.default_tax_rates": "array", "subscription_data.description": "string", + "subscription_data.invoice_settings.issuer.account": "string", + "subscription_data.invoice_settings.issuer.type": "string", "subscription_data.on_behalf_of": "string", "subscription_data.proration_behavior": "string", "subscription_data.transfer_data.amount_percent": "number", @@ -3203,6 +3250,12 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "features": "array", }, &Config) resource.NewOperationCmd(rFinancialConnectionsAccountsCmd.Cmd, "retrieve", "/v1/financial_connections/accounts/{account}", http.MethodGet, map[string]string{}, &Config) + resource.NewOperationCmd(rFinancialConnectionsAccountsCmd.Cmd, "subscribe", "/v1/financial_connections/accounts/{account}/subscribe", http.MethodPost, map[string]string{ + "features": "array", + }, &Config) + resource.NewOperationCmd(rFinancialConnectionsAccountsCmd.Cmd, "unsubscribe", "/v1/financial_connections/accounts/{account}/unsubscribe", http.MethodPost, map[string]string{ + "features": "array", + }, &Config) resource.NewOperationCmd(rFinancialConnectionsSessionsCmd.Cmd, "create", "/v1/financial_connections/sessions", http.MethodPost, map[string]string{ "account_holder.account": "string", "account_holder.customer": "string", @@ -3213,6 +3266,14 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "return_url": "string", }, &Config) resource.NewOperationCmd(rFinancialConnectionsSessionsCmd.Cmd, "retrieve", "/v1/financial_connections/sessions/{session}", http.MethodGet, map[string]string{}, &Config) + resource.NewOperationCmd(rFinancialConnectionsTransactionsCmd.Cmd, "list", "/v1/financial_connections/transactions", http.MethodGet, map[string]string{ + "account": "string", + "ending_before": "string", + "limit": "integer", + "starting_after": "string", + "transacted_at": "integer", + }, &Config) + resource.NewOperationCmd(rFinancialConnectionsTransactionsCmd.Cmd, "retrieve", "/v1/financial_connections/transactions/{transaction}", http.MethodGet, map[string]string{}, &Config) resource.NewOperationCmd(rIdentityVerificationReportsCmd.Cmd, "list", "/v1/identity/verification_reports", http.MethodGet, map[string]string{ "created": "integer", "ending_before": "string", @@ -3373,6 +3434,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "cardholder": "string", "currency": "string", "financial_account": "string", + "pin.encrypted_number": "string", "replacement_for": "string", "replacement_reason": "string", "shipping.address.city": "string", @@ -3688,6 +3750,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) { "starting_after": "string", "status": "string", }, &Config) + resource.NewOperationCmd(rTaxRegistrationsCmd.Cmd, "retrieve", "/v1/tax/registrations/{id}", http.MethodGet, map[string]string{}, &Config) resource.NewOperationCmd(rTaxRegistrationsCmd.Cmd, "update", "/v1/tax/registrations/{id}", http.MethodPost, map[string]string{ "active_from": "string", "expires_at": "string", diff --git a/pkg/proxy/events_list.go b/pkg/proxy/events_list.go index 74884058..f4b8a9ff 100644 --- a/pkg/proxy/events_list.go +++ b/pkg/proxy/events_list.go @@ -77,6 +77,7 @@ var validEvents = map[string]bool{ "financial_connections.account.disconnected": true, "financial_connections.account.reactivated": true, "financial_connections.account.refreshed_balance": true, + "financial_connections.account.refreshed_transactions": true, "identity.verification_session.canceled": true, "identity.verification_session.created": true, "identity.verification_session.processing": true,