|
@@ -19,6 +19,7 @@ type Query {
|
|
|
type Mutation {
|
|
type Mutation {
|
|
|
"Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available."
|
|
"Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available."
|
|
|
addItemToOrder(productVariantId: ID!, quantity: Int!): Order
|
|
addItemToOrder(productVariantId: ID!, quantity: Int!): Order
|
|
|
|
|
+ "Remove an OrderLine from the Order"
|
|
|
removeOrderLine(orderLineId: ID!): Order
|
|
removeOrderLine(orderLineId: ID!): Order
|
|
|
"Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available."
|
|
"Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available."
|
|
|
adjustOrderLine(orderLineId: ID!, quantity: Int): Order
|
|
adjustOrderLine(orderLineId: ID!, quantity: Int): Order
|
|
@@ -31,14 +32,19 @@ type Mutation {
|
|
|
setOrderShippingAddress(input: CreateAddressInput!): Order
|
|
setOrderShippingAddress(input: CreateAddressInput!): Order
|
|
|
"Sets the billing address for this order"
|
|
"Sets the billing address for this order"
|
|
|
setOrderBillingAddress(input: CreateAddressInput!): Order
|
|
setOrderBillingAddress(input: CreateAddressInput!): Order
|
|
|
|
|
+ "Allows any custom fields to be set for the active order"
|
|
|
|
|
+ setOrderCustomFields(input: UpdateOrderInput!): Order
|
|
|
"Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query"
|
|
"Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query"
|
|
|
setOrderShippingMethod(shippingMethodId: ID!): Order
|
|
setOrderShippingMethod(shippingMethodId: ID!): Order
|
|
|
|
|
+ "Add a Payment to the Order"
|
|
|
addPaymentToOrder(input: PaymentInput!): Order
|
|
addPaymentToOrder(input: PaymentInput!): Order
|
|
|
|
|
+ "Set the Customer for the Order. Required only if the Customer is not currently logged in"
|
|
|
setCustomerForOrder(input: CreateCustomerInput!): Order
|
|
setCustomerForOrder(input: CreateCustomerInput!): Order
|
|
|
"Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})`"
|
|
"Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})`"
|
|
|
login(username: String!, password: String!, rememberMe: Boolean): LoginResult!
|
|
login(username: String!, password: String!, rememberMe: Boolean): LoginResult!
|
|
|
"Authenticates the user using a named authentication strategy"
|
|
"Authenticates the user using a named authentication strategy"
|
|
|
authenticate(input: AuthenticationInput!, rememberMe: Boolean): LoginResult!
|
|
authenticate(input: AuthenticationInput!, rememberMe: Boolean): LoginResult!
|
|
|
|
|
+ "End the current authenticated session"
|
|
|
logout: Boolean!
|
|
logout: Boolean!
|
|
|
"Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true."
|
|
"Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true."
|
|
|
refreshCustomerVerification(emailAddress: String!): Boolean!
|
|
refreshCustomerVerification(emailAddress: String!): Boolean!
|
|
@@ -93,6 +99,9 @@ input UpdateCustomerInput {
|
|
|
phoneNumber: String
|
|
phoneNumber: String
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+# Populated with any custom fields at run-time
|
|
|
|
|
+input UpdateOrderInput
|
|
|
|
|
+
|
|
|
"""
|
|
"""
|
|
|
Passed as input to the `addPaymentToOrder` mutation.
|
|
Passed as input to the `addPaymentToOrder` mutation.
|
|
|
"""
|
|
"""
|
|
@@ -117,4 +126,3 @@ input OrderListOptions
|
|
|
|
|
|
|
|
# generated by generateListOptions function
|
|
# generated by generateListOptions function
|
|
|
input ProductListOptions
|
|
input ProductListOptions
|
|
|
-
|
|
|