UNPKG

@spare-technologies/spare-typescript-sdk

Version:
41 lines (40 loc) 1.54 kB
import { ISpPaymentClient } from "./ISpPaymentClient"; import { SpDomesticPaymentResponse } from "../Models/Payment/Domestic/SpDomesticPaymentResponse"; import { SpPaymentClientOptions } from "./SpPaymentClientOptions"; import { SpareSdkResponse } from "../Models/Response/SpareSdkResponse"; import "../../Helpers/Extensions/SerilizableExtension"; import { SpCreateDomesticPaymentResponse } from "../Models/Payment/Domestic/SpCreateDomesticPaymentResponse"; import { SpDomesticPaymentRequest } from "../Models/Payment/Domestic/SpDomesticPaymentRequest"; export declare class SpPaymentClient implements ISpPaymentClient { private _clientOptions; private readonly headers; private serializer; private GetUrl; private static GetBody; constructor(_clientOptions: SpPaymentClientOptions); /*** * Create domestic payment * @param payment * @param signature * @constructor */ CreateDomesticPayment(payment: SpDomesticPaymentRequest, signature: string): Promise<SpCreateDomesticPaymentResponse>; /*** * Get domestic payment * @param id * @constructor */ GetDomesticPayment(id: string): Promise<SpareSdkResponse<SpDomesticPaymentResponse, object>>; /*** * List domestic payment * @param start * @param perPage * @constructor */ ListDomesticPayments(start?: number, perPage?: number): Promise<SpareSdkResponse<SpDomesticPaymentResponse[], object>>; /** * Build proxy object * @private */ private buildProxy; }