/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Request serializer for ProgramLicenseUpdateView POST endpoint. * * This serializer validates the request data for updating an existing program license. * Either license_id or external_id must be provided to identify the license to update. * * Fields: * license_id: The ID of the license to update (required if external_id not provided) * external_id: External identifier of the license to update (required if license_id not provided) * name: Updated display name for the license * count: Updated number of seats purchased * started: Updated date when license should begin * expired: Updated date when license should expire * active: Updated active status * metadata: Updated additional license metadata * enrollment_config: Updated enrollment configuration * source: Updated source identifier * transaction_id: Transaction identifier for tracking * change_type: Type of change being made (default: "update") * * Notes: * - Cannot update the platform or program associated with a license * - A license history record is automatically created for each update * - If count is reduced, it must not be less than the number of active assignments * - Setting active=false will not deactivate existing assignments */ export type ProgramLicenseUpdateDetail = { /** * The ID of the license to update (required if external_id not provided) */ license_id?: number; /** * External identifier of the license to update (required if license_id not provided) */ external_id?: string; /** * Updated display name for the license */ name?: string; /** * Updated number of seats purchased */ count?: number; /** * Updated date when license should begin */ started?: string; /** * Updated date when license should expire */ expired?: string | null; /** * Updated active status */ active?: boolean; /** * Updated additional license metadata */ metadata?: Record; /** * Updated enrollment configuration */ enrollment_config?: Record; /** * Updated source identifier */ source?: string; /** * Transaction identifier for tracking */ transaction_id?: string; /** * Type of change being made */ change_type?: string; };