|
|
@@ -15,6 +15,8 @@ export type Scalars = {
|
|
|
DateTime: any;
|
|
|
/** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */
|
|
|
JSON: any;
|
|
|
+ /** The `Money` scalar type represents monetary values and supports signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point). */
|
|
|
+ Money: any;
|
|
|
/** The `Upload` scalar type represents a file upload. */
|
|
|
Upload: any;
|
|
|
};
|
|
|
@@ -72,7 +74,7 @@ export type AdjustDraftOrderLineInput = {
|
|
|
export type Adjustment = {
|
|
|
__typename?: 'Adjustment';
|
|
|
adjustmentSource: Scalars['String'];
|
|
|
- amount: Scalars['Int'];
|
|
|
+ amount: Scalars['Money'];
|
|
|
data?: Maybe<Scalars['JSON']>;
|
|
|
description: Scalars['String'];
|
|
|
type: AdjustmentType;
|
|
|
@@ -779,7 +781,7 @@ export type CreateProductVariantInput = {
|
|
|
featuredAssetId?: InputMaybe<Scalars['ID']>;
|
|
|
optionIds?: InputMaybe<Array<Scalars['ID']>>;
|
|
|
outOfStockThreshold?: InputMaybe<Scalars['Int']>;
|
|
|
- price?: InputMaybe<Scalars['Int']>;
|
|
|
+ price?: InputMaybe<Scalars['Money']>;
|
|
|
productId: Scalars['ID'];
|
|
|
sku: Scalars['String'];
|
|
|
stockLevels?: InputMaybe<Array<StockLevelInput>>;
|
|
|
@@ -1213,7 +1215,7 @@ export type CustomField = {
|
|
|
ui?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
-export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;
|
|
|
+export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | LocaleTextCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig;
|
|
|
|
|
|
export type CustomFields = {
|
|
|
__typename?: 'CustomFields';
|
|
|
@@ -1436,8 +1438,8 @@ export enum DeletionResult {
|
|
|
export type Discount = {
|
|
|
__typename?: 'Discount';
|
|
|
adjustmentSource: Scalars['String'];
|
|
|
- amount: Scalars['Int'];
|
|
|
- amountWithTax: Scalars['Int'];
|
|
|
+ amount: Scalars['Money'];
|
|
|
+ amountWithTax: Scalars['Money'];
|
|
|
description: Scalars['String'];
|
|
|
type: AdjustmentType;
|
|
|
};
|
|
|
@@ -2341,6 +2343,19 @@ export type LocaleStringCustomFieldConfig = CustomField & {
|
|
|
ui?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
|
|
|
|
+export type LocaleTextCustomFieldConfig = CustomField & {
|
|
|
+ __typename?: 'LocaleTextCustomFieldConfig';
|
|
|
+ description?: Maybe<Array<LocalizedString>>;
|
|
|
+ internal?: Maybe<Scalars['Boolean']>;
|
|
|
+ label?: Maybe<Array<LocalizedString>>;
|
|
|
+ list: Scalars['Boolean'];
|
|
|
+ name: Scalars['String'];
|
|
|
+ nullable?: Maybe<Scalars['Boolean']>;
|
|
|
+ readonly?: Maybe<Scalars['Boolean']>;
|
|
|
+ type: Scalars['String'];
|
|
|
+ ui?: Maybe<Scalars['JSON']>;
|
|
|
+};
|
|
|
+
|
|
|
export type LocalizedString = {
|
|
|
__typename?: 'LocalizedString';
|
|
|
languageCode: LanguageCode;
|
|
|
@@ -3475,10 +3490,10 @@ export type Order = Node & {
|
|
|
/** Promotions applied to the order. Only gets populated after the payment process has completed. */
|
|
|
promotions: Array<Promotion>;
|
|
|
sellerOrders?: Maybe<Array<Order>>;
|
|
|
- shipping: Scalars['Int'];
|
|
|
+ shipping: Scalars['Money'];
|
|
|
shippingAddress?: Maybe<OrderAddress>;
|
|
|
shippingLines: Array<ShippingLine>;
|
|
|
- shippingWithTax: Scalars['Int'];
|
|
|
+ shippingWithTax: Scalars['Money'];
|
|
|
state: Scalars['String'];
|
|
|
/**
|
|
|
* The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level
|
|
|
@@ -3486,9 +3501,9 @@ export type Order = Node & {
|
|
|
* To get a total of all OrderLines which does not account for prorated discounts, use the
|
|
|
* sum of `OrderLine.discountedLinePrice` values.
|
|
|
*/
|
|
|
- subTotal: Scalars['Int'];
|
|
|
+ subTotal: Scalars['Money'];
|
|
|
/** Same as subTotal, but inclusive of tax */
|
|
|
- subTotalWithTax: Scalars['Int'];
|
|
|
+ subTotalWithTax: Scalars['Money'];
|
|
|
/**
|
|
|
* Surcharges are arbitrary modifications to the Order total which are neither
|
|
|
* ProductVariants nor discounts resulting from applied Promotions. For example,
|
|
|
@@ -3499,10 +3514,10 @@ export type Order = Node & {
|
|
|
/** A summary of the taxes being applied to this Order */
|
|
|
taxSummary: Array<OrderTaxSummary>;
|
|
|
/** Equal to subTotal plus shipping */
|
|
|
- total: Scalars['Int'];
|
|
|
+ total: Scalars['Money'];
|
|
|
totalQuantity: Scalars['Int'];
|
|
|
/** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */
|
|
|
- totalWithTax: Scalars['Int'];
|
|
|
+ totalWithTax: Scalars['Money'];
|
|
|
type: OrderType;
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
@@ -3562,9 +3577,9 @@ export type OrderItem = Node & {
|
|
|
* correct price to display to customers to avoid confusion
|
|
|
* about the internal handling of distributed Order-level discounts.
|
|
|
*/
|
|
|
- discountedUnitPrice: Scalars['Int'];
|
|
|
+ discountedUnitPrice: Scalars['Money'];
|
|
|
/** The price of a single unit including discounts and tax */
|
|
|
- discountedUnitPriceWithTax: Scalars['Int'];
|
|
|
+ discountedUnitPriceWithTax: Scalars['Money'];
|
|
|
fulfillment?: Maybe<Fulfillment>;
|
|
|
id: Scalars['ID'];
|
|
|
/**
|
|
|
@@ -3572,17 +3587,17 @@ export type OrderItem = Node & {
|
|
|
* Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
|
* and refund calculations.
|
|
|
*/
|
|
|
- proratedUnitPrice: Scalars['Int'];
|
|
|
+ proratedUnitPrice: Scalars['Money'];
|
|
|
/** The proratedUnitPrice including tax */
|
|
|
- proratedUnitPriceWithTax: Scalars['Int'];
|
|
|
+ proratedUnitPriceWithTax: Scalars['Money'];
|
|
|
refundId?: Maybe<Scalars['ID']>;
|
|
|
taxLines: Array<TaxLine>;
|
|
|
taxRate: Scalars['Float'];
|
|
|
/** The price of a single unit, excluding tax and discounts */
|
|
|
- unitPrice: Scalars['Int'];
|
|
|
+ unitPrice: Scalars['Money'];
|
|
|
/** The price of a single unit, including tax but excluding discounts */
|
|
|
- unitPriceWithTax: Scalars['Int'];
|
|
|
- unitTax: Scalars['Int'];
|
|
|
+ unitPriceWithTax: Scalars['Money'];
|
|
|
+ unitTax: Scalars['Money'];
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
|
|
|
@@ -3599,9 +3614,9 @@ export type OrderLine = Node & {
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
/** The price of the line including discounts, excluding tax */
|
|
|
- discountedLinePrice: Scalars['Int'];
|
|
|
+ discountedLinePrice: Scalars['Money'];
|
|
|
/** The price of the line including discounts and tax */
|
|
|
- discountedLinePriceWithTax: Scalars['Int'];
|
|
|
+ discountedLinePriceWithTax: Scalars['Money'];
|
|
|
/**
|
|
|
* The price of a single unit including discounts, excluding tax.
|
|
|
*
|
|
|
@@ -3610,19 +3625,19 @@ export type OrderLine = Node & {
|
|
|
* correct price to display to customers to avoid confusion
|
|
|
* about the internal handling of distributed Order-level discounts.
|
|
|
*/
|
|
|
- discountedUnitPrice: Scalars['Int'];
|
|
|
+ discountedUnitPrice: Scalars['Money'];
|
|
|
/** The price of a single unit including discounts and tax */
|
|
|
- discountedUnitPriceWithTax: Scalars['Int'];
|
|
|
+ discountedUnitPriceWithTax: Scalars['Money'];
|
|
|
discounts: Array<Discount>;
|
|
|
featuredAsset?: Maybe<Asset>;
|
|
|
fulfillmentLines?: Maybe<Array<FulfillmentLine>>;
|
|
|
id: Scalars['ID'];
|
|
|
/** The total price of the line excluding tax and discounts. */
|
|
|
- linePrice: Scalars['Int'];
|
|
|
+ linePrice: Scalars['Money'];
|
|
|
/** The total price of the line including tax but excluding discounts. */
|
|
|
- linePriceWithTax: Scalars['Int'];
|
|
|
+ linePriceWithTax: Scalars['Money'];
|
|
|
/** The total tax on this line */
|
|
|
- lineTax: Scalars['Int'];
|
|
|
+ lineTax: Scalars['Money'];
|
|
|
order: Order;
|
|
|
/** The quantity at the time the Order was placed */
|
|
|
orderPlacedQuantity: Scalars['Int'];
|
|
|
@@ -3632,28 +3647,28 @@ export type OrderLine = Node & {
|
|
|
* Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax
|
|
|
* and refund calculations.
|
|
|
*/
|
|
|
- proratedLinePrice: Scalars['Int'];
|
|
|
+ proratedLinePrice: Scalars['Money'];
|
|
|
/** The proratedLinePrice including tax */
|
|
|
- proratedLinePriceWithTax: Scalars['Int'];
|
|
|
+ proratedLinePriceWithTax: Scalars['Money'];
|
|
|
/**
|
|
|
* The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed)
|
|
|
* Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax
|
|
|
* and refund calculations.
|
|
|
*/
|
|
|
- proratedUnitPrice: Scalars['Int'];
|
|
|
+ proratedUnitPrice: Scalars['Money'];
|
|
|
/** The proratedUnitPrice including tax */
|
|
|
- proratedUnitPriceWithTax: Scalars['Int'];
|
|
|
+ proratedUnitPriceWithTax: Scalars['Money'];
|
|
|
quantity: Scalars['Int'];
|
|
|
taxLines: Array<TaxLine>;
|
|
|
taxRate: Scalars['Float'];
|
|
|
/** The price of a single unit, excluding tax and discounts */
|
|
|
- unitPrice: Scalars['Int'];
|
|
|
+ unitPrice: Scalars['Money'];
|
|
|
/** Non-zero if the unitPrice has changed since it was initially added to Order */
|
|
|
- unitPriceChangeSinceAdded: Scalars['Int'];
|
|
|
+ unitPriceChangeSinceAdded: Scalars['Money'];
|
|
|
/** The price of a single unit, including tax but excluding discounts */
|
|
|
- unitPriceWithTax: Scalars['Int'];
|
|
|
+ unitPriceWithTax: Scalars['Money'];
|
|
|
/** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */
|
|
|
- unitPriceWithTaxChangeSinceAdded: Scalars['Int'];
|
|
|
+ unitPriceWithTaxChangeSinceAdded: Scalars['Money'];
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
|
|
|
@@ -3689,7 +3704,7 @@ export type OrderModification = Node & {
|
|
|
lines: Array<OrderModificationLine>;
|
|
|
note: Scalars['String'];
|
|
|
payment?: Maybe<Payment>;
|
|
|
- priceChange: Scalars['Int'];
|
|
|
+ priceChange: Scalars['Money'];
|
|
|
refund?: Maybe<Refund>;
|
|
|
surcharges?: Maybe<Array<Surcharge>>;
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
@@ -3762,11 +3777,11 @@ export type OrderTaxSummary = {
|
|
|
/** A description of this tax */
|
|
|
description: Scalars['String'];
|
|
|
/** The total net price or OrderItems to which this taxRate applies */
|
|
|
- taxBase: Scalars['Int'];
|
|
|
+ taxBase: Scalars['Money'];
|
|
|
/** The taxRate as a percentage */
|
|
|
taxRate: Scalars['Float'];
|
|
|
/** The total tax being applied to the Order at this taxRate */
|
|
|
- taxTotal: Scalars['Int'];
|
|
|
+ taxTotal: Scalars['Money'];
|
|
|
};
|
|
|
|
|
|
export enum OrderType {
|
|
|
@@ -3782,7 +3797,7 @@ export type PaginatedList = {
|
|
|
|
|
|
export type Payment = Node & {
|
|
|
__typename?: 'Payment';
|
|
|
- amount: Scalars['Int'];
|
|
|
+ amount: Scalars['Money'];
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
errorMessage?: Maybe<Scalars['String']>;
|
|
|
id: Scalars['ID'];
|
|
|
@@ -4114,8 +4129,8 @@ export type PreviewCollectionVariantsInput = {
|
|
|
/** The price range where the result has more than one price */
|
|
|
export type PriceRange = {
|
|
|
__typename?: 'PriceRange';
|
|
|
- max: Scalars['Int'];
|
|
|
- min: Scalars['Int'];
|
|
|
+ max: Scalars['Money'];
|
|
|
+ min: Scalars['Money'];
|
|
|
};
|
|
|
|
|
|
export type Product = Node & {
|
|
|
@@ -4288,8 +4303,8 @@ export type ProductVariant = Node & {
|
|
|
name: Scalars['String'];
|
|
|
options: Array<ProductOption>;
|
|
|
outOfStockThreshold: Scalars['Int'];
|
|
|
- price: Scalars['Int'];
|
|
|
- priceWithTax: Scalars['Int'];
|
|
|
+ price: Scalars['Money'];
|
|
|
+ priceWithTax: Scalars['Money'];
|
|
|
product: Product;
|
|
|
productId: Scalars['ID'];
|
|
|
sku: Scalars['String'];
|
|
|
@@ -4790,18 +4805,18 @@ export type QueryZoneArgs = {
|
|
|
|
|
|
export type Refund = Node & {
|
|
|
__typename?: 'Refund';
|
|
|
- adjustment: Scalars['Int'];
|
|
|
+ adjustment: Scalars['Money'];
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
id: Scalars['ID'];
|
|
|
- items: Scalars['Int'];
|
|
|
+ items: Scalars['Money'];
|
|
|
lines: Array<RefundLine>;
|
|
|
metadata?: Maybe<Scalars['JSON']>;
|
|
|
method?: Maybe<Scalars['String']>;
|
|
|
paymentId: Scalars['ID'];
|
|
|
reason?: Maybe<Scalars['String']>;
|
|
|
- shipping: Scalars['Int'];
|
|
|
+ shipping: Scalars['Money'];
|
|
|
state: Scalars['String'];
|
|
|
- total: Scalars['Int'];
|
|
|
+ total: Scalars['Money'];
|
|
|
transactionId?: Maybe<Scalars['String']>;
|
|
|
updatedAt: Scalars['DateTime'];
|
|
|
};
|
|
|
@@ -4816,11 +4831,11 @@ export type RefundLine = {
|
|
|
};
|
|
|
|
|
|
export type RefundOrderInput = {
|
|
|
- adjustment: Scalars['Int'];
|
|
|
+ adjustment: Scalars['Money'];
|
|
|
lines: Array<OrderLineInput>;
|
|
|
paymentId: Scalars['ID'];
|
|
|
reason?: InputMaybe<Scalars['String']>;
|
|
|
- shipping: Scalars['Int'];
|
|
|
+ shipping: Scalars['Money'];
|
|
|
};
|
|
|
|
|
|
export type RefundOrderResult = AlreadyRefundedError | MultipleOrderError | NothingToRefundError | OrderStateTransitionError | PaymentOrderMismatchError | QuantityTooGreatError | Refund | RefundOrderStateError | RefundStateTransitionError;
|
|
|
@@ -5118,12 +5133,12 @@ export type SettleRefundResult = Refund | RefundStateTransitionError;
|
|
|
|
|
|
export type ShippingLine = {
|
|
|
__typename?: 'ShippingLine';
|
|
|
- discountedPrice: Scalars['Int'];
|
|
|
- discountedPriceWithTax: Scalars['Int'];
|
|
|
+ discountedPrice: Scalars['Money'];
|
|
|
+ discountedPriceWithTax: Scalars['Money'];
|
|
|
discounts: Array<Discount>;
|
|
|
id: Scalars['ID'];
|
|
|
- price: Scalars['Int'];
|
|
|
- priceWithTax: Scalars['Int'];
|
|
|
+ price: Scalars['Money'];
|
|
|
+ priceWithTax: Scalars['Money'];
|
|
|
shippingMethod: ShippingMethod;
|
|
|
};
|
|
|
|
|
|
@@ -5182,8 +5197,8 @@ export type ShippingMethodQuote = {
|
|
|
/** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */
|
|
|
metadata?: Maybe<Scalars['JSON']>;
|
|
|
name: Scalars['String'];
|
|
|
- price: Scalars['Int'];
|
|
|
- priceWithTax: Scalars['Int'];
|
|
|
+ price: Scalars['Money'];
|
|
|
+ priceWithTax: Scalars['Money'];
|
|
|
};
|
|
|
|
|
|
export type ShippingMethodSortParameter = {
|
|
|
@@ -5217,7 +5232,7 @@ export type ShippingMethodTranslationInput = {
|
|
|
/** The price value where the result has a single price */
|
|
|
export type SinglePrice = {
|
|
|
__typename?: 'SinglePrice';
|
|
|
- value: Scalars['Int'];
|
|
|
+ value: Scalars['Money'];
|
|
|
};
|
|
|
|
|
|
export enum SortOrder {
|
|
|
@@ -5378,8 +5393,8 @@ export type Surcharge = Node & {
|
|
|
createdAt: Scalars['DateTime'];
|
|
|
description: Scalars['String'];
|
|
|
id: Scalars['ID'];
|
|
|
- price: Scalars['Int'];
|
|
|
- priceWithTax: Scalars['Int'];
|
|
|
+ price: Scalars['Money'];
|
|
|
+ priceWithTax: Scalars['Money'];
|
|
|
sku?: Maybe<Scalars['String']>;
|
|
|
taxLines: Array<TaxLine>;
|
|
|
taxRate: Scalars['Float'];
|
|
|
@@ -5388,7 +5403,7 @@ export type Surcharge = Node & {
|
|
|
|
|
|
export type SurchargeInput = {
|
|
|
description: Scalars['String'];
|
|
|
- price: Scalars['Int'];
|
|
|
+ price: Scalars['Money'];
|
|
|
priceIncludesTax: Scalars['Boolean'];
|
|
|
sku?: InputMaybe<Scalars['String']>;
|
|
|
taxDescription?: InputMaybe<Scalars['String']>;
|
|
|
@@ -5522,8 +5537,8 @@ export type TestShippingMethodOrderLineInput = {
|
|
|
export type TestShippingMethodQuote = {
|
|
|
__typename?: 'TestShippingMethodQuote';
|
|
|
metadata?: Maybe<Scalars['JSON']>;
|
|
|
- price: Scalars['Int'];
|
|
|
- priceWithTax: Scalars['Int'];
|
|
|
+ price: Scalars['Money'];
|
|
|
+ priceWithTax: Scalars['Money'];
|
|
|
};
|
|
|
|
|
|
export type TestShippingMethodResult = {
|
|
|
@@ -5752,7 +5767,7 @@ export type UpdateProductVariantInput = {
|
|
|
featuredAssetId?: InputMaybe<Scalars['ID']>;
|
|
|
id: Scalars['ID'];
|
|
|
outOfStockThreshold?: InputMaybe<Scalars['Int']>;
|
|
|
- price?: InputMaybe<Scalars['Int']>;
|
|
|
+ price?: InputMaybe<Scalars['Money']>;
|
|
|
sku?: InputMaybe<Scalars['String']>;
|
|
|
stockLevels?: InputMaybe<Array<StockLevelInput>>;
|
|
|
stockOnHand?: InputMaybe<Scalars['Int']>;
|