Requires the role: | Admin | Requires the permission: | ReadData |
POST | /borgunTest3D/Token/Single | Test 3D |
---|
export class BorgunVerifyCardResult
{
public transactionId?: string;
public actionCode?: string;
public constructor(init?: Partial<BorgunVerifyCardResult>) { (Object as any).assign(this, init); }
}
export class BorgunMetadata
{
public payload?: string;
public constructor(init?: Partial<BorgunMetadata>) { (Object as any).assign(this, init); }
}
export class BorgunTokenSingleInfo
{
public virtualNumber?: string;
public token?: string;
public pan?: string;
public expYear?: string;
public expMonth?: string;
public enabled?: boolean;
public verifyCardResult?: BorgunVerifyCardResult;
public metadata?: BorgunMetadata;
public constructor(init?: Partial<BorgunTokenSingleInfo>) { (Object as any).assign(this, init); }
}
export class BorgunTokenSingleResponse
{
public statusCode?: number;
public token?: BorgunTokenSingleInfo;
public uri?: string;
public message?: string;
public constructor(init?: Partial<BorgunTokenSingleResponse>) { (Object as any).assign(this, init); }
}
export class BorgunTest3DGetSingleTokenResponse
{
public response?: BorgunTokenSingleResponse;
public statusCode?: number;
public message?: string;
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<BorgunTest3DGetSingleTokenResponse>) { (Object as any).assign(this, init); }
}
export class BorgunVerifyCardRequest
{
public checkAmount?: number;
public currency?: string;
public cvc?: string;
public constructor(init?: Partial<BorgunVerifyCardRequest>) { (Object as any).assign(this, init); }
}
export class BorgunTokenSingleRequest
{
public pan?: string;
public expMonth?: string;
public expYear?: string;
public tokenLifetime?: number;
public verifyCard?: BorgunVerifyCardRequest;
public metadata?: BorgunMetadata;
public constructor(init?: Partial<BorgunTokenSingleRequest>) { (Object as any).assign(this, init); }
}
export class BorgunTest3DGetSingleTokenRequest
{
public request?: BorgunTokenSingleRequest;
public forcedPath?: string;
public forcedJSONRequest?: string;
public skipBorgunCall?: boolean;
public constructor(init?: Partial<BorgunTest3DGetSingleTokenRequest>) { (Object as any).assign(this, init); }
}
TypeScript BorgunTest3DGetSingleTokenRequest 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/Token/Single HTTP/1.1
Host: stubbur-autoupdates-live.smartnewapis.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<BorgunTest3DGetSingleTokenRequest 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:ExpMonth>String</d2p1:ExpMonth>
<d2p1:ExpYear>String</d2p1:ExpYear>
<d2p1:Metadata>
<d2p1:Payload>String</d2p1:Payload>
</d2p1:Metadata>
<d2p1:PAN>String</d2p1:PAN>
<d2p1:TokenLifetime>0</d2p1:TokenLifetime>
<d2p1:VerifyCard>
<d2p1:CVC>String</d2p1:CVC>
<d2p1:CheckAmount>0</d2p1:CheckAmount>
<d2p1:Currency>String</d2p1:Currency>
</d2p1:VerifyCard>
</Request>
<SkipBorgunCall>false</SkipBorgunCall>
</BorgunTest3DGetSingleTokenRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BorgunTest3DGetSingleTokenResponse 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:Message>String</d2p1:Message> <d2p1:StatusCode>0</d2p1:StatusCode> <d2p1:Token> <d2p1:Enabled>false</d2p1:Enabled> <d2p1:ExpMonth>String</d2p1:ExpMonth> <d2p1:ExpYear>String</d2p1:ExpYear> <d2p1:Metadata> <d2p1:Payload>String</d2p1:Payload> </d2p1:Metadata> <d2p1:PAN>String</d2p1:PAN> <d2p1:Token>String</d2p1:Token> <d2p1:VerifyCardResult> <d2p1:ActionCode>String</d2p1:ActionCode> <d2p1:TransactionId>String</d2p1:TransactionId> </d2p1:VerifyCardResult> <d2p1:VirtualNumber>String</d2p1:VirtualNumber> </d2p1:Token> <d2p1:Uri>String</d2p1:Uri> </Response> <StatusCode>0</StatusCode> </BorgunTest3DGetSingleTokenResponse>