braintree 2.104.0 → 2.104.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89971a45c1e0be0e048b7af1c4709c262186eae09880c4d0ce40a112782baa7d
|
|
4
|
+
data.tar.gz: 6f0d43792c5cac012febc1318ca045ff384dfdc536500ff0359c083abdec2829
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3b43b76eaf3f3f157d81c4d832162442ade1e981fc01a6a51984aec587eb51ea8e2c0b2376317d30b8fa73d83cb31250ab37bddf8d0111809790354c3970ff4f
|
|
7
|
+
data.tar.gz: d604e220f3d1ba2d98e17db2f4a11f7e25548cc62c808732f2b72f71064a874d98e1c4f1996a3ecccfb6ef4bd9b303ad132e2cd9f96f7703a67e5f35c42d446b
|
|
@@ -9,7 +9,7 @@ module Braintree
|
|
|
9
9
|
|
|
10
10
|
def initialize(attributes) # :nodoc:
|
|
11
11
|
set_instance_variables_from_hash(attributes)
|
|
12
|
-
@transaction = Transaction._new(Configuration.gateway, transaction)
|
|
12
|
+
@transaction = Transaction._new(Configuration.gateway, transaction) unless transaction.nil?
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
class << self
|
data/lib/braintree/version.rb
CHANGED
|
@@ -32,5 +32,19 @@ describe Braintree::LocalPaymentCompleted do
|
|
|
32
32
|
local_payment_completed.transaction.order_id.should eq("an-order-id")
|
|
33
33
|
local_payment_completed.transaction.status.should eq(Braintree::Transaction::Status::Authorized)
|
|
34
34
|
end
|
|
35
|
+
|
|
36
|
+
it "initializes the object with the appropriate attributes set if no transaction is provided" do
|
|
37
|
+
params = {
|
|
38
|
+
payment_id: "a-payment-id",
|
|
39
|
+
payer_id: "a-payer-id",
|
|
40
|
+
payment_method_nonce: "a-nonce",
|
|
41
|
+
}
|
|
42
|
+
local_payment_completed = Braintree::LocalPaymentCompleted._new(params)
|
|
43
|
+
|
|
44
|
+
local_payment_completed.payment_id.should eq("a-payment-id")
|
|
45
|
+
local_payment_completed.payer_id.should eq("a-payer-id")
|
|
46
|
+
local_payment_completed.payment_method_nonce.should eq("a-nonce")
|
|
47
|
+
local_payment_completed.transaction.should be_nil
|
|
48
|
+
end
|
|
35
49
|
end
|
|
36
50
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: braintree
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.104.
|
|
4
|
+
version: 2.104.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Braintree
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-10-
|
|
11
|
+
date: 2020-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: builder
|