All Verbs | /Recon |
---|
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 ReconSummary:
biz_date: Optional[datetime.datetime] = None
computer_name: Optional[str] = None
serial_number: Optional[str] = None
transaction_type: Optional[str] = None
amount: Optional[Decimal] = None
debit: Optional[Decimal] = None
amex: Optional[Decimal] = None
no_amex: Optional[Decimal] = None
debit_count: Optional[Decimal] = None
amex_count: Optional[Decimal] = None
no_amex_count: Optional[Decimal] = None
location_id: Optional[str] = None
location_name: Optional[str] = None
recon_amt: Optional[Decimal] = None
notes: Optional[str] = None
_id: Optional[str] = None
in_mongo: Optional[bool] = None
route: Optional[str] = None
unique_trans_i_d: Optional[int] = None
missing_transaction: Optional[bool] = None
total_count: Optional[int] = None
max_unique_trans_i_d: Optional[int] = None
computer_date_time: Optional[datetime.datetime] = None
terminal_date_time: Optional[datetime.datetime] = None
comp_term_min_diff: Optional[int] = None
dep_date: Optional[datetime.datetime] = None
cip_server_trans: Optional[str] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReconSummaryDate:
biz_date: Optional[datetime.datetime] = None
sub_total: Optional[Decimal] = None
debit_total: Optional[Decimal] = None
amex_total: Optional[Decimal] = None
no_amex_total: Optional[Decimal] = None
debit_count: Optional[int] = None
amex_count: Optional[int] = None
no_amex_count: Optional[int] = None
recon_summary: Optional[List[ReconSummary]] = None
dep_date: Optional[datetime.datetime] = None
@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ReconTotalSummary:
recon_summary_date: Optional[List[ReconSummaryDate]] = None
lid: Optional[str] = None
location_name: Optional[str] = None
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 /Recon HTTP/1.1
Host: cip-reporting-dev.chargeitpro.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ReconTotalSummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ReportingService.Services.Rest">
<Lid>String</Lid>
<LocationName>String</LocationName>
<ReconSummaryDate xmlns:d2p1="http://schemas.datacontract.org/2004/07/ReportingService.Data.Models" i:nil="true" />
</ReconTotalSummary>