RIAEvangelist / node-dominos-pizza-api

This is a node.js wrapper for the dominos pizza apis
MIT License
534 stars 129 forks source link

Option to add delivery instructions #60

Closed johnhforrest closed 3 years ago

johnhforrest commented 8 years ago

A lot of people have special instructions when they order a pizza (e.g., gate code is 1234 or please call before knocking). It would be nice to have a way to add this programatically or at least call it out in the docs so that devs are aware that's how you pass instructions along.

It looks like the website adds this as another property on the Address object that gets passed to the place-order API:

(address is fake so no PII concerns):

"Address": {
  "Street": "550 WILMINGTON AVE STE 123",
  "StreetName": "WILMINGTON AVE",
  "UnitNumber": "123",
  "UnitType": "STE",
  "City": "DAYTON",
  "Region": "OH",
  "PostalCode": "45420",
  "DeliveryInstructions": "test 123",
  "Type": "House"
},
RIAEvangelist commented 3 years ago

This could be added to the docs. Maybe once I finish the v3.x release.

RIAEvangelist commented 3 years ago

Added to v3.x branch for next release

commit a61f6ac