lib/braintree/transaction_gateway.rb in braintree-4.2.0 vs lib/braintree/transaction_gateway.rb in braintree-4.3.0

- old
+ new

@@ -59,11 +59,11 @@ def credit!(*args) return_object_or_raise(:transaction) { credit(*args) } end def find(id) - raise ArgumentError if id.nil? || id.strip.to_s == "" + raise ArgumentError, "id can not be empty" if id.nil? || id.strip.to_s == "" response = @config.http.get("#{@config.base_merchant_path}/transactions/#{id}") Transaction._new(@gateway, response[:transaction]) rescue NotFoundError raise NotFoundError, "transaction with id #{id.inspect} not found" end @@ -190,10 +190,10 @@ :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, :transaction_source, :type, :venmo_sdk_payment_method_code, - :sca_exemption, :currency_iso_code, + :sca_exemption, :currency_iso_code, :exchange_rate_quote_id, {:line_items => [:quantity, :name, :description, :kind, :unit_amount, :unit_tax_amount, :total_amount, :discount_amount, :tax_amount, :unit_of_measure, :product_code, :commodity_code, :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]}]}, {:customer => [:id, :company, :email, :fax, :first_name, :last_name, :phone, :website]}, {