Skip to content

Commit

Permalink
Add meteredBilling field to StorefrontPlan (#1815)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasxciv authored Feb 29, 2024
1 parent 3cbe398 commit 0899a1d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions openapi/components/schemas/StorefrontPlan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,39 @@ properties:
description: Length of time.
type: integer
minimum: 1
meteredBilling:
type:
- 'object'
- 'null'
required:
- strategy
description: |-
Use metered billing when an exact quantity is unknown.
Report usage during a service period and charge customers afterwards.
Metered billing plans must be postpaid.
properties:
strategy:
type: string
enum:
- sum
- last
x-enumDescriptions:
sum: Total amount of reported invoice item quantity usage.
last: Last reported invoice item quantity usage.
min:
description: Minimum quantity that is charged at the end of a service period regardless of reported usage.
type:
- 'number'
- 'null'
format: float
minimum: 0.01
max:
description: Maximum quantity that is charged at the end of a service period regardless of reported usage.
type:
- 'number'
- 'null'
format: float
minimum: 0.01
createdTime:
$ref: ./CreatedTime.yaml
updatedTime:
Expand Down

0 comments on commit 0899a1d

Please sign in to comment.