Class: Increase::Resources::Simulations::CardAuthorizationExpirations
- Inherits:
-
Object
- Object
- Increase::Resources::Simulations::CardAuthorizationExpirations
- Defined in:
- lib/increase/resources/simulations/card_authorization_expirations.rb
Instance Method Summary collapse
-
#create(card_payment_id: , request_options: {}) ⇒ Increase::Models::CardPayment
Simulates expiring a Card Authorization immediately.
-
#initialize(client:) ⇒ CardAuthorizationExpirations
constructor
private
A new instance of CardAuthorizationExpirations.
Constructor Details
#initialize(client:) ⇒ CardAuthorizationExpirations
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 CardAuthorizationExpirations.
32 33 34 |
# File 'lib/increase/resources/simulations/card_authorization_expirations.rb', line 32 def initialize(client:) @client = client end |
Instance Method Details
#create(card_payment_id: , request_options: {}) ⇒ Increase::Models::CardPayment
Simulates expiring a Card Authorization immediately.
18 19 20 21 22 23 24 25 26 27 |
# File 'lib/increase/resources/simulations/card_authorization_expirations.rb', line 18 def create(params) parsed, = Increase::Simulations::CardAuthorizationExpirationCreateParams.dump_request(params) @client.request( method: :post, path: "simulations/card_authorization_expirations", body: parsed, model: Increase::CardPayment, options: ) end |