lib/braintree/transaction.rb in braintree-2.54.0 vs lib/braintree/transaction.rb in braintree-2.55.0

- old
+ new

@@ -84,10 +84,11 @@ attr_reader :billing_details, :shipping_details attr_reader :paypal_details attr_reader :apple_pay_details attr_reader :android_pay_details attr_reader :amex_express_checkout_details + attr_reader :venmo_account_details attr_reader :coinbase_details attr_reader :plan_id # The authorization code from the processor. attr_reader :processor_authorization_code # The response code from the processor. @@ -204,12 +205,12 @@ def self.release_from_escrow!(transaction_id) return_object_or_raise(:transaction) { release_from_escrow(transaction_id) } end - def self.submit_for_settlement(transaction_id, amount = nil) - Configuration.gateway.transaction.submit_for_settlement(transaction_id, amount) + 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) } end @@ -242,9 +243,10 @@ @descriptor = Descriptor.new(@descriptor) @paypal_details = PayPalDetails.new(@paypal) @apple_pay_details = ApplePayDetails.new(@apple_pay) @android_pay_details = AndroidPayDetails.new(@android_pay_card) @amex_express_checkout_details = AmexExpressCheckoutDetails.new(@amex_express_checkout_card) + @venmo_account_details = VenmoAccountDetails.new(@venmo_account) @coinbase_details = CoinbaseDetails.new(@coinbase_account) disputes.map! { |attrs| Dispute._new(attrs) } if disputes @custom_fields = attributes[:custom_fields].is_a?(Hash) ? attributes[:custom_fields] : {} add_ons.map! { |attrs| AddOn._new(attrs) } if add_ons discounts.map! { |attrs| Discount._new(attrs) } if discounts