Class: ApRubySdk::Refund

Inherits:
ApiResource show all
Includes:
ApiOperations::Create, ApiOperations::List, ApiOperations::Retrieve
Defined in:
lib/ap_ruby_sdk/refund.rb

Instance Attribute Summary collapse

Attributes inherited from ApiResource

#mode

Attributes inherited from BaseModel

#created, #id, #mode, #updated

Class Method Summary collapse

Methods included from ApiOperations::List

included

Methods included from ApiOperations::Retrieve

included

Methods included from ApiOperations::Create

included

Methods inherited from ApiResource

construct_object, url_with_prefix

Methods inherited from BaseModel

#attributes=, #initialize, #to_json

Constructor Details

This class inherits a constructor from ApRubySdk::BaseModel

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



7
8
9
# File 'lib/ap_ruby_sdk/refund.rb', line 7

def amount
  @amount
end

#currencyObject

Returns the value of attribute currency.



7
8
9
# File 'lib/ap_ruby_sdk/refund.rb', line 7

def currency
  @currency
end

#originalTransactionObject

Returns the value of attribute originalTransaction.



7
8
9
# File 'lib/ap_ruby_sdk/refund.rb', line 7

def originalTransaction
  @originalTransaction
end

#originalTransactionIdObject

Returns the value of attribute originalTransactionId.



7
8
9
# File 'lib/ap_ruby_sdk/refund.rb', line 7

def originalTransactionId
  @originalTransactionId
end

#reasonObject

Returns the value of attribute reason.



7
8
9
# File 'lib/ap_ruby_sdk/refund.rb', line 7

def reason
  @reason
end

#statusObject

Returns the value of attribute status.



7
8
9
# File 'lib/ap_ruby_sdk/refund.rb', line 7

def status
  @status
end

Class Method Details

.list_membersObject



22
23
24
# File 'lib/ap_ruby_sdk/refund.rb', line 22

def self.list_members
  :refundTransactions
end

.urlObject



18
19
20
# File 'lib/ap_ruby_sdk/refund.rb', line 18

def self.url
  '/refunds'
end