Skip to content

Commit 422f1a9

Browse files
committed
ECP-472: GraphQL schema for company credit
1 parent f18432b commit 422f1a9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

design-documents/graph-ql/coverage/company-credit.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ type CompanyCreditOperation {
2323
amount: Money @doc(description: "The amount fo the company credit operation")
2424
balance: CompanyCredit! @doc(description: "Credit balance after the company credit operation")
2525
purchase_order: String @doc(description: "Purchase order number associated with the company credit operation")
26-
updated_by: String! @doc(description: "The name of the person submitting the company credit operation")
26+
updated_by: CompanyCreditOperationUser! @doc(description: "The user submitting the company credit operation")
27+
}
28+
29+
type CompanyCreditOperationUser {
30+
name: String! @doc(description: "The name of the user submitting the company credit operation")
31+
type: CompanyCreditOperationUserType! @doc(description: "The type of the user submitting the company credit operation")
2732
}
2833

2934
type CompanyCredit {
@@ -41,6 +46,11 @@ enum CompanyCreditOperationType {
4146
REVERT
4247
}
4348

49+
enum CompanyCreditOperationUserType {
50+
CUSTOMER
51+
ADMIN
52+
}
53+
4454
input CompanyCreditHistoryFilterInput {
4555
operation_type: CompanyCreditOperationType @doc(description: "Enum filter by the type of the company credit operation")
4656
purchase_order: String @doc(description: "Free text filter by the purchase order number associated with the company credit operation")

0 commit comments

Comments
 (0)