Module: Payout::V1::Card
- Defined in:
- lib/payout/v1/card.rb
Class Method Summary collapse
- .credit(params) ⇒ Object
- .retrieve(token) ⇒ Object
- .tokenize(params) ⇒ Object
- .update_customer(params) ⇒ Object
Class Method Details
.credit(params) ⇒ Object
17 18 19 20 |
# File 'lib/payout/v1/card.rb', line 17 def credit(params) token, params = _extract_token(params.dup) Payout.request(:post, "/v1/cards/#{token}/credits", params) end |
.retrieve(token) ⇒ Object
4 5 6 |
# File 'lib/payout/v1/card.rb', line 4 def retrieve(token) Payout.request(:get, "/v1/cards/#{token}") end |
.tokenize(params) ⇒ Object
8 9 10 |
# File 'lib/payout/v1/card.rb', line 8 def tokenize(params) Payout.request(:post, '/v1/cards', params) end |
.update_customer(params) ⇒ Object
12 13 14 15 |
# File 'lib/payout/v1/card.rb', line 12 def update_customer(params) token, params = _extract_token(params.dup) Payout.request(:put, "/v1/cards/#{token}/customer", params) end |