candidhealth 1.8.0 → 1.8.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.
@@ -29,6 +29,8 @@ module CandidApiClient
29
29
  attr_reader :email
30
30
  # @return [Boolean]
31
31
  attr_reader :email_consent
32
+ # @return [Boolean]
33
+ attr_reader :auto_charge_consent
32
34
  # @return [OpenStruct] Additional properties unmapped to the current class definition
33
35
  attr_reader :additional_properties
34
36
  # @return [Object]
@@ -46,10 +48,11 @@ module CandidApiClient
46
48
  # @param phone_consent [Boolean]
47
49
  # @param email [String]
48
50
  # @param email_consent [Boolean]
51
+ # @param auto_charge_consent [Boolean]
49
52
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
50
53
  # @return [CandidApiClient::Guarantor::V1::Types::GuarantorOptional]
51
54
  def initialize(first_name: OMIT, last_name: OMIT, external_id: OMIT, date_of_birth: OMIT, address: OMIT,
52
- phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, additional_properties: nil)
55
+ phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, additional_properties: nil)
53
56
  @first_name = first_name if first_name != OMIT
54
57
  @last_name = last_name if last_name != OMIT
55
58
  @external_id = external_id if external_id != OMIT
@@ -59,6 +62,7 @@ module CandidApiClient
59
62
  @phone_consent = phone_consent if phone_consent != OMIT
60
63
  @email = email if email != OMIT
61
64
  @email_consent = email_consent if email_consent != OMIT
65
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
62
66
  @additional_properties = additional_properties
63
67
  @_field_set = {
64
68
  "first_name": first_name,
@@ -69,7 +73,8 @@ module CandidApiClient
69
73
  "phone_numbers": phone_numbers,
70
74
  "phone_consent": phone_consent,
71
75
  "email": email,
72
- "email_consent": email_consent
76
+ "email_consent": email_consent,
77
+ "auto_charge_consent": auto_charge_consent
73
78
  }.reject do |_k, v|
74
79
  v == OMIT
75
80
  end
@@ -99,6 +104,7 @@ module CandidApiClient
99
104
  phone_consent = struct["phone_consent"]
100
105
  email = struct["email"]
101
106
  email_consent = struct["email_consent"]
107
+ auto_charge_consent = struct["auto_charge_consent"]
102
108
  new(
103
109
  first_name: first_name,
104
110
  last_name: last_name,
@@ -109,6 +115,7 @@ module CandidApiClient
109
115
  phone_consent: phone_consent,
110
116
  email: email,
111
117
  email_consent: email_consent,
118
+ auto_charge_consent: auto_charge_consent,
112
119
  additional_properties: struct
113
120
  )
114
121
  end
@@ -136,6 +143,7 @@ module CandidApiClient
136
143
  obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
137
144
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
138
145
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
146
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
139
147
  end
140
148
  end
141
149
  end
@@ -29,6 +29,8 @@ module CandidApiClient
29
29
  attr_reader :email
30
30
  # @return [Boolean]
31
31
  attr_reader :email_consent
32
+ # @return [Boolean]
33
+ attr_reader :auto_charge_consent
32
34
  # @return [OpenStruct] Additional properties unmapped to the current class definition
33
35
  attr_reader :additional_properties
34
36
  # @return [Object]
@@ -46,10 +48,11 @@ module CandidApiClient
46
48
  # @param phone_consent [Boolean]
47
49
  # @param email [String]
48
50
  # @param email_consent [Boolean]
51
+ # @param auto_charge_consent [Boolean]
49
52
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
50
53
  # @return [CandidApiClient::Guarantor::V1::Types::GuarantorUpdate]
51
54
  def initialize(first_name: OMIT, last_name: OMIT, external_id: OMIT, date_of_birth: OMIT, address: OMIT,
52
- phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, additional_properties: nil)
55
+ phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, additional_properties: nil)
53
56
  @first_name = first_name if first_name != OMIT
54
57
  @last_name = last_name if last_name != OMIT
55
58
  @external_id = external_id if external_id != OMIT
@@ -59,6 +62,7 @@ module CandidApiClient
59
62
  @phone_consent = phone_consent if phone_consent != OMIT
60
63
  @email = email if email != OMIT
61
64
  @email_consent = email_consent if email_consent != OMIT
65
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
62
66
  @additional_properties = additional_properties
