candidhealth 0.35.3 → 0.36.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 322bb186b5d934fa214e4211428784e97434a7a8306c6c670f4f4fc59d1a6a8d
4
- data.tar.gz: 6ee5bb4e1ec74cbaca7d0f1abb83fed9b64bc832c82a89123c110a76c4b3935b
3
+ metadata.gz: a7e992a2b12bd9431fb6effc7495b7b5529c6d36b5f46624afbe8da9df35d16e
4
+ data.tar.gz: 50b43204c9b97e31aa10efeee3b5b3d2bd99f3f5bdea2521eeef75028d55fd56
5
5
  SHA512:
6
- metadata.gz: 00fbc482e506e72028c476115e64f700867a012c8815c243e14ffe9c74197eb93507cb51972f315f279bba7d8630e32a16718c81ad86ecbe4b124a942e7c7631
7
- data.tar.gz: 8cb7ace54e4a5b6a45bdb53a7520977cf0597d39701d97dead9d8edf7e980bffe15ade49fdcfa41811a356853c5eeb06f1ea433cb92d9bf318c663aff88d8579
6
+ metadata.gz: d8f070e1852e25e4e0bfd41c4ddf535e8553ad8de824f568f806ad4c5157c383387687bc6240c4ee1d0f88b4235b556daa08f0056ad43b18102a4e435500ecba
7
+ data.tar.gz: 3b55ca3ba0073c634f59c636ae655b91205d3655acba19a383300bb4b5c318a46429734f8805b47d001413a1558bbee7a0e4eff8941b5c4f422c19d123d9e1ea
@@ -48,6 +48,49 @@ module CandidApiClient
48
48
  end
49
49
  CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
50
50
  end
51
+
52
+ # @param billing_note_id [String]
53
+ # @param request_options [CandidApiClient::RequestOptions]
54
+ # @return [Void]
55
+ # @example
56
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
57
+ # api.billing_notes.v_2.delete(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
58
+ def delete(billing_note_id:, request_options: nil)
59
+ @request_client.conn.delete do |req|
60
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
61
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
62
+ req.headers = {
63
+ **(req.headers || {}),
64
+ **@request_client.get_headers,
65
+ **(request_options&.additional_headers || {})
66
+ }.compact
67
+ req.url "#{@request_client.get_url(environment: CandidApi,
68
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
69
+ end
70
+ end
71
+
72
+ # @param billing_note_id [String]
73
+ # @param text [String] Empty string not allowed.
74
+ # @param request_options [CandidApiClient::RequestOptions]
75
+ # @return [CandidApiClient::BillingNotes::V2::Types::BillingNote]
76
+ # @example
77
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
78
+ # api.billing_notes.v_2.update(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", text: "string")
79
+ def update(billing_note_id:, text:, request_options: nil)
80
+ response = @request_client.conn.patch do |req|
81
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
82
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
83
+ req.headers = {
84
+ **(req.headers || {}),
85
+ **@request_client.get_headers,
86
+ **(request_options&.additional_headers || {})
87
+ }.compact
88
+ req.body = { **(request_options&.additional_body_parameters || {}), text: text }.compact
89
+ req.url "#{@request_client.get_url(environment: CandidApi,
90
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
91
+ end
92
+ CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
93
+ end
51
94
  end
52
95
 
53
96
  class AsyncV2Client
@@ -92,6 +135,53 @@ module CandidApiClient
92
135
  CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
93
136
  end
94
137
  end
