Skip to content

Commit

Permalink
Clear address page
Browse files Browse the repository at this point in the history
  • Loading branch information
IKarbowiak committed Feb 4, 2025
1 parent a0408d9 commit 03b97f8
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/developer/checkout/address.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ Response:
"id": "U2hpcHBpbmdNZXRob2Q6MTY1Nw==",
"name": "DHL",
"price": {
"currency": "USD",
"currency": "USD",,
"amount": 10.0
},
"active": true,
Expand All @@ -133,7 +133,7 @@ Response:
"id": "U2hpcHBpbmdNZXRob2Q6MTM=",
"name": "UPS",
"price": {
"currency": "USD",
"currency": "USD",,
"amount": 8.0
},
"active": false,
Expand Down Expand Up @@ -219,7 +219,7 @@ As a result, we get an updated checkout object with a delivery method set:
"totalPrice": {
"gross": {
"amount": 25.99,
"currency": "USD"
"currency": "USD",
}
}
},
Expand Down Expand Up @@ -271,8 +271,8 @@ mutation {
channel: "default-channel"
email: "[email protected]"
lines: [{ quantity: 1, variantId: "UHJvZHVjdFZhcmlhbnQ6Mjk3" }]
shippingAddress: { country: US }
billingAddress: { postalCode: "XX-YYY", country: US }
shippingAddress: { country: "US" }
billingAddress: { postalCode: "XX-YYY", country: "US" }
validationRules: {
shippingAddress: { checkRequiredFields: false }
billingAddress: { checkRequiredFields: false, checkFieldsFormat: false }
Expand Down Expand Up @@ -440,8 +440,8 @@ By default, both billing and shipping addresses are saved in the customer's addr
The default behavior can be adjusted in the following checkout mutations:
- [checkoutCreate](/api-reference/checkout/mutations/checkout-create.mdx)
```graphql
mutation createCheckout($checkoutInput: CheckoutCreateInput!) {
checkoutCreate(input: $checkoutInput){
mutation createCheckout($input: CheckoutCreateInput!) {
checkoutCreate(input: $input){
checkout {
id
}
Expand All @@ -466,7 +466,7 @@ input data:
"streetAddress1": "1470 Pinewood Avenue",
"city": "Michigan",
"postalCode": "49855",
"country": US,
"country": "US",
"countryArea": "MI"
},
"saveBillingAddress": true,
Expand All @@ -476,7 +476,7 @@ input data:
"streetAddress1": "1470 Pinewood Avenue",
"city": "Michigan",
"postalCode": "49855",
"country": US,
"country": "US",
"countryArea": "MI"
}
}
Expand Down Expand Up @@ -571,8 +571,8 @@ Attempting to set `saveShippingAddress` or `saveBillingAddres`s without includin

For example, providing `saveShippingAddress` in the `checkoutCreate` mutation without including `shippingAddress` will raise an error:
```graphql
mutation createCheckout($checkoutInput: CheckoutCreateInput!) {
checkoutCreate(input: $checkoutInput){
mutation createCheckout($input: CheckoutCreateInput!) {
checkoutCreate(input: $input){
checkout {
id
}
Expand Down Expand Up @@ -641,7 +641,7 @@ input data:
"streetAddress1": "1470 Pinewood Avenue",
"city": "Michigan",
"postalCode": "49855",
"country": US,
"country": "US",
"countryArea": "MI"
}
}
Expand Down

0 comments on commit 03b97f8

Please sign in to comment.