コード例 #1
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'bankAccountBban')) {
         if (!is_object($object->bankAccountBban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountBban, true) . '\' is not an object');
         }
         $value = new BankAccountBban();
         $this->bankAccountBban = $value->fromObject($object->bankAccountBban);
     }
     if (property_exists($object, 'bankAccountIban')) {
         if (!is_object($object->bankAccountIban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountIban, true) . '\' is not an object');
         }
         $value = new BankAccountIban();
         $this->bankAccountIban = $value->fromObject($object->bankAccountIban);
     }
     if (property_exists($object, 'bankData')) {
         if (!is_object($object->bankData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankData, true) . '\' is not an object');
         }
         $value = new BankData();
         $this->bankData = $value->fromObject($object->bankData);
     }
     if (property_exists($object, 'swift')) {
         if (!is_object($object->swift)) {
             throw new UnexpectedValueException('value \'' . print_r($object->swift, true) . '\' is not an object');
         }
         $value = new Swift();
         $this->swift = $value->fromObject($object->swift);
     }
     return $this;
 }
コード例 #2
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'creationOutput')) {
         if (!is_object($object->creationOutput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->creationOutput, true) . '\' is not an object');
         }
         $value = new PaymentCreationOutput();
         $this->creationOutput = $value->fromObject($object->creationOutput);
     }
     if (property_exists($object, 'merchantAction')) {
         if (!is_object($object->merchantAction)) {
             throw new UnexpectedValueException('value \'' . print_r($object->merchantAction, true) . '\' is not an object');
         }
         $value = new MerchantAction();
         $this->merchantAction = $value->fromObject($object->merchantAction);
     }
     if (property_exists($object, 'payment')) {
         if (!is_object($object->payment)) {
             throw new UnexpectedValueException('value \'' . print_r($object->payment, true) . '\' is not an object');
         }
         $value = new Payment();
         $this->payment = $value->fromObject($object->payment);
     }
     return $this;
 }
コード例 #3
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'bic')) {
         $this->bic = $object->bic;
     }
     if (property_exists($object, 'category')) {
         $this->category = $object->category;
     }
     if (property_exists($object, 'chipsUID')) {
         $this->chipsUID = $object->chipsUID;
     }
     if (property_exists($object, 'extraInfo')) {
         $this->extraInfo = $object->extraInfo;
     }
     if (property_exists($object, 'poBoxCountry')) {
         $this->poBoxCountry = $object->poBoxCountry;
     }
     if (property_exists($object, 'poBoxLocation')) {
         $this->poBoxLocation = $object->poBoxLocation;
     }
     if (property_exists($object, 'poBoxNumber')) {
         $this->poBoxNumber = $object->poBoxNumber;
     }
     if (property_exists($object, 'poBoxZip')) {
         $this->poBoxZip = $object->poBoxZip;
     }
     if (property_exists($object, 'routingBic')) {
         $this->routingBic = $object->routingBic;
     }
     if (property_exists($object, 'services')) {
         $this->services = $object->services;
     }
     return $this;
 }
コード例 #4
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'billingAddress')) {
         if (!is_object($object->billingAddress)) {
             throw new UnexpectedValueException('value \'' . print_r($object->billingAddress, true) . '\' is not an object');
         }
         $value = new Address();
         $this->billingAddress = $value->fromObject($object->billingAddress);
     }
     if (property_exists($object, 'locale')) {
         $this->locale = $object->locale;
     }
     if (property_exists($object, 'personalInformation')) {
         if (!is_object($object->personalInformation)) {
             throw new UnexpectedValueException('value \'' . print_r($object->personalInformation, true) . '\' is not an object');
         }
         $value = new PersonalInformationRiskAssessment();
         $this->personalInformation = $value->fromObject($object->personalInformation);
     }
     if (property_exists($object, 'shippingAddress')) {
         if (!is_object($object->shippingAddress)) {
             throw new UnexpectedValueException('value \'' . print_r($object->shippingAddress, true) . '\' is not an object');
         }
         $value = new AddressPersonal();
         $this->shippingAddress = $value->fromObject($object->shippingAddress);
     }
     return $this;
 }
コード例 #5
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'amount')) {
         $this->amount = $object->amount;
     }
     if (property_exists($object, 'directDebitPaymentMethodSpecificInput')) {
         if (!is_object($object->directDebitPaymentMethodSpecificInput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->directDebitPaymentMethodSpecificInput, true) . '\' is not an object');
         }
         $value = new ApprovePaymentNonSepaDirectDebitPaymentMethodSpecificInput();
         $this->directDebitPaymentMethodSpecificInput = $value->fromObject($object->directDebitPaymentMethodSpecificInput);
     }
     if (property_exists($object, 'order')) {
         if (!is_object($object->order)) {
             throw new UnexpectedValueException('value \'' . print_r($object->order, true) . '\' is not an object');
         }
         $value = new OrderApprovePayment();
         $this->order = $value->fromObject($object->order);
     }
     if (property_exists($object, 'sepaDirectDebitPaymentMethodSpecificInput')) {
         if (!is_object($object->sepaDirectDebitPaymentMethodSpecificInput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->sepaDirectDebitPaymentMethodSpecificInput, true) . '\' is not an object');
         }
         $value = new ApprovePaymentSepaDirectDebitPaymentMethodSpecificInput();
         $this->sepaDirectDebitPaymentMethodSpecificInput = $value->fromObject($object->sepaDirectDebitPaymentMethodSpecificInput);
     }
     return $this;
 }
コード例 #6
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'actionType')) {
         $this->actionType = $object->actionType;
     }
     if (property_exists($object, 'redirectData')) {
         if (!is_object($object->redirectData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->redirectData, true) . '\' is not an object');
         }
         $value = new RedirectData();
         $this->redirectData = $value->fromObject($object->redirectData);
     }
     if (property_exists($object, 'renderingData')) {
         $this->renderingData = $object->renderingData;
     }
     if (property_exists($object, 'showData')) {
         if (!is_array($object->showData) && !is_object($object->showData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->showData, true) . '\' is not an array or object');
         }
         $this->showData = [];
         foreach ($object->showData as $showDataElementObject) {
             $showDataElement = new KeyValuePair();
             $this->showData[] = $showDataElement->fromObject($showDataElementObject);
         }
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'bankAccountIban')) {
         if (!is_object($object->bankAccountIban)) {
             throw new UnexpectedValueException('value \'' . print_r($object->bankAccountIban, true) . '\' is not an object');
         }
         $value = new BankAccountIban();
         $this->bankAccountIban = $value->fromObject($object->bankAccountIban);
     }
     if (property_exists($object, 'customerContractIdentifier')) {
         $this->customerContractIdentifier = $object->customerContractIdentifier;
     }
     if (property_exists($object, 'debtor')) {
         if (!is_object($object->debtor)) {
             throw new UnexpectedValueException('value \'' . print_r($object->debtor, true) . '\' is not an object');
         }
         $value = new Debtor();
         $this->debtor = $value->fromObject($object->debtor);
     }
     if (property_exists($object, 'isRecurring')) {
         $this->isRecurring = $object->isRecurring;
     }
     if (property_exists($object, 'mandateApproval')) {
         if (!is_object($object->mandateApproval)) {
             throw new UnexpectedValueException('value \'' . print_r($object->mandateApproval, true) . '\' is not an object');
         }
         $value = new MandateApproval();
         $this->mandateApproval = $value->fromObject($object->mandateApproval);
     }
     if (property_exists($object, 'preNotification')) {
         $this->preNotification = $object->preNotification;
     }
     return $this;
 }
コード例 #8
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'displayedData')) {
         if (!is_object($object->displayedData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->displayedData, true) . '\' is not an object');
         }
         $value = new DisplayedData();
         $this->displayedData = $value->fromObject($object->displayedData);
     }
     if (property_exists($object, 'payment')) {
         if (!is_object($object->payment)) {
             throw new UnexpectedValueException('value \'' . print_r($object->payment, true) . '\' is not an object');
         }
         $value = new Payment();
         $this->payment = $value->fromObject($object->payment);
     }
     if (property_exists($object, 'paymentCreationReferences')) {
         if (!is_object($object->paymentCreationReferences)) {
             throw new UnexpectedValueException('value \'' . print_r($object->paymentCreationReferences, true) . '\' is not an object');
         }
         $value = new PaymentCreationReferences();
         $this->paymentCreationReferences = $value->fromObject($object->paymentCreationReferences);
     }
     if (property_exists($object, 'paymentStatusCategory')) {
         $this->paymentStatusCategory = $object->paymentStatusCategory;
     }
     if (property_exists($object, 'tokens')) {
         $this->tokens = $object->tokens;
     }
     return $this;
 }
コード例 #9
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'attributes')) {
         if (!is_array($object->attributes) && !is_object($object->attributes)) {
             throw new UnexpectedValueException('value \'' . print_r($object->attributes, true) . '\' is not an array or object');
         }
         $this->attributes = [];
         foreach ($object->attributes as $attributesElementObject) {
             $attributesElement = new AccountOnFileAttribute();
             $this->attributes[] = $attributesElement->fromObject($attributesElementObject);
         }
     }
     if (property_exists($object, 'displayHints')) {
         if (!is_object($object->displayHints)) {
             throw new UnexpectedValueException('value \'' . print_r($object->displayHints, true) . '\' is not an object');
         }
         $value = new AccountOnFileDisplayHints();
         $this->displayHints = $value->fromObject($object->displayHints);
     }
     if (property_exists($object, 'id')) {
         $this->id = $object->id;
     }
     if (property_exists($object, 'paymentProductId')) {
         $this->paymentProductId = $object->paymentProductId;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'isRecurring')) {
         $this->isRecurring = $object->isRecurring;
     }
     if (property_exists($object, 'locale')) {
         $this->locale = $object->locale;
     }
     if (property_exists($object, 'paymentProductFilters')) {
         if (!is_object($object->paymentProductFilters)) {
             throw new UnexpectedValueException('value \'' . print_r($object->paymentProductFilters, true) . '\' is not an object');
         }
         $value = new PaymentProductFiltersHostedCheckout();
         $this->paymentProductFilters = $value->fromObject($object->paymentProductFilters);
     }
     if (property_exists($object, 'returnUrl')) {
         $this->returnUrl = $object->returnUrl;
     }
     if (property_exists($object, 'showResultPage')) {
         $this->showResultPage = $object->showResultPage;
     }
     if (property_exists($object, 'tokens')) {
         $this->tokens = $object->tokens;
     }
     if (property_exists($object, 'variant')) {
         $this->variant = $object->variant;
     }
     return $this;
 }
コード例 #11
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'category')) {
         $this->category = $object->category;
     }
     if (property_exists($object, 'result')) {
         $this->result = $object->result;
     }
     if (property_exists($object, 'retaildecisionsCCFraudCheckOutput')) {
         if (!is_object($object->retaildecisionsCCFraudCheckOutput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->retaildecisionsCCFraudCheckOutput, true) . '\' is not an object');
         }
         $value = new RetailDecisionsCCFraudCheckOutput();
         $this->retaildecisionsCCFraudCheckOutput = $value->fromObject($object->retaildecisionsCCFraudCheckOutput);
     }
     if (property_exists($object, 'validationBankAccountOutput')) {
         if (!is_object($object->validationBankAccountOutput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->validationBankAccountOutput, true) . '\' is not an object');
         }
         $value = new ValidationBankAccountOutput();
         $this->validationBankAccountOutput = $value->fromObject($object->validationBankAccountOutput);
     }
     return $this;
 }
コード例 #12
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'errors')) {
         if (!is_array($object->errors) && !is_object($object->errors)) {
             throw new UnexpectedValueException('value \'' . print_r($object->errors, true) . '\' is not an array or object');
         }
         $this->errors = [];
         foreach ($object->errors as $errorsElementObject) {
             $errorsElement = new APIError();
             $this->errors[] = $errorsElement->fromObject($errorsElementObject);
         }
     }
     if (property_exists($object, 'isCancellable')) {
         $this->isCancellable = $object->isCancellable;
     }
     if (property_exists($object, 'statusCategory')) {
         $this->statusCategory = $object->statusCategory;
     }
     if (property_exists($object, 'statusCode')) {
         $this->statusCode = $object->statusCode;
     }
     if (property_exists($object, 'statusCodeChangeDateTime')) {
         $this->statusCodeChangeDateTime = $object->statusCodeChangeDateTime;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'discountAmount')) {
         $this->discountAmount = $object->discountAmount;
     }
     if (property_exists($object, 'lineAmountTotal')) {
         $this->lineAmountTotal = $object->lineAmountTotal;
     }
     if (property_exists($object, 'productCode')) {
         $this->productCode = $object->productCode;
     }
     if (property_exists($object, 'productPrice')) {
         $this->productPrice = $object->productPrice;
     }
     if (property_exists($object, 'productType')) {
         $this->productType = $object->productType;
     }
     if (property_exists($object, 'quantity')) {
         $this->quantity = $object->quantity;
     }
     if (property_exists($object, 'taxAmount')) {
         $this->taxAmount = $object->taxAmount;
     }
     if (property_exists($object, 'unit')) {
         $this->unit = $object->unit;
     }
     return $this;
 }
コード例 #14
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'dataRestrictions')) {
         if (!is_object($object->dataRestrictions)) {
             throw new UnexpectedValueException('value \'' . print_r($object->dataRestrictions, true) . '\' is not an object');
         }
         $value = new PaymentProductFieldDataRestrictions();
         $this->dataRestrictions = $value->fromObject($object->dataRestrictions);
     }
     if (property_exists($object, 'displayHints')) {
         if (!is_object($object->displayHints)) {
             throw new UnexpectedValueException('value \'' . print_r($object->displayHints, true) . '\' is not an object');
         }
         $value = new PaymentProductFieldDisplayHints();
         $this->displayHints = $value->fromObject($object->displayHints);
     }
     if (property_exists($object, 'id')) {
         $this->id = $object->id;
     }
     if (property_exists($object, 'type')) {
         $this->type = $object->type;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'checks')) {
         if (!is_array($object->checks) && !is_object($object->checks)) {
             throw new UnexpectedValueException('value \'' . print_r($object->checks, true) . '\' is not an array or object');
         }
         $this->checks = [];
         foreach ($object->checks as $checksElementObject) {
             $checksElement = new ValidationBankAccountCheck();
             $this->checks[] = $checksElement->fromObject($checksElementObject);
         }
     }
     if (property_exists($object, 'newBankName')) {
         $this->newBankName = $object->newBankName;
     }
     if (property_exists($object, 'reformattedAccountNumber')) {
         $this->reformattedAccountNumber = $object->reformattedAccountNumber;
     }
     if (property_exists($object, 'reformattedBankCode')) {
         $this->reformattedBankCode = $object->reformattedBankCode;
     }
     if (property_exists($object, 'reformattedBranchCode')) {
         $this->reformattedBranchCode = $object->reformattedBranchCode;
     }
     return $this;
 }
コード例 #16
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'airlineData')) {
         if (!is_object($object->airlineData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->airlineData, true) . '\' is not an object');
         }
         $value = new AirlineData();
         $this->airlineData = $value->fromObject($object->airlineData);
     }
     if (property_exists($object, 'level3SummaryData')) {
         if (!is_object($object->level3SummaryData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->level3SummaryData, true) . '\' is not an object');
         }
         $value = new Level3SummaryData();
         $this->level3SummaryData = $value->fromObject($object->level3SummaryData);
     }
     if (property_exists($object, 'numberOfInstallments')) {
         $this->numberOfInstallments = $object->numberOfInstallments;
     }
     if (property_exists($object, 'orderDate')) {
         $this->orderDate = $object->orderDate;
     }
     if (property_exists($object, 'typeInformation')) {
         if (!is_object($object->typeInformation)) {
             throw new UnexpectedValueException('value \'' . print_r($object->typeInformation, true) . '\' is not an object');
         }
         $value = new OrderTypeInformation();
         $this->typeInformation = $value->fromObject($object->typeInformation);
     }
     return $this;
 }
コード例 #17
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'errorId')) {
         $this->errorId = $object->errorId;
     }
     if (property_exists($object, 'errors')) {
         if (!is_array($object->errors) && !is_object($object->errors)) {
             throw new UnexpectedValueException('value \'' . print_r($object->errors, true) . '\' is not an array or object');
         }
         $this->errors = [];
         foreach ($object->errors as $errorsElementObject) {
             $errorsElement = new APIError();
             $this->errors[] = $errorsElement->fromObject($errorsElementObject);
         }
     }
     if (property_exists($object, 'refundResult')) {
         if (!is_object($object->refundResult)) {
             throw new UnexpectedValueException('value \'' . print_r($object->refundResult, true) . '\' is not an object');
         }
         $value = new RefundResult();
         $this->refundResult = $value->fromObject($object->refundResult);
     }
     return $this;
 }
コード例 #18
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'accountsOnFile')) {
         if (!is_array($object->accountsOnFile) && !is_object($object->accountsOnFile)) {
             throw new UnexpectedValueException('value \'' . print_r($object->accountsOnFile, true) . '\' is not an array or object');
         }
         $this->accountsOnFile = [];
         foreach ($object->accountsOnFile as $accountsOnFileElementObject) {
             $accountsOnFileElement = new AccountOnFile();
             $this->accountsOnFile[] = $accountsOnFileElement->fromObject($accountsOnFileElementObject);
         }
     }
     if (property_exists($object, 'displayHints')) {
         if (!is_object($object->displayHints)) {
             throw new UnexpectedValueException('value \'' . print_r($object->displayHints, true) . '\' is not an object');
         }
         $value = new PaymentProductDisplayHints();
         $this->displayHints = $value->fromObject($object->displayHints);
     }
     if (property_exists($object, 'fields')) {
         if (!is_array($object->fields) && !is_object($object->fields)) {
             throw new UnexpectedValueException('value \'' . print_r($object->fields, true) . '\' is not an array or object');
         }
         $this->fields = [];
         foreach ($object->fields as $fieldsElementObject) {
             $fieldsElement = new PaymentProductField();
             $this->fields[] = $fieldsElement->fromObject($fieldsElementObject);
         }
     }
     if (property_exists($object, 'id')) {
         $this->id = $object->id;
     }
     return $this;
 }
コード例 #19
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'additionalInput')) {
         if (!is_object($object->additionalInput)) {
             throw new UnexpectedValueException('value \'' . print_r($object->additionalInput, true) . '\' is not an object');
         }
         $value = new AdditionalOrderInputAirlineData();
         $this->additionalInput = $value->fromObject($object->additionalInput);
     }
     if (property_exists($object, 'amountOfMoney')) {
         if (!is_object($object->amountOfMoney)) {
             throw new UnexpectedValueException('value \'' . print_r($object->amountOfMoney, true) . '\' is not an object');
         }
         $value = new AmountOfMoney();
         $this->amountOfMoney = $value->fromObject($object->amountOfMoney);
     }
     if (property_exists($object, 'customer')) {
         if (!is_object($object->customer)) {
             throw new UnexpectedValueException('value \'' . print_r($object->customer, true) . '\' is not an object');
         }
         $value = new CustomerRiskAssessment();
         $this->customer = $value->fromObject($object->customer);
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'accountId')) {
         $this->accountId = $object->accountId;
     }
     if (property_exists($object, 'billingAgreementId')) {
         $this->billingAgreementId = $object->billingAgreementId;
     }
     if (property_exists($object, 'companyName')) {
         $this->companyName = $object->companyName;
     }
     if (property_exists($object, 'countryCode')) {
         $this->countryCode = $object->countryCode;
     }
     if (property_exists($object, 'customerAccountStatus')) {
         $this->customerAccountStatus = $object->customerAccountStatus;
     }
     if (property_exists($object, 'customerAddressStatus')) {
         $this->customerAddressStatus = $object->customerAddressStatus;
     }
     if (property_exists($object, 'firstName')) {
         $this->firstName = $object->firstName;
     }
     if (property_exists($object, 'payerId')) {
         $this->payerId = $object->payerId;
     }
     if (property_exists($object, 'surname')) {
         $this->surname = $object->surname;
     }
     return $this;
 }
