Skip to content

Commit 6652987

Browse files
authored
Merge pull request #446 from magento-honey-badgers/company-credit-schema-fixes
Fix naming conventions and optional/required fields in company credit GraphQL schema
2 parents d0a60c7 + c9ce7e9 commit 6652987

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ type Company {
1313
###### Begin: Defining new types ######
1414
type CompanyCreditHistory {
1515
items: [CompanyCreditOperation]! @doc(description: "An array of company credit operations")
16-
page_info: SearchResultPageInfo! @doc(description: "Metadata for pagination rendering")
17-
total_count: Int @doc(description: "The number of the company credit operations matching the specified filter")
16+
page_info: SearchResultPageInfo @doc(description: "Metadata for pagination rendering")
17+
total_count: Int! @doc(description: "The number of the company credit operations matching the specified filter")
1818
}
1919

2020
type CompanyCreditOperation {
21+
uid: ID! @doc(description: "Unique identifier") # id of the log entry
2122
date: String! @doc(description: "The date of the company credit operation")
2223
type: CompanyCreditOperationType! @doc(description: "The type of the company credit operation")
23-
amount: Money @doc(description: "The amount fo the company credit operation")
24+
amount: Money! @doc(description: "The amount fo the company credit operation")
2425
balance: CompanyCredit! @doc(description: "Credit balance after the company credit operation")
2526
custom_reference_number: String @doc(description: "Custom reference number associated with the company credit operation")
2627
updated_by: CompanyCreditOperationUser! @doc(description: "The user submitting the company credit operation")

0 commit comments

Comments
 (0)