Class: GustoEmbedded::Models::Shared::ContractorPaymentReceipt
- Inherits:
-
Object
- Object
- GustoEmbedded::Models::Shared::ContractorPaymentReceipt
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/gusto_embedded/models/shared/contractor_payment_receipt.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(contractor_payment_uuid: nil, company_uuid: nil, name_of_sender: nil, name_of_recipient: nil, debit_date: nil, license: nil, license_uri: nil, right_to_refund: nil, liability_of_licensee: nil, totals: nil, contractor_payments: nil, licensee: nil) ⇒ ContractorPaymentReceipt
constructor
A new instance of ContractorPaymentReceipt.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(contractor_payment_uuid: nil, company_uuid: nil, name_of_sender: nil, name_of_recipient: nil, debit_date: nil, license: nil, license_uri: nil, right_to_refund: nil, liability_of_licensee: nil, totals: nil, contractor_payments: nil, licensee: nil) ⇒ ContractorPaymentReceipt
Returns a new instance of ContractorPaymentReceipt.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gusto_embedded/models/shared/contractor_payment_receipt.rb', line 41 def initialize(contractor_payment_uuid: nil, company_uuid: nil, name_of_sender: nil, name_of_recipient: nil, debit_date: nil, license: nil, license_uri: nil, right_to_refund: nil, liability_of_licensee: nil, totals: nil, contractor_payments: nil, licensee: nil) @contractor_payment_uuid = contractor_payment_uuid @company_uuid = company_uuid @name_of_sender = name_of_sender @name_of_recipient = name_of_recipient @debit_date = debit_date @license = license @license_uri = license_uri @right_to_refund = right_to_refund @liability_of_licensee = liability_of_licensee @totals = totals @contractor_payments = contractor_payments @licensee = licensee end |
Instance Method Details
#==(other) ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/gusto_embedded/models/shared/contractor_payment_receipt.rb', line 57 def ==(other) return false unless other.is_a? self.class return false unless @contractor_payment_uuid == other.contractor_payment_uuid return false unless @company_uuid == other.company_uuid return false unless @name_of_sender == other.name_of_sender return false unless @name_of_recipient == other.name_of_recipient return false unless @debit_date == other.debit_date return false unless @license == other.license return false unless @license_uri == other.license_uri return false unless @right_to_refund == other.right_to_refund return false unless @liability_of_licensee == other.liability_of_licensee return false unless @totals == other.totals return false unless @contractor_payments == other.contractor_payments return false unless @licensee == other.licensee true end |