Skip to content

Commit

Permalink
Update OpenAPI specification
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Aug 30, 2023
1 parent 3cd3f47 commit d374dec
Show file tree
Hide file tree
Showing 6 changed files with 1,037 additions and 3 deletions.
198 changes: 196 additions & 2 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -1523,6 +1523,9 @@
"maxLength": 5000,
"type": "string"
},
"components": {
"$ref": "#/components/schemas/connect_embedded_account_session_create_components"
},
"expires_at": {
"description": "The timestamp at which this AccountSession will expire.",
"format": "unix-time",
Expand All @@ -1543,13 +1546,16 @@
"required": [
"account",
"client_secret",
"components",
"expires_at",
"livemode",
"object"
],
"title": "ConnectEmbeddedMethodAccountSessionCreateMethodAccountSession",
"type": "object",
"x-expandableFields": [],
"x-expandableFields": [
"components"
],
"x-resourceId": "account_session",
"x-stripeOperations": [
{
Expand Down Expand Up @@ -7409,6 +7415,126 @@
]
}
},
"connect_embedded_account_session_create_components": {
"description": "",
"properties": {
"account_onboarding": {
"$ref": "#/components/schemas/connect_embedded_base_config"
},
"payment_details": {
"$ref": "#/components/schemas/connect_embedded_payments_config"
},
"payments": {
"$ref": "#/components/schemas/connect_embedded_payments_config"
},
"payouts": {
"$ref": "#/components/schemas/connect_embedded_base_config"
}
},
"required": [
"account_onboarding"
],
"title": "ConnectEmbeddedAccountSessionCreateComponents",
"type": "object",
"x-expandableFields": [
"account_onboarding",
"payment_details",
"payments",
"payouts"
],
"x-stripeResource": {
"class_name": "Components",
"in_package": ""
}
},
"connect_embedded_base_config": {
"description": "",
"properties": {
"enabled": {
"description": "Whether the embedded component is enabled.",
"type": "boolean"
},
"features": {
"$ref": "#/components/schemas/connect_embedded_base_features"
}
},
"required": [
"enabled"
],
"title": "ConnectEmbeddedBaseConfig",
"type": "object",
"x-expandableFields": [
"features"
],
"x-stripeResource": {
"class_name": "BaseConfig",
"in_package": ""
}
},
"connect_embedded_base_features": {
"description": "",
"properties": {},
"title": "ConnectEmbeddedBaseFeatures",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "BaseFeatures",
"in_package": ""
}
},
"connect_embedded_payments_config": {
"description": "",
"properties": {
"enabled": {
"description": "Whether the embedded component is enabled.",
"type": "boolean"
},
"features": {
"$ref": "#/components/schemas/connect_embedded_payments_features"
}
},
"required": [
"enabled"
],
"title": "ConnectEmbeddedPaymentsConfig",
"type": "object",
"x-expandableFields": [
"features"
],
"x-stripeResource": {
"class_name": "PaymentsConfig",
"in_package": ""
}
},
"connect_embedded_payments_features": {
"description": "",
"properties": {
"capture_payments": {
"description": "Whether to allow capturing and cancelling payment intents. This is `true` by default.",
"type": "boolean"
},
"dispute_management": {
"description": "Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.",
"type": "boolean"
},
"refund_management": {
"description": "Whether to allow sending refunds. This is `true` by default.",
"type": "boolean"
}
},
"required": [
"capture_payments",
"dispute_management",
"refund_management"
],
"title": "ConnectEmbeddedPaymentsFeatures",
"type": "object",
"x-expandableFields": [],
"x-stripeResource": {
"class_name": "PaymentsFeatures",
"in_package": ""
}
},
"country_spec": {
"description": "Stripe needs to collect certain pieces of information about each account\ncreated. These requirements can differ depending on the account's country. The\nCountry Specs API makes these rules available to your integration.\n\nYou can also view the information from this API call as [an online\nguide](/docs/connect/required-verification-information).",
"properties": {
Expand Down Expand Up @@ -60328,6 +60454,10 @@
"content": {
"application/x-www-form-urlencoded": {
"encoding": {
"components": {
"explode": true,
"style": "deepObject"
},
"expand": {
"explode": true,
"style": "deepObject"
Expand All @@ -60340,6 +60470,69 @@
"description": "The identifier of the account to create an Account Session for.",
"type": "string"
},
"components": {
"description": "Each key of the dictionary represents an embedded component, and each embedded component maps to its configuration (e.g. whether it has been enabled or not, its corresponding features, etc.).",
"properties": {
"account_onboarding": {
"description": "Configuration for the account onboarding embedded component.",
"properties": {
"enabled": {
"description": "Whether the embedded component is enabled.",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "base_config_param",
"type": "object"
},
"payment_details": {
"description": "Configuration for the payment details embedded component.",
"properties": {
"enabled": {
"description": "Whether the embedded component is enabled.",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "payments_config_param",
"type": "object"
},
"payments": {
"description": "Configuration for the payments embedded component.",
"properties": {
"enabled": {
"description": "Whether the embedded component is enabled.",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "payments_config_param",
"type": "object"
},
"payouts": {
"description": "Configuration for the payouts embedded component.",
"properties": {
"enabled": {
"description": "Whether the embedded component is enabled.",
"type": "boolean"
}
},
"required": [
"enabled"
],
"title": "base_config_param",
"type": "object"
}
},
"title": "account_session_create_components_param",
"type": "object"
},
"expand": {
"description": "Specifies which fields in the response should be expanded.",
"items": {
Expand All @@ -60350,7 +60543,8 @@
}
},
"required": [
"account"
"account",
"components"
],
"type": "object"
}
Expand Down
Loading

0 comments on commit d374dec

Please sign in to comment.