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
  #   transId - (any)
3203
  #   customer - CustomerProfileBaseType
3204
  #   customerProfileId - NumericStringsType
3205
  class CreateCustomerProfileFromTransactionRequest 
3206
    include ROXML
3207
    xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
3208
    xml_accessor :refId
3209
    xml_accessor :transId
3210
    xml_accessor :customer, :as => CustomerProfileBaseType
3211
    xml_accessor :customerProfileId, :as => NumericStringsType
3212
    xml_accessor :defaultPaymentProfile
3213
    xml_accessor :defaultShippingAddress
3214
  
3215
    def initialize(merchantAuthentication = nil, refId = nil, transId = nil, customer = nil, customerProfileId = nil, defaultPaymentProfile = nil, defaultShippingAddress = nil)
3216
      @merchantAuthentication = merchantAuthentication
3217
      @refId = refId
3218
      @transId = transId
3219
      @customer = customer
3220
      @customerProfileId = customerProfileId
3221
      @defaultPaymentProfile = defaultPaymentProfile
3222
      @defaultShippingAddress = defaultShippingAddress
3223
    end
3224
  end
3225
  
3226
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerProfileRequest
3227
  #   merchantAuthentication - MerchantAuthenticationType
@@ 3084-3103 (lines=20) @@
3081
  #   customerPaymentProfileIdList - ArrayOfNumericString
3082
  #   customerShippingAddressIdList - ArrayOfNumericString
3083
  #   validationDirectResponseList - ArrayOfString
3084
  class CreateCustomerProfileResponse 
3085
    include ROXML
3086
    xml_accessor :refId
3087
    xml_accessor :messages, :as => MessagesType
3088
    xml_accessor :sessionToken
3089
    xml_accessor :customerProfileId
3090
    xml_accessor :customerPaymentProfileIdList, :as => NumericStringsType
3091
    xml_accessor :customerShippingAddressIdList, :as => NumericStringsType
3092
    xml_accessor :validationDirectResponseList
3093
  
3094
    def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileId = nil, customerPaymentProfileIdList = nil, customerShippingAddressIdList = nil, validationDirectResponseList = nil)
3095
      @refId = refId
3096
      @messages = messages
3097
      @sessionToken = sessionToken
3098
      @customerProfileId = customerProfileId
3099
      @customerPaymentProfileIdList = customerPaymentProfileIdList
3100
      @customerShippingAddressIdList = customerShippingAddressIdList
3101
      @validationDirectResponseList = validationDirectResponseList
3102
    end
3103
  end
3104
  
3105
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerPaymentProfileRequest
3106
  #   merchantAuthentication - MerchantAuthenticationType