Class: Increase::Resources::Simulations::DigitalWalletTokenRequests
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::DigitalWalletTokenRequests
- Defined in:
- lib/increase/resources/simulations/digital_wallet_token_requests.rb
Instance Method Summary collapse
-
#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.
-
#initialize(client:) ⇒ DigitalWalletTokenRequests
constructor
private
A new instance of DigitalWalletTokenRequests.
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.
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.
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, = Increase::Simulations::DigitalWalletTokenRequestCreateParams.dump_request(params) @client.request( method: :post, path: "simulations/digital_wallet_token_requests", body: parsed, model: Increase::Models::Simulations::DigitalWalletTokenRequestCreateResponse, options: ) end |