moov_ruby 25.8.19 → 25.8.20
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 +4 -4
- data/lib/moov/models/operations/createcancellation_request.rb +7 -2
- data/lib/moov/models/operations/createcancellation_request.rbi +2 -0
- data/lib/moov/models/operations/initiaterefund_request.rb +1 -1
- data/lib/moov/sdkconfiguration.rb +3 -3
- data/lib/moov/transfers.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e2b904bc0d38657c5bf900b865312e2f0f2f16392486763737b7aeb80f55c7c
|
|
4
|
+
data.tar.gz: 535b9c15021fb0f4741cd99c8c1ebd39836d24224541326b2a97032f44641081
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0e39ee09d7a99e683bc3397afba4f26dee99710b51d4e59aefec2a8333852c74dc0c416f4dd7f42737f905d5bac5883606ce5f025cb5fedecbf77cf48a9338af
|
|
7
|
+
data.tar.gz: 50a6ef49396c0e03275c82dab5b752c36e67c098922dbee9b0fd2330490a9c1309656f4830c609a788e0a18f9fb49650f6b53167324d9e8c68ce37e00fd31d75
|
|
@@ -16,11 +16,15 @@ module Moov
|
|
|
16
16
|
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
17
17
|
# The transfer ID to cancel.
|
|
18
18
|
field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
|
|
19
|
+
# Prevents duplicate cancellations from being created.
|
|
20
|
+
# In v2026.10 and later, this header is required, and reusing a key returns a `409` response with the original cancellation.
|
|
21
|
+
field :x_idempotency_key, Crystalline::Nilable.new(::String), { 'header': { 'field_name': 'x-idempotency-key', 'style': 'simple', 'explode': false } }
|
|
19
22
|
|
|
20
|
-
sig { params(account_id: ::String, transfer_id: ::String).void }
|
|
21
|
-
def initialize(account_id:, transfer_id:)
|
|
23
|
+
sig { params(account_id: ::String, transfer_id: ::String, x_idempotency_key: T.nilable(::String)).void }
|
|
24
|
+
def initialize(account_id:, transfer_id:, x_idempotency_key: nil)
|
|
22
25
|
@account_id = account_id
|
|
23
26
|
@transfer_id = transfer_id
|
|
27
|
+
@x_idempotency_key = x_idempotency_key
|
|
24
28
|
end
|
|
25
29
|
|
|
26
30
|
sig { params(other: T.untyped).returns(T::Boolean) }
|
|
@@ -28,6 +32,7 @@ module Moov
|
|
|
28
32
|
return false unless other.is_a? self.class
|
|
29
33
|
return false unless @account_id == other.account_id
|
|
30
34
|
return false unless @transfer_id == other.transfer_id
|
|
35
|
+
return false unless @x_idempotency_key == other.x_idempotency_key
|
|
31
36
|
true
|
|
32
37
|
end
|
|
33
38
|
end
|
|
@@ -14,7 +14,7 @@ module Moov
|
|
|
14
14
|
|
|
15
15
|
# Prevents duplicate refunds from being created.
|
|
16
16
|
field :x_idempotency_key, ::String, { 'header': { 'field_name': 'x-idempotency-key', 'style': 'simple', 'explode': false } }
|
|
17
|
-
#
|
|
17
|
+
# Moov account ID of the partner for the transfer.
|
|
18
18
|
field :account_id, ::String, { 'path_param': { 'field_name': 'accountID', 'style': 'simple', 'explode': false } }
|
|
19
19
|
# Identifier for the transfer.
|
|
20
20
|
field :transfer_id, ::String, { 'path_param': { 'field_name': 'transferID', 'style': 'simple', 'explode': false } }
|
|
@@ -88,9 +88,9 @@ module Moov
|
|
|
88
88
|
end
|
|
89
89
|
@language = 'ruby'
|
|
90
90
|
@openapi_doc_version = 'v2025.07.00'
|
|
91
|
-
@sdk_version = '25.8.
|
|
92
|
-
@gen_version = '2.
|
|
93
|
-
@user_agent = 'speakeasy-sdk/ruby 25.8.
|
|
91
|
+
@sdk_version = '25.8.20'
|
|
92
|
+
@gen_version = '2.950.2'
|
|
93
|
+
@user_agent = 'speakeasy-sdk/ruby 25.8.20 2.950.2 v2025.07.00 moov_ruby'
|
|
94
94
|
end
|
|
95
95
|
|
|
96
96
|
sig { returns([String, T::Hash[Symbol, String]]) }
|
data/lib/moov/transfers.rb
CHANGED
|
@@ -1000,8 +1000,8 @@ module Moov
|
|
|
1000
1000
|
end
|
|
1001
1001
|
|
|
1002
1002
|
|
|
1003
|
-
sig { params(account_id: ::String, transfer_id: ::String, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateCancellationResponse) }
|
|
1004
|
-
def create_cancellation(account_id:, transfer_id:, timeout_ms: nil, http_headers: nil)
|
|
1003
|
+
sig { params(account_id: ::String, transfer_id: ::String, x_idempotency_key: T.nilable(::String), timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::CreateCancellationResponse) }
|
|
1004
|
+
def create_cancellation(account_id:, transfer_id:, x_idempotency_key: nil, timeout_ms: nil, http_headers: nil)
|
|
1005
1005
|
# create_cancellation - Initiate a cancellation for a card, ACH, or queued transfer.
|
|
1006
1006
|
#
|
|
1007
1007
|
# In v2026.10 and later, an auth-capture `card-payment` transfer can be canceled before any captures exist.
|
|
@@ -1011,7 +1011,8 @@ module Moov
|
|
|
1011
1011
|
# to specify the `/accounts/{accountID}/transfers.write` scope.
|
|
1012
1012
|
request = Models::Operations::CreateCancellationRequest.new(
|
|
1013
1013
|
account_id: account_id,
|
|
1014
|
-
transfer_id: transfer_id
|
|
1014
|
+
transfer_id: transfer_id,
|
|
1015
|
+
x_idempotency_key: x_idempotency_key
|
|
1015
1016
|
)
|
|
1016
1017
|
url, params = @sdk_configuration.get_server_details
|
|
1017
1018
|
base_url = Utils.template_url(url, params)
|
|
@@ -1021,7 +1022,7 @@ module Moov
|
|
|
1021
1022
|
'/accounts/{accountID}/transfers/{transferID}/cancellations',
|
|
1022
1023
|
request
|
|
1023
1024
|
)
|
|
1024
|
-
headers =
|
|
1025
|
+
headers = Utils.get_headers(request)
|
|
1025
1026
|
headers = T.cast(headers, T::Hash[String, String])
|
|
1026
1027
|
headers['Accept'] = 'application/json'
|
|
1027
1028
|
headers['user-agent'] = @sdk_configuration.user_agent
|
|
@@ -1391,6 +1392,7 @@ module Moov
|
|
|
1391
1392
|
sig { params(request: Models::Operations::InitiateRefundRequest, timeout_ms: T.nilable(Integer), http_headers: T.nilable(T::Hash[T.any(String, Symbol), String])).returns(Models::Operations::InitiateRefundResponse) }
|
|
1392
1393
|
def initiate_refund(request:, timeout_ms: nil, http_headers: nil)
|
|
1393
1394
|
# initiate_refund - Initiate a refund for a card transfer.
|
|
1395
|
+
# The `accountID` must identify the partner account for the transfer.
|
|
1394
1396
|
#
|
|
1395
1397
|
# **Use the [Cancel or refund a card transfer](https://docs.moov.io/api/money-movement/refunds/cancel/) endpoint for more comprehensive cancel and refund options.**
|
|
1396
1398
|
# See the [reversals](https://docs.moov.io/guides/money-movement/accept-payments/card-acceptance/reversals/) guide for more information.
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: moov_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 25.8.
|
|
4
|
+
version: 25.8.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Speakeasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|