Class: Adyen::Dispute

Inherits:
Service show all
Defined in:
lib/adyen/services/dispute.rb

Constant Summary collapse

DEFAULT_VERSION =
30

Instance Attribute Summary collapse

Attributes inherited from Service

#service

Instance Method Summary collapse

Methods inherited from Service

action_for_method_name, #create_query_string

Constructor Details

#initialize(client, version = DEFAULT_VERSION) ⇒ Dispute

Returns a new instance of Dispute.



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/adyen/services/dispute.rb', line 9

def initialize(client, version = DEFAULT_VERSION)
  service = 'DisputeService'
  method_names = %i[
    retrieve_applicable_defense_reasons
    supply_defense_document
    delete_dispute_defense_document
    defend_dispute
  ]

  super(client, version, service, method_names)
end

Instance Attribute Details

#versionObject

Returns the value of attribute version.



5
6
7
# File 'lib/adyen/services/dispute.rb', line 5

def version
  @version
end