Blesta Source Documentation

AbstractTax implements TaxInterface uses Container

AbstractYes

Abstract Tax

Attributes
#[AllowDynamicProperties]
Table of Contents

Interfaces

TaxInterface Tax interface

Methods

getNotes() Gets the invoice notes from the tax provider
getRegions() Gets a list of the states/provinces where these tax requirements apply
getTaxIdName() Fetches the name of the tax ID field
getFromContainer() Fetch an item from the container
Methods

getNotes()

Gets the invoice notes from the tax provider

public getNotes(stdClass $invoice) : array<string|int, mixed>
Parameters
$invoice : stdClass

The invoice for which to get notes

Return values
array<string|int, mixed>

A list of notes from the tax provider

getRegions()

Gets a list of the states/provinces where these tax requirements apply

public getRegions() : array<string|int, mixed>
Return values
array<string|int, mixed>

A list containing the state/province codes

getTaxIdName()

Fetches the name of the tax ID field

public getTaxIdName([stdClass $client = null ]) : string
Parameters
$client : stdClass = null

An object representing the client to be taxed

Return values
string

The name of the tax ID field

getFromContainer()

Fetch an item from the container

protected getFromContainer(string $service) : mixed
Parameters
$service : string

The name of the service from the container to fetch

Return values
mixed

The service if found, otherwise null

Tags
subpackage

core.Util.Tax.Common

copyright

Copyright (c) 2021, Phillips Data, Inc.

license

http://www.blesta.com/license/ The Blesta License Agreement

link

Blesta


        
On this page

Search results