Last active
August 14, 2019 02:26
-
-
Save DickSwart/e830d75ca69e11c6c8348899f0192213 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"openapi": "3.0.0", | |
"info": { | |
"version": "1.0.0", | |
"title": "CCMS Internal API (dev01)", | |
"description": "API used internally by CCMS (D365 CE)", | |
"contact": { | |
"name": "CCMS Team (Te Ara Manaaki Program)", | |
"url": "https://dev.azure.com/sdo-online/Te%20Ara%20Manaaki" | |
} | |
}, | |
"servers": [ | |
{ | |
"url": "https://glb-diagovtnz-nprd01-frd.azurefd.net/ccms/dev01" | |
} | |
], | |
"paths": { | |
"/v2/infinity/payment-processing": { | |
"post": { | |
"summary": "Process payment to Infinity.", | |
"description": "Send payment to Infinity.", | |
"operationId": "infinity-payment-processing-v2", | |
"tags": [ | |
"v2" | |
], | |
"security": [ | |
{ | |
"oAuth2ClientCredentials": [] | |
} | |
], | |
"requestBody": { | |
"required": true, | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/PaymentRequest" | |
} | |
} | |
} | |
}, | |
"responses": { | |
"200": { | |
"description": "OK.", | |
"content": { | |
"application/json": { | |
"schema": { | |
"$ref": "#/components/schemas/PaymentResponse" | |
} | |
} | |
} | |
}, | |
"400": { | |
"description": "Bab Request." | |
}, | |
"401": { | |
"description": "Unauthorized." | |
}, | |
"500": { | |
"description": "Internal Server Error." | |
}, | |
"503": { | |
"description": "Service Unavailable." | |
} | |
} | |
} | |
} | |
}, | |
"components": { | |
"securitySchemes": { | |
"oAuth2ClientCredentials": { | |
"type": "oauth2", | |
"flows": { | |
"clientCredentials": { | |
"tokenUrl": "https://login.microsoftonline.com/f659ca5c-fc47-4e96-b24d-14c95df13acb/oauth2/token", | |
"scopes": {} | |
} | |
} | |
} | |
}, | |
"schemas": { | |
"PaymentRequest": { | |
"description": "The information to send to Infinity payment.", | |
"properties": { | |
"RequestUri": { | |
"description": "the infinity payment url.", | |
"type": "string", | |
"example": "https://payment-processing.qa.dia.govt.nz/InfinityOrders/InfinityOrders.svc" | |
}, | |
"RequestHeader": { | |
"description": "the infinity payment headers.", | |
"type": "string", | |
"example": "SOAPAction:http://infinity.triquestra.com/orders/IInfinityOrders/InsertOrder" | |
}, | |
"RequestBody": { | |
"description": "the infinity payment body.", | |
"type": "string", | |
"example": "<?xml version=\"\"1.0\"\" encoding=\"\"UTF-8\"\"?> <soapenv:Envelope xmlns:soapenv=\"\"http://schemas.xmlsoap.org/soap/envelope/\"\" xmlns:ord=\"\"http://infinity.triquestra.com/schema/ordermessage\"\" xmlns:ord1=\"\"http://infinity.triquestra.com/schema/orderdata\"\"> <soapenv:Header> <wsse:Security xmlns:wsse=\"\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\"\"> <wsse:UsernameToken xmlns:wsu=\"\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\"\" wsu:Id=\"\"UsernameToken-1\"\"> <wsse:Username>Admin</wsse:Username> <wsse:Password Type=\"\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText\"\">DIAp0o9i8u7!</wsse:Password> <wsu:Created>{{currentTime}}</wsu:Created> </wsse:UsernameToken> </wsse:Security> </soapenv:Header> <soapenv:Body> <ord:insertOrderRequest> <ord1:orderHeader> <ord1:customerDetails> <ord1:firstName>123456789A123456789B123456789C123456789D123456789E</ord1:firstName> <ord1:lastName>123456789A123456789B123456789C123456789D123456789E</ord1:lastName> <ord1:address1>16 October Avenue</ord1:address1> <ord1:address2>1155 Hours</ord1:address2> <ord1:city>Porirua</ord1:city> <ord1:permanent>true</ord1:permanent> <ord1:customerType>Public</ord1:customerType> </ord1:customerDetails> <ord1:customerReference>0</ord1:customerReference> <ord1:deliveryDetails> <ord1:deliveryName>Jim</ord1:deliveryName> <ord1:deliveryStreetAddress>1 Test Street</ord1:deliveryStreetAddress> <ord1:deliverySuburb>Whitby</ord1:deliverySuburb> <ord1:city>Porirua</ord1:city> <ord1:deliveryOption>Normal</ord1:deliveryOption> </ord1:deliveryDetails> <ord1:applicationNote>Note from Jim AFTER</ord1:applicationNote> <ord1:overseasOrder>false</ord1:overseasOrder> <ord1:location>5</ord1:location> <ord1:userID>Jim Upgrade</ord1:userID> <ord1:applicationSource>On-Line</ord1:applicationSource> <ord1:computerLocation>2</ord1:computerLocation> </ord1:orderHeader> <ord:orderLines> <ord1:UPC>ZBBD</ord1:UPC> <ord1:qty>1</ord1:qty> <ord1:orderStatus>H</ord1:orderStatus> <ord1:lineNumber>1</ord1:lineNumber> <ord1:genericFields> <ord1:eventDateFrom>2018-09-12T00:00:00+12:00</ord1:eventDateFrom> <ord1:placeOfEvent>North Shore Hospital Auckland</ord1:placeOfEvent> <ord1:registrationNumber>2018/777000</ord1:registrationNumber> <ord1:fathersSurname>Towler</ord1:fathersSurname> <ord1:fathersGivenNames>Dad</ord1:fathersGivenNames> <ord1:personSurname>Towler</ord1:personSurname> <ord1:personGivenNames>Son</ord1:personGivenNames> </ord1:genericFields> <ord1:categoryId>0</ord1:categoryId> </ord:orderLines> <ord:orderPayments> <ord1:amount>35.00</ord1:amount> <ord1:paymentID>10</ord1:paymentID> <ord1:paymentRef1>411111........11</ord1:paymentRef1> <ord1:paymentRef2>0000000b09991155</ord1:paymentRef2> </ord:orderPayments> </ord:insertOrderRequest> </soapenv:Body> </soapenv:Envelope>" | |
} | |
} | |
}, | |
"PaymentResponse": { | |
"description": "The Infinity payment response.", | |
"properties": { | |
"ResponseCode": { | |
"description": "the infinity payment response code.", | |
"type": "string", | |
"example": 5000 | |
}, | |
"ResponseMessage": { | |
"description": "the infinity payment response message.", | |
"type": "string", | |
"example": "DuplicateOrder" | |
}, | |
"ReceiptNumber": { | |
"description": "the infinity payment response number.", | |
"type": "string", | |
"example": "0050020000979" | |
} | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment