PHP 트레잇 Mpociot\VatCalculator\Traits\BillableWithinTheEU

파일 보기 프로젝트 열기: mpociot/vat-calculator

보호된 프로퍼티들

프로퍼티 타입 설명
$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