PHP 클래스 Mpociot\VatCalculator\Http\Controller

상속: extends Illuminate\Routing\Controller
파일 보기 프로젝트 열기: mpociot/vat-calculator

공개 메소드들

메소드 설명
__construct ( VatCalculator $calculator )
calculateGrossPrice ( Illuminate\Http\Request $request ) : Illuminate\Http\Response Returns the tax rate for the given country.
getCountryCode ( ) : Illuminate\Http\Response Returns the tax rate for the given country.
getTaxRateForLocation ( $countryCode = null, $postalCode = null ) : Illuminate\Http\Response Returns the tax rate for the given country code and postal code.
validateVATID ( string $vat_id ) : Illuminate\Http\Response Returns the tax rate for the given country.

메소드 상세

__construct() 공개 메소드

public __construct ( VatCalculator $calculator )
$calculator Mpociot\VatCalculator\VatCalculator

calculateGrossPrice() 공개 메소드

Returns the tax rate for the given country.
public calculateGrossPrice ( Illuminate\Http\Request $request ) : Illuminate\Http\Response
$request Illuminate\Http\Request
리턴 Illuminate\Http\Response

getCountryCode() 공개 메소드

Returns the tax rate for the given country.
public getCountryCode ( ) : Illuminate\Http\Response
리턴 Illuminate\Http\Response

getTaxRateForLocation() 공개 메소드

Returns the tax rate for the given country code and postal code.
public getTaxRateForLocation ( $countryCode = null, $postalCode = null ) : Illuminate\Http\Response
리턴 Illuminate\Http\Response

validateVATID() 공개 메소드

Returns the tax rate for the given country.
public validateVATID ( string $vat_id ) : Illuminate\Http\Response
$vat_id string
리턴 Illuminate\Http\Response