| POST | /api/SalesForce/CreditCardPayment |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.Common4.DTO.SalesForce
Namespace Global
Namespace BH.CloudAPI.Common4.DTO.SalesForce
Public Partial Class SalesForceCreditCardPayment
Public Sub New()
InvoiceList = New List(Of SalesForceMemberPaymentInvoiceDetail)
End Sub
Public Overridable Property ClassName As String
Public Overridable Property UniqueId As String
Public Overridable Property CreatedDateTime As Date
Public Overridable Property ClientId As Integer
Public Overridable Property GroupId As String
Public Overridable Property UserId As String
Public Overridable Property BhUserId As Integer
Public Overridable Property Amount As String
Public Overridable Property AutoPay As Boolean
Public Overridable Property CurrencyType As String
Public Overridable Property Country As String
Public Overridable Property CardReferenceOrCardNumber As String
Public Overridable Property StoreCardInfo As Boolean
Public Overridable Property Address1 As String
Public Overridable Property Address2 As String
Public Overridable Property BillingCity As String
Public Overridable Property BillingState As String
Public Overridable Property PreferredEmailAddress As String
Public Overridable Property Memo As String
Public Overridable Property OpportunityId As String
Public Overridable Property ExpMonth As Integer
Public Overridable Property ExpYear As Integer
Public Overridable Property Cvv As String
Public Overridable Property PostalCode As String
Public Overridable Property Location As String
Public Overridable Property NameOnCard As String
Public Overridable Property CardType As String
Public Overridable Property InvoiceList As List(Of SalesForceMemberPaymentInvoiceDetail)
End Class
Public Partial Class SalesForceCreditCardPaymentCollection
Public Sub New()
SalesForceCreditCardPaymentList = New List(Of SalesForceCreditCardPayment)
End Sub
Public Overridable Property SalesForceCreditCardPaymentList As List(Of SalesForceCreditCardPayment)
End Class
Public Partial Class SalesForceCreditCardPaymentReply
Public Overridable Property ClassName As String
Public Overridable Property UniqueId As String
Public Overridable Property CreatedDateTime As Date
Public Overridable Property ClientId As Integer
Public Overridable Property TransactionId As String
Public Overridable Property ErrorCode As Integer
Public Overridable Property ErrorMessage As String
End Class
Public Partial Class SalesForceMemberPaymentInvoiceDetail
Public Overridable Property ClassName As String
Public Overridable Property UniqueId As String
Public Overridable Property CreatedDateTime As Date
Public Overridable Property ClientId As Integer
Public Overridable Property Invoice As Integer
Public Overridable Property AmountPaid As String
End Class
End Namespace
End Namespace
VB.NET SalesForceCreditCardPaymentCollection DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/SalesForce/CreditCardPayment HTTP/1.1
Host: devapi.billhighway.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"SalesForceCreditCardPaymentList":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"GroupId":"String","UserId":"String","BhUserId":0,"Amount":"String","AutoPay":false,"CurrencyType":"String","Country":"String","CardReferenceOrCardNumber":"String","StoreCardInfo":false,"Address1":"String","Address2":"String","BillingCity":"String","BillingState":"String","PreferredEmailAddress":"String","Memo":"String","OpportunityId":"String","ExpMonth":0,"ExpYear":0,"Cvv":"String","PostalCode":"String","Location":"String","NameOnCard":"String","CardType":"String","InvoiceList":[{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"Invoice":0,"AmountPaid":"String"}]}]}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"ClassName":"String","UniqueId":"String","CreatedDateTime":"0001-01-01T00:00:00.0000000","ClientId":0,"TransactionId":"String","ErrorCode":0,"ErrorMessage":"String"}