Class: Increase::Resources::DigitalWalletTokens
- Inherits:
-
Object
- Object
- Increase::Resources::DigitalWalletTokens
- Defined in:
- lib/increase/resources/digital_wallet_tokens.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ DigitalWalletTokens
constructor
A new instance of DigitalWalletTokens.
-
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::DigitalWalletToken>
List Digital Wallet Tokens.
-
#retrieve(digital_wallet_token_id, opts = {}) ⇒ Increase::Models::DigitalWalletToken
Retrieve a Digital Wallet Token.
Constructor Details
#initialize(client:) ⇒ DigitalWalletTokens
Returns a new instance of DigitalWalletTokens.
6 7 8 |
# File 'lib/increase/resources/digital_wallet_tokens.rb', line 6 def initialize(client:) @client = client end |
Instance Method Details
#list(params = {}, opts = {}) ⇒ Increase::Page<Increase::Models::DigitalWalletToken>
List Digital Wallet Tokens
36 37 38 39 40 41 42 43 44 |
# File 'lib/increase/resources/digital_wallet_tokens.rb', line 36 def list(params = {}, opts = {}) req = {} req[:method] = :get req[:path] = "/digital_wallet_tokens" req[:query] = params req[:page] = Increase::Page req[:model] = Increase::Models::DigitalWalletToken @client.request(req, opts) end |
#retrieve(digital_wallet_token_id, opts = {}) ⇒ Increase::Models::DigitalWalletToken
Retrieve a Digital Wallet Token
16 17 18 19 20 21 22 |
# File 'lib/increase/resources/digital_wallet_tokens.rb', line 16 def retrieve(digital_wallet_token_id, opts = {}) req = {} req[:method] = :get req[:path] = "/digital_wallet_tokens/#{digital_wallet_token_id}" req[:model] = Increase::Models::DigitalWalletToken @client.request(req, opts) end |