| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { Attr, Str, Uid, Num } from 'pinia-orm/dist/decorators'
- import ApiResource from '~/models/ApiResource'
- import { IdField } from '~/models/decorators'
- import type {
- DolibarrBill,
- DolibarrContract,
- DolibarrOrder,
- } from '~/types/interfaces'
- /**
- * The Dolibarr account of an organization
- *
- * @see https://gitlab.2iopenservice.com/opentalent/ap2i/-/blob/develop/src/ApiResources/Dolibarr/DolibarrAccount.php
- */
- export default class DolibarrAccount extends ApiResource {
- static override entity = 'dolibarr/account'
- @Uid()
- declare id: number | string | null
- @IdField()
- @Num(0, { notNullable: true })
- declare organizationId: number
- @Str(null)
- declare clientNumber: string
- @Str(null)
- declare product: string
- @Attr({})
- declare contract: DolibarrContract
- @Attr(null)
- declare order: DolibarrOrder
- @Attr([])
- declare bills: Array<DolibarrBill>
- }
|