63
67
  @_field_set = {
64
68
  "first_name": first_name,
@@ -69,7 +73,8 @@ module CandidApiClient
69
73
  "phone_numbers": phone_numbers,
70
74
  "phone_consent": phone_consent,
71
75
  "email": email,
72
- "email_consent": email_consent
76
+ "email_consent": email_consent,
77
+ "auto_charge_consent": auto_charge_consent
73
78
  }.reject do |_k, v|
74
79
  v == OMIT
75
80
  end
@@ -99,6 +104,7 @@ module CandidApiClient
99
104
  phone_consent = struct["phone_consent"]
100
105
  email = struct["email"]
101
106
  email_consent = struct["email_consent"]
107
+ auto_charge_consent = struct["auto_charge_consent"]
102
108
  new(
103
109
  first_name: first_name,
104
110
  last_name: last_name,
@@ -109,6 +115,7 @@ module CandidApiClient
109
115
  phone_consent: phone_consent,
110
116
  email: email,
111
117
  email_consent: email_consent,
118
+ auto_charge_consent: auto_charge_consent,
112
119
  additional_properties: struct
113
120
  )
114
121
  end
@@ -136,6 +143,7 @@ module CandidApiClient
136
143
  obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
137
144
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
138
145
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
146
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
139
147
  end
140
148
  end
141
149
  end
@@ -23,6 +23,8 @@ module CandidApiClient
23
23
  attr_reader :email
24
24
  # @return [Boolean]
25
25
  attr_reader :email_consent
26
+ # @return [Boolean]
27
+ attr_reader :auto_charge_consent
26
28
  # @return [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
27
29
  attr_reader :non_insurance_payers
28
30
  # @return [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
@@ -54,6 +56,7 @@ module CandidApiClient
54
56
  # @param phone_consent [Boolean]
55
57
  # @param email [String]
56
58
  # @param email_consent [Boolean]
59
+ # @param auto_charge_consent [Boolean]
57
60
  # @param non_insurance_payers [Array<CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer>]
58
61
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfo>]
59
62
  # @param external_id [String] The ID used to identify this individual in your system. For example, your
@@ -66,13 +69,14 @@ module CandidApiClient
66
69
  # @param gender [CandidApiClient::Individual::Types::Gender]
67
70
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
68
71
  # @return [CandidApiClient::Individual::Types::Patient]
69
- def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, non_insurance_payers:,
70
- non_insurance_payers_info:, external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT, additional_properties: nil)
72
+ def initialize(individual_id:, phone_numbers:, phone_consent:, email_consent:, non_insurance_payers:, non_insurance_payers_info:, external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, email: OMIT,
73
+ auto_charge_consent: OMIT, additional_properties: nil)
71
74
  @individual_id = individual_id
72
75
  @phone_numbers = phone_numbers
73
76
  @phone_consent = phone_consent
74
77
  @email = email if email != OMIT
75
78
  @email_consent = email_consent
79
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
76
80
  @non_insurance_payers = non_insurance_payers
77
81
  @non_insurance_payers_info = non_insurance_payers_info
78
82
  @external_id = external_id
@@ -88,6 +92,7 @@ module CandidApiClient
88
92
  "phone_consent": phone_consent,
89
93
  "email": email,
90
94
  "email_consent": email_consent,
95
+ "auto_charge_consent": auto_charge_consent,
91
96
  "non_insurance_payers": non_insurance_payers,
92
97
  "non_insurance_payers_info": non_insurance_payers_info,
93
98
  "external_id": external_id,
@@ -116,6 +121,7 @@ module CandidApiClient
116
121
  phone_consent = struct["phone_consent"]
117
122
  email = struct["email"]
118
123
  email_consent = struct["email_consent"]
124
+ auto_charge_consent = struct["auto_charge_consent"]
119
125
  non_insurance_payers = parsed_json["non_insurance_payers"]&.map do |item|
120
126
  item = item.to_json
121
127
  CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer.from_json(json_object: item)
@@ -141,6 +147,7 @@ module CandidApiClient
141
147
  phone_consent: phone_consent,
142
148
  email: email,
143
149
  email_consent: email_consent,
150
+ auto_charge_consent: auto_charge_consent,
144
151
  non_insurance_payers: non_insurance_payers,
145
152
  non_insurance_payers_info: non_insurance_payers_info,
146
153
  external_id: external_id,
@@ -172,6 +179,7 @@ module CandidApiClient
172
179
  obj.phone_consent.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
173
180
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
174
181
  obj.email_consent.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
182
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
175
183
  obj.non_insurance_payers.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
176
184
  obj.non_insurance_payers_info.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
177
185
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
@@ -24,6 +24,8 @@ module CandidApiClient
24
24
  attr_reader :non_insurance_payers_info
25
25
  # @return [Boolean] Defaults to false
26
26
  attr_reader :email_consent
27
+ # @return [Boolean] Defaults to false
28
+ attr_reader :auto_charge_consent
27
29
  # @return [String] The ID used to identify this individual in your system. For example, your
28
30
  # internal patient ID or an EHR patient ID.
29
31
  attr_reader :external_id
@@ -52,6 +54,7 @@ module CandidApiClient
52
54
  # @param non_insurance_payers [Array<String>]
53
55
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>]
54
56
  # @param email_consent [Boolean] Defaults to false
57
+ # @param auto_charge_consent [Boolean] Defaults to false
55
58
  # @param external_id [String] The ID used to identify this individual in your system. For example, your
56
59
  # internal patient ID or an EHR patient ID.
57
60
  # @param date_of_birth [Date] Box 3 on the CMS-1500 claim form or Form Locator 10 on a UB-04 claim form. The
@@ -63,13 +66,14 @@ module CandidApiClient
63
66
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
64
67
  # @return [CandidApiClient::Individual::Types::PatientCreate]
65
68
  def initialize(external_id:, date_of_birth:, address:, first_name:, last_name:, gender:, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, non_insurance_payers: OMIT,
66
- non_insurance_payers_info: OMIT, email_consent: OMIT, additional_properties: nil)
69
+ non_insurance_payers_info: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, additional_properties: nil)
67
70
  @phone_numbers = phone_numbers if phone_numbers != OMIT
68
71
  @phone_consent = phone_consent if phone_consent != OMIT
69
72
  @email = email if email != OMIT
70
73
  @non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
71
74
  @non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
72
75
  @email_consent = email_consent if email_consent != OMIT
76
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
73
77
  @external_id = external_id
74
78
  @date_of_birth = date_of_birth
75
79
  @address = address
@@ -84,6 +88,7 @@ module CandidApiClient
84
88
  "non_insurance_payers": non_insurance_payers,
85
89
  "non_insurance_payers_info": non_insurance_payers_info,
86
90
  "email_consent": email_consent,
91
+ "auto_charge_consent": auto_charge_consent,
87
92
  "external_id": external_id,
88
93
  "date_of_birth": date_of_birth,
89
94
  "address": address,
@@ -114,6 +119,7 @@ module CandidApiClient
114
119
  CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate.from_json(json_object: item)
115
120
  end
116
121
  email_consent = struct["email_consent"]
122
+ auto_charge_consent = struct["auto_charge_consent"]
117
123
  external_id = struct["external_id"]
118
124
  date_of_birth = (Date.parse(parsed_json["date_of_birth"]) unless parsed_json["date_of_birth"].nil?)
119
125
  if parsed_json["address"].nil?
@@ -132,6 +138,7 @@ module CandidApiClient
132
138
  non_insurance_payers: non_insurance_payers,
133
139
  non_insurance_payers_info: non_insurance_payers_info,
134
140
  email_consent: email_consent,
141
+ auto_charge_consent: auto_charge_consent,
135
142
  external_id: external_id,
136
143
  date_of_birth: date_of_birth,
137
144
  address: address,
@@ -162,6 +169,7 @@ module CandidApiClient
162
169
  obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
163
170
  obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
164
171
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
172
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
165
173
  obj.external_id.is_a?(String) != false || raise("Passed value for field obj.external_id is not the expected type, validation failed.")
166
174
  obj.date_of_birth.is_a?(Date) != false || raise("Passed value for field obj.date_of_birth is not the expected type, validation failed.")
167
175
  CandidApiClient::Commons::Types::StreetAddressShortZip.validate_raw(obj: obj.address)
@@ -34,6 +34,8 @@ module CandidApiClient
34
34
  attr_reader :email
35
35
  # @return [Boolean]
36
36
  attr_reader :email_consent
37
+ # @return [Boolean]
38
+ attr_reader :auto_charge_consent
37
39
  # @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
38
40
  # new list if populated.
39
41
  attr_reader :non_insurance_payers
@@ -60,6 +62,7 @@ module CandidApiClient
60
62
  # @param phone_consent [Boolean]
61
63
  # @param email [String]
62
64
  # @param email_consent [Boolean]
65
+ # @param auto_charge_consent [Boolean]
63
66
  # @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
64
67
  # new list if populated.
65
68
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreate>] On update, we will replace the existing list of non-insurance payers with the
@@ -67,7 +70,7 @@ module CandidApiClient
67
70
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
68
71
  # @return [CandidApiClient::Individual::Types::PatientUpdate]
69
72
  def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
70
- address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
73
+ address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
71
74
  @first_name = first_name if first_name != OMIT
72
75
  @last_name = last_name if last_name != OMIT
73
76
  @gender = gender if gender != OMIT
@@ -78,6 +81,7 @@ module CandidApiClient
78
81
  @phone_consent = phone_consent if phone_consent != OMIT
79
82
  @email = email if email != OMIT
80
83
  @email_consent = email_consent if email_consent != OMIT
84
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
81
85
  @non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
82
86
  @non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
83
87
  @additional_properties = additional_properties
@@ -92,6 +96,7 @@ module CandidApiClient
92
96
  "phone_consent": phone_consent,
93
97
  "email": email,
94
98
  "email_consent": email_consent,
99
+ "auto_charge_consent": auto_charge_consent,
95
100
  "non_insurance_payers": non_insurance_payers,
96
101
  "non_insurance_payers_info": non_insurance_payers_info
97
102
  }.reject do |_k, v|
@@ -124,6 +129,7 @@ module CandidApiClient
124
129
  phone_consent = struct["phone_consent"]
125
130
  email = struct["email"]
126
131
  email_consent = struct["email_consent"]
132
+ auto_charge_consent = struct["auto_charge_consent"]
127
133
  non_insurance_payers = struct["non_insurance_payers"]
128
134
  non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
129
135
  item = item.to_json
@@ -140,6 +146,7 @@ module CandidApiClient
140
146
  phone_consent: phone_consent,
141
147
  email: email,
142
148
  email_consent: email_consent,
149
+ auto_charge_consent: auto_charge_consent,
143
150
  non_insurance_payers: non_insurance_payers,
144
151
  non_insurance_payers_info: non_insurance_payers_info,
145
152
  additional_properties: struct
@@ -170,6 +177,7 @@ module CandidApiClient
170
177
  obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
171
178
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
172
179
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
180
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
173
181
  obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
174
182
  obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
175
183
  end
@@ -34,6 +34,8 @@ module CandidApiClient
34
34
  attr_reader :email
35
35
  # @return [Boolean]
36
36
  attr_reader :email_consent
37
+ # @return [Boolean]
38
+ attr_reader :auto_charge_consent
37
39
  # @return [Array<String>] On update, we will replace the existing list of non-insurance payers with the
38
40
  # new list if populated.
39
41
  attr_reader :non_insurance_payers
@@ -60,6 +62,7 @@ module CandidApiClient
60
62
  # @param phone_consent [Boolean]
61
63
  # @param email [String]
62
64
  # @param email_consent [Boolean]
65
+ # @param auto_charge_consent [Boolean]
63
66
  # @param non_insurance_payers [Array<String>] On update, we will replace the existing list of non-insurance payers with the
64
67
  # new list if populated.
65
68
  # @param non_insurance_payers_info [Array<CandidApiClient::Individual::Types::PatientNonInsurancePayerInfoCreateOptional>] On update, we will replace the existing list of non-insurance payers with the
@@ -67,7 +70,7 @@ module CandidApiClient
67
70
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
68
71
  # @return [CandidApiClient::Individual::Types::PatientUpdateWithOptionalAddress]
69
72
  def initialize(first_name: OMIT, last_name: OMIT, gender: OMIT, external_id: OMIT, date_of_birth: OMIT,
70
- address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
73
+ address: OMIT, phone_numbers: OMIT, phone_consent: OMIT, email: OMIT, email_consent: OMIT, auto_charge_consent: OMIT, non_insurance_payers: OMIT, non_insurance_payers_info: OMIT, additional_properties: nil)
71
74
  @first_name = first_name if first_name != OMIT
72
75
  @last_name = last_name if last_name != OMIT
73
76
  @gender = gender if gender != OMIT
@@ -78,6 +81,7 @@ module CandidApiClient
78
81
  @phone_consent = phone_consent if phone_consent != OMIT
79
82
  @email = email if email != OMIT
80
83
  @email_consent = email_consent if email_consent != OMIT
84
+ @auto_charge_consent = auto_charge_consent if auto_charge_consent != OMIT
81
85
  @non_insurance_payers = non_insurance_payers if non_insurance_payers != OMIT
82
86
  @non_insurance_payers_info = non_insurance_payers_info if non_insurance_payers_info != OMIT
83
87
  @additional_properties = additional_properties
@@ -92,6 +96,7 @@ module CandidApiClient
92
96
  "phone_consent": phone_consent,
93
97
  "email": email,
94
98
  "email_consent": email_consent,
99
+ "auto_charge_consent": auto_charge_consent,
95
100
  "non_insurance_payers": non_insurance_payers,
96
101
  "non_insurance_payers_info": non_insurance_payers_info
97
102
  }.reject do |_k, v|
@@ -124,6 +129,7 @@ module CandidApiClient
124
129
  phone_consent = struct["phone_consent"]
125
130
  email = struct["email"]
126
131
  email_consent = struct["email_consent"]
132
+ auto_charge_consent = struct["auto_charge_consent"]
127
133
  non_insurance_payers = struct["non_insurance_payers"]
128
134
  non_insurance_payers_info = parsed_json["non_insurance_payers_info"]&.map do |item|
129
135
  item = item.to_json
@@ -140,6 +146,7 @@ module CandidApiClient
140
146
  phone_consent: phone_consent,
141
147
  email: email,
142
148
  email_consent: email_consent,
149
+ auto_charge_consent: auto_charge_consent,
143
150
  non_insurance_payers: non_insurance_payers,
144
151
  non_insurance_payers_info: non_insurance_payers_info,
145
152
  additional_properties: struct
@@ -170,6 +177,7 @@ module CandidApiClient
170
177
  obj.phone_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.phone_consent is not the expected type, validation failed.")
171
178
  obj.email&.is_a?(String) != false || raise("Passed value for field obj.email is not the expected type, validation failed.")
172
179
  obj.email_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.email_consent is not the expected type, validation failed.")
180
+ obj.auto_charge_consent&.is_a?(Boolean) != false || raise("Passed value for field obj.auto_charge_consent is not the expected type, validation failed.")
173
181
  obj.non_insurance_payers&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers is not the expected type, validation failed.")
174
182
  obj.non_insurance_payers_info&.is_a?(Array) != false || raise("Passed value for field obj.non_insurance_payers_info is not the expected type, validation failed.")
175
183
  end
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative "payer_ids"
4
+ require_relative "support_state"
4
5
  require "ostruct"
5
6
  require "json"
6
7
 
@@ -15,6 +16,14 @@ module CandidApiClient
15
16
  attr_reader :professional_payer_ids
16
17
  # @return [CandidApiClient::Payers::V4::Types::PayerIds] Payer IDs for institutional claims
17
18
  attr_reader :institutional_payer_ids
19
+ # @return [CandidApiClient::Payers::V4::Types::SupportState] The support state for claims submission
20
+ attr_reader :professional_claims_support
21
+ # @return [CandidApiClient::Payers::V4::Types::SupportState] The support state for institutional claims submission
22
+ attr_reader :institutional_claims_support
23
+ # @return [CandidApiClient::Payers::V4::Types::SupportState] The support state for eligibility
24
+ attr_reader :eligibility_support
25
+ # @return [CandidApiClient::Payers::V4::Types::SupportState] The support state for remittance
26
+ attr_reader :remittance_support
18
27
  # @return [OpenStruct] Additional properties unmapped to the current class definition
19
28
  attr_reader :additional_properties
20
29
  # @return [Object]
@@ -26,17 +35,30 @@ module CandidApiClient
26
35
  # @param payer_name [String] The clearinghouse display name of the payer.
27
36
  # @param professional_payer_ids [CandidApiClient::Payers::V4::Types::PayerIds] Payer IDs for professional claims
28
37
  # @param institutional_payer_ids [CandidApiClient::Payers::V4::Types::PayerIds] Payer IDs for institutional claims
38
+ # @param professional_claims_support [CandidApiClient::Payers::V4::Types::SupportState] The support state for claims submission
39
+ # @param institutional_claims_support [CandidApiClient::Payers::V4::Types::SupportState] The support state for institutional claims submission
40
+ # @param eligibility_support [CandidApiClient::Payers::V4::Types::SupportState] The support state for eligibility
41
+ # @param remittance_support [CandidApiClient::Payers::V4::Types::SupportState] The support state for remittance
29
42
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
30
43
  # @return [CandidApiClient::Payers::V4::Types::ClearinghousePayerInfo]
31
- def initialize(payer_name:, professional_payer_ids:, institutional_payer_ids:, additional_properties: nil)
44
+ def initialize(payer_name:, professional_payer_ids:, institutional_payer_ids:, professional_claims_support:,
45
+ institutional_claims_support:, eligibility_support:, remittance_support:, additional_properties: nil)
32
46
  @payer_name = payer_name
33
47
  @professional_payer_ids = professional_payer_ids
34
48
  @institutional_payer_ids = institutional_payer_ids
49
+ @professional_claims_support = professional_claims_support
50
+ @institutional_claims_support = institutional_claims_support
51
+ @eligibility_support = eligibility_support
52
+ @remittance_support = remittance_support
35
53
  @additional_properties = additional_properties
36
54
  @_field_set = {
37
55
  "payer_name": payer_name,
38
56
  "professional_payer_ids": professional_payer_ids,
39
- "institutional_payer_ids": institutional_payer_ids
57
+ "institutional_payer_ids": institutional_payer_ids,
58
+ "professional_claims_support": professional_claims_support,
59
+ "institutional_claims_support": institutional_claims_support,
60
+ "eligibility_support": eligibility_support,
61
+ "remittance_support": remittance_support
40
62
  }
41
63
  end
42
64
 
@@ -60,10 +82,18 @@ module CandidApiClient
60
82
  institutional_payer_ids = parsed_json["institutional_payer_ids"].to_json
61
83
  institutional_payer_ids = CandidApiClient::Payers::V4::Types::PayerIds.from_json(json_object: institutional_payer_ids)
62
84
  end
85
+ professional_claims_support = struct["professional_claims_support"]
86
+ institutional_claims_support = struct["institutional_claims_support"]
87
+ eligibility_support = struct["eligibility_support"]
88
+ remittance_support = struct["remittance_support"]
63
89
  new(
64
90
  payer_name: payer_name,
65
91
  professional_payer_ids: professional_payer_ids,
66
92
  institutional_payer_ids: institutional_payer_ids,
93
+ professional_claims_support: professional_claims_support,
94
+ institutional_claims_support: institutional_claims_support,
95
+ eligibility_support: eligibility_support,
96
+ remittance_support: remittance_support,
67
97
  additional_properties: struct
68
98
  )
69
99
  end
@@ -85,6 +115,10 @@ module CandidApiClient
85
115
  obj.payer_name.is_a?(String) != false || raise("Passed value for field obj.payer_name is not the expected type, validation failed.")
86
116
  CandidApiClient::Payers::V4::Types::PayerIds.validate_raw(obj: obj.professional_payer_ids)
87
117
  CandidApiClient::Payers::V4::Types::PayerIds.validate_raw(obj: obj.institutional_payer_ids)
118
+ obj.professional_claims_support.is_a?(CandidApiClient::Payers::V4::Types::SupportState) != false || raise("Passed value for field obj.professional_claims_support is not the expected type, validation failed.")
119
+ obj.institutional_claims_support.is_a?(CandidApiClient::Payers::V4::Types::SupportState) != false || raise("Passed value for field obj.institutional_claims_support is not the expected type, validation failed.")
120
+ obj.eligibility_support.is_a?(CandidApiClient::Payers::V4::Types::SupportState) != false || raise("Passed value for field obj.eligibility_support is not the expected type, validation failed.")
121
+ obj.remittance_support.is_a?(CandidApiClient::Payers::V4::Types::SupportState) != false || raise("Passed value for field obj.remittance_support is not the expected type, validation failed.")
88
122
  end
89
123
  end
90
124
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "payer_ids"
3
+ require_relative "primary_payer_ids"
4
4
  require_relative "../../../commons/types/street_address_long_zip"
5
5
  require "ostruct"
6
6
  require "json"
