PHP Trait Mpociot\VatCalculator\Traits\BillableWithinTheEU

Show file Open project: mpociot/vat-calculator

Protected Properties

Property Type Description
$stripeTaxPercent integer
$userCountryCode
$userIsCompany boolean

Public Methods

Method Description
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 )

Method Details

asBusiness() public method

public asBusiness ( )

asIndividual() public method

public asIndividual ( )

getTaxPercent() public method

Get the tax percentage to apply to the subscription.
public getTaxPercent ( ) : integer
return integer

setTaxForCountry() public method

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

taxPercentage() public method

Get the tax percentage to apply to the subscription for Cashier > 6.0.
public taxPercentage ( ) : integer
return integer

useTaxFrom() public method

public useTaxFrom ( $countryCode )
$countryCode

Property Details

$stripeTaxPercent protected property

protected int $stripeTaxPercent
return integer

$userCountryCode protected property

protected $userCountryCode

$userIsCompany protected property

protected bool $userIsCompany
return boolean