candidhealth 0.38.2 → 0.39.0
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/Client.d.ts +3 -0
- package/Client.js +67 -62
- package/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +2 -206
- package/api/resources/chargeCapture/resources/v1/client/Client.js +7 -211
- package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -103
- package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -103
- package/api/resources/chargeCaptureBundles/client/Client.d.ts +26 -0
- package/api/resources/chargeCaptureBundles/client/Client.js +17 -0
- package/api/resources/chargeCaptureBundles/client/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/client/index.js +2 -0
- package/api/resources/chargeCaptureBundles/index.d.ts +2 -0
- package/api/resources/chargeCaptureBundles/index.js +18 -0
- package/api/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/index.js +27 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +57 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +270 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +28 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/get.js +58 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +28 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +58 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +4 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +33 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +46 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.js +5 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +2 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +28 -0
- package/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +58 -0
- package/api/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
- package/api/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +22 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +5 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +17 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +5 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +7 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +5 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +12 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
- package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
- package/api/resources/commons/types/ChargeCaptureBundleId.d.ts +8 -0
- package/api/resources/commons/types/ChargeCaptureBundleId.js +10 -0
- package/api/resources/commons/types/NetworkType.d.ts +9 -1
- package/api/resources/commons/types/NetworkType.js +2 -0
- package/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
- package/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
- package/api/resources/commons/types/index.d.ts +2 -0
- package/api/resources/commons/types/index.js +2 -0
- package/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/api/resources/diagnoses/client/Client.js +3 -3
- package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
- package/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
- package/api/resources/encounters/resources/v4/client/Client.d.ts +83 -95
- package/api/resources/encounters/resources/v4/client/Client.js +88 -100
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +62 -8
- package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +20 -5
- package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -82
- package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
- package/api/resources/guarantor/resources/v1/client/Client.js +24 -4
- package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/api/resources/index.d.ts +1 -0
- package/api/resources/index.js +2 -1
- package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +4 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +10 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +4 -3
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +3 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -2
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +0 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +7 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +5 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
- package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
- package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
- package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/api/resources/serviceFacility/client/Client.js +1 -1
- package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
- package/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
- package/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/api/resources/x12/resources/v1/types/Rarc.d.ts +3 -1
- package/api/resources/x12/resources/v1/types/Rarc.js +2 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +67 -62
- package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
- package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +2 -206
- package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +7 -211
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -103
- package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -103
- package/dist/api/resources/chargeCaptureBundles/client/Client.d.ts +26 -0
- package/dist/api/resources/chargeCaptureBundles/client/Client.js +17 -0
- package/dist/api/resources/chargeCaptureBundles/client/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/client/index.js +2 -0
- package/dist/api/resources/chargeCaptureBundles/index.d.ts +2 -0
- package/dist/api/resources/chargeCaptureBundles/index.js +18 -0
- package/dist/api/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/index.js +27 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +57 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +270 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +28 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.js +58 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +28 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +58 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +4 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +33 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +46 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.js +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +2 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +28 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +58 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +22 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +17 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +7 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +5 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +12 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
- package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
- package/dist/api/resources/commons/types/ChargeCaptureBundleId.d.ts +8 -0
- package/dist/api/resources/commons/types/ChargeCaptureBundleId.js +10 -0
- package/dist/api/resources/commons/types/NetworkType.d.ts +9 -1
- package/dist/api/resources/commons/types/NetworkType.js +2 -0
- package/dist/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
- package/dist/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +2 -0
- package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/diagnoses/client/Client.js +3 -3
- package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
- package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
- package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +83 -95
- package/dist/api/resources/encounters/resources/v4/client/Client.js +88 -100
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +62 -8
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +20 -5
- package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -82
- package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
- package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
- package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
- package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
- package/dist/api/resources/guarantor/resources/v1/client/Client.js +24 -4
- package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/index.d.ts +1 -0
- package/dist/api/resources/index.js +2 -1
- package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
- package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
- package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
- package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
- package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
- package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +4 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +10 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +4 -3
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +3 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -2
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +0 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +7 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +5 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
- package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
- package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
- package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
- package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
- package/dist/api/resources/serviceFacility/client/Client.js +1 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
- package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
- package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
- package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
- package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +3 -1
- package/dist/api/resources/x12/resources/v1/types/Rarc.js +2 -0
- package/dist/serialization/resources/chargeCaptureBundles/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/index.js +17 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/index.js +27 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +15 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.js +61 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +15 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js +61 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +3 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +29 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +15 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +61 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +18 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +39 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +21 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +42 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +14 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +37 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +31 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
- package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
- package/dist/serialization/resources/commons/types/ChargeCaptureBundleId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/ChargeCaptureBundleId.js +35 -0
- package/dist/serialization/resources/commons/types/NetworkType.d.ts +1 -1
- package/dist/serialization/resources/commons/types/NetworkType.js +2 -0
- package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
- package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +2 -0
- package/dist/serialization/resources/index.d.ts +1 -0
- package/dist/serialization/resources/index.js +2 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +16 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +37 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +1 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +1 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +3 -1
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +13 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +34 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
- package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
- package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
- package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +2 -0
- package/package.json +1 -1
- package/reference.md +314 -299
- package/serialization/resources/chargeCaptureBundles/index.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/index.js +17 -0
- package/serialization/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
- package/serialization/resources/chargeCaptureBundles/resources/index.js +27 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +15 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.js +61 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +15 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js +61 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +3 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +29 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +15 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +61 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +18 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +39 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +21 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +42 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +14 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +37 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +31 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
- package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
- package/serialization/resources/commons/types/ChargeCaptureBundleId.d.ts +10 -0
- package/serialization/resources/commons/types/ChargeCaptureBundleId.js +35 -0
- package/serialization/resources/commons/types/NetworkType.d.ts +1 -1
- package/serialization/resources/commons/types/NetworkType.js +2 -0
- package/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
- package/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
- package/serialization/resources/commons/types/index.d.ts +2 -0
- package/serialization/resources/commons/types/index.js +2 -0
- package/serialization/resources/index.d.ts +1 -0
- package/serialization/resources/index.js +2 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +16 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +37 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +1 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +1 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +3 -1
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +13 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +34 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
- package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
- package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
- package/serialization/resources/x12/resources/v1/types/Rarc.js +2 -0
|
@@ -5,109 +5,7 @@ import * as CandidApi from "../../../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* data: {
|
|
9
|
-
* diagnoses: [],
|
|
10
|
-
* interventions: [],
|
|
11
|
-
* externalClaimSubmission: {
|
|
12
|
-
* claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
|
|
13
|
-
* patientControlNumber: "PATIENT_CONTROL_NUMBER",
|
|
14
|
-
* submissionRecords: [{
|
|
15
|
-
* submittedAt: new Date("2023-01-01T13:00:00.000Z"),
|
|
16
|
-
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
|
|
17
|
-
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
18
|
-
* intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
|
|
19
|
-
* }, {
|
|
20
|
-
* submittedAt: new Date("2023-01-04T12:00:00.000Z"),
|
|
21
|
-
* claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
|
|
22
|
-
* payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
|
|
23
|
-
* intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
|
|
24
|
-
* }]
|
|
25
|
-
* },
|
|
26
|
-
* serviceLines: [],
|
|
27
|
-
* patientHistories: [],
|
|
28
|
-
* billingNotes: [],
|
|
29
|
-
* benefitsAssignedToProvider: true,
|
|
30
|
-
* priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
|
|
31
|
-
* externalId: CandidApi.EncounterExternalId("string"),
|
|
32
|
-
* dateOfService: "2023-01-15",
|
|
33
|
-
* tagIds: [],
|
|
34
|
-
* clinicalNotes: [],
|
|
35
|
-
* payToAddress: {
|
|
36
|
-
* address1: "123 Main St",
|
|
37
|
-
* address2: "Apt 1",
|
|
38
|
-
* city: "New York",
|
|
39
|
-
* state: CandidApi.State.Ny,
|
|
40
|
-
* zipCode: "10001",
|
|
41
|
-
* zipPlusFourCode: "1234"
|
|
42
|
-
* },
|
|
43
|
-
* billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
|
|
44
|
-
* responsibleParty: CandidApi.encounters.v4.ResponsiblePartyType.InsurancePay,
|
|
45
|
-
* providerAcceptsAssignment: true,
|
|
46
|
-
* synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
|
|
47
|
-
* placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
|
|
48
|
-
* appointmentType: "string",
|
|
49
|
-
* endDateOfService: "2023-01-15",
|
|
50
|
-
* subscriberPrimary: {
|
|
51
|
-
* insuranceCard: {
|
|
52
|
-
* memberId: "string",
|
|
53
|
-
* payerName: "string",
|
|
54
|
-
* payerId: "string"
|
|
55
|
-
* },
|
|
56
|
-
* patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
|
|
57
|
-
* firstName: "string",
|
|
58
|
-
* lastName: "string",
|
|
59
|
-
* gender: CandidApi.Gender.Male
|
|
60
|
-
* },
|
|
61
|
-
* subscriberSecondary: {
|
|
62
|
-
* insuranceCard: {
|
|
63
|
-
* memberId: "string",
|
|
64
|
-
* payerName: "string",
|
|
65
|
-
* payerId: "string"
|
|
66
|
-
* },
|
|
67
|
-
* patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
|
|
68
|
-
* firstName: "string",
|
|
69
|
-
* lastName: "string",
|
|
70
|
-
* gender: CandidApi.Gender.Male
|
|
71
|
-
* },
|
|
72
|
-
* additionalInformation: "string",
|
|
73
|
-
* serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
|
|
74
|
-
* admissionDate: "2023-01-15",
|
|
75
|
-
* dischargeDate: "2023-01-15",
|
|
76
|
-
* onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
|
|
77
|
-
* lastMenstrualPeriodDate: "2023-01-15",
|
|
78
|
-
* delayReasonCode: CandidApi.DelayReasonCode.C1,
|
|
79
|
-
* patient: {},
|
|
80
|
-
* patientAuthorizedRelease: true,
|
|
81
|
-
* schemaInstances: [],
|
|
82
|
-
* vitals: {
|
|
83
|
-
* heightIn: 70,
|
|
84
|
-
* weightLbs: 165,
|
|
85
|
-
* bloodPressureSystolicMmhg: 115,
|
|
86
|
-
* bloodPressureDiastolicMmhg: 85,
|
|
87
|
-
* bodyTemperatureF: 98,
|
|
88
|
-
* hemoglobinGdl: 15.1,
|
|
89
|
-
* hematocritPct: 51.2
|
|
90
|
-
* },
|
|
91
|
-
* existingMedications: [],
|
|
92
|
-
* renderingProvider: {},
|
|
93
|
-
* serviceFacility: {
|
|
94
|
-
* organizationName: "Test Organization",
|
|
95
|
-
* address: {
|
|
96
|
-
* address1: "123 Main St",
|
|
97
|
-
* address2: "Apt 1",
|
|
98
|
-
* city: "New York",
|
|
99
|
-
* state: CandidApi.State.Ny,
|
|
100
|
-
* zipCode: "10001",
|
|
101
|
-
* zipPlusFourCode: "1234"
|
|
102
|
-
* }
|
|
103
|
-
* },
|
|
104
|
-
* guarantor: {},
|
|
105
|
-
* billingProvider: {},
|
|
106
|
-
* supervisingProvider: {},
|
|
107
|
-
* referringProvider: {},
|
|
108
|
-
* initialReferringProvider: {},
|
|
109
|
-
* referralNumber: "string"
|
|
110
|
-
* },
|
|
8
|
+
* data: {},
|
|
111
9
|
* chargeExternalId: "string",
|
|
112
10
|
* ehrSourceUrl: "string",
|
|
113
11
|
* dateOfService: "2023-01-15",
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../environments";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
import { V1 } from "../resources/v1/client/Client";
|
|
7
|
+
export declare namespace ChargeCaptureBundles {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare class ChargeCaptureBundles {
|
|
22
|
+
protected readonly _options: ChargeCaptureBundles.Options;
|
|
23
|
+
constructor(_options?: ChargeCaptureBundles.Options);
|
|
24
|
+
protected _v1: V1 | undefined;
|
|
25
|
+
get v1(): V1;
|
|
26
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ChargeCaptureBundles = void 0;
|
|
7
|
+
const Client_1 = require("../resources/v1/client/Client");
|
|
8
|
+
class ChargeCaptureBundles {
|
|
9
|
+
constructor(_options = {}) {
|
|
10
|
+
this._options = _options;
|
|
11
|
+
}
|
|
12
|
+
get v1() {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = this._v1) !== null && _a !== void 0 ? _a : (this._v1 = new Client_1.V1(this._options)));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.ChargeCaptureBundles = ChargeCaptureBundles;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
__exportStar(require("./resources"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as v1 from "./v1";
|
|
@@ -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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.v1 = void 0;
|
|
27
|
+
exports.v1 = __importStar(require("./v1"));
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as CandidApi from "../../../../../index";
|
|
7
|
+
export declare namespace V1 {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
|
|
10
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
11
|
+
}
|
|
12
|
+
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
14
|
+
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
|
+
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare class V1 {
|
|
22
|
+
protected readonly _options: V1.Options;
|
|
23
|
+
constructor(_options?: V1.Options);
|
|
24
|
+
/**
|
|
25
|
+
* @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
|
|
26
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* await client.chargeCaptureBundles.v1.get(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
30
|
+
*/
|
|
31
|
+
get(chargeCaptureBundleId: CandidApi.ChargeCaptureBundleId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundle, CandidApi.chargeCaptureBundles.v1.get.Error>>;
|
|
32
|
+
/**
|
|
33
|
+
* @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
|
|
34
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* await client.chargeCaptureBundles.v1.resubmit(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
38
|
+
*/
|
|
39
|
+
resubmit(chargeCaptureBundleId: CandidApi.ChargeCaptureBundleId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundle, CandidApi.chargeCaptureBundles.v1.resubmit.Error>>;
|
|
40
|
+
/**
|
|
41
|
+
* @param {CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureBundlesRequest} request
|
|
42
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.chargeCaptureBundles.v1.getAll({
|
|
46
|
+
* limit: 1,
|
|
47
|
+
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
48
|
+
* patientExternalId: "string",
|
|
49
|
+
* bundleStatus: CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleStatus.InProgress,
|
|
50
|
+
* chargeStatus: CandidApi.chargeCapture.v1.ChargeCaptureStatus.Planned,
|
|
51
|
+
* chargeExternalId: "string",
|
|
52
|
+
* dateOfService: "2023-01-15"
|
|
53
|
+
* })
|
|
54
|
+
*/
|
|
55
|
+
getAll(request?: CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureBundlesRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundlePage, CandidApi.chargeCaptureBundles.v1.getAll.Error>>;
|
|
56
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.V1 = void 0;
|
|
42
|
+
const environments = __importStar(require("../../../../../../environments"));
|
|
43
|
+
const core = __importStar(require("../../../../../../core"));
|
|
44
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
45
|
+
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
46
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
47
|
+
class V1 {
|
|
48
|
+
constructor(_options = {}) {
|
|
49
|
+
this._options = _options;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
|
|
53
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.chargeCaptureBundles.v1.get(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
57
|
+
*/
|
|
58
|
+
get(chargeCaptureBundleId, requestOptions) {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const _response = yield core.fetcher({
|
|
62
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
63
|
+
.candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
|
|
64
|
+
method: "GET",
|
|
65
|
+
headers: {
|
|
66
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
67
|
+
"X-Fern-Language": "JavaScript",
|
|
68
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
69
|
+
"X-Fern-SDK-Version": "0.39.0",
|
|
70
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
|
+
},
|
|
73
|
+
contentType: "application/json",
|
|
74
|
+
requestType: "json",
|
|
75
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
76
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
77
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
78
|
+
});
|
|
79
|
+
if (_response.ok) {
|
|
80
|
+
return {
|
|
81
|
+
ok: true,
|
|
82
|
+
body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundle.parseOrThrow(_response.body, {
|
|
83
|
+
unrecognizedObjectKeys: "passthrough",
|
|
84
|
+
allowUnrecognizedUnionMembers: true,
|
|
85
|
+
allowUnrecognizedEnumValues: true,
|
|
86
|
+
breadcrumbsPrefix: ["response"],
|
|
87
|
+
}),
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
if (_response.error.reason === "status-code") {
|
|
91
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
92
|
+
case "NotImplementedError":
|
|
93
|
+
return {
|
|
94
|
+
ok: false,
|
|
95
|
+
error: serializers.chargeCaptureBundles.v1.get.Error.parseOrThrow(_response.error.body, {
|
|
96
|
+
unrecognizedObjectKeys: "passthrough",
|
|
97
|
+
allowUnrecognizedUnionMembers: true,
|
|
98
|
+
allowUnrecognizedEnumValues: true,
|
|
99
|
+
breadcrumbsPrefix: ["response"],
|
|
100
|
+
}),
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
return {
|
|
105
|
+
ok: false,
|
|
106
|
+
error: CandidApi.chargeCaptureBundles.v1.get.Error._unknown(_response.error),
|
|
107
|
+
};
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
|
|
112
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await client.chargeCaptureBundles.v1.resubmit(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
|
|
116
|
+
*/
|
|
117
|
+
resubmit(chargeCaptureBundleId, requestOptions) {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
120
|
+
const _response = yield core.fetcher({
|
|
121
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
122
|
+
.candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
|
|
123
|
+
method: "POST",
|
|
124
|
+
headers: {
|
|
125
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
126
|
+
"X-Fern-Language": "JavaScript",
|
|
127
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
128
|
+
"X-Fern-SDK-Version": "0.39.0",
|
|
129
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
130
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
131
|
+
},
|
|
132
|
+
contentType: "application/json",
|
|
133
|
+
requestType: "json",
|
|
134
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
135
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
136
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
137
|
+
});
|
|
138
|
+
if (_response.ok) {
|
|
139
|
+
return {
|
|
140
|
+
ok: true,
|
|
141
|
+
body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundle.parseOrThrow(_response.body, {
|
|
142
|
+
unrecognizedObjectKeys: "passthrough",
|
|
143
|
+
allowUnrecognizedUnionMembers: true,
|
|
144
|
+
allowUnrecognizedEnumValues: true,
|
|
145
|
+
breadcrumbsPrefix: ["response"],
|
|
146
|
+
}),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
if (_response.error.reason === "status-code") {
|
|
150
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
151
|
+
case "NotImplementedError":
|
|
152
|
+
return {
|
|
153
|
+
ok: false,
|
|
154
|
+
error: serializers.chargeCaptureBundles.v1.resubmit.Error.parseOrThrow(_response.error.body, {
|
|
155
|
+
unrecognizedObjectKeys: "passthrough",
|
|
156
|
+
allowUnrecognizedUnionMembers: true,
|
|
157
|
+
allowUnrecognizedEnumValues: true,
|
|
158
|
+
breadcrumbsPrefix: ["response"],
|
|
159
|
+
}),
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return {
|
|
164
|
+
ok: false,
|
|
165
|
+
error: CandidApi.chargeCaptureBundles.v1.resubmit.Error._unknown(_response.error),
|
|
166
|
+
};
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @param {CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureBundlesRequest} request
|
|
171
|
+
* @param {V1.RequestOptions} requestOptions - Request-specific configuration.
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* await client.chargeCaptureBundles.v1.getAll({
|
|
175
|
+
* limit: 1,
|
|
176
|
+
* pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
|
|
177
|
+
* patientExternalId: "string",
|
|
178
|
+
* bundleStatus: CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleStatus.InProgress,
|
|
179
|
+
* chargeStatus: CandidApi.chargeCapture.v1.ChargeCaptureStatus.Planned,
|
|
180
|
+
* chargeExternalId: "string",
|
|
181
|
+
* dateOfService: "2023-01-15"
|
|
182
|
+
* })
|
|
183
|
+
*/
|
|
184
|
+
getAll(request = {}, requestOptions) {
|
|
185
|
+
var _a, _b;
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const { limit, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService } = request;
|
|
188
|
+
const _queryParams = {};
|
|
189
|
+
if (limit != null) {
|
|
190
|
+
_queryParams["limit"] = limit.toString();
|
|
191
|
+
}
|
|
192
|
+
if (pageToken != null) {
|
|
193
|
+
_queryParams["page_token"] = pageToken;
|
|
194
|
+
}
|
|
195
|
+
if (patientExternalId != null) {
|
|
196
|
+
_queryParams["patient_external_id"] = patientExternalId;
|
|
197
|
+
}
|
|
198
|
+
if (bundleStatus != null) {
|
|
199
|
+
_queryParams["bundle_status"] = bundleStatus;
|
|
200
|
+
}
|
|
201
|
+
if (chargeStatus != null) {
|
|
202
|
+
_queryParams["charge_status"] = chargeStatus;
|
|
203
|
+
}
|
|
204
|
+
if (chargeExternalId != null) {
|
|
205
|
+
_queryParams["charge_external_id"] = chargeExternalId;
|
|
206
|
+
}
|
|
207
|
+
if (dateOfService != null) {
|
|
208
|
+
_queryParams["date_of_service"] = dateOfService;
|
|
209
|
+
}
|
|
210
|
+
const _response = yield core.fetcher({
|
|
211
|
+
url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
|
|
212
|
+
.candidApi, "/api/charge_capture_bundle/v1"),
|
|
213
|
+
method: "GET",
|
|
214
|
+
headers: {
|
|
215
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
216
|
+
"X-Fern-Language": "JavaScript",
|
|
217
|
+
"X-Fern-SDK-Name": "candidhealth",
|
|
218
|
+
"X-Fern-SDK-Version": "0.39.0",
|
|
219
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
220
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
221
|
+
},
|
|
222
|
+
contentType: "application/json",
|
|
223
|
+
queryParameters: _queryParams,
|
|
224
|
+
requestType: "json",
|
|
225
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
226
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
227
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
228
|
+
});
|
|
229
|
+
if (_response.ok) {
|
|
230
|
+
return {
|
|
231
|
+
ok: true,
|
|
232
|
+
body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundlePage.parseOrThrow(_response.body, {
|
|
233
|
+
unrecognizedObjectKeys: "passthrough",
|
|
234
|
+
allowUnrecognizedUnionMembers: true,
|
|
235
|
+
allowUnrecognizedEnumValues: true,
|
|
236
|
+
breadcrumbsPrefix: ["response"],
|
|
237
|
+
}),
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
if (_response.error.reason === "status-code") {
|
|
241
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
|
|
242
|
+
case "NotImplementedError":
|
|
243
|
+
return {
|
|
244
|
+
ok: false,
|
|
245
|
+
error: serializers.chargeCaptureBundles.v1.getAll.Error.parseOrThrow(_response.error.body, {
|
|
246
|
+
unrecognizedObjectKeys: "passthrough",
|
|
247
|
+
allowUnrecognizedUnionMembers: true,
|
|
248
|
+
allowUnrecognizedEnumValues: true,
|
|
249
|
+
breadcrumbsPrefix: ["response"],
|
|
250
|
+
}),
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return {
|
|
255
|
+
ok: false,
|
|
256
|
+
error: CandidApi.chargeCaptureBundles.v1.getAll.Error._unknown(_response.error),
|
|
257
|
+
};
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
_getAuthorizationHeader() {
|
|
261
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
262
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
263
|
+
if (bearer != null) {
|
|
264
|
+
return `Bearer ${bearer}`;
|
|
265
|
+
}
|
|
266
|
+
return undefined;
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
exports.V1 = V1;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.chargeCaptureBundles.v1.get.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface NotImplementedError extends _Utils {
|
|
9
|
+
errorName: "NotImplementedError";
|
|
10
|
+
content: CandidApi.NotImplementedErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.get.Error.NotImplementedError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.get.Error, visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Error = void 0;
|
|
30
|
+
const CandidApi = __importStar(require("../../../../../index"));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
notImplementedError: (value) => {
|
|
33
|
+
return {
|
|
34
|
+
content: value,
|
|
35
|
+
errorName: "NotImplementedError",
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return CandidApi.chargeCaptureBundles.v1.get.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_unknown: (fetcherError) => {
|
|
42
|
+
return {
|
|
43
|
+
errorName: undefined,
|
|
44
|
+
content: fetcherError,
|
|
45
|
+
_visit: function (visitor) {
|
|
46
|
+
return CandidApi.chargeCaptureBundles.v1.get.Error._visit(this, visitor);
|
|
47
|
+
},
|
|
48
|
+
};
|
|
49
|
+
},
|
|
50
|
+
_visit: (value, visitor) => {
|
|
51
|
+
switch (value.errorName) {
|
|
52
|
+
case "NotImplementedError":
|
|
53
|
+
return visitor.notImplementedError(value.content);
|
|
54
|
+
default:
|
|
55
|
+
return visitor._other(value);
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as CandidApi from "../../../../../index";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
export declare type Error = CandidApi.chargeCaptureBundles.v1.getAll.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface NotImplementedError extends _Utils {
|
|
9
|
+
errorName: "NotImplementedError";
|
|
10
|
+
content: CandidApi.NotImplementedErrorMessage;
|
|
11
|
+
}
|
|
12
|
+
interface _Unknown extends _Utils {
|
|
13
|
+
errorName: void;
|
|
14
|
+
content: core.Fetcher.Error;
|
|
15
|
+
}
|
|
16
|
+
interface _Utils {
|
|
17
|
+
_visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
|
|
18
|
+
}
|
|
19
|
+
interface _Visitor<_Result> {
|
|
20
|
+
notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
|
|
21
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export declare const Error: {
|
|
25
|
+
readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.getAll.Error.NotImplementedError;
|
|
26
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
|
|
27
|
+
readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.getAll.Error, visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
|
|
28
|
+
};
|