moov_ruby 25.8.18 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a352a97c12b31e18ef40a82b29242d42ce1eaa14953d3bbbfb1a17a3ddd92a99
4
- data.tar.gz: 289c094d7969abefd458a7ff38d097517877cc222613acde86d7aecd8e4f37c2
3
+ metadata.gz: 2e2b904bc0d38657c5bf900b865312e2f0f2f16392486763737b7aeb80f55c7c
4
+ data.tar.gz: 535b9c15021fb0f4741cd99c8c1ebd39836d24224541326b2a97032f44641081
5
5
  SHA512:
6
- metadata.gz: c2f749cd5c2a60862aab10d2b7eece7a74cac862d94583e7c388e15dc19e21841d755be1da20432fca71d3d6845f1779c94729a4c56f19685d84e88f003fd0e6
7
- data.tar.gz: 7984f6e5ca752eddef7eb8f284cc2632de2dac6650002132fcac38a7f5a3ab558c8ef98bda639ce2f4638ae1917c4c47998062fd5d984f01c4dc543fa7455e05
6
+ metadata.gz: 0e39ee09d7a99e683bc3397afba4f26dee99710b51d4e59aefec2a8333852c74dc0c416f4dd7f42737f905d5bac5883606ce5f025cb5fedecbf77cf48a9338af
7
+ data.tar.gz: 50a6ef49396c0e03275c82dab5b752c36e67c098922dbee9b0fd2330490a9c1309656f4830c609a788e0a18f9fb49650f6b53167324d9e8c68ce37e00fd31d75
@@ -26,6 +26,7 @@ module Moov
26
26
  SOURCE_SETTLED = new('source.settled')
27
27
  SOURCE_FAILED = new('source.failed')
28
28
  SOURCE_CANCELED = new('source.canceled')
29
+ SOURCE_CLEARED_EXTERNALLY = new('source.cleared-externally')
29
30
  DESTINATION_COMPLETED = new('destination.completed')
30
31
  DESTINATION_CORRECTED = new('destination.corrected')
31
32
  DESTINATION_INITIATED = new('destination.initiated')
@@ -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
@@ -12,4 +12,6 @@ class Moov::Models::Operations::CreateCancellationRequest
12
12
  def account_id=(str_); end
13
13
  def transfer_id(); end
14
14
  def transfer_id=(str_); end
15
+ def x_idempotency_key(); end
16
+ def x_idempotency_key=(str_); end
15
17
  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
- # The merchant's Moov account ID.
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 } }
@@ -36,6 +36,8 @@ module Moov
36
36
  field :foreign_id, Crystalline::Nilable.new(::String), { 'query_param': { 'field_name': 'foreignID', 'style': 'form', 'explode': false } }
37
37
  # Optional comma-separated authorization IDs.
38
38
  field :authorization_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'query_param': { 'field_name': 'authorizationIDs', 'style': 'form', 'explode': false } }
39
+ # Optional comma-separated invoice IDs.
40
+ field :invoice_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'query_param': { 'field_name': 'invoiceIDs', 'style': 'form', 'explode': false } }
39
41
  # Optional comma-separated IDs to filter for transfers associated with specific card captures.
40
42
  field :capture_i_ds, Crystalline::Nilable.new(Crystalline::Array.new(::String)), { 'query_param': { 'field_name': 'captureIDs', 'style': 'form', 'explode': false } }
41
43
 
@@ -43,8 +45,8 @@ module Moov
43
45
  # Page size. When omitted, the server defaults to `200`.
44
46
  field :count, Crystalline::Nilable.new(::Integer), { 'query_param': { 'field_name': 'count', 'style': 'form', 'explode': false } }
45
47
 
46
- sig { params(account_id: ::String, account_i_ds: T.nilable(T::Array[::String]), status: T.nilable(Models::Components::TransferStatus), start_date_time: T.nilable(::DateTime), end_date_time: T.nilable(::DateTime), group_id: T.nilable(::String), schedule_id: T.nilable(::String), payment_link_code: T.nilable(::String), refunded: T.nilable(T::Boolean), disputed: T.nilable(T::Boolean), foreign_id: T.nilable(::String), authorization_i_ds: T.nilable(T::Array[::String]), capture_i_ds: T.nilable(T::Array[::String]), skip: T.nilable(::Integer), count: T.nilable(::Integer)).void }
47
- def initialize(account_id:, account_i_ds: nil, status: nil, start_date_time: nil, end_date_time: nil, group_id: nil, schedule_id: nil, payment_link_code: nil, refunded: nil, disputed: nil, foreign_id: nil, authorization_i_ds: nil, capture_i_ds: nil, skip: nil, count: nil)
48
+ sig { params(account_id: ::String, account_i_ds: T.nilable(T::Array[::String]), status: T.nilable(Models::Components::TransferStatus), start_date_time: T.nilable(::DateTime), end_date_time: T.nilable(::DateTime), group_id: T.nilable(::String), schedule_id: T.nilable(::String), payment_link_code: T.nilable(::String), refunded: T.nilable(T::Boolean), disputed: T.nilable(T::Boolean), foreign_id: T.nilable(::String), authorization_i_ds: T.nilable(T::Array[::String]), invoice_i_ds: T.nilable(T::Array[::String]), capture_i_ds: T.nilable(T::Array[::String]), skip: T.nilable(::Integer), count: T.nilable(::Integer)).void }
49
+ def initialize(account_id:, account_i_ds: nil, status: nil, start_date_time: nil, end_date_time: nil, group_id: nil, schedule_id: nil, payment_link_code: nil, refunded: nil, disputed: nil, foreign_id: nil, authorization_i_ds: nil, invoice_i_ds: nil, capture_i_ds: nil, skip: nil, count: nil)
48
50
  @account_id = account_id
49
51
  @account_i_ds = account_i_ds
50
52
  @status = status
@@ -57,6 +59,7 @@ module Moov
57
59
  @disputed = disputed
58
60
  @foreign_id = foreign_id
59
61
  @authorization_i_ds = authorization_i_ds
62
+ @invoice_i_ds = invoice_i_ds
60
63
  @capture_i_ds = capture_i_ds
61
64
  @skip = skip
62
65
  @count = count
@@ -77,6 +80,7 @@ module Moov
77
80
  return false unless @disputed == other.disputed
78
81
  return false unless @foreign_id == other.foreign_id
79
82
  return false unless @authorization_i_ds == other.authorization_i_ds
83
+ return false unless @invoice_i_ds == other.invoice_i_ds
80
84
  return false unless @capture_i_ds == other.capture_i_ds
81
85
  return false unless @skip == other.skip
82
86
  return false unless @count == other.count
@@ -32,6 +32,8 @@ class Moov::Models::Operations::ListTransfersRequest
32
32
  def foreign_id=(str_); end
33
33
  def authorization_i_ds(); end
34
34
  def authorization_i_ds=(str_); end
35
+ def invoice_i_ds(); end
36
+ def invoice_i_ds=(str_); end
35
37
  def capture_i_ds(); end
36
38
  def capture_i_ds=(str_); end
37
39
  def skip(); end
@@ -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.18'
92
- @gen_version = '2.938.0'
93
- @user_agent = 'speakeasy-sdk/ruby 25.8.18 2.938.0 v2025.07.00 moov_ruby'
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]]) }
@@ -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.18
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-09-18 00:00:00.000000000 Z
11
+ date: 2026-10-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64