mollie-api-ruby 4.4.0 → 4.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bda09fc2f11315a55ec2855fe42c43563bd7df1bd9eb7ab04068a9338fb9b7a7
4
- data.tar.gz: 1b3f950d14b5e3317ee95fec61e5a41b216dc4b23414e6696622ca275647eb91
3
+ metadata.gz: fd9eb0364673c38f37d4440e31e8b5544e31e8b60b74131f05132f8f56d49901
4
+ data.tar.gz: 56be0271a4440232f20287241d961f6d63e56f73d2a2d490d8825513860d2ca8
5
5
  SHA512:
6
- metadata.gz: e1cb2f00bf7c074f9e5fbe0bef6ec8a53ec164cdf1d917db1f551553c7c029e2859195a78af18bb2fb8208d5d059ae5868bf6740d83d2b31582ce9b1a6d7eb7f
7
- data.tar.gz: adbcb09e6260362af9d666e1e4f351a0ee7b7da5b64efdbfdebb65d83c0bbe4ba33516e99b659a8234e4bf0ee6665f940fd284b1db14b28559f9ba3f83b0ac5e
6
+ metadata.gz: 840f5b3bd2a32a0ab3628b84a8c8dc17b246e5bc646ec0130a1d93f02c14d859a10ba2d436daea70b3bbe674137591d1a13c4c5decf70ac0628f55469d5eb7a1
7
+ data.tar.gz: b633b24525f7ce2a335a740a05a368a8bf60a8f3834ca830376fba66800587017ab8f566d048e170303b73873a965b4083b12bbbf5819c126eb82d4e57ceb268
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  All notable changes to this project will be documented in this file.
6
6
 
7
+ ## 4.4.1 - 2019-08-12
8
+
9
+ - Payment: Require customer_id when retrieving a mandate.
10
+
7
11
  ## 4.4.0 - 2019-07-11
8
12
 
9
13
  - Mandate: add `mode` attribute
@@ -207,7 +207,9 @@ module Mollie
207
207
  end
208
208
 
209
209
  def mandate(options = {})
210
+ return if customer_id.nil?
210
211
  return if mandate_id.nil?
212
+ options = options.merge(customer_id: customer_id)
211
213
  Customer::Mandate.get(mandate_id, options)
212
214
  end
213
215
 
@@ -1,3 +1,3 @@
1
1
  module Mollie
2
- VERSION = '4.4.0'.freeze
2
+ VERSION = '4.4.1'.freeze
3
3
  end
@@ -282,11 +282,12 @@ module Mollie
282
282
  {
283
283
  "resource": "payment",
284
284
  "id": "tr_WDqYK6vllg",
285
+ "customer_id": "cst_4qqhO89gsT",
285
286
  "mandate_id": "mdt_h3gAaD5zP"
286
287
  }
287
288
  ), headers: {})
288
289
 
289
- stub_request(:get, 'https://api.mollie.com/v2/mandates/mdt_h3gAaD5zP')
290
+ stub_request(:get, 'https://api.mollie.com/v2/customers/cst_4qqhO89gsT/mandates/mdt_h3gAaD5zP')
290
291
  .to_return(status: 200, body: %(
291
292
  {
292
293
  "resource": "mandate",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mollie-api-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mollie B.V.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-11 00:00:00.000000000 Z
11
+ date: 2019-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -270,54 +270,55 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  - !ruby/object:Gem::Version
271
271
  version: '0'
272
272
  requirements: []
273
- rubygems_version: 3.0.4
273
+ rubyforge_project:
274
+ rubygems_version: 2.7.7
274
275
  signing_key:
275
276
  specification_version: 4
276
277
  summary: Official Mollie API Client for Ruby
277
278
  test_files:
278
279
  - test/fixtures/captures/get.json
279
280
  - test/fixtures/captures/list.json
281
+ - test/fixtures/shipments/get.json
282
+ - test/fixtures/shipments/create.json
283
+ - test/fixtures/shipments/update.json
284
+ - test/fixtures/shipments/list.json
280
285
  - test/fixtures/refunds/get.json
281
- - test/fixtures/orders/update.json
282
- - test/fixtures/orders/refund_all.json
283
- - test/fixtures/orders/cancel_line_qty.json
284
- - test/fixtures/orders/create_refund.json
285
286
  - test/fixtures/orders/get.json
287
+ - test/fixtures/orders/create_refund.json
288
+ - test/fixtures/orders/cancel_line_qty.json
289
+ - test/fixtures/orders/cancel_line.json
290
+ - test/fixtures/orders/refund_all.json
286
291
  - test/fixtures/orders/refund.json
287
- - test/fixtures/orders/list.json
288
292
  - test/fixtures/orders/list_refunds.json
289
- - test/fixtures/orders/cancel_line.json
290
293
  - test/fixtures/orders/create.json
291
- - test/fixtures/shipments/update.json
292
- - test/fixtures/shipments/get.json
293
- - test/fixtures/shipments/list.json
294
- - test/fixtures/shipments/create.json
294
+ - test/fixtures/orders/update.json
295
+ - test/fixtures/orders/list.json
296
+ - test/helper.rb
297
+ - test/run-test.rb
298
+ - test/mollie/list_test.rb
295
299
  - test/mollie/invoice_test.rb
296
- - test/mollie/base_test.rb
297
- - test/mollie/settlement/payment_test.rb
298
- - test/mollie/settlement/chargeback_test.rb
299
- - test/mollie/settlement/refund_test.rb
300
- - test/mollie/amount_test.rb
300
+ - test/mollie/order/shipment_test.rb
301
+ - test/mollie/order/line_test.rb
301
302
  - test/mollie/payment_test.rb
302
- - test/mollie/profile_test.rb
303
- - test/mollie/method_test.rb
304
- - test/mollie/organization_test.rb
305
- - test/mollie/settlement_test.rb
303
+ - test/mollie/amount_test.rb
304
+ - test/mollie/refund_test.rb
306
305
  - test/mollie/util_test.rb
306
+ - test/mollie/settlement_test.rb
307
+ - test/mollie/payment/refund_test.rb
308
+ - test/mollie/payment/capture_test.rb
309
+ - test/mollie/payment/chargeback_test.rb
310
+ - test/mollie/order_test.rb
311
+ - test/mollie/customer_test.rb
312
+ - test/mollie/organization_test.rb
307
313
  - test/mollie/client_test.rb
314
+ - test/mollie/profile_test.rb
315
+ - test/mollie/settlement/payment_test.rb
316
+ - test/mollie/settlement/refund_test.rb
317
+ - test/mollie/settlement/chargeback_test.rb
308
318
  - test/mollie/chargeback_test.rb
309
- - test/mollie/permission_test.rb
310
- - test/mollie/customer_test.rb
311
- - test/mollie/customer/subscription_test.rb
312
319
  - test/mollie/customer/payment_test.rb
320
+ - test/mollie/customer/subscription_test.rb
313
321
  - test/mollie/customer/mandate_test.rb
314
- - test/mollie/refund_test.rb
315
- - test/mollie/list_test.rb
316
- - test/mollie/payment/chargeback_test.rb
317
- - test/mollie/payment/capture_test.rb
318
- - test/mollie/payment/refund_test.rb
319
- - test/mollie/order/shipment_test.rb
320
- - test/mollie/order/line_test.rb
321
- - test/mollie/order_test.rb
322
- - test/run-test.rb
323
- - test/helper.rb
322
+ - test/mollie/permission_test.rb
323
+ - test/mollie/base_test.rb
324
+ - test/mollie/method_test.rb