Requires any of the roles: | Admin, TeamAdmin, MobileApp | Requires the permission: | ReadData |
GET POST | /paymentMethods/intid/{Id} | ||
---|---|---|---|
GET POST | /paymentMethods/nameid/{NameId} |
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports TicketUserServices.ServiceModel
Imports TicketUserServices.ServiceModel.Types
Namespace Global
Namespace TicketUserServices.ServiceModel
Public Partial Class GetPaymentMethod
Public Overridable Property Id As Nullable(Of Integer)
Public Overridable Property NameId As String
End Class
End Namespace
Namespace TicketUserServices.ServiceModel.Types
Public Partial Class PaymentMethod
Public Overridable Property ID As Integer
Public Overridable Property PaymentMethodId As String
Public Overridable Property PaymentMethodName As String
Public Overridable Property Active As Nullable(Of Boolean)
Public Overridable Property NeedsCardInfo As Boolean
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /paymentMethods/intid/{Id} HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
id: 0,
nameId: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { id: 0, paymentMethodId: String, paymentMethodName: String, active: False, needsCardInfo: False }