Contract
No description
type Contract implements ActiveRecordModel {
billingModel: String!
billingPeriod: String!
clients(
after: String
before: String
first: Int
last: Int
): ClientConnection!
contractPeriods: [ContractPeriod!]!
contractType: String!
createdAt: ISO8601DateTime
currency: String!
currentPeriod(
date: ISO8601Date
): ContractPeriod
endDate: ISO8601Date
hourlyRate: Float
hoursIncluded: Int
id: ID
movableTime: MovableContractTime!
name: String!
notes: String
orgClientId: ID @deprecated
overageHourlyRate: Float
retainerAmountCents: Int
status: String!
updatedAt: ISO8601DateTime
workspaceClientId: ID
}
Fields
Contract.billingModel ● String! non-null scalar
Contract.billingPeriod ● String! non-null scalar
Contract.clients ● ClientConnection! non-null object
The caller's team clients linked to this contract's org client (one per team)
Contract.clients.after ● String scalar
Returns the elements in the list that come after the specified cursor.
Contract.clients.before ● String scalar
Returns the elements in the list that come before the specified cursor.
Contract.clients.first ● Int scalar
Returns the first _n_ elements from the list.
Contract.clients.last ● Int scalar
Returns the last _n_ elements from the list.
Contract.contractPeriods ● [ContractPeriod!]! non-null object
Contract.contractType ● String! non-null scalar
Contract.createdAt ● ISO8601DateTime scalar
Contract.currency ● String! non-null scalar
Contract.currentPeriod ● ContractPeriod object
Contract.currentPeriod.date ● ISO8601Date scalar
Contract.endDate ● ISO8601Date scalar
Contract.hourlyRate ● Float scalar
Contract.hoursIncluded ● Int scalar
Contract.id ● ID scalar
Contract.movableTime ● MovableContractTime! non-null object
Contract.name ● String! non-null scalar
Contract.notes ● String scalar
Contract.orgClientId ● ID deprecated scalar
DEPRECATED
Use workspaceClientId
Contract.overageHourlyRate ● Float scalar
Contract.retainerAmountCents ● Int scalar
Contract.status ● String! non-null scalar
Contract.updatedAt ● ISO8601DateTime scalar
Contract.workspaceClientId ● ID scalar
Interfaces
ActiveRecordModel interface
Returned By
contract query
Member Of
ContractConnection object ● ContractEdge object ● CreateContractPayload object ● Invoice object ● MovableContractTime object ● MoveTimeToContractPayload object ● UpdateContractPayload object