/** * Tpay.com Technical Documentation *

Demo transaction/masspayments api key:

Demo cards api key:

The terms seller and merchant are used interchangeably and they both refer to a person or a company registered at tpay.com to accept online payments.
Whenever term merchant panel is used it refers to the part of tpay.com website located at secure.tpay.com/panel.

For sandbox purposes use merchant demo account

ID - 1010, Password - demo

Remember that this is a shared account, so all data passed through will be publicly visible.

* * OpenAPI spec version: 1.2.2 * Contact: pt@tpay.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { CardsErrCode } from './CardsErrCode'; import { Result } from './Result'; import { HttpFile } from '../http/http'; export class SecuresaleResponse { '_3dsUrl'?: string; 'result'?: Result; /** * This parameter is present in response and included in sign calculation only when the merchant account is in test mode. */ 'testMode'?: string; /** * Transaction id in tpay.com system */ 'saleAuth'?: string; /** * Client token */ 'cliAuth'?: string; /** * transaction currency in ISO numeric format */ 'currency'?: number; /** * transaction amount casted to float */ 'amount'?: number; /** * Date of payment */ 'date'?: string; 'status'?: SecuresaleResponseStatusEnum; /** * Acquirer (Elavon / eService) rejection code - see \"Card Payments Rejection Codes\" for more details */ 'reason'?: string; /** * Card number last 4 digits - for example ****1234 */ 'card'?: string; /** * sign is calculated from cryptographic hash function set in Merchant panel (default SHA-1) hash_alg(test_mode + sale_auth + cli_auth + card + currency + amount + date + status + verification code) */ 'sign'?: string; 'errCode'?: CardsErrCode; /** * Error code description if an error occurs or not present in response. - see \"Card Payments Rejection Codes\" for more details */ 'errDesc'?: string; static readonly discriminator: string | undefined = undefined; static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [ { "name": "_3dsUrl", "baseName": "3ds_url", "type": "string", "format": "JSON" }, { "name": "result", "baseName": "result", "type": "Result", "format": "" }, { "name": "testMode", "baseName": "test_mode", "type": "string", "format": "" }, { "name": "saleAuth", "baseName": "sale_auth", "type": "string", "format": "" }, { "name": "cliAuth", "baseName": "cli_auth", "type": "string", "format": "" }, { "name": "currency", "baseName": "currency", "type": "number", "format": "" }, { "name": "amount", "baseName": "amount", "type": "number", "format": "" }, { "name": "date", "baseName": "date", "type": "string", "format": "datetime" }, { "name": "status", "baseName": "status", "type": "SecuresaleResponseStatusEnum", "format": "" }, { "name": "reason", "baseName": "reason", "type": "string", "format": "" }, { "name": "card", "baseName": "card", "type": "string", "format": "" }, { "name": "sign", "baseName": "sign", "type": "string", "format": "" }, { "name": "errCode", "baseName": "err_code", "type": "CardsErrCode", "format": "" }, { "name": "errDesc", "baseName": "err_desc", "type": "string", "format": "" } ]; static getAttributeTypeMap() { return SecuresaleResponse.attributeTypeMap; } public constructor() { } } export type SecuresaleResponseStatusEnum = "correct" | "declined" ;