Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Commit

Permalink
added corrections into the order_payment schema
Browse files Browse the repository at this point in the history
  • Loading branch information
source-c committed May 27, 2020
1 parent 4db95e3 commit d6b95ba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion edi/json-schema/order_payment.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
},
"amount": {
"type": ["string", "number"],
"description": "Transaction money total",
"description": "Transaction money total. Unsigned value.",
"pattern": "^[0-9]{1,5}(\\.[0-9]{1,2})?$",
"maximum": 100000,
"minimum": 0
Expand All @@ -60,6 +60,17 @@
"comment": {
"type": "string",
"description": "Additional info"
},
"operation": {
"type": "string",
"description": "Payment operation type. 'payment' meaning is always positive, 'correction' meaning is always negative.",
"enum": ["payment","correction"],
"default": "payment"
},
"correction_id":{
"type": "string",
"description": "Optionally identifies correction",
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
}
}
}

0 comments on commit d6b95ba

Please sign in to comment.