POST | /POSCardlessRefund |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Paysecure.ServiceModel
Imports Paysecure.ServiceModel.Types
Namespace Global
Namespace Paysecure.ServiceModel
Public Partial Class MerchantDescriptor
Inherits MerchantDescriptorBase
Public Overridable Property Name As String
Public Overridable Property Address As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property Zip As String
Public Overridable Property Country As String
Public Overridable Property CustomerServiceNumber As String
Public Overridable Property MCC As String
Public Overridable Property FNSnum As String
Public Overridable Property Email As String
End Class
Public Partial Class MerchantDescriptorBase
Public Overridable Property DataElements As MerchantDataElements
End Class
<DataContract>
Public Partial Class POSCardlessRefund
Inherits PaysecureResponseInternal
<DataMember>
Public Overridable Property ErrorMessage As String
<DataMember>
Public Overridable Property ErrorCode As String
<DataMember>
Public Overridable Property TranId As String
<DataMember>
Public Overridable Property Network As String
<DataMember>
Public Overridable Property ResponseCode As String
<DataMember>
Public Overridable Property NetworkResponseData As NetworkResponseData
End Class
<DataContract>
Public Partial Class POSCardlessRefundRequest
<DataMember>
Public Overridable Property Credentials As RequestorCredentials
<DataMember>
Public Overridable Property ReferenceKey As String
<DataMember>
Public Overridable Property OriginalReferenceKey As String
<DataMember>
Public Overridable Property Amount As Integer
<DataMember>
Public Overridable Property TID As String
<DataMember>
Public Overridable Property MID As String
<DataMember>
Public Overridable Property NetworkRequestData As NetworkRequestData
'''<Summary>
'''Local Date Format mmddyyyy. For Example:- 01202017
'''</Summary>
<DataMember>
Public Overridable Property LocalDate As String
'''<Summary>
'''Local Time Format HHmmss. For Example :- 012322
'''</Summary>
<DataMember>
Public Overridable Property LocalTime As String
<DataMember>
Public Overridable Property MerchantDetails As MerchantDescriptor
<DataMember>
Public Overridable Property Custom1 As String
<DataMember>
Public Overridable Property Custom2 As String
<DataMember>
Public Overridable Property Custom3 As String
<DataMember>
Public Overridable Property Custom4 As String
<DataMember>
Public Overridable Property Custom5 As String
<DataMember>
Public Overridable Property SignatureHash As String
<DataMember>
Public Overridable Property ExtendedData As ExtendedData
End Class
End Namespace
Namespace Paysecure.ServiceModel.Types
Public Enum BillPayGroup
[Default]
Single
Recurring
Installment
Deferred
End Enum
Public Partial Class BillPayGroupIndicator
Public Overridable Property MITTotalPaymentCount As String
Public Overridable Property MITAmountType As String
Public Overridable Property MITAmount As String
Public Overridable Property MITUniqueID As String
Public Overridable Property MITFrequency As String
Public Overridable Property MITValidationFlag As String
Public Overridable Property MITValidationReference As String
Public Overridable Property MITSequenceIndicator As String
End Class
Public Enum CardAccountUpdaterInfo
[Default]
Supported
NotSupported
End Enum
Public Partial Class CardonFileIndicatorDescriptor
Public Overridable Property CardonFile As CardonFileInfo
Public Overridable Property StoredCredentialIndicator As StoredCredentialIndicatorInfo
Public Overridable Property TransactionInitiate As TransactionInitiateInfo
Public Overridable Property ScheduleIndicator As ScheduleIndicatorInfo
Public Overridable Property NetworkTransactionId As String
End Class
Public Enum CardonFileInfo
[Default]
Supported
NotSupported
End Enum
Public Enum ChargeTypeInfo
[Default]
PartialShipment
Delayed
NoShow
Resubmission
End Enum
Public Enum DigitalWalletInfo
[Default]
Staged
Passthrough
End Enum
<DataContract>
Public Partial Class ExtendedData
<DataMember>
Public Overridable Property Track2DataForEMVTransaction As String
<DataMember>
Public Overridable Property SenderInfo As SenderInfo
<DataMember>
Public Overridable Property CashbackAmount As Integer
<DataMember>
Public Overridable Property Network As NetworkName
<DataMember>
Public Overridable Property ReceiverInfo As ReceiverInfo
<DataMember>
Public Overridable Property BillPayGroup As BillPayGroup
<DataMember>
Public Overridable Property WalletData As WalletDescriptor
<DataMember>
Public Overridable Property SecureData As SecureDescriptor
<DataMember>
Public Overridable Property Level2Data As Level2Descriptor
<DataMember>
Public Overridable Property PaymentFacilitatorData As PaymentFacilitatorDescriptor
<DataMember>
Public Overridable Property TokenData As TokenDescriptor
<DataMember>
Public Overridable Property OTPTranId As String
<DataMember>
Public Overridable Property CurrentShipment As Integer
<DataMember>
Public Overridable Property TotalShipments As Integer
<DataMember>
Public Overridable Property IsTokenRequested As Boolean
<DataMember>
Public Overridable Property CardonFileIndicator As CardonFileIndicatorDescriptor
<DataMember>
Public Overridable Property CardAccountUpdater As CardAccountUpdaterInfo
<DataMember>
Public Overridable Property RetryAttemptCount As Integer
<DataMember>
Public Overridable Property TotalAuthAmount As Integer
<DataMember>
Public Overridable Property SignatureHashVersion As String
<DataMember>
Public Overridable Property OrderTypeDetail As OrderTypeInfo
<DataMember>
Public Overridable Property BillPayGroupIndicator As BillPayGroupIndicator
<DataMember>
Public Overridable Property ChargeTypeDetail As ChargeTypeInfo
<DataMember>
Public Overridable Property SAFEligible As SAFEligibleFlag
End Class
Public Enum FundingSourceType
DepositAccount
Credit
Debit
Prepaid
End Enum
<DataContract>
Public Partial Class InOutTimes
End Class
Public Partial Class Level2Descriptor
Public Overridable Property TaxDetails As TaxIndicator
Public Overridable Property MerchantReferenceNumber As String
Public Overridable Property MerchantTaxId As String
Public Overridable Property OrderNumber As String
Public Overridable Property TaxAmount As Integer
Public Overridable Property DestinationPostalCode As String
Public Overridable Property ProductDescription As String
End Class
Public Partial Class MerchantDataElements
Public Overridable Property RefundSettlementTypeDetails As Integer
Public Overridable Property SendRecurringPOSEntryModeFeature As Boolean
Public Overridable Property UseOrgPOSCode As Boolean
End Class
Public Enum NetworkName
[Default]
NYCE
CU24
XCEL
STAR
PULS
SHZM
VISA
MAST
DISC
AMEX
ALIP
UPIN
STAC
STNE
MAES
INTL
End Enum
Public Partial Class NetworkRequestData
Public Overridable Property AliPayPartnerId As String
Public Overridable Property WebHookURL As String
Public Overridable Property OrderTitle As String
Public Overridable Property OrderDetail As String
Public Overridable Property TerminalIP As String
Public Overridable Property OrderNumber As String
End Class
Public Partial Class NetworkResponseData
Public Overridable Property AliPayTransId As String
Public Overridable Property AliPayTransactionTime As String
Public Overridable Property ResponseCode As String
Public Overridable Property WeChatPayTransId As String
Public Overridable Property WeChatPayTransactionTime As String
Public Overridable Property WeChatPayOpenId As String
End Class
Public Enum OrderTypeInfo
[Default]
Standing
Subscription
End Enum
Public Partial Class PaymentFacilitatorDescriptor
Public Overridable Property PaymentFacilitatorIndicator As String
Public Overridable Property PFPhoneNumber As String
Public Overridable Property SubMerchID As String
Public Overridable Property SellerID As String
End Class
<DataContract>
Public Partial Class PaysecureResponseInternal
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property Timestamps As RequestTimestamps
End Class
Public Partial Class ReceiverInfo
Public Overridable Property ReferenceNumber As String
Public Overridable Property AccountNumber As String
'''<Summary>
'''Name Format FirstName{Space}LastName. For Example :- Alvaro Morata
'''</Summary>
Public Overridable Property Name As String
Public Overridable Property Address As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property Country As String
Public Overridable Property Zip As String
Public Overridable Property PhoneNumber As String
End Class
Public Partial Class RequestorCredentials
<Required>
Public Overridable Property MerchantId As String
<Required>
Public Overridable Property UserName As String
<Required>
Public Overridable Property Password As String
<Required>
Public Overridable Property Version As String
End Class
<DataContract>
Public Partial Class RequestTimestamps
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property AppLayer As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property ParentLookup As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property RetryLookup As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property GetCardData As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property CardTokenize As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property CardEncrypt As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property DBInsert As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property BackendProcess As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property DBUpdate As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property ParentUpdate As InOutTimes
<DataMember(EmitDefaultValue:=false)>
Public Overridable Property Network As InOutTimes
End Class
Public Enum SAFEligibleFlag
[Default]
[True]
[False]
End Enum
Public Enum ScheduleIndicatorInfo
[Default]
Scheduled
Unscheduled
End Enum
Public Partial Class SecureDescriptor
Public Overridable Property CAVV As String
Public Overridable Property SecureTransactionId As String
End Class
Public Partial Class SenderInfo
Public Overridable Property ReferenceNumber As String
Public Overridable Property AccountNumber As String
'''<Summary>
'''Name Format FirstName{Space}LastName. For Example :- Alvaro Morata
'''</Summary>
Public Overridable Property Name As String
Public Overridable Property Address As String
Public Overridable Property City As String
Public Overridable Property State As String
Public Overridable Property Country As String
'''<Summary>
'''DateOfBirth Format MMDDYYYY. For Example :- 05051960
'''</Summary>
Public Overridable Property DateOfBirth As String
Public Overridable Property Zip As String
Public Overridable Property PhoneNumber As String
Public Overridable Property FundingSource As FundingSourceType
End Class
Public Enum StoredCredentialIndicatorInfo
[Default]
Initial
Subsequent
End Enum
Public Enum TaxIndicator
[Default]
NoTaxInfoProvided
TaxInfoProvided
TaxExemptItem
End Enum
Public Partial Class TokenDescriptor
Public Overridable Property TokenType As TokenTypes
Public Overridable Property TokenCryptogramData1 As String
Public Overridable Property TokenCryptogramData2 As String
End Class
Public Enum TokenTypes
[Default]
UCAF
DSRP
UCAFDSRP
VisaVerified
DigitalWallet
VisaVerifiedDigitalWallet
End Enum
Public Enum TransactionInitiateInfo
[Default]
Merchant
Terminal
Customer
End Enum
Public Partial Class WalletDescriptor
Public Overridable Property Type As String
Public Overridable Property EncryptedData As String
Public Overridable Property ApplicationDataHash As String
Public Overridable Property EphemeralPublicKey As String
Public Overridable Property PublicKeyHash As String
Public Overridable Property TransactionId As String
Public Overridable Property Signature As String
Public Overridable Property Version As String
Public Overridable Property ApplicationData As String
Public Overridable Property MerchantIdentifier As String
Public Overridable Property SpecialPayment As String
Public Overridable Property DigitalWalletIndicator As DigitalWalletInfo
End Class
End Namespace
End Namespace
VB.NET POSCardlessRefundRequest 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.
POST /POSCardlessRefund HTTP/1.1
Host: api.paysecure.acculynk.net
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Credentials":{"MerchantId":"String","UserName":"String","Password":"String","Version":"String"},"ReferenceKey":"String","OriginalReferenceKey":"String","Amount":0,"TID":"String","MID":"String","NetworkRequestData":{"AliPayPartnerId":"String","WebHookURL":"String","OrderTitle":"String","OrderDetail":"String","TerminalIP":"String","OrderNumber":"String"},"LocalDate":"String","LocalTime":"String","MerchantDetails":{"Name":"String","Address":"String","City":"String","State":"String","Zip":"String","Country":"String","CustomerServiceNumber":"String","MCC":"String","FNSnum":"String","Email":"String","DataElements":{"RefundSettlementTypeDetails":0,"SendRecurringPOSEntryModeFeature":false,"UseOrgPOSCode":false}},"Custom1":"String","Custom2":"String","Custom3":"String","Custom4":"String","Custom5":"String","SignatureHash":"String","ExtendedData":{"Track2DataForEMVTransaction":"String","SenderInfo":{"ReferenceNumber":"String","AccountNumber":"String","Name":"String","Address":"String","City":"String","State":"String","Country":"String","DateOfBirth":"String","Zip":"String","PhoneNumber":"String","FundingSource":"DepositAccount"},"CashbackAmount":0,"Network":"Default","ReceiverInfo":{"ReferenceNumber":"String","AccountNumber":"String","Name":"String","Address":"String","City":"String","State":"String","Country":"String","Zip":"String","PhoneNumber":"String"},"BillPayGroup":"Default","WalletData":{"Type":"String","EncryptedData":"String","ApplicationDataHash":"String","EphemeralPublicKey":"String","PublicKeyHash":"String","TransactionId":"String","Signature":"String","Version":"String","ApplicationData":"String","MerchantIdentifier":"String","SpecialPayment":"String","DigitalWalletIndicator":"Default"},"SecureData":{"CAVV":"String","SecureTransactionId":"String"},"Level2Data":{"TaxDetails":"Default","MerchantReferenceNumber":"String","MerchantTaxId":"String","OrderNumber":"String","TaxAmount":0,"DestinationPostalCode":"String","ProductDescription":"String"},"PaymentFacilitatorData":{"PaymentFacilitatorIndicator":"String","PFPhoneNumber":"String","SubMerchID":"String","SellerID":"String"},"TokenData":{"TokenType":"Default","TokenCryptogramData1":"String","TokenCryptogramData2":"String"},"OTPTranId":"String","CurrentShipment":0,"TotalShipments":0,"IsTokenRequested":false,"CardonFileIndicator":{"CardonFile":"Default","StoredCredentialIndicator":"Default","TransactionInitiate":"Default","ScheduleIndicator":"Default","NetworkTransactionId":"String"},"CardAccountUpdater":"Default","RetryAttemptCount":0,"TotalAuthAmount":0,"SignatureHashVersion":"String","OrderTypeDetail":"Default","BillPayGroupIndicator":{"MITTotalPaymentCount":"String","MITAmountType":"String","MITAmount":"String","MITUniqueID":"String","MITFrequency":"String","MITValidationFlag":"String","MITValidationReference":"String","MITSequenceIndicator":"String"},"ChargeTypeDetail":"Default","SAFEligible":"Default"}}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"ErrorMessage":"String","ErrorCode":"String","TranId":"String","Network":"String","ResponseCode":"String","NetworkResponseData":{"AliPayTransId":"String","AliPayTransactionTime":"String","ResponseCode":"String","WeChatPayTransId":"String","WeChatPayTransactionTime":"String","WeChatPayOpenId":"String"},"Timestamps":{"AppLayer":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"ParentLookup":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"RetryLookup":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"GetCardData":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"CardTokenize":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"CardEncrypt":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"DBInsert":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"BackendProcess":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"DBUpdate":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"ParentUpdate":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"},"Network":{"InTime":"\/Date(-62135596800000-0000)\/","OutTime":"\/Date(-62135596800000-0000)\/"}}}