Sha256: 0b924e6b8cd0aaadde54747437d11f9083c1d2dcff1b55a73acb21a42a587221

Contents?: true

Size: 744 Bytes

Versions: 1

Compression:

Stored size: 744 Bytes

Contents

# frozen_string_literal: true

module FinApps
  module REST
    class EdmTransmissions < FinAppsCore::REST::Resources # :nodoc:
      def create(order_id, params)
        not_blank(order_id, :order_id)

        path = "documents/edm/#{ERB::Util.url_encode(order_id)}/transmit"
        super(params, path)
      end

      def show(transmission_id)
        not_blank(transmission_id, :transmission_id)

        path = "documents/edm/#{ERB::Util.url_encode(transmission_id)}"
        super transmission_id, path
      end

      def show_by_order(order_id)
        not_blank(order_id, :order_id)

        path = "documents/edm/#{ERB::Util.url_encode(order_id)}/status"
        send_request_for_id path, :get, order_id
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
finapps-6.13.1 lib/finapps/rest/edm_transmissions.rb