feat: cancel deal bill, date range in timetable
This commit is contained in:
@@ -27,6 +27,8 @@ export type { BaseMarketplaceSchema } from './models/BaseMarketplaceSchema';
|
||||
export type { BillPaymentStatus } from './models/BillPaymentStatus';
|
||||
export type { BillStatusUpdateRequest } from './models/BillStatusUpdateRequest';
|
||||
export type { Body_upload_product_image } from './models/Body_upload_product_image';
|
||||
export type { CancelDealBillRequest } from './models/CancelDealBillRequest';
|
||||
export type { CancelDealBillResponse } from './models/CancelDealBillResponse';
|
||||
export type { ClientCreateRequest } from './models/ClientCreateRequest';
|
||||
export type { ClientCreateResponse } from './models/ClientCreateResponse';
|
||||
export type { ClientDeleteRequest } from './models/ClientDeleteRequest';
|
||||
|
||||
8
src/client/models/CancelDealBillRequest.ts
Normal file
8
src/client/models/CancelDealBillRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CancelDealBillRequest = {
|
||||
dealId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/CancelDealBillResponse.ts
Normal file
9
src/client/models/CancelDealBillResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CancelDealBillResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BillStatusUpdateRequest } from '../models/BillStatusUpdateRequest';
|
||||
import type { CancelDealBillRequest } from '../models/CancelDealBillRequest';
|
||||
import type { CancelDealBillResponse } from '../models/CancelDealBillResponse';
|
||||
import type { CreateDealBillRequest } from '../models/CreateDealBillRequest';
|
||||
import type { CreateDealBillResponse } from '../models/CreateDealBillResponse';
|
||||
import type { GetDealBillById } from '../models/GetDealBillById';
|
||||
@@ -50,6 +52,26 @@ export class BillingService {
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create Deal Bill
|
||||
* @returns CancelDealBillResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static cancelDealBill({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CancelDealBillRequest,
|
||||
}): CancelablePromise<CancelDealBillResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/billing/cancel-deal-bill',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get Deal Bill By Id
|
||||
* @returns GetDealBillById Successful Response
|
||||
|
||||
Reference in New Issue
Block a user