Code Duplication    Length = 32-34 lines in 5 locations

lib/authorize_net/api/schema.rb 5 locations

@@ 1476-1509 (lines=34) @@
1473
  #   cardCode - (any)
1474
  #   splitTenderId - (any)
1475
  #   approvalCode - SOAP::SOAPString
1476
  class ProfileTransCaptureOnlyType
1477
    include ROXML
1478
    xml_accessor :amount
1479
    xml_accessor :tax
1480
    xml_accessor :shipping
1481
    xml_accessor :duty
1482
    xml_accessor :lineItems
1483
    xml_accessor :customerProfileId
1484
    xml_accessor :customerPaymentProfileId
1485
    xml_accessor :customerShippingAddressId
1486
    xml_accessor :order
1487
    xml_accessor :taxExempt
1488
    xml_accessor :recurringBilling
1489
    xml_accessor :cardCode
1490
    xml_accessor :splitTenderId
1491
    xml_accessor :approvalCode
1492
  
1493
    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)
1494
      @amount = amount
1495
      @tax = tax
1496
      @shipping = shipping
1497
      @duty = duty
1498
      @lineItems = lineItems
1499
      @customerProfileId = customerProfileId
1500
      @customerPaymentProfileId = customerPaymentProfileId
1501
      @customerShippingAddressId = customerShippingAddressId
1502
      @order = order
1503
      @taxExempt = taxExempt
1504
      @recurringBilling = recurringBilling
1505
      @cardCode = cardCode
1506
      @splitTenderId = splitTenderId
1507
      @approvalCode = approvalCode
1508
    end
1509
  end
1510
  
1511
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransPriorAuthCaptureType
1512
  #   amount - SOAP::SOAPDecimal
@@ 1560-1591 (lines=32) @@
1557
  #   bankAccountNumberMasked - SOAP::SOAPString
1558
  #   order - OrderExType
1559
  #   transId - (any)
1560
  class ProfileTransRefundType
1561
    include ROXML
1562
    xml_accessor :amount
1563
    xml_accessor :tax
1564
    xml_accessor :shipping
1565
    xml_accessor :duty
1566
    xml_accessor :lineItems
1567
    xml_accessor :customerProfileId
1568
    xml_accessor :customerPaymentProfileId
1569
    xml_accessor :customerShippingAddressId
1570
    xml_accessor :creditCardNumberMasked
1571
    xml_accessor :bankRoutingNumberMasked
1572
    xml_accessor :bankAccountNumberMasked
1573
    xml_accessor :order
1574
    xml_accessor :transId
1575
  
1576
    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)
1577
      @amount = amount
1578
      @tax = tax
1579
      @shipping = shipping
1580
      @duty = duty
1581
      @lineItems = lineItems
1582
      @customerProfileId = customerProfileId
1583
      @customerPaymentProfileId = customerPaymentProfileId
1584
      @customerShippingAddressId = customerShippingAddressId
1585
      @creditCardNumberMasked = creditCardNumberMasked
1586
      @bankRoutingNumberMasked = bankRoutingNumberMasked
1587
      @bankAccountNumberMasked = bankAccountNumberMasked
1588
      @order = order
1589
      @transId = transId
1590
    end
1591
  end
1592
  
1593
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransVoidType
1594
  #   customerProfileId - (any)
@@ 1428-1459 (lines=32) @@
1425
  #   recurringBilling - SOAP::SOAPBoolean
1426
  #   cardCode - (any)
1427
  #   splitTenderId - (any)
1428
  class ProfileTransAuthOnlyType
1429
    include ROXML
1430
    xml_accessor :amount
1431
    xml_accessor :tax
1432
    xml_accessor :shipping
1433
    xml_accessor :duty
1434
    xml_accessor :lineItems
1435
    xml_accessor :customerProfileId
1436
    xml_accessor :customerPaymentProfileId
1437
    xml_accessor :customerShippingAddressId
1438
    xml_accessor :order
