lib/braintree/transaction.rb in braintree-2.56.0 vs lib/braintree/transaction.rb in braintree-2.57.0

- old
+ new

@@ -209,15 +209,19 @@ def self.submit_for_settlement(transaction_id, amount = nil, options = {}) Configuration.gateway.transaction.submit_for_settlement(transaction_id, amount, options) end - def self.submit_for_settlement!(transaction_id, amount = nil) - return_object_or_raise(:transaction) { submit_for_settlement(transaction_id, amount) } + def self.submit_for_settlement!(transaction_id, amount = nil, options = {}) + return_object_or_raise(:transaction) { submit_for_settlement(transaction_id, amount, options) } end - def self.submit_for_partial_settlement(authorized_transaction_id, amount = nil) - Configuration.gateway.transaction.submit_for_partial_settlement(authorized_transaction_id, amount) + def self.submit_for_partial_settlement(authorized_transaction_id, amount = nil, options = {}) + Configuration.gateway.transaction.submit_for_partial_settlement(authorized_transaction_id, amount, options) + end + + def self.submit_for_partial_settlement!(authorized_transaction_id, amount = nil, options = {}) + return_object_or_raise(:transaction) { submit_for_partial_settlement(authorized_transaction_id, amount, options) } end def self.void(transaction_id) Configuration.gateway.transaction.void(transaction_id) end