/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { PayConfigOneOffRuleV2 } from './PayConfigOneOffRuleV2.js'; import type { PayConfigWeeklyRuleV2 } from './PayConfigWeeklyRuleV2.js'; /** * A pay config sets what someone is paid for being on call: a base rate, * plus rules that override it at particular times. An on-call pay report prices * each person's shifts against one. * * Rules are evaluated in the order they are returned, and the first one that * covers a shift wins. Any time no rule covers is paid at the base rate. * @export * @interface PayConfigV2 */ export interface PayConfigV2 { /** * Rate paid for one unit of rate_time_unit, for any time no rule covers, in the lowest denomination of the currency */ base_rate_cents: number; /** * */ created_at: Date; /** * Currency this config pays in, in ISO 4217 format */ currency: string; /** * Unique identifier for this pay config */ id: string; /** * Human readable name for this pay config */ name: string; /** * Rules that apply over a single window of time, such as a public holiday */ one_off_rules: Array; /** * When a published report first priced against this config. Once set, editing the config needs the schedule_pay_configs.update_published scope. */ published_at?: Date; /** * The unit of time every rate on this config is quoted per: hour, day, or week. A day is 24 hours of shift time and a week is 7 days. Pay is pro-rated by the second. */ rate_time_unit: PayConfigV2RateTimeUnitEnum; /** * IANA timezone this config's rules are interpreted in */ timezone: string; /** * */ updated_at: Date; /** * Rules that apply every week, by day of week and time of day, in evaluation order. Must be empty when rate_time_unit is week. */ weekly_rules: Array; } /** * @export */ export declare const PayConfigV2RateTimeUnitEnum: { readonly Hour: "hour"; readonly Day: "day"; readonly Week: "week"; }; export type PayConfigV2RateTimeUnitEnum = typeof PayConfigV2RateTimeUnitEnum[keyof typeof PayConfigV2RateTimeUnitEnum]; /** * Check if a given object implements the PayConfigV2 interface. */ export declare function instanceOfPayConfigV2(value: object): value is PayConfigV2; export declare function PayConfigV2FromJSON(json: any): PayConfigV2; export declare function PayConfigV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PayConfigV2; export declare function PayConfigV2ToJSON(json: any): PayConfigV2; export declare function PayConfigV2ToJSONTyped(value?: PayConfigV2 | null, ignoreDiscriminator?: boolean): any;