コード例 #21
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'address')) {
         if (!is_object($object->address)) {
             throw new UnexpectedValueException('value \'' . print_r($object->address, true) . '\' is not an object');
         }
         $value = new AddressPersonal();
         $this->address = $value->fromObject($object->address);
     }
     if (property_exists($object, 'companyInformation')) {
         if (!is_object($object->companyInformation)) {
             throw new UnexpectedValueException('value \'' . print_r($object->companyInformation, true) . '\' is not an object');
         }
         $value = new CompanyInformation();
         $this->companyInformation = $value->fromObject($object->companyInformation);
     }
     if (property_exists($object, 'contactDetails')) {
         if (!is_object($object->contactDetails)) {
             throw new UnexpectedValueException('value \'' . print_r($object->contactDetails, true) . '\' is not an object');
         }
         $value = new ContactDetailsBase();
         $this->contactDetails = $value->fromObject($object->contactDetails);
     }
     return $this;
 }
コード例 #22
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'amountOfMoney')) {
         if (!is_object($object->amountOfMoney)) {
             throw new UnexpectedValueException('value \'' . print_r($object->amountOfMoney, true) . '\' is not an object');
         }
         $value = new AmountOfMoney();
         $this->amountOfMoney = $value->fromObject($object->amountOfMoney);
     }
     if (property_exists($object, 'invoiceData')) {
         if (!is_object($object->invoiceData)) {
             throw new UnexpectedValueException('value \'' . print_r($object->invoiceData, true) . '\' is not an object');
         }
         $value = new LineItemInvoiceData();
         $this->invoiceData = $value->fromObject($object->invoiceData);
     }
     if (property_exists($object, 'level3InterchangeInformation')) {
         if (!is_object($object->level3InterchangeInformation)) {
             throw new UnexpectedValueException('value \'' . print_r($object->level3InterchangeInformation, true) . '\' is not an object');
         }
         $value = new LineItemLevel3InterchangeInformation();
         $this->level3InterchangeInformation = $value->fromObject($object->level3InterchangeInformation);
     }
     return $this;
 }
コード例 #23
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'additionalInfo')) {
         $this->additionalInfo = $object->additionalInfo;
     }
     if (property_exists($object, 'city')) {
         $this->city = $object->city;
     }
     if (property_exists($object, 'countryCode')) {
         $this->countryCode = $object->countryCode;
     }
     if (property_exists($object, 'houseNumber')) {
         $this->houseNumber = $object->houseNumber;
     }
     if (property_exists($object, 'state')) {
         $this->state = $object->state;
     }
     if (property_exists($object, 'stateCode')) {
         $this->stateCode = $object->stateCode;
     }
     if (property_exists($object, 'street')) {
         $this->street = $object->street;
     }
     if (property_exists($object, 'zip')) {
         $this->zip = $object->zip;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'merchantReference')) {
         $this->merchantReference = $object->merchantReference;
     }
     return $this;
 }
コード例 #25
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'alias')) {
         $this->alias = $object->alias;
     }
     return $this;
 }
コード例 #26
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'convertedAmount')) {
         $this->convertedAmount = $object->convertedAmount;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'voidResponseId')) {
         $this->voidResponseId = $object->voidResponseId;
     }
     return $this;
 }
コード例 #28
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'billingAgreementId')) {
         $this->billingAgreementId = $object->billingAgreementId;
     }
     return $this;
 }
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'returnUrl')) {
         $this->returnUrl = $object->returnUrl;
     }
     return $this;
 }
コード例 #30
0
 /**
  * @param object $object
  * @return $this
  * @throws UnexpectedValueException
  */
 public function fromObject($object)
 {
     parent::fromObject($object);
     if (property_exists($object, 'accountHolderName')) {
         $this->accountHolderName = $object->accountHolderName;
     }
     return $this;
 }