Updated example request/response.

This commit is contained in:
Bas Boterman 2024-09-19 13:13:24 +02:00
parent 0e58033afe
commit 0b0adc37a2

View File

@ -27,7 +27,7 @@ paths:
$ref: "#/components/schemas/unavailable" $ref: "#/components/schemas/unavailable"
example: example:
{ {
"purchaseDate": "2024-03-01", "purchaseDate": "2024-03-22",
"touchPointId": 1, "touchPointId": 1,
"customerProfileId": 1, "customerProfileId": 1,
"contents": "contents":
@ -44,12 +44,12 @@ paths:
"amount": 34, "amount": 34,
"ovpasNumber": "OV34567", "ovpasNumber": "OV34567",
"verifcationCode": "A7H6", "verifcationCode": "A7H6",
"startDate": "2024-03-22T09:00:00z", "startDate": "2024-03-22",
}, },
"tapconnectProduct": "tapconnectProduct":
{ {
"ticketLanguage": "NL", "ticketLanguage": "NL",
"validityStart": "2024-03-03", "validityStart": "2024-03-22",
"validityStartTime": "10:30", "validityStartTime": "10:30",
}, },
}, },
@ -66,12 +66,12 @@ paths:
"amount": 34, "amount": 34,
"ovpasNumber": "OV34567", "ovpasNumber": "OV34567",
"verifcationCode": "A7H6", "verifcationCode": "A7H6",
"startDate": "2024-03-22T09:00:00z", "startDate": "2024-03-22",
}, },
"tapconnectProduct": "tapconnectProduct":
{ {
"ticketLanguage": "NL", "ticketLanguage": "NL",
"validityStart": "2024-03-03", "validityStart": "2024-03-22",
"validityStartTime": "10:30", "validityStartTime": "10:30",
}, },
}, },
@ -91,7 +91,7 @@ paths:
"amountExclTax": 200, "amountExclTax": 200,
"taxPercentage": 21, "taxPercentage": 21,
"amountInclTax": 242, "amountInclTax": 242,
"purchaseDate": 1970-01-01, "purchaseDate": "2024-03-22",
"touchPointId": 1, "touchPointId": 1,
"customerProfileId": 1, "customerProfileId": 1,
"contents": "contents":
@ -111,17 +111,17 @@ paths:
"amount": 34, "amount": 34,
"ovpasNumber": "OV34567", "ovpasNumber": "OV34567",
"verifcationCode": "A7H6", "verifcationCode": "A7H6",
"startDate": "2024-03-22T09:00:00z", "startDate": "2024-03-22",
"endDate": "string", "endDate": null,
"isRenewable": true, "isRenewable": true,
"nextDebitDate": "string", "nextDebitDate": "2024-04-22",
"termAmountExclTax": 0, "termAmountExclTax": 100,
"termAmountInclTax": 0, "termAmountInclTax": 121,
}, },
"tapconnectProduct": "tapconnectProduct":
{ {
"ticketLanguage": "NL", "ticketLanguage": "NL",
"validityStart": "2020-03-03", "validityStart": "2020-03-22",
"validityStartTime": "10:30", "validityStartTime": "10:30",
}, },
}, },
@ -144,11 +144,11 @@ paths:
[ [
{ {
"detail": "Startdate of this product should be at most 60 days in the future.", "detail": "Startdate of this product should be at most 60 days in the future.",
"pointer": "#/0/startDate", "pointer": "#/contents[0]/personalization/gboProduct/startDate",
}, },
{ {
"detail": "Combination of product and token type is not valid.", "detail": "Combination of product and token type is not valid.",
"pointer": "#/1/ovPayTokenId", "pointer": "#/contents[0]/personalization/gboProduct/ovPayTokenId",
}, },
], ],
}, },
@ -167,17 +167,17 @@ paths:
"amount": 34, "amount": 34,
"ovpasNumber": "OV34567", "ovpasNumber": "OV34567",
"verifcationCode": "A7H6", "verifcationCode": "A7H6",
"startDate": "2024-03-22T09:00:00z", "startDate": "2024-03-22",
"endDate": "string", "endDate": null,
"isRenewable": true, "isRenewable": true,
"nextDebitDate": "string", "nextDebitDate": "2024-04-22",
"termAmountExclTax": 0, "termAmountExclTax": 100,
"termAmountInclTax": 0, "termAmountInclTax": 121,
}, },
"tapconnectProduct": "tapconnectProduct":
{ {
"ticketLanguage": "NL", "ticketLanguage": "NL",
"validityStart": "2020-03-03", "validityStart": "2020-03-22",
"validityStartTime": "10:30", "validityStartTime": "10:30",
}, },
}, },
@ -200,11 +200,11 @@ paths:
[ [
{ {
"detail": "Startdate of this product should be at most 60 days in the future.", "detail": "Startdate of this product should be at most 60 days in the future.",
"pointer": "#/0/startDate", "pointer": "#/contents[1]/personalization/gboProduct/startDate",
}, },
{ {
"detail": "Combination of product and token type is not valid.", "detail": "Combination of product and token type is not valid.",
"pointer": "#/1/ovPayTokenId", "pointer": "#/contents[1]/personalization/gboProduct/ovPayTokenId",
}, },
], ],
}, },