Files
ocs-portal-web/lib/price-plan-detail/data/repository/index.ts
2025-04-15 13:56:54 +07:00

16 lines
508 B
TypeScript

import { apiClient } from "@/services/api/api-client";
export interface RatePlanPayload {
offerVerId: string
offerType: string
reId: string
ratePlanName: string
ratePlanCode?: string
remarks?: string
ratePlanType: string
}
export const pricePlanDetailRepository = {
getUsageEventList: async () => await apiClient("/api/priceplan-detail/usage-event", "POST"),
createRatePlan: async (payload: RatePlanPayload) => await apiClient("/api/rate-plan/create", "POST", payload)
}