INTERFACE

Purchaser

link GraphQL Schema definition

1interface Purchaser {
2id: Int!
3
4status: Status!
5
6email: String!
7
8firstName: String
9
10lastName: String
11
12cellPhoneNumber: String
13
14phoneNumber: String
15
16# Arguments
17# format: ISO-8601
18createdAt(format: String = "Y-m-d\\TH:i:sP"): String!
19
20# Arguments
21# format: ISO-8601
22updatedAt(format: String = "Y-m-d\\TH:i:sP"): String!
23
24# Arguments
25# format: ISO-8601
26lastLoginAt(format: String = "Y-m-d\\TH:i:sP"): String
27
28# Arguments
29# format: ISO-8601
30lastOnlineAt(format: String = "Y-m-d\\TH:i:sP"): String
31
32# Required permission: Purchaser.totalOrders:read
33totalOrders: Int!
34
35# Required permission: Purchaser.billingAddress:read
36billingAddress: Address
37
38# Required permission: EmailHistory:read
39#
40# Limit must be in range 1 - 200
41#
42# Arguments
43# where: (self-explanatory)
44# sort: (self-explanatory)
45# limit: (self-explanatory)
46# page: (self-explanatory)
47emailHistory(
48where: EmailHistoryFilter,
49sort: [EmailHistorySort!] = [id_DESC],
50limit: Int = 20,
51page: Int = 1
52): [EmailHistoryEntry!]!
53
54# Required permission: Order:read
55#
56# Store restrictions apply.
57lastOrder: Order
58
59# Required permission: Order:read
60#
61# Limit must be in range 1 - 100
62#
63# Store restrictions apply.
64#
65# Arguments
66# where: (self-explanatory)
67# sort: (self-explanatory)
68# limit: (self-explanatory)
69# page: (self-explanatory)
70orders(where: OrderFilter, sort: [OrderSort!] = [number_DESC], limit: Int = 20, page: Int = 1): [Order!]!
71
72# Required permission: Store:read
73#
74# Store restrictions apply.
75store: Store!
76
77}