POST | /POSCardlessRefund |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class POSCardlessRefundRequest
{
@DataMember
public RequestorCredentials Credentials = null;
@DataMember
public String ReferenceKey = null;
@DataMember
public String OriginalReferenceKey = null;
@DataMember
public Integer Amount = null;
@DataMember
public String TID = null;
@DataMember
public String MID = null;
@DataMember
public NetworkRequestData NetworkRequestData = null;
/**
* Local Date Format mmddyyyy. For Example:- 01202017
*/
@DataMember
public String LocalDate = null;
/**
* Local Time Format HHmmss. For Example :- 012322
*/
@DataMember
public String LocalTime = null;
@DataMember
public MerchantDescriptor MerchantDetails = null;
@DataMember
public String Custom1 = null;
@DataMember
public String Custom2 = null;
@DataMember
public String Custom3 = null;
@DataMember
public String Custom4 = null;
@DataMember
public String Custom5 = null;
@DataMember
public String SignatureHash = null;
@DataMember
public ExtendedData ExtendedData = null;
public RequestorCredentials getCredentials() { return Credentials; }
public POSCardlessRefundRequest setCredentials(RequestorCredentials value) { this.Credentials = value; return this; }
public String getReferenceKey() { return ReferenceKey; }
public POSCardlessRefundRequest setReferenceKey(String value) { this.ReferenceKey = value; return this; }
public String getOriginalReferenceKey() { return OriginalReferenceKey; }
public POSCardlessRefundRequest setOriginalReferenceKey(String value) { this.OriginalReferenceKey = value; return this; }
public Integer getAmount() { return Amount; }
public POSCardlessRefundRequest setAmount(Integer value) { this.Amount = value; return this; }
public String getTid() { return TID; }
public POSCardlessRefundRequest setTid(String value) { this.TID = value; return this; }
public String getMid() { return MID; }
public POSCardlessRefundRequest setMid(String value) { this.MID = value; return this; }
public NetworkRequestData getNetworkRequestData() { return NetworkRequestData; }
public POSCardlessRefundRequest setNetworkRequestData(NetworkRequestData value) { this.NetworkRequestData = value; return this; }
public String getLocalDate() { return LocalDate; }
public POSCardlessRefundRequest setLocalDate(String value) { this.LocalDate = value; return this; }
public String getLocalTime() { return LocalTime; }
public POSCardlessRefundRequest setLocalTime(String value) { this.LocalTime = value; return this; }
public MerchantDescriptor getMerchantDetails() { return MerchantDetails; }
public POSCardlessRefundRequest setMerchantDetails(MerchantDescriptor value) { this.MerchantDetails = value; return this; }
public String getCustom1() { return Custom1; }
public POSCardlessRefundRequest setCustom1(String value) { this.Custom1 = value; return this; }
public String getCustom2() { return Custom2; }
public POSCardlessRefundRequest setCustom2(String value) { this.Custom2 = value; return this; }
public String getCustom3() { return Custom3; }
public POSCardlessRefundRequest setCustom3(String value) { this.Custom3 = value; return this; }
public String getCustom4() { return Custom4; }
public POSCardlessRefundRequest setCustom4(String value) { this.Custom4 = value; return this; }
public String getCustom5() { return Custom5; }
public POSCardlessRefundRequest setCustom5(String value) { this.Custom5 = value; return this; }
public String getSignatureHash() { return SignatureHash; }
public POSCardlessRefundRequest setSignatureHash(String value) { this.SignatureHash = value; return this; }
public ExtendedData getExtendedData() { return ExtendedData; }
public POSCardlessRefundRequest setExtendedData(ExtendedData value) { this.ExtendedData = value; return this; }
}
public static class RequestorCredentials
{
@Required()
public String MerchantId = null;
@Required()
public String UserName = null;
@Required()
public String Password = null;
@Required()
public String Version = null;
public String getMerchantId() { return MerchantId; }
public RequestorCredentials setMerchantId(String value) { this.MerchantId = value; return this; }
public String getUserName() { return UserName; }
public RequestorCredentials setUserName(String value) { this.UserName = value; return this; }
public String getPassword() { return Password; }
public RequestorCredentials setPassword(String value) { this.Password = value; return this; }
public String getVersion() { return Version; }
public RequestorCredentials setVersion(String value) { this.Version = value; return this; }
}
public static class NetworkRequestData
{
public String AliPayPartnerId = null;
public String WebHookURL = null;
public String OrderTitle = null;
public String OrderDetail = null;
public String TerminalIP = null;
public String OrderNumber = null;
public String getAliPayPartnerId() { return AliPayPartnerId; }
public NetworkRequestData setAliPayPartnerId(String value) { this.AliPayPartnerId = value; return this; }
public String getWebHookURL() { return WebHookURL; }
public NetworkRequestData setWebHookURL(String value) { this.WebHookURL = value; return this; }
public String getOrderTitle() { return OrderTitle; }
public NetworkRequestData setOrderTitle(String value) { this.OrderTitle = value; return this; }
public String getOrderDetail() { return OrderDetail; }
public NetworkRequestData setOrderDetail(String value) { this.OrderDetail = value; return this; }
public String getTerminalIP() { return TerminalIP; }
public NetworkRequestData setTerminalIP(String value) { this.TerminalIP = value; return this; }
public String getOrderNumber() { return OrderNumber; }
public NetworkRequestData setOrderNumber(String value) { this.OrderNumber = value; return this; }
}
public static class MerchantDescriptor extends MerchantDescriptorBase
{
public String Name = null;
public String Address = null;
public String City = null;
public String State = null;
public String Zip = null;
public String Country = null;
public String CustomerServiceNumber = null;
public String MCC = null;
public String FNSnum = null;
public String Email = null;
public String getName() { return Name; }
public MerchantDescriptor setName(String value) { this.Name = value; return this; }
public String getAddress() { return Address; }
public MerchantDescriptor setAddress(String value) { this.Address = value; return this; }
public String getCity() { return City; }
public MerchantDescriptor setCity(String value) { this.City = value; return this; }
public String getState() { return State; }
public MerchantDescriptor setState(String value) { this.State = value; return this; }
public String getZip() { return Zip; }
public MerchantDescriptor setZip(String value) { this.Zip = value; return this; }
public String getCountry() { return Country; }
public MerchantDescriptor setCountry(String value) { this.Country = value; return this; }
public String getCustomerServiceNumber() { return CustomerServiceNumber; }
public MerchantDescriptor setCustomerServiceNumber(String value) { this.CustomerServiceNumber = value; return this; }
public String getMcc() { return MCC; }
public MerchantDescriptor setMcc(String value) { this.MCC = value; return this; }
public String getFnSnum() { return FNSnum; }
public MerchantDescriptor setFnSnum(String value) { this.FNSnum = value; return this; }
public String getEmail() { return Email; }
public MerchantDescriptor setEmail(String value) { this.Email = value; return this; }
}
public static class MerchantDescriptorBase
{
public MerchantDataElements DataElements = null;
public MerchantDataElements getDataElements() { return DataElements; }
public MerchantDescriptorBase setDataElements(MerchantDataElements value) { this.DataElements = value; return this; }
}
public static class MerchantDataElements
{
public Integer RefundSettlementTypeDetails = null;
public Boolean SendRecurringPOSEntryModeFeature = null;
public Boolean UseOrgPOSCode = null;
public Integer getRefundSettlementTypeDetails() { return RefundSettlementTypeDetails; }
public MerchantDataElements setRefundSettlementTypeDetails(Integer value) { this.RefundSettlementTypeDetails = value; return this; }
public Boolean isSendRecurringPOSEntryModeFeature() { return SendRecurringPOSEntryModeFeature; }
public MerchantDataElements setSendRecurringPOSEntryModeFeature(Boolean value) { this.SendRecurringPOSEntryModeFeature = value; return this; }
public Boolean isUseOrgPOSCode() { return UseOrgPOSCode; }
public MerchantDataElements setUseOrgPOSCode(Boolean value) { this.UseOrgPOSCode = value; return this; }
}
@DataContract
public static class ExtendedData
{
@DataMember
public String Track2DataForEMVTransaction = null;
@DataMember
public SenderInfo SenderInfo = null;
@DataMember
public Integer CashbackAmount = null;
@DataMember
public NetworkName Network = null;
@DataMember
public ReceiverInfo ReceiverInfo = null;
@DataMember
public BillPayGroup BillPayGroup = null;
@DataMember
public WalletDescriptor WalletData = null;
@DataMember
public SecureDescriptor SecureData = null;
@DataMember
public Level2Descriptor Level2Data = null;
@DataMember
public PaymentFacilitatorDescriptor PaymentFacilitatorData = null;
@DataMember
public TokenDescriptor TokenData = null;
@DataMember
public String OTPTranId = null;
@DataMember
public Integer CurrentShipment = null;
@DataMember
public Integer TotalShipments = null;
@DataMember
public Boolean IsTokenRequested = null;
@DataMember
public CardonFileIndicatorDescriptor CardonFileIndicator = null;
@DataMember
public CardAccountUpdaterInfo CardAccountUpdater = null;
@DataMember
public Integer RetryAttemptCount = null;
@DataMember
public Integer TotalAuthAmount = null;
@DataMember
public String SignatureHashVersion = null;
@DataMember
public OrderTypeInfo OrderTypeDetail = null;
@DataMember
public BillPayGroupIndicator BillPayGroupIndicator = null;
@DataMember
public ChargeTypeInfo ChargeTypeDetail = null;
@DataMember
public SAFEligibleFlag SAFEligible = null;
public String getTrack2DataForEMVTransaction() { return Track2DataForEMVTransaction; }
public ExtendedData setTrack2DataForEMVTransaction(String value) { this.Track2DataForEMVTransaction = value; return this; }
public SenderInfo getSenderInfo() { return SenderInfo; }
public ExtendedData setSenderInfo(SenderInfo value) { this.SenderInfo = value; return this; }
public Integer getCashbackAmount() { return CashbackAmount; }
public ExtendedData setCashbackAmount(Integer value) { this.CashbackAmount = value; return this; }
public NetworkName getNetwork() { return Network; }
public ExtendedData setNetwork(NetworkName value) { this.Network = value; return this; }
public ReceiverInfo getReceiverInfo() { return ReceiverInfo; }
public ExtendedData setReceiverInfo(ReceiverInfo value) { this.ReceiverInfo = value; return this; }
public BillPayGroup getBillPayGroup() { return BillPayGroup; }
public ExtendedData setBillPayGroup(BillPayGroup value) { this.BillPayGroup = value; return this; }
public WalletDescriptor getWalletData() { return WalletData; }
public ExtendedData setWalletData(WalletDescriptor value) { this.WalletData = value; return this; }
public SecureDescriptor getSecureData() { return SecureData; }
public ExtendedData setSecureData(SecureDescriptor value) { this.SecureData = value; return this; }
public Level2Descriptor getLevel2Data() { return Level2Data; }
public ExtendedData setLevel2Data(Level2Descriptor value) { this.Level2Data = value; return this; }
public PaymentFacilitatorDescriptor getPaymentFacilitatorData() { return PaymentFacilitatorData; }
public ExtendedData setPaymentFacilitatorData(PaymentFacilitatorDescriptor value) { this.PaymentFacilitatorData = value; return this; }
public TokenDescriptor getTokenData() { return TokenData; }
public ExtendedData setTokenData(TokenDescriptor value) { this.TokenData = value; return this; }
public String getOtpTranId() { return OTPTranId; }
public ExtendedData setOtpTranId(String value) { this.OTPTranId = value; return this; }
public Integer getCurrentShipment() { return CurrentShipment; }
public ExtendedData setCurrentShipment(Integer value) { this.CurrentShipment = value; return this; }
public Integer getTotalShipments() { return TotalShipments; }
public ExtendedData setTotalShipments(Integer value) { this.TotalShipments = value; return this; }
public Boolean getIsTokenRequested() { return IsTokenRequested; }
public ExtendedData setIsTokenRequested(Boolean value) { this.IsTokenRequested = value; return this; }
public CardonFileIndicatorDescriptor getCardonFileIndicator() { return CardonFileIndicator; }
public ExtendedData setCardonFileIndicator(CardonFileIndicatorDescriptor value) { this.CardonFileIndicator = value; return this; }
public CardAccountUpdaterInfo getCardAccountUpdater() { return CardAccountUpdater; }
public ExtendedData setCardAccountUpdater(CardAccountUpdaterInfo value) { this.CardAccountUpdater = value; return this; }
public Integer getRetryAttemptCount() { return RetryAttemptCount; }
public ExtendedData setRetryAttemptCount(Integer value) { this.RetryAttemptCount = value; return this; }
public Integer getTotalAuthAmount() { return TotalAuthAmount; }
public ExtendedData setTotalAuthAmount(Integer value) { this.TotalAuthAmount = value; return this; }
public String getSignatureHashVersion() { return SignatureHashVersion; }
public ExtendedData setSignatureHashVersion(String value) { this.SignatureHashVersion = value; return this; }
public OrderTypeInfo getOrderTypeDetail() { return OrderTypeDetail; }
public ExtendedData setOrderTypeDetail(OrderTypeInfo value) { this.OrderTypeDetail = value; return this; }
public BillPayGroupIndicator getBillPayGroupIndicator() { return BillPayGroupIndicator; }
public ExtendedData setBillPayGroupIndicator(BillPayGroupIndicator value) { this.BillPayGroupIndicator = value; return this; }
public ChargeTypeInfo getChargeTypeDetail() { return ChargeTypeDetail; }
public ExtendedData setChargeTypeDetail(ChargeTypeInfo value) { this.ChargeTypeDetail = value; return this; }
public SAFEligibleFlag getSafEligible() { return SAFEligible; }
public ExtendedData setSafEligible(SAFEligibleFlag value) { this.SAFEligible = value; return this; }
}
public static class SenderInfo
{
public String ReferenceNumber = null;
public String AccountNumber = null;
/**
* Name Format FirstName{Space}LastName. For Example :- Alvaro Morata
*/
public String Name = null;
public String Address = null;
public String City = null;
public String State = null;
public String Country = null;
/**
* DateOfBirth Format MMDDYYYY. For Example :- 05051960
*/
public String DateOfBirth = null;
public String Zip = null;
public String PhoneNumber = null;
public FundingSourceType FundingSource = null;
public String getReferenceNumber() { return ReferenceNumber; }
public SenderInfo setReferenceNumber(String value) { this.ReferenceNumber = value; return this; }
public String getAccountNumber() { return AccountNumber; }
public SenderInfo setAccountNumber(String value) { this.AccountNumber = value; return this; }
public String getName() { return Name; }
public SenderInfo setName(String value) { this.Name = value; return this; }
public String getAddress() { return Address; }
public SenderInfo setAddress(String value) { this.Address = value; return this; }
public String getCity() { return City; }
public SenderInfo setCity(String value) { this.City = value; return this; }
public String getState() { return State; }
public SenderInfo setState(String value) { this.State = value; return this; }
public String getCountry() { return Country; }
public SenderInfo setCountry(String value) { this.Country = value; return this; }
public String getDateOfBirth() { return DateOfBirth; }
public SenderInfo setDateOfBirth(String value) { this.DateOfBirth = value; return this; }
public String getZip() { return Zip; }
public SenderInfo setZip(String value) { this.Zip = value; return this; }
public String getPhoneNumber() { return PhoneNumber; }
public SenderInfo setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
public FundingSourceType getFundingSource() { return FundingSource; }
public SenderInfo setFundingSource(FundingSourceType value) { this.FundingSource = value; return this; }
}
public static enum FundingSourceType
{
DepositAccount,
Credit,
Debit,
Prepaid;
}
public static enum NetworkName
{
Default,
Nyce,
CU24,
Xcel,
Star,
Puls,
Shzm,
Visa,
Mast,
Disc,
Amex,
Alip,
Upin,
Stac,
Stne,
Maes,
Intl;
}
public static class ReceiverInfo
{
public String ReferenceNumber = null;
public String AccountNumber = null;
/**
* Name Format FirstName{Space}LastName. For Example :- Alvaro Morata
*/
public String Name = null;
public String Address = null;
public String City = null;
public String State = null;
public String Country = null;
public String Zip = null;
public String PhoneNumber = null;
public String getReferenceNumber() { return ReferenceNumber; }
public ReceiverInfo setReferenceNumber(String value) { this.ReferenceNumber = value; return this; }
public String getAccountNumber() { return AccountNumber; }
public ReceiverInfo setAccountNumber(String value) { this.AccountNumber = value; return this; }
public String getName() { return Name; }
public ReceiverInfo setName(String value) { this.Name = value; return this; }
public String getAddress() { return Address; }
public ReceiverInfo setAddress(String value) { this.Address = value; return this; }
public String getCity() { return City; }
public ReceiverInfo setCity(String value) { this.City = value; return this; }
public String getState() { return State; }
public ReceiverInfo setState(String value) { this.State = value; return this; }
public String getCountry() { return Country; }
public ReceiverInfo setCountry(String value) { this.Country = value; return this; }
public String getZip() { return Zip; }
public ReceiverInfo setZip(String value) { this.Zip = value; return this; }
public String getPhoneNumber() { return PhoneNumber; }
public ReceiverInfo setPhoneNumber(String value) { this.PhoneNumber = value; return this; }
}
public static enum BillPayGroup
{
Default,
Single,
Recurring,
Installment,
Deferred;
}
public static class WalletDescriptor
{
public String Type = null;
public String EncryptedData = null;
public String ApplicationDataHash = null;
public String EphemeralPublicKey = null;
public String PublicKeyHash = null;
public String TransactionId = null;
public String Signature = null;
public String Version = null;
public String ApplicationData = null;
public String MerchantIdentifier = null;
public String SpecialPayment = null;
public DigitalWalletInfo DigitalWalletIndicator = null;
public String getType() { return Type; }
public WalletDescriptor setType(String value) { this.Type = value; return this; }
public String getEncryptedData() { return EncryptedData; }
public WalletDescriptor setEncryptedData(String value) { this.EncryptedData = value; return this; }
public String getApplicationDataHash() { return ApplicationDataHash; }
public WalletDescriptor setApplicationDataHash(String value) { this.ApplicationDataHash = value; return this; }
public String getEphemeralPublicKey() { return EphemeralPublicKey; }
public WalletDescriptor setEphemeralPublicKey(String value) { this.EphemeralPublicKey = value; return this; }
public String getPublicKeyHash() { return PublicKeyHash; }
public WalletDescriptor setPublicKeyHash(String value) { this.PublicKeyHash = value; return this; }
public String getTransactionId() { return TransactionId; }
public WalletDescriptor setTransactionId(String value) { this.TransactionId = value; return this; }
public String getSignature() { return Signature; }
public WalletDescriptor setSignature(String value) { this.Signature = value; return this; }
public String getVersion() { return Version; }
public WalletDescriptor setVersion(String value) { this.Version = value; return this; }
public String getApplicationData() { return ApplicationData; }
public WalletDescriptor setApplicationData(String value) { this.ApplicationData = value; return this; }
public String getMerchantIdentifier() { return MerchantIdentifier; }
public WalletDescriptor setMerchantIdentifier(String value) { this.MerchantIdentifier = value; return this; }
public String getSpecialPayment() { return SpecialPayment; }
public WalletDescriptor setSpecialPayment(String value) { this.SpecialPayment = value; return this; }
public DigitalWalletInfo getDigitalWalletIndicator() { return DigitalWalletIndicator; }
public WalletDescriptor setDigitalWalletIndicator(DigitalWalletInfo value) { this.DigitalWalletIndicator = value; return this; }
}
public static enum DigitalWalletInfo
{
Default,
Staged,
Passthrough;
}
public static class SecureDescriptor
{
public String CAVV = null;
public String SecureTransactionId = null;
public String getCavv() { return CAVV; }
public SecureDescriptor setCavv(String value) { this.CAVV = value; return this; }
public String getSecureTransactionId() { return SecureTransactionId; }
public SecureDescriptor setSecureTransactionId(String value) { this.SecureTransactionId = value; return this; }
}
public static class Level2Descriptor
{
public TaxIndicator TaxDetails = null;
public String MerchantReferenceNumber = null;
public String MerchantTaxId = null;
public String OrderNumber = null;
public Integer TaxAmount = null;
public String DestinationPostalCode = null;
public String ProductDescription = null;
public TaxIndicator getTaxDetails() { return TaxDetails; }
public Level2Descriptor setTaxDetails(TaxIndicator value) { this.TaxDetails = value; return this; }
public String getMerchantReferenceNumber() { return MerchantReferenceNumber; }
public Level2Descriptor setMerchantReferenceNumber(String value) { this.MerchantReferenceNumber = value; return this; }
public String getMerchantTaxId() { return MerchantTaxId; }
public Level2Descriptor setMerchantTaxId(String value) { this.MerchantTaxId = value; return this; }
public String getOrderNumber() { return OrderNumber; }
public Level2Descriptor setOrderNumber(String value) { this.OrderNumber = value; return this; }
public Integer getTaxAmount() { return TaxAmount; }
public Level2Descriptor setTaxAmount(Integer value) { this.TaxAmount = value; return this; }
public String getDestinationPostalCode() { return DestinationPostalCode; }
public Level2Descriptor setDestinationPostalCode(String value) { this.DestinationPostalCode = value; return this; }
public String getProductDescription() { return ProductDescription; }
public Level2Descriptor setProductDescription(String value) { this.ProductDescription = value; return this; }
}
public static enum TaxIndicator
{
Default,
NoTaxInfoProvided,
TaxInfoProvided,
TaxExemptItem;
}
public static class PaymentFacilitatorDescriptor
{
public String PaymentFacilitatorIndicator = null;
public String PFPhoneNumber = null;
public String SubMerchID = null;
public String SellerID = null;
public String getPaymentFacilitatorIndicator() { return PaymentFacilitatorIndicator; }
public PaymentFacilitatorDescriptor setPaymentFacilitatorIndicator(String value) { this.PaymentFacilitatorIndicator = value; return this; }
public String getPfPhoneNumber() { return PFPhoneNumber; }
public PaymentFacilitatorDescriptor setPfPhoneNumber(String value) { this.PFPhoneNumber = value; return this; }
public String getSubMerchID() { return SubMerchID; }
public PaymentFacilitatorDescriptor setSubMerchID(String value) { this.SubMerchID = value; return this; }
public String getSellerID() { return SellerID; }
public PaymentFacilitatorDescriptor setSellerID(String value) { this.SellerID = value; return this; }
}
public static class TokenDescriptor
{
public TokenTypes TokenType = null;
public String TokenCryptogramData1 = null;
public String TokenCryptogramData2 = null;
public TokenTypes getTokenType() { return TokenType; }
public TokenDescriptor setTokenType(TokenTypes value) { this.TokenType = value; return this; }
public String getTokenCryptogramData1() { return TokenCryptogramData1; }
public TokenDescriptor setTokenCryptogramData1(String value) { this.TokenCryptogramData1 = value; return this; }
public String getTokenCryptogramData2() { return TokenCryptogramData2; }
public TokenDescriptor setTokenCryptogramData2(String value) { this.TokenCryptogramData2 = value; return this; }
}
public static enum TokenTypes
{
Default,
Ucaf,
Dsrp,
Ucafdsrp,
VisaVerified,
DigitalWallet,
VisaVerifiedDigitalWallet;
}
public static class CardonFileIndicatorDescriptor
{
public CardonFileInfo CardonFile = null;
public StoredCredentialIndicatorInfo StoredCredentialIndicator = null;
public TransactionInitiateInfo TransactionInitiate = null;
public ScheduleIndicatorInfo ScheduleIndicator = null;
public String NetworkTransactionId = null;
public CardonFileInfo getCardonFile() { return CardonFile; }
public CardonFileIndicatorDescriptor setCardonFile(CardonFileInfo value) { this.CardonFile = value; return this; }
public StoredCredentialIndicatorInfo getStoredCredentialIndicator() { return StoredCredentialIndicator; }
public CardonFileIndicatorDescriptor setStoredCredentialIndicator(StoredCredentialIndicatorInfo value) { this.StoredCredentialIndicator = value; return this; }
public TransactionInitiateInfo getTransactionInitiate() { return TransactionInitiate; }
public CardonFileIndicatorDescriptor setTransactionInitiate(TransactionInitiateInfo value) { this.TransactionInitiate = value; return this; }
public ScheduleIndicatorInfo getScheduleIndicator() { return ScheduleIndicator; }
public CardonFileIndicatorDescriptor setScheduleIndicator(ScheduleIndicatorInfo value) { this.ScheduleIndicator = value; return this; }
public String getNetworkTransactionId() { return NetworkTransactionId; }
public CardonFileIndicatorDescriptor setNetworkTransactionId(String value) { this.NetworkTransactionId = value; return this; }
}
public static enum CardonFileInfo
{
Default,
Supported,
NotSupported;
}
public static enum StoredCredentialIndicatorInfo
{
Default,
Initial,
Subsequent;
}
public static enum TransactionInitiateInfo
{
Default,
Merchant,
Terminal,
Customer;
}
public static enum ScheduleIndicatorInfo
{
Default,
Scheduled,
Unscheduled;
}
public static enum CardAccountUpdaterInfo
{
Default,
Supported,
NotSupported;
}
public static enum OrderTypeInfo
{
Default,
Standing,
Subscription;
}
public static class BillPayGroupIndicator
{
public String MITTotalPaymentCount = null;
public String MITAmountType = null;
public String MITAmount = null;
public String MITUniqueID = null;
public String MITFrequency = null;
public String MITValidationFlag = null;
public String MITValidationReference = null;
public String MITSequenceIndicator = null;
public String getMitTotalPaymentCount() { return MITTotalPaymentCount; }
public BillPayGroupIndicator setMitTotalPaymentCount(String value) { this.MITTotalPaymentCount = value; return this; }
public String getMitAmountType() { return MITAmountType; }
public BillPayGroupIndicator setMitAmountType(String value) { this.MITAmountType = value; return this; }
public String getMitAmount() { return MITAmount; }
public BillPayGroupIndicator setMitAmount(String value) { this.MITAmount = value; return this; }
public String getMitUniqueID() { return MITUniqueID; }
public BillPayGroupIndicator setMitUniqueID(String value) { this.MITUniqueID = value; return this; }
public String getMitFrequency() { return MITFrequency; }
public BillPayGroupIndicator setMitFrequency(String value) { this.MITFrequency = value; return this; }
public String getMitValidationFlag() { return MITValidationFlag; }
public BillPayGroupIndicator setMitValidationFlag(String value) { this.MITValidationFlag = value; return this; }
public String getMitValidationReference() { return MITValidationReference; }
public BillPayGroupIndicator setMitValidationReference(String value) { this.MITValidationReference = value; return this; }
public String getMitSequenceIndicator() { return MITSequenceIndicator; }
public BillPayGroupIndicator setMitSequenceIndicator(String value) { this.MITSequenceIndicator = value; return this; }
}
public static enum ChargeTypeInfo
{
Default,
PartialShipment,
Delayed,
NoShow,
Resubmission;
}
public static enum SAFEligibleFlag
{
Default,
True,
False;
}
@DataContract
public static class POSCardlessRefund extends PaysecureResponseInternal
{
@DataMember
public String ErrorMessage = null;
@DataMember
public String ErrorCode = null;
@DataMember
public String TranId = null;
@DataMember
public String Network = null;
@DataMember
public String ResponseCode = null;
@DataMember
public NetworkResponseData NetworkResponseData = null;
public String getErrorMessage() { return ErrorMessage; }
public POSCardlessRefund setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public String getErrorCode() { return ErrorCode; }
public POSCardlessRefund setErrorCode(String value) { this.ErrorCode = value; return this; }
public String getTranId() { return TranId; }
public POSCardlessRefund setTranId(String value) { this.TranId = value; return this; }
public String getNetwork() { return Network; }
public POSCardlessRefund setNetwork(String value) { this.Network = value; return this; }
public String getResponseCode() { return ResponseCode; }
public POSCardlessRefund setResponseCode(String value) { this.ResponseCode = value; return this; }
public NetworkResponseData getNetworkResponseData() { return NetworkResponseData; }
public POSCardlessRefund setNetworkResponseData(NetworkResponseData value) { this.NetworkResponseData = value; return this; }
}
@DataContract
public static class PaysecureResponseInternal
{
@DataMember(EmitDefaultValue=false)
public RequestTimestamps Timestamps = null;
public RequestTimestamps getTimestamps() { return Timestamps; }
public PaysecureResponseInternal setTimestamps(RequestTimestamps value) { this.Timestamps = value; return this; }
}
@DataContract
public static class RequestTimestamps
{
@DataMember(EmitDefaultValue=false)
public InOutTimes AppLayer = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes ParentLookup = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes RetryLookup = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes GetCardData = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes CardTokenize = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes CardEncrypt = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes DBInsert = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes BackendProcess = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes DBUpdate = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes ParentUpdate = null;
@DataMember(EmitDefaultValue=false)
public InOutTimes Network = null;
public InOutTimes getAppLayer() { return AppLayer; }
public RequestTimestamps setAppLayer(InOutTimes value) { this.AppLayer = value; return this; }
public InOutTimes getParentLookup() { return ParentLookup; }
public RequestTimestamps setParentLookup(InOutTimes value) { this.ParentLookup = value; return this; }
public InOutTimes getRetryLookup() { return RetryLookup; }
public RequestTimestamps setRetryLookup(InOutTimes value) { this.RetryLookup = value; return this; }
public InOutTimes getGetCardData() { return GetCardData; }
public RequestTimestamps setGetCardData(InOutTimes value) { this.GetCardData = value; return this; }
public InOutTimes getCardTokenize() { return CardTokenize; }
public RequestTimestamps setCardTokenize(InOutTimes value) { this.CardTokenize = value; return this; }
public InOutTimes getCardEncrypt() { return CardEncrypt; }
public RequestTimestamps setCardEncrypt(InOutTimes value) { this.CardEncrypt = value; return this; }
public InOutTimes getDbInsert() { return DBInsert; }
public RequestTimestamps setDbInsert(InOutTimes value) { this.DBInsert = value; return this; }
public InOutTimes getBackendProcess() { return BackendProcess; }
public RequestTimestamps setBackendProcess(InOutTimes value) { this.BackendProcess = value; return this; }
public InOutTimes getDbUpdate() { return DBUpdate; }
public RequestTimestamps setDbUpdate(InOutTimes value) { this.DBUpdate = value; return this; }
public InOutTimes getParentUpdate() { return ParentUpdate; }
public RequestTimestamps setParentUpdate(InOutTimes value) { this.ParentUpdate = value; return this; }
public InOutTimes getNetwork() { return Network; }
public RequestTimestamps setNetwork(InOutTimes value) { this.Network = value; return this; }
}
@DataContract
public static class InOutTimes
{
}
public static class NetworkResponseData
{
public String AliPayTransId = null;
public String AliPayTransactionTime = null;
public String ResponseCode = null;
public String WeChatPayTransId = null;
public String WeChatPayTransactionTime = null;
public String WeChatPayOpenId = null;
public String getAliPayTransId() { return AliPayTransId; }
public NetworkResponseData setAliPayTransId(String value) { this.AliPayTransId = value; return this; }
public String getAliPayTransactionTime() { return AliPayTransactionTime; }
public NetworkResponseData setAliPayTransactionTime(String value) { this.AliPayTransactionTime = value; return this; }
public String getResponseCode() { return ResponseCode; }
public NetworkResponseData setResponseCode(String value) { this.ResponseCode = value; return this; }
public String getWeChatPayTransId() { return WeChatPayTransId; }
public NetworkResponseData setWeChatPayTransId(String value) { this.WeChatPayTransId = value; return this; }
public String getWeChatPayTransactionTime() { return WeChatPayTransactionTime; }
public NetworkResponseData setWeChatPayTransactionTime(String value) { this.WeChatPayTransactionTime = value; return this; }
public String getWeChatPayOpenId() { return WeChatPayOpenId; }
public NetworkResponseData setWeChatPayOpenId(String value) { this.WeChatPayOpenId = value; return this; }
}
}
Java POSCardlessRefundRequest DTOs
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 /POSCardlessRefund HTTP/1.1
Host: api.paysecure.acculynk.net
Accept: text/jsv
Content-Type: text/jsv
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: text/jsv 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: 0001-01-01, OutTime: 0001-01-01 }, ParentLookup: { InTime: 0001-01-01, OutTime: 0001-01-01 }, RetryLookup: { InTime: 0001-01-01, OutTime: 0001-01-01 }, GetCardData: { InTime: 0001-01-01, OutTime: 0001-01-01 }, CardTokenize: { InTime: 0001-01-01, OutTime: 0001-01-01 }, CardEncrypt: { InTime: 0001-01-01, OutTime: 0001-01-01 }, DBInsert: { InTime: 0001-01-01, OutTime: 0001-01-01 }, BackendProcess: { InTime: 0001-01-01, OutTime: 0001-01-01 }, DBUpdate: { InTime: 0001-01-01, OutTime: 0001-01-01 }, ParentUpdate: { InTime: 0001-01-01, OutTime: 0001-01-01 }, Network: { InTime: 0001-01-01, OutTime: 0001-01-01 } } }