PaySecure Pinless Web Services 2023:07:03:07

<back to all web services

PSBINCheckForTokenRequest

The following routes are available for this service:
POST/PSBINCheckForToken
import 'package:servicestack/servicestack.dart';

// @DataContract
class InOutTimes implements IConvertible
{
    InOutTimes();
    InOutTimes.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "InOutTimes";
    TypeContext? context = _ctx;
}

// @DataContract
class RequestTimestamps implements IConvertible
{
    // @DataMember(EmitDefaultValue=false)
    InOutTimes? AppLayer;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? ParentLookup;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? RetryLookup;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? GetCardData;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? CardTokenize;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? CardEncrypt;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? DBInsert;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? BackendProcess;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? DBUpdate;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? ParentUpdate;

    // @DataMember(EmitDefaultValue=false)
    InOutTimes? Network;

    RequestTimestamps({this.AppLayer,this.ParentLookup,this.RetryLookup,this.GetCardData,this.CardTokenize,this.CardEncrypt,this.DBInsert,this.BackendProcess,this.DBUpdate,this.ParentUpdate,this.Network});
    RequestTimestamps.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        AppLayer = JsonConverters.fromJson(json['AppLayer'],'InOutTimes',context!);
        ParentLookup = JsonConverters.fromJson(json['ParentLookup'],'InOutTimes',context!);
        RetryLookup = JsonConverters.fromJson(json['RetryLookup'],'InOutTimes',context!);
        GetCardData = JsonConverters.fromJson(json['GetCardData'],'InOutTimes',context!);
        CardTokenize = JsonConverters.fromJson(json['CardTokenize'],'InOutTimes',context!);
        CardEncrypt = JsonConverters.fromJson(json['CardEncrypt'],'InOutTimes',context!);
        DBInsert = JsonConverters.fromJson(json['DBInsert'],'InOutTimes',context!);
        BackendProcess = JsonConverters.fromJson(json['BackendProcess'],'InOutTimes',context!);
        DBUpdate = JsonConverters.fromJson(json['DBUpdate'],'InOutTimes',context!);
        ParentUpdate = JsonConverters.fromJson(json['ParentUpdate'],'InOutTimes',context!);
        Network = JsonConverters.fromJson(json['Network'],'InOutTimes',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'AppLayer': JsonConverters.toJson(AppLayer,'InOutTimes',context!),
        'ParentLookup': JsonConverters.toJson(ParentLookup,'InOutTimes',context!),
        'RetryLookup': JsonConverters.toJson(RetryLookup,'InOutTimes',context!),
        'GetCardData': JsonConverters.toJson(GetCardData,'InOutTimes',context!),
        'CardTokenize': JsonConverters.toJson(CardTokenize,'InOutTimes',context!),
        'CardEncrypt': JsonConverters.toJson(CardEncrypt,'InOutTimes',context!),
        'DBInsert': JsonConverters.toJson(DBInsert,'InOutTimes',context!),
        'BackendProcess': JsonConverters.toJson(BackendProcess,'InOutTimes',context!),
        'DBUpdate': JsonConverters.toJson(DBUpdate,'InOutTimes',context!),
        'ParentUpdate': JsonConverters.toJson(ParentUpdate,'InOutTimes',context!),
        'Network': JsonConverters.toJson(Network,'InOutTimes',context!)
    };

    getTypeName() => "RequestTimestamps";
    TypeContext? context = _ctx;
}

// @DataContract
class PaysecureResponseInternal implements IConvertible
{
    // @DataMember(EmitDefaultValue=false)
    RequestTimestamps? Timestamps;

    PaysecureResponseInternal({this.Timestamps});
    PaysecureResponseInternal.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Timestamps = JsonConverters.fromJson(json['Timestamps'],'RequestTimestamps',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Timestamps': JsonConverters.toJson(Timestamps,'RequestTimestamps',context!)
    };

    getTypeName() => "PaysecureResponseInternal";
    TypeContext? context = _ctx;
}

// @DataContract
class PSBINCheckForToken extends PaysecureResponseInternal implements IConvertible
{
    // @DataMember
    String? Token;

    // @DataMember
    String? BIN;

    // @DataMember
    bool? InternetPinDebit;

    // @DataMember
    bool? EcomEBTSNAP;

    // @DataMember
    bool? EcomEBTCash;

    // @DataMember
    bool? POSFlag;

    // @DataMember
    bool? PinlessEcommerce;

    // @DataMember
    bool? PinlessBillPay;

    // @DataMember
    bool? OnDemandPaymentCredit;

    // @DataMember
    bool? OnDemandPaymentDebit;

    // @DataMember
    bool? PinlessA2ACredit;

    // @DataMember
    bool? PinlessA2ADebit;

    // @DataMember
    bool? PinlessPrePaidLoad;

    // @DataMember
    bool? DualMessage;

    // @DataMember
    bool? Recurring;

    // @DataMember
    bool? CardVerify;

    // @DataMember
    bool? POSPinlessDualMessageFlag;

    // @DataMember
    bool? OTP;

    // @DataMember
    String? FastFunds;

    // @DataMember
    String? ErrorMessage;

    // @DataMember
    String? ErrorCode;

    // @DataMember
    bool? IncrementalAuth;

    // @DataMember
    bool? WIC;

