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 Sep 4, 2024
1 parent 71e93cb commit 692b663
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 591 deletions.
115 changes: 6 additions & 109 deletions openapi/spec3.beta.sdk.json
Original file line number Diff line number Diff line change
Expand Up @@ -4832,10 +4832,10 @@
"alert_type": {
"description": "Defines the type of the alert.",
"enum": [
"spend_threshold",
"usage_threshold"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
},
"filter": {
"anyOf": [
Expand All @@ -4862,15 +4862,6 @@
],
"type": "string"
},
"spend_threshold_config": {
"anyOf": [
{
"$ref": "#/components/schemas/thresholds_resource_spend_threshold_config"
}
],
"description": "Encapsulates configuration of the spend to monitoring spend on a [Subscription](https://stripe.com/docs/api/subscriptions/object) or [Subscription item](https://stripe.com/docs/api/subscription_items/object).",
"nullable": true
},
"status": {
"description": "Status of the alert. This can be active, inactive or archived.",
"enum": [
Expand Down Expand Up @@ -4910,7 +4901,6 @@
"type": "object",
"x-expandableFields": [
"filter",
"spend_threshold_config",
"usage_threshold_config"
],
"x-resourceId": "billing.alert",
Expand All @@ -4920,7 +4910,6 @@
"id",
"livemode",
"object",
"spend_threshold_config",
"status",
"title",
"usage_threshold_config"
Expand Down Expand Up @@ -75904,50 +75893,6 @@
"customer"
]
},
"thresholds_resource_spend_threshold_config": {
"description": "The spend threshold alert configuration enables setting up alerts for when a certain spend threshold on a specific subscription or subscription item is crossed.",
"properties": {
"aggregation": {
"description": "Defines if the alert will fire on spend aggregated across a subscription, or on individual subscription items.",
"enum": [
"subscription",
"subscription_item"
],
"type": "string"
},
"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"
},
"gte": {
"description": "The value at which this alert will trigger.",
"type": "integer"
},
"recurrence": {
"description": "Defines how the alert will behave.",
"enum": [
"one_time"
],
"type": "string",
"x-stripeBypassValidation": true
}
},
"required": [
"aggregation",
"currency",
"gte",
"recurrence"
],
"title": "ThresholdsResourceSpendThresholdConfig",
"type": "object",
"x-expandableFields": [],
"x-stripeMostCommon": [
"aggregation",
"currency",
"gte",
"recurrence"
]
},
"thresholds_resource_usage_threshold_config": {
"description": "The usage threshold alert configuration enables setting up alerts for when a certain usage threshold on a specific meter is crossed.",
"properties": {
Expand Down Expand Up @@ -93345,10 +93290,10 @@
"required": false,
"schema": {
"enum": [
"spend_threshold",
"usage_threshold"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
},
"style": "form"
},
Expand Down Expand Up @@ -93504,10 +93449,6 @@
"explode": true,
"style": "deepObject"
},
"spend_threshold_config": {
"explode": true,
"style": "deepObject"
},
"usage_threshold_config": {
"explode": true,
"style": "deepObject"
Expand All @@ -93519,10 +93460,10 @@
"alert_type": {
"description": "The type of alert to create.",
"enum": [
"spend_threshold",
"usage_threshold"
],
"type": "string"
"type": "string",
"x-stripeBypassValidation": true
},
"expand": {
"description": "Specifies which fields in the response should be expanded.",
Expand All @@ -93548,49 +93489,6 @@
"price"
]
},
"spend_threshold_config": {
"description": "The configuration of the spend threshold.",
"properties": {
"aggregation": {
"description": "Whether the spend should be aggregated across items in a subscription or whether each subscription item is considered alone.",
"enum": [
"subscription",
"subscription_item"
],
"type": "string"
},
"currency": {
"description": "Currency for which this spend alert is configured. This alert will only trigger for subscriptions matching this currency.",
"type": "string"
},
"gte": {
"description": "Defines at which value the alert will fire.",
"type": "integer"
},
"recurrence": {
"description": "Whether the alert should only fire only once, or once per billing cycle.",
"enum": [
"one_time"
],
"type": "string",
"x-stripeBypassValidation": true
}
},
"required": [
"aggregation",
"currency",
"gte",
"recurrence"
],
"title": "spend_threshold_config",
"type": "object",
"x-stripeMostCommon": [
"aggregation",
"currency",
"gte",
"recurrence"
]
},
"title": {
"description": "The title of the alert.",
"maxLength": 256,
Expand Down Expand Up @@ -93638,7 +93536,6 @@
"x-stripeMostCommon": [
"alert_type",
"filter",
"spend_threshold_config",
"title",
"usage_threshold_config"
]
Expand Down
105 changes: 3 additions & 102 deletions openapi/spec3.beta.sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4570,9 +4570,9 @@ components:
alert_type:
description: Defines the type of the alert.
enum:
- spend_threshold
- usage_threshold
type: string
x-stripeBypassValidation: true
filter:
anyOf:
- $ref: '#/components/schemas/thresholds_resource_alert_filter'
Expand All @@ -4596,15 +4596,6 @@ components:
enum:
- billing.alert
type: string
spend_threshold_config:
anyOf:
- $ref: '#/components/schemas/thresholds_resource_spend_threshold_config'
description: >-
Encapsulates configuration of the spend to monitoring spend on a
[Subscription](https://stripe.com/docs/api/subscriptions/object) or
[Subscription
item](https://stripe.com/docs/api/subscription_items/object).
nullable: true
status:
description: 'Status of the alert. This can be active, inactive or archived.'
enum:
Expand Down Expand Up @@ -4637,7 +4628,6 @@ components:
type: object
x-expandableFields:
- filter
- spend_threshold_config
- usage_threshold_config
x-resourceId: billing.alert
x-stripeMostCommon:
Expand All @@ -4646,7 +4636,6 @@ components:
- id
- livemode
- object
- spend_threshold_config
- status
- title
- usage_threshold_config
Expand Down Expand Up @@ -68644,49 +68633,6 @@ components:
- customer
x-stripeMostCommon:
- customer
thresholds_resource_spend_threshold_config:
description: >-
The spend threshold alert configuration enables setting up alerts for
when a certain spend threshold on a specific subscription or
subscription item is crossed.
properties:
aggregation:
description: >-
Defines if the alert will fire on spend aggregated across a
subscription, or on individual subscription items.
enum:
- subscription
- subscription_item
type: string
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
gte:
description: The value at which this alert will trigger.
type: integer
recurrence:
description: Defines how the alert will behave.
enum:
- one_time
type: string
x-stripeBypassValidation: true
required:
- aggregation
- currency
- gte
- recurrence
title: ThresholdsResourceSpendThresholdConfig
type: object
x-expandableFields: []
x-stripeMostCommon:
- aggregation
- currency
- gte
- recurrence
thresholds_resource_usage_threshold_config:
description: >-
The usage threshold alert configuration enables setting up alerts for
Expand Down Expand Up @@ -84687,9 +84633,9 @@ paths:
required: false
schema:
enum:
- spend_threshold
- usage_threshold
type: string
x-stripeBypassValidation: true
style: form
- description: >-
A cursor for use in pagination. `ending_before` is an object ID that
Expand Down Expand Up @@ -84816,9 +84762,6 @@ paths:
filter:
explode: true
style: deepObject
spend_threshold_config:
explode: true
style: deepObject
usage_threshold_config:
explode: true
style: deepObject
Expand All @@ -84828,9 +84771,9 @@ paths:
alert_type:
description: The type of alert to create.
enum:
- spend_threshold
- usage_threshold
type: string
x-stripeBypassValidation: true
expand:
description: Specifies which fields in the response should be expanded.
items:
Expand All @@ -84849,47 +84792,6 @@ paths:
x-stripeMostCommon:
- customer
- price
spend_threshold_config:
description: The configuration of the spend threshold.
properties:
aggregation:
description: >-
Whether the spend should be aggregated across items in a
subscription or whether each subscription item is
considered alone.
enum:
- subscription
- subscription_item
type: string
currency:
description: >-
Currency for which this spend alert is configured. This
alert will only trigger for subscriptions matching this
currency.
type: string
gte:
description: Defines at which value the alert will fire.
type: integer
recurrence:
description: >-
Whether the alert should only fire only once, or once
per billing cycle.
enum:
- one_time
type: string
x-stripeBypassValidation: true
required:
- aggregation
- currency
- gte
- recurrence
title: spend_threshold_config
type: object
x-stripeMostCommon:
- aggregation
- currency
- gte
- recurrence
title:
description: The title of the alert.
maxLength: 256
Expand Down Expand Up @@ -84930,7 +84832,6 @@ paths:
x-stripeMostCommon:
- alert_type
- filter
- spend_threshold_config
- title
- usage_threshold_config
required: true
Expand Down
Loading

0 comments on commit 692b663

Please sign in to comment.