Class: GustoEmbedded::Models::Shared::RecoveryCase
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::RecoveryCase
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/recovery_case.rb
Overview
Representation of a recovery case
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(uuid:, company_uuid: nil, status: nil, check_date: nil, amount_outstanding: nil, event_total_amount: nil, latest_error_code: nil, original_debit_date: nil, payroll_uuid: nil, contractor_payment_uuids: nil) ⇒ RecoveryCase
constructor
A new instance of RecoveryCase.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(uuid:, company_uuid: nil, status: nil, check_date: nil, amount_outstanding: nil, event_total_amount: nil, latest_error_code: nil, original_debit_date: nil, payroll_uuid: nil, contractor_payment_uuids: nil) ⇒ RecoveryCase
Returns a new instance of RecoveryCase.
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/gusto_embedded/models/shared/recovery_case.rb', line 37 def initialize(uuid:, company_uuid: nil, status: nil, check_date: nil, amount_outstanding: nil, event_total_amount: nil, latest_error_code: nil, original_debit_date: nil, payroll_uuid: nil, contractor_payment_uuids: nil) @uuid = uuid @company_uuid = company_uuid @status = status @check_date = check_date @amount_outstanding = amount_outstanding @event_total_amount = event_total_amount @latest_error_code = latest_error_code @original_debit_date = original_debit_date @payroll_uuid = payroll_uuid @contractor_payment_uuids = contractor_payment_uuids end |
Instance Method Details
#==(other) ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/gusto_embedded/models/shared/recovery_case.rb', line 51 def ==(other) return false unless other.is_a? self.class return false unless @uuid == other.uuid return false unless @company_uuid == other.company_uuid return false unless @status == other.status return false unless @check_date == other.check_date return false unless @amount_outstanding == other.amount_outstanding return false unless @event_total_amount == other.event_total_amount return false unless @latest_error_code == other.latest_error_code return false unless @original_debit_date == other.original_debit_date return false unless @payroll_uuid == other.payroll_uuid return false unless @contractor_payment_uuids == other.contractor_payment_uuids true end |