Fedex – Как определить SpecialServicesRequested SignatureOption для FedexRestPhp

Кемеровские программисты php общаются здесь
Anonymous
Fedex – Как определить SpecialServicesRequested SignatureOption для FedexRest

Сообщение Anonymous »

Я использую библиотеку https://github.com/WhatArmy/FedexRest для создания отправления FedEx.

Я не знаю, как использовать SIGNATURE_OPTION

Код: Выделить всё

$this->request
->setRecipients(
(new Person)
->setPersonName($this->recipient->name)
->setPhoneNumber($this->recipient->phone_number)
->setCompanyName($this->recipient->company_name)
->withAddress(
(new Address())
->setCity($this->recipient->city)
->setStreetLines($this->recipient->address)
->setCountryCode($this->recipient->country)
->setPostalCode($this->recipient->postal_code)
)
)
->setLineItems((new Item())
->setSequenceNumber(1)
->setItemDescription('Product 1')
->setWeight(
(new Weight())
->setValue(1)
->setUnit(WeightUnits::_KILOGRAM)
)
->setDimensions((new Dimensions())
->setWidth(15)
->setLength(10)
->setHeight(15)
->setUnits(LinearUnits::_CENTIMETER)
)
)
// Set signature options here

->request();
Как использовать опцию подписи DIRECT или ADULT_ONLY

Подробнее здесь: https://stackoverflow.com/questions/783 ... -fedexrest

Вернуться в «Php»