Class: Wompi::Token

Inherits:
Resource show all
Defined in:
lib/wompi/resources/token.rb

Class Method Summary collapse

Methods inherited from Resource

get, post

Class Method Details

.check_nequi_status(token_id) ⇒ Object



11
12
13
# File 'lib/wompi/resources/token.rb', line 11

def self.check_nequi_status(token_id)
  get("tokens/nequi/#{token_id}", {}, auth_type: :public)
end

.create_card(params = {}) ⇒ Object



3
4
5
# File 'lib/wompi/resources/token.rb', line 3

def self.create_card(params = {})
  post("tokens/cards", params, auth_type: :public)
end

.create_nequi(phone_number) ⇒ Object



7
8
9
# File 'lib/wompi/resources/token.rb', line 7

def self.create_nequi(phone_number)
  post("tokens/nequi", { phone_number: phone_number }, auth_type: :public)
end