POST | /PSBINCheck |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
@DataContract
public static class PSBINCheckRequest
{
@DataMember
public RequestorCredentials Credentials = null;
@DataMember
public String BIN = null;
public RequestorCredentials getCredentials() { return Credentials; }
public PSBINCheckRequest setCredentials(RequestorCredentials value) { this.Credentials = value; return this; }
public String getBin() { return BIN; }
public PSBINCheckRequest setBin(String value) { this.BIN = 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; }
}
@DataContract
public static class PSBINCheck extends PaysecureVersion
{
@DataMember
public String BIN = null;
@DataMember
public Boolean InternetPinDebit = null;
@DataMember
public Boolean EcomEBTSNAP = null;
@DataMember
public Boolean EcomEBTCash = null;
@DataMember
public Boolean POSFlag = null;
@DataMember
public Boolean PinlessEcommerce = null;
@DataMember
public Boolean PinlessBillPay = null;
@DataMember
public Boolean OnDemandPaymentCredit = null;
@DataMember
public Boolean OnDemandPaymentDebit = null;
@DataMember
public Boolean PinlessA2ACredit = null;
@DataMember
public Boolean PinlessA2ADebit = null;
@DataMember
public Boolean PinlessPrePaidLoad = null;
@DataMember
public Boolean DualMessage = null;
@DataMember
public Boolean Recurring = null;
@DataMember
public Boolean CardVerify = null;
@DataMember
public Boolean POSPinlessDualMessageFlag = null;
@DataMember
public String ErrorMessage = null;
@DataMember
public String ErrorCode = null;
@DataMember
public Boolean OTP = null;
@DataMember
public String FastFunds = null;
@DataMember
public Boolean IncrementalAuth = null;
@DataMember
public Boolean WIC = null;
@DataMember
public String CardDesignation = null;
public String getBin() { return BIN; }
public PSBINCheck setBin(String value) { this.BIN = value; return this; }
public Boolean isInternetPinDebit() { return InternetPinDebit; }
public PSBINCheck setInternetPinDebit(Boolean value) { this.InternetPinDebit = value; return this; }
public Boolean isEcomEBTSNAP() { return EcomEBTSNAP; }
public PSBINCheck setEcomEBTSNAP(Boolean value) { this.EcomEBTSNAP = value; return this; }
public Boolean isEcomEBTCash() { return EcomEBTCash; }
public PSBINCheck setEcomEBTCash(Boolean value) { this.EcomEBTCash = value; return this; }
public Boolean isPosFlag() { return POSFlag; }
public PSBINCheck setPosFlag(Boolean value) { this.POSFlag = value; return this; }
public Boolean isPinlessEcommerce() { return PinlessEcommerce; }
public PSBINCheck setPinlessEcommerce(Boolean value) { this.PinlessEcommerce = value; return this; }
public Boolean isPinlessBillPay() { return PinlessBillPay; }
public PSBINCheck setPinlessBillPay(Boolean value) { this.PinlessBillPay = value; return this; }
public Boolean isOnDemandPaymentCredit() { return OnDemandPaymentCredit; }
public PSBINCheck setOnDemandPaymentCredit(Boolean value) { this.OnDemandPaymentCredit = value; return this; }
public Boolean isOnDemandPaymentDebit() { return OnDemandPaymentDebit; }
public PSBINCheck setOnDemandPaymentDebit(Boolean value) { this.OnDemandPaymentDebit = value; return this; }
public Boolean isPinlessA2ACredit() { return PinlessA2ACredit; }
public PSBINCheck setPinlessA2ACredit(Boolean value) { this.PinlessA2ACredit = value; return this; }
public Boolean isPinlessA2ADebit() { return PinlessA2ADebit; }
public PSBINCheck setPinlessA2ADebit(Boolean value) { this.PinlessA2ADebit = value; return this; }
public Boolean isPinlessPrePaidLoad() { return PinlessPrePaidLoad; }
public PSBINCheck setPinlessPrePaidLoad(Boolean value) { this.PinlessPrePaidLoad = value; return this; }
public Boolean isDualMessage() { return DualMessage; }
public PSBINCheck setDualMessage(Boolean value) { this.DualMessage = value; return this; }
public Boolean isRecurring() { return Recurring; }
public PSBINCheck setRecurring(Boolean value) { this.Recurring = value; return this; }
public Boolean isCardVerify() { return CardVerify; }
public PSBINCheck setCardVerify(Boolean value) { this.CardVerify = value; return this; }
public Boolean isPosPinlessDualMessageFlag() { return POSPinlessDualMessageFlag; }
public PSBINCheck setPosPinlessDualMessageFlag(Boolean value) { this.POSPinlessDualMessageFlag = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public PSBINCheck setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public String getErrorCode() { return ErrorCode; }
public PSBINCheck setErrorCode(String value) { this.ErrorCode = value; return this; }
public Boolean isOtp() { return OTP; }
public PSBINCheck setOtp(Boolean value) { this.OTP = value; return this; }
public String getFastFunds() { return FastFunds; }
public PSBINCheck setFastFunds(String value) { this.FastFunds = value; return this; }
public Boolean isIncrementalAuth() { return IncrementalAuth; }
public PSBINCheck setIncrementalAuth(Boolean value) { this.IncrementalAuth = value; return this; }
public Boolean isWic() { return WIC; }
public PSBINCheck setWic(Boolean value) { this.WIC = value; return this; }
public String getCardDesignation() { return CardDesignation; }
public PSBINCheck setCardDesignation(String value) { this.CardDesignation = value; return this; }
}
@DataContract
public static class PaysecureVersion extends PaysecureResponseInternal
{
@DataMember(EmitDefaultValue=false)
public String LocalDateTime = null;
@DataMember(EmitDefaultValue=false)
public String Token = null;
@DataMember(EmitDefaultValue=false)
public ExtendedResponse ExtendedData = null;
public String getLocalDateTime() { return LocalDateTime; }
public PaysecureVersion setLocalDateTime(String value) { this.LocalDateTime = value; return this; }
public String getToken() { return Token; }
public PaysecureVersion setToken(String value) { this.Token = value; return this; }
public ExtendedResponse getExtendedData() { return ExtendedData; }
public PaysecureVersion setExtendedData(ExtendedResponse value) { this.ExtendedData = 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
{
}
@DataContract
public static class ExtendedResponse
{
@DataMember(EmitDefaultValue=false)
public CardAccountUpdaterDescriptor CardAccountUpdater = null;
@DataMember(EmitDefaultValue=false)
public String ProductId = null;
@DataMember(EmitDefaultValue=false)
public String NetworkResponseCode = null;
@DataMember(EmitDefaultValue=false)
public String NetworkTransactionId = null;
@DataMember(EmitDefaultValue=false)
public String CHEmailAddrResult = null;
public CardAccountUpdaterDescriptor getCardAccountUpdater() { return CardAccountUpdater; }
public ExtendedResponse setCardAccountUpdater(CardAccountUpdaterDescriptor value) { this.CardAccountUpdater = value; return this; }
public String getProductId() { return ProductId; }
public ExtendedResponse setProductId(String value) { this.ProductId = value; return this; }
public String getNetworkResponseCode() { return NetworkResponseCode; }
public ExtendedResponse setNetworkResponseCode(String value) { this.NetworkResponseCode = value; return this; }
public String getNetworkTransactionId() { return NetworkTransactionId; }
public ExtendedResponse setNetworkTransactionId(String value) { this.NetworkTransactionId = value; return this; }
public String getChEmailAddrResult() { return CHEmailAddrResult; }
public ExtendedResponse setChEmailAddrResult(String value) { this.CHEmailAddrResult = value; return this; }
}
public static class CardAccountUpdaterDescriptor
{
public CardInfoType CardDataType = null;
public String CardNumberInfo = null;
public String ExpiryDate = null;
public String Status = null;
public String ErrorCode = null;
public String CardToken = null;
public CardInfoType getCardDataType() { return CardDataType; }
public CardAccountUpdaterDescriptor setCardDataType(CardInfoType value) { this.CardDataType = value; return this; }
public String getCardNumberInfo() { return CardNumberInfo; }
public CardAccountUpdaterDescriptor setCardNumberInfo(String value) { this.CardNumberInfo = value; return this; }
public String getExpiryDate() { return ExpiryDate; }
public CardAccountUpdaterDescriptor setExpiryDate(String value) { this.ExpiryDate = value; return this; }
public String getStatus() { return Status; }
public CardAccountUpdaterDescriptor setStatus(String value) { this.Status = value; return this; }
public String getErrorCode() { return ErrorCode; }
public CardAccountUpdaterDescriptor setErrorCode(String value) { this.ErrorCode = value; return this; }
public String getCardToken() { return CardToken; }
public CardAccountUpdaterDescriptor setCardToken(String value) { this.CardToken = value; return this; }
}
public static enum CardInfoType
{
CardNumber,
Token,
Track,
Emv,
Encrypted,
Dpan,
ApplePay,
GooglePay,
SamsungPay,
CpToken,
EncryptedEnhanced,
EncryptedJWE;
}
}
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 /PSBINCheck 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"},"BIN":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"BIN":"String","InternetPinDebit":false,"EcomEBTSNAP":false,"EcomEBTCash":false,"POSFlag":false,"PinlessEcommerce":false,"PinlessBillPay":false,"OnDemandPaymentCredit":false,"OnDemandPaymentDebit":false,"PinlessA2ACredit":false,"PinlessA2ADebit":false,"PinlessPrePaidLoad":false,"DualMessage":false,"Recurring":false,"CardVerify":false,"POSPinlessDualMessageFlag":false,"ErrorMessage":"String","ErrorCode":"String","OTP":false,"FastFunds":"String","IncrementalAuth":false,"WIC":false,"CardDesignation":"String","LocalDateTime":"String","Token":"String","ExtendedData":{"CardAccountUpdater":{"CardDataType":"CardNumber","CardNumberInfo":"String","ExpiryDate":"String","Status":"String","ErrorCode":"String","CardToken":"String"},"ProductId":"String","NetworkResponseCode":"String","NetworkTransactionId":"String","CHEmailAddrResult":"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)\/"}}}