@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,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VoucherNumber Value Object
|
|
3
|
+
* Represents a voucher/comprobante number with validations
|
|
4
|
+
* Immutable value object
|
|
5
|
+
*/
|
|
6
|
+
export declare class VoucherNumber {
|
|
7
|
+
private readonly value;
|
|
8
|
+
private constructor();
|
|
9
|
+
/**
|
|
10
|
+
* Factory method to create a VoucherNumber
|
|
11
|
+
* @param value Voucher number
|
|
12
|
+
* @returns VoucherNumber instance
|
|
13
|
+
* @throws Error if number is invalid
|
|
14
|
+
*/
|
|
15
|
+
static create(value: number): VoucherNumber;
|
|
16
|
+
/**
|
|
17
|
+
* Validates the voucher number
|
|
18
|
+
* @throws Error if number is invalid
|
|
19
|
+
*/
|
|
20
|
+
private validate;
|
|
21
|
+
/**
|
|
22
|
+
* Gets the voucher number value
|
|
23
|
+
*/
|
|
24
|
+
getValue(): number;
|
|
25
|
+
/**
|
|
26
|
+
* Gets the voucher number as string
|
|
27
|
+
*/
|
|
28
|
+
toString(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Formats voucher number with leading zeros (8 digits)
|
|
31
|
+
*/
|
|
32
|
+
toFormattedString(): string;
|
|
33
|
+
/**
|
|
34
|
+
* Compares two voucher numbers for equality
|
|
35
|
+
* @param other Other VoucherNumber to compare
|
|
36
|
+
* @returns true if equal
|
|
37
|
+
*/
|
|
38
|
+
equals(other: VoucherNumber): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Checks if this number is greater than another
|
|
41
|
+
* @param other Other VoucherNumber to compare
|
|
42
|
+
* @returns true if this is greater
|
|
43
|
+
*/
|
|
44
|
+
isGreaterThan(other: VoucherNumber): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Checks if this number is less than another
|
|
47
|
+
* @param other Other VoucherNumber to compare
|
|
48
|
+
* @returns true if this is less
|
|
49
|
+
*/
|
|
50
|
+
isLessThan(other: VoucherNumber): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Gets the next voucher number
|
|
53
|
+
* @returns Next VoucherNumber
|
|
54
|
+
*/
|
|
55
|
+
next(): VoucherNumber;
|
|
56
|
+
/**
|
|
57
|
+
* Gets the previous voucher number
|
|
58
|
+
* @returns Previous VoucherNumber
|
|
59
|
+
* @throws Error if value is 1 (can't go below 1)
|
|
60
|
+
*/
|
|
61
|
+
previous(): VoucherNumber;
|
|
62
|
+
/**
|
|
63
|
+
* Creates a copy of this VoucherNumber
|
|
64
|
+
*/
|
|
65
|
+
clone(): VoucherNumber;
|
|
66
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VoucherNumber = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* VoucherNumber Value Object
|
|
6
|
+
* Represents a voucher/comprobante number with validations
|
|
7
|
+
* Immutable value object
|
|
8
|
+
*/
|
|
9
|
+
class VoucherNumber {
|
|
10
|
+
constructor(value) {
|
|
11
|
+
this.value = value;
|
|
12
|
+
this.validate();
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Factory method to create a VoucherNumber
|
|
16
|
+
* @param value Voucher number
|
|
17
|
+
* @returns VoucherNumber instance
|
|
18
|
+
* @throws Error if number is invalid
|
|
19
|
+
*/
|
|
20
|
+
static create(value) {
|
|
21
|
+
return new VoucherNumber(value);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Validates the voucher number
|
|
25
|
+
* @throws Error if number is invalid
|
|
26
|
+
*/
|
|
27
|
+
validate() {
|
|
28
|
+
if (!Number.isInteger(this.value)) {
|
|
29
|
+
throw new Error("Número de comprobante debe ser un número entero");
|
|
30
|
+
}
|
|
31
|
+
if (this.value < 1) {
|
|
32
|
+
throw new Error("Número de comprobante debe ser mayor a cero");
|
|
33
|
+
}
|
|
34
|
+
if (this.value > 99999999) {
|
|
35
|
+
throw new Error("Número de comprobante no puede ser mayor a 99999999");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Gets the voucher number value
|
|
40
|
+
*/
|
|
41
|
+
getValue() {
|
|
42
|
+
return this.value;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Gets the voucher number as string
|
|
46
|
+
*/
|
|
47
|
+
toString() {
|
|
48
|
+
return this.value.toString();
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Formats voucher number with leading zeros (8 digits)
|
|
52
|
+
*/
|
|
53
|
+
toFormattedString() {
|
|
54
|
+
return this.value.toString().padStart(8, "0");
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Compares two voucher numbers for equality
|
|
58
|
+
* @param other Other VoucherNumber to compare
|
|
59
|
+
* @returns true if equal
|
|
60
|
+
*/
|
|
61
|
+
equals(other) {
|
|
62
|
+
return this.value === other.value;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Checks if this number is greater than another
|
|
66
|
+
* @param other Other VoucherNumber to compare
|
|
67
|
+
* @returns true if this is greater
|
|
68
|
+
*/
|
|
69
|
+
isGreaterThan(other) {
|
|
70
|
+
return this.value > other.value;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Checks if this number is less than another
|
|
74
|
+
* @param other Other VoucherNumber to compare
|
|
75
|
+
* @returns true if this is less
|
|
76
|
+
*/
|
|
77
|
+
isLessThan(other) {
|
|
78
|
+
return this.value < other.value;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Gets the next voucher number
|
|
82
|
+
* @returns Next VoucherNumber
|
|
83
|
+
*/
|
|
84
|
+
next() {
|
|
85
|
+
return VoucherNumber.create(this.value + 1);
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Gets the previous voucher number
|
|
89
|
+
* @returns Previous VoucherNumber
|
|
90
|
+
* @throws Error if value is 1 (can't go below 1)
|
|
91
|
+
*/
|
|
92
|
+
previous() {
|
|
93
|
+
if (this.value <= 1) {
|
|
94
|
+
throw new Error("No se puede obtener el número anterior, ya está en el mínimo");
|
|
95
|
+
}
|
|
96
|
+
return VoucherNumber.create(this.value - 1);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Creates a copy of this VoucherNumber
|
|
100
|
+
*/
|
|
101
|
+
clone() {
|
|
102
|
+
return new VoucherNumber(this.value);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
exports.VoucherNumber = VoucherNumber;
|
|
106
|
+
//# sourceMappingURL=voucher-number.vo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voucher-number.vo.js","sourceRoot":"","sources":["../../../src/domain/value-objects/voucher-number.vo.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,aAAa;IACxB,YAAqC,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;QAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,KAAa;QACzB,OAAO,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAED;;;OAGG;IACK,QAAQ;QACd,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACrE,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAC;QACjE,CAAC;QAED,IAAI,IAAI,CAAC,KAAK,GAAG,QAAQ,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAChD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAoB;QACzB,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;IACpC,CAAC;IAED;;;;OAIG;IACH,aAAa,CAAC,KAAoB;QAChC,OAAO,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAClC,CAAC;IAED;;;;OAIG;IACH,UAAU,CAAC,KAAoB;QAC7B,OAAO,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;IAClC,CAAC;IAED;;;OAGG;IACH,IAAI;QACF,OAAO,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,EAAE,CAAC;YACpB,MAAM,IAAI,KAAK,CACb,8DAA8D,CAC/D,CAAC;QACJ,CAAC;QACD,OAAO,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC;IAC9C,CAAC;IAED;;OAEG;IACH,KAAK;QACH,OAAO,IAAI,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACvC,CAAC;CACF;AA7GD,sCA6GC"}
|
package/lib/index.d.ts
ADDED
package/lib/index.js
ADDED
|
@@ -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
|
+
exports.Arca = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* ARCA SDK - Main Entry Point
|
|
20
|
+
* Exports the main facade class and public types
|
|
21
|
+
*/
|
|
22
|
+
var arca_1 = require("./arca");
|
|
23
|
+
Object.defineProperty(exports, "Arca", { enumerable: true, get: function () { return arca_1.Arca; } });
|
|
24
|
+
__exportStar(require("./application"), exports);
|
|
25
|
+
__exportStar(require("./domain"), exports);
|
|
26
|
+
__exportStar(require("./infrastructure"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,gDAA8B;AAC9B,2CAAyB;AACzB,mDAAiC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* Infrastructure Constants
|
|
19
|
+
* Exports all infrastructure-related constants
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./ssl.constants"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/infrastructure/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,kDAAgC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* SSL/TLS constants for HTTPS connections
|
|
3
|
+
* These constants are used to configure SSL options for connections to ARCA/AFIP servers
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Minimum Diffie-Hellman key size for legacy servers
|
|
7
|
+
*
|
|
8
|
+
* AFIP/ARCA production servers use legacy SSL configurations with weak Diffie-Hellman parameters.
|
|
9
|
+
* Setting this to 512 allows connections to these servers while maintaining reasonable security.
|
|
10
|
+
*
|
|
11
|
+
* The default minimum in Node.js is higher (typically 1024), which causes the error
|
|
12
|
+
* "dh key too small" when connecting to legacy servers.
|
|
13
|
+
*
|
|
14
|
+
* @see https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
|
|
15
|
+
*/
|
|
16
|
+
export declare const MIN_DH_SIZE_LEGACY = 512;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* SSL/TLS constants for HTTPS connections
|
|
4
|
+
* These constants are used to configure SSL options for connections to ARCA/AFIP servers
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.MIN_DH_SIZE_LEGACY = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Minimum Diffie-Hellman key size for legacy servers
|
|
10
|
+
*
|
|
11
|
+
* AFIP/ARCA production servers use legacy SSL configurations with weak Diffie-Hellman parameters.
|
|
12
|
+
* Setting this to 512 allows connections to these servers while maintaining reasonable security.
|
|
13
|
+
*
|
|
14
|
+
* The default minimum in Node.js is higher (typically 1024), which causes the error
|
|
15
|
+
* "dh key too small" when connecting to legacy servers.
|
|
16
|
+
*
|
|
17
|
+
* @see https://nodejs.org/api/tls.html#tls_tls_createsecurecontext_options
|
|
18
|
+
*/
|
|
19
|
+
exports.MIN_DH_SIZE_LEGACY = 512;
|
|
20
|
+
//# sourceMappingURL=ssl.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssl.constants.js","sourceRoot":"","sources":["../../../src/infrastructure/constants/ssl.constants.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH;;;;;;;;;;GAUG;AACU,QAAA,kBAAkB,GAAG,GAAG,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
* Infrastructure Layer
|
|
19
|
+
* Exports all infrastructure adapters
|
|
20
|
+
*/
|
|
21
|
+
__exportStar(require("./outbound"), exports);
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/infrastructure/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,6CAA2B"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication Repository
|
|
3
|
+
* Implements IAuthenticationRepositoryPort for WSAA authentication
|
|
4
|
+
*/
|
|
5
|
+
import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
|
|
6
|
+
import { ISoapClientPort } from "@infrastructure/outbound/ports/soap/soap-client.port";
|
|
7
|
+
import { ITicketStoragePort } from "@infrastructure/outbound/ports/storage/ticket-storage.port";
|
|
8
|
+
import { AccessTicket } from "@domain/entities/access-ticket.entity";
|
|
9
|
+
import { WSAuthParam } from "@application/types";
|
|
10
|
+
export interface AuthRepositoryConfig {
|
|
11
|
+
cert: string;
|
|
12
|
+
key: string;
|
|
13
|
+
cuit: number;
|
|
14
|
+
production?: boolean;
|
|
15
|
+
handleTicket?: boolean;
|
|
16
|
+
ticketStorage?: ITicketStoragePort;
|
|
17
|
+
credentials?: import("@domain/entities/access-ticket.entity").ILoginCredentials;
|
|
18
|
+
}
|
|
19
|
+
export declare class AuthRepository implements IAuthenticationRepositoryPort {
|
|
20
|
+
private readonly soapClient;
|
|
21
|
+
private cert;
|
|
22
|
+
private key;
|
|
23
|
+
private production;
|
|
24
|
+
private handleTicket;
|
|
25
|
+
private ticketStorage?;
|
|
26
|
+
constructor(soapClient: ISoapClientPort, config: AuthRepositoryConfig);
|
|
27
|
+
/**
|
|
28
|
+
* Get a valid ticket from storage if available
|
|
29
|
+
* @param serviceName Service name to get ticket for
|
|
30
|
+
* @returns AccessTicket if found and valid, null otherwise
|
|
31
|
+
*/
|
|
32
|
+
private getValidTicketFromStorage;
|
|
33
|
+
/**
|
|
34
|
+
* Login and get access ticket for a service
|
|
35
|
+
* @param serviceName Service name to authenticate for
|
|
36
|
+
* @returns AccessTicket
|
|
37
|
+
*/
|
|
38
|
+
login(serviceName: string): Promise<AccessTicket>;
|
|
39
|
+
/**
|
|
40
|
+
* Create and configure WSAA SOAP client
|
|
41
|
+
*/
|
|
42
|
+
private createAuthClient;
|
|
43
|
+
/**
|
|
44
|
+
* Request a new login ticket for a service
|
|
45
|
+
* @param serviceName Service name to authenticate for
|
|
46
|
+
* @returns AccessTicket
|
|
47
|
+
*/
|
|
48
|
+
requestLogin(serviceName: string): Promise<AccessTicket>;
|
|
49
|
+
/**
|
|
50
|
+
* Get authentication parameters formatted for SOAP requests
|
|
51
|
+
* @param ticket Access ticket
|
|
52
|
+
* @param cuit CUIT number
|
|
53
|
+
* @returns WSAuthParam formatted for SOAP
|
|
54
|
+
*/
|
|
55
|
+
getAuthParams(ticket: AccessTicket, cuit: number): WSAuthParam;
|
|
56
|
+
/**
|
|
57
|
+
* Create TRA (Token Request Authorization) JSON
|
|
58
|
+
* @param serviceName Service name to create TRA for
|
|
59
|
+
* @returns TRA JSON
|
|
60
|
+
*/
|
|
61
|
+
private getTRA;
|
|
62
|
+
/**
|
|
63
|
+
* Sign TRA (Token Request Authorization) XML
|
|
64
|
+
* @param traXml TRA XML to sign
|
|
65
|
+
* @returns Signed TRA XML
|
|
66
|
+
*/
|
|
67
|
+
private signTRA;
|
|
68
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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.AuthRepository = void 0;
|
|
13
|
+
const access_ticket_entity_1 = require("@domain/entities/access-ticket.entity");
|
|
14
|
+
const parser_1 = require("@infrastructure/utils/parser");
|
|
15
|
+
const crypt_data_1 = require("@infrastructure/utils/crypt-data");
|
|
16
|
+
const wsdl_path_enum_1 = require("@infrastructure/outbound/ports/soap/enums/wsdl-path.enum");
|
|
17
|
+
const endpoints_enum_1 = require("@infrastructure/outbound/ports/soap/enums/endpoints.enum");
|
|
18
|
+
class AuthRepository {
|
|
19
|
+
constructor(soapClient, config) {
|
|
20
|
+
var _a, _b;
|
|
21
|
+
this.soapClient = soapClient;
|
|
22
|
+
this.cert = config.cert;
|
|
23
|
+
this.key = config.key;
|
|
24
|
+
this.production = (_a = config.production) !== null && _a !== void 0 ? _a : false;
|
|
25
|
+
this.handleTicket = (_b = config.handleTicket) !== null && _b !== void 0 ? _b : false;
|
|
26
|
+
this.ticketStorage = config.ticketStorage;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get a valid ticket from storage if available
|
|
30
|
+
* @param serviceName Service name to get ticket for
|
|
31
|
+
* @returns AccessTicket if found and valid, null otherwise
|
|
32
|
+
*/
|
|
33
|
+
getValidTicketFromStorage(serviceName) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (!this.ticketStorage)
|
|
36
|
+
return null;
|
|
37
|
+
const existingTicket = yield this.ticketStorage.get(serviceName);
|
|
38
|
+
if (existingTicket && !existingTicket.isExpired())
|
|
39
|
+
return existingTicket;
|
|
40
|
+
return null;
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Login and get access ticket for a service
|
|
45
|
+
* @param serviceName Service name to authenticate for
|
|
46
|
+
* @returns AccessTicket
|
|
47
|
+
*/
|
|
48
|
+
login(serviceName) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const existingTicket = yield this.getValidTicketFromStorage(serviceName);
|
|
51
|
+
if (existingTicket)
|
|
52
|
+
return existingTicket;
|
|
53
|
+
return this.requestLogin(serviceName);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Create and configure WSAA SOAP client
|
|
58
|
+
*/
|
|
59
|
+
createAuthClient() {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const client = yield this.soapClient.createClient(wsdl_path_enum_1.WsdlPathEnum.WSAA, { disableCache: true });
|
|
62
|
+
this.soapClient.setEndpoint(client, this.production ? endpoints_enum_1.EndpointsEnum.WSAA : endpoints_enum_1.EndpointsEnum.WSAA_TEST);
|
|
63
|
+
return client;
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Request a new login ticket for a service
|
|
68
|
+
* @param serviceName Service name to authenticate for
|
|
69
|
+
* @returns AccessTicket
|
|
70
|
+
*/
|
|
71
|
+
requestLogin(serviceName) {
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const existingTicket = yield this.getValidTicketFromStorage(serviceName);
|
|
74
|
+
if (existingTicket)
|
|
75
|
+
return existingTicket;
|
|
76
|
+
const signedTRA = this.signTRA(yield parser_1.Parser.jsonToXml(this.getTRA(serviceName)));
|
|
77
|
+
const client = yield this.createAuthClient();
|
|
78
|
+
const [{ loginCmsReturn }] = yield this.soapClient.call(client, "loginCmsAsync", { in0: signedTRA });
|
|
79
|
+
const ticket = access_ticket_entity_1.AccessTicket.create((yield parser_1.Parser.xmlToJson(loginCmsReturn))
|
|
80
|
+
.loginticketresponse);
|
|
81
|
+
if (!this.handleTicket && this.ticketStorage) {
|
|
82
|
+
yield this.ticketStorage.save(ticket, serviceName);
|
|
83
|
+
}
|
|
84
|
+
return ticket;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Get authentication parameters formatted for SOAP requests
|
|
89
|
+
* @param ticket Access ticket
|
|
90
|
+
* @param cuit CUIT number
|
|
91
|
+
* @returns WSAuthParam formatted for SOAP
|
|
92
|
+
*/
|
|
93
|
+
getAuthParams(ticket, cuit) {
|
|
94
|
+
return ticket.getWSAuthFormat(cuit);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Create TRA (Token Request Authorization) JSON
|
|
98
|
+
* @param serviceName Service name to create TRA for
|
|
99
|
+
* @returns TRA JSON
|
|
100
|
+
*/
|
|
101
|
+
getTRA(serviceName) {
|
|
102
|
+
const date = new Date();
|
|
103
|
+
return {
|
|
104
|
+
loginTicketRequest: {
|
|
105
|
+
$: { version: "1.0" },
|
|
106
|
+
header: [
|
|
107
|
+
{
|
|
108
|
+
uniqueId: [Math.floor(date.getTime() / 1000)],
|
|
109
|
+
generationTime: [new Date(date.getTime() - 600000).toISOString()],
|
|
110
|
+
expirationTime: [new Date(date.getTime() + 600000).toISOString()],
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
service: [serviceName],
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Sign TRA (Token Request Authorization) XML
|
|
119
|
+
* @param traXml TRA XML to sign
|
|
120
|
+
* @returns Signed TRA XML
|
|
121
|
+
*/
|
|
122
|
+
signTRA(traXml) {
|
|
123
|
+
const crypto = new crypt_data_1.Cryptography(this.cert, this.key);
|
|
124
|
+
return crypto.sign(traXml);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
exports.AuthRepository = AuthRepository;
|
|
128
|
+
//# sourceMappingURL=afip-auth.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"afip-auth.repository.js","sourceRoot":"","sources":["../../../../../src/infrastructure/outbound/adapters/auth/afip-auth.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,gFAAqE;AAErE,yDAAsD;AACtD,iEAAgE;AAMhE,6FAAwF;AACxF,6FAAyF;AAYzF,MAAa,cAAc;IAOzB,YACmB,UAA2B,EAC5C,MAA4B;;QADX,eAAU,GAAV,UAAU,CAAiB;QAG5C,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,MAAA,MAAM,CAAC,UAAU,mCAAI,KAAK,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,MAAA,MAAM,CAAC,YAAY,mCAAI,KAAK,CAAC;QACjD,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC;IAC5C,CAAC;IAED;;;;OAIG;IACW,yBAAyB,CACrC,WAAmB;;YAEnB,IAAI,CAAC,IAAI,CAAC,aAAa;gBAAE,OAAO,IAAI,CAAC;YAErC,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;YACjE,IAAI,cAAc,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE;gBAAE,OAAO,cAAc,CAAC;YAEzE,OAAO,IAAI,CAAC;QACd,CAAC;KAAA;IAED;;;;OAIG;IACG,KAAK,CAAC,WAAmB;;YAC7B,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;YACzE,IAAI,cAAc;gBAAE,OAAO,cAAc,CAAC;YAE1C,OAAO,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QACxC,CAAC;KAAA;IAED;;OAEG;IACW,gBAAgB;;YAC5B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,YAAY,CAC/C,6BAAY,CAAC,IAAI,EACjB,EAAE,YAAY,EAAE,IAAI,EAAE,CACvB,CAAC;YACF,IAAI,CAAC,UAAU,CAAC,WAAW,CACzB,MAAM,EACN,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,8BAAa,CAAC,IAAI,CAAC,CAAC,CAAC,8BAAa,CAAC,SAAS,CAC/D,CAAC;YACF,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;IAED;;;;OAIG;IACG,YAAY,CAAC,WAAmB;;YACpC,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,WAAW,CAAC,CAAC;YACzE,IAAI,cAAc;gBAAE,OAAO,cAAc,CAAC;YAE1C,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAC5B,MAAM,eAAM,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CACjD,CAAC;YAEF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAE7C,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,CAErD,MAAM,EAAE,eAAe,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;YAE/C,MAAM,MAAM,GAAG,mCAAY,CAAC,MAAM,CAChC,CAAC,MAAM,eAAM,CAAC,SAAS,CAAsB,cAAc,CAAC,CAAC;iBAC1D,mBAAmB,CACvB,CAAC;YAEF,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;gBAC7C,MAAM,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;YACrD,CAAC;YAED,OAAO,MAAM,CAAC;QAChB,CAAC;KAAA;IAED;;;;;OAKG;IACH,aAAa,CAAC,MAAoB,EAAE,IAAY;QAC9C,OAAO,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED;;;;OAIG;IACK,MAAM,CAAC,WAAmB;QAChC,MAAM,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QACxB,OAAO;YACL,kBAAkB,EAAE;gBAClB,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;gBACrB,MAAM,EAAE;oBACN;wBACE,QAAQ,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,CAAC;wBAC7C,cAAc,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;wBACjE,cAAc,EAAE,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC,WAAW,EAAE,CAAC;qBAClE;iBACF;gBACD,OAAO,EAAE,CAAC,WAAW,CAAC;aACvB;SACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,OAAO,CAAC,MAAc;QAC5B,MAAM,MAAM,GAAG,IAAI,yBAAY,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACrD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC;CACF;AArID,wCAqIC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Authentication Repository
|
|
3
|
+
* Implements IAuthenticationRepositoryPort for WSAA authentication
|
|
4
|
+
*/
|
|
5
|
+
import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
|
|
6
|
+
import { AccessTicket } from "@domain/entities/access-ticket.entity";
|
|
7
|
+
import { WSAuthParam } from "@application/types";
|
|
8
|
+
import { AuthRepositoryConfig } from "@infrastructure/outbound/ports/auth/auth-repository.types";
|
|
9
|
+
export declare class AuthRepository implements IAuthenticationRepositoryPort {
|
|
10
|
+
private cert;
|
|
11
|
+
private key;
|
|
12
|
+
private production;
|
|
13
|
+
private handleTicket;
|
|
14
|
+
private ticketStorage?;
|
|
15
|
+
private manualCredentials?;
|
|
16
|
+
private readonly soapClient;
|
|
17
|
+
constructor(config: AuthRepositoryConfig);
|
|
18
|
+
/**
|
|
19
|
+
* Get a valid ticket from storage if available
|
|
20
|
+
* @param serviceName Service name to get ticket for
|
|
21
|
+
* @returns AccessTicket if found and valid, null otherwise
|
|
22
|
+
*/
|
|
23
|
+
private getValidTicketFromStorage;
|
|
24
|
+
/**
|
|
25
|
+
* Login and get access ticket for a service
|
|
26
|
+
* @param serviceName Service name to authenticate for
|
|
27
|
+
* @returns AccessTicket
|
|
28
|
+
*/
|
|
29
|
+
login(serviceName: string): Promise<AccessTicket>;
|
|
30
|
+
/**
|
|
31
|
+
* Create and configure WSAA SOAP client
|
|
32
|
+
*/
|
|
33
|
+
private createAuthClient;
|
|
34
|
+
/**
|
|
35
|
+
* Request a new login ticket for a service
|
|
36
|
+
* @param serviceName Service name to authenticate for
|
|
37
|
+
* @returns AccessTicket
|
|
38
|
+
*/
|
|
39
|
+
requestLogin(serviceName: string): Promise<AccessTicket>;
|
|
40
|
+
/**
|
|
41
|
+
* Get authentication parameters formatted for SOAP requests
|
|
42
|
+
* @param ticket Access ticket
|
|
43
|
+
* @param cuit CUIT number
|
|
44
|
+
* @returns WSAuthParam formatted for SOAP
|
|
45
|
+
*/
|
|
46
|
+
getAuthParams(ticket: AccessTicket, cuit: number): WSAuthParam;
|
|
47
|
+
/**
|
|
48
|
+
* Create TRA (Token Request Authorization) JSON
|
|
49
|
+
* @param serviceName Service name to create TRA for
|
|
50
|
+
* @returns TRA JSON
|
|
51
|
+
*/
|
|
52
|
+
private getTRA;
|
|
53
|
+
/**
|
|
54
|
+
* Sign TRA (Token Request Authorization) XML
|
|
55
|
+
* @param traXml TRA XML to sign
|
|
56
|
+
* @returns Signed TRA XML
|
|
57
|
+
*/
|
|
58
|
+
private signTRA;
|
|
59
|
+
}
|