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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	items: 
	[
		{
			transactionDate: 0001-01-01T00:00:00,
			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
		}
	}
}