Skip to content

Commit

Permalink
feat: Something, v1
Browse files Browse the repository at this point in the history
  • Loading branch information
noahpistilli committed Dec 22, 2024
1 parent db8fe84 commit 5e3ba58
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dominos/dominos.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,8 +692,8 @@ func (d *Dominos) GetPrice(user *User) (*Basket, error) {

return &Basket{
Items: items,
BasketPrice: jsonData["Order"].(map[string]any)["Amounts"].(map[string]any)["Menu"].(float64),
ChargePrice: jsonData["Order"].(map[string]any)["Amounts"].(map[string]any)["Tax"].(float64),
BasketPrice: jsonData["Order"].(map[string]any)["AmountsBreakdown"].(map[string]any)["FoodAndBeverage"].(string),
ChargePrice: jsonData["Order"].(map[string]any)["Amounts"].(map[string]any)["Surcharge"].(float64),
TotalPrice: jsonData["Order"].(map[string]any)["Amounts"].(map[string]any)["Customer"].(float64),
OrderId: jsonData["Order"].(map[string]any)["OrderID"].(string),
}, nil
Expand Down
2 changes: 1 addition & 1 deletion dominos/structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ type BasketItem struct {

type Basket struct {
Items []BasketItem
BasketPrice float64
BasketPrice string
ChargePrice float64
TotalPrice float64
OrderId string
Expand Down
6 changes: 4 additions & 2 deletions main_menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ func documentTemplate(r *Response) {
})
r.AddKVWChildNode("container1", KVField{
XMLName: xml.Name{Local: "contents"},
Value: "Among Us",
// Delivery success
Value: "Enjoy your food!",
})
r.AddKVWChildNode("container2", KVField{
XMLName: xml.Name{Local: "contents"},
Value: "Among Us",
// Delivery failed
Value: "Contact WiiLink Support with your Wii Number",
})
}

Expand Down

0 comments on commit 5e3ba58

Please sign in to comment.