Code Duplication    Length = 6-7 lines in 2 locations

lib/authorize_net/key_value_transaction.rb 2 locations

@@ 167-173 (lines=7) @@
164
      run
165
    end
166
167
    # Sets up and submits a refund (CREDIT) transaction for a transaction that was not originally
168
    # submitted via the payment gateway. Note that this is a special feature which requires your
169
    # account to support ECC (expanded credits capability) transactions.
170
    #
171
    # +amount+:: The amount to refund. Accepts a string in the format "%0.2f", a Float or a BigDecimal.
172
    # +credit_card+:: The credit card or eCheck to charge. Accepts an instance of AuthorizeNet::CreditCard, AuthorizeNet::ECheck, or a string of digits.
173
    #
174
    # Typical usage:
175
    #
176
    #   response = transaction.unlinked_credit(10.0, '4111111111111111')
@@ 186-191 (lines=6) @@
183
    end
184
185
    # Sets up and submits a void (VOID) transaction. Returns a response object. If the transaction
186
    # has already been run, it will return nil. Note that you can only void unsettled transactions.
187
    #
188
    # +transaction+:: The transaction ID of the transaction to void. Accepts a string of the transaction ID, an instance of AuthorizeNet::Transaction or AuthorizeNet::Response.
189
    #
190
    #
191
    # Typical usage:
192
    #
193
    #   response = transaction.void('123456789')
194
    #