straddle_pay 0.3.0 → 0.3.1

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: 35b268470e5133d654d67346a63b4f4894e8c0e2eef3dba5a9d96fed73597ed1
4
- data.tar.gz: 9283c984a2a944ad673a3a3aa2d851d1ed9b62b76268472e38858be35317616a
3
+ metadata.gz: 59b0b4eb48f42463dde20980f50d27894e5602ab56fffe9c52b53d4696dadcd3
4
+ data.tar.gz: b9e4de1c41bcdfc23ca7d036ca704f0430ffb4a4f8a1dda28671d817ec635fa3
5
5
  SHA512:
6
- metadata.gz: f69d2db69c73cf79d3a88cc1c9be12f0a2bcd7490e30dd8bda952a1f7564c11bfe502268330345ca4ef34ca0c8a10a2d7ec5d776f4676bc2dd26a2f9e185b568
7
- data.tar.gz: f38ef5de026721e84cad8e04cfe3843355d465e6df7af0168bd393a6f9422df6eef40396ada24a209c1f9830448a3c5d10811b479325aab03da436771ae14330
6
+ metadata.gz: 4e2f7a0cc87f5c0392662dd60abde5bd9e5ebbbda2b311fccea507a224a9e27e4e5f9bef9175f68c90959dc05bfb1a2ceaf3ad4d01dd81ab65cb4ee32cbfcf6c
7
+ data.tar.gz: fbd03f59e9c9d29ac3804196675bbdfa01a3e23bae7962da89f273ac135f6b1eab2e13c0ee0dcbd4b9ca6c341da41f7f2e2e2071a1fa7566eec3a197ff62f5f1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.3.1] - 2026-02-23
2
+
3
+ ### Fixed
4
+ - `Paykeys#review` now requires `status:` keyword argument, matching `CustomerReviews#decision` pattern and the API contract
5
+
1
6
  ## [0.3.0] - 2026-02-20
2
7
 
3
8
  ### Changed
@@ -48,14 +48,15 @@ module StraddlePay
48
48
  @client.put("v1/paykeys/#{id}/cancel", options, headers: headers)
49
49
  end
50
50
 
51
- # Submit a paykey for review.
51
+ # Submit a review decision for a paykey.
52
52
  #
53
53
  # @param id [String] paykey ID
54
- # @return [Hash] review result
55
- # @note Backward compatible method for status updates while in review state.
56
- def review(id, **options)
57
- headers = extract_headers(options)
58
- @client.patch("v1/paykeys/#{id}/review", options, headers: headers)
54
+ # @param status [String] decision status (e.g. "approved", "rejected")
55
+ # @return [Hash] updated paykey
56
+ def review(id, status:, **options)
57
+ payload = { status: status, **options }.compact
58
+ headers = extract_headers(payload)
59
+ @client.patch("v1/paykeys/#{id}/review", payload, headers: headers)
59
60
  end
60
61
 
61
62
  # Get the current review details for a paykey.
@@ -2,5 +2,5 @@
2
2
 
3
3
  module StraddlePay
4
4
  # @return [String] current gem version
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: straddle_pay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - dpaluy