138
+
139
+ # @param billing_note_id [String]
140
+ # @param request_options [CandidApiClient::RequestOptions]
141
+ # @return [Void]
142
+ # @example
143
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
144
+ # api.billing_notes.v_2.delete(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
145
+ def delete(billing_note_id:, request_options: nil)
146
+ Async do
147
+ @request_client.conn.delete do |req|
148
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
149
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
150
+ req.headers = {
151
+ **(req.headers || {}),
152
+ **@request_client.get_headers,
153
+ **(request_options&.additional_headers || {})
154
+ }.compact
155
+ req.url "#{@request_client.get_url(environment: CandidApi,
156
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
157
+ end
158
+ end
159
+ end
160
+
161
+ # @param billing_note_id [String]
162
+ # @param text [String] Empty string not allowed.
163
+ # @param request_options [CandidApiClient::RequestOptions]
164
+ # @return [CandidApiClient::BillingNotes::V2::Types::BillingNote]
165
+ # @example
166
+ # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
167
+ # api.billing_notes.v_2.update(billing_note_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", text: "string")
168
+ def update(billing_note_id:, text:, request_options: nil)
169
+ Async do
170
+ response = @request_client.conn.patch do |req|
171
+ req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
172
+ req.headers["Authorization"] = request_options.token unless request_options&.token.nil?
173
+ req.headers = {
174
+ **(req.headers || {}),
175
+ **@request_client.get_headers,
176
+ **(request_options&.additional_headers || {})
177
+ }.compact
178
+ req.body = { **(request_options&.additional_body_parameters || {}), text: text }.compact
179
+ req.url "#{@request_client.get_url(environment: CandidApi,
180
+ request_options: request_options)}/api/billing_notes/v2/#{billing_note_id}"
181
+ end
182
+ CandidApiClient::BillingNotes::V2::Types::BillingNote.from_json(json_object: response.body)
183
+ end
184
+ end
95
185
  end
96
186
  end
97
187
  end
@@ -459,8 +459,8 @@ module CandidApiClient
459
459
  # @param billing_notes [Array<Hash>] Spot to store misc, human-readable, notes about this encounter to be used
460
460
  # in the billing process.Request of type Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>, as a Hash
461
461
  # * :text (String)
462
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
463
- # supported. 02 for telemedicine, 11 for in-person. Full list
462
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
463
+ # telemedicine, 11 for in-person. Full list
464
464
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
465
465
  # @param patient_histories [Array<Hash>] Request of type Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>, as a Hash
466
466
  # * :category (CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryEnum)
@@ -852,9 +852,9 @@ module CandidApiClient
852
852
  # @param billing_notes [Array<Hash>] Spot to store misc, human-readable, notes about this encounter to be used
853
853
  # in the billing process.Request of type Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>, as a Hash
854
854
  # * :text (String)
855
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
856
- # supported. 02 for telemedicine, 11 for in-person. Full list
857
- # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
855
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
856
+ # telemedicine, 11 for in-person. Full list [here](https://www.cms
857
+ # .gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
858
858
  # @param patient_histories [Array<Hash>] Request of type Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>, as a Hash
859
859
  # * :category (CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryEnum)
860
860
  # * :questions (Array<CandidApiClient::Encounters::V4::Types::IntakeQuestion>)
@@ -1033,11 +1033,11 @@ module CandidApiClient
1033
1033
  # instant messaging, or other pre-recorded digital mediums. Synchronous encounters
1034
1034
  # occur in live, real-time settings where the patient interacts directly with the
1035
1035
  # provider, such as over video or a phone call.
1036
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
1037
- # supported. 02 for telemedicine, 11 for in-person. Full list
1036
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
1037
+ # telemedicine, 11 for in-person. Full list
1038
1038
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
1039
- # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
1040
- # supported. 02 for telemedicine, 11 for in-person. Full list
1039
+ # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
1040
+ # telemedicine, 11 for in-person. Full list
1041
1041
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
1042
1042
  # @param appointment_type [String] Human-readable description of the appointment type (ex: "Acupuncture -
1043
1043
  # Headaches").
@@ -1818,8 +1818,8 @@ module CandidApiClient
1818
1818
  # @param billing_notes [Array<Hash>] Spot to store misc, human-readable, notes about this encounter to be used
1819
1819
  # in the billing process.Request of type Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>, as a Hash
1820
1820
  # * :text (String)
