Sha256: a2b7dab5d53ac8ad0a24191a9cbac233f196e47c4efa566419339a9f54590633

Contents?: true

Size: 478 Bytes

Versions: 4

Compression:

Stored size: 478 Bytes

Contents

module BloomRemitClient
  module Requests
    module Payments
      class Create < Base

        PATH = "/api/v2/payments.json"

        attribute :payment, Hash
        attribute :sender_id, String
        attribute :agent_id, String

        private

        def path
          PATH
        end

        def type
          POST
        end

        def body_params
          attributes.slice(*%i[api_token agent_id sender_id payment])
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bloom_remit_client-0.7.1 lib/bloom_remit_client/requests/payments/create.rb
bloom_remit_client-0.7.0 lib/bloom_remit_client/requests/payments/create.rb
bloom_remit_client-0.6.0 lib/bloom_remit_client/requests/payments/create.rb
bloom_remit_client-0.5.0 lib/bloom_remit_client/requests/payments/create.rb