Frontend | Backend | Api

Taxes\Models\Backend\MockTaxProvider

Class MockTaxProvider

Method Description Returns
getRate() Get the configured tax rate string
isConnectionTestSupported() Does this provider support testing the connection bool
isExternalProvider() Is this provider linked to an external service? bool
getType() Get the type of this provider string
getId() int
getName() string
getEntity() string
isEnabled() bool
getCreated() Date the record was created. DateTime
getModified() Last modification date for the record. DateTime
getSite() Site
getCategoryProviderCodes() Collection (CategoryProviderCode)
getCategories(?array|null $criteria, string $sort, string $direction) Helper that will fetch instances of Taxes\Models\Category through Taxes\Models\CategoryProviderCode Collection
getZones() Collection (Zone)
getRates() Collection (Rate)
isNewRecord() Check if the record is a new record bool
isHierarchicalModel() Check whether a model is a hierarchical model, i.e. can have children bool
isVersionedModel() Check whether a model is versioned bool
getHateoasLinks() Get the HATEOAS links for the record array
getEditUrl() Get the url for editing the record. string
getDeleteUrl() Get the url for deleting the record. string
getManageUrl() Get the url for managing records. string