Sha256: 614f3948f802f278411f36cbb938e8adcb00c9282dd482d438aac0f8c1ba89ee

Contents?: true

Size: 996 Bytes

Versions: 1

Compression:

Stored size: 996 Bytes

Contents

##
#
# TODO: parsing those files and so...
module Nuncium
  module WebServices
    module DmOperations
      class CreateMultipleMessages < ::Nuncium::WebServices::DmOperations::Request
        ATTRS = %i[dmSenderOrgUnit dmSenderOrgUnitNum dbIDRecipient
                   dmRecipientOrgUnit dmRecipientOrgUnitNum dmToHands
                   dmAnnotation dmRecipientRefNumber dmSenderRefNumber
                   dmRecipientIdent dmSenderIdent dmLegalTitleLaw
                   dmLegalTitleYear dmLegalTitleSect dmLegalTitlePar
                   dmLegalTitlePoint dmPersonalDelivery dmAllowSubstDelivery
                   dmOVM dmPublishOwnID].freeze
        # + files:
        #   dmFiles: { dmFile: { dmEncodedContent: '', dmXMLContent: '' } }

        attr_accessor(*ATTRS)

        def body(xml)
          xml[:v20].CreateMultipleMessage do
            xml[:v20].dmEnvelope(dmType: 'WTF') do
              values(xml)
            end
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nuncium-0.13.0 lib/nuncium/web_services/dm_operations/create_multiple_messages.rb