Class: Increase::Resources::Simulations::CardIncrements
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::CardIncrements
- Defined in:
- lib/increase/resources/simulations/card_increments.rb
Instance Method Summary collapse
-
#create(params = {}, opts = {}) ⇒ Increase::Models::CardPayment
Simulates the increment of an authorization by a card acquirer.
-
#initialize(client:) ⇒ CardIncrements
constructor
A new instance of CardIncrements.
Constructor Details
#initialize(client:) ⇒ CardIncrements
Returns a new instance of CardIncrements.
7 8 9 |
# File 'lib/increase/resources/simulations/card_increments.rb', line 7 def initialize(client:) @client = client end |
Instance Method Details
#create(params = {}, opts = {}) ⇒ Increase::Models::CardPayment
Simulates the increment of an authorization by a card acquirer. An authorization can be incremented multiple times.
25 26 27 28 29 30 31 32 |
# File 'lib/increase/resources/simulations/card_increments.rb', line 25 def create(params = {}, opts = {}) req = {} req[:method] = :post req[:path] = "/simulations/card_increments" req[:body] = params req[:model] = Increase::Models::CardPayment @client.request(req, opts) end |