Code Duplication    Length = 10-12 lines in 5 locations

lib/authorize_net/api/schema.rb 5 locations

@@ 1248-1259 (lines=12) @@
1245
  #   customerProfileId - (any)
1246
  class CustomerProfileExType
1247
    include ROXML
1248
    xml_accessor :merchantCustomerId
1249
    xml_accessor :description
1250
    xml_accessor :email
1251
    xml_accessor :customerProfileId
1252
  
1253
    def initialize(merchantCustomerId = nil, description = nil, email = nil, customerProfileId = nil)
1254
      @merchantCustomerId = merchantCustomerId
1255
      @description = description
1256
      @email = email
1257
      @customerProfileId = customerProfileId
1258
    end
1259
  end
1260
  
1261
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileMaskedType
1262
  #   merchantCustomerId - SOAP::SOAPString
@@ 1162-1173 (lines=12) @@
1159
    include ROXML
1160
    xml_accessor :subscriptionId, :as => []
1161
  
1162
    def initialize(subscriptionId = nil)
1163
      @subscriptionId = subscriptionId
1164
    end
1165
  end
1166
1167
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerPaymentProfileMaskedType
1168
  #   customerType - CustomerTypeEnum
1169
  #   billTo - CustomerAddressType
1170
  #   customerProfileId - (any)
1171
  #   customerPaymentProfileId - (any)
1172
  #   payment - PaymentMaskedType
1173
  #   driversLicense - DriversLicenseMaskedType
1174
  #   taxId - SOAP::SOAPString
1175
  #   subscriptionIds - SubscriptionIdList
1176
  class CustomerPaymentProfileMaskedType
@@ 677-688 (lines=12) @@
674
  
675
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}orderExType
676
  #   invoiceNumber - SOAP::SOAPString
677
  #   description - SOAP::SOAPString
678
  #   purchaseOrderNumber - SOAP::SOAPString
679
  class OrderExType
680
    include ROXML
681
    xml_accessor :invoiceNumber
682
    xml_accessor :description
683
    xml_accessor :purchaseOrderNumber
684
  
685
    def initialize(invoiceNumber = nil, description = nil, purchaseOrderNumber = nil)
686
      @invoiceNumber = invoiceNumber
687
      @description = description
688
      @purchaseOrderNumber = purchaseOrderNumber
689
    end
690
  end
691
  
@@ 2461-2470 (lines=10) @@
2458
    include ROXML
2459
    xml_accessor :messages, :as => MessagesType
2460
    xml_accessor :customerProfileId
2461
    xml_accessor :customerPaymentProfileIdList, :as => NumericStringsType
2462
    xml_accessor :customerShippingAddressIdList, :as => NumericStringsType
2463
  
2464
    def initialize(messages = nil, customerProfileId = nil, customerPaymentProfileIdList = nil, customerShippingAddressIdList = nil)
2465
      @messages = messages
2466
      @customerProfileId = customerProfileId
2467
      @customerPaymentProfileIdList = customerPaymentProfileIdList
2468
      @customerShippingAddressIdList = customerShippingAddressIdList
2469
    end
2470
  end
2471
  
2472
2473
  
@@ 662-671 (lines=10) @@
659
  end
660
  
661
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}orderType
662
  #   invoiceNumber - SOAP::SOAPString
663
  #   description - SOAP::SOAPString
664
  class OrderType
665
    include ROXML
666
    xml_accessor :invoiceNumber
667
    xml_accessor :description
668
  
669
    def initialize(invoiceNumber = nil, description = nil)
670
      @invoiceNumber = invoiceNumber
671
      @description = description
672
    end
673
  end
674