Class: Increase::Resources::Simulations::DigitalWalletTokenRequests

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

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ DigitalWalletTokenRequests

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 DigitalWalletTokenRequests.

Parameters:



33
34
35
# File 'lib/increase/resources/simulations/digital_wallet_token_requests.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#create(card_id: , request_options: {}) ⇒ Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse

Simulates a user attempting add a [Card](#cards) to a digital wallet such as Apple Pay.

Parameters:

  • card_id (String)

    The identifier of the Card to be authorized.

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

Returns:

See Also:



19
20
21
22
23
24
25
26
27
28
# File 'lib/increase/resources/simulations/digital_wallet_token_requests.rb', line 19

def create(params)
  parsed, options = Increase::Simulations::DigitalWalletTokenRequestCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "simulations/digital_wallet_token_requests",
    body: parsed,
    model: Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse,
    options: options
  )
end