feat(customers): add DTOs for individual and legal customer creation
- Created CreateCustomerIndividualDto for individual customer data with fields: first_name, last_name, national_code, postal_code, is_favorite, and economic_code. - Created CreateCustomerLegalDto for legal customer data with fields: company_name, economic_code, registration_number, and postal_code.
This commit is contained in:
@@ -10,7 +10,9 @@
|
||||
*/
|
||||
|
||||
export const PaymentMethodType = {
|
||||
TERMINAL: 'TERMINAL',
|
||||
CASH: 'CASH',
|
||||
SET_OFF: 'SET_OFF',
|
||||
CARD: 'CARD',
|
||||
BANK: 'BANK',
|
||||
CHECK: 'CHECK',
|
||||
@@ -47,3 +49,20 @@ export const UnitType = {
|
||||
} as const
|
||||
|
||||
export type UnitType = (typeof UnitType)[keyof typeof UnitType]
|
||||
|
||||
|
||||
export const CustomerType = {
|
||||
INDIVIDUAL: 'INDIVIDUAL',
|
||||
LEGAL: 'LEGAL',
|
||||
UNKNOWN: 'UNKNOWN'
|
||||
} as const
|
||||
|
||||
export type CustomerType = (typeof CustomerType)[keyof typeof CustomerType]
|
||||
|
||||
|
||||
export const SalesInvoiceItemPricingModel = {
|
||||
STANDARD: 'STANDARD',
|
||||
GOLD: 'GOLD'
|
||||
} as const
|
||||
|
||||
export type SalesInvoiceItemPricingModel = (typeof SalesInvoiceItemPricingModel)[keyof typeof SalesInvoiceItemPricingModel]
|
||||
|
||||
Reference in New Issue
Block a user