{"openapi":"3.2.0","info":{"title":"OrbCart API","version":"1","summary":"Carts, Quotes, payments and Orders over HTTP.","license":{"name":"Apache-2.0","identifier":"Apache-2.0"}},"servers":[{"url":"{environment}","description":"Your environment's URL.","variables":{"environment":{"default":"http://localhost:8787"}}}],"tags":[{"name":"Storefront","description":"With a publishable key or a Cart token."},{"name":"Admin","description":"With a secret key, on servers only."}],"paths":{"/v1/carts":{"post":{"summary":"Create a Cart.","tags":["Storefront"],"security":[{"publishable":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateCart"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"summary":"List Carts that need a person.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"attention","in":"query","required":true,"schema":{"type":"string","const":"true"}},{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CartList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/handoffs":{"post":{"summary":"Open an agent's checkout in the buyer's browser.","tags":["Storefront"],"security":[{"publishable":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContinueCheckout"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/buyer":{"post":{"summary":"Claim the Cart for the signed-in buyer.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifiedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/successor":{"post":{"summary":"Start the next Cart after a purchase.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedCart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}":{"get":{"summary":"Read a Cart.","tags":["Storefront","Admin"],"security":[{"cart":[]},{"secret":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/RedactedCart"},{"$ref":"#/components/schemas/Cart"}]}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/payment-methods/{method}/setup":{"get":{"summary":"A payment method's public setup before there is a Quote.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSetup"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/payment-methods/apple_pay/session":{"post":{"summary":"Apple Pay's merchant session for the page that shows its button.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenApplePaySession"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplePaySession"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/lines":{"post":{"summary":"Add a Line.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddLine"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/lines/{line}":{"patch":{"summary":"Set a Line's quantity.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"line","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetLineQuantity"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Remove a Line.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"line","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/ship-to":{"put":{"summary":"Set the delivery address.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/bill-to":{"put":{"summary":"Set a separate billing address.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Address"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Bill to the delivery address again.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/contact":{"put":{"summary":"Set the buyer's email and phone.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Contact"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/shipping":{"put":{"summary":"Choose a shipping method.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetShipping"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/codes":{"post":{"summary":"Enter a discount code.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterCode"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/codes/{code}":{"delete":{"summary":"Remove a discount code.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"code","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/gift-cards":{"post":{"summary":"Apply a gift card to the cart.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnterGiftCard"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/gift-cards/{card}":{"delete":{"summary":"Take a gift card off the cart.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"card","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/extensions/{name}":{"put":{"summary":"Set a Cart extension.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetExtension"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"delete":{"summary":"Remove a Cart extension.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"name","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Cart"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/quote":{"post":{"summary":"Get a signed Quote.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quotes/{quote}":{"get":{"summary":"Reopen a Quote with its last payment state.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"quote","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenedQuote"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quotes/{quote}/payment-methods/{method}/setup":{"get":{"summary":"A payment method's public setup for the Quote's amount.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"quote","in":"path","required":true,"schema":{"type":"string"}},{"name":"method","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentSetup"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/quotes/{quote}/accept":{"post":{"summary":"Accept the Quote and pay.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"quote","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptQuote"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Acceptance"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/payments/{payment}/resume":{"post":{"summary":"Resume a Payment after a provider redirect.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"payment","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumePayment"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentAcceptance"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/prepare-payment":{"post":{"summary":"Prepare a payment the buyer approves at the provider first, such as PayPal.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreparePayment"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentPreparation"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/preparations/{preparation}/update":{"post":{"summary":"Pass on an address or shipping method the buyer chose at the provider.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"preparation","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePreparation"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/carts/{cart}/preparations/{preparation}/review":{"post":{"summary":"Quote what the buyer approved at the provider.","tags":["Storefront"],"security":[{"cart":[]}],"parameters":[{"name":"cart","in":"path","required":true,"schema":{"type":"string"}},{"name":"preparation","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewPreparation"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewedPreparation"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}":{"get":{"summary":"Read an Order by ID or number, or a buyer's own by its token.","tags":["Storefront","Admin"],"security":[{"secret":[]},{"order":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StaffOrder"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/fulfillments":{"post":{"summary":"Report shipped units.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FulfillOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/cancellations":{"post":{"summary":"Cancel units that have not shipped, or the whole Order.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/returns":{"post":{"summary":"Record shipped units that came back.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReturnOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/payments":{"post":{"summary":"Record a payment received for an Order paid offline.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordPayment"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/acknowledge":{"post":{"summary":"Confirm your ERP took the Order.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcknowledgeOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/appointments/{appointment}/free-times":{"get":{"summary":"Read free starts for the appointment's whole visit at its Location.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"appointment","in":"path","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","required":true,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"days","in":"query","required":false,"schema":{"default":7,"type":"integer","minimum":1,"maximum":14}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentFreeTimes"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/appointments/{appointment}/move":{"post":{"summary":"Move every active appointment of the visit together, once per key.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"appointment","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveOrderVisit"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MoveOrderVisitResult"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/appointment-changes":{"post":{"summary":"Record an immutable appointment change from the capacity authority.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppointmentChange"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecordedAppointmentChange"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/refunds":{"get":{"summary":"Refunds and what is still refundable.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderRefunds"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"post":{"summary":"Refund.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundOrder"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Refund"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/{order}/refunds/preview":{"post":{"summary":"Calculate a refund without making it.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"order","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundOrder"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundPreview"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/withdrawals":{"post":{"summary":"Withdraw from an Order.","tags":["Storefront"],"security":[{"publishable":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Withdraw"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalReceipt"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"summary":"List the withdrawals that need attention.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalInbox"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/withdrawals/{withdrawal}":{"get":{"summary":"Read a withdrawal as it was received.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"withdrawal","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Withdrawal"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/withdrawals/{withdrawal}/attach":{"post":{"summary":"Record a withdrawal on the Order it meant.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"withdrawal","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachWithdrawal"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalAttachment"}}}},"202":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawalAttachment"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/withdrawals/{withdrawal}/handle":{"post":{"summary":"Mark a withdrawal that named no Order as handled.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"withdrawal","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Withdrawal"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders/search":{"post":{"summary":"Find a buyer's Orders by email, by identity, or both.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchOrders"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderSearchResults"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/orders":{"get":{"summary":"List Orders: a signed-in buyer's own, or all of them with filters.","tags":["Storefront","Admin"],"security":[{"secret":[]},{"publishable":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"sort","in":"query","required":false,"schema":{"default":"newest","type":"string","enum":["newest","oldest"]}},{"name":"payment","in":"query","required":false,"schema":{"type":"string"}},{"name":"fulfillment","in":"query","required":false,"schema":{"type":"string"}},{"name":"refunds","in":"query","required":false,"schema":{"type":"string"}},{"name":"handoff","in":"query","required":false,"schema":{"type":"string"}},{"name":"attention","in":"query","required":false,"schema":{"type":"string","enum":["true","false"]}},{"name":"channel","in":"query","required":false,"schema":{"type":"string"}},{"name":"buyer","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":255}},{"name":"issuer","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":500}},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"until","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},{"name":"count","in":"query","required":false,"schema":{"type":"string","const":"true"}},{"name":"expand","in":"query","required":false,"schema":{"type":"string","const":"order"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/OrderList"},{"$ref":"#/components/schemas/BuyerOrderList"}]}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/events":{"get":{"summary":"List the Events of Orders and of the Carts before them, newest first, with how far each receiver's delivery came.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"type","in":"query","required":false,"schema":{"type":"string"}},{"name":"subject","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}},{"name":"channel","in":"query","required":false,"schema":{"type":"string"}},{"name":"since","in":"query","required":false,"schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/events/{event}/resend":{"post":{"summary":"Send an Event again, with the same ID, to one Receiver or to all that want its type.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"event","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendEvent"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resent"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/events/replay":{"post":{"summary":"Send the Events from an instant on again, oldest first, a batch per call.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplayEvents"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Replayed"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/insights/checkout":{"get":{"summary":"Count where buyers get stuck: the funnel, the time a checkout takes, the friction and the payment methods of the last days.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"default":30,"type":"integer","minimum":1,"maximum":365}},{"name":"channel","in":"query","required":false,"schema":{"type":"string"}},{"name":"origin","in":"query","required":false,"schema":{"type":"string","enum":["storefront","agent"]}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutInsights"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receivers":{"get":{"summary":"List the Receivers of Events that the code defines, with how each stands.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReceiverList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receivers/{receiver}/pause":{"post":{"summary":"Stop deliveries to a Receiver until it is resumed.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"receiver","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receiver"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/receivers/{receiver}/resume":{"post":{"summary":"Resume a Receiver and deliver its backlog at once.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"receiver","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Receiver"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/offers/invalidate":{"post":{"summary":"Void Offers by reference or tag.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidateOffers"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invalidation"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/environment":{"get":{"summary":"Mode, jurisdiction and Channels.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/channels/identities":{"put":{"summary":"Take the identities of the channels the catalog keeps.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifyChannels"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdentifiedChannels"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts":{"get":{"summary":"List the discounts staff made, with their state and how often each was redeemed.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiscountList"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"post":{"summary":"Make a discount; it applies from the next quote.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDiscount"}}}},"responses":{"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts/{discount}":{"get":{"summary":"One discount.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"put":{"summary":"Replace a discount's rules; the next quote applies them.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplaceDiscount"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts/{discount}/pause":{"post":{"summary":"Stop a discount until it is resumed.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts/{discount}/resume":{"post":{"summary":"Resume a paused discount.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts/{discount}/end":{"post":{"summary":"End a discount for good.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts/{discount}/batches":{"post":{"summary":"Generate a batch of single-use codes; the same prefix and count again answers the same batch.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GenerateBatch"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Discount"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts/{discount}/batches/{prefix}":{"get":{"summary":"A batch's codes, each with whether it was redeemed: what the CSV export lists.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}},{"name":"prefix","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCodes"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/discounts/{discount}/redemptions":{"get":{"summary":"The orders that redeemed a discount, the latest first.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"discount","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"default":50,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedemptionList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards/access":{"get":{"summary":"Where the caller may redeem gift cards, and whether they work merchant-wide.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardAccess"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards":{"post":{"summary":"Make a gift card with a value, such as a goodwill gesture; the same Idempotency-Key again answers the same card.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateGiftCard"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuedGiftCard"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IssuedGiftCard"}}}},"default":{"$ref":"#/components/responses/Problem"}}},"get":{"summary":"List the gift cards made in the last 30 days, newest first.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"default":25,"type":"integer","minimum":1,"maximum":100}},{"name":"after","in":"query","required":false,"schema":{"type":"string","minLength":1,"maxLength":100}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardList"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards/lookup":{"post":{"summary":"Find a gift card by the code a customer holds out, at the desk of any Location; a few tries a minute per address.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LookUpGiftCard"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCard"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards/{card}":{"get":{"summary":"A gift card's standing, without its code.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"card","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCard"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards/{card}/history":{"get":{"summary":"What moved on a gift card, oldest first: its value, each payout with its order or Location, refunds and what was retired.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"card","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardHistory"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards/{card}/redemptions":{"post":{"summary":"Pay out value of a gift card at the desk of a Location; the same Idempotency-Key again answers the same payout.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"card","in":"path","required":true,"schema":{"type":"string"}},{"name":"Idempotency-Key","in":"header","required":true,"description":"Any visible ASCII up to 255 characters. Repeat a request after a timeout with the same key to get the original answer; keys live 24 hours.","schema":{"type":"string","pattern":"^[\\x21-\\x7E]{1,255}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemGiftCard"}}}},"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardRedemption"}}}},"201":{"description":"Created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardRedemption"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards/{card}/delivery":{"get":{"summary":"What a mail about a gift card needs: its code and the link to print it from.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"card","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardDelivery"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/gift-cards/{card}/print":{"post":{"summary":"Make a fresh link to the gift card's printable page.","tags":["Admin"],"security":[{"secret":[]}],"parameters":[{"name":"card","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GiftCardPrint"}}}},"default":{"$ref":"#/components/responses/Problem"}}}},"/v1/address-formats/{country}":{"get":{"summary":"Postal code and region rules of a country.","tags":["Storefront","Admin"],"security":[{"publishable":[]},{"cart":[]},{"secret":[]}],"parameters":[{"name":"country","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"OK.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressFormat"}}}},"default":{"$ref":"#/components/responses/Problem"}}}}},"webhooks":{"order.created":{"post":{"summary":"The Order arose.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderCreatedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.appointments_changed":{"post":{"summary":"Appointments moved or were canceled; notifyBuyer records whether the merchant should tell the buyer.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderAppointmentsChangedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.fulfilled":{"post":{"summary":"Units were shipped, picked up or delivered.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderFulfilledEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.canceled":{"post":{"summary":"Units were canceled before they shipped; what was paid for them goes back.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderCanceledEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.returned":{"post":{"summary":"Shipped units came back, to be sold again or not.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderReturnedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.withdrawn":{"post":{"summary":"A withdrawal was recorded on the Order, as declared or attached by support.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderWithdrawnEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.handed_off":{"post":{"summary":"Your ERP took the Order.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderHandedOffEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.issue_opened":{"post":{"summary":"Something needs a person, such as `handoff_failed`.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderIssueOpenedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"order.issue_resolved":{"post":{"summary":"An issue of the Order is resolved.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/OrderIssueResolvedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.authorized":{"post":{"summary":"The amount is reserved.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentAuthorizedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.pending_funds":{"post":{"summary":"A slower method was accepted, the money comes later.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentPendingFundsEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.captured":{"post":{"summary":"Money was collected, also in part.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentCapturedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.refunded":{"post":{"summary":"A refund succeeded.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentRefundedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.refund_failed":{"post":{"summary":"A refund could not be settled.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentRefundFailedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.failed":{"post":{"summary":"A Payment ended without money, or a capture was refused.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentFailedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"payment.canceled":{"post":{"summary":"A Payment was canceled, by the buyer or by OrbCart.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/PaymentCanceledEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"quote.created":{"post":{"summary":"A Quote was made. The same Quote again is no new event.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/QuoteCreatedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"quote.accepted":{"post":{"summary":"The buyer agreed to a Quote, and its Payment begins.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/QuoteAcceptedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"cart.abandoned":{"post":{"summary":"A Cart with lines stood still and has no Order.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/CartAbandonedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"cart.canceled":{"post":{"summary":"A Cart without an Order ended: it stood still for its Channel's inactivity period, or its agent discarded it. It is deleted.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/CartCanceledEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"withdrawal.received":{"post":{"summary":"A shopper declared a withdrawal, whether or not it named an Order; send the receipt to the email in it unless the family's mail does.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/WithdrawalReceivedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"gift_card.issued":{"post":{"summary":"A gift card came into being, sold with an Order or made by staff. It carries the last four characters of the code, never the code.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/GiftCardIssuedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"gift_card.redeemed":{"post":{"summary":"An Order took value off a gift card, as far as it captured.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/GiftCardRedeemedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"gift_card.credited":{"post":{"summary":"A refund put value back on a gift card.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/GiftCardCreditedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}},"gift_card.voided":{"post":{"summary":"A sale refund retired a gift card's remaining value.","requestBody":{"required":true,"content":{"application/cloudevents+json":{"schema":{"$ref":"#/components/schemas/GiftCardVoidedEvent"}}}},"responses":{"2XX":{"description":"Taken. Any other answer is delivered again, for 72 hours."}}}}},"components":{"schemas":{"Acceptance":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"ordered"},"payment":{"$ref":"#/components/schemas/Payment"},"order":{"$ref":"#/components/schemas/Order"}},"required":["object","status","payment","order"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"requires_action"},"payment":{"$ref":"#/components/schemas/PaymentRequiringAction"}},"required":["object","status","payment"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","enum":["pending","failed"]},"payment":{"$ref":"#/components/schemas/Payment"}},"required":["object","status","payment"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"quote_changed"},"quote":{"$ref":"#/components/schemas/Quote"},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}}},"required":["object","status","quote","changes"]}]},"AcceptQuote":{"type":"object","properties":{"payment":{"type":"string","minLength":1,"maxLength":100},"instrument":{"$ref":"#/components/schemas/Instrument"},"preparation":{"type":"string","minLength":1,"maxLength":100},"returnTo":{"type":"string","maxLength":2000}},"required":["payment"],"additionalProperties":false},"AcknowledgeOrder":{"default":{},"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"ActionField":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/ActionWords"},"kind":{"type":"string","const":"text"},"required":{"type":"boolean"},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"default":{"type":"string"}},"required":["id","label","kind","required"]},{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/ActionWords"},"kind":{"type":"string","const":"number"},"required":{"type":"boolean"},"unit":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"number"}},"required":["id","label","kind","required"]},{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/ActionWords"},"kind":{"type":"string","const":"date"},"required":{"type":"boolean"},"default":{"type":"string"}},"required":["id","label","kind","required"]},{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/ActionWords"},"kind":{"type":"string","const":"dateTime"},"required":{"type":"boolean"},"default":{"type":"string"}},"required":["id","label","kind","required"]},{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/ActionWords"},"kind":{"type":"string","const":"choice"},"required":{"type":"boolean"},"choices":{"minItems":1,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"$ref":"#/components/schemas/ActionWords"}},"required":["value","label"]}},"default":{"type":"string"}},"required":["id","label","kind","required","choices"]},{"type":"object","properties":{"id":{"type":"string"},"label":{"$ref":"#/components/schemas/ActionWords"},"kind":{"type":"string","const":"yesNo"},"default":{"type":"boolean"}},"required":["id","label","kind"]}]},"ActionValues":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"anyOf":[{"type":"string","maxLength":2000},{"type":"number"},{"type":"boolean"}]}},"ActionWords":{"type":"object","propertyNames":{"type":"string","minLength":2,"maxLength":10},"additionalProperties":{"type":"string","minLength":1,"maxLength":200}},"Activity":{"type":"object","properties":{"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"at":{"type":"string"},"actor":{"type":"string"},"by":{"type":"string"},"reason":{"type":"string"},"reference":{"type":"string"},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"providerReference":{"type":"string"},"lines":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"type":"string","const":"deposit"},"component":{"not":{}}},"required":["line","quantity","target"]},{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"},"target":{"not":{}}},"required":["line","quantity"]}]}},"shipping":{"type":"boolean"},"carrier":{"type":"string"},"tracking":{"type":"string"},"trackingUrl":{"type":"string"},"restock":{"type":"boolean"},"giftCardShortage":{"type":"array","items":{"type":"object","properties":{"card":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["card","lastFour","amount"]}},"short":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","quantity"]}},"appointments":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"appointment":{"type":"string"},"job":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"}},"required":["line","appointment","job","start","end"]}},"change":{"$ref":"#/components/schemas/AppointmentChange"},"unavailable":{"type":"array","items":{"type":"string"}},"withdrawal":{"type":"object","properties":{"name":{"type":"string"},"goods":{"type":"string"},"description":{"type":"string"},"timing":{"type":"string"},"periodEnd":{"type":"string"}},"required":["goods","timing"]},"text":{"type":"string"},"action":{"type":"string"},"outcome":{"type":"string"},"key":{"type":"string"},"input":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"open":{"type":"string"}},"required":["sequence","type","at","actor"]},"AddLine":{"type":"object","properties":{"reference":{"type":"string","minLength":1,"maxLength":200},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":9999},"configuration":{"$ref":"#/components/schemas/LineConfiguration"}},"required":["reference"],"additionalProperties":false},"Address":{"anyOf":[{"type":"object","properties":{"partial":{"default":false,"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["name","line1","city","country"],"additionalProperties":false},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"],"additionalProperties":false}]},"AddressFormat":{"type":"object","properties":{"object":{"type":"string","const":"address_format"},"country":{"type":"string"},"postalCode":{"type":"object","properties":{"required":{"type":"boolean"},"pattern":{"type":"string"},"kind":{"type":"string"}},"required":["required","pattern","kind"]},"region":{"type":"object","properties":{"required":{"type":"boolean"},"kind":{"type":"string"},"options":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}},"required":["code","name"]}}},"required":["required","kind"]}},"required":["object","country"]},"ApplePaySession":{"type":"object","properties":{"session":{"$ref":"#/components/schemas/JsonObject"}},"required":["session"]},"AppliedDiscount":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]},"AppliedGiftCard":{"type":"object","properties":{"id":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["id","lastFour","amount"]},"AppointmentChange":{"type":"object","properties":{"sequence":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"position":{"type":"integer","minimum":0,"maximum":9007199254740991},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"orderId":{"type":"string","minLength":1},"visit":{"type":"string","minLength":1},"location":{"type":"string","minLength":1},"operationKey":{"type":"string","minLength":1},"notifyBuyer":{"type":"boolean"},"changes":{"minItems":1,"maxItems":1000,"type":"array","items":{"type":"object","properties":{"appointment":{"type":"string","minLength":1},"job":{"type":"string","minLength":1},"line":{"type":"string","minLength":1},"before":{"type":"object","properties":{"state":{"type":"string","enum":["made","cancelled"]},"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["state","start","end"],"additionalProperties":false},"after":{"type":"object","properties":{"state":{"type":"string","enum":["made","cancelled"]},"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["state","start","end"],"additionalProperties":false}},"required":["appointment","job","line","before","after"],"additionalProperties":false}}},"required":["sequence","position","at","orderId","visit","location","notifyBuyer","changes"],"additionalProperties":false},"AppointmentFreeTimes":{"type":"object","properties":{"status":{"type":"string","const":"available"},"times":{"type":"array","items":{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["start","end"],"additionalProperties":false}}},"required":["status","times"],"additionalProperties":false},"AskedExtension":{"type":"object","properties":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["schema"]},"AttachWithdrawal":{"type":"object","properties":{"order":{"type":"string","minLength":1,"maxLength":64}},"required":["order"],"additionalProperties":false},"BankAccount":{"type":"object","properties":{"holder":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"bank":{"type":"string"}},"required":["holder","iban"]},"Batch":{"type":"object","properties":{"prefix":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["prefix","count","createdAt"]},"BatchCodes":{"type":"object","properties":{"object":{"type":"string","const":"batch"},"prefix":{"type":"string"},"codes":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"redeemed":{"type":"boolean"}},"required":["code","redeemed"]}}},"required":["object","prefix","codes"]},"BuyerOrderList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"next":{"type":"string"}},"required":["object","data"]},"CancelOrder":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["line","quantity"],"additionalProperties":false}},"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"],"additionalProperties":false},"Cart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"giftCards":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedGiftCard"}},"toPay":{"$ref":"#/components/schemas/Money"},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"askedExtensions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/AskedExtension"}},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/OfferedShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle"]},"CartAbandonedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"cart.abandoned"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","reference","quantity"]}},"journey":{"$ref":"#/components/schemas/Journey"}},"required":["cart","lines"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"CartCanceledEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"cart.canceled"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"reason":{"type":"string"}},"required":["cart","reason"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"CartEstimate":{"type":"object","properties":{"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"deposit":{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}}},"required":["totals","discounts"]}},"required":["id","totals","discounts"]}},"shipping":{"allOf":[{"$ref":"#/components/schemas/ShippingMethod"},{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}}},"required":["totals","discounts"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"},"deposit":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","total","shipping"]},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"excludes":{"type":"array","items":{"type":"string"}}},"required":["currency","pricesIncludeTax","lines","totals","excludes"]},"CartExtensions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"CartLifecycle":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"open"}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","const":"locked"},"quote":{"type":"string"},"waitsFor":{"type":"string","enum":["buyer","provider"]}},"required":["status","quote","waitsFor"]},{"type":"object","properties":{"status":{"type":"string","const":"ordered"},"quote":{"type":"string"},"order":{"type":"string"}},"required":["status","quote"]},{"type":"object","properties":{"status":{"type":"string","const":"merged"},"into":{"type":"string"}},"required":["status","into"]}]},"CartList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/CartSummary"}},"next":{"type":"string"}},"required":["object","data"]},"CartSummary":{"type":"object","properties":{"object":{"type":"string","const":"cart_summary"},"id":{"type":"string"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ListedIssue"}},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"indexedAt":{"type":"string"}},"required":["object","id","issues","version","indexedAt"]},"Change":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["line_added","line_removed","offer_changed"]},"line":{"type":"string"}},"required":["type","line"]},{"type":"object","properties":{"type":{"type":"string","const":"quantity_changed"},"line":{"type":"string"},"from":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"to":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","line","from","to"]},{"type":"object","properties":{"type":{"type":"string","const":"price_changed"},"line":{"type":"string"},"from":{"$ref":"#/components/schemas/Money"},"to":{"$ref":"#/components/schemas/Money"}},"required":["type","line","from","to"]},{"type":"object","properties":{"type":{"type":"string","enum":["shipping_changed","delivery_time_changed"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"line_delivery_time_changed"},"line":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","line"]},{"type":"object","properties":{"type":{"type":"string","enum":["shipping_price_changed","tax_changed","gift_cards_changed","total_changed"]},"from":{"$ref":"#/components/schemas/Money"},"to":{"$ref":"#/components/schemas/Money"}},"required":["type","from","to"]},{"type":"object","properties":{"type":{"type":"string","enum":["ship_to_changed","bill_to_changed","extensions_changed"]}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","enum":["discount_added","discount_removed"]},"discount":{"type":"string"},"code":{"type":"string"}},"required":["type","discount"]},{"type":"object","properties":{"type":{"type":"string","const":"legal_updated"},"legal":{"type":"string"}},"required":["type","legal"]},{"type":"object","properties":{"type":{"type":"string","const":"code_invalid"},"code":{"type":"string"},"reason":{"type":"string"},"methods":{"type":"array","items":{"type":"string"}}},"required":["type","code"]},{"type":"object","properties":{"type":{"type":"string","const":"unavailable"},"line":{"type":"string"},"reason":{"type":"string"}},"required":["type","line","reason"]},{"type":"object","properties":{"type":{"type":"string","const":"shipping_unavailable"},"option":{"type":"string"},"optionType":{"type":"string","enum":["delivery","pickup"]},"title":{"type":"string"},"lines":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"}},"required":["type","option","optionType","title","lines","reason"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["line_added","line_removed","offer_changed","quantity_changed","price_changed","shipping_changed","delivery_time_changed","line_delivery_time_changed","shipping_price_changed","tax_changed","gift_cards_changed","total_changed","ship_to_changed","bill_to_changed","extensions_changed","discount_added","discount_removed","legal_updated","code_invalid","unavailable","shipping_unavailable"]}}},"required":["type"],"additionalProperties":{}}]},"ChannelFunnel":{"type":"object","properties":{"channel":{"type":"string"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"funnel":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}}},"required":["channel","attempts","orders","funnel"]},"ChannelIdentity":{"type":"object","properties":{"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"pricesIncludeTax":{"type":"boolean"},"locale":{"type":"string","minLength":2,"maxLength":35}},"required":["currency","pricesIncludeTax","locale"],"additionalProperties":false},"CheckoutInsights":{"type":"object","properties":{"object":{"type":"string","const":"checkout_insights"},"window":{"$ref":"#/components/schemas/InsightsWindow"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"resumed":{"type":"integer","minimum":0,"maximum":9007199254740991},"withoutJourney":{"type":"integer","minimum":0,"maximum":9007199254740991},"funnel":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}},"byChannel":{"type":"array","items":{"$ref":"#/components/schemas/ChannelFunnel"}},"byOrigin":{"type":"array","items":{"$ref":"#/components/schemas/OriginFunnel"}},"checkout":{"$ref":"#/components/schemas/Timing"},"deciding":{"$ref":"#/components/schemas/Timing"},"friction":{"type":"object","properties":{"quoteChanged":{"$ref":"#/components/schemas/FrictionCount"},"declined":{"$ref":"#/components/schemas/FrictionCount"},"challenged":{"$ref":"#/components/schemas/FrictionCount"},"unknown":{"$ref":"#/components/schemas/FrictionCount"},"recovered":{"$ref":"#/components/schemas/FrictionCount"}},"required":["quoteChanged","declined","challenged","unknown","recovered"]},"payments":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMix"}}},"required":["object","window","attempts","orders","resumed","withoutJourney","funnel","byChannel","byOrigin","checkout","deciding","friction","payments"]},"Contact":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string","minLength":1,"maxLength":40}},"required":["email"],"additionalProperties":false},"ContinueCheckout":{"type":"object","properties":{"handoff":{"type":"string","minLength":1,"maxLength":200}},"required":["handoff"],"additionalProperties":false},"CreateCart":{"type":"object","properties":{"lines":{"maxItems":100,"type":"array","items":{"$ref":"#/components/schemas/AddLine"}}},"additionalProperties":false},"CreatedCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"giftCards":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedGiftCard"}},"toPay":{"$ref":"#/components/schemas/Money"},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"askedExtensions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/AskedExtension"}},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/OfferedShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"token":{"type":"string"}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle","token"]},"CreateDiscount":{"type":"object","properties":{"channel":{"type":"string","minLength":1},"name":{"type":"string","minLength":1,"maxLength":80},"percentage":{"type":"number","exclusiveMinimum":0,"maximum":100},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scope":{"default":"order","type":"string","enum":["order","line","shipping"]},"combination":{"default":"combinable","type":"string","enum":["combinable","exclusive"]},"code":{"type":"string","minLength":1,"maxLength":64},"minimumSubtotal":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"references":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"except":{"type":"object","properties":{"references":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"locations":{"type":"object","properties":{"included":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"excluded":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"methods":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"limit":{"type":"object","properties":{"total":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"perBuyer":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"required":["name"],"additionalProperties":false},"CreateGiftCard":{"type":"object","properties":{"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"reason":{"type":"string","minLength":1,"maxLength":200},"channel":{"type":"string","minLength":1}},"required":["amount","currency","reason"],"additionalProperties":false},"DeliveryStatus":{"type":"string","enum":["pending","delivered","failed"]},"Discount":{"type":"object","properties":{"object":{"type":"string","const":"discount"},"id":{"type":"string"},"channel":{"type":"string"},"state":{"$ref":"#/components/schemas/DiscountState"},"name":{"type":"string","minLength":1,"maxLength":80},"percentage":{"type":"number","exclusiveMinimum":0,"maximum":100},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scope":{"default":"order","type":"string","enum":["order","line","shipping"]},"combination":{"default":"combinable","type":"string","enum":["combinable","exclusive"]},"code":{"type":"string","minLength":1,"maxLength":64},"minimumSubtotal":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"references":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"except":{"type":"object","properties":{"references":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"locations":{"type":"object","properties":{"included":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"excluded":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"methods":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"limit":{"type":"object","properties":{"total":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"perBuyer":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false},"batches":{"type":"array","items":{"$ref":"#/components/schemas/Batch"}},"redeemed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"}},"required":["object","id","channel","state","name","batches","redeemed","createdAt"]},"DiscountList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Discount"}}},"required":["object","data"]},"DiscountState":{"type":"string","enum":["active","paused","ended"]},"EnterCode":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":100}},"required":["code"],"additionalProperties":false},"EnterGiftCard":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":100}},"required":["code"],"additionalProperties":false},"Environment":{"type":"object","properties":{"object":{"type":"string","const":"environment"},"id":{"type":"string"},"merchant":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"jurisdiction":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"currency":{"type":"string"},"locale":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"shipsTo":{"type":"array","items":{"type":"string"}},"paymentMethods":{"type":"array","items":{"type":"object","properties":{"method":{"type":"string"},"provider":{"type":"string"}},"required":["method","provider"]}}},"required":["id","currency","locale","pricesIncludeTax","shipsTo","paymentMethods"]}},"extensions":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ExtensionView"}}},"required":["object","id","merchant","mode","jurisdiction","channels"]},"Event":{"anyOf":[{"$ref":"#/components/schemas/OrderCreatedEvent"},{"$ref":"#/components/schemas/OrderAppointmentsChangedEvent"},{"$ref":"#/components/schemas/OrderFulfilledEvent"},{"$ref":"#/components/schemas/OrderCanceledEvent"},{"$ref":"#/components/schemas/OrderReturnedEvent"},{"$ref":"#/components/schemas/OrderWithdrawnEvent"},{"$ref":"#/components/schemas/OrderHandedOffEvent"},{"$ref":"#/components/schemas/OrderIssueOpenedEvent"},{"$ref":"#/components/schemas/OrderIssueResolvedEvent"},{"$ref":"#/components/schemas/PaymentAuthorizedEvent"},{"$ref":"#/components/schemas/PaymentPendingFundsEvent"},{"$ref":"#/components/schemas/PaymentCapturedEvent"},{"$ref":"#/components/schemas/PaymentRefundedEvent"},{"$ref":"#/components/schemas/PaymentRefundFailedEvent"},{"$ref":"#/components/schemas/PaymentFailedEvent"},{"$ref":"#/components/schemas/PaymentCanceledEvent"},{"$ref":"#/components/schemas/QuoteCreatedEvent"},{"$ref":"#/components/schemas/QuoteAcceptedEvent"},{"$ref":"#/components/schemas/CartAbandonedEvent"},{"$ref":"#/components/schemas/CartCanceledEvent"},{"$ref":"#/components/schemas/WithdrawalReceivedEvent"},{"$ref":"#/components/schemas/GiftCardIssuedEvent"},{"$ref":"#/components/schemas/GiftCardRedeemedEvent"},{"$ref":"#/components/schemas/GiftCardCreditedEvent"},{"$ref":"#/components/schemas/GiftCardVoidedEvent"},{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"type":{"type":"string","not":{"enum":["order.created","order.appointments_changed","order.fulfilled","order.canceled","order.returned","order.withdrawn","order.handed_off","order.issue_opened","order.issue_resolved","payment.authorized","payment.pending_funds","payment.captured","payment.refunded","payment.refund_failed","payment.failed","payment.canceled","quote.created","quote.accepted","cart.abandoned","cart.canceled","withdrawal.received","gift_card.issued","gift_card.redeemed","gift_card.credited","gift_card.voided"]}},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["specversion","id","source","subject","time","environment","channel","type","data"]}]},"EventList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/ListedEvent"}},"next":{"type":"string"}},"required":["object","data"]},"ExtensionView":{"type":"object","properties":{"on":{"type":"string","enum":["line","cart"]},"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["on","schema"]},"FieldError":{"type":"object","properties":{"pointer":{"type":"string"},"code":{"type":"string"},"detail":{"type":"string"}},"required":["pointer","code","detail"],"additionalProperties":{}},"Fields":{"type":"object","properties":{"email":{"type":"string","enum":["required","optional"]},"phone":{"type":"string","enum":["required","optional"]},"ship_to":{"type":"string","enum":["required","optional"]},"billing_country":{"type":"string","enum":["required","optional"]},"ship_to_postal_code":{"type":"string","enum":["required","optional"]},"ship_to_region":{"type":"string","enum":["required","optional"]},"bill_to":{"type":"string","enum":["required","optional"]},"bill_to_postal_code":{"type":"string","enum":["required","optional"]},"bill_to_region":{"type":"string","enum":["required","optional"]}},"additionalProperties":{"type":"string","enum":["required","optional"]}},"FrictionCount":{"type":"object","properties":{"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["attempts","orders"]},"FulfillmentAxis":{"type":"string","enum":["unfulfilled","partially_fulfilled","fulfilled","canceled"]},"FulfillOrder":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["line","quantity"],"additionalProperties":false}},"carrier":{"type":"string","minLength":1,"maxLength":100},"tracking":{"type":"string","minLength":1,"maxLength":200},"trackingUrl":{"type":"string","maxLength":2000,"format":"uri"},"reference":{"type":"string","minLength":1,"maxLength":200}},"required":["lines","reference"],"additionalProperties":false},"FunnelStep":{"type":"object","properties":{"step":{"$ref":"#/components/schemas/JourneyStep"},"reached":{"type":"integer","minimum":0,"maximum":9007199254740991},"stopped":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["step","reached","stopped"]},"GenerateBatch":{"type":"object","properties":{"prefix":{"type":"string","pattern":"^[A-Z0-9]{2,12}$"},"count":{"type":"integer","minimum":1,"maximum":50000}},"required":["prefix","count"],"additionalProperties":false},"GiftCard":{"type":"object","properties":{"object":{"type":"string","const":"gift_card"},"id":{"type":"string"},"lastFour":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"issued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"held":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"available":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"captured":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redeemed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"credited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"purpose":{"type":"string","enum":["single","multi"]},"validUntil":{"type":"string"},"reason":{"type":"string"}},"required":["object","id","lastFour","channel","currency","issued","balance","held","available","captured","redeemed","credited","purpose","validUntil"]},"GiftCardAccess":{"type":"object","properties":{"object":{"type":"string","const":"gift_card_access"},"everyLocation":{"type":"boolean"},"locations":{"anyOf":[{"type":"string","const":"all"},{"type":"array","items":{"type":"string"}}]}},"required":["object","everyLocation","locations"]},"GiftCardCreditedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"gift_card.credited"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"giftCard":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"balance":{"$ref":"#/components/schemas/Money"},"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"}},"required":["id","number"]}},"required":["giftCard","lastFour","amount","balance","order"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"GiftCardDelivery":{"type":"object","properties":{"object":{"type":"string","const":"gift_card_delivery"},"id":{"type":"string"},"code":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"validUntil":{"type":"string"},"printUrl":{"type":"string"}},"required":["object","id","code","lastFour","amount","validUntil"]},"GiftCardHistory":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GiftCardMovement"}}},"required":["object","data"]},"GiftCardIssuedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"gift_card.issued"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"giftCard":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"}},"required":["id","number"]}},"required":["giftCard","lastFour","amount"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"GiftCardList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/GiftCardSummary"}},"next":{"type":"string"}},"required":["object","data"]},"GiftCardMovement":{"type":"object","properties":{"kind":{"type":"string","enum":["issued","redeemed","credited","voided"]},"at":{"type":"string"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"order":{"type":"string"},"location":{"type":"string"},"note":{"type":"string"}},"required":["kind","at","amount"]},"GiftCardPrint":{"type":"object","properties":{"object":{"type":"string","const":"gift_card_print"},"printUrl":{"type":"string"}},"required":["object","printUrl"]},"GiftCardRedeemedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"gift_card.redeemed"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"giftCard":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"balance":{"$ref":"#/components/schemas/Money"},"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"}},"required":["id","number"]},"location":{"type":"string"}},"required":["giftCard","lastFour","amount","balance"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"GiftCardRedemption":{"type":"object","properties":{"object":{"type":"string","const":"gift_card_redemption"},"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"location":{"type":"string"},"note":{"type":"string"},"card":{"$ref":"#/components/schemas/GiftCard"}},"required":["object","amount","location","card"]},"GiftCardSummary":{"type":"object","properties":{"object":{"type":"string","const":"gift_card_summary"},"id":{"type":"string"},"lastFour":{"type":"string"},"channel":{"type":"string"},"issued":{"$ref":"#/components/schemas/Money"},"issuedAt":{"type":"string"},"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"}},"required":["id","number"]}},"required":["object","id","lastFour","channel","issued","issuedAt"]},"GiftCardVoidedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"gift_card.voided"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"giftCard":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"balance":{"$ref":"#/components/schemas/Money"}},"required":["giftCard","lastFour","amount","balance"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"HandoffAxis":{"type":"string","enum":["pending","delivered"]},"IdentifiedCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"giftCards":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedGiftCard"}},"toPay":{"$ref":"#/components/schemas/Money"},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"askedExtensions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/AskedExtension"}},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/OfferedShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"merged":{"type":"string"},"token":{"type":"string"}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle"]},"IdentifiedChannels":{"type":"object","properties":{"object":{"type":"string","const":"channel_identities"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"channels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ChannelIdentity"}}},"required":["object","version","channels"]},"IdentifyChannels":{"type":"object","properties":{"channels":{"type":"object","propertyNames":{"type":"string","minLength":1,"maxLength":64},"additionalProperties":{"$ref":"#/components/schemas/ChannelIdentity"}}},"required":["channels"],"additionalProperties":false},"InsightsWindow":{"type":"object","properties":{"since":{"type":"string"},"until":{"type":"string"},"limit":{"$ref":"#/components/schemas/WindowLimit"}},"required":["since","until"]},"Instrument":{"$ref":"#/components/schemas/JsonObject"},"InvalidateOffers":{"type":"object","properties":{"references":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"default":[],"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"reason":{"type":"string","minLength":1,"maxLength":500}},"additionalProperties":false},"Invalidation":{"type":"object","properties":{"object":{"type":"string","const":"invalidation"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"references":{"type":"array","items":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"reason":{"type":"string"},"at":{"type":"string"}},"required":["object","version","references","tags","at"]},"Issue":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"appointment_not_committed"},"lines":{"type":"array","items":{"type":"string"}}},"required":["type","lines"]},{"type":"object","properties":{"type":{"type":"string","const":"stock_not_committed"},"short":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","quantity"]}}},"required":["type","short"]},{"type":"object","properties":{"type":{"type":"string","const":"gift_card_not_captured"},"short":{"type":"array","items":{"type":"object","properties":{"card":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["card","lastFour","amount"]}}},"required":["type","short"]},{"type":"object","properties":{"type":{"type":"string","const":"handoff_failed"},"since":{"type":"string"}},"required":["type","since"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_failed"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_amount_mismatch"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_failed"},"refund":{"type":"string"},"payment":{"type":"string"}},"required":["type","refund","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_unresolved"},"refund":{"type":"string"},"since":{"type":"string"}},"required":["type","refund","since"]},{"type":"object","properties":{"type":{"type":"string","const":"capture_unresolved"},"payment":{"type":"string"},"since":{"type":"string"}},"required":["type","payment","since"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_overdue"},"payment":{"type":"string"},"since":{"type":"string"}},"required":["type","payment","since"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["appointment_not_committed","stock_not_committed","gift_card_not_captured","handoff_failed","payment_failed","payment_amount_mismatch","refund_failed","refund_unresolved","capture_unresolved","payment_overdue"]}}},"required":["type"],"additionalProperties":{}}]},"IssuedGiftCard":{"type":"object","properties":{"object":{"type":"string","const":"gift_card"},"id":{"type":"string"},"lastFour":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"issued":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"balance":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"held":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"available":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"captured":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"redeemed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"credited":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"purpose":{"type":"string","enum":["single","multi"]},"validUntil":{"type":"string"},"reason":{"type":"string"},"code":{"type":"string"},"printUrl":{"type":"string"}},"required":["object","id","lastFour","channel","currency","issued","balance","held","available","captured","redeemed","credited","purpose","validUntil","code"]},"Journey":{"type":"object","properties":{"channel":{"type":"string"},"origin":{"$ref":"#/components/schemas/JourneyOrigin"},"steps":{"type":"object","properties":{"lines":{"type":"string"},"quote":{"type":"string"},"address":{"type":"string"},"shipping":{"type":"string"},"payment":{"type":"string"},"order":{"type":"string"}}},"method":{"type":"object","properties":{"id":{"type":"string"},"express":{"type":"boolean"}},"required":["id","express"]},"friction":{"type":"object","properties":{"quoteChanged":{"type":"integer","minimum":0,"maximum":9007199254740991},"declined":{"type":"integer","minimum":0,"maximum":9007199254740991},"challenged":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":0,"maximum":9007199254740991},"recovered":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["quoteChanged","declined","challenged","unknown","recovered"]},"resumed":{"type":"boolean"}},"required":["channel","origin","steps","friction"]},"JourneyOrigin":{"type":"string","enum":["storefront","agent"]},"JourneyStep":{"type":"string","enum":["lines","quote","address","shipping","payment","order"]},"Json":{"anyOf":[{"type":"null"},{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"array","items":{"$ref":"#/components/schemas/Json"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}]},"JsonInput":{"$ref":"#/components/schemas/Json"},"JsonObject":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"Line":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"status":{"type":"string","enum":["available","unavailable"]},"reason":{"type":"string"},"offer":{"$ref":"#/components/schemas/OfferView"},"stale":{"default":false,"type":"boolean"}},"required":["id","reference","quantity","configuration","status"]},"LineConfiguration":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"LineUnits":{"type":"object","properties":{"line":{"type":"string"},"ordered":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"fulfilled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canceled":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"returned":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"returnable":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","ordered","fulfilled","canceled","returned","open","returnable"]},"ListCarts":{"type":"object","properties":{"attention":{"type":"string","const":"true"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200}},"required":["attention"],"additionalProperties":false},"ListedEvent":{"type":"object","properties":{"event":{"$ref":"#/components/schemas/Event"},"deliveries":{"type":"array","items":{"type":"object","properties":{"receiver":{"type":"string"},"status":{"$ref":"#/components/schemas/DeliveryStatus"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["receiver","status","attempts"]}}},"required":["event","deliveries"]},"ListedIssue":{"type":"object","properties":{"type":{"type":"string"},"since":{"type":"string"}},"required":["type"]},"ListEvents":{"type":"object","properties":{"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200},"type":{"type":"string"},"subject":{"type":"string","minLength":1,"maxLength":100},"channel":{"type":"string"},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"additionalProperties":false},"ListGiftCards":{"type":"object","properties":{"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":100}},"additionalProperties":false},"ListOrders":{"type":"object","properties":{"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200},"sort":{"default":"newest","type":"string","enum":["newest","oldest"]},"payment":{"type":"string"},"fulfillment":{"type":"string"},"refunds":{"type":"string"},"handoff":{"type":"string"},"attention":{"type":"string","enum":["true","false"]},"channel":{"type":"string"},"buyer":{"type":"string","minLength":1,"maxLength":255},"issuer":{"type":"string","minLength":1,"maxLength":500},"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"count":{"type":"string","const":"true"},"expand":{"type":"string","const":"order"}},"additionalProperties":false},"ListRedemptions":{"type":"object","properties":{"limit":{"default":50,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":100}},"additionalProperties":false},"LookUpGiftCard":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":64}},"required":["code"],"additionalProperties":false},"MerchantCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lines":{"type":"array","items":{"$ref":"#/components/schemas/Line"}},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"codes":{"default":[],"type":"array","items":{"type":"string"}},"giftCards":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedGiftCard"}},"toPay":{"$ref":"#/components/schemas/Money"},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"askedExtensions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/AskedExtension"}},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/OfferedShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}}},"required":["object","id","environment","channel","version","lines","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle","issues","history"]},"Money":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string"}},"required":["amount","currency"]},"MoveOrderVisit":{"type":"object","properties":{"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"notifyBuyer":{"type":"boolean"}},"required":["start","notifyBuyer"],"additionalProperties":false},"MoveOrderVisitResult":{"type":"object","properties":{"status":{"type":"string","enum":["moved","time_taken","unknown"]},"order":{"$ref":"#/components/schemas/Order"}},"required":["status","order"]},"OfferedAction":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"input":{"type":"array","items":{"$ref":"#/components/schemas/ActionField"}}},"required":["id","label"]},"OfferedShippingMethod":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"deliveryTime":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"type":{"type":"string","const":"delivery"}},"required":["id","title","type"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"deliveryTime":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"type":{"type":"string","const":"pickup"},"location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},"opening":{"type":"object","properties":{"hours":{"type":"object","properties":{"week":{"type":"object","propertyNames":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"}},"required":["from","to"],"additionalProperties":false}}},"exceptions":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"hours":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"}},"required":["from","to"],"additionalProperties":false}},"reason":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","minLength":1,"maxLength":200}}},"required":["from","to","hours"],"additionalProperties":false}}},"required":["week","exceptions"],"additionalProperties":false},"timeZone":{"type":"string"}},"required":["hours","timeZone"],"additionalProperties":false}},"required":["id","name","address"]}},"required":["id","title","price","type","location"]}]},"OfferView":{"type":"object","properties":{"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"unitPrice":{"$ref":"#/components/schemas/UnitPrice"},"deposit":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money"},"taxCategory":{"type":"string"}},"required":["price","taxCategory"]},"image":{"type":"string"},"url":{"type":"string"},"deliveryTime":{"type":"string"},"compareAt":{"$ref":"#/components/schemas/Money"},"promotion":{"type":"string"},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"withdrawal":{"type":"object","properties":{"excluded":{"type":"string"}},"required":["excluded"]},"supply":{"type":"object","properties":{"type":{"type":"string","const":"b2c_work_on_movable_goods"},"location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]}},"required":["id","name","address"]}},"required":["type","location"]}},"required":["title","price"]},"OpenApplePaySession":{"type":"object","properties":{"page":{"type":"string","maxLength":2048,"format":"uri"}},"required":["page"],"additionalProperties":false},"OpenedQuote":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"$ref":"#/components/schemas/OfferView"},"deposit":{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"allOf":[{"$ref":"#/components/schemas/ShippingMethod"},{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]}]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"},"deposit":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"giftCards":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedGiftCard"}},"toPay":{"$ref":"#/components/schemas/Money"},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"signature":{"type":"string"},"document":{"type":"string"},"acceptance":{"$ref":"#/components/schemas/PaymentAcceptance"}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","toPay","legal","signature","document"]},"Order":{"type":"object","properties":{"object":{"type":"string","const":"order"},"id":{"type":"string"},"number":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"locale":{"type":"string"},"orderedAt":{"type":"string"},"quote":{"$ref":"#/components/schemas/Quote"},"contact":{"type":"object","properties":{"email":{"type":"string"},"phone":{"type":"string"}},"required":["email"]},"consent":{"type":"object","properties":{"givenAt":{"type":"string"}},"required":["givenAt"]},"appointments":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"pending"}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","const":"confirmed"},"appointments":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string","minLength":1},"appointment":{"type":"string","minLength":1},"job":{"type":"string","minLength":1},"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"state":{"type":"string","enum":["made","cancelled"]},"location":{"type":"string"},"resources":{"type":"array","items":{"type":"string"}}},"required":["line","appointment","job","start","end","state","location","resources"],"additionalProperties":false}}},"required":["status","appointments"]},{"type":"object","properties":{"status":{"type":"string","const":"unavailable"},"lines":{"type":"array","items":{"type":"string"}}},"required":["status","lines"]}]},"payment":{"type":"object","properties":{"id":{"type":"string"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"},"captured":{"$ref":"#/components/schemas/Money"},"refunded":{"$ref":"#/components/schemas/Money"},"instructions":{"$ref":"#/components/schemas/PaymentInstructions"},"owed":{"$ref":"#/components/schemas/Money"}},"required":["id","method"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"units":{"type":"array","items":{"$ref":"#/components/schemas/LineUnits"}},"shipments":{"type":"array","items":{"$ref":"#/components/schemas/Shipment"}},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"token":{"type":"string"},"url":{"type":"string"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"delayedFollowUp":{"$ref":"#/components/schemas/OrderFollowUp"},"history":{"type":"array","items":{"$ref":"#/components/schemas/Activity"}},"actions":{"type":"array","items":{"$ref":"#/components/schemas/OfferedAction"}}},"required":["object","id","number","cart","environment","channel","locale","orderedAt","quote","contact","consent","payment","fulfillment","units","shipments","refunds","token"]},"OrderAppointmentsChangedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.appointments_changed"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"change":{"$ref":"#/components/schemas/AppointmentChange"}},"required":["order","change"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderCanceledEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.canceled"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","quantity"]}}},"required":["order","lines"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderCount":{"type":"object","properties":{"value":{"type":"integer","minimum":0,"maximum":9007199254740991},"capped":{"type":"boolean"}},"required":["value","capped"]},"OrderCreatedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.created"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"total":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","reference","quantity"]}},"journey":{"$ref":"#/components/schemas/Journey"}},"required":["order","total","lines"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderFollowUp":{"type":"object","properties":{"kind":{"type":"string","enum":["payment","refund","stock","discount","gift_card","handoff","order_list","order_event"]},"since":{"type":"string"},"nextAt":{"type":"string"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["kind","since","nextAt","attempts"]},"OrderFulfilledEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.fulfilled"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","quantity"]}},"carrier":{"type":"string"},"reference":{"type":"string"}},"required":["order","lines"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderHandedOffEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.handed_off"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"reference":{"type":"string"}},"required":["order"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderIssueOpenedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.issue_opened"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"issue":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"stock_not_committed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"gift_card_not_captured"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"appointment_not_committed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"handoff_failed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_failed"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_amount_mismatch"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"capture_unresolved"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_failed"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_unresolved"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["stock_not_committed","gift_card_not_captured","appointment_not_committed","handoff_failed","payment_failed","payment_amount_mismatch","capture_unresolved","refund_failed","refund_unresolved"]}}},"required":["type"],"additionalProperties":{}}]}},"required":["order","issue"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderIssueResolvedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.issue_resolved"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"issue":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"stock_not_committed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"gift_card_not_captured"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"appointment_not_committed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"handoff_failed"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_failed"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"payment_amount_mismatch"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"capture_unresolved"},"payment":{"type":"string"}},"required":["type","payment"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_failed"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","const":"refund_unresolved"},"refund":{"type":"string"}},"required":["type","refund"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["stock_not_committed","gift_card_not_captured","appointment_not_committed","handoff_failed","payment_failed","payment_amount_mismatch","capture_unresolved","refund_failed","refund_unresolved"]}}},"required":["type"],"additionalProperties":{}}]},"resolvedBy":{"type":"string"}},"required":["order","issue"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"type":"object","properties":{"object":{"type":"string","const":"order_summary"},"id":{"type":"string"},"number":{"type":"string"},"channel":{"type":"string"},"orderedAt":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"},"payment":{"type":"object","properties":{"method":{"type":"string"},"provider":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"}},"required":["method","provider","status"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ListedIssue"}},"lineCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"indexedAt":{"type":"string"},"order":{"$ref":"#/components/schemas/StaffOrder"}},"required":["object","id","number","channel","orderedAt","total","payment","fulfillment","refunds","issues","lineCount","unitCount","version","indexedAt"]}},"next":{"type":"string"},"count":{"$ref":"#/components/schemas/OrderCount"}},"required":["object","data"]},"OrderRefunds":{"type":"object","properties":{"object":{"type":"string","const":"order_refunds"},"available":{"type":"object","properties":{"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":0,"maximum":9007199254740991},"depositQuantity":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["line","quantity"]}},"shipping":{"type":"boolean"}},"required":["lines","shipping"]},"data":{"type":"array","items":{"$ref":"#/components/schemas/RefundSummary"}},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}}},"required":["object","available","data","issues"]},"OrderReturnedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.returned"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","quantity"]}},"restock":{"type":"boolean"}},"required":["order","lines","restock"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OrderSearchResult":{"type":"object","properties":{"object":{"type":"string","const":"order_summary"},"id":{"type":"string"},"number":{"type":"string"},"channel":{"type":"string"},"orderedAt":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"},"payment":{"type":"object","properties":{"method":{"type":"string"},"provider":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"}},"required":["method","provider","status"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ListedIssue"}},"lineCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["object","id","number","channel","orderedAt","total","payment","fulfillment","refunds","issues","lineCount","unitCount"]},"OrderSearchResults":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderSearchResult"}},"next":{"type":"string"}},"required":["object","data"]},"OrderSummary":{"type":"object","properties":{"object":{"type":"string","const":"order_summary"},"id":{"type":"string"},"number":{"type":"string"},"channel":{"type":"string"},"orderedAt":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"},"payment":{"type":"object","properties":{"method":{"type":"string"},"provider":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"}},"required":["method","provider","status"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/ListedIssue"}},"lineCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"unitCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"indexedAt":{"type":"string"}},"required":["object","id","number","channel","orderedAt","total","payment","fulfillment","refunds","issues","lineCount","unitCount","version","indexedAt"]},"OrderVisitFreeTimesQuery":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"days":{"default":7,"type":"integer","minimum":1,"maximum":14}},"required":["from"],"additionalProperties":false},"OrderWithdrawnEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"order.withdrawn"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"goods":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","quantity"]}},"timing":{"type":"string"}},"required":["order","goods","timing"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"OriginFunnel":{"type":"object","properties":{"origin":{"$ref":"#/components/schemas/JourneyOrigin"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"funnel":{"type":"array","items":{"$ref":"#/components/schemas/FunnelStep"}}},"required":["origin","attempts","orders","funnel"]},"Payment":{"oneOf":[{"$ref":"#/components/schemas/PaymentRequiringAction"},{"type":"object","properties":{"object":{"type":"string","const":"payment"},"id":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string","const":"failed"},"reason":{"type":"string"}},"required":["object","id","quote","amount","method","provider","status"]},{"type":"object","properties":{"object":{"type":"string","const":"payment"},"id":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string","enum":["processing","unknown","authorized","captured","pending_funds","canceled"]}},"required":["object","id","quote","amount","method","provider","status"]}]},"PaymentAcceptance":{"oneOf":[{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"ordered"},"payment":{"$ref":"#/components/schemas/Payment"},"order":{"$ref":"#/components/schemas/Order"}},"required":["object","status","payment","order"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","const":"requires_action"},"payment":{"$ref":"#/components/schemas/PaymentRequiringAction"}},"required":["object","status","payment"]},{"type":"object","properties":{"object":{"type":"string","const":"acceptance"},"status":{"type":"string","enum":["pending","failed"]},"payment":{"$ref":"#/components/schemas/Payment"}},"required":["object","status","payment"]}]},"PaymentAuthorizedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"payment.authorized"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["cart","payment","quote","amount","method","provider"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentAxis":{"type":"string","enum":["authorized","partially_captured","captured","pending_funds","failed","canceled"]},"PaymentCanceledEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"payment.canceled"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"reason":{"type":"string"}},"required":["cart","payment","quote","amount","method","provider"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentCapturedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"payment.captured"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"payment":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["order","payment","amount"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentFailedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"payment.failed"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"reason":{"type":"string"}},"required":["payment"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentInstructions":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"bank_transfer"},"account":{"$ref":"#/components/schemas/BankAccount"},"reference":{"type":"string"},"payBy":{"type":"string"}},"required":["type","account","reference"]},{"type":"object","properties":{"type":{"type":"string","const":"pay_on_site"},"instructions":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["bank_transfer","pay_on_site"]}}},"required":["type"],"additionalProperties":{}}]},"PaymentMethod":{"type":"object","properties":{"id":{"type":"string"},"provider":{"type":"string"},"flow":{"type":"string"},"terms":{"$ref":"#/components/schemas/PaymentTerms"},"express":{"type":"string"},"expressOnly":{"type":"boolean","const":true},"preparationRequired":{"type":"boolean","const":true},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"sdk":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}},"setupRequired":{"type":"boolean"}},"required":["id","provider","flow","fields","missing","sdk"]},"PaymentMix":{"type":"object","properties":{"method":{"type":"string"},"express":{"type":"boolean"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"orders":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["method","express","attempts","orders"]},"PaymentPendingFundsEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"payment.pending_funds"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"cart":{"type":"string"},"payment":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["cart","payment","quote","amount","method","provider"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentPreparation":{"anyOf":[{"type":"object","properties":{"object":{"type":"string","const":"payment_preparation"},"id":{"type":"string"},"method":{"type":"string"},"providerReference":{"type":"string"},"sdk":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["object","id","method","providerReference"]},{"type":"object","properties":{"object":{"type":"string","const":"payment_preparation"},"id":{"type":"string"},"method":{"type":"string"},"sdk":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["object","id","method","sdk"]}]},"PaymentRefundedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"payment.refunded"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"type":"string","const":"deposit"},"component":{"not":{}}},"required":["line","quantity","target"]},{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"},"target":{"not":{}}},"required":["line","quantity"]}]}},"shipping":{"type":"boolean"},"provider":{"type":"string"},"providerReference":{"type":"string"}},"required":["order","payment","amount","lines","shipping"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentRefundFailedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"payment.refund_failed"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","number","version"]},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["order","payment","refund","amount"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"PaymentRequiringAction":{"type":"object","properties":{"object":{"type":"string","const":"payment"},"id":{"type":"string"},"quote":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"method":{"type":"string"},"provider":{"type":"string"},"status":{"type":"string","const":"requires_action"},"action":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"redirect"},"url":{"type":"string"}},"required":["type","url"]},{"type":"object","properties":{"type":{"type":"string","const":"sdk"},"data":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/Json"}}},"required":["type","data"]}]}},"required":["object","id","quote","amount","method","provider","status","action"]},"PaymentSetup":{"type":"object","properties":{"sdk":{"$ref":"#/components/schemas/JsonObject"}},"required":["sdk"]},"PaymentTerms":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"bank_transfer"},"daysToPay":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","const":"pay_on_site"},"instructions":{"type":"string"}},"required":["type"]},{"type":"object","properties":{"type":{"type":"string","not":{"enum":["bank_transfer","pay_on_site"]}}},"required":["type"],"additionalProperties":{}}]},"PreparePayment":{"type":"object","properties":{"payment":{"type":"string","minLength":1,"maxLength":100},"returnTo":{"type":"string","maxLength":2000}},"required":["payment"],"additionalProperties":false},"Problem":{"type":"object","properties":{"title":{"type":"string"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"code":{"type":"string"},"kind":{"$ref":"#/components/schemas/ProblemKind"},"retryable":{"type":"boolean"},"requestId":{"type":"string"},"detail":{"type":"string"},"errors":{"type":"array","items":{"$ref":"#/components/schemas/FieldError"}},"cart":{"$ref":"#/components/schemas/Cart"},"missing":{"type":"array","items":{"type":"string"}},"invalid":{"type":"array","items":{"type":"string"}},"lines":{"type":"array","items":{"type":"string"}},"country":{"type":"string"},"taxCategory":{"type":"string"},"area":{"type":"string","enum":["orders","appointments","products","content","search","connections","settings"]},"level":{"type":"string","enum":["view","edit"]}},"required":["title","status","code","kind","retryable","requestId","detail"],"additionalProperties":{}},"ProblemKind":{"type":"string","enum":["invalid","unauthorized","forbidden","not_found","conflict","rate_limited","unavailable","internal"]},"Quote":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"$ref":"#/components/schemas/OfferView"},"deposit":{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"allOf":[{"$ref":"#/components/schemas/ShippingMethod"},{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]}]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"},"deposit":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"giftCards":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedGiftCard"}},"toPay":{"$ref":"#/components/schemas/Money"},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"signature":{"type":"string"},"document":{"type":"string"}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","toPay","legal","signature","document"]},"QuoteAcceptedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"quote.accepted"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"quote":{"type":"string"},"payment":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"}},"required":["cart","quote","payment","total"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"QuoteCreatedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"quote.created"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"cart":{"type":"string"},"quote":{"type":"string"},"total":{"$ref":"#/components/schemas/Money"}},"required":["cart","quote","total"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"QuoteDocument":{"type":"object","properties":{"format":{"type":"string","enum":["quote/1","quote/2","quote/3"]},"cart":{"type":"string"},"merchant":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"type":"object","properties":{"reference":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"unitPrice":{"$ref":"#/components/schemas/UnitPrice"},"deposit":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money"},"taxCategory":{"type":"string"}},"required":["price","taxCategory"]},"taxCategory":{"type":"string"},"source":{"type":"object","properties":{"provider":{"type":"string"},"fetchedAt":{"type":"string"},"expiresAt":{"type":"string"},"version":{"type":"string"}},"required":["provider","fetchedAt","expiresAt"]},"image":{"type":"string"},"url":{"type":"string"},"deliveryTime":{"type":"string"},"compareAt":{"$ref":"#/components/schemas/Money"},"promotion":{"type":"string"},"appliedCodes":{"type":"array","items":{"type":"string"}},"components":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"}},"required":["reference","title","price"]}},"shipping":{"type":"object","properties":{"weightInGrams":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"restrictions":{"type":"array","items":{"type":"string"}}}},"supply":{"type":"object","properties":{"type":{"type":"string","const":"b2c_work_on_movable_goods"},"location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"}},"required":["partial","country"]}]}},"required":["id","name","address"]}},"required":["type","location"]},"withdrawal":{"type":"object","properties":{"excluded":{"type":"string"}},"required":["excluded"]},"limits":{"type":"object","properties":{"min":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"max":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}}},"attributes":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"tags":{"type":"array","items":{"type":"string"}},"signature":{"type":"string"}},"required":["reference","title","price","taxCategory","source"]},"deposit":{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"rule":{"type":"string"}},"required":["percentage","country","taxCategory","taxableAmount","amount","rule"]}}},"required":["totals","discounts","taxes"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"rule":{"type":"string"}},"required":["percentage","country","taxCategory","taxableAmount","amount","rule"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"delivery"},"id":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"requires":{"type":"array","items":{"type":"string"}},"source":{"type":"object","properties":{"provider":{"type":"string"},"fetchedAt":{"type":"string"},"expiresAt":{"type":"string"},"version":{"type":"string"}},"required":["provider","fetchedAt","expiresAt"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"rule":{"type":"string"}},"required":["percentage","country","taxCategory","taxableAmount","amount","rule"]}}},"required":["type","id","title","price","requires","totals","discounts","taxes"]},{"type":"object","properties":{"type":{"type":"string","const":"pickup"},"location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"}},"required":["partial","country"]}]},"opening":{"type":"object","properties":{"hours":{"type":"object","properties":{"week":{"type":"object","propertyNames":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"}},"required":["from","to"],"additionalProperties":false}}},"exceptions":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"hours":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"}},"required":["from","to"],"additionalProperties":false}},"reason":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","minLength":1,"maxLength":200}}},"required":["from","to","hours"],"additionalProperties":false}}},"required":["week","exceptions"],"additionalProperties":false},"timeZone":{"type":"string"}},"required":["hours","timeZone"],"additionalProperties":false}},"required":["id","name","address"]},"id":{"type":"string"},"title":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"deliveryTime":{"type":"string"},"requires":{"type":"array","items":{"type":"string"}},"source":{"type":"object","properties":{"provider":{"type":"string"},"fetchedAt":{"type":"string"},"expiresAt":{"type":"string"},"version":{"type":"string"}},"required":["provider","fetchedAt","expiresAt"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"type":"object","properties":{"discount":{"type":"string"},"scope":{"type":"string","enum":["line","order","shipping"]},"code":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["discount","scope","amount"]}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"},"rule":{"type":"string"}},"required":["percentage","country","taxCategory","taxableAmount","amount","rule"]}}},"required":["type","location","id","title","price","requires","totals","discounts","taxes"]}]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string"},"region":{"type":"string"},"city":{"type":"string"},"postalCode":{"type":"string"}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"},"deposit":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"giftCards":{"type":"array","items":{"type":"object","properties":{"card":{"type":"string"},"lastFour":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"purpose":{"type":"string","enum":["single","multi"]},"taxPaid":{"$ref":"#/components/schemas/Money"},"taxScope":{"type":"object","properties":{"country":{"type":"string"},"taxCategory":{"type":"string"},"percentage":{"type":"string"},"value":{"$ref":"#/components/schemas/Money"},"taxPaid":{"$ref":"#/components/schemas/Money"}},"required":["country","taxCategory","percentage","value","taxPaid"]}},"required":["card","lastFour","amount","purpose"]}},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"agent":{"type":"object","properties":{"profile":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["profile","keyFingerprint"]},"extensions":{"$ref":"#/components/schemas/CartExtensions"},"configurationVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["format","cart","merchant","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","legal","extensions","configurationVersion"]},"ReadCheckoutInsights":{"type":"object","properties":{"days":{"default":30,"type":"integer","minimum":1,"maximum":365},"channel":{"type":"string"},"origin":{"$ref":"#/components/schemas/JourneyOrigin"}},"additionalProperties":false},"Receiver":{"type":"object","properties":{"object":{"type":"string","const":"receiver"},"name":{"type":"string"},"kind":{"$ref":"#/components/schemas/ReceiverKind"},"state":{"$ref":"#/components/schemas/ReceiverState"},"backlog":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSuccess":{"type":"string"}},"required":["object","name","kind","state","backlog"]},"ReceiverKind":{"type":"string","enum":["function","http","service"]},"ReceiverList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Receiver"}}},"required":["object","data"]},"ReceiverState":{"type":"string","enum":["active","failing","paused"]},"RecordedAppointmentChange":{"type":"object","properties":{"status":{"type":"string","const":"recorded"}},"required":["status"],"additionalProperties":false},"RecordPayment":{"type":"object","properties":{"amount":{"type":"object","properties":{"amount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"reference":{"type":"string","minLength":1,"maxLength":200}},"required":["amount"],"additionalProperties":false},"RedactedActivity":{"type":"object","properties":{"sequence":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"type":{"type":"string"},"at":{"type":"string"},"actor":{"type":"string"},"by":{"type":"string"},"reference":{"type":"string"},"payment":{"type":"string"},"refund":{"type":"string"},"amount":{"$ref":"#/components/schemas/Money"},"providerReference":{"type":"string"},"lines":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"type":"string","const":"deposit"},"component":{"not":{}}},"required":["line","quantity","target"]},{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"},"target":{"not":{}}},"required":["line","quantity"]}]}},"shipping":{"type":"boolean"},"carrier":{"type":"string"},"restock":{"type":"boolean"},"short":{"type":"array","items":{"type":"object","properties":{"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["reference","quantity"]}},"appointments":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"appointment":{"type":"string"},"job":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"}},"required":["line","appointment","job","start","end"]}},"change":{"$ref":"#/components/schemas/AppointmentChange"},"unavailable":{"type":"array","items":{"type":"string"}},"action":{"type":"string"},"outcome":{"type":"string"},"withdrawal":{"type":"object","properties":{"goods":{"type":"string"},"timing":{"type":"string"},"periodEnd":{"type":"string"}},"required":["goods","timing"]}},"required":["sequence","type","at","actor"]},"RedactedCart":{"type":"object","properties":{"object":{"type":"string","const":"cart"},"id":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"shipping":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/OfferedShippingMethod"}},"fields":{"$ref":"#/components/schemas/Fields"},"missing":{"type":"array","items":{"type":"string"}},"changes":{"type":"array","items":{"$ref":"#/components/schemas/Change"}},"estimate":{"$ref":"#/components/schemas/CartEstimate"},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"destinations":{"type":"array","items":{"type":"string"}},"lifecycle":{"$ref":"#/components/schemas/CartLifecycle"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"personalData":{"type":"string","const":"withheld"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["available","unavailable"]},"reason":{"type":"string"},"offer":{"$ref":"#/components/schemas/OfferView"},"stale":{"default":false,"type":"boolean"}},"required":["id","reference","quantity","status"]}},"history":{"type":"array","items":{"$ref":"#/components/schemas/RedactedActivity"}}},"required":["object","id","environment","channel","version","shippingMethods","fields","missing","changes","estimate","paymentMethods","lifecycle","issues","personalData","lines","history"]},"RedactedOrder":{"type":"object","properties":{"object":{"type":"string","const":"order"},"id":{"type":"string"},"number":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"locale":{"type":"string"},"orderedAt":{"type":"string"},"consent":{"type":"object","properties":{"givenAt":{"type":"string"}},"required":["givenAt"]},"appointments":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"pending"}},"required":["status"]},{"type":"object","properties":{"status":{"type":"string","const":"confirmed"},"appointments":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string","minLength":1},"appointment":{"type":"string","minLength":1},"job":{"type":"string","minLength":1},"start":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"end":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"state":{"type":"string","enum":["made","cancelled"]},"location":{"type":"string"},"resources":{"type":"array","items":{"type":"string"}}},"required":["line","appointment","job","start","end","state","location","resources"],"additionalProperties":false}}},"required":["status","appointments"]},{"type":"object","properties":{"status":{"type":"string","const":"unavailable"},"lines":{"type":"array","items":{"type":"string"}}},"required":["status","lines"]}]},"payment":{"type":"object","properties":{"id":{"type":"string"},"method":{"type":"string"},"provider":{"type":"string"},"providerReference":{"type":"string"},"status":{"$ref":"#/components/schemas/PaymentAxis"},"captured":{"$ref":"#/components/schemas/Money"},"refunded":{"$ref":"#/components/schemas/Money"},"instructions":{"$ref":"#/components/schemas/PaymentInstructions"},"owed":{"$ref":"#/components/schemas/Money"}},"required":["id","method"]},"fulfillment":{"$ref":"#/components/schemas/FulfillmentAxis"},"units":{"type":"array","items":{"$ref":"#/components/schemas/LineUnits"}},"refunds":{"$ref":"#/components/schemas/RefundsAxis"},"handoff":{"$ref":"#/components/schemas/HandoffAxis"},"issues":{"type":"array","items":{"$ref":"#/components/schemas/Issue"}},"delayedFollowUp":{"$ref":"#/components/schemas/OrderFollowUp"},"personalData":{"type":"string","const":"withheld"},"quote":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"shipping":{"allOf":[{"$ref":"#/components/schemas/ShippingMethod"},{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]}]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"},"deposit":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"offer":{"$ref":"#/components/schemas/OfferView"},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}},"deposit":{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]}},"required":["id","reference","quantity","offer","totals","discounts","taxes"]}}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","totals","legal","lines"]},"history":{"type":"array","items":{"$ref":"#/components/schemas/RedactedActivity"}}},"required":["object","id","number","cart","environment","channel","locale","orderedAt","consent","payment","fulfillment","units","refunds","personalData","quote"]},"RedeemGiftCard":{"type":"object","properties":{"code":{"type":"string","minLength":1,"maxLength":64},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"location":{"type":"string","minLength":1,"maxLength":100},"note":{"type":"string","minLength":1,"maxLength":80}},"required":["code","amount","location"],"additionalProperties":false},"Redemption":{"type":"object","properties":{"order":{"type":"string"},"code":{"type":"string"},"at":{"type":"string"}},"required":["order","at"]},"RedemptionList":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"$ref":"#/components/schemas/Redemption"}},"next":{"type":"string"}},"required":["object","data"]},"Refund":{"type":"object","properties":{"object":{"type":"string","const":"refund"},"requestedAt":{"type":"string"},"requestedBy":{"type":"string"},"id":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"]},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"type":"string","const":"deposit"},"component":{"not":{}}},"required":["line","quantity","target"]},{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"},"target":{"not":{}}},"required":["line","quantity"]}]}},"shipping":{"type":"boolean"},"reason":{"type":"string"},"providerReference":{"type":"string"},"order":{"$ref":"#/components/schemas/Order"}},"required":["object","id","status","amount","lines","shipping","order"]},"RefundOrder":{"type":"object","properties":{"lines":{"default":[],"maxItems":200,"type":"array","items":{"anyOf":[{"type":"object","properties":{"line":{"type":"string"},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"target":{"type":"string","const":"deposit"},"component":{"not":{}}},"required":["line","target"],"additionalProperties":false},{"type":"object","properties":{"line":{"type":"string"},"quantity":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991},"component":{"type":"string","minLength":1,"maxLength":200},"target":{"not":{}}},"required":["line"],"additionalProperties":false}]}},"shipping":{"default":false,"type":"boolean"},"expectedAmount":{"type":"object","properties":{"amount":{"type":"integer","minimum":0,"maximum":9007199254740991},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amount","currency"]},"reason":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"RefundPreview":{"type":"object","properties":{"object":{"type":"string","const":"refund_preview"},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"type":"string","const":"deposit"},"component":{"not":{}}},"required":["line","quantity","target"]},{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"},"target":{"not":{}}},"required":["line","quantity"]}]}},"shipping":{"type":"boolean"}},"required":["object","amount","lines","shipping"]},"RefundsAxis":{"type":"string","enum":["none","partial","full"]},"RefundSummary":{"type":"object","properties":{"object":{"type":"string","const":"refund"},"requestedAt":{"type":"string"},"requestedBy":{"type":"string"},"id":{"type":"string"},"status":{"type":"string","enum":["pending","succeeded","failed"]},"amount":{"$ref":"#/components/schemas/Money"},"lines":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"target":{"type":"string","const":"deposit"},"component":{"not":{}}},"required":["line","quantity","target"]},{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"component":{"type":"string"},"target":{"not":{}}},"required":["line","quantity"]}]}},"shipping":{"type":"boolean"},"reason":{"type":"string"},"providerReference":{"type":"string"}},"required":["object","requestedAt","id","status","amount","lines","shipping"]},"ReplaceDiscount":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"percentage":{"type":"number","exclusiveMinimum":0,"maximum":100},"amount":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scope":{"default":"order","type":"string","enum":["order","line","shipping"]},"combination":{"default":"combinable","type":"string","enum":["combinable","exclusive"]},"code":{"type":"string","minLength":1,"maxLength":64},"minimumSubtotal":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"references":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"except":{"type":"object","properties":{"references":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"tags":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"locations":{"type":"object","properties":{"included":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"excluded":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"additionalProperties":false},"methods":{"minItems":1,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"limit":{"type":"object","properties":{"total":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"perBuyer":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"required":["name"],"additionalProperties":false},"Replayed":{"type":"object","properties":{"object":{"type":"string","const":"replayed"},"events":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"receivers":{"type":"array","items":{"type":"string"}},"next":{"type":"string"}},"required":["object","events","receivers"]},"ReplayEvents":{"type":"object","properties":{"since":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"receiver":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*$"},"after":{"type":"string","minLength":1,"maxLength":200}},"required":["since"],"additionalProperties":false},"ResendEvent":{"default":{},"type":"object","properties":{"receiver":{"type":"string","maxLength":100,"pattern":"^[a-z][a-z0-9_-]*$"}},"additionalProperties":false},"Resent":{"type":"object","properties":{"object":{"type":"string","const":"resent"},"receivers":{"type":"array","items":{"type":"string"}}},"required":["object","receivers"]},"ResumePayment":{"default":{"returned":{}},"type":"object","properties":{"returned":{"default":{},"type":"object","propertyNames":{"type":"string","maxLength":100},"additionalProperties":{"type":"string","maxLength":16384}}},"additionalProperties":false},"ReturnOrder":{"type":"object","properties":{"lines":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["line","quantity"],"additionalProperties":false}},"reason":{"type":"string","minLength":1,"maxLength":500},"restock":{"type":"boolean"}},"required":["lines","reason","restock"],"additionalProperties":false},"ReviewedPreparation":{"type":"object","properties":{"object":{"type":"string","const":"quote"},"id":{"type":"string"},"cart":{"type":"string"},"environment":{"type":"string"},"channel":{"type":"string"},"currency":{"type":"string"},"pricesIncludeTax":{"type":"boolean"},"issuedAt":{"type":"string"},"expiresAt":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"reference":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"configuration":{"$ref":"#/components/schemas/LineConfiguration"},"offer":{"$ref":"#/components/schemas/OfferView"},"deposit":{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["id","reference","quantity","configuration","offer","totals","discounts","taxes"]}},"shipping":{"allOf":[{"$ref":"#/components/schemas/ShippingMethod"},{"type":"object","properties":{"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total"]},"discounts":{"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"taxes":{"type":"array","items":{"type":"object","properties":{"percentage":{"type":"string"},"country":{"type":"string"},"taxCategory":{"type":"string"},"taxableAmount":{"$ref":"#/components/schemas/Money"},"amount":{"$ref":"#/components/schemas/Money"}},"required":["percentage","country","taxCategory","taxableAmount","amount"]}}},"required":["totals","discounts","taxes"]}]},"shipTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"billTo":{"anyOf":[{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string","minLength":1,"maxLength":200},"company":{"type":"string","minLength":1,"maxLength":200},"line1":{"type":"string","minLength":1,"maxLength":200},"line2":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20},"city":{"type":"string","minLength":1,"maxLength":200},"region":{"type":"string","minLength":1,"maxLength":200},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"]}]},"totals":{"type":"object","properties":{"subtotal":{"$ref":"#/components/schemas/Money"},"discount":{"$ref":"#/components/schemas/Money"},"tax":{"$ref":"#/components/schemas/Money"},"totalExcludingTax":{"$ref":"#/components/schemas/Money"},"total":{"$ref":"#/components/schemas/Money"},"shipping":{"$ref":"#/components/schemas/Money"},"deposit":{"$ref":"#/components/schemas/Money"}},"required":["subtotal","discount","tax","totalExcludingTax","total","shipping"]},"giftCards":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedGiftCard"}},"toPay":{"$ref":"#/components/schemas/Money"},"discounts":{"default":[],"type":"array","items":{"$ref":"#/components/schemas/AppliedDiscount"}},"extensions":{"default":{},"$ref":"#/components/schemas/CartExtensions"},"legal":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"version":{"type":"string"},"hash":{"type":"string"},"url":{"type":"string"}},"required":["type","version","hash","url"]}},"hold":{"type":"object","properties":{"expiresAt":{"type":"string"}},"required":["expiresAt"]},"paymentMethods":{"type":"array","items":{"$ref":"#/components/schemas/PaymentMethod"}},"shippingMethods":{"type":"array","items":{"$ref":"#/components/schemas/ShippingMethod"}},"signature":{"type":"string"},"document":{"type":"string"},"acceptance":{"$ref":"#/components/schemas/PaymentAcceptance"},"preparation":{"$ref":"#/components/schemas/PaymentPreparation"}},"required":["object","id","cart","environment","channel","currency","pricesIncludeTax","issuedAt","expiresAt","lines","totals","toPay","legal","signature","document","preparation"]},"ReviewPreparation":{"default":{},"type":"object","properties":{"returned":{"type":"object","propertyNames":{"type":"string","maxLength":100},"additionalProperties":{"type":"string","maxLength":2000}}},"additionalProperties":false},"RunAction":{"default":{"input":{}},"type":"object","properties":{"input":{"default":{},"$ref":"#/components/schemas/ActionValues"}},"additionalProperties":false},"SearchOrders":{"type":"object","properties":{"email":{"type":"string"},"buyer":{"type":"string","minLength":1,"maxLength":255},"issuer":{"type":"string","minLength":1,"maxLength":500},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"after":{"type":"string","minLength":1,"maxLength":200}},"additionalProperties":false},"SetExtension":{"type":"object","properties":{"value":{"$ref":"#/components/schemas/JsonInput"}},"required":["value"],"additionalProperties":false},"SetLineQuantity":{"type":"object","properties":{"quantity":{"type":"integer","minimum":1,"maximum":9999}},"required":["quantity"],"additionalProperties":false},"SetShipping":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100}},"required":["id"],"additionalProperties":false},"Shipment":{"type":"object","properties":{"shippedAt":{"type":"string"},"carrier":{"type":"string"},"tracking":{"type":"string"},"trackingUrl":{"type":"string"},"lines":{"type":"array","items":{"type":"object","properties":{"line":{"type":"string"},"quantity":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["line","quantity"]}}},"required":["shippedAt","lines"]},"ShippingMethod":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"deliveryTime":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"type":{"type":"string","const":"delivery"}},"required":["id","title","price","type"]},{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"deliveryTime":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"type":{"type":"string","const":"pickup"},"location":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"address":{"type":"object","properties":{"partial":{"type":"boolean","const":false},"name":{"type":"string"},"company":{"type":"string"},"line1":{"type":"string"},"line2":{"type":"string"},"postalCode":{"type":"string"},"city":{"type":"string"},"region":{"type":"string"},"country":{"type":"string","pattern":"^[A-Z]{2}$"}},"required":["partial","name","line1","city","country"]},"opening":{"type":"object","properties":{"hours":{"type":"object","properties":{"week":{"type":"object","propertyNames":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"additionalProperties":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"}},"required":["from","to"],"additionalProperties":false}}},"exceptions":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"to":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"hours":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"},"to":{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$|^24:00$"}},"required":["from","to"],"additionalProperties":false}},"reason":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","minLength":1,"maxLength":200}}},"required":["from","to","hours"],"additionalProperties":false}}},"required":["week","exceptions"],"additionalProperties":false},"timeZone":{"type":"string"}},"required":["hours","timeZone"],"additionalProperties":false}},"required":["id","name","address"]}},"required":["id","title","price","type","location"]}]},"StaffCart":{"anyOf":[{"$ref":"#/components/schemas/RedactedCart"},{"$ref":"#/components/schemas/MerchantCart"}]},"StaffOrder":{"anyOf":[{"$ref":"#/components/schemas/RedactedOrder"},{"$ref":"#/components/schemas/Order"}]},"Timing":{"type":"object","properties":{"orders":{"type":"integer","minimum":0,"maximum":9007199254740991},"median":{"type":"integer","minimum":0,"maximum":9007199254740991},"p90":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["orders"]},"UnitPrice":{"type":"object","properties":{"price":{"$ref":"#/components/schemas/Money"},"per":{"type":"string","enum":["kg","100g","l","100ml","m","m2"]}},"required":["price","per"]},"UpdatePreparation":{"anyOf":[{"type":"object","properties":{"shipTo":{"type":"object","properties":{"partial":{"type":"boolean","const":true},"country":{"type":"string","pattern":"^[A-Z]{2}$"},"region":{"type":"string","minLength":1,"maxLength":200},"city":{"type":"string","minLength":1,"maxLength":200},"postalCode":{"type":"string","minLength":1,"maxLength":20}},"required":["partial","country"],"additionalProperties":false}},"required":["shipTo"],"additionalProperties":false},{"type":"object","properties":{"shipping":{"$ref":"#/components/schemas/SetShipping"}},"required":["shipping"],"additionalProperties":false}]},"WindowLimit":{"type":"string","enum":["retention","cap"]},"Withdraw":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"number":{"type":"string","minLength":1,"maxLength":64},"email":{"type":"string","maxLength":254},"goods":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"all"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"some"},"description":{"type":"string","minLength":1,"maxLength":2000}},"required":["type","description"],"additionalProperties":false}]},"locale":{"type":"string"}},"required":["name","number","email","goods","locale"],"additionalProperties":false},"Withdrawal":{"type":"object","properties":{"object":{"type":"string","const":"withdrawal"},"id":{"type":"string"},"receivedAt":{"type":"string"},"name":{"type":"string"},"number":{"type":"string"},"email":{"type":"string"},"goods":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"all"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"some"},"description":{"type":"string","minLength":1,"maxLength":2000}},"required":["type","description"],"additionalProperties":false}]},"locale":{"type":"string"},"status":{"type":"string"},"order":{"type":"string"},"targetOrder":{"type":"string"}},"required":["object","id","receivedAt","name","number","email","goods","locale","status"]},"WithdrawalAttachment":{"type":"object","properties":{"object":{"type":"string","const":"withdrawal_attachment"},"id":{"type":"string"},"receivedAt":{"type":"string"},"order":{"type":"string"},"status":{"type":"string","enum":["recording","recorded","expired_unconfirmed"]}},"required":["object","id","receivedAt","order","status"]},"WithdrawalInbox":{"type":"object","properties":{"object":{"type":"string","const":"list"},"data":{"type":"array","items":{"anyOf":[{"$ref":"#/components/schemas/Withdrawal"},{"$ref":"#/components/schemas/WithdrawalAttachment"}]}}},"required":["object","data"]},"WithdrawalReceipt":{"type":"object","properties":{"object":{"type":"string","const":"withdrawal_receipt"},"receivedAt":{"type":"string"},"name":{"type":"string"},"number":{"type":"string"},"email":{"type":"string"},"goods":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"all"}},"required":["type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"some"},"description":{"type":"string","minLength":1,"maxLength":2000}},"required":["type","description"],"additionalProperties":false}]},"locale":{"type":"string"}},"required":["object","receivedAt","name","number","email","goods","locale"]},"WithdrawalReceivedEvent":{"type":"object","properties":{"specversion":{"type":"string","const":"1.0"},"id":{"type":"string","minLength":1},"type":{"type":"string","const":"withdrawal.received"},"source":{"type":"string","minLength":1},"subject":{"type":"string","minLength":1},"time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"environment":{"type":"string","pattern":"^(live|test|preview-[a-z0-9-]+)$"},"dataschema":{"type":"string","format":"uri"},"channel":{"type":"string"},"data":{"type":"object","properties":{"withdrawal":{"type":"string"},"order":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"}},"required":["id","number"]}},"required":["withdrawal"]}},"required":["specversion","id","type","source","subject","time","environment","channel","data"]},"WriteNote":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2000}},"required":["text"],"additionalProperties":false}},"responses":{"Problem":{"description":"A Problem Details answer (RFC 9457). Decide by `code`, never by `detail`.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}},"securitySchemes":{"publishable":{"type":"http","scheme":"bearer","description":"A publishable key, `pk_test_…` or `pk_live_…`: creates Carts in its Channel. Safe in a browser."},"cart":{"type":"http","scheme":"bearer","description":"A Cart token, `cart_…_secret_…`: reads, changes, quotes and pays one Cart. Keep it secret."},"order":{"type":"http","scheme":"bearer","description":"An Order token, `ord_…_secret_…`: reads one Order as its buyer sees it. It is the secret in the buyer's link to the order page."},"secret":{"type":"http","scheme":"bearer","description":"A secret key, `sk_test_…` or `sk_live_…`: the Admin API. Server only."}}}}