TicketUserServices

<back to all web services

BorgunTest3DFinishProcessRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
POST/borgunTest3D/Finish3DProcessTest 3D
import 'package:servicestack/servicestack.dart';

class BorgunPaymentMethodInfo implements IConvertible
{
    String? paymentType;
    String? pan;
    String? token;
    String? cardType;
    String? isDebit;

    BorgunPaymentMethodInfo({this.paymentType,this.pan,this.token,this.cardType,this.isDebit});
    BorgunPaymentMethodInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        paymentType = json['paymentType'];
        pan = json['pan'];
        token = json['token'];
        cardType = json['cardType'];
        isDebit = json['isDebit'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'paymentType': paymentType,
        'pan': pan,
        'token': token,
        'cardType': cardType,
        'isDebit': isDebit
    };

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

class Borgun3DSecureInfo implements IConvertible
{
    String? securityLevelInd;
    String? xid;

    Borgun3DSecureInfo({this.securityLevelInd,this.xid});
    Borgun3DSecureInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        securityLevelInd = json['securityLevelInd'];
        xid = json['xid'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'securityLevelInd': securityLevelInd,
        'xid': xid
    };

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

class BorgunFinal3DResponse implements IConvertible
{
    String? transactionId;
    String? transactionType;
    int? amount;
    String? currency;
    DateTime? transactionDate;
    String? oorderId;
    String? authCode;
    String? actionCode;
    String? transactionStatus;
    BorgunPaymentMethodInfo? paymentMethod;
    Borgun3DSecureInfo? threeDSecure;
    String? lifeCycleId;

    BorgunFinal3DResponse({this.transactionId,this.transactionType,this.amount,this.currency,this.transactionDate,this.oorderId,this.authCode,this.actionCode,this.transactionStatus,this.paymentMethod,this.threeDSecure,this.lifeCycleId});
    BorgunFinal3DResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        transactionId = json['transactionId'];
        transactionType = json['transactionType'];
        amount = json['amount'];
        currency = json['currency'];
        transactionDate = JsonConverters.fromJson(json['transactionDate'],'DateTime',context!);
        oorderId = json['oorderId'];
        authCode = json['authCode'];
        actionCode = json['actionCode'];
        transactionStatus = json['transactionStatus'];
        paymentMethod = JsonConverters.fromJson(json['paymentMethod'],'BorgunPaymentMethodInfo',context!);
        threeDSecure = JsonConverters.fromJson(json['threeDSecure'],'Borgun3DSecureInfo',context!);
        lifeCycleId = json['lifeCycleId'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'transactionId': transactionId,
        'transactionType': transactionType,
        'amount': amount,
        'currency': currency,
        'transactionDate': JsonConverters.toJson(transactionDate,'DateTime',context!),
        'oorderId': oorderId,
        'authCode': authCode,
        'actionCode': actionCode,
        'transactionStatus': transactionStatus,
        'paymentMethod': JsonConverters.toJson(paymentMethod,'BorgunPaymentMethodInfo',context!),
        'threeDSecure': JsonConverters.toJson(threeDSecure,'Borgun3DSecureInfo',context!),
        'lifeCycleId': lifeCycleId
    };

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

class BorgunTest3DFinishProcessResponse implements IConvertible
{
    BorgunFinal3DResponse? response;
    int? statusCode;
    String? message;
    String? forcedPath;
    String? forcedJSONRequest;
    String? jsonRequest;
    String? jsonResponse;
    String? requestPath;
    String? requestSent;
    String? requestReceived;

