DolibarrAccount.ts 673 B

12345678910111213141516171819202122232425262728293031
  1. import { Attr, 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. @Str(null)
  13. declare clientNumber: string
  14. @Str(null)
  15. declare product: string
  16. @Attr({})
  17. declare contract: object
  18. @Attr([])
  19. declare bills: Array<{
  20. ref: string
  21. date: string
  22. taxExcludedAmount: number
  23. paid: boolean
  24. }>
  25. }