DolibarrAccount.ts 691 B

1234567891011121314151617181920212223242526272829
  1. import ApiResource from "~/models/ApiResource";
  2. import {Attr, Num, Str, Uid} from "pinia-orm/dist/decorators";
  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<object>
  22. }