Code Duplication    Length = 12-18 lines in 24 locations

lib/authorize_net/api/schema.rb 24 locations

@@ 1907-1924 (lines=18) @@
1904
  #   fDSFilterAction - SOAP::SOAPString
1905
  #   fDSFilters - ArrayOfFDSFilter
1906
  #   batch - BatchDetailsType
1907
  #   order - OrderExType
1908
  #   requestedAmount - SOAP::SOAPDecimal
1909
  #   authAmount - SOAP::SOAPDecimal
1910
  #   settleAmount - SOAP::SOAPDecimal
1911
  #   tax - ExtendedAmountType
1912
  #   shipping - ExtendedAmountType
1913
  #   duty - ExtendedAmountType
1914
  #   lineItems - ArrayOfLineItem
1915
  #   prepaidBalanceRemaining - SOAP::SOAPDecimal
1916
  #   taxExempt - SOAP::SOAPBoolean
1917
  #   payment - PaymentMaskedType
1918
  #   customer - CustomerDataType
1919
  #   billTo - CustomerAddressType
1920
  #   shipTo - NameAndAddressType
1921
  #   recurringBilling - SOAP::SOAPBoolean
1922
  #   customerIP - SOAP::SOAPString
1923
  #   product - SOAP::SOAPString
1924
  #   marketType - SOAP::SOAPString
1925
  #   mobileDeviceId - SOAP::SOAPString
1926
  #   returnedItems - ArrayOfReturnedItem
1927
  #   solution - SolutionType
@@ 4574-4587 (lines=14) @@
4571
     @reasonDescription = reasonDescription
4572
     @newCreditCard = newCreditCard
4573
     @oldCreditCard = oldCreditCard
4574
    end
4575
  end
4576
4577
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}AUDeleteType
4578
  class AUDeleteType
4579
    include ROXML
4580
    xml_accessor :customerProfileID
4581
    xml_accessor :customerPaymentProfileID
4582
    xml_accessor :firstName
4583
    xml_accessor :lastName
4584
    xml_accessor :updateTimeUTC
4585
    xml_accessor :auReasonCode
4586
    xml_accessor :reasonDescription
4587
    xml_accessor :creditCard, :as => CreditCardMaskedType
4588
4589
    def initialize(customerProfileID = nil, customerPaymentProfileID = nil, firstName = nil, lastName = nil, updateTimeUTC = nil, auReasonCode = nil, reasonDescription = nil, creditCard = nil)
4590
     @customerProfileID = customerProfileID
@@ 4420-4433 (lines=14) @@
4417
    include ROXML
4418
    xml_accessor :refId
4419
    xml_accessor :messages, :as => MessagesType
4420
    xml_accessor :sessionToken
4421
    xml_accessor :totalNumInResultSet
4422
    xml_accessor :paymentProfiles, :as => ArrayOfCustomerPaymentProfileListItemType
4423
  
4424
    def initialize(refId = nil, messages = nil, sessionToken = nil, totalNumInResultSet = nil, paymentProfiles = [])
4425
      @refId = refId
4426
      @messages = messages
4427
      @sessionToken = sessionToken
4428
      @totalNumInResultSet = totalNumInResultSet
4429
      @paymentProfiles = paymentProfiles
4430
    end
4431
  end
4432
  
4433
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}subscriptionCustomerProfileType
4434
  #   merchantCustomerId - SOAP::SOAPString
4435
  #   description - SOAP::SOAPString
4436
  #   email - SOAP::SOAPString
@@ 4034-4047 (lines=14) @@
4031
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}sendCustomerTransactionReceiptRequest
4032
  #   merchantAuthentication - MerchantAuthenticationType
4033
  #   refId - SOAP::SOAPString
4034
  #   transId - (any)
4035
  #   customerEmail - SOAP::SOAPString
4036
  #   emailSettings - EmailSettingsType
4037
  class SendCustomerTransactionReceiptRequest 
4038
    include ROXML
4039
    xml_accessor :merchantAuthentication
4040
    xml_accessor :refId
4041
    xml_accessor :transId
4042
    xml_accessor :customerEmail
4043
    xml_accessor :emailSettings
4044
  
4045
    def initialize(merchantAuthentication = nil, refId = nil, transId = nil, customerEmail = nil, emailSettings = nil)
4046
      @merchantAuthentication = merchantAuthentication
