Voucher
This is a voucher table.
Fields#
id (ID!)#
The ID of an object
name (String!)#
This is a name of voucher that will be displayed.
description (String!)#
This is the description of the voucher.
code (String!)#
This is the code that will be used for applying voucher in products.
consumed (Boolean!)#
This is an indicator if the voucher have been already used.
totalUsageCount (Int!)#
The total usage count that the voucher will be used.
availableUsageCount (Int!)#
The available usage count that the voucher can be applied.
options (GQLTJson!)#
This is where the metadata of voucher is being stored.
createdAt (GQLTDate!)#
updatedAt (GQLTDate!)#
productGroupId (ID)#
The ID of an object
userId (ID)#
The ID of an object
groupId (ID)#
The ID of an object
invoice (InvoiceHasManyInvoiceList)#
If provided it will return results after the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the first ${amount} of records.
If provided it will return results before the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the last ${amount} of records.
orderBy([InvoiceOrderBy])#
If provided this will sort the results by the supplied column and direction
where(GQLTQueryInvoiceWhere)#include([GQLTInvoiceIncludeObject])#
invoiceItems (InvoiceItemHasManyInvoiceItemsList)#
If provided it will return results after the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the first ${amount} of records.
If provided it will return results before the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the last ${amount} of records.
orderBy([InvoiceItemOrderBy])#
If provided this will sort the results by the supplied column and direction
where(GQLTQueryInvoiceItemWhere)#include([GQLTInvoiceItemIncludeObject])#
productGroup (ProductGroup)#
voucher belongsTo product group
voucherModifiers (VoucherModifierHasManyVoucherModifiersList)#
product hasMany voucher modifiers
If provided it will return results after the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the first ${amount} of records.
If provided it will return results before the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the last ${amount} of records.
orderBy([VoucherModifierOrderBy])#
If provided this will sort the results by the supplied column and direction
where(GQLTQueryVoucherModifierWhere)#include([GQLTVoucherModifierIncludeObject])#
orders (OrderHasManyOrdersList)#
If provided it will return results after the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the first ${amount} of records.
If provided it will return results before the provided cursor
If provided the results will be the first ${amount} of records from provided cursor, if a cursor is not provided the results will be the last ${amount} of records.
orderBy([OrderOrderBy])#
If provided this will sort the results by the supplied column and direction
where(GQLTQueryOrderWhere)#include([GQLTOrderIncludeObject])#
user (User)#
voucher belongsTo user
group (Group)#
voucher bekongsTo group
Interfaces#
Node#
An object with an ID