Skip to content

Instantly share code, notes, and snippets.

@rsheldiii
Created November 7, 2015 05:34
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 rsheldiii/439edf2e489a158f0871 to your computer and use it in GitHub Desktop.
Save rsheldiii/439edf2e489a158f0871 to your computer and use it in GitHub Desktop.
eror
var pizzapi=require('dominos');
var thePresident = new pizzapi.Customer(
{
firstName: 'first',
lastName: 'last',
address: 'address',
email: 'email'
}
);
var order = new pizzapi.Order(
{
customer: thePresident,
storeID: id,
deliveryMethod: 'Delivery'
}
);
//order.addItem(
// new pizzapi.Item(
// {
// code: 'F_SBBRD',
// quantity: 1
// }
// )
//);
order.addItem(
new pizzapi.Item(
{
code: 'P12IPAZA',
options: ['P', 'M'],
quantity: 1
}
)
);
console.log(pizzapi)
order.addCoupon(
new pizzapi.Coupon(
{
code: 9204,
quantity: 1
}
)
);
order.validate(
function(result) {
console.log(result)
console.log(result.result);
console.log("We did it!");
}
);
@RIAEvangelist
Copy link

Try using the menu object to locate your item and see what the items object looks like. Paste it here and maybe I can help

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