Closed Bug 1505842 Opened 7 years ago Closed 7 years ago

PaymentDetailsModifier member total should be required

Categories

(Core :: DOM: Web Payments, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1493860
Tracking Status
firefox65 --- affected

People

(Reporter: jkratzer, Unassigned)

Details

According to the PaymentRequest.webidl, the total member of the PaymentDetailsModifier dictionary is not marked as required: dictionary PaymentDetailsBase { sequence<PaymentItem> displayItems; sequence<PaymentShippingOption> shippingOptions; sequence<PaymentDetailsModifier> modifiers; }; However, I cannot find any use case where this value can be omitted without hitting the following exception: TypeError: Missing required 'amount' member of PaymentItem. If this is the case, would it be possible to mark this value as required within the IDL?
I had not, thanks. I'll close this in favor of bug 1493860.
Status: NEW → RESOLVED
Closed: 7 years ago
Flags: needinfo?(jkratzer)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.