Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions design-documents/graph-ql/coverage/b2b/company-credit.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ type Company {
###### Begin: Defining new types ######
type CompanyCreditHistory {
items: [CompanyCreditOperation]! @doc(description: "An array of company credit operations")
page_info: SearchResultPageInfo! @doc(description: "Metadata for pagination rendering")
total_count: Int @doc(description: "The number of the company credit operations matching the specified filter")
page_info: SearchResultPageInfo @doc(description: "Metadata for pagination rendering")
total_count: Int! @doc(description: "The number of the company credit operations matching the specified filter")
}

type CompanyCreditOperation {
uid: ID! @doc(description: "Unique identifier")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@melnikovi can you add, what this identifier should be composed of.

date: String! @doc(description: "The date of the company credit operation")
type: CompanyCreditOperationType! @doc(description: "The type of the company credit operation")
amount: Money @doc(description: "The amount fo the company credit operation")
amount: Money! @doc(description: "The amount fo the company credit operation")
balance: CompanyCredit! @doc(description: "Credit balance after the company credit operation")
custom_reference_number: String @doc(description: "Custom reference number associated with the company credit operation")
updated_by: CompanyCreditOperationUser! @doc(description: "The user submitting the company credit operation")
Expand Down