candidhealth 0.42.5 → 0.43.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 +4 -4
- data/lib/candidhealth/charge_capture/v_1/client.rb +47 -34
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture.rb +8 -8
- data/lib/candidhealth/charge_capture/v_1/types/charge_capture_error.rb +21 -19
- data/lib/candidhealth/charge_capture/v_1/types/charge_external_id_conflict_error_message.rb +62 -0
- 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} +38 -34
- 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 +15 -0
- 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: bff11cb7f6058f48cbaf4f55cf6143600f40c6fce1874f99e3301c898e987048
|
4
|
+
data.tar.gz: efc02d1844720dba7f72fffaaaa1d99eebaac04c4ba045decfeddd0906944458
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 541cda6e2537417beaf6ff2bd6d7e987c1d55ccb41e0703e0abb0360b1eed1854ed46b260fa79e1157daffaa8d6b134e9088b6d80e4a8fc210810170c27ae3dc
|
7
|
+
data.tar.gz: 68c9a3a13ee7e30cac076c61b34f592a71d764359990221358eeb41d937819d91b190fd0522cf5d8f9c4f40c29e7256575594fd3789d3be8735340d0cb021659
|
@@ -9,6 +9,7 @@ require_relative "../../commons/types/sort_direction"
|
|
9
9
|
require "date"
|
10
10
|
require_relative "types/charge_capture_page"
|
11
11
|
require_relative "types/charge_capture_post_billed_change"
|
12
|
+
require "json"
|
12
13
|
require "async"
|
13
14
|
|
14
15
|
module CandidApiClient
|
@@ -668,8 +669,7 @@ module CandidApiClient
|
|
668
669
|
# This date must be the local date in the timezone where the service occurred.
|
669
670
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
670
671
|
# 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.
|
672
|
+
# @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
|
673
673
|
# @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
|
674
674
|
# captures with one of the NPIs in this list.
|
675
675
|
# @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
|
@@ -696,7 +696,7 @@ module CandidApiClient
|
|
696
696
|
# This date must be the local date in the timezone where the service occurred.
|
697
697
|
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
698
698
|
# have a resulting claim with one of the IDs in this list.
|
699
|
-
# @param
|
699
|
+
# @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
|
700
700
|
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
701
701
|
# captures with one of the NPIs in this list.
|
702
702
|
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
@@ -726,8 +726,7 @@ module CandidApiClient
|
|
726
726
|
# date_of_service_min: DateTime.parse(2023-01-15),
|
727
727
|
# date_of_service_max: DateTime.parse(2023-01-15),
|
728
728
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
729
|
-
#
|
730
|
-
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
729
|
+
# claim_creation_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
731
730
|
# billing_provider_npis: "string",
|
732
731
|
# service_facility_name: "string",
|
733
732
|
# primary_payer_ids: "string",
|
@@ -742,7 +741,7 @@ module CandidApiClient
|
|
742
741
|
# date_of_service_min_ranked_sort: DateTime.parse(2023-01-15),
|
743
742
|
# date_of_service_max_ranked_sort: DateTime.parse(2023-01-15),
|
744
743
|
# claim_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
745
|
-
#
|
744
|
+
# claim_creation_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
746
745
|
# billing_provider_npis_ranked_sort: "string",
|
747
746
|
# service_facility_name_ranked_sort: "string",
|
748
747
|
# primary_payer_ids_ranked_sort: "string",
|
@@ -752,7 +751,7 @@ module CandidApiClient
|
|
752
751
|
# supervising_provider_names_ranked_sort: "string"
|
753
752
|
# )
|
754
753
|
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,
|
754
|
+
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
755
|
response = @request_client.conn.get do |req|
|
757
756
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
758
757
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -773,8 +772,7 @@ module CandidApiClient
|
|
773
772
|
"date_of_service_min": date_of_service_min,
|
774
773
|
"date_of_service_max": date_of_service_max,
|
775
774
|
"claim_ids": claim_ids,
|
776
|
-
"
|
777
|
-
"bundle_ids": bundle_ids,
|
775
|
+
"claim_creation_ids": claim_creation_ids,
|
778
776
|
"billing_provider_npis": billing_provider_npis,
|
779
777
|
"service_facility_name": service_facility_name,
|
780
778
|
"primary_payer_ids": primary_payer_ids,
|
@@ -789,7 +787,7 @@ module CandidApiClient
|
|
789
787
|
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
790
788
|
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
791
789
|
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
792
|
-
"
|
790
|
+
"claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
|
793
791
|
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
794
792
|
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
795
793
|
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
@@ -804,16 +802,17 @@ module CandidApiClient
|
|
804
802
|
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePage.from_json(json_object: response.body)
|
805
803
|
end
|
806
804
|
|
807
|
-
# @param
|
805
|
+
# @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
|
806
|
+
# All of the charges sent will be marked as resolved
|
808
807
|
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
809
808
|
# resolved.
|
810
809
|
# If false, the change will be marked as unresolved.
|
811
810
|
# @param request_options [CandidApiClient::RequestOptions]
|
812
|
-
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
811
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
813
812
|
# @example
|
814
813
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
815
|
-
# api.charge_capture.v_1.
|
816
|
-
def
|
814
|
+
# api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
|
815
|
+
def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
|
817
816
|
response = @request_client.conn.patch do |req|
|
818
817
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
819
818
|
req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
|
@@ -822,11 +821,19 @@ module CandidApiClient
|
|
822
821
|
**@request_client.get_headers,
|
823
822
|
**(request_options&.additional_headers || {})
|
824
823
|
}.compact
|
825
|
-
req.body = {
|
824
|
+
req.body = {
|
825
|
+
**(request_options&.additional_body_parameters || {}),
|
826
|
+
charge_capture_change_ids: charge_capture_change_ids,
|
827
|
+
resolved: resolved
|
828
|
+
}.compact
|
826
829
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
827
|
-
request_options: request_options)}/api/charge_captures/v1/changes
|
830
|
+
request_options: request_options)}/api/charge_captures/v1/changes"
|
831
|
+
end
|
832
|
+
parsed_json = JSON.parse(response.body)
|
833
|
+
parsed_json&.map do |item|
|
834
|
+
item = item.to_json
|
835
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
828
836
|
end
|
829
|
-
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
|
830
837
|
end
|
831
838
|
end
|
832
839
|
|
@@ -1492,8 +1499,7 @@ module CandidApiClient
|
|
1492
1499
|
# This date must be the local date in the timezone where the service occurred.
|
1493
1500
|
# @param claim_ids [String] A list of claim IDs to filter by. This will return all charge captures that have
|
1494
1501
|
# 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.
|
1502
|
+
# @param claim_creation_ids [String] A list of Claim Creation IDs to filter by.
|
1497
1503
|
# @param billing_provider_npis [String] A list of billing provider NPIs to filter by. This will return all charge
|
1498
1504
|
# captures with one of the NPIs in this list.
|
1499
1505
|
# @param service_facility_name [String] A string to filter by. This will return all charge captures with this service
|
@@ -1520,7 +1526,7 @@ module CandidApiClient
|
|
1520
1526
|
# This date must be the local date in the timezone where the service occurred.
|
1521
1527
|
# @param claim_ids_ranked_sort [String] A list of claim IDs to show first. This will return all charge captures that
|
1522
1528
|
# have a resulting claim with one of the IDs in this list.
|
1523
|
-
# @param
|
1529
|
+
# @param claim_creation_ids_ranked_sort [String] A list of Claim Creation IDs to show first.
|
1524
1530
|
# @param billing_provider_npis_ranked_sort [String] A list of billing provider NPIs to show first. This will return all charge
|
1525
1531
|
# captures with one of the NPIs in this list.
|
1526
1532
|
# @param service_facility_name_ranked_sort [String] A string to show first. This will return all charge captures with this service
|
@@ -1550,8 +1556,7 @@ module CandidApiClient
|
|
1550
1556
|
# date_of_service_min: DateTime.parse(2023-01-15),
|
1551
1557
|
# date_of_service_max: DateTime.parse(2023-01-15),
|
1552
1558
|
# claim_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1553
|
-
#
|
1554
|
-
# bundle_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1559
|
+
# claim_creation_ids: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1555
1560
|
# billing_provider_npis: "string",
|
1556
1561
|
# service_facility_name: "string",
|
1557
1562
|
# primary_payer_ids: "string",
|
@@ -1566,7 +1571,7 @@ module CandidApiClient
|
|
1566
1571
|
# date_of_service_min_ranked_sort: DateTime.parse(2023-01-15),
|
1567
1572
|
# date_of_service_max_ranked_sort: DateTime.parse(2023-01-15),
|
1568
1573
|
# claim_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1569
|
-
#
|
1574
|
+
# claim_creation_ids_ranked_sort: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
|
1570
1575
|
# billing_provider_npis_ranked_sort: "string",
|
1571
1576
|
# service_facility_name_ranked_sort: "string",
|
1572
1577
|
# primary_payer_ids_ranked_sort: "string",
|
@@ -1576,7 +1581,7 @@ module CandidApiClient
|
|
1576
1581
|
# supervising_provider_names_ranked_sort: "string"
|
1577
1582
|
# )
|
1578
1583
|
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,
|
1584
|
+
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
1585
|
Async do
|
1581
1586
|
response = @request_client.conn.get do |req|
|
1582
1587
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1598,8 +1603,7 @@ module CandidApiClient
|
|
1598
1603
|
"date_of_service_min": date_of_service_min,
|
1599
1604
|
"date_of_service_max": date_of_service_max,
|
1600
1605
|
"claim_ids": claim_ids,
|
1601
|
-
"
|
1602
|
-
"bundle_ids": bundle_ids,
|
1606
|
+
"claim_creation_ids": claim_creation_ids,
|
1603
1607
|
"billing_provider_npis": billing_provider_npis,
|
1604
1608
|
"service_facility_name": service_facility_name,
|
1605
1609
|
"primary_payer_ids": primary_payer_ids,
|
@@ -1614,7 +1618,7 @@ module CandidApiClient
|
|
1614
1618
|
"date_of_service_min_ranked_sort": date_of_service_min_ranked_sort,
|
1615
1619
|
"date_of_service_max_ranked_sort": date_of_service_max_ranked_sort,
|
1616
1620
|
"claim_ids_ranked_sort": claim_ids_ranked_sort,
|
1617
|
-
"
|
1621
|
+
"claim_creation_ids_ranked_sort": claim_creation_ids_ranked_sort,
|
1618
1622
|
"billing_provider_npis_ranked_sort": billing_provider_npis_ranked_sort,
|
1619
1623
|
"service_facility_name_ranked_sort": service_facility_name_ranked_sort,
|
1620
1624
|
"primary_payer_ids_ranked_sort": primary_payer_ids_ranked_sort,
|
@@ -1630,16 +1634,17 @@ module CandidApiClient
|
|
1630
1634
|
end
|
1631
1635
|
end
|
1632
1636
|
|
1633
|
-
# @param
|
1637
|
+
# @param charge_capture_change_ids [Array<String>] A list of UUIDs corresponding to ChargeCapturePostBilledChanges.
|
1638
|
+
# All of the charges sent will be marked as resolved
|
1634
1639
|
# @param resolved [Boolean] Whether the change has been resolved. If true, the change will be marked as
|
1635
1640
|
# resolved.
|
1636
1641
|
# If false, the change will be marked as unresolved.
|
1637
1642
|
# @param request_options [CandidApiClient::RequestOptions]
|
1638
|
-
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange]
|
1643
|
+
# @return [Array<CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange>]
|
1639
1644
|
# @example
|
1640
1645
|
# api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
|
1641
|
-
# api.charge_capture.v_1.
|
1642
|
-
def
|
1646
|
+
# api.charge_capture.v_1.update_post_billed_changes(charge_capture_change_ids: ["d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"], resolved: true)
|
1647
|
+
def update_post_billed_changes(charge_capture_change_ids:, resolved:, request_options: nil)
|
1643
1648
|
Async do
|
1644
1649
|
response = @request_client.conn.patch do |req|
|
1645
1650
|
req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
|
@@ -1649,11 +1654,19 @@ module CandidApiClient
|
|
1649
1654
|
**@request_client.get_headers,
|
1650
1655
|
**(request_options&.additional_headers || {})
|
1651
1656
|
}.compact
|
1652
|
-
req.body = {
|
1657
|
+
req.body = {
|
1658
|
+
**(request_options&.additional_body_parameters || {}),
|
1659
|
+
charge_capture_change_ids: charge_capture_change_ids,
|
1660
|
+
resolved: resolved
|
1661
|
+
}.compact
|
1653
1662
|
req.url "#{@request_client.get_url(environment: CandidApi,
|
1654
|
-
request_options: request_options)}/api/charge_captures/v1/changes
|
1663
|
+
request_options: request_options)}/api/charge_captures/v1/changes"
|
1664
|
+
end
|
1665
|
+
parsed_json = JSON.parse(response.body)
|
1666
|
+
parsed_json&.map do |item|
|
1667
|
+
item = item.to_json
|
1668
|
+
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: item)
|
1655
1669
|
end
|
1656
|
-
CandidApiClient::ChargeCapture::V1::Types::ChargeCapturePostBilledChange.from_json(json_object: response.body)
|
1657
1670
|
end
|
1658
1671
|
end
|
1659
1672
|
end
|
@@ -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
|
@@ -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
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module CandidApiClient
|
7
|
+
module ChargeCapture
|
8
|
+
module V1
|
9
|
+
module Types
|
10
|
+
class ChargeExternalIdConflictErrorMessage
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :message
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
attr_reader :additional_properties
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :_field_set
|
17
|
+
protected :_field_set
|
18
|
+
|
19
|
+
OMIT = Object.new
|
20
|
+
|
21
|
+
# @param message [String]
|
22
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
23
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeExternalIdConflictErrorMessage]
|
24
|
+
def initialize(message: OMIT, additional_properties: nil)
|
25
|
+
@message = message if message != OMIT
|
26
|
+
@additional_properties = additional_properties
|
27
|
+
@_field_set = { "message": message }.reject do |_k, v|
|
28
|
+
v == OMIT
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
# Deserialize a JSON object to an instance of ChargeExternalIdConflictErrorMessage
|
33
|
+
#
|
34
|
+
# @param json_object [String]
|
35
|
+
# @return [CandidApiClient::ChargeCapture::V1::Types::ChargeExternalIdConflictErrorMessage]
|
36
|
+
def self.from_json(json_object:)
|
37
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
38
|
+
message = struct["message"]
|
39
|
+
new(message: message, additional_properties: struct)
|
40
|
+
end
|
41
|
+
|
42
|
+
# Serialize an instance of ChargeExternalIdConflictErrorMessage to a JSON object
|
43
|
+
#
|
44
|
+
# @return [String]
|
45
|
+
def to_json(*_args)
|
46
|
+
@_field_set&.to_json
|
47
|
+
end
|
48
|
+
|
49
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
50
|
+
# hash and check each fields type against the current object's property
|
51
|
+
# definitions.
|
52
|
+
#
|
53
|
+
# @param obj [Object]
|
54
|
+
# @return [Void]
|
55
|
+
def self.validate_raw(obj:)
|
56
|
+
obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|