Class: MasspayRubySdk::CardService
- Inherits:
-
Object
- Object
- MasspayRubySdk::CardService
- Defined in:
- lib/masspay_ruby_sdk/api/card_service.rb
Instance Method Summary collapse
-
#get_wallet_card_info(user_token, wallet_token) ⇒ Object
Get MassPay card information GET /payout/wallet/user_token/wallet_token/card.
-
#initialize(client) ⇒ CardService
constructor
A new instance of CardService.
-
#update_wallet_card_info(user_token, wallet_token, query_params = {}) ⇒ Object
Update MassPay card information PUT /payout/wallet/user_token/wallet_token/card.
Constructor Details
#initialize(client) ⇒ CardService
Returns a new instance of CardService.
15 16 17 |
# File 'lib/masspay_ruby_sdk/api/card_service.rb', line 15 def initialize(client) @client = client ||= Client.new end |
Instance Method Details
#get_wallet_card_info(user_token, wallet_token) ⇒ Object
Get MassPay card information GET /payout/wallet/user_token/wallet_token/card
21 22 23 |
# File 'lib/masspay_ruby_sdk/api/card_service.rb', line 21 def get_wallet_card_info user_token, wallet_token @client.get("payout/wallet/#{user_token}/#{wallet_token}/card") end |
#update_wallet_card_info(user_token, wallet_token, query_params = {}) ⇒ Object
Update MassPay card information PUT /payout/wallet/user_token/wallet_token/card
28 29 30 31 32 |
# File 'lib/masspay_ruby_sdk/api/card_service.rb', line 28 def update_wallet_card_info user_token, wallet_token, query_params={} @client.put("payout/wallet/#{user_token}/#{wallet_token}/card") do |req| req.params = query_params end end |