feat: set shipping method

:%s
This commit is contained in:
lytrankieio123
2021-10-21 10:20:17 +07:00
parent 357e700e32
commit 6b397fc153
13 changed files with 61 additions and 60 deletions

View File

@@ -377,6 +377,13 @@ export type SetShippingMethodMutation = {
| Pick<NoActiveOrderError, 'errorCode' | 'message'>;
};
export type GetEligibleMethodsQuery = {
eligibleShippingMethods: Array<
Pick<ShippingMethodQuote, 'id' | 'name' | 'description' | 'price' | 'priceWithTax' | 'metadata'>
>;
};
export type Asset = Node & {
__typename?: 'Asset'
id: Scalars['ID']

View File

@@ -0,0 +1,13 @@
export const getEligibleShippingMethods = /* GraphQL */ `
query getEligibleShippingMethods {
eligibleShippingMethods {
id
name
description
price
priceWithTax
metadata
__typename
}
}
`