Code Duplication    Length = 16-18 lines in 13 locations

lib/authorize_net/api/schema.rb 13 locations

@@ 4300-4317 (lines=18) @@
4297
  #   month - SOAP::SOAPString
4298
  #   sorting - CustomerPaymentProfileSorting
4299
  #   paging - Paging
4300
  class GetCustomerPaymentProfileListRequest 
4301
    include ROXML
4302
    xml_accessor :merchantAuthentication
4303
    xml_accessor :refId
4304
    xml_accessor :searchType
4305
    xml_accessor :month
4306
    xml_accessor :sorting, :as => CustomerPaymentProfileSorting
4307
    xml_accessor :paging, :as => Paging
4308
  
4309
    def initialize(merchantAuthentication = nil, refId = nil, searchType = nil, month = nil, sorting = nil, paging = nil)
4310
      @merchantAuthentication = merchantAuthentication
4311
      @refId = refId
4312
      @searchType = searchType
4313
      @month = month
4314
      @sorting = sorting
4315
      @paging = paging
4316
    end
4317
  end
4318
  
4319
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerPaymentProfileListResponse
4320
  #   refId - SOAP::SOAPString
@@ 3893-3910 (lines=18) @@
3890
  #   merchantContact - MerchantContactType
3891
  #   userPermissions - ArrayOfPermissionType
3892
  #   merchantAccount - TransRetailInfoType
3893
  class MobileDeviceLoginResponse 
3894
    include ROXML
3895
    xml_accessor :refId
3896
    xml_accessor :messages, :as => MessagesType
3897
    xml_accessor :sessionToken
3898
    xml_accessor :merchantContact
3899
    xml_accessor :userPermissions
3900
    xml_accessor :merchantAccount
3901
  
3902
    def initialize(refId = nil, messages = nil, sessionToken = nil, merchantContact = nil, userPermissions = nil, merchantAccount = nil)
3903
      @refId = refId
3904
      @messages = messages
3905
      @sessionToken = sessionToken
3906
      @merchantContact = merchantContact
3907
      @userPermissions = userPermissions
3908
      @merchantAccount = merchantAccount
3909
    end
3910
  end
3911
  
3912
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}logoutRequest
3913
  #   merchantAuthentication - MerchantAuthenticationType
@@ 3009-3026 (lines=18) @@
3006
  #   customerProfileId - (any)
3007
  #   customerPaymentProfileId - (any)
3008
  #   validationDirectResponse - SOAP::SOAPString
3009
  class CreateCustomerPaymentProfileResponse 
3010
    include ROXML
3011
    xml_accessor :refId
3012
    xml_accessor :messages, :as => MessagesType
3013
    xml_accessor :sessionToken
3014
    xml_accessor :customerProfileId
3015
    xml_accessor :customerPaymentProfileId
3016
    xml_accessor :validationDirectResponse
3017
  
3018
    def initialize(refId = nil, messages = nil, sessionToken = nil, customerProfileId = nil, customerPaymentProfileId = nil, validationDirectResponse = nil)
3019
      @refId = refId
3020
      @messages = messages
3021
      @sessionToken = sessionToken
3022
      @customerProfileId = customerProfileId
3023
      @customerPaymentProfileId = customerPaymentProfileId
3024
      @validationDirectResponse = validationDirectResponse
3025
    end
3026
  end
3027
  
3028
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}createCustomerShippingAddressRequest
3029
  #   merchantAuthentication - MerchantAuthenticationType
@@ 4618-4633 (lines=16) @@
4615
  #   sessionToken - SOAP::SOAPString
4616
  #   totalNumInResultSet - ListOfAUDetailsType
4617
  #   auDetails - SOAP::SOAPInt
4618
  class GetAUJobDetailsResponse
4619
    include ROXML
4620
    xml_accessor :refId
4621
    xml_accessor :messages, :as => MessagesType
4622
    xml_accessor :sessionToken
4623
    xml_accessor :totalNumInResultSet, :as => Integer
4624
    xml_accessor :auDetails, :as => [ListOfAUDetailsType]
4625
  
4626
    def initialize(refId = nil, messages = nil, sessionToken = nil, totalNumInResultSet = nil, auDetails = [])
4627
      @refId = refId
4628
      @messages = messages
4629
      @sessionToken = sessionToken
4630
      @totalNumInResultSet = totalNumInResultSet
4631
      @auDetails = auDetails
4632
    end
4633
  end
4634
4635
end
4636
@@ 4595-4610 (lines=16) @@
4592
  #   month - SOAP::SOAPString
4593
  #   modifiedTypeFilter - AUJobTypeEnum
4594
  #   paging - Paging
4595
  class GetAUJobDetailsRequest
4596
    include ROXML
4597
    xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
4598
    xml_accessor :refId
4599
    xml_accessor :month
4600
    xml_accessor :modifiedTypeFilter
4601
    xml_accessor :paging, :as => Paging
4602
  
4603
    def initialize(merchantAuthentication = nil, refId = nil, month = nil, modifiedTypeFilter = nil, paging = nil)
4604
      @merchantAuthentication = merchantAuthentication
4605
      @refId = refId
4606
      @month = month
4607
      @modifiedTypeFilter = modifiedTypeFilter
4608
      @paging = paging
4609
    end
4610
  end
4611
4612
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}GetAUJobDetailsResponse
4613
  #   refId - SOAP::SOAPString
@@ 4326-4341 (lines=16) @@
4323
  #   totalNumInResultSet - SOAP::SOAPInt
4324
  #   paymentProfiles - ArrayOfCustomerPaymentProfileListItemType
4325
4326
  class GetCustomerPaymentProfileListResponse
4327
    include ROXML
4328
    xml_accessor :refId
4329
    xml_accessor :messages, :as => MessagesType
4330
    xml_accessor :sessionToken
4331
    xml_accessor :totalNumInResultSet
4332
    xml_accessor :paymentProfiles, :as => ArrayOfCustomerPaymentProfileListItemType
4333
  
4334
    def initialize(refId = nil, messages = nil, sessionToken = nil, totalNumInResultSet = nil, paymentProfiles = [])
4335
      @refId = refId
4336
      @messages = messages
4337
      @sessionToken = sessionToken
4338
      @totalNumInResultSet = totalNumInResultSet
4339
      @paymentProfiles = paymentProfiles
4340
    end
4341
  end
4342
  
4343
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}subscriptionCustomerProfileType
4344
  #   merchantCustomerId - SOAP::SOAPString
@@ 4222-4237 (lines=16) @@
4219
  #   sessionToken - SOAP::SOAPString
4220
  #   transactionResponse - TransactionResponse
4221
  #   profileResponse - CreateProfileResponse
4222
  class CreateTransactionResponse 
4223
    include ROXML
4224
    xml_accessor :refId
4225
    xml_accessor :messages, :as => MessagesType
4226
    xml_accessor :sessionToken
4227
    xml_accessor :transactionResponse, :as => TransactionResponse
4228
    xml_accessor :profileResponse, :as => CreateProfileResponse
4229
  
4230
    def initialize(refId = nil, messages = nil, sessionToken = nil, transactionResponse = nil, profileResponse = nil)
4231
      @refId = refId
4232
      @messages = messages
4233
      @sessionToken = sessionToken
4234
      @transactionResponse = transactionResponse
4235
      @profileResponse = profileResponse
4236
    end
4237
  end
4238
  
4239
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerPaymentProfileListItemType
4240
  #   customerPaymentProfileId - SOAP::SOAPInt
@@ 4012-4027 (lines=16) @@
4009
  #   sessionToken - SOAP::SOAPString
4010
  #   totalNumInResultSet - SOAP::SOAPInt
4011
  #   subscriptionDetails - ArrayOfSubscription
4012
  class ARBGetSubscriptionListResponse 
4013
    include ROXML
4014
    xml_accessor :refId
4015
    xml_accessor :messages, :as => MessagesType
4016
    xml_accessor :sessionToken
4017
    xml_accessor :totalNumInResultSet
4018
    xml_accessor :subscriptionDetails, :as => ArrayOfSubscription
4019
  
4020
    def initialize(refId = nil, messages = nil, sessionToken = nil, totalNumInResultSet = nil, subscriptionDetails = nil)
4021
      @refId = refId
4022
      @messages = messages
4023
      @sessionToken = sessionToken
4024
      @totalNumInResultSet = totalNumInResultSet
4025
      @subscriptionDetails = subscriptionDetails
4026
    end
4027
  end
4028
4029
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}decryptPaymentDataRequest
4030
#   merchantAuthentication - MerchantAuthenticationType
@@ 3989-4004 (lines=16) @@
3986
  #   searchType - ARBGetSubscriptionListSearchTypeEnum
3987
  #   sorting - ARBGetSubscriptionListSorting
3988
  #   paging - Paging
3989
  class ARBGetSubscriptionListRequest 
3990
    include ROXML
3991
    xml_accessor :merchantAuthentication
3992
    xml_accessor :refId
3993
    xml_accessor :searchType
3994
    xml_accessor :sorting, :as => ARBGetSubscriptionListSorting
3995
    xml_accessor :paging, :as => Paging
3996
  
3997
    def initialize(merchantAuthentication = nil, refId = nil, searchType = nil, sorting = nil, paging = nil)
3998
      @merchantAuthentication = merchantAuthentication
3999
      @refId = refId
4000
      @searchType = searchType
4001
      @sorting = sorting
4002
      @paging = paging
4003
    end
4004
  end
4005
  
4006
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionListResponse
4007
  #   refId - SOAP::SOAPString
@@ 3206-3221 (lines=16) @@
3203
  #   sessionToken - SOAP::SOAPString
3204
  #   address - CustomerAddressExType
3205
  #   subscriptionIds - SubscriptionIdList
3206
  class GetCustomerShippingAddressResponse 
3207
    include ROXML
3208
    xml_accessor :refId
3209
    xml_accessor :messages, :as => MessagesType
3210
    xml_accessor :sessionToken
3211
    xml_accessor :address
3212
    xml_accessor :subscriptionIds, :as => SubscriptionIdList
3213
  
3214
    def initialize(refId = nil, messages = nil, sessionToken = nil, address = nil, subscriptionIds = nil)
3215
      @refId = refId
3216
      @messages = messages
3217
      @sessionToken = sessionToken
3218
      @address = address
3219
      @subscriptionIds = subscriptionIds
3220
    end
3221
  end
3222
  
3223
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateCustomerProfileRequest
3224
  #   merchantAuthentication - MerchantAuthenticationType
@@ 3120-3135 (lines=16) @@
3117
  #   sessionToken - SOAP::SOAPString
3118
  #   profile - CustomerProfileMaskedType
3119
  #   subscriptionIds - SubscriptionIdList
3120
  class GetCustomerProfileResponse 
3121
    include ROXML
3122
    xml_accessor :refId
3123
    xml_accessor :messages, :as => MessagesType
3124
    xml_accessor :sessionToken
3125
    xml_accessor :profile, :as => CustomerProfileMaskedType
3126
    xml_accessor :subscriptionIds, :as => SubscriptionIdList
3127
  
3128
    def initialize(refId = nil, messages = nil, sessionToken = nil, profile = nil, subscriptionIds = nil)
3129
      @refId = refId
3130
      @messages = messages
3131
      @sessionToken = sessionToken
3132
      @profile = profile
3133
      @subscriptionIds = subscriptionIds
3134
    end
3135
  end
3136
  
3137
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerPaymentProfileRequest
3138
  #   merchantAuthentication - MerchantAuthenticationType
@@ 3077-3092 (lines=16) @@
3074
  #   transId - (any)
3075
  #   customer - CustomerProfileBaseType
3076
  #   customerProfileId - NumericStringsType
3077
  class CreateCustomerProfileFromTransactionRequest 
3078
    include ROXML
3079
    xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
3080
    xml_accessor :refId
3081
    xml_accessor :transId
3082
    xml_accessor :customer, :as => CustomerProfileBaseType
3083
    xml_accessor :customerProfileId, :as => NumericStringsType
3084
  
3085
    def initialize(merchantAuthentication = nil, refId = nil, transId = nil, customer = nil, customerProfileId = nil)
3086
      @merchantAuthentication = merchantAuthentication
3087
      @refId = refId
3088
      @transId = transId
3089
      @customer = customer
3090
      @customerProfileId = customerProfileId
3091
    end
3092
  end
3093
  
3094
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getCustomerProfileRequest
3095
  #   merchantAuthentication - MerchantAuthenticationType
@@ 2802-2817 (lines=16) @@
2799
  #   sessionToken - SOAP::SOAPString
2800
  #   subscriptionId - (any)
2801
  #   profile - CustomerProfileIdType
2802
  class ARBCreateSubscriptionResponse 
2803
    include ROXML
2804
    xml_accessor :refId
2805
    xml_accessor :messages, :as => MessagesType
2806
    xml_accessor :sessionToken
2807
    xml_accessor :subscriptionId
2808
    xml_accessor :profile, :as => CustomerProfileIdType
2809
  
2810
    def initialize(refId = nil, messages = nil, sessionToken = nil, subscriptionId = nil, profile = nil)
2811
      @refId = refId
2812
      @messages = messages
2813
      @sessionToken = sessionToken
2814
      @subscriptionId = subscriptionId
2815
      @profile = profile
2816
    end
2817
  end
2818
  
2819
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBUpdateSubscriptionRequest
2820
  #   merchantAuthentication - MerchantAuthenticationType