Skip to content

Commit 67699d4

Browse files
authored
Update openapi.yaml
1 parent 23e549a commit 67699d4

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

openapi/openapi.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4599,6 +4599,7 @@
45994599
"x-internal": false,
46004600
"properties": {
46014601
"discount_type": {
4602+
"$anchor": "discount_type",
46024603
"type": "string",
46034604
"enum": [
46044605
"percentage",
@@ -4784,6 +4785,7 @@
47844785
"description": "The number of credits to effect. Note that this is required for increment or decrement operations."
47854786
},
47864787
"entry_type": {
4788+
"$anchor": "entry_type",
47874789
"type": "string",
47884790
"enum": [
47894791
"increment",
@@ -4871,6 +4873,7 @@
48714873
"description": "How many terms of length `duration_unit` this phase is active for. If null, this phase is evergreen and active indefinitely"
48724874
},
48734875
"duration_unit": {
4876+
"$anchor": "duration_unit",
48744877
"type": "string",
48754878
"enum": [
48764879
"monthly",
@@ -4941,6 +4944,14 @@
49414944
}
49424945
}
49434946
},
4947+
"TransactionType": {
4948+
"$anchor": "transaction_type",
4949+
"type": "string",
4950+
"enum": [
4951+
"increment",
4952+
"decrement"
4953+
]
4954+
},
49444955
"NewTransaction": {
49454956
"type": "object",
49464957
"properties": {
@@ -4950,11 +4961,7 @@
49504961
"minLength": 1
49514962
},
49524963
"type": {
4953-
"type": "string",
4954-
"enum": [
4955-
"increment",
4956-
"decrement"
4957-
]
4964+
"$ref": "#/components/schemas/TransactionType"
49584965
},
49594966
"description": {
49604967
"type": "string",
@@ -5006,6 +5013,7 @@
50065013
"minLength": 1
50075014
},
50085015
"action": {
5016+
"$anchor": "action_type",
50095017
"type": "string",
50105018
"description": "Describes the reason that this transaction took place.",
50115019
"enum": [
@@ -5041,11 +5049,7 @@
50415049
}
50425050
},
50435051
"type": {
5044-
"type": "string",
5045-
"enum": [
5046-
"increment",
5047-
"decrement"
5048-
]
5052+
"$ref": "#/components/schemas/TransactionType"
50495053
},
50505054
"credit_note": {
50515055
"type": [
@@ -5213,6 +5217,7 @@
52135217
"type": "string"
52145218
},
52155219
"status": {
5220+
"$anchor": "backfill_status",
52165221
"type": "string",
52175222
"x-stoplight": {
52185223
"id": "s3wf6ze54xok9"
@@ -5403,6 +5408,7 @@
54035408
"description": "An optional memo supplied on the credit note."
54045409
},
54055410
"reason": {
5411+
"$anchor": "credit_note_reason",
54065412
"type": "string",
54075413
"x-stoplight": {
54085414
"id": "aeejptd44bpkq"

0 commit comments

Comments
 (0)