From cbb75f0110cf9fd9627276d098c91aedd3bbac04 Mon Sep 17 00:00:00 2001 From: AlexSserb Date: Sat, 28 Sep 2024 20:19:44 +0400 Subject: [PATCH] fix: open-api usage for deal barcodes print --- src/client/index.ts | 3 +++ src/client/models/BillStatusUpdateRequest.ts | 3 ++- src/client/models/GetDealProductsBarcodesPdfRequest.ts | 5 +++++ src/client/models/GetDealProductsBarcodesPdfResponse.ts | 7 ++++++- src/client/services/DealService.ts | 6 +++--- 5 files changed, 19 insertions(+), 5 deletions(-) diff --git a/src/client/index.ts b/src/client/index.ts index 98d5d5a..d0066ea 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -25,6 +25,7 @@ export type { BaseEnumListSchema } from './models/BaseEnumListSchema'; export type { BaseEnumSchema } from './models/BaseEnumSchema'; export type { BaseMarketplaceSchema } from './models/BaseMarketplaceSchema'; export type { BaseShippingWarehouseSchema } from './models/BaseShippingWarehouseSchema'; +export type { BillPaymentInfo } from './models/BillPaymentInfo'; export type { BillPaymentStatus } from './models/BillPaymentStatus'; export type { BillStatusUpdateRequest } from './models/BillStatusUpdateRequest'; export type { Body_upload_product_image } from './models/Body_upload_product_image'; @@ -143,6 +144,8 @@ export type { GetBarcodeTemplateByIdResponse } from './models/GetBarcodeTemplate export type { GetClientMarketplacesRequest } from './models/GetClientMarketplacesRequest'; export type { GetClientMarketplacesResponse } from './models/GetClientMarketplacesResponse'; export type { GetDealBillById } from './models/GetDealBillById'; +export type { GetDealProductsBarcodesPdfRequest } from './models/GetDealProductsBarcodesPdfRequest'; +export type { GetDealProductsBarcodesPdfResponse } from './models/GetDealProductsBarcodesPdfResponse'; export type { GetPaymentRecordsResponse } from './models/GetPaymentRecordsResponse'; export type { GetProductBarcodePdfRequest } from './models/GetProductBarcodePdfRequest'; export type { GetProductBarcodePdfResponse } from './models/GetProductBarcodePdfResponse'; diff --git a/src/client/models/BillStatusUpdateRequest.ts b/src/client/models/BillStatusUpdateRequest.ts index e1a5848..e1249f4 100644 --- a/src/client/models/BillStatusUpdateRequest.ts +++ b/src/client/models/BillStatusUpdateRequest.ts @@ -2,11 +2,12 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ +import type { BillPaymentInfo } from './BillPaymentInfo'; import type { BillPaymentStatus } from './BillPaymentStatus'; import type { NotificationChannel } from './NotificationChannel'; export type BillStatusUpdateRequest = { listenerTransactionId: number; channel: NotificationChannel; - info: BillPaymentStatus; + info: (BillPaymentInfo | BillPaymentStatus); }; diff --git a/src/client/models/GetDealProductsBarcodesPdfRequest.ts b/src/client/models/GetDealProductsBarcodesPdfRequest.ts index 9161eb1..d12f5e2 100644 --- a/src/client/models/GetDealProductsBarcodesPdfRequest.ts +++ b/src/client/models/GetDealProductsBarcodesPdfRequest.ts @@ -1,3 +1,8 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ export type GetDealProductsBarcodesPdfRequest = { dealId: number; }; + diff --git a/src/client/models/GetDealProductsBarcodesPdfResponse.ts b/src/client/models/GetDealProductsBarcodesPdfResponse.ts index ae7f80e..a4edb0a 100644 --- a/src/client/models/GetDealProductsBarcodesPdfResponse.ts +++ b/src/client/models/GetDealProductsBarcodesPdfResponse.ts @@ -1,5 +1,10 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ export type GetDealProductsBarcodesPdfResponse = { base64String: string; filename: string; mimeType: string; -}; \ No newline at end of file +}; + diff --git a/src/client/services/DealService.ts b/src/client/services/DealService.ts index b6a4f71..f3dae7f 100644 --- a/src/client/services/DealService.ts +++ b/src/client/services/DealService.ts @@ -47,8 +47,8 @@ import type { DealUpdateServiceQuantityRequest } from '../models/DealUpdateServi import type { DealUpdateServiceQuantityResponse } from '../models/DealUpdateServiceQuantityResponse'; import type { DealUpdateServiceRequest } from '../models/DealUpdateServiceRequest'; import type { DealUpdateServiceResponse } from '../models/DealUpdateServiceResponse'; -import type { GetDealProductsBarcodesPdfRequest } from '../models/GetDealProductsBarcodesPdfRequest.ts'; -import type { GetDealProductsBarcodesPdfResponse } from '../models/GetDealProductsBarcodesPdfResponse.ts'; +import type { GetDealProductsBarcodesPdfRequest } from '../models/GetDealProductsBarcodesPdfRequest'; +import type { GetDealProductsBarcodesPdfResponse } from '../models/GetDealProductsBarcodesPdfResponse'; import type { CancelablePromise } from '../core/CancelablePromise'; import { OpenAPI } from '../core/OpenAPI'; import { request as __request } from '../core/request'; @@ -590,7 +590,7 @@ export class DealService { } /** * Get Deal Products Barcodes Pdf - * @returns GetProductBarcodePdfResponse Successful Response + * @returns GetDealProductsBarcodesPdfResponse Successful Response * @throws ApiError */ public static getDealProductsBarcodesPdf({