/** * @param TpDataApiPaginationResponse|null $pagination */ public function setPagination(TpDataApiPaginationResponse $pagination) { $this->pagination = TpValueFormatter::format('TpDataApiPaginationResponse', $pagination); }
/** * @param TpDataApiMerchantAccountMethod[] $methods */ public function setMethods(array $methods = array()) { $this->methods = TpValueFormatter::formatList('TpDataApiMerchantAccountMethod', $methods); }
/** * @param string|null $scBarcodeUrl */ public function setScBarcodeUrl($scBarcodeUrl = null) { $this->scBarcodeUrl = TpValueFormatter::format('string', $scBarcodeUrl); }
/** * @param TpDataApiPayment|null $payment */ public function setPayment(TpDataApiPayment $payment = null) { $this->payment = TpValueFormatter::format('TpDataApiPayment', $payment); }
/** * @param TpDataApiOrdering|null $ordering */ public function setOrdering(TpDataApiOrdering $ordering = null) { $this->ordering = TpValueFormatter::format('TpDataApiOrdering', $ordering); }
/** * @param string|null $orderHow */ public function setOrderHow($orderHow = null) { $this->orderHow = TpValueFormatter::format('string', $orderHow); }
/** * @param int|null $totalPages */ public function setTotalPages($totalPages = null) { $this->totalPages = TpValueFormatter::format('int', $totalPages); }
/** * @param int|null $state */ public function setState($state = null) { $this->state = TpValueFormatter::format('int', $state); }
/** * @param int|null $itemsOnPage */ public function setItemsOnPage($itemsOnPage = null) { $this->itemsOnPage = TpValueFormatter::format('int', $itemsOnPage); }
/** * @param int $merchantId */ public function setMerchantId($merchantId) { $this->merchantId = TpValueFormatter::format('int', $merchantId); }
/** * @param bool|null $active */ public function setActive($active = null) { $this->active = TpValueFormatter::format('bool', $active); }
/** * @param int|null $paymentId */ public function setPaymentId($paymentId = null) { $this->paymentId = TpValueFormatter::format('int', $paymentId); }
/** * @param bool|null $onlyActive */ public function setOnlyActive($onlyActive = null) { $this->onlyActive = TpValueFormatter::format('bool', $onlyActive); }
/** * @param string $type * @param array $value * @return array */ public static function formatList($type, array $value) { $array = array(); foreach ($value as $item) { $array[] = TpValueFormatter::format($type, $item); } return $array; }
/** * @param string|null $specificSymbol */ public function setSpecificSymbol($specificSymbol = null) { $this->specificSymbol = TpValueFormatter::format('string', $specificSymbol); }
/** * @param TpDataApiPaymentInfo|null $paymentInfo */ public function setPaymentInfo(TpDataApiPaymentInfo $paymentInfo = null) { $this->paymentInfo = TpValueFormatter::format('TpDataApiPaymentInfo', $paymentInfo); }
/** * @return string|null */ public function setCustomerEmail($customerEmail = null) { $this->customerEmail = TpValueFormatter::format('string', $customerEmail); }