Class: Moov::Models::Components::ReceiptRequest
- Inherits:
-
Object
- Object
- Moov::Models::Components::ReceiptRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/receiptrequest.rb
Overview
A receipt request for a specific transfer, schedule, or schedule occurrence.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(kind:, email: nil, email_account_id: nil, for_transfer_id: nil, for_schedule_id: nil, for_occurrence_id: nil) ⇒ ReceiptRequest
constructor
A new instance of ReceiptRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(kind:, email: nil, email_account_id: nil, for_transfer_id: nil, for_schedule_id: nil, for_occurrence_id: nil) ⇒ ReceiptRequest
Returns a new instance of ReceiptRequest.
35 36 37 38 39 40 41 42 |
# File 'lib/moov/models/components/receiptrequest.rb', line 35 def initialize(kind:, email: nil, email_account_id: nil, for_transfer_id: nil, for_schedule_id: nil, for_occurrence_id: nil) @kind = kind @email = email @email_account_id = email_account_id @for_transfer_id = for_transfer_id @for_schedule_id = for_schedule_id @for_occurrence_id = for_occurrence_id end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 |
# File 'lib/moov/models/components/receiptrequest.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @kind == other.kind return false unless @email == other.email return false unless @email_account_id == other.email_account_id return false unless @for_transfer_id == other.for_transfer_id return false unless @for_schedule_id == other.for_schedule_id return false unless @for_occurrence_id == other.for_occurrence_id true end |