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

Returns a new instance of DigitalWalletTokenRequests.



7
8
9
# File 'lib/increase/resources/simulations/digital_wallet_token_requests.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#create(params = {}, opts = {}) ⇒ Increase::Models::DigitalWalletTokenRequestCreateResponse

Simulates a user attempting add a Card to a digital wallet such as Apple Pay.

Parameters:

  • params (Hash) (defaults to: {})

    Attributes to send in this request.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Options Hash (params):

  • :card_id (String)

    The identifier of the Card to be authorized.

Returns:



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

def create(params = {}, opts = {})
  req = {}
  req[:method] = :post
  req[:path] = "/simulations/digital_wallet_token_requests"
  req[:body] = params
  req[:model] = Increase::Models::DigitalWalletTokenRequestCreateResponse
  @client.request(req, opts)
end