TicketUserServices

<back to all web services

Complete3DSCardSaveRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequires the permission:ReadData
The following routes are available for this service:
POST/cardTokens/complete3DSSave
import 'package:servicestack/servicestack.dart';

class Complete3DSCardSaveResult implements IConvertible
{
    int? statusCode;
    bool? success;
    String? message;
    String? token;

    Complete3DSCardSaveResult({this.statusCode,this.success,this.message,this.token});
    Complete3DSCardSaveResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class RequestSignature implements IConvertible
{
    String? systemId;
    String? systemSecret;
    String? signature;

    RequestSignature({this.systemId,this.systemSecret,this.signature});
    RequestSignature.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        systemId = json['systemId'];
        systemSecret = json['systemSecret'];
        signature = json['signature'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'systemId': systemId,
        'systemSecret': systemSecret,
        'signature': signature
    };

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

class Complete3DSCardSaveRequest implements IConvertible
{
    String? sessionId;
    String? paRes;
    String? cRes;
    String? pan;
    String? cvc;
    RequestSignature? signature;

    Complete3DSCardSaveRequest({this.sessionId,this.paRes,this.cRes,this.pan,this.cvc,this.signature});
    Complete3DSCardSaveRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        sessionId = json['sessionId'];
        paRes = json['paRes'];
        cRes = json['cRes'];
        pan = json['pan'];
        cvc = json['cvc'];
        signature = JsonConverters.fromJson(json['signature'],'RequestSignature',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'sessionId': sessionId,
        'paRes': paRes,
        'cRes': cRes,
        'pan': pan,
        'cvc': cvc,
        'signature': JsonConverters.toJson(signature,'RequestSignature',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'Complete3DSCardSaveResult': TypeInfo(TypeOf.Class, create:() => Complete3DSCardSaveResult()),
    'RequestSignature': TypeInfo(TypeOf.Class, create:() => RequestSignature()),
    'Complete3DSCardSaveRequest': TypeInfo(TypeOf.Class, create:() => Complete3DSCardSaveRequest()),
});

Dart Complete3DSCardSaveRequest 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 /cardTokens/complete3DSSave HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<Complete3DSCardSaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <CRes>String</CRes>
  <CVC>String</CVC>
  <PAN>String</PAN>
  <PARes>String</PARes>
  <SessionId>String</SessionId>
  <Signature>
    <Signature>String</Signature>
    <SystemId>String</SystemId>
    <SystemSecret>String</SystemSecret>
  </Signature>
</Complete3DSCardSaveRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<Complete3DSCardSaveResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Message>String</Message>
  <StatusCode>0</StatusCode>
  <Success>false</Success>
  <Token>String</Token>
</Complete3DSCardSaveResult>