All Verbs | /Transactions/Duplicate |
---|
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DuplicateTransactionDetail:
object_id: Optional[str] = None
created_on: Optional[datetime.datetime] = None
route: Optional[str] = None
serial_number: Optional[str] = None
transaction_type: Optional[str] = None
amount_processed: Optional[Decimal] = None
location_name: Optional[str] = None
location_id: Optional[str] = None
computer_name: Optional[str] = None
amex: Optional[Decimal] = None
no_amex: Optional[Decimal] = None
unique_trans_id_num: Optional[int] = None
unique_trans_id: Optional[str] = None
transaction_id: Optional[str] = None
device_batch_number: Optional[str] = None
developer_name: Optional[str] = None
device_name: Optional[str] = None
version: Optional[str] = None
computer_date_time: Optional[datetime.datetime] = None
terminal_date_time: Optional[datetime.datetime] = None
company_name: Optional[str] = None
masked_account: Optional[str] = None
approval_number_result: Optional[str] = None
merchant_id: Optional[str] = None
company_id: Optional[str] = None
missing_transactions: Optional[bool] = None
number_missing: Optional[int] = None
start_date_filter: Optional[str] = None
end_date_filter: Optional[str] = None
adjustment_type_id: Optional[str] = None
from_log_file: Optional[str] = None
result_status: Optional[str] = None
mins_term_off_by: Optional[int] = None
source: Optional[str] = None
duplicate_flag: Optional[str] = None
comment: Optional[str] = None
dup_created_on: Optional[datetime.datetime] = None
dup_created_by: Optional[str] = None
dup_count: Optional[int] = None
processor_transaction_id: Optional[str] = None
transaction_reference: Optional[str] = None
billing_name: Optional[str] = None
result_message: Optional[str] = None
transref_diff: Optional[bool] = None
cashier: Optional[str] = None
account_card_type: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class DuplicateTransactionEditRequest:
duplicate_trans: Optional[List[DuplicateTransactionDetail]] = None
Python 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-preview.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"}]}