Class: SantanderChile::ApiClient::PaymentsResource

Inherits:
Resource
  • Object
show all
Defined in:
lib/santander_chile/api_client/resources/payments.rb

Constant Summary collapse

DIG_CONTACTS =
["DATA", "Mvld_SP_Consulta_Ult_Destinatarios_Response", "OUTPUT", "MATRICES", "MATRIZ-ULTIMOS-DESTINATARIOS", "e"]

Constants included from Template

Template::TEMPLATES

Instance Attribute Summary

Attributes inherited from Resource

#client

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Methods included from Template

#with_template

Constructor Details

This class inherits a constructor from SantanderChile::ApiClient::Resource

Instance Method Details

#contactsObject



6
7
8
9
# File 'lib/santander_chile/api_client/resources/payments.rb', line 6

def contacts
  response = post_request("UltimosDestinatarios", body: body_builder_contacts)
  Collection.from_response(response, dig_keys: DIG_CONTACTS, type: Contact)
end