AbstractProtectedaccountingThe accounting provider this action is designed for (e.g., 'QuickBooks', 'NetSuite', etc.) Can be 'Generic' for provider-agnostic actions
ProtectedapiQuickBooks API version
ProtectedintegrationThe integration name to look up in the Integration entity
ProtectedminorQuickBooks minor version for API compatibility
Static ReadonlyAuthorizesTrue when the action authorizes its caller itself, so a public entry point such as the
RunAction mutation may run it for an authenticated user without an MJ: Action Authorizations link. Set it only on an action that either checks an authorization the caller
must hold, or reads and writes only with the caller's own permissions. Leave it false for an
action that acts with more authority than its caller, or that reaches data or sends messages
the caller chooses but could not otherwise reach.
The engine reads the marker only from the class that runs, never from its parent classes. A subclass that overrides a marked action must declare the marker again.
ProtectedbuildHelper to build consistent error messages for accounting operations
OptionalsystemError: anyProtectedformatStandard date format for accounting systems (ISO 8601)
ProtectedformatFormats currency values consistently
ProtectedformatFormats date for QuickBooks API
ProtectedgetGets the base URL for API calls from the integration
Optionalprovider: IMetadataProviderProtectedgetCommon accounting parameters that many actions will need
ProtectedgetGets the company integration record for the specified company and accounting system
ProtectedgetGets credentials from environment variables Format: BIZAPPS_{PROVIDER}{COMPANY_ID}{CREDENTIAL_TYPE} Example: BIZAPPS_QUICKBOOKS_12345_ACCESS_TOKEN
ProtectedgetGets OAuth tokens - first tries environment variables, then falls back to database
ProtectedgetHelper to get a parameter value from the params array
ProtectedgetGets the appropriate QuickBooks API URL based on configuration
ProtectedInternalOverride the required abstract method
ProtectedmakeProtectedmapMaps QuickBooks account types to standard accounting categories
ProtectedparseConverts QuickBooks date format to standard ISO format
ProtectedqueryExecutes the action with the provided parameters.
The action execution parameters including context
Promise resolving to the action result
ProtectedvalidateValidates common accounting data formats
ProtectedvalidateValidates journal entry balance (debits must equal credits)
Base class for all QuickBooks Online actions. Handles QB-specific authentication and API interaction patterns.