import { InvoicingCouponPayload } from '../../../entity/invoicing/coupon/couponPayload'; import { ZeniAPIResponse } from '../../../responsePayload'; import { InvoicingCouponFormLocalData } from './editInvoicingCouponDetailViewState'; export type InvoicingCouponWriteResponse = ZeniAPIResponse; /** * Build the create/update discount request body from the form draft (snake_case * matching the `/discounts` schema). On create the coupon id is part of the * body; on edit it is the URL param, so it is omitted here. */ export declare const localDataToSaveInvoicingCouponPayload: (localData: InvoicingCouponFormLocalData, isCreate: boolean) => Record; export type RunInvoicingDiscountActionResponse = ZeniAPIResponse; export type InvoicingCouponDetailResponse = ZeniAPIResponse;