| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { Attr, Str, Uid, Num } from 'pinia-orm/dist/decorators'
- import ApiResource from '~/models/ApiResource'
- import { IdField } from '~/models/decorators'
- /**
- * 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 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: object
- @Attr(null)
- declare order: object
- @Attr([])
- declare bills: Array<{
- ref: string
- date: string
- taxExcludedAmount: number
- paid: boolean
- }>
- }
|