|
@@ -408,8 +408,6 @@ export enum Permission {
|
|
|
UpdateSettings = 'UpdateSettings',
|
|
UpdateSettings = 'UpdateSettings',
|
|
|
/** Grants permission to delete Settings */
|
|
/** Grants permission to delete Settings */
|
|
|
DeleteSettings = 'DeleteSettings',
|
|
DeleteSettings = 'DeleteSettings',
|
|
|
- /** Allows external tools to sync stock levels */
|
|
|
|
|
- SyncInventory = 'SyncInventory',
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export type DeletionResponse = {
|
|
export type DeletionResponse = {
|
|
@@ -1959,6 +1957,7 @@ export type Order = Node & {
|
|
|
shippingMethod?: Maybe<ShippingMethod>;
|
|
shippingMethod?: Maybe<ShippingMethod>;
|
|
|
totalBeforeTax: Scalars['Int'];
|
|
totalBeforeTax: Scalars['Int'];
|
|
|
total: Scalars['Int'];
|
|
total: Scalars['Int'];
|
|
|
|
|
+ taxSummary: Array<OrderTaxSummary>;
|
|
|
history: HistoryEntryList;
|
|
history: HistoryEntryList;
|
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
customFields?: Maybe<Scalars['JSON']>;
|
|
|
};
|
|
};
|
|
@@ -1967,6 +1966,19 @@ export type OrderHistoryArgs = {
|
|
|
options?: Maybe<HistoryEntryListOptions>;
|
|
options?: Maybe<HistoryEntryListOptions>;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * A summary of the taxes being applied to this order, grouped
|
|
|
|
|
+ * by taxRate.
|
|
|
|
|
+ */
|
|
|
|
|
+export type OrderTaxSummary = {
|
|
|
|
|
+ /** The taxRate as a percentage */
|
|
|
|
|
+ taxRate: Scalars['Float'];
|
|
|
|
|
+ /** The total net price or OrderItems to which this taxRate applies */
|
|
|
|
|
+ taxBase: Scalars['Int'];
|
|
|
|
|
+ /** The total tax being applied to the Order at this taxRate */
|
|
|
|
|
+ taxTotal: Scalars['Int'];
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
export type OrderAddress = {
|
|
export type OrderAddress = {
|
|
|
fullName?: Maybe<Scalars['String']>;
|
|
fullName?: Maybe<Scalars['String']>;
|
|
|
company?: Maybe<Scalars['String']>;
|
|
company?: Maybe<Scalars['String']>;
|
|
@@ -2864,6 +2876,7 @@ export type GetActiveOrderWithPriceDataQuery = {
|
|
|
adjustments: Array<Pick<Adjustment, 'amount' | 'type'>>;
|
|
adjustments: Array<Pick<Adjustment, 'amount' | 'type'>>;
|
|
|
}
|
|
}
|
|
|
>;
|
|
>;
|
|
|
|
|
+ taxSummary: Array<Pick<OrderTaxSummary, 'taxRate' | 'taxBase' | 'taxTotal'>>;
|
|
|
}
|
|
}
|
|
|
>;
|
|
>;
|
|
|
};
|
|
};
|
|
@@ -3345,6 +3358,9 @@ export namespace GetActiveOrderWithPriceData {
|
|
|
>['adjustments']
|
|
>['adjustments']
|
|
|
>[number]
|
|
>[number]
|
|
|
>;
|
|
>;
|
|
|
|
|
+ export type TaxSummary = NonNullable<
|
|
|
|
|
+ NonNullable<NonNullable<GetActiveOrderWithPriceDataQuery['activeOrder']>['taxSummary']>[number]
|
|
|
|
|
+ >;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export namespace AdjustItemQuantity {
|
|
export namespace AdjustItemQuantity {
|