lib/braintree/transaction_gateway.rb in braintree-4.20.0 vs lib/braintree/transaction_gateway.rb in braintree-4.21.0

- old
+ new

@@ -176,11 +176,11 @@ _handle_transaction_response(response) end def submit_for_partial_settlement(authorized_transaction_id, amount = nil, options = {}) raise ArgumentError, "authorized_transaction_id is invalid" unless authorized_transaction_id =~ /\A[0-9a-z]+\z/ - Util.verify_keys(TransactionGateway._submit_for_settlement_signature, options) + Util.verify_keys(TransactionGateway._submit_for_partial_settlement_signature, options) transaction_params = {:amount => amount}.merge(options) response = @config.http.post("#{@config.base_merchant_path}/transactions/#{authorized_transaction_id}/submit_for_partial_settlement", :transaction => transaction_params) _handle_transaction_response(response) end @@ -219,11 +219,11 @@ :product_sku, :purchase_order_number, :service_fee_amount, :shared_billing_address_id, :shared_customer_id, :shared_payment_method_nonce, :shared_payment_method_token, :shared_shipping_address_id, :shipping_address_id, :shipping_amount, :ships_from_postal_code, :tax_amount, :tax_exempt, :three_d_secure_authentication_id,:three_d_secure_token, #Deprecated :transaction_source, :type, :venmo_sdk_payment_method_code, # Deprecated - :sca_exemption, :currency_iso_code, :exchange_rate_quote_id, + :sca_exemption, :currency_iso_code, :exchange_rate_quote_id, :foreign_retailer, {:line_items => [:commodity_code, :description, :discount_amount, :image_url, :kind, :name, :product_code, :quantity, :tax_amount, :total_amount, :unit_amount, :unit_of_measure, :unit_tax_amount, :upc_code, :upc_type, :url]}, {:risk_data => [:customer_browser, :customer_device_id, :customer_ip, :customer_location_zip, :customer_tenure]}, {:credit_card => [:token, :cardholder_name, :cvv, :expiration_date, :expiration_month, :expiration_year, :number, {:payment_reader_card_details => [:encrypted_card_data, :key_serial_number]}, {:network_tokenization_attributes => [:cryptogram, :ecommerce_indicator, :token_requestor_id]}]}, {:customer => [:id, :company, :email, :fax, :first_name, :last_name, :phone, :website]}, { @@ -317,9 +317,15 @@ :tax_exempt, :discount_amount, :shipping_amount, :ships_from_postal_code, :line_items => [:commodity_code, :description, :discount_amount, :image_url, :kind, :name, :product_code, :quantity, :tax_amount, :total_amount, :unit_amount, :unit_of_measure, :unit_tax_amount, :upc_code, :upc_type, :url], + ] + end + + def self._submit_for_partial_settlement_signature + _submit_for_settlement_signature + [ + :final_capture ] end def self._adjust_authorization_signature [