mollie-api-ruby 4.7.1 → 4.8.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: aedb86d7ed96dc6a88685737259c150e3c676b31bf14411eb7f0dac3147c357f
4
- data.tar.gz: f7f3745b6575a583621bcb643a5167306d0198a12a076ccabea392c2f4793579
3
+ metadata.gz: a8dad5d626838847afab5862ba970b57c12cc7b4dc90b8bf69e85b97e8ff0f7c
4
+ data.tar.gz: 24330936807862e829261848ceee6ba0a65558829988d467f63172e201d78daa
5
5
  SHA512:
6
- metadata.gz: 75e51b046272954999861f8ffa45a0eadce969ee28383d917b7911d9117d72964b8e8cd1e34cff9dcffa3f5f7d7fc51770d23bd5e1be87aa6a739b619f738421
7
- data.tar.gz: 65181e4965486b3f61d3a2bdb287daa2967cdf81b6be4813be04f114ef9483941e5e8d295a92141779bfb6b748fe5a910e9717c2b2b1eea8cd2dfbef3310750e
6
+ metadata.gz: 6c3ea236e726013cc39d580cd4ef25ee40fe0734b906c7dfc89402929b758435944562033e90fa2657604426113f4a1fb5806cd2a127e935eabd9cd5faa12b1f
7
+ data.tar.gz: 4c68d947f24b2594cbc912cf33ab3124b8b9d6deb1493f4dfd4f6384375b0d9a11e5e0b81cc511f12ba3223594be4402e893992adad60f14e8dd6899a4bc27ff
@@ -19,5 +19,9 @@ module Mollie
19
19
  def address=(address)
20
20
  @address = OpenStruct.new(address) if address.is_a?(Hash)
21
21
  end
22
+
23
+ def dashboard_url
24
+ Util.extract_url(links, 'dashboard')
25
+ end
22
26
  end
23
27
  end
@@ -1,3 +1,3 @@
1
1
  module Mollie
2
- VERSION = '4.7.1'.freeze
2
+ VERSION = '4.8.0'.freeze
3
3
  end
@@ -86,7 +86,7 @@
86
86
  ],
87
87
  "_links": {
88
88
  "self": {
89
- "href": "https://api.mollie.com/v2/shipments/shp_bjylrn",
89
+ "href": "https://api.mollie.com/v2/order/ord_kEn1PlbGa/shipments/shp_3wmsgCJN4U",
90
90
  "type": "application/hal+json"
91
91
  },
92
92
  "order": {
@@ -21,7 +21,11 @@ module Mollie
21
21
  'self' => {
22
22
  'href' => 'https://api.mollie.com/v2/organizations/org_12345678',
23
23
  'type' => 'application/hal+json'
24
- },
24
+ },
25
+ 'dashboard' => {
26
+ 'href' => 'https://mollie.com/dashboard/org_12345678',
27
+ 'type' => 'text/html'
28
+ },
25
29
  'documentation' => {
26
30
  'href' => 'https://docs.mollie.com/reference/v2/organizations-api/get-organization',
27
31
  'type' => 'text/html'
@@ -43,6 +47,7 @@ module Mollie
43
47
  assert_equal 'NL815839091B01', organization.vat_number
44
48
  assert_equal 'dutch', organization.vat_regulation
45
49
  assert_equal 'https://api.mollie.com/v2/organizations/org_12345678', organization.links['self']['href']
50
+ assert_equal 'https://mollie.com/dashboard/org_12345678', organization.dashboard_url
46
51
  end
47
52
 
48
53
  def test_current_organization
@@ -90,7 +90,8 @@ module Mollie
90
90
  currency: 'EUR'
91
91
  }
92
92
  }
93
- ]
93
+ ],
94
+ invoice_id: 'inv_FrvewDA3Pr'
94
95
  }
95
96
  }
96
97
  },
@@ -149,6 +150,8 @@ module Mollie
149
150
  assert_equal '0.5000', settlement.periods[:'2015'][:'11'].costs[1].amount_net.value
150
151
  assert_equal '0.1050', settlement.periods[:'2015'][:'11'].costs[1].amount_vat.value
151
152
  assert_equal '0.6050', settlement.periods[:'2015'][:'11'].costs[1].amount_gross.value
153
+
154
+ assert_equal 'inv_FrvewDA3Pr', settlement.periods[:'2015'][:'11'].invoice_id
152
155
  end
153
156
 
154
157
  def test_status_open
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.7.1
4
+ version: 4.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mollie B.V.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-13 00:00:00.000000000 Z
11
+ date: 2024-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -267,7 +267,7 @@ homepage: https://github.com/mollie/mollie-api-ruby
267
267
  licenses:
268
268
  - BSD
269
269
  metadata: {}
270
- post_install_message:
270
+ post_install_message:
271
271
  rdoc_options: []
272
272
  require_paths:
273
273
  - lib
@@ -282,62 +282,61 @@ required_rubygems_version: !ruby/object:Gem::Requirement
282
282
  - !ruby/object:Gem::Version
