// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.4 // protoc v7.34.0 // source: deposit.proto /* eslint-disable */ import { GrpcMethod, GrpcStreamMethod } from "@nestjs/microservices"; import { Observable } from "rxjs"; export const protobufPackage = "deposit.v1"; export interface ApplyBitGoCustodyAckRequest { /** TRON | BSC */ network: string; txHash: string; logIndex?: number | undefined; bitgoTransferId: string; bitgoState: string; /** может быть пустым */ webhookEventId: string; } export interface ApplyBitGoCustodyAckResponse { matched: number; depositTxIds: string[]; } export interface CreatePaymentDillDepositRequest { userId: string; /** USDT to credit (major units), e.g. "100.50" */ amount: string; /** Pay-in: RUB (SBP) | USDT (crypto) */ paymentCurrency: string; /** Зачисление в Ledger (по умолчанию USDT) */ creditAsset?: | string | undefined; /** Сеть баланса в Ledger (по умолчанию TRON) */ creditNetwork?: | string | undefined; /** WALLET_TOPUP | CARD_TOPUP */ purpose?: | string | undefined; /** JSON payload for downstream orchestration (e.g. card top-up). */ purposePayloadJson?: string | undefined; } export interface CreatePaymentDillDepositResponse { depositId: string; status: string; paymentUrl?: string | undefined; cryptoWallet?: string | undefined; qrLink?: string | undefined; redirectUrl?: string | undefined; providerTransactionId?: | string | undefined; /** Exact pay-in amount in major units from provider quote. */ payAmount?: | string | undefined; /** Pay-in amount in minor units (from payment microservice) */ amountMinor?: | string | undefined; /** Pay-in currency (RUB | USDT) */ paymentCurrency?: | string | undefined; /** USDT to credit (requested / quoted output) */ creditAmount?: string | undefined; requestedCreditAmount?: string | undefined; creditAsset?: string | undefined; creditNetwork?: string | undefined; } export interface HandlePaymentDillDepositWebhookRequest { jsonPayload: string; } export interface HandlePaymentDillDepositWebhookResponse { ok: boolean; depositId: string; status: string; } export interface GetPaymentDillDepositStatusRequest { userId: string; depositId: string; } export interface GetPaymentDillDepositStatusResponse { depositId: string; status: string; paymentCurrency?: string | undefined; purpose?: string | undefined; requestedCreditAmount?: string | undefined; amountMajor?: string | undefined; creditAmount?: string | undefined; creditAsset?: string | undefined; creditNetwork?: string | undefined; providerTransactionId?: string | undefined; ledgerDepositId?: string | undefined; cardTopupStatus?: string | undefined; cardTopupError?: string | undefined; cardCreateStatus?: string | undefined; cardCreateError?: string | undefined; createdCardId?: number | undefined; createdAt?: string | undefined; completedAt?: string | undefined; expiresAt?: string | undefined; expiredAt?: string | undefined; payoutStatus?: string | undefined; payoutError?: string | undefined; payoutId?: number | undefined; } export const DEPOSIT_V1_PACKAGE_NAME = "deposit.v1"; export interface DepositIntegrationClient { /** Привязать событие BitGo к уже найденному ончейн-депозиту (mpc webhook). */ applyBitGoCustodyAck(request: ApplyBitGoCustodyAckRequest): Observable; /** Пополнение через payment microservice (ARBIPAY): RUB SBP / USDT. */ createPaymentDillDeposit(request: CreatePaymentDillDepositRequest): Observable; handlePaymentDillDepositWebhook( request: HandlePaymentDillDepositWebhookRequest, ): Observable; getPaymentDillDepositStatus( request: GetPaymentDillDepositStatusRequest, ): Observable; } export interface DepositIntegrationController { /** Привязать событие BitGo к уже найденному ончейн-депозиту (mpc webhook). */ applyBitGoCustodyAck( request: ApplyBitGoCustodyAckRequest, ): Promise | Observable | ApplyBitGoCustodyAckResponse; /** Пополнение через payment microservice (ARBIPAY): RUB SBP / USDT. */ createPaymentDillDeposit( request: CreatePaymentDillDepositRequest, ): | Promise | Observable | CreatePaymentDillDepositResponse; handlePaymentDillDepositWebhook( request: HandlePaymentDillDepositWebhookRequest, ): | Promise | Observable | HandlePaymentDillDepositWebhookResponse; getPaymentDillDepositStatus( request: GetPaymentDillDepositStatusRequest, ): | Promise | Observable | GetPaymentDillDepositStatusResponse; } export function DepositIntegrationControllerMethods() { return function (constructor: Function) { const grpcMethods: string[] = [ "applyBitGoCustodyAck", "createPaymentDillDeposit", "handlePaymentDillDepositWebhook", "getPaymentDillDepositStatus", ]; for (const method of grpcMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcMethod("DepositIntegration", method)(constructor.prototype[method], method, descriptor); } const grpcStreamMethods: string[] = []; for (const method of grpcStreamMethods) { const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method); GrpcStreamMethod("DepositIntegration", method)(constructor.prototype[method], method, descriptor); } }; } export const DEPOSIT_INTEGRATION_SERVICE_NAME = "DepositIntegration";