Class: Moov::Models::Components::Dispute

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/dispute.rb

Overview

Details of a card transaction dispute.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(dispute_id:, merchant_account_id:, amount:, network_reason_code:, transfer:, respond_by:, status:, phase:, created_on:, network_reason_description: nil, submitted_on: nil) ⇒ Dispute

Returns a new instance of Dispute.



44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/moov/models/components/dispute.rb', line 44

def initialize(dispute_id:, merchant_account_id:, amount:, network_reason_code:, transfer:, respond_by:, status:, phase:, created_on:, network_reason_description: nil, submitted_on: nil)
  @dispute_id = dispute_id
  @merchant_account_id = 
  @amount = amount
  @network_reason_code = network_reason_code
  @transfer = transfer
  @respond_by = respond_by
  @status = status
  @phase = phase
  @created_on = created_on
  @network_reason_description = network_reason_description
  @submitted_on = 
end

Instance Method Details

#==(other) ⇒ Object



59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/moov/models/components/dispute.rb', line 59

def ==(other)
  return false unless other.is_a? self.class
  return false unless @dispute_id == other.dispute_id
  return false unless @merchant_account_id == other.
  return false unless @amount == other.amount
  return false unless @network_reason_code == other.network_reason_code
  return false unless @transfer == other.transfer
  return false unless @respond_by == other.respond_by
  return false unless @status == other.status
  return false unless @phase == other.phase
  return false unless @created_on == other.created_on
  return false unless @network_reason_description == other.network_reason_description
  return false unless @submitted_on == other.
  true
end