feat: pallets and boxes for deals
This commit is contained in:
@@ -31,6 +31,7 @@ export type { BillStatusUpdateRequest } from './models/BillStatusUpdateRequest';
|
||||
export type { Body_upload_passport_image } from './models/Body_upload_passport_image';
|
||||
export type { Body_upload_product_barcode_image } from './models/Body_upload_product_barcode_image';
|
||||
export type { Body_upload_product_image } from './models/Body_upload_product_image';
|
||||
export type { BoxSchema } from './models/BoxSchema';
|
||||
export type { CancelDealBillRequest } from './models/CancelDealBillRequest';
|
||||
export type { CancelDealBillResponse } from './models/CancelDealBillResponse';
|
||||
export type { ClientCreateRequest } from './models/ClientCreateRequest';
|
||||
@@ -45,11 +46,14 @@ export type { ClientUpdateRequest } from './models/ClientUpdateRequest';
|
||||
export type { ClientUpdateResponse } from './models/ClientUpdateResponse';
|
||||
export type { CreateBarcodeTemplateAttributeRequest } from './models/CreateBarcodeTemplateAttributeRequest';
|
||||
export type { CreateBarcodeTemplateAttributeResponse } from './models/CreateBarcodeTemplateAttributeResponse';
|
||||
export type { CreateBoxInDealSchema } from './models/CreateBoxInDealSchema';
|
||||
export type { CreateBoxInPalletSchema } from './models/CreateBoxInPalletSchema';
|
||||
export type { CreateDealBillRequest } from './models/CreateDealBillRequest';
|
||||
export type { CreateDealBillResponse } from './models/CreateDealBillResponse';
|
||||
export type { CreateExpenseTagRequest } from './models/CreateExpenseTagRequest';
|
||||
export type { CreateMarketplaceRequest } from './models/CreateMarketplaceRequest';
|
||||
export type { CreateMarketplaceResponse } from './models/CreateMarketplaceResponse';
|
||||
export type { CreatePalletResponse } from './models/CreatePalletResponse';
|
||||
export type { CreatePaymentRecordRequest } from './models/CreatePaymentRecordRequest';
|
||||
export type { CreatePaymentRecordResponse } from './models/CreatePaymentRecordResponse';
|
||||
export type { CreatePayRateRequest } from './models/CreatePayRateRequest';
|
||||
@@ -61,6 +65,7 @@ export type { CreatePriceCategoryResponse } from './models/CreatePriceCategoryRe
|
||||
export type { CreateServiceKitSchema } from './models/CreateServiceKitSchema';
|
||||
export type { CreateServicesKitRequest } from './models/CreateServicesKitRequest';
|
||||
export type { CreateServicesKitResponse } from './models/CreateServicesKitResponse';
|
||||
export type { CreateShippingProductSchema } from './models/CreateShippingProductSchema';
|
||||
export type { CreateShippingWarehouseRequest } from './models/CreateShippingWarehouseRequest';
|
||||
export type { CreateShippingWarehouseResponse } from './models/CreateShippingWarehouseResponse';
|
||||
export type { CreateTaskResponse } from './models/CreateTaskResponse';
|
||||
@@ -133,10 +138,12 @@ export type { DealUpdateServiceQuantityRequest } from './models/DealUpdateServic
|
||||
export type { DealUpdateServiceQuantityResponse } from './models/DealUpdateServiceQuantityResponse';
|
||||
export type { DealUpdateServiceRequest } from './models/DealUpdateServiceRequest';
|
||||
export type { DealUpdateServiceResponse } from './models/DealUpdateServiceResponse';
|
||||
export type { DeleteBoxResponse } from './models/DeleteBoxResponse';
|
||||
export type { DeleteExpenseResponse } from './models/DeleteExpenseResponse';
|
||||
export type { DeleteExpenseTagResponse } from './models/DeleteExpenseTagResponse';
|
||||
export type { DeleteMarketplaceRequest } from './models/DeleteMarketplaceRequest';
|
||||
export type { DeleteMarketplaceResponse } from './models/DeleteMarketplaceResponse';
|
||||
export type { DeletePalletResponse } from './models/DeletePalletResponse';
|
||||
export type { DeletePaymentRecordRequest } from './models/DeletePaymentRecordRequest';
|
||||
export type { DeletePaymentRecordResponse } from './models/DeletePaymentRecordResponse';
|
||||
export type { DeletePayRateRequest } from './models/DeletePayRateRequest';
|
||||
@@ -146,6 +153,7 @@ export type { DeletePositionResponse } from './models/DeletePositionResponse';
|
||||
export type { DeletePriceCategoryRequest } from './models/DeletePriceCategoryRequest';
|
||||
export type { DeletePriceCategoryResponse } from './models/DeletePriceCategoryResponse';
|
||||
export type { DeleteShiftResponse } from './models/DeleteShiftResponse';
|
||||
export type { DeleteShippingProductResponse } from './models/DeleteShippingProductResponse';
|
||||
export type { DeleteShippingWarehouseRequest } from './models/DeleteShippingWarehouseRequest';
|
||||
export type { DeleteShippingWarehouseResponse } from './models/DeleteShippingWarehouseResponse';
|
||||
export type { ExpenseSchemaBase } from './models/ExpenseSchemaBase';
|
||||
@@ -195,6 +203,7 @@ export type { MarketplaceCreateSchema } from './models/MarketplaceCreateSchema';
|
||||
export type { MarketplaceSchema } from './models/MarketplaceSchema';
|
||||
export type { NotificationChannel } from './models/NotificationChannel';
|
||||
export type { PaginationInfoSchema } from './models/PaginationInfoSchema';
|
||||
export type { PalletSchema } from './models/PalletSchema';
|
||||
export type { PassportImageSchema } from './models/PassportImageSchema';
|
||||
export type { PaymentRecordCreateSchema } from './models/PaymentRecordCreateSchema';
|
||||
export type { PaymentRecordGetSchema } from './models/PaymentRecordGetSchema';
|
||||
@@ -248,6 +257,7 @@ export type { ServiceUpdateCategoryRequest } from './models/ServiceUpdateCategor
|
||||
export type { ServiceUpdateCategoryResponse } from './models/ServiceUpdateCategoryResponse';
|
||||
export type { ServiceUpdateRequest } from './models/ServiceUpdateRequest';
|
||||
export type { ServiceUpdateResponse } from './models/ServiceUpdateResponse';
|
||||
export type { ShippingProductSchema } from './models/ShippingProductSchema';
|
||||
export type { ShippingWarehouseSchema } from './models/ShippingWarehouseSchema';
|
||||
export type { StartPauseByShiftIdResponse } from './models/StartPauseByShiftIdResponse';
|
||||
export type { StartPauseByUserIdResponse } from './models/StartPauseByUserIdResponse';
|
||||
@@ -256,6 +266,9 @@ export type { SynchronizeMarketplaceRequest } from './models/SynchronizeMarketpl
|
||||
export type { TaskInfoResponse } from './models/TaskInfoResponse';
|
||||
export type { TimeTrackingData } from './models/TimeTrackingData';
|
||||
export type { TimeTrackingRecord } from './models/TimeTrackingRecord';
|
||||
export type { UpdateBoxRequest } from './models/UpdateBoxRequest';
|
||||
export type { UpdateBoxResponse } from './models/UpdateBoxResponse';
|
||||
export type { UpdateBoxSchema } from './models/UpdateBoxSchema';
|
||||
export type { UpdateExpenseRequest } from './models/UpdateExpenseRequest';
|
||||
export type { UpdateExpenseResponse } from './models/UpdateExpenseResponse';
|
||||
export type { UpdateExpenseSchema } from './models/UpdateExpenseSchema';
|
||||
@@ -270,6 +283,9 @@ export type { UpdatePriceCategoryResponse } from './models/UpdatePriceCategoryRe
|
||||
export type { UpdateServiceKitSchema } from './models/UpdateServiceKitSchema';
|
||||
export type { UpdateServicesKitRequest } from './models/UpdateServicesKitRequest';
|
||||
export type { UpdateServicesKitResponse } from './models/UpdateServicesKitResponse';
|
||||
export type { UpdateShippingProductRequest } from './models/UpdateShippingProductRequest';
|
||||
export type { UpdateShippingProductResponse } from './models/UpdateShippingProductResponse';
|
||||
export type { UpdateShippingProductSchema } from './models/UpdateShippingProductSchema';
|
||||
export type { UpdateShippingWarehouseRequest } from './models/UpdateShippingWarehouseRequest';
|
||||
export type { UpdateShippingWarehouseResponse } from './models/UpdateShippingWarehouseResponse';
|
||||
export type { UpdateTimeTrackingRecordRequest } from './models/UpdateTimeTrackingRecordRequest';
|
||||
@@ -296,6 +312,7 @@ export { PositionService } from './services/PositionService';
|
||||
export { ProductService } from './services/ProductService';
|
||||
export { RoleService } from './services/RoleService';
|
||||
export { ServiceService } from './services/ServiceService';
|
||||
export { ShippingService } from './services/ShippingService';
|
||||
export { ShippingWarehouseService } from './services/ShippingWarehouseService';
|
||||
export { StatisticsService } from './services/StatisticsService';
|
||||
export { TaskService } from './services/TaskService';
|
||||
|
||||
13
src/client/models/BoxSchema.ts
Normal file
13
src/client/models/BoxSchema.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProductSchema } from './ProductSchema';
|
||||
export type BoxSchema = {
|
||||
id: number;
|
||||
quantity: number;
|
||||
product: ProductSchema;
|
||||
palletId: (number | null);
|
||||
dealId: (number | null);
|
||||
};
|
||||
|
||||
10
src/client/models/CreateBoxInDealSchema.ts
Normal file
10
src/client/models/CreateBoxInDealSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateBoxInDealSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
dealId: (number | null);
|
||||
};
|
||||
|
||||
10
src/client/models/CreateBoxInPalletSchema.ts
Normal file
10
src/client/models/CreateBoxInPalletSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateBoxInPalletSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
palletId: (number | null);
|
||||
};
|
||||
|
||||
9
src/client/models/CreatePalletResponse.ts
Normal file
9
src/client/models/CreatePalletResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreatePalletResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/CreateShippingProductSchema.ts
Normal file
10
src/client/models/CreateShippingProductSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateShippingProductSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
palletId: number;
|
||||
};
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoxSchema } from './BoxSchema';
|
||||
import type { ClientSchema } from './ClientSchema';
|
||||
import type { DealBillRequestSchema } from './DealBillRequestSchema';
|
||||
import type { DealGroupSchema } from './DealGroupSchema';
|
||||
import type { DealProductSchema } from './DealProductSchema';
|
||||
import type { DealServiceSchema } from './DealServiceSchema';
|
||||
import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
|
||||
import type { PalletSchema } from './PalletSchema';
|
||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
|
||||
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
|
||||
import type { UserSchema } from './UserSchema';
|
||||
@@ -30,6 +32,8 @@ export type DealSchema = {
|
||||
category?: (ServicePriceCategorySchema | null);
|
||||
group?: (DealGroupSchema | null);
|
||||
manager?: (UserSchema | null);
|
||||
pallets?: Array<PalletSchema>;
|
||||
boxes?: Array<BoxSchema>;
|
||||
deliveryDate?: (string | null);
|
||||
receivingSlotDate?: (string | null);
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteBoxResponse.ts
Normal file
9
src/client/models/DeleteBoxResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteBoxResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeletePalletResponse.ts
Normal file
9
src/client/models/DeletePalletResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeletePalletResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteShippingProductResponse.ts
Normal file
9
src/client/models/DeleteShippingProductResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteShippingProductResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
12
src/client/models/PalletSchema.ts
Normal file
12
src/client/models/PalletSchema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoxSchema } from './BoxSchema';
|
||||
import type { ShippingProductSchema } from './ShippingProductSchema';
|
||||
export type PalletSchema = {
|
||||
id: number;
|
||||
boxes: Array<BoxSchema>;
|
||||
shippingProducts: Array<ShippingProductSchema>;
|
||||
};
|
||||
|
||||
12
src/client/models/ShippingProductSchema.ts
Normal file
12
src/client/models/ShippingProductSchema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProductSchema } from './ProductSchema';
|
||||
export type ShippingProductSchema = {
|
||||
id: number;
|
||||
quantity: number;
|
||||
product: ProductSchema;
|
||||
palletId: number;
|
||||
};
|
||||
|
||||
11
src/client/models/UpdateBoxRequest.ts
Normal file
11
src/client/models/UpdateBoxRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateBoxInDealSchema } from './CreateBoxInDealSchema';
|
||||
import type { CreateBoxInPalletSchema } from './CreateBoxInPalletSchema';
|
||||
import type { UpdateBoxSchema } from './UpdateBoxSchema';
|
||||
export type UpdateBoxRequest = {
|
||||
data: (CreateBoxInDealSchema | CreateBoxInPalletSchema | UpdateBoxSchema);
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateBoxResponse.ts
Normal file
9
src/client/models/UpdateBoxResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateBoxResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateBoxSchema.ts
Normal file
10
src/client/models/UpdateBoxSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateBoxSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
boxId: (number | null);
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateShippingProductRequest.ts
Normal file
10
src/client/models/UpdateShippingProductRequest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateShippingProductSchema } from './CreateShippingProductSchema';
|
||||
import type { UpdateShippingProductSchema } from './UpdateShippingProductSchema';
|
||||
export type UpdateShippingProductRequest = {
|
||||
data: (CreateShippingProductSchema | UpdateShippingProductSchema);
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateShippingProductResponse.ts
Normal file
9
src/client/models/UpdateShippingProductResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateShippingProductResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateShippingProductSchema.ts
Normal file
10
src/client/models/UpdateShippingProductSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateShippingProductSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
shippingProductId: number;
|
||||
};
|
||||
|
||||
183
src/client/services/ShippingService.ts
Normal file
183
src/client/services/ShippingService.ts
Normal file
@@ -0,0 +1,183 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreatePalletResponse } from '../models/CreatePalletResponse';
|
||||
import type { DeleteBoxResponse } from '../models/DeleteBoxResponse';
|
||||
import type { DeletePalletResponse } from '../models/DeletePalletResponse';
|
||||
import type { DeleteShippingProductResponse } from '../models/DeleteShippingProductResponse';
|
||||
import type { UpdateBoxRequest } from '../models/UpdateBoxRequest';
|
||||
import type { UpdateBoxResponse } from '../models/UpdateBoxResponse';
|
||||
import type { UpdateShippingProductRequest } from '../models/UpdateShippingProductRequest';
|
||||
import type { UpdateShippingProductResponse } from '../models/UpdateShippingProductResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class ShippingService {
|
||||
/**
|
||||
* Create Pallet
|
||||
* @returns CreatePalletResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createPallet({
|
||||
dealId,
|
||||
}: {
|
||||
dealId: number,
|
||||
}): CancelablePromise<CreatePalletResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/shipping/pallet/{deal_id}',
|
||||
path: {
|
||||
'deal_id': dealId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Pallet
|
||||
* @returns DeletePalletResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deletePallet({
|
||||
palletId,
|
||||
}: {
|
||||
palletId: number,
|
||||
}): CancelablePromise<DeletePalletResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/shipping/pallet/{pallet_id}',
|
||||
path: {
|
||||
'pallet_id': palletId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Shipping Product
|
||||
* @returns UpdateShippingProductResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateShippingProduct({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateShippingProductRequest,
|
||||
}): CancelablePromise<UpdateShippingProductResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/shipping/product',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Shipping Product
|
||||
* @returns DeleteShippingProductResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteShippingProduct({
|
||||
shippingProductId,
|
||||
}: {
|
||||
shippingProductId: number,
|
||||
}): CancelablePromise<DeleteShippingProductResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/shipping/product/{shipping_product_id}',
|
||||
path: {
|
||||
'shipping_product_id': shippingProductId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Update Box
|
||||
* @returns UpdateBoxResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateBox({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: UpdateBoxRequest,
|
||||
}): CancelablePromise<UpdateBoxResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/shipping/box',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Box
|
||||
* @returns DeleteBoxResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteBox({
|
||||
boxId,
|
||||
}: {
|
||||
boxId: number,
|
||||
}): CancelablePromise<DeleteBoxResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'DELETE',
|
||||
url: '/shipping/box/{box_id}',
|
||||
path: {
|
||||
'box_id': boxId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Generate Deal Qr Code
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getDealQrCodePdf({
|
||||
dealId,
|
||||
}: {
|
||||
dealId: number,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/shipping/pdf/deal/{deal_id}',
|
||||
path: {
|
||||
'deal_id': dealId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Generate Deal Qr Code
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getPalletsPdf({
|
||||
dealId,
|
||||
}: {
|
||||
dealId: number,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/shipping/pdf/pallets/{deal_id}',
|
||||
path: {
|
||||
'deal_id': dealId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user