Compare commits
No commits in common. "76f6ed9c9f49e041b6a557ddd780ee2c193d739a" and "e6b34176c2d9e82990c403e4e3d17266e8617582" have entirely different histories.
76f6ed9c9f
...
e6b34176c2
@ -80,11 +80,7 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/unavailable"
|
$ref: "#/components/schemas/unavailable"
|
||||||
examples:
|
example:
|
||||||
Empty list:
|
|
||||||
value: { "purchasedProducts": [], "href": null }
|
|
||||||
List with multiple purchased products:
|
|
||||||
value:
|
|
||||||
{
|
{
|
||||||
"purchasedProducts":
|
"purchasedProducts":
|
||||||
[
|
[
|
||||||
@ -98,10 +94,7 @@ paths:
|
|||||||
{
|
{
|
||||||
"purchasedProductResourceId": "c7900130-0637-41d7-83fe-6fe283a0a1f1",
|
"purchasedProductResourceId": "c7900130-0637-41d7-83fe-6fe283a0a1f1",
|
||||||
"resourceName":
|
"resourceName":
|
||||||
{
|
{ "resourceNameId": 1, "name": "contracts" },
|
||||||
"resourceNameId": 1,
|
|
||||||
"name": "contracts",
|
|
||||||
},
|
|
||||||
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -131,114 +124,6 @@ paths:
|
|||||||
"lastUpdatedBy": null,
|
"lastUpdatedBy": null,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"purchasedTapconnectTickets": [],
|
|
||||||
"issuedVouchers": [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"purchasedProductId": "599f1296-ed56-4b90-a518-5c8e917a7dd6",
|
|
||||||
"productId": 12,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"purchasedProductResources":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"purchasedProductResourceId": "c7900130-0637-41d7-83fe-6fe283a0a1f1",
|
|
||||||
"resourceName":
|
|
||||||
{
|
|
||||||
"resourceNameId": 1,
|
|
||||||
"name": "contracts",
|
|
||||||
},
|
|
||||||
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"purchasedProductResourceId": "06dae996-cdfe-45f1-833a-720201c35114",
|
|
||||||
"resourceName":
|
|
||||||
{ "resourceNameId": 2, "name": "orders" },
|
|
||||||
"resourceIdentifier": "f809a6e1-1c8d-4f8e-8a6e-0d0b1e1e1e1e",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"purchasedGboProducts": [],
|
|
||||||
"purchasedTapconnectTickets":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"purchasedTapconnectTicketId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
|
|
||||||
"issuedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"activatedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"cancelledAt": null,
|
|
||||||
"ticketReference": "KJj43nejhbTxhr897287",
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"createdBy": "user",
|
|
||||||
"lastUpdatedBy": "user",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"issuedVouchers": [],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"purchasedProductId": "2c97c451-3bd5-467b-8db0-fd3a04fe5bc6",
|
|
||||||
"productId": 12,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"purchasedProductResources":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"purchasedProductResourceId": "c7900130-0637-41d7-83fe-6fe283a0a1f1",
|
|
||||||
"resourceName":
|
|
||||||
{
|
|
||||||
"resourceNameId": 1,
|
|
||||||
"name": "contracts",
|
|
||||||
},
|
|
||||||
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"purchasedProductResourceId": "06dae996-cdfe-45f1-833a-720201c35114",
|
|
||||||
"resourceName":
|
|
||||||
{ "resourceNameId": 2, "name": "orders" },
|
|
||||||
"resourceIdentifier": "f809a6e1-1c8d-4f8e-8a6e-0d0b1e1e1e1e",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"purchasedGboProducts": [],
|
|
||||||
"purchasedTapconnectTickets": [],
|
|
||||||
"issuedVouchers":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"issuedVoucherId": "e1f2g3h4-i5j6-k7l8-m9n0-o1p2q3r4s5t6",
|
|
||||||
"voucherCode": "VOUCHER12345",
|
|
||||||
"voucherStatusInstances":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherStatusInstanceId": "ac8c54d1-79f7-4167-8817-c66b9575d679",
|
|
||||||
"voucherStatus":
|
|
||||||
{
|
|
||||||
"voucherStatusId": 1,
|
|
||||||
"name": "New",
|
|
||||||
},
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"voucherStatusInstanceId": "b01412e6-70fb-4c05-9bef-e65bf2747ca1",
|
|
||||||
"voucherStatus":
|
|
||||||
{
|
|
||||||
"voucherStatusId": 2,
|
|
||||||
"name": "Issued",
|
|
||||||
},
|
|
||||||
"createdOn": "2024-10-04T12:37:14.000",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"voucherClaims":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherClaimId": "b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6",
|
|
||||||
"mandatoryCustomerDataItem":
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItemId": 8,
|
|
||||||
"name": "PadBirthdate",
|
|
||||||
},
|
|
||||||
"value": "1990-01-01",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"href": null,
|
"href": null,
|
||||||
@ -254,9 +139,7 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/unavailable"
|
$ref: "#/components/schemas/unavailable"
|
||||||
examples:
|
example:
|
||||||
Create Purchased GBO Product:
|
|
||||||
value:
|
|
||||||
{
|
{
|
||||||
"productId": 11,
|
"productId": 11,
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
"createdOn": "2024-10-04T12:34:56.000",
|
||||||
@ -291,85 +174,6 @@ paths:
|
|||||||
"lastUpdatedBy": null,
|
"lastUpdatedBy": null,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"purchasedTapconnectTickets": [],
|
|
||||||
"issuedVouchers": [],
|
|
||||||
}
|
|
||||||
Create Purchased TapConnet Ticket:
|
|
||||||
value:
|
|
||||||
{
|
|
||||||
"productId": 11,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"purchasedProductResources":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"resourceNameId": 1,
|
|
||||||
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceNameId": 2,
|
|
||||||
"resourceIdentifier": "f809a6e1-1c8d-4f8e-8a6e-0d0b1e1e1e1e",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"purchasedGboProducts": [],
|
|
||||||
"purchasedTapconnectTickets":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"issuedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"activatedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"cancelledAt": null,
|
|
||||||
"ticketReference": "KJj43nejhbTxhr897287",
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"createdBy": "user",
|
|
||||||
"lastUpdatedBy": "user",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"issuedVouchers": [],
|
|
||||||
}
|
|
||||||
Create Issued Voucher:
|
|
||||||
value:
|
|
||||||
{
|
|
||||||
"productId": 11,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"purchasedProductResources":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"resourceNameId": 1,
|
|
||||||
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceNameId": 2,
|
|
||||||
"resourceIdentifier": "f809a6e1-1c8d-4f8e-8a6e-0d0b1e1e1e1e",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"purchasedGboProducts": [],
|
|
||||||
"purchasedTapconnectTickets": [],
|
|
||||||
"issuedVouchers":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherCode": "VOUCHER123",
|
|
||||||
"voucherStatusInstances":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherStatusId": 1,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"voucherClaims":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItemId": 8,
|
|
||||||
"value": "1999-12-31",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItemId": 4,
|
|
||||||
"value": "vlad.harkonnen@househarkonnen.net",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
responses:
|
responses:
|
||||||
"201":
|
"201":
|
||||||
@ -402,9 +206,7 @@ paths:
|
|||||||
application/json:
|
application/json:
|
||||||
schema:
|
schema:
|
||||||
$ref: "#/components/schemas/unavailable"
|
$ref: "#/components/schemas/unavailable"
|
||||||
examples:
|
example:
|
||||||
Get Purchased GBO Product:
|
|
||||||
value:
|
|
||||||
{
|
{
|
||||||
"purchasedProductId": "a9b3dea5-fb8a-4b1e-9fe6-90cad31c0cfd",
|
"purchasedProductId": "a9b3dea5-fb8a-4b1e-9fe6-90cad31c0cfd",
|
||||||
"productId": 14,
|
"productId": 14,
|
||||||
@ -442,102 +244,6 @@ paths:
|
|||||||
"lastUpdatedBy": null,
|
"lastUpdatedBy": null,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
"purchasedTapconnectTickets": [],
|
|
||||||
"issuedVouchers": [],
|
|
||||||
}
|
|
||||||
Get Purchased Tapconnect Ticket:
|
|
||||||
value:
|
|
||||||
{
|
|
||||||
"purchasedProductId": "a9b3dea5-fb8a-4b1e-9fe6-90cad31c0cfd",
|
|
||||||
"productId": 14,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"purchasedProductResources":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"resourceName":
|
|
||||||
{ "resourceNameId": 1, "name": "contracts" },
|
|
||||||
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceName":
|
|
||||||
{ "resourceNameId": 2, "name": "orders" },
|
|
||||||
"resourceIdentifier": "f809a6e1-1c8d-4f8e-8a6e-0d0b1e1e1e1e",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"purchasedGboProducts": [],
|
|
||||||
"purchasedTapconnectTickets":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"purchasedTapconnectTicketId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
|
|
||||||
"issuedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"activatedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"cancelledAt": null,
|
|
||||||
"ticketReference": "KJj43nejhbTxhr897287",
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"createdBy": "user",
|
|
||||||
"lastUpdatedBy": "user",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"issuedVouchers": [],
|
|
||||||
}
|
|
||||||
Get Issued Voucher:
|
|
||||||
value:
|
|
||||||
{
|
|
||||||
"purchasedProductId": "a9b3dea5-fb8a-4b1e-9fe6-90cad31c0cfd",
|
|
||||||
"productId": 14,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"purchasedProductResources":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"resourceName":
|
|
||||||
{ "resourceNameId": 1, "name": "contracts" },
|
|
||||||
"resourceIdentifier": "408eefa9-b393-4bb3-8439-b2e51833abc7",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"resourceName":
|
|
||||||
{ "resourceNameId": 2, "name": "orders" },
|
|
||||||
"resourceIdentifier": "f809a6e1-1c8d-4f8e-8a6e-0d0b1e1e1e1e",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"purchasedGboProducts": [],
|
|
||||||
"purchasedTapconnectTickets": [],
|
|
||||||
"issuedVouchers":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"issuedVoucherId": "e1f2g3h4-i5j6-k7l8-m9n0-o1p2q3r4s5t6",
|
|
||||||
"voucherCode": "VOUCHER12345",
|
|
||||||
"voucherStatusInstances":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherStatusInstanceId": "ac8c54d1-79f7-4167-8817-c66b9575d679",
|
|
||||||
"voucherStatus":
|
|
||||||
{ "voucherStatusId": 1, "name": "New" },
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"voucherStatusInstanceId": "b01412e6-70fb-4c05-9bef-e65bf2747ca1",
|
|
||||||
"voucherStatus":
|
|
||||||
{ "voucherStatusId": 2, "name": "Issued" },
|
|
||||||
"createdOn": "2024-10-04T12:37:14.000",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"voucherClaims":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherClaimId": "b1c2d3e4-f5g6-h7i8-j9k0-l1m2n3o4p5q6",
|
|
||||||
"mandatoryCustomerDataItem":
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItemId": 8,
|
|
||||||
"name": "PadBirthdate",
|
|
||||||
},
|
|
||||||
"value": "1990-01-01",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
patch:
|
patch:
|
||||||
tags:
|
tags:
|
||||||
@ -892,416 +598,6 @@ paths:
|
|||||||
{
|
{
|
||||||
"purchasedGboProductId": "a9b3dea5-fb8a-4b1e-9fe6-90cad31c0cfd",
|
"purchasedGboProductId": "a9b3dea5-fb8a-4b1e-9fe6-90cad31c0cfd",
|
||||||
}
|
}
|
||||||
/purchasedproducts/{purchasedProductId}/purchasedTapconnectTicket:
|
|
||||||
parameters:
|
|
||||||
- in: path
|
|
||||||
name: purchasedProductId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: 058a1af7-897f-45d5-b691-9cc9161e387f
|
|
||||||
required: true
|
|
||||||
description: The id of the purchased product to process.
|
|
||||||
post:
|
|
||||||
tags:
|
|
||||||
- Purchased Tapconnect Ticket
|
|
||||||
summary: Add a purchased Tapconnect ticket.
|
|
||||||
description: Add a purchased Tapconnect ticket.
|
|
||||||
requestBody:
|
|
||||||
required: true
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"issuedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"activatedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"cancelledAt": null,
|
|
||||||
"ticketReference": "KJj43nejhbTxhr897287",
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"createdBy": "user",
|
|
||||||
"lastUpdatedBy": "user",
|
|
||||||
}
|
|
||||||
responses:
|
|
||||||
"201":
|
|
||||||
description: Created
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"purchasedTapconnectTicketId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
|
|
||||||
}
|
|
||||||
/purchasedtapconnecttickets:
|
|
||||||
get:
|
|
||||||
tags:
|
|
||||||
- Purchased Tapconnect Ticket
|
|
||||||
summary: Find purchased Tapconnect tickets.
|
|
||||||
description: Find purchased Tapconnect tickets.
|
|
||||||
parameters:
|
|
||||||
- in: query
|
|
||||||
name: purchasedTapconnectTicketId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90
|
|
||||||
description: The id of the purchased Tapconnect ticket.
|
|
||||||
- in: query
|
|
||||||
name: purchasedProductId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: 058a1af7-897f-45d5-b691-9cc9161e387f
|
|
||||||
description: The id of the purchased product.
|
|
||||||
- in: query
|
|
||||||
name: issuedBefore
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The Tapconnect ticket should be issued before this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: issuedAfter
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The Tapconnect ticket should be issued after this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: activatedBefore
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The Tapconnect ticket should be activated before this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: activatedAfter
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The Tapconnect ticket should be activated after this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: cancelledBefore
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The Tapconnect ticket should be cancelled before this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: cancelledAfter
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The Tapconnect ticket should be cancelled after this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: ticketReference
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
example: KJj43nejhbTxhr897287
|
|
||||||
description: The reference of the Tapconnect ticket.
|
|
||||||
- in: query
|
|
||||||
name: createdBefore
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The purchased Tapconnect ticket should be created before this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: createdAfter
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The purchased Tapconnect ticket should be created after this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: lastUpdatedBefore
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The purchased Tapconnect ticket should be updated before this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: lastUpdatedAfter
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: date-time
|
|
||||||
example: 2024-10-04T12:34:56.000
|
|
||||||
description: The purchased Tapconnect ticket should be updated after this timestamp.
|
|
||||||
- in: query
|
|
||||||
name: createdBy
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
example: user
|
|
||||||
description: The user that created the purchased Tapconnect ticket.
|
|
||||||
- in: query
|
|
||||||
name: lastUpdatedBy
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
example: user
|
|
||||||
description: The user that last updated the purchased Tapconnect ticket.
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"purchasedTapconnectTickets":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"purchasedTapconnectTicketId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
|
|
||||||
"purchasedProductId": "058a1af7-897f-45d5-b691-9cc9161e387f",
|
|
||||||
"issuedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"activatedAt": "2024-10-04T12:34:56.000",
|
|
||||||
"cancelledAt": null,
|
|
||||||
"ticketReference": "KJj43nejhbTxhr897287",
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-04T12:34:56.000",
|
|
||||||
"createdBy": "user",
|
|
||||||
"lastUpdatedBy": "user",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
/purchasedtapconnecttickets/{purchasedTapconnectTicketId}:
|
|
||||||
parameters:
|
|
||||||
- in: path
|
|
||||||
name: purchasedTapconnectTicketId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90
|
|
||||||
required: true
|
|
||||||
description: The id of the purchased Tapconnect ticket to process.
|
|
||||||
patch:
|
|
||||||
tags:
|
|
||||||
- Purchased Tapconnect Ticket
|
|
||||||
summary: Update a purchased Tapconnect ticket.
|
|
||||||
description: Update a purchased Tapconnect ticket.
|
|
||||||
requestBody:
|
|
||||||
required: true
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"activatedAt": "2024-10-05T12:34:56.000",
|
|
||||||
"cancelledAt": "2024-10-06T12:34:56.000",
|
|
||||||
"lastUpdatedOn": "2024-10-05T12:34:56.000",
|
|
||||||
}
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"purchasedTapconnectTicketId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
|
|
||||||
}
|
|
||||||
/purchasedproducts/{purchasedProductId}/issuedvouchers:
|
|
||||||
parameters:
|
|
||||||
- in: path
|
|
||||||
name: purchasedProductId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: 058a1af7-897f-45d5-b691-9cc9161e387f
|
|
||||||
required: true
|
|
||||||
description: The id of the purchased product to process.
|
|
||||||
post:
|
|
||||||
tags:
|
|
||||||
- Issued Voucher
|
|
||||||
summary: Add an issued voucher.
|
|
||||||
description: Add an issued voucher.
|
|
||||||
requestBody:
|
|
||||||
required: true
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"voucherCode": "VOUCHER123",
|
|
||||||
"voucherStatusInstances":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherStatusId": 1,
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"voucherClaims":
|
|
||||||
[
|
|
||||||
{ "mandatoryCustomerDataItemId": 8, "value": "1999-12-31" },
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItemId": 4,
|
|
||||||
"value": "vlad.harkonnen@househarkonnen.net",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
responses:
|
|
||||||
"201":
|
|
||||||
description: Created
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{ "issuedVoucherId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90" }
|
|
||||||
/issuedvouchers:
|
|
||||||
get:
|
|
||||||
tags:
|
|
||||||
- Issued Voucher
|
|
||||||
summary: Find issued vouchers.
|
|
||||||
description: Find issued vouchers.
|
|
||||||
parameters:
|
|
||||||
- in: query
|
|
||||||
name: issuedVoucherId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90
|
|
||||||
description: The id of the issued voucher.
|
|
||||||
- in: query
|
|
||||||
name: purchasedProductId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: 058a1af7-897f-45d5-b691-9cc9161e387f
|
|
||||||
description: The id of the purchased product.
|
|
||||||
- in: query
|
|
||||||
name: voucherCode
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
example: VOUCHER123
|
|
||||||
description: The code of the voucher.
|
|
||||||
- in: query
|
|
||||||
name: voucherStatusId
|
|
||||||
schema:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
type: integer
|
|
||||||
explode: false
|
|
||||||
required: false
|
|
||||||
description: The moest recent status id of the voucher.
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"issuedVouchers":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"issuedVoucherId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
|
|
||||||
"purchasedProductId": "058a1af7-897f-45d5-b691-9cc9161e387f",
|
|
||||||
"voucherCode": "VOUCHER123",
|
|
||||||
"voucherStatusInstances":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"voucherStatusInstanceId": "ac8c54d1-79f7-4167-8817-c66b9575d679",
|
|
||||||
"voucherStatus":
|
|
||||||
{ "voucherStatusId": 1, "name": "New" },
|
|
||||||
"createdOn": "2024-10-04T12:34:56.000",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"voucherStatusInstanceId": "b01412e6-70fb-4c05-9bef-e65bf2747ca1",
|
|
||||||
"voucherStatus":
|
|
||||||
{ "voucherStatusId": 2, "name": "Issued" },
|
|
||||||
"createdOn": "2024-10-04T12:37:14.000",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
"voucherClaims":
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItem":
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItemId": 8,
|
|
||||||
"customerDataItem": "padBirthDate",
|
|
||||||
},
|
|
||||||
"value": "1999-12-31",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItem":
|
|
||||||
{
|
|
||||||
"mandatoryCustomerDataItemId": 4,
|
|
||||||
"customerDataItem": "emailAddress",
|
|
||||||
},
|
|
||||||
"value": "vlad.harkonnen@househarkonnen.net",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}
|
|
||||||
/issuedvouchers/{issuedVoucherId}/voucherstatusinstances:
|
|
||||||
parameters:
|
|
||||||
- in: path
|
|
||||||
name: issuedVoucherId
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
example: d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90
|
|
||||||
required: true
|
|
||||||
description: The id of the issued voucher to process.
|
|
||||||
post:
|
|
||||||
tags:
|
|
||||||
- Issued Voucher
|
|
||||||
summary: Update the status of an issued voucher.
|
|
||||||
description: Update the status of an issued voucher.
|
|
||||||
requestBody:
|
|
||||||
required: true
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{ "voucherStatusId": 2, "createdOn": "2024-10-04T12:34:56.000" }
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"voucherStatusInstanceId": "d4e5f6a7-b8c9-0d1e-2f3a-4b5c6d7e8f90",
|
|
||||||
}
|
|
||||||
/voucherstatuses:
|
|
||||||
get:
|
|
||||||
tags:
|
|
||||||
- References
|
|
||||||
summary: Get voucher statuses.
|
|
||||||
description: Get voucher statuses.
|
|
||||||
responses:
|
|
||||||
"200":
|
|
||||||
description: OK
|
|
||||||
content:
|
|
||||||
application/json:
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/unavailable"
|
|
||||||
example:
|
|
||||||
{
|
|
||||||
"voucherStatuses":
|
|
||||||
[
|
|
||||||
{ "voucherStatusId": 1, "name": "New" },
|
|
||||||
{ "voucherStatusId": 2, "name": "Issued" },
|
|
||||||
{ "voucherStatusId": 3, "name": "Redeemed" },
|
|
||||||
{ "voucherStatusId": 4, "name": "Revoked" },
|
|
||||||
{ "voucherStatusId": 5, "name": "Expired" },
|
|
||||||
],
|
|
||||||
}
|
|
||||||
components:
|
components:
|
||||||
securitySchemes:
|
securitySchemes:
|
||||||
bearerToken:
|
bearerToken:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user