Code Duplication    Length = 32-34 lines in 3 locations

lib/authorize_net/api/schema.rb 3 locations

@@ 1480-1513 (lines=34) @@
1477
  #   cardCode - (any)
1478
  #   splitTenderId - (any)
1479
  #   approvalCode - SOAP::SOAPString
1480
  class ProfileTransCaptureOnlyType
1481
    include ROXML
1482
    xml_accessor :amount
1483
    xml_accessor :tax
1484
    xml_accessor :shipping
1485
    xml_accessor :duty
1486
    xml_accessor :lineItems
1487
    xml_accessor :customerProfileId
1488
    xml_accessor :customerPaymentProfileId
1489
    xml_accessor :customerShippingAddressId
1490
    xml_accessor :order
1491
    xml_accessor :taxExempt
1492
    xml_accessor :recurringBilling
1493
    xml_accessor :cardCode
1494
    xml_accessor :splitTenderId
1495
    xml_accessor :approvalCode
1496
  
1497
    def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = [], customerProfileId = nil, customerPaymentProfileId = nil, customerShippingAddressId = nil, order = nil, taxExempt = nil, recurringBilling = nil, cardCode = nil, splitTenderId = nil, approvalCode = nil)
1498
      @amount = amount
1499
      @tax = tax
1500
      @shipping = shipping
1501
      @duty = duty
1502
      @lineItems = lineItems
1503
      @customerProfileId = customerProfileId
1504
      @customerPaymentProfileId = customerPaymentProfileId
1505
      @customerShippingAddressId = customerShippingAddressId
1506
      @order = order
1507
      @taxExempt = taxExempt
1508
      @recurringBilling = recurringBilling
1509
      @cardCode = cardCode
1510
      @splitTenderId = splitTenderId
1511
      @approvalCode = approvalCode
1512
    end
1513
  end
1514
  
1515
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransPriorAuthCaptureType
1516
  #   amount - SOAP::SOAPDecimal
@@ 1564-1595 (lines=32) @@
1561
  #   bankAccountNumberMasked - SOAP::SOAPString
1562
  #   order - OrderExType
1563
  #   transId - (any)
1564
  class ProfileTransRefundType
1565
    include ROXML
1566
    xml_accessor :amount
1567
    xml_accessor :tax
1568
    xml_accessor :shipping
1569
    xml_accessor :duty
1570
    xml_accessor :lineItems
1571
    xml_accessor :customerProfileId
1572
    xml_accessor :customerPaymentProfileId
1573
    xml_accessor :customerShippingAddressId
1574
    xml_accessor :creditCardNumberMasked
1575
    xml_accessor :bankRoutingNumberMasked
1576
    xml_accessor :bankAccountNumberMasked
1577
    xml_accessor :order
1578
    xml_accessor :transId
1579
  
1580
    def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = [], customerProfileId = nil, customerPaymentProfileId = nil, customerShippingAddressId = nil, creditCardNumberMasked = nil, bankRoutingNumberMasked = nil, bankAccountNumberMasked = nil, order = nil, transId = nil)
1581
      @amount = amount
1582
      @tax = tax
1583
      @shipping = shipping
1584
      @duty = duty
1585
      @lineItems = lineItems
1586
      @customerProfileId = customerProfileId
1587
      @customerPaymentProfileId = customerPaymentProfileId
1588
      @customerShippingAddressId = customerShippingAddressId
1589
      @creditCardNumberMasked = creditCardNumberMasked
1590
      @bankRoutingNumberMasked = bankRoutingNumberMasked
1591
      @bankAccountNumberMasked = bankAccountNumberMasked
1592
      @order = order
1593
      @transId = transId
1594
    end
1595
  end
1596
  
1597
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransVoidType
1598
  #   customerProfileId - (any)
@@ 1338-1369 (lines=32) @@
1335
  #   recurringBilling - SOAP::SOAPBoolean
1336
  #   cardCode - (any)
1337
  #   splitTenderId - (any)
1338
  class ProfileTransOrderType
1339
    include ROXML
1340
    xml_accessor :amount
1341
    xml_accessor :tax
1342
    xml_accessor :shipping
1343
    xml_accessor :duty
1344
    xml_accessor :lineItems
1345
    xml_accessor :customerProfileId
1346
    xml_accessor :customerPaymentProfileId
1347
    xml_accessor :customerShippingAddressId
1348
    xml_accessor :order
1349
    xml_accessor :taxExempt
1350
    xml_accessor :recurringBilling
1351
    xml_accessor :cardCode
1352
    xml_accessor :splitTenderId
1353
  
1354
    def initialize(amount = nil, tax = nil, shipping = nil, duty = nil, lineItems = [], customerProfileId = nil, customerPaymentProfileId = nil, customerShippingAddressId = nil, order = nil, taxExempt = nil, recurringBilling = nil, cardCode = nil, splitTenderId = nil)
1355
      @amount = amount
1356
      @tax = tax
1357
      @shipping = shipping
1358
      @duty = duty
1359
      @lineItems = lineItems
1360
      @customerProfileId = customerProfileId
1361
      @customerPaymentProfileId = customerPaymentProfileId
1362
      @customerShippingAddressId = customerShippingAddressId
1363
      @order = order
1364
      @taxExempt = taxExempt
1365
      @recurringBilling = recurringBilling
1366
      @cardCode = cardCode
1367
      @splitTenderId = splitTenderId
1368
    end
1369
  end
1370
  
1371
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransAuthCaptureType
1372
  #   amount - SOAP::SOAPDecimal