Skip to content

Commit bf0895f

Browse files
committed
feat(openapi.json): Update JSON schema and add PaymentsPaginatedResponse object
This commit makes changes to the openapi.json file, specifically updating the JSON schema and introducing a new 'PaymentsPaginatedResponse' object. It includes modifications to field descriptions, the addition of required fields, and the definition of a new response object for paginated payments data.
1 parent 1aa91c8 commit bf0895f

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

openapi.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10600,7 +10600,7 @@
1060010600
},
1060110601
"minutesOverageCost": {
1060210602
"type": "number",
10603-
"description": "The cost of minutes over the included amount. Enterprise only."
10603+
"description": "The per minute charge on minutes that exceed the included minutes. Enterprise only."
1060410604
},
1060510605
"providersIncluded": {
1060610606
"description": "The list of providers included in the subscription. Enterprise only.",
@@ -10693,6 +10693,24 @@
1069310693
"subscriptionId"
1069410694
]
1069510695
},
10696+
"PaymentsPaginatedResponse": {
10697+
"type": "object",
10698+
"properties": {
10699+
"results": {
10700+
"type": "array",
10701+
"items": {
10702+
"$ref": "#/components/schemas/Payment"
10703+
}
10704+
},
10705+
"metadata": {
10706+
"$ref": "#/components/schemas/PaginationMeta"
10707+
}
10708+
},
10709+
"required": [
10710+
"results",
10711+
"metadata"
10712+
]
10713+
},
1069610714
"SubscriptionMonthlyCharge": {
1069710715
"type": "object",
1069810716
"properties": {
@@ -19785,6 +19803,14 @@
1978519803
"vapi"
1978619804
]
1978719805
},
19806+
"subType": {
19807+
"type": "string",
19808+
"description": "This is the sub type of the cost.",
19809+
"enum": [
19810+
"normal",
19811+
"overage"
19812+
]
19813+
},
1978819814
"minutes": {
1978919815
"type": "number",
1979019816
"description": "This is the minutes of Vapi usage. This should match `call.endedAt` - `call.startedAt`."
@@ -19796,6 +19822,7 @@
1979619822
},
1979719823
"required": [
1979819824
"type",
19825+
"subType",
1979919826
"minutes",
1980019827
"cost"
1980119828
]

0 commit comments

Comments
 (0)