Service - CommerceAccounting Customer: Difference between revisions
Jump to navigation
Jump to search
| (11 intermediate revisions by 2 users not shown) | |||
| Line 9: | Line 9: | ||
= Object Schemas = | = Object Schemas = | ||
; Additional Information: [[Per Service Schemas]] | ; Additional Information: [[Per Service Schemas]] | ||
== comAccCustomerLink == | |||
<syntaxhighlight lang="JavaScript"> | |||
{ | |||
objectType: "comAccCustomerLink", | |||
generatedBy: "userGenerated", | |||
canDelete: false, | |||
belongTo: { | |||
serviceTag: "CommerceAccountingLink", | |||
objectType: "comAccLinkByBusiness" | |||
}, | |||
addOnDataStructure: [], | |||
storageResources: { | |||
"dynamo": { | |||
"storageType": "dynamoDB", | |||
"tableName": "comAccCustomerLink", | |||
}, | |||
"myGraph": { | |||
"storageType": "graph", | |||
"graphServerTag": "GraphHandler" | |||
} | |||
}, | |||
fieldNames: { | |||
// businessId | |||
// organizationId | |||
// customerId | |||
// accountLinkTag // type of link: accountsReceivable|.. | |||
// accountId | |||
}, | |||
identifiers: [ | |||
{ | |||
type: "partitionKey", | |||
fieldNames: ["businessId", "organizationId", "customerId"], | |||
name: "comAccLinkCusId", | |||
}, | |||
{ | |||
type: "sortKey", | |||
fieldName: "accountLinkTag" | |||
}, | |||
] | |||
} | |||
</syntaxhighlight> | |||
== comAccCustomerDefaultLink == | |||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
objectType: " | objectType: "comAccCustomerDefaultLink", | ||
generatedBy: "userGenerated", | |||
canDelete: false, | canDelete: false, | ||
belongTo: { | belongTo: { | ||
serviceTag: " | serviceTag: "CommerceAccountingLink", | ||
objectType: " | objectType: "comAccLinkByBusiness" | ||
}, | }, | ||
addOnDataStructure: [], | addOnDataStructure: [], | ||
| Line 22: | Line 68: | ||
"dynamo": { | "dynamo": { | ||
"storageType": "dynamoDB", | "storageType": "dynamoDB", | ||
"tableName": " | "tableName": "comAccCustomerDefaultLink", | ||
} | }, | ||
"myGraph": { | |||
"storageType": "graph", | |||
"graphServerTag": "GraphHandler" | |||
} | |||
}, | }, | ||
fieldNames: { | fieldNames: { | ||
// | // businessId | ||
// organizationId | |||
// accountLinkTag // type of link: accountsReceivable|.. | |||
// accountId | |||
}, | }, | ||
identifiers: [ | identifiers: [ | ||
{ | { | ||
type: "partitionKey", | |||
} | fieldNames: ["businessId", "organizationId"], | ||
name: "comAccLinkId", | |||
}, | |||
{ | |||
type: "sortKey", | |||
fieldName: "accountLinkTag" | |||
}, | |||
] | ] | ||
} | } | ||
| Line 43: | Line 101: | ||
= flowSchemas = | = 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 | |||
= accountLinkTag = | |||
== accountsReceivable == | |||
= Working documents = | = Working documents = | ||
Latest revision as of 03:52, 10 August 2026
Overview
Connects each customer to their Accounting accounts, such as accountsReceivable
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
comAccCustomerLink
{
objectType: "comAccCustomerLink",
generatedBy: "userGenerated",
canDelete: false,
belongTo: {
serviceTag: "CommerceAccountingLink",
objectType: "comAccLinkByBusiness"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccCustomerLink",
},
"myGraph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
}
},
fieldNames: {
// businessId
// organizationId
// customerId
// accountLinkTag // type of link: accountsReceivable|..
// accountId
},
identifiers: [
{
type: "partitionKey",
fieldNames: ["businessId", "organizationId", "customerId"],
name: "comAccLinkCusId",
},
{
type: "sortKey",
fieldName: "accountLinkTag"
},
]
}
comAccCustomerDefaultLink
{
objectType: "comAccCustomerDefaultLink",
generatedBy: "userGenerated",
canDelete: false,
belongTo: {
serviceTag: "CommerceAccountingLink",
objectType: "comAccLinkByBusiness"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccCustomerDefaultLink",
},
"myGraph": {
"storageType": "graph",
"graphServerTag": "GraphHandler"
}
},
fieldNames: {
// businessId
// organizationId
// accountLinkTag // type of link: accountsReceivable|..
// accountId
},
identifiers: [
{
type: "partitionKey",
fieldNames: ["businessId", "organizationId"],
name: "comAccLinkId",
},
{
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