Code Duplication    Length = 10-14 lines in 6 locations

lib/authorize_net/api/schema.rb 6 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
@@ 2477-2490 (lines=14) @@
2474
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ArrayOfSubscription
2475
  class ArrayOfSubscription < ::Array
2476
    include ROXML
2477
    xml_accessor :subscriptionDetail, :as => [SubscriptionDetail]
2478
2479
    def initialize(subscriptionDetail = [])
2480
     @subscriptionDetail = subscriptionDetail
2481
    end
2482
  end
2483
  
2484
  
2485
  
2486
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}searchCriteriaCustomerProfileType
2487
  #   merchantCustomerId - SOAP::SOAPString
2488
  #   email - SOAP::SOAPString
2489
  class SearchCriteriaCustomerProfileType
2490
    include ROXML
2491
    xml_accessor :merchantCustomerId
2492
    xml_accessor :email
2493
  
@@ 2461-2470 (lines=10) @@
2458
      @createTimeStampUTC = createTimeStampUTC
2459
      @firstName = firstName
2460
      @lastName = lastName
2461
      @totalOccurrences = totalOccurrences
2462
      @pastOccurrences = pastOccurrences
2463
      @paymentMethod = paymentMethod
2464
      @accountNumber = accountNumber
2465
      @invoice = invoice
2466
      @amount = amount
2467
      @currencyCode = currencyCode
2468
      @customerProfileId = customerProfileId
2469
      @customerPaymentProfileId = customerPaymentProfileId
2470
      @customerShippingProfileId = customerShippingProfileId
2471
    end
2472
  end
2473
  
@@ 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