Code Duplication    Length = 12-12 lines in 3 locations

lib/authorize_net/api/schema.rb 3 locations

@@ 1248-1259 (lines=12) @@
1245
  #   amount - SOAP::SOAPDecimal
1246
  #   name - SOAP::SOAPString
1247
  #   description - SOAP::SOAPString
1248
  class ExtendedAmountType
1249
    include ROXML
1250
    xml_accessor :amount, :as => BigDecimal
1251
    xml_accessor :name
1252
    xml_accessor :description
1253
  
1254
    def initialize(amount = nil, name = nil, description = nil)
1255
      @amount = amount
1256
      @name = name
1257
      @description = description
1258
    end
1259
  end
1260
  
1261
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}lineItemType
1262
  #   itemId - SOAP::SOAPString
@@ 1162-1173 (lines=12) @@
1159
  #   merchantCustomerId - SOAP::SOAPString
1160
  #   description - SOAP::SOAPString
1161
  #   email - SOAP::SOAPString
1162
  class CustomerProfileBaseType
1163
    include ROXML
1164
    xml_accessor :merchantCustomerId
1165
    xml_accessor :description
1166
    xml_accessor :email
1167
  
1168
    def initialize(merchantCustomerId = nil, description = nil, email = nil)
1169
      @merchantCustomerId = merchantCustomerId
1170
      @description = description
1171
      @email = email
1172
    end
1173
  end
1174
  
1175
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileType
1176
  #   merchantCustomerId - SOAP::SOAPString
@@ 677-688 (lines=12) @@
674
  #   invoiceNumber - SOAP::SOAPString
675
  #   description - SOAP::SOAPString
676
  #   purchaseOrderNumber - SOAP::SOAPString
677
  class OrderExType
678
    include ROXML
679
    xml_accessor :invoiceNumber
680
    xml_accessor :description
681
    xml_accessor :purchaseOrderNumber
682
  
683
    def initialize(invoiceNumber = nil, description = nil, purchaseOrderNumber = nil)
684
      @invoiceNumber = invoiceNumber
685
      @description = description
686
      @purchaseOrderNumber = purchaseOrderNumber
687
    end
688
  end
689
  
690
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerType
691
  #   type - CustomerTypeEnum