RIAEvangelist / node-dominos-pizza-api

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

order.price() fails with any order. #128

Closed Nestrixx closed 10 months ago

Nestrixx commented 2 years ago

I have tried all of the example listed order items in the documentation such as code: 'P_14SCREEN', and order.price() throws DominosPriceError image The only changes to the TLDR version of the code that I made is changing the order.serviceMethod to Carryout and removed the store.IsDeliveryStore check, as in our case we don't care about delivery.

order.Validate passes and I have tried multiple addresses such as '2928 1st Ave, Seattle, WA 98121'.

ElijahPepe commented 2 years ago

Receiving the same error. The issue is probably the code in the pizza constant. The following is confirmed to work:

code:'14SCREEN',
options:{
    X: {'1/1' : '1'}, 
    C: {'1/1' : '2'}
}

The 16 inch no longer exists.

RIAEvangelist commented 10 months ago

This is just because the 14SCREEN is deprecated I think. Have to look at the new menu items.

RIAEvangelist commented 10 months ago

BTW, I am pretty sure I updated the docs.