4047
      @refId = refId
4048
      @transId = transId
4049
      @customerEmail = customerEmail
4050
      @emailSettings = emailSettings
@@ 3789-3802 (lines=14) @@
3786
    xml_accessor :orderBy
3787
    xml_accessor :orderDescending
3788
  
3789
    def initialize(orderBy = nil, orderDescending = nil)
3790
      @orderBy = orderBy
3791
      @orderDescending = orderDescending
3792
    end
3793
  end
3794
3795
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getTransactionListRequest
3796
  #   merchantAuthentication - MerchantAuthenticationType
3797
  #   refId - SOAP::SOAPString
3798
  #   batchId - (any)
3799
  class GetTransactionListRequest 
3800
    include ROXML
3801
    xml_accessor :merchantAuthentication
3802
    xml_accessor :refId
3803
    xml_accessor :batchId
3804
    xml_accessor :sorting, :as => TransactionListSorting
3805
    xml_accessor :paging, :as => Paging
@@ 3769-3782 (lines=14) @@
3766
    xml_accessor :sessionToken
3767
    xml_accessor :batchList, :as => ArrayOfBatchDetailsType
3768
  
3769
    def initialize(refId = nil, messages = nil, sessionToken = nil, batchList = nil)
3770
      @refId = refId
3771
      @messages = messages
3772
      @sessionToken = sessionToken
3773
      @batchList = batchList
3774
    end
3775
  end
3776
3777
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}TransactionListOrderFieldEnum
3778
  class TransactionListOrderFieldEnum < ::String
3779
    Id = TransactionListOrderFieldEnum.new("id")
3780
    SubmitTimeUTC = TransactionListOrderFieldEnum.new("submitTimeUTC")
3781
  end
3782
3783
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}TransactionListSorting
3784
  class TransactionListSorting 
3785
    include ROXML
@@ 3712-3725 (lines=14) @@
3709
      @refId = refId
3710
      @batchId = batchId
3711
    end
3712
  end
3713
  
3714
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getBatchStatisticsResponse
3715
  #   refId - SOAP::SOAPString
3716
  #   messages - MessagesType
3717
  #   sessionToken - SOAP::SOAPString
3718
  #   batch - BatchDetailsType
3719
  class GetBatchStatisticsResponse 
3720
    include ROXML
3721
    xml_accessor :refId
3722
    xml_accessor :messages, :as => MessagesType
3723
    xml_accessor :sessionToken
3724
    xml_accessor :batch, :as=> BatchDetailsType
3725
  
3726
    def initialize(refId = nil, messages = nil, sessionToken = nil, batch = nil)
3727
      @refId = refId
3728
      @messages = messages
@@ 3669-3682 (lines=14) @@
3666
    xml_accessor :transId
3667
  
3668
    def initialize(merchantAuthentication = nil, refId = nil, transId = nil)
3669
      @merchantAuthentication = merchantAuthentication
3670
      @refId = refId
3671
      @transId = transId
3672
    end
3673
  end
3674
  
3675
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}getTransactionDetailsResponse
3676
  #   refId - SOAP::SOAPString
3677
  #   messages - MessagesType
3678
  #   sessionToken - SOAP::SOAPString
3679
  #   transaction - TransactionDetailsType
3680
  class GetTransactionDetailsResponse 
3681
    include ROXML
3682
    xml_accessor :refId
3683
    xml_accessor :messages, :as => MessagesType
3684
    xml_accessor :sessionToken
3685
    xml_accessor :transaction, :as => TransactionDetailsType
@@ 3630-3643 (lines=14) @@
3627
    include ROXML
3628
    xml_accessor :merchantAuthentication
3629
    xml_accessor :refId
3630
    xml_accessor :splitTenderId
3631
    xml_accessor :splitTenderStatus
3632
  
3633
    def initialize(merchantAuthentication = nil, refId = nil, splitTenderId = nil, splitTenderStatus = nil)
3634
      @merchantAuthentication = merchantAuthentication
3635
      @refId = refId
3636
      @splitTenderId = splitTenderId
3637
      @splitTenderStatus = splitTenderStatus
3638
    end
3639
  end
3640
  
3641
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateSplitTenderGroupResponse
3642
  #   refId - SOAP::SOAPString
3643
  #   messages - MessagesType
3644
  #   sessionToken - SOAP::SOAPString