    PSBINCheckForToken({this.Token,this.BIN,this.InternetPinDebit,this.EcomEBTSNAP,this.EcomEBTCash,this.POSFlag,this.PinlessEcommerce,this.PinlessBillPay,this.OnDemandPaymentCredit,this.OnDemandPaymentDebit,this.PinlessA2ACredit,this.PinlessA2ADebit,this.PinlessPrePaidLoad,this.DualMessage,this.Recurring,this.CardVerify,this.POSPinlessDualMessageFlag,this.OTP,this.FastFunds,this.ErrorMessage,this.ErrorCode,this.IncrementalAuth,this.WIC});
    PSBINCheckForToken.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        super.fromMap(json);
        Token = json['Token'];
        BIN = json['BIN'];
        InternetPinDebit = json['InternetPinDebit'];
        EcomEBTSNAP = json['EcomEBTSNAP'];
        EcomEBTCash = json['EcomEBTCash'];
        POSFlag = json['POSFlag'];
        PinlessEcommerce = json['PinlessEcommerce'];
        PinlessBillPay = json['PinlessBillPay'];
        OnDemandPaymentCredit = json['OnDemandPaymentCredit'];
        OnDemandPaymentDebit = json['OnDemandPaymentDebit'];
        PinlessA2ACredit = json['PinlessA2ACredit'];
        PinlessA2ADebit = json['PinlessA2ADebit'];
        PinlessPrePaidLoad = json['PinlessPrePaidLoad'];
        DualMessage = json['DualMessage'];
        Recurring = json['Recurring'];
        CardVerify = json['CardVerify'];
        POSPinlessDualMessageFlag = json['POSPinlessDualMessageFlag'];
        OTP = json['OTP'];
        FastFunds = json['FastFunds'];
        ErrorMessage = json['ErrorMessage'];
        ErrorCode = json['ErrorCode'];
        IncrementalAuth = json['IncrementalAuth'];
        WIC = json['WIC'];
        return this;
    }

    Map<String, dynamic> toJson() => super.toJson()..addAll({
        'Token': Token,
        'BIN': BIN,
        'InternetPinDebit': InternetPinDebit,
        'EcomEBTSNAP': EcomEBTSNAP,
        'EcomEBTCash': EcomEBTCash,
        'POSFlag': POSFlag,
        'PinlessEcommerce': PinlessEcommerce,
        'PinlessBillPay': PinlessBillPay,
        'OnDemandPaymentCredit': OnDemandPaymentCredit,
        'OnDemandPaymentDebit': OnDemandPaymentDebit,
        'PinlessA2ACredit': PinlessA2ACredit,
        'PinlessA2ADebit': PinlessA2ADebit,
        'PinlessPrePaidLoad': PinlessPrePaidLoad,
        'DualMessage': DualMessage,
        'Recurring': Recurring,
        'CardVerify': CardVerify,
        'POSPinlessDualMessageFlag': POSPinlessDualMessageFlag,
        'OTP': OTP,
        'FastFunds': FastFunds,
        'ErrorMessage': ErrorMessage,
        'ErrorCode': ErrorCode,
        'IncrementalAuth': IncrementalAuth,
        'WIC': WIC
    });

    getTypeName() => "PSBINCheckForToken";
    TypeContext? context = _ctx;
}

class RequestorCredentials implements IConvertible
{
    // @Required()
    String? MerchantId;

    // @Required()
    String? UserName;

    // @Required()
    String? Password;

    // @Required()
    String? Version;

    RequestorCredentials({this.MerchantId,this.UserName,this.Password,this.Version});
    RequestorCredentials.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        MerchantId = json['MerchantId'];
        UserName = json['UserName'];
        Password = json['Password'];
        Version = json['Version'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'MerchantId': MerchantId,
        'UserName': UserName,
        'Password': Password,
        'Version': Version
    };

    getTypeName() => "RequestorCredentials";
    TypeContext? context = _ctx;
}

// @DataContract
class PSBINCheckForTokenRequest implements IConvertible
{
    // @DataMember
    RequestorCredentials? Credentials;

    // @DataMember
    String? Token;

    PSBINCheckForTokenRequest({this.Credentials,this.Token});
    PSBINCheckForTokenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Credentials = JsonConverters.fromJson(json['Credentials'],'RequestorCredentials',context!);
        Token = json['Token'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Credentials': JsonConverters.toJson(Credentials,'RequestorCredentials',context!),
        'Token': Token
    };

    getTypeName() => "PSBINCheckForTokenRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.paysecure.acculynk.net', types: <String, TypeInfo> {
    'InOutTimes': TypeInfo(TypeOf.Class, create:() => InOutTimes()),
    'RequestTimestamps': TypeInfo(TypeOf.Class, create:() => RequestTimestamps()),
    'PaysecureResponseInternal': TypeInfo(TypeOf.Class, create:() => PaysecureResponseInternal()),
    'PSBINCheckForToken': TypeInfo(TypeOf.Class, create:() => PSBINCheckForToken()),
    'RequestorCredentials': TypeInfo(TypeOf.Class, create:() => RequestorCredentials()),
    'PSBINCheckForTokenRequest': TypeInfo(TypeOf.Class, create:() => PSBINCheckForTokenRequest()),
});

Dart PSBINCheckForTokenRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /PSBINCheckForToken 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
	},
	Token: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Token: String,
	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,
	OTP: False,
	FastFunds: String,
	ErrorMessage: String,
	ErrorCode: String,
	IncrementalAuth: False,
	WIC: False,
	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
		}
	}
}