Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Enrollment | Test 3D |
---|
export class BorgunMPIEnrollmentACSField
{
public name?: string;
public values?: string;
public constructor(init?: Partial<BorgunMPIEnrollmentACSField>) { (Object as any).assign(this, init); }
}
export class Borgun3DEnrollmentResponse
{
public resultStatus?: number;
public messageId?: string;
public enrollmentStatus?: string;
public mdErrorMessage?: string;
public mdStatus?: string;
public redirectToACSForm?: string;
public md?: string;
public mpiToken?: string;
public redirectToACSDAta?: BorgunMPIEnrollmentACSField[];
public constructor(init?: Partial<Borgun3DEnrollmentResponse>) { (Object as any).assign(this, init); }
}
export class BorgunTest3DEnrollmentResponse
{
public statusCode?: number;
public message?: string;
public response?: Borgun3DEnrollmentResponse;
public forcedPath?: string;
public forcedJSONRequest?: string;
public jsonRequest?: string;
public jsonResponse?: string;
public requestPath?: string;
public requestSent?: string;
public requestReceived?: string;
public constructor(init?: Partial<BorgunTest3DEnrollmentResponse>) { (Object as any).assign(this, init); }
}
export enum BorgunPaymentTypes
{
Unknown = 1,
Card = 2,
TokenSingle = 3,
TokenMulti = 4,
}
export class BorgunPaymentRequestMethod
{
public paymentType?: BorgunPaymentTypes;
public pan?: string;
public expYear?: string;
public expMonth?: string;
public cvC2?: string;
public token?: string;
public constructor(init?: Partial<BorgunPaymentRequestMethod>) { (Object as any).assign(this, init); }
}
export class Borgun3DEnrollmentRequest
{
public cardDetails?: BorgunPaymentRequestMethod;
public purchAmount?: number;
public exponent?: number;
public currency?: string;
public termURL?: string;
public transactionDate?: string;
public md?: string;
public description?: string;
public constructor(init?: Partial<Borgun3DEnrollmentRequest>) { (Object as any).assign(this, init); }
}
export class BorgunTest3DEnrollmentRequest
{
public request?: Borgun3DEnrollmentRequest;
public forcedPath?: string;
public forcedJSONRequest?: string;
public skipBorgunCall?: boolean;
public constructor(init?: Partial<BorgunTest3DEnrollmentRequest>) { (Object as any).assign(this, init); }
}
TypeScript BorgunTest3DEnrollmentRequest 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/Enrollment HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BorgunTest3DEnrollmentRequest 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:CardDetails>
<d2p1:CVC2>String</d2p1:CVC2>
<d2p1:ExpMonth>String</d2p1:ExpMonth>
<d2p1:ExpYear>String</d2p1:ExpYear>
<d2p1:PAN>String</d2p1:PAN>
<d2p1:PaymentType>Unknown</d2p1:PaymentType>
<d2p1:Token>String</d2p1:Token>
</d2p1:CardDetails>
<d2p1:Currency>String</d2p1:Currency>
<d2p1:Description>String</d2p1:Description>
<d2p1:Exponent>0</d2p1:Exponent>
<d2p1:MD>String</d2p1:MD>
<d2p1:PurchAmount>0</d2p1:PurchAmount>
<d2p1:TermURL>String</d2p1:TermURL>
<d2p1:TransactionDate>0001-01-01T00:00:00</d2p1:TransactionDate>
</Request>
<SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DEnrollmentRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BorgunTest3DEnrollmentResponse 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:EnrollmentStatus>String</d2p1:EnrollmentStatus> <d2p1:MD>String</d2p1:MD> <d2p1:MdErrorMessage>String</d2p1:MdErrorMessage> <d2p1:MdStatus>String</d2p1:MdStatus> <d2p1:MessageId>String</d2p1:MessageId> <d2p1:MpiToken>String</d2p1:MpiToken> <d2p1:RedirectToACSDAta> <d2p1:BorgunMPIEnrollmentACSField> <d2p1:Name>String</d2p1:Name> <d2p1:Values>String</d2p1:Values> </d2p1:BorgunMPIEnrollmentACSField> </d2p1:RedirectToACSDAta> <d2p1:RedirectToACSForm>String</d2p1:RedirectToACSForm> <d2p1:ResultStatus>0</d2p1:ResultStatus> </Response> <StatusCode>0</StatusCode> </BorgunTest3DEnrollmentResponse>