public function toArray() { return ['integrationOrderInfo' => $this->integrationOrderInfo->toArray()]; }
$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); $orderInfo->setIntegrationOrderDetailInfoArr([$orderDetail, $orderDetail2]); $orderInfo->setSelectedJetonPointCode("TDR-2275"); $orderInfo->setInvoiceNo("INVOICE-1"); $orderInfo->setIrsaliyeNo("IRSALIYE-X"); $orderInfo->setOrderDate("20160113180000"); $orderInfo->setOrderAmount('10000'); $orderInfo->setCargoAmount('500'); $orderInfo->setPromotionCodes(['Promo Code 1', 'Promo Code 2']); $orderInfo->setReservedFields(['Reserved Field 1', 'Reserved Field 1']); $orderInsert = new OrderInsert(); $orderInsert->setIntegrationOrderInfo($orderInfo); try {