Sha256: 6dd326949322fa41861c3e4a997a487d49e6e2ace779c0ba9000bb53a75a7a4a

Contents?: true

Size: 559 Bytes

Versions: 2

Compression:

Stored size: 559 Bytes

Contents

module SantanderChile
  module ApiClient
    class PaymentsResource < Resource
      DIG_CONTACTS = ["DATA", "Mvld_SP_Consulta_Ult_Destinatarios_Response", "OUTPUT", "MATRICES", "MATRIZ-ULTIMOS-DESTINATARIOS", "e"]

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

      private

      def body_builder_contacts
        with_template "requests/UltimosDestinatarios", client: @client
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
santander_chile-api_client-1.1.1 lib/santander_chile/api_client/resources/payments.rb
santander_chile-api_client-1.1.0 lib/santander_chile/api_client/resources/payments.rb