a68a7f594d
- Add DTOs for tax switch operations including payloads and results. - Create SalesInvoiceFiscalSwitchService to handle sending and retrieving tax data. - Implement SalesInvoiceFiscalService for managing invoice tax submissions and results persistence. - Develop NamaTaxSwitchAdapter for interfacing with the external tax service. - Introduce NamaTaxRequestDto and related classes for structured tax requests.
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
model PartnerAccount {
|
|
id String @id @default(ulid())
|
|
role PartnerRole
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
|
|
|
partner_id String
|
|
partner Partner @relation(fields: [partner_id], references: [id])
|
|
|
|
account_id String @unique
|
|
account Account @relation(fields: [account_id], references: [id])
|
|
|
|
@@map("partner_accounts")
|
|
}
|
|
|
|
model Partner {
|
|
id String @id @default(ulid())
|
|
name String
|
|
code String @unique()
|
|
status PartnerStatus @default(ACTIVE)
|
|
fiscal_switch_type PartnerFiscalSwitchType
|
|
logo_url String?
|
|
|
|
created_at DateTime @default(now()) @db.Timestamp(0)
|
|
updated_at DateTime @default(now()) @updatedAt @db.Timestamp(0)
|
|
|
|
accounts PartnerAccount[]
|
|
consumers_individual ConsumerIndividual[]
|
|
consumers_legal ConsumerLegal[]
|
|
license_charge_transactions LicenseChargeTransaction[]
|
|
account_quota_charge_transactions PartnerAccountQuotaChargeTransaction[]
|
|
license_renew_charge_transactions LicenseRenewChargeTransaction[]
|
|
|
|
@@map("partners")
|
|
}
|