mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 19:51:23 +00:00
🎨 styles: shipping method
:%s
This commit is contained in:
11
framework/vendure/schema.d.ts
vendored
11
framework/vendure/schema.d.ts
vendored
@@ -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'
|
||||
|
@@ -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
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user