PHP Trait Mpociot\VatCalculator\Traits\BillableWithinTheEU

Afficher le fichier Open project: mpociot/vat-calculator

Protected Properties

Свойство Type Description
$stripeTaxPercent integer
$userCountryCode
$userIsCompany boolean

Méthodes publiques

Méthode 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 méthode

public asBusiness ( )

asIndividual() public méthode

public asIndividual ( )

getTaxPercent() public méthode

Get the tax percentage to apply to the subscription.
public getTaxPercent ( ) : integer
Résultat integer

setTaxForCountry() public méthode

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

taxPercentage() public méthode

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

useTaxFrom() public méthode

public useTaxFrom ( $countryCode )
$countryCode

Property Details

$stripeTaxPercent protected_oe property

protected int $stripeTaxPercent
Résultat integer

$userCountryCode protected_oe property

protected $userCountryCode

$userIsCompany protected_oe property

protected bool $userIsCompany
Résultat boolean