This file contains hidden or 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
{ | |
"checkout": { | |
"summary": { | |
"information": "Subscription details", | |
"payment-method": "Payment method", | |
"payment-methods": { | |
"online": "Online payment" | |
}, | |
"cart": { | |
"title": "Attendee(s) and price", |
This file contains hidden or 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
// find timeslot by sku in a collection | |
def findById(def timeslots, def timeslotId) { | |
for (def timeslot: timeslots) { | |
if (timeslot.timeslotId == timeslotId) { | |
return timeslot; | |
} | |
} | |
return null; | |
} |
This file contains hidden or 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
{ | |
"data": [ | |
{ "id": 1, "label": "dances", "sports": [120, 121] }, | |
{ "id": 2, "label": "courses", "sports": [155, 156] }, | |
{ "id": 3, "label": "fitness", "sports": [155, 156, 120, 121] } | |
] | |
} |
This file contains hidden or 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
curl --location --request POST 'http://localhost:8001/api/printable.pdf' \ | |
--header 'Content-Type: application/json' \ | |
--header 'Cookie: XDEBUG_SESSION=PHPSTORM' \ | |
--data-raw '{ | |
"products": [ | |
{ | |
"sku": "L40676700-8", | |
"brand": "Brooks", | |
"brandLogo": "https://cdn.leoburnett.media/image/2/885/0/5/uploads/brooks1920.png", | |
"image": "https://www.wigglestatic.com/product-media/102729584/L40790800_0_Jr_speedcross_cs_wp_j_lyons_blue.jpg.originale.jpg?w=100&h=100&a=7", |
OlderNewer