GET | /financial-transactions/{BeeNumberCustomer} |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports NAV.ServiceModel
Namespace Global
Namespace NAV.ServiceModel
Public Partial Class FinancialTransactionsGetList
Implements IGet
Public Overridable Property BeeNumberCustomer As Decimal
Public Overridable Property StartTime As Date
Public Overridable Property EndTime As Date
End Class
Public Partial Class FinancialTransactionsGetListResponse
Inherits GetListResponse(Of FinancialTransactionsGetListViewModel)
End Class
Public Partial Class FinancialTransactionsGetListViewModel
Public Overridable Property BeeNumberCustomer As Decimal
Public Overridable Property TransactionTime As Date
Public Overridable Property TransactionId As String
Public Overridable Property Campaign As String
Public Overridable Property TransactionCode As String
Public Overridable Property OrderNumber As String
Public Overridable Property InvoiceNumber As String
Public Overridable Property RetailSalesAmount As Nullable(Of Decimal)
Public Overridable Property FederalTaxAmount1 As Nullable(Of Decimal)
Public Overridable Property FederalTaxAmount2 As Nullable(Of Decimal)
Public Overridable Property LocalTaxAmount As Nullable(Of Decimal)
Public Overridable Property TransactionAmount As Nullable(Of Decimal)
Public Overridable Property PaymentAmount As Nullable(Of Decimal)
Public Overridable Property TransactionBalanceAmount As Nullable(Of Decimal)
Public Overridable Property CustomerPrice As Nullable(Of Decimal)
Public Overridable Property FreeAmount As Nullable(Of Decimal)
Public Overridable Property BonusAmount As Nullable(Of Decimal)
Public Overridable Property DiscountPercentage As Nullable(Of Decimal)
Public Overridable Property CustomerCount As Nullable(Of Decimal)
Public Overridable Property PRCPromotionCode As String
Public Overridable Property AccountType As String
Public Overridable Property State As String
Public Overridable Property TaxArea As String
Public Overridable Property TaxRate As Nullable(Of Decimal)
Public Overridable Property TaxIndicator As String
Public Overridable Property NetSalesAmount As Nullable(Of Decimal)
Public Overridable Property CurrentBalance As Nullable(Of Decimal)
Public Overridable Property OperatorId As String
Public Overridable Property TransactionBIDSCode As String
End Class
Public Partial Class GetListResponse(Of TEntity)
Public Sub New()
Items = New List(Of TEntity)
End Sub
Public Overridable Property Items As List(Of TEntity)
Public Overridable Property ResponseStatus As ResponseStatus
End Class
End Namespace
End Namespace
VB.NET FinancialTransactionsGetList 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /financial-transactions/{BeeNumberCustomer} HTTP/1.1 Host: extensions.avon.ca Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"items":[{"beeNumberCustomer":0,"transactionTime":"0001-01-01T00:00:00.0000000","transactionId":"String","campaign":"String","transactionCode":"String","orderNumber":"String","invoiceNumber":"String","retailSalesAmount":0,"federalTaxAmount1":0,"federalTaxAmount2":0,"localTaxAmount":0,"transactionAmount":0,"paymentAmount":0,"transactionBalanceAmount":0,"customerPrice":0,"freeAmount":0,"bonusAmount":0,"discountPercentage":0,"customerCount":0,"prcPromotionCode":"String","accountType":"String","state":"String","taxArea":"String","taxRate":0,"taxIndicator":"String","netSalesAmount":0,"currentBalance":0,"operatorId":"String","transactionBIDSCode":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}