Service - CommerceAccounting Link: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 10: | Line 10: | ||
; Additional Information: [[Per Service Schemas]] | ; Additional Information: [[Per Service Schemas]] | ||
== | == comAccLinkByBusiness == | ||
<syntaxhighlight lang="JavaScript"> | <syntaxhighlight lang="JavaScript"> | ||
{ | { | ||
objectType: " | objectType: "comAccLinkByBusiness", | ||
canDelete: false, | canDelete: false, | ||
belongTo: { | belongTo: { | ||
| Line 28: | Line 28: | ||
}, | }, | ||
fieldNames: { | fieldNames: { | ||
// | // businessId | ||
// organizationId | |||
}, | }, | ||
identifiers: [ | identifiers: [ | ||
{ | { | ||
// | // businessId | ||
} | |||
] | |||
} | |||
</syntaxhighlight> | |||
== comAccLinkByOrganization == | |||
<syntaxhighlight lang="JavaScript"> | |||
{ | |||
objectType: "comAccLinkByOrganization", | |||
canDelete: false, | |||
belongTo: { | |||
serviceTag: "User", | |||
objectType: "user" | |||
}, | |||
addOnDataStructure: [], | |||
storageResources: { | |||
"dynamo": { | |||
"storageType": "dynamoDB", | |||
"tableName": "comAccLink", | |||
} | |||
}, | |||
fieldNames: { | |||
// organizationId | |||
// businessId | |||
}, | |||
identifiers: [ | |||
{ | |||
// organizationId | |||
} | } | ||
] | ] | ||
Revision as of 11:38, 15 April 2026
Overview
Configures the link between a Business in Izara Commerce and an organization in Izara Accounting.
Repository
...
Object Schemas
- Additional Information
- Per Service Schemas
comAccLinkByBusiness
{
objectType: "comAccLinkByBusiness",
canDelete: false,
belongTo: {
serviceTag: "User",
objectType: "user"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccLink",
}
},
fieldNames: {
// businessId
// organizationId
},
identifiers: [
{
// businessId
}
]
}
comAccLinkByOrganization
{
objectType: "comAccLinkByOrganization",
canDelete: false,
belongTo: {
serviceTag: "User",
objectType: "user"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccLink",
}
},
fieldNames: {
// organizationId
// businessId
},
identifiers: [
{
// organizationId
}
]
}
comAccAccountLink
{
objectType: "comAccAccountLink",
canDelete: true,
belongTo: {
serviceTag: "User",
objectType: "user"
},
addOnDataStructure: [],
storageResources: {
"dynamo": {
"storageType": "dynamoDB",
"tableName": "comAccAccountLink",
}
},
fieldNames: {
businessId: {
fromObjType:{
serviceTag: "CommerceAccountingLink",
objectType: "comAccLink"
},
},
organizationId: {
fromObjType:{
serviceTag: "CommerceAccountingLink",
objectType: "comAccLink"
},
},
accountTag: { // this is the granular accounting classification that actions need to add entries to
type: "string",
requiredOnCreate: true,
canUpdate: false,
userCanUpdate: false,
storageResourceTags: ["dynamo"],
},
accountId: { // accountId from Izara Accounting
type: "string",
requiredOnCreate: true,
canUpdate: true,
userCanUpdate: true,
storageResourceTags: ["dynamo"],
},
},
identifiers: [
{
type: "partitionKey",
fieldNames: ["businessId","organizationId"],
name: "comAccLinkId",
},
{
type: "sortKey",
fieldName: "accountTag"
},
]
}
- sets up which Accounting Accounts are used for different connection tasks
- example: which Accounting Account is adjusted when stock increases/decreases
- will need to have a plugIn level shared const lib of all accountTags
Relationships
...