Code Duplication    Length = 32-34 lines in 5 locations

lib/authorize_net/api/schema.rb 5 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)
@@ 1432-1463 (lines=32) @@
1429
  #   recurringBilling - SOAP::SOAPBoolean
1430
  #   cardCode - (any)
1431
  #   splitTenderId - (any)
1432
  class ProfileTransAuthOnlyType
1433
    include ROXML
1434
    xml_accessor :amount
1435
    xml_accessor :tax
1436
    xml_accessor :shipping
1437
    xml_accessor :duty
1438
    xml_accessor :lineItems
1439
    xml_accessor :customerProfileId
1440
    xml_accessor :customerPaymentProfileId
1441
    xml_accessor :customerShippingAddressId
1442
    xml_accessor :order
1443
    xml_accessor :taxExempt
1444
    xml_accessor :recurringBilling
1445
    xml_accessor :cardCode
1446
    xml_accessor :splitTenderId
1447
  
1448
    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)
1449
      @amount = amount
1450
      @tax = tax
1451
      @shipping = shipping
1452
      @duty = duty
1453
      @lineItems = lineItems
1454
      @customerProfileId = customerProfileId
1455
      @customerPaymentProfileId = customerPaymentProfileId
1456
      @customerShippingAddressId = customerShippingAddressId
1457
      @order = order
1458
      @taxExempt = taxExempt
1459
      @recurringBilling = recurringBilling
1460
      @cardCode = cardCode
1461
      @splitTenderId = splitTenderId
1462
    end
1463
  end
1464
  
1465
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransCaptureOnlyType
1466
  #   amount - SOAP::SOAPDecimal
@@ 1385-1416 (lines=32) @@
1382
  #   recurringBilling - SOAP::SOAPBoolean
1383
  #   cardCode - (any)
1384
  #   splitTenderId - (any)
1385
  class ProfileTransAuthCaptureType
1386
    include ROXML
1387
    xml_accessor :amount
1388
    xml_accessor :tax
1389
    xml_accessor :shipping
1390
    xml_accessor :duty
1391
    xml_accessor :lineItems
1392
    xml_accessor :customerProfileId
1393
    xml_accessor :customerPaymentProfileId
1394
    xml_accessor :customerShippingAddressId
1395
    xml_accessor :order
1396
    xml_accessor :taxExempt
1397
    xml_accessor :recurringBilling
1398
    xml_accessor :cardCode
1399
    xml_accessor :splitTenderId
1400
  
1401
    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)
1402
      @amount = amount
1403
      @tax = tax
1404
      @shipping = shipping
1405
      @duty = duty
1406
      @lineItems = lineItems
1407
      @customerProfileId = customerProfileId
1408
      @customerPaymentProfileId = customerPaymentProfileId
1409
      @customerShippingAddressId = customerShippingAddressId
1410
      @order = order
1411
      @taxExempt = taxExempt
1412
      @recurringBilling = recurringBilling
1413
      @cardCode = cardCode
1414
      @splitTenderId = splitTenderId
1415
    end
1416
  end
1417
  
1418
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransAuthOnlyType
1419
  #   amount - SOAP::SOAPDecimal
@@ 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