Class: Increase::Resources::DigitalWalletTokens

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/digital_wallet_tokens.rb

Instance Method Summary collapse

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.

Parameters:



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

Parameters:

Returns:

See Also:



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, options = Increase::DigitalWalletTokenListParams.dump_request(params)
  @client.request(
    method: :get,
    path: "digital_wallet_tokens",
    query: parsed,
    page: Increase::Internal::Page,
    model: Increase::DigitalWalletToken,
    options: options
  )
end

#retrieve(digital_wallet_token_id, request_options: {}) ⇒ Increase::Models::DigitalWalletToken

Retrieve a Digital Wallet Token

Parameters:

  • digital_wallet_token_id (String)

    The identifier of the Digital Wallet Token.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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