gocardless_pro 2.27.0 → 2.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +20 -1
- data/lib/gocardless_pro/api_service.rb +4 -0
- data/lib/gocardless_pro/client.rb +11 -1
- data/lib/gocardless_pro/error/authentication_error.rb +4 -0
- data/lib/gocardless_pro/error/permission_error.rb +4 -0
- data/lib/gocardless_pro/error/rate_limit_error.rb +4 -0
- data/lib/gocardless_pro/middlewares/raise_gocardless_errors.rb +12 -1
- data/lib/gocardless_pro/resources/bank_authorisation.rb +3 -9
- data/lib/gocardless_pro/resources/billing_request.rb +31 -7
- data/lib/gocardless_pro/resources/billing_request_flow.rb +14 -0
- data/lib/gocardless_pro/resources/billing_request_template.rb +68 -0
- data/lib/gocardless_pro/resources/block.rb +76 -0
- data/lib/gocardless_pro/resources/event.rb +20 -0
- data/lib/gocardless_pro/resources/institution.rb +7 -1
- data/lib/gocardless_pro/resources/payer_authorisation.rb +9 -0
- data/lib/gocardless_pro/resources/redirect_flow.rb +6 -0
- data/lib/gocardless_pro/services/bank_authorisations_service.rb +0 -2
- data/lib/gocardless_pro/services/billing_request_flows_service.rb +23 -0
- data/lib/gocardless_pro/services/billing_request_templates_service.rb +131 -0
- data/lib/gocardless_pro/services/billing_requests_service.rb +89 -24
- data/lib/gocardless_pro/services/blocks_service.rb +223 -0
- data/lib/gocardless_pro/services/creditor_bank_accounts_service.rb +1 -5
- data/lib/gocardless_pro/services/creditors_service.rb +1 -3
- data/lib/gocardless_pro/services/currency_exchange_rates_service.rb +1 -1
- data/lib/gocardless_pro/services/customer_bank_accounts_service.rb +1 -5
- data/lib/gocardless_pro/services/customers_service.rb +1 -3
- data/lib/gocardless_pro/services/events_service.rb +1 -1
- data/lib/gocardless_pro/services/instalment_schedules_service.rb +1 -7
- data/lib/gocardless_pro/services/institutions_service.rb +2 -2
- data/lib/gocardless_pro/services/mandate_import_entries_service.rb +1 -1
- data/lib/gocardless_pro/services/mandate_imports_service.rb +0 -6
- data/lib/gocardless_pro/services/mandates_service.rb +1 -7
- data/lib/gocardless_pro/services/payer_authorisations_service.rb +0 -6
- data/lib/gocardless_pro/services/payments_service.rb +1 -7
- data/lib/gocardless_pro/services/payout_items_service.rb +1 -1
- data/lib/gocardless_pro/services/payouts_service.rb +1 -1
- data/lib/gocardless_pro/services/redirect_flows_service.rb +0 -4
- data/lib/gocardless_pro/services/refunds_service.rb +1 -3
- data/lib/gocardless_pro/services/scenario_simulators_service.rb +28 -6
- data/lib/gocardless_pro/services/subscriptions_service.rb +3 -11
- data/lib/gocardless_pro/services/tax_rates_service.rb +1 -1
- data/lib/gocardless_pro/services/webhooks_service.rb +1 -3
- data/lib/gocardless_pro/version.rb +1 -1
- data/lib/gocardless_pro.rb +9 -0
- data/spec/api_service_spec.rb +12 -1
- data/spec/middlewares/raise_gocardless_errors_spec.rb +30 -0
- data/spec/resources/bank_authorisation_spec.rb +7 -7
- data/spec/resources/billing_request_flow_spec.rb +104 -0
- data/spec/resources/billing_request_spec.rb +183 -29
- data/spec/resources/billing_request_template_spec.rb +502 -0
- data/spec/resources/block_spec.rb +577 -0
- data/spec/resources/creditor_bank_account_spec.rb +2 -0
- data/spec/resources/customer_bank_account_spec.rb +2 -0
- data/spec/resources/customer_notification_spec.rb +2 -0
- data/spec/resources/customer_spec.rb +2 -0
- data/spec/resources/instalment_schedule_spec.rb +2 -0
- data/spec/resources/institution_spec.rb +5 -0
- data/spec/resources/mandate_import_spec.rb +4 -0
- data/spec/resources/mandate_spec.rb +4 -0
- data/spec/resources/payer_authorisation_spec.rb +4 -0
- data/spec/resources/payment_spec.rb +4 -0
- data/spec/resources/redirect_flow_spec.rb +11 -0
- data/spec/resources/scenario_simulator_spec.rb +2 -0
- data/spec/resources/subscription_spec.rb +6 -0
- data/spec/resources/webhook_spec.rb +2 -0
- data/spec/services/bank_authorisations_service_spec.rb +7 -20
- data/spec/services/billing_request_flows_service_spec.rb +115 -0
- data/spec/services/billing_request_templates_service_spec.rb +789 -0
- data/spec/services/billing_requests_service_spec.rb +210 -47
- data/spec/services/blocks_service_spec.rb +840 -0
- data/spec/services/creditor_bank_accounts_service_spec.rb +2 -13
- data/spec/services/creditors_service_spec.rb +0 -13
- data/spec/services/customer_bank_accounts_service_spec.rb +2 -13
- data/spec/services/customer_notifications_service_spec.rb +2 -0
- data/spec/services/customers_service_spec.rb +2 -13
- data/spec/services/instalment_schedules_service_spec.rb +2 -26
- data/spec/services/institutions_service_spec.rb +9 -0
- data/spec/services/mandate_imports_service_spec.rb +4 -13
- data/spec/services/mandates_service_spec.rb +4 -13
- data/spec/services/payer_authorisations_service_spec.rb +4 -13
- data/spec/services/payments_service_spec.rb +4 -13
- data/spec/services/redirect_flows_service_spec.rb +11 -13
- data/spec/services/refunds_service_spec.rb +0 -13
- data/spec/services/scenario_simulators_service_spec.rb +2 -0
- data/spec/services/subscriptions_service_spec.rb +6 -13
- data/spec/services/webhooks_service_spec.rb +2 -0
- metadata +18 -3
@@ -465,6 +465,7 @@ describe GoCardlessPro::Services::WebhooksService do
|
|
465
465
|
# /webhooks/%v/actions/retry
|
466
466
|
stub_url = '/webhooks/:identity/actions/retry'.gsub(':identity', resource_id)
|
467
467
|
stub_request(:post, /.*api.gocardless.com#{stub_url}/).to_return(
|
468
|
+
|
468
469
|
body: {
|
469
470
|
'webhooks' => {
|
470
471
|
|
@@ -483,6 +484,7 @@ describe GoCardlessPro::Services::WebhooksService do
|
|
483
484
|
'url' => 'url-input',
|
484
485
|
},
|
485
486
|
}.to_json,
|
487
|
+
|
486
488
|
headers: response_headers
|
487
489
|
)
|
488
490
|
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.
|
4
|
+
version: 2.30.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -151,9 +151,12 @@ files:
|
|
151
151
|
- lib/gocardless_pro/client.rb
|
152
152
|
- lib/gocardless_pro/error.rb
|
153
153
|
- lib/gocardless_pro/error/api_error.rb
|
154
|
+
- lib/gocardless_pro/error/authentication_error.rb
|
154
155
|
- lib/gocardless_pro/error/gocardless_error.rb
|
155
156
|
- lib/gocardless_pro/error/invalid_api_usage_error.rb
|
156
157
|
- lib/gocardless_pro/error/invalid_state_error.rb
|
158
|
+
- lib/gocardless_pro/error/permission_error.rb
|
159
|
+
- lib/gocardless_pro/error/rate_limit_error.rb
|
157
160
|
- lib/gocardless_pro/error/validation_error.rb
|
158
161
|
- lib/gocardless_pro/list_response.rb
|
159
162
|
- lib/gocardless_pro/middlewares/raise_gocardless_errors.rb
|
@@ -163,6 +166,8 @@ files:
|
|
163
166
|
- lib/gocardless_pro/resources/bank_details_lookup.rb
|
164
167
|
- lib/gocardless_pro/resources/billing_request.rb
|
165
168
|
- lib/gocardless_pro/resources/billing_request_flow.rb
|
169
|
+
- lib/gocardless_pro/resources/billing_request_template.rb
|
170
|
+
- lib/gocardless_pro/resources/block.rb
|
166
171
|
- lib/gocardless_pro/resources/creditor.rb
|
167
172
|
- lib/gocardless_pro/resources/creditor_bank_account.rb
|
168
173
|
- lib/gocardless_pro/resources/currency_exchange_rate.rb
|
@@ -191,7 +196,9 @@ files:
|
|
191
196
|
- lib/gocardless_pro/services/bank_details_lookups_service.rb
|
192
197
|
- lib/gocardless_pro/services/base_service.rb
|
193
198
|
- lib/gocardless_pro/services/billing_request_flows_service.rb
|
199
|
+
- lib/gocardless_pro/services/billing_request_templates_service.rb
|
194
200
|
- lib/gocardless_pro/services/billing_requests_service.rb
|
201
|
+
- lib/gocardless_pro/services/blocks_service.rb
|
195
202
|
- lib/gocardless_pro/services/creditor_bank_accounts_service.rb
|
196
203
|
- lib/gocardless_pro/services/creditors_service.rb
|
197
204
|
- lib/gocardless_pro/services/currency_exchange_rates_service.rb
|
@@ -226,6 +233,8 @@ files:
|
|
226
233
|
- spec/resources/bank_details_lookup_spec.rb
|
227
234
|
- spec/resources/billing_request_flow_spec.rb
|
228
235
|
- spec/resources/billing_request_spec.rb
|
236
|
+
- spec/resources/billing_request_template_spec.rb
|
237
|
+
- spec/resources/block_spec.rb
|
229
238
|
- spec/resources/creditor_bank_account_spec.rb
|
230
239
|
- spec/resources/creditor_spec.rb
|
231
240
|
- spec/resources/currency_exchange_rate_spec.rb
|
@@ -253,7 +262,9 @@ files:
|
|
253
262
|
- spec/services/bank_authorisations_service_spec.rb
|
254
263
|
- spec/services/bank_details_lookups_service_spec.rb
|
255
264
|
- spec/services/billing_request_flows_service_spec.rb
|
265
|
+
- spec/services/billing_request_templates_service_spec.rb
|
256
266
|
- spec/services/billing_requests_service_spec.rb
|
267
|
+
- spec/services/blocks_service_spec.rb
|
257
268
|
- spec/services/creditor_bank_accounts_service_spec.rb
|
258
269
|
- spec/services/creditors_service_spec.rb
|
259
270
|
- spec/services/currency_exchange_rates_service_spec.rb
|
@@ -298,7 +309,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
298
309
|
- !ruby/object:Gem::Version
|
299
310
|
version: '0'
|
300
311
|
requirements: []
|
301
|
-
rubygems_version: 3.0.3
|
312
|
+
rubygems_version: 3.0.3.1
|
302
313
|
signing_key:
|
303
314
|
specification_version: 4
|
304
315
|
summary: A gem for calling the GoCardless Pro API
|
@@ -312,6 +323,8 @@ test_files:
|
|
312
323
|
- spec/resources/bank_details_lookup_spec.rb
|
313
324
|
- spec/resources/billing_request_flow_spec.rb
|
314
325
|
- spec/resources/billing_request_spec.rb
|
326
|
+
- spec/resources/billing_request_template_spec.rb
|
327
|
+
- spec/resources/block_spec.rb
|
315
328
|
- spec/resources/creditor_bank_account_spec.rb
|
316
329
|
- spec/resources/creditor_spec.rb
|
317
330
|
- spec/resources/currency_exchange_rate_spec.rb
|
@@ -339,7 +352,9 @@ test_files:
|
|
339
352
|
- spec/services/bank_authorisations_service_spec.rb
|
340
353
|
- spec/services/bank_details_lookups_service_spec.rb
|
341
354
|
- spec/services/billing_request_flows_service_spec.rb
|
355
|
+
- spec/services/billing_request_templates_service_spec.rb
|
342
356
|
- spec/services/billing_requests_service_spec.rb
|
357
|
+
- spec/services/blocks_service_spec.rb
|
343
358
|
- spec/services/creditor_bank_accounts_service_spec.rb
|
344
359
|
- spec/services/creditors_service_spec.rb
|
345
360
|
- spec/services/currency_exchange_rates_service_spec.rb
|