1821
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
1822
- # supported. 02 for telemedicine, 11 for in-person. Full list
1821
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
1822
+ # telemedicine, 11 for in-person. Full list
1823
1823
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
1824
1824
  # @param patient_histories [Array<Hash>] Request of type Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>, as a Hash
1825
1825
  # * :category (CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryEnum)
@@ -2213,9 +2213,9 @@ module CandidApiClient
2213
2213
  # @param billing_notes [Array<Hash>] Spot to store misc, human-readable, notes about this encounter to be used
2214
2214
  # in the billing process.Request of type Array<CandidApiClient::BillingNotes::V2::Types::BillingNoteBase>, as a Hash
2215
2215
  # * :text (String)
2216
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
2217
- # supported. 02 for telemedicine, 11 for in-person. Full list
2218
- # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
2216
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
2217
+ # telemedicine, 11 for in-person. Full list [here](https://www.cms
2218
+ # .gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
2219
2219
  # @param patient_histories [Array<Hash>] Request of type Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>, as a Hash
2220
2220
  # * :category (CandidApiClient::Encounters::V4::Types::PatientHistoryCategoryEnum)
2221
2221
  # * :questions (Array<CandidApiClient::Encounters::V4::Types::IntakeQuestion>)
@@ -2396,11 +2396,11 @@ module CandidApiClient
2396
2396
  # instant messaging, or other pre-recorded digital mediums. Synchronous encounters
2397
2397
  # occur in live, real-time settings where the patient interacts directly with the
2398
2398
  # provider, such as over video or a phone call.
2399
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
2400
- # supported. 02 for telemedicine, 11 for in-person. Full list
2399
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
2400
+ # telemedicine, 11 for in-person. Full list
2401
2401
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
2402
- # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
2403
- # supported. 02 for telemedicine, 11 for in-person. Full list
2402
+ # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
2403
+ # telemedicine, 11 for in-person. Full list
2404
2404
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
2405
2405
  # @param appointment_type [String] Human-readable description of the appointment type (ex: "Acupuncture -
2406
2406
  # Headaches").
@@ -108,12 +108,12 @@ module CandidApiClient
108
108
  # @return [Array<CandidApiClient::BillingNotes::V2::Types::BillingNote>] Spot to store misc, human-readable, notes about this encounter to be
109
109
  # used in the billing process.
110
110
  attr_reader :billing_notes
111
- # @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
112
- # supported. 02 for telemedicine, 11 for in-person. Full list
111
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
112
+ # telemedicine, 11 for in-person. Full list
113
113
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
114
114
  attr_reader :place_of_service_code
115
- # @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
116
- # supported. 02 for telemedicine, 11 for in-person. Full list
115
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
116
+ # telemedicine, 11 for in-person. Full list
117
117
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
118
118
  attr_reader :place_of_service_code_as_submitted
119
119
  # @return [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
@@ -297,11 +297,11 @@ module CandidApiClient
297
297
  # patient encounters.
298
298
  # @param billing_notes [Array<CandidApiClient::BillingNotes::V2::Types::BillingNote>] Spot to store misc, human-readable, notes about this encounter to be
299
299
  # used in the billing process.
300
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
301
- # supported. 02 for telemedicine, 11 for in-person. Full list
300
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
301
+ # telemedicine, 11 for in-person. Full list
302
302
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
303
- # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. Line-level place of service is not currently
304
- # supported. 02 for telemedicine, 11 for in-person. Full list
303
+ # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] Box 24B on the CMS-1500 claim form. 837p Loop2300, CLM-05-1. 02 for
304
+ # telemedicine, 11 for in-person. Full list
305
305
  # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
306
306
  # @param patient_histories [Array<CandidApiClient::Encounters::V4::Types::PatientHistoryCategory>]
307
307
  # @param patient_payments [Array<CandidApiClient::PatientPayments::V3::Types::PatientPayment>]
