Class: Lithic::Resources::CreditProducts::ExtendedCredit

Inherits:
Object
  • Object
show all
Defined in:
lib/lithic/resources/credit_products/extended_credit.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ ExtendedCredit

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 ExtendedCredit.



30
31
32
# File 'lib/lithic/resources/credit_products/extended_credit.rb', line 30

def initialize(client:)
  @client = client
end

Instance Method Details

#retrieve(credit_product_token, request_options: {}) ⇒ Lithic::Models::CreditProducts::CreditProductsExtendedCredit

Get the extended credit for a given credit product under a program



18
19
20
21
22
23
24
25
# File 'lib/lithic/resources/credit_products/extended_credit.rb', line 18

def retrieve(credit_product_token, params = {})
  @client.request(
    method: :get,
    path: ["v1/credit_products/%1$s/extended_credit", credit_product_token],
    model: Lithic::CreditProducts::CreditProductsExtendedCredit,
    options: params[:request_options]
  )
end