Reporting Services

<back to all web services

DuplicateTransactionEditRequest

Requires Authentication
The following routes are available for this service:
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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	duplicateTrans: 
	[
		{
			objectId: String,
			createdOn: 0001-01-01,
			route: String,
			serialNumber: String,
			transactionType: String,
			amountProcessed: 0,
			locationName: String,
			locationId: String,
			computerName: String,
			amex: 0,
			noAmex: 0,
			uniqueTransIdNum: 0,
			uniqueTransId: String,
			transactionId: String,
			deviceBatchNumber: String,
			developerName: String,
			deviceName: String,
			version: String,
			computerDateTime: 0001-01-01,
			terminalDateTime: 0001-01-01,
			companyName: String,
			maskedAccount: String,
			approvalNumberResult: String,
			merchantId: String,
			companyId: String,
			missingTransactions: False,
			numberMissing: 0,
			startDateFilter: String,
			endDateFilter: String,
			adjustmentTypeId: String,
			fromLogFile: String,
			resultStatus: String,
			minsTermOffBy: 0,
			source: String,
			duplicateFlag: String,
			comment: String,
			dupCreatedOn: 0001-01-01,
			dupCreatedBy: String,
			dupCount: 0,
			processorTransactionId: String,
			transactionReference: String,
			billingName: String,
			resultMessage: String,
			transrefDiff: False,
			cashier: String,
			accountCardType: String
		}
	]
}