Skip to content

Commit fb11bf7

Browse files
committed
wip
1 parent 127620b commit fb11bf7

1 file changed

Lines changed: 103 additions & 2 deletions

File tree

openapi.json

Lines changed: 103 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,88 @@
917917
}
918918
}
919919
},
920-
"/starteam": {},
920+
"/starteam": {
921+
"post": {
922+
"tags": [
923+
"Transaction"
924+
],
925+
"summary": "Start an EAM transaction",
926+
"description": "Start an EAM transaction using the given parameters",
927+
"operationId": "starteam",
928+
"parameters": [
929+
{
930+
"$ref": "#/components/parameters/Signature"
931+
}
932+
],
933+
"requestBody": {
934+
"description": "The EAM transaction object you would like to start.",
935+
"required": true,
936+
"content": {
937+
"application/json": {
938+
"schema": {
939+
"$ref": "#/components/schemas/EamTransaciton"
940+
}
941+
}
942+
}
943+
},
944+
"responses": {
945+
"200": {
946+
"description": "Success response",
947+
"headers": {
948+
"Signature": {
949+
"$ref": "#/components/headers/Signature"
950+
}
951+
},
952+
"content": {
953+
"application/json": {
954+
"schema": {
955+
"properties": {
956+
"salt": {
957+
"type": "string",
958+
"example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl"
959+
},
960+
"merchant": {
961+
"type": "string",
962+
"example": "PUBLICTESTHUF"
963+
},
964+
"orderRef": {
965+
"$ref": "#/components/schemas/OrderRef"
966+
},
967+
"currency": {
968+
"$ref": "#/components/schemas/Currency"
969+
},
970+
"transactionId": {
971+
"$ref": "#/components/schemas/TransactionId"
972+
},
973+
"timeout": {
974+
"type": "string",
975+
"description": "The ISO 8601 format of the timeout date.",
976+
"example": "2004-02-12T15:19:21+00:00"
977+
},
978+
"total": {
979+
"type": "number",
980+
"example": 25.0
981+
},
982+
"eam": {
983+
"type": "string",
984+
"example": "https://sandbox.simplepay.hu/pay/pay/pspHU/8f4oKRec5R1B696xlxbOcj1jRhhABA2pwSLQDPW60zoGSDWzDU",
985+
"description": "The deeplink."
986+
},
987+
"tokens": {
988+
"type": "array",
989+
"items": {
990+
"$ref": "#/components/schemas/Token"
991+
},
992+
"description": "The recurring payment tokens. Provided only for the initial recurring payment."
993+
}
994+
}
995+
}
996+
}
997+
}
998+
}
999+
}
1000+
}
1001+
},
9211002
"/startapplepay": {},
9221003
"/doapplepay": {}
9231004
},
@@ -1515,9 +1596,29 @@
15151596
],
15161597
"properties": {
15171598
"token": {
1518-
"$ref": "#/components/schemas/TransactionId"
1599+
"$ref": "#/components/schemas/Token"
15191600
}
15201601
}
1602+
},
1603+
"EamTransaciton": {
1604+
"allOf": [
1605+
{
1606+
"$ref": "#/components/schemas/Transaction"
1607+
},
1608+
{
1609+
"type": "object",
1610+
"required": [
1611+
"eamType"
1612+
],
1613+
"properties": {
1614+
"eamType": {
1615+
"type": "integer",
1616+
"enum": [1, 2, 3, 4, 5, 6, 7],
1617+
"description": "1: QR, 2: Deeplink, 3: NFC, 4: QR+ Deeplink, 5: QR+NFC, 6: Deeplink +NFC, 7: QR+DL+NFC"
1618+
}
1619+
}
1620+
}
1621+
]
15211622
}
15221623
}
15231624
}

0 commit comments

Comments
 (0)