feat: implement tax switch functionality with Nama adapter
- 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.
This commit is contained in:
@@ -227,6 +227,11 @@ export type SaleInvoiceFiscalAttempts = Prisma.SaleInvoiceFiscalAttemptsModel
|
||||
*
|
||||
*/
|
||||
export type SalesInvoicePayment = Prisma.SalesInvoicePaymentModel
|
||||
/**
|
||||
* Model SalesInvoicePaymentTerminalInfo
|
||||
*
|
||||
*/
|
||||
export type SalesInvoicePaymentTerminalInfo = Prisma.SalesInvoicePaymentTerminalInfoModel
|
||||
/**
|
||||
* Model Service
|
||||
*
|
||||
|
||||
@@ -249,6 +249,11 @@ export type SaleInvoiceFiscalAttempts = Prisma.SaleInvoiceFiscalAttemptsModel
|
||||
*
|
||||
*/
|
||||
export type SalesInvoicePayment = Prisma.SalesInvoicePaymentModel
|
||||
/**
|
||||
* Model SalesInvoicePaymentTerminalInfo
|
||||
*
|
||||
*/
|
||||
export type SalesInvoicePaymentTerminalInfo = Prisma.SalesInvoicePaymentTerminalInfoModel
|
||||
/**
|
||||
* Model Service
|
||||
*
|
||||
|
||||
@@ -195,6 +195,13 @@ export type EnumPartnerStatusFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel> | $Enums.PartnerStatus
|
||||
}
|
||||
|
||||
export type EnumPartnerFiscalSwitchTypeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.PartnerFiscalSwitchType | Prisma.EnumPartnerFiscalSwitchTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.PartnerFiscalSwitchType[]
|
||||
notIn?: $Enums.PartnerFiscalSwitchType[]
|
||||
not?: Prisma.NestedEnumPartnerFiscalSwitchTypeFilter<$PrismaModel> | $Enums.PartnerFiscalSwitchType
|
||||
}
|
||||
|
||||
export type EnumPartnerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.PartnerStatus | Prisma.EnumPartnerStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.PartnerStatus[]
|
||||
@@ -205,6 +212,16 @@ export type EnumPartnerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
_max?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumPartnerFiscalSwitchTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.PartnerFiscalSwitchType | Prisma.EnumPartnerFiscalSwitchTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.PartnerFiscalSwitchType[]
|
||||
notIn?: $Enums.PartnerFiscalSwitchType[]
|
||||
not?: Prisma.NestedEnumPartnerFiscalSwitchTypeWithAggregatesFilter<$PrismaModel> | $Enums.PartnerFiscalSwitchType
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumPartnerFiscalSwitchTypeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumPartnerFiscalSwitchTypeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type EnumPOSRoleFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.POSRole | Prisma.EnumPOSRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.POSRole[]
|
||||
@@ -831,6 +848,13 @@ export type NestedEnumPartnerStatusFilter<$PrismaModel = never> = {
|
||||
not?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel> | $Enums.PartnerStatus
|
||||
}
|
||||
|
||||
export type NestedEnumPartnerFiscalSwitchTypeFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.PartnerFiscalSwitchType | Prisma.EnumPartnerFiscalSwitchTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.PartnerFiscalSwitchType[]
|
||||
notIn?: $Enums.PartnerFiscalSwitchType[]
|
||||
not?: Prisma.NestedEnumPartnerFiscalSwitchTypeFilter<$PrismaModel> | $Enums.PartnerFiscalSwitchType
|
||||
}
|
||||
|
||||
export type NestedEnumPartnerStatusWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.PartnerStatus | Prisma.EnumPartnerStatusFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.PartnerStatus[]
|
||||
@@ -841,6 +865,16 @@ export type NestedEnumPartnerStatusWithAggregatesFilter<$PrismaModel = never> =
|
||||
_max?: Prisma.NestedEnumPartnerStatusFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumPartnerFiscalSwitchTypeWithAggregatesFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.PartnerFiscalSwitchType | Prisma.EnumPartnerFiscalSwitchTypeFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.PartnerFiscalSwitchType[]
|
||||
notIn?: $Enums.PartnerFiscalSwitchType[]
|
||||
not?: Prisma.NestedEnumPartnerFiscalSwitchTypeWithAggregatesFilter<$PrismaModel> | $Enums.PartnerFiscalSwitchType
|
||||
_count?: Prisma.NestedIntFilter<$PrismaModel>
|
||||
_min?: Prisma.NestedEnumPartnerFiscalSwitchTypeFilter<$PrismaModel>
|
||||
_max?: Prisma.NestedEnumPartnerFiscalSwitchTypeFilter<$PrismaModel>
|
||||
}
|
||||
|
||||
export type NestedEnumPOSRoleFilter<$PrismaModel = never> = {
|
||||
equals?: $Enums.POSRole | Prisma.EnumPOSRoleFieldRefInput<$PrismaModel>
|
||||
in?: $Enums.POSRole[]
|
||||
|
||||
@@ -246,3 +246,20 @@ export const ConsumerType = {
|
||||
} as const
|
||||
|
||||
export type ConsumerType = (typeof ConsumerType)[keyof typeof ConsumerType]
|
||||
|
||||
|
||||
export const PartnerFiscalSwitchType = {
|
||||
NAMA: 'NAMA',
|
||||
SUN: 'SUN'
|
||||
} as const
|
||||
|
||||
export type PartnerFiscalSwitchType = (typeof PartnerFiscalSwitchType)[keyof typeof PartnerFiscalSwitchType]
|
||||
|
||||
|
||||
export const FiscalResponseStatus = {
|
||||
SUCCESS: 'SUCCESS',
|
||||
FAILURE: 'FAILURE',
|
||||
NOT_SEND: 'NOT_SEND'
|
||||
} as const
|
||||
|
||||
export type FiscalResponseStatus = (typeof FiscalResponseStatus)[keyof typeof FiscalResponseStatus]
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -426,6 +426,7 @@ export const ModelName = {
|
||||
SaleInvoiceFiscals: 'SaleInvoiceFiscals',
|
||||
SaleInvoiceFiscalAttempts: 'SaleInvoiceFiscalAttempts',
|
||||
SalesInvoicePayment: 'SalesInvoicePayment',
|
||||
SalesInvoicePaymentTerminalInfo: 'SalesInvoicePaymentTerminalInfo',
|
||||
Service: 'Service',
|
||||
ServiceCategory: 'ServiceCategory'
|
||||
} as const
|
||||
@@ -443,7 +444,7 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
omit: GlobalOmitOptions
|
||||
}
|
||||
meta: {
|
||||
modelProps: "adminAccount" | "admin" | "account" | "deviceBrand" | "device" | "licenseChargeTransaction" | "license" | "licenseActivation" | "licenseRenewChargeTransaction" | "licenseRenew" | "partnerAccountQuotaChargeTransaction" | "partnerAccountQuotaCredit" | "licenseAccountAllocation" | "partnerAccount" | "partner" | "permissionConsumer" | "permissionPos" | "permissionComplex" | "permissionBusiness" | "providerAccount" | "provider" | "consumerDevices" | "applicationReleasedInfo" | "consumerAccount" | "consumer" | "consumerIndividual" | "consumerLegal" | "businessActivity" | "complex" | "pos" | "triggerLog" | "customer" | "customerIndividual" | "customerLegal" | "good" | "goodCategory" | "guild" | "salesInvoice" | "salesInvoiceItem" | "saleInvoiceFiscals" | "saleInvoiceFiscalAttempts" | "salesInvoicePayment" | "service" | "serviceCategory"
|
||||
modelProps: "adminAccount" | "admin" | "account" | "deviceBrand" | "device" | "licenseChargeTransaction" | "license" | "licenseActivation" | "licenseRenewChargeTransaction" | "licenseRenew" | "partnerAccountQuotaChargeTransaction" | "partnerAccountQuotaCredit" | "licenseAccountAllocation" | "partnerAccount" | "partner" | "permissionConsumer" | "permissionPos" | "permissionComplex" | "permissionBusiness" | "providerAccount" | "provider" | "consumerDevices" | "applicationReleasedInfo" | "consumerAccount" | "consumer" | "consumerIndividual" | "consumerLegal" | "businessActivity" | "complex" | "pos" | "triggerLog" | "customer" | "customerIndividual" | "customerLegal" | "good" | "goodCategory" | "guild" | "salesInvoice" | "salesInvoiceItem" | "saleInvoiceFiscals" | "saleInvoiceFiscalAttempts" | "salesInvoicePayment" | "salesInvoicePaymentTerminalInfo" | "service" | "serviceCategory"
|
||||
txIsolationLevel: TransactionIsolationLevel
|
||||
}
|
||||
model: {
|
||||
@@ -3219,6 +3220,72 @@ export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runt
|
||||
}
|
||||
}
|
||||
}
|
||||
SalesInvoicePaymentTerminalInfo: {
|
||||
payload: Prisma.$SalesInvoicePaymentTerminalInfoPayload<ExtArgs>
|
||||
fields: Prisma.SalesInvoicePaymentTerminalInfoFieldRefs
|
||||
operations: {
|
||||
findUnique: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoFindUniqueArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload> | null
|
||||
}
|
||||
findUniqueOrThrow: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoFindUniqueOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload>
|
||||
}
|
||||
findFirst: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoFindFirstArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload> | null
|
||||
}
|
||||
findFirstOrThrow: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoFindFirstOrThrowArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload>
|
||||
}
|
||||
findMany: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoFindManyArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload>[]
|
||||
}
|
||||
create: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoCreateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload>
|
||||
}
|
||||
createMany: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoCreateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
delete: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoDeleteArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload>
|
||||
}
|
||||
update: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoUpdateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload>
|
||||
}
|
||||
deleteMany: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoDeleteManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
updateMany: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoUpdateManyArgs<ExtArgs>
|
||||
result: BatchPayload
|
||||
}
|
||||
upsert: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoUpsertArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.PayloadToResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload>
|
||||
}
|
||||
aggregate: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoAggregateArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.AggregateSalesInvoicePaymentTerminalInfo>
|
||||
}
|
||||
groupBy: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoGroupByArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SalesInvoicePaymentTerminalInfoGroupByOutputType>[]
|
||||
}
|
||||
count: {
|
||||
args: Prisma.SalesInvoicePaymentTerminalInfoCountArgs<ExtArgs>
|
||||
result: runtime.Types.Utils.Optional<Prisma.SalesInvoicePaymentTerminalInfoCountAggregateOutputType> | number
|
||||
}
|
||||
}
|
||||
}
|
||||
Service: {
|
||||
payload: Prisma.$ServicePayload<ExtArgs>
|
||||
fields: Prisma.ServiceFieldRefs
|
||||
@@ -3561,6 +3628,7 @@ export const PartnerScalarFieldEnum = {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
status: 'status',
|
||||
fiscal_switch_type: 'fiscal_switch_type',
|
||||
logo_url: 'logo_url',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at'
|
||||
@@ -3940,6 +4008,21 @@ export const SalesInvoicePaymentScalarFieldEnum = {
|
||||
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoicePaymentTerminalInfoScalarFieldEnum = {
|
||||
id: 'id',
|
||||
terminal_id: 'terminal_id',
|
||||
stan: 'stan',
|
||||
rrn: 'rrn',
|
||||
transaction_date_time: 'transaction_date_time',
|
||||
customer_card_no: 'customer_card_no',
|
||||
description: 'description',
|
||||
created_at: 'created_at',
|
||||
payment_id: 'payment_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoicePaymentTerminalInfoScalarFieldEnum = (typeof SalesInvoicePaymentTerminalInfoScalarFieldEnum)[keyof typeof SalesInvoicePaymentTerminalInfoScalarFieldEnum]
|
||||
|
||||
|
||||
export const ServiceScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -4437,6 +4520,19 @@ export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
|
||||
export type SalesInvoicePaymentOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
terminal_id: 'terminal_id',
|
||||
stan: 'stan',
|
||||
rrn: 'rrn',
|
||||
customer_card_no: 'customer_card_no',
|
||||
description: 'description',
|
||||
payment_id: 'payment_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ServiceOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -4519,6 +4615,13 @@ export type EnumPartnerStatusFieldRefInput<$PrismaModel> = FieldRefInputType<$Pr
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'PartnerFiscalSwitchType'
|
||||
*/
|
||||
export type EnumPartnerFiscalSwitchTypeFieldRefInput<$PrismaModel> = FieldRefInputType<$PrismaModel, 'PartnerFiscalSwitchType'>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reference to a field of type 'POSRole'
|
||||
*/
|
||||
@@ -4802,6 +4905,7 @@ export type GlobalOmitConfig = {
|
||||
saleInvoiceFiscals?: Prisma.SaleInvoiceFiscalsOmit
|
||||
saleInvoiceFiscalAttempts?: Prisma.SaleInvoiceFiscalAttemptsOmit
|
||||
salesInvoicePayment?: Prisma.SalesInvoicePaymentOmit
|
||||
salesInvoicePaymentTerminalInfo?: Prisma.SalesInvoicePaymentTerminalInfoOmit
|
||||
service?: Prisma.ServiceOmit
|
||||
serviceCategory?: Prisma.ServiceCategoryOmit
|
||||
}
|
||||
|
||||
@@ -93,6 +93,7 @@ export const ModelName = {
|
||||
SaleInvoiceFiscals: 'SaleInvoiceFiscals',
|
||||
SaleInvoiceFiscalAttempts: 'SaleInvoiceFiscalAttempts',
|
||||
SalesInvoicePayment: 'SalesInvoicePayment',
|
||||
SalesInvoicePaymentTerminalInfo: 'SalesInvoicePaymentTerminalInfo',
|
||||
Service: 'Service',
|
||||
ServiceCategory: 'ServiceCategory'
|
||||
} as const
|
||||
@@ -284,6 +285,7 @@ export const PartnerScalarFieldEnum = {
|
||||
name: 'name',
|
||||
code: 'code',
|
||||
status: 'status',
|
||||
fiscal_switch_type: 'fiscal_switch_type',
|
||||
logo_url: 'logo_url',
|
||||
created_at: 'created_at',
|
||||
updated_at: 'updated_at'
|
||||
@@ -663,6 +665,21 @@ export const SalesInvoicePaymentScalarFieldEnum = {
|
||||
export type SalesInvoicePaymentScalarFieldEnum = (typeof SalesInvoicePaymentScalarFieldEnum)[keyof typeof SalesInvoicePaymentScalarFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoicePaymentTerminalInfoScalarFieldEnum = {
|
||||
id: 'id',
|
||||
terminal_id: 'terminal_id',
|
||||
stan: 'stan',
|
||||
rrn: 'rrn',
|
||||
transaction_date_time: 'transaction_date_time',
|
||||
customer_card_no: 'customer_card_no',
|
||||
description: 'description',
|
||||
created_at: 'created_at',
|
||||
payment_id: 'payment_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoicePaymentTerminalInfoScalarFieldEnum = (typeof SalesInvoicePaymentTerminalInfoScalarFieldEnum)[keyof typeof SalesInvoicePaymentTerminalInfoScalarFieldEnum]
|
||||
|
||||
|
||||
export const ServiceScalarFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
@@ -1160,6 +1177,19 @@ export const SalesInvoicePaymentOrderByRelevanceFieldEnum = {
|
||||
export type SalesInvoicePaymentOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
terminal_id: 'terminal_id',
|
||||
stan: 'stan',
|
||||
rrn: 'rrn',
|
||||
customer_card_no: 'customer_card_no',
|
||||
description: 'description',
|
||||
payment_id: 'payment_id'
|
||||
} as const
|
||||
|
||||
export type SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum = (typeof SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum)[keyof typeof SalesInvoicePaymentTerminalInfoOrderByRelevanceFieldEnum]
|
||||
|
||||
|
||||
export const ServiceOrderByRelevanceFieldEnum = {
|
||||
id: 'id',
|
||||
name: 'name',
|
||||
|
||||
@@ -50,6 +50,7 @@ export type * from './models/SalesInvoiceItem.js'
|
||||
export type * from './models/SaleInvoiceFiscals.js'
|
||||
export type * from './models/SaleInvoiceFiscalAttempts.js'
|
||||
export type * from './models/SalesInvoicePayment.js'
|
||||
export type * from './models/SalesInvoicePaymentTerminalInfo.js'
|
||||
export type * from './models/Service.js'
|
||||
export type * from './models/ServiceCategory.js'
|
||||
export type * from './commonInputTypes.js'
|
||||
@@ -29,6 +29,7 @@ export type PartnerMinAggregateOutputType = {
|
||||
name: string | null
|
||||
code: string | null
|
||||
status: $Enums.PartnerStatus | null
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType | null
|
||||
logo_url: string | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
@@ -39,6 +40,7 @@ export type PartnerMaxAggregateOutputType = {
|
||||
name: string | null
|
||||
code: string | null
|
||||
status: $Enums.PartnerStatus | null
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType | null
|
||||
logo_url: string | null
|
||||
created_at: Date | null
|
||||
updated_at: Date | null
|
||||
@@ -49,6 +51,7 @@ export type PartnerCountAggregateOutputType = {
|
||||
name: number
|
||||
code: number
|
||||
status: number
|
||||
fiscal_switch_type: number
|
||||
logo_url: number
|
||||
created_at: number
|
||||
updated_at: number
|
||||
@@ -61,6 +64,7 @@ export type PartnerMinAggregateInputType = {
|
||||
name?: true
|
||||
code?: true
|
||||
status?: true
|
||||
fiscal_switch_type?: true
|
||||
logo_url?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
@@ -71,6 +75,7 @@ export type PartnerMaxAggregateInputType = {
|
||||
name?: true
|
||||
code?: true
|
||||
status?: true
|
||||
fiscal_switch_type?: true
|
||||
logo_url?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
@@ -81,6 +86,7 @@ export type PartnerCountAggregateInputType = {
|
||||
name?: true
|
||||
code?: true
|
||||
status?: true
|
||||
fiscal_switch_type?: true
|
||||
logo_url?: true
|
||||
created_at?: true
|
||||
updated_at?: true
|
||||
@@ -164,6 +170,7 @@ export type PartnerGroupByOutputType = {
|
||||
name: string
|
||||
code: string
|
||||
status: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url: string | null
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
@@ -195,6 +202,7 @@ export type PartnerWhereInput = {
|
||||
name?: Prisma.StringFilter<"Partner"> | string
|
||||
code?: Prisma.StringFilter<"Partner"> | string
|
||||
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFilter<"Partner"> | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.StringNullableFilter<"Partner"> | string | null
|
||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
@@ -211,6 +219,7 @@ export type PartnerOrderByWithRelationInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
fiscal_switch_type?: Prisma.SortOrder
|
||||
logo_url?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
@@ -231,6 +240,7 @@ export type PartnerWhereUniqueInput = Prisma.AtLeast<{
|
||||
NOT?: Prisma.PartnerWhereInput | Prisma.PartnerWhereInput[]
|
||||
name?: Prisma.StringFilter<"Partner"> | string
|
||||
status?: Prisma.EnumPartnerStatusFilter<"Partner"> | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFilter<"Partner"> | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.StringNullableFilter<"Partner"> | string | null
|
||||
created_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeFilter<"Partner"> | Date | string
|
||||
@@ -247,6 +257,7 @@ export type PartnerOrderByWithAggregationInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
fiscal_switch_type?: Prisma.SortOrder
|
||||
logo_url?: Prisma.SortOrderInput | Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
@@ -263,6 +274,7 @@ export type PartnerScalarWhereWithAggregatesInput = {
|
||||
name?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
code?: Prisma.StringWithAggregatesFilter<"Partner"> | string
|
||||
status?: Prisma.EnumPartnerStatusWithAggregatesFilter<"Partner"> | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeWithAggregatesFilter<"Partner"> | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.StringNullableWithAggregatesFilter<"Partner"> | string | null
|
||||
created_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||
updated_at?: Prisma.DateTimeWithAggregatesFilter<"Partner"> | Date | string
|
||||
@@ -273,6 +285,7 @@ export type PartnerCreateInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -289,6 +302,7 @@ export type PartnerUncheckedCreateInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -305,6 +319,7 @@ export type PartnerUpdateInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -321,6 +336,7 @@ export type PartnerUncheckedUpdateInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -337,6 +353,7 @@ export type PartnerCreateManyInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -347,6 +364,7 @@ export type PartnerUpdateManyMutationInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -357,6 +375,7 @@ export type PartnerUncheckedUpdateManyInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -378,6 +397,7 @@ export type PartnerCountOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
fiscal_switch_type?: Prisma.SortOrder
|
||||
logo_url?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
@@ -388,6 +408,7 @@ export type PartnerMaxOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
fiscal_switch_type?: Prisma.SortOrder
|
||||
logo_url?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
@@ -398,6 +419,7 @@ export type PartnerMinOrderByAggregateInput = {
|
||||
name?: Prisma.SortOrder
|
||||
code?: Prisma.SortOrder
|
||||
status?: Prisma.SortOrder
|
||||
fiscal_switch_type?: Prisma.SortOrder
|
||||
logo_url?: Prisma.SortOrder
|
||||
created_at?: Prisma.SortOrder
|
||||
updated_at?: Prisma.SortOrder
|
||||
@@ -463,6 +485,10 @@ export type EnumPartnerStatusFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PartnerStatus
|
||||
}
|
||||
|
||||
export type EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PartnerFiscalSwitchType
|
||||
}
|
||||
|
||||
export type PartnerCreateNestedOneWithoutConsumers_individualInput = {
|
||||
create?: Prisma.XOR<Prisma.PartnerCreateWithoutConsumers_individualInput, Prisma.PartnerUncheckedCreateWithoutConsumers_individualInput>
|
||||
connectOrCreate?: Prisma.PartnerCreateOrConnectWithoutConsumers_individualInput
|
||||
@@ -496,6 +522,7 @@ export type PartnerCreateWithoutLicense_charge_transactionsInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -511,6 +538,7 @@ export type PartnerUncheckedCreateWithoutLicense_charge_transactionsInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -542,6 +570,7 @@ export type PartnerUpdateWithoutLicense_charge_transactionsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -557,6 +586,7 @@ export type PartnerUncheckedUpdateWithoutLicense_charge_transactionsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -572,6 +602,7 @@ export type PartnerCreateWithoutLicense_renew_charge_transactionsInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -587,6 +618,7 @@ export type PartnerUncheckedCreateWithoutLicense_renew_charge_transactionsInput
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -618,6 +650,7 @@ export type PartnerUpdateWithoutLicense_renew_charge_transactionsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -633,6 +666,7 @@ export type PartnerUncheckedUpdateWithoutLicense_renew_charge_transactionsInput
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -648,6 +682,7 @@ export type PartnerCreateWithoutAccount_quota_charge_transactionsInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -663,6 +698,7 @@ export type PartnerUncheckedCreateWithoutAccount_quota_charge_transactionsInput
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -694,6 +730,7 @@ export type PartnerUpdateWithoutAccount_quota_charge_transactionsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -709,6 +746,7 @@ export type PartnerUncheckedUpdateWithoutAccount_quota_charge_transactionsInput
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -724,6 +762,7 @@ export type PartnerCreateWithoutAccountsInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -739,6 +778,7 @@ export type PartnerUncheckedCreateWithoutAccountsInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -770,6 +810,7 @@ export type PartnerUpdateWithoutAccountsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -785,6 +826,7 @@ export type PartnerUncheckedUpdateWithoutAccountsInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -800,6 +842,7 @@ export type PartnerCreateWithoutConsumers_individualInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -815,6 +858,7 @@ export type PartnerUncheckedCreateWithoutConsumers_individualInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -846,6 +890,7 @@ export type PartnerUpdateWithoutConsumers_individualInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -861,6 +906,7 @@ export type PartnerUncheckedUpdateWithoutConsumers_individualInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -876,6 +922,7 @@ export type PartnerCreateWithoutConsumers_legalInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -891,6 +938,7 @@ export type PartnerUncheckedCreateWithoutConsumers_legalInput = {
|
||||
name: string
|
||||
code: string
|
||||
status?: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: string | null
|
||||
created_at?: Date | string
|
||||
updated_at?: Date | string
|
||||
@@ -922,6 +970,7 @@ export type PartnerUpdateWithoutConsumers_legalInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -937,6 +986,7 @@ export type PartnerUncheckedUpdateWithoutConsumers_legalInput = {
|
||||
name?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
code?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
status?: Prisma.EnumPartnerStatusFieldUpdateOperationsInput | $Enums.PartnerStatus
|
||||
fiscal_switch_type?: Prisma.EnumPartnerFiscalSwitchTypeFieldUpdateOperationsInput | $Enums.PartnerFiscalSwitchType
|
||||
logo_url?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
updated_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
@@ -1028,6 +1078,7 @@ export type PartnerSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs
|
||||
name?: boolean
|
||||
code?: boolean
|
||||
status?: boolean
|
||||
fiscal_switch_type?: boolean
|
||||
logo_url?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
@@ -1047,12 +1098,13 @@ export type PartnerSelectScalar = {
|
||||
name?: boolean
|
||||
code?: boolean
|
||||
status?: boolean
|
||||
fiscal_switch_type?: boolean
|
||||
logo_url?: boolean
|
||||
created_at?: boolean
|
||||
updated_at?: boolean
|
||||
}
|
||||
|
||||
export type PartnerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "status" | "logo_url" | "created_at" | "updated_at", ExtArgs["result"]["partner"]>
|
||||
export type PartnerOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "name" | "code" | "status" | "fiscal_switch_type" | "logo_url" | "created_at" | "updated_at", ExtArgs["result"]["partner"]>
|
||||
export type PartnerInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
accounts?: boolean | Prisma.Partner$accountsArgs<ExtArgs>
|
||||
consumers_individual?: boolean | Prisma.Partner$consumers_individualArgs<ExtArgs>
|
||||
@@ -1078,6 +1130,7 @@ export type $PartnerPayload<ExtArgs extends runtime.Types.Extensions.InternalArg
|
||||
name: string
|
||||
code: string
|
||||
status: $Enums.PartnerStatus
|
||||
fiscal_switch_type: $Enums.PartnerFiscalSwitchType
|
||||
logo_url: string | null
|
||||
created_at: Date
|
||||
updated_at: Date
|
||||
@@ -1460,6 +1513,7 @@ export interface PartnerFieldRefs {
|
||||
readonly name: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly code: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly status: Prisma.FieldRef<"Partner", 'PartnerStatus'>
|
||||
readonly fiscal_switch_type: Prisma.FieldRef<"Partner", 'PartnerFiscalSwitchType'>
|
||||
readonly logo_url: Prisma.FieldRef<"Partner", 'String'>
|
||||
readonly created_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
readonly updated_at: Prisma.FieldRef<"Partner", 'DateTime'>
|
||||
|
||||
@@ -225,6 +225,7 @@ export type SalesInvoicePaymentWhereInput = {
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||
terminal_info?: Prisma.XOR<Prisma.SalesInvoicePaymentTerminalInfoNullableScalarRelationFilter, Prisma.SalesInvoicePaymentTerminalInfoWhereInput> | null
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentOrderByWithRelationInput = {
|
||||
@@ -235,6 +236,7 @@ export type SalesInvoicePaymentOrderByWithRelationInput = {
|
||||
created_at?: Prisma.SortOrder
|
||||
invoice_id?: Prisma.SortOrder
|
||||
invoice?: Prisma.SalesInvoiceOrderByWithRelationInput
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoOrderByWithRelationInput
|
||||
_relevance?: Prisma.SalesInvoicePaymentOrderByRelevanceInput
|
||||
}
|
||||
|
||||
@@ -249,6 +251,7 @@ export type SalesInvoicePaymentWhereUniqueInput = Prisma.AtLeast<{
|
||||
created_at?: Prisma.DateTimeFilter<"SalesInvoicePayment"> | Date | string
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
invoice?: Prisma.XOR<Prisma.SalesInvoiceScalarRelationFilter, Prisma.SalesInvoiceWhereInput>
|
||||
terminal_info?: Prisma.XOR<Prisma.SalesInvoicePaymentTerminalInfoNullableScalarRelationFilter, Prisma.SalesInvoicePaymentTerminalInfoWhereInput> | null
|
||||
}, "id">
|
||||
|
||||
export type SalesInvoicePaymentOrderByWithAggregationInput = {
|
||||
@@ -284,6 +287,7 @@ export type SalesInvoicePaymentCreateInput = {
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutPaymentsInput
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoCreateNestedOneWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUncheckedCreateInput = {
|
||||
@@ -293,6 +297,7 @@ export type SalesInvoicePaymentUncheckedCreateInput = {
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
invoice_id: string
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedCreateNestedOneWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUpdateInput = {
|
||||
@@ -302,6 +307,7 @@ export type SalesInvoicePaymentUpdateInput = {
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUpdateOneWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUncheckedUpdateInput = {
|
||||
@@ -311,6 +317,7 @@ export type SalesInvoicePaymentUncheckedUpdateInput = {
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedUpdateOneWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateManyInput = {
|
||||
@@ -390,6 +397,11 @@ export type SalesInvoicePaymentSumOrderByAggregateInput = {
|
||||
amount?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentScalarRelationFilter = {
|
||||
is?: Prisma.SalesInvoicePaymentWhereInput
|
||||
isNot?: Prisma.SalesInvoicePaymentWhereInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateNestedManyWithoutInvoiceInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput> | Prisma.SalesInvoicePaymentCreateWithoutInvoiceInput[] | Prisma.SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput[]
|
||||
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput | Prisma.SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput[]
|
||||
@@ -436,12 +448,27 @@ export type EnumPaymentMethodTypeFieldUpdateOperationsInput = {
|
||||
set?: $Enums.PaymentMethodType
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateNestedOneWithoutTerminal_infoInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
||||
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutTerminal_infoInput
|
||||
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUpdateOneRequiredWithoutTerminal_infoNestedInput = {
|
||||
create?: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
||||
connectOrCreate?: Prisma.SalesInvoicePaymentCreateOrConnectWithoutTerminal_infoInput
|
||||
upsert?: Prisma.SalesInvoicePaymentUpsertWithoutTerminal_infoInput
|
||||
connect?: Prisma.SalesInvoicePaymentWhereUniqueInput
|
||||
update?: Prisma.XOR<Prisma.XOR<Prisma.SalesInvoicePaymentUpdateToOneWithWhereWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUpdateWithoutTerminal_infoInput>, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput>
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateWithoutInvoiceInput = {
|
||||
id?: string
|
||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoCreateNestedOneWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput = {
|
||||
@@ -450,6 +477,7 @@ export type SalesInvoicePaymentUncheckedCreateWithoutInvoiceInput = {
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedCreateNestedOneWithoutPaymentInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateOrConnectWithoutInvoiceInput = {
|
||||
@@ -490,6 +518,58 @@ export type SalesInvoicePaymentScalarWhereInput = {
|
||||
invoice_id?: Prisma.StringFilter<"SalesInvoicePayment"> | string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateWithoutTerminal_infoInput = {
|
||||
id?: string
|
||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
invoice: Prisma.SalesInvoiceCreateNestedOneWithoutPaymentsInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput = {
|
||||
id?: string
|
||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method: $Enums.PaymentMethodType
|
||||
paid_at: Date | string
|
||||
created_at?: Date | string
|
||||
invoice_id: string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateOrConnectWithoutTerminal_infoInput = {
|
||||
where: Prisma.SalesInvoicePaymentWhereUniqueInput
|
||||
create: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUpsertWithoutTerminal_infoInput = {
|
||||
update: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput>
|
||||
create: Prisma.XOR<Prisma.SalesInvoicePaymentCreateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedCreateWithoutTerminal_infoInput>
|
||||
where?: Prisma.SalesInvoicePaymentWhereInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUpdateToOneWithWhereWithoutTerminal_infoInput = {
|
||||
where?: Prisma.SalesInvoicePaymentWhereInput
|
||||
data: Prisma.XOR<Prisma.SalesInvoicePaymentUpdateWithoutTerminal_infoInput, Prisma.SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput>
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUpdateWithoutTerminal_infoInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice?: Prisma.SalesInvoiceUpdateOneRequiredWithoutPaymentsNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUncheckedUpdateWithoutTerminal_infoInput = {
|
||||
id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
amount?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
invoice_id?: Prisma.StringFieldUpdateOperationsInput | string
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentCreateManyInvoiceInput = {
|
||||
id?: string
|
||||
amount: runtime.Decimal | runtime.DecimalJsLike | number | string
|
||||
@@ -504,6 +584,7 @@ export type SalesInvoicePaymentUpdateWithoutInvoiceInput = {
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUpdateOneWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUncheckedUpdateWithoutInvoiceInput = {
|
||||
@@ -512,6 +593,7 @@ export type SalesInvoicePaymentUncheckedUpdateWithoutInvoiceInput = {
|
||||
payment_method?: Prisma.EnumPaymentMethodTypeFieldUpdateOperationsInput | $Enums.PaymentMethodType
|
||||
paid_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
created_at?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
terminal_info?: Prisma.SalesInvoicePaymentTerminalInfoUncheckedUpdateOneWithoutPaymentNestedInput
|
||||
}
|
||||
|
||||
export type SalesInvoicePaymentUncheckedUpdateManyWithoutInvoiceInput = {
|
||||
@@ -532,6 +614,7 @@ export type SalesInvoicePaymentSelect<ExtArgs extends runtime.Types.Extensions.I
|
||||
created_at?: boolean
|
||||
invoice_id?: boolean
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
terminal_info?: boolean | Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["salesInvoicePayment"]>
|
||||
|
||||
|
||||
@@ -548,12 +631,14 @@ export type SalesInvoicePaymentSelectScalar = {
|
||||
export type SalesInvoicePaymentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "amount" | "payment_method" | "paid_at" | "created_at" | "invoice_id", ExtArgs["result"]["salesInvoicePayment"]>
|
||||
export type SalesInvoicePaymentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
invoice?: boolean | Prisma.SalesInvoiceDefaultArgs<ExtArgs>
|
||||
terminal_info?: boolean | Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $SalesInvoicePaymentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "SalesInvoicePayment"
|
||||
objects: {
|
||||
invoice: Prisma.$SalesInvoicePayload<ExtArgs>
|
||||
terminal_info: Prisma.$SalesInvoicePaymentTerminalInfoPayload<ExtArgs> | null
|
||||
}
|
||||
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
||||
id: string
|
||||
@@ -903,6 +988,7 @@ readonly fields: SalesInvoicePaymentFieldRefs;
|
||||
export interface Prisma__SalesInvoicePaymentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
||||
readonly [Symbol.toStringTag]: "PrismaPromise"
|
||||
invoice<T extends Prisma.SalesInvoiceDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoiceDefaultArgs<ExtArgs>>): Prisma.Prisma__SalesInvoiceClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
||||
terminal_info<T extends Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.SalesInvoicePayment$terminal_infoArgs<ExtArgs>>): Prisma.Prisma__SalesInvoicePaymentTerminalInfoClient<runtime.Types.Result.GetResult<Prisma.$SalesInvoicePaymentTerminalInfoPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
||||
/**
|
||||
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
||||
* @param onfulfilled The callback to execute when the Promise is resolved.
|
||||
@@ -1285,6 +1371,25 @@ export type SalesInvoicePaymentDeleteManyArgs<ExtArgs extends runtime.Types.Exte
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* SalesInvoicePayment.terminal_info
|
||||
*/
|
||||
export type SalesInvoicePayment$terminal_infoArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the SalesInvoicePaymentTerminalInfo
|
||||
*/
|
||||
select?: Prisma.SalesInvoicePaymentTerminalInfoSelect<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the SalesInvoicePaymentTerminalInfo
|
||||
*/
|
||||
omit?: Prisma.SalesInvoicePaymentTerminalInfoOmit<ExtArgs> | null
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.SalesInvoicePaymentTerminalInfoInclude<ExtArgs> | null
|
||||
where?: Prisma.SalesInvoicePaymentTerminalInfoWhereInput
|
||||
}
|
||||
|
||||
/**
|
||||
* SalesInvoicePayment without action
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user