Skip to content

Commit

Permalink
Update OpenAPI specification for beta
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Oct 18, 2024
1 parent a6beefc commit 9b9b99e
Show file tree
Hide file tree
Showing 2 changed files with 234 additions and 2 deletions.
132 changes: 130 additions & 2 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -57596,6 +57596,51 @@
"enabled"
]
},
"portal_resource_schedule_update_at_period_end": {
"description": "",
"properties": {
"conditions": {
"description": "List of conditions. When any condition is true, an update will be scheduled at the end of the current period.",
"items": {
"$ref": "#/components/schemas/portal_resource_schedule_update_at_period_end_condition"
},
"type": "array"
}
},
"required": [
"conditions"
],
"title": "PortalResourceScheduleUpdateAtPeriodEnd",
"type": "object",
"x-expandableFields": [
"conditions"
],
"x-stripeMostCommon": [
"conditions"
]
},
"portal_resource_schedule_update_at_period_end_condition": {
"description": "",
"properties": {
"type": {
"description": "The type of condition.",
"enum": [
"decreasing_item_amount",
"shortening_interval"
],
"type": "string"
}
},
"required": [
"type"
],
"title": "PortalResourceScheduleUpdateAtPeriodEndCondition",
"type": "object",
"x-expandableFields": [],
"x-stripeMostCommon": [
"type"
]
},
"portal_subscription_cancel": {
"description": "",
"properties": {
Expand Down Expand Up @@ -57714,6 +57759,9 @@
"none"
],
"type": "string"
},
"schedule_at_period_end": {
"$ref": "#/components/schemas/portal_resource_schedule_update_at_period_end"
}
},
"required": [
Expand All @@ -57724,13 +57772,15 @@
"title": "PortalSubscriptionUpdate",
"type": "object",
"x-expandableFields": [
"products"
"products",
"schedule_at_period_end"
],
"x-stripeMostCommon": [
"default_allowed_updates",
"enabled",
"products",
"proration_behavior"
"proration_behavior",
"schedule_at_period_end"
]
},
"portal_subscription_update_product": {
Expand Down Expand Up @@ -99911,6 +99961,40 @@
"none"
],
"type": "string"
},
"schedule_at_period_end": {
"description": "Setting to control when an update should be scheduled at the end of the period instead of applying immediately.",
"properties": {
"conditions": {
"description": "List of conditions. When any condition is true, the update will be scheduled at the end of the current period.",
"items": {
"properties": {
"type": {
"description": "The type of condition.",
"enum": [
"decreasing_item_amount",
"shortening_interval"
],
"type": "string"
}
},
"required": [
"type"
],
"title": "schedule_update_at_period_end_condition_param",
"type": "object",
"x-stripeMostCommon": [
"type"
]
},
"type": "array"
}
},
"title": "schedule_update_at_period_end_creating_param",
"type": "object",
"x-stripeMostCommon": [
"conditions"
]
}
},
"required": [
Expand Down Expand Up @@ -100434,6 +100518,50 @@
"none"
],
"type": "string"
},
"schedule_at_period_end": {
"description": "Setting to control when an update should be scheduled at the end of the period instead of applying immediately.",
"properties": {
"conditions": {
"anyOf": [
{
"items": {
"properties": {
"type": {
"description": "The type of condition.",
"enum": [
"decreasing_item_amount",
"shortening_interval"
],
"type": "string"
}
},
"required": [
"type"
],
"title": "schedule_update_at_period_end_condition_param",
"type": "object",
"x-stripeMostCommon": [
"type"
]
},
"type": "array"
},
{
"enum": [
""
],
"type": "string"
}
],
"description": "List of conditions. When any condition is true, the update will be scheduled at the end of the current period."
}
},
"title": "schedule_update_at_period_end_updating_param",
"type": "object",
"x-stripeMostCommon": [
"conditions"
]
}
},
"title": "subscription_update_updating_param",
Expand Down
104 changes: 104 additions & 0 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52778,6 +52778,41 @@ components:
x-expandableFields: []
x-stripeMostCommon:
- enabled
portal_resource_schedule_update_at_period_end:
description: ''
properties:
conditions:
description: >-
List of conditions. When any condition is true, an update will be
scheduled at the end of the current period.
items:
$ref: >-
#/components/schemas/portal_resource_schedule_update_at_period_end_condition
type: array
required:
- conditions
title: PortalResourceScheduleUpdateAtPeriodEnd
type: object
x-expandableFields:
- conditions
x-stripeMostCommon:
- conditions
portal_resource_schedule_update_at_period_end_condition:
description: ''
properties:
type:
description: The type of condition.
enum:
- decreasing_item_amount
- shortening_interval
type: string
required:
- type
title: PortalResourceScheduleUpdateAtPeriodEndCondition
type: object
x-expandableFields: []
x-stripeMostCommon:
- type
portal_subscription_cancel:
description: ''
properties:
Expand Down Expand Up @@ -52881,6 +52916,8 @@ components:
- create_prorations
- none
type: string
schedule_at_period_end:
$ref: '#/components/schemas/portal_resource_schedule_update_at_period_end'
required:
- default_allowed_updates
- enabled
Expand All @@ -52889,11 +52926,13 @@ components:
type: object
x-expandableFields:
- products
- schedule_at_period_end
x-stripeMostCommon:
- default_allowed_updates
- enabled
- products
- proration_behavior
- schedule_at_period_end
portal_subscription_update_product:
description: ''
properties:
Expand Down Expand Up @@ -90258,6 +90297,36 @@ paths:
- create_prorations
- none
type: string
schedule_at_period_end:
description: >-
Setting to control when an update should be
scheduled at the end of the period instead of
applying immediately.
properties:
conditions:
description: >-
List of conditions. When any condition is true,
the update will be scheduled at the end of the
current period.
items:
properties:
type:
description: The type of condition.
enum:
- decreasing_item_amount
- shortening_interval
type: string
required:
- type
title: schedule_update_at_period_end_condition_param
type: object
x-stripeMostCommon:
- type
type: array
title: schedule_update_at_period_end_creating_param
type: object
x-stripeMostCommon:
- conditions
required:
- enabled
title: subscription_update_creation_param
Expand Down Expand Up @@ -90670,6 +90739,41 @@ paths:
- create_prorations
- none
type: string
schedule_at_period_end:
description: >-
Setting to control when an update should be
scheduled at the end of the period instead of
applying immediately.
properties:
conditions:
anyOf:
- items:
properties:
type:
description: The type of condition.
enum:
- decreasing_item_amount
- shortening_interval
type: string
required:
- type
title: >-
schedule_update_at_period_end_condition_param
type: object
x-stripeMostCommon:
- type
type: array
- enum:
- ''
type: string
description: >-
List of conditions. When any condition is true,
the update will be scheduled at the end of the
current period.
title: schedule_update_at_period_end_updating_param
type: object
x-stripeMostCommon:
- conditions
title: subscription_update_updating_param
type: object
x-stripeMostCommon:
Expand Down

0 comments on commit 9b9b99e

Please sign in to comment.