PHP Класс Mpociot\VatCalculator\Http\Controller

Наследование: extends Illuminate\Routing\Controller
Показать файл Открыть проект

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

Метод Описание
__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