feat: billing guest access
This commit is contained in:
@@ -24,6 +24,8 @@ export type { BarcodeTemplateUpdateResponse } from './models/BarcodeTemplateUpda
|
||||
export type { BaseEnumListSchema } from './models/BaseEnumListSchema';
|
||||
export type { BaseEnumSchema } from './models/BaseEnumSchema';
|
||||
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 { ClientCreateRequest } from './models/ClientCreateRequest';
|
||||
export type { ClientCreateResponse } from './models/ClientCreateResponse';
|
||||
@@ -37,6 +39,8 @@ 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 { CreateDealBillRequest } from './models/CreateDealBillRequest';
|
||||
export type { CreateDealBillResponse } from './models/CreateDealBillResponse';
|
||||
export type { CreatePaymentRecordRequest } from './models/CreatePaymentRecordRequest';
|
||||
export type { CreatePaymentRecordResponse } from './models/CreatePaymentRecordResponse';
|
||||
export type { CreatePayRateRequest } from './models/CreatePayRateRequest';
|
||||
@@ -56,8 +60,11 @@ export type { DealAddServiceRequest } from './models/DealAddServiceRequest';
|
||||
export type { DealAddServiceResponse } from './models/DealAddServiceResponse';
|
||||
export type { DealAddServicesRequest } from './models/DealAddServicesRequest';
|
||||
export type { DealAddServicesResponse } from './models/DealAddServicesResponse';
|
||||
export type { DealBillRequestSchema } from './models/DealBillRequestSchema';
|
||||
export type { DealChangeStatusRequest } from './models/DealChangeStatusRequest';
|
||||
export type { DealChangeStatusResponse } from './models/DealChangeStatusResponse';
|
||||
export type { DealCreateGuestUrlRequest } from './models/DealCreateGuestUrlRequest';
|
||||
export type { DealCreateGuestUrlResponse } from './models/DealCreateGuestUrlResponse';
|
||||
export type { DealCreateRequest } from './models/DealCreateRequest';
|
||||
export type { DealDeleteProductRequest } from './models/DealDeleteProductRequest';
|
||||
export type { DealDeleteProductResponse } from './models/DealDeleteProductResponse';
|
||||
@@ -114,6 +121,7 @@ export type { GetAllShippingWarehousesResponse } from './models/GetAllShippingWa
|
||||
export type { GetAllUsersResponse } from './models/GetAllUsersResponse';
|
||||
export type { GetBarcodeTemplateByIdRequest } from './models/GetBarcodeTemplateByIdRequest';
|
||||
export type { GetBarcodeTemplateByIdResponse } from './models/GetBarcodeTemplateByIdResponse';
|
||||
export type { GetDealBillById } from './models/GetDealBillById';
|
||||
export type { GetPaymentRecordsResponse } from './models/GetPaymentRecordsResponse';
|
||||
export type { GetProductBarcodePdfRequest } from './models/GetProductBarcodePdfRequest';
|
||||
export type { GetProductBarcodePdfResponse } from './models/GetProductBarcodePdfResponse';
|
||||
@@ -123,6 +131,7 @@ export type { GetServiceKitSchema } from './models/GetServiceKitSchema';
|
||||
export type { GetTimeTrackingRecordsRequest } from './models/GetTimeTrackingRecordsRequest';
|
||||
export type { GetTimeTrackingRecordsResponse } from './models/GetTimeTrackingRecordsResponse';
|
||||
export type { HTTPValidationError } from './models/HTTPValidationError';
|
||||
export type { NotificationChannel } from './models/NotificationChannel';
|
||||
export type { PaginationInfoSchema } from './models/PaginationInfoSchema';
|
||||
export type { PaymentRecordCreateSchema } from './models/PaymentRecordCreateSchema';
|
||||
export type { PaymentRecordGetSchema } from './models/PaymentRecordGetSchema';
|
||||
@@ -179,6 +188,7 @@ export type { ValidationError } from './models/ValidationError';
|
||||
|
||||
export { AuthService } from './services/AuthService';
|
||||
export { BarcodeService } from './services/BarcodeService';
|
||||
export { BillingService } from './services/BillingService';
|
||||
export { ClientService } from './services/ClientService';
|
||||
export { DealService } from './services/DealService';
|
||||
export { MarketplaceService } from './services/MarketplaceService';
|
||||
|
||||
8
src/client/models/BillPaymentStatus.ts
Normal file
8
src/client/models/BillPaymentStatus.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type BillPaymentStatus = {
|
||||
payed: boolean;
|
||||
};
|
||||
|
||||
12
src/client/models/BillStatusUpdateRequest.ts
Normal file
12
src/client/models/BillStatusUpdateRequest.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BillPaymentStatus } from './BillPaymentStatus';
|
||||
import type { NotificationChannel } from './NotificationChannel';
|
||||
export type BillStatusUpdateRequest = {
|
||||
listenerTransactionId: number;
|
||||
channel: NotificationChannel;
|
||||
info: BillPaymentStatus;
|
||||
};
|
||||
|
||||
8
src/client/models/CreateDealBillRequest.ts
Normal file
8
src/client/models/CreateDealBillRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateDealBillRequest = {
|
||||
dealId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateDealBillResponse.ts
Normal file
9
src/client/models/CreateDealBillResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateDealBillResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
12
src/client/models/DealBillRequestSchema.ts
Normal file
12
src/client/models/DealBillRequestSchema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DealBillRequestSchema = {
|
||||
dealId: number;
|
||||
createdAt: string;
|
||||
paid: boolean;
|
||||
pdfUrl: (string | null);
|
||||
invoiceNumber: (string | null);
|
||||
};
|
||||
|
||||
8
src/client/models/DealCreateGuestUrlRequest.ts
Normal file
8
src/client/models/DealCreateGuestUrlRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DealCreateGuestUrlRequest = {
|
||||
dealId: number;
|
||||
};
|
||||
|
||||
10
src/client/models/DealCreateGuestUrlResponse.ts
Normal file
10
src/client/models/DealCreateGuestUrlResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DealCreateGuestUrlResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
url: string;
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ClientSchema } from './ClientSchema';
|
||||
import type { DealBillRequestSchema } from './DealBillRequestSchema';
|
||||
import type { DealProductSchema } from './DealProductSchema';
|
||||
import type { DealServiceSchema } from './DealServiceSchema';
|
||||
import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
|
||||
@@ -18,8 +19,10 @@ export type DealSchema = {
|
||||
statusHistory: Array<DealStatusHistorySchema>;
|
||||
isDeleted: boolean;
|
||||
isCompleted: boolean;
|
||||
isLocked: boolean;
|
||||
client: ClientSchema;
|
||||
comment: string;
|
||||
shippingWarehouse?: (ShippingWarehouseSchema | string | null);
|
||||
billRequest?: (DealBillRequestSchema | null);
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/GetDealBillById.ts
Normal file
9
src/client/models/GetDealBillById.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DealBillRequestSchema } from './DealBillRequestSchema';
|
||||
export type GetDealBillById = {
|
||||
dealBill: DealBillRequestSchema;
|
||||
};
|
||||
|
||||
5
src/client/models/NotificationChannel.ts
Normal file
5
src/client/models/NotificationChannel.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type NotificationChannel = 'PAYMENT_DETAILS' | 'PAYMENT_VERIFICATION';
|
||||
74
src/client/services/BillingService.ts
Normal file
74
src/client/services/BillingService.ts
Normal file
@@ -0,0 +1,74 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BillStatusUpdateRequest } from '../models/BillStatusUpdateRequest';
|
||||
import type { CreateDealBillRequest } from '../models/CreateDealBillRequest';
|
||||
import type { CreateDealBillResponse } from '../models/CreateDealBillResponse';
|
||||
import type { GetDealBillById } from '../models/GetDealBillById';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class BillingService {
|
||||
/**
|
||||
* Webhook
|
||||
* @returns any Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static webhookBillingWebhookPost({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: BillStatusUpdateRequest,
|
||||
}): CancelablePromise<any> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/billing/webhook',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create Deal Bill
|
||||
* @returns CreateDealBillResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createDealBill({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: CreateDealBillRequest,
|
||||
}): CancelablePromise<CreateDealBillResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/billing/create-deal-bill',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get Deal Bill By Id
|
||||
* @returns GetDealBillById Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getDealBillById({
|
||||
dealId,
|
||||
}: {
|
||||
dealId: number,
|
||||
}): CancelablePromise<GetDealBillById> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/billing/deal-bill-request/{deal_id}',
|
||||
path: {
|
||||
'deal_id': dealId,
|
||||
},
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,8 @@ import type { DealAddServicesRequest } from '../models/DealAddServicesRequest';
|
||||
import type { DealAddServicesResponse } from '../models/DealAddServicesResponse';
|
||||
import type { DealChangeStatusRequest } from '../models/DealChangeStatusRequest';
|
||||
import type { DealChangeStatusResponse } from '../models/DealChangeStatusResponse';
|
||||
import type { DealCreateGuestUrlRequest } from '../models/DealCreateGuestUrlRequest';
|
||||
import type { DealCreateGuestUrlResponse } from '../models/DealCreateGuestUrlResponse';
|
||||
import type { DealCreateRequest } from '../models/DealCreateRequest';
|
||||
import type { DealDeleteProductRequest } from '../models/DealDeleteProductRequest';
|
||||
import type { DealDeleteProductResponse } from '../models/DealDeleteProductResponse';
|
||||
@@ -230,6 +232,26 @@ export class DealService {
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create Guest Url
|
||||
* @returns DealCreateGuestUrlResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createDealGuestUrl({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: DealCreateGuestUrlRequest,
|
||||
}): CancelablePromise<DealCreateGuestUrlResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/deal/create-guest-url',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Services Add
|
||||
* @returns DealAddServicesResponse Successful Response
|
||||
|
||||
Reference in New Issue
Block a user