Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Finish3DProcess | Test 3D |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using TicketUserServices.ServiceModel;
using BorgunRPGData;
namespace BorgunRPGData
{
public partial class Borgun3DFinal3DSecureInfo
{
public virtual string DataType { get; set; }
public virtual string MpiToken { get; set; }
}
public partial class Borgun3DFinalPaymentMethodInfo
{
public virtual string PaymentType { get; set; }
public virtual string Token { get; set; }
}
public partial class Borgun3DFinalRequest
{
public virtual string TransactionType { get; set; }
public virtual int Amount { get; set; }
public virtual string Currency { get; set; }
public virtual DateTime? TransactionDate { get; set; }
public virtual string OrderId { get; set; }
public virtual Borgun3DFinalPaymentMethodInfo PaymentMethod { get; set; }
public virtual Borgun3DFinal3DSecureInfo ThreeDSecure { get; set; }
}
public partial class Borgun3DSecureInfo
{
public virtual string SecurityLevelInd { get; set; }
public virtual string Xid { get; set; }
}
public partial class BorgunFinal3DResponse
{
public virtual string TransactionId { get; set; }
public virtual string TransactionType { get; set; }
public virtual int Amount { get; set; }
public virtual string Currency { get; set; }
public virtual DateTime TransactionDate { get; set; }
public virtual string OorderId { get; set; }
public virtual string AuthCode { get; set; }
public virtual string ActionCode { get; set; }
public virtual string TransactionStatus { get; set; }
public virtual BorgunPaymentMethodInfo PaymentMethod { get; set; }
public virtual Borgun3DSecureInfo ThreeDSecure { get; set; }
public virtual string LifeCycleId { get; set; }
}
public partial class BorgunPaymentMethodInfo
{
public virtual string PaymentType { get; set; }
public virtual string PAN { get; set; }
public virtual string Token { get; set; }
public virtual string CardType { get; set; }
public virtual string IsDebit { get; set; }
}
}
namespace TicketUserServices.ServiceModel
{
public partial class BorgunTest3DFinishProcessRequest
{
public virtual Borgun3DFinalRequest Request { get; set; }
public virtual string ForcedPath { get; set; }
public virtual string ForcedJSONRequest { get; set; }
public virtual bool? SkipBorgunCall { get; set; }
}
public partial class BorgunTest3DFinishProcessResponse
{
public virtual BorgunFinal3DResponse Response { get; set; }
public virtual int StatusCode { get; set; }
public virtual string Message { get; set; }
public virtual string ForcedPath { get; set; }
public virtual string ForcedJSONRequest { get; set; }
public virtual string JSONRequest { get; set; }
public virtual string JSONResponse { get; set; }
public virtual string RequestPath { get; set; }
public virtual string RequestSent { get; set; }
public virtual string RequestReceived { get; set; }
}
}
C# BorgunTest3DFinishProcessRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=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>