Created
July 13, 2022 19:50
-
-
Save mikepaszkiewicz/b482b1c241462b1991176a9b08ab41a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
} | |
Author
mikepaszkiewicz
commented
Jul 13, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment