Code Duplication    Length = 16-18 lines in 2 locations

lib/authorize_net/api/schema.rb 2 locations

@@ 1229-1246 (lines=18) @@
1226
  #   customerProfileId - (any)
1227
  #   paymentProfiles - CustomerPaymentProfileMaskedType
1228
  #   shipToList - CustomerAddressExType
1229
  class CustomerProfileMaskedType
1230
    include ROXML
1231
    xml_accessor :merchantCustomerId
1232
    xml_accessor :description
1233
    xml_accessor :email
1234
    xml_accessor :customerProfileId
1235
    xml_accessor :paymentProfiles, :from => 'paymentProfiles' , :as => [CustomerPaymentProfileMaskedType]
1236
    xml_accessor :shipToList, :from => 'shipToList' , :as => [CustomerAddressExType]
1237
  
1238
    def initialize(merchantCustomerId = nil, description = nil, email = nil, customerProfileId = nil, paymentProfiles = [], shipToList = [])
1239
      @merchantCustomerId = merchantCustomerId
1240
      @description = description
1241
      @email = email
1242
      @customerProfileId = customerProfileId
1243
      @paymentProfiles = paymentProfiles
1244
      @shipToList = shipToList
1245
    end
1246
  end
1247
  
1248
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}extendedAmountType
1249
  #   amount - SOAP::SOAPDecimal
@@ 1185-1200 (lines=16) @@
1182
  #   email - SOAP::SOAPString
1183
  #   paymentProfiles - CustomerPaymentProfileType
1184
  #   shipToList - CustomerAddressType
1185
  class CustomerProfileType
1186
    include ROXML
1187
    xml_accessor :merchantCustomerId
1188
    xml_accessor :description
1189
    xml_accessor :email
1190
    xml_accessor :paymentProfiles, :from => 'paymentProfiles', :as => [CustomerPaymentProfileType]
1191
    xml_accessor :shipToList, :from => 'shipToList', :as => [CustomerAddressType]
1192
  
1193
    def initialize(merchantCustomerId = nil, description = nil, email = nil, paymentProfiles = [], shipToList = [])
1194
      @merchantCustomerId = merchantCustomerId
1195
      @description = description
1196
      @email = email
1197
      @paymentProfiles = paymentProfiles
1198
      @shipToList = shipToList
1199
    end
1200
  end
1201
  
1202
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileExType
1203
  #   merchantCustomerId - SOAP::SOAPString