checkoutShippingAddressUpdateMutation top-level constant
String
const checkoutShippingAddressUpdateMutation
Mutation to update the shipping address of a checkout
Implementation
const String checkoutShippingAddressUpdateMutation = r'''
mutation checkoutShippingAddressUpdate($checkoutId : ID!, $address1 : String, $address2 : String, $company : String, $city : String, $country : String, $firstName: String, $lastName : String, $phone : String, $province : String, $zip : String) {
checkoutShippingAddressUpdateV2(checkoutId: $checkoutId, shippingAddress: {address1: $address1, address2: $address2, company: $company, city: $city, country: $country, firstName: $firstName, lastName: $lastName, phone: $phone, province: $province, zip: $zip}) {
checkout {
id
email
ready
appliedGiftCards {
amountUsedV2 {
amount
currencyCode
}
balanceV2 {
amount
currencyCode
}
id
}
requiresShipping
shippingLine {
handle
priceV2 {
amount
currencyCode
}
title
}
shippingAddress {
address1
address2
city
company
country
countryCodeV2
firstName
formattedArea
id
lastName
latitude
longitude
name
phone
province
provinceCode
zip
}
completedAt
createdAt
currencyCode
lineItems(first: 10) {
edges {
node {
id
quantity
title
customAttributes {
key
value
}
discountAllocations {
allocatedAmount {
amount
currencyCode
}
}
variant {
id
priceV2 {
amount
currencyCode
}
title
image {
altText
originalSrc
id
}
compareAtPriceV2 {
amount
currencyCode
}
weight
weightUnit
availableForSale
sku
requiresShipping
}
}
}
}
note
webUrl
updatedAt
totalTaxV2 {
amount
currencyCode
}
totalPriceV2 {
amount
currencyCode
}
taxesIncluded
taxExempt
subtotalPriceV2 {
amount
currencyCode
}
orderStatusUrl
order {
id
}
}
checkoutUserErrors {
code
field
message
}
}
}''';