Skip to main content

Order

This is a order table

type Order implements Node {
id: ID!
renewalPeriod: String
renewsAt: GQLTDate
initialPurchaseDate: GQLTDate
renewalAttempts: Int!
lastRenewalAttempt: GQLTDate
status: Int!
data: GQLTJson!
processing: OrderProcessingEnum!
processingError: String
createdAt: GQLTDate!
updatedAt: GQLTDate!
accountId: ID
userId: ID
voucherId: ID
orderItems(
after: String
first: Int = 0
before: String
last: Int = 0
orderBy: [OrderItemOrderBy] = []
where: GQLTQueryOrderItemWhere
include: [GQLTOrderItemIncludeObject] = []
): OrderItemHasManyOrderItemsList
invoices(
after: String
first: Int = 0
before: String
last: Int = 0
orderBy: [InvoiceOrderBy] = []
where: GQLTQueryInvoiceWhere
include: [GQLTInvoiceIncludeObject] = []
): InvoiceHasManyInvoicesList
user: User
account: Account
voucher: Voucher
userPlans(
after: String
first: Int = 0
before: String
last: Int = 0
orderBy: [UserPlanOrderBy] = []
where: GQLTQueryUserPlanWhere
include: [GQLTUserPlanIncludeObject] = []
): UserPlanHasManyUserPlansList
}

Fields#

id (ID!)#

The ID of an object

renewalPeriod (String)#

This is the how long the renewal of the user will be.

renewsAt (GQLTDate)#

This is the next time the order will renew at.

initialPurchaseDate (GQLTDate)#

The initial purchase date

renewalAttempts (Int!)#

This is the count of the attempts of renewing the plan since it's automatic as long as you met the condition for the renewal to be processed.

lastRenewalAttempt (GQLTDate)#

This is the date and time where the last renewal attempt will be seen.

status (Int!)#

This is an indicator if the order attempt was succesful or not.

data (GQLTJson!)#

This is where we store the other data staffs of order.

processing (OrderProcessingEnum!)#

processingError (String)#

createdAt (GQLTDate!)#

updatedAt (GQLTDate!)#

accountId (ID)#

The ID of an object

userId (ID)#

The ID of an object

voucherId (ID)#

The ID of an object

orderItems (OrderItemHasManyOrderItemsList)#

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.

If provided this will sort the results by the supplied column and direction

invoices (InvoiceHasManyInvoicesList)#

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.

If provided this will sort the results by the supplied column and direction

user (User)#

account (Account)#

voucher (Voucher)#

order belongsTo voucher

userPlans (UserPlanHasManyUserPlansList)#

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.

If provided this will sort the results by the supplied column and direction

Interfaces#

Node#

An object with an ID