| All Verbs | /Transactions/Duplicate |
|---|
<?php namespace dtos;
use DateTime;
use Exception;
use DateInterval;
use JsonSerializable;
use ServiceStack\{IReturn,IReturnVoid,IGet,IPost,IPut,IDelete,IPatch,IMeta,IHasSessionId,IHasBearerToken,IHasVersion};
use ServiceStack\{ICrud,ICreateDb,IUpdateDb,IPatchDb,IDeleteDb,ISaveDb,AuditBase,QueryDb,QueryDb2,QueryData,QueryData2,QueryResponse};
use ServiceStack\{ResponseStatus,ResponseError,EmptyResponse,IdResponse,ArrayList,KeyValuePair2,StringResponse,StringsResponse,Tuple2,Tuple3,ByteArray};
use ServiceStack\{JsonConverters,Returns,TypeContext};
class DuplicateTransactionDetail implements JsonSerializable
{
public function __construct(
/** @var string|null */
public ?string $ObjectId=null,
/** @var DateTime */
public DateTime $CreatedOn=new DateTime(),
/** @var string|null */
public ?string $Route=null,
/** @var string|null */
public ?string $SerialNumber=null,
/** @var string|null */
public ?string $TransactionType=null,
/** @var float|null */
public ?float $AmountProcessed=null,
/** @var string|null */
public ?string $LocationName=null,
/** @var string|null */
public ?string $LocationId=null,
/** @var string|null */
public ?string $ComputerName=null,
/** @var float|null */
public ?float $Amex=null,
/** @var float|null */
public ?float $NoAmex=null,
/** @var int|null */
public ?int $UniqueTransIdNum=null,
/** @var string|null */
public ?string $UniqueTransId=null,
/** @var string|null */
public ?string $TransactionId=null,
/** @var string|null */
public ?string $DeviceBatchNumber=null,
/** @var string|null */
public ?string $DeveloperName=null,
/** @var string|null */
public ?string $DeviceName=null,
/** @var string|null */
public ?string $Version=null,
/** @var DateTime|null */
public ?DateTime $ComputerDateTime=null,
/** @var DateTime|null */
public ?DateTime $TerminalDateTime=null,
/** @var string|null */
public ?string $CompanyName=null,
/** @var string|null */
public ?string $MaskedAccount=null,
/** @var string|null */
public ?string $ApprovalNumberResult=null,
/** @var string|null */
public ?string $MerchantId=null,
/** @var string|null */
public ?string $CompanyId=null,
/** @var bool|null */
public ?bool $MissingTransactions=null,
/** @var int */
public int $NumberMissing=0,
/** @var string|null */
public ?string $StartDateFilter=null,
/** @var string|null */
public ?string $EndDateFilter=null,
/** @var string|null */
public ?string $AdjustmentTypeId=null,
/** @var string|null */
public ?string $FromLogFile=null,
/** @var string|null */
public ?string $ResultStatus=null,
/** @var int|null */
public ?int $MinsTermOffBy=null,
/** @var string|null */
public ?string $Source=null,
/** @var string|null */
public ?string $DuplicateFlag=null,
/** @var string|null */
public ?string $Comment=null,
/** @var DateTime|null */
public ?DateTime $DupCreatedOn=null,
/** @var string|null */
public ?string $DupCreatedBy=null,
/** @var int|null */
public ?int $DupCount=null,
/** @var string|null */
public ?string $ProcessorTransactionId=null,
/** @var string|null */
public ?string $TransactionReference=null,
/** @var string|null */
public ?string $BillingName=null,
/** @var string|null */
public ?string $ResultMessage=null,
/** @var bool|null */
public ?bool $TransrefDiff=null,
/** @var string|null */
public ?string $Cashier=null,
/** @var string|null */
public ?string $AccountCardType=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['ObjectId'])) $this->ObjectId = $o['ObjectId'];
if (isset($o['CreatedOn'])) $this->CreatedOn = JsonConverters::from('DateTime', $o['CreatedOn']);
if (isset($o['Route'])) $this->Route = $o['Route'];
if (isset($o['SerialNumber'])) $this->SerialNumber = $o['SerialNumber'];
if (isset($o['TransactionType'])) $this->TransactionType = $o['TransactionType'];
if (isset($o['AmountProcessed'])) $this->AmountProcessed = $o['AmountProcessed'];
if (isset($o['LocationName'])) $this->LocationName = $o['LocationName'];
if (isset($o['LocationId'])) $this->LocationId = $o['LocationId'];
if (isset($o['ComputerName'])) $this->ComputerName = $o['ComputerName'];
if (isset($o['Amex'])) $this->Amex = $o['Amex'];
if (isset($o['NoAmex'])) $this->NoAmex = $o['NoAmex'];
if (isset($o['UniqueTransIdNum'])) $this->UniqueTransIdNum = $o['UniqueTransIdNum'];
if (isset($o['UniqueTransId'])) $this->UniqueTransId = $o['UniqueTransId'];
if (isset($o['TransactionId'])) $this->TransactionId = $o['TransactionId'];
if (isset($o['DeviceBatchNumber'])) $this->DeviceBatchNumber = $o['DeviceBatchNumber'];
if (isset($o['DeveloperName'])) $this->DeveloperName = $o['DeveloperName'];
if (isset($o['DeviceName'])) $this->DeviceName = $o['DeviceName'];
if (isset($o['Version'])) $this->Version = $o['Version'];
if (isset($o['ComputerDateTime'])) $this->ComputerDateTime = JsonConverters::from('DateTime', $o['ComputerDateTime']);
if (isset($o['TerminalDateTime'])) $this->TerminalDateTime = JsonConverters::from('DateTime', $o['TerminalDateTime']);
if (isset($o['CompanyName'])) $this->CompanyName = $o['CompanyName'];
if (isset($o['MaskedAccount'])) $this->MaskedAccount = $o['MaskedAccount'];
if (isset($o['ApprovalNumberResult'])) $this->ApprovalNumberResult = $o['ApprovalNumberResult'];
if (isset($o['MerchantId'])) $this->MerchantId = $o['MerchantId'];
if (isset($o['CompanyId'])) $this->CompanyId = $o['CompanyId'];
if (isset($o['MissingTransactions'])) $this->MissingTransactions = $o['MissingTransactions'];
if (isset($o['NumberMissing'])) $this->NumberMissing = $o['NumberMissing'];
if (isset($o['StartDateFilter'])) $this->StartDateFilter = $o['StartDateFilter'];
if (isset($o['EndDateFilter'])) $this->EndDateFilter = $o['EndDateFilter'];
if (isset($o['AdjustmentTypeId'])) $this->AdjustmentTypeId = $o['AdjustmentTypeId'];
if (isset($o['FromLogFile'])) $this->FromLogFile = $o['FromLogFile'];
if (isset($o['ResultStatus'])) $this->ResultStatus = $o['ResultStatus'];
if (isset($o['MinsTermOffBy'])) $this->MinsTermOffBy = $o['MinsTermOffBy'];
if (isset($o['Source'])) $this->Source = $o['Source'];
if (isset($o['DuplicateFlag'])) $this->DuplicateFlag = $o['DuplicateFlag'];
if (isset($o['Comment'])) $this->Comment = $o['Comment'];
if (isset($o['DupCreatedOn'])) $this->DupCreatedOn = JsonConverters::from('DateTime', $o['DupCreatedOn']);
if (isset($o['DupCreatedBy'])) $this->DupCreatedBy = $o['DupCreatedBy'];
if (isset($o['DupCount'])) $this->DupCount = $o['DupCount'];
if (isset($o['ProcessorTransactionId'])) $this->ProcessorTransactionId = $o['ProcessorTransactionId'];
if (isset($o['TransactionReference'])) $this->TransactionReference = $o['TransactionReference'];
if (isset($o['BillingName'])) $this->BillingName = $o['BillingName'];
if (isset($o['ResultMessage'])) $this->ResultMessage = $o['ResultMessage'];
if (isset($o['TransrefDiff'])) $this->TransrefDiff = $o['TransrefDiff'];
if (isset($o['Cashier'])) $this->Cashier = $o['Cashier'];
if (isset($o['AccountCardType'])) $this->AccountCardType = $o['AccountCardType'];
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->ObjectId)) $o['ObjectId'] = $this->ObjectId;
if (isset($this->CreatedOn)) $o['CreatedOn'] = JsonConverters::to('DateTime', $this->CreatedOn);
if (isset($this->Route)) $o['Route'] = $this->Route;
if (isset($this->SerialNumber)) $o['SerialNumber'] = $this->SerialNumber;
if (isset($this->TransactionType)) $o['TransactionType'] = $this->TransactionType;
if (isset($this->AmountProcessed)) $o['AmountProcessed'] = $this->AmountProcessed;
if (isset($this->LocationName)) $o['LocationName'] = $this->LocationName;
if (isset($this->LocationId)) $o['LocationId'] = $this->LocationId;
if (isset($this->ComputerName)) $o['ComputerName'] = $this->ComputerName;
if (isset($this->Amex)) $o['Amex'] = $this->Amex;
if (isset($this->NoAmex)) $o['NoAmex'] = $this->NoAmex;
if (isset($this->UniqueTransIdNum)) $o['UniqueTransIdNum'] = $this->UniqueTransIdNum;
if (isset($this->UniqueTransId)) $o['UniqueTransId'] = $this->UniqueTransId;
if (isset($this->TransactionId)) $o['TransactionId'] = $this->TransactionId;
if (isset($this->DeviceBatchNumber)) $o['DeviceBatchNumber'] = $this->DeviceBatchNumber;
if (isset($this->DeveloperName)) $o['DeveloperName'] = $this->DeveloperName;
if (isset($this->DeviceName)) $o['DeviceName'] = $this->DeviceName;
if (isset($this->Version)) $o['Version'] = $this->Version;
if (isset($this->ComputerDateTime)) $o['ComputerDateTime'] = JsonConverters::to('DateTime', $this->ComputerDateTime);
if (isset($this->TerminalDateTime)) $o['TerminalDateTime'] = JsonConverters::to('DateTime', $this->TerminalDateTime);
if (isset($this->CompanyName)) $o['CompanyName'] = $this->CompanyName;
if (isset($this->MaskedAccount)) $o['MaskedAccount'] = $this->MaskedAccount;
if (isset($this->ApprovalNumberResult)) $o['ApprovalNumberResult'] = $this->ApprovalNumberResult;
if (isset($this->MerchantId)) $o['MerchantId'] = $this->MerchantId;
if (isset($this->CompanyId)) $o['CompanyId'] = $this->CompanyId;
if (isset($this->MissingTransactions)) $o['MissingTransactions'] = $this->MissingTransactions;
if (isset($this->NumberMissing)) $o['NumberMissing'] = $this->NumberMissing;
if (isset($this->StartDateFilter)) $o['StartDateFilter'] = $this->StartDateFilter;
if (isset($this->EndDateFilter)) $o['EndDateFilter'] = $this->EndDateFilter;
if (isset($this->AdjustmentTypeId)) $o['AdjustmentTypeId'] = $this->AdjustmentTypeId;
if (isset($this->FromLogFile)) $o['FromLogFile'] = $this->FromLogFile;
if (isset($this->ResultStatus)) $o['ResultStatus'] = $this->ResultStatus;
if (isset($this->MinsTermOffBy)) $o['MinsTermOffBy'] = $this->MinsTermOffBy;
if (isset($this->Source)) $o['Source'] = $this->Source;
if (isset($this->DuplicateFlag)) $o['DuplicateFlag'] = $this->DuplicateFlag;
if (isset($this->Comment)) $o['Comment'] = $this->Comment;
if (isset($this->DupCreatedOn)) $o['DupCreatedOn'] = JsonConverters::to('DateTime', $this->DupCreatedOn);
if (isset($this->DupCreatedBy)) $o['DupCreatedBy'] = $this->DupCreatedBy;
if (isset($this->DupCount)) $o['DupCount'] = $this->DupCount;
if (isset($this->ProcessorTransactionId)) $o['ProcessorTransactionId'] = $this->ProcessorTransactionId;
if (isset($this->TransactionReference)) $o['TransactionReference'] = $this->TransactionReference;
if (isset($this->BillingName)) $o['BillingName'] = $this->BillingName;
if (isset($this->ResultMessage)) $o['ResultMessage'] = $this->ResultMessage;
if (isset($this->TransrefDiff)) $o['TransrefDiff'] = $this->TransrefDiff;
if (isset($this->Cashier)) $o['Cashier'] = $this->Cashier;
if (isset($this->AccountCardType)) $o['AccountCardType'] = $this->AccountCardType;
return empty($o) ? new class(){} : $o;
}
}
class DuplicateTransactionEditRequest implements JsonSerializable
{
public function __construct(
/** @var array<DuplicateTransactionDetail>|null */
public ?array $DuplicateTrans=null
) {
}
/** @throws Exception */
public function fromMap($o): void {
if (isset($o['DuplicateTrans'])) $this->DuplicateTrans = JsonConverters::fromArray('DuplicateTransactionDetail', $o['DuplicateTrans']);
}
/** @throws Exception */
public function jsonSerialize(): mixed
{
$o = [];
if (isset($this->DuplicateTrans)) $o['DuplicateTrans'] = JsonConverters::toArray('DuplicateTransactionDetail', $this->DuplicateTrans);
return empty($o) ? new class(){} : $o;
}
}
PHP DuplicateTransactionEditRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Transactions/Duplicate HTTP/1.1
Host: cip-reporting-dev.chargeitpro.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DuplicateTransactionEditRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ReportingService.Services.Rest.Transactions">
<DuplicateTrans xmlns:d2p1="http://schemas.datacontract.org/2004/07/ReportingService.Data.Models.Transactions">
<d2p1:DuplicateTransactionDetail>
<d2p1:AccountCardType>String</d2p1:AccountCardType>
<d2p1:AdjustmentTypeId>String</d2p1:AdjustmentTypeId>
<d2p1:Amex>0</d2p1:Amex>
<d2p1:AmountProcessed>0</d2p1:AmountProcessed>
<d2p1:ApprovalNumberResult>String</d2p1:ApprovalNumberResult>
<d2p1:BillingName>String</d2p1:BillingName>
<d2p1:Cashier>String</d2p1:Cashier>
<d2p1:Comment>String</d2p1:Comment>
<d2p1:CompanyId>String</d2p1:CompanyId>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:ComputerDateTime>0001-01-01T00:00:00</d2p1:ComputerDateTime>
<d2p1:ComputerName>String</d2p1:ComputerName>
<d2p1:CreatedOn>0001-01-01T00:00:00</d2p1:CreatedOn>
<d2p1:DeveloperName>String</d2p1:DeveloperName>
<d2p1:DeviceBatchNumber>String</d2p1:DeviceBatchNumber>
<d2p1:DeviceName>String</d2p1:DeviceName>
<d2p1:DupCount>0</d2p1:DupCount>
<d2p1:DupCreatedBy>String</d2p1:DupCreatedBy>
<d2p1:DupCreatedOn>0001-01-01T00:00:00</d2p1:DupCreatedOn>
<d2p1:DuplicateFlag>String</d2p1:DuplicateFlag>
<d2p1:EndDateFilter>String</d2p1:EndDateFilter>
<d2p1:FromLogFile>String</d2p1:FromLogFile>
<d2p1:LocationId>String</d2p1:LocationId>
<d2p1:LocationName>String</d2p1:LocationName>
<d2p1:MaskedAccount>String</d2p1:MaskedAccount>
<d2p1:MerchantId>String</d2p1:MerchantId>
<d2p1:MinsTermOffBy>0</d2p1:MinsTermOffBy>
<d2p1:MissingTransactions>false</d2p1:MissingTransactions>
<d2p1:NoAmex>0</d2p1:NoAmex>
<d2p1:NumberMissing>0</d2p1:NumberMissing>
<d2p1:ObjectId>String</d2p1:ObjectId>
<d2p1:ProcessorTransactionId>String</d2p1:ProcessorTransactionId>
<d2p1:ResultMessage>String</d2p1:ResultMessage>
<d2p1:ResultStatus>String</d2p1:ResultStatus>
<d2p1:Route>String</d2p1:Route>
<d2p1:SerialNumber>String</d2p1:SerialNumber>
<d2p1:Source>String</d2p1:Source>
<d2p1:StartDateFilter>String</d2p1:StartDateFilter>
<d2p1:TerminalDateTime>0001-01-01T00:00:00</d2p1:TerminalDateTime>
<d2p1:TransactionId>String</d2p1:TransactionId>
<d2p1:TransactionReference>String</d2p1:TransactionReference>
<d2p1:TransactionType>String</d2p1:TransactionType>
<d2p1:TransrefDiff>false</d2p1:TransrefDiff>
<d2p1:UniqueTransId>String</d2p1:UniqueTransId>
<d2p1:UniqueTransIdNum>0</d2p1:UniqueTransIdNum>
<d2p1:Version>String</d2p1:Version>
</d2p1:DuplicateTransactionDetail>
</DuplicateTrans>
</DuplicateTransactionEditRequest>