From 3090351aafc3b15d20b1054ef302ac145ecdbda5 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 14 May 2024 18:39:20 +0000 Subject: [PATCH] OpenAPI Update (#819) Update OpenAPI for f5227de75f658e1385148a8cec58ca9588ebb942 Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- embedded/openapi/fixtures3.json | 7 +- embedded/openapi/spec3.beta.sdk.json | 102 +++++++++++++++++++++++++++ embedded/openapi/spec3.json | 99 ++++++++++++++++++++++++++ 3 files changed, 206 insertions(+), 2 deletions(-) diff --git a/embedded/openapi/fixtures3.json b/embedded/openapi/fixtures3.json index 86afbabc..04634ecd 100644 --- a/embedded/openapi/fixtures3.json +++ b/embedded/openapi/fixtures3.json @@ -229,7 +229,8 @@ "has_more": false, "object": "list", "url": "/v1/application_fees/fee_1OPounJN5vQBdWExWgwi95uU/refunds" - } + }, + "fee_source": null }, "apps.secret": { "created": 1234567890, @@ -3033,7 +3034,9 @@ "source_type": "card", "statement_descriptor": null, "status": "in_transit", - "type": "bank_account" + "type": "bank_account", + "application_fee": null, + "application_fee_amount": null }, "person": { "account": "acct_1OPouMJN5vQBdWEx", diff --git a/embedded/openapi/spec3.beta.sdk.json b/embedded/openapi/spec3.beta.sdk.json index 77393ab6..ce938954 100644 --- a/embedded/openapi/spec3.beta.sdk.json +++ b/embedded/openapi/spec3.beta.sdk.json @@ -2794,6 +2794,15 @@ "description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).", "type": "string" }, + "fee_source": { + "anyOf": [ + { + "$ref": "#/components/schemas/platform_earning_fee_source" + } + ], + "description": "Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.", + "nullable": true + }, "id": { "description": "Unique identifier for the object.", "maxLength": 5000, @@ -2883,6 +2892,7 @@ "charge", "created", "currency", + "fee_source", "id", "livemode", "object", @@ -2897,6 +2907,7 @@ "application", "balance_transaction", "charge", + "fee_source", "originating_transaction", "refunds" ], @@ -3260,6 +3271,13 @@ "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" }, + "net_available": { + "description": "Breakdown of balance by destination.", + "items": { + "$ref": "#/components/schemas/balance_net_available" + }, + "type": "array" + }, "source_types": { "$ref": "#/components/schemas/balance_amount_by_source_type" } @@ -3271,6 +3289,7 @@ "title": "BalanceAmountNet", "type": "object", "x-expandableFields": [ + "net_available", "source_types" ] }, @@ -3294,6 +3313,32 @@ "available" ] }, + "balance_net_available": { + "description": "", + "properties": { + "amount": { + "description": "Net balance amount, subtracting fees from platform-set pricing.", + "type": "integer" + }, + "destination": { + "description": "ID of the external account for this net balance (not expandable).", + "maxLength": 5000, + "type": "string" + }, + "source_types": { + "$ref": "#/components/schemas/balance_amount_by_source_type" + } + }, + "required": [ + "amount", + "destination" + ], + "title": "BalanceNetAvailable", + "type": "object", + "x-expandableFields": [ + "source_types" + ] + }, "balance_transaction": { "description": "Balance transactions represent funds moving through your Stripe account.\nStripe creates them for every type of transaction that enters or leaves your Stripe account balance.\n\nRelated guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types)", "properties": { @@ -45851,6 +45896,31 @@ "description": "The amount (in cents (or local equivalent)) that transfers to your bank account or debit card.", "type": "integer" }, + "application_fee": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "$ref": "#/components/schemas/application_fee" + } + ], + "description": "The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details.", + "nullable": true, + "x-expansionResources": { + "oneOf": [ + { + "$ref": "#/components/schemas/application_fee" + } + ] + } + }, + "application_fee_amount": { + "description": "The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details.", + "nullable": true, + "type": "integer" + }, "arrival_date": { "description": "Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays.", "format": "unix-time", @@ -46060,6 +46130,8 @@ }, "required": [ "amount", + "application_fee", + "application_fee_amount", "arrival_date", "automatic", "balance_transaction", @@ -46086,6 +46158,7 @@ "title": "Payout", "type": "object", "x-expandableFields": [ + "application_fee", "balance_transaction", "destination", "failure_balance_transaction", @@ -47169,6 +47242,35 @@ "type": "object", "x-expandableFields": [] }, + "platform_earning_fee_source": { + "description": "", + "properties": { + "charge": { + "description": "Charge ID that created this application fee.", + "maxLength": 5000, + "type": "string" + }, + "payout": { + "description": "Payout ID that created this application fee.", + "maxLength": 5000, + "type": "string" + }, + "type": { + "description": "Type of object that created the application fee, either `charge` or `payout`.", + "enum": [ + "charge", + "payout" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "PlatformEarningFeeSource", + "type": "object", + "x-expandableFields": [] + }, "platform_tax_fee": { "description": "", "properties": { diff --git a/embedded/openapi/spec3.json b/embedded/openapi/spec3.json index 3b3e3e46..f24a6758 100644 --- a/embedded/openapi/spec3.json +++ b/embedded/openapi/spec3.json @@ -2020,6 +2020,15 @@ "description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).", "type": "string" }, + "fee_source": { + "anyOf": [ + { + "$ref": "#/components/schemas/platform_earning_fee_source" + } + ], + "description": "Polymorphic source of the application fee. Includes the ID of the object the application fee was created from.", + "nullable": true + }, "id": { "description": "Unique identifier for the object.", "maxLength": 5000, @@ -2121,6 +2130,7 @@ "application", "balance_transaction", "charge", + "fee_source", "originating_transaction", "refunds" ], @@ -2345,6 +2355,13 @@ "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" }, + "net_available": { + "description": "Breakdown of balance by destination.", + "items": { + "$ref": "#/components/schemas/balance_net_available" + }, + "type": "array" + }, "source_types": { "$ref": "#/components/schemas/balance_amount_by_source_type" } @@ -2356,6 +2373,7 @@ "title": "BalanceAmountNet", "type": "object", "x-expandableFields": [ + "net_available", "source_types" ] }, @@ -2379,6 +2397,32 @@ "available" ] }, + "balance_net_available": { + "description": "", + "properties": { + "amount": { + "description": "Net balance amount, subtracting fees from platform-set pricing.", + "type": "integer" + }, + "destination": { + "description": "ID of the external account for this net balance (not expandable).", + "maxLength": 5000, + "type": "string" + }, + "source_types": { + "$ref": "#/components/schemas/balance_amount_by_source_type" + } + }, + "required": [ + "amount", + "destination" + ], + "title": "BalanceNetAvailable", + "type": "object", + "x-expandableFields": [ + "source_types" + ] + }, "balance_transaction": { "description": "Balance transactions represent funds moving through your Stripe account.\nStripe creates them for every type of transaction that enters or leaves your Stripe account balance.\n\nRelated guide: [Balance transaction types](https://stripe.com/docs/reports/balance-transaction-types)", "properties": { @@ -33182,6 +33226,31 @@ "description": "The amount (in cents (or local equivalent)) that transfers to your bank account or debit card.", "type": "integer" }, + "application_fee": { + "anyOf": [ + { + "maxLength": 5000, + "type": "string" + }, + { + "$ref": "#/components/schemas/application_fee" + } + ], + "description": "The application fee (if any) for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details.", + "nullable": true, + "x-expansionResources": { + "oneOf": [ + { + "$ref": "#/components/schemas/application_fee" + } + ] + } + }, + "application_fee_amount": { + "description": "The amount of the application fee (if any) requested for the payout. [See the Connect documentation](https://stripe.com/docs/connect/instant-payouts#monetization-and-fees) for details.", + "nullable": true, + "type": "integer" + }, "arrival_date": { "description": "Date that you can expect the payout to arrive in the bank. This factors in delays to account for weekends or bank holidays.", "format": "unix-time", @@ -33420,6 +33489,7 @@ "title": "Payout", "type": "object", "x-expandableFields": [ + "application_fee", "balance_transaction", "destination", "failure_balance_transaction", @@ -34114,6 +34184,35 @@ "type": "object", "x-expandableFields": [] }, + "platform_earning_fee_source": { + "description": "", + "properties": { + "charge": { + "description": "Charge ID that created this application fee.", + "maxLength": 5000, + "type": "string" + }, + "payout": { + "description": "Payout ID that created this application fee.", + "maxLength": 5000, + "type": "string" + }, + "type": { + "description": "Type of object that created the application fee, either `charge` or `payout`.", + "enum": [ + "charge", + "payout" + ], + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "PlatformEarningFeeSource", + "type": "object", + "x-expandableFields": [] + }, "platform_tax_fee": { "description": "", "properties": {