@arcasdk/core 0.3.1 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/application/config/env.d.ts +6 -0
- package/lib/application/config/env.js +14 -0
- package/lib/application/config/env.js.map +1 -0
- package/lib/application/config/index.d.ts +6 -0
- package/lib/application/config/index.js +15 -0
- package/lib/application/config/index.js.map +1 -0
- package/lib/application/dto/electronic-billing.dto.d.ts +192 -0
- package/lib/application/dto/electronic-billing.dto.js +3 -0
- package/lib/application/dto/electronic-billing.dto.js.map +1 -0
- package/lib/application/dto/index.d.ts +6 -0
- package/lib/application/dto/index.js +23 -0
- package/lib/application/dto/index.js.map +1 -0
- package/lib/application/dto/register.dto.d.ts +116 -0
- package/lib/application/dto/register.dto.js +8 -0
- package/lib/application/dto/register.dto.js.map +1 -0
- package/lib/application/index.d.ts +10 -0
- package/lib/application/index.js +27 -0
- package/lib/application/index.js.map +1 -0
- package/lib/application/ports/authentication/authentication-repository.port.d.ts +29 -0
- package/lib/application/ports/authentication/authentication-repository.port.js +3 -0
- package/lib/application/ports/authentication/authentication-repository.port.js.map +1 -0
- package/lib/application/ports/authentication/index.d.ts +5 -0
- package/lib/application/ports/authentication/index.js +22 -0
- package/lib/application/ports/authentication/index.js.map +1 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +139 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js +3 -0
- package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js.map +1 -0
- package/lib/application/ports/electronic-billing/index.d.ts +5 -0
- package/lib/application/ports/electronic-billing/index.js +22 -0
- package/lib/application/ports/electronic-billing/index.js.map +1 -0
- package/lib/application/ports/generic/generic-repository.port.d.ts +16 -0
- package/lib/application/ports/generic/generic-repository.port.js +3 -0
- package/lib/application/ports/generic/generic-repository.port.js.map +1 -0
- package/lib/application/ports/index.d.ts +7 -0
- package/lib/application/ports/index.js +24 -0
- package/lib/application/ports/index.js.map +1 -0
- package/lib/application/ports/register/index.d.ts +5 -0
- package/lib/application/ports/register/index.js +22 -0
- package/lib/application/ports/register/index.js.map +1 -0
- package/lib/application/ports/register/register-repository.ports.d.ts +23 -0
- package/lib/application/ports/register/register-repository.ports.js +3 -0
- package/lib/application/ports/register/register-repository.ports.js.map +1 -0
- package/lib/application/services/electronic-billing.service.d.ts +202 -0
- package/lib/application/services/electronic-billing.service.js +340 -0
- package/lib/application/services/electronic-billing.service.js.map +1 -0
- package/lib/application/services/generic.service.d.ts +19 -0
- package/lib/application/services/generic.service.js +31 -0
- package/lib/application/services/generic.service.js.map +1 -0
- package/lib/application/services/index.d.ts +10 -0
- package/lib/application/services/index.js +27 -0
- package/lib/application/services/index.js.map +1 -0
- package/lib/application/services/register-inscription-proof.service.d.ts +26 -0
- package/lib/application/services/register-inscription-proof.service.js +49 -0
- package/lib/application/services/register-inscription-proof.service.js.map +1 -0
- package/lib/application/services/register-scope-five.service.d.ts +26 -0
- package/lib/application/services/register-scope-five.service.js +49 -0
- package/lib/application/services/register-scope-five.service.js.map +1 -0
- package/lib/application/services/register-scope-four.service.d.ts +28 -0
- package/lib/application/services/register-scope-four.service.js +51 -0
- package/lib/application/services/register-scope-four.service.js.map +1 -0
- package/lib/application/services/register-scope-ten.service.d.ts +21 -0
- package/lib/application/services/register-scope-ten.service.js +39 -0
- package/lib/application/services/register-scope-ten.service.js.map +1 -0
- package/lib/application/services/register-scope-thirteen.service.d.ts +26 -0
- package/lib/application/services/register-scope-thirteen.service.js +49 -0
- package/lib/application/services/register-scope-thirteen.service.js.map +1 -0
- package/lib/application/types/auth.types.d.ts +19 -0
- package/lib/application/types/auth.types.js +7 -0
- package/lib/application/types/auth.types.js.map +1 -0
- package/lib/application/types/context.types.d.ts +46 -0
- package/lib/application/types/context.types.js +3 -0
- package/lib/application/types/context.types.js.map +1 -0
- package/lib/application/types/index.d.ts +8 -0
- package/lib/application/types/index.js +25 -0
- package/lib/application/types/index.js.map +1 -0
- package/lib/application/types/result.types.d.ts +10 -0
- package/lib/application/types/result.types.js +3 -0
- package/lib/application/types/result.types.js.map +1 -0
- package/lib/application/types/use-case-inputs.types.d.ts +23 -0
- package/lib/application/types/use-case-inputs.types.js +7 -0
- package/lib/application/types/use-case-inputs.types.js.map +1 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +16 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js +29 -0
- package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +1 -0
- package/lib/application/use-cases/authentication/index.d.ts +7 -0
- package/lib/application/use-cases/authentication/index.js +24 -0
- package/lib/application/use-cases/authentication/index.js.map +1 -0
- package/lib/application/use-cases/authentication/login.use-case.d.ts +17 -0
- package/lib/application/use-cases/authentication/login.use-case.js +29 -0
- package/lib/application/use-cases/authentication/login.use-case.js.map +1 -0
- package/lib/application/use-cases/authentication/request-login.use-case.d.ts +16 -0
- package/lib/application/use-cases/authentication/request-login.use-case.js +29 -0
- package/lib/application/use-cases/authentication/request-login.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/consult-caea.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/consult-caea.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/consult-caea.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +39 -0
- package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +33 -0
- package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-activities.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-activities.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-activities.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-caea.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-caea.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/get-caea.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-countries.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-countries.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-countries.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.d.ts +16 -0
- package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-max-records.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-max-records.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-max-records.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +40 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js +73 -0
- package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-quotation.use-case.d.ts +16 -0
- package/lib/application/use-cases/electronic-billing/get-quotation.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-quotation.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js +29 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +15 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js +28 -0
- package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/index.d.ts +18 -0
- package/lib/application/use-cases/electronic-billing/index.js +36 -0
- package/lib/application/use-cases/electronic-billing/index.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.d.ts +17 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.js +30 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.js.map +1 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.d.ts +14 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js +32 -0
- package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js.map +1 -0
- package/lib/application/use-cases/index.d.ts +7 -0
- package/lib/application/use-cases/index.js +24 -0
- package/lib/application/use-cases/index.js.map +1 -0
- package/lib/application/use-cases/register/get-register-server-status.use-case.d.ts +15 -0
- package/lib/application/use-cases/register/get-register-server-status.use-case.js +28 -0
- package/lib/application/use-cases/register/get-register-server-status.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +16 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js +29 -0
- package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +16 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js +29 -0
- package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +1 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +16 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js +29 -0
- package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +1 -0
- package/lib/application/use-cases/register/index.d.ts +4 -0
- package/lib/application/use-cases/register/index.js +21 -0
- package/lib/application/use-cases/register/index.js.map +1 -0
- package/lib/arca.d.ts +26 -0
- package/lib/arca.js +124 -0
- package/lib/arca.js.map +1 -0
- package/lib/domain/entities/access-ticket.entity.d.ts +73 -0
- package/lib/domain/entities/access-ticket.entity.js +144 -0
- package/lib/domain/entities/access-ticket.entity.js.map +1 -0
- package/lib/domain/entities/index.d.ts +6 -0
- package/lib/domain/entities/index.js +23 -0
- package/lib/domain/entities/index.js.map +1 -0
- package/lib/domain/entities/voucher.entity.d.ts +113 -0
- package/lib/domain/entities/voucher.entity.js +216 -0
- package/lib/domain/entities/voucher.entity.js.map +1 -0
- package/lib/domain/index.d.ts +6 -0
- package/lib/domain/index.js +23 -0
- package/lib/domain/index.js.map +1 -0
- package/lib/domain/types/electronic-billing.types.d.ts +193 -0
- package/lib/domain/types/electronic-billing.types.js +8 -0
- package/lib/domain/types/electronic-billing.types.js.map +1 -0
- package/lib/domain/types/index.d.ts +6 -0
- package/lib/domain/types/index.js +23 -0
- package/lib/domain/types/index.js.map +1 -0
- package/lib/domain/types/voucher.types.d.ts +65 -0
- package/lib/domain/types/voucher.types.js +3 -0
- package/lib/domain/types/voucher.types.js.map +1 -0
- package/lib/domain/value-objects/cae.vo.d.ts +47 -0
- package/lib/domain/value-objects/cae.vo.js +80 -0
- package/lib/domain/value-objects/cae.vo.js.map +1 -0
- package/lib/domain/value-objects/cuit.vo.d.ts +49 -0
- package/lib/domain/value-objects/cuit.vo.js +98 -0
- package/lib/domain/value-objects/cuit.vo.js.map +1 -0
- package/lib/domain/value-objects/index.d.ts +7 -0
- package/lib/domain/value-objects/index.js +24 -0
- package/lib/domain/value-objects/index.js.map +1 -0
- package/lib/domain/value-objects/voucher-number.vo.d.ts +66 -0
- package/lib/domain/value-objects/voucher-number.vo.js +106 -0
- package/lib/domain/value-objects/voucher-number.vo.js.map +1 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.js +27 -0
- package/lib/index.js.map +1 -0
- package/lib/infrastructure/constants/index.d.ts +5 -0
- package/lib/infrastructure/constants/index.js +22 -0
- package/lib/infrastructure/constants/index.js.map +1 -0
- package/lib/infrastructure/constants/ssl.constants.d.ts +16 -0
- package/lib/infrastructure/constants/ssl.constants.js +20 -0
- package/lib/infrastructure/constants/ssl.constants.js.map +1 -0
- package/lib/infrastructure/index.d.ts +5 -0
- package/lib/infrastructure/index.js +22 -0
- package/lib/infrastructure/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +68 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +128 -0
- package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +59 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +134 -0
- package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +41 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +513 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +5 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.js +22 -0
- package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/enums.d.ts +43 -0
- package/lib/infrastructure/outbound/adapters/enums.js +49 -0
- package/lib/infrastructure/outbound/adapters/enums.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.d.ts +13 -0
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.js +53 -0
- package/lib/infrastructure/outbound/adapters/generic/generic-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/index.d.ts +10 -0
- package/lib/infrastructure/outbound/adapters/index.js +27 -0
- package/lib/infrastructure/outbound/adapters/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +14 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +24 -0
- package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/index.d.ts +9 -0
- package/lib/infrastructure/outbound/adapters/register/index.js +26 -0
- package/lib/infrastructure/outbound/adapters/register/index.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts +18 -0
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js +143 -0
- package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.d.ts +14 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js +136 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.d.ts +12 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js +103 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.d.ts +12 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js +112 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts +13 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js +133 -0
- package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +30 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +68 -0
- package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +20 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +54 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +11 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js +95 -0
- package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.d.ts +10 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +6144 -0
- package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +1 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +24 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +98 -0
- package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +1 -0
- package/lib/infrastructure/outbound/index.d.ts +9 -0
- package/lib/infrastructure/outbound/index.js +26 -0
- package/lib/infrastructure/outbound/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +17 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js +3 -0
- package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/index.d.ts +11 -0
- package/lib/infrastructure/outbound/ports/index.js +28 -0
- package/lib/infrastructure/outbound/ports/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +31 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.js +3 -0
- package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.js +3 -0
- package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +51 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +57 -0
- package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.js +24 -0
- package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.d.ts +9 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js +14 -0
- package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +15 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +20 -0
- package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/index.d.ts +7 -0
- package/lib/infrastructure/outbound/ports/soap/index.js +24 -0
- package/lib/infrastructure/outbound/ports/soap/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.d.ts +42 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +102 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +145 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +227 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +300 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +301 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +835 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +876 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +15 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +53 -0
- package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +30 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/soap-client.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +45 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js +3 -0
- package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +1 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +24 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js +3 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js.map +1 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.d.ts +9 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js +3 -0
- package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +1 -0
- package/lib/infrastructure/types/index.d.ts +5 -0
- package/lib/infrastructure/types/index.js +22 -0
- package/lib/infrastructure/types/index.js.map +1 -0
- package/lib/infrastructure/types/soap.types.d.ts +29 -0
- package/lib/infrastructure/types/soap.types.js +3 -0
- package/lib/infrastructure/types/soap.types.js.map +1 -0
- package/lib/infrastructure/utils/crypt-data.d.ts +6 -0
- package/lib/infrastructure/utils/crypt-data.js +46 -0
- package/lib/infrastructure/utils/crypt-data.js.map +1 -0
- package/lib/infrastructure/utils/env.d.ts +10 -0
- package/lib/infrastructure/utils/env.js +32 -0
- package/lib/infrastructure/utils/env.js.map +1 -0
- package/lib/infrastructure/utils/index.d.ts +8 -0
- package/lib/infrastructure/utils/index.js +25 -0
- package/lib/infrastructure/utils/index.js.map +1 -0
- package/lib/infrastructure/utils/logger.d.ts +4 -0
- package/lib/infrastructure/utils/logger.js +21 -0
- package/lib/infrastructure/utils/logger.js.map +1 -0
- package/lib/infrastructure/utils/parser.d.ts +14 -0
- package/lib/infrastructure/utils/parser.js +36 -0
- package/lib/infrastructure/utils/parser.js.map +1 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +200 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.js +213 -0
- package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +1 -0
- package/package.json +3 -2
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ElectronicBillingService = void 0;
|
|
13
|
+
// Use cases
|
|
14
|
+
const get_server_status_use_case_1 = require("@application/use-cases/electronic-billing/get-server-status.use-case");
|
|
15
|
+
const get_sales_points_use_case_1 = require("@application/use-cases/electronic-billing/get-sales-points.use-case");
|
|
16
|
+
const get_last_voucher_use_case_1 = require("@application/use-cases/electronic-billing/get-last-voucher.use-case");
|
|
17
|
+
const create_voucher_use_case_1 = require("@application/use-cases/electronic-billing/create-voucher.use-case");
|
|
18
|
+
const create_next_voucher_use_case_1 = require("@application/use-cases/electronic-billing/create-next-voucher.use-case");
|
|
19
|
+
const get_voucher_info_use_case_1 = require("@application/use-cases/electronic-billing/get-voucher-info.use-case");
|
|
20
|
+
const get_voucher_types_use_case_1 = require("@application/use-cases/electronic-billing/get-voucher-types.use-case");
|
|
21
|
+
const get_concept_types_use_case_1 = require("@application/use-cases/electronic-billing/get-concept-types.use-case");
|
|
22
|
+
const get_document_types_use_case_1 = require("@application/use-cases/electronic-billing/get-document-types.use-case");
|
|
23
|
+
const get_aliquot_types_use_case_1 = require("@application/use-cases/electronic-billing/get-aliquot-types.use-case");
|
|
24
|
+
const get_currency_types_use_case_1 = require("@application/use-cases/electronic-billing/get-currency-types.use-case");
|
|
25
|
+
const get_optional_types_use_case_1 = require("@application/use-cases/electronic-billing/get-optional-types.use-case");
|
|
26
|
+
const get_tax_types_use_case_1 = require("@application/use-cases/electronic-billing/get-tax-types.use-case");
|
|
27
|
+
const get_iva_receptor_types_use_case_1 = require("@application/use-cases/electronic-billing/get-iva-receptor-types.use-case");
|
|
28
|
+
const get_caea_use_case_1 = require("@application/use-cases/electronic-billing/get-caea.use-case");
|
|
29
|
+
const consult_caea_use_case_1 = require("@application/use-cases/electronic-billing/consult-caea.use-case");
|
|
30
|
+
const inform_caea_no_movement_use_case_1 = require("@application/use-cases/electronic-billing/inform-caea-no-movement.use-case");
|
|
31
|
+
const consult_caea_no_movement_use_case_1 = require("@application/use-cases/electronic-billing/consult-caea-no-movement.use-case");
|
|
32
|
+
const inform_caea_usage_use_case_1 = require("@application/use-cases/electronic-billing/inform-caea-usage.use-case");
|
|
33
|
+
const get_quotation_use_case_1 = require("@application/use-cases/electronic-billing/get-quotation.use-case");
|
|
34
|
+
const get_countries_use_case_1 = require("@application/use-cases/electronic-billing/get-countries.use-case");
|
|
35
|
+
const get_activities_use_case_1 = require("@application/use-cases/electronic-billing/get-activities.use-case");
|
|
36
|
+
const get_max_records_use_case_1 = require("@application/use-cases/electronic-billing/get-max-records.use-case");
|
|
37
|
+
class ElectronicBillingService {
|
|
38
|
+
constructor(electronicBillingRepository) {
|
|
39
|
+
this.electronicBillingRepository = electronicBillingRepository;
|
|
40
|
+
// Initialize all use cases
|
|
41
|
+
this.getServerStatusUseCase = new get_server_status_use_case_1.GetServerStatusUseCase(this.electronicBillingRepository);
|
|
42
|
+
this.getSalesPointsUseCase = new get_sales_points_use_case_1.GetSalesPointsUseCase(this.electronicBillingRepository);
|
|
43
|
+
this.getLastVoucherUseCase = new get_last_voucher_use_case_1.GetLastVoucherUseCase(this.electronicBillingRepository);
|
|
44
|
+
this.createVoucherUseCase = new create_voucher_use_case_1.CreateVoucherUseCase(this.electronicBillingRepository);
|
|
45
|
+
this.createNextVoucherUseCase = new create_next_voucher_use_case_1.CreateNextVoucherUseCase(this.electronicBillingRepository);
|
|
46
|
+
this.getVoucherInfoUseCase = new get_voucher_info_use_case_1.GetVoucherInfoUseCase(this.electronicBillingRepository);
|
|
47
|
+
this.getVoucherTypesUseCase = new get_voucher_types_use_case_1.GetVoucherTypesUseCase(this.electronicBillingRepository);
|
|
48
|
+
this.getConceptTypesUseCase = new get_concept_types_use_case_1.GetConceptTypesUseCase(this.electronicBillingRepository);
|
|
49
|
+
this.getDocumentTypesUseCase = new get_document_types_use_case_1.GetDocumentTypesUseCase(this.electronicBillingRepository);
|
|
50
|
+
this.getAliquotTypesUseCase = new get_aliquot_types_use_case_1.GetAliquotTypesUseCase(this.electronicBillingRepository);
|
|
51
|
+
this.getCurrencyTypesUseCase = new get_currency_types_use_case_1.GetCurrencyTypesUseCase(this.electronicBillingRepository);
|
|
52
|
+
this.getOptionalTypesUseCase = new get_optional_types_use_case_1.GetOptionalTypesUseCase(this.electronicBillingRepository);
|
|
53
|
+
this.getTaxTypesUseCase = new get_tax_types_use_case_1.GetTaxTypesUseCase(this.electronicBillingRepository);
|
|
54
|
+
this.getIvaReceptorTypesUseCase = new get_iva_receptor_types_use_case_1.GetIvaReceptorTypesUseCase(this.electronicBillingRepository);
|
|
55
|
+
this.getCaeaUseCase = new get_caea_use_case_1.GetCaeaUseCase(this.electronicBillingRepository);
|
|
56
|
+
this.consultCaeaUseCase = new consult_caea_use_case_1.ConsultCaeaUseCase(this.electronicBillingRepository);
|
|
57
|
+
this.informCaeaNoMovementUseCase = new inform_caea_no_movement_use_case_1.InformCaeaNoMovementUseCase(this.electronicBillingRepository);
|
|
58
|
+
this.consultCaeaNoMovementUseCase = new consult_caea_no_movement_use_case_1.ConsultCaeaNoMovementUseCase(this.electronicBillingRepository);
|
|
59
|
+
this.informCaeaUsageUseCase = new inform_caea_usage_use_case_1.InformCaeaUsageUseCase(this.electronicBillingRepository);
|
|
60
|
+
this.getQuotationUseCase = new get_quotation_use_case_1.GetQuotationUseCase(this.electronicBillingRepository);
|
|
61
|
+
this.getCountriesUseCase = new get_countries_use_case_1.GetCountriesUseCase(this.electronicBillingRepository);
|
|
62
|
+
this.getActivitiesUseCase = new get_activities_use_case_1.GetActivitiesUseCase(this.electronicBillingRepository);
|
|
63
|
+
this.getMaxRecordsUseCase = new get_max_records_use_case_1.GetMaxRecordsUseCase(this.electronicBillingRepository);
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Asks to web service for servers status
|
|
67
|
+
*
|
|
68
|
+
* @return object { AppServer : Web Service status,
|
|
69
|
+
* DbServer : Database status, AuthServer : Autentication
|
|
70
|
+
* server status}
|
|
71
|
+
**/
|
|
72
|
+
getServerStatus() {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return this.getServerStatusUseCase.execute();
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Asks to ARCA Servers for sales points availables {@see WS
|
|
79
|
+
* Specification item 4.11}
|
|
80
|
+
*
|
|
81
|
+
* @return array All sales points availables
|
|
82
|
+
**/
|
|
83
|
+
getSalesPoints() {
|
|
84
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
85
|
+
return this.getSalesPointsUseCase.execute();
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Asks to Arca servers for number of the last voucher created for
|
|
90
|
+
* certain sales point and voucher type
|
|
91
|
+
*
|
|
92
|
+
* @param salesPoint Sales point to ask for last voucher
|
|
93
|
+
* @param type Voucher type to ask for last voucher
|
|
94
|
+
* @returns
|
|
95
|
+
*/
|
|
96
|
+
getLastVoucher(salesPoint, type) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
return this.getLastVoucherUseCase.execute({
|
|
99
|
+
salesPoint,
|
|
100
|
+
voucherType: type,
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Create a voucher from ARCA
|
|
106
|
+
*
|
|
107
|
+
* Send to ARCA servers request for create a voucher and assign
|
|
108
|
+
* CAE to them
|
|
109
|
+
*
|
|
110
|
+
* @param req data Voucher parameter
|
|
111
|
+
**/
|
|
112
|
+
createVoucher(req) {
|
|
113
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
114
|
+
return this.createVoucherUseCase.execute(req);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Create next voucher from ARCA
|
|
119
|
+
*
|
|
120
|
+
* This method combines getLastVoucher and createVoucher
|
|
121
|
+
* for create the next voucher
|
|
122
|
+
*
|
|
123
|
+
* @param req data Same to data in Arca.createVoucher except that
|
|
124
|
+
* don't need CbteDesde and CbteHasta attributes
|
|
125
|
+
**/
|
|
126
|
+
createNextVoucher(req) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
128
|
+
return this.createNextVoucherUseCase.execute(req);
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Get voucher information
|
|
133
|
+
*
|
|
134
|
+
* Asks to ARCA servers for complete information of voucher
|
|
135
|
+
*
|
|
136
|
+
* @param number Number of voucher to get information
|
|
137
|
+
* @param salesPoint Sales point of voucher to get information
|
|
138
|
+
* @param type Type of voucher to get information
|
|
139
|
+
*
|
|
140
|
+
* @return data with array | null returns array with complete voucher information
|
|
141
|
+
**/
|
|
142
|
+
getVoucherInfo(number, salesPoint, type) {
|
|
143
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
144
|
+
return this.getVoucherInfoUseCase.execute({
|
|
145
|
+
number,
|
|
146
|
+
salesPoint,
|
|
147
|
+
type,
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Asks to ARCA Servers for voucher types availables
|
|
153
|
+
**/
|
|
154
|
+
getVoucherTypes() {
|
|
155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
return this.getVoucherTypesUseCase.execute();
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Asks to ARCA Servers for voucher concepts availables
|
|
161
|
+
*
|
|
162
|
+
* @return data with array of all voucher concepts availables
|
|
163
|
+
**/
|
|
164
|
+
getConceptTypes() {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
return this.getConceptTypesUseCase.execute();
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Asks to ARCA Servers for document types availables
|
|
171
|
+
*
|
|
172
|
+
* @return data with array of all document types availables
|
|
173
|
+
**/
|
|
174
|
+
getDocumentTypes() {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
176
|
+
return this.getDocumentTypesUseCase.execute();
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Asks to ARCA Servers for aliquot availables
|
|
181
|
+
*
|
|
182
|
+
* @return data with array of all aliquot availables
|
|
183
|
+
**/
|
|
184
|
+
getAliquotTypes() {
|
|
185
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
return this.getAliquotTypesUseCase.execute();
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Asks to ARCA Servers for currencies availables
|
|
191
|
+
*
|
|
192
|
+
* @return data with array of all currencies availables
|
|
193
|
+
**/
|
|
194
|
+
getCurrenciesTypes() {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
return this.getCurrencyTypesUseCase.execute();
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Asks to ARCA Servers for voucher optional data available
|
|
201
|
+
*
|
|
202
|
+
* @return data with array of all voucher optional data available
|
|
203
|
+
**/
|
|
204
|
+
getOptionsTypes() {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
return this.getOptionalTypesUseCase.execute();
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Asks to ARCA Servers for tax availables
|
|
211
|
+
*
|
|
212
|
+
* @return data with array of all tax availables
|
|
213
|
+
**/
|
|
214
|
+
getTaxTypes() {
|
|
215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
+
return this.getTaxTypesUseCase.execute();
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Asks to ARCA Servers for IVA receptor types availables
|
|
221
|
+
*
|
|
222
|
+
* @param claseCmp Voucher class (optional)
|
|
223
|
+
* @return data with array of all IVA receptor types availables
|
|
224
|
+
**/
|
|
225
|
+
getIvaReceptorTypes(claseCmp) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
return this.getIvaReceptorTypesUseCase.execute(claseCmp);
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Request CAEA (Anticipated Electronic Authorization Code)
|
|
232
|
+
* @param period Period (YYYYMM)
|
|
233
|
+
* @param order Fortnight (1 or 2)
|
|
234
|
+
* @returns CAEA information
|
|
235
|
+
*/
|
|
236
|
+
getCaea(period, order) {
|
|
237
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
238
|
+
return this.getCaeaUseCase.execute(period, order);
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Consult CAEA
|
|
243
|
+
* @param period Period (YYYYMM)
|
|
244
|
+
* @param order Fortnight (1 or 2)
|
|
245
|
+
* @returns CAEA information
|
|
246
|
+
*/
|
|
247
|
+
consultCaea(period, order) {
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
return this.consultCaeaUseCase.execute(period, order);
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Inform CAEA No Movement
|
|
254
|
+
* @param caea CAEA number
|
|
255
|
+
* @param salesPoint Sales point number
|
|
256
|
+
* @returns CAEA No Movement information
|
|
257
|
+
*/
|
|
258
|
+
informCaeaNoMovement(caea, salesPoint) {
|
|
259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
return this.informCaeaNoMovementUseCase.execute(caea, salesPoint);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Consult CAEA No Movement
|
|
265
|
+
* @param caea CAEA number
|
|
266
|
+
* @param salesPoint Sales point number
|
|
267
|
+
* @returns CAEA No Movement information
|
|
268
|
+
*/
|
|
269
|
+
consultCaeaNoMovement(caea, salesPoint) {
|
|
270
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
return this.consultCaeaNoMovementUseCase.execute(caea, salesPoint);
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Inform CAEA Usage (Regimen Informativo)
|
|
276
|
+
* @param caea CAEA number
|
|
277
|
+
* @param salesPoint Sales point number
|
|
278
|
+
* @returns CAEA Usage information
|
|
279
|
+
*/
|
|
280
|
+
informCaeaUsage(voucher, caea) {
|
|
281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
282
|
+
return this.informCaeaUsageUseCase.execute(voucher, caea);
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Get Quotation
|
|
287
|
+
* @param currencyId Currency ID
|
|
288
|
+
* @returns Quotation information
|
|
289
|
+
*/
|
|
290
|
+
getQuotation(currencyId) {
|
|
291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
+
return this.getQuotationUseCase.execute(currencyId);
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Get Countries
|
|
297
|
+
* @returns Countries information
|
|
298
|
+
*/
|
|
299
|
+
getCountries() {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
301
|
+
return this.getCountriesUseCase.execute();
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Get Activities
|
|
306
|
+
* @returns Activities information
|
|
307
|
+
*/
|
|
308
|
+
getActivities() {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
return this.getActivitiesUseCase.execute();
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Get Max Records per Request
|
|
315
|
+
* @returns Max records number
|
|
316
|
+
*/
|
|
317
|
+
getMaxRecordsPerRequest() {
|
|
318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
319
|
+
return this.getMaxRecordsUseCase.execute();
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Alias for createVoucher method.
|
|
324
|
+
*/
|
|
325
|
+
createInvoice(req) {
|
|
326
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
327
|
+
return this.createVoucher(req);
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Alias for createVoucher method.
|
|
332
|
+
*/
|
|
333
|
+
createNextInvoice(req) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
return this.createNextVoucher(req);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
exports.ElectronicBillingService = ElectronicBillingService;
|
|
340
|
+
//# sourceMappingURL=electronic-billing.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"electronic-billing.service.js","sourceRoot":"","sources":["../../../src/application/services/electronic-billing.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AA8BA,YAAY;AACZ,qHAA8G;AAC9G,mHAA4G;AAC5G,mHAA4G;AAC5G,+GAAyG;AACzG,yHAAkH;AAClH,mHAA4G;AAC5G,qHAA8G;AAC9G,qHAA8G;AAC9G,uHAAgH;AAChH,qHAA8G;AAC9G,uHAAgH;AAChH,uHAAgH;AAChH,6GAAsG;AACtG,+HAAuH;AACvH,mGAA6F;AAC7F,2GAAqG;AACrG,iIAAyH;AACz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,uBAAuB;;YAC3B,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,EAAE,CAAC;QAC7C,CAAC;KAAA;IAED;;OAEG;IACG,aAAa,CAAC,GAAa;;YAC/B,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;KAAA;IAED;;OAEG;IACG,iBAAiB,CAAC,GAAiB;;YACvC,OAAO,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC;QACrC,CAAC;KAAA;CACF;AA5WD,4DA4WC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generic Service
|
|
3
|
+
* Service for making generic requests to AFIP/ARCA
|
|
4
|
+
*/
|
|
5
|
+
import { IGenericRepositoryPort } from "@application/ports/generic/generic-repository.port";
|
|
6
|
+
export declare class GenericService {
|
|
7
|
+
private readonly repository;
|
|
8
|
+
constructor(repository: IGenericRepositoryPort);
|
|
9
|
+
/**
|
|
10
|
+
* Call a SOAP method on a service
|
|
11
|
+
* @param serviceName Service name (e.g., 'wsfe', 'ws_sr_padron_a13')
|
|
12
|
+
* @param methodName Method name to call (e.g., 'FECompUltimoAutorizado')
|
|
13
|
+
* @param params Parameters for the method
|
|
14
|
+
* @returns Promise with the result
|
|
15
|
+
*/
|
|
16
|
+
call(serviceName: string, methodName: string, params: any, options?: {
|
|
17
|
+
wsdlContent?: string;
|
|
18
|
+
}): Promise<any>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GenericService = void 0;
|
|
13
|
+
class GenericService {
|
|
14
|
+
constructor(repository) {
|
|
15
|
+
this.repository = repository;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Call a SOAP method on a service
|
|
19
|
+
* @param serviceName Service name (e.g., 'wsfe', 'ws_sr_padron_a13')
|
|
20
|
+
* @param methodName Method name to call (e.g., 'FECompUltimoAutorizado')
|
|
21
|
+
* @param params Parameters for the method
|
|
22
|
+
* @returns Promise with the result
|
|
23
|
+
*/
|
|
24
|
+
call(serviceName, methodName, params, options) {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return this.repository.call(serviceName, methodName, params, options);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.GenericService = GenericService;
|
|
31
|
+
//# sourceMappingURL=generic.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic.service.js","sourceRoot":"","sources":["../../../src/application/services/generic.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAMA,MAAa,cAAc;IACzB,YAA6B,UAAkC;QAAlC,eAAU,GAAV,UAAU,CAAwB;IAAG,CAAC;IAEnE;;;;;;OAMG;IACG,IAAI,CACR,WAAmB,EACnB,UAAkB,EAClB,MAAW,EACX,OAAkC;;YAElC,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;QACxE,CAAC;KAAA;CACF;AAlBD,wCAkBC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Application Services
|
|
3
|
+
* Exports all application services that orchestrate use cases
|
|
4
|
+
*/
|
|
5
|
+
export * from "./electronic-billing.service";
|
|
6
|
+
export * from "./register-scope-four.service";
|
|
7
|
+
export * from "./register-scope-five.service";
|
|
8
|
+
export * from "./register-scope-ten.service";
|
|
9
|
+
export * from "./register-scope-thirteen.service";
|
|
10
|
+
export * from "./register-inscription-proof.service";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
/**
|
|
18
|
+
* Application Services
|
|
19
|
+
* Exports all application services that orchestrate use cases
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./electronic-billing.service"), exports);
|
|
22
|
+
__exportStar(require("./register-scope-four.service"), exports);
|
|
23
|
+
__exportStar(require("./register-scope-five.service"), exports);
|
|
24
|
+
__exportStar(require("./register-scope-ten.service"), exports);
|
|
25
|
+
__exportStar(require("./register-scope-thirteen.service"), exports);
|
|
26
|
+
__exportStar(require("./register-inscription-proof.service"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,+DAA6C;AAC7C,gEAA8C;AAC9C,gEAA8C;AAC9C,+DAA6C;AAC7C,oEAAkD;AAClD,uEAAqD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register Inscription Proof Service
|
|
3
|
+
* Application service for Register Inscription Proof
|
|
4
|
+
* Orchestrates register use cases for INSCRIPTION_PROOF scope
|
|
5
|
+
*/
|
|
6
|
+
import { IRegisterInscriptionProofRepositoryPort } from "@application/ports/register/register-repository.ports";
|
|
7
|
+
import { RegisterServerStatusDto, TaxpayerDetailsDto, TaxpayersDetailsDto } from "@application/dto/register.dto";
|
|
8
|
+
export declare class RegisterInscriptionProofService {
|
|
9
|
+
private readonly repository;
|
|
10
|
+
private readonly getRegisterServerStatusUseCase;
|
|
11
|
+
private readonly getTaxpayerDetailsUseCase;
|
|
12
|
+
private readonly getTaxpayersDetailsUseCase;
|
|
13
|
+
constructor(repository: IRegisterInscriptionProofRepositoryPort);
|
|
14
|
+
/**
|
|
15
|
+
* Asks to web service for servers status
|
|
16
|
+
**/
|
|
17
|
+
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
18
|
+
/**
|
|
19
|
+
* Asks to web service for taxpayer details
|
|
20
|
+
**/
|
|
21
|
+
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Asks to web service for taxpayers details
|
|
24
|
+
**/
|
|
25
|
+
getTaxpayersDetails(identifiers: number[]): Promise<TaxpayersDetailsDto>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RegisterInscriptionProofService = void 0;
|
|
13
|
+
const get_register_server_status_use_case_1 = require("@application/use-cases/register/get-register-server-status.use-case");
|
|
14
|
+
const get_taxpayer_details_use_case_1 = require("@application/use-cases/register/get-taxpayer-details.use-case");
|
|
15
|
+
const get_taxpayers_details_use_case_1 = require("@application/use-cases/register/get-taxpayers-details.use-case");
|
|
16
|
+
class RegisterInscriptionProofService {
|
|
17
|
+
constructor(repository) {
|
|
18
|
+
this.repository = repository;
|
|
19
|
+
this.getRegisterServerStatusUseCase = new get_register_server_status_use_case_1.GetRegisterServerStatusUseCase(this.repository);
|
|
20
|
+
this.getTaxpayerDetailsUseCase = new get_taxpayer_details_use_case_1.GetTaxpayerDetailsUseCase(this.repository);
|
|
21
|
+
this.getTaxpayersDetailsUseCase = new get_taxpayers_details_use_case_1.GetTaxpayersDetailsUseCase(this.repository);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Asks to web service for servers status
|
|
25
|
+
**/
|
|
26
|
+
getServerStatus() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return this.getRegisterServerStatusUseCase.execute();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Asks to web service for taxpayer details
|
|
33
|
+
**/
|
|
34
|
+
getTaxpayerDetails(identifier) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return this.getTaxpayerDetailsUseCase.execute(identifier);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Asks to web service for taxpayers details
|
|
41
|
+
**/
|
|
42
|
+
getTaxpayersDetails(identifiers) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return this.getTaxpayersDetailsUseCase.execute(identifiers);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.RegisterInscriptionProofService = RegisterInscriptionProofService;
|
|
49
|
+
//# sourceMappingURL=register-inscription-proof.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-inscription-proof.service.js","sourceRoot":"","sources":["../../../src/application/services/register-inscription-proof.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,6HAAqH;AACrH,iHAA0G;AAC1G,mHAA4G;AAE5G,MAAa,+BAA+B;IAK1C,YACmB,UAAmD;QAAnD,eAAU,GAAV,UAAU,CAAyC;QAEpE,IAAI,CAAC,8BAA8B,GAAG,IAAI,oEAA8B,CACtE,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,yDAAyB,CAC5D,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,2DAA0B,CAC9D,IAAI,CAAC,UAAU,CAChB,CAAC;IACJ,CAAC;IAED;;QAEI;IACE,eAAe;;YACnB,OAAO,IAAI,CAAC,8BAA8B,CAAC,OAAO,EAAE,CAAC;QACvD,CAAC;KAAA;IAED;;QAEI;IACE,kBAAkB,CACtB,UAAkB;;YAElB,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC5D,CAAC;KAAA;IAED;;QAEI;IACE,mBAAmB,CACvB,WAAqB;;YAErB,OAAO,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC9D,CAAC;KAAA;CACF;AA3CD,0EA2CC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register Scope Five Service
|
|
3
|
+
* Application service for Register Scope Five (Padrón A5)
|
|
4
|
+
* Orchestrates register use cases for scope FIVE
|
|
5
|
+
*/
|
|
6
|
+
import { IRegisterScopeFiveRepositoryPort } from "@application/ports/register/register-repository.ports";
|
|
7
|
+
import { RegisterServerStatusDto, TaxpayerDetailsDto, TaxpayersDetailsDto } from "@application/dto/register.dto";
|
|
8
|
+
export declare class RegisterScopeFiveService {
|
|
9
|
+
private readonly repository;
|
|
10
|
+
private readonly getRegisterServerStatusUseCase;
|
|
11
|
+
private readonly getTaxpayerDetailsUseCase;
|
|
12
|
+
private readonly getTaxpayersDetailsUseCase;
|
|
13
|
+
constructor(repository: IRegisterScopeFiveRepositoryPort);
|
|
14
|
+
/**
|
|
15
|
+
* Asks to web service for servers status
|
|
16
|
+
**/
|
|
17
|
+
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
18
|
+
/**
|
|
19
|
+
* Asks to web service for taxpayer details
|
|
20
|
+
**/
|
|
21
|
+
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
22
|
+
/**
|
|
23
|
+
* Asks to web service for taxpayers details
|
|
24
|
+
**/
|
|
25
|
+
getTaxpayersDetails(identifiers: number[]): Promise<TaxpayersDetailsDto>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RegisterScopeFiveService = void 0;
|
|
13
|
+
const get_register_server_status_use_case_1 = require("@application/use-cases/register/get-register-server-status.use-case");
|
|
14
|
+
const get_taxpayer_details_use_case_1 = require("@application/use-cases/register/get-taxpayer-details.use-case");
|
|
15
|
+
const get_taxpayers_details_use_case_1 = require("@application/use-cases/register/get-taxpayers-details.use-case");
|
|
16
|
+
class RegisterScopeFiveService {
|
|
17
|
+
constructor(repository) {
|
|
18
|
+
this.repository = repository;
|
|
19
|
+
this.getRegisterServerStatusUseCase = new get_register_server_status_use_case_1.GetRegisterServerStatusUseCase(this.repository);
|
|
20
|
+
this.getTaxpayerDetailsUseCase = new get_taxpayer_details_use_case_1.GetTaxpayerDetailsUseCase(this.repository);
|
|
21
|
+
this.getTaxpayersDetailsUseCase = new get_taxpayers_details_use_case_1.GetTaxpayersDetailsUseCase(this.repository);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Asks to web service for servers status
|
|
25
|
+
**/
|
|
26
|
+
getServerStatus() {
|
|
27
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
28
|
+
return this.getRegisterServerStatusUseCase.execute();
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Asks to web service for taxpayer details
|
|
33
|
+
**/
|
|
34
|
+
getTaxpayerDetails(identifier) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return this.getTaxpayerDetailsUseCase.execute(identifier);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Asks to web service for taxpayers details
|
|
41
|
+
**/
|
|
42
|
+
getTaxpayersDetails(identifiers) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return this.getTaxpayersDetailsUseCase.execute(identifiers);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.RegisterScopeFiveService = RegisterScopeFiveService;
|
|
49
|
+
//# sourceMappingURL=register-scope-five.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"register-scope-five.service.js","sourceRoot":"","sources":["../../../src/application/services/register-scope-five.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,6HAAqH;AACrH,iHAA0G;AAC1G,mHAA4G;AAE5G,MAAa,wBAAwB;IAKnC,YAA6B,UAA4C;QAA5C,eAAU,GAAV,UAAU,CAAkC;QACvE,IAAI,CAAC,8BAA8B,GAAG,IAAI,oEAA8B,CACtE,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,yDAAyB,CAC5D,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,0BAA0B,GAAG,IAAI,2DAA0B,CAC9D,IAAI,CAAC,UAAU,CAChB,CAAC;IACJ,CAAC;IAED;;QAEI;IACE,eAAe;;YACnB,OAAO,IAAI,CAAC,8BAA8B,CAAC,OAAO,EAAE,CAAC;QACvD,CAAC;KAAA;IAED;;QAEI;IACE,kBAAkB,CACtB,UAAkB;;YAElB,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC5D,CAAC;KAAA;IAED;;QAEI;IACE,mBAAmB,CACvB,WAAqB;;YAErB,OAAO,IAAI,CAAC,0BAA0B,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAC9D,CAAC;KAAA;CACF;AAzCD,4DAyCC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Register Scope Four Service
|
|
3
|
+
* Application service for Register Scope Four (Padrón A4)
|
|
4
|
+
* Orchestrates register use cases for scope FOUR
|
|
5
|
+
*/
|
|
6
|
+
import { IRegisterScopeFourRepositoryPort } from "@application/ports/register/register-repository.ports";
|
|
7
|
+
import { RegisterServerStatusDto, TaxpayerDetailsDto } from "@application/dto/register.dto";
|
|
8
|
+
export declare class RegisterScopeFourService {
|
|
9
|
+
private readonly repository;
|
|
10
|
+
private readonly getRegisterServerStatusUseCase;
|
|
11
|
+
private readonly getTaxpayerDetailsUseCase;
|
|
12
|
+
constructor(repository: IRegisterScopeFourRepositoryPort);
|
|
13
|
+
/**
|
|
14
|
+
* Asks to web service for servers status
|
|
15
|
+
*
|
|
16
|
+
* @return object { appserver : Web Service status,
|
|
17
|
+
* dbserver : Database status, authserver : Autentication
|
|
18
|
+
* server status}
|
|
19
|
+
**/
|
|
20
|
+
getServerStatus(): Promise<RegisterServerStatusDto>;
|
|
21
|
+
/**
|
|
22
|
+
* Asks to web service for taxpayer details
|
|
23
|
+
*
|
|
24
|
+
* @return object|null if taxpayer does not exists, return null,
|
|
25
|
+
* if it exists, returns full response
|
|
26
|
+
**/
|
|
27
|
+
getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
|
|
28
|
+
}
|