-
-
Save jasminsuljic/d1f0702371e16c91f5d6785826ce4ecb 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
{ | |
"type":"object", | |
"$schema":"http://json-schema.org/draft-04/schema#", | |
"description":"Add card model", | |
"title": "AddCard", | |
"required":[ | |
"merchant_id", | |
"order_number", | |
"amount", | |
"currency", | |
"client_secret", | |
"auth_token", | |
"client", | |
"digest" | |
], | |
"properties":{ | |
"merchant_id":{ | |
"type":"string", | |
"minLength":12, | |
"maxLength":12 | |
}, | |
"order_info":{ | |
"type":"string", | |
"minLength":3, | |
"maxLength":100, | |
"description":"short description of order being processed" | |
}, | |
"order_number":{ | |
"type":"string", | |
"minLength":1, | |
"maxLength":40, | |
"description":"unique identifier" | |
}, | |
"sign":{ | |
"type":"string" | |
}, | |
"amount":{ | |
"type":"string", | |
"description":"amount is in minor units, ie. 10.24 USD is sent as 1024" | |
}, | |
"currency":{ | |
"type":"string", | |
"minLength":3, | |
"maxLength":3, | |
"enum":[ | |
"USD", | |
"EUR", | |
"BAM", | |
"HRK" | |
] | |
}, | |
"client_secret":{ | |
"type":"string" | |
}, | |
"auth_token": { | |
"type": "string", | |
"minLength": 32, | |
"maxLength": 32 | |
}, | |
"client":{ | |
"type": "string" | |
}, | |
"digest":{ | |
"type": "string" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment