gocardless_pro 2.15.0 → 2.15.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: dc328b0ced54deebf0d10d58fd90834f79051883e33070c2c20854189a37f754
4
- data.tar.gz: fb9762541b7f44f71fa70bcd7ab06c4508de4d61397091cd34f5cf168aafa54e
3
+ metadata.gz: 240cc1318312d1dc21ab14f27d0c9ffe3d813dbac6e671f1b1ff25c5574010f8
4
+ data.tar.gz: 462678183639612f89335b0166a848047a03ca73a9134d85959740cde5f32e35
5
5
  SHA512:
6
- metadata.gz: 63820d101cba5345d47ef999e27dc8c194de3465bb0835d376a131819740e89abfe1f87c804c64a91962c698d0317061f548487adddd3fe7a2a2e808795910ae
7
- data.tar.gz: c39bf191b20ecae3be0e8b414d9732e56bb05e741af4fcadb777c8016b5b7977236b0928e025615a1b51f34f6f72303a7d5ae67fc998e02c41f9c3712ca56d89
6
+ metadata.gz: 00363e5109326f5924f2407f0de5fb54557af8eabedb6a283f03dccab816f220fda68cbf77e142df1a8f66f4116eb0047ed261d38dd181759c6e4e1a3c6c9658
7
+ data.tar.gz: '04628b2b5996f31402d9919d0e91d0a064484d96f05d9fc97a04f8e964fad0542953b55d98778b3ec32bdf76634e33428b6a8764ae8c1ec7753f95ed515ec371'
@@ -138,7 +138,7 @@ module GoCardlessPro
138
138
  'User-Agent' => user_agent.to_s,
139
139
  'Content-Type' => 'application/json',
140
140
  'GoCardless-Client-Library' => 'gocardless-pro-ruby',
141
- 'GoCardless-Client-Version' => '2.15.0',
141
+ 'GoCardless-Client-Version' => '2.15.1',
142
142
  },
143
143
  }
144
144
  end
@@ -20,7 +20,9 @@ module GoCardlessPro
20
20
  @connection = connection
21
21
  @method = method
22
22
  @path = path
23
- @headers = options.delete(:headers) || {}
23
+ @headers = (options.delete(:headers) || {}).each_with_object({}) do |(k, v), hsh|
24
+ hsh[k.to_s] = v
25
+ end
24
26
  @envelope_name = options.delete(:envelope_key)
25
27
  @retry_failures = options.delete(:retry_failures) { true }
26
28
  @given_options = options
@@ -107,6 +107,10 @@ module GoCardlessPro
107
107
  def default_sek_payout_account
108
108
  @links['default_sek_payout_account']
109
109
  end
110
+
111
+ def default_usd_payout_account
112
+ @links['default_usd_payout_account']
113
+ end
110
114
  end
111
115
  end
112
116
  end
@@ -14,8 +14,10 @@ module GoCardlessPro
14
14
 
15
15
  # Payouts represent transfers from GoCardless to a
16
16
  # [creditor](#core-endpoints-creditors). Each payout contains the funds
17
- # collected from one or many [payments](#core-endpoints-payments). Payouts
18
- # are created automatically after a payment has been successfully collected.
17
+ # collected from one or many [payments](#core-endpoints-payments). All the
18
+ # payments in a payout will have been collected in the same currency.
19
+ # Payouts are created automatically after a payment has been successfully
20
+ # collected.
19
21
  class Payout
20
22
  attr_reader :amount
21
23
  attr_reader :arrival_date
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  module GoCardlessPro
6
6
  # Current version of the GC gem
7
- VERSION = '2.15.0'.freeze
7
+ VERSION = '2.15.1'.freeze
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocardless_pro
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.15.0
4
+ version: 2.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-16 00:00:00.000000000 Z
11
+ date: 2019-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -258,7 +258,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
258
258
  - !ruby/object:Gem::Version
259
259
  version: '0'
260
260
  requirements: []
261
- rubygems_version: 3.0.3
261
+ rubyforge_project:
262
+ rubygems_version: 2.7.6.2
262
263
  signing_key:
263
264
  specification_version: 4
264
265
  summary: A gem for calling the GoCardless Pro API