PHP Класс EasyPost\Shipment

Наследование: extends EasypostResource
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
all ( mixed $params = null, string $apiKey = null ) : mixed retrieve all shipments
barcode ( mixed $params = null ) : mixed get the shipment barcode
buy ( mixed $params = null ) buy a shipment
create ( mixed $params = null, string $apiKey = null ) : mixed create a shipment
create_from_tracking_code ( mixed $params = null, string $apiKey = null ) : mixed create a shipment from tracking code
get_rates ( mixed $params = null ) get rates for a shipment
insure ( mixed $params = null ) insure the shipment
label ( mixed $params = null ) get the shipment label
lowest_rate ( array $carriers = [], array $services = [] ) : boolean get the lowest rate for the shipment
refund ( mixed $params = null ) refund a shipment
retrieve ( string $id, string $apiKey = null ) : mixed retrieve a shipment
save ( ) save a shipment
stamp ( mixed $params = null ) : mixed get the shipment stamp

Описание методов

all() публичный статический Метод

retrieve all shipments
public static all ( mixed $params = null, string $apiKey = null ) : mixed
$params mixed
$apiKey string
Результат mixed

barcode() публичный Метод

get the shipment barcode
public barcode ( mixed $params = null ) : mixed
$params mixed
Результат mixed

buy() публичный Метод

buy a shipment
public buy ( mixed $params = null )
$params mixed

create() публичный статический Метод

create a shipment
public static create ( mixed $params = null, string $apiKey = null ) : mixed
$params mixed
$apiKey string
Результат mixed

create_from_tracking_code() публичный статический Метод

create a shipment from tracking code
public static create_from_tracking_code ( mixed $params = null, string $apiKey = null ) : mixed
$params mixed
$apiKey string
Результат mixed

get_rates() публичный Метод

get rates for a shipment
public get_rates ( mixed $params = null )
$params mixed

insure() публичный Метод

insure the shipment
public insure ( mixed $params = null )
$params mixed

label() публичный Метод

get the shipment label
public label ( mixed $params = null )
$params mixed

lowest_rate() публичный Метод

get the lowest rate for the shipment
public lowest_rate ( array $carriers = [], array $services = [] ) : boolean
$carriers array
$services array
Результат boolean

refund() публичный Метод

refund a shipment
public refund ( mixed $params = null )
$params mixed

retrieve() публичный статический Метод

retrieve a shipment
public static retrieve ( string $id, string $apiKey = null ) : mixed
$id string
$apiKey string
Результат mixed

save() публичный Метод

save a shipment
public save ( )

stamp() публичный Метод

get the shipment stamp
public stamp ( mixed $params = null ) : mixed
$params mixed
Результат mixed