gocardless_pro 2.8.0 → 2.9.0

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: f0dcc61e6ad974bee34243805fb1a45bec38c51db4ebf9bbdc6ee240ca96e782
4
- data.tar.gz: 9ef2aabea6263516ba9cee0e1bb1efa682f59f9ede69c880a20d9d73a2b8c820
3
+ metadata.gz: a89de0204c5098ce2b5049a622271defb672b0abf80ad4fc0d1f6ef3538f88b8
4
+ data.tar.gz: ece535f8f59810a51656f5e01b2667db60488f73cbd953a66a86e8bfa48da1e5
5
5
  SHA512:
6
- metadata.gz: 116e36fef2b4f6bec63d06f1a792fb240537bd2c1ed23b6684409367c24cb6148f21d7f52a14a7710642ba0e01cc5011c4f72d9cbc1c83918fc128759997cf96
7
- data.tar.gz: cc8ad6e8119952e90cecc405a82a38d5631e06f42c2ea48cf03127526e644927c5f316be27968f9b3b466622c57b87a9c2842cd6fca9da7ecff06dae4d453bed
6
+ metadata.gz: 5a793807b561f52c2abdf3989d335ffa14d6dbdb2509c5f11d27fefb29bf82b9cf73c4937640b76d2a35ac869704798401e7636fe7a9a590e4f1d110171da1d9
7
+ data.tar.gz: e89fb66ba9c3b79e7f1c10e5b1812bee44a82bcd33526b018f963570c364cf8168bbc93574dd5ca4e5988b80d6aaa5665450edb62a76fbdb5f73ca244f065e93
@@ -133,7 +133,7 @@ module GoCardlessPro
133
133
  'User-Agent' => user_agent.to_s,
134
134
  'Content-Type' => 'application/json',
135
135
  'GoCardless-Client-Library' => 'gocardless-pro-ruby',
136
- 'GoCardless-Client-Version' => '2.8.0',
136
+ 'GoCardless-Client-Version' => '2.9.0',
137
137
  },
138
138
  }
139
139
  end
@@ -30,14 +30,6 @@ module GoCardlessPro
30
30
  # and debit
31
31
  # items that make up that payout's amount.
32
32
  #
33
- # <p class="beta-notice"><strong>Beta</strong>: The Payout Items API is in
34
- # beta, and is
35
- # subject to <a href="#overview-backwards-compatibility">backwards
36
- # incompatible changes</a>
37
- # with 30 days' notice. Before making any breaking changes, we will contact
38
- # all integrators
39
- # who have used the API.</p>
40
- #
41
33
  class PayoutItem
42
34
  attr_reader :amount
43
35
  attr_reader :type
@@ -68,6 +68,7 @@ module GoCardlessPro
68
68
  #
69
69
  class Subscription
70
70
  attr_reader :amount
71
+ attr_reader :app_fee
71
72
  attr_reader :created_at
72
73
  attr_reader :currency
73
74
  attr_reader :day_of_month
@@ -89,6 +90,7 @@ module GoCardlessPro
89
90
  @object = object
90
91
 
91
92
  @amount = object['amount']
93
+ @app_fee = object['app_fee']
92
94
  @created_at = object['created_at']
93
95
  @currency = object['currency']
94
96
  @day_of_month = object['day_of_month']
@@ -17,11 +17,34 @@ module GoCardlessPro
17
17
  # provided manually, or inferred from the ID of an existing
18
18
  # [mandate](#core-endpoints-mandates).
19
19
  #
20
- # To generate a PDF mandate in a foreign language, set your `Accept-Language`
21
- # header to the relevant [ISO
22
- # 639-1](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes#Partial_ISO_639_table)
23
- # language code. Supported languages are Dutch, English, French, German,
24
- # Italian, Portuguese, Spanish and Swedish.
20
+ # By default, we'll generate PDF mandates in English.
21
+ #
22
+ # To generate a PDF mandate in another language, set the `Accept-Language`
23
+ # header when creating the PDF mandate to the relevant [ISO
24
+ # 639-1](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language code
25
+ # supported for the scheme.
26
+ #
27
+ # | Scheme | Supported languages
28
+ #
29
+ # |
30
+ # | :--------------- |
31
+ # :-------------------------------------------------------------------------------------------------------------------------------------------
32
+ # |
33
+ # | Autogiro | English (`en`), Swedish (`sv`)
34
+ #
35
+ # |
36
+ # | Bacs | English (`en`)
37
+ #
38
+ # |
39
+ # | Becs | English (`en`)
40
+ #
41
+ # |
42
+ # | Betalingsservice | Danish (`da`), English (`en`)
43
+ #
44
+ # |
45
+ # | SEPA Core | Danish (`da`), Dutch (`nl`), English (`en`), French
46
+ # (`fr`), German (`de`), Italian (`it`), Portuguese (`pt`), Spanish (`es`),
47
+ # Swedish (`sv`) |
25
48
  # Example URL: /mandate_pdfs
