feat(profile): add counterparty profile and enforce it for order creation
This commit is contained in:
@@ -65,6 +65,27 @@ type User {
|
||||
company: Company
|
||||
}
|
||||
|
||||
type CounterpartyProfile {
|
||||
id: ID!
|
||||
userId: ID!
|
||||
companyName: String!
|
||||
companyFullName: String!
|
||||
inn: String!
|
||||
kpp: String
|
||||
ogrn: String
|
||||
legalAddress: String!
|
||||
bankName: String!
|
||||
bik: String!
|
||||
correspondentAccount: String!
|
||||
checkingAccount: String!
|
||||
signerFullName: String!
|
||||
signerPosition: String!
|
||||
signerBasis: String!
|
||||
isComplete: Boolean!
|
||||
createdAt: DateTime!
|
||||
updatedAt: DateTime!
|
||||
}
|
||||
|
||||
type AuthCodeRequestResult {
|
||||
challengeToken: String!
|
||||
channel: LoginChannel!
|
||||
@@ -222,6 +243,7 @@ type ReferralStats {
|
||||
type Query {
|
||||
healthcheck: String!
|
||||
me: User
|
||||
myCounterpartyProfile: CounterpartyProfile
|
||||
myMessengerConnections: [MessengerConnection!]!
|
||||
myNotificationHistory(channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
|
||||
managerNotificationHistory(userId: ID!, channel: MessengerType!, limit: Int = 50): [NotificationHistoryItem!]!
|
||||
@@ -272,6 +294,22 @@ input ConnectMessengerInput {
|
||||
channelId: String!
|
||||
}
|
||||
|
||||
input UpsertMyCounterpartyProfileInput {
|
||||
companyName: String!
|
||||
companyFullName: String!
|
||||
inn: String!
|
||||
kpp: String
|
||||
ogrn: String
|
||||
legalAddress: String!
|
||||
bankName: String!
|
||||
bik: String!
|
||||
correspondentAccount: String!
|
||||
checkingAccount: String!
|
||||
signerFullName: String!
|
||||
signerPosition: String!
|
||||
signerBasis: String!
|
||||
}
|
||||
|
||||
input ReadyOrderItemInput {
|
||||
productId: ID!
|
||||
quantity: Float!
|
||||
@@ -329,6 +367,7 @@ type Mutation {
|
||||
createInvitation(input: CreateInvitationInput!): Invitation!
|
||||
acceptInvitation(input: AcceptInvitationInput!): User!
|
||||
connectMessenger(input: ConnectMessengerInput!): MessengerConnection!
|
||||
upsertMyCounterpartyProfile(input: UpsertMyCounterpartyProfileInput!): CounterpartyProfile!
|
||||
sendTestMessengerMessage(type: MessengerType!, channelId: String, message: String): MessengerDispatchResult!
|
||||
|
||||
submitReadyOrder(input: SubmitReadyOrderInput!): Order!
|
||||
|
||||
Reference in New Issue
Block a user