3645
  class UpdateSplitTenderGroupResponse 
3646
    include ROXML
@@ 3556-3569 (lines=14) @@
3553
    xml_accessor :cardCode
3554
    xml_accessor :validationMode
3555
  
3556
    def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, customerPaymentProfileId = nil, customerShippingAddressId = nil, cardCode = nil, validationMode = nil)
3557
      @merchantAuthentication = merchantAuthentication
3558
      @refId = refId
3559
      @customerProfileId = customerProfileId
3560
      @customerPaymentProfileId = customerPaymentProfileId
3561
      @customerShippingAddressId = customerShippingAddressId
3562
      @cardCode = cardCode
3563
      @validationMode = validationMode
3564
    end
3565
  end
3566
  
3567
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}validateCustomerPaymentProfileResponse
3568
  #   refId - SOAP::SOAPString
3569
  #   messages - MessagesType
3570
  #   sessionToken - SOAP::SOAPString
3571
  #   directResponse - SOAP::SOAPString
3572
  class ValidateCustomerPaymentProfileResponse 
@@ 3522-3535 (lines=14) @@
3519
  #   transactionResponse - TransactionResponse
3520
  #   directResponse - SOAP::SOAPString
3521
  class CreateCustomerProfileTransactionResponse 
3522
    include ROXML
3523
    xml_accessor :refId
3524
    xml_accessor :messages, :as => MessagesType
3525
    xml_accessor :sessionToken
3526
    xml_accessor :transactionResponse
3527
    xml_accessor :directResponse
3528
  
3529
    def initialize(refId = nil, messages = nil, sessionToken = nil, transactionResponse = nil, directResponse = nil)
3530
      @refId = refId
3531
      @messages = messages
3532
      @sessionToken = sessionToken
3533
      @transactionResponse = transactionResponse
3534
      @directResponse = directResponse
3535
    end
3536
  end
3537
  
3538
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}validateCustomerPaymentProfileRequest
@@ 3285-3298 (lines=14) @@
3282
      @merchantAuthentication = merchantAuthentication
3283
      @refId = refId
3284
      @profile = profile
3285
    end
3286
  end
3287
  
3288
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateCustomerProfileResponse
3289
  #   refId - SOAP::SOAPString
3290
  #   messages - MessagesType
3291
  #   sessionToken - SOAP::SOAPString
3292
  class UpdateCustomerProfileResponse 
3293
    include ROXML
3294
    xml_accessor :refId
3295
    xml_accessor :messages, :as => MessagesType
3296
    xml_accessor :sessionToken
3297
  
3298
    def initialize(refId = nil, messages = nil, sessionToken = nil)
3299
      @refId = refId
3300
      @messages = messages
3301
      @sessionToken = sessionToken
@@ 3165-3178 (lines=14) @@
3162
  #   messages - MessagesType
3163
  #   sessionToken - SOAP::SOAPString
3164
  #   profile - CustomerProfileMaskedType
3165
  #   subscriptionIds - SubscriptionIdList
3166
  class GetCustomerProfileResponse 
3167
    include ROXML
3168
    xml_accessor :refId
3169
    xml_accessor :messages, :as => MessagesType
3170
    xml_accessor :sessionToken
3171
    xml_accessor :profile, :as => CustomerProfileMaskedType
3172
    xml_accessor :subscriptionIds, :as => SubscriptionIdList
3173
  
3174
    def initialize(refId = nil, messages = nil, sessionToken = nil, profile = nil, subscriptionIds = nil)
3175
      @refId = refId
3176
      @messages = messages
3177
      @sessionToken = sessionToken
3178
      @profile = profile
3179
      @subscriptionIds = subscriptionIds
3180
    end
3181
  end
@@ 2935-2948 (lines=14) @@
2932
  
2933
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionStatusRequest
2934
  #   merchantAuthentication - MerchantAuthenticationType
2935
  #   refId - SOAP::SOAPString
2936
  #   subscriptionId - (any)
2937
  class ARBGetSubscriptionStatusRequest 
2938
    include ROXML
2939
    xml_accessor :merchantAuthentication
2940
    xml_accessor :refId
2941
    xml_accessor :subscriptionId
2942
  
2943
    def initialize(merchantAuthentication = nil, refId = nil, subscriptionId = nil)
2944
      @merchantAuthentication = merchantAuthentication
2945
      @refId = refId
