import {Str, Bool, Model, Uid, Attr} from '@vuex-orm/core'

export class BankAccount extends Model {
  static entity = 'bank_accounts'

  @Uid()
  id!: number | string | null

  @Str(null, { nullable: true })
  bankName!: string|null

  @Str(null, { nullable: true })
  bic!: string|null

  @Str(null, { nullable: true })
  bicInvalid!: string|null

  @Str(null, { nullable: true })
  iban!: string|null

  @Str(null, { nullable: true })
  ibanInvalid!: string|null

  @Str(null, { nullable: true })
  debitAddress!: string|null

  @Str(null, { nullable: true })
  holder!: string|null

  @Bool(false, { nullable: false })
  principal!: boolean

  @Attr([])
  organization!: []
}