@@ -109,13 +109,14 @@ module CandidApiClient
109
109
  # * :amount_cents (Integer)
110
110
  # * :refund_timestamp (DateTime)
111
111
  # * :refund_note (String)
112
+ # * :check_number (String)
112
113
  # * :allocations (Array<CandidApiClient::Financials::Types::AllocationCreate>)
113
114
  # * :refund_reason (CandidApiClient::Financials::Types::RefundReason)
114
115
  # @param request_options [CandidApiClient::RequestOptions]
115
116
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefund]
116
117
  # @example
117
118
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
118
- # api.non_insurance_payer_refunds.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
119
+ # api.non_insurance_payer_refunds.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", check_number: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
119
120
  def create(request:, request_options: nil)
120
121
  response = @request_client.conn.post do |req|
121
122
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -291,13 +292,14 @@ module CandidApiClient
291
292
  # * :amount_cents (Integer)
292
293
  # * :refund_timestamp (DateTime)
293
294
  # * :refund_note (String)
295
+ # * :check_number (String)
294
296
  # * :allocations (Array<CandidApiClient::Financials::Types::AllocationCreate>)
295
297
  # * :refund_reason (CandidApiClient::Financials::Types::RefundReason)
296
298
  # @param request_options [CandidApiClient::RequestOptions]
297
299
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefund]
298
300
  # @example
299
301
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
300
- # api.non_insurance_payer_refunds.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
302
+ # api.non_insurance_payer_refunds.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", check_number: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
301
303
  def create(request:, request_options: nil)
302
304
  Async do
303
305
  response = @request_client.conn.post do |req|
@@ -22,6 +22,8 @@ module CandidApiClient
22
22
  attr_reader :refund_timestamp
23
23
  # @return [String]
24
24
  attr_reader :refund_note
25
+ # @return [String]
26
+ attr_reader :check_number
25
27
  # @return [Array<CandidApiClient::Financials::Types::Allocation>]
26
28
  attr_reader :allocations
27
29
  # @return [CandidApiClient::Financials::Types::RefundReason]
@@ -41,18 +43,20 @@ module CandidApiClient
41
43
  # @param amount_cents [Integer]
42
44
  # @param refund_timestamp [DateTime]
43
45
  # @param refund_note [String]
46
+ # @param check_number [String]
44
47
  # @param allocations [Array<CandidApiClient::Financials::Types::Allocation>]
45
48
  # @param refund_reason [CandidApiClient::Financials::Types::RefundReason]
46
49
  # @param invoice_id [String]
47
50
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
48
51
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefund]
49
52
  def initialize(non_insurance_payer_refund_id:, non_insurance_payer:, amount_cents:, allocations:, refund_timestamp: OMIT,
50
- refund_note: OMIT, refund_reason: OMIT, invoice_id: OMIT, additional_properties: nil)
53
+ refund_note: OMIT, check_number: OMIT, refund_reason: OMIT, invoice_id: OMIT, additional_properties: nil)
51
54
  @non_insurance_payer_refund_id = non_insurance_payer_refund_id
52
55
  @non_insurance_payer = non_insurance_payer
53
56
  @amount_cents = amount_cents
54
57
  @refund_timestamp = refund_timestamp if refund_timestamp != OMIT
55
58
  @refund_note = refund_note if refund_note != OMIT
59
+ @check_number = check_number if check_number != OMIT
56
60
  @allocations = allocations
57
61
  @refund_reason = refund_reason if refund_reason != OMIT
58
62
  @invoice_id = invoice_id if invoice_id != OMIT
@@ -63,6 +67,7 @@ module CandidApiClient
63
67
  "amount_cents": amount_cents,
64
68
  "refund_timestamp": refund_timestamp,
65
69
  "refund_note": refund_note,
70
+ "check_number": check_number,
66
71
  "allocations": allocations,
67
72
  "refund_reason": refund_reason,
68
73
  "invoice_id": invoice_id
