Class: GustoEmbedded::Models::Shared::ContractorPayment

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/shared/contractor_payment.rb

Overview

The representation of a single contractor payment.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(uuid:, contractor_uuid: nil, bonus: nil, date: nil, hours: nil, payment_method: nil, reimbursement: nil, status: nil, hourly_rate: nil, may_cancel: nil, wage: nil, wage_type: nil, wage_total: nil) ⇒ ContractorPayment

Returns a new instance of ContractorPayment.



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/gusto_embedded/models/shared/contractor_payment.rb', line 43

def initialize(uuid:, contractor_uuid: nil, bonus: nil, date: nil, hours: nil, payment_method: nil, reimbursement: nil, status: nil, hourly_rate: nil, may_cancel: nil, wage: nil, wage_type: nil, wage_total: nil)
  @uuid = uuid
  @contractor_uuid = contractor_uuid
  @bonus = bonus
  @date = date
  @hours = hours
  @payment_method = payment_method
  @reimbursement = reimbursement
  @status = status
  @hourly_rate = hourly_rate
  @may_cancel = may_cancel
  @wage = wage
  @wage_type = wage_type
  @wage_total = wage_total
end

Instance Method Details

#==(other) ⇒ Object



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'lib/gusto_embedded/models/shared/contractor_payment.rb', line 60

def ==(other)
  return false unless other.is_a? self.class
  return false unless @uuid == other.uuid
  return false unless @contractor_uuid == other.contractor_uuid
  return false unless @bonus == other.bonus
  return false unless @date == other.date
  return false unless @hours == other.hours
  return false unless @payment_method == other.payment_method
  return false unless @reimbursement == other.reimbursement
  return false unless @status == other.status
  return false unless @hourly_rate == other.hourly_rate
  return false unless @may_cancel == other.may_cancel
  return false unless @wage == other.wage
  return false unless @wage_type == other.wage_type
  return false unless @wage_total == other.wage_total
  true
end