    BorgunTest3DFinishProcessResponse({this.response,this.statusCode,this.message,this.forcedPath,this.forcedJSONRequest,this.jsonRequest,this.jsonResponse,this.requestPath,this.requestSent,this.requestReceived});
    BorgunTest3DFinishProcessResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        response = JsonConverters.fromJson(json['response'],'BorgunFinal3DResponse',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        forcedPath = json['forcedPath'];
        forcedJSONRequest = json['forcedJSONRequest'];
        jsonRequest = json['jsonRequest'];
        jsonResponse = json['jsonResponse'];
        requestPath = json['requestPath'];
        requestSent = json['requestSent'];
        requestReceived = json['requestReceived'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'response': JsonConverters.toJson(response,'BorgunFinal3DResponse',context!),
        'statusCode': statusCode,
        'message': message,
        'forcedPath': forcedPath,
        'forcedJSONRequest': forcedJSONRequest,
        'jsonRequest': jsonRequest,
        'jsonResponse': jsonResponse,
        'requestPath': requestPath,
        'requestSent': requestSent,
        'requestReceived': requestReceived
    };

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

class Borgun3DFinalPaymentMethodInfo implements IConvertible
{
    String? paymentType;
    String? token;

    Borgun3DFinalPaymentMethodInfo({this.paymentType,this.token});
    Borgun3DFinalPaymentMethodInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        paymentType = json['paymentType'];
        token = json['token'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'paymentType': paymentType,
        'token': token
    };

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

class Borgun3DFinal3DSecureInfo implements IConvertible
{
    String? dataType;
    String? mpiToken;

    Borgun3DFinal3DSecureInfo({this.dataType,this.mpiToken});
    Borgun3DFinal3DSecureInfo.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        dataType = json['dataType'];
        mpiToken = json['mpiToken'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'dataType': dataType,
        'mpiToken': mpiToken
    };

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

class Borgun3DFinalRequest implements IConvertible
{
    String? transactionType;
    int? amount;
    String? currency;
    DateTime? transactionDate;
    String? orderId;
    Borgun3DFinalPaymentMethodInfo? paymentMethod;
    Borgun3DFinal3DSecureInfo? threeDSecure;

    Borgun3DFinalRequest({this.transactionType,this.amount,this.currency,this.transactionDate,this.orderId,this.paymentMethod,this.threeDSecure});
    Borgun3DFinalRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        transactionType = json['transactionType'];
        amount = json['amount'];
        currency = json['currency'];
        transactionDate = JsonConverters.fromJson(json['transactionDate'],'DateTime',context!);
        orderId = json['orderId'];
        paymentMethod = JsonConverters.fromJson(json['paymentMethod'],'Borgun3DFinalPaymentMethodInfo',context!);
        threeDSecure = JsonConverters.fromJson(json['threeDSecure'],'Borgun3DFinal3DSecureInfo',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'transactionType': transactionType,
        'amount': amount,
        'currency': currency,
        'transactionDate': JsonConverters.toJson(transactionDate,'DateTime',context!),
        'orderId': orderId,
        'paymentMethod': JsonConverters.toJson(paymentMethod,'Borgun3DFinalPaymentMethodInfo',context!),
        'threeDSecure': JsonConverters.toJson(threeDSecure,'Borgun3DFinal3DSecureInfo',context!)
    };

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

class BorgunTest3DFinishProcessRequest implements IConvertible
{
    Borgun3DFinalRequest? request;
    String? forcedPath;
    String? forcedJSONRequest;
    bool? skipBorgunCall;

    BorgunTest3DFinishProcessRequest({this.request,this.forcedPath,this.forcedJSONRequest,this.skipBorgunCall});
    BorgunTest3DFinishProcessRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        request = JsonConverters.fromJson(json['request'],'Borgun3DFinalRequest',context!);
        forcedPath = json['forcedPath'];
        forcedJSONRequest = json['forcedJSONRequest'];
        skipBorgunCall = json['skipBorgunCall'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'request': JsonConverters.toJson(request,'Borgun3DFinalRequest',context!),
        'forcedPath': forcedPath,
        'forcedJSONRequest': forcedJSONRequest,
        'skipBorgunCall': skipBorgunCall
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'BorgunPaymentMethodInfo': TypeInfo(TypeOf.Class, create:() => BorgunPaymentMethodInfo()),
    'Borgun3DSecureInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DSecureInfo()),
    'BorgunFinal3DResponse': TypeInfo(TypeOf.Class, create:() => BorgunFinal3DResponse()),
    'BorgunTest3DFinishProcessResponse': TypeInfo(TypeOf.Class, create:() => BorgunTest3DFinishProcessResponse()),
    'Borgun3DFinalPaymentMethodInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalPaymentMethodInfo()),
    'Borgun3DFinal3DSecureInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinal3DSecureInfo()),
    'Borgun3DFinalRequest': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalRequest()),
    'BorgunTest3DFinishProcessRequest': TypeInfo(TypeOf.Class, create:() => BorgunTest3DFinishProcessRequest()),
});

Dart BorgunTest3DFinishProcessRequest DTOs

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

HTTP + XML

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

POST /borgunTest3D/Finish3DProcess HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<BorgunTest3DFinishProcessRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ForcedJSONRequest>String</ForcedJSONRequest>
  <ForcedPath>String</ForcedPath>
  <Request xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
    <d2p1:Amount>0</d2p1:Amount>
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:OrderId>String</d2p1:OrderId>
    <d2p1:PaymentMethod>
      <d2p1:PaymentType>String</d2p1:PaymentType>
      <d2p1:Token>String</d2p1:Token>
    </d2p1:PaymentMethod>
    <d2p1:ThreeDSecure>
      <d2p1:DataType>String</d2p1:DataType>
      <d2p1:MpiToken>String</d2p1:MpiToken>
    </d2p1:ThreeDSecure>
    <d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
    <d2p1:TransactionType>String</d2p1:TransactionType>
  </Request>
  <SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DFinishProcessRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BorgunTest3DFinishProcessResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <ForcedJSONRequest>String</ForcedJSONRequest>
  <ForcedPath>String</ForcedPath>
  <JSONRequest>String</JSONRequest>
  <JSONResponse>String</JSONResponse>
  <Message>String</Message>
  <RequestPath>String</RequestPath>
  <RequestReceived>String</RequestReceived>
  <RequestSent>String</RequestSent>
  <Response xmlns:d2p1="http://schemas.datacontract.org/2004/07/BorgunRPGData">
    <d2p1:ActionCode>String</d2p1:ActionCode>
    <d2p1:Amount>0</d2p1:Amount>
    <d2p1:AuthCode>String</d2p1:AuthCode>
    <d2p1:Currency>String</d2p1:Currency>
    <d2p1:LifeCycleId>String</d2p1:LifeCycleId>
    <d2p1:OorderId>String</d2p1:OorderId>
    <d2p1:PaymentMethod>
      <d2p1:CardType>String</d2p1:CardType>
      <d2p1:IsDebit>String</d2p1:IsDebit>
      <d2p1:PAN>String</d2p1:PAN>
      <d2p1:PaymentType>String</d2p1:PaymentType>
      <d2p1:Token>String</d2p1:Token>
    </d2p1:PaymentMethod>
    <d2p1:ThreeDSecure>
      <d2p1:SecurityLevelInd>String</d2p1:SecurityLevelInd>
      <d2p1:Xid>String</d2p1:Xid>
    </d2p1:ThreeDSecure>
    <d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
    <d2p1:TransactionId>String</d2p1:TransactionId>
    <d2p1:TransactionStatus>String</d2p1:TransactionStatus>
    <d2p1:TransactionType>String</d2p1:TransactionType>
  </Response>
  <StatusCode>0</StatusCode>
</BorgunTest3DFinishProcessResponse>