-
-
Save jasminsuljic/ec63e345dd7a39248f5cdd9d45130529 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":"Pay cvv model", | |
"title": "PayCvv", | |
"required":[ | |
"merchant_id", | |
"order_number", | |
"amount", | |
"currency", | |
"client_secret", | |
"auth_token", | |
"client", | |
"pm_alias", | |
"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" | |
}, | |
"pm_alias":{ | |
"type": "string", | |
"minLength": 40, | |
"maxLength": 100 | |
}, | |
"digest":{ | |
"type": "string" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment