candidhealth 0.34.1 → 0.34.2
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/encounter_providers/v_2/types/rendering_provider.rb +10 -10
- data/lib/candidhealth/encounter_providers/v_2/types/rendering_provider_update.rb +123 -0
- data/lib/candidhealth/encounters/v_4/client.rb +282 -32
- data/lib/candidhealth/encounters/v_4/types/encounter.rb +11 -11
- data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +11 -1
- data/lib/candidhealth/{third_party_payers/v_1/types/toggle_third_party_payer_enablement_request.rb → encounters/v_4/types/insurance_pay_missing_primary_coverage_error_type.rb} +17 -16
- data/lib/candidhealth/guarantor/v_1/client.rb +39 -89
- data/lib/candidhealth/guarantor/v_1/types/guarantor_update.rb +144 -0
- data/lib/candidhealth/payers/v_3/types/payer.rb +41 -2
- data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +68 -4
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +17 -1
- data/lib/candidhealth/pre_encounter/appointments/v_1/types/mutable_appointment.rb +17 -1
- data/lib/candidhealth/pre_encounter/common/types/additional_payer_information.rb +92 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +48 -4
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/benefit_type.rb +20 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +15 -1
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_details.rb +104 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_level.rb +17 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage_value_unit.rb +17 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/insurance_plan.rb +16 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/latest_eligibility_check.rb +83 -0
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/mutable_coverage.rb +15 -1
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/plan_coverage.rb +29 -2
- data/lib/candidhealth/pre_encounter/coverages/v_1/types/service_coverage.rb +26 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +12 -4
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization.rb +148 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/authorization_unit.rb +15 -0
- data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +26 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +26 -2
- data/lib/candidhealth/pre_encounter/patients/v_1/types/referral.rb +106 -0
- data/lib/candidhealth/service_facility/client.rb +27 -51
- data/lib/candidhealth/service_facility/types/encounter_service_facility_update.rb +90 -0
- data/lib/candidhealth.rb +0 -21
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +13 -16
- metadata +15 -24
- data/lib/candidhealth/third_party_payer_payments/client.rb +0 -30
- data/lib/candidhealth/third_party_payer_payments/v_1/client.rb +0 -360
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payment.rb +0 -138
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payment_create.rb +0 -124
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payment_sort_field.rb +0 -14
- data/lib/candidhealth/third_party_payer_payments/v_1/types/third_party_payer_payments_page.rb +0 -88
- data/lib/candidhealth/third_party_payer_refunds/client.rb +0 -30
- data/lib/candidhealth/third_party_payer_refunds/v_1/client.rb +0 -385
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund.rb +0 -139
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund_create.rb +0 -125
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund_sort_field.rb +0 -14
- data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refunds_page.rb +0 -88
- data/lib/candidhealth/third_party_payers/client.rb +0 -30
- data/lib/candidhealth/third_party_payers/v_1/client.rb +0 -375
- data/lib/candidhealth/third_party_payers/v_1/types/create_third_party_payer_request.rb +0 -79
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer.rb +0 -100
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_category_update.rb +0 -97
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_description_update.rb +0 -97
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_page.rb +0 -88
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_sort_field.rb +0 -16
- data/lib/candidhealth/third_party_payers/v_1/types/third_party_payer_update_request.rb +0 -92
@@ -1,139 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "../../../third_party_payers/v_1/types/third_party_payer"
|
4
|
-
require "date"
|
5
|
-
require_relative "../../../financials/types/allocation"
|
6
|
-
require_relative "../../../financials/types/refund_reason"
|
7
|
-
require "ostruct"
|
8
|
-
require "json"
|
9
|
-
|
10
|
-
module CandidApiClient
|
11
|
-
module ThirdPartyPayerRefunds
|
12
|
-
module V1
|
13
|
-
module Types
|
14
|
-
class ThirdPartyPayerRefund
|
15
|
-
# @return [String]
|
16
|
-
attr_reader :third_party_payer_refund_id
|
17
|
-
# @return [CandidApiClient::ThirdPartyPayers::V1::Types::ThirdPartyPayer]
|
18
|
-
attr_reader :third_party_payer
|
19
|
-
# @return [Integer]
|
20
|
-
attr_reader :amount_cents
|
21
|
-
# @return [DateTime]
|
22
|
-
attr_reader :refund_timestamp
|
23
|
-
# @return [String]
|
24
|
-
attr_reader :refund_note
|
25
|
-
# @return [Array<CandidApiClient::Financials::Types::Allocation>]
|
26
|
-
attr_reader :allocations
|
27
|
-
# @return [CandidApiClient::Financials::Types::RefundReason]
|
28
|
-
attr_reader :refund_reason
|
29
|
-
# @return [String]
|
30
|
-
attr_reader :invoice_id
|
31
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
32
|
-
attr_reader :additional_properties
|
33
|
-
# @return [Object]
|
34
|
-
attr_reader :_field_set
|
35
|
-
protected :_field_set
|
36
|
-
|
37
|
-
OMIT = Object.new
|
38
|
-
|
39
|
-
# @param third_party_payer_refund_id [String]
|
40
|
-
# @param third_party_payer [CandidApiClient::ThirdPartyPayers::V1::Types::ThirdPartyPayer]
|
41
|
-
# @param amount_cents [Integer]
|
42
|
-
# @param refund_timestamp [DateTime]
|
43
|
-
# @param refund_note [String]
|
44
|
-
# @param allocations [Array<CandidApiClient::Financials::Types::Allocation>]
|
45
|
-
# @param refund_reason [CandidApiClient::Financials::Types::RefundReason]
|
46
|
-
# @param invoice_id [String]
|
47
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
48
|
-
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefund]
|
49
|
-
def initialize(third_party_payer_refund_id:, third_party_payer:, amount_cents:, allocations:, refund_timestamp: OMIT,
|
50
|
-
refund_note: OMIT, refund_reason: OMIT, invoice_id: OMIT, additional_properties: nil)
|
51
|
-
@third_party_payer_refund_id = third_party_payer_refund_id
|
52
|
-
@third_party_payer = third_party_payer
|
53
|
-
@amount_cents = amount_cents
|
54
|
-
@refund_timestamp = refund_timestamp if refund_timestamp != OMIT
|
55
|
-
@refund_note = refund_note if refund_note != OMIT
|
56
|
-
@allocations = allocations
|
57
|
-
@refund_reason = refund_reason if refund_reason != OMIT
|
58
|
-
@invoice_id = invoice_id if invoice_id != OMIT
|
59
|
-
@additional_properties = additional_properties
|
60
|
-
@_field_set = {
|
61
|
-
"third_party_payer_refund_id": third_party_payer_refund_id,
|
62
|
-
"third_party_payer": third_party_payer,
|
63
|
-
"amount_cents": amount_cents,
|
64
|
-
"refund_timestamp": refund_timestamp,
|
65
|
-
"refund_note": refund_note,
|
66
|
-
"allocations": allocations,
|
67
|
-
"refund_reason": refund_reason,
|
68
|
-
"invoice_id": invoice_id
|
69
|
-
}.reject do |_k, v|
|
70
|
-
v == OMIT
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# Deserialize a JSON object to an instance of ThirdPartyPayerRefund
|
75
|
-
#
|
76
|
-
# @param json_object [String]
|
77
|
-
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefund]
|
78
|
-
def self.from_json(json_object:)
|
79
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
80
|
-
parsed_json = JSON.parse(json_object)
|
81
|
-
third_party_payer_refund_id = struct["third_party_payer_refund_id"]
|
82
|
-
if parsed_json["third_party_payer"].nil?
|
83
|
-
third_party_payer = nil
|
84
|
-
else
|
85
|
-
third_party_payer = parsed_json["third_party_payer"].to_json
|
86
|
-
third_party_payer = CandidApiClient::ThirdPartyPayers::V1::Types::ThirdPartyPayer.from_json(json_object: third_party_payer)
|
87
|
-
end
|
88
|
-
amount_cents = struct["amount_cents"]
|
89
|
-
refund_timestamp = unless parsed_json["refund_timestamp"].nil?
|
90
|
-
DateTime.parse(parsed_json["refund_timestamp"])
|
91
|
-
end
|
92
|
-
refund_note = struct["refund_note"]
|
93
|
-
allocations = parsed_json["allocations"]&.map do |item|
|
94
|
-
item = item.to_json
|
95
|
-
CandidApiClient::Financials::Types::Allocation.from_json(json_object: item)
|
96
|
-
end
|
97
|
-
refund_reason = struct["refund_reason"]
|
98
|
-
invoice_id = struct["invoice_id"]
|
99
|
-
new(
|
100
|
-
third_party_payer_refund_id: third_party_payer_refund_id,
|
101
|
-
third_party_payer: third_party_payer,
|
102
|
-
amount_cents: amount_cents,
|
103
|
-
refund_timestamp: refund_timestamp,
|
104
|
-
refund_note: refund_note,
|
105
|
-
allocations: allocations,
|
106
|
-
refund_reason: refund_reason,
|
107
|
-
invoice_id: invoice_id,
|
108
|
-
additional_properties: struct
|
109
|
-
)
|
110
|
-
end
|
111
|
-
|
112
|
-
# Serialize an instance of ThirdPartyPayerRefund to a JSON object
|
113
|
-
#
|
114
|
-
# @return [String]
|
115
|
-
def to_json(*_args)
|
116
|
-
@_field_set&.to_json
|
117
|
-
end
|
118
|
-
|
119
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
120
|
-
# hash and check each fields type against the current object's property
|
121
|
-
# definitions.
|
122
|
-
#
|
123
|
-
# @param obj [Object]
|
124
|
-
# @return [Void]
|
125
|
-
def self.validate_raw(obj:)
|
126
|
-
obj.third_party_payer_refund_id.is_a?(String) != false || raise("Passed value for field obj.third_party_payer_refund_id is not the expected type, validation failed.")
|
127
|
-
CandidApiClient::ThirdPartyPayers::V1::Types::ThirdPartyPayer.validate_raw(obj: obj.third_party_payer)
|
128
|
-
obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
|
129
|
-
obj.refund_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.refund_timestamp is not the expected type, validation failed.")
|
130
|
-
obj.refund_note&.is_a?(String) != false || raise("Passed value for field obj.refund_note is not the expected type, validation failed.")
|
131
|
-
obj.allocations.is_a?(Array) != false || raise("Passed value for field obj.allocations is not the expected type, validation failed.")
|
132
|
-
obj.refund_reason&.is_a?(CandidApiClient::Financials::Types::RefundReason) != false || raise("Passed value for field obj.refund_reason is not the expected type, validation failed.")
|
133
|
-
obj.invoice_id&.is_a?(String) != false || raise("Passed value for field obj.invoice_id is not the expected type, validation failed.")
|
134
|
-
end
|
135
|
-
end
|
136
|
-
end
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund_create.rb
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "date"
|
4
|
-
require_relative "../../../financials/types/allocation_create"
|
5
|
-
require_relative "../../../financials/types/refund_reason"
|
6
|
-
require "ostruct"
|
7
|
-
require "json"
|
8
|
-
|
9
|
-
module CandidApiClient
|
10
|
-
module ThirdPartyPayerRefunds
|
11
|
-
module V1
|
12
|
-
module Types
|
13
|
-
class ThirdPartyPayerRefundCreate
|
14
|
-
# @return [String]
|
15
|
-
attr_reader :third_party_payer_id
|
16
|
-
# @return [String]
|
17
|
-
attr_reader :invoice_id
|
18
|
-
# @return [Integer]
|
19
|
-
attr_reader :amount_cents
|
20
|
-
# @return [DateTime]
|
21
|
-
attr_reader :refund_timestamp
|
22
|
-
# @return [String]
|
23
|
-
attr_reader :refund_note
|
24
|
-
# @return [Array<CandidApiClient::Financials::Types::AllocationCreate>]
|
25
|
-
attr_reader :allocations
|
26
|
-
# @return [CandidApiClient::Financials::Types::RefundReason]
|
27
|
-
attr_reader :refund_reason
|
28
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
-
attr_reader :additional_properties
|
30
|
-
# @return [Object]
|
31
|
-
attr_reader :_field_set
|
32
|
-
protected :_field_set
|
33
|
-
|
34
|
-
OMIT = Object.new
|
35
|
-
|
36
|
-
# @param third_party_payer_id [String]
|
37
|
-
# @param invoice_id [String]
|
38
|
-
# @param amount_cents [Integer]
|
39
|
-
# @param refund_timestamp [DateTime]
|
40
|
-
# @param refund_note [String]
|
41
|
-
# @param allocations [Array<CandidApiClient::Financials::Types::AllocationCreate>]
|
42
|
-
# @param refund_reason [CandidApiClient::Financials::Types::RefundReason]
|
43
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
44
|
-
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefundCreate]
|
45
|
-
def initialize(third_party_payer_id:, amount_cents:, allocations:, invoice_id: OMIT, refund_timestamp: OMIT,
|
46
|
-
refund_note: OMIT, refund_reason: OMIT, additional_properties: nil)
|
47
|
-
@third_party_payer_id = third_party_payer_id
|
48
|
-
@invoice_id = invoice_id if invoice_id != OMIT
|
49
|
-
@amount_cents = amount_cents
|
50
|
-
@refund_timestamp = refund_timestamp if refund_timestamp != OMIT
|
51
|
-
@refund_note = refund_note if refund_note != OMIT
|
52
|
-
@allocations = allocations
|
53
|
-
@refund_reason = refund_reason if refund_reason != OMIT
|
54
|
-
@additional_properties = additional_properties
|
55
|
-
@_field_set = {
|
56
|
-
"third_party_payer_id": third_party_payer_id,
|
57
|
-
"invoice_id": invoice_id,
|
58
|
-
"amount_cents": amount_cents,
|
59
|
-
"refund_timestamp": refund_timestamp,
|
60
|
-
"refund_note": refund_note,
|
61
|
-
"allocations": allocations,
|
62
|
-
"refund_reason": refund_reason
|
63
|
-
}.reject do |_k, v|
|
64
|
-
v == OMIT
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# Deserialize a JSON object to an instance of ThirdPartyPayerRefundCreate
|
69
|
-
#
|
70
|
-
# @param json_object [String]
|
71
|
-
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefundCreate]
|
72
|
-
def self.from_json(json_object:)
|
73
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
74
|
-
parsed_json = JSON.parse(json_object)
|
75
|
-
third_party_payer_id = struct["third_party_payer_id"]
|
76
|
-
invoice_id = struct["invoice_id"]
|
77
|
-
amount_cents = struct["amount_cents"]
|
78
|
-
refund_timestamp = unless parsed_json["refund_timestamp"].nil?
|
79
|
-
DateTime.parse(parsed_json["refund_timestamp"])
|
80
|
-
end
|
81
|
-
refund_note = struct["refund_note"]
|
82
|
-
allocations = parsed_json["allocations"]&.map do |item|
|
83
|
-
item = item.to_json
|
84
|
-
CandidApiClient::Financials::Types::AllocationCreate.from_json(json_object: item)
|
85
|
-
end
|
86
|
-
refund_reason = struct["refund_reason"]
|
87
|
-
new(
|
88
|
-
third_party_payer_id: third_party_payer_id,
|
89
|
-
invoice_id: invoice_id,
|
90
|
-
amount_cents: amount_cents,
|
91
|
-
refund_timestamp: refund_timestamp,
|
92
|
-
refund_note: refund_note,
|
93
|
-
allocations: allocations,
|
94
|
-
refund_reason: refund_reason,
|
95
|
-
additional_properties: struct
|
96
|
-
)
|
97
|
-
end
|
98
|
-
|
99
|
-
# Serialize an instance of ThirdPartyPayerRefundCreate to a JSON object
|
100
|
-
#
|
101
|
-
# @return [String]
|
102
|
-
def to_json(*_args)
|
103
|
-
@_field_set&.to_json
|
104
|
-
end
|
105
|
-
|
106
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
107
|
-
# hash and check each fields type against the current object's property
|
108
|
-
# definitions.
|
109
|
-
#
|
110
|
-
# @param obj [Object]
|
111
|
-
# @return [Void]
|
112
|
-
def self.validate_raw(obj:)
|
113
|
-
obj.third_party_payer_id.is_a?(String) != false || raise("Passed value for field obj.third_party_payer_id is not the expected type, validation failed.")
|
114
|
-
obj.invoice_id&.is_a?(String) != false || raise("Passed value for field obj.invoice_id is not the expected type, validation failed.")
|
115
|
-
obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
|
116
|
-
obj.refund_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.refund_timestamp is not the expected type, validation failed.")
|
117
|
-
obj.refund_note&.is_a?(String) != false || raise("Passed value for field obj.refund_note is not the expected type, validation failed.")
|
118
|
-
obj.allocations.is_a?(Array) != false || raise("Passed value for field obj.allocations is not the expected type, validation failed.")
|
119
|
-
obj.refund_reason&.is_a?(CandidApiClient::Financials::Types::RefundReason) != false || raise("Passed value for field obj.refund_reason is not the expected type, validation failed.")
|
120
|
-
end
|
121
|
-
end
|
122
|
-
end
|
123
|
-
end
|
124
|
-
end
|
125
|
-
end
|
data/lib/candidhealth/third_party_payer_refunds/v_1/types/third_party_payer_refund_sort_field.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module CandidApiClient
|
4
|
-
module ThirdPartyPayerRefunds
|
5
|
-
module V1
|
6
|
-
module Types
|
7
|
-
class ThirdPartyPayerRefundSortField
|
8
|
-
AMOUNT_CENTS = "amount_cents"
|
9
|
-
REFUND_TIMESTAMP = "refund_timestamp"
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,88 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "third_party_payer_refund"
|
4
|
-
require "ostruct"
|
5
|
-
require "json"
|
6
|
-
|
7
|
-
module CandidApiClient
|
8
|
-
module ThirdPartyPayerRefunds
|
9
|
-
module V1
|
10
|
-
module Types
|
11
|
-
class ThirdPartyPayerRefundsPage
|
12
|
-
# @return [Array<CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefund>]
|
13
|
-
attr_reader :items
|
14
|
-
# @return [String]
|
15
|
-
attr_reader :prev_page_token
|
16
|
-
# @return [String]
|
17
|
-
attr_reader :next_page_token
|
18
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
19
|
-
attr_reader :additional_properties
|
20
|
-
# @return [Object]
|
21
|
-
attr_reader :_field_set
|
22
|
-
protected :_field_set
|
23
|
-
|
24
|
-
OMIT = Object.new
|
25
|
-
|
26
|
-
# @param items [Array<CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefund>]
|
27
|
-
# @param prev_page_token [String]
|
28
|
-
# @param next_page_token [String]
|
29
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
30
|
-
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefundsPage]
|
31
|
-
def initialize(items:, prev_page_token: OMIT, next_page_token: OMIT, additional_properties: nil)
|
32
|
-
@items = items
|
33
|
-
@prev_page_token = prev_page_token if prev_page_token != OMIT
|
34
|
-
@next_page_token = next_page_token if next_page_token != OMIT
|
35
|
-
@additional_properties = additional_properties
|
36
|
-
@_field_set = {
|
37
|
-
"items": items,
|
38
|
-
"prev_page_token": prev_page_token,
|
39
|
-
"next_page_token": next_page_token
|
40
|
-
}.reject do |_k, v|
|
41
|
-
v == OMIT
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
# Deserialize a JSON object to an instance of ThirdPartyPayerRefundsPage
|
46
|
-
#
|
47
|
-
# @param json_object [String]
|
48
|
-
# @return [CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefundsPage]
|
49
|
-
def self.from_json(json_object:)
|
50
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
51
|
-
parsed_json = JSON.parse(json_object)
|
52
|
-
items = parsed_json["items"]&.map do |item|
|
53
|
-
item = item.to_json
|
54
|
-
CandidApiClient::ThirdPartyPayerRefunds::V1::Types::ThirdPartyPayerRefund.from_json(json_object: item)
|
55
|
-
end
|
56
|
-
prev_page_token = struct["prev_page_token"]
|
57
|
-
next_page_token = struct["next_page_token"]
|
58
|
-
new(
|
59
|
-
items: items,
|
60
|
-
prev_page_token: prev_page_token,
|
61
|
-
next_page_token: next_page_token,
|
62
|
-
additional_properties: struct
|
63
|
-
)
|
64
|
-
end
|
65
|
-
|
66
|
-
# Serialize an instance of ThirdPartyPayerRefundsPage to a JSON object
|
67
|
-
#
|
68
|
-
# @return [String]
|
69
|
-
def to_json(*_args)
|
70
|
-
@_field_set&.to_json
|
71
|
-
end
|
72
|
-
|
73
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
74
|
-
# hash and check each fields type against the current object's property
|
75
|
-
# definitions.
|
76
|
-
#
|
77
|
-
# @param obj [Object]
|
78
|
-
# @return [Void]
|
79
|
-
def self.validate_raw(obj:)
|
80
|
-
obj.items.is_a?(Array) != false || raise("Passed value for field obj.items is not the expected type, validation failed.")
|
81
|
-
obj.prev_page_token&.is_a?(String) != false || raise("Passed value for field obj.prev_page_token is not the expected type, validation failed.")
|
82
|
-
obj.next_page_token&.is_a?(String) != false || raise("Passed value for field obj.next_page_token is not the expected type, validation failed.")
|
83
|
-
end
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
87
|
-
end
|
88
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "../../requests"
|
4
|
-
require_relative "v_1/client"
|
5
|
-
|
6
|
-
module CandidApiClient
|
7
|
-
module ThirdPartyPayers
|
8
|
-
class Client
|
9
|
-
# @return [CandidApiClient::ThirdPartyPayers::V1::V1Client]
|
10
|
-
attr_reader :v_1
|
11
|
-
|
12
|
-
# @param request_client [CandidApiClient::RequestClient]
|
13
|
-
# @return [CandidApiClient::ThirdPartyPayers::Client]
|
14
|
-
def initialize(request_client:)
|
15
|
-
@v_1 = CandidApiClient::ThirdPartyPayers::V1::V1Client.new(request_client: request_client)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
class AsyncClient
|
20
|
-
# @return [CandidApiClient::ThirdPartyPayers::V1::AsyncV1Client]
|
21
|
-
attr_reader :v_1
|
22
|
-
|
23
|
-
# @param request_client [CandidApiClient::AsyncRequestClient]
|
24
|
-
# @return [CandidApiClient::ThirdPartyPayers::AsyncClient]
|
25
|
-
def initialize(request_client:)
|
26
|
-
@v_1 = CandidApiClient::ThirdPartyPayers::V1::AsyncV1Client.new(request_client: request_client)
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|