public function mapBasicPaymentResourceFrom(BasicPaymentResource $payment, $jsonObject) { parent::mapResourceFrom($payment, $jsonObject); if (isset($jsonObject->price)) { $payment->setPrice($jsonObject->price); } if (isset($jsonObject->paidPrice)) { $payment->setPaidPrice($jsonObject->paidPrice); } if (isset($jsonObject->installment)) { $payment->setInstallment($jsonObject->installment); } if (isset($jsonObject->paymentId)) { $payment->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->merchantCommissionRate)) { $payment->setMerchantCommissionRate($jsonObject->merchantCommissionRate); } if (isset($jsonObject->merchantCommissionRateAmount)) { $payment->setMerchantCommissionRateAmount($jsonObject->merchantCommissionRateAmount); } if (isset($jsonObject->iyziCommissionFee)) { $payment->setIyziCommissionFee($jsonObject->iyziCommissionFee); } if (isset($jsonObject->cardType)) { $payment->setCardType($jsonObject->cardType); } if (isset($jsonObject->cardAssociation)) { $payment->setCardAssociation($jsonObject->cardAssociation); } if (isset($jsonObject->cardFamily)) { $payment->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->cardToken)) { $payment->setCardToken($jsonObject->cardToken); } if (isset($jsonObject->cardUserKey)) { $payment->setCardUserKey($jsonObject->cardUserKey); } if (isset($jsonObject->binNumber)) { $payment->setBinNumber($jsonObject->binNumber); } if (isset($jsonObject->paymentTransactionId)) { $payment->setPaymentTransactionId($jsonObject->paymentTransactionId); } if (isset($jsonObject->authCode)) { $payment->setAuthCode($jsonObject->authCode); } if (isset($jsonObject->connectorName)) { $payment->setConnectorName($jsonObject->connectorName); } if (isset($jsonObject->currency)) { $payment->setCurrency($jsonObject->currency); } if (isset($jsonObject->phase)) { $payment->setPhase($jsonObject->phase); } return $payment; }
public function mapInstallmentInfoFrom(InstallmentInfo $installment, $jsonObject) { parent::mapResourceFrom($installment, $jsonObject); if (isset($jsonObject->installmentDetails)) { $installment->setInstallmentDetails($this->mapInstallmentDetails($jsonObject->installmentDetails)); } return $installment; }
public function mapThreedsInitializePreAuthFrom(ThreedsInitializePreAuth $initializePreAuth, $jsonObject) { parent::mapResourceFrom($initializePreAuth, $jsonObject); if (isset($jsonObject->threeDSHtmlContent)) { $initializePreAuth->setHtmlContent(base64_decode($jsonObject->threeDSHtmlContent)); } return $initializePreAuth; }
public function mapBouncedBankTransferListFrom(BouncedBankTransferList $transferList, $jsonObject) { parent::mapResourceFrom($transferList, $jsonObject); if (isset($jsonObject->bouncedRows)) { $transferList->setBankTransfers($this->mapBankTransfers($jsonObject->bouncedRows)); } return $transferList; }
public function mapPayoutCompletedTransactionListFrom(PayoutCompletedTransactionList $transactionList, $jsonObject) { parent::mapResourceFrom($transactionList, $jsonObject); if (isset($jsonObject->payoutCompletedTransactions)) { $transactionList->setPayoutCompletedTransactions($this->mapPayoutCompletedTransactions($jsonObject->payoutCompletedTransactions)); } return $transactionList; }
public function mapInstallmentHtmlFrom(InstallmentHtml $installmentHtml, $jsonObject) { parent::mapResourceFrom($installmentHtml, $jsonObject); if (isset($jsonObject->htmlContent)) { $installmentHtml->setHtmlContent($jsonObject->htmlContent); } return $installmentHtml; }
public function mapDisapprovalFrom(Disapproval $disapproval, $jsonObject) { parent::mapResourceFrom($disapproval, $jsonObject); if (isset($jsonObject->paymentTransactionId)) { $disapproval->setPaymentTransactionId($jsonObject->paymentTransactionId); } return $disapproval; }
public function mapBasicThreedsInitializeFrom(BasicThreedsInitialize $initialize, $jsonObject) { parent::mapResourceFrom($initialize, $jsonObject); if (isset($jsonObject->threeDSHtmlContent)) { $initialize->setHtmlContent(base64_decode($jsonObject->threeDSHtmlContent)); } return $initialize; }
public function mapCardListFrom(CardList $cardList, $jsonObject) { parent::mapResourceFrom($cardList, $jsonObject); if (isset($jsonObject->cardUserKey)) { $cardList->setCardUserKey($jsonObject->cardUserKey); } if (isset($jsonObject->cardDetails)) { $cardList->setCardDetails($this->mapCardDetails($jsonObject->cardDetails)); } return $cardList; }
public function mapBasicBkmInitializeFrom(BasicBkmInitialize $initialize, $jsonObject) { parent::mapResourceFrom($initialize, $jsonObject); if (isset($jsonObject->htmlContent)) { $initialize->setHtmlContent(base64_decode($jsonObject->htmlContent)); } if (isset($jsonObject->token)) { $initialize->setToken($jsonObject->token); } return $initialize; }
public function mapSubMerchantFrom(SubMerchant $subMerchant, $jsonObject) { parent::mapResourceFrom($subMerchant, $jsonObject); if (isset($jsonObject->name)) { $subMerchant->setName($jsonObject->name); } if (isset($jsonObject->email)) { $subMerchant->setEmail($jsonObject->email); } if (isset($jsonObject->gsmNumber)) { $subMerchant->setGsmNumber($jsonObject->gsmNumber); } if (isset($jsonObject->address)) { $subMerchant->setAddress($jsonObject->address); } if (isset($jsonObject->iban)) { $subMerchant->setIban($jsonObject->iban); } if (isset($jsonObject->taxOffice)) { $subMerchant->setTaxOffice($jsonObject->taxOffice); } if (isset($jsonObject->contactName)) { $subMerchant->setContactName($jsonObject->contactName); } if (isset($jsonObject->contactSurname)) { $subMerchant->setContactSurname($jsonObject->contactSurname); } if (isset($jsonObject->legalCompanyTitle)) { $subMerchant->setLegalCompanyTitle($jsonObject->legalCompanyTitle); } if (isset($jsonObject->subMerchantExternalId)) { $subMerchant->setSubMerchantExternalId($jsonObject->subMerchantExternalId); } if (isset($jsonObject->identityNumber)) { $subMerchant->setIdentityNumber($jsonObject->identityNumber); } if (isset($jsonObject->taxNumber)) { $subMerchant->setTaxNumber($jsonObject->taxNumber); } if (isset($jsonObject->subMerchantType)) { $subMerchant->setSubMerchantType($jsonObject->subMerchantType); } if (isset($jsonObject->subMerchantKey)) { $subMerchant->setSubMerchantKey($jsonObject->subMerchantKey); } if (isset($jsonObject->swiftCode)) { $subMerchant->setSwiftCode($jsonObject->swiftCode); } if (isset($jsonObject->currency)) { $subMerchant->setCurrency($jsonObject->currency); } return $subMerchant; }
public function mapCheckoutFormInitializeResourceFrom(CheckoutFormInitializeResource $initialize, $jsonObject) { parent::mapResourceFrom($initialize, $jsonObject); if (isset($jsonObject->token)) { $initialize->setToken($jsonObject->token); } if (isset($jsonObject->checkoutFormContent)) { $initialize->setCheckoutFormContent($jsonObject->checkoutFormContent); } if (isset($jsonObject->tokenExpireTime)) { $initialize->setTokenExpireTime($jsonObject->tokenExpireTime); } if (isset($jsonObject->paymentPageUrl)) { $initialize->setPaymentPageUrl($jsonObject->paymentPageUrl); } return $initialize; }
public function mapPeccoInitializeFrom(PeccoInitialize $peccoInitialize, $jsonObject) { parent::mapResourceFrom($peccoInitialize, $jsonObject); if (isset($jsonObject->token)) { $peccoInitialize->setToken($jsonObject->token); } if (isset($jsonObject->htmlContent)) { $peccoInitialize->setHtmlContent($jsonObject->htmlContent); } if (isset($jsonObject->tokenExpireTime)) { $peccoInitialize->setTokenExpireTime($jsonObject->tokenExpireTime); } if (isset($jsonObject->redirectUrl)) { $peccoInitialize->setRedirectUrl($jsonObject->redirectUrl); } return $peccoInitialize; }
public function mapCancelFrom(Cancel $cancel, $jsonObject) { parent::mapResourceFrom($cancel, $jsonObject); if (isset($jsonObject->paymentId)) { $cancel->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->price)) { $cancel->setPrice($jsonObject->price); } if (isset($jsonObject->currency)) { $cancel->setCurrency($jsonObject->currency); } if (isset($jsonObject->connectorName)) { $cancel->setConnectorName($jsonObject->connectorName); } return $cancel; }
public function mapRefundResourceFrom(RefundResource $refundResource, $jsonObject) { parent::mapResourceFrom($refundResource, $jsonObject); if (isset($jsonObject->paymentId)) { $refundResource->setPaymentId($jsonObject->paymentId); } if (isset($jsonObject->paymentTransactionId)) { $refundResource->setPaymentTransactionId($jsonObject->paymentTransactionId); } if (isset($jsonObject->price)) { $refundResource->setPrice($jsonObject->price); } if (isset($jsonObject->currency)) { $refundResource->setCurrency($jsonObject->currency); } if (isset($jsonObject->connectorName)) { $refundResource->setConnectorName($jsonObject->connectorName); } return $refundResource; }
public function mapCardFrom(Card $card, $jsonObject) { parent::mapResourceFrom($card, $jsonObject); if (isset($jsonObject->externalId)) { $card->setExternalId($jsonObject->externalId); } if (isset($jsonObject->email)) { $card->setEmail($jsonObject->email); } if (isset($jsonObject->cardUserKey)) { $card->setCardUserKey($jsonObject->cardUserKey); } if (isset($jsonObject->cardToken)) { $card->setCardToken($jsonObject->cardToken); } if (isset($jsonObject->cardAlias)) { $card->setCardAlias($jsonObject->cardAlias); } if (isset($jsonObject->binNumber)) { $card->setBinNumber($jsonObject->binNumber); } if (isset($jsonObject->cardType)) { $card->setCardType($jsonObject->cardType); } if (isset($jsonObject->cardAssociation)) { $card->setCardAssociation($jsonObject->cardAssociation); } if (isset($jsonObject->cardFamily)) { $card->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->cardBankCode)) { $card->setCardBankCode($jsonObject->cardBankCode); } if (isset($jsonObject->cardBankName)) { $card->setCardBankName($jsonObject->cardBankName); } return $card; }
public function mapBinNumberFrom(BinNumber $binNumber, $jsonObject) { parent::mapResourceFrom($binNumber, $jsonObject); if (isset($jsonObject->binNumber)) { $binNumber->setBinNumber($jsonObject->binNumber); } if (isset($jsonObject->cardType)) { $binNumber->setCardType($jsonObject->cardType); } if (isset($jsonObject->cardAssociation)) { $binNumber->setCardAssociation($jsonObject->cardAssociation); } if (isset($jsonObject->cardFamily)) { $binNumber->setCardFamily($jsonObject->cardFamily); } if (isset($jsonObject->bankName)) { $binNumber->setBankName($jsonObject->bankName); } if (isset($jsonObject->bankCode)) { $binNumber->setBankCode($jsonObject->bankCode); } return $binNumber; }
public function mapCrossBookingFromSubMerchantFrom(CrossBookingFromSubMerchant $booking, $jsonObject) { parent::mapResourceFrom($booking, $jsonObject); return $booking; }
public static function retrieve(Options $options) { $rawResult = parent::httpClient()->get($options->getBaseUrl() . "/payment/test"); return IyzipayResourceMapper::create($rawResult)->jsonDecode()->mapResource(new IyzipayResource()); }