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 { PaymentAttempts } from './PaymentAttempts';
import { Result } from './Result';
import { TransactionErrorCodes } from './TransactionErrorCodes';
import { HttpFile } from '../http/http';
export class GetResponse {
'result'?: Result;
'status'?: GetResponseStatusEnum;
/**
* Depending on setting in merchant panel, error_code may be different than none for correct status, when acceptance of overpays and surcharges has been set.
*/
'errorCode'?: GetResponseErrorCodeEnum;
/**
* Transaction creation time
*/
'startTime'?: string;
/**
* Date of payment or empty for pending transactions
*/
'paymentTime'?: string;
/**
* Date of payment refund or empty for not refunded transactions
*/
'chargebackTime'?: string;
/**
* Payment channel ID can be recognised in merchant panel (your offer section)
*/
'channel'?: number;
/**
* Returns 1 if transaction was in test mode
*/
'testMode'?: GetResponseTestModeEnum;
/**
* transaction amount casted to float
*/
'amount'?: number;
/**
* The amount paid by customer
*/
'amountPaid'?: number;
/**
* customer name
*/
'name'?: string;
/**
* customer email
*/
'email'?: string;
/**
* customer address (parameter is empty if this field was not send with create method)
*/
'address'?: string;
/**
* customer postal code (parameter is empty if this field was not send with create method)
*/
'code'?: string;
/**
* customer city (parameter is empty if this field was not send with create method)
*/
'city'?: string;
/**
* customer phone number (parameter is empty if this field was not send with create method)
*/
'phone'?: string;
/**
* Two letters - see ISO 3166-1 document
*/
'country'?: string;
'err'?: TransactionErrorCodes;
/**
* List of payment attempts. Currently is returned only for BLIK payment method
*/
'paymentAttempts'?: Array;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "result",
"baseName": "result",
"type": "Result",
"format": ""
},
{
"name": "status",
"baseName": "status",
"type": "GetResponseStatusEnum",
"format": ""
},
{
"name": "errorCode",
"baseName": "error_code",
"type": "GetResponseErrorCodeEnum",
"format": ""
},
{
"name": "startTime",
"baseName": "start_time",
"type": "string",
"format": "datetime"
},
{
"name": "paymentTime",
"baseName": "payment_time",
"type": "string",
"format": "datetime"
},
{
"name": "chargebackTime",
"baseName": "chargeback_time",
"type": "string",
"format": "datetime"
},
{
"name": "channel",
"baseName": "channel",
"type": "number",
"format": ""
},
{
"name": "testMode",
"baseName": "test_mode",
"type": "GetResponseTestModeEnum",
"format": ""
},
{
"name": "amount",
"baseName": "amount",
"type": "number",
"format": ""
},
{
"name": "amountPaid",
"baseName": "amount_paid",
"type": "number",
"format": ""
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "email",
"baseName": "email",
"type": "string",
"format": ""
},
{
"name": "address",
"baseName": "address",
"type": "string",
"format": ""
},
{
"name": "code",
"baseName": "code",
"type": "string",
"format": ""
},
{
"name": "city",
"baseName": "city",
"type": "string",
"format": ""
},
{
"name": "phone",
"baseName": "phone",
"type": "string",
"format": ""
},
{
"name": "country",
"baseName": "country",
"type": "string",
"format": ""
},
{
"name": "err",
"baseName": "err",
"type": "TransactionErrorCodes",
"format": ""
},
{
"name": "paymentAttempts",
"baseName": "paymentAttempts",
"type": "Array",
"format": ""
} ];
static getAttributeTypeMap() {
return GetResponse.attributeTypeMap;
}
public constructor() {
}
}
export type GetResponseStatusEnum = "correct" | "paid" | "pending" | "error" | "chargeback" ;
export type GetResponseErrorCodeEnum = "none" | "overpay" | "surcharge" ;
export type GetResponseTestModeEnum = "0" | "1" ;