PHP Трейт Mpociot\VatCalculator\Traits\BillableWithinTheEU

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$stripeTaxPercent integer
$userCountryCode
$userIsCompany boolean

Открытые методы

Метод Описание
asBusiness ( )
asIndividual ( )
getTaxPercent ( ) : integer Get the tax percentage to apply to the subscription.
setTaxForCountry ( string $countryCode, boolean | false $company = false )
taxPercentage ( ) : integer Get the tax percentage to apply to the subscription for Cashier > 6.0.
useTaxFrom ( $countryCode )

Описание методов

asBusiness() публичный Метод

public asBusiness ( )

asIndividual() публичный Метод

public asIndividual ( )

getTaxPercent() публичный Метод

Get the tax percentage to apply to the subscription.
public getTaxPercent ( ) : integer
Результат integer

setTaxForCountry() публичный Метод

public setTaxForCountry ( string $countryCode, boolean | false $company = false )
$countryCode string
$company boolean | false

taxPercentage() публичный Метод

Get the tax percentage to apply to the subscription for Cashier > 6.0.
public taxPercentage ( ) : integer
Результат integer

useTaxFrom() публичный Метод

public useTaxFrom ( $countryCode )
$countryCode

Описание свойств

$stripeTaxPercent защищенное свойство

protected int $stripeTaxPercent
Результат integer

$userCountryCode защищенное свойство

protected $userCountryCode

$userIsCompany защищенное свойство

protected bool $userIsCompany
Результат boolean