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 datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BorgunPaymentMethodInfo:
    payment_type: Optional[str] = None
    pan: Optional[str] = None
    token: Optional[str] = None
    card_type: Optional[str] = None
    is_debit: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Borgun3DSecureInfo:
    security_level_ind: Optional[str] = None
    xid: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BorgunFinal3DResponse:
    transaction_id: Optional[str] = None
    transaction_type: Optional[str] = None
    amount: Optional[int] = None
    currency: Optional[str] = None
    transaction_date: Optional[datetime.datetime] = None
    oorder_id: Optional[str] = None
    auth_code: Optional[str] = None
    action_code: Optional[str] = None
    transaction_status: Optional[str] = None
    payment_method: Optional[BorgunPaymentMethodInfo] = None
    three_d_secure: Optional[Borgun3DSecureInfo] = None
    life_cycle_id: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BorgunServices3DFinishProcessResponse:
    response: Optional[BorgunFinal3DResponse] = None
    success: Optional[bool] = None
    http_status_code: Optional[int] = None
    message: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Borgun3DFinalPaymentMethodInfo:
    payment_type: Optional[str] = None
    token: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Borgun3DFinal3DSecureInfo:
    data_type: Optional[str] = None
    mpi_token: Optional[str] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class Borgun3DFinalRequest:
    transaction_type: Optional[str] = None
    amount: Optional[int] = None
    currency: Optional[str] = None
    transaction_date: Optional[datetime.datetime] = None
    order_id: Optional[str] = None
    payment_method: Optional[Borgun3DFinalPaymentMethodInfo] = None
    three_d_secure: Optional[Borgun3DFinal3DSecureInfo] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class BorgunServices3DFinishProcessRequest:
    request: Optional[Borgun3DFinalRequest] = None

Python 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>