CoolCMS API

SellerTaxProfile
in package

Read onlyYes
FinalYes

Tax profile of a seller on a date, read through a single place ({@see \App\UI\Api\System\Models\Managers\SellerTaxProfileManager}).

Table of Contents

Constants

SOURCE_HISTORY  : string = 'history'
`cms_mod_invoicer_seller_tax_statuses` row valid on the date.
SOURCE_OVERRIDE  : string = 'override'
Status injected explicitly (unit tests, harness) — never from a request.
SOURCE_USE_VAT  : string = 'use_vat'
Seller without any status history row: derived from the flat `sellers.use_vat` (payer / non_payer).

Properties

$countryCode  : string
$sellerId  : int
$source  : string
$status  : SellerVatStatus
$vatId  : string|null

Methods

__construct()  : mixed
hasVatId()  : bool

Constants

SOURCE_HISTORY

`cms_mod_invoicer_seller_tax_statuses` row valid on the date.

public string SOURCE_HISTORY = 'history'

SOURCE_OVERRIDE

Status injected explicitly (unit tests, harness) — never from a request.

public string SOURCE_OVERRIDE = 'override'

SOURCE_USE_VAT

Seller without any status history row: derived from the flat `sellers.use_vat` (payer / non_payer).

public string SOURCE_USE_VAT = 'use_vat'

Properties

Methods

__construct()

public __construct(int $sellerId, SellerVatStatus $status, string $countryCode, string|null $vatId, string $source) : mixed
Parameters
$sellerId : int
$status : SellerVatStatus
$countryCode : string
$vatId : string|null
$source : string
On this page

Search results