candidhealth 0.45.0 → 0.46.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. checksums.yaml +4 -4
  2. data/lib/candidhealth/billing_notes/v_2/client.rb +2 -2
  3. data/lib/candidhealth/charge_capture/v_1/client.rb +10 -94
  4. data/lib/candidhealth/charge_capture/v_1/types/charge_capture_data.rb +16 -16
  5. data/lib/candidhealth/charge_capture_bundles/v_1/client.rb +2 -44
  6. data/lib/candidhealth/contracts/v_2/client.rb +18 -34
  7. data/lib/candidhealth/contracts/v_2/types/contract_sort_field.rb +18 -0
  8. data/lib/candidhealth/credentialing/v_2/client.rb +6 -44
  9. data/lib/candidhealth/diagnoses/client.rb +4 -14
  10. data/lib/candidhealth/eligibility/v_2/client.rb +4 -4
  11. data/lib/candidhealth/encounter_attachments/v_1/client.rb +0 -6
  12. data/lib/candidhealth/encounter_providers/v_2/client.rb +16 -16
  13. data/lib/candidhealth/encounters/v_4/client.rb +38 -102
  14. data/lib/candidhealth/encounters/v_4/types/encounter.rb +12 -12
  15. data/lib/candidhealth/encounters/v_4/types/encounter_base.rb +10 -10
  16. data/lib/candidhealth/encounters/v_4/types/encounter_create_from_pre_encounter.rb +10 -10
  17. data/lib/candidhealth/encounters/v_4/types/encounter_optional.rb +14 -14
  18. data/lib/candidhealth/expected_network_status/v_1/client.rb +12 -18
  19. data/lib/candidhealth/expected_network_status/v_2/client.rb +4 -4
  20. data/lib/candidhealth/expected_network_status/v_2/types/empty_object.rb +53 -0
  21. data/lib/candidhealth/expected_network_status/v_2/types/insurance_type_codes.rb +13 -10
  22. data/lib/candidhealth/external_payment_account_config/v_1/client.rb +2 -2
  23. data/lib/candidhealth/fee_schedules/v_3/client.rb +12 -68
  24. data/lib/candidhealth/fee_schedules/v_3/types/payer_threshold.rb +3 -3
  25. data/lib/candidhealth/fee_schedules/v_3/types/rate_entry.rb +2 -2
  26. data/lib/candidhealth/guarantor/v_1/client.rb +4 -4
  27. data/lib/candidhealth/import_invoice/v_1/client.rb +6 -28
  28. data/lib/candidhealth/insurance_adjudications/v_1/client.rb +2 -2
  29. data/lib/candidhealth/insurance_payments/v_1/client.rb +2 -20
  30. data/lib/candidhealth/insurance_refunds/v_1/client.rb +6 -24
  31. data/lib/candidhealth/medication_dispense/v_1/client.rb +2 -2
  32. data/lib/candidhealth/non_insurance_payer_payments/v_1/client.rb +6 -22
  33. data/lib/candidhealth/non_insurance_payer_refunds/v_1/client.rb +6 -22
  34. data/lib/candidhealth/non_insurance_payers/v_1/client.rb +6 -22
  35. data/lib/candidhealth/organization_providers/v_3/client.rb +4 -4
  36. data/lib/candidhealth/organization_service_facilities/v_2/client.rb +2 -2
  37. data/lib/candidhealth/patient_payments/v_4/client.rb +8 -38
  38. data/lib/candidhealth/patient_refunds/v_1/client.rb +8 -40
  39. data/lib/candidhealth/payer_plan_groups/v_1/client.rb +6 -30
  40. data/lib/candidhealth/pre_encounter/appointments/v_1/client.rb +32 -44
  41. data/lib/candidhealth/pre_encounter/appointments/v_1/types/appointment.rb +4 -4
  42. data/lib/candidhealth/pre_encounter/common/types/base_model.rb +4 -4
  43. data/lib/candidhealth/pre_encounter/coverages/v_1/client.rb +24 -34
  44. data/lib/candidhealth/pre_encounter/coverages/v_1/types/coverage.rb +4 -4
  45. data/lib/candidhealth/pre_encounter/eligibility_checks/v_1/client.rb +2 -2
  46. data/lib/candidhealth/pre_encounter/images/v_1/client.rb +20 -20
  47. data/lib/candidhealth/pre_encounter/images/v_1/types/image.rb +6 -6
  48. data/lib/candidhealth/pre_encounter/lists/v_1/client.rb +4 -28
  49. data/lib/candidhealth/pre_encounter/notes/v_1/client.rb +14 -14
  50. data/lib/candidhealth/pre_encounter/notes/v_1/types/note.rb +4 -4
  51. data/lib/candidhealth/pre_encounter/patients/v_1/client.rb +56 -68
  52. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient.rb +8 -8
  53. data/lib/candidhealth/pre_encounter/patients/v_1/types/mutable_patient_with_mrn.rb +8 -8
  54. data/lib/candidhealth/pre_encounter/patients/v_1/types/patient.rb +16 -16
  55. data/lib/candidhealth/pre_encounter/tags/v_1/client.rb +16 -16
  56. data/lib/candidhealth/pre_encounter/tags/v_1/types/tag.rb +4 -4
  57. data/lib/candidhealth/service_facility/client.rb +2 -2
  58. data/lib/candidhealth/service_lines/v_2/client.rb +4 -4
  59. data/lib/candidhealth/superbills/v_1/client.rb +4 -6
  60. data/lib/candidhealth/tasks/v_3/client.rb +6 -34
  61. data/lib/candidhealth/write_offs/v_1/client.rb +2 -24
  62. data/lib/environment.rb +4 -0
  63. data/lib/requests.rb +2 -2
  64. data/lib/types_export.rb +2 -0
  65. metadata +4 -2
@@ -41,7 +41,7 @@ module CandidApiClient
41
41
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
42
42
  # @example
43
43
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
44
- # api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{ amount_cents: 1 }], status: DRAFT, external_identifier: "string", customer_invoice_url: "string" })
44
+ # api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "patient_external_id", external_customer_identifier: "external_customer_identifier", items: [{ amount_cents: 1 }, { amount_cents: 1 }], status: DRAFT, external_identifier: "external_identifier" })
45
45
  def import_invoice(request:, request_options: nil)
46
46
  response = @request_client.conn.post do |req|
47
47
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -75,18 +75,7 @@ module CandidApiClient
75
75
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoicesPage]
76
76
  # @example
77
77
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
78
- # api.import_invoice.v_1.get_multi(
79
- # patient_external_id: "string",
80
- # encounter_external_id: "string",
81
- # note: "string",
82
- # due_date_before: DateTime.parse(2023-01-15),
83
- # due_date_after: DateTime.parse(2023-01-15),
84
- # status: DRAFT,
85
- # limit: 1,
86
- # sort: CREATED_AT,
87
- # sort_direction: ASC,
88
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
89
- # )
78
+ # api.import_invoice.v_1.get_multi
90
79
  def get_multi(patient_external_id: nil, encounter_external_id: nil, note: nil, due_date_before: nil,
91
80
  due_date_after: nil, status: nil, limit: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
92
81
  response = @request_client.conn.get do |req|
@@ -154,7 +143,7 @@ module CandidApiClient
154
143
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
155
144
  # @example
156
145
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
157
- # api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{ amount_cents: 1 }] } })
146
+ # api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
158
147
  def update(invoice_id:, request:, request_options: nil)
159
148
  response = @request_client.conn.patch do |req|
160
149
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -199,7 +188,7 @@ module CandidApiClient
199
188
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
200
189
  # @example
201
190
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
202
- # api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "string", external_customer_identifier: "string", note: "string", due_date: DateTime.parse(2023-01-15), items: [{ amount_cents: 1 }], status: DRAFT, external_identifier: "string", customer_invoice_url: "string" })
191
+ # api.import_invoice.v_1.import_invoice(request: { external_payment_account_config_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", patient_external_id: "patient_external_id", external_customer_identifier: "external_customer_identifier", items: [{ amount_cents: 1 }, { amount_cents: 1 }], status: DRAFT, external_identifier: "external_identifier" })
203
192
  def import_invoice(request:, request_options: nil)
204
193
  Async do
205
194
  response = @request_client.conn.post do |req|
@@ -235,18 +224,7 @@ module CandidApiClient
235
224
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoicesPage]
236
225
  # @example
237
226
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
238
- # api.import_invoice.v_1.get_multi(
239
- # patient_external_id: "string",
240
- # encounter_external_id: "string",
241
- # note: "string",
242
- # due_date_before: DateTime.parse(2023-01-15),
243
- # due_date_after: DateTime.parse(2023-01-15),
244
- # status: DRAFT,
245
- # limit: 1,
246
- # sort: CREATED_AT,
247
- # sort_direction: ASC,
248
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
249
- # )
227
+ # api.import_invoice.v_1.get_multi
250
228
  def get_multi(patient_external_id: nil, encounter_external_id: nil, note: nil, due_date_before: nil,
251
229
  due_date_after: nil, status: nil, limit: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
252
230
  Async do
@@ -318,7 +296,7 @@ module CandidApiClient
318
296
  # @return [CandidApiClient::ImportInvoice::V1::Types::ImportInvoice]
319
297
  # @example
320
298
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
321
- # api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { customer_invoice_url: "string", status: DRAFT, note: "string", due_date: DateTime.parse(2023-01-15), items: { update_type: APPEND, items: [{ amount_cents: 1 }] } })
299
+ # api.import_invoice.v_1.update(invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
322
300
  def update(invoice_id:, request:, request_options: nil)
323
301
  Async do
324
302
  response = @request_client.conn.patch do |req|
@@ -60,7 +60,7 @@ module CandidApiClient
60
60
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
61
61
  # @example
62
62
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
63
- # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "string" }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { }, carcs: }] }, remit_draft_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
63
+ # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "payee_name" }, check_date: DateTime.parse(2023-01-15), claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }, { claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }] } })
64
64
  def create(request:, request_options: nil)
65
65
  response = @request_client.conn.post do |req|
66
66
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -155,7 +155,7 @@ module CandidApiClient
155
155
  # @return [CandidApiClient::InsuranceAdjudications::V1::Types::InsuranceAdjudication]
156
156
  # @example
157
157
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
158
- # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "string" }, post_date: DateTime.parse(2023-01-15), check_number: "string", check_date: DateTime.parse(2023-01-15), note: "string", claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { }, carcs: }] }, remit_draft_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
158
+ # api.insurance_adjudications.v_1.create(request: { payee: { payee_name: "payee_name" }, check_date: DateTime.parse(2023-01-15), claims: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }, { claim_status_code: PROCESSED_AS_PRIMARY, service_lines: { "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32": [{ carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }, { carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }], rarcs: [{ reason_code: M_1 }, { reason_code: M_1 }] }] }, carcs: [{ group_code: CO, reason_code: CARC_1, amount_cents: 1 }, { group_code: CO, reason_code: CARC_1, amount_cents: 1 }] }] } })
159
159
  def create(request:, request_options: nil)
160
160
  Async do
161
161
  response = @request_client.conn.post do |req|
@@ -34,16 +34,7 @@ module CandidApiClient
34
34
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentsPage]
35
35
  # @example
36
36
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
37
- # api.insurance_payments.v_1.get_multi(
38
- # limit: 1,
39
- # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
40
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
41
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
42
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
43
- # sort: AMOUNT_CENTS,
44
- # sort_direction: ASC,
45
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
46
- # )
37
+ # api.insurance_payments.v_1.get_multi
47
38
  def get_multi(limit: nil, payer_uuid: nil, claim_id: nil, service_line_id: nil, billing_provider_id: nil,
48
39
  sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
49
40
  response = @request_client.conn.get do |req|
@@ -120,16 +111,7 @@ module CandidApiClient
120
111
  # @return [CandidApiClient::InsurancePayments::V1::Types::InsurancePaymentsPage]
121
112
  # @example
122
113
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
123
- # api.insurance_payments.v_1.get_multi(
124
- # limit: 1,
125
- # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
126
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
127
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
128
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
129
- # sort: AMOUNT_CENTS,
130
- # sort_direction: ASC,
131
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
132
- # )
114
+ # api.insurance_payments.v_1.get_multi
133
115
  def get_multi(limit: nil, payer_uuid: nil, claim_id: nil, service_line_id: nil, billing_provider_id: nil,
134
116
  sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
135
117
  Async do
@@ -40,16 +40,7 @@ module CandidApiClient
40
40
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefundsPage]
41
41
  # @example
42
42
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
43
- # api.insurance_refunds.v_1.get_multi(
44
- # limit: 1,
45
- # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
46
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
47
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
48
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
49
- # sort: AMOUNT_CENTS,
50
- # sort_direction: ASC,
51
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
52
- # )
43
+ # api.insurance_refunds.v_1.get_multi
53
44
  def get_multi(limit: nil, payer_uuid: nil, claim_id: nil, service_line_id: nil, billing_provider_id: nil,
54
45
  sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
55
46
  response = @request_client.conn.get do |req|
@@ -118,7 +109,7 @@ module CandidApiClient
118
109
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
119
110
  # @example
120
111
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
121
- # api.insurance_refunds.v_1.create(request: { amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
112
+ # api.insurance_refunds.v_1.create(request: { amount_cents: 1, allocations: [{ amount_cents: 1 }, { amount_cents: 1 }] })
122
113
  def create(request:, request_options: nil)
123
114
  response = @request_client.conn.post do |req|
124
115
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -147,7 +138,7 @@ module CandidApiClient
147
138
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
148
139
  # @example
149
140
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
150
- # api.insurance_refunds.v_1.update(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
141
+ # api.insurance_refunds.v_1.update(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
151
142
  def update(insurance_refund_id:, refund_timestamp: nil, refund_note: nil, refund_reason: nil,
152
143
  request_options: nil)
153
144
  response = @request_client.conn.patch do |req|
@@ -221,16 +212,7 @@ module CandidApiClient
221
212
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefundsPage]
222
213
  # @example
223
214
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
224
- # api.insurance_refunds.v_1.get_multi(
225
- # limit: 1,
226
- # payer_uuid: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
227
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
228
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
229
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
230
- # sort: AMOUNT_CENTS,
231
- # sort_direction: ASC,
232
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
233
- # )
215
+ # api.insurance_refunds.v_1.get_multi
234
216
  def get_multi(limit: nil, payer_uuid: nil, claim_id: nil, service_line_id: nil, billing_provider_id: nil,
235
217
  sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
236
218
  Async do
@@ -303,7 +285,7 @@ module CandidApiClient
303
285
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
304
286
  # @example
305
287
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
306
- # api.insurance_refunds.v_1.create(request: { amount_cents: 1, refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), refund_note: "string", allocations: [{ amount_cents: 1 }], refund_reason: OVERCHARGED })
288
+ # api.insurance_refunds.v_1.create(request: { amount_cents: 1, allocations: [{ amount_cents: 1 }, { amount_cents: 1 }] })
307
289
  def create(request:, request_options: nil)
308
290
  Async do
309
291
  response = @request_client.conn.post do |req|
@@ -334,7 +316,7 @@ module CandidApiClient
334
316
  # @return [CandidApiClient::InsuranceRefunds::V1::Types::InsuranceRefund]
335
317
  # @example
336
318
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
337
- # api.insurance_refunds.v_1.update(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
319
+ # api.insurance_refunds.v_1.update(insurance_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
338
320
  def update(insurance_refund_id:, refund_timestamp: nil, refund_note: nil, refund_reason: nil,
339
321
  request_options: nil)
340
322
  Async do
@@ -40,7 +40,7 @@ module CandidApiClient
40
40
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
41
41
  # @example
42
42
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
43
- # api.medication_dispense.v_1.create(request: { medication_dispense_external_id: "string", patient_external_id: "string", procedure_code: "string", quantity: "string", units: MJ, date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, description: "string", modifiers: [AV] })
43
+ # api.medication_dispense.v_1.create(request: { medication_dispense_external_id: "medication_dispense_external_id", patient_external_id: "patient_external_id", procedure_code: "procedure_code", quantity: "quantity", units: MJ, date_of_service: DateTime.parse(2023-01-15) })
44
44
  def create(request:, request_options: nil)
45
45
  response = @request_client.conn.post do |req|
46
46
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -90,7 +90,7 @@ module CandidApiClient
90
90
  # @return [CandidApiClient::Encounters::V4::Types::Encounter]
91
91
  # @example
92
92
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
93
- # api.medication_dispense.v_1.create(request: { medication_dispense_external_id: "string", patient_external_id: "string", procedure_code: "string", quantity: "string", units: MJ, date_of_service: DateTime.parse(2023-01-15), drug_identification: { service_id_qualifier: EAN_UCC_13, national_drug_code: "string", national_drug_unit_count: "string", measurement_unit_code: MILLILITERS, link_sequence_number: "string", pharmacy_prescription_number: "string", conversion_formula: "string", drug_description: "string" }, description: "string", modifiers: [AV] })
93
+ # api.medication_dispense.v_1.create(request: { medication_dispense_external_id: "medication_dispense_external_id", patient_external_id: "patient_external_id", procedure_code: "procedure_code", quantity: "quantity", units: MJ, date_of_service: DateTime.parse(2023-01-15) })
94
94
  def create(request:, request_options: nil)
95
95
  Async do
96
96
  response = @request_client.conn.post do |req|
@@ -37,15 +37,7 @@ module CandidApiClient
37
37
  # @return [CandidApiClient::NonInsurancePayerPayments::V1::Types::NonInsurancePayerPaymentsPage]
38
38
  # @example
39
39
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
40
- # api.non_insurance_payer_payments.v_1.get_multi(
41
- # limit: 1,
42
- # non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
43
- # check_number: "string",
44
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
45
- # sort: AMOUNT_CENTS,
46
- # sort_direction: ASC,
47
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
48
- # )
40
+ # api.non_insurance_payer_payments.v_1.get_multi
49
41
  def get_multi(limit: nil, non_insurance_payer_id: nil, check_number: nil, invoice_id: nil, sort: nil,
50
42
  sort_direction: nil, page_token: nil, request_options: nil)
51
43
  response = @request_client.conn.get do |req|
@@ -108,7 +100,7 @@ module CandidApiClient
108
100
  # @return [CandidApiClient::NonInsurancePayerPayments::V1::Types::NonInsurancePayerPayment]
109
101
  # @example
110
102
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
111
- # api.non_insurance_payer_payments.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", check_number: "string", allocations: [{ amount_cents: 1 }], invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
103
+ # api.non_insurance_payer_payments.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, allocations: [{ amount_cents: 1 }, { amount_cents: 1 }] })
112
104
  def create(request:, request_options: nil)
113
105
  response = @request_client.conn.post do |req|
114
106
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -133,7 +125,7 @@ module CandidApiClient
133
125
  # @return [CandidApiClient::NonInsurancePayerPayments::V1::Types::NonInsurancePayerPayment]
134
126
  # @example
135
127
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
136
- # api.non_insurance_payer_payments.v_1.update(non_insurance_payer_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
128
+ # api.non_insurance_payer_payments.v_1.update(non_insurance_payer_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
137
129
  def update(non_insurance_payer_payment_id:, payment_timestamp: nil, payment_note: nil, invoice_id: nil,
138
130
  request_options: nil)
139
131
  response = @request_client.conn.patch do |req|
@@ -203,15 +195,7 @@ module CandidApiClient
203
195
  # @return [CandidApiClient::NonInsurancePayerPayments::V1::Types::NonInsurancePayerPaymentsPage]
204
196
  # @example
205
197
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
206
- # api.non_insurance_payer_payments.v_1.get_multi(
207
- # limit: 1,
208
- # non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
209
- # check_number: "string",
210
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
211
- # sort: AMOUNT_CENTS,
212
- # sort_direction: ASC,
213
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
214
- # )
198
+ # api.non_insurance_payer_payments.v_1.get_multi
215
199
  def get_multi(limit: nil, non_insurance_payer_id: nil, check_number: nil, invoice_id: nil, sort: nil,
216
200
  sort_direction: nil, page_token: nil, request_options: nil)
217
201
  Async do
@@ -278,7 +262,7 @@ module CandidApiClient
278
262
  # @return [CandidApiClient::NonInsurancePayerPayments::V1::Types::NonInsurancePayerPayment]
279
263
  # @example
280
264
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
281
- # api.non_insurance_payer_payments.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z), payment_note: "string", check_number: "string", allocations: [{ amount_cents: 1 }], invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32" })
265
+ # api.non_insurance_payer_payments.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, allocations: [{ amount_cents: 1 }, { amount_cents: 1 }] })
282
266
  def create(request:, request_options: nil)
283
267
  Async do
284
268
  response = @request_client.conn.post do |req|
@@ -305,7 +289,7 @@ module CandidApiClient
305
289
  # @return [CandidApiClient::NonInsurancePayerPayments::V1::Types::NonInsurancePayerPayment]
306
290
  # @example
307
291
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
308
- # api.non_insurance_payer_payments.v_1.update(non_insurance_payer_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
292
+ # api.non_insurance_payer_payments.v_1.update(non_insurance_payer_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
309
293
  def update(non_insurance_payer_payment_id:, payment_timestamp: nil, payment_note: nil, invoice_id: nil,
310
294
  request_options: nil)
311
295
  Async do
@@ -38,15 +38,7 @@ module CandidApiClient
38
38
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefundsPage]
39
39
  # @example
40
40
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
41
- # api.non_insurance_payer_refunds.v_1.get_multi(
42
- # limit: 1,
43
- # non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
44
- # check_number: "string",
45
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
46
- # sort: AMOUNT_CENTS,
47
- # sort_direction: ASC,
48
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
49
- # )
41
+ # api.non_insurance_payer_refunds.v_1.get_multi
50
42
  def get_multi(limit: nil, non_insurance_payer_id: nil, check_number: nil, invoice_id: nil, sort: nil,
51
43
  sort_direction: nil, page_token: nil, request_options: nil)
52
44
  response = @request_client.conn.get do |req|
@@ -116,7 +108,7 @@ module CandidApiClient
116
108
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefund]
117
109
  # @example
118
110
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
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 })
111
+ # api.non_insurance_payer_refunds.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, allocations: [{ amount_cents: 1 }, { amount_cents: 1 }] })
120
112
  def create(request:, request_options: nil)
121
113
  response = @request_client.conn.post do |req|
122
114
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -146,7 +138,7 @@ module CandidApiClient
146
138
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefund]
147
139
  # @example
148
140
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
149
- # api.non_insurance_payer_refunds.v_1.update(non_insurance_payer_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
141
+ # api.non_insurance_payer_refunds.v_1.update(non_insurance_payer_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
150
142
  def update(non_insurance_payer_refund_id:, refund_timestamp: nil, refund_note: nil, refund_reason: nil,
151
143
  invoice_id: nil, request_options: nil)
152
144
  response = @request_client.conn.patch do |req|
@@ -217,15 +209,7 @@ module CandidApiClient
217
209
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefundsPage]
218
210
  # @example
219
211
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
220
- # api.non_insurance_payer_refunds.v_1.get_multi(
221
- # limit: 1,
222
- # non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
223
- # check_number: "string",
224
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
225
- # sort: AMOUNT_CENTS,
226
- # sort_direction: ASC,
227
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
228
- # )
212
+ # api.non_insurance_payer_refunds.v_1.get_multi
229
213
  def get_multi(limit: nil, non_insurance_payer_id: nil, check_number: nil, invoice_id: nil, sort: nil,
230
214
  sort_direction: nil, page_token: nil, request_options: nil)
231
215
  Async do
@@ -299,7 +283,7 @@ module CandidApiClient
299
283
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefund]
300
284
  # @example
301
285
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
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 })
286
+ # api.non_insurance_payer_refunds.v_1.create(request: { non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", amount_cents: 1, allocations: [{ amount_cents: 1 }, { amount_cents: 1 }] })
303
287
  def create(request:, request_options: nil)
304
288
  Async do
305
289
  response = @request_client.conn.post do |req|
@@ -331,7 +315,7 @@ module CandidApiClient
331
315
  # @return [CandidApiClient::NonInsurancePayerRefunds::V1::Types::NonInsurancePayerRefund]
332
316
  # @example
333
317
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
334
- # api.non_insurance_payer_refunds.v_1.update(non_insurance_payer_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", refund_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
318
+ # api.non_insurance_payer_refunds.v_1.update(non_insurance_payer_refund_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
335
319
  def update(non_insurance_payer_refund_id:, refund_timestamp: nil, refund_note: nil, refund_reason: nil,
336
320
  invoice_id: nil, request_options: nil)
337
321
  Async do
@@ -39,7 +39,7 @@ module CandidApiClient
39
39
  # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
40
40
  # @example
41
41
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
42
- # api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, clinical_trials: [{ name: "string", clinical_trial_number: "string", clinical_trial_phase: PHASE_ONE }] })
42
+ # api.non_insurance_payers.v_1.create(request: { name: "name" })
43
43
  def create(request:, request_options: nil)
44
44
  response = @request_client.conn.post do |req|
45
45
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -91,15 +91,7 @@ module CandidApiClient
91
91
  # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerPage]
92
92
  # @example
93
93
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
94
- # api.non_insurance_payers.v_1.get_multi(
95
- # name: "string",
96
- # category: "string",
97
- # enabled: true,
98
- # sort: NAME,
99
- # sort_direction: ASC,
100
- # limit: 1,
101
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
102
- # )
94
+ # api.non_insurance_payers.v_1.get_multi
103
95
  def get_multi(name: nil, category: nil, enabled: nil, sort: nil, sort_direction: nil, limit: nil,
104
96
  page_token: nil, request_options: nil)
105
97
  response = @request_client.conn.get do |req|
@@ -157,7 +149,7 @@ module CandidApiClient
157
149
  # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
158
150
  # @example
159
151
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
160
- # api.non_insurance_payers.v_1.update(non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { name: "string" })
152
+ # api.non_insurance_payers.v_1.update(non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
161
153
  def update(non_insurance_payer_id:, request:, request_options: nil)
162
154
  response = @request_client.conn.patch do |req|
163
155
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -221,7 +213,7 @@ module CandidApiClient
221
213
  # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
222
214
  # @example
223
215
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
224
- # api.non_insurance_payers.v_1.create(request: { name: "string", description: "string", category: "string", address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, clinical_trials: [{ name: "string", clinical_trial_number: "string", clinical_trial_phase: PHASE_ONE }] })
216
+ # api.non_insurance_payers.v_1.create(request: { name: "name" })
225
217
  def create(request:, request_options: nil)
226
218
  Async do
227
219
  response = @request_client.conn.post do |req|
@@ -277,15 +269,7 @@ module CandidApiClient
277
269
  # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayerPage]
278
270
  # @example
279
271
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
280
- # api.non_insurance_payers.v_1.get_multi(
281
- # name: "string",
282
- # category: "string",
283
- # enabled: true,
284
- # sort: NAME,
285
- # sort_direction: ASC,
286
- # limit: 1,
287
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
288
- # )
272
+ # api.non_insurance_payers.v_1.get_multi
289
273
  def get_multi(name: nil, category: nil, enabled: nil, sort: nil, sort_direction: nil, limit: nil,
290
274
  page_token: nil, request_options: nil)
291
275
  Async do
@@ -347,7 +331,7 @@ module CandidApiClient
347
331
  # @return [CandidApiClient::NonInsurancePayers::V1::Types::NonInsurancePayer]
348
332
  # @example
349
333
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
350
- # api.non_insurance_payers.v_1.update(non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { name: "string" })
334
+ # api.non_insurance_payers.v_1.update(non_insurance_payer_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
351
335
  def update(non_insurance_payer_id:, request:, request_options: nil)
352
336
  Async do
353
337
  response = @request_client.conn.patch do |req|
@@ -107,7 +107,7 @@ module CandidApiClient
107
107
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
108
108
  # @example
109
109
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
110
- # api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ period: { start_date: "string" }, identifier_code: MCR }] })
110
+ # api.organization_providers.v_3.create(request: { npi: "npi", is_rendering: true, is_billing: true, provider_type: INDIVIDUAL, license_type: MD, qualifications: [{ identifier_code: MCR }, { identifier_code: MCR }] })
111
111
  def create(request:, request_options: nil)
112
112
  response = @request_client.conn.post do |req|
113
113
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -144,7 +144,7 @@ module CandidApiClient
144
144
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
145
145
  # @example
146
146
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
147
- # api.organization_providers.v_3.update(organization_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: "string", employment_termination_date: "string", qualifications: })
147
+ # api.organization_providers.v_3.update(organization_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
148
148
  def update(organization_provider_id:, request:, request_options: nil)
149
149
  response = @request_client.conn.patch do |req|
150
150
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -262,7 +262,7 @@ module CandidApiClient
262
262
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
263
263
  # @example
264
264
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
265
- # api.organization_providers.v_3.create(request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: DateTime.parse(2023-01-15), employment_termination_date: DateTime.parse(2023-01-15), qualifications: [{ period: { start_date: "string" }, identifier_code: MCR }] })
265
+ # api.organization_providers.v_3.create(request: { npi: "npi", is_rendering: true, is_billing: true, provider_type: INDIVIDUAL, license_type: MD, qualifications: [{ identifier_code: MCR }, { identifier_code: MCR }] })
266
266
  def create(request:, request_options: nil)
267
267
  Async do
268
268
  response = @request_client.conn.post do |req|
@@ -301,7 +301,7 @@ module CandidApiClient
301
301
  # @return [CandidApiClient::OrganizationProviders::V3::Types::OrganizationProviderV2]
302
302
  # @example
303
303
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
304
- # api.organization_providers.v_3.update(organization_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { npi: "string", is_rendering: true, is_billing: true, first_name: "string", last_name: "string", organization_name: "string", provider_type: INDIVIDUAL, tax_id: "string", taxonomy_code: "string", license_type: MD, addresses: [{ address: { address_1: "123 Main St", address_2: "Apt 1", city: "New York", state: NY, zip_code: "10001", zip_plus_four_code: "1234" }, address_type: DEFAULT }], employment_start_date: "string", employment_termination_date: "string", qualifications: })
304
+ # api.organization_providers.v_3.update(organization_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", request: { })
305
305
  def update(organization_provider_id:, request:, request_options: nil)
306
306
  Async do
307
307
  response = @request_client.conn.patch do |req|
@@ -25,7 +25,7 @@ module CandidApiClient
25
25
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
26
26
  # @example
27
27
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
28
- # api.organization_service_facilities.v_2.get(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569")
28
+ # api.organization_service_facilities.v_2.get(organization_service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
29
29
  def get(organization_service_facility_id:, request_options: nil)
30
30
  response = @request_client.conn.get do |req|
31
31
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -189,7 +189,7 @@ module CandidApiClient
189
189
  # @return [CandidApiClient::OrganizationServiceFacilities::V2::Types::OrganizationServiceFacility]
190
190
  # @example
191
191
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
192
- # api.organization_service_facilities.v_2.get(organization_service_facility_id: "30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569")
192
+ # api.organization_service_facilities.v_2.get(organization_service_facility_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
193
193
  def get(organization_service_facility_id:, request_options: nil)
194
194
  Async do
195
195
  response = @request_client.conn.get do |req|
@@ -44,19 +44,7 @@ module CandidApiClient
44
44
  # @return [CandidApiClient::PatientPayments::V4::Types::PatientPaymentsPage]
45
45
  # @example
46
46
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
47
- # api.patient_payments.v_4.get_multi(
48
- # limit: 1,
49
- # patient_external_id: "string",
50
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
51
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
52
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
53
- # unattributed: true,
54
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
55
- # sources: MANUAL_ENTRY,
56
- # sort: PAYMENT_SOURCE,
57
- # sort_direction: ASC,
58
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
59
- # )
47
+ # api.patient_payments.v_4.get_multi
60
48
  def get_multi(limit: nil, patient_external_id: nil, claim_id: nil, service_line_id: nil,
61
49
  billing_provider_id: nil, unattributed: nil, invoice_id: nil, sources: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
62
50
  response = @request_client.conn.get do |req|
@@ -130,11 +118,8 @@ module CandidApiClient
130
118
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
131
119
  # api.patient_payments.v_4.create(
132
120
  # amount_cents: 1,
133
- # payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
134
- # payment_note: "string",
135
- # patient_external_id: "string",
136
- # allocations: [{ amount_cents: 1 }],
137
- # invoice: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
121
+ # patient_external_id: "patient_external_id",
122
+ # allocations: [{ amount_cents: 1 }, { amount_cents: 1 }]
138
123
  # )
139
124
  def create(amount_cents:, patient_external_id:, allocations:, payment_timestamp: nil, payment_note: nil,
140
125
  invoice: nil, request_options: nil)
@@ -171,7 +156,7 @@ module CandidApiClient
171
156
  # @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
172
157
  # @example
173
158
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
174
- # api.patient_payments.v_4.update(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
159
+ # api.patient_payments.v_4.update(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
175
160
  def update(patient_payment_id:, payment_timestamp: nil, payment_note: nil, invoice: nil, request_options: nil)
176
161
  response = @request_client.conn.patch do |req|
177
162
  req.options.timeout = request_options.timeout_in_seconds unless request_options&.timeout_in_seconds.nil?
@@ -245,19 +230,7 @@ module CandidApiClient
245
230
  # @return [CandidApiClient::PatientPayments::V4::Types::PatientPaymentsPage]
246
231
  # @example
247
232
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
248
- # api.patient_payments.v_4.get_multi(
249
- # limit: 1,
250
- # patient_external_id: "string",
251
- # claim_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
252
- # service_line_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
253
- # billing_provider_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
254
- # unattributed: true,
255
- # invoice_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32",
256
- # sources: MANUAL_ENTRY,
257
- # sort: PAYMENT_SOURCE,
258
- # sort_direction: ASC,
259
- # page_token: "eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"
260
- # )
233
+ # api.patient_payments.v_4.get_multi
261
234
  def get_multi(limit: nil, patient_external_id: nil, claim_id: nil, service_line_id: nil,
262
235
  billing_provider_id: nil, unattributed: nil, invoice_id: nil, sources: nil, sort: nil, sort_direction: nil, page_token: nil, request_options: nil)
263
236
  Async do
@@ -335,11 +308,8 @@ module CandidApiClient
335
308
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
336
309
  # api.patient_payments.v_4.create(
337
310
  # amount_cents: 1,
338
- # payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z),
339
- # payment_note: "string",
340
- # patient_external_id: "string",
341
- # allocations: [{ amount_cents: 1 }],
342
- # invoice: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"
311
+ # patient_external_id: "patient_external_id",
312
+ # allocations: [{ amount_cents: 1 }, { amount_cents: 1 }]
343
313
  # )
344
314
  def create(amount_cents:, patient_external_id:, allocations:, payment_timestamp: nil, payment_note: nil,
345
315
  invoice: nil, request_options: nil)
@@ -378,7 +348,7 @@ module CandidApiClient
378
348
  # @return [CandidApiClient::PatientPayments::V4::Types::PatientPayment]
379
349
  # @example
380
350
  # api = CandidApiClient::Client.new(base_url: "https://api.example.com", environment: CandidApiClient::Environment::PRODUCTION)
381
- # api.patient_payments.v_4.update(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32", payment_timestamp: DateTime.parse(2024-01-15T09:30:00.000Z))
351
+ # api.patient_payments.v_4.update(patient_payment_id: "d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
382
352
  def update(patient_payment_id:, payment_timestamp: nil, payment_note: nil, invoice: nil, request_options: nil)
383
353
  Async do
384
354
  response = @request_client.conn.patch do |req|