Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikepaszkiewicz/b482b1c241462b1991176a9b08ab41a3 to your computer and use it in GitHub Desktop.
Save mikepaszkiewicz/b482b1c241462b1991176a9b08ab41a3 to your computer and use it in GitHub Desktop.
const zuppler = 'c6b348e0-6d49-11ea-9d4d-db9d78913103'
const vendor = '05a3b881-ee42-11eb-a309-21dcd8197474'
const time = moment()
.add({ hours: 2 })
.startOf('hour')
.toISOString()
//quote payload
const q = {
bag_count: 1,
destination:
'1999 North 52nd Street, , Philadelphia, PA, 19131, United States',
origin:
'2000 Market Street, 2000 Market St, Philadelphia, PA 19103, USA',
ready_at: time,
vendor_id: vendor,
}
//order payload
{
customer_name: 'TEST ORDER DO NOT MAKE',
customer_phone: '+14433869479',
daas_type: 'online',
delivery_address:
'1999 North 52nd Street, , Philadelphia, PA, 19131, United States',
delivery_instructions: '',
diner_delivery_fee: 0.0,
external_id: '123321',
method: 'Delivery',
order_total: 5.51,
plain_order: [
{
instructions: '',
itemName: 'Crispy Fingers',
itemPrice: 5.0,
modifiersText: [],
quantity: 1,
},
],
ready_by: time,
scheduled: true,
seller_id: vendor,
source: 'Restaurant Preview Channel',
special_instructions: '',
tip: 0.0,
quote_id: q.quoteId,
}
@mikepaszkiewicz
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment