Add client referral bonus links
This commit is contained in:
@@ -269,6 +269,23 @@ type ReferralLink {
|
||||
id: ID!
|
||||
referrerId: ID!
|
||||
refereeId: ID!
|
||||
createdById: ID!
|
||||
bonusPercent: Float!
|
||||
createdAt: DateTime!
|
||||
}
|
||||
|
||||
type ManagerReferralLink {
|
||||
id: ID!
|
||||
referrerId: ID!
|
||||
referrerName: String!
|
||||
referrerEmail: String!
|
||||
referrerCompanyName: String
|
||||
refereeId: ID!
|
||||
refereeName: String!
|
||||
refereeEmail: String!
|
||||
refereeCompanyName: String
|
||||
createdById: ID!
|
||||
bonusPercent: Float!
|
||||
createdAt: DateTime!
|
||||
}
|
||||
|
||||
@@ -339,6 +356,7 @@ type Query {
|
||||
myCurrentOrders: [Order!]!
|
||||
managerUsers: [ManagerUser!]!
|
||||
managerOrders(status: OrderStatus, customerId: ID): [Order!]!
|
||||
managerReferralLinks: [ManagerReferralLink!]!
|
||||
managerBonusBalances: [ManagerBonusBalance!]!
|
||||
managerWithdrawalRequests(status: WithdrawalStatus): [ManagerWithdrawalRequest!]!
|
||||
registrationRequests(status: RegistrationStatus): [RegistrationRequest!]!
|
||||
@@ -447,7 +465,9 @@ input BlockOrderInput {
|
||||
}
|
||||
|
||||
input CreateReferralInput {
|
||||
referrerUserId: ID!
|
||||
refereeUserId: ID!
|
||||
bonusPercent: Float!
|
||||
}
|
||||
|
||||
input AddBonusTransactionInput {
|
||||
|
||||
Reference in New Issue
Block a user