<?php

// Manually Loading
require_once __DIR__ . '/../BukoliBootstrap.php';
use Bukoli\Bukoli;
use Bukoli\Request\OrderStatusDetailGet;
Bukoli::init('customer password');
$orderStatusDetailGet = new OrderStatusDetailGet();
$orderStatusDetailGet->setRequestOrderId('ORDER-ID');
try {
    $response = $orderStatusDetailGet->request();
    echo 'JetonOrderId: ' . $response->getJetonOrderId() . PHP_EOL;
    echo 'RequestOrderID: ' . $response->getRequestOrderID() . PHP_EOL;
    echo 'TrackingNo: ' . $response->getTrackingNo() . PHP_EOL;
    echo 'Status: ' . $response->getStatus() . PHP_EOL;
    echo 'DeliveryDate: ' . $response->getDeliveryDate()->format('Y-m-d H:i:s') . PHP_EOL;
    echo 'PointCode: ' . $response->getPointCode() . PHP_EOL;
    echo 'PointName: ' . $response->getPointName() . PHP_EOL;
    echo 'PointAddress: ' . $response->getPointAddress() . PHP_EOL;
    echo 'NeighborhoodName: ' . $response->getNeighborhoodName() . PHP_EOL;
    echo 'BoroughName: ' . $response->getBoroughName() . PHP_EOL;
    echo 'CityName: ' . $response->getCityName() . PHP_EOL;
    echo 'BoxCount: ' . $response->getBoxCount() . PHP_EOL;
    echo 'DeciSum: ' . $response->getDeciSum() . PHP_EOL;
} catch (SoapFault $e) {
    // Soap Exception
}
 /**
  * @return string
  */
 public function getCustomerServicePassword()
 {
     return Bukoli::getServicePassword();
 }
 /**
  * @return DateTime
  */
 public function getDeliveryDate()
 {
     return new DateTime($this->DeliveryDate, Bukoli::getDateTimeZone());
 }
Example #4
0
 /**
  * @return string
  */
 protected function getServicePassword()
 {
     return Bukoli::getServicePassword();
 }
Example #5
0
 public function __construct($options = [])
 {
     $this->client = new \SoapClient(Bukoli::getUrl(), array_merge($this->defaultOptions, $options));
 }
Example #6
0
use Bukoli\Model\IntegrationEndUserInfo;
use Bukoli\Model\IntegrationOrderDetailInfo;
use Bukoli\Model\IntegrationOrderInfo;
use Bukoli\Model\MartialStatus;
use Bukoli\Model\Sex;
use Bukoli\Request\OrderInsert;
Bukoli::init('customer password');
$endUser = new IntegrationEndUserInfo();
$endUser->setEndUserCode('1');
$endUser->setFirstName('First Name');
$endUser->setLastName('Last Name');
$endUser->setPhone('5551234567');
$endUser->setEmail('*****@*****.**');
$endUser->setTcIdentityNo('12345678901');
$endUser->setAddress('Address');
$endUser->setBirthDate(new DateTime('2000-01-13', Bukoli::getDateTimeZone()));
$endUser->setJob('Job');
$endUser->setMartialStatus(MartialStatus::SECILMEDI);
$endUser->setSex(Sex::SECILMEDI);
$orderDetail = new IntegrationOrderDetailInfo();
$orderDetail->setDeci(3.4);
$orderDetail->setInfo('Gift');
$orderDetail->setBarcode('123456789');
$orderDetail2 = new IntegrationOrderDetailInfo();
$orderDetail2->setDeci(4.5);
$orderDetail2->setInfo('Gift 2');
$orderDetail2->setBarcode('123456789');
$orderInfo = new IntegrationOrderInfo();
$orderInfo->setRequestOrderId('ORDER-ID');
$orderInfo->setParentRequestOrderId('');
$orderInfo->setEndUserData($endUser);