Price attribute of an order or a line item.
JSON representation | |
---|---|
{ "type": enum ( |
Fields | ||
---|---|---|
type |
Required: type of money attribute. |
|
name |
Required: User displayed string of the price attribute. This is sent and localized by merchant. |
|
id |
Optional: Id of the lineitem to which this price corresponds. |
|
state |
Required: state of the price: Estimate vs Actual. |
|
taxIncluded |
Whether the price is tax included. |
|
Union field spec . Represents either monetary amount or milli percentage. spec can be only one of the following: |
||
amount |
Monetary amount. |
|
amountMillipercentage |
The percentage spec, to 1/1000th of a percent. Eg: 8.750% is represented as 8750, negative percentages represent percentage discounts. Deprecating this field. Can consider adding back when a solid usecase is required. |
Money
Represents an amount of money with its currency type.
JSON representation | |
---|---|
{ "currencyCode": string, "amountInMicros": string } |
Fields | |
---|---|
currencyCode |
The 3-letter currency code defined in ISO 4217. |
amountInMicros |
Amount in micros. For example, this field should be set as 1990000 for $1.99. |