Class: Transfirst::WalletSale

Inherits:
API
  • Object
show all
Defined in:
lib/transfirst/wallet_sale.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) ⇒ WalletSale

Returns a new instance of WalletSale.



5
6
7
8
9
# File 'lib/transfirst/wallet_sale.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_sale.rb', line 3

def amount
  @amount
end

#apiObject

Returns the value of attribute api.



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

def api
  @api
end

#wallet_idObject

Returns the value of attribute wallet_id.



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

def wallet_id
  @wallet_id
end