TicketUserServices

<back to all web services

BorgunServices3DFinishProcessRequest

Requires Authentication
Requires the role:AdminRequires the permission:ReadData
The following routes are available for this service:
POST/borgunServices/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 BorgunServices3DFinishProcessResponse implements IConvertible
{
    BorgunFinal3DResponse? response;
    bool? success;
    int? httpStatusCode;
    String? message;

    BorgunServices3DFinishProcessResponse({this.response,this.success,this.httpStatusCode,this.message});
    BorgunServices3DFinishProcessResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        response = JsonConverters.fromJson(json['response'],'BorgunFinal3DResponse',context!);
        success = json['success'];
        httpStatusCode = json['httpStatusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'response': JsonConverters.toJson(response,'BorgunFinal3DResponse',context!),
        'success': success,
        'httpStatusCode': httpStatusCode,
        'message': message
    };

    getTypeName() => "BorgunServices3DFinishProcessResponse";
    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 BorgunServices3DFinishProcessRequest implements IConvertible
{
    Borgun3DFinalRequest? request;

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

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

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

    getTypeName() => "BorgunServices3DFinishProcessRequest";
    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()),
    'BorgunServices3DFinishProcessResponse': TypeInfo(TypeOf.Class, create:() => BorgunServices3DFinishProcessResponse()),
    'Borgun3DFinalPaymentMethodInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalPaymentMethodInfo()),
    'Borgun3DFinal3DSecureInfo': TypeInfo(TypeOf.Class, create:() => Borgun3DFinal3DSecureInfo()),
    'Borgun3DFinalRequest': TypeInfo(TypeOf.Class, create:() => Borgun3DFinalRequest()),
    'BorgunServices3DFinishProcessRequest': TypeInfo(TypeOf.Class, create:() => BorgunServices3DFinishProcessRequest()),
});

Dart BorgunServices3DFinishProcessRequest 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 /borgunServices/Finish3DProcess HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<BorgunServices3DFinishProcessRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <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>
</BorgunServices3DFinishProcessRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<BorgunServices3DFinishProcessResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <HttpStatusCode>0</HttpStatusCode>
  <Message>String</Message>
  <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>
  <Success>false</Success>
</BorgunServices3DFinishProcessResponse>