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 { Language } from './Language';
import { Onetimer } from './Onetimer';
import { HttpFile } from '../http/http';
export class RegisterSaleFields {
/**
* customer name
*/
'name': string;
/**
* customer email
*/
'email': string;
/**
* transaction description
*/
'desc': string;
/**
* transaction amount casted to float
*/
'amount': number;
/**
* API password.
*/
'apiPassword': string;
/**
* Sign is calculated from cryptographic hash function set in Merchant’s Panel (default SHA-1): sha1(method + name + email + desc + amount + currency + order_id + onetimer + language + verification code) where + means concatenation with ampersand symbol. ie. name + email = john done&john.doe@example.com
*/
'sign': string;
/**
* transaction currency in ISO numeric format
*/
'currency'?: number;
'onetimer'?: Onetimer;
/**
* url to redirect customer in case of payment success
*/
'powUrl'?: string;
/**
* url to redirect customer in case of payment failure
*/
'powUrlBlad'?: string;
/**
* merchant order ID used to recognise payment
*/
'orderId'?: string;
'language'?: Language;
static readonly discriminator: string | undefined = undefined;
static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "email",
"baseName": "email",
"type": "string",
"format": ""
},
{
"name": "desc",
"baseName": "desc",
"type": "string",
"format": ""
},
{
"name": "amount",
"baseName": "amount",
"type": "number",
"format": ""
},
{
"name": "apiPassword",
"baseName": "api_password",
"type": "string",
"format": ""
},
{
"name": "sign",
"baseName": "sign",
"type": "string",
"format": ""
},
{
"name": "currency",
"baseName": "currency",
"type": "number",
"format": ""
},
{
"name": "onetimer",
"baseName": "onetimer",
"type": "Onetimer",
"format": ""
},
{
"name": "powUrl",
"baseName": "pow_url",
"type": "string",
"format": ""
},
{
"name": "powUrlBlad",
"baseName": "pow_url_blad",
"type": "string",
"format": ""
},
{
"name": "orderId",
"baseName": "order_id",
"type": "string",
"format": ""
},
{
"name": "language",
"baseName": "language",
"type": "Language",
"format": ""
} ];
static getAttributeTypeMap() {
return RegisterSaleFields.attributeTypeMap;
}
public constructor() {
}
}