PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
authorizenet
/
authorizenet
/
lib
/
net
/
authorize
/
api
/
contract
/
v1
<?php namespace net\authorize\api\contract\v1; /** * Class representing OrderType * * * XSD Type: orderType */ class OrderType implements \JsonSerializable { /** * @property string $invoiceNumber */ private $invoiceNumber = null; /** * @property string $description */ private $description = null; /** * @property float $discountAmount */ private $discountAmount = null; /** * @property boolean $taxIsAfterDiscount */ private $taxIsAfterDiscount = null; /** * @property string $totalTaxTypeCode */ private $totalTaxTypeCode = null; /** * @property string $purchaserVATRegistrationNumber */ private $purchaserVATRegistrationNumber = null; /** * @property string $merchantVATRegistrationNumber */ private $merchantVATRegistrationNumber = null; /** * @property string $vatInvoiceReferenceNumber */ private $vatInvoiceReferenceNumber = null; /** * @property string $purchaserCode */ private $purchaserCode = null; /** * @property string $summaryCommodityCode */ private $summaryCommodityCode = null; /** * @property \DateTime $purchaseOrderDateUTC */ private $purchaseOrderDateUTC = null; /** * @property string $supplierOrderReference */ private $supplierOrderReference = null; /** * @property string $authorizedContactName */ private $authorizedContactName = null; /** * @property string $cardAcceptorRefNumber */ private $cardAcceptorRefNumber = null; /** * @property string $amexDataTAA1 */ private $amexDataTAA1 = null; /** * @property string $amexDataTAA2 */ private $amexDataTAA2 = null; /** * @property string $amexDataTAA3 */ private $amexDataTAA3 = null; /** * @property string $amexDataTAA4 */ private $amexDataTAA4 = null; /** * Gets as invoiceNumber * * @return string */ public function getInvoiceNumber() { return $this->invoiceNumber; } /** * Sets a new invoiceNumber * * @param string $invoiceNumber * @return self */ public function setInvoiceNumber($invoiceNumber) { $this->invoiceNumber = $invoiceNumber; return $this; } /** * Gets as description * * @return string */ public function getDescription() { return $this->description; } /** * Sets a new description * * @param string $description * @return self */ public function setDescription($description) { $this->description = $description; return $this; } /** * Gets as discountAmount * * @return float */ public function getDiscountAmount() { return $this->discountAmount; } /** * Sets a new discountAmount * * @param float $discountAmount * @return self */ public function setDiscountAmount($discountAmount) { $this->discountAmount = $discountAmount; return $this; } /** * Gets as taxIsAfterDiscount * * @return boolean */ public function getTaxIsAfterDiscount() { return $this->taxIsAfterDiscount; } /** * Sets a new taxIsAfterDiscount * * @param boolean $taxIsAfterDiscount * @return self */ public function setTaxIsAfterDiscount($taxIsAfterDiscount) { $this->taxIsAfterDiscount = $taxIsAfterDiscount; return $this; } /** * Gets as totalTaxTypeCode * * @return string */ public function getTotalTaxTypeCode() { return $this->totalTaxTypeCode; } /** * Sets a new totalTaxTypeCode * * @param string $totalTaxTypeCode * @return self */ public function setTotalTaxTypeCode($totalTaxTypeCode) { $this->totalTaxTypeCode = $totalTaxTypeCode; return $this; } /** * Gets as purchaserVATRegistrationNumber * * @return string */ public function getPurchaserVATRegistrationNumber() { return $this->purchaserVATRegistrationNumber; } /** * Sets a new purchaserVATRegistrationNumber * * @param string $purchaserVATRegistrationNumber * @return self */ public function setPurchaserVATRegistrationNumber($purchaserVATRegistrationNumber) { $this->purchaserVATRegistrationNumber = $purchaserVATRegistrationNumber; return $this; } /** * Gets as merchantVATRegistrationNumber * * @return string */ public function getMerchantVATRegistrationNumber() { return $this->merchantVATRegistrationNumber; } /** * Sets a new merchantVATRegistrationNumber * * @param string $merchantVATRegistrationNumber * @return self */ public function setMerchantVATRegistrationNumber($merchantVATRegistrationNumber) { $this->merchantVATRegistrationNumber = $merchantVATRegistrationNumber; return $this; } /** * Gets as vatInvoiceReferenceNumber * * @return string */ public function getVatInvoiceReferenceNumber() { return $this->vatInvoiceReferenceNumber; } /** * Sets a new vatInvoiceReferenceNumber * * @param string $vatInvoiceReferenceNumber * @return self */ public function setVatInvoiceReferenceNumber($vatInvoiceReferenceNumber) { $this->vatInvoiceReferenceNumber = $vatInvoiceReferenceNumber; return $this; } /** * Gets as purchaserCode * * @return string */ public function getPurchaserCode() { return $this->purchaserCode; } /** * Sets a new purchaserCode * * @param string $purchaserCode * @return self */ public function setPurchaserCode($purchaserCode) { $this->purchaserCode = $purchaserCode; return $this; } /** * Gets as summaryCommodityCode * * @return string */ public function getSummaryCommodityCode() { return $this->summaryCommodityCode; } /** * Sets a new summaryCommodityCode * * @param string $summaryCommodityCode * @return self */ public function setSummaryCommodityCode($summaryCommodityCode) { $this->summaryCommodityCode = $summaryCommodityCode; return $this; } /** * Gets as purchaseOrderDateUTC * * @return \DateTime */ public function getPurchaseOrderDateUTC() { return $this->purchaseOrderDateUTC; } /** * Sets a new purchaseOrderDateUTC * * @param \DateTime $purchaseOrderDateUTC * @return self */ public function setPurchaseOrderDateUTC(\DateTime $purchaseOrderDateUTC) { $this->purchaseOrderDateUTC = $purchaseOrderDateUTC; return $this; } /** * Gets as supplierOrderReference * * @return string */ public function getSupplierOrderReference() { return $this->supplierOrderReference; } /** * Sets a new supplierOrderReference * * @param string $supplierOrderReference * @return self */ public function setSupplierOrderReference($supplierOrderReference) { $this->supplierOrderReference = $supplierOrderReference; return $this; } /** * Gets as authorizedContactName * * @return string */ public function getAuthorizedContactName() { return $this->authorizedContactName; } /** * Sets a new authorizedContactName * * @param string $authorizedContactName * @return self */ public function setAuthorizedContactName($authorizedContactName) { $this->authorizedContactName = $authorizedContactName; return $this; } /** * Gets as cardAcceptorRefNumber * * @return string */ public function getCardAcceptorRefNumber() { return $this->cardAcceptorRefNumber; } /** * Sets a new cardAcceptorRefNumber * * @param string $cardAcceptorRefNumber * @return self */ public function setCardAcceptorRefNumber($cardAcceptorRefNumber) { $this->cardAcceptorRefNumber = $cardAcceptorRefNumber; return $this; } /** * Gets as amexDataTAA1 * * @return string */ public function getAmexDataTAA1() { return $this->amexDataTAA1; } /** * Sets a new amexDataTAA1 * * @param string $amexDataTAA1 * @return self */ public function setAmexDataTAA1($amexDataTAA1) { $this->amexDataTAA1 = $amexDataTAA1; return $this; } /** * Gets as amexDataTAA2 * * @return string */ public function getAmexDataTAA2() { return $this->amexDataTAA2; } /** * Sets a new amexDataTAA2 * * @param string $amexDataTAA2 * @return self */ public function setAmexDataTAA2($amexDataTAA2) { $this->amexDataTAA2 = $amexDataTAA2; return $this; } /** * Gets as amexDataTAA3 * * @return string */ public function getAmexDataTAA3() { return $this->amexDataTAA3; } /** * Sets a new amexDataTAA3 * * @param string $amexDataTAA3 * @return self */ public function setAmexDataTAA3($amexDataTAA3) { $this->amexDataTAA3 = $amexDataTAA3; return $this; } /** * Gets as amexDataTAA4 * * @return string */ public function getAmexDataTAA4() { return $this->amexDataTAA4; } /** * Sets a new amexDataTAA4 * * @param string $amexDataTAA4 * @return self */ public function setAmexDataTAA4($amexDataTAA4) { $this->amexDataTAA4 = $amexDataTAA4; return $this; } // Json Serialize Code public function jsonSerialize(){ $values = array_filter((array)get_object_vars($this), function ($val){ return !is_null($val); }); $mapper = \net\authorize\util\Mapper::Instance(); foreach($values as $key => $value){ $classDetails = $mapper->getClass(get_class() , $key); if (isset($value)){ if ($classDetails->className === 'Date'){ $dateTime = $value->format('Y-m-d'); $values[$key] = $dateTime; } else if ($classDetails->className === 'DateTime'){ $dateTime = $value->format('Y-m-d\TH:i:s\Z'); $values[$key] = $dateTime; } if (is_array($value)){ if (!$classDetails->isInlineArray){ $subKey = $classDetails->arrayEntryname; $subArray = [$subKey => $value]; $values[$key] = $subArray; } } } } return $values; } // Json Set Code public function set($data) { if(is_array($data) || is_object($data)) { $mapper = \net\authorize\util\Mapper::Instance(); foreach($data AS $key => $value) { $classDetails = $mapper->getClass(get_class() , $key); if($classDetails !== NULL ) { if ($classDetails->isArray) { if ($classDetails->isCustomDefined) { foreach($value AS $keyChild => $valueChild) { $type = new $classDetails->className; $type->set($valueChild); $this->{'addTo' . $key}($type); } } else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) { foreach($value AS $keyChild => $valueChild) { $type = new \DateTime($valueChild); $this->{'addTo' . $key}($type); } } else { foreach($value AS $keyChild => $valueChild) { $this->{'addTo' . $key}($valueChild); } } } else { if ($classDetails->isCustomDefined){ $type = new $classDetails->className; $type->set($value); $this->{'set' . $key}($type); } else if ($classDetails->className === 'DateTime' || $classDetails->className === 'Date' ) { $type = new \DateTime($value); $this->{'set' . $key}($type); } else { $this->{'set' . $key}($value); } } } } } } }
[+]
..
[-] CreditCardSimpleType.php
[edit]
[-] SubscriptionCustomerProfileType.php
[edit]
[-] OrderExType.php
[edit]
[-] UserFieldType.php
[edit]
[-] DeleteCustomerPaymentProfileRequest.php
[edit]
[-] GetHostedPaymentPageRequest.php
[edit]
[-] DeleteCustomerShippingAddressRequest.php
[edit]
[-] CreditCardType.php
[edit]
[-] PaymentDetailsType.php
[edit]
[-] ProfileTransAuthOnlyType.php
[edit]
[-] SubMerchantType.php
[edit]
[-] ARBGetSubscriptionListResponse.php
[edit]
[-] DecryptPaymentDataResponse.php
[edit]
[-] ARBGetSubscriptionStatusRequest.php
[edit]
[-] KeyValueType.php
[edit]
[-] GetSettledBatchListResponse.php
[edit]
[-] GetMerchantDetailsResponse.php
[edit]
[-] MobileDeviceRegistrationRequest.php
[edit]
[-] IsAliveRequest.php
[edit]
[-] FraudInformationType.php
[edit]
[-] DeleteCustomerProfileRequest.php
[edit]
[-] ArbTransactionType.php
[edit]
[-] CustomerProfileSummaryType.php
[edit]
[-] ARBUpdateSubscriptionResponse.php
[edit]
[-] SubscriptionPaymentType.php
[edit]
[-] ARBSubscriptionType.php
[edit]
[-] GetAUJobSummaryRequest.php
[edit]
[-] GetAUJobDetailsResponse.php
[edit]
[-] UpdateSplitTenderGroupRequest.php
[edit]
[-] OrderType.php
[edit]
[-] GetCustomerShippingAddressRequest.php
[edit]
[-] GetTransactionDetailsResponse.php
[edit]
[-] BankAccountType.php
[edit]
[-] BatchStatisticType.php
[edit]
[-] ListOfAUDetailsType.php
[edit]
[-] GetTransactionListRequest.php
[edit]
[-] CustomerProfileType.php
[edit]
[+]
KeyManagementSchemeType
[-] CustomerProfilePaymentType.php
[edit]
[-] ErrorResponse.php
[edit]
[-] UpdateMerchantDetailsRequest.php
[edit]
[-] GetCustomerPaymentProfileResponse.php
[edit]
[-] UpdateMerchantDetailsResponse.php
[edit]
[-] BatchDetailsType.php
[edit]
[-] ARBCreateSubscriptionRequest.php
[edit]
[-] PaymentScheduleType.php
[edit]
[-] CustomerPaymentProfileMaskedType.php
[edit]
[-] UpdateHeldTransactionRequest.php
[edit]
[+]
TransactionRequestType
[-] TransRetailInfoType.php
[edit]
[-] CreateCustomerProfileTransactionResponse.php
[edit]
[-] PermissionType.php
[edit]
[-] PayPalType.php
[edit]
[-] GetHostedPaymentPageResponse.php
[edit]
[-] MessagesType.php
[edit]
[-] GetTransactionDetailsRequest.php
[edit]
[-] OpaqueDataType.php
[edit]
[+]
TransactionDetailsType
[-] UpdateSplitTenderGroupResponse.php
[edit]
[-] GetBatchStatisticsResponse.php
[edit]
[-] AuthorizationIndicatorType.php
[edit]
[-] GetCustomerProfileResponse.php
[edit]
[-] GetBatchStatisticsRequest.php
[edit]
[-] ARBGetSubscriptionListSortingType.php
[edit]
[-] GetCustomerShippingAddressResponse.php
[edit]
[-] SettingType.php
[edit]
[-] EncryptedTrackDataType.php
[edit]
[-] GetTransactionListForCustomerRequest.php
[edit]
[-] PaymentProfileType.php
[edit]
[-] CreateCustomerPaymentProfileResponse.php
[edit]
[-] GetUnsettledTransactionListResponse.php
[edit]
[-] ARBSubscriptionMaskedType.php
[edit]
[-] ExtendedAmountType.php
[edit]
[-] ProfileTransRefundType.php
[edit]
[-] UpdateCustomerShippingAddressRequest.php
[edit]
[-] ArrayOfSettingType.php
[edit]
[-] MobileDeviceLoginResponse.php
[edit]
[-] CustomerProfileIdType.php
[edit]
[-] ProfileTransVoidType.php
[edit]
[-] UpdateCustomerShippingAddressResponse.php
[edit]
[-] CreateCustomerProfileResponse.php
[edit]
[-] CustomerAddressExType.php
[edit]
[-] MobileDeviceLoginRequest.php
[edit]
[-] ANetApiResponseType.php
[edit]
[-] GetMerchantDetailsRequest.php
[edit]
[-] TransactionResponseType.php
[edit]
[-] CustomerDataType.php
[edit]
[+]
PaymentScheduleType
[-] ProfileTransPriorAuthCaptureType.php
[edit]
[-] CcAuthenticationType.php
[edit]
[-] LogoutRequest.php
[edit]
[-] CardArtType.php
[edit]
[-] AuDetailsType.php
[edit]
[-] TransactionListSortingType.php
[edit]
[-] MerchantAuthenticationType.php
[edit]
[-] CreditCardTrackType.php
[edit]
[-] TransactionSummaryType.php
[edit]
[-] GetCustomerPaymentProfileListRequest.php
[edit]
[-] MerchantContactType.php
[edit]
[-] CustomerAddressType.php
[edit]
[-] PaymentEmvType.php
[edit]
[-] UpdateCustomerPaymentProfileRequest.php
[edit]
[-] DecryptPaymentDataRequest.php
[edit]
[-] SendCustomerTransactionReceiptResponse.php
[edit]
[-] ARBGetSubscriptionListRequest.php
[edit]
[+]
TransactionResponseType
[-] CustomerProfileMaskedType.php
[edit]
[-] ProfileTransAmountType.php
[edit]
[-] SolutionType.php
[edit]
[-] DriversLicenseMaskedType.php
[edit]
[-] ARBGetSubscriptionStatusResponse.php
[edit]
[-] CreateCustomerShippingAddressRequest.php
[edit]
[-] ProfileTransOrderType.php
[edit]
[-] GetAUJobDetailsRequest.php
[edit]
[-] SendCustomerTransactionReceiptRequest.php
[edit]
[-] CreateCustomerProfileRequest.php
[edit]
[-] CustomerPaymentProfileSortingType.php
[edit]
[-] CreditCardMaskedType.php
[edit]
[-] NameAndAddressType.php
[edit]
[-] CreateCustomerPaymentProfileRequest.php
[edit]
[-] CreateTransactionRequest.php
[edit]
[-] PaymentMaskedType.php
[edit]
[-] SecurePaymentContainerErrorType.php
[edit]
[-] UpdateCustomerPaymentProfileResponse.php
[edit]
[-] ARBCancelSubscriptionRequest.php
[edit]
[-] ProfileTransactionType.php
[edit]
[-] GetCustomerProfileIdsResponse.php
[edit]
[-] FingerPrintType.php
[edit]
[-] ImpersonationAuthenticationType.php
[edit]
[-] ProfileTransCaptureOnlyType.php
[edit]
[-] SecurePaymentContainerResponse.php
[edit]
[-] ANetApiRequestType.php
[edit]
[-] TokenMaskedType.php
[edit]
[-] EmailSettingsType.php
[edit]
[-] GetTransactionListResponse.php
[edit]
[-] UpdateCustomerProfileRequest.php
[edit]
[-] GetHostedProfilePageRequest.php
[edit]
[-] GetCustomerPaymentProfileListResponse.php
[edit]
[-] EmvTagType.php
[edit]
[-] CustomerProfileInfoExType.php
[edit]
[-] CustomerType.php
[edit]
[-] CreateTransactionResponse.php
[edit]
[-] CustomerProfileBaseType.php
[edit]
[-] GetAUJobSummaryResponse.php
[edit]
[-] ValidateCustomerPaymentProfileRequest.php
[edit]
[-] CustomerPaymentProfileListItemType.php
[edit]
[-] AuDeleteType.php
[edit]
[-] GetHostedProfilePageResponse.php
[edit]
[-] WebCheckOutDataTypeTokenType.php
[edit]
[-] AuthenticateTestRequest.php
[edit]
[-] PaymentSimpleType.php
[edit]
[-] CreateCustomerProfileTransactionRequest.php
[edit]
[-] OtherTaxType.php
[edit]
[-] ARBGetSubscriptionResponse.php
[edit]
[-] AuthenticateTestResponse.php
[edit]
[-] BankAccountMaskedType.php
[edit]
[-] CreateCustomerProfileFromTransactionRequest.php
[edit]
[-] MobileDeviceType.php
[edit]
[-] KeyBlockType.php
[edit]
[-] AuResponseType.php
[edit]
[-] SecurePaymentContainerRequest.php
[edit]
[-] WebCheckOutDataType.php
[edit]
[-] TransactionDetailsType.php
[edit]
[-] KeyManagementSchemeType.php
[edit]
[-] CustomerPaymentProfileBaseType.php
[edit]
[-] GetUnsettledTransactionListRequest.php
[edit]
[-] ProcessingOptionsType.php
[edit]
[-] FDSFilterType.php
[edit]
[-] ValidateCustomerPaymentProfileResponse.php
[edit]
[-] CustomerProfileExType.php
[edit]
[-] UpdateHeldTransactionResponse.php
[edit]
[-] UpdateCustomerProfileResponse.php
[edit]
[-] DeleteCustomerProfileResponse.php
[edit]
[-] DriversLicenseType.php
[edit]
[+]
MessagesType
[-] LogoutResponse.php
[edit]
[-] HeldTransactionRequestType.php
[edit]
[-] GetCustomerProfileRequest.php
[edit]
[-] ProcessorType.php
[edit]
[-] ARBUpdateSubscriptionRequest.php
[edit]
[-] LineItemType.php
[edit]
[-] GetCustomerPaymentProfileRequest.php
[edit]
[-] ARBCancelSubscriptionResponse.php
[edit]
[-] CustomerPaymentProfileExType.php
[edit]
[-] GetSettledBatchListRequest.php
[edit]
[-] ContactDetailType.php
[edit]
[-] CreateProfileResponseType.php
[edit]
[-] PaymentType.php
[edit]
[-] ARBCreateSubscriptionResponse.php
[edit]
[-] EnumCollection.php
[edit]
[-] SubsequentAuthInformationType.php
[edit]
[-] ARBGetSubscriptionRequest.php
[edit]
[-] IsAliveResponse.php
[edit]
[-] SubscriptionDetailType.php
[edit]
[-] GetCustomerProfileIdsRequest.php
[edit]
[-] CreateCustomerShippingAddressResponse.php
[edit]
[-] AuUpdateType.php
[edit]
[-] ProfileTransAuthCaptureType.php
[edit]
[-] DeleteCustomerShippingAddressResponse.php
[edit]
[-] ReturnedItemType.php
[edit]
[-] PagingType.php
[edit]
[-] CustomerPaymentProfileType.php
[edit]
[-] DeleteCustomerPaymentProfileResponse.php
[edit]
[-] TransactionRequestType.php
[edit]
[-] MobileDeviceRegistrationResponse.php
[edit]