283
283
  version: '0'
284
284
  requirements: []
285
- rubyforge_project:
286
- rubygems_version: 2.7.7
287
- signing_key:
285
+ rubygems_version: 3.5.10
286
+ signing_key:
288
287
  specification_version: 4
289
288
  summary: Official Mollie API Client for Ruby
290
289
  test_files:
291
290
  - test/fixtures/captures/get.json
292
291
  - test/fixtures/captures/list.json
293
- - test/fixtures/subscriptions/get.json
294
- - test/fixtures/subscriptions/get_payments.json
295
- - test/fixtures/onboarding/submit.json
296
- - test/fixtures/onboarding/me.json
297
- - test/fixtures/shipments/get.json
298
- - test/fixtures/shipments/create.json
299
- - test/fixtures/shipments/update.json
300
- - test/fixtures/shipments/list.json
301
- - test/fixtures/payments/get.json
302
292
  - test/fixtures/methods/get-includes-pricing.json
303
- - test/fixtures/refunds/get.json
304
- - test/fixtures/orders/get.json
305
- - test/fixtures/orders/create_refund.json
306
- - test/fixtures/orders/cancel_line_qty.json
293
+ - test/fixtures/onboarding/me.json
294
+ - test/fixtures/onboarding/submit.json
307
295
  - test/fixtures/orders/cancel_line.json
308
- - test/fixtures/orders/refund_all.json
309
- - test/fixtures/orders/refund.json
310
- - test/fixtures/orders/list_refunds.json
296
+ - test/fixtures/orders/cancel_line_qty.json
311
297
  - test/fixtures/orders/create.json
312
- - test/fixtures/orders/update.json
298
+ - test/fixtures/orders/create_refund.json
299
+ - test/fixtures/orders/get.json
313
300
  - test/fixtures/orders/list.json
301
+ - test/fixtures/orders/list_refunds.json
302
+ - test/fixtures/orders/refund.json
303
+ - test/fixtures/orders/refund_all.json
304
+ - test/fixtures/orders/update.json
305
+ - test/fixtures/payments/get.json
306
+ - test/fixtures/refunds/get.json
307
+ - test/fixtures/shipments/create.json
308
+ - test/fixtures/shipments/get.json
309
+ - test/fixtures/shipments/list.json
310
+ - test/fixtures/shipments/update.json
311
+ - test/fixtures/subscriptions/get.json
312
+ - test/fixtures/subscriptions/get_payments.json
314
313
  - test/helper.rb
315
- - test/run-test.rb
316
- - test/mollie/list_test.rb
317
- - test/mollie/invoice_test.rb
318
- - test/mollie/order/shipment_test.rb
319
- - test/mollie/order/line_test.rb
320
- - test/mollie/payment_test.rb
321
314
  - test/mollie/amount_test.rb
322
- - test/mollie/refund_test.rb
315
+ - test/mollie/base_test.rb
316
+ - test/mollie/chargeback_test.rb
317
+ - test/mollie/client_test.rb
318
+ - test/mollie/customer/mandate_test.rb
319
+ - test/mollie/customer/payment_test.rb
320
+ - test/mollie/customer/subscription_test.rb
321
+ - test/mollie/customer_test.rb
322
+ - test/mollie/invoice_test.rb
323
+ - test/mollie/list_test.rb
324
+ - test/mollie/method_test.rb
323
325
  - test/mollie/onboarding_test.rb
324
- - test/mollie/util_test.rb
325
- - test/mollie/settlement_test.rb
326
- - test/mollie/payment/refund_test.rb
327
- - test/mollie/payment/capture_test.rb
328
- - test/mollie/payment/chargeback_test.rb
326
+ - test/mollie/order/line_test.rb
327
+ - test/mollie/order/shipment_test.rb
329
328
  - test/mollie/order_test.rb
330
- - test/mollie/customer_test.rb
331
329
  - test/mollie/organization_test.rb
332
- - test/mollie/client_test.rb
330
+ - test/mollie/payment/capture_test.rb
331
+ - test/mollie/payment/chargeback_test.rb
332
+ - test/mollie/payment/refund_test.rb
333
+ - test/mollie/payment_test.rb
334
+ - test/mollie/permission_test.rb
333
335
  - test/mollie/profile_test.rb
336
+ - test/mollie/refund_test.rb
337
+ - test/mollie/settlement/chargeback_test.rb
334
338
  - test/mollie/settlement/payment_test.rb
335
339
  - test/mollie/settlement/refund_test.rb
336
- - test/mollie/settlement/chargeback_test.rb
337
- - test/mollie/chargeback_test.rb
338
- - test/mollie/customer/payment_test.rb
339
- - test/mollie/customer/subscription_test.rb
340
- - test/mollie/customer/mandate_test.rb
341
- - test/mollie/permission_test.rb
342
- - test/mollie/base_test.rb
343
- - test/mollie/method_test.rb
340
+ - test/mollie/settlement_test.rb
341
+ - test/mollie/util_test.rb
342
+ - test/run-test.rb