OBJECT

Buyer

link GraphQL Schema definition

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