gocardless_pro 2.24.0 → 2.29.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 +23 -4
- data/lib/gocardless_pro/api_service.rb +4 -0
- data/lib/gocardless_pro/client.rb +46 -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 +81 -0
- data/lib/gocardless_pro/resources/billing_request.rb +108 -0
- data/lib/gocardless_pro/resources/billing_request_flow.rb +72 -0
- data/lib/gocardless_pro/resources/billing_request_template.rb +68 -0
- data/lib/gocardless_pro/resources/block.rb +66 -0
- data/lib/gocardless_pro/resources/creditor.rb +2 -3
- data/lib/gocardless_pro/resources/event.rb +20 -0
- data/lib/gocardless_pro/resources/institution.rb +47 -0
- data/lib/gocardless_pro/resources/payer_authorisation.rb +131 -0
- data/lib/gocardless_pro/resources/payout_item.rb +4 -0
- data/lib/gocardless_pro/resources/redirect_flow.rb +2 -0
- data/lib/gocardless_pro/resources/scenario_simulator.rb +42 -0
- data/lib/gocardless_pro/resources/webhook.rb +62 -0
- data/lib/gocardless_pro/services/bank_authorisations_service.rb +80 -0
- data/lib/gocardless_pro/services/billing_request_flows_service.rb +70 -0
- data/lib/gocardless_pro/services/billing_request_templates_service.rb +131 -0
- data/lib/gocardless_pro/services/billing_requests_service.rb +352 -0
- 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 +56 -0
- 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 +202 -0
- 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 +170 -0
- data/lib/gocardless_pro/services/subscriptions_service.rb +10 -13
- data/lib/gocardless_pro/services/tax_rates_service.rb +1 -1
- data/lib/gocardless_pro/services/webhooks_service.rb +111 -0
- data/lib/gocardless_pro/version.rb +1 -1
- data/lib/gocardless_pro.rb +30 -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 +259 -0
- data/spec/resources/billing_request_flow_spec.rb +219 -0
- data/spec/resources/billing_request_spec.rb +782 -0
- data/spec/resources/billing_request_template_spec.rb +502 -0
- data/spec/resources/block_spec.rb +560 -0
- data/spec/resources/institution_spec.rb +108 -0
- data/spec/resources/payer_authorisation_spec.rb +418 -0
- data/spec/resources/redirect_flow_spec.rb +9 -0
- data/spec/resources/scenario_simulator_spec.rb +63 -0
- data/spec/resources/webhook_spec.rb +323 -0
- data/spec/services/bank_authorisations_service_spec.rb +353 -0
- data/spec/services/billing_request_flows_service_spec.rb +253 -0
- data/spec/services/billing_request_templates_service_spec.rb +789 -0
- data/spec/services/billing_requests_service_spec.rb +1082 -0
- data/spec/services/blocks_service_spec.rb +823 -0
- data/spec/services/creditor_bank_accounts_service_spec.rb +0 -13
- data/spec/services/creditors_service_spec.rb +0 -13
- data/spec/services/customer_bank_accounts_service_spec.rb +0 -13
- data/spec/services/customers_service_spec.rb +0 -13
- data/spec/services/instalment_schedules_service_spec.rb +0 -26
- data/spec/services/institutions_service_spec.rb +232 -0
- data/spec/services/mandate_imports_service_spec.rb +0 -13
- data/spec/services/mandates_service_spec.rb +0 -13
- data/spec/services/payer_authorisations_service_spec.rb +559 -0
- data/spec/services/payments_service_spec.rb +0 -13
- data/spec/services/redirect_flows_service_spec.rb +9 -13
- data/spec/services/refunds_service_spec.rb +0 -13
- data/spec/services/scenario_simulators_service_spec.rb +74 -0
- data/spec/services/subscriptions_service_spec.rb +0 -13
- data/spec/services/webhooks_service_spec.rb +545 -0
- metadata +64 -7
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.29.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GoCardless
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-11-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -128,7 +128,7 @@ dependencies:
|
|
128
128
|
- - "<"
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '13'
|
131
|
-
description:
|
131
|
+
description:
|
132
132
|
email:
|
133
133
|
- engineering@gocardless.com
|
134
134
|
executables: []
|
@@ -151,15 +151,23 @@ 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
|
160
163
|
- lib/gocardless_pro/paginator.rb
|
161
164
|
- lib/gocardless_pro/request.rb
|
165
|
+
- lib/gocardless_pro/resources/bank_authorisation.rb
|
162
166
|
- lib/gocardless_pro/resources/bank_details_lookup.rb
|
167
|
+
- lib/gocardless_pro/resources/billing_request.rb
|
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
|
163
171
|
- lib/gocardless_pro/resources/creditor.rb
|
164
172
|
- lib/gocardless_pro/resources/creditor_bank_account.rb
|
165
173
|
- lib/gocardless_pro/resources/currency_exchange_rate.rb
|
@@ -168,20 +176,29 @@ files:
|
|
168
176
|
- lib/gocardless_pro/resources/customer_notification.rb
|
169
177
|
- lib/gocardless_pro/resources/event.rb
|
170
178
|
- lib/gocardless_pro/resources/instalment_schedule.rb
|
179
|
+
- lib/gocardless_pro/resources/institution.rb
|
171
180
|
- lib/gocardless_pro/resources/mandate.rb
|
172
181
|
- lib/gocardless_pro/resources/mandate_import.rb
|
173
182
|
- lib/gocardless_pro/resources/mandate_import_entry.rb
|
174
183
|
- lib/gocardless_pro/resources/mandate_pdf.rb
|
184
|
+
- lib/gocardless_pro/resources/payer_authorisation.rb
|
175
185
|
- lib/gocardless_pro/resources/payment.rb
|
176
186
|
- lib/gocardless_pro/resources/payout.rb
|
177
187
|
- lib/gocardless_pro/resources/payout_item.rb
|
178
188
|
- lib/gocardless_pro/resources/redirect_flow.rb
|
179
189
|
- lib/gocardless_pro/resources/refund.rb
|
190
|
+
- lib/gocardless_pro/resources/scenario_simulator.rb
|
180
191
|
- lib/gocardless_pro/resources/subscription.rb
|
181
192
|
- lib/gocardless_pro/resources/tax_rate.rb
|
193
|
+
- lib/gocardless_pro/resources/webhook.rb
|
182
194
|
- lib/gocardless_pro/response.rb
|
195
|
+
- lib/gocardless_pro/services/bank_authorisations_service.rb
|
183
196
|
- lib/gocardless_pro/services/bank_details_lookups_service.rb
|
184
197
|
- lib/gocardless_pro/services/base_service.rb
|
198
|
+
- lib/gocardless_pro/services/billing_request_flows_service.rb
|
199
|
+
- lib/gocardless_pro/services/billing_request_templates_service.rb
|
200
|
+
- lib/gocardless_pro/services/billing_requests_service.rb
|
201
|
+
- lib/gocardless_pro/services/blocks_service.rb
|
185
202
|
- lib/gocardless_pro/services/creditor_bank_accounts_service.rb
|
186
203
|
- lib/gocardless_pro/services/creditors_service.rb
|
187
204
|
- lib/gocardless_pro/services/currency_exchange_rates_service.rb
|
@@ -190,17 +207,21 @@ files:
|
|
190
207
|
- lib/gocardless_pro/services/customers_service.rb
|
191
208
|
- lib/gocardless_pro/services/events_service.rb
|
192
209
|
- lib/gocardless_pro/services/instalment_schedules_service.rb
|
210
|
+
- lib/gocardless_pro/services/institutions_service.rb
|
193
211
|
- lib/gocardless_pro/services/mandate_import_entries_service.rb
|
194
212
|
- lib/gocardless_pro/services/mandate_imports_service.rb
|
195
213
|
- lib/gocardless_pro/services/mandate_pdfs_service.rb
|
196
214
|
- lib/gocardless_pro/services/mandates_service.rb
|
215
|
+
- lib/gocardless_pro/services/payer_authorisations_service.rb
|
197
216
|
- lib/gocardless_pro/services/payments_service.rb
|
198
217
|
- lib/gocardless_pro/services/payout_items_service.rb
|
199
218
|
- lib/gocardless_pro/services/payouts_service.rb
|
200
219
|
- lib/gocardless_pro/services/redirect_flows_service.rb
|
201
220
|
- lib/gocardless_pro/services/refunds_service.rb
|
221
|
+
- lib/gocardless_pro/services/scenario_simulators_service.rb
|
202
222
|
- lib/gocardless_pro/services/subscriptions_service.rb
|
203
223
|
- lib/gocardless_pro/services/tax_rates_service.rb
|
224
|
+
- lib/gocardless_pro/services/webhooks_service.rb
|
204
225
|
- lib/gocardless_pro/version.rb
|
205
226
|
- lib/gocardless_pro/webhook.rb
|
206
227
|
- spec/api_response_spec.rb
|
@@ -208,7 +229,12 @@ files:
|
|
208
229
|
- spec/client_spec.rb
|
209
230
|
- spec/error_spec.rb
|
210
231
|
- spec/middlewares/raise_gocardless_errors_spec.rb
|
232
|
+
- spec/resources/bank_authorisation_spec.rb
|
211
233
|
- spec/resources/bank_details_lookup_spec.rb
|
234
|
+
- spec/resources/billing_request_flow_spec.rb
|
235
|
+
- spec/resources/billing_request_spec.rb
|
236
|
+
- spec/resources/billing_request_template_spec.rb
|
237
|
+
- spec/resources/block_spec.rb
|
212
238
|
- spec/resources/creditor_bank_account_spec.rb
|
213
239
|
- spec/resources/creditor_spec.rb
|
214
240
|
- spec/resources/currency_exchange_rate_spec.rb
|
@@ -217,19 +243,28 @@ files:
|
|
217
243
|
- spec/resources/customer_spec.rb
|
218
244
|
- spec/resources/event_spec.rb
|
219
245
|
- spec/resources/instalment_schedule_spec.rb
|
246
|
+
- spec/resources/institution_spec.rb
|
220
247
|
- spec/resources/mandate_import_entry_spec.rb
|
221
248
|
- spec/resources/mandate_import_spec.rb
|
222
249
|
- spec/resources/mandate_pdf_spec.rb
|
223
250
|
- spec/resources/mandate_spec.rb
|
251
|
+
- spec/resources/payer_authorisation_spec.rb
|
224
252
|
- spec/resources/payment_spec.rb
|
225
253
|
- spec/resources/payout_item_spec.rb
|
226
254
|
- spec/resources/payout_spec.rb
|
227
255
|
- spec/resources/redirect_flow_spec.rb
|
228
256
|
- spec/resources/refund_spec.rb
|
257
|
+
- spec/resources/scenario_simulator_spec.rb
|
229
258
|
- spec/resources/subscription_spec.rb
|
230
259
|
- spec/resources/tax_rate_spec.rb
|
260
|
+
- spec/resources/webhook_spec.rb
|
231
261
|
- spec/response_spec.rb
|
262
|
+
- spec/services/bank_authorisations_service_spec.rb
|
232
263
|
- spec/services/bank_details_lookups_service_spec.rb
|
264
|
+
- spec/services/billing_request_flows_service_spec.rb
|
265
|
+
- spec/services/billing_request_templates_service_spec.rb
|
266
|
+
- spec/services/billing_requests_service_spec.rb
|
267
|
+
- spec/services/blocks_service_spec.rb
|
233
268
|
- spec/services/creditor_bank_accounts_service_spec.rb
|
234
269
|
- spec/services/creditors_service_spec.rb
|
235
270
|
- spec/services/currency_exchange_rates_service_spec.rb
|
@@ -238,24 +273,28 @@ files:
|
|
238
273
|
- spec/services/customers_service_spec.rb
|
239
274
|
- spec/services/events_service_spec.rb
|
240
275
|
- spec/services/instalment_schedules_service_spec.rb
|
276
|
+
- spec/services/institutions_service_spec.rb
|
241
277
|
- spec/services/mandate_import_entries_service_spec.rb
|
242
278
|
- spec/services/mandate_imports_service_spec.rb
|
243
279
|
- spec/services/mandate_pdfs_service_spec.rb
|
244
280
|
- spec/services/mandates_service_spec.rb
|
281
|
+
- spec/services/payer_authorisations_service_spec.rb
|
245
282
|
- spec/services/payments_service_spec.rb
|
246
283
|
- spec/services/payout_items_service_spec.rb
|
247
284
|
- spec/services/payouts_service_spec.rb
|
248
285
|
- spec/services/redirect_flows_service_spec.rb
|
249
286
|
- spec/services/refunds_service_spec.rb
|
287
|
+
- spec/services/scenario_simulators_service_spec.rb
|
250
288
|
- spec/services/subscriptions_service_spec.rb
|
251
289
|
- spec/services/tax_rates_service_spec.rb
|
290
|
+
- spec/services/webhooks_service_spec.rb
|
252
291
|
- spec/spec_helper.rb
|
253
292
|
- spec/webhook_spec.rb
|
254
293
|
homepage: https://github.com/gocardless/gocardless-pro-ruby
|
255
294
|
licenses:
|
256
295
|
- MIT
|
257
296
|
metadata: {}
|
258
|
-
post_install_message:
|
297
|
+
post_install_message:
|
259
298
|
rdoc_options: []
|
260
299
|
require_paths:
|
261
300
|
- lib
|
@@ -270,8 +309,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
270
309
|
- !ruby/object:Gem::Version
|
271
310
|
version: '0'
|
272
311
|
requirements: []
|
273
|
-
rubygems_version: 3.
|
274
|
-
signing_key:
|
312
|
+
rubygems_version: 3.2.22
|
313
|
+
signing_key:
|
275
314
|
specification_version: 4
|
276
315
|
summary: A gem for calling the GoCardless Pro API
|
277
316
|
test_files:
|
@@ -280,7 +319,12 @@ test_files:
|
|
280
319
|
- spec/client_spec.rb
|
281
320
|
- spec/error_spec.rb
|
282
321
|
- spec/middlewares/raise_gocardless_errors_spec.rb
|
322
|
+
- spec/resources/bank_authorisation_spec.rb
|
283
323
|
- spec/resources/bank_details_lookup_spec.rb
|
324
|
+
- spec/resources/billing_request_flow_spec.rb
|
325
|
+
- spec/resources/billing_request_spec.rb
|
326
|
+
- spec/resources/billing_request_template_spec.rb
|
327
|
+
- spec/resources/block_spec.rb
|
284
328
|
- spec/resources/creditor_bank_account_spec.rb
|
285
329
|
- spec/resources/creditor_spec.rb
|
286
330
|
- spec/resources/currency_exchange_rate_spec.rb
|
@@ -289,19 +333,28 @@ test_files:
|
|
289
333
|
- spec/resources/customer_spec.rb
|
290
334
|
- spec/resources/event_spec.rb
|
291
335
|
- spec/resources/instalment_schedule_spec.rb
|
336
|
+
- spec/resources/institution_spec.rb
|
292
337
|
- spec/resources/mandate_import_entry_spec.rb
|
293
338
|
- spec/resources/mandate_import_spec.rb
|
294
339
|
- spec/resources/mandate_pdf_spec.rb
|
295
340
|
- spec/resources/mandate_spec.rb
|
341
|
+
- spec/resources/payer_authorisation_spec.rb
|
296
342
|
- spec/resources/payment_spec.rb
|
297
343
|
- spec/resources/payout_item_spec.rb
|
298
344
|
- spec/resources/payout_spec.rb
|
299
345
|
- spec/resources/redirect_flow_spec.rb
|
300
346
|
- spec/resources/refund_spec.rb
|
347
|
+
- spec/resources/scenario_simulator_spec.rb
|
301
348
|
- spec/resources/subscription_spec.rb
|
302
349
|
- spec/resources/tax_rate_spec.rb
|
350
|
+
- spec/resources/webhook_spec.rb
|
303
351
|
- spec/response_spec.rb
|
352
|
+
- spec/services/bank_authorisations_service_spec.rb
|
304
353
|
- spec/services/bank_details_lookups_service_spec.rb
|
354
|
+
- spec/services/billing_request_flows_service_spec.rb
|
355
|
+
- spec/services/billing_request_templates_service_spec.rb
|
356
|
+
- spec/services/billing_requests_service_spec.rb
|
357
|
+
- spec/services/blocks_service_spec.rb
|
305
358
|
- spec/services/creditor_bank_accounts_service_spec.rb
|
306
359
|
- spec/services/creditors_service_spec.rb
|
307
360
|
- spec/services/currency_exchange_rates_service_spec.rb
|
@@ -310,16 +363,20 @@ test_files:
|
|
310
363
|
- spec/services/customers_service_spec.rb
|
311
364
|
- spec/services/events_service_spec.rb
|
312
365
|
- spec/services/instalment_schedules_service_spec.rb
|
366
|
+
- spec/services/institutions_service_spec.rb
|
313
367
|
- spec/services/mandate_import_entries_service_spec.rb
|
314
368
|
- spec/services/mandate_imports_service_spec.rb
|
315
369
|
- spec/services/mandate_pdfs_service_spec.rb
|
316
370
|
- spec/services/mandates_service_spec.rb
|
371
|
+
- spec/services/payer_authorisations_service_spec.rb
|
317
372
|
- spec/services/payments_service_spec.rb
|
318
373
|
- spec/services/payout_items_service_spec.rb
|
319
374
|
- spec/services/payouts_service_spec.rb
|
320
375
|
- spec/services/redirect_flows_service_spec.rb
|
321
376
|
- spec/services/refunds_service_spec.rb
|
377
|
+
- spec/services/scenario_simulators_service_spec.rb
|
322
378
|
- spec/services/subscriptions_service_spec.rb
|
323
379
|
- spec/services/tax_rates_service_spec.rb
|
380
|
+
- spec/services/webhooks_service_spec.rb
|
324
381
|
- spec/spec_helper.rb
|
325
382
|
- spec/webhook_spec.rb
|