2946
      @subscriptionId = subscriptionId
2947
    end
2948
  end
2949
  
2950
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBGetSubscriptionStatusResponse
2951
  #   refId - SOAP::SOAPString
@@ 2915-2928 (lines=14) @@
2912
      @subscriptionId = subscriptionId
2913
    end
2914
  end
2915
  
2916
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBCancelSubscriptionResponse
2917
  #   refId - SOAP::SOAPString
2918
  #   messages - MessagesType
2919
  #   sessionToken - SOAP::SOAPString
2920
  class ARBCancelSubscriptionResponse 
2921
    include ROXML
2922
    xml_accessor :refId
2923
    xml_accessor :messages, :as => MessagesType
2924
    xml_accessor :sessionToken
2925
  
2926
    def initialize(refId = nil, messages = nil, sessionToken = nil)
2927
      @refId = refId
2928
      @messages = messages
2929
      @sessionToken = sessionToken
2930
    end
2931
  end
@@ 2844-2857 (lines=14) @@
2841
  #   profile - CustomerProfileIdType
2842
  class ARBCreateSubscriptionResponse 
2843
    include ROXML
2844
    xml_accessor :refId
2845
    xml_accessor :messages, :as => MessagesType
2846
    xml_accessor :sessionToken
2847
    xml_accessor :subscriptionId
2848
    xml_accessor :profile, :as => CustomerProfileIdType
2849
  
2850
    def initialize(refId = nil, messages = nil, sessionToken = nil, subscriptionId = nil, profile = nil)
2851
      @refId = refId
2852
      @messages = messages
2853
      @sessionToken = sessionToken
2854
      @subscriptionId = subscriptionId
2855
      @profile = profile
2856
    end
2857
  end
2858
  
2859
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBUpdateSubscriptionRequest
2860
  #   merchantAuthentication - MerchantAuthenticationType
@@ 2824-2837 (lines=14) @@
2821
  #   refId - SOAP::SOAPString
2822
  #   subscription - ARBSubscriptionType
2823
  class ARBCreateSubscriptionRequest
2824
    include ROXML
2825
    xml_accessor :merchantAuthentication, :as => MerchantAuthenticationType
2826
    xml_accessor :refId
2827
    xml_accessor :subscription, :as => ARBSubscriptionType
2828
  
2829
    def initialize(merchantAuthentication = nil, refId = nil, subscription = nil)
2830
      @merchantAuthentication = merchantAuthentication
2831
      @refId = refId
2832
      @subscription = subscription
2833
    end
2834
  end
2835
  
2836
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBCreateSubscriptionResponse
2837
  #   refId - SOAP::SOAPString
2838
  #   messages - MessagesType
2839
  #   sessionToken - SOAP::SOAPString
2840
  #   subscriptionId - (any)
@@ 4203-4214 (lines=12) @@
4200
      @transactionTypeEnum = transactionTypeEnum
4201
    end
4202
  end
4203
  
4204
# {AnetApi/xml/v1/schema/AnetApiSchema.xsd}transactionRequestType
4205
  #   transactionType - SOAP::SOAPString
4206
  #   amount - SOAP::SOAPDecimal
4207
  #   currencyCode - SOAP::SOAPString
4208
  #   payment - PaymentType
4209
  #   profile - CustomerProfilePaymentType
4210
  #   solution - SolutionType
4211
  #   callId - SOAP::SOAPString
4212
  #   authCode - SOAP::SOAPString
4213
  #   refTransId - SOAP::SOAPString
4214
  #   splitTenderId - SOAP::SOAPString
4215
  #   order - OrderType
4216
  #   lineItems - ArrayOfLineItem
4217
  #   tax - ExtendedAmountType
@@ 2783-2794 (lines=12) @@
2780
  
2781
    def initialize(refId = nil, messages = nil, sessionToken = nil)
2782
      @refId = refId
2783
      @messages = messages
2784
      @sessionToken = sessionToken
2785
    end
2786
  end
2787
  
2788
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}authenticateTestRequest
2789
  #   merchantAuthentication - MerchantAuthenticationType
2790
  #   refId - SOAP::SOAPString
2791
  class AuthenticateTestRequest
2792
    include ROXML
2793
    xml_accessor :merchantAuthentication
2794
    xml_accessor :refId
2795
  
2796
    def initialize(merchantAuthentication = nil, refId = nil)
