Class: Transfirst::WalletRefund

Inherits:
API
  • Object
show all
Defined in:
lib/transfirst/wallet_refund.rb

Constant Summary

Constants inherited from API

API::ADD_ENTITY, API::MERCHANT_PROD_TYPE, API::MERCHANT_WEB_SERVICE, API::NO_API_ERROR, API::RECURRING, API::STATUS_ACTIVE, API::STATUS_INACTIVE, API::UPDATE_ENTITY, API::VERSION, API::XSD_PATH

Instance Attribute Summary collapse

Attributes inherited from API

#client, #gateway_id, #registration_key

Instance Method Summary collapse

Methods inherited from API

#make_request, #register

Constructor Details

#initialize(*args) ⇒ WalletRefund

Returns a new instance of WalletRefund.



5
6
7
8
9
# File 'lib/transfirst/wallet_refund.rb', line 5

def initialize(*args)
  api, attrs = *args
  @api = api
  @body = build_request(attrs)
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



3
4
5
# File 'lib/transfirst/wallet_refund.rb', line 3

def amount
  @amount
end

#apiObject

Returns the value of attribute api.



3
4
5
# File 'lib/transfirst/wallet_refund.rb', line 3

def api
  @api
end

#tran_nrObject

Returns the value of attribute tran_nr.



3
4
5
# File 'lib/transfirst/wallet_refund.rb', line 3

def tran_nr
  @tran_nr
end