NAV

<back to all web services

FinancialTransactionsStatementGetList

The following routes are available for this service:
GET/financial-transactions-statement
import Foundation
import ServiceStack

public class FinancialTransactionsStatementGetList : IGet, Codable
{
    public var beeNumber:Double?
    public var transactionType:String?
    public var startTime:Date?
    public var endTime:Date?

    required public init(){}
}

public class FinancialTransactionsStatementGetListResponse : GetListResponse<FinancialTransactionsStatementGetListViewModel>
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class GetListResponse<TEntity : Codable> : Codable
{
    public var items:[TEntity] = []
    public var responseStatus:ResponseStatus?

    required public init(){}
}

public class FinancialTransactionsStatementGetListViewModel : Codable
{
    public var transactionDate:Date?
    public var Description:String?
    public var amount:Double?
    public var balance:Double?
    public var isCredit:Bool?

    required public init(){}
}


Swift FinancialTransactionsStatementGetList 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.

GET /financial-transactions-statement HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"items":[{"transactionDate":"0001-01-01T00:00:00.0000000","description":"String","amount":0,"balance":0,"isCredit":false}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}