2797
      @merchantAuthentication = merchantAuthentication
@@ 629-640 (lines=12) @@
626
  #   creditCard - CreditCardMaskedType
627
  #   bankAccount - BankAccountMaskedType
628
  #   tokenInformation - TokenMaskedType
629
  class PaymentMaskedType
630
    include ROXML
631
    xml_accessor :creditCard, :as => CreditCardMaskedType
632
    xml_accessor :bankAccount, :as => BankAccountMaskedType
633
    xml_accessor :tokenInformation
634
  
635
    def initialize(creditCard = nil, bankAccount = nil, tokenInformation = nil)
636
      @creditCard = creditCard
637
      @bankAccount = bankAccount
638
      @tokenInformation = tokenInformation
639
    end
640
  end
641
  
642
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}tokenMaskedType
643
  #   tokenSource - SOAP::SOAPString
@@ 2880-2891 (lines=12) @@
2877
  end
2878
  
2879
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}ARBUpdateSubscriptionResponse
2880
  #   refId - SOAP::SOAPString
2881
  #   messages - MessagesType
2882
  #   sessionToken - SOAP::SOAPString
2883
  #   profile - CustomerProfileIdType
2884
  class ARBUpdateSubscriptionResponse 
2885
    include ROXML
2886
    xml_accessor :refId
2887
    xml_accessor :messages, :as => MessagesType
2888
    xml_accessor :sessionToken
2889
    xml_accessor :profile, :as => CustomerProfileIdType
2890
  
2891
    def initialize(refId = nil, messages = nil, sessionToken = nil, profile = nil)
2892
      @refId = refId
2893
      @messages = messages
2894
      @sessionToken = sessionToken
@@ 535-546 (lines=12) @@
532
  #   encoding - EncodingType
533
  #   encryptionAlgorithm - EncryptionAlgorithmType
534
  #   scheme - KeyManagementScheme
535
  class KeyValue
536
    include ROXML
537
    xml_accessor :Encoding
538
    xml_accessor :EncryptionAlgorithm
539
    xml_accessor :Scheme, :as => KeyManagementScheme
540
  
541
    def initialize(encoding = nil, encryptionAlgorithm = nil, scheme = nil)
542
      @encoding = encoding
543
      @encryptionAlgorithm = encryptionAlgorithm
544
      @scheme = scheme
545
    end
546
  end
547
  
548
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}KeyBlock
549
  #   value - KeyValue
@@ 4901-4914 (lines=14) @@
4898
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}GetHostedPaymentPageRequest
4899
  #   merchantAuthentication - MerchantAuthenticationType
4900
  #   refId - SOAP::SOAPString
4901
  class GetHostedPaymentPageRequest 
4902
    include ROXML
4903
    xml_accessor :merchantAuthentication
4904
    xml_accessor :refId
4905
    xml_accessor :transactionRequest, :as => TransactionRequestType
4906
    xml_accessor :hostedPaymentSettings, :as => Settings
4907
  
4908
    def initialize(merchantAuthentication = nil, refId = nil, transactionRequest = nil, hostedPaymentSettings = nil)
4909
      @merchantAuthentication = merchantAuthentication
4910
      @refId = refId
4911
      @transactionRequest = transactionRequest
4912
      @hostedPaymentSettings = hostedPaymentSettings
4913
    end
4914
  end
4915
4916
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}GetHostedPaymentPageRequest
4917
  #   merchantAuthentication - MerchantAuthenticationType
@@ 4883-4896 (lines=14) @@
4880
  #   sessionToken - SOAP::SOAPString
4881
  #   transactionResponse - TransactionResponse
4882
  #   profileResponse - CreateProfileResponse
4883
  class UpdateHeldTransactionResponse 
4884
    include ROXML
4885
    xml_accessor :refId
4886
    xml_accessor :messages, :as => MessagesType
4887
    xml_accessor :sessionToken
4888
    xml_accessor :transactionResponse, :as => TransactionResponse
4889
  
4890
    def initialize(refId = nil, messages = nil, sessionToken = nil, transactionResponse = nil)
4891
      @refId = refId
4892
      @messages = messages
4893
      @sessionToken = sessionToken
4894
      @transactionResponse = transactionResponse
4895
    end
4896
  end
4897
4898
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}GetHostedPaymentPageRequest
4899
  #   merchantAuthentication - MerchantAuthenticationType