Code Duplication    Length = 10-12 lines in 5 locations

lib/authorize_net/api/schema.rb 5 locations

@@ 1248-1259 (lines=12) @@
1245
    end
1246
  end
1247
  
1248
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType
1249
  #   amount - SOAP::SOAPDecimal
1250
  #   name - SOAP::SOAPString
1251
  #   description - SOAP::SOAPString
1252
  class ExtendedAmountType
1253
    include ROXML
1254
    xml_accessor :amount, :as => BigDecimal
1255
    xml_accessor :name
1256
    xml_accessor :description
1257
  
1258
    def initialize(amount = nil, name = nil, description = nil)
1259
      @amount = amount
1260
      @name = name
1261
      @description = description
1262
    end
@@ 1162-1173 (lines=12) @@
1159
    end
1160
  end
1161
 
1162
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileBaseType
1163
  #   merchantCustomerId - SOAP::SOAPString
1164
  #   description - SOAP::SOAPString
1165
  #   email - SOAP::SOAPString
1166
  class CustomerProfileBaseType
1167
    include ROXML
1168
    xml_accessor :merchantCustomerId
1169
    xml_accessor :description
1170
    xml_accessor :email
1171
  
1172
    def initialize(merchantCustomerId = nil, description = nil, email = nil)
1173
      @merchantCustomerId = merchantCustomerId
1174
      @description = description
1175
      @email = email
1176
    end
@@ 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
@@ 2461-2470 (lines=10) @@
2458
    xml_accessor :amount
2459
    xml_accessor :currencyCode
2460
    xml_accessor :customerProfileId
2461
    xml_accessor :customerPaymentProfileId
2462
    xml_accessor :customerShippingProfileId
2463
  
2464
    def initialize(id = nil, name = nil, status = nil, createTimeStampUTC = nil, firstName = nil, lastName = nil, totalOccurrences = nil, pastOccurrences = nil, paymentMethod = nil, accountNumber = nil, invoice = nil, amount = nil, currencyCode = nil, customerProfileId = nil, customerPaymentProfileId = nil, customerShippingProfileId = nil)
2465
      @id = id
2466
      @name = name
2467
      @status = status
2468
      @createTimeStampUTC = createTimeStampUTC
2469
      @firstName = firstName
2470
      @lastName = lastName
2471
      @totalOccurrences = totalOccurrences
2472
      @pastOccurrences = pastOccurrences
2473
      @paymentMethod = paymentMethod
@@ 662-671 (lines=10) @@
659
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}orderType
660
  #   invoiceNumber - SOAP::SOAPString
661
  #   description - SOAP::SOAPString
662
  class OrderType
663
    include ROXML
664
    xml_accessor :invoiceNumber
665
    xml_accessor :description
666
  
667
    def initialize(invoiceNumber = nil, description = nil)
668
      @invoiceNumber = invoiceNumber
669
      @description = description
670
    end
671
  end
672
  
673
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}orderExType
674
  #   invoiceNumber - SOAP::SOAPString