"charge": {
"properties": {
"amount": {
"description": "A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) ",
"type": "integer"
},
"application": {
"anyOf": [
{
"maxLength": 5000,
"type": "string"
},
{
"$ref": "#/components/schemas/application"
}
],
"description": "ID of the Connect application that created the charge.",
"nullable": true,
"x-expansionResources": {
"oneOf": [
{
"$ref": "#/components/schemas/application"
}
]
}
},
...
在此示例中,application
属性的值可以是:
应用程序
架构null
用Stripe术语来说,application
是一个可扩展的属性。可展开属性可以包含关联对象的ID,也可以包含完整对象。这就是它们的X-ExpansionResources
扩展所指示的。