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

Returns a new instance of CardAuthorizationExpirations.



7
8
9
# File 'lib/increase/resources/simulations/card_authorization_expirations.rb', line 7

def initialize(client:)
  @client = client
end

Instance Method Details

#create(params = {}, opts = {}) ⇒ Increase::Models::CardPayment

Simulates expiring a card authorization immediately.

Parameters:

  • params (Hash) (defaults to: {})

    Attributes to send in this request.

  • opts (Hash|RequestOptions) (defaults to: {})

    Options to specify HTTP behaviour for this request.

Options Hash (params):

  • :card_payment_id (String)

    The identifier of the Card Payment to expire.

Returns:



19
20
21
22
23
24
25
26
# File 'lib/increase/resources/simulations/card_authorization_expirations.rb', line 19

def create(params = {}, opts = {})
  req = {}
  req[:method] = :post
  req[:path] = "/simulations/card_authorization_expirations"
  req[:body] = params
  req[:model] = Increase::Models::CardPayment
  @client.request(req, opts)
end