dwolla-ruby 2.2.1 → 2.2.2

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZDlhOWUxN2FiMzIxOWEwNDAzNjIzMTU5YTIxZjEwNjZlZDJhOGIyMQ==
4
+ NTNjNTU3YzZhMzRmZTFmNmRiNjkzMGUyOWM2OTE2N2MwZDQ3YjI1NQ==
5
5
  data.tar.gz: !binary |-
6
- NGY1NzEzYWU4ZWU3MWNmOTE5OThhZGNhMTY4ZjIxZGI5MWZiYWQxNw==
6
+ NmNiODdmMTFiZmExYTcwZWE4NGZjODBkYzU0NDgyYTdiYTU3YWE5Mg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NWQ0YTFjY2YwYzM0YTM0MDBkNjM5NWExNTY1MGRjZTBmNDdhNDI1ZGExNDJh
10
- NGYyNDE2NjEzZTVjMjA5ZjRlZDMxNWUzMzcxY2MwM2U2ZjliOWVkNWFhOWEy
11
- NGI0NDJhYWZkZDgwNTU5NTlkMTZlMmU3NzIyZWMxZmI5MDQ1MGI=
9
+ Nzc0ZGQwODg0MTYxNjJjNGNmZmVjZDQyODQ0YjA5MDJlY2E3ZDMxZDdmYWRm
10
+ YjI3ZWE1NDQ0YjU4YWY5ODhhMGQzZDMwMmNjODRkMjkxNDMzZWZkNjQ2NTg1
11
+ NTllODhmNWEzYzg3YWNhODlkNzRlMmM1MDM1ZTkyNWJkYTdkMzc=
12
12
  data.tar.gz: !binary |-
13
- NWU4ZTAwNGNkN2JjMGIzY2Q4NWI4MWViNjNlNzRhY2ZkYThjZDBiZTczMjU5
14
- Zjc4NDE5ODg1ZDdhODg5MzY5YTk3MmU2M2NlNDdmNzMzNjhiZDljM2RhMjhi
15
- YzFmNDQzNDI5ZTExOTUxOGIzZDM4YjlkZDkzYjg3YmIxNzdkMGE=
13
+ YTU3Y2JhMjRmYjU5MjVmZTE2YzA4M2IzYTQ2ZGUwMTcxZTE5NThkMGM0MjE0
14
+ NDUwN2QxYTIyNjhiMzRlODI3OGFhOTk0ZWJlN2I3Nzc3MGZlZDc0NjU1YjA1
15
+ NzQxZWMyMTgzZjYyYTAzNjdjNzgxNDhlNDU4MzRlNWQ2MGQyYTI=
@@ -8,9 +8,18 @@ module Dwolla
8
8
  @facilitatorAmount = nil
9
9
  @testMode = false
10
10
  @allowFundingSources = true
11
+ @orderId = nil
11
12
 
12
13
  def self.clear_session
13
14
  @products = []
15
+ @discount = 0
16
+ @tax = 0
17
+ @shipping = 0
18
+ @notes = nil
19
+ @facilitatorAmount = nil
20
+ @testMode = false
21
+ @allowFundingSources = true
22
+ @orderId = nil
14
23
  end
15
24
 
16
25
  def self.add_product(name=nil, description=nil, price=nil, quantity=1)
@@ -49,6 +58,10 @@ module Dwolla
49
58
  @notes = notes
50
59
  end
51
60
 
61
+ def self.order_id=(order_id)
62
+ @orderId = order_id
63
+ end
64
+
52
65
  def self.redirect=(redirect)
53
66
  @redirect = redirect
54
67
  end
@@ -69,6 +82,7 @@ module Dwolla
69
82
  :test => @testMode,
70
83
  :callback => @callback,
71
84
  :redirect => @redirect,
85
+ :orderId => @orderId,
72
86
  :purchaseOrder => {
73
87
  :customerInfo => @customerInfo,
74
88
  :destinationId => destinationId,
@@ -1,3 +1,3 @@
1
1
  module Dwolla
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dwolla-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Schonfeld