Nephila Tartarus

<back to all web services

GetCitiBankAccountBalanceRequest

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

public class dtos
{

    public static class GetCitiBankAccountBalanceRequest implements IGet, IPost
    {
        public String accountNumber = null;
        public String currencyCode = null;
        public Date fromDate = null;
        public Date toDate = null;
        
        public String getAccountNumber() { return accountNumber; }
        public GetCitiBankAccountBalanceRequest setAccountNumber(String value) { this.accountNumber = value; return this; }
        public String getCurrencyCode() { return currencyCode; }
        public GetCitiBankAccountBalanceRequest setCurrencyCode(String value) { this.currencyCode = value; return this; }
        public Date getFromDate() { return fromDate; }
        public GetCitiBankAccountBalanceRequest setFromDate(Date value) { this.fromDate = value; return this; }
        public Date getToDate() { return toDate; }
        public GetCitiBankAccountBalanceRequest setToDate(Date value) { this.toDate = 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 GetCitiBankAccountBalanceRequest DTOs

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

HTTP + OTHER

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

POST /api/citi-bank-account-balance HTTP/1.1 
Host: tartarus.nephila.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"accountNumber":"String","currencyCode":"String","fromDate":"\/Date(-62135596800000-0000)\/","toDate":"\/Date(-62135596800000-0000)\/"}
HTTP/1.1 200 OK
Content-Type: text/jsonl
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)\/"}]}