import { Attr } from 'ts-framework' import * as constants from '../constants' export class CreateOrganizationBankAccountRequestDTO { @Attr({ type: String, optional: true }) accountHolderName?: string @Attr({ type: String, resolver: { type: 'enum', params: constants.OrganizationBankAccountTypes }, optional: true }) accountHolderType?: constants.OrganizationBankAccountType @Attr({ type: String }) accountNumber: string @Attr({ type: String }) country: string @Attr({ type: String }) currency: string @Attr({ type: Boolean }) isPrimary: boolean @Attr({ type: String }) orgId: string @Attr({ type: String, optional: true }) routingNumber?: string } export class OrganizationBankAccountResponseDTO { id: string bankName: string isPrimary: boolean lastFourNumbers: string orgId: string constructor(model: OrganizationBankAccountResponseDTO) { this.id = model.id this.bankName = model.bankName this.isPrimary = model.isPrimary this.lastFourNumbers = model.lastFourNumbers this.orgId = model.orgId } static of(model: OrganizationBankAccountResponseDTO): OrganizationBankAccountResponseDTO { return new OrganizationBankAccountResponseDTO(model) } } export class RemovedOrganizationBankAccountResponseDTO { id: string object: string currency: string deleted: boolean constructor(model: RemovedOrganizationBankAccountResponseDTO) { this.id = model.id this.object = model.object this.currency = model.currency this.deleted = model.deleted } static of(model: RemovedOrganizationBankAccountResponseDTO): RemovedOrganizationBankAccountResponseDTO { return new RemovedOrganizationBankAccountResponseDTO(model) } }