candidhealth 0.17.1
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.
- checksums.yaml +7 -0
- data/lib/candidhealth/auth/client.rb +28 -0
- data/lib/candidhealth/auth/v_2/client.rb +90 -0
- data/lib/candidhealth/auth/v_2/types/auth_get_token_request.rb +54 -0
- data/lib/candidhealth/auth/v_2/types/auth_get_token_response.rb +59 -0
- data/lib/candidhealth/auth/v_2/types/too_many_requests_error_type.rb +49 -0
- data/lib/candidhealth/billing_notes/client.rb +28 -0
- data/lib/candidhealth/billing_notes/v_2/client.rb +76 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note.rb +89 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_base.rb +49 -0
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_id.rb +9 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_frequency_type_code.rb +14 -0
- data/lib/candidhealth/claim_submission/v_1/types/claim_submission_record_create.rb +68 -0
- data/lib/candidhealth/claim_submission/v_1/types/external_claim_submission_create.rb +75 -0
- data/lib/candidhealth/claims/types/claim.rb +98 -0
- data/lib/candidhealth/claims/types/claim_status.rb +23 -0
- data/lib/candidhealth/commons/types/claim_adjustment_group_codes.rb +17 -0
- data/lib/candidhealth/commons/types/claim_id.rb +7 -0
- data/lib/candidhealth/commons/types/claim_submission_payer_responsibility_type.rb +10 -0
- data/lib/candidhealth/commons/types/date.rb +7 -0
- data/lib/candidhealth/commons/types/date_range_optional_end.rb +53 -0
- data/lib/candidhealth/commons/types/decimal.rb +7 -0
- data/lib/candidhealth/commons/types/delay_reason_code.rb +23 -0
- data/lib/candidhealth/commons/types/email.rb +7 -0
- data/lib/candidhealth/commons/types/emr_payer_crosswalk.rb +10 -0
- data/lib/candidhealth/commons/types/encounter_external_id.rb +7 -0
- data/lib/candidhealth/commons/types/encounter_id.rb +7 -0
- data/lib/candidhealth/commons/types/entity_not_found_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/error_message.rb +7 -0
- data/lib/candidhealth/commons/types/facility_type_code.rb +61 -0
- data/lib/candidhealth/commons/types/http_service_unavailable_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/insurance_type_code.rb +79 -0
- data/lib/candidhealth/commons/types/invoice_id.rb +7 -0
- data/lib/candidhealth/commons/types/link_url.rb +7 -0
- data/lib/candidhealth/commons/types/npi.rb +7 -0
- data/lib/candidhealth/commons/types/organization_id.rb +7 -0
- data/lib/candidhealth/commons/types/organization_not_authorized_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/page_token.rb +7 -0
- data/lib/candidhealth/commons/types/patient_external_id.rb +7 -0
- data/lib/candidhealth/commons/types/patient_relationship_to_insured_code_all.rb +32 -0
- data/lib/candidhealth/commons/types/phone_number.rb +53 -0
- data/lib/candidhealth/commons/types/phone_number_type.rb +11 -0
- data/lib/candidhealth/commons/types/procedure_modifier.rb +395 -0
- data/lib/candidhealth/commons/types/provider_id.rb +7 -0
- data/lib/candidhealth/commons/types/region_national.rb +41 -0
- data/lib/candidhealth/commons/types/region_states.rb +48 -0
- data/lib/candidhealth/commons/types/regions.rb +92 -0
- data/lib/candidhealth/commons/types/removable_date_range_optional_end.rb +90 -0
- data/lib/candidhealth/commons/types/request_validation_error.rb +52 -0
- data/lib/candidhealth/commons/types/resource_page.rb +53 -0
- data/lib/candidhealth/commons/types/service_line_id.rb +7 -0
- data/lib/candidhealth/commons/types/service_line_units.rb +10 -0
- data/lib/candidhealth/commons/types/sort_direction.rb +10 -0
- data/lib/candidhealth/commons/types/source_of_payment_code.rb +31 -0
- data/lib/candidhealth/commons/types/state.rb +70 -0
- data/lib/candidhealth/commons/types/street_address_base.rb +75 -0
- data/lib/candidhealth/commons/types/street_address_long_zip.rb +82 -0
- data/lib/candidhealth/commons/types/street_address_short_zip.rb +82 -0
- data/lib/candidhealth/commons/types/task_assignment_id.rb +7 -0
- data/lib/candidhealth/commons/types/task_id.rb +7 -0
- data/lib/candidhealth/commons/types/task_note_id.rb +7 -0
- data/lib/candidhealth/commons/types/tax_id.rb +7 -0
- data/lib/candidhealth/commons/types/unauthorized_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/unprocessable_entity_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/updates_disabled_due_to_external_system_integration_error_message.rb +47 -0
- data/lib/candidhealth/commons/types/user_id.rb +7 -0
- data/lib/candidhealth/commons/types/work_queue_id.rb +7 -0
- data/lib/candidhealth/contracts/client.rb +28 -0
- data/lib/candidhealth/contracts/v_2/client.rb +336 -0
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory.rb +83 -0
- data/lib/candidhealth/contracts/v_2/types/authorized_signatory_update.rb +92 -0
- data/lib/candidhealth/contracts/v_2/types/contract.rb +165 -0
- data/lib/candidhealth/contracts/v_2/types/contract_base.rb +128 -0
- data/lib/candidhealth/contracts/v_2/types/contract_id.rb +9 -0
- data/lib/candidhealth/contracts/v_2/types/contract_is_linked_to_fee_schedule_error.rb +49 -0
- data/lib/candidhealth/contracts/v_2/types/contract_status.rb +13 -0
- data/lib/candidhealth/contracts/v_2/types/contract_with_providers.rb +177 -0
- data/lib/candidhealth/contracts/v_2/types/contracting_provider_id.rb +9 -0
- data/lib/candidhealth/contracts/v_2/types/contracts_page.rb +65 -0
- data/lib/candidhealth/contracts/v_2/types/date_update.rb +92 -0
- data/lib/candidhealth/contracts/v_2/types/insurance_types.rb +103 -0
- data/lib/candidhealth/contracts/v_2/types/regions_update.rb +92 -0
- data/lib/candidhealth/contracts/v_2/types/rendering_providerid.rb +9 -0
- data/lib/candidhealth/diagnoses/types/diagnosis.rb +106 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_create.rb +72 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_id.rb +7 -0
- data/lib/candidhealth/diagnoses/types/diagnosis_type_code.rb +18 -0
- data/lib/candidhealth/diagnoses/types/standalone_diagnosis_create.rb +78 -0
- data/lib/candidhealth/eligibility/client.rb +28 -0
- data/lib/candidhealth/eligibility/v_2/client.rb +136 -0
- data/lib/candidhealth/encounter_providers/v_2/types/billing_provider.rb +104 -0
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider.rb +103 -0
- data/lib/candidhealth/encounter_providers/v_2/types/encounter_provider_base.rb +60 -0
- data/lib/candidhealth/encounter_providers/v_2/types/provider_id.rb +9 -0
- data/lib/candidhealth/encounter_providers/v_2/types/referring_provider.rb +91 -0
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider.rb +91 -0
- data/lib/candidhealth/encounters/client.rb +28 -0
- data/lib/candidhealth/encounters/v_4/client.rb +1125 -0
- data/lib/candidhealth/encounters/v_4/types/billable_status_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/cash_pay_payer_error_message.rb +49 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note.rb +67 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category.rb +64 -0
- data/lib/candidhealth/encounters/v_4/types/clinical_note_category_create.rb +59 -0
- data/lib/candidhealth/encounters/v_4/types/coding_attribution_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +515 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +274 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_external_id_uniqueness_error_type.rb +50 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_guarantor_missing_contact_info_error_type.rb +49 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_owner_of_next_action_type.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_page.rb +65 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_patient_control_number_uniqueness_error_type.rb +49 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_sort_options.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/encounter_submission_origin_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/intake_follow_up.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/intake_follow_up_id.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question.rb +64 -0
- data/lib/candidhealth/encounters/v_4/types/intake_question_id.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/intake_response_and_follow_ups.rb +58 -0
- data/lib/candidhealth/encounters/v_4/types/intervention.rb +87 -0
- data/lib/candidhealth/encounters/v_4/types/intervention_category.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/lab.rb +60 -0
- data/lib/candidhealth/encounters/v_4/types/lab_code_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/medication.rb +84 -0
- data/lib/candidhealth/encounters/v_4/types/note_category.rb +24 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category.rb +59 -0
- data/lib/candidhealth/encounters/v_4/types/patient_history_category_enum.rb +14 -0
- data/lib/candidhealth/encounters/v_4/types/prior_authorization_number.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/responsible_party_type.rb +13 -0
- data/lib/candidhealth/encounters/v_4/types/rx_cui.rb +9 -0
- data/lib/candidhealth/encounters/v_4/types/service_authorization_exception_code.rb +19 -0
- data/lib/candidhealth/encounters/v_4/types/synchronicity_type.rb +12 -0
- data/lib/candidhealth/encounters/v_4/types/vitals.rb +78 -0
- data/lib/candidhealth/era/types/era.rb +59 -0
- data/lib/candidhealth/era/types/era_base.rb +53 -0
- data/lib/candidhealth/era/types/era_id.rb +7 -0
- data/lib/candidhealth/era/types/era_not_fully_processed_error_message.rb +53 -0
- data/lib/candidhealth/era_commons/types/claim_status_code_create.rb +18 -0
- data/lib/candidhealth/expected_network_status/client.rb +31 -0
- data/lib/candidhealth/expected_network_status/v_1/client.rb +112 -0
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status.rb +13 -0
- data/lib/candidhealth/expected_network_status/v_1/types/expected_network_status_response.rb +66 -0
- data/lib/candidhealth/expected_network_status/v_2/client.rb +183 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_request.rb +119 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_providers_response.rb +65 -0
- data/lib/candidhealth/expected_network_status/v_2/types/compute_all_in_network_rendering_providers_result.rb +107 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_check_error_message.rb +49 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_request_v_2.rb +119 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_response_v_2.rb +62 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_subscriber_information.rb +67 -0
- data/lib/candidhealth/expected_network_status/v_2/types/expected_network_status_v_2.rb +107 -0
- data/lib/candidhealth/expected_network_status/v_2/types/explanation.rb +18 -0
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_rendering_providers_detail.rb +67 -0
- data/lib/candidhealth/expected_network_status/v_2/types/in_network_status.rb +57 -0
- data/lib/candidhealth/expected_network_status/v_2/types/indeterminate_network_status.rb +74 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type.rb +62 -0
- data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +103 -0
- data/lib/candidhealth/expected_network_status/v_2/types/line_of_business.rb +13 -0
- data/lib/candidhealth/expected_network_status/v_2/types/network_status_check_id.rb +9 -0
- data/lib/candidhealth/expected_network_status/v_2/types/out_of_network_status.rb +67 -0
- data/lib/candidhealth/expected_network_status/v_2/types/service_type.rb +51 -0
- data/lib/candidhealth/exports/client.rb +28 -0
- data/lib/candidhealth/exports/v_3/client.rb +102 -0
- data/lib/candidhealth/exports/v_3/types/get_exports_response.rb +75 -0
- data/lib/candidhealth/financials/types/account_type.rb +10 -0
- data/lib/candidhealth/financials/types/allocation.rb +58 -0
- data/lib/candidhealth/financials/types/allocation_create.rb +60 -0
- data/lib/candidhealth/financials/types/allocation_target.rb +118 -0
- data/lib/candidhealth/financials/types/allocation_target_create.rb +118 -0
- data/lib/candidhealth/financials/types/billing_provider_allocation_target.rb +48 -0
- data/lib/candidhealth/financials/types/claim_allocation_target.rb +54 -0
- data/lib/candidhealth/financials/types/invoice_update.rb +90 -0
- data/lib/candidhealth/financials/types/note_update.rb +89 -0
- data/lib/candidhealth/financials/types/patient_transaction_source.rb +15 -0
- data/lib/candidhealth/financials/types/refund_reason.rb +9 -0
- data/lib/candidhealth/financials/types/refund_reason_update.rb +90 -0
- data/lib/candidhealth/financials/types/service_line_allocation_target.rb +61 -0
- data/lib/candidhealth/guarantor/client.rb +28 -0
- data/lib/candidhealth/guarantor/v_1/client.rb +224 -0
- data/lib/candidhealth/guarantor/v_1/types/encounter_has_existing_guarantor_error_type.rb +49 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor.rb +121 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_base.rb +84 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_create.rb +114 -0
- data/lib/candidhealth/guarantor/v_1/types/guarantor_id.rb +9 -0
- data/lib/candidhealth/identifiers/types/identifier.rb +82 -0
- data/lib/candidhealth/identifiers/types/identifier_base.rb +71 -0
- data/lib/candidhealth/identifiers/types/identifier_code.rb +10 -0
- data/lib/candidhealth/identifiers/types/identifier_create.rb +71 -0
- data/lib/candidhealth/identifiers/types/identifier_id.rb +7 -0
- data/lib/candidhealth/identifiers/types/identifier_update.rb +83 -0
- data/lib/candidhealth/identifiers/types/identifier_value.rb +92 -0
- data/lib/candidhealth/identifiers/types/medicaid_provider_identifier.rb +53 -0
- data/lib/candidhealth/identifiers/types/medicare_provider_identifier.rb +53 -0
- data/lib/candidhealth/identifiers/types/updatable_identifier.rb +105 -0
- data/lib/candidhealth/individual/types/gender.rb +13 -0
- data/lib/candidhealth/individual/types/individual_base.rb +58 -0
- data/lib/candidhealth/individual/types/individual_id.rb +7 -0
- data/lib/candidhealth/individual/types/patient.rb +126 -0
- data/lib/candidhealth/individual/types/patient_base.rb +89 -0
- data/lib/candidhealth/individual/types/patient_create.rb +119 -0
- data/lib/candidhealth/individual/types/subscriber.rb +110 -0
- data/lib/candidhealth/individual/types/subscriber_base.rb +91 -0
- data/lib/candidhealth/individual/types/subscriber_create.rb +103 -0
- data/lib/candidhealth/insurance_adjudications/client.rb +28 -0
- data/lib/candidhealth/insurance_adjudications/v_1/client.rb +143 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication.rb +101 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/claim_adjudication_create.rb +95 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication.rb +99 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_create.rb +109 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/insurance_adjudication_id.rb +9 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication.rb +112 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_create.rb +105 -0
- data/lib/candidhealth/insurance_adjudications/v_1/types/service_line_adjudication_id.rb +9 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card.rb +123 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_base.rb +73 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_create.rb +123 -0
- data/lib/candidhealth/insurance_cards/v_2/types/insurance_card_id.rb +9 -0
- data/lib/candidhealth/insurance_payments/client.rb +28 -0
- data/lib/candidhealth/insurance_payments/v_1/client.rb +269 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment.rb +98 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_create.rb +91 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_id.rb +9 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payment_sort_field.rb +13 -0
- data/lib/candidhealth/insurance_payments/v_1/types/insurance_payments_page.rb +65 -0
- data/lib/candidhealth/insurance_refunds/client.rb +28 -0
- data/lib/candidhealth/insurance_refunds/v_1/client.rb +280 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund.rb +105 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_create.rb +98 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_id.rb +9 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refund_sort_field.rb +14 -0
- data/lib/candidhealth/insurance_refunds/v_1/types/insurance_refunds_page.rb +65 -0
- data/lib/candidhealth/invoices/types/invoice.rb +134 -0
- data/lib/candidhealth/invoices/types/invoice_item.rb +53 -0
- data/lib/candidhealth/invoices/types/invoice_status.rb +13 -0
- data/lib/candidhealth/organization_providers/client.rb +28 -0
- data/lib/candidhealth/organization_providers/v_2/types/address_type.rb +11 -0
- data/lib/candidhealth/organization_providers/v_2/types/employment_status.rb +12 -0
- data/lib/candidhealth/organization_providers/v_2/types/license_type.rb +78 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider.rb +159 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_address.rb +61 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_base.rb +132 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_id.rb +9 -0
- data/lib/candidhealth/organization_providers/v_2/types/organization_provider_sort_options.rb +14 -0
- data/lib/candidhealth/organization_providers/v_2/types/provider_type.rb +12 -0
- data/lib/candidhealth/organization_providers/v_3/client.rb +239 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_create_v_2.rb +147 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_page_v_2.rb +65 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_update_v_2.rb +143 -0
- data/lib/candidhealth/organization_providers/v_3/types/organization_provider_v_2.rb +154 -0
- data/lib/candidhealth/organization_service_facilities/client.rb +28 -0
- data/lib/candidhealth/organization_service_facilities/v_2/client.rb +256 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility.rb +134 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_create.rb +127 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_id.rb +9 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_page.rb +65 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/organization_service_facility_update.rb +127 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_mode.rb +12 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_operational_status.rb +16 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_physical_type.rb +24 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_status.rb +13 -0
- data/lib/candidhealth/organization_service_facilities/v_2/types/service_facility_type.rb +133 -0
- data/lib/candidhealth/patient_payments/client.rb +28 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment.rb +130 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_id.rb +9 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_source.rb +19 -0
- data/lib/candidhealth/patient_payments/v_3/types/patient_payment_status.rb +21 -0
- data/lib/candidhealth/patient_payments/v_4/client.rb +304 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment.rb +120 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment_id.rb +9 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payment_sort_field.rb +14 -0
- data/lib/candidhealth/patient_payments/v_4/types/patient_payments_page.rb +65 -0
- data/lib/candidhealth/patient_refunds/client.rb +28 -0
- data/lib/candidhealth/patient_refunds/v_1/client.rb +316 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund.rb +127 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_id.rb +9 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refund_sort_field.rb +15 -0
- data/lib/candidhealth/patient_refunds/v_1/types/patient_refunds_page.rb +65 -0
- data/lib/candidhealth/payers/client.rb +28 -0
- data/lib/candidhealth/payers/v_3/client.rb +104 -0
- data/lib/candidhealth/payers/v_3/types/payer.rb +60 -0
- data/lib/candidhealth/payers/v_3/types/payer_id.rb +9 -0
- data/lib/candidhealth/payers/v_3/types/payer_identifier.rb +94 -0
- data/lib/candidhealth/payers/v_3/types/payer_info.rb +56 -0
- data/lib/candidhealth/payers/v_3/types/payer_name.rb +9 -0
- data/lib/candidhealth/payers/v_3/types/payer_page.rb +65 -0
- data/lib/candidhealth/payers/v_3/types/payer_uuid.rb +9 -0
- data/lib/candidhealth/remits/v_1/types/payee.rb +60 -0
- data/lib/candidhealth/remits/v_1/types/payee_identifier.rb +102 -0
- data/lib/candidhealth/service_facility/client.rb +89 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility.rb +77 -0
- data/lib/candidhealth/service_facility/types/encounter_service_facility_base.rb +72 -0
- data/lib/candidhealth/service_facility/types/service_facility_id.rb +7 -0
- data/lib/candidhealth/service_lines/v_2/types/denial_reason_content.rb +40 -0
- data/lib/candidhealth/service_lines/v_2/types/drug_identification.rb +86 -0
- data/lib/candidhealth/service_lines/v_2/types/measurement_unit_code.rb +15 -0
- data/lib/candidhealth/service_lines/v_2/types/service_id_qualifier.rb +17 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line.rb +225 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_adjustment.rb +79 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_create.rb +120 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_denial_reason.rb +52 -0
- data/lib/candidhealth/service_lines/v_2/types/service_line_era_data.rb +62 -0
- data/lib/candidhealth/tags/types/tag.rb +65 -0
- data/lib/candidhealth/tags/types/tag_color_enum.rb +18 -0
- data/lib/candidhealth/tags/types/tag_create.rb +59 -0
- data/lib/candidhealth/tags/types/tag_id.rb +7 -0
- data/lib/candidhealth/tasks/client.rb +28 -0
- data/lib/candidhealth/tasks/commons/types/task_category.rb +50 -0
- data/lib/candidhealth/tasks/commons/types/task_status.rb +17 -0
- data/lib/candidhealth/tasks/commons/types/task_type.rb +22 -0
- data/lib/candidhealth/tasks/v_3/client.rb +259 -0
- data/lib/candidhealth/tasks/v_3/types/task.rb +170 -0
- data/lib/candidhealth/tasks/v_3/types/task_action.rb +66 -0
- data/lib/candidhealth/tasks/v_3/types/task_action_execution_method.rb +79 -0
- data/lib/candidhealth/tasks/v_3/types/task_action_type.rb +12 -0
- data/lib/candidhealth/tasks/v_3/types/task_actions.rb +53 -0
- data/lib/candidhealth/tasks/v_3/types/task_assignment.rb +56 -0
- data/lib/candidhealth/tasks/v_3/types/task_create_v_3.rb +95 -0
- data/lib/candidhealth/tasks/v_3/types/task_note.rb +79 -0
- data/lib/candidhealth/tasks/v_3/types/task_page.rb +65 -0
- data/lib/candidhealth/tasks/v_3/types/task_sort_options.rb +32 -0
- data/lib/candidhealth/tasks/v_3/types/task_update_v_3.rb +66 -0
- data/lib/candidhealth/tasks/v_3/types/task_updated_to_deprecated_status_error_type.rb +50 -0
- data/lib/candidhealth/write_offs/client.rb +28 -0
- data/lib/candidhealth/write_offs/v_1/client.rb +218 -0
- data/lib/candidhealth/write_offs/v_1/types/create_write_offs_response.rb +53 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off.rb +119 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_create.rb +100 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_reason.rb +25 -0
- data/lib/candidhealth/write_offs/v_1/types/insurance_write_off_target.rb +103 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off.rb +102 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_create.rb +83 -0
- data/lib/candidhealth/write_offs/v_1/types/patient_write_off_reason.rb +19 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off.rb +94 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_create.rb +94 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_id.rb +9 -0
- data/lib/candidhealth/write_offs/v_1/types/write_off_sort_field.rb +13 -0
- data/lib/candidhealth/write_offs/v_1/types/write_offs_page.rb +65 -0
- data/lib/candidhealth/x_12/v_1/types/carc.rb +412 -0
- data/lib/candidhealth/x_12/v_1/types/claim_adjustment_reason_code.rb +62 -0
- data/lib/candidhealth/x_12/v_1/types/rarc.rb +1070 -0
- data/lib/candidhealth/x_12/v_1/types/remittance_advice_remark_code.rb +50 -0
- data/lib/candidhealth.rb +129 -0
- data/lib/environment.rb +8 -0
- data/lib/gemconfig.rb +14 -0
- data/lib/requests.rb +113 -0
- data/lib/types_export.rb +303 -0
- metadata +468 -0
@@ -0,0 +1,121 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "guarantor_id"
|
4
|
+
require_relative "../../../commons/types/phone_number"
|
5
|
+
require_relative "../../../commons/types/email"
|
6
|
+
require "date"
|
7
|
+
require_relative "../../../commons/types/street_address_short_zip"
|
8
|
+
require "json"
|
9
|
+
|
10
|
+
module CandidApiClient
|
11
|
+
module Guarantor
|
12
|
+
module V1
|
13
|
+
class Guarantor
|
14
|
+
attr_reader :guarantor_id, :phone_numbers, :phone_consent, :email, :email_consent, :first_name, :last_name,
|
15
|
+
:external_id, :date_of_birth, :address, :additional_properties
|
16
|
+
|
17
|
+
# @param guarantor_id [Guarantor::V1::GUARANTOR_ID]
|
18
|
+
# @param phone_numbers [Array<Commons::PhoneNumber>]
|
19
|
+
# @param phone_consent [Boolean]
|
20
|
+
# @param email [Commons::EMAIL]
|
21
|
+
# @param email_consent [Boolean]
|
22
|
+
# @param first_name [String]
|
23
|
+
# @param last_name [String]
|
24
|
+
# @param external_id [String]
|
25
|
+
# @param date_of_birth [Date]
|
26
|
+
# @param address [Commons::StreetAddressShortZip]
|
27
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
28
|
+
# @return [Guarantor::V1::Guarantor]
|
29
|
+
def initialize(guarantor_id:, phone_numbers:, phone_consent:, email_consent:, first_name:, last_name:,
|
30
|
+
external_id:, email: nil, date_of_birth: nil, address: nil, additional_properties: nil)
|
31
|
+
# @type [Guarantor::V1::GUARANTOR_ID]
|
32
|
+
@guarantor_id = guarantor_id
|
33
|
+
# @type [Array<Commons::PhoneNumber>]
|
34
|
+
@phone_numbers = phone_numbers
|
35
|
+
# @type [Boolean]
|
36
|
+
@phone_consent = phone_consent
|
37
|
+
# @type [Commons::EMAIL]
|
38
|
+
@email = email
|
39
|
+
# @type [Boolean]
|
40
|
+
@email_consent = email_consent
|
41
|
+
# @type [String]
|
42
|
+
@first_name = first_name
|
43
|
+
# @type [String]
|
44
|
+
@last_name = last_name
|
45
|
+
# @type [String]
|
46
|
+
@external_id = external_id
|
47
|
+
# @type [Date]
|
48
|
+
@date_of_birth = date_of_birth
|
49
|
+
# @type [Commons::StreetAddressShortZip]
|
50
|
+
@address = address
|
51
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
52
|
+
@additional_properties = additional_properties
|
53
|
+
end
|
54
|
+
|
55
|
+
# Deserialize a JSON object to an instance of Guarantor
|
56
|
+
#
|
57
|
+
# @param json_object [JSON]
|
58
|
+
# @return [Guarantor::V1::Guarantor]
|
59
|
+
def self.from_json(json_object:)
|
60
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
61
|
+
parsed_json = JSON.parse(json_object)
|
62
|
+
guarantor_id = struct.guarantor_id
|
63
|
+
phone_numbers = parsed_json["phone_numbers"]&.map do |v|
|
64
|
+
v = v.to_json
|
65
|
+
Commons::PhoneNumber.from_json(json_object: v)
|
66
|
+
end
|
67
|
+
phone_consent = struct.phone_consent
|
68
|
+
email = struct.email
|
69
|
+
email_consent = struct.email_consent
|
70
|
+
first_name = struct.first_name
|
71
|
+
last_name = struct.last_name
|
72
|
+
external_id = struct.external_id
|
73
|
+
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
74
|
+
if parsed_json["address"].nil?
|
75
|
+
address = nil
|
76
|
+
else
|
77
|
+
address = parsed_json["address"].to_json
|
78
|
+
address = Commons::StreetAddressShortZip.from_json(json_object: address)
|
79
|
+
end
|
80
|
+
new(guarantor_id: guarantor_id, phone_numbers: phone_numbers, phone_consent: phone_consent, email: email,
|
81
|
+
email_consent: email_consent, first_name: first_name, last_name: last_name, external_id: external_id, date_of_birth: date_of_birth, address: address, additional_properties: struct)
|
82
|
+
end
|
83
|
+
|
84
|
+
# Serialize an instance of Guarantor to a JSON object
|
85
|
+
#
|
86
|
+
# @return [JSON]
|
87
|
+
def to_json(*_args)
|
88
|
+
{
|
89
|
+
"guarantor_id": @guarantor_id,
|
90
|
+
"phone_numbers": @phone_numbers,
|
91
|
+
"phone_consent": @phone_consent,
|
92
|
+
"email": @email,
|
93
|
+
"email_consent": @email_consent,
|
94
|
+
"first_name": @first_name,
|
95
|
+
"last_name": @last_name,
|
96
|
+
"external_id": @external_id,
|
97
|
+
"date_of_birth": @date_of_birth,
|
98
|
+
"address": @address
|
99
|
+
}.to_json
|
100
|
+
end
|
101
|
+
|
102
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
103
|
+
#
|
104
|
+
# @param obj [Object]
|
105
|
+
# @return [Void]
|
106
|
+
def self.validate_raw(obj:)
|
107
|
+
obj.guarantor_id.is_a?(String) != false || raise("Passed value for field obj.guarantor_id is not the expected type, validation failed.")
|
108
|
+
obj.phone_numbers.is_a?(Array) != false || raise("Passed value for field obj.phone_numbers is not the expected type, validation failed.")
|
109
|
+
obj.phone_consent.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
110
|
+
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
111
|
+
obj.email_consent.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
112
|
+
obj.first_name.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
113
|
+
obj.last_name.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
114
|
+
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
115
|
+
obj.date_of_birth&.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
116
|
+
obj.address.nil? || Commons::StreetAddressShortZip.validate_raw(obj: obj.address)
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "date"
|
4
|
+
require_relative "../../../commons/types/street_address_short_zip"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module Guarantor
|
9
|
+
module V1
|
10
|
+
class GuarantorBase
|
11
|
+
attr_reader :first_name, :last_name, :external_id, :date_of_birth, :address, :additional_properties
|
12
|
+
|
13
|
+
# @param first_name [String]
|
14
|
+
# @param last_name [String]
|
15
|
+
# @param external_id [String]
|
16
|
+
# @param date_of_birth [Date]
|
17
|
+
# @param address [Commons::StreetAddressShortZip]
|
18
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
+
# @return [Guarantor::V1::GuarantorBase]
|
20
|
+
def initialize(first_name:, last_name:, external_id:, date_of_birth: nil, address: nil,
|
21
|
+
additional_properties: nil)
|
22
|
+
# @type [String]
|
23
|
+
@first_name = first_name
|
24
|
+
# @type [String]
|
25
|
+
@last_name = last_name
|
26
|
+
# @type [String]
|
27
|
+
@external_id = external_id
|
28
|
+
# @type [Date]
|
29
|
+
@date_of_birth = date_of_birth
|
30
|
+
# @type [Commons::StreetAddressShortZip]
|
31
|
+
@address = address
|
32
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
33
|
+
@additional_properties = additional_properties
|
34
|
+
end
|
35
|
+
|
36
|
+
# Deserialize a JSON object to an instance of GuarantorBase
|
37
|
+
#
|
38
|
+
# @param json_object [JSON]
|
39
|
+
# @return [Guarantor::V1::GuarantorBase]
|
40
|
+
def self.from_json(json_object:)
|
41
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
42
|
+
parsed_json = JSON.parse(json_object)
|
43
|
+
first_name = struct.first_name
|
44
|
+
last_name = struct.last_name
|
45
|
+
external_id = struct.external_id
|
46
|
+
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
47
|
+
if parsed_json["address"].nil?
|
48
|
+
address = nil
|
49
|
+
else
|
50
|
+
address = parsed_json["address"].to_json
|
51
|
+
address = Commons::StreetAddressShortZip.from_json(json_object: address)
|
52
|
+
end
|
53
|
+
new(first_name: first_name, last_name: last_name, external_id: external_id, date_of_birth: date_of_birth,
|
54
|
+
address: address, additional_properties: struct)
|
55
|
+
end
|
56
|
+
|
57
|
+
# Serialize an instance of GuarantorBase to a JSON object
|
58
|
+
#
|
59
|
+
# @return [JSON]
|
60
|
+
def to_json(*_args)
|
61
|
+
{
|
62
|
+
"first_name": @first_name,
|
63
|
+
"last_name": @last_name,
|
64
|
+
"external_id": @external_id,
|
65
|
+
"date_of_birth": @date_of_birth,
|
66
|
+
"address": @address
|
67
|
+
}.to_json
|
68
|
+
end
|
69
|
+
|
70
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
71
|
+
#
|
72
|
+
# @param obj [Object]
|
73
|
+
# @return [Void]
|
74
|
+
def self.validate_raw(obj:)
|
75
|
+
obj.first_name.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
76
|
+
obj.last_name.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
77
|
+
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
78
|
+
obj.date_of_birth&.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
79
|
+
obj.address.nil? || Commons::StreetAddressShortZip.validate_raw(obj: obj.address)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../../commons/types/phone_number"
|
4
|
+
require_relative "../../../commons/types/email"
|
5
|
+
require "date"
|
6
|
+
require_relative "../../../commons/types/street_address_short_zip"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
module CandidApiClient
|
10
|
+
module Guarantor
|
11
|
+
module V1
|
12
|
+
class GuarantorCreate
|
13
|
+
attr_reader :phone_numbers, :phone_consent, :email, :email_consent, :first_name, :last_name, :external_id,
|
14
|
+
:date_of_birth, :address, :additional_properties
|
15
|
+
|
16
|
+
# @param phone_numbers [Array<Commons::PhoneNumber>]
|
17
|
+
# @param phone_consent [Boolean] Defaults to false
|
18
|
+
# @param email [Commons::EMAIL]
|
19
|
+
# @param email_consent [Boolean] Defaults to false
|
20
|
+
# @param first_name [String]
|
21
|
+
# @param last_name [String]
|
22
|
+
# @param external_id [String]
|
23
|
+
# @param date_of_birth [Date]
|
24
|
+
# @param address [Commons::StreetAddressShortZip]
|
25
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
+
# @return [Guarantor::V1::GuarantorCreate]
|
27
|
+
def initialize(first_name:, last_name:, external_id:, phone_numbers: nil, phone_consent: nil, email: nil,
|
28
|
+
email_consent: nil, date_of_birth: nil, address: nil, additional_properties: nil)
|
29
|
+
# @type [Array<Commons::PhoneNumber>]
|
30
|
+
@phone_numbers = phone_numbers
|
31
|
+
# @type [Boolean] Defaults to false
|
32
|
+
@phone_consent = phone_consent
|
33
|
+
# @type [Commons::EMAIL]
|
34
|
+
@email = email
|
35
|
+
# @type [Boolean] Defaults to false
|
36
|
+
@email_consent = email_consent
|
37
|
+
# @type [String]
|
38
|
+
@first_name = first_name
|
39
|
+
# @type [String]
|
40
|
+
@last_name = last_name
|
41
|
+
# @type [String]
|
42
|
+
@external_id = external_id
|
43
|
+
# @type [Date]
|
44
|
+
@date_of_birth = date_of_birth
|
45
|
+
# @type [Commons::StreetAddressShortZip]
|
46
|
+
@address = address
|
47
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
48
|
+
@additional_properties = additional_properties
|
49
|
+
end
|
50
|
+
|
51
|
+
# Deserialize a JSON object to an instance of GuarantorCreate
|
52
|
+
#
|
53
|
+
# @param json_object [JSON]
|
54
|
+
# @return [Guarantor::V1::GuarantorCreate]
|
55
|
+
def self.from_json(json_object:)
|
56
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
57
|
+
parsed_json = JSON.parse(json_object)
|
58
|
+
phone_numbers = parsed_json["phone_numbers"]&.map do |v|
|
59
|
+
v = v.to_json
|
60
|
+
Commons::PhoneNumber.from_json(json_object: v)
|
61
|
+
end
|
62
|
+
phone_consent = struct.phone_consent
|
63
|
+
email = struct.email
|
64
|
+
email_consent = struct.email_consent
|
65
|
+
first_name = struct.first_name
|
66
|
+
last_name = struct.last_name
|
67
|
+
external_id = struct.external_id
|
68
|
+
date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
|
69
|
+
if parsed_json["address"].nil?
|
70
|
+
address = nil
|
71
|
+
else
|
72
|
+
address = parsed_json["address"].to_json
|
73
|
+
address = Commons::StreetAddressShortZip.from_json(json_object: address)
|
74
|
+
end
|
75
|
+
new(phone_numbers: phone_numbers, phone_consent: phone_consent, email: email, email_consent: email_consent,
|
76
|
+
first_name: first_name, last_name: last_name, external_id: external_id, date_of_birth: date_of_birth, address: address, additional_properties: struct)
|
77
|
+
end
|
78
|
+
|
79
|
+
# Serialize an instance of GuarantorCreate to a JSON object
|
80
|
+
#
|
81
|
+
# @return [JSON]
|
82
|
+
def to_json(*_args)
|
83
|
+
{
|
84
|
+
"phone_numbers": @phone_numbers,
|
85
|
+
"phone_consent": @phone_consent,
|
86
|
+
"email": @email,
|
87
|
+
"email_consent": @email_consent,
|
88
|
+
"first_name": @first_name,
|
89
|
+
"last_name": @last_name,
|
90
|
+
"external_id": @external_id,
|
91
|
+
"date_of_birth": @date_of_birth,
|
92
|
+
"address": @address
|
93
|
+
}.to_json
|
94
|
+
end
|
95
|
+
|
96
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
97
|
+
#
|
98
|
+
# @param obj [Object]
|
99
|
+
# @return [Void]
|
100
|
+
def self.validate_raw(obj:)
|
101
|
+
obj.phone_numbers&.is_a?(Array) != false || raise("Passed value for field obj.phone_numbers is not the expected type, validation failed.")
|
102
|
+
obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
|
103
|
+
obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
|
104
|
+
obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
|
105
|
+
obj.first_name.is_a?(String) != false || raise("Passed value for field obj.first_name is not the expected type, validation failed.")
|
106
|
+
obj.last_name.is_a?(String) != false || raise("Passed value for field obj.last_name is not the expected type, validation failed.")
|
107
|
+
obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
|
108
|
+
obj.date_of_birth&.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
|
109
|
+
obj.address.nil? || Commons::StreetAddressShortZip.validate_raw(obj: obj.address)
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "identifier_id"
|
4
|
+
require_relative "../../commons/types/date_range_optional_end"
|
5
|
+
require_relative "identifier_code"
|
6
|
+
require_relative "identifier_value"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
module CandidApiClient
|
10
|
+
class Identifiers
|
11
|
+
class Identifier
|
12
|
+
attr_reader :identifier_id, :period, :identifier_code, :identifier_value, :additional_properties
|
13
|
+
|
14
|
+
# @param identifier_id [Identifiers::IDENTIFIER_ID]
|
15
|
+
# @param period [Commons::DateRangeOptionalEnd]
|
16
|
+
# @param identifier_code [Identifiers::IdentifierCode]
|
17
|
+
# @param identifier_value [Identifiers::IdentifierValue]
|
18
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
+
# @return [Identifiers::Identifier]
|
20
|
+
def initialize(identifier_id:, identifier_code:, identifier_value:, period: nil, additional_properties: nil)
|
21
|
+
# @type [Identifiers::IDENTIFIER_ID]
|
22
|
+
@identifier_id = identifier_id
|
23
|
+
# @type [Commons::DateRangeOptionalEnd]
|
24
|
+
@period = period
|
25
|
+
# @type [Identifiers::IdentifierCode]
|
26
|
+
@identifier_code = identifier_code
|
27
|
+
# @type [Identifiers::IdentifierValue]
|
28
|
+
@identifier_value = identifier_value
|
29
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
30
|
+
@additional_properties = additional_properties
|
31
|
+
end
|
32
|
+
|
33
|
+
# Deserialize a JSON object to an instance of Identifier
|
34
|
+
#
|
35
|
+
# @param json_object [JSON]
|
36
|
+
# @return [Identifiers::Identifier]
|
37
|
+
def self.from_json(json_object:)
|
38
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
39
|
+
parsed_json = JSON.parse(json_object)
|
40
|
+
identifier_id = struct.identifier_id
|
41
|
+
if parsed_json["period"].nil?
|
42
|
+
period = nil
|
43
|
+
else
|
44
|
+
period = parsed_json["period"].to_json
|
45
|
+
period = Commons::DateRangeOptionalEnd.from_json(json_object: period)
|
46
|
+
end
|
47
|
+
identifier_code = struct.identifier_code
|
48
|
+
if parsed_json["identifier_value"].nil?
|
49
|
+
identifier_value = nil
|
50
|
+
else
|
51
|
+
identifier_value = parsed_json["identifier_value"].to_json
|
52
|
+
identifier_value = Identifiers::IdentifierValue.from_json(json_object: identifier_value)
|
53
|
+
end
|
54
|
+
new(identifier_id: identifier_id, period: period, identifier_code: identifier_code,
|
55
|
+
identifier_value: identifier_value, additional_properties: struct)
|
56
|
+
end
|
57
|
+
|
58
|
+
# Serialize an instance of Identifier to a JSON object
|
59
|
+
#
|
60
|
+
# @return [JSON]
|
61
|
+
def to_json(*_args)
|
62
|
+
{
|
63
|
+
"identifier_id": @identifier_id,
|
64
|
+
"period": @period,
|
65
|
+
"identifier_code": @identifier_code,
|
66
|
+
"identifier_value": @identifier_value
|
67
|
+
}.to_json
|
68
|
+
end
|
69
|
+
|
70
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
71
|
+
#
|
72
|
+
# @param obj [Object]
|
73
|
+
# @return [Void]
|
74
|
+
def self.validate_raw(obj:)
|
75
|
+
obj.identifier_id.is_a?(String) != false || raise("Passed value for field obj.identifier_id is not the expected type, validation failed.")
|
76
|
+
obj.period.nil? || Commons::DateRangeOptionalEnd.validate_raw(obj: obj.period)
|
77
|
+
obj.identifier_code.is_a?(Identifiers::IdentifierCode) != false || raise("Passed value for field obj.identifier_code is not the expected type, validation failed.")
|
78
|
+
Identifiers::IdentifierValue.validate_raw(obj: obj.identifier_value)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../commons/types/date_range_optional_end"
|
4
|
+
require_relative "identifier_code"
|
5
|
+
require_relative "identifier_value"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
class Identifiers
|
10
|
+
class IdentifierBase
|
11
|
+
attr_reader :period, :identifier_code, :identifier_value, :additional_properties
|
12
|
+
|
13
|
+
# @param period [Commons::DateRangeOptionalEnd]
|
14
|
+
# @param identifier_code [Identifiers::IdentifierCode]
|
15
|
+
# @param identifier_value [Identifiers::IdentifierValue]
|
16
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
17
|
+
# @return [Identifiers::IdentifierBase]
|
18
|
+
def initialize(identifier_code:, identifier_value:, period: nil, additional_properties: nil)
|
19
|
+
# @type [Commons::DateRangeOptionalEnd]
|
20
|
+
@period = period
|
21
|
+
# @type [Identifiers::IdentifierCode]
|
22
|
+
@identifier_code = identifier_code
|
23
|
+
# @type [Identifiers::IdentifierValue]
|
24
|
+
@identifier_value = identifier_value
|
25
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
+
@additional_properties = additional_properties
|
27
|
+
end
|
28
|
+
|
29
|
+
# Deserialize a JSON object to an instance of IdentifierBase
|
30
|
+
#
|
31
|
+
# @param json_object [JSON]
|
32
|
+
# @return [Identifiers::IdentifierBase]
|
33
|
+
def self.from_json(json_object:)
|
34
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
35
|
+
parsed_json = JSON.parse(json_object)
|
36
|
+
if parsed_json["period"].nil?
|
37
|
+
period = nil
|
38
|
+
else
|
39
|
+
period = parsed_json["period"].to_json
|
40
|
+
period = Commons::DateRangeOptionalEnd.from_json(json_object: period)
|
41
|
+
end
|
42
|
+
identifier_code = struct.identifier_code
|
43
|
+
if parsed_json["identifier_value"].nil?
|
44
|
+
identifier_value = nil
|
45
|
+
else
|
46
|
+
identifier_value = parsed_json["identifier_value"].to_json
|
47
|
+
identifier_value = Identifiers::IdentifierValue.from_json(json_object: identifier_value)
|
48
|
+
end
|
49
|
+
new(period: period, identifier_code: identifier_code, identifier_value: identifier_value,
|
50
|
+
additional_properties: struct)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Serialize an instance of IdentifierBase to a JSON object
|
54
|
+
#
|
55
|
+
# @return [JSON]
|
56
|
+
def to_json(*_args)
|
57
|
+
{ "period": @period, "identifier_code": @identifier_code, "identifier_value": @identifier_value }.to_json
|
58
|
+
end
|
59
|
+
|
60
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
61
|
+
#
|
62
|
+
# @param obj [Object]
|
63
|
+
# @return [Void]
|
64
|
+
def self.validate_raw(obj:)
|
65
|
+
obj.period.nil? || Commons::DateRangeOptionalEnd.validate_raw(obj: obj.period)
|
66
|
+
obj.identifier_code.is_a?(Identifiers::IdentifierCode) != false || raise("Passed value for field obj.identifier_code is not the expected type, validation failed.")
|
67
|
+
Identifiers::IdentifierValue.validate_raw(obj: obj.identifier_value)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "../../commons/types/date_range_optional_end"
|
4
|
+
require_relative "identifier_code"
|
5
|
+
require_relative "identifier_value"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module CandidApiClient
|
9
|
+
class Identifiers
|
10
|
+
class IdentifierCreate
|
11
|
+
attr_reader :period, :identifier_code, :identifier_value, :additional_properties
|
12
|
+
|
13
|
+
# @param period [Commons::DateRangeOptionalEnd]
|
14
|
+
# @param identifier_code [Identifiers::IdentifierCode]
|
15
|
+
# @param identifier_value [Identifiers::IdentifierValue]
|
16
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
17
|
+
# @return [Identifiers::IdentifierCreate]
|
18
|
+
def initialize(identifier_code:, identifier_value:, period: nil, additional_properties: nil)
|
19
|
+
# @type [Commons::DateRangeOptionalEnd]
|
20
|
+
@period = period
|
21
|
+
# @type [Identifiers::IdentifierCode]
|
22
|
+
@identifier_code = identifier_code
|
23
|
+
# @type [Identifiers::IdentifierValue]
|
24
|
+
@identifier_value = identifier_value
|
25
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
+
@additional_properties = additional_properties
|
27
|
+
end
|
28
|
+
|
29
|
+
# Deserialize a JSON object to an instance of IdentifierCreate
|
30
|
+
#
|
31
|
+
# @param json_object [JSON]
|
32
|
+
# @return [Identifiers::IdentifierCreate]
|
33
|
+
def self.from_json(json_object:)
|
34
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
35
|
+
parsed_json = JSON.parse(json_object)
|
36
|
+
if parsed_json["period"].nil?
|
37
|
+
period = nil
|
38
|
+
else
|
39
|
+
period = parsed_json["period"].to_json
|
40
|
+
period = Commons::DateRangeOptionalEnd.from_json(json_object: period)
|
41
|
+
end
|
42
|
+
identifier_code = struct.identifier_code
|
43
|
+
if parsed_json["identifier_value"].nil?
|
44
|
+
identifier_value = nil
|
45
|
+
else
|
46
|
+
identifier_value = parsed_json["identifier_value"].to_json
|
47
|
+
identifier_value = Identifiers::IdentifierValue.from_json(json_object: identifier_value)
|
48
|
+
end
|
49
|
+
new(period: period, identifier_code: identifier_code, identifier_value: identifier_value,
|
50
|
+
additional_properties: struct)
|
51
|
+
end
|
52
|
+
|
53
|
+
# Serialize an instance of IdentifierCreate to a JSON object
|
54
|
+
#
|
55
|
+
# @return [JSON]
|
56
|
+
def to_json(*_args)
|
57
|
+
{ "period": @period, "identifier_code": @identifier_code, "identifier_value": @identifier_value }.to_json
|
58
|
+
end
|
59
|
+
|
60
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
61
|
+
#
|
62
|
+
# @param obj [Object]
|
63
|
+
# @return [Void]
|
64
|
+
def self.validate_raw(obj:)
|
65
|
+
obj.period.nil? || Commons::DateRangeOptionalEnd.validate_raw(obj: obj.period)
|
66
|
+
obj.identifier_code.is_a?(Identifiers::IdentifierCode) != false || raise("Passed value for field obj.identifier_code is not the expected type, validation failed.")
|
67
|
+
Identifiers::IdentifierValue.validate_raw(obj: obj.identifier_value)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "identifier_id"
|
4
|
+
require_relative "identifier_code"
|
5
|
+
require_relative "identifier_value"
|
6
|
+
require_relative "../../commons/types/removable_date_range_optional_end"
|
7
|
+
require "json"
|
8
|
+
|
9
|
+
module CandidApiClient
|
10
|
+
class Identifiers
|
11
|
+
class IdentifierUpdate
|
12
|
+
attr_reader :identifier_id, :identifier_code, :identifier_value, :period, :additional_properties
|
13
|
+
|
14
|
+
# @param identifier_id [Identifiers::IDENTIFIER_ID]
|
15
|
+
# @param identifier_code [Identifiers::IdentifierCode]
|
16
|
+
# @param identifier_value [Identifiers::IdentifierValue]
|
17
|
+
# @param period [Commons::RemovableDateRangeOptionalEnd]
|
18
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
+
# @return [Identifiers::IdentifierUpdate]
|
20
|
+
def initialize(identifier_id:, identifier_code: nil, identifier_value: nil, period: nil,
|
21
|
+
additional_properties: nil)
|
22
|
+
# @type [Identifiers::IDENTIFIER_ID]
|
23
|
+
@identifier_id = identifier_id
|
24
|
+
# @type [Identifiers::IdentifierCode]
|
25
|
+
@identifier_code = identifier_code
|
26
|
+
# @type [Identifiers::IdentifierValue]
|
27
|
+
@identifier_value = identifier_value
|
28
|
+
# @type [Commons::RemovableDateRangeOptionalEnd]
|
29
|
+
@period = period
|
30
|
+
# @type [OpenStruct] Additional properties unmapped to the current class definition
|
31
|
+
@additional_properties = additional_properties
|
32
|
+
end
|
33
|
+
|
34
|
+
# Deserialize a JSON object to an instance of IdentifierUpdate
|
35
|
+
#
|
36
|
+
# @param json_object [JSON]
|
37
|
+
# @return [Identifiers::IdentifierUpdate]
|
38
|
+
def self.from_json(json_object:)
|
39
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
40
|
+
parsed_json = JSON.parse(json_object)
|
41
|
+
identifier_id = struct.identifier_id
|
42
|
+
identifier_code = struct.identifier_code
|
43
|
+
if parsed_json["identifier_value"].nil?
|
44
|
+
identifier_value = nil
|
45
|
+
else
|
46
|
+
identifier_value = parsed_json["identifier_value"].to_json
|
47
|
+
identifier_value = Identifiers::IdentifierValue.from_json(json_object: identifier_value)
|
48
|
+
end
|
49
|
+
if parsed_json["period"].nil?
|
50
|
+
period = nil
|
51
|
+
else
|
52
|
+
period = parsed_json["period"].to_json
|
53
|
+
period = Commons::RemovableDateRangeOptionalEnd.from_json(json_object: period)
|
54
|
+
end
|
55
|
+
new(identifier_id: identifier_id, identifier_code: identifier_code, identifier_value: identifier_value,
|
56
|
+
period: period, additional_properties: struct)
|
57
|
+
end
|
58
|
+
|
59
|
+
# Serialize an instance of IdentifierUpdate to a JSON object
|
60
|
+
#
|
61
|
+
# @return [JSON]
|
62
|
+
def to_json(*_args)
|
63
|
+
{
|
64
|
+
"identifier_id": @identifier_id,
|
65
|
+
"identifier_code": @identifier_code,
|
66
|
+
"identifier_value": @identifier_value,
|
67
|
+
"period": @period
|
68
|
+
}.to_json
|
69
|
+
end
|
70
|
+
|
71
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given hash and check each fields type against the current object's property definitions.
|
72
|
+
#
|
73
|
+
# @param obj [Object]
|
74
|
+
# @return [Void]
|
75
|
+
def self.validate_raw(obj:)
|
76
|
+
obj.identifier_id.is_a?(String) != false || raise("Passed value for field obj.identifier_id is not the expected type, validation failed.")
|
77
|
+
obj.identifier_code&.is_a?(Identifiers::IdentifierCode) != false || raise("Passed value for field obj.identifier_code is not the expected type, validation failed.")
|
78
|
+
obj.identifier_value.nil? || Identifiers::IdentifierValue.validate_raw(obj: obj.identifier_value)
|
79
|
+
obj.period.nil? || Commons::RemovableDateRangeOptionalEnd.validate_raw(obj: obj.period)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|