Class: Increase::Resources::Simulations::CardAuthorizationExpirations

Inherits:
Object
  • Object
show all
Defined in:
lib/increase/resources/simulations/card_authorization_expirations.rb

Instance Method Summary collapse

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.

Parameters:



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.

Parameters:

  • card_payment_id (String)

    The identifier of the Card Payment to expire.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



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, options = Increase::Simulations::CardAuthorizationExpirationCreateParams.dump_request(params)
  @client.request(
    method: :post,
    path: "simulations/card_authorization_expirations",
    body: parsed,
    model: Increase::CardPayment,
    options: options
  )
end