[w3c/browser-payment-api] maybe add `DisplayItem` dictionary (#457)

As I was implementing using the API on a site, I found I needed to gather together "display items" (`PaymentShippingOption` and `PaymentItem`) in order to calculate tax (`PaymentItem`). Critical for displaying these to the user is the `label` and `amount`. 

As such,  think we should make an Editorial change to introduce:

```JS
dictionary DisplayItem : Localizable {
    required DOMString             label;
    required PaymentCurrencyAmount amount;
};

// and so... 
PaymentShippingOption : DisplayItem {
   // other members
}
PaymentItem : DisplayItem {
  // other members
}
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/browser-payment-api/issues/457

Received on Wednesday, 15 March 2017 04:58:01 UTC