@@ -90,6 +95,7 @@ module CandidApiClient
90
95
  DateTime.parse(parsed_json["refund_timestamp"])
91
96
  end
92
97
  refund_note = struct["refund_note"]
98
+ check_number = struct["check_number"]
93
99
  allocations = parsed_json["allocations"]&.map do |item|
94
100
  item = item.to_json
95
101
  CandidApiClient::Financials::Types::Allocation.from_json(json_object: item)
@@ -102,6 +108,7 @@ module CandidApiClient
102
108
  amount_cents: amount_cents,
103
109
  refund_timestamp: refund_timestamp,
104
110
  refund_note: refund_note,
111
+ check_number: check_number,
105
112
  allocations: allocations,
106
113
  refund_reason: refund_reason,
107
114
  invoice_id: invoice_id,
@@ -128,6 +135,7 @@ module CandidApiClient
128
135
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
129
136
  obj.refund_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.refund_timestamp is not the expected type, validation failed.")
130
137
  obj.refund_note&.is_a?(String) != false || raise("Passed value for field obj.refund_note is not the expected type, validation failed.")
138
+ obj.check_number&.is_a?(String) != false || raise("Passed value for field obj.check_number is not the expected type, validation failed.")
131
139
  obj.allocations.is_a?(Array) != false || raise("Passed value for field obj.allocations is not the expected type, validation failed.")
132
140
  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
141
  obj.invoice_id&.is_a?(String) != false || raise("Passed value for field obj.invoice_id is not the expected type, validation failed.")
@@ -21,6 +21,8 @@ module CandidApiClient
21
21
  attr_reader :refund_timestamp
22
22
  # @return [String]
23
23
  attr_reader :refund_note
24
+ # @return [String]
25
+ attr_reader :check_number
24
26
  # @return [Array<CandidApiClient::Financials::Types::AllocationCreate>]
25
27
  attr_reader :allocations
26
28
  # @return [CandidApiClient::Financials::Types::RefundReason]
@@ -38,17 +40,19 @@ module CandidApiClient
38
40
  # @param amount_cents [Integer]
39
41
  # @param refund_timestamp [DateTime]
40
42
  # @param refund_note [String]
43
+ # @param check_number [String]
41
44
  # @param allocations [Array<CandidApiClient::Financials::Types::AllocationCreate>]
42
45
  # @param refund_reason [CandidApiClient::Financials::Types::RefundReason]
43
46
  # @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
44
47
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefundCreate]
45
48
  def initialize(non_insurance_payer_id:, amount_cents:, allocations:, invoice_id: OMIT, refund_timestamp: OMIT,
46
- refund_note: OMIT, refund_reason: OMIT, additional_properties: nil)
49
+ refund_note: OMIT, check_number: OMIT, refund_reason: OMIT, additional_properties: nil)
47
50
  @non_insurance_payer_id = non_insurance_payer_id
48
51
  @invoice_id = invoice_id if invoice_id != OMIT
49
52
  @amount_cents = amount_cents
50
53
  @refund_timestamp = refund_timestamp if refund_timestamp != OMIT
51
54
  @refund_note = refund_note if refund_note != OMIT
55
+ @check_number = check_number if check_number != OMIT
52
56
  @allocations = allocations
53
57
  @refund_reason = refund_reason if refund_reason != OMIT
54
58
  @additional_properties = additional_properties
@@ -58,6 +62,7 @@ module CandidApiClient
58
62
  "amount_cents": amount_cents,
59
63
  "refund_timestamp": refund_timestamp,
60
64
  "refund_note": refund_note,
65
+ "check_number": check_number,
61
66
  "allocations": allocations,
62
67
  "refund_reason": refund_reason
63
68
  }.reject do |_k, v|
@@ -79,6 +84,7 @@ module CandidApiClient
79
84
  DateTime.parse(parsed_json["refund_timestamp"])
80
85
  end
81
86
  refund_note = struct["refund_note"]
87
+ check_number = struct["check_number"]
82
88
  allocations = parsed_json["allocations"]&.map do |item|
83
89
  item = item.to_json
84
90
  CandidApiClient::Financials::Types::AllocationCreate.from_json(json_object: item)
@@ -90,6 +96,7 @@ module CandidApiClient
90
96
  amount_cents: amount_cents,
91
97
  refund_timestamp: refund_timestamp,
92
98
  refund_note: refund_note,
99
+ check_number: check_number,
93
100
  allocations: allocations,
94
101
  refund_reason: refund_reason,
95
102
  additional_properties: struct
@@ -115,6 +122,7 @@ module CandidApiClient
115
122
  obj.amount_cents.is_a?(Integer) != false || raise("Passed value for field obj.amount_cents is not the expected type, validation failed.")
116
123
  obj.refund_timestamp&.is_a?(DateTime) != false || raise("Passed value for field obj.refund_timestamp is not the expected type, validation failed.")
117
124
  obj.refund_note&.is_a?(String) != false || raise("Passed value for field obj.refund_note is not the expected type, validation failed.")
125
+ obj.check_number&.is_a?(String) != false || raise("Passed value for field obj.check_number is not the expected type, validation failed.")
118
126
  obj.allocations.is_a?(Array) != false || raise("Passed value for field obj.allocations is not the expected type, validation failed.")
119
127
  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
128
  end
@@ -61,9 +61,11 @@ module CandidApiClient
61
61
  attr_reader :related_invoice_info
62
62
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
63
63
  attr_reader :denial_reason
64
- # @return [CandidApiClient::Commons::Types::FacilityTypeCode]
64
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. 02 for telemedicine, 11 for in-person. Full list
65
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
65
66
  attr_reader :place_of_service_code
66
- # @return [CandidApiClient::Commons::Types::FacilityTypeCode]
67
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. 02 for telemedicine, 11 for in-person. Full list
68
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
67
69
  attr_reader :place_of_service_code_as_submitted
68
70
  # @return [String]
69
71
  attr_reader :service_line_id
@@ -121,8 +123,10 @@ module CandidApiClient
121
123
  # @param related_invoices [Array<CandidApiClient::Invoices::Types::Invoice>]
122
124
  # @param related_invoice_info [Array<CandidApiClient::Invoices::V2::Types::InvoiceInfo>]
123
125
  # @param denial_reason [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
124
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode]
125
- # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode]
126
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. 02 for telemedicine, 11 for in-person. Full list
127
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
128
+ # @param place_of_service_code_as_submitted [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. 02 for telemedicine, 11 for in-person. Full list
129
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
126
130
  # @param service_line_id [String]
127
131
  # @param procedure_code [String]
128
132
  # @param ordering_provider [CandidApiClient::EncounterProviders::V2::Types::EncounterProvider]
@@ -35,7 +35,10 @@ module CandidApiClient
35
35
  attr_reader :diagnosis_pointers
36
36
  # @return [CandidApiClient::ServiceLines::V2::Types::DrugIdentification]
37
37
  attr_reader :drug_identification
38
- # @return [CandidApiClient::Commons::Types::FacilityTypeCode]
38
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. If your organization does not intend to submit claims with
39
+ # a different place of service at the service line level, this field should not be
40
+ # populated. 02 for telemedicine, 11 for in-person. Full list
41
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
39
42
  attr_reader :place_of_service_code
40
43
  # @return [String] A free-form description to clarify the related data elements and their content.
41
44
  # Maps to SV1-01, C003-07 on the 837-P.
@@ -72,7 +75,10 @@ module CandidApiClient
72
75
  # equal to 0.
73
76
  # @param diagnosis_pointers [Array<Integer>] Indices (zero-indexed) of all the diagnoses this service line references
74
77
  # @param drug_identification [CandidApiClient::ServiceLines::V2::Types::DrugIdentification]
75
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode]
78
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. If your organization does not intend to submit claims with
79
+ # a different place of service at the service line level, this field should not be
80
+ # populated. 02 for telemedicine, 11 for in-person. Full list
81
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
76
82
  # @param description [String] A free-form description to clarify the related data elements and their content.
77
83
  # Maps to SV1-01, C003-07 on the 837-P.
78
84
  # @param date_of_service [Date]
@@ -30,7 +30,10 @@ module CandidApiClient
30
30
  attr_reader :diagnosis_id_three
31
31
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
32
32
  attr_reader :denial_reason
33
- # @return [CandidApiClient::Commons::Types::FacilityTypeCode]
33
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. If your organization does not intend to submit claims with
34
+ # a different place of service at the service line level, this field should not be
35
+ # populated. 02 for telemedicine, 11 for in-person. Full list
36
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
34
37
  attr_reader :place_of_service_code
35
38
  # @return [String]
36
39
  attr_reader :procedure_code
@@ -73,7 +76,10 @@ module CandidApiClient
73
76
  # @param diagnosis_id_two [String]
74
77
  # @param diagnosis_id_three [String]
75
78
  # @param denial_reason [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
76
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode]
79
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. If your organization does not intend to submit claims with
80
+ # a different place of service at the service line level, this field should not be
81
+ # populated. 02 for telemedicine, 11 for in-person. Full list
82
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
77
83
  # @param procedure_code [String]
78
84
  # @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
79
85
  # A ServiceLine quantity cannot contain more than one digit of precision.
@@ -33,7 +33,10 @@ module CandidApiClient
33
33
  attr_reader :drug_identification
34
34
  # @return [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
35
35
  attr_reader :denial_reason
36
- # @return [CandidApiClient::Commons::Types::FacilityTypeCode]
36
+ # @return [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. If your organization does not intend to submit claims with
37
+ # a different place of service at the service line level, this field should not be
38
+ # populated. 02 for telemedicine, 11 for in-person. Full list
39
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
37
40
  attr_reader :place_of_service_code
38
41
  # @return [CandidApiClient::Commons::Types::ServiceLineUnits]
39
42
  attr_reader :units
@@ -73,7 +76,10 @@ module CandidApiClient
73
76
  # @param diagnosis_id_three [String]
74
77
  # @param drug_identification [CandidApiClient::ServiceLines::V2::Types::DrugIdentification]
75
78
  # @param denial_reason [CandidApiClient::ServiceLines::V2::Types::ServiceLineDenialReason]
76
- # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode]
79
+ # @param place_of_service_code [CandidApiClient::Commons::Types::FacilityTypeCode] 837p Loop2300, SV105. If your organization does not intend to submit claims with
80
+ # a different place of service at the service line level, this field should not be
81
+ # populated. 02 for telemedicine, 11 for in-person. Full list
82
+ # //www.cms.gov/Medicare/Coding/place-of-service-codes/Place_of_Service_Code_Set).
77
83
  # @param units [CandidApiClient::Commons::Types::ServiceLineUnits]
78
84
  # @param procedure_code [String]
79
85
  # @param quantity [String] String representation of a Decimal that can be parsed by most libraries.
data/lib/requests.rb CHANGED
@@ -43,7 +43,7 @@ module CandidApiClient
43
43
 
44
44
  # @return [Hash{String => String}]
45
45
  def get_headers
46
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.35.3" }
46
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.36.0" }
47
47
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
48
48
  headers
49
49
  end
@@ -87,7 +87,7 @@ module CandidApiClient
87
87
 
88
88
  # @return [Hash{String => String}]
89
89
  def get_headers
90
- headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.35.3" }
90
+ headers = { "X-Fern-Language": "Ruby", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.36.0" }
91
91
  headers["Authorization"] = ((@token.is_a? Method) ? @token.call : @token) unless token.nil?
92
92
  headers
93
93
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: candidhealth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.3
4
+ version: 0.36.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-27 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: async-http-faraday