@vendure/docs 0.0.0-202601211343 → 0.0.0-202601211406
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/reference/graphql-api/admin/enums.mdx +1139 -0
- package/docs/reference/graphql-api/admin/input-types.mdx +4708 -0
- package/docs/reference/graphql-api/admin/mutations.mdx +2750 -0
- package/docs/reference/graphql-api/admin/object-types.mdx +4973 -0
- package/docs/reference/graphql-api/admin/queries.mdx +1194 -0
- package/docs/reference/graphql-api/shop/enums.mdx +1063 -0
- package/docs/reference/graphql-api/shop/input-types.mdx +1113 -0
- package/docs/reference/graphql-api/shop/mutations.mdx +540 -0
- package/docs/reference/graphql-api/shop/object-types.mdx +3693 -0
- package/docs/reference/graphql-api/shop/queries.mdx +314 -0
- package/package.json +1 -1
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Mutations"
|
|
3
|
+
generated: true
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
## addItemToOrder {#additemtoorder}
|
|
9
|
+
|
|
10
|
+
<GraphQLDoc
|
|
11
|
+
type="mutation"
|
|
12
|
+
typeName="addItemToOrder"
|
|
13
|
+
typeLinks={{
|
|
14
|
+
UpdateOrderItemsResult: '/reference/graphql-api/shop/object-types#updateorderitemsresult',
|
|
15
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
16
|
+
Int: '/reference/graphql-api/shop/object-types#int',
|
|
17
|
+
}}
|
|
18
|
+
>
|
|
19
|
+
{`"""Adds an item to the Order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available."""
|
|
20
|
+
type Mutation {
|
|
21
|
+
addItemToOrder(productVariantId: ID!, quantity: Int!): UpdateOrderItemsResult!
|
|
22
|
+
}`}
|
|
23
|
+
</GraphQLDoc>
|
|
24
|
+
|
|
25
|
+
## addItemsToOrder {#additemstoorder}
|
|
26
|
+
|
|
27
|
+
<GraphQLDoc
|
|
28
|
+
type="mutation"
|
|
29
|
+
typeName="addItemsToOrder"
|
|
30
|
+
typeLinks={{
|
|
31
|
+
UpdateMultipleOrderItemsResult: '/reference/graphql-api/shop/object-types#updatemultipleorderitemsresult',
|
|
32
|
+
AddItemInput: '/reference/graphql-api/shop/input-types#additeminput',
|
|
33
|
+
}}
|
|
34
|
+
>
|
|
35
|
+
{`"""Adds mutliple items to the Order. Returns a list of errors for each item that failed to add. It will still add successful items."""
|
|
36
|
+
type Mutation {
|
|
37
|
+
addItemsToOrder(inputs: [AddItemInput!]!): UpdateMultipleOrderItemsResult!
|
|
38
|
+
}`}
|
|
39
|
+
</GraphQLDoc>
|
|
40
|
+
|
|
41
|
+
## addPaymentToOrder {#addpaymenttoorder}
|
|
42
|
+
|
|
43
|
+
<GraphQLDoc
|
|
44
|
+
type="mutation"
|
|
45
|
+
typeName="addPaymentToOrder"
|
|
46
|
+
typeLinks={{
|
|
47
|
+
AddPaymentToOrderResult: '/reference/graphql-api/shop/object-types#addpaymenttoorderresult',
|
|
48
|
+
PaymentInput: '/reference/graphql-api/shop/input-types#paymentinput',
|
|
49
|
+
}}
|
|
50
|
+
>
|
|
51
|
+
{`"""Add a Payment to the Order"""
|
|
52
|
+
type Mutation {
|
|
53
|
+
addPaymentToOrder(input: PaymentInput!): AddPaymentToOrderResult!
|
|
54
|
+
}`}
|
|
55
|
+
</GraphQLDoc>
|
|
56
|
+
|
|
57
|
+
## adjustOrderLine {#adjustorderline}
|
|
58
|
+
|
|
59
|
+
<GraphQLDoc
|
|
60
|
+
type="mutation"
|
|
61
|
+
typeName="adjustOrderLine"
|
|
62
|
+
typeLinks={{
|
|
63
|
+
UpdateOrderItemsResult: '/reference/graphql-api/shop/object-types#updateorderitemsresult',
|
|
64
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
65
|
+
Int: '/reference/graphql-api/shop/object-types#int',
|
|
66
|
+
}}
|
|
67
|
+
>
|
|
68
|
+
{`"""Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type \`OrderLineCustomFieldsInput\` will be available."""
|
|
69
|
+
type Mutation {
|
|
70
|
+
adjustOrderLine(orderLineId: ID!, quantity: Int!): UpdateOrderItemsResult!
|
|
71
|
+
}`}
|
|
72
|
+
</GraphQLDoc>
|
|
73
|
+
|
|
74
|
+
## applyCouponCode {#applycouponcode}
|
|
75
|
+
|
|
76
|
+
<GraphQLDoc
|
|
77
|
+
type="mutation"
|
|
78
|
+
typeName="applyCouponCode"
|
|
79
|
+
typeLinks={{
|
|
80
|
+
ApplyCouponCodeResult: '/reference/graphql-api/shop/object-types#applycouponcoderesult',
|
|
81
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
82
|
+
}}
|
|
83
|
+
>
|
|
84
|
+
{`"""Applies the given coupon code to the active Order"""
|
|
85
|
+
type Mutation {
|
|
86
|
+
applyCouponCode(couponCode: String!): ApplyCouponCodeResult!
|
|
87
|
+
}`}
|
|
88
|
+
</GraphQLDoc>
|
|
89
|
+
|
|
90
|
+
## authenticate {#authenticate}
|
|
91
|
+
|
|
92
|
+
<GraphQLDoc
|
|
93
|
+
type="mutation"
|
|
94
|
+
typeName="authenticate"
|
|
95
|
+
typeLinks={{
|
|
96
|
+
AuthenticationResult: '/reference/graphql-api/shop/object-types#authenticationresult',
|
|
97
|
+
AuthenticationInput: '/reference/graphql-api/shop/input-types#authenticationinput',
|
|
98
|
+
Boolean: '/reference/graphql-api/shop/object-types#boolean',
|
|
99
|
+
}}
|
|
100
|
+
>
|
|
101
|
+
{`"""Authenticates the user using a named authentication strategy"""
|
|
102
|
+
type Mutation {
|
|
103
|
+
authenticate(input: AuthenticationInput!, rememberMe: Boolean): AuthenticationResult!
|
|
104
|
+
}`}
|
|
105
|
+
</GraphQLDoc>
|
|
106
|
+
|
|
107
|
+
## createCustomerAddress {#createcustomeraddress}
|
|
108
|
+
|
|
109
|
+
<GraphQLDoc
|
|
110
|
+
type="mutation"
|
|
111
|
+
typeName="createCustomerAddress"
|
|
112
|
+
typeLinks={{
|
|
113
|
+
Address: '/reference/graphql-api/shop/object-types#address',
|
|
114
|
+
CreateAddressInput: '/reference/graphql-api/shop/input-types#createaddressinput',
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
117
|
+
{`"""Create a new Customer Address"""
|
|
118
|
+
type Mutation {
|
|
119
|
+
createCustomerAddress(input: CreateAddressInput!): Address!
|
|
120
|
+
}`}
|
|
121
|
+
</GraphQLDoc>
|
|
122
|
+
|
|
123
|
+
## deleteCustomerAddress {#deletecustomeraddress}
|
|
124
|
+
|
|
125
|
+
<GraphQLDoc
|
|
126
|
+
type="mutation"
|
|
127
|
+
typeName="deleteCustomerAddress"
|
|
128
|
+
typeLinks={{
|
|
129
|
+
Success: '/reference/graphql-api/shop/object-types#success',
|
|
130
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
131
|
+
}}
|
|
132
|
+
>
|
|
133
|
+
{`"""Delete an existing Address"""
|
|
134
|
+
type Mutation {
|
|
135
|
+
deleteCustomerAddress(id: ID!): Success!
|
|
136
|
+
}`}
|
|
137
|
+
</GraphQLDoc>
|
|
138
|
+
|
|
139
|
+
## login {#login}
|
|
140
|
+
|
|
141
|
+
<GraphQLDoc
|
|
142
|
+
type="mutation"
|
|
143
|
+
typeName="login"
|
|
144
|
+
typeLinks={{
|
|
145
|
+
NativeAuthenticationResult: '/reference/graphql-api/shop/object-types#nativeauthenticationresult',
|
|
146
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
147
|
+
Boolean: '/reference/graphql-api/shop/object-types#boolean',
|
|
148
|
+
}}
|
|
149
|
+
>
|
|
150
|
+
{`"""
|
|
151
|
+
Authenticates the user using the native authentication strategy. This mutation is an alias for authenticate({ native: { ... }})
|
|
152
|
+
|
|
153
|
+
The \`rememberMe\` option applies when using cookie-based sessions, and if \`true\` it will set the maxAge of the session cookie
|
|
154
|
+
to 1 year.
|
|
155
|
+
"""
|
|
156
|
+
type Mutation {
|
|
157
|
+
login(username: String!, password: String!, rememberMe: Boolean): NativeAuthenticationResult!
|
|
158
|
+
}`}
|
|
159
|
+
</GraphQLDoc>
|
|
160
|
+
|
|
161
|
+
## logout {#logout}
|
|
162
|
+
|
|
163
|
+
<GraphQLDoc
|
|
164
|
+
type="mutation"
|
|
165
|
+
typeName="logout"
|
|
166
|
+
typeLinks={{
|
|
167
|
+
Success: '/reference/graphql-api/shop/object-types#success',
|
|
168
|
+
}}
|
|
169
|
+
>
|
|
170
|
+
{`"""End the current authenticated session"""
|
|
171
|
+
type Mutation {
|
|
172
|
+
logout: Success!
|
|
173
|
+
}`}
|
|
174
|
+
</GraphQLDoc>
|
|
175
|
+
|
|
176
|
+
## refreshCustomerVerification {#refreshcustomerverification}
|
|
177
|
+
|
|
178
|
+
<GraphQLDoc
|
|
179
|
+
type="mutation"
|
|
180
|
+
typeName="refreshCustomerVerification"
|
|
181
|
+
typeLinks={{
|
|
182
|
+
RefreshCustomerVerificationResult: '/reference/graphql-api/shop/object-types#refreshcustomerverificationresult',
|
|
183
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
184
|
+
}}
|
|
185
|
+
>
|
|
186
|
+
{`"""Regenerate and send a verification token for a new Customer registration. Only applicable if \`authOptions.requireVerification\` is set to true."""
|
|
187
|
+
type Mutation {
|
|
188
|
+
refreshCustomerVerification(emailAddress: String!): RefreshCustomerVerificationResult!
|
|
189
|
+
}`}
|
|
190
|
+
</GraphQLDoc>
|
|
191
|
+
|
|
192
|
+
## registerCustomerAccount {#registercustomeraccount}
|
|
193
|
+
|
|
194
|
+
<GraphQLDoc
|
|
195
|
+
type="mutation"
|
|
196
|
+
typeName="registerCustomerAccount"
|
|
197
|
+
typeLinks={{
|
|
198
|
+
RegisterCustomerAccountResult: '/reference/graphql-api/shop/object-types#registercustomeraccountresult',
|
|
199
|
+
RegisterCustomerInput: '/reference/graphql-api/shop/input-types#registercustomerinput',
|
|
200
|
+
}}
|
|
201
|
+
>
|
|
202
|
+
{`"""
|
|
203
|
+
Register a Customer account with the given credentials. There are three possible registration flows:
|
|
204
|
+
|
|
205
|
+
_If \`authOptions.requireVerification\` is set to \`true\`:_
|
|
206
|
+
|
|
207
|
+
1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That
|
|
208
|
+
verificationToken would then be passed to the \`verifyCustomerAccount\` mutation _without_ a password. The Customer is then
|
|
209
|
+
verified and authenticated in one step.
|
|
210
|
+
2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That
|
|
211
|
+
verificationToken would then be passed to the \`verifyCustomerAccount\` mutation _with_ the chosen password of the Customer. The Customer is then
|
|
212
|
+
verified and authenticated in one step.
|
|
213
|
+
|
|
214
|
+
_If \`authOptions.requireVerification\` is set to \`false\`:_
|
|
215
|
+
|
|
216
|
+
3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately.
|
|
217
|
+
"""
|
|
218
|
+
type Mutation {
|
|
219
|
+
registerCustomerAccount(input: RegisterCustomerInput!): RegisterCustomerAccountResult!
|
|
220
|
+
}`}
|
|
221
|
+
</GraphQLDoc>
|
|
222
|
+
|
|
223
|
+
## removeAllOrderLines {#removeallorderlines}
|
|
224
|
+
|
|
225
|
+
<GraphQLDoc
|
|
226
|
+
type="mutation"
|
|
227
|
+
typeName="removeAllOrderLines"
|
|
228
|
+
typeLinks={{
|
|
229
|
+
RemoveOrderItemsResult: '/reference/graphql-api/shop/object-types#removeorderitemsresult',
|
|
230
|
+
}}
|
|
231
|
+
>
|
|
232
|
+
{`"""Remove all OrderLine from the Order"""
|
|
233
|
+
type Mutation {
|
|
234
|
+
removeAllOrderLines: RemoveOrderItemsResult!
|
|
235
|
+
}`}
|
|
236
|
+
</GraphQLDoc>
|
|
237
|
+
|
|
238
|
+
## removeCouponCode {#removecouponcode}
|
|
239
|
+
|
|
240
|
+
<GraphQLDoc
|
|
241
|
+
type="mutation"
|
|
242
|
+
typeName="removeCouponCode"
|
|
243
|
+
typeLinks={{
|
|
244
|
+
Order: '/reference/graphql-api/shop/object-types#order',
|
|
245
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
246
|
+
}}
|
|
247
|
+
>
|
|
248
|
+
{`"""Removes the given coupon code from the active Order"""
|
|
249
|
+
type Mutation {
|
|
250
|
+
removeCouponCode(couponCode: String!): Order
|
|
251
|
+
}`}
|
|
252
|
+
</GraphQLDoc>
|
|
253
|
+
|
|
254
|
+
## removeOrderLine {#removeorderline}
|
|
255
|
+
|
|
256
|
+
<GraphQLDoc
|
|
257
|
+
type="mutation"
|
|
258
|
+
typeName="removeOrderLine"
|
|
259
|
+
typeLinks={{
|
|
260
|
+
RemoveOrderItemsResult: '/reference/graphql-api/shop/object-types#removeorderitemsresult',
|
|
261
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
262
|
+
}}
|
|
263
|
+
>
|
|
264
|
+
{`"""Remove an OrderLine from the Order"""
|
|
265
|
+
type Mutation {
|
|
266
|
+
removeOrderLine(orderLineId: ID!): RemoveOrderItemsResult!
|
|
267
|
+
}`}
|
|
268
|
+
</GraphQLDoc>
|
|
269
|
+
|
|
270
|
+
## requestPasswordReset {#requestpasswordreset}
|
|
271
|
+
|
|
272
|
+
<GraphQLDoc
|
|
273
|
+
type="mutation"
|
|
274
|
+
typeName="requestPasswordReset"
|
|
275
|
+
typeLinks={{
|
|
276
|
+
RequestPasswordResetResult: '/reference/graphql-api/shop/object-types#requestpasswordresetresult',
|
|
277
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
278
|
+
}}
|
|
279
|
+
>
|
|
280
|
+
{`"""Requests a password reset email to be sent"""
|
|
281
|
+
type Mutation {
|
|
282
|
+
requestPasswordReset(emailAddress: String!): RequestPasswordResetResult
|
|
283
|
+
}`}
|
|
284
|
+
</GraphQLDoc>
|
|
285
|
+
|
|
286
|
+
## requestUpdateCustomerEmailAddress {#requestupdatecustomeremailaddress}
|
|
287
|
+
|
|
288
|
+
<GraphQLDoc
|
|
289
|
+
type="mutation"
|
|
290
|
+
typeName="requestUpdateCustomerEmailAddress"
|
|
291
|
+
typeLinks={{
|
|
292
|
+
RequestUpdateCustomerEmailAddressResult: '/reference/graphql-api/shop/object-types#requestupdatecustomeremailaddressresult',
|
|
293
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
294
|
+
}}
|
|
295
|
+
>
|
|
296
|
+
{`"""
|
|
297
|
+
Request to update the emailAddress of the active Customer. If \`authOptions.requireVerification\` is enabled
|
|
298
|
+
(as is the default), then the \`identifierChangeToken\` will be assigned to the current User and
|
|
299
|
+
a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email
|
|
300
|
+
that verification token to the Customer, which is then used to verify the change of email address.
|
|
301
|
+
"""
|
|
302
|
+
type Mutation {
|
|
303
|
+
requestUpdateCustomerEmailAddress(password: String!, newEmailAddress: String!): RequestUpdateCustomerEmailAddressResult!
|
|
304
|
+
}`}
|
|
305
|
+
</GraphQLDoc>
|
|
306
|
+
|
|
307
|
+
## resetPassword {#resetpassword}
|
|
308
|
+
|
|
309
|
+
<GraphQLDoc
|
|
310
|
+
type="mutation"
|
|
311
|
+
typeName="resetPassword"
|
|
312
|
+
typeLinks={{
|
|
313
|
+
ResetPasswordResult: '/reference/graphql-api/shop/object-types#resetpasswordresult',
|
|
314
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
315
|
+
}}
|
|
316
|
+
>
|
|
317
|
+
{`"""Resets a Customer's password based on the provided token"""
|
|
318
|
+
type Mutation {
|
|
319
|
+
resetPassword(token: String!, password: String!): ResetPasswordResult!
|
|
320
|
+
}`}
|
|
321
|
+
</GraphQLDoc>
|
|
322
|
+
|
|
323
|
+
## setCustomerForOrder {#setcustomerfororder}
|
|
324
|
+
|
|
325
|
+
<GraphQLDoc
|
|
326
|
+
type="mutation"
|
|
327
|
+
typeName="setCustomerForOrder"
|
|
328
|
+
typeLinks={{
|
|
329
|
+
SetCustomerForOrderResult: '/reference/graphql-api/shop/object-types#setcustomerfororderresult',
|
|
330
|
+
CreateCustomerInput: '/reference/graphql-api/shop/input-types#createcustomerinput',
|
|
331
|
+
}}
|
|
332
|
+
>
|
|
333
|
+
{`"""Set the Customer for the Order. Required only if the Customer is not currently logged in"""
|
|
334
|
+
type Mutation {
|
|
335
|
+
setCustomerForOrder(input: CreateCustomerInput!): SetCustomerForOrderResult!
|
|
336
|
+
}`}
|
|
337
|
+
</GraphQLDoc>
|
|
338
|
+
|
|
339
|
+
## setOrderBillingAddress {#setorderbillingaddress}
|
|
340
|
+
|
|
341
|
+
<GraphQLDoc
|
|
342
|
+
type="mutation"
|
|
343
|
+
typeName="setOrderBillingAddress"
|
|
344
|
+
typeLinks={{
|
|
345
|
+
ActiveOrderResult: '/reference/graphql-api/shop/object-types#activeorderresult',
|
|
346
|
+
CreateAddressInput: '/reference/graphql-api/shop/input-types#createaddressinput',
|
|
347
|
+
}}
|
|
348
|
+
>
|
|
349
|
+
{`"""Sets the billing address for the active Order"""
|
|
350
|
+
type Mutation {
|
|
351
|
+
setOrderBillingAddress(input: CreateAddressInput!): ActiveOrderResult!
|
|
352
|
+
}`}
|
|
353
|
+
</GraphQLDoc>
|
|
354
|
+
|
|
355
|
+
## setOrderCustomFields {#setordercustomfields}
|
|
356
|
+
|
|
357
|
+
<GraphQLDoc
|
|
358
|
+
type="mutation"
|
|
359
|
+
typeName="setOrderCustomFields"
|
|
360
|
+
typeLinks={{
|
|
361
|
+
ActiveOrderResult: '/reference/graphql-api/shop/object-types#activeorderresult',
|
|
362
|
+
UpdateOrderInput: '/reference/graphql-api/shop/input-types#updateorderinput',
|
|
363
|
+
}}
|
|
364
|
+
>
|
|
365
|
+
{`"""Allows any custom fields to be set for the active Order"""
|
|
366
|
+
type Mutation {
|
|
367
|
+
setOrderCustomFields(input: UpdateOrderInput!): ActiveOrderResult!
|
|
368
|
+
}`}
|
|
369
|
+
</GraphQLDoc>
|
|
370
|
+
|
|
371
|
+
## setOrderShippingAddress {#setordershippingaddress}
|
|
372
|
+
|
|
373
|
+
<GraphQLDoc
|
|
374
|
+
type="mutation"
|
|
375
|
+
typeName="setOrderShippingAddress"
|
|
376
|
+
typeLinks={{
|
|
377
|
+
ActiveOrderResult: '/reference/graphql-api/shop/object-types#activeorderresult',
|
|
378
|
+
CreateAddressInput: '/reference/graphql-api/shop/input-types#createaddressinput',
|
|
379
|
+
}}
|
|
380
|
+
>
|
|
381
|
+
{`"""Sets the shipping address for the active Order"""
|
|
382
|
+
type Mutation {
|
|
383
|
+
setOrderShippingAddress(input: CreateAddressInput!): ActiveOrderResult!
|
|
384
|
+
}`}
|
|
385
|
+
</GraphQLDoc>
|
|
386
|
+
|
|
387
|
+
## setOrderShippingMethod {#setordershippingmethod}
|
|
388
|
+
|
|
389
|
+
<GraphQLDoc
|
|
390
|
+
type="mutation"
|
|
391
|
+
typeName="setOrderShippingMethod"
|
|
392
|
+
typeLinks={{
|
|
393
|
+
SetOrderShippingMethodResult: '/reference/graphql-api/shop/object-types#setordershippingmethodresult',
|
|
394
|
+
ID: '/reference/graphql-api/shop/object-types#id',
|
|
395
|
+
}}
|
|
396
|
+
>
|
|
397
|
+
{`"""
|
|
398
|
+
Sets the shipping method by id, which can be obtained with the \`eligibleShippingMethods\` query.
|
|
399
|
+
An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case,
|
|
400
|
+
you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each
|
|
401
|
+
shipping method will apply to.
|
|
402
|
+
"""
|
|
403
|
+
type Mutation {
|
|
404
|
+
setOrderShippingMethod(shippingMethodId: [ID!]!): SetOrderShippingMethodResult!
|
|
405
|
+
}`}
|
|
406
|
+
</GraphQLDoc>
|
|
407
|
+
|
|
408
|
+
## transitionOrderToState {#transitionordertostate}
|
|
409
|
+
|
|
410
|
+
<GraphQLDoc
|
|
411
|
+
type="mutation"
|
|
412
|
+
typeName="transitionOrderToState"
|
|
413
|
+
typeLinks={{
|
|
414
|
+
TransitionOrderToStateResult: '/reference/graphql-api/shop/object-types#transitionordertostateresult',
|
|
415
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
416
|
+
}}
|
|
417
|
+
>
|
|
418
|
+
{`"""Transitions an Order to a new state. Valid next states can be found by querying \`nextOrderStates\`"""
|
|
419
|
+
type Mutation {
|
|
420
|
+
transitionOrderToState(state: String!): TransitionOrderToStateResult
|
|
421
|
+
}`}
|
|
422
|
+
</GraphQLDoc>
|
|
423
|
+
|
|
424
|
+
## unsetOrderBillingAddress {#unsetorderbillingaddress}
|
|
425
|
+
|
|
426
|
+
<GraphQLDoc
|
|
427
|
+
type="mutation"
|
|
428
|
+
typeName="unsetOrderBillingAddress"
|
|
429
|
+
typeLinks={{
|
|
430
|
+
ActiveOrderResult: '/reference/graphql-api/shop/object-types#activeorderresult',
|
|
431
|
+
}}
|
|
432
|
+
>
|
|
433
|
+
{`"""Unsets the billing address for the active Order. Available since version 3.1.0"""
|
|
434
|
+
type Mutation {
|
|
435
|
+
unsetOrderBillingAddress: ActiveOrderResult!
|
|
436
|
+
}`}
|
|
437
|
+
</GraphQLDoc>
|
|
438
|
+
|
|
439
|
+
## unsetOrderShippingAddress {#unsetordershippingaddress}
|
|
440
|
+
|
|
441
|
+
<GraphQLDoc
|
|
442
|
+
type="mutation"
|
|
443
|
+
typeName="unsetOrderShippingAddress"
|
|
444
|
+
typeLinks={{
|
|
445
|
+
ActiveOrderResult: '/reference/graphql-api/shop/object-types#activeorderresult',
|
|
446
|
+
}}
|
|
447
|
+
>
|
|
448
|
+
{`"""Unsets the shipping address for the active Order. Available since version 3.1.0"""
|
|
449
|
+
type Mutation {
|
|
450
|
+
unsetOrderShippingAddress: ActiveOrderResult!
|
|
451
|
+
}`}
|
|
452
|
+
</GraphQLDoc>
|
|
453
|
+
|
|
454
|
+
## updateCustomer {#updatecustomer}
|
|
455
|
+
|
|
456
|
+
<GraphQLDoc
|
|
457
|
+
type="mutation"
|
|
458
|
+
typeName="updateCustomer"
|
|
459
|
+
typeLinks={{
|
|
460
|
+
Customer: '/reference/graphql-api/shop/object-types#customer',
|
|
461
|
+
UpdateCustomerInput: '/reference/graphql-api/shop/input-types#updatecustomerinput',
|
|
462
|
+
}}
|
|
463
|
+
>
|
|
464
|
+
{`"""Update an existing Customer"""
|
|
465
|
+
type Mutation {
|
|
466
|
+
updateCustomer(input: UpdateCustomerInput!): Customer!
|
|
467
|
+
}`}
|
|
468
|
+
</GraphQLDoc>
|
|
469
|
+
|
|
470
|
+
## updateCustomerAddress {#updatecustomeraddress}
|
|
471
|
+
|
|
472
|
+
<GraphQLDoc
|
|
473
|
+
type="mutation"
|
|
474
|
+
typeName="updateCustomerAddress"
|
|
475
|
+
typeLinks={{
|
|
476
|
+
Address: '/reference/graphql-api/shop/object-types#address',
|
|
477
|
+
UpdateAddressInput: '/reference/graphql-api/shop/input-types#updateaddressinput',
|
|
478
|
+
}}
|
|
479
|
+
>
|
|
480
|
+
{`"""Update an existing Address"""
|
|
481
|
+
type Mutation {
|
|
482
|
+
updateCustomerAddress(input: UpdateAddressInput!): Address!
|
|
483
|
+
}`}
|
|
484
|
+
</GraphQLDoc>
|
|
485
|
+
|
|
486
|
+
## updateCustomerEmailAddress {#updatecustomeremailaddress}
|
|
487
|
+
|
|
488
|
+
<GraphQLDoc
|
|
489
|
+
type="mutation"
|
|
490
|
+
typeName="updateCustomerEmailAddress"
|
|
491
|
+
typeLinks={{
|
|
492
|
+
UpdateCustomerEmailAddressResult: '/reference/graphql-api/shop/object-types#updatecustomeremailaddressresult',
|
|
493
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
494
|
+
}}
|
|
495
|
+
>
|
|
496
|
+
{`"""
|
|
497
|
+
Confirm the update of the emailAddress with the provided token, which has been generated by the
|
|
498
|
+
\`requestUpdateCustomerEmailAddress\` mutation.
|
|
499
|
+
"""
|
|
500
|
+
type Mutation {
|
|
501
|
+
updateCustomerEmailAddress(token: String!): UpdateCustomerEmailAddressResult!
|
|
502
|
+
}`}
|
|
503
|
+
</GraphQLDoc>
|
|
504
|
+
|
|
505
|
+
## updateCustomerPassword {#updatecustomerpassword}
|
|
506
|
+
|
|
507
|
+
<GraphQLDoc
|
|
508
|
+
type="mutation"
|
|
509
|
+
typeName="updateCustomerPassword"
|
|
510
|
+
typeLinks={{
|
|
511
|
+
UpdateCustomerPasswordResult: '/reference/graphql-api/shop/object-types#updatecustomerpasswordresult',
|
|
512
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
513
|
+
}}
|
|
514
|
+
>
|
|
515
|
+
{`"""Update the password of the active Customer"""
|
|
516
|
+
type Mutation {
|
|
517
|
+
updateCustomerPassword(currentPassword: String!, newPassword: String!): UpdateCustomerPasswordResult!
|
|
518
|
+
}`}
|
|
519
|
+
</GraphQLDoc>
|
|
520
|
+
|
|
521
|
+
## verifyCustomerAccount {#verifycustomeraccount}
|
|
522
|
+
|
|
523
|
+
<GraphQLDoc
|
|
524
|
+
type="mutation"
|
|
525
|
+
typeName="verifyCustomerAccount"
|
|
526
|
+
typeLinks={{
|
|
527
|
+
VerifyCustomerAccountResult: '/reference/graphql-api/shop/object-types#verifycustomeraccountresult',
|
|
528
|
+
String: '/reference/graphql-api/shop/object-types#string',
|
|
529
|
+
}}
|
|
530
|
+
>
|
|
531
|
+
{`"""
|
|
532
|
+
Verify a Customer email address with the token sent to that address. Only applicable if \`authOptions.requireVerification\` is set to true.
|
|
533
|
+
|
|
534
|
+
If the Customer was not registered with a password in the \`registerCustomerAccount\` mutation, the password _must_ be
|
|
535
|
+
provided here.
|
|
536
|
+
"""
|
|
537
|
+
type Mutation {
|
|
538
|
+
verifyCustomerAccount(token: String!, password: String): VerifyCustomerAccountResult!
|
|
539
|
+
}`}
|
|
540
|
+
</GraphQLDoc>
|