Skip to content

Commit c03cad1

Browse files
committed
wip
1 parent 78d8921 commit c03cad1

File tree

1 file changed

+185
-6
lines changed

1 file changed

+185
-6
lines changed

openapi.json

Lines changed: 185 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@
382382
"$ref": "#/components/schemas/TransactionId"
383383
},
384384
"status": {
385-
"$ref": "#/components/schemas/Status"
385+
"$ref": "#/components/schemas/TransactionStatus"
386386
},
387387
"resultCode": {
388388
"type": "string",
@@ -410,7 +410,7 @@
410410
"example": "2004-02-12T15:19:21+00:00"
411411
},
412412
"status": {
413-
"$ref": "#/components/schemas/Status"
413+
"$ref": "#/components/schemas/TransactionStatus"
414414
}
415415
}
416416
}
@@ -490,7 +490,7 @@
490490
"$ref": "#/components/schemas/OrderRef"
491491
},
492492
"status": {
493-
"$ref": "#/components/schemas/Status"
493+
"$ref": "#/components/schemas/TransactionStatus"
494494
},
495495
"transactionId": {
496496
"$ref": "#/components/schemas/TransactionId"
@@ -638,8 +638,157 @@
638638
}
639639
}
640640
},
641-
"/cardcancel": {},
642-
"/cardquery": {},
641+
"/cardquery": {
642+
"post": {
643+
"tags": [
644+
"Card"
645+
],
646+
"summary": "Query a saved card",
647+
"description": "Get the info about a saved bankcard",
648+
"operationId": "query",
649+
"parameters": [
650+
{
651+
"$ref": "#/components/parameters/Signature"
652+
}
653+
],
654+
"requestBody": {
655+
"description": "The card object you would query.",
656+
"required": true,
657+
"content": {
658+
"application/json": {
659+
"schema": {
660+
"$ref": "#/components/schemas/CardQuery"
661+
}
662+
}
663+
}
664+
},
665+
"responses": {
666+
"200": {
667+
"description": "Success response",
668+
"headers": {
669+
"Signature": {
670+
"$ref": "#/components/headers/Signature"
671+
}
672+
},
673+
"content": {
674+
"application/json": {
675+
"schema": {
676+
"properties": {
677+
"salt": {
678+
"type": "string",
679+
"example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl"
680+
},
681+
"merchant": {
682+
"type": "string",
683+
"example": "PUBLICTESTHUF"
684+
},
685+
"cardId": {
686+
"$ref": "#/components/schemas/TransactionId"
687+
},
688+
"status": {
689+
"$ref": "#/components/schemas/CardStatus"
690+
},
691+
"expiry": {
692+
"type": "string",
693+
"description": "The ISO 8601 format of the card expiry date.",
694+
"example": "2004-02-12T15:19:21+00:00"
695+
},
696+
"history": {
697+
"type": "array",
698+
"items": {
699+
"orerRef": {
700+
"$ref": "#/components/schemas/OrderRef"
701+
},
702+
"transactionId": {
703+
"$ref": "#/components/schemas/TansactionId"
704+
},
705+
"status": {
706+
"$ref": "#/components/schemas/TransactionStatus"
707+
},
708+
"paymentDate": {
709+
"type": "string",
710+
"description": "The ISO 8601 format of the payment date.",
711+
"example": "2004-02-12T15:19:21+00:00"
712+
},
713+
"finishDate": {
714+
"type": "string",
715+
"description": "The ISO 8601 format of the finish date.",
716+
"example": "2004-02-12T15:19:21+00:00"
717+
}
718+
}
719+
}
720+
}
721+
}
722+
}
723+
}
724+
}
725+
}
726+
}
727+
},
728+
"/cardcancel": {
729+
"post": {
730+
"tags": [
731+
"Card"
732+
],
733+
"summary": "Cancel a saved card",
734+
"description": "Cancel a saved bankcard",
735+
"operationId": "cancel",
736+
"parameters": [
737+
{
738+
"$ref": "#/components/parameters/Signature"
739+
}
740+
],
741+
"requestBody": {
742+
"description": "The card object you would cancel.",
743+
"required": true,
744+
"content": {
745+
"application/json": {
746+
"schema": {
747+
"$ref": "#/components/schemas/CardCancel"
748+
}
749+
}
750+
}
751+
},
752+
"responses": {
753+
"200": {
754+
"description": "Success response",
755+
"headers": {
756+
"Signature": {
757+
"$ref": "#/components/headers/Signature"
758+
}
759+
},
760+
"content": {
761+
"application/json": {
762+
"schema": {
763+
"properties": {
764+
"salt": {
765+
"type": "string",
766+
"example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl"
767+
},
768+
"merchant": {
769+
"type": "string",
770+
"example": "PUBLICTESTHUF"
771+
},
772+
"cardId": {
773+
"$ref": "#/components/schemas/TransactionId"
774+
},
775+
"status": {
776+
"$ref": "#/components/schemas/CardStatus"
777+
},
778+
"expiry": {
779+
"type": "string",
780+
"description": "The ISO 8601 format of the card expiry date.",
781+
"example": "2004-02-12T15:19:21+00:00"
782+
}
783+
}
784+
}
785+
}
786+
}
787+
}
788+
}
789+
}
790+
},
791+
"/tokenquery": {},
643792
"/tokencancel": {},
644793
"/starteam": {},
645794
"/startapplepay": {},
@@ -900,7 +1049,7 @@
9001049
"CARD", "EAM", "WIRE"
9011050
]
9021051
},
903-
"Status": {
1052+
"TransactionStatus": {
9041053
"type": "string",
9051054
"enum": [
9061055
"INIT", "TIMEOUT", "CANCELLED", "NOTAUTHORIZED", "INPAYMENT", "INFRAUD", "AUTHORIZED", "REVERSED", "FINISHED"
@@ -1186,6 +1335,36 @@
11861335
"TransactionType": {
11871336
"type": "string",
11881337
"enum": ["CIT", "MIT"]
1338+
},
1339+
"CardStatus": {
1340+
"type": "string",
1341+
"enum": ["ACTIVE", "DISABLED"]
1342+
},
1343+
"CardQuery": {
1344+
"type": "object",
1345+
"required": [
1346+
"cardId"
1347+
],
1348+
"properties": {
1349+
"cardId": {
1350+
"$ref": "#/components/schemas/TransactionId"
1351+
},
1352+
"history": {
1353+
"type": "boolean",
1354+
"default": false
1355+
}
1356+
}
1357+
},
1358+
"CardCancel": {
1359+
"type": "object",
1360+
"required": [
1361+
"cardId"
1362+
],
1363+
"properties": {
1364+
"cardId": {
1365+
"$ref": "#/components/schemas/TransactionId"
1366+
}
1367+
}
11891368
}
11901369
}
11911370
}

0 commit comments

Comments
 (0)