UNPKG

@lexriver/yandex-pay

Version:

A TypeScript client for Yandex Pay API to integrate payment processing in your Node.js applications

21 lines (20 loc) 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OperationService = void 0; const BaseService_js_1 = require("./BaseService.js"); /** * Service for working with operations */ class OperationService extends BaseService_js_1.BaseService { /** * Request to get details about the payment authorization, debiting, refund, or cancellation operations. * * @param externalOperationId External operation ID * @returns Operation details */ async getOperation(externalOperationId) { const response = await this.get(`/v1/operations/${externalOperationId}`); return response.operations; } } exports.OperationService = OperationService;