Code Duplication    Length = 12-16 lines in 7 locations

lib/authorize_net/api/schema.rb 7 locations

@@ 3463-3476 (lines=14) @@
3460
    xml_accessor :refId
3461
    xml_accessor :customerProfileId
3462
    xml_accessor :address, :as => CustomerAddressExType
3463
    xml_accessor :defaultShippingAddress
3464
  
3465
    def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, address = nil, defaultShippingAddress = nil)
3466
      @merchantAuthentication = merchantAuthentication
3467
      @refId = refId
3468
      @customerProfileId = customerProfileId
3469
      @address = address
3470
      @defaultShippingAddress = defaultShippingAddress
3471
    end
3472
  end
3473
  
3474
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateCustomerShippingAddressResponse
3475
  #   refId - SOAP::SOAPString
3476
  #   messages - MessagesType
3477
  #   sessionToken - SOAP::SOAPString
3478
  class UpdateCustomerShippingAddressResponse 
3479
    include ROXML
@@ 3426-3439 (lines=14) @@
3423
    def initialize(merchantAuthentication = nil, refId = nil, customerProfileId = nil, paymentProfile = nil, validationMode = nil)
3424
      @merchantAuthentication = merchantAuthentication
3425
      @refId = refId
3426
      @customerProfileId = customerProfileId
3427
      @paymentProfile = paymentProfile
3428
      @validationMode = validationMode
3429
    end
3430
  end
3431
  
3432
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}updateCustomerPaymentProfileResponse
3433
  #   refId - SOAP::SOAPString
3434
  #   messages - MessagesType
3435
  #   sessionToken - SOAP::SOAPString
3436
  #   validationDirectResponse - SOAP::SOAPString
3437
  class UpdateCustomerPaymentProfileResponse 
3438
    include ROXML
3439
    xml_accessor :refId
3440
    xml_accessor :messages, :as => MessagesType
3441
    xml_accessor :sessionToken
3442
    xml_accessor :validationDirectResponse
@@ 1602-1615 (lines=14) @@
1599
  #   tax - ExtendedAmountType
1600
  #   shipping - ExtendedAmountType
1601
  #   duty - ExtendedAmountType
1602
  #   lineItems - LineItemType
1603
  #   customerProfileId - (any)
1604
  #   customerPaymentProfileId - (any)
1605
  #   customerShippingAddressId - (any)
1606
  #   creditCardNumberMasked - SOAP::SOAPString
1607
  #   bankRoutingNumberMasked - SOAP::SOAPString
1608
  #   bankAccountNumberMasked - SOAP::SOAPString
1609
  #   order - OrderExType
1610
  #   transId - (any)
1611
  class ProfileTransRefundType
1612
    include ROXML
1613
    xml_accessor :amount
1614
    xml_accessor :tax
1615
    xml_accessor :shipping
1616
    xml_accessor :duty
1617
    xml_accessor :lineItems
1618
    xml_accessor :customerProfileId
@@ 907-918 (lines=12) @@
904
      @trialOccurrences = trialOccurrences
905
    end
906
  end
907
908
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}customerProfileIdType
909
  #   customerProfileId - SOAP::SOAPString
910
  #   customerPaymentProfileId - SOAP::SOAPString
911
  #   customerAddressId - SOAP::SOAPString
912
  class CustomerProfileIdType
913
    include ROXML
914
    xml_accessor :customerProfileId
915
    xml_accessor :customerPaymentProfileId
916
    xml_accessor :customerAddressId
917
918
    def initialize(customerProfileId = nil, customerPaymentProfileId = nil, customerAddressId = nil)
919
      @customerProfileId = customerProfileId
920
      @customerPaymentProfileId = customerPaymentProfileId
921
      @customerAddressId = customerAddressId
@@ 2515-2528 (lines=14) @@
2512
  #   name - SOAP::SOAPString
2513
  #   status - ARBSubscriptionStatusEnum
2514
  #   createTimeStampUTC - SOAP::SOAPDateTime
2515
  #   firstName - SOAP::SOAPString
2516
  #   lastName - SOAP::SOAPString
2517
  #   totalOccurrences - SOAP::SOAPInt
2518
  #   pastOccurrences - SOAP::SOAPInt
2519
  #   paymentMethod - PaymentMethodEnum
2520
  #   accountNumber - SOAP::SOAPString
2521
  #   invoice - SOAP::SOAPString
2522
  #   amount - SOAP::SOAPDecimal
2523
  #   currencyCode - SOAP::SOAPString
2524
  #   customerProfileId - SOAP::SOAPInt
2525
  #   customerPaymentProfileId - SOAP::SOAPInt
2526
  #   totalOccurrences - SOAP::SOAPInt
2527
  class SubscriptionDetail
2528
    include ROXML
2529
    xml_accessor :id
2530
    xml_accessor :name
2531
    xml_accessor :status
@@ 1854-1869 (lines=16) @@
1851
    xml_accessor :refundChargeBackCount
1852
    xml_accessor :chargeReturnedItemsAmount
1853
    xml_accessor :chargeReturnedItemsCount
1854
    xml_accessor :refundReturnedItemsAmount
1855
    xml_accessor :refundReturnedItemsCount
1856
  
1857
    def initialize(accountType = nil, chargeAmount = nil, chargeCount = nil, refundAmount = nil, refundCount = nil, voidCount = nil, declineCount = nil, errorCount = nil, returnedItemAmount = nil, returnedItemCount = nil, chargebackAmount = nil, chargebackCount = nil, correctionNoticeCount = nil, chargeChargeBackAmount = nil, chargeChargeBackCount = nil, refundChargeBackAmount = nil, refundChargeBackCount = nil, chargeReturnedItemsAmount = nil, chargeReturnedItemsCount = nil, refundReturnedItemsAmount = nil, refundReturnedItemsCount = nil)
1858
      @accountType = accountType
1859
      @chargeAmount = chargeAmount
1860
      @chargeCount = chargeCount
1861
      @refundAmount = refundAmount
1862
      @refundCount = refundCount
1863
      @voidCount = voidCount
1864
      @declineCount = declineCount
1865
      @errorCount = errorCount
1866
      @returnedItemAmount = returnedItemAmount
1867
      @returnedItemCount = returnedItemCount
1868
      @chargebackAmount = chargebackAmount
1869
      @chargebackCount = chargebackCount
1870
      @correctionNoticeCount = correctionNoticeCount
1871
      @chargeChargeBackAmount = chargeChargeBackAmount
1872
      @chargeChargeBackCount = chargeChargeBackCount
@@ 978-993 (lines=16) @@
975
  end
976
  
977
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}mobileDeviceType
978
  #   mobileDeviceId - SOAP::SOAPString
979
  #   description - SOAP::SOAPString
980
  #   phoneNumber - SOAP::SOAPString
981
  #   devicePlatform - SOAP::SOAPString
982
  #   deviceActivation - DeviceActivationEnum
983
  class MobileDeviceType
984
    include ROXML
985
    xml_accessor :mobileDeviceId
986
    xml_accessor :description
987
    xml_accessor :phoneNumber
988
    xml_accessor :devicePlatform
989
    xml_accessor :deviceActivation
990
  
991
    def initialize(mobileDeviceId = nil, description = nil, phoneNumber = nil, devicePlatform = nil, deviceActivation = nil)
992
      @mobileDeviceId = mobileDeviceId
993
      @description = description
994
      @phoneNumber = phoneNumber
995
      @devicePlatform = devicePlatform
996
      @deviceActivation = deviceActivation