Service - CommerceAccounting Customer
Overview
Connects each customer to their Accounting accounts, such as accountsReceivable, and vice versa
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
comAccCustomerLink
{
objectType: "comAccCustomerLink",
canDelete: false,
belongTo: {
serviceTag: "ComAccLink",
objectType: "comAccLinkByBusiness"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccCustomerLink",
}
},
fieldNames: {
// businessId
// customerId
// accountLinkTag // type of link: purchaseLineItem|..
// accountId
},
identifiers: [
{
type: "partitionKey",
fieldNames: ["businessId","customerId"],
},
{
type: "sortKey",
fieldName: "accountLinkTag"
},
]
}
comAccTypeCustomerLink
{
objectType: "comAccTypeCustomerLink",
canDelete: false,
belongTo: {
serviceTag: "ComAccLink",
objectType: "comAccLinkByBusiness"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccTypeCustomerLink",
}
},
fieldNames: {
// businessId
// accountLinkTag // type of link: purchaseLineItem|..
// accountId
},
identifiers: [
{
type: "partitionKey",
fieldName: "businessId",
},
{
type: "sortKey",
fieldName: "accountLinkTag"
},
]
}
Relationships
...
flowSchemas
createSale
- sends request to Accounting to create entries in comAccCustomerLink.accountlinkTag = accountsReceivable account
- or maybe returns accountId to Sales createSale flow which sends to Accounting