Skip to main content

VoucherRequiredInput

No description

type VoucherRequiredInput {
id: ID
name: String!
description: String!
code: String!
consumed: Boolean
totalUsageCount: Int
availableUsageCount: Int
options: GQLTJson
createdAt: GQLTDate
updatedAt: GQLTDate
productGroupId: ID
userId: ID
groupId: ID
invoice: VoucherInvoiceHasManyInput
invoiceItems: VoucherInvoiceItemsHasManyInput
productGroup: VoucherProductGroupBelongsToInput
voucherModifiers: VoucherVoucherModifiersHasManyInput
orders: VoucherOrdersHasManyInput
user: VoucherUserBelongsToInput
group: VoucherGroupBelongsToInput
}

Fields#

id (ID)#

This a primary key for Voucher

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)#

target for product group

userId (ID)#

target for user

groupId (ID)#

target for group

invoice (VoucherInvoiceHasManyInput)#

This is the mutation object for VoucherInvoiceHasMany

invoiceItems (VoucherInvoiceItemsHasManyInput)#

This is the mutation object for VoucherInvoiceItemsHasMany

productGroup (VoucherProductGroupBelongsToInput)#

This is the mutation object for VoucherProductGroupBelongsTo

voucherModifiers (VoucherVoucherModifiersHasManyInput)#

This is the mutation object for VoucherVoucherModifiersHasMany

orders (VoucherOrdersHasManyInput)#

This is the mutation object for VoucherOrdersHasMany

user (VoucherUserBelongsToInput)#

This is the mutation object for VoucherUserBelongsTo

group (VoucherGroupBelongsToInput)#

This is the mutation object for VoucherGroupBelongsTo