Some ledgers (e.g. NetSuite) allow for custom attributes (or “fields”), which can vary by account and user. To allow for custom attributes, you can create new resources, ledger serializers (see below), and validation contracts (see below). Assuming your ledger supports the string attribute foo
for customers, you could do the following:
Depending on your use of LedgerSync, you may need to define resources dynamically with different custom attributes. You could do so using something like the following:
You can now use these custom resources in operations that use or require custom attributes.
Related articles: