Class: Mondido::CreditCard::Refund

Inherits:
BaseModel
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/mondido/credit_card/refund.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from BaseModel

all, #api_params, create, get, #update_from_response

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



6
7
8
# File 'lib/mondido/credit_card/refund.rb', line 6

def amount
  @amount
end

#created_atObject

Returns the value of attribute created_at.



6
7
8
# File 'lib/mondido/credit_card/refund.rb', line 6

def created_at
  @created_at
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/mondido/credit_card/refund.rb', line 6

def id
  @id
end

#reasonObject

Returns the value of attribute reason.



6
7
8
# File 'lib/mondido/credit_card/refund.rb', line 6

def reason
  @reason
end

#refObject

Returns the value of attribute ref.



6
7
8
# File 'lib/mondido/credit_card/refund.rb', line 6

def ref
  @ref
end

#transactionObject

Returns the value of attribute transaction.



6
7
8
# File 'lib/mondido/credit_card/refund.rb', line 6

def transaction
  @transaction
end

#transaction_idObject

Returns the value of attribute transaction_id.



6
7
8
# File 'lib/mondido/credit_card/refund.rb', line 6

def transaction_id
  @transaction_id
end

Class Method Details

.delete(id) ⇒ Object



26
27
28
# File 'lib/mondido/credit_card/refund.rb', line 26

def self.delete(id)
  raise Mondido::Exceptions::NotApplicable.new 'Can not delete Transaction'
end