gocardless_pro 2.14.0 → 2.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/gocardless_pro.gemspec +4 -0
- data/lib/gocardless_pro/client.rb +1 -1
- data/lib/gocardless_pro/resources/creditor.rb +2 -0
- data/lib/gocardless_pro/resources/payment.rb +2 -0
- data/lib/gocardless_pro/resources/payout.rb +2 -0
- data/lib/gocardless_pro/resources/refund.rb +2 -0
- data/lib/gocardless_pro/version.rb +1 -1
- data/spec/resources/creditor_spec.rb +13 -0
- data/spec/resources/payment_spec.rb +17 -0
- data/spec/resources/payout_spec.rb +7 -0
- data/spec/resources/refund_spec.rb +13 -0
- data/spec/services/creditors_service_spec.rb +17 -0
- data/spec/services/payments_service_spec.rb +21 -0
- data/spec/services/payouts_service_spec.rb +11 -0
- data/spec/services/refunds_service_spec.rb +17 -0
- data/spec/spec_helper.rb +1 -0
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc328b0ced54deebf0d10d58fd90834f79051883e33070c2c20854189a37f754
|
4
|
+
data.tar.gz: fb9762541b7f44f71fa70bcd7ab06c4508de4d61397091cd34f5cf168aafa54e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 63820d101cba5345d47ef999e27dc8c194de3465bb0835d376a131819740e89abfe1f87c804c64a91962c698d0317061f548487adddd3fe7a2a2e808795910ae
|
7
|
+
data.tar.gz: c39bf191b20ecae3be0e8b414d9732e56bb05e741af4fcadb777c8016b5b7977236b0928e025615a1b51f34f6f72303a7d5ae67fc998e02c41f9c3712ca56d89
|
data/.gitignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
Gemfile.lock
|
data/gocardless_pro.gemspec
CHANGED
@@ -31,4 +31,8 @@ Gem::Specification.new do |spec|
|
|
31
31
|
# Pin the version of the 'parallel' gem, which is a transitive dependency of
|
32
32
|
# 'rubocop' (newer versions require Ruby 2.2+).
|
33
33
|
spec.add_development_dependency 'parallel', '~> 1.13.0'
|
34
|
+
|
35
|
+
# Pin the version of the 'rake' gem, which is a transitive dependency of
|
36
|
+
# 'rainbow' (newer versions require Ruby 2.2+).
|
37
|
+
spec.add_development_dependency 'rake', '< 13'
|
34
38
|
end
|
@@ -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.
|
141
|
+
'GoCardless-Client-Version' => '2.15.0',
|
142
142
|
},
|
143
143
|
}
|
144
144
|
end
|
@@ -28,6 +28,7 @@ module GoCardlessPro
|
|
28
28
|
attr_reader :city
|
29
29
|
attr_reader :country_code
|
30
30
|
attr_reader :created_at
|
31
|
+
attr_reader :fx_payout_currency
|
31
32
|
attr_reader :id
|
32
33
|
attr_reader :logo_url
|
33
34
|
attr_reader :name
|
@@ -48,6 +49,7 @@ module GoCardlessPro
|
|
48
49
|
@city = object['city']
|
49
50
|
@country_code = object['country_code']
|
50
51
|
@created_at = object['created_at']
|
52
|
+
@fx_payout_currency = object['fx_payout_currency']
|
51
53
|
@id = object['id']
|
52
54
|
@links = object['links']
|
53
55
|
@logo_url = object['logo_url']
|
@@ -26,6 +26,7 @@ module GoCardlessPro
|
|
26
26
|
attr_reader :created_at
|
27
27
|
attr_reader :currency
|
28
28
|
attr_reader :description
|
29
|
+
attr_reader :fx
|
29
30
|
attr_reader :id
|
30
31
|
attr_reader :metadata
|
31
32
|
attr_reader :reference
|
@@ -42,6 +43,7 @@ module GoCardlessPro
|
|
42
43
|
@created_at = object['created_at']
|
43
44
|
@currency = object['currency']
|
44
45
|
@description = object['description']
|
46
|
+
@fx = object['fx']
|
45
47
|
@id = object['id']
|
46
48
|
@links = object['links']
|
47
49
|
@metadata = object['metadata']
|
@@ -22,6 +22,7 @@ module GoCardlessPro
|
|
22
22
|
attr_reader :created_at
|
23
23
|
attr_reader :currency
|
24
24
|
attr_reader :deducted_fees
|
25
|
+
attr_reader :fx
|
25
26
|
attr_reader :id
|
26
27
|
attr_reader :payout_type
|
27
28
|
attr_reader :reference
|
@@ -37,6 +38,7 @@ module GoCardlessPro
|
|
37
38
|
@created_at = object['created_at']
|
38
39
|
@currency = object['currency']
|
39
40
|
@deducted_fees = object['deducted_fees']
|
41
|
+
@fx = object['fx']
|
40
42
|
@id = object['id']
|
41
43
|
@links = object['links']
|
42
44
|
@payout_type = object['payout_type']
|
@@ -23,6 +23,7 @@ module GoCardlessPro
|
|
23
23
|
attr_reader :amount
|
24
24
|
attr_reader :created_at
|
25
25
|
attr_reader :currency
|
26
|
+
attr_reader :fx
|
26
27
|
attr_reader :id
|
27
28
|
attr_reader :metadata
|
28
29
|
attr_reader :reference
|
@@ -35,6 +36,7 @@ module GoCardlessPro
|
|
35
36
|
@amount = object['amount']
|
36
37
|
@created_at = object['created_at']
|
37
38
|
@currency = object['currency']
|
39
|
+
@fx = object['fx']
|
38
40
|
@id = object['id']
|
39
41
|
@links = object['links']
|
40
42
|
@metadata = object['metadata']
|
@@ -22,6 +22,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
22
22
|
'city' => 'city-input',
|
23
23
|
'country_code' => 'country_code-input',
|
24
24
|
'created_at' => 'created_at-input',
|
25
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
25
26
|
'id' => 'id-input',
|
26
27
|
'links' => 'links-input',
|
27
28
|
'logo_url' => 'logo_url-input',
|
@@ -46,6 +47,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
46
47
|
'city' => 'city-input',
|
47
48
|
'country_code' => 'country_code-input',
|
48
49
|
'created_at' => 'created_at-input',
|
50
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
49
51
|
'id' => 'id-input',
|
50
52
|
'links' => 'links-input',
|
51
53
|
'logo_url' => 'logo_url-input',
|
@@ -70,6 +72,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
70
72
|
'city' => 'city-input',
|
71
73
|
'country_code' => 'country_code-input',
|
72
74
|
'created_at' => 'created_at-input',
|
75
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
73
76
|
'id' => 'id-input',
|
74
77
|
'links' => 'links-input',
|
75
78
|
'logo_url' => 'logo_url-input',
|
@@ -127,6 +130,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
127
130
|
'city' => 'city-input',
|
128
131
|
'country_code' => 'country_code-input',
|
129
132
|
'created_at' => 'created_at-input',
|
133
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
130
134
|
'id' => 'id-input',
|
131
135
|
'links' => 'links-input',
|
132
136
|
'logo_url' => 'logo_url-input',
|
@@ -174,6 +178,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
174
178
|
'city' => 'city-input',
|
175
179
|
'country_code' => 'country_code-input',
|
176
180
|
'created_at' => 'created_at-input',
|
181
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
177
182
|
'id' => 'id-input',
|
178
183
|
'links' => 'links-input',
|
179
184
|
'logo_url' => 'logo_url-input',
|
@@ -212,6 +217,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
212
217
|
'city' => 'city-input',
|
213
218
|
'country_code' => 'country_code-input',
|
214
219
|
'created_at' => 'created_at-input',
|
220
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
215
221
|
'id' => 'id-input',
|
216
222
|
'links' => 'links-input',
|
217
223
|
'logo_url' => 'logo_url-input',
|
@@ -249,6 +255,8 @@ describe GoCardlessPro::Resources::Creditor do
|
|
249
255
|
|
250
256
|
expect(get_list_response.records.first.created_at).to eq('created_at-input')
|
251
257
|
|
258
|
+
expect(get_list_response.records.first.fx_payout_currency).to eq('fx_payout_currency-input')
|
259
|
+
|
252
260
|
expect(get_list_response.records.first.id).to eq('id-input')
|
253
261
|
|
254
262
|
expect(get_list_response.records.first.logo_url).to eq('logo_url-input')
|
@@ -286,6 +294,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
286
294
|
'city' => 'city-input',
|
287
295
|
'country_code' => 'country_code-input',
|
288
296
|
'created_at' => 'created_at-input',
|
297
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
289
298
|
'id' => 'id-input',
|
290
299
|
'links' => 'links-input',
|
291
300
|
'logo_url' => 'logo_url-input',
|
@@ -316,6 +325,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
316
325
|
'city' => 'city-input',
|
317
326
|
'country_code' => 'country_code-input',
|
318
327
|
'created_at' => 'created_at-input',
|
328
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
319
329
|
'id' => 'id-input',
|
320
330
|
'links' => 'links-input',
|
321
331
|
'logo_url' => 'logo_url-input',
|
@@ -362,6 +372,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
362
372
|
'city' => 'city-input',
|
363
373
|
'country_code' => 'country_code-input',
|
364
374
|
'created_at' => 'created_at-input',
|
375
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
365
376
|
'id' => 'id-input',
|
366
377
|
'links' => 'links-input',
|
367
378
|
'logo_url' => 'logo_url-input',
|
@@ -402,6 +413,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
402
413
|
'city' => 'city-input',
|
403
414
|
'country_code' => 'country_code-input',
|
404
415
|
'created_at' => 'created_at-input',
|
416
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
405
417
|
'id' => 'id-input',
|
406
418
|
'links' => 'links-input',
|
407
419
|
'logo_url' => 'logo_url-input',
|
@@ -464,6 +476,7 @@ describe GoCardlessPro::Resources::Creditor do
|
|
464
476
|
'city' => 'city-input',
|
465
477
|
'country_code' => 'country_code-input',
|
466
478
|
'created_at' => 'created_at-input',
|
479
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
467
480
|
'id' => 'id-input',
|
468
481
|
'links' => 'links-input',
|
469
482
|
'logo_url' => 'logo_url-input',
|
@@ -21,6 +21,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
21
21
|
'created_at' => 'created_at-input',
|
22
22
|
'currency' => 'currency-input',
|
23
23
|
'description' => 'description-input',
|
24
|
+
'fx' => 'fx-input',
|
24
25
|
'id' => 'id-input',
|
25
26
|
'links' => 'links-input',
|
26
27
|
'metadata' => 'metadata-input',
|
@@ -41,6 +42,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
41
42
|
'created_at' => 'created_at-input',
|
42
43
|
'currency' => 'currency-input',
|
43
44
|
'description' => 'description-input',
|
45
|
+
'fx' => 'fx-input',
|
44
46
|
'id' => 'id-input',
|
45
47
|
'links' => 'links-input',
|
46
48
|
'metadata' => 'metadata-input',
|
@@ -61,6 +63,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
61
63
|
'created_at' => 'created_at-input',
|
62
64
|
'currency' => 'currency-input',
|
63
65
|
'description' => 'description-input',
|
66
|
+
'fx' => 'fx-input',
|
64
67
|
'id' => 'id-input',
|
65
68
|
'links' => 'links-input',
|
66
69
|
'metadata' => 'metadata-input',
|
@@ -114,6 +117,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
114
117
|
'created_at' => 'created_at-input',
|
115
118
|
'currency' => 'currency-input',
|
116
119
|
'description' => 'description-input',
|
120
|
+
'fx' => 'fx-input',
|
117
121
|
'id' => 'id-input',
|
118
122
|
'links' => 'links-input',
|
119
123
|
'metadata' => 'metadata-input',
|
@@ -157,6 +161,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
157
161
|
'created_at' => 'created_at-input',
|
158
162
|
'currency' => 'currency-input',
|
159
163
|
'description' => 'description-input',
|
164
|
+
'fx' => 'fx-input',
|
160
165
|
'id' => 'id-input',
|
161
166
|
'links' => 'links-input',
|
162
167
|
'metadata' => 'metadata-input',
|
@@ -191,6 +196,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
191
196
|
'created_at' => 'created_at-input',
|
192
197
|
'currency' => 'currency-input',
|
193
198
|
'description' => 'description-input',
|
199
|
+
'fx' => 'fx-input',
|
194
200
|
'id' => 'id-input',
|
195
201
|
'links' => 'links-input',
|
196
202
|
'metadata' => 'metadata-input',
|
@@ -223,6 +229,8 @@ describe GoCardlessPro::Resources::Payment do
|
|
223
229
|
|
224
230
|
expect(get_list_response.records.first.description).to eq('description-input')
|
225
231
|
|
232
|
+
expect(get_list_response.records.first.fx).to eq('fx-input')
|
233
|
+
|
226
234
|
expect(get_list_response.records.first.id).to eq('id-input')
|
227
235
|
|
228
236
|
expect(get_list_response.records.first.metadata).to eq('metadata-input')
|
@@ -253,6 +261,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
253
261
|
'created_at' => 'created_at-input',
|
254
262
|
'currency' => 'currency-input',
|
255
263
|
'description' => 'description-input',
|
264
|
+
'fx' => 'fx-input',
|
256
265
|
'id' => 'id-input',
|
257
266
|
'links' => 'links-input',
|
258
267
|
'metadata' => 'metadata-input',
|
@@ -279,6 +288,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
279
288
|
'created_at' => 'created_at-input',
|
280
289
|
'currency' => 'currency-input',
|
281
290
|
'description' => 'description-input',
|
291
|
+
'fx' => 'fx-input',
|
282
292
|
'id' => 'id-input',
|
283
293
|
'links' => 'links-input',
|
284
294
|
'metadata' => 'metadata-input',
|
@@ -321,6 +331,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
321
331
|
'created_at' => 'created_at-input',
|
322
332
|
'currency' => 'currency-input',
|
323
333
|
'description' => 'description-input',
|
334
|
+
'fx' => 'fx-input',
|
324
335
|
'id' => 'id-input',
|
325
336
|
'links' => 'links-input',
|
326
337
|
'metadata' => 'metadata-input',
|
@@ -357,6 +368,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
357
368
|
'created_at' => 'created_at-input',
|
358
369
|
'currency' => 'currency-input',
|
359
370
|
'description' => 'description-input',
|
371
|
+
'fx' => 'fx-input',
|
360
372
|
'id' => 'id-input',
|
361
373
|
'links' => 'links-input',
|
362
374
|
'metadata' => 'metadata-input',
|
@@ -415,6 +427,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
415
427
|
'created_at' => 'created_at-input',
|
416
428
|
'currency' => 'currency-input',
|
417
429
|
'description' => 'description-input',
|
430
|
+
'fx' => 'fx-input',
|
418
431
|
'id' => 'id-input',
|
419
432
|
'links' => 'links-input',
|
420
433
|
'metadata' => 'metadata-input',
|
@@ -451,6 +464,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
451
464
|
'created_at' => 'created_at-input',
|
452
465
|
'currency' => 'currency-input',
|
453
466
|
'description' => 'description-input',
|
467
|
+
'fx' => 'fx-input',
|
454
468
|
'id' => 'id-input',
|
455
469
|
'links' => 'links-input',
|
456
470
|
'metadata' => 'metadata-input',
|
@@ -492,6 +506,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
492
506
|
'created_at' => 'created_at-input',
|
493
507
|
'currency' => 'currency-input',
|
494
508
|
'description' => 'description-input',
|
509
|
+
'fx' => 'fx-input',
|
495
510
|
'id' => 'id-input',
|
496
511
|
'links' => 'links-input',
|
497
512
|
'metadata' => 'metadata-input',
|
@@ -523,6 +538,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
523
538
|
'created_at' => 'created_at-input',
|
524
539
|
'currency' => 'currency-input',
|
525
540
|
'description' => 'description-input',
|
541
|
+
'fx' => 'fx-input',
|
526
542
|
'id' => 'id-input',
|
527
543
|
'links' => 'links-input',
|
528
544
|
'metadata' => 'metadata-input',
|
@@ -564,6 +580,7 @@ describe GoCardlessPro::Resources::Payment do
|
|
564
580
|
'created_at' => 'created_at-input',
|
565
581
|
'currency' => 'currency-input',
|
566
582
|
'description' => 'description-input',
|
583
|
+
'fx' => 'fx-input',
|
567
584
|
'id' => 'id-input',
|
568
585
|
'links' => 'links-input',
|
569
586
|
'metadata' => 'metadata-input',
|
@@ -23,6 +23,7 @@ describe GoCardlessPro::Resources::Payout do
|
|
23
23
|
'created_at' => 'created_at-input',
|
24
24
|
'currency' => 'currency-input',
|
25
25
|
'deducted_fees' => 'deducted_fees-input',
|
26
|
+
'fx' => 'fx-input',
|
26
27
|
'id' => 'id-input',
|
27
28
|
'links' => 'links-input',
|
28
29
|
'payout_type' => 'payout_type-input',
|
@@ -53,6 +54,8 @@ describe GoCardlessPro::Resources::Payout do
|
|
53
54
|
|
54
55
|
expect(get_list_response.records.first.deducted_fees).to eq('deducted_fees-input')
|
55
56
|
|
57
|
+
expect(get_list_response.records.first.fx).to eq('fx-input')
|
58
|
+
|
56
59
|
expect(get_list_response.records.first.id).to eq('id-input')
|
57
60
|
|
58
61
|
expect(get_list_response.records.first.payout_type).to eq('payout_type-input')
|
@@ -82,6 +85,7 @@ describe GoCardlessPro::Resources::Payout do
|
|
82
85
|
'created_at' => 'created_at-input',
|
83
86
|
'currency' => 'currency-input',
|
84
87
|
'deducted_fees' => 'deducted_fees-input',
|
88
|
+
'fx' => 'fx-input',
|
85
89
|
'id' => 'id-input',
|
86
90
|
'links' => 'links-input',
|
87
91
|
'payout_type' => 'payout_type-input',
|
@@ -107,6 +111,7 @@ describe GoCardlessPro::Resources::Payout do
|
|
107
111
|
'created_at' => 'created_at-input',
|
108
112
|
'currency' => 'currency-input',
|
109
113
|
'deducted_fees' => 'deducted_fees-input',
|
114
|
+
'fx' => 'fx-input',
|
110
115
|
'id' => 'id-input',
|
111
116
|
'links' => 'links-input',
|
112
117
|
'payout_type' => 'payout_type-input',
|
@@ -148,6 +153,7 @@ describe GoCardlessPro::Resources::Payout do
|
|
148
153
|
'created_at' => 'created_at-input',
|
149
154
|
'currency' => 'currency-input',
|
150
155
|
'deducted_fees' => 'deducted_fees-input',
|
156
|
+
'fx' => 'fx-input',
|
151
157
|
'id' => 'id-input',
|
152
158
|
'links' => 'links-input',
|
153
159
|
'payout_type' => 'payout_type-input',
|
@@ -183,6 +189,7 @@ describe GoCardlessPro::Resources::Payout do
|
|
183
189
|
'created_at' => 'created_at-input',
|
184
190
|
'currency' => 'currency-input',
|
185
191
|
'deducted_fees' => 'deducted_fees-input',
|
192
|
+
'fx' => 'fx-input',
|
186
193
|
'id' => 'id-input',
|
187
194
|
'links' => 'links-input',
|
188
195
|
'payout_type' => 'payout_type-input',
|
@@ -18,6 +18,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
18
18
|
'amount' => 'amount-input',
|
19
19
|
'created_at' => 'created_at-input',
|
20
20
|
'currency' => 'currency-input',
|
21
|
+
'fx' => 'fx-input',
|
21
22
|
'id' => 'id-input',
|
22
23
|
'links' => 'links-input',
|
23
24
|
'metadata' => 'metadata-input',
|
@@ -34,6 +35,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
34
35
|
'amount' => 'amount-input',
|
35
36
|
'created_at' => 'created_at-input',
|
36
37
|
'currency' => 'currency-input',
|
38
|
+
'fx' => 'fx-input',
|
37
39
|
'id' => 'id-input',
|
38
40
|
'links' => 'links-input',
|
39
41
|
'metadata' => 'metadata-input',
|
@@ -50,6 +52,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
50
52
|
'amount' => 'amount-input',
|
51
53
|
'created_at' => 'created_at-input',
|
52
54
|
'currency' => 'currency-input',
|
55
|
+
'fx' => 'fx-input',
|
53
56
|
'id' => 'id-input',
|
54
57
|
'links' => 'links-input',
|
55
58
|
'metadata' => 'metadata-input',
|
@@ -99,6 +102,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
99
102
|
'amount' => 'amount-input',
|
100
103
|
'created_at' => 'created_at-input',
|
101
104
|
'currency' => 'currency-input',
|
105
|
+
'fx' => 'fx-input',
|
102
106
|
'id' => 'id-input',
|
103
107
|
'links' => 'links-input',
|
104
108
|
'metadata' => 'metadata-input',
|
@@ -138,6 +142,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
138
142
|
'amount' => 'amount-input',
|
139
143
|
'created_at' => 'created_at-input',
|
140
144
|
'currency' => 'currency-input',
|
145
|
+
'fx' => 'fx-input',
|
141
146
|
'id' => 'id-input',
|
142
147
|
'links' => 'links-input',
|
143
148
|
'metadata' => 'metadata-input',
|
@@ -168,6 +173,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
168
173
|
'amount' => 'amount-input',
|
169
174
|
'created_at' => 'created_at-input',
|
170
175
|
'currency' => 'currency-input',
|
176
|
+
'fx' => 'fx-input',
|
171
177
|
'id' => 'id-input',
|
172
178
|
'links' => 'links-input',
|
173
179
|
'metadata' => 'metadata-input',
|
@@ -193,6 +199,8 @@ describe GoCardlessPro::Resources::Refund do
|
|
193
199
|
|
194
200
|
expect(get_list_response.records.first.currency).to eq('currency-input')
|
195
201
|
|
202
|
+
expect(get_list_response.records.first.fx).to eq('fx-input')
|
203
|
+
|
196
204
|
expect(get_list_response.records.first.id).to eq('id-input')
|
197
205
|
|
198
206
|
expect(get_list_response.records.first.metadata).to eq('metadata-input')
|
@@ -218,6 +226,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
218
226
|
'amount' => 'amount-input',
|
219
227
|
'created_at' => 'created_at-input',
|
220
228
|
'currency' => 'currency-input',
|
229
|
+
'fx' => 'fx-input',
|
221
230
|
'id' => 'id-input',
|
222
231
|
'links' => 'links-input',
|
223
232
|
'metadata' => 'metadata-input',
|
@@ -240,6 +249,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
240
249
|
'amount' => 'amount-input',
|
241
250
|
'created_at' => 'created_at-input',
|
242
251
|
'currency' => 'currency-input',
|
252
|
+
'fx' => 'fx-input',
|
243
253
|
'id' => 'id-input',
|
244
254
|
'links' => 'links-input',
|
245
255
|
'metadata' => 'metadata-input',
|
@@ -278,6 +288,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
278
288
|
'amount' => 'amount-input',
|
279
289
|
'created_at' => 'created_at-input',
|
280
290
|
'currency' => 'currency-input',
|
291
|
+
'fx' => 'fx-input',
|
281
292
|
'id' => 'id-input',
|
282
293
|
'links' => 'links-input',
|
283
294
|
'metadata' => 'metadata-input',
|
@@ -310,6 +321,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
310
321
|
'amount' => 'amount-input',
|
311
322
|
'created_at' => 'created_at-input',
|
312
323
|
'currency' => 'currency-input',
|
324
|
+
'fx' => 'fx-input',
|
313
325
|
'id' => 'id-input',
|
314
326
|
'links' => 'links-input',
|
315
327
|
'metadata' => 'metadata-input',
|
@@ -364,6 +376,7 @@ describe GoCardlessPro::Resources::Refund do
|
|
364
376
|
'amount' => 'amount-input',
|
365
377
|
'created_at' => 'created_at-input',
|
366
378
|
'currency' => 'currency-input',
|
379
|
+
'fx' => 'fx-input',
|
367
380
|
'id' => 'id-input',
|
368
381
|
'links' => 'links-input',
|
369
382
|
'metadata' => 'metadata-input',
|
@@ -22,6 +22,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
22
22
|
'city' => 'city-input',
|
23
23
|
'country_code' => 'country_code-input',
|
24
24
|
'created_at' => 'created_at-input',
|
25
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
25
26
|
'id' => 'id-input',
|
26
27
|
'links' => 'links-input',
|
27
28
|
'logo_url' => 'logo_url-input',
|
@@ -46,6 +47,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
46
47
|
'city' => 'city-input',
|
47
48
|
'country_code' => 'country_code-input',
|
48
49
|
'created_at' => 'created_at-input',
|
50
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
49
51
|
'id' => 'id-input',
|
50
52
|
'links' => 'links-input',
|
51
53
|
'logo_url' => 'logo_url-input',
|
@@ -70,6 +72,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
70
72
|
'city' => 'city-input',
|
71
73
|
'country_code' => 'country_code-input',
|
72
74
|
'created_at' => 'created_at-input',
|
75
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
73
76
|
'id' => 'id-input',
|
74
77
|
'links' => 'links-input',
|
75
78
|
'logo_url' => 'logo_url-input',
|
@@ -150,6 +153,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
150
153
|
'city' => 'city-input',
|
151
154
|
'country_code' => 'country_code-input',
|
152
155
|
'created_at' => 'created_at-input',
|
156
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
153
157
|
'id' => 'id-input',
|
154
158
|
'links' => 'links-input',
|
155
159
|
'logo_url' => 'logo_url-input',
|
@@ -197,6 +201,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
197
201
|
'city' => 'city-input',
|
198
202
|
'country_code' => 'country_code-input',
|
199
203
|
'created_at' => 'created_at-input',
|
204
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
200
205
|
'id' => 'id-input',
|
201
206
|
'links' => 'links-input',
|
202
207
|
'logo_url' => 'logo_url-input',
|
@@ -263,6 +268,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
263
268
|
'city' => 'city-input',
|
264
269
|
'country_code' => 'country_code-input',
|
265
270
|
'created_at' => 'created_at-input',
|
271
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
266
272
|
'id' => 'id-input',
|
267
273
|
'links' => 'links-input',
|
268
274
|
'logo_url' => 'logo_url-input',
|
@@ -305,6 +311,8 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
305
311
|
|
306
312
|
expect(get_list_response.records.first.created_at).to eq('created_at-input')
|
307
313
|
|
314
|
+
expect(get_list_response.records.first.fx_payout_currency).to eq('fx_payout_currency-input')
|
315
|
+
|
308
316
|
expect(get_list_response.records.first.id).to eq('id-input')
|
309
317
|
|
310
318
|
expect(get_list_response.records.first.logo_url).to eq('logo_url-input')
|
@@ -365,6 +373,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
365
373
|
'city' => 'city-input',
|
366
374
|
'country_code' => 'country_code-input',
|
367
375
|
'created_at' => 'created_at-input',
|
376
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
368
377
|
'id' => 'id-input',
|
369
378
|
'links' => 'links-input',
|
370
379
|
'logo_url' => 'logo_url-input',
|
@@ -395,6 +404,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
395
404
|
'city' => 'city-input',
|
396
405
|
'country_code' => 'country_code-input',
|
397
406
|
'created_at' => 'created_at-input',
|
407
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
398
408
|
'id' => 'id-input',
|
399
409
|
'links' => 'links-input',
|
400
410
|
'logo_url' => 'logo_url-input',
|
@@ -434,6 +444,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
434
444
|
'city' => 'city-input',
|
435
445
|
'country_code' => 'country_code-input',
|
436
446
|
'created_at' => 'created_at-input',
|
447
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
437
448
|
'id' => 'id-input',
|
438
449
|
'links' => 'links-input',
|
439
450
|
'logo_url' => 'logo_url-input',
|
@@ -464,6 +475,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
464
475
|
'city' => 'city-input',
|
465
476
|
'country_code' => 'country_code-input',
|
466
477
|
'created_at' => 'created_at-input',
|
478
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
467
479
|
'id' => 'id-input',
|
468
480
|
'links' => 'links-input',
|
469
481
|
'logo_url' => 'logo_url-input',
|
@@ -499,6 +511,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
499
511
|
'city' => 'city-input',
|
500
512
|
'country_code' => 'country_code-input',
|
501
513
|
'created_at' => 'created_at-input',
|
514
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
502
515
|
'id' => 'id-input',
|
503
516
|
'links' => 'links-input',
|
504
517
|
'logo_url' => 'logo_url-input',
|
@@ -532,6 +545,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
532
545
|
'city' => 'city-input',
|
533
546
|
'country_code' => 'country_code-input',
|
534
547
|
'created_at' => 'created_at-input',
|
548
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
535
549
|
'id' => 'id-input',
|
536
550
|
'links' => 'links-input',
|
537
551
|
'logo_url' => 'logo_url-input',
|
@@ -578,6 +592,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
578
592
|
'city' => 'city-input',
|
579
593
|
'country_code' => 'country_code-input',
|
580
594
|
'created_at' => 'created_at-input',
|
595
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
581
596
|
'id' => 'id-input',
|
582
597
|
'links' => 'links-input',
|
583
598
|
'logo_url' => 'logo_url-input',
|
@@ -618,6 +633,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
618
633
|
'city' => 'city-input',
|
619
634
|
'country_code' => 'country_code-input',
|
620
635
|
'created_at' => 'created_at-input',
|
636
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
621
637
|
'id' => 'id-input',
|
622
638
|
'links' => 'links-input',
|
623
639
|
'logo_url' => 'logo_url-input',
|
@@ -735,6 +751,7 @@ describe GoCardlessPro::Services::CreditorsService do
|
|
735
751
|
'city' => 'city-input',
|
736
752
|
'country_code' => 'country_code-input',
|
737
753
|
'created_at' => 'created_at-input',
|
754
|
+
'fx_payout_currency' => 'fx_payout_currency-input',
|
738
755
|
'id' => 'id-input',
|
739
756
|
'links' => 'links-input',
|
740
757
|
'logo_url' => 'logo_url-input',
|
@@ -21,6 +21,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
21
21
|
'created_at' => 'created_at-input',
|
22
22
|
'currency' => 'currency-input',
|
23
23
|
'description' => 'description-input',
|
24
|
+
'fx' => 'fx-input',
|
24
25
|
'id' => 'id-input',
|
25
26
|
'links' => 'links-input',
|
26
27
|
'metadata' => 'metadata-input',
|
@@ -41,6 +42,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
41
42
|
'created_at' => 'created_at-input',
|
42
43
|
'currency' => 'currency-input',
|
43
44
|
'description' => 'description-input',
|
45
|
+
'fx' => 'fx-input',
|
44
46
|
'id' => 'id-input',
|
45
47
|
'links' => 'links-input',
|
46
48
|
'metadata' => 'metadata-input',
|
@@ -61,6 +63,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
61
63
|
'created_at' => 'created_at-input',
|
62
64
|
'currency' => 'currency-input',
|
63
65
|
'description' => 'description-input',
|
66
|
+
'fx' => 'fx-input',
|
64
67
|
'id' => 'id-input',
|
65
68
|
'links' => 'links-input',
|
66
69
|
'metadata' => 'metadata-input',
|
@@ -137,6 +140,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
137
140
|
'created_at' => 'created_at-input',
|
138
141
|
'currency' => 'currency-input',
|
139
142
|
'description' => 'description-input',
|
143
|
+
'fx' => 'fx-input',
|
140
144
|
'id' => 'id-input',
|
141
145
|
'links' => 'links-input',
|
142
146
|
'metadata' => 'metadata-input',
|
@@ -180,6 +184,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
180
184
|
'created_at' => 'created_at-input',
|
181
185
|
'currency' => 'currency-input',
|
182
186
|
'description' => 'description-input',
|
187
|
+
'fx' => 'fx-input',
|
183
188
|
'id' => 'id-input',
|
184
189
|
'links' => 'links-input',
|
185
190
|
'metadata' => 'metadata-input',
|
@@ -242,6 +247,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
242
247
|
'created_at' => 'created_at-input',
|
243
248
|
'currency' => 'currency-input',
|
244
249
|
'description' => 'description-input',
|
250
|
+
'fx' => 'fx-input',
|
245
251
|
'id' => 'id-input',
|
246
252
|
'links' => 'links-input',
|
247
253
|
'metadata' => 'metadata-input',
|
@@ -279,6 +285,8 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
279
285
|
|
280
286
|
expect(get_list_response.records.first.description).to eq('description-input')
|
281
287
|
|
288
|
+
expect(get_list_response.records.first.fx).to eq('fx-input')
|
289
|
+
|
282
290
|
expect(get_list_response.records.first.id).to eq('id-input')
|
283
291
|
|
284
292
|
expect(get_list_response.records.first.metadata).to eq('metadata-input')
|
@@ -332,6 +340,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
332
340
|
'created_at' => 'created_at-input',
|
333
341
|
'currency' => 'currency-input',
|
334
342
|
'description' => 'description-input',
|
343
|
+
'fx' => 'fx-input',
|
335
344
|
'id' => 'id-input',
|
336
345
|
'links' => 'links-input',
|
337
346
|
'metadata' => 'metadata-input',
|
@@ -358,6 +367,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
358
367
|
'created_at' => 'created_at-input',
|
359
368
|
'currency' => 'currency-input',
|
360
369
|
'description' => 'description-input',
|
370
|
+
'fx' => 'fx-input',
|
361
371
|
'id' => 'id-input',
|
362
372
|
'links' => 'links-input',
|
363
373
|
'metadata' => 'metadata-input',
|
@@ -393,6 +403,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
393
403
|
'created_at' => 'created_at-input',
|
394
404
|
'currency' => 'currency-input',
|
395
405
|
'description' => 'description-input',
|
406
|
+
'fx' => 'fx-input',
|
396
407
|
'id' => 'id-input',
|
397
408
|
'links' => 'links-input',
|
398
409
|
'metadata' => 'metadata-input',
|
@@ -419,6 +430,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
419
430
|
'created_at' => 'created_at-input',
|
420
431
|
'currency' => 'currency-input',
|
421
432
|
'description' => 'description-input',
|
433
|
+
'fx' => 'fx-input',
|
422
434
|
'id' => 'id-input',
|
423
435
|
'links' => 'links-input',
|
424
436
|
'metadata' => 'metadata-input',
|
@@ -450,6 +462,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
450
462
|
'created_at' => 'created_at-input',
|
451
463
|
'currency' => 'currency-input',
|
452
464
|
'description' => 'description-input',
|
465
|
+
'fx' => 'fx-input',
|
453
466
|
'id' => 'id-input',
|
454
467
|
'links' => 'links-input',
|
455
468
|
'metadata' => 'metadata-input',
|
@@ -479,6 +492,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
479
492
|
'created_at' => 'created_at-input',
|
480
493
|
'currency' => 'currency-input',
|
481
494
|
'description' => 'description-input',
|
495
|
+
'fx' => 'fx-input',
|
482
496
|
'id' => 'id-input',
|
483
497
|
'links' => 'links-input',
|
484
498
|
'metadata' => 'metadata-input',
|
@@ -521,6 +535,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
521
535
|
'created_at' => 'created_at-input',
|
522
536
|
'currency' => 'currency-input',
|
523
537
|
'description' => 'description-input',
|
538
|
+
'fx' => 'fx-input',
|
524
539
|
'id' => 'id-input',
|
525
540
|
'links' => 'links-input',
|
526
541
|
'metadata' => 'metadata-input',
|
@@ -557,6 +572,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
557
572
|
'created_at' => 'created_at-input',
|
558
573
|
'currency' => 'currency-input',
|
559
574
|
'description' => 'description-input',
|
575
|
+
'fx' => 'fx-input',
|
560
576
|
'id' => 'id-input',
|
561
577
|
'links' => 'links-input',
|
562
578
|
'metadata' => 'metadata-input',
|
@@ -670,6 +686,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
670
686
|
'created_at' => 'created_at-input',
|
671
687
|
'currency' => 'currency-input',
|
672
688
|
'description' => 'description-input',
|
689
|
+
'fx' => 'fx-input',
|
673
690
|
'id' => 'id-input',
|
674
691
|
'links' => 'links-input',
|
675
692
|
'metadata' => 'metadata-input',
|
@@ -731,6 +748,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
731
748
|
'created_at' => 'created_at-input',
|
732
749
|
'currency' => 'currency-input',
|
733
750
|
'description' => 'description-input',
|
751
|
+
'fx' => 'fx-input',
|
734
752
|
'id' => 'id-input',
|
735
753
|
'links' => 'links-input',
|
736
754
|
'metadata' => 'metadata-input',
|
@@ -783,6 +801,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
783
801
|
'created_at' => 'created_at-input',
|
784
802
|
'currency' => 'currency-input',
|
785
803
|
'description' => 'description-input',
|
804
|
+
'fx' => 'fx-input',
|
786
805
|
'id' => 'id-input',
|
787
806
|
'links' => 'links-input',
|
788
807
|
'metadata' => 'metadata-input',
|
@@ -814,6 +833,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
814
833
|
'created_at' => 'created_at-input',
|
815
834
|
'currency' => 'currency-input',
|
816
835
|
'description' => 'description-input',
|
836
|
+
'fx' => 'fx-input',
|
817
837
|
'id' => 'id-input',
|
818
838
|
'links' => 'links-input',
|
819
839
|
'metadata' => 'metadata-input',
|
@@ -866,6 +886,7 @@ describe GoCardlessPro::Services::PaymentsService do
|
|
866
886
|
'created_at' => 'created_at-input',
|
867
887
|
'currency' => 'currency-input',
|
868
888
|
'description' => 'description-input',
|
889
|
+
'fx' => 'fx-input',
|
869
890
|
'id' => 'id-input',
|
870
891
|
'links' => 'links-input',
|
871
892
|
'metadata' => 'metadata-input',
|
@@ -22,6 +22,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
22
22
|
'created_at' => 'created_at-input',
|
23
23
|
'currency' => 'currency-input',
|
24
24
|
'deducted_fees' => 'deducted_fees-input',
|
25
|
+
'fx' => 'fx-input',
|
25
26
|
'id' => 'id-input',
|
26
27
|
'links' => 'links-input',
|
27
28
|
'payout_type' => 'payout_type-input',
|
@@ -57,6 +58,8 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
57
58
|
|
58
59
|
expect(get_list_response.records.first.deducted_fees).to eq('deducted_fees-input')
|
59
60
|
|
61
|
+
expect(get_list_response.records.first.fx).to eq('fx-input')
|
62
|
+
|
60
63
|
expect(get_list_response.records.first.id).to eq('id-input')
|
61
64
|
|
62
65
|
expect(get_list_response.records.first.payout_type).to eq('payout_type-input')
|
@@ -109,6 +112,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
109
112
|
'created_at' => 'created_at-input',
|
110
113
|
'currency' => 'currency-input',
|
111
114
|
'deducted_fees' => 'deducted_fees-input',
|
115
|
+
'fx' => 'fx-input',
|
112
116
|
'id' => 'id-input',
|
113
117
|
'links' => 'links-input',
|
114
118
|
'payout_type' => 'payout_type-input',
|
@@ -134,6 +138,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
134
138
|
'created_at' => 'created_at-input',
|
135
139
|
'currency' => 'currency-input',
|
136
140
|
'deducted_fees' => 'deducted_fees-input',
|
141
|
+
'fx' => 'fx-input',
|
137
142
|
'id' => 'id-input',
|
138
143
|
'links' => 'links-input',
|
139
144
|
'payout_type' => 'payout_type-input',
|
@@ -168,6 +173,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
168
173
|
'created_at' => 'created_at-input',
|
169
174
|
'currency' => 'currency-input',
|
170
175
|
'deducted_fees' => 'deducted_fees-input',
|
176
|
+
'fx' => 'fx-input',
|
171
177
|
'id' => 'id-input',
|
172
178
|
'links' => 'links-input',
|
173
179
|
'payout_type' => 'payout_type-input',
|
@@ -193,6 +199,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
193
199
|
'created_at' => 'created_at-input',
|
194
200
|
'currency' => 'currency-input',
|
195
201
|
'deducted_fees' => 'deducted_fees-input',
|
202
|
+
'fx' => 'fx-input',
|
196
203
|
'id' => 'id-input',
|
197
204
|
'links' => 'links-input',
|
198
205
|
'payout_type' => 'payout_type-input',
|
@@ -223,6 +230,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
223
230
|
'created_at' => 'created_at-input',
|
224
231
|
'currency' => 'currency-input',
|
225
232
|
'deducted_fees' => 'deducted_fees-input',
|
233
|
+
'fx' => 'fx-input',
|
226
234
|
'id' => 'id-input',
|
227
235
|
'links' => 'links-input',
|
228
236
|
'payout_type' => 'payout_type-input',
|
@@ -251,6 +259,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
251
259
|
'created_at' => 'created_at-input',
|
252
260
|
'currency' => 'currency-input',
|
253
261
|
'deducted_fees' => 'deducted_fees-input',
|
262
|
+
'fx' => 'fx-input',
|
254
263
|
'id' => 'id-input',
|
255
264
|
'links' => 'links-input',
|
256
265
|
'payout_type' => 'payout_type-input',
|
@@ -292,6 +301,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
292
301
|
'created_at' => 'created_at-input',
|
293
302
|
'currency' => 'currency-input',
|
294
303
|
'deducted_fees' => 'deducted_fees-input',
|
304
|
+
'fx' => 'fx-input',
|
295
305
|
'id' => 'id-input',
|
296
306
|
'links' => 'links-input',
|
297
307
|
'payout_type' => 'payout_type-input',
|
@@ -327,6 +337,7 @@ describe GoCardlessPro::Services::PayoutsService do
|
|
327
337
|
'created_at' => 'created_at-input',
|
328
338
|
'currency' => 'currency-input',
|
329
339
|
'deducted_fees' => 'deducted_fees-input',
|
340
|
+
'fx' => 'fx-input',
|
330
341
|
'id' => 'id-input',
|
331
342
|
'links' => 'links-input',
|
332
343
|
'payout_type' => 'payout_type-input',
|
@@ -18,6 +18,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
18
18
|
'amount' => 'amount-input',
|
19
19
|
'created_at' => 'created_at-input',
|
20
20
|
'currency' => 'currency-input',
|
21
|
+
'fx' => 'fx-input',
|
21
22
|
'id' => 'id-input',
|
22
23
|
'links' => 'links-input',
|
23
24
|
'metadata' => 'metadata-input',
|
@@ -34,6 +35,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
34
35
|
'amount' => 'amount-input',
|
35
36
|
'created_at' => 'created_at-input',
|
36
37
|
'currency' => 'currency-input',
|
38
|
+
'fx' => 'fx-input',
|
37
39
|
'id' => 'id-input',
|
38
40
|
'links' => 'links-input',
|
39
41
|
'metadata' => 'metadata-input',
|
@@ -50,6 +52,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
50
52
|
'amount' => 'amount-input',
|
51
53
|
'created_at' => 'created_at-input',
|
52
54
|
'currency' => 'currency-input',
|
55
|
+
'fx' => 'fx-input',
|
53
56
|
'id' => 'id-input',
|
54
57
|
'links' => 'links-input',
|
55
58
|
'metadata' => 'metadata-input',
|
@@ -122,6 +125,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
122
125
|
'amount' => 'amount-input',
|
123
126
|
'created_at' => 'created_at-input',
|
124
127
|
'currency' => 'currency-input',
|
128
|
+
'fx' => 'fx-input',
|
125
129
|
'id' => 'id-input',
|
126
130
|
'links' => 'links-input',
|
127
131
|
'metadata' => 'metadata-input',
|
@@ -161,6 +165,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
161
165
|
'amount' => 'amount-input',
|
162
166
|
'created_at' => 'created_at-input',
|
163
167
|
'currency' => 'currency-input',
|
168
|
+
'fx' => 'fx-input',
|
164
169
|
'id' => 'id-input',
|
165
170
|
'links' => 'links-input',
|
166
171
|
'metadata' => 'metadata-input',
|
@@ -219,6 +224,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
219
224
|
'amount' => 'amount-input',
|
220
225
|
'created_at' => 'created_at-input',
|
221
226
|
'currency' => 'currency-input',
|
227
|
+
'fx' => 'fx-input',
|
222
228
|
'id' => 'id-input',
|
223
229
|
'links' => 'links-input',
|
224
230
|
'metadata' => 'metadata-input',
|
@@ -249,6 +255,8 @@ describe GoCardlessPro::Services::RefundsService do
|
|
249
255
|
|
250
256
|
expect(get_list_response.records.first.currency).to eq('currency-input')
|
251
257
|
|
258
|
+
expect(get_list_response.records.first.fx).to eq('fx-input')
|
259
|
+
|
252
260
|
expect(get_list_response.records.first.id).to eq('id-input')
|
253
261
|
|
254
262
|
expect(get_list_response.records.first.metadata).to eq('metadata-input')
|
@@ -297,6 +305,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
297
305
|
'amount' => 'amount-input',
|
298
306
|
'created_at' => 'created_at-input',
|
299
307
|
'currency' => 'currency-input',
|
308
|
+
'fx' => 'fx-input',
|
300
309
|
'id' => 'id-input',
|
301
310
|
'links' => 'links-input',
|
302
311
|
'metadata' => 'metadata-input',
|
@@ -319,6 +328,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
319
328
|
'amount' => 'amount-input',
|
320
329
|
'created_at' => 'created_at-input',
|
321
330
|
'currency' => 'currency-input',
|
331
|
+
'fx' => 'fx-input',
|
322
332
|
'id' => 'id-input',
|
323
333
|
'links' => 'links-input',
|
324
334
|
'metadata' => 'metadata-input',
|
@@ -350,6 +360,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
350
360
|
'amount' => 'amount-input',
|
351
361
|
'created_at' => 'created_at-input',
|
352
362
|
'currency' => 'currency-input',
|
363
|
+
'fx' => 'fx-input',
|
353
364
|
'id' => 'id-input',
|
354
365
|
'links' => 'links-input',
|
355
366
|
'metadata' => 'metadata-input',
|
@@ -372,6 +383,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
372
383
|
'amount' => 'amount-input',
|
373
384
|
'created_at' => 'created_at-input',
|
374
385
|
'currency' => 'currency-input',
|
386
|
+
'fx' => 'fx-input',
|
375
387
|
'id' => 'id-input',
|
376
388
|
'links' => 'links-input',
|
377
389
|
'metadata' => 'metadata-input',
|
@@ -399,6 +411,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
399
411
|
'amount' => 'amount-input',
|
400
412
|
'created_at' => 'created_at-input',
|
401
413
|
'currency' => 'currency-input',
|
414
|
+
'fx' => 'fx-input',
|
402
415
|
'id' => 'id-input',
|
403
416
|
'links' => 'links-input',
|
404
417
|
'metadata' => 'metadata-input',
|
@@ -424,6 +437,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
424
437
|
'amount' => 'amount-input',
|
425
438
|
'created_at' => 'created_at-input',
|
426
439
|
'currency' => 'currency-input',
|
440
|
+
'fx' => 'fx-input',
|
427
441
|
'id' => 'id-input',
|
428
442
|
'links' => 'links-input',
|
429
443
|
'metadata' => 'metadata-input',
|
@@ -462,6 +476,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
462
476
|
'amount' => 'amount-input',
|
463
477
|
'created_at' => 'created_at-input',
|
464
478
|
'currency' => 'currency-input',
|
479
|
+
'fx' => 'fx-input',
|
465
480
|
'id' => 'id-input',
|
466
481
|
'links' => 'links-input',
|
467
482
|
'metadata' => 'metadata-input',
|
@@ -494,6 +509,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
494
509
|
'amount' => 'amount-input',
|
495
510
|
'created_at' => 'created_at-input',
|
496
511
|
'currency' => 'currency-input',
|
512
|
+
'fx' => 'fx-input',
|
497
513
|
'id' => 'id-input',
|
498
514
|
'links' => 'links-input',
|
499
515
|
'metadata' => 'metadata-input',
|
@@ -603,6 +619,7 @@ describe GoCardlessPro::Services::RefundsService do
|
|
603
619
|
'amount' => 'amount-input',
|
604
620
|
'created_at' => 'created_at-input',
|
605
621
|
'currency' => 'currency-input',
|
622
|
+
'fx' => 'fx-input',
|
606
623
|
'id' => 'id-input',
|
607
624
|
'links' => 'links-input',
|
608
625
|
'metadata' => 'metadata-input',
|
data/spec/spec_helper.rb
CHANGED
@@ -29,6 +29,7 @@ RSpec.configure do |config|
|
|
29
29
|
# ...rather than:
|
30
30
|
# # => "be bigger than 2"
|
31
31
|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
32
|
+
expectations.on_potential_false_positives = :nothing
|
32
33
|
end
|
33
34
|
|
34
35
|
# rspec-mocks config goes here. You can use an alternate test double
|
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.
|
4
|
+
version: 2.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -114,6 +114,20 @@ dependencies:
|
|
114
114
|
- - "~>"
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: 1.13.0
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: rake
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "<"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '13'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "<"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '13'
|
117
131
|
description:
|
118
132
|
email:
|
119
133
|
- engineering@gocardless.com
|
@@ -122,6 +136,7 @@ extensions: []
|
|
122
136
|
extra_rdoc_files: []
|
123
137
|
files:
|
124
138
|
- ".circleci/config.yml"
|
139
|
+
- ".gitignore"
|
125
140
|
- ".rspec"
|
126
141
|
- ".rubocop.yml"
|
127
142
|
- ".travis.yml"
|
@@ -243,8 +258,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
243
258
|
- !ruby/object:Gem::Version
|
244
259
|
version: '0'
|
245
260
|
requirements: []
|
246
|
-
|
247
|
-
rubygems_version: 2.7.6
|
261
|
+
rubygems_version: 3.0.3
|
248
262
|
signing_key:
|
249
263
|
specification_version: 4
|
250
264
|
summary: A gem for calling the GoCardless Pro API
|