@@ -12,7 +12,7 @@ module CandidApiClient
12
12
  class Payer
13
13
  # @return [String] Auto-generated ID set on creation.
14
14
  attr_reader :payer_uuid
15
- # @return [CandidApiClient::Payers::V4::Types::PayerIds] The primary national payer IDs of the payer.
15
+ # @return [CandidApiClient::Payers::V4::Types::PrimaryPayerIds] The primary national payer IDs of the payer.
16
16
  attr_reader :payer_ids
17
17
  # @return [String] The primary display name of the payer.
18
18
  attr_reader :payer_name
@@ -29,7 +29,7 @@ module CandidApiClient
29
29
  OMIT = Object.new
30
30
 
31
31
  # @param payer_uuid [String] Auto-generated ID set on creation.
32
- # @param payer_ids [CandidApiClient::Payers::V4::Types::PayerIds] The primary national payer IDs of the payer.
32
+ # @param payer_ids [CandidApiClient::Payers::V4::Types::PrimaryPayerIds] The primary national payer IDs of the payer.
33
33
  # @param payer_name [String] The primary display name of the payer.
34
34
  # @param clearinghouse_payer_info [Hash{CandidApiClient::Commons::Types::Clearinghouse => CandidApiClient::Payers::V4::Types::ClearinghousePayerInfo}]
35
35
  # @param street_address [CandidApiClient::Commons::Types::StreetAddressLongZip]
@@ -66,7 +66,7 @@ module CandidApiClient
66
66
  payer_ids = nil
67
67
  else
68
68
  payer_ids = parsed_json["payer_ids"].to_json
69
- payer_ids = CandidApiClient::Payers::V4::Types::PayerIds.from_json(json_object: payer_ids)
69
+ payer_ids = CandidApiClient::Payers::V4::Types::PrimaryPayerIds.from_json(json_object: payer_ids)
70
70
  end
71
71
  payer_name = struct["payer_name"]
72
72
  clearinghouse_payer_info = parsed_json["clearinghouse_payer_info"]&.transform_values do |value|
@@ -104,7 +104,7 @@ module CandidApiClient
104
104
  # @return [Void]
105
105
  def self.validate_raw(obj:)
106
106
  obj.payer_uuid.is_a?(String) != false || raise("Passed value for field obj.payer_uuid is not the expected type, validation failed.")
107
- CandidApiClient::Payers::V4::Types::PayerIds.validate_raw(obj: obj.payer_ids)
107
+ CandidApiClient::Payers::V4::Types::PrimaryPayerIds.validate_raw(obj: obj.payer_ids)
108
108
  obj.payer_name.is_a?(String) != false || raise("Passed value for field obj.payer_name is not the expected type, validation failed.")
109
109
  obj.clearinghouse_payer_info.is_a?(Hash) != false || raise("Passed value for field obj.clearinghouse_payer_info is not the expected type, validation failed.")
110
110
  obj.street_address.nil? || CandidApiClient::Commons::Types::StreetAddressLongZip.validate_raw(obj: obj.street_address)
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require_relative "support_state"
4
3
  require "ostruct"
5
4
  require "json"
6
5
 
@@ -15,12 +14,6 @@ module CandidApiClient
15
14
  attr_reader :eligibility_payer_id
16
15
  # @return [String] The payer ID for remittance
17
16
  attr_reader :remittance_payer_id
18
- # @return [CandidApiClient::Payers::V4::Types::SupportState] The support state for claims submission
19
- attr_reader :claims_support
20
- # @return [CandidApiClient::Payers::V4::Types::SupportState] The support state for eligibility
21
- attr_reader :eligibility_support
22
- # @return [CandidApiClient::Payers::V4::Types::SupportState] The support state for remittance
23
- attr_reader :remittance_support
24
17
  # @return [OpenStruct] Additional properties unmapped to the current class definition
25
18
  attr_reader :additional_properties
26
19
  # @return [Object]
@@ -32,28 +25,21 @@ module CandidApiClient
32
25
  # @param claims_payer_id [String] The payer ID for claim submission
33
26
  # @param eligibility_payer_id [String] The payer ID for eligibility
34
27
  # @param remittance_payer_id [String] The payer ID for remittance