1439
    xml_accessor :taxExempt
1440
    xml_accessor :recurringBilling
1441
    xml_accessor :cardCode
1442
    xml_accessor :splitTenderId
1443
  
1444
    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)
1445
      @amount = amount
1446
      @tax = tax
1447
      @shipping = shipping
1448
      @duty = duty
1449
      @lineItems = lineItems
1450
      @customerProfileId = customerProfileId
1451
      @customerPaymentProfileId = customerPaymentProfileId
1452
      @customerShippingAddressId = customerShippingAddressId
1453
      @order = order
1454
      @taxExempt = taxExempt
1455
      @recurringBilling = recurringBilling
1456
      @cardCode = cardCode
1457
      @splitTenderId = splitTenderId
1458
    end
1459
  end
1460
  
1461
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransCaptureOnlyType
1462
  #   amount - SOAP::SOAPDecimal
@@ 1381-1412 (lines=32) @@
1378
  #   recurringBilling - SOAP::SOAPBoolean
1379
  #   cardCode - (any)
1380
  #   splitTenderId - (any)
1381
  class ProfileTransAuthCaptureType
1382
    include ROXML
1383
    xml_accessor :amount
1384
    xml_accessor :tax
1385
    xml_accessor :shipping
1386
    xml_accessor :duty
1387
    xml_accessor :lineItems
1388
    xml_accessor :customerProfileId
1389
    xml_accessor :customerPaymentProfileId
1390
    xml_accessor :customerShippingAddressId
1391
    xml_accessor :order
1392
    xml_accessor :taxExempt
1393
    xml_accessor :recurringBilling
1394
    xml_accessor :cardCode
1395
    xml_accessor :splitTenderId
1396
  
1397
    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)
1398
      @amount = amount
1399
      @tax = tax
1400
      @shipping = shipping
1401
      @duty = duty
1402
      @lineItems = lineItems
1403
      @customerProfileId = customerProfileId
1404
      @customerPaymentProfileId = customerPaymentProfileId
1405
      @customerShippingAddressId = customerShippingAddressId
1406
      @order = order
1407
      @taxExempt = taxExempt
1408
      @recurringBilling = recurringBilling
1409
      @cardCode = cardCode
1410
      @splitTenderId = splitTenderId
1411
    end
1412
  end
1413
  
1414
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransAuthOnlyType
1415
  #   amount - SOAP::SOAPDecimal
@@ 1334-1365 (lines=32) @@
1331
  #   recurringBilling - SOAP::SOAPBoolean
1332
  #   cardCode - (any)
1333
  #   splitTenderId - (any)
1334
  class ProfileTransOrderType
1335
    include ROXML
1336
    xml_accessor :amount
1337
    xml_accessor :tax
1338
    xml_accessor :shipping
1339
    xml_accessor :duty
1340
    xml_accessor :lineItems
1341
    xml_accessor :customerProfileId
1342
    xml_accessor :customerPaymentProfileId
1343
    xml_accessor :customerShippingAddressId
1344
    xml_accessor :order
1345
    xml_accessor :taxExempt
1346
    xml_accessor :recurringBilling
1347
    xml_accessor :cardCode
1348
    xml_accessor :splitTenderId
1349
  
1350
    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)
1351
      @amount = amount
1352
      @tax = tax
1353
      @shipping = shipping
1354
      @duty = duty
1355
      @lineItems = lineItems
1356
      @customerProfileId = customerProfileId
1357
      @customerPaymentProfileId = customerPaymentProfileId
1358
      @customerShippingAddressId = customerShippingAddressId
1359
      @order = order
1360
      @taxExempt = taxExempt
1361
      @recurringBilling = recurringBilling
1362
      @cardCode = cardCode
1363
      @splitTenderId = splitTenderId
1364
    end
1365
  end
1366
  
1367
  # {AnetApi/xml/v1/schema/AnetApiSchema.xsd}profileTransAuthCaptureType
1368
  #   amount - SOAP::SOAPDecimal