-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0408d9
commit 03b97f8
Showing
1 changed file
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,7 +123,7 @@ Response: | |
"id": "U2hpcHBpbmdNZXRob2Q6MTY1Nw==", | ||
"name": "DHL", | ||
"price": { | ||
"currency": "USD", | ||
"currency": "USD",, | ||
"amount": 10.0 | ||
}, | ||
"active": true, | ||
|
@@ -133,7 +133,7 @@ Response: | |
"id": "U2hpcHBpbmdNZXRob2Q6MTM=", | ||
"name": "UPS", | ||
"price": { | ||
"currency": "USD", | ||
"currency": "USD",, | ||
"amount": 8.0 | ||
}, | ||
"active": false, | ||
|
@@ -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", | ||
} | ||
} | ||
}, | ||
|
@@ -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 } | ||
|
@@ -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 | ||
} | ||
|
@@ -466,7 +466,7 @@ input data: | |
"streetAddress1": "1470 Pinewood Avenue", | ||
"city": "Michigan", | ||
"postalCode": "49855", | ||
"country": US, | ||
"country": "US", | ||
"countryArea": "MI" | ||
}, | ||
"saveBillingAddress": true, | ||
|
@@ -476,7 +476,7 @@ input data: | |
"streetAddress1": "1470 Pinewood Avenue", | ||
"city": "Michigan", | ||
"postalCode": "49855", | ||
"country": US, | ||
"country": "US", | ||
"countryArea": "MI" | ||
} | ||
} | ||
|
@@ -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 | ||
} | ||
|
@@ -641,7 +641,7 @@ input data: | |
"streetAddress1": "1470 Pinewood Avenue", | ||
"city": "Michigan", | ||
"postalCode": "49855", | ||
"country": US, | ||
"country": "US", | ||
"countryArea": "MI" | ||
} | ||
} | ||
|