Nephila Tartarus

<back to all web services

RetrieveCitiBankStatementRequest

Cash
Requires Authentication
Required role:Tartarus.Read
The following routes are available for this service:
GET,POST/api/citi-bank-statement
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    public static class RetrieveCitiBankStatementRequest implements IGet, IPost
    {
        public String statementId = null;
        
        public String getStatementId() { return statementId; }
        public RetrieveCitiBankStatementRequest setStatementId(String value) { this.statementId = value; return this; }
    }

    public static class CitiBankEntriesResponse
    {
        public ResponseStatus responseStatus = null;
        public Boolean statementIsStillGenerating = null;
        public ArrayList<CitiBankAccountEntry> entries = new ArrayList<CitiBankAccountEntry>();
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public CitiBankEntriesResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public Boolean isStatementIsStillGenerating() { return statementIsStillGenerating; }
        public CitiBankEntriesResponse setStatementIsStillGenerating(Boolean value) { this.statementIsStillGenerating = value; return this; }
        public ArrayList<CitiBankAccountEntry> getEntries() { return entries; }
        public CitiBankEntriesResponse setEntries(ArrayList<CitiBankAccountEntry> value) { this.entries = value; return this; }
    }

    public static class CitiBankAccountEntry
    {
        public BankEntryType entryType = null;
        public String description = null;
        public BigDecimal amount = null;
        public String currencyCode = null;
        public String creditDebitIndicator = null;
        public Date entryDate = null;
        
        public BankEntryType getEntryType() { return entryType; }
        public CitiBankAccountEntry setEntryType(BankEntryType value) { this.entryType = value; return this; }
        public String getDescription() { return description; }
        public CitiBankAccountEntry setDescription(String value) { this.description = value; return this; }
        public BigDecimal getAmount() { return amount; }
        public CitiBankAccountEntry setAmount(BigDecimal value) { this.amount = value; return this; }
        public String getCurrencyCode() { return currencyCode; }
        public CitiBankAccountEntry setCurrencyCode(String value) { this.currencyCode = value; return this; }
        public String getCreditDebitIndicator() { return creditDebitIndicator; }
        public CitiBankAccountEntry setCreditDebitIndicator(String value) { this.creditDebitIndicator = value; return this; }
        public Date getEntryDate() { return entryDate; }
        public CitiBankAccountEntry setEntryDate(Date value) { this.entryDate = value; return this; }
    }

    public static enum BankEntryType
    {
        Balance(1),
        Transaction(2);

        private final int value;
        BankEntryType(final int intValue) { value = intValue; }
        public int getValue() { return value; }
    }

}

Java RetrieveCitiBankStatementRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /api/citi-bank-statement HTTP/1.1 
Host: tartarus.nephila.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"statementId":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"statementIsStillGenerating":false,"entries":[{"entryType":"Balance","description":"String","amount":0,"currencyCode":"String","creditDebitIndicator":"String","entryDate":"\/Date(-62135596800000-0000)\/"}]}