Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Add missing uids to the types and validate optional/required fields
  • Loading branch information
melnikovi committed Oct 1, 2020
commit 3620b9b544ea9e25338d8bff5475c009f149730f
4 changes: 2 additions & 2 deletions design-documents/graph-ql/coverage/b2b/company-credit.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +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")
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