🎨 styles: shipping method

:%s
This commit is contained in:
lytrankieio123
2021-10-20 17:46:03 +07:00
parent f959ac8ea2
commit aba0e43b93
13 changed files with 280 additions and 44 deletions

View File

@@ -365,8 +365,17 @@ export type Address = Node & {
customFields?: Maybe<Scalars['JSON']>
}
export type SetShippingMethodMutationVariables = Exact<{
id: Scalars['ID'];
}>;
export type SetShippingMethodMutation = {
setOrderShippingMethod:
| TestOrderFragmentFragment
| Pick<OrderModificationError, 'errorCode' | 'message'>
| Pick<IneligibleShippingMethodError, 'errorCode' | 'message'>
| Pick<NoActiveOrderError, 'errorCode' | 'message'>;
};
export type Asset = Node & {
__typename?: 'Asset'

View File

@@ -0,0 +1,35 @@
export const setShippingMethodMutation = /* GraphQL */ `
mutation SetShippingMethod($id: ID!) {
setOrderShippingMethod(shippingMethodId: $id) {
...Cart
...ErrorResult
__typename
}
}
fragment Cart on Order {
id
code
state
active
shippingLines {
priceWithTax
shippingMethod {
id
code
name
description
__typename
}
__typename
}
__typename
}
fragment ErrorResult on ErrorResult {
errorCode
message
__typename
}
`