Skip to content

Commit bf2b48d

Browse files
committed
wip
1 parent b3a8d0e commit bf2b48d

1 file changed

Lines changed: 76 additions & 1 deletion

File tree

openapi.json

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,67 @@
443443
}
444444
}
445445
},
446-
"/transactioncancel": {},
446+
"/transactioncancel": {
447+
"post": {
448+
"tags": [
449+
"Transaction"
450+
],
451+
"summary": "Cancel a transaction",
452+
"description": "Cancel an init-ed transaction.",
453+
"operationId": "transactioncancel",
454+
"parameters": [
455+
{
456+
"$ref": "#/components/parameters/Signature"
457+
}
458+
],
459+
"requestBody": {
460+
"description": "The cancel object.",
461+
"required": true,
462+
"content": {
463+
"application/json": {
464+
"schema": {
465+
"$ref": "#/components/schemas/TransactionCancel"
466+
}
467+
}
468+
}
469+
},
470+
"responses": {
471+
"200": {
472+
"description": "Success response",
473+
"headers": {
474+
"Signature": {
475+
"$ref": "#/components/headers/Signature"
476+
}
477+
},
478+
"content": {
479+
"application/json": {
480+
"schema": {
481+
"properties": {
482+
"salt": {
483+
"type": "string",
484+
"example": "KAC6ZRUacmQit98nFKOpjXgkwdC0Grzl"
485+
},
486+
"merchant": {
487+
"type": "string",
488+
"example": "PUBLICTESTHUF"
489+
},
490+
"orderRef": {
491+
"$ref": "#/components/schemas/OrderRef"
492+
},
493+
"status": {
494+
"$ref": "#/components/schemas/Status"
495+
},
496+
"transactionId": {
497+
"$ref": "#/components/schemas/TransactionId"
498+
}
499+
}
500+
}
501+
}
502+
}
503+
}
504+
}
505+
}
506+
},
447507
"/do": {},
448508
"/dorecurring": {},
449509
"/cardcancel": {},
@@ -646,6 +706,21 @@
646706
}
647707
}
648708
},
709+
"TransactionCancel": {
710+
"type": "object",
711+
"required": [
712+
"transactionId",
713+
"currency"
714+
],
715+
"properties": {
716+
"transactionId": {
717+
"$ref": "#/components/schemas/TransactionId"
718+
},
719+
"currency": {
720+
"$ref": "#/components/schemas/Currency"
721+
}
722+
}
723+
},
649724
"Query": {
650725
"type": "object",
651726
"required": [

0 commit comments

Comments
 (0)