CustomerBuyingListView
A durable partner-shared buying list. screen 12.
type CustomerBuyingListView {
canDelete: Boolean!
canEdit: Boolean!
createdByName: String
currency: String!
estimatedTotal: Float!
id: ID!
itemCount: Int!
items: [CustomerBuyingListItemView!]!
lastUsedAt: DateTime
name: String!
note: String
}
Fields
CustomerBuyingListView.canDelete ● Boolean! non-null scalar
Whether THIS buyer may delete the whole list. Separate from canEdit because that rule is expected to tighten (creator-only).
CustomerBuyingListView.canEdit ● Boolean! non-null scalar
Whether THIS buyer may add or edit lines. Server-computed from the role allowlist so the client never re-implements the policy.
CustomerBuyingListView.createdByName ● String scalar
Display name of whoever created this partner-shared list.
CustomerBuyingListView.currency ● String! non-null scalar
ISO 4217 currency code.
CustomerBuyingListView.estimatedTotal ● Float! non-null scalar
Σ lineTotal, computed at read time.
CustomerBuyingListView.id ● ID! non-null scalar
The unique ID of this record.
CustomerBuyingListView.itemCount ● Int! non-null scalar
items.length — lets a list CARD render without the caller selecting every line.
CustomerBuyingListView.items ● [CustomerBuyingListItemView!]! non-null object
The items on the list.
CustomerBuyingListView.lastUsedAt ● DateTime scalar
When the list was last used.
CustomerBuyingListView.name ● String! non-null scalar
The name of the list.
CustomerBuyingListView.note ● String scalar
A note on the list.
Returned By
customerAddBuyingListItem mutation ● customerBuyingLists query ● customerCreateBuyingList mutation ● customerCreateBuyingListFromCart mutation ● customerRemoveBuyingListItem mutation ● customerUpdateBuyingListItem mutation
Member Of
CustomerBuyingListsWriteView object