| POST | /integrations/api/{integrationType}/heldpayment/chargerefund |
|---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BH.CloudAPI.DTO.HeldPayments.Api.Request
Imports BH.CloudAPI.DTO.HeldPayments.Api
Imports BH.CloudAPI.DTO.HeldPayments.Api.Response
Imports BH.CloudAPI.DTO.HeldPayments
Imports BH.CloudAPI.DTO.Charges.Api
Imports BH.CloudAPI.Common4.DTO
Namespace Global
Namespace BH.CloudAPI.Common4.DTO
Public Partial Class AttributeItem
Public Overridable Property Name As String
Public Overridable Property Value As String
End Class
End Namespace
Namespace BH.CloudAPI.DTO.Charges.Api
Public Partial Class AchChargeVerificationResult
Public Overridable Property NetworkVerificationAttempted As Boolean
Public Overridable Property Result As String
End Class
Public Partial Class CreditCardBillingAddressItem
Public Sub New()
Attributes = New List(Of AttributeItem)
End Sub
Public Overridable Property Address1 As String
Public Overridable Property Address2 As String
Public Overridable Property City As String
Public Overridable Property PostalCode As String
Public Overridable Property Region As String
Public Overridable Property Country As String
Public Overridable Property Attributes As List(Of AttributeItem)
End Class
Public Partial Class CreditCardChargeVerificationResult
Public Overridable Property NetworkVerificationAttempted As Boolean
Public Overridable Property CvvVerificationResult As String
Public Overridable Property AddressVerificationResult As String
Public Overridable Property PostalCodeVerificationResult As String
End Class
End Namespace
Namespace BH.CloudAPI.DTO.HeldPayments
Public Partial Class HeldPaymentGatewaySaleResponse
Public Overridable Property FailureType As String
Public Overridable Property IsDuplicate As Boolean
Public Overridable Property IsSuccessful As Boolean
Public Overridable Property ErrorCode As String
Public Overridable Property Message As String
Public Overridable Property GatewayId As Integer
Public Overridable Property ConfirmationNumber As String
Public Overridable Property NetworkTransactionId As String
End Class
End Namespace
Namespace BH.CloudAPI.DTO.HeldPayments.Api
Public Partial Class HeldPaymentAchChargeDetails
Public Overridable Property AccountType As String
Public Overridable Property RoutingNumber As String
Public Overridable Property AccountNumberLast4 As String
Public Overridable Property BankName As String
Public Overridable Property VerificationResult As AchChargeVerificationResult
End Class
Public Partial Class HeldPaymentChargeDetails
Public Overridable Property PaymentType As String
Public Overridable Property Amount As Decimal
Public Overridable Property IntegrationType As String
Public Overridable Property Currency As String
Public Overridable Property CardDetails As HeldPaymentCreditCardChargeDetails
Public Overridable Property AchDetails As HeldPaymentAchChargeDetails
End Class
Public Partial Class HeldPaymentCreditCardChargeDetails
Public Overridable Property CardType As String
Public Overridable Property ExpMonth As Integer
Public Overridable Property ExpYear As Integer
Public Overridable Property Last4 As String
Public Overridable Property Address As CreditCardBillingAddressItem
Public Overridable Property VerificationResult As CreditCardChargeVerificationResult
End Class
Public Partial Class HeldPaymentCreditCardChargeRefundDetails
Public Overridable Property CardRef As String
Public Overridable Property ExpMonth As Integer
Public Overridable Property ExpYear As Integer
Public Overridable Property CVV As String
Public Overridable Property CardType As String
Public Overridable Property NameOnCard As String
Public Overridable Property Address1 As String
Public Overridable Property Address2 As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property PostalCode As String
Public Overridable Property Country As String
End Class
End Namespace
Namespace BH.CloudAPI.DTO.HeldPayments.Api.Request
Public Partial Class HeldPaymentChargeRefundRq
Public Overridable Property integrationType As String
Public Overridable Property NationalId As Integer
Public Overridable Property ChapterId As Integer
Public Overridable Property UserId As Integer
Public Overridable Property ContextIntegrationPartnerId As Integer
Public Overridable Property CallerIntegrationPartnerId As Integer
Public Overridable Property AuthenticationId As Integer
Public Overridable Property Amount As Decimal
Public Overridable Property Description As String
Public Overridable Property GatewayConfirmation As String
Public Overridable Property CardInfo As HeldPaymentCreditCardChargeRefundDetails
End Class
End Namespace
Namespace BH.CloudAPI.DTO.HeldPayments.Api.Response
Public Partial Class HeldPaymentChargeRefundRs
Public Overridable Property NationalId As Integer
Public Overridable Property ChapterId As Integer
Public Overridable Property IntegrationType As String
Public Overridable Property ContextIntegrationPartnerId As Integer
Public Overridable Property CallerIntegrationPartnerId As Integer
Public Overridable Property GatewayResponse As HeldPaymentGatewaySaleResponse
Public Overridable Property ChargeDetails As HeldPaymentChargeDetails
End Class
End Namespace
End Namespace
VB.NET HeldPaymentChargeRefundRq 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 /integrations/api/{integrationType}/heldpayment/chargerefund HTTP/1.1
Host: devapi.billhighway.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"integrationType":"String","NationalId":0,"ChapterId":0,"UserId":0,"ContextIntegrationPartnerId":0,"CallerIntegrationPartnerId":0,"AuthenticationId":0,"Amount":0,"Description":"String","GatewayConfirmation":"String","CardInfo":{"CardRef":"String","ExpMonth":0,"ExpYear":0,"CVV":"String","CardType":"String","NameOnCard":"String","Address1":"String","Address2":"String","City":"String","State":"String","PostalCode":"String","Country":"String"}}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"NationalId":0,"ChapterId":0,"IntegrationType":"String","ContextIntegrationPartnerId":0,"CallerIntegrationPartnerId":0,"GatewayResponse":{"FailureType":"String","IsDuplicate":false,"IsSuccessful":false,"ErrorCode":"String","Message":"String","GatewayId":0,"ConfirmationNumber":"String","NetworkTransactionId":"String"},"ChargeDetails":{"PaymentType":"String","Amount":0,"IntegrationType":"String","Currency":"String","CardDetails":{"CardType":"String","ExpMonth":0,"ExpYear":0,"Last4":"String","Address":{"Address1":"String","Address2":"String","City":"String","PostalCode":"String","Region":"String","Country":"String","Attributes":[{"Name":"String","Value":"String"}]},"VerificationResult":{"NetworkVerificationAttempted":false,"CvvVerificationResult":"String","AddressVerificationResult":"String","PostalCodeVerificationResult":"String"}},"AchDetails":{"AccountType":"String","RoutingNumber":"String","AccountNumberLast4":"String","BankName":"String","VerificationResult":{"NetworkVerificationAttempted":false,"Result":"String"}}}}