优化
This commit is contained in:
@@ -881,7 +881,7 @@ components:
|
|||||||
total: {type: integer, format: int64, minimum: 0}
|
total: {type: integer, format: int64, minimum: 0}
|
||||||
AccountSummary:
|
AccountSummary:
|
||||||
type: object
|
type: object
|
||||||
required: [customerId, customerCode, customerName, outstandingReceivable, pendingBilling, receivedInPeriod, outstandingPayable, status, lastChangedAt]
|
required: [customerId, customerCode, customerName, outstandingReceivable, pendingBilling, receivedInPeriod, totalCost, paidCost, outstandingPayable, status, lastChangedAt]
|
||||||
properties:
|
properties:
|
||||||
customerId: {$ref: '#/components/schemas/Id'}
|
customerId: {$ref: '#/components/schemas/Id'}
|
||||||
customerCode: {type: string}
|
customerCode: {type: string}
|
||||||
@@ -891,6 +891,8 @@ components:
|
|||||||
outstandingReceivable: {$ref: '#/components/schemas/Money'}
|
outstandingReceivable: {$ref: '#/components/schemas/Money'}
|
||||||
pendingBilling: {$ref: '#/components/schemas/Money'}
|
pendingBilling: {$ref: '#/components/schemas/Money'}
|
||||||
receivedInPeriod: {$ref: '#/components/schemas/Money'}
|
receivedInPeriod: {$ref: '#/components/schemas/Money'}
|
||||||
|
totalCost: {$ref: '#/components/schemas/Money'}
|
||||||
|
paidCost: {$ref: '#/components/schemas/Money'}
|
||||||
outstandingPayable: {$ref: '#/components/schemas/Money'}
|
outstandingPayable: {$ref: '#/components/schemas/Money'}
|
||||||
status: {type: string, enum: [ACTIVE, DISABLED]}
|
status: {type: string, enum: [ACTIVE, DISABLED]}
|
||||||
lastChangedAt: {type: string, format: date-time}
|
lastChangedAt: {type: string, format: date-time}
|
||||||
@@ -916,7 +918,7 @@ components:
|
|||||||
items: {$ref: '#/components/schemas/AccountEntryRead'}
|
items: {$ref: '#/components/schemas/AccountEntryRead'}
|
||||||
CustomerAccountSummary:
|
CustomerAccountSummary:
|
||||||
type: object
|
type: object
|
||||||
required: [customerId, currency, totalReceivable, receivedAmount, outstandingReceivable, pendingBilling, outstandingPayable, asOf, lastChangedAt]
|
required: [customerId, currency, totalReceivable, receivedAmount, outstandingReceivable, pendingBilling, totalCost, paidCost, outstandingPayable, asOf, lastChangedAt]
|
||||||
properties:
|
properties:
|
||||||
customerId: {$ref: '#/components/schemas/Id'}
|
customerId: {$ref: '#/components/schemas/Id'}
|
||||||
currency: {type: string, enum: [CNY]}
|
currency: {type: string, enum: [CNY]}
|
||||||
@@ -924,6 +926,8 @@ components:
|
|||||||
receivedAmount: {$ref: '#/components/schemas/Money'}
|
receivedAmount: {$ref: '#/components/schemas/Money'}
|
||||||
outstandingReceivable: {$ref: '#/components/schemas/Money'}
|
outstandingReceivable: {$ref: '#/components/schemas/Money'}
|
||||||
pendingBilling: {$ref: '#/components/schemas/Money'}
|
pendingBilling: {$ref: '#/components/schemas/Money'}
|
||||||
|
totalCost: {$ref: '#/components/schemas/Money'}
|
||||||
|
paidCost: {$ref: '#/components/schemas/Money'}
|
||||||
outstandingPayable: {$ref: '#/components/schemas/Money'}
|
outstandingPayable: {$ref: '#/components/schemas/Money'}
|
||||||
asOf: {type: string, format: date-time}
|
asOf: {type: string, format: date-time}
|
||||||
lastChangedAt: {type: string, format: date-time}
|
lastChangedAt: {type: string, format: date-time}
|
||||||
|
|||||||
Reference in New Issue
Block a user