Code Duplication    Length = 20-22 lines in 3 locations

lib/authorize_net/api/schema.rb 3 locations

@@ 790-811 (lines=22) @@
787
  #   fingerPrint - FingerPrintType
788
  #   mobileDeviceId - SOAP::SOAPString
789
  #   accessToken - SOAP::SOAPString
790
  class MerchantAuthenticationType
791
    include ROXML
792
    xml_accessor :name
793
    xml_accessor :transactionKey
794
    xml_accessor :sessionToken
795
    xml_accessor :password
796
    xml_accessor :impersonationAuthentication, :as => ImpersonationAuthenticationType
797
    xml_accessor :fingerPrint, :as => FingerPrintType
798
    xml_accessor :mobileDeviceId
799
	xml_accessor :accessToken
800
  
801
    def initialize(name = nil, transactionKey = nil, sessionToken = nil, password = nil, impersonationAuthentication = nil, fingerPrint = nil, mobileDeviceId = nil, accessToken = nil)
802
      @name = name
803
      @transactionKey = transactionKey
804
      @sessionToken = sessionToken
805
      @password = password
806
      @impersonationAuthentication = impersonationAuthentication
807
      @fingerPrint = fingerPrint
808
      @mobileDeviceId = mobileDeviceId
809
      @accessToken = accessToken
810
    end
811
  end
812
  
813
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}cardArt
814
#   cardBrand - SOAP::SOAPString
@@ 3205-3224 (lines=20) @@
3202
      @customerProfileId = customerProfileId
3203
      @customerAddressId = customerAddressId
3204
    end
3205
  end
3206
  
3207
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerProfileFromTransactionRequest
3208
  #   merchantAuthentication - MerchantAuthenticationType
3209
  #   refId - SOAP::SOAPString
3210
  #   transId - (any)
3211
  #   customer - CustomerProfileBaseType
3212
  #   customerProfileId - NumericStringsType
3213
  class CreateCustomerProfileFromTransactionRequest 
3214
    include ROXML
3215
    xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
3216
    xml_accessor :refId
3217
    xml_accessor :transId
3218
    xml_accessor :customer, :as => CustomerProfileBaseType
3219
    xml_accessor :customerProfileId, :as => NumericStringsType
3220
    xml_accessor :defaultPaymentProfile
3221
    xml_accessor :defaultShippingAddress
3222
  
3223
    def initialize(merchantAuthentication = nil, refId = nil, transId = nil, customer = nil, customerProfileId = nil, defaultPaymentProfile = nil, defaultShippingAddress = nil)
3224
      @merchantAuthentication = merchantAuthentication
3225
      @refId = refId
3226
      @transId = transId
3227
      @customer = customer
@@ 3084-3103 (lines=20) @@
3081
    end
3082
  end
3083
  
3084
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerProfileResponse
3085
  #   refId - SOAP::SOAPString
3086
  #   messages - MessagesType
3087
  #   sessionToken - SOAP::SOAPString
3088
  #   customerProfileId - (any)
3089
  #   customerPaymentProfileIdList - ArrayOfNumericString
3090
  #   customerShippingAddressIdList - ArrayOfNumericString
3091
  #   validationDirectResponseList - ArrayOfString
3092
  class CreateCustomerProfileResponse 
3093
    include ROXML
3094
    xml_accessor :refId
3095
    xml_accessor :messages, :as => MessagesType
3096
    xml_accessor :sessionToken
3097
    xml_accessor :customerProfileId
3098
    xml_accessor :customerPaymentProfileIdList, :as => NumericStringsType
3099
    xml_accessor :customerShippingAddressIdList, :as => NumericStringsType
3100
    xml_accessor :validationDirectResponseList
3101
  
3102
    def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileId = nil, customerPaymentProfileIdList = nil, customerShippingAddressIdList = nil, validationDirectResponseList = nil)
3103
      @refId = refId
3104
      @messages = messages
3105
      @sessionToken = sessionToken
3106
      @customerProfileId = customerProfileId