OBJECT

PriceInfo

Generic Price Information that supports taxing and multi region pricing. LONG-TERM NOTE: using Int (32 bit) as a price field can cause issue when we sell products locally e.g. 2147483648 (2^31) Lao Att = 253132 USD cent Therefor, if we sell product which price more than $2500 in Laos currency. We will need to fix this.

link GraphQL Schema definition

1type PriceInfo {
2
3# The currency associated with the price of a subscription product.
4currency: Currency!
5
6# The description associated with pricing information.
7description: String!
8
9# The discounted total also broken down by price and tax.
10discount: DiscountBreakdown
11
12# The ISO-4217 wording of deriving price.
13exponent: Int!
14
15# Identifier used for caching.
16id: ID!
17
18# If the tax is already included in price.
19isTaxInclusive: Boolean!
20
21# The numerical price of a subscription product.
22price: Int!
23
24# The tax rate of localized product.
25tax: Int!
26
27# The total price given price and tax.
28total: Int!
29
30}