Code Duplication    Length = 18-20 lines in 4 locations

lib/authorize_net/api/schema.rb 4 locations

@@ 3650-3669 (lines=20) @@
3647
  #   customerShippingAddressId - (any)
3648
  #   cardCode - (any)
3649
  #   validationMode - ValidationModeEnum
3650
  class ValidateCustomerPaymentProfileRequest 
3651
    include ROXML
3652
    xml_accessor :merchantAuthentication
3653
    xml_accessor :refId
3654
    xml_accessor :customerProfileId
3655
    xml_accessor :customerPaymentProfileId
3656
    xml_accessor :customerShippingAddressId
3657
    xml_accessor :cardCode
3658
    xml_accessor :validationMode
3659
  
3660
    def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, customerPaymentProfileId = nil, customerShippingAddressId = nil, cardCode = nil, validationMode = nil)
3661
      @merchantAuthentication = merchantAuthentication
3662
      @refId = refId
3663
      @customerProfileId = customerProfileId
3664
      @customerPaymentProfileId = customerPaymentProfileId
3665
      @customerShippingAddressId = customerShippingAddressId
3666
      @cardCode = cardCode
3667
      @validationMode = validationMode
3668
    end
3669
  end
3670
  
3671
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}validateCustomerPaymentProfileResponse
3672
  #   refId - SOAP::SOAPString
@@ 3241-3260 (lines=20) @@
3238
  #   merchantCustomerId - SOAP::SOAPString
3239
  #   email - SOAP::SOAPString
3240
  #   unmaskExpirationDate - SOAP::SOAPBoolean
3241
  class GetCustomerProfileRequest 
3242
    include ROXML
3243
    xml_accessor :merchantAuthentication
3244
    xml_accessor :refId
3245
    xml_accessor :customerProfileId
3246
	xml_accessor :merchantCustomerId
3247
	xml_accessor :email
3248
    xml_accessor :unmaskExpirationDate
3249
    xml_accessor :includeIssuerInfo
3250
  
3251
    def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, unmaskExpirationDate = nil, merchantCustomerId = nil, email = nil, includeIssuerInfo = nil)
3252
      @merchantAuthentication = merchantAuthentication
3253
      @refId = refId
3254
      @customerProfileId = customerProfileId
3255
	  @merchantCustomerId = merchantCustomerId
3256
	  @email = email
3257
      @unmaskExpirationDate = unmaskExpirationDate
3258
      @includeIssuerInfo = includeIssuerInfo
3259
    end
3260
  end
3261
  
3262
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerProfileResponse
3263
  #   refId - SOAP::SOAPString
@@ 3291-3308 (lines=18) @@
3288
  #   customerProfileId - (any)
3289
  #   customerPaymentProfileId - (any)
3290
  #   unmaskExpirationDate - SOAP::SOAPBoolean
3291
  class GetCustomerPaymentProfileRequest 
3292
    include ROXML
3293
    xml_accessor :merchantAuthentication
3294
    xml_accessor :refId
3295
    xml_accessor :customerProfileId
3296
    xml_accessor :customerPaymentProfileId
3297
    xml_accessor :unmaskExpirationDate
3298
    xml_accessor :includeIssuerInfo
3299
  
3300
    def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, customerPaymentProfileId = nil, unmaskExpirationDate = nil, includeIssuerInfo = nil)
3301
      @merchantAuthentication = merchantAuthentication
3302
      @refId = refId
3303
      @customerProfileId = customerProfileId
3304
      @customerPaymentProfileId = customerPaymentProfileId
3305
      @unmaskExpirationDate = unmaskExpirationDate
3306
      @includeIssuerInfo = includeIssuerInfo
3307
    end
3308
  end
3309
  
3310
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerPaymentProfileResponse
3311
  #   refId - SOAP::SOAPString
@@ 3143-3160 (lines=18) @@
3140
  #   customerProfileId - (any)
3141
  #   customerPaymentProfileId - (any)
3142
  #   validationDirectResponse - SOAP::SOAPString
3143
  class CreateCustomerPaymentProfileResponse 
3144
    include ROXML
3145
    xml_accessor :refId
3146
    xml_accessor :messages, :as => MessagesType
3147
    xml_accessor :sessionToken
3148
    xml_accessor :customerProfileId
3149
    xml_accessor :customerPaymentProfileId
3150
    xml_accessor :validationDirectResponse
3151
  
3152
    def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileId = nil, customerPaymentProfileId = nil, validationDirectResponse = nil)
3153
      @refId = refId
3154
      @messages = messages
3155
      @sessionToken = sessionToken
3156
      @customerProfileId = customerProfileId
3157
      @customerPaymentProfileId = customerPaymentProfileId
3158
      @validationDirectResponse = validationDirectResponse
3159
    end
3160
  end
3161
  
3162
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerShippingAddressRequest
3163
  #   merchantAuthentication - MerchantAuthenticationType