Class: CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureClaimCreationSummary

Inherits:
Object
  • Object
show all
Defined in:
lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb

Constant Summary collapse

OMIT =
Object.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(charge_capture_charges_not_linked_to_claims_count:, charge_capture_claim_creations_not_started_count:, charge_capture_held_claim_creations_count:, charge_capture_claim_creations_in_error_count:, charge_capture_unresolved_change_count:, additional_properties: nil) ⇒ CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureClaimCreationSummary

Parameters:

  • charge_capture_charges_not_linked_to_claims_count (Integer)

    The count of charge captures which are not part of a Claim Creation.

  • charge_capture_claim_creations_not_started_count (Integer)

    The count of charge capture claim_creations that have a Claim Creation status of NOT_STARTED.

  • charge_capture_held_claim_creations_count (Integer)

    The count of charge capture claim_creations that have a Claim Creation status of HELD.

  • charge_capture_claim_creations_in_error_count (Integer)

    The count of charge capture claim_creations that have a Claim Creation status of IN_ERROR.

  • charge_capture_unresolved_change_count (Integer)

    The number of ChargeCapturePostBilledChange items that are unresolved.

  • additional_properties (OpenStruct) (defaults to: nil)

    Additional properties unmapped to the current class definition



42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 42

def initialize(charge_capture_charges_not_linked_to_claims_count:,
               charge_capture_claim_creations_not_started_count:, charge_capture_held_claim_creations_count:, charge_capture_claim_creations_in_error_count:, charge_capture_unresolved_change_count:, additional_properties: nil)
  @charge_capture_charges_not_linked_to_claims_count = charge_capture_charges_not_linked_to_claims_count
  @charge_capture_claim_creations_not_started_count = charge_capture_claim_creations_not_started_count
  @charge_capture_held_claim_creations_count = charge_capture_held_claim_creations_count
  @charge_capture_claim_creations_in_error_count = charge_capture_claim_creations_in_error_count
  @charge_capture_unresolved_change_count = charge_capture_unresolved_change_count
  @additional_properties = additional_properties
  @_field_set = {
    "charge_capture_charges_not_linked_to_claims_count": charge_capture_charges_not_linked_to_claims_count, "charge_capture_claim_creations_not_started_count": charge_capture_claim_creations_not_started_count, "charge_capture_held_claim_creations_count": charge_capture_held_claim_creations_count, "charge_capture_claim_creations_in_error_count": charge_capture_claim_creations_in_error_count, "charge_capture_unresolved_change_count": charge_capture_unresolved_change_count
  }
end

Instance Attribute Details

#additional_propertiesOpenStruct (readonly)

Returns Additional properties unmapped to the current class definition.

Returns:

  • (OpenStruct)

    Additional properties unmapped to the current class definition



25
26
27
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 25

def additional_properties
  @additional_properties
end

#charge_capture_charges_not_linked_to_claims_countInteger (readonly)

Returns The count of charge captures which are not part of a Claim Creation.

Returns:

  • (Integer)

    The count of charge captures which are not part of a Claim Creation.



12
13
14
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 12

def charge_capture_charges_not_linked_to_claims_count
  @charge_capture_charges_not_linked_to_claims_count
end

#charge_capture_claim_creations_in_error_countInteger (readonly)

Returns The count of charge capture claim_creations that have a Claim Creation status of IN_ERROR.

Returns:

  • (Integer)

    The count of charge capture claim_creations that have a Claim Creation status of IN_ERROR.



21
22
23
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 21

def charge_capture_claim_creations_in_error_count
  @charge_capture_claim_creations_in_error_count
end

#charge_capture_claim_creations_not_started_countInteger (readonly)

Returns The count of charge capture claim_creations that have a Claim Creation status of NOT_STARTED.

Returns:

  • (Integer)

    The count of charge capture claim_creations that have a Claim Creation status of NOT_STARTED.



15
16
17
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 15

def charge_capture_claim_creations_not_started_count
  @charge_capture_claim_creations_not_started_count
end

#charge_capture_held_claim_creations_countInteger (readonly)

Returns The count of charge capture claim_creations that have a Claim Creation status of HELD.

Returns:

  • (Integer)

    The count of charge capture claim_creations that have a Claim Creation status of HELD.



18
19
20
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 18

def charge_capture_held_claim_creations_count
  @charge_capture_held_claim_creations_count
end

#charge_capture_unresolved_change_countInteger (readonly)

Returns The number of ChargeCapturePostBilledChange items that are unresolved.

Returns:

  • (Integer)

    The number of ChargeCapturePostBilledChange items that are unresolved.



23
24
25
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 23

def charge_capture_unresolved_change_count
  @charge_capture_unresolved_change_count
end

Class Method Details

.from_json(json_object:) ⇒ CandidApiClient::ChargeCaptureBundles::V1::Types::ChargeCaptureClaimCreationSummary

Deserialize a JSON object to an instance of ChargeCaptureClaimCreationSummary



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 59

def self.from_json(json_object:)
  struct = JSON.parse(json_object, object_class: OpenStruct)
  charge_capture_charges_not_linked_to_claims_count = struct["charge_capture_charges_not_linked_to_claims_count"]
  charge_capture_claim_creations_not_started_count = struct["charge_capture_claim_creations_not_started_count"]
  charge_capture_held_claim_creations_count = struct["charge_capture_held_claim_creations_count"]
  charge_capture_claim_creations_in_error_count = struct["charge_capture_claim_creations_in_error_count"]
  charge_capture_unresolved_change_count = struct["charge_capture_unresolved_change_count"]
  new(
    charge_capture_charges_not_linked_to_claims_count: charge_capture_charges_not_linked_to_claims_count,
    charge_capture_claim_creations_not_started_count: charge_capture_claim_creations_not_started_count,
    charge_capture_held_claim_creations_count: charge_capture_held_claim_creations_count,
    charge_capture_claim_creations_in_error_count: charge_capture_claim_creations_in_error_count,
    charge_capture_unresolved_change_count: charge_capture_unresolved_change_count,
    additional_properties: struct
  )
end

.validate_raw(obj:) ⇒ Void

Leveraged for Union-type generation, validate_raw attempts to parse the given

hash and check each fields type against the current object's property
definitions.

Parameters:

  • obj (Object)

Returns:

  • (Void)


89
90
91
92
93
94
95
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 89

def self.validate_raw(obj:)
  obj.charge_capture_charges_not_linked_to_claims_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_charges_not_linked_to_claims_count is not the expected type, validation failed.")
  obj.charge_capture_claim_creations_not_started_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_claim_creations_not_started_count is not the expected type, validation failed.")
  obj.charge_capture_held_claim_creations_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_held_claim_creations_count is not the expected type, validation failed.")
  obj.charge_capture_claim_creations_in_error_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_claim_creations_in_error_count is not the expected type, validation failed.")
  obj.charge_capture_unresolved_change_count.is_a?(Integer) != false || raise("Passed value for field obj.charge_capture_unresolved_change_count is not the expected type, validation failed.")
end

Instance Method Details

#to_json(*_args) ⇒ String

Serialize an instance of ChargeCaptureClaimCreationSummary to a JSON object

Returns:

  • (String)


79
80
81
# File 'lib/candidhealth/charge_capture_bundles/v_1/types/charge_capture_claim_creation_summary.rb', line 79

def to_json(*_args)
  @_field_set&.to_json
end