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
private
A new instance of DigitalWalletTokens.
-
#list(card_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::DigitalWalletToken>
Some parameter documentations has been truncated, see Models::DigitalWalletTokenListParams for more details.
-
#retrieve(digital_wallet_token_id, request_options: {}) ⇒ Increase::Models::DigitalWalletToken
Retrieve a Digital Wallet Token.
Constructor Details
#initialize(client:) ⇒ DigitalWalletTokens
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of DigitalWalletTokens.
61 62 63 |
# File 'lib/increase/resources/digital_wallet_tokens.rb', line 61 def initialize(client:) @client = client end |
Instance Method Details
#list(card_id: nil, created_at: nil, cursor: nil, limit: nil, request_options: {}) ⇒ Increase::Internal::Page<Increase::Models::DigitalWalletToken>
Some parameter documentations has been truncated, see Models::DigitalWalletTokenListParams for more details.
List Digital Wallet Tokens
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/increase/resources/digital_wallet_tokens.rb', line 46 def list(params = {}) parsed, = Increase::DigitalWalletTokenListParams.dump_request(params) @client.request( method: :get, path: "digital_wallet_tokens", query: parsed, page: Increase::Internal::Page, model: Increase::DigitalWalletToken, options: ) end |
#retrieve(digital_wallet_token_id, request_options: {}) ⇒ Increase::Models::DigitalWalletToken
Retrieve a Digital Wallet Token
17 18 19 20 21 22 23 24 |
# File 'lib/increase/resources/digital_wallet_tokens.rb', line 17 def retrieve(digital_wallet_token_id, params = {}) @client.request( method: :get, path: ["digital_wallet_tokens/%1$s", digital_wallet_token_id], model: Increase::DigitalWalletToken, options: params[:request_options] ) end |