// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.4 // protoc v7.34.0 // source: payout.proto /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; export const protobufPackage = "payout.v1"; export interface ParsePromptPayQrRequest { qrString: string; userId: string; amount: number; } export interface ParsePromptPayQrResponse { scanId: number; inputAmountToPay: string; inputCurrencyToPay: string; convertedAmountToPay: string; convertedCurrencyToPay: string; feePercent: number; feeOnConverted: string; convertedAmountWithFee: string; } export interface ConfirmPayoutPaymentRequest { scanId: number; userId: string; } export interface ConfirmPayoutPaymentResponse { payoutId: number; status: string; } export interface HandlePayoutWebhookRequest { rawBody: Uint8Array; xSignature: string; } export interface HandlePayoutWebhookResponse { ok: boolean; } export interface GetPayoutRequest { payoutId: number; } export interface GetPayoutResponse { payoutId: number; scanId: number; status: string; finalConvertedAmount?: string | undefined; finalConvertedCurrency?: string | undefined; createdAt: string; completedAt?: string | undefined; } export const PAYOUT_V1_PACKAGE_NAME = "payout.v1"; export interface PayoutServiceClient { parsePromptPayQr(request: ParsePromptPayQrRequest): Observable; confirmPayoutPayment(request: ConfirmPayoutPaymentRequest): Observable; handlePayoutWebhook(request: HandlePayoutWebhookRequest): Observable; getPayout(request: GetPayoutRequest): Observable; } export interface PayoutServiceController { parsePromptPayQr( request: ParsePromptPayQrRequest, ): Promise | Observable | ParsePromptPayQrResponse; confirmPayoutPayment( request: ConfirmPayoutPaymentRequest, ): Promise | Observable | ConfirmPayoutPaymentResponse; handlePayoutWebhook( request: HandlePayoutWebhookRequest, ): Promise | Observable | HandlePayoutWebhookResponse; getPayout(request: GetPayoutRequest): Promise | Observable | GetPayoutResponse; } export function PayoutServiceControllerMethods() { return function (constructor: Function) { const grpcMethods: string[] = ["parsePromptPayQr", "confirmPayoutPayment", "handlePayoutWebhook", "getPayout"]; for (const method of grpcMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcMethod("PayoutService", method)(constructor.prototype[method], method, descriptor); } const grpcStreamMethods: string[] = []; for (const method of grpcStreamMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcStreamMethod("PayoutService", method)(constructor.prototype[method], method, descriptor); } }; } export const PAYOUT_SERVICE_NAME = "PayoutService";