ModelTaxes module
StripeTaxProvider
Class StripeTaxProvider
A model in the Taxes module, with 24 members for templates, 20 API properties and 28 members for admin templates.
Templates view
Properties 23
Take no arguments.
-
#
isSubmittingTaxes() -
bool -
#
getResolvedAccountId() -
?string - Resolves the connected Stripe account id to scope tax calls to. Uses the account configured on the provider when set; otherwise falls back to the connected account of the site's Stripe payment method so tax is calculated against the same registrations the payment settles to.
-
#
isSubmitDocuments() -
bool - Get whether tax transactions should be recorded with Stripe for reporting
-
#
getDefaultItemTaxCode() -
string - Get the default Stripe tax code applied to items without a category mapping
-
#
getId() -
?int -
#
getName() -
?string -
#
getEntity() -
?string -
#
isEnabled() -
bool -
#
getCategoryProviderCodes() -
?Collection<CategoryProviderCode> -
#
getZones() -
?Collection<Zone> -
#
getRates() -
?Collection<Rate> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 1
Take arguments. The API serialises only getters that need none.
-
#
getCategories(?array $criteria, string $sort, string $direction) -
Collection - Helper that will fetch instances of Taxes\Models\Category through Taxes\Models\CategoryProviderCode
No members match the filter.
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 20
Read-only values on the record.
-
#
submittingTaxes -
bool -
#
resolvedAccountId -
?string - Resolves the connected Stripe account id to scope tax calls to. Uses the account configured on the provider when set; otherwise falls back to the connected account of the site's Stripe payment method so tax is calculated against the same registrations the payment settles to.
-
#
defaultItemTaxCode -
string - Get the default Stripe tax code applied to items without a category mapping
-
#
id -
?int -
#
name -
?string -
#
entity -
?string -
#
enabled -
bool -
#
categoryProviderCodes -
?Collection<CategoryProviderCode> -
#
zones -
?Collection<Zone> -
#
rates -
?Collection<Rate>
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 27
Take no arguments.
-
#
isSubmittingTaxes() -
bool -
#
getResolvedAccountId() -
?string - Resolves the connected Stripe account id to scope tax calls to. Uses the account configured on the provider when set; otherwise falls back to the connected account of the site's Stripe payment method so tax is calculated against the same registrations the payment settles to.
-
#
isSubmitDocuments() -
bool - Get whether tax transactions should be recorded with Stripe for reporting
-
#
getDefaultItemTaxCode() -
string - Get the default Stripe tax code applied to items without a category mapping
-
#
getId() -
?int -
#
getName() -
?string -
#
getEntity() -
?string -
#
isEnabled() -
bool -
#
getCategoryProviderCodes() -
?Collection<CategoryProviderCode> -
#
getZones() -
?Collection<Zone> -
#
getRates() -
?Collection<Rate> -
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
Methods 1
Take arguments. The API serialises only getters that need none.
-
#
getCategories(?array $criteria, string $sort, string $direction) -
Collection - Helper that will fetch instances of Taxes\Models\Category through Taxes\Models\CategoryProviderCode
No members match the filter.