26
49
  # @param options [Hash] parameters as a hash, under a params key.
27
50
  def create(options = {})
@@ -4,5 +4,5 @@ end
4
4
 
5
5
  module GoCardlessPro
6
6
  # Current version of the GC gem
7
- VERSION = '2.8.0'.freeze
7
+ VERSION = '2.9.0'.freeze
8
8
  end
@@ -16,6 +16,7 @@ describe GoCardlessPro::Resources::Subscription do
16
16
  {
17
17
 
18
18
  'amount' => 'amount-input',
19
+ 'app_fee' => 'app_fee-input',
19
20
  'created_at' => 'created_at-input',
20
21
  'currency' => 'currency-input',
21
22
  'day_of_month' => 'day_of_month-input',
@@ -41,6 +42,7 @@ describe GoCardlessPro::Resources::Subscription do
41
42
  'subscriptions' => {
42
43
 
43
44
  'amount' => 'amount-input',
45
+ 'app_fee' => 'app_fee-input',
44
46
  'created_at' => 'created_at-input',
45
47
  'currency' => 'currency-input',
46
48
  'day_of_month' => 'day_of_month-input',
@@ -66,6 +68,7 @@ describe GoCardlessPro::Resources::Subscription do
66
68
  {
67
69
 
68
70
  'amount' => 'amount-input',
71
+ 'app_fee' => 'app_fee-input',
69
72
  'created_at' => 'created_at-input',
70
73
  'currency' => 'currency-input',
71
74
  'day_of_month' => 'day_of_month-input',
@@ -124,6 +127,7 @@ describe GoCardlessPro::Resources::Subscription do
124
127
  {
125
128
 
126
129
  'amount' => 'amount-input',
130
+ 'app_fee' => 'app_fee-input',
127
131
  'created_at' => 'created_at-input',
128
132
  'currency' => 'currency-input',
129
133
  'day_of_month' => 'day_of_month-input',
@@ -172,6 +176,7 @@ describe GoCardlessPro::Resources::Subscription do
172
176
  'subscriptions' => {
173
177
 
174
178
  'amount' => 'amount-input',
179
+ 'app_fee' => 'app_fee-input',
175
180
  'created_at' => 'created_at-input',
176
181
  'currency' => 'currency-input',
177
182
  'day_of_month' => 'day_of_month-input',
@@ -211,6 +216,7 @@ describe GoCardlessPro::Resources::Subscription do
211
216
  'subscriptions' => [{
212
217
 
213
218
  'amount' => 'amount-input',
219
+ 'app_fee' => 'app_fee-input',
214
220
  'created_at' => 'created_at-input',
215
221
  'currency' => 'currency-input',
216
222
  'day_of_month' => 'day_of_month-input',
@@ -243,6 +249,8 @@ describe GoCardlessPro::Resources::Subscription do
243
249
 
244
250
  expect(get_list_response.records.first.amount).to eq('amount-input')
245
251
 
252
+ expect(get_list_response.records.first.app_fee).to eq('app_fee-input')
253
+
246
254
  expect(get_list_response.records.first.created_at).to eq('created_at-input')
247
255
 
248
256
  expect(get_list_response.records.first.currency).to eq('currency-input')
@@ -288,6 +296,7 @@ describe GoCardlessPro::Resources::Subscription do
288
296
  'subscriptions' => [{
289
297
 
290
298
  'amount' => 'amount-input',
299
+ 'app_fee' => 'app_fee-input',
291
300
  'created_at' => 'created_at-input',
292
301
  'currency' => 'currency-input',
293
302
  'day_of_month' => 'day_of_month-input',
@@ -319,6 +328,7 @@ describe GoCardlessPro::Resources::Subscription do
319
328
  'subscriptions' => [{
320
329
 
321
330
  'amount' => 'amount-input',
331
+ 'app_fee' => 'app_fee-input',
322
332
  'created_at' => 'created_at-input',
323
333
  'currency' => 'currency-input',
324
334
  'day_of_month' => 'day_of_month-input',
@@ -366,6 +376,7 @@ describe GoCardlessPro::Resources::Subscription do
366
376
  'subscriptions' => {
367
377
 
368
378
  'amount' => 'amount-input',
379
+ 'app_fee' => 'app_fee-input',
369
380
  'created_at' => 'created_at-input',
370
381
  'currency' => 'currency-input',
371
382
  'day_of_month' => 'day_of_month-input',
@@ -407,6 +418,7 @@ describe GoCardlessPro::Resources::Subscription do
407
418
  'subscriptions' => {
408
419
 
409
420
  'amount' => 'amount-input',
421
+ 'app_fee' => 'app_fee-input',
410
422
  'created_at' => 'created_at-input',
411
423
  'currency' => 'currency-input',
412
424
  'day_of_month' => 'day_of_month-input',
@@ -470,6 +482,7 @@ describe GoCardlessPro::Resources::Subscription do
470
482
  'subscriptions' => {
471
483
 
472
484
  'amount' => 'amount-input',
485
+ 'app_fee' => 'app_fee-input',
473
486
  'created_at' => 'created_at-input',
474
487
  'currency' => 'currency-input',
475
488
  'day_of_month' => 'day_of_month-input',
@@ -511,6 +524,7 @@ describe GoCardlessPro::Resources::Subscription do
511
524
  'subscriptions' => {
512
525
 
513
526
  'amount' => 'amount-input',
527
+ 'app_fee' => 'app_fee-input',
514
528
  'created_at' => 'created_at-input',
515
529
  'currency' => 'currency-input',
516
530
  'day_of_month' => 'day_of_month-input',
@@ -557,6 +571,7 @@ describe GoCardlessPro::Resources::Subscription do
557
571
  'subscriptions' => {
558
572
 
559
573
  'amount' => 'amount-input',
574
+ 'app_fee' => 'app_fee-input',
560
575
  'created_at' => 'created_at-input',
561
576
  'currency' => 'currency-input',
562
577
  'day_of_month' => 'day_of_month-input',
@@ -16,6 +16,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
16
16
  {
17
17
 
18
18
  'amount' => 'amount-input',
19
+ 'app_fee' => 'app_fee-input',
19
20
  'created_at' => 'created_at-input',
20
21
  'currency' => 'currency-input',
21
22
  'day_of_month' => 'day_of_month-input',
@@ -41,6 +42,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
41
42
  'subscriptions' => {
42
43
 
43
44
  'amount' => 'amount-input',
45
+ 'app_fee' => 'app_fee-input',
44
46
  'created_at' => 'created_at-input',
45
47
  'currency' => 'currency-input',
46
48
  'day_of_month' => 'day_of_month-input',
@@ -66,6 +68,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
66
68
  {
67
69
 
68
70
  'amount' => 'amount-input',
71
+ 'app_fee' => 'app_fee-input',
69
72
  'created_at' => 'created_at-input',
70
73
  'currency' => 'currency-input',
71
74
  'day_of_month' => 'day_of_month-input',
@@ -147,6 +150,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
147
150
  {
148
151
 
149
152
  'amount' => 'amount-input',
153
+ 'app_fee' => 'app_fee-input',
150
154
  'created_at' => 'created_at-input',
151
155
  'currency' => 'currency-input',
152
156
  'day_of_month' => 'day_of_month-input',
@@ -195,6 +199,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
195
199
  'subscriptions' => {
196
200
 
197
201
  'amount' => 'amount-input',
202
+ 'app_fee' => 'app_fee-input',
198
203
  'created_at' => 'created_at-input',
199
204
  'currency' => 'currency-input',
200
205
  'day_of_month' => 'day_of_month-input',
@@ -233,6 +238,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
233
238
  'subscriptions' => [{
234
239
 
235
240
  'amount' => 'amount-input',
241
+ 'app_fee' => 'app_fee-input',
236
242
  'created_at' => 'created_at-input',
237
243
  'currency' => 'currency-input',
238
244
  'day_of_month' => 'day_of_month-input',
@@ -270,6 +276,8 @@ describe GoCardlessPro::Services::SubscriptionsService do
270
276
 
271
277
  expect(get_list_response.records.first.amount).to eq('amount-input')
272
278
 
279
+ expect(get_list_response.records.first.app_fee).to eq('app_fee-input')
280
+
273
281
  expect(get_list_response.records.first.created_at).to eq('created_at-input')
274
282
 
275
283
  expect(get_list_response.records.first.currency).to eq('currency-input')
@@ -338,6 +346,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
338
346
  'subscriptions' => [{
339
347
 
340
348
  'amount' => 'amount-input',
349
+ 'app_fee' => 'app_fee-input',
341
350
  'created_at' => 'created_at-input',
342
351
  'currency' => 'currency-input',
343
352
  'day_of_month' => 'day_of_month-input',
@@ -369,6 +378,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
369
378
  'subscriptions' => [{
370
379
 
371
380
  'amount' => 'amount-input',
381
+ 'app_fee' => 'app_fee-input',
372
382
  'created_at' => 'created_at-input',
373
383
  'currency' => 'currency-input',
374
384
  'day_of_month' => 'day_of_month-input',
@@ -409,6 +419,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
409
419
  'subscriptions' => [{
410
420
 
411
421
  'amount' => 'amount-input',
422
+ 'app_fee' => 'app_fee-input',
412
423
  'created_at' => 'created_at-input',
413
424
  'currency' => 'currency-input',
414
425
  'day_of_month' => 'day_of_month-input',
@@ -440,6 +451,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
440
451
  'subscriptions' => [{
441
452
 
442
453
  'amount' => 'amount-input',
454
+ 'app_fee' => 'app_fee-input',
443
455
  'created_at' => 'created_at-input',
444
456
  'currency' => 'currency-input',
445
457
  'day_of_month' => 'day_of_month-input',
@@ -476,6 +488,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
476
488
  'subscriptions' => [{
477
489
 
478
490
  'amount' => 'amount-input',
491
+ 'app_fee' => 'app_fee-input',
479
492
  'created_at' => 'created_at-input',
480
493
  'currency' => 'currency-input',
481
494
  'day_of_month' => 'day_of_month-input',
@@ -510,6 +523,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
510
523
  'subscriptions' => [{
511
524
 
512
525
  'amount' => 'amount-input',
526
+ 'app_fee' => 'app_fee-input',
513
527
  'created_at' => 'created_at-input',
514
528
  'currency' => 'currency-input',
515
529
  'day_of_month' => 'day_of_month-input',
@@ -557,6 +571,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
557
571
  'subscriptions' => {
558
572
 
559
573
  'amount' => 'amount-input',
574
+ 'app_fee' => 'app_fee-input',
560
575
  'created_at' => 'created_at-input',
561
576
  'currency' => 'currency-input',
562
577
  'day_of_month' => 'day_of_month-input',
@@ -598,6 +613,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
598
613
  'subscriptions' => {
599
614
 
600
615
  'amount' => 'amount-input',
616
+ 'app_fee' => 'app_fee-input',
601
617
  'created_at' => 'created_at-input',
602
618
  'currency' => 'currency-input',
603
619
  'day_of_month' => 'day_of_month-input',
@@ -688,6 +704,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
688
704
  'subscriptions' => {
689
705
 
690
706
  'amount' => 'amount-input',
707
+ 'app_fee' => 'app_fee-input',
691
708
  'created_at' => 'created_at-input',
692
709
  'currency' => 'currency-input',
693
710
  'day_of_month' => 'day_of_month-input',
@@ -754,6 +771,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
754
771
  'subscriptions' => {
755
772
 
756
773
  'amount' => 'amount-input',
774
+ 'app_fee' => 'app_fee-input',
757
775
  'created_at' => 'created_at-input',
758
776
  'currency' => 'currency-input',
759
777
  'day_of_month' => 'day_of_month-input',
@@ -811,6 +829,7 @@ describe GoCardlessPro::Services::SubscriptionsService do
811
829
  'subscriptions' => {
812
830
 
813
831
  'amount' => 'amount-input',
832
+ 'app_fee' => 'app_fee-input',
814
833
  'created_at' => 'created_at-input',
815
834
  'currency' => 'currency-input',
816
835
  'day_of_month' => 'day_of_month-input',
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.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GoCardless
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-26 00:00:00.000000000 Z
11
+ date: 2018-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -210,7 +210,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  requirements: []
212
212
  rubyforge_project:
213
- rubygems_version: 2.7.6
213
+ rubygems_version: 2.7.4
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: A gem for calling the GoCardless Pro API