PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
authorizenet
/
authorizenet
/
lib
/
net
/
authorize
/
api
/
contract
/
v1
<?php namespace net\authorize\api\contract\v1; /** * Class representing BatchDetailsType * * * XSD Type: batchDetailsType */ class BatchDetailsType implements \JsonSerializable { /** * @property string $batchId */ private $batchId = null; /** * @property \DateTime $settlementTimeUTC */ private $settlementTimeUTC = null; /** * @property \DateTime $settlementTimeLocal */ private $settlementTimeLocal = null; /** * @property string $settlementState */ private $settlementState = null; /** * @property string $paymentMethod */ private $paymentMethod = null; /** * @property string $marketType */ private $marketType = null; /** * @property string $product */ private $product = null; /** * @property \net\authorize\api\contract\v1\BatchStatisticType[] $statistics */ private $statistics = null; /** * Gets as batchId * * @return string */ public function getBatchId() { return $this->batchId; } /** * Sets a new batchId * * @param string $batchId * @return self */ public function setBatchId($batchId) { $this->batchId = $batchId; return $this; } /** * Gets as settlementTimeUTC * * @return \DateTime */ public function getSettlementTimeUTC() { return $this->settlementTimeUTC; } /** * Sets a new settlementTimeUTC * * @param \DateTime $settlementTimeUTC * @return self */ public function setSettlementTimeUTC(\DateTime $settlementTimeUTC) { $this->settlementTimeUTC = $settlementTimeUTC; return $this; } /** * Gets as settlementTimeLocal * * @return \DateTime */ public function getSettlementTimeLocal() { return $this->settlementTimeLocal; } /** * Sets a new settlementTimeLocal * * @param \DateTime $settlementTimeLocal * @return self */ public function setSettlementTimeLocal(\DateTime $settlementTimeLocal) { $this->settlementTimeLocal = $settlementTimeLocal; return $this; } /** * Gets as settlementState * * @return string */ public function getSettlementState() { return $this->settlementState; } /** * Sets a new settlementState * * @param string $settlementState * @return self */ public function setSettlementState($settlementState) { $this->settlementState = $settlementState; return $this; } /** * Gets as paymentMethod * * @return string */ public function getPaymentMethod() { return $this->paymentMethod; } /** * Sets a new paymentMethod * * @param string $paymentMethod * @return self */ public function setPaymentMethod($paymentMethod) { $this->paymentMethod = $paymentMethod; return $this; } /** * Gets as marketType * * @return string */ public function getMarketType() { return $this->marketType; } /** * Sets a new marketType * * @param string $marketType * @return self */ public function setMarketType($marketType) { $this->marketType = $marketType; return $this; } /** * Gets as product * * @return string */ public function getProduct() { return $this->product; } /** * Sets a new product * * @param string $product * @return self */ public function setProduct($product) { $this->product = $product; return $this; } /** * Adds as statistic * * @return self * @param \net\authorize\api\contract\v1\BatchStatisticType $statistic */ public function addToStatistics(\net\authorize\api\contract\v1\BatchStatisticType $statistic) { $this->statistics[] = $statistic; return $this; } /** * isset statistics * * @param scalar $index * @return boolean */ public function issetStatistics($index) { return isset($this->statistics[$index]); } /** * unset statistics * * @param scalar $index * @return void */ public function unsetStatistics($index) { unset($this->statistics[$index]); } /** * Gets as statistics * * @return \net\authorize\api\contract\v1\BatchStatisticType[] */ public function getStatistics() { return $this->statistics; } /** * Sets a new statistics * * @param \net\authorize\api\contract\v1\BatchStatisticType[] $statistics * @return self */ public function setStatistics(array $statistics) { $this->statistics = $statistics; 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]