ModelTaxes module

Transaction

A model in the Taxes module, with 14 members for templates, 11 API properties and 14 members for admin templates.

Taxes\Models\Frontend\Transaction Taxes\Models\Api\Transaction Taxes\Models\Backend\Transaction Also in Taxes: AvalaraProvider Category CategoryProviderCode Location MockTaxProvider Provider Rate StripeTaxProvider Zone
View
What Smarty and Twig templates receive. Properties in REST API responses and job payloads. What admin screen templates receive when you override them.

Templates view

Properties 14

Take no arguments.

# getId()
?int
# getExternalId()
?string
# getType()
?string
# getRequestPayload()
?array
# getResponsePayload()
?array
# getTaxTotal()
?string
# getCreated()
?DateTime
Date the record was created.
# getCurrency()
?Currency
# getFulfillment()
?Fulfillment
# getInvoice()
?Invoice
# getProvider()
?BaseProvider
# isNewRecord() Not in API & Jobs
bool
Check if the record is a new record
# isHierarchicalModel() Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
# isVersionedModel() Not in API & Jobs
bool
Check whether a model is versioned

API & Jobs view

API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.

Properties 11

Read-only values on the record.

# id
?int
# externalId
?string
# type
?string
# requestPayload
?array
# responsePayload
?array
# taxTotal
?string
# created
?DateTime
Date the record was created.
# currency
?Currency
# fulfillment
?Fulfillment
# invoice
?Invoice
# provider
?BaseProvider

Admin view

AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.

Properties 14

Take no arguments.

# getId()
?int
# getExternalId()
?string
# getType()
?string
# getRequestPayload()
?array
# getResponsePayload()
?array
# getTaxTotal()
?string
# getCreated()
?DateTime
Date the record was created.
# getCurrency()
?Currency
# getFulfillment()
?Fulfillment
# getInvoice()
?Invoice
# getProvider()
?BaseProvider
# isNewRecord() Not in API & Jobs
bool
Check if the record is a new record
# isHierarchicalModel() Not in API & Jobs
bool
Check whether a model is a hierarchical model, i.e. can have children
# isVersionedModel() Not in API & Jobs
bool
Check whether a model is versioned