Code Duplication    Length = 4-4 lines in 2 locations

lib/authorize_net/cim/transaction.rb 2 locations

@@ 539-542 (lines=4) @@
536
    #   if response.success?
537
    #     puts response.direct_response if direct_response.success?
538
    #
539
    def create_transaction_refund(transaction_id, amount, profile_id, payment_profile_id, order = nil, options = {})
540
      handle_transaction_id(transaction_id)
541
      create_transaction(:refund, amount, profile_id, payment_profile_id, order, options)
542
    end
543
544
    # Sets up and submits a updateSplitTenderGroupRequest transaction. Use this to end or void a split
545
    # tender batch. If this transaction has already been run, this method will return nil. Otherwise
@@ 491-494 (lines=4) @@
488
    #   if response.success?
489
    #     puts response.direct_response if direct_response.success?
490
    #
491
    def create_transaction_prior_auth_capture(transaction_id, amount, order = nil, options = {})
492
      handle_transaction_id(transaction_id)
493
      create_transaction(:prior_auth_capture, amount, nil, nil, order, options)
494
    end
495
496
    # Sets up and submits a VOID transaction using stored payment information. If this
497
    # transaction has already been run, this method will return nil. Otherwise it will return an