35
- # @param claims_support [CandidApiClient::Payers::V4::Types::SupportState] The support state for claims submission
36
- # @param eligibility_support [CandidApiClient::Payers::V4::Types::SupportState] The support state for eligibility
37
- # @param remittance_support [CandidApiClient::Payers::V4::Types::SupportState] The support state for remittance
38
28
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
39
29
  # @return [CandidApiClient::Payers::V4::Types::PayerIds]
40
- def initialize(claims_payer_id:, eligibility_payer_id:, remittance_payer_id:, claims_support:,
41
- eligibility_support:, remittance_support:, additional_properties: nil)
42
- @claims_payer_id = claims_payer_id
43
- @eligibility_payer_id = eligibility_payer_id
44
- @remittance_payer_id = remittance_payer_id
45
- @claims_support = claims_support
46
- @eligibility_support = eligibility_support
47
- @remittance_support = remittance_support
30
+ def initialize(claims_payer_id: OMIT, eligibility_payer_id: OMIT, remittance_payer_id: OMIT,
31
+ additional_properties: nil)
32
+ @claims_payer_id = claims_payer_id if claims_payer_id != OMIT
33
+ @eligibility_payer_id = eligibility_payer_id if eligibility_payer_id != OMIT
34
+ @remittance_payer_id = remittance_payer_id if remittance_payer_id != OMIT
48
35
  @additional_properties = additional_properties
49
36
  @_field_set = {
50
37
  "claims_payer_id": claims_payer_id,
51
38
  "eligibility_payer_id": eligibility_payer_id,
52
- "remittance_payer_id": remittance_payer_id,
53
- "claims_support": claims_support,
54
- "eligibility_support": eligibility_support,
55
- "remittance_support": remittance_support
56
- }
39
+ "remittance_payer_id": remittance_payer_id
40
+ }.reject do |_k, v|
41
+ v == OMIT
42
+ end
57
43
  end
58
44
 
59
45
  # Deserialize a JSON object to an instance of PayerIds
@@ -65,16 +51,10 @@ module CandidApiClient
65
51
  claims_payer_id = struct["claims_payer_id"]
66
52
  eligibility_payer_id = struct["eligibility_payer_id"]
67
53
  remittance_payer_id = struct["remittance_payer_id"]
68
- claims_support = struct["claims_support"]
69
- eligibility_support = struct["eligibility_support"]
70
- remittance_support = struct["remittance_support"]
71
54
  new(
72
55
  claims_payer_id: claims_payer_id,
73
56
  eligibility_payer_id: eligibility_payer_id,
74
57
  remittance_payer_id: remittance_payer_id,
75
- claims_support: claims_support,
76
- eligibility_support: eligibility_support,
77
- remittance_support: remittance_support,
78
58
  additional_properties: struct
79
59
  )
80
60
  end
@@ -93,12 +73,9 @@ module CandidApiClient
93
73
  # @param obj [Object]
94
74
  # @return [Void]
95
75
  def self.validate_raw(obj:)
96
- obj.claims_payer_id.is_a?(String) != false || raise("Passed value for field obj.claims_payer_id is not the expected type, validation failed.")
97
- obj.eligibility_payer_id.is_a?(String) != false || raise("Passed value for field obj.eligibility_payer_id is not the expected type, validation failed.")
98
- obj.remittance_payer_id.is_a?(String) != false || raise("Passed value for field obj.remittance_payer_id is not the expected type, validation failed.")
99
- obj.claims_support.is_a?(CandidApiClient::Payers::V4::Types::SupportState) != false || raise("Passed value for field obj.claims_support is not the expected type, validation failed.")
100
- obj.eligibility_support.is_a?(CandidApiClient::Payers::V4::Types::SupportState) != false || raise("Passed value for field obj.eligibility_support is not the expected type, validation failed.")
101
- obj.remittance_support.is_a?(CandidApiClient::Payers::V4::Types::SupportState) != false || raise("Passed value for field obj.remittance_support is not the expected type, validation failed.")
76
+ obj.claims_payer_id&.is_a?(String) != false || raise("Passed value for field obj.claims_payer_id is not the expected type, validation failed.")
77
+ obj.eligibility_payer_id&.is_a?(String) != false || raise("Passed value for field obj.eligibility_payer_id is not the expected type, validation failed.")
78
+ obj.remittance_payer_id&.is_a?(String) != false || raise("Passed value for field obj.remittance_payer_id is not the expected type, validation failed.")
102
79
  end
103
80
  end
104
81
  end