mangopay4-ruby-sdk 4.1.0 → 4.2.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: 043facedde7d0e2e39ee93b0725498ecd735f9b630d186118b9a61d07140296e
4
- data.tar.gz: b587b64329a5c61b09656b305e6fb8f08eed2a8b06ed4f5130567d3a1fd0548b
3
+ metadata.gz: 07eab6907304e0d4dba0e64a4622ffd1eee23cf88659f29ee651ddb5b2626f9c
4
+ data.tar.gz: 5dac81827d238ce53822eac8abe398e8d8ca04c6e86cdba41da8ac7d770fa003
5
5
  SHA512:
6
- metadata.gz: 4565aadf4d1a72baee4ca3b60c067e3479f01a79028bb00f38ce7d9bcb81329cff055d70c8dc82d37e676593a95956d19a4e19fec7b89127c9448128872e6659
7
- data.tar.gz: 8cc922b2fc56c0097abb4ef1031ea38d1e00f6ca43d9f87e0208167f186aada60a63455d8dc1d036fe2fc6fbac611ee504c26cccb2568eb2731140b195b6d93f
6
+ metadata.gz: 4c529e90aa87cdc669a2c7838d081b004d38e2a246105443a17eaaf59525e6f0c1837179fa244615cd226279acca5d250b35cce20197ec651cb09d34aa13a7d3
7
+ data.tar.gz: 0a124ac898c33a81401e602650bd9234b51c8a1c3511f2a35e724cd52baa6d8bec10e69a07eeb3da4e57aa18f7cfc6ca4048a00186c5baa779cd252c65907db5
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [4.2.0] - 2026-10-15
2
+ ### Added – Mandate recipients, PayIn Intents/Splits & Settlements listing
3
+ - Added `MangoPay::Mandate.fetch_for_recipient` to list the mandates belonging to a given user's recipient
4
+ - Added `MangoPay::PayIn::PayInIntent::Intent.get_all` to list pay-in intents
5
+ - Added `MangoPay::PayIn::PayInIntent::Split.get_all` to list pay-in intent splits
6
+ - Added `MangoPay::Settlement.get_all` to list settlements
7
+
1
8
  ## [4.1.0] - 2026-10-01
2
9
  ### Added – Extended Preauthorizations
3
10
  - Added `MangoPay::ExtendedPreauthorization` with:
@@ -27,6 +27,11 @@ module MangoPay
27
27
  MangoPay.request(:get, url, {}, filters)
28
28
  end
29
29
 
30
+ def fetch_for_recipient(user_id, recipient_id, filters = {})
31
+ url = "#{MangoPay.api_path}/users/#{user_id}/recipients/#{recipient_id}/mandates"
32
+ MangoPay.request(:get, url, {}, filters)
33
+ end
34
+
30
35
  # Fetches list of transactions belonging to given +mandate_id+.
31
36
  #
32
37
  # Optional +filters+ is a hash accepting following keys:
@@ -432,6 +432,10 @@ module MangoPay
432
432
  MangoPay.request(:get, "#{MangoPay.api_path_v3}/payins/intents/#{intent_id}")
433
433
  end
434
434
 
435
+ def get_all(filters = {})
436
+ MangoPay.request(:get, "#{MangoPay.api_path_v3}/payins/intents", {}, filters)
437
+ end
438
+
435
439
  def cancel(intent_id, params, idempotency_key = nil)
436
440
  MangoPay.request(:post, "#{MangoPay.api_path_v3}/payins/intents/#{intent_id}/cancel", params, {}, idempotency_key)
437
441
  end
@@ -460,6 +464,10 @@ module MangoPay
460
464
  MangoPay.request(:get, "#{MangoPay.api_path_v3}/payins/intents/#{intent_id}/splits/#{split_id}")
461
465
  end
462
466
 
467
+ def get_all(filters = {})
468
+ MangoPay.request(:get, "#{MangoPay.api_path_v3}/payins/intents/splits", {}, filters)
469
+ end
470
+
463
471
  def update(intent_id, split_id, params)
464
472
  MangoPay.request(:put, "#{MangoPay.api_path_v3}/payins/intents/#{intent_id}/splits/#{split_id}", params)
465
473
  end
@@ -12,6 +12,11 @@ module MangoPay
12
12
  MangoPay.request(:get, url)
13
13
  end
14
14
 
15
+ def get_all(filters = {})
16
+ url = "#{MangoPay.api_path_v3}/payins/intents/settlements"
17
+ MangoPay.request(:get, url, {}, filters)
18
+ end
19
+
15
20
  def generate_new_upload_url(settlement_id, settlement)
16
21
  url = "#{MangoPay.api_path_v3}/payins/intents/settlements/#{settlement_id}"
17
22
  MangoPay.request(:put, url, settlement, {})
@@ -1,3 +1,3 @@
1
1
  module MangoPay
2
- VERSION = '4.1.0'
2
+ VERSION = '4.2.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mangopay4-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geoffroy Lorieux
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-10-01 00:00:00.000000000 Z
12
+ date: 2026-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json