Cotisation.ts 630 B

12345678910111213141516171819202122232425
  1. import { Num, Str, Uid } from 'pinia-orm/dist/decorators'
  2. import ApiResource from '~/models/ApiResource'
  3. import { IdField } from '~/models/decorators'
  4. /**
  5. * Ap2i ApiResource : Cotisation
  6. *
  7. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/ApiResources/Cotisation/Cotisation.php
  8. */
  9. export default class Cotisation extends ApiResource {
  10. static entity = 'cotisations'
  11. @Uid()
  12. declare id: number | string | null
  13. @Str(null)
  14. declare alertState: string | null
  15. @Num(null)
  16. declare cotisationYear: number | null
  17. @IdField()
  18. @Num(0, { notNullable: true })
  19. declare organizationId: number
  20. }