candidhealth 0.42.4 → 0.43.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.
- checksums.yaml +4 -4
- data/lib/candidhealth/billing_notes/v_2/types/billing_note_optional.rb +112 -0
- data/lib/candidhealth/charge_capture/v_1/client.rb +22 -28
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +8 -8
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +4 -4
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +21 -19
- data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +85 -129
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle.rb → charge_capture_claim_creation.rb} +18 -30
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_page.rb → charge_capture_claim_creation_page.rb} +9 -9
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_sort_field.rb → charge_capture_claim_creation_sort_field.rb} +1 -1
- data/lib/candidhealth/charge_capture_bundles/v_1/types/{charge_capture_bundle_status.rb → charge_capture_claim_creation_status.rb} +1 -1
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb +100 -0
- data/lib/candidhealth/encounter_attachments/client.rb +30 -0
- data/lib/candidhealth/encounter_attachments/v_1/client.rb +199 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/base_attachment.rb +98 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment.rb +115 -0
- data/lib/candidhealth/encounter_attachments/v_1/types/encounter_attachment_type.rb +13 -0
- data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
- data/lib/candidhealth/encounters/v_4/client.rb +20 -20
- data/lib/candidhealth/guarantor/v_1/client.rb +2 -2
- data/lib/candidhealth/service_lines/v_2/client.rb +2 -2
- data/lib/candidhealth.rb +7 -0
- data/lib/core/file_utilities.rb +26 -0
- data/lib/requests.rb +5 -2
- data/lib/types_export.rb +9 -6
- metadata +48 -8
- data/lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_bundle_summary.rb +0 -94
- data/lib/candidhealth/commons/types/not_implemented_error_message.rb +0 -60
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f378950d09fa0584a30bcc4c970b4bbda3a35264fbe282cdfed41e2ae1e125f1
|
4
|
+
data.tar.gz: 27d34860a732d2119f1f887a955b356ab05abe8747b13a25841b7b40a323df0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 580c4ca71bc108e028aa9c684d117a2d81581715c4237589771f6877b432db237304c60e3dd1a12af95ace3fd4f72beff9c57b4da5a7ab915c69e36da14fd99e
|
7
|
+
data.tar.gz: d89942c45d9ba43e7672812e3ce04e8e38a0177e3df324547ced5985e809dee9024a63fb0ae13b24185aa22e84fe8bef9783163e91bc8968a362d87108aa1c19
|
@@ -0,0 +1,112 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "date"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module CandidApiClient
|
8
|
+
module BillingNotes
|
9
|
+
module V2
|
10
|
+
module Types
|
11
|
+
class BillingNoteOptional
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :billing_note_id
|
14
|
+
# @return [String]
|
15
|
+
attr_reader :encounter_id
|
16
|
+
# @return [DateTime] An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).
|
17
|
+
# For example, 2017-07-21T17:32:28Z.
|
18
|
+
attr_reader :created_at
|
19
|
+
# @return [String]
|
20
|
+
attr_reader :author_auth_0_id
|
21
|
+
# @return [String]
|
22
|
+
attr_reader :author_name
|
23
|
+
# @return [String] Empty string not allowed.
|
24
|
+
attr_reader :text
|
25
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
+
attr_reader :additional_properties
|
27
|
+
# @return [Object]
|
28
|
+
attr_reader :_field_set
|
29
|
+
protected :_field_set
|
30
|
+
|
31
|
+
OMIT = Object.new
|
32
|
+
|
33
|
+
# @param billing_note_id [String]
|
34
|
+
# @param encounter_id [String]
|
35
|
+
# @param created_at [DateTime] An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/).
|
36
|
+
# For example, 2017-07-21T17:32:28Z.
|
37
|
+
# @param author_auth_0_id [String]
|
38
|
+
# @param author_name [String]
|
39
|
+
# @param text [String] Empty string not allowed.
|
40
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
41
|
+
# @return [CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional]
|
42
|
+
def initialize(billing_note_id:, created_at:, text:, encounter_id: OMIT, author_auth_0_id: OMIT,
|
43
|
+
author_name: OMIT, additional_properties: nil)
|
44
|
+
@billing_note_id = billing_note_id
|
45
|
+
@encounter_id = encounter_id if encounter_id != OMIT
|
46
|
+
@created_at = created_at
|
47
|
+
@author_auth_0_id = author_auth_0_id if author_auth_0_id != OMIT
|
48
|
+
@author_name = author_name if author_name != OMIT
|
49
|
+
@text = text
|
50
|
+
@additional_properties = additional_properties
|
51
|
+
@_field_set = {
|
52
|
+
"billing_note_id": billing_note_id,
|
53
|
+
"encounter_id": encounter_id,
|
54
|
+
"created_at": created_at,
|
55
|
+
"author_auth0_id": author_auth_0_id,
|
56
|
+
"author_name": author_name,
|
57
|
+
"text": text
|
58
|
+
}.reject do |_k, v|
|
59
|
+
v == OMIT
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
# Deserialize a JSON object to an instance of BillingNoteOptional
|
64
|
+
#
|
65
|
+
# @param json_object [String]
|
66
|
+
# @return [CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional]
|
67
|
+
def self.from_json(json_object:)
|
68
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
69
|
+
parsed_json = JSON.parse(json_object)
|
70
|
+
billing_note_id = struct["billing_note_id"]
|
71
|
+
encounter_id = struct["encounter_id"]
|
72
|
+
created_at = (DateTime.parse(parsed_json["created_at"]) unless parsed_json["created_at"].nil?)
|
73
|
+
author_auth_0_id = struct["author_auth0_id"]
|
74
|
+
author_name = struct["author_name"]
|
75
|
+
text = struct["text"]
|
76
|
+
new(
|
77
|
+
billing_note_id: billing_note_id,
|
78
|
+
encounter_id: encounter_id,
|
79
|
+
created_at: created_at,
|
80
|
+
author_auth_0_id: author_auth_0_id,
|
81
|
+
author_name: author_name,
|
82
|
+
text: text,
|
83
|
+
additional_properties: struct
|
84
|
+
)
|
85
|
+
end
|
86
|
+
|
87
|
+
# Serialize an instance of BillingNoteOptional to a JSON object
|
88
|
+
#
|
89
|
+
# @return [String]
|
90
|
+
def to_json(*_args)
|
91
|
+
@_field_set&.to_json
|
92
|
+
end
|
93
|
+
|
94
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
95
|
+
# hash and check each fields type against the current object's property
|
96
|
+
# definitions.
|
97
|
+
#
|
98
|
+
# @param obj [Object]
|
99
|
+
# @return [Void]
|
100
|
+
def self.validate_raw(obj:)
|
101
|
+
obj.billing_note_id.is_a?(String) != false || raise("Passed value for field obj.billing_note_id is not the expected type, validation failed.")
|
102
|
+
obj.encounter_id&.is_a?(String) != false || raise("Passed value for field obj.encounter_id is not the expected type, validation failed.")
|
103
|
+
obj.created_at.is_a?(DateTime) != false || raise("Passed value for field obj.created_at is not the expected type, validation failed.")
|
104
|
+
obj.author_auth_0_id&.is_a?(String) != false || raise("Passed value for field obj.author_auth_0_id is not the expected type, validation failed.")
|
105
|
+
obj.author_name&.is_a?(String) != false || raise("Passed value for field obj.author_name is not the expected type, validation failed.")
|
106
|
+
obj.text.is_a?(String) != false || raise("Passed value for field obj.text is not the expected type, validation failed.")
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
112
|
+
end
|
@@ -35,7 +35,7 @@ module CandidApiClient
|
|
35
35
|
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
36
36
|
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
37
37
|
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
38
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::
|
38
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
|
39
39
|
# * :benefits_assigned_to_provider (Boolean)
|
40
40
|
# * :prior_authorization_number (String)
|
41
41
|
# * :external_id (String)
|
@@ -288,7 +288,7 @@ module CandidApiClient
|
|
288
288
|
# @example
|
289
289
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
290
290
|
# api.charge_capture.v_1.create(
|
291
|
-
# data: { },
|
291
|
+
# data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
|
292
292
|
# charge_external_id: "string",
|
293
293
|
# ehr_source_url: "string",
|
294
294
|
# patient_external_id: "string",
|
@@ -347,7 +347,7 @@ module CandidApiClient
|
|
347
347
|
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
348
348
|
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
349
349
|
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
350
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::
|
350
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
|
351
351
|
# * :benefits_assigned_to_provider (Boolean)
|
352
352
|
# * :prior_authorization_number (String)
|
353
353
|
# * :external_id (String)
|
@@ -602,7 +602,7 @@ module CandidApiClient
|
|
602
602
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
603
603
|
# api.charge_capture.v_1.update(
|
604
604
|
# charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
605
|
-
# data: { },
|
605
|
+
# data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
|
606
606
|
# charge_external_id: "string",
|
607
607
|
# ehr_source_url: "string",
|
608
608
|
# patient_external_id: "string",
|
@@ -668,8 +668,7 @@ module CandidApiClient
|
|
668
668
|
# This date must be the local date in the timezone where the service occurred.
|
669
669
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
670
670
|
# a resulting claim with one of the IDs in this list.
|
671
|
-
# @param
|
672
|
-
# @param bundle_ids [String] A list of bundle IDs to filter by.
|
671
|
+
# @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
|
673
672
|
# @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
|
674
673
|
# captures with one of the NPIs in this list.
|
675
674
|
# @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
|
@@ -696,7 +695,7 @@ module CandidApiClient
|
|
696
695
|
# This date must be the local date in the timezone where the service occurred.
|
697
696
|
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
698
697
|
# have a resulting claim with one of the IDs in this list.
|
699
|
-
# @param
|
698
|
+
# @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
|
700
699
|
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
701
700
|
# captures with one of the NPIs in this list.
|
702
701
|
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
@@ -726,8 +725,7 @@ module CandidApiClient
|
|
726
725
|
# date_of_service_min: DateTime.parse(2023-01-15),
|
727
726
|
# date_of_service_max: DateTime.parse(2023-01-15),
|
728
727
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
729
|
-
#
|
730
|
-
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
728
|
+
# claim_creation_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
731
729
|
# billing_provider_npis: "string",
|
732
730
|
# service_facility_name: "string",
|
733
731
|
# primary_payer_ids: "string",
|
@@ -742,7 +740,7 @@ module CandidApiClient
|
|
742
740
|
# date_of_service_min_ranked_sort: DateTime.parse(2023-01-15),
|
743
741
|
# date_of_service_max_ranked_sort: DateTime.parse(2023-01-15),
|
744
742
|
# claim_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
745
|
-
#
|
743
|
+
# claim_creation_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
746
744
|
# billing_provider_npis_ranked_sort: "string",
|
747
745
|
# service_facility_name_ranked_sort: "string",
|
748
746
|
# primary_payer_ids_ranked_sort: "string",
|
@@ -752,7 +750,7 @@ module CandidApiClient
|
|
752
750
|
# supervising_provider_names_ranked_sort: "string"
|
753
751
|
# )
|
754
752
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
755
|
-
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil,
|
753
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
756
754
|
response = @request_client.conn.get do |req|
|
757
755
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
758
756
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -773,8 +771,7 @@ module CandidApiClient
|
|
773
771
|
"date_of_service_min": date_of_service_min,
|
774
772
|
"date_of_service_max": date_of_service_max,
|
775
773
|
"claim_ids": claim_ids,
|
776
|
-
"
|
777
|
-
"bundle_ids": bundle_ids,
|
774
|
+
"claim_creation_ids": claim_creation_ids,
|
778
775
|
"billing_provider_npis": billing_provider_npis,
|
779
776
|
"service_facility_name": service_facility_name,
|
780
777
|
"primary_payer_ids": primary_payer_ids,
|
@@ -789,7 +786,7 @@ module CandidApiClient
|
|
789
786
|
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
790
787
|
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
791
788
|
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
792
|
-
"
|
789
|
+
"claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
|
793
790
|
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
794
791
|
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
795
792
|
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
@@ -851,7 +848,7 @@ module CandidApiClient
|
|
851
848
|
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
852
849
|
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
853
850
|
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
854
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::
|
851
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
|
855
852
|
# * :benefits_assigned_to_provider (Boolean)
|
856
853
|
# * :prior_authorization_number (String)
|
857
854
|
# * :external_id (String)
|
@@ -1104,7 +1101,7 @@ module CandidApiClient
|
|
1104
1101
|
# @example
|
1105
1102
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1106
1103
|
# api.charge_capture.v_1.create(
|
1107
|
-
# data: { },
|
1104
|
+
# data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
|
1108
1105
|
# charge_external_id: "string",
|
1109
1106
|
# ehr_source_url: "string",
|
1110
1107
|
# patient_external_id: "string",
|
@@ -1167,7 +1164,7 @@ module CandidApiClient
|
|
1167
1164
|
# * :submission_records (Array<CandidApiClient::ClaimSubmission::V1::Types::ClaimSubmissionRecordCreate>)
|
1168
1165
|
# * :service_lines (Array<CandidApiClient::ServiceLines::V2::Types::ServiceLineCreate>)
|
1169
1166
|
# * :patient_histories (Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>)
|
1170
|
-
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::
|
1167
|
+
# * :billing_notes (Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>)
|
1171
1168
|
# * :benefits_assigned_to_provider (Boolean)
|
1172
1169
|
# * :prior_authorization_number (String)
|
1173
1170
|
# * :external_id (String)
|
@@ -1422,7 +1419,7 @@ module CandidApiClient
|
|
1422
1419
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1423
1420
|
# api.charge_capture.v_1.update(
|
1424
1421
|
# charge_capture_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1425
|
-
# data: { },
|
1422
|
+
# data: { diagnoses: , interventions: , external_claim_submission: { claim_created_at: DateTime.parse(2023-01-01T12:00:00.000Z), patient_control_number: "PATIENT_CONTROL_NUMBER", submission_records: [{ submitted_at: DateTime.parse(2023-01-01T13:00:00.000Z), claim_frequency_code: ORIGINAL, payer_responsibility: PRIMARY, intended_submission_medium: ELECTRONIC }, { submitted_at: DateTime.parse(2023-01-04T12:00:00.000Z), claim_frequency_code: REPLACEMENT, payer_responsibility: PRIMARY, intended_submission_medium: PAPER }] }, service_lines: , patient_histories: , billing_notes: , benefits_assigned_to_provider: true, prior_authorization_number: "string", external_id: "string", date_of_service: DateTime.parse(2023-01-15), tag_ids: , clinical_notes: , pay_to_address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, billable_status: BILLABLE, responsible_party: INSURANCE_PAY, provider_accepts_assignment: true, synchronicity: SYNCHRONOUS, place_of_service_code: PHARMACY, appointment_type: "string", end_date_of_service: DateTime.parse(2023-01-15), subscriber_primary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_secondary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, subscriber_tertiary: { insurance_card: { member_id: "string", payer_name: "string", payer_id: "string" }, patient_relationship_to_subscriber_code: SPOUSE, first_name: "string", last_name: "string", gender: MALE }, additional_information: "string", service_authorization_exception_code: C_1, admission_date: DateTime.parse(2023-01-15), discharge_date: DateTime.parse(2023-01-15), onset_of_current_illness_or_symptom_date: DateTime.parse(2023-01-15), last_menstrual_period_date: DateTime.parse(2023-01-15), delay_reason_code: C_1, patient: { }, patient_authorized_release: true, schema_instances: , vitals: { height_in: 70, weight_lbs: 165, blood_pressure_systolic_mmhg: 115, blood_pressure_diastolic_mmhg: 85, body_temperature_f: 98, hemoglobin_gdl: 15.1, hematocrit_pct: 51.2 }, existing_medications: , rendering_provider: { }, service_facility: { organization_name: "Test Organization", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" } }, guarantor: { }, billing_provider: { }, supervising_provider: { }, referring_provider: { }, initial_referring_provider: { }, referral_number: "string", epsdt_referral: { condition_indicator_1: AV }, claim_supplemental_information: },
|
1426
1423
|
# charge_external_id: "string",
|
1427
1424
|
# ehr_source_url: "string",
|
1428
1425
|
# patient_external_id: "string",
|
@@ -1492,8 +1489,7 @@ module CandidApiClient
|
|
1492
1489
|
# This date must be the local date in the timezone where the service occurred.
|
1493
1490
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
1494
1491
|
# a resulting claim with one of the IDs in this list.
|
1495
|
-
# @param
|
1496
|
-
# @param bundle_ids [String] A list of bundle IDs to filter by.
|
1492
|
+
# @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
|
1497
1493
|
# @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
|
1498
1494
|
# captures with one of the NPIs in this list.
|
1499
1495
|
# @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
|
@@ -1520,7 +1516,7 @@ module CandidApiClient
|
|
1520
1516
|
# This date must be the local date in the timezone where the service occurred.
|
1521
1517
|
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
1522
1518
|
# have a resulting claim with one of the IDs in this list.
|
1523
|
-
# @param
|
1519
|
+
# @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
|
1524
1520
|
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
1525
1521
|
# captures with one of the NPIs in this list.
|
1526
1522
|
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
@@ -1550,8 +1546,7 @@ module CandidApiClient
|
|
1550
1546
|
# date_of_service_min: DateTime.parse(2023-01-15),
|
1551
1547
|
# date_of_service_max: DateTime.parse(2023-01-15),
|
1552
1548
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1553
|
-
#
|
1554
|
-
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1549
|
+
# claim_creation_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1555
1550
|
# billing_provider_npis: "string",
|
1556
1551
|
# service_facility_name: "string",
|
1557
1552
|
# primary_payer_ids: "string",
|
@@ -1566,7 +1561,7 @@ module CandidApiClient
|
|
1566
1561
|
# date_of_service_min_ranked_sort: DateTime.parse(2023-01-15),
|
1567
1562
|
# date_of_service_max_ranked_sort: DateTime.parse(2023-01-15),
|
1568
1563
|
# claim_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1569
|
-
#
|
1564
|
+
# claim_creation_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1570
1565
|
# billing_provider_npis_ranked_sort: "string",
|
1571
1566
|
# service_facility_name_ranked_sort: "string",
|
1572
1567
|
# primary_payer_ids_ranked_sort: "string",
|
@@ -1576,7 +1571,7 @@ module CandidApiClient
|
|
1576
1571
|
# supervising_provider_names_ranked_sort: "string"
|
1577
1572
|
# )
|
1578
1573
|
def get_all(limit: nil, sort: nil, sort_direction: nil, page_token: nil, patient_external_id: nil, status: nil,
|
1579
|
-
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil,
|
1574
|
+
charge_external_id: nil, date_of_service_min: nil, date_of_service_max: nil, claim_ids: nil, claim_creation_ids: nil, billing_provider_npis: nil, service_facility_name: nil, primary_payer_ids: nil, rendering_provider_npis: nil, rendering_provider_names: nil, supervising_provider_npis: nil, supervising_provider_names: nil, exclude_charges_linked_to_claims: nil, patient_external_id_ranked_sort: nil, status_ranked_sort: nil, charge_external_id_ranked_sort: nil, date_of_service_min_ranked_sort: nil, date_of_service_max_ranked_sort: nil, claim_ids_ranked_sort: nil, claim_creation_ids_ranked_sort: nil, billing_provider_npis_ranked_sort: nil, service_facility_name_ranked_sort: nil, primary_payer_ids_ranked_sort: nil, rendering_provider_npis_ranked_sort: nil, rendering_provider_names_ranked_sort: nil, supervising_provider_npis_ranked_sort: nil, supervising_provider_names_ranked_sort: nil, request_options: nil)
|
1580
1575
|
Async do
|
1581
1576
|
response = @request_client.conn.get do |req|
|
1582
1577
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1598,8 +1593,7 @@ module CandidApiClient
|
|
1598
1593
|
"date_of_service_min": date_of_service_min,
|
1599
1594
|
"date_of_service_max": date_of_service_max,
|
1600
1595
|
"claim_ids": claim_ids,
|
1601
|
-
"
|
1602
|
-
"bundle_ids": bundle_ids,
|
1596
|
+
"claim_creation_ids": claim_creation_ids,
|
1603
1597
|
"billing_provider_npis": billing_provider_npis,
|
1604
1598
|
"service_facility_name": service_facility_name,
|
1605
1599
|
"primary_payer_ids": primary_payer_ids,
|
@@ -1614,7 +1608,7 @@ module CandidApiClient
|
|
1614
1608
|
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
1615
1609
|
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
1616
1610
|
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
1617
|
-
"
|
1611
|
+
"claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
|
1618
1612
|
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
1619
1613
|
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
1620
1614
|
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
@@ -32,7 +32,7 @@ module CandidApiClient
|
|
32
32
|
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
33
33
|
attr_reader :updates
|
34
34
|
# @return [String]
|
35
|
-
attr_reader :
|
35
|
+
attr_reader :claim_creation_id
|
36
36
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
37
37
|
attr_reader :additional_properties
|
38
38
|
# @return [Object]
|
@@ -50,11 +50,11 @@ module CandidApiClient
|
|
50
50
|
# @param ehr_source_url [String]
|
51
51
|
# @param error [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
|
52
52
|
# @param updates [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
53
|
-
# @param
|
53
|
+
# @param claim_creation_id [String]
|
54
54
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
55
55
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapture]
|
56
56
|
def initialize(id:, status:, charge_capture_data:, patient_external_id:, charge_external_id:, updates:,
|
57
|
-
date_of_service: OMIT, ehr_source_url: OMIT, error: OMIT,
|
57
|
+
date_of_service: OMIT, ehr_source_url: OMIT, error: OMIT, claim_creation_id: OMIT, additional_properties: nil)
|
58
58
|
@id = id
|
59
59
|
@status = status
|
60
60
|
@charge_capture_data = charge_capture_data
|
@@ -64,7 +64,7 @@ module CandidApiClient
|
|
64
64
|
@ehr_source_url = ehr_source_url if ehr_source_url != OMIT
|
65
65
|
@error = error if error != OMIT
|
66
66
|
@updates = updates
|
67
|
-
@
|
67
|
+
@claim_creation_id = claim_creation_id if claim_creation_id != OMIT
|
68
68
|
@additional_properties = additional_properties
|
69
69
|
@_field_set = {
|
70
70
|
"id": id,
|
@@ -76,7 +76,7 @@ module CandidApiClient
|
|
76
76
|
"ehr_source_url": ehr_source_url,
|
77
77
|
"error": error,
|
78
78
|
"updates": updates,
|
79
|
-
"
|
79
|
+
"claim_creation_id": claim_creation_id
|
80
80
|
}.reject do |_k, v|
|
81
81
|
v == OMIT
|
82
82
|
end
|
@@ -111,7 +111,7 @@ module CandidApiClient
|
|
111
111
|
item = item.to_json
|
112
112
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
113
113
|
end
|
114
|
-
|
114
|
+
claim_creation_id = struct["claim_creation_id"]
|
115
115
|
new(
|
116
116
|
id: id,
|
117
117
|
status: status,
|
@@ -122,7 +122,7 @@ module CandidApiClient
|
|
122
122
|
ehr_source_url: ehr_source_url,
|
123
123
|
error: error,
|
124
124
|
updates: updates,
|
125
|
-
|
125
|
+
claim_creation_id: claim_creation_id,
|
126
126
|
additional_properties: struct
|
127
127
|
)
|
128
128
|
end
|
@@ -150,7 +150,7 @@ module CandidApiClient
|
|
150
150
|
obj.ehr_source_url&.is_a?(String) != false || raise("Passed value for field obj.ehr_source_url is not the expected type, validation failed.")
|
151
151
|
obj.error.nil? || CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError.validate_raw(obj: obj.error)
|
152
152
|
obj.updates.is_a?(Array) != false || raise("Passed value for field obj.updates is not the expected type, validation failed.")
|
153
|
-
obj.
|
153
|
+
obj.claim_creation_id&.is_a?(String) != false || raise("Passed value for field obj.claim_creation_id is not the expected type, validation failed.")
|
154
154
|
end
|
155
155
|
end
|
156
156
|
end
|
@@ -5,7 +5,7 @@ require_relative "../../../encounters/v_4/types/intervention"
|
|
5
5
|
require_relative "../../../claim_submission/v_1/types/external_claim_submission_create"
|
6
6
|
require_relative "../../../service_lines/v_2/types/service_line_create"
|
7
7
|
require_relative "../../../encounters/v_4/types/patient_history_category"
|
8
|
-
require_relative "../../../billing_notes/v_2/types/
|
8
|
+
require_relative "../../../billing_notes/v_2/types/billing_note_optional"
|
9
9
|
require "date"
|
10
10
|
require_relative "../../../encounters/v_4/types/clinical_note_category_create"
|
11
11
|
require_relative "../../../commons/types/street_address_long_zip"
|
@@ -56,7 +56,7 @@ module CandidApiClient
|
|
56
56
|
attr_reader :service_lines
|
57
57
|
# @return [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
|
58
58
|
attr_reader :patient_histories
|
59
|
-
# @return [Array<CandidApiClient::BillingNotes::V2::Types::
|
59
|
+
# @return [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>] Spot to store misc, human-readable, notes about this encounter to be
|
60
60
|
# used in the billing process.
|
61
61
|
attr_reader :billing_notes
|
62
62
|
# @return [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
@@ -253,7 +253,7 @@ module CandidApiClient
|
|
253
253
|
# `service_line.diagnosis_pointers`must contain at least one entry which should be
|
254
254
|
# in bounds of the diagnoses list field.
|
255
255
|
# @param patient_histories [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
|
256
|
-
# @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::
|
256
|
+
# @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional>] Spot to store misc, human-readable, notes about this encounter to be
|
257
257
|
# used in the billing process.
|
258
258
|
# @param benefits_assigned_to_provider [Boolean] Whether this patient has authorized insurance payments to be made to you, not
|
259
259
|
# them. If false, patient may receive reimbursement. Box 13 on the CMS-1500 claim
|
@@ -524,7 +524,7 @@ module CandidApiClient
|
|
524
524
|
end
|
525
525
|
billing_notes = parsed_json["billing_notes"]&.map do |item|
|
526
526
|
item = item.to_json
|
527
|
-
CandidApiClient::BillingNotes::V2::Types::
|
527
|
+
CandidApiClient::BillingNotes::V2::Types::BillingNoteOptional.from_json(json_object: item)
|
528
528
|
end
|
529
529
|
benefits_assigned_to_provider = struct["benefits_assigned_to_provider"]
|
530
530
|
prior_authorization_number = struct["prior_authorization_number"]
|
@@ -11,19 +11,20 @@ module CandidApiClient
|
|
11
11
|
# @return [String]
|
12
12
|
attr_reader :id
|
13
13
|
# @return [String] The underlying Charge Capture that this error object references.
|
14
|
-
# The Charge Capture referenced will be a part of the
|
15
|
-
#
|
16
|
-
#
|
14
|
+
# The Charge Capture referenced will be a part of the Claim Creation tied to this
|
15
|
+
# error.
|
16
|
+
# Errors may also refer to all charge_captures present in a Claim Creation, in
|
17
|
+
# which case this field will be null.
|
17
18
|
attr_reader :charge_capture_id
|
18
|
-
# @return [String] A human readable error explaining why this charge capture
|
19
|
-
# create a claim.
|
19
|
+
# @return [String] A human readable error explaining why this charge capture Claim Creation failed
|
20
|
+
# to create a claim.
|
20
21
|
attr_reader :message
|
21
22
|
# @return [String] The field of the corresponding underlying ChargeCapture that has a field that is
|
22
23
|
# failing validations,
|
23
24
|
# is not present but marked as required, or otherwise in error.
|
24
25
|
attr_reader :field_in_error
|
25
|
-
# @return [String] The ID of the
|
26
|
-
attr_reader :
|
26
|
+
# @return [String] The ID of the ChargeCaptureClaimCreation associated with this Error.
|
27
|
+
attr_reader :claim_creation_id
|
27
28
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
28
29
|
attr_reader :additional_properties
|
29
30
|
# @return [Object]
|
@@ -34,31 +35,32 @@ module CandidApiClient
|
|
34
35
|
|
35
36
|
# @param id [String]
|
36
37
|
# @param charge_capture_id [String] The underlying Charge Capture that this error object references.
|
37
|
-
# The Charge Capture referenced will be a part of the
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
#
|
38
|
+
# The Charge Capture referenced will be a part of the Claim Creation tied to this
|
39
|
+
# error.
|
40
|
+
# Errors may also refer to all charge_captures present in a Claim Creation, in
|
41
|
+
# which case this field will be null.
|
42
|
+
# @param message [String] A human readable error explaining why this charge capture Claim Creation failed
|
43
|
+
# to create a claim.
|
42
44
|
# @param field_in_error [String] The field of the corresponding underlying ChargeCapture that has a field that is
|
43
45
|
# failing validations,
|
44
46
|
# is not present but marked as required, or otherwise in error.
|
45
|
-
# @param
|
47
|
+
# @param claim_creation_id [String] The ID of the ChargeCaptureClaimCreation associated with this Error.
|
46
48
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
47
49
|
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCaptureError]
|
48
|
-
def initialize(id:, message:,
|
50
|
+
def initialize(id:, message:, claim_creation_id:, charge_capture_id: OMIT, field_in_error: OMIT,
|
49
51
|
additional_properties: nil)
|
50
52
|
@id = id
|
51
53
|
@charge_capture_id = charge_capture_id if charge_capture_id != OMIT
|
52
54
|
@message = message
|
53
55
|
@field_in_error = field_in_error if field_in_error != OMIT
|
54
|
-
@
|
56
|
+
@claim_creation_id = claim_creation_id
|
55
57
|
@additional_properties = additional_properties
|
56
58
|
@_field_set = {
|
57
59
|
"id": id,
|
58
60
|
"charge_capture_id": charge_capture_id,
|
59
61
|
"message": message,
|
60
62
|
"field_in_error": field_in_error,
|
61
|
-
"
|
63
|
+
"claim_creation_id": claim_creation_id
|
62
64
|
}.reject do |_k, v|
|
63
65
|
v == OMIT
|
64
66
|
end
|
@@ -74,13 +76,13 @@ module CandidApiClient
|
|
74
76
|
charge_capture_id = struct["charge_capture_id"]
|
75
77
|
message = struct["message"]
|
76
78
|
field_in_error = struct["field_in_error"]
|
77
|
-
|
79
|
+
claim_creation_id = struct["claim_creation_id"]
|
78
80
|
new(
|
79
81
|
id: id,
|
80
82
|
charge_capture_id: charge_capture_id,
|
81
83
|
message: message,
|
82
84
|
field_in_error: field_in_error,
|
83
|
-
|
85
|
+
claim_creation_id: claim_creation_id,
|
84
86
|
additional_properties: struct
|
85
87
|
)
|
86
88
|
end
|
@@ -103,7 +105,7 @@ module CandidApiClient
|
|
103
105
|
obj.charge_capture_id&.is_a?(String) != false || raise("Passed value for field obj.charge_capture_id is not the expected type, validation failed.")
|
104
106
|
obj.message.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
105
107
|
obj.field_in_error&.is_a?(String) != false || raise("Passed value for field obj.field_in_error is not the expected type, validation failed.")
|
106
|
-
obj.
|
108
|
+
obj.claim_creation_id.is_a?(String) != false || raise("Passed value for field obj.claim_creation_id is not the expected type, validation failed.")
|
107
109
|
end
|
108
110
|
end
|
109
111
|
end
|