Class: Increase::Resources::Simulations::CardFuelConfirmations
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::CardFuelConfirmations
- Defined in:
- lib/increase/resources/simulations/card_fuel_confirmations.rb
Instance Method Summary collapse
-
#create(amount: , card_payment_id: , request_options: {}) ⇒ Increase::Models::CardPayment
Some parameter documentations has been truncated, see Models::Simulations::CardFuelConfirmationCreateParams for more details.
-
#initialize(client:) ⇒ CardFuelConfirmations
constructor
private
A new instance of CardFuelConfirmations.
Constructor Details
#initialize(client:) ⇒ CardFuelConfirmations
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 CardFuelConfirmations.
40 41 42 |
# File 'lib/increase/resources/simulations/card_fuel_confirmations.rb', line 40 def initialize(client:) @client = client end |
Instance Method Details
#create(amount: , card_payment_id: , request_options: {}) ⇒ Increase::Models::CardPayment
Some parameter documentations has been truncated, see Models::Simulations::CardFuelConfirmationCreateParams for more details.
Simulates the fuel confirmation of an authorization by a card acquirer. This happens asynchronously right after a fuel pump transaction is completed. A fuel confirmation can only happen once per authorization.
26 27 28 29 30 31 32 33 34 35 |
# File 'lib/increase/resources/simulations/card_fuel_confirmations.rb', line 26 def create(params) parsed, = Increase::Simulations::CardFuelConfirmationCreateParams.dump_request(params) @client.request( method: :post, path: "simulations/card_fuel_confirmations", body: parsed, model: Increase::CardPayment, options: ) end |