feat: implement SalesInvoiceTspSwitchService and SalesInvoiceTspService for handling TSP provider interactions

- Add SalesInvoiceTspSwitchService to manage TSP provider selection and sending invoices.
- Introduce SalesInvoiceTspService for creating, sending, and retrieving sales invoices.
- Implement NamaProviderSwitchAdapter for communication with the NAMA TSP provider API.
- Define DTOs for request and response structures specific to the NAMA provider.
- Enhance error handling and logging for TSP provider interactions.
This commit is contained in:
2026-05-03 16:23:17 +03:30
parent ad470d2166
commit a486127ade
62 changed files with 4136 additions and 5015 deletions
+22 -7
View File
@@ -1,10 +1,11 @@
enum PaymentMethodType {
TERMINAL
CASH
CHEQUE
SET_OFF
CASH
TERMINAL
PAYMENT_GATEWAY
CARD
BANK
CHECK
OTHER
}
@@ -156,26 +157,26 @@ enum ConsumerType {
LEGAL
}
enum PartnerFiscalSwitchType {
enum TspProviderType {
NAMA
SUN
}
enum FiscalResponseStatus {
enum TspProviderResponseStatus {
SUCCESS
FAILURE
NOT_SEND
QUEUED
}
enum FiscalRequestType {
enum TspProviderRequestType {
MAIN
UPDATE
REVOKE
REMOVE
}
enum FiscalInvoiceCustomerType {
enum TspProviderCustomerType {
Unknown
Known
}
@@ -183,3 +184,17 @@ enum FiscalInvoiceCustomerType {
enum SKUGuildType {
GOLD
}
enum InvoiceTemplateType {
SALE
FX_SALE
GOLD_JEWELRY
CONTRACT
UTILITY
AIR_TICKET
EXPORT
BILL_OF_LADING
PETROCHEMICAL
COMMODITY_EXCHANGE
INSURANCE
}