import { ResponseContext, RequestContext, HttpFile } from '../http/http'; import * as models from '../models/all'; import { Configuration} from '../configuration' import { BlikAlias } from '../models/BlikAlias'; import { BlikAliasResponse } from '../models/BlikAliasResponse'; import { BlikFields } from '../models/BlikFields'; import { BlikResponse } from '../models/BlikResponse'; import { CardsErrCode } from '../models/CardsErrCode'; import { ChargebackStatus } from '../models/ChargebackStatus'; import { CheckFields } from '../models/CheckFields'; import { CheckResponse } from '../models/CheckResponse'; import { CreateFields } from '../models/CreateFields'; import { CreateResponse } from '../models/CreateResponse'; import { DeregisterFields } from '../models/DeregisterFields'; import { GetFields } from '../models/GetFields'; import { GetResponse } from '../models/GetResponse'; import { Language } from '../models/Language'; import { MasspaymentAuthorizeFields } from '../models/MasspaymentAuthorizeFields'; import { MasspaymentAuthorizeResponse } from '../models/MasspaymentAuthorizeResponse'; import { MasspaymentCreateFields } from '../models/MasspaymentCreateFields'; import { MasspaymentCreateResponse } from '../models/MasspaymentCreateResponse'; import { MasspaymentErrCode } from '../models/MasspaymentErrCode'; import { MasspaymentErrDesc } from '../models/MasspaymentErrDesc'; import { MasspaymentPacksFields } from '../models/MasspaymentPacksFields'; import { MasspaymentPacksResponse } from '../models/MasspaymentPacksResponse'; import { MasspaymentTransfersFields } from '../models/MasspaymentTransfersFields'; import { MasspaymentTransfersResponse } from '../models/MasspaymentTransfersResponse'; import { Onetimer } from '../models/Onetimer'; import { PacksObject } from '../models/PacksObject'; import { PaymentAttempts } from '../models/PaymentAttempts'; import { PresaleFields } from '../models/PresaleFields'; import { RefundAnyFields } from '../models/RefundAnyFields'; import { RefundAnyResponse } from '../models/RefundAnyResponse'; import { RefundFields } from '../models/RefundFields'; import { RefundResponse } from '../models/RefundResponse'; import { RefundStatusResponse } from '../models/RefundStatusResponse'; import { RefundTransactionFields } from '../models/RefundTransactionFields'; import { RegisterSaleFields } from '../models/RegisterSaleFields'; import { RegisterSaleResponse } from '../models/RegisterSaleResponse'; import { ReportFields } from '../models/ReportFields'; import { ReportResponse } from '../models/ReportResponse'; import { Result } from '../models/Result'; import { SaleFields } from '../models/SaleFields'; import { SaleResponse } from '../models/SaleResponse'; import { SecuresaleFields } from '../models/SecuresaleFields'; import { SecuresaleResponse } from '../models/SecuresaleResponse'; import { TransactionErrorCodes } from '../models/TransactionErrorCodes'; import { TransfersObject } from '../models/TransfersObject'; import { VcFinishFields } from '../models/VcFinishFields'; import { VcPrepareFields } from '../models/VcPrepareFields'; import { VcPrepareResponse } from '../models/VcPrepareResponse'; import { ObservableCardsAPIApi } from "./ObservableAPI"; import { CardsAPIApiRequestFactory, CardsAPIApiResponseProcessor} from "../apis/CardsAPIApi"; export interface CardsAPIApiApiCardsApiKeyCheckPostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeyCheckPost */ apiKey: string /** * check method data * @type CheckFields * @memberof CardsAPIApiapiCardsApiKeyCheckPost */ basicData?: CheckFields } export interface CardsAPIApiApiCardsApiKeyDeregisterPostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeyDeregisterPost */ apiKey: string /** * Transaction data. * @type DeregisterFields * @memberof CardsAPIApiapiCardsApiKeyDeregisterPost */ basicData?: DeregisterFields } export interface CardsAPIApiApiCardsApiKeyPresalePostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeyPresalePost */ apiKey: string /** * Transaction data. * @type PresaleFields * @memberof CardsAPIApiapiCardsApiKeyPresalePost */ basicData?: PresaleFields } export interface CardsAPIApiApiCardsApiKeyRefundPostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeyRefundPost */ apiKey: string /** * Transaction data. * @type RefundFields * @memberof CardsAPIApiapiCardsApiKeyRefundPost */ basicData?: RefundFields } export interface CardsAPIApiApiCardsApiKeyRegisterSalePostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeyRegisterSalePost */ apiKey: string /** * Transaction data. * @type RegisterSaleFields * @memberof CardsAPIApiapiCardsApiKeyRegisterSalePost */ basicData?: RegisterSaleFields } export interface CardsAPIApiApiCardsApiKeySalePostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeySalePost */ apiKey: string /** * Transaction data. * @type SaleFields * @memberof CardsAPIApiapiCardsApiKeySalePost */ basicData?: SaleFields } export interface CardsAPIApiApiCardsApiKeySecuresalePostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeySecuresalePost */ apiKey: string /** * Transaction data. * @type SecuresaleFields * @memberof CardsAPIApiapiCardsApiKeySecuresalePost */ basicData?: SecuresaleFields } export interface CardsAPIApiApiCardsApiKeyVisacheckoutFinishPostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeyVisacheckoutFinishPost */ apiKey: string /** * Transaction data. * @type VcFinishFields * @memberof CardsAPIApiapiCardsApiKeyVisacheckoutFinishPost */ basicData?: VcFinishFields } export interface CardsAPIApiApiCardsApiKeyVisacheckoutPreparePostRequest { /** * The api key. * @type string * @memberof CardsAPIApiapiCardsApiKeyVisacheckoutPreparePost */ apiKey: string /** * Transaction data. * @type VcPrepareFields * @memberof CardsAPIApiapiCardsApiKeyVisacheckoutPreparePost */ basicData?: VcPrepareFields } export class ObjectCardsAPIApi { private api: ObservableCardsAPIApi public constructor(configuration: Configuration, requestFactory?: CardsAPIApiRequestFactory, responseProcessor?: CardsAPIApiResponseProcessor) { this.api = new ObservableCardsAPIApi(configuration, requestFactory, responseProcessor); } /** * Method, which can be used to ping our API server to establish a monitoring service on the Merchant system. * check * @param param the request object */ public apiCardsApiKeyCheckPost(param: CardsAPIApiApiCardsApiKeyCheckPostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeyCheckPost(param.apiKey, param.basicData, options).toPromise(); } /** * The method used to deregister client credit card token from Tpay and Merchant system.
A client can also do it himself from the link in an email after payment.

After successful deregistration Merchant will not be able anymore to charge client's card. Tpay system sends notification about this deregistration to merchant endpoint, defined in merchant panel settings.

NOTICE: To test this method you need to generate client token and calculate sign with your own API access data. * deregister * @param param the request object */ public apiCardsApiKeyDeregisterPost(param: CardsAPIApiApiCardsApiKeyDeregisterPostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeyDeregisterPost(param.apiKey, param.basicData, options).toPromise(); } /** * The method used to create a new sale for payment on demand. It can be called after receiving a notification with client registered token (cli_auth parameter). It can not be used if 'onetimer' parameter was sent in register_sale or client has unregistered (by the link in an email sent by tpay.com after registering client’s credit card or by API).

Additional information Please feel free to read detailed case study of Implementation of the recurrent payments * presale * @param param the request object */ public apiCardsApiKeyPresalePost(param: CardsAPIApiApiCardsApiKeyPresalePostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeyPresalePost(param.apiKey, param.basicData, options).toPromise(); } /** * The method used to transfer money back to the client. The refund can reference to chosen sale (sale_auth) or directly to the client (cli_auth).

In both cases, the amount is adjustable in parameter amount. If the only cli_auth is sent, the amount parameter is required. If sale_auth is passed amount and currency are not necessary - the system will take default values from the specified sale and make a full amount refund.
If you pass the amount parameter and specific sale_auth, you can create more than one refund until the sum of all refunds reach the transaction amount.

In test mode this method has 50% probability of success and the status parameter is picked randomly.
* refund * @param param the request object */ public apiCardsApiKeyRefundPost(param: CardsAPIApiApiCardsApiKeyRefundPostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeyRefundPost(param.apiKey, param.basicData, options).toPromise(); } /** * The method used to create sale initialisation in tpay.com system. The successful request returns sale_auth used to redirect a client to transaction panel.

The parameter sale_auth can be used to redirect a client to payment transaction panel:
https://secure.tpay.com/cards/
with argument sale_auth passed with the POST or GET method.

Test mode notice!
In test mode, the transaction panel offers multiple system answers. You can choose at the transaction panel (instead of making a real transaction) to accept or decline payment to test all paths. In production mode client will be directly redirected to payment gateway with credit card data form.
Notification about positive transaction status will be sent to result URL which is set in account settings. * register sale * @param param the request object */ public apiCardsApiKeyRegisterSalePost(param: CardsAPIApiApiCardsApiKeyRegisterSalePostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeyRegisterSalePost(param.apiKey, param.basicData, options).toPromise(); } /** * The method used to execute created sale with presale method. Sale defined with sale_auth can be executed only once. If the method is called second time with the same parameters, the system returns actual sale status - in parameter status - done for correct payment and declined for rejected payment. In that case, client card is not charged the second time.

Passed cli_auth has to match with cli_auth used while creating a sale in presale method.

Test mode notice! The method will return correct status with 50% probability. The same concerns declined status. In this case, reason value is also randomly picked. * sale * @param param the request object */ public apiCardsApiKeySalePost(param: CardsAPIApiApiCardsApiKeySalePostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeySalePost(param.apiKey, param.basicData, options).toPromise(); } /** * This method allows Merchant to host payment form on his website and perform sale without any client redirection to tpay.com system. Securesale method supports 3D Secure validation which is an additional security layer for online credit and debit card transactions. This approach requires special security considerations. We support secure communication by encrypting card data (card number, validity date and cvv/cvs number) on the client side (javascript) with Merchant public RSA key and send it as one parameter (card) to our API gate. A valid SSL certificate on the Merchant domain is required. Application flow is presented below for clarification:

1. Generate webpage with your public RSA key in javascript
2. Before sending payment form, insert new input with encrypted card data using your public key and clear inputs with card data so only encrypted data will be sent and submit form.
3. In backend prepare parameters and send them with securesale method
4. Inform client about payment result

Card cypher is made from string

card number|expiry date(MM/YY or MM/YYYY)|cvv or cvc|host

eg. \"1234567891234567|05/17|123|https://merchantwebsite.com\"

We have published code samples, libraries and instructions to give some insights on the process - see https://github.com/tpay-com/tpay-php . The library used in the example has a limit of 117 input characters for encryption.
In production mode, this generated hash works only once and should always be generated even for the same card data.

There are two ways for performing payment

a) Pay by card without 3D- Secure.
If input parameters are correct, request is processed correctly and the entered card does not have the 3D-Secure option enabled, method returns parameters in JSON format

b) Pay by card with 3D-Secure.
If input parameters are correct, the request is processed correctly and the card has enabled the 3D-Secure, the method returns the 3ds_url parameter in JSON format.

An example 3ds URL is presented below

https://secure.tpay.com/cards/?sale_auth=2587bf3a98dfa699ef9d01eba38359b7

• The best way to implement 3DS is to open a link to 3D-Secure authentication in a new window. If this method is used, parameter \"enable_pow_url\" should be sent with value 1. After a correct authorization, a customer will be redirected to the Merchant’s Site. Return URL is set in Merchant’s Panel or sent dynamically.

• Do not use an inline frame to implement the 3D-Secure authentication on Merchant’s Site. In this case, some banks can block 3DS authorisation.

The parameters are sent with POST method. Merchant system has to respond to the notification by printing array in JSON format.
See Card's notifications section.

Test mode notice!
In test mode, transaction panel offers the choice of system answer for transactions with 3D-Secure authentication. You can choose to accept or decline payment to test all paths.

Additional information Please feel free to read detailed case study of Implementation of the card payment gateway at the store's website * secure sale * @param param the request object */ public apiCardsApiKeySecuresalePost(param: CardsAPIApiApiCardsApiKeySecuresalePostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeySecuresalePost(param.apiKey, param.basicData, options).toPromise(); } /** * The Method used to finish Visa Checkout payment.

Summary_data has format compliant with Visa Checkout Summary Payment Data. Its structure is described in Visa Checkout documentation at
extracting-consumer-data

The example table with this format can be found at Link

When some data change between visacheckout_prepare and visacheckout_finish, you should send the modified data with the summary_data table. You can only send to tpay.com the data, which changes (i.e. only the amount ) but you need to send it in the summary_data JSON structure.
Other fields if not changed don’t have to be sent.
The response format is the same as in SecureSale method - see the method for more details.

NOTICE: To use Visa Checkout methods, you need to have access to cards API at your account and pass Visa requirements (see Visa Checkout Integration section). * visacheckout finish * @param param the request object */ public apiCardsApiKeyVisacheckoutFinishPost(param: CardsAPIApiApiCardsApiKeyVisacheckoutFinishPostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeyVisacheckoutFinishPost(param.apiKey, param.basicData, options).toPromise(); } /** * The method used to prepare Visa Checkout payment.

NOTICE: To use Visa Checkout methods, you need to have access to cards API at your account and pass Visa requirements (see Visa Checkout Integration section). * visacheckout prepare * @param param the request object */ public apiCardsApiKeyVisacheckoutPreparePost(param: CardsAPIApiApiCardsApiKeyVisacheckoutPreparePostRequest, options?: Configuration): Promise { return this.api.apiCardsApiKeyVisacheckoutPreparePost(param.apiKey, param.basicData, options).toPromise(); } } import { ObservableMasspaymentsApi } from "./ObservableAPI"; import { MasspaymentsApiRequestFactory, MasspaymentsApiResponseProcessor} from "../apis/MasspaymentsApi"; export interface MasspaymentsApiApiGwApiKeyMasspaymentAuthorizePostRequest { /** * The api key. * @type string * @memberof MasspaymentsApiapiGwApiKeyMasspaymentAuthorizePost */ apiKey: string /** * Transaction data. * @type MasspaymentAuthorizeFields * @memberof MasspaymentsApiapiGwApiKeyMasspaymentAuthorizePost */ basicData?: MasspaymentAuthorizeFields } export interface MasspaymentsApiApiGwApiKeyMasspaymentCreatePostRequest { /** * The api key. * @type string * @memberof MasspaymentsApiapiGwApiKeyMasspaymentCreatePost */ apiKey: string /** * Transaction data. * @type MasspaymentCreateFields * @memberof MasspaymentsApiapiGwApiKeyMasspaymentCreatePost */ basicData?: MasspaymentCreateFields } export interface MasspaymentsApiApiGwApiKeyMasspaymentPacksPostRequest { /** * The api key. * @type string * @memberof MasspaymentsApiapiGwApiKeyMasspaymentPacksPost */ apiKey: string /** * Transaction data. * @type MasspaymentPacksFields * @memberof MasspaymentsApiapiGwApiKeyMasspaymentPacksPost */ basicData?: MasspaymentPacksFields } export interface MasspaymentsApiApiGwApiKeyMasspaymentTransfersPostRequest { /** * The api key. * @type string * @memberof MasspaymentsApiapiGwApiKeyMasspaymentTransfersPost */ apiKey: string /** * Transaction data. * @type MasspaymentTransfersFields * @memberof MasspaymentsApiapiGwApiKeyMasspaymentTransfersPost */ basicData?: MasspaymentTransfersFields } export class ObjectMasspaymentsApi { private api: ObservableMasspaymentsApi public constructor(configuration: Configuration, requestFactory?: MasspaymentsApiRequestFactory, responseProcessor?: MasspaymentsApiResponseProcessor) { this.api = new ObservableMasspaymentsApi(configuration, requestFactory, responseProcessor); } /** * This method authorizes the processing of chosen pack of transfers. * authorize * @param param the request object */ public apiGwApiKeyMasspaymentAuthorizePost(param: MasspaymentsApiApiGwApiKeyMasspaymentAuthorizePostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyMasspaymentAuthorizePost(param.apiKey, param.basicData, options).toPromise(); } /** * This method adds a pack of transfers to the Tpay system. After executing a correct operation, you need to request authorize method to confirm payout processing. Transfers are being made once a day on workdays. You can find confirmation code in Merchant Panel, settings tab-> notifications. Variable $seller_id is Merchant’s ID in tpay.com system.

Example CSV file
Each line contains one transfer formatted as in the example below. Columns are separated by a semicolon.
The file does not have a header.

account number (26 digits);receiver (part 1) (35 characters);receiver (part 2) (35 characters);receiver (part 3) (35 characters);receiver (part 4) (35 characters);amount (dot or comma separator);title (part 1) (35 characters);title (part 2) (35 characters);Tpay transaction ID

Place transfer receiver name in 1-4 receiver fields. Each field can be maximum 35 characters long.
If receiver name is for example 40 characters long, you should put 35 in receiver 1 field, and 5 characters in receiver 2 field.
The same rule is valid for title field. The transaction ID field is not required, whithout this field, the file format looks like this:

account number (26 digits);receiver (part 1) (35 characters);receiver (part 2) (35 characters);receiver (part 3) (35 characters);receiver (part 4) (35 characters);amount (dot or comma separator);title (part 1) (35 characters);title (part 2) (35 characters);Transaction ID from merchant system

Example CSV file can be downloaded from:
Download * create * @param param the request object */ public apiGwApiKeyMasspaymentCreatePost(param: MasspaymentsApiApiGwApiKeyMasspaymentCreatePostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyMasspaymentCreatePost(param.apiKey, param.basicData, options).toPromise(); } /** * This method allows browsing through created packages. If none of the parameters has been sent, all packages for the Merchant’s account will be returned. If any records exist, there will be pack objects in pack section representing respective transfer packages. You can send pack_id to browse contents of specific pack or send time range to browse all packages within time range * packs * @param param the request object */ public apiGwApiKeyMasspaymentPacksPost(param: MasspaymentsApiApiGwApiKeyMasspaymentPacksPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyMasspaymentPacksPost(param.apiKey, param.basicData, options).toPromise(); } /** * This method allows browsing through transfers within one package. Required parameters (besides those described in mass payments main description), at least 1 is obligatory. If any records exist, there will be transfer objects in transfers section representing several transfers. * transfers * @param param the request object */ public apiGwApiKeyMasspaymentTransfersPost(param: MasspaymentsApiApiGwApiKeyMasspaymentTransfersPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyMasspaymentTransfersPost(param.apiKey, param.basicData, options).toPromise(); } } import { ObservableTransactionAPIApi } from "./ObservableAPI"; import { TransactionAPIApiRequestFactory, TransactionAPIApiResponseProcessor} from "../apis/TransactionAPIApi"; export interface TransactionAPIApiApiGwApiKeyChargebackAnyPostRequest { /** * The api key. * @type string * @memberof TransactionAPIApiapiGwApiKeyChargebackAnyPost */ apiKey: string /** * Request body. * @type RefundAnyFields * @memberof TransactionAPIApiapiGwApiKeyChargebackAnyPost */ refundAnyData?: RefundAnyFields } export interface TransactionAPIApiApiGwApiKeyChargebackStatusPostRequest { /** * The api key. * @type string * @memberof TransactionAPIApiapiGwApiKeyChargebackStatusPost */ apiKey: string /** * Request body. * @type RefundTransactionFields * @memberof TransactionAPIApiapiGwApiKeyChargebackStatusPost */ refundTransactionData?: RefundTransactionFields } export interface TransactionAPIApiApiGwApiKeyChargebackTransactionPostRequest { /** * The api key. * @type string * @memberof TransactionAPIApiapiGwApiKeyChargebackTransactionPost */ apiKey: string /** * Request body. * @type RefundTransactionFields * @memberof TransactionAPIApiapiGwApiKeyChargebackTransactionPost */ refundTransactionData?: RefundTransactionFields } export interface TransactionAPIApiApiGwApiKeyTransactionBlikPostRequest { /** * The api key. * @type string * @memberof TransactionAPIApiapiGwApiKeyTransactionBlikPost */ apiKey: string /** * Request body. * @type BlikFields * @memberof TransactionAPIApiapiGwApiKeyTransactionBlikPost */ blikData?: BlikFields } export interface TransactionAPIApiApiGwApiKeyTransactionCreatePostRequest { /** * The api key. * @type string * @memberof TransactionAPIApiapiGwApiKeyTransactionCreatePost */ apiKey: string /** * Transaction data. * @type CreateFields * @memberof TransactionAPIApiapiGwApiKeyTransactionCreatePost */ basicData?: CreateFields } export interface TransactionAPIApiApiGwApiKeyTransactionGetPostRequest { /** * The api key. * @type string * @memberof TransactionAPIApiapiGwApiKeyTransactionGetPost */ apiKey: string /** * Request body. * @type GetFields * @memberof TransactionAPIApiapiGwApiKeyTransactionGetPost */ getData?: GetFields } export interface TransactionAPIApiApiGwApiKeyTransactionReportPostRequest { /** * The api key. * @type string * @memberof TransactionAPIApiapiGwApiKeyTransactionReportPost */ apiKey: string /** * Request body. * @type ReportFields * @memberof TransactionAPIApiapiGwApiKeyTransactionReportPost */ reportData?: ReportFields } export class ObjectTransactionAPIApi { private api: ObservableTransactionAPIApi public constructor(configuration: Configuration, requestFactory?: TransactionAPIApiRequestFactory, responseProcessor?: TransactionAPIApiResponseProcessor) { this.api = new ObservableTransactionAPIApi(configuration, requestFactory, responseProcessor); } /** * The method used to refund part of the transaction amount.

NOTICE: This method works only in production mode!
To test this method, you need to create the transaction in production mode with your own API access. * any * @param param the request object */ public apiGwApiKeyChargebackAnyPost(param: TransactionAPIApiApiGwApiKeyChargebackAnyPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyChargebackAnyPost(param.apiKey, param.refundAnyData, options).toPromise(); } /** * The method used to check transaction refunds statuses.
Some refunds statuses may be not available immediately after calling refund methods due to gathering refund details process. * status * @param param the request object */ public apiGwApiKeyChargebackStatusPost(param: TransactionAPIApiApiGwApiKeyChargebackStatusPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyChargebackStatusPost(param.apiKey, param.refundTransactionData, options).toPromise(); } /** * The method used to refund full transaction amount. You can get transaction title from 'create' method when generating the transaction.

NOTICE: This method works only in production mode!
To test this method, you need to create the transaction in production mode with your own API access. * transaction * @param param the request object */ public apiGwApiKeyChargebackTransactionPost(param: TransactionAPIApiApiGwApiKeyChargebackTransactionPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyChargebackTransactionPost(param.apiKey, param.refundTransactionData, options).toPromise(); } /** * This method allows sending a BLIK code in direct communication between merchant and BLIK system. In ‘create’ method you should set 150 as a value for parameter ‘group’, this is a BLIK payment channel. Method returns parameter ‘result’ equal to 1 which means that payment popup has been successfully displayed at customer mobile application. After accepting payment by the customer, tpay.com system sends a standard notification to merchant's endpoint declared in wyn_url parameter (this parameter should be sent in 'create' method.)

NOTICE: to test this method, you need to create the transaction with 'create' method and replace title parameter value with the returned title.
Blik method works with the specific set of parameters depending on payment type case. Please see BLIK workflow section. * blik * @param param the request object */ public apiGwApiKeyTransactionBlikPost(param: TransactionAPIApiApiGwApiKeyTransactionBlikPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyTransactionBlikPost(param.apiKey, param.blikData, options).toPromise(); } /** * This method allows you to prepare transaction for a customer. The method returns transaction title required for other API methods and redirection link for a customer.
This method also returns account details for manual money transfers. * create * @param param the request object */ public apiGwApiKeyTransactionCreatePost(param: TransactionAPIApiApiGwApiKeyTransactionCreatePostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyTransactionCreatePost(param.apiKey, param.basicData, options).toPromise(); } /** * This method allows you to get all information about the transaction by sending previously generated title. * get * @param param the request object */ public apiGwApiKeyTransactionGetPost(param: TransactionAPIApiApiGwApiKeyTransactionGetPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyTransactionGetPost(param.apiKey, param.getData, options).toPromise(); } /** * This method returns payments report for the declared time range, generated in CSV format (semicolon separators) and encoded in base64 - the same format as in merchant panel. If you like to arrange result as an associative array, you can use the ready script from Tpay PHP library. * report * @param param the request object */ public apiGwApiKeyTransactionReportPost(param: TransactionAPIApiApiGwApiKeyTransactionReportPostRequest, options?: Configuration): Promise { return this.api.apiGwApiKeyTransactionReportPost(param.apiKey, param.reportData, options).toPromise(); } }