[w3c/payment-request] Feat: adds PaymentItemType enum and PaymentItem.type (#666)

 * closes #163 

Adds optional "type" member `PaymentItem` and introduces `PaymentItemType` enum. 

I'm thinking we should introduce "discount" or similar when we add coupon support.  

@domenic, I'm wondering if there would be any advantage to having a default value for the `type` member (e.g., "other")? Thought I'd ask just in case. 
You can view, comment on, or merge this pull request online at:

  https://github.com/w3c/payment-request/pull/666

-- Commit Summary --

  * Feat: adds PaymentItemType enum and PaymentItem.type

-- File Changes --

    M index.html (35)

-- Patch Links --

https://github.com/w3c/payment-request/pull/666.patch
https://github.com/w3c/payment-request/pull/666.diff

-- 
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/payment-request/pull/666

Received on Wednesday, 17 January 2018 03:04:12 UTC