DolibarrAccount.ts 745 B

12345678910111213141516171819202122232425262728293031323334
  1. import { Attr, Num, Str, Uid } from 'pinia-orm/dist/decorators'
  2. import ApiResource from '~/models/ApiResource'
  3. /**
  4. * The Dolibarr account of an organization
  5. *
  6. * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/ApiResources/Dolibarr/DolibarrAccount.php
  7. */
  8. export default class DolibarrAccount extends ApiResource {
  9. static entity = 'dolibarr/account'
  10. @Uid()
  11. declare id: number | string | null
  12. @Num(0, { notNullable: true })
  13. declare organizationId: number
  14. @Str(null)
  15. declare clientNumber: string
  16. @Str(null)
  17. declare product: string
  18. @Attr({})
  19. declare contract: object
  20. @Attr([])
  21. declare bills: Array<{
  22. ref: string
  23. date: string
  24. taxExcludedAmount: number
  25. paid: boolean
  26. }>
  27. }