Code Duplication    Length = 10-10 lines in 4 locations

lib/authorize_net/api/schema.rb 4 locations

@@ 5038-5047 (lines=10) @@
5035
  end
5036
5037
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}HeldTransactionRequestType
5038
  class HeldTransactionRequestType
5039
    include ROXML
5040
    xml_accessor :action
5041
    xml_accessor :refTransId
5042
  
5043
    def initialize(action = nil, refTransId = nil)
5044
      @action = action
5045
      @refTransId = refTransId
5046
    end
5047
  end
5048
5049
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}UpdateHeldTransactionRequest
5050
  #   merchantAuthentication - MerchantAuthenticationType
@@ 2415-2424 (lines=10) @@
2412
    # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}message
2413
    #   code - SOAP::SOAPString
2414
    #   text - SOAP::SOAPString
2415
    class Message
2416
      include ROXML
2417
      xml_accessor :code
2418
      xml_accessor :text
2419
  
2420
      def initialize(code = nil, text = nil)
2421
        @code = code
2422
        @text = text
2423
      end
2424
    end
2425
  
2426
    xml_accessor :resultCode
2427
    xml_accessor :messages, :as => [MessagesType::Message]
@@ 1948-1957 (lines=10) @@
1945
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}FDSFilterType
1946
  #   name - SOAP::SOAPString
1947
  #   action - SOAP::SOAPString
1948
  class FDSFilterType
1949
    include ROXML
1950
    xml_accessor :name
1951
    xml_accessor :action
1952
  
1953
    def initialize(name = nil, action = nil)
1954
      @name = name
1955
      @action = action
1956
    end
1957
  end  
1958
 
1959
    
1960
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}transactionDetailsType
@@ 465-474 (lines=10) @@
462
      # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}Mode
463
      #   pIN - SOAP::SOAPString
464
      #   data - SOAP::SOAPString
465
      class Mode
466
        include ROXML
467
        xml_accessor :PIN
468
        xml_accessor :Data
469
  
470
        def initialize(pIN = nil, data = nil)
471
          @pIN = pIN
472
          @data = data
473
        end
474
      end
475
  
476
      # inner class for member: DeviceInfo
477
      # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}DeviceInfo