Code Duplication    Length = 16-18 lines in 2 locations

lib/authorize_net/api/schema.rb 2 locations

@@ 1276-1293 (lines=18) @@
1273
  #   customerProfileId - (any)
1274
  #   paymentProfiles - CustomerPaymentProfileMaskedType
1275
  #   shipToList - CustomerAddressExType
1276
  class CustomerProfileMaskedType
1277
    include ROXML
1278
    xml_accessor :merchantCustomerId
1279
    xml_accessor :description
1280
    xml_accessor :email
1281
    xml_accessor :customerProfileId
1282
    xml_accessor :paymentProfiles, :from => 'paymentProfiles' , :as => [CustomerPaymentProfileMaskedType]
1283
    xml_accessor :shipToList, :from => 'shipToList' , :as => [CustomerAddressExType]
1284
  
1285
    def initialize(merchantCustomerId = nil, description = nil, email = nil, customerProfileId = nil, paymentProfiles = [], shipToList = [])
1286
      @merchantCustomerId = merchantCustomerId
1287
      @description = description
1288
      @email = email
1289
      @customerProfileId = customerProfileId
1290
      @paymentProfiles = paymentProfiles
1291
      @shipToList = shipToList
1292
    end
1293
  end
1294
  
1295
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType
1296
  #   amount - SOAP::SOAPDecimal
@@ 1232-1247 (lines=16) @@
1229
  #   email - SOAP::SOAPString
1230
  #   paymentProfiles - CustomerPaymentProfileType
1231
  #   shipToList - CustomerAddressType
1232
  class CustomerProfileType
1233
    include ROXML
1234
    xml_accessor :merchantCustomerId
1235
    xml_accessor :description
1236
    xml_accessor :email
1237
    xml_accessor :paymentProfiles, :from => 'paymentProfiles', :as => [CustomerPaymentProfileType]
1238
    xml_accessor :shipToList, :from => 'shipToList', :as => [CustomerAddressType]
1239
  
1240
    def initialize(merchantCustomerId = nil, description = nil, email = nil, paymentProfiles = [], shipToList = [])
1241
      @merchantCustomerId = merchantCustomerId
1242
      @description = description
1243
      @email = email
1244
      @paymentProfiles = paymentProfiles
1245
      @shipToList = shipToList
1246
    end
1247
  end
1248
  
1249
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileExType
1250
  #   merchantCustomerId - SOAP::SOAPString