All Verbs | /Transactions/Duplicate |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using ReportingService.Services.Rest.Transactions;
using ReportingService.Data.Models.Transactions;
namespace ReportingService.Data.Models.Transactions
{
public partial class DuplicateTransactionDetail
{
public virtual string ObjectId { get; set; }
public virtual DateTime CreatedOn { get; set; }
public virtual string Route { get; set; }
public virtual string SerialNumber { get; set; }
public virtual string TransactionType { get; set; }
public virtual decimal? AmountProcessed { get; set; }
public virtual string LocationName { get; set; }
public virtual string LocationId { get; set; }
public virtual string ComputerName { get; set; }
public virtual decimal? Amex { get; set; }
public virtual decimal? NoAmex { get; set; }
public virtual int? UniqueTransIdNum { get; set; }
public virtual string UniqueTransId { get; set; }
public virtual string TransactionId { get; set; }
public virtual string DeviceBatchNumber { get; set; }
public virtual string DeveloperName { get; set; }
public virtual string DeviceName { get; set; }
public virtual string Version { get; set; }
public virtual DateTime? ComputerDateTime { get; set; }
public virtual DateTime? TerminalDateTime { get; set; }
public virtual string CompanyName { get; set; }
public virtual string MaskedAccount { get; set; }
public virtual string ApprovalNumberResult { get; set; }
public virtual string MerchantId { get; set; }
public virtual string CompanyId { get; set; }
public virtual bool MissingTransactions { get; set; }
public virtual int NumberMissing { get; set; }
public virtual string StartDateFilter { get; set; }
public virtual string EndDateFilter { get; set; }
public virtual string AdjustmentTypeId { get; set; }
public virtual string FromLogFile { get; set; }
public virtual string ResultStatus { get; set; }
public virtual int? MinsTermOffBy { get; set; }
public virtual string Source { get; set; }
public virtual string DuplicateFlag { get; set; }
public virtual string Comment { get; set; }
public virtual DateTime? DupCreatedOn { get; set; }
public virtual string DupCreatedBy { get; set; }
public virtual int? DupCount { get; set; }
public virtual string ProcessorTransactionId { get; set; }
public virtual string TransactionReference { get; set; }
public virtual string BillingName { get; set; }
public virtual string ResultMessage { get; set; }
public virtual bool? TransrefDiff { get; set; }
public virtual string Cashier { get; set; }
public virtual string AccountCardType { get; set; }
}
}
namespace ReportingService.Services.Rest.Transactions
{
public partial class DuplicateTransactionEditRequest
{
public DuplicateTransactionEditRequest()
{
DuplicateTrans = new List<DuplicateTransactionDetail>{};
}
public virtual List<DuplicateTransactionDetail> DuplicateTrans { get; set; }
}
}
C# DuplicateTransactionEditRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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.chargeitpro.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"DuplicateTrans":[{"ObjectId":"String","CreatedOn":"\/Date(-62135596800000-0000)\/","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":"\/Date(-62135596800000-0000)\/","TerminalDateTime":"\/Date(-62135596800000-0000)\/","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":"\/Date(-62135596800000-0000)\/","DupCreatedBy":"String","DupCount":0,"ProcessorTransactionId":"String","TransactionReference":"String","BillingName":"String","ResultMessage":"String","TransrefDiff":false,"Cashier":"String","AccountCardType":"String"}]}