-
Notifications
You must be signed in to change notification settings - Fork 135
Feat: adds PaymentItemType enum and PaymentItem.type #666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
4b98e53
d7bb87f
d0a11f2
7876653
2c16356
a5dbf13
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1849,7 +1849,7 @@ | |
required DOMString label; | ||
required PaymentCurrencyAmount amount; | ||
boolean pending = false; | ||
PaymentItemType type; | ||
PaymentItemType? type; | ||
}; | ||
|
@@ -1886,10 +1886,11 @@ | |
type member | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since there is no type for the "normal" payment items, I wonder if this should be named "specialType" or something? It's probably fine as just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd like to just keep it as |
||
A PaymentItemType enum value. A the value of type to | ||
assist in the presentation of PaymentItem by, for example, | ||
visually grouping types together or other otherwise distinguishing | ||
them from other types (or from items that have no associated type). | ||
A PaymentItemType enum value or null. A user agent MAY use the | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So here I would say "If supplied, a PaymentItemType enum value" |
||
value of type to assist in the presentation of | ||
PaymentItem by, for example, visually grouping types together | ||
or other otherwise distinguishing them from other types (or from | ||
items that have no associated type). | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need for this to be null. Just have them not supply it if they don't want to set it (or, set it to undefined).