increase 1.78.0 → 1.80.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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +17 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +0 -4
  5. data/lib/increase/errors.rb +25 -11
  6. data/lib/increase/internal/page.rb +1 -1
  7. data/lib/increase/internal/transport/base_client.rb +11 -7
  8. data/lib/increase/internal/type/base_page.rb +1 -1
  9. data/lib/increase/internal/util.rb +1 -1
  10. data/lib/increase/models/declined_transaction.rb +68 -1
  11. data/lib/increase/models/declined_transaction_list_params.rb +3 -0
  12. data/lib/increase/models/event.rb +6 -0
  13. data/lib/increase/models/event_list_params.rb +6 -0
  14. data/lib/increase/models/event_subscription.rb +6 -0
  15. data/lib/increase/models/event_subscription_create_params.rb +6 -0
  16. data/lib/increase/models/transaction.rb +39 -28
  17. data/lib/increase/models/transaction_list_params.rb +3 -0
  18. data/lib/increase/models.rb +0 -8
  19. data/lib/increase/resources/simulations.rb +0 -4
  20. data/lib/increase/version.rb +1 -1
  21. data/lib/increase.rb +0 -7
  22. data/rbi/increase/client.rbi +0 -3
  23. data/rbi/increase/errors.rbi +29 -2
  24. data/rbi/increase/internal/transport/base_client.rbi +4 -5
  25. data/rbi/increase/internal/type/base_page.rbi +1 -1
  26. data/rbi/increase/internal/util.rbi +1 -1
  27. data/rbi/increase/models/declined_transaction.rbi +159 -0
  28. data/rbi/increase/models/declined_transaction_list_params.rbi +7 -0
  29. data/rbi/increase/models/event.rbi +14 -0
  30. data/rbi/increase/models/event_list_params.rbi +14 -0
  31. data/rbi/increase/models/event_subscription.rbi +14 -0
  32. data/rbi/increase/models/event_subscription_create_params.rbi +14 -0
  33. data/rbi/increase/models/transaction.rbi +80 -39
  34. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  35. data/rbi/increase/models.rbi +0 -8
  36. data/rbi/increase/resources/simulations.rbi +0 -3
  37. data/sig/increase/client.rbs +0 -2
  38. data/sig/increase/errors.rbs +7 -0
  39. data/sig/increase/models/declined_transaction.rbs +63 -0
  40. data/sig/increase/models/declined_transaction_list_params.rbs +4 -0
  41. data/sig/increase/models/event.rbs +8 -0
  42. data/sig/increase/models/event_list_params.rbs +8 -0
  43. data/sig/increase/models/event_subscription.rbs +8 -0
  44. data/sig/increase/models/event_subscription_create_params.rbs +8 -0
  45. data/sig/increase/models/transaction.rbs +23 -28
  46. data/sig/increase/models/transaction_list_params.rbs +4 -0
  47. data/sig/increase/models.rbs +0 -8
  48. data/sig/increase/resources/simulations.rbs +0 -2
  49. metadata +2 -23
  50. data/lib/increase/models/card_dispute.rb +0 -302
  51. data/lib/increase/models/card_dispute_create_params.rb +0 -45
  52. data/lib/increase/models/card_dispute_list_params.rb +0 -144
  53. data/lib/increase/models/card_dispute_retrieve_params.rb +0 -14
  54. data/lib/increase/models/simulations/card_dispute_action_params.rb +0 -55
  55. data/lib/increase/resources/card_disputes.rb +0 -97
  56. data/lib/increase/resources/simulations/card_disputes.rb +0 -45
  57. data/rbi/increase/models/card_dispute.rbi +0 -425
  58. data/rbi/increase/models/card_dispute_create_params.rbi +0 -70
  59. data/rbi/increase/models/card_dispute_list_params.rbi +0 -289
  60. data/rbi/increase/models/card_dispute_retrieve_params.rbi +0 -30
  61. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +0 -124
  62. data/rbi/increase/resources/card_disputes.rbi +0 -78
  63. data/rbi/increase/resources/simulations/card_disputes.rbi +0 -38
  64. data/sig/increase/models/card_dispute.rbs +0 -207
  65. data/sig/increase/models/card_dispute_create_params.rbs +0 -34
  66. data/sig/increase/models/card_dispute_list_params.rbs +0 -146
  67. data/sig/increase/models/card_dispute_retrieve_params.rbs +0 -15
  68. data/sig/increase/models/simulations/card_dispute_action_params.rbs +0 -59
  69. data/sig/increase/resources/card_disputes.rbs +0 -28
  70. data/sig/increase/resources/simulations/card_disputes.rbs +0 -16
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24c16839add9c7242cea41b16af8640f01b8a5954381b3c85fe85bf8f2f5ea3c
4
- data.tar.gz: 9ef32e737872f39e2f4706f3348eaba7a6d4116cbf31446bafb25d549db39868
3
+ metadata.gz: 343135fffc41b357e677430877e8f571307fdafda068ee5583351c66765b6b1c
4
+ data.tar.gz: 2e0b9b79252c7a672a4453b89fd35c305a4260fd52d1e5569c674d796bd0edc6
5
5
  SHA512:
6
- metadata.gz: cb2e299e430a1261d9086000928215a808be762917187d289dd86834407d940c8c2a017b34cb56cf0e4edc01e7f78e75aa2e2f01a1300cfb11cbc7533a3c3fb2
7
- data.tar.gz: 900a6fff1143f8c9e17046910787c197386a23c981e5aec5e619c3afce54615b36f66da3d9dc02970ccf9c4858b9af00cfe05cb00883a9f43ea603993301b1ee
6
+ metadata.gz: a724cffb3e3eca6f5479c67de7d70eb70e23b8d97b956b95644b91675d7e176c7cc6a28a604edd96aacf9d8593941902a6b5d852a9d70f5cd46cf713c8c3d14b
7
+ data.tar.gz: 78b5e798bde64c975949c74a4cf4550b0f8b18da78fd6db8d1456de59f65836a4f844b4c8e00c513941dc37dd18e1ae658c18c2b3d36ea6f1198196c55b08b84
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.80.0 (2025-09-17)
4
+
5
+ Full Changelog: [v1.79.0...v1.80.0](https://github.com/Increase/increase-ruby/compare/v1.79.0...v1.80.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([d16cb6a](https://github.com/Increase/increase-ruby/commit/d16cb6abc1e6f4ca71d86374cde091360d657602))
10
+ * expose response headers for both streams and errors ([17ddacf](https://github.com/Increase/increase-ruby/commit/17ddacf1c78a6f3e52a2f007d8efebab892db46e))
11
+
12
+ ## 1.79.0 (2025-09-17)
13
+
14
+ Full Changelog: [v1.78.0...v1.79.0](https://github.com/Increase/increase-ruby/compare/v1.78.0...v1.79.0)
15
+
16
+ ### Features
17
+
18
+ * **api:** api update ([c64de91](https://github.com/Increase/increase-ruby/commit/c64de918f9abb0fbe0eb7dfbaee91f3f773331c7))
19
+
3
20
  ## 1.78.0 (2025-09-16)
4
21
 
5
22
  Full Changelog: [v1.77.0...v1.78.0](https://github.com/Increase/increase-ruby/compare/v1.77.0...v1.78.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.78.0"
18
+ gem "increase", "~> 1.80.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -41,9 +41,6 @@ module Increase
41
41
  # @return [Increase::Resources::CardPurchaseSupplements]
42
42
  attr_reader :card_purchase_supplements
43
43
 
44
- # @return [Increase::Resources::CardDisputes]
45
- attr_reader :card_disputes
46
-
47
44
  # @return [Increase::Resources::PhysicalCards]
48
45
  attr_reader :physical_cards
49
46
 
@@ -256,7 +253,6 @@ module Increase
256
253
  @cards = Increase::Resources::Cards.new(client: self)
257
254
  @card_payments = Increase::Resources::CardPayments.new(client: self)
258
255
  @card_purchase_supplements = Increase::Resources::CardPurchaseSupplements.new(client: self)
259
- @card_disputes = Increase::Resources::CardDisputes.new(client: self)
260
256
  @physical_cards = Increase::Resources::PhysicalCards.new(client: self)
261
257
  @digital_card_profiles = Increase::Resources::DigitalCardProfiles.new(client: self)
262
258
  @physical_card_profiles = Increase::Resources::PhysicalCardProfiles.new(client: self)
@@ -40,6 +40,9 @@ module Increase
40
40
  # @return [Integer, nil]
41
41
  attr_accessor :status
42
42
 
43
+ # @return [Hash{String=>String}, nil]
44
+ attr_accessor :headers
45
+
43
46
  # @return [Object, nil]
44
47
  attr_accessor :body
45
48
 
@@ -47,13 +50,15 @@ module Increase
47
50
  #
48
51
  # @param url [URI::Generic]
49
52
  # @param status [Integer, nil]
53
+ # @param headers [Hash{String=>String}, nil]
50
54
  # @param body [Object, nil]
51
55
  # @param request [nil]
52
56
  # @param response [nil]
53
57
  # @param message [String, nil]
54
- def initialize(url:, status: nil, body: nil, request: nil, response: nil, message: nil)
58
+ def initialize(url:, status: nil, headers: nil, body: nil, request: nil, response: nil, message: nil)
55
59
  @url = url
56
60
  @status = status
61
+ @headers = headers
57
62
  @body = body
58
63
  @request = request
59
64
  @response = response
@@ -74,6 +79,7 @@ module Increase
74
79
  #
75
80
  # @param url [URI::Generic]
76
81
  # @param status [nil]
82
+ # @param headers [Hash{String=>String}, nil]
77
83
  # @param body [nil]
78
84
  # @param request [nil]
79
85
  # @param response [nil]
@@ -81,6 +87,7 @@ module Increase
81
87
  def initialize(
82
88
  url:,
83
89
  status: nil,
90
+ headers: nil,
84
91
  body: nil,
85
92
  request: nil,
86
93
  response: nil,
@@ -95,6 +102,7 @@ module Increase
95
102
  #
96
103
  # @param url [URI::Generic]
97
104
  # @param status [nil]
105
+ # @param headers [Hash{String=>String}, nil]
98
106
  # @param body [nil]
99
107
  # @param request [nil]
100
108
  # @param response [nil]
@@ -102,6 +110,7 @@ module Increase
102
110
  def initialize(
103
111
  url:,
104
112
  status: nil,
113
+ headers: nil,
105
114
  body: nil,
106
115
  request: nil,
107
116
  response: nil,
@@ -116,22 +125,25 @@ module Increase
116
125
  #
117
126
  # @param url [URI::Generic]
118
127
  # @param status [Integer]
128
+ # @param headers [Hash{String=>String}, nil]
119
129
  # @param body [Object, nil]
120
130
  # @param request [nil]
121
131
  # @param response [nil]
122
132
  # @param message [String, nil]
123
133
  #
124
134
  # @return [self]
125
- def self.for(url:, status:, body:, request:, response:, message: nil)
135
+ def self.for(url:, status:, headers:, body:, request:, response:, message: nil)
126
136
  key = Increase::Internal::Util.dig(body, :type)
127
- kwargs = {
128
- url: url,
129
- status: status,
130
- body: body,
131
- request: request,
132
- response: response,
133
- message: message
134
- }
137
+ kwargs =
138
+ {
139
+ url: url,
140
+ status: status,
141
+ headers: headers,
142
+ body: body,
143
+ request: request,
144
+ response: response,
145
+ message: message
146
+ }
135
147
 
136
148
  case [status, key]
137
149
  in [400, Increase::Errors::InvalidParametersError::TYPE]
@@ -185,15 +197,17 @@ module Increase
185
197
  #
186
198
  # @param url [URI::Generic]
187
199
  # @param status [Integer]
200
+ # @param headers [Hash{String=>String}, nil]
188
201
  # @param body [Object, nil]
189
202
  # @param request [nil]
190
203
  # @param response [nil]
191
204
  # @param message [String, nil]
192
- def initialize(url:, status:, body:, request:, response:, message: nil)
205
+ def initialize(url:, status:, headers:, body:, request:, response:, message: nil)
193
206
  message ||= {url: url.to_s, status: status, body: body}
194
207
  super(
195
208
  url: url,
196
209
  status: status,
210
+ headers: headers,
197
211
  body: body,
198
212
  request: request,
199
213
  response: response,
@@ -60,7 +60,7 @@ module Increase
60
60
  #
61
61
  # @param client [Increase::Internal::Transport::BaseClient]
62
62
  # @param req [Hash{Symbol=>Object}]
63
- # @param headers [Hash{String=>String}, Net::HTTPHeader]
63
+ # @param headers [Hash{String=>String}]
64
64
  # @param page_data [Hash{Symbol=>Object}]
65
65
  def initialize(client:, req:, headers:, page_data:)
66
66
  super
@@ -47,7 +47,7 @@ module Increase
47
47
  # @api private
48
48
  #
49
49
  # @param status [Integer]
50
- # @param headers [Hash{String=>String}, Net::HTTPHeader]
50
+ # @param headers [Hash{String=>String}]
51
51
  #
52
52
  # @return [Boolean]
53
53
  def should_retry?(status, headers:)
@@ -85,7 +85,7 @@ module Increase
85
85
  #
86
86
  # @param status [Integer]
87
87
  #
88
- # @param response_headers [Hash{String=>String}, Net::HTTPHeader]
88
+ # @param response_headers [Hash{String=>String}]
89
89
  #
90
90
  # @return [Hash{Symbol=>Object}]
91
91
  def follow_redirect(request, status:, response_headers:)
@@ -378,6 +378,7 @@ module Increase
378
378
  rescue Increase::Errors::APIConnectionError => e
379
379
  status = e
380
380
  end
381
+ headers = Increase::Internal::Util.normalized_headers(response&.each_header&.to_h)
381
382
 
382
383
  case status
383
384
  in ..299
@@ -390,7 +391,7 @@ module Increase
390
391
  in 300..399
391
392
  self.class.reap_connection!(status, stream: stream)
392
393
 
393
- request = self.class.follow_redirect(request, status: status, response_headers: response)
394
+ request = self.class.follow_redirect(request, status: status, response_headers: headers)
394
395
  send_request(
395
396
  request,
396
397
  redirect_count: redirect_count + 1,
@@ -399,9 +400,9 @@ module Increase
399
400
  )
400
401
  in Increase::Errors::APIConnectionError if retry_count >= max_retries
401
402
  raise status
402
- in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: response)
403
+ in (400..) if retry_count >= max_retries || !self.class.should_retry?(status, headers: headers)
403
404
  decoded = Kernel.then do
404
- Increase::Internal::Util.decode_content(response, stream: stream, suppress_error: true)
405
+ Increase::Internal::Util.decode_content(headers, stream: stream, suppress_error: true)
405
406
  ensure
406
407
  self.class.reap_connection!(status, stream: stream)
407
408
  end
@@ -409,6 +410,7 @@ module Increase
409
410
  raise Increase::Errors::APIStatusError.for(
410
411
  url: url,
411
412
  status: status,
413
+ headers: headers,
412
414
  body: decoded,
413
415
  request: nil,
414
416
  response: response
@@ -485,19 +487,21 @@ module Increase
485
487
  send_retry_header: send_retry_header
486
488
  )
487
489
 
488
- decoded = Increase::Internal::Util.decode_content(response, stream: stream)
490
+ headers = Increase::Internal::Util.normalized_headers(response.each_header.to_h)
491
+ decoded = Increase::Internal::Util.decode_content(headers, stream: stream)
489
492
  case req
490
493
  in {stream: Class => st}
491
494
  st.new(
492
495
  model: model,
493
496
  url: url,
494
497
  status: status,
498
+ headers: headers,
495
499
  response: response,
496
500
  unwrap: unwrap,
497
501
  stream: decoded
498
502
  )
499
503
  in {page: Class => page}
500
- page.new(client: self, req: req, headers: response, page_data: decoded)
504
+ page.new(client: self, req: req, headers: headers, page_data: decoded)
501
505
  else
502
506
  unwrapped = Increase::Internal::Util.dig(decoded, unwrap)
503
507
  Increase::Internal::Type::Converter.coerce(model, unwrapped)
@@ -39,7 +39,7 @@ module Increase
39
39
  #
40
40
  # @param client [Increase::Internal::Transport::BaseClient]
41
41
  # @param req [Hash{Symbol=>Object}]
42
- # @param headers [Hash{String=>String}, Net::HTTPHeader]
42
+ # @param headers [Hash{String=>String}]
43
43
  # @param page_data [Object]
44
44
  def initialize(client:, req:, headers:, page_data:)
45
45
  @client = client
@@ -647,7 +647,7 @@ module Increase
647
647
  #
648
648
  # Assumes each chunk in stream has `Encoding::BINARY`.
649
649
  #
650
- # @param headers [Hash{String=>String}, Net::HTTPHeader]
650
+ # @param headers [Hash{String=>String}]
651
651
  # @param stream [Enumerable<String>]
652
652
  # @param suppress_error [Boolean]
653
653
  #
@@ -190,6 +190,16 @@ module Increase
190
190
  -> { Increase::DeclinedTransaction::Source::CheckDepositRejection },
191
191
  nil?: true
192
192
 
193
+ # @!attribute inbound_fednow_transfer_decline
194
+ # An Inbound FedNow Transfer Decline object. This field will be present in the
195
+ # JSON response if and only if `category` is equal to
196
+ # `inbound_fednow_transfer_decline`.
197
+ #
198
+ # @return [Increase::Models::DeclinedTransaction::Source::InboundFednowTransferDecline, nil]
199
+ required :inbound_fednow_transfer_decline,
200
+ -> { Increase::DeclinedTransaction::Source::InboundFednowTransferDecline },
201
+ nil?: true
202
+
193
203
  # @!attribute inbound_real_time_payments_transfer_decline
194
204
  # An Inbound Real-Time Payments Transfer Decline object. This field will be
195
205
  # present in the JSON response if and only if `category` is equal to
@@ -214,7 +224,7 @@ module Increase
214
224
  # @return [Increase::Models::DeclinedTransaction::Source::WireDecline, nil]
215
225
  required :wire_decline, -> { Increase::DeclinedTransaction::Source::WireDecline }, nil?: true
216
226
 
217
- # @!method initialize(ach_decline:, card_decline:, category:, check_decline:, check_deposit_rejection:, inbound_real_time_payments_transfer_decline:, other:, wire_decline:)
227
+ # @!method initialize(ach_decline:, card_decline:, category:, check_decline:, check_deposit_rejection:, inbound_fednow_transfer_decline:, inbound_real_time_payments_transfer_decline:, other:, wire_decline:)
218
228
  # Some parameter documentations has been truncated, see
219
229
  # {Increase::Models::DeclinedTransaction::Source} for more details.
220
230
  #
@@ -234,6 +244,8 @@ module Increase
234
244
  #
235
245
  # @param check_deposit_rejection [Increase::Models::DeclinedTransaction::Source::CheckDepositRejection, nil] A Check Deposit Rejection object. This field will be present in the JSON respons
236
246
  #
247
+ # @param inbound_fednow_transfer_decline [Increase::Models::DeclinedTransaction::Source::InboundFednowTransferDecline, nil] An Inbound FedNow Transfer Decline object. This field will be present in the JSO
248
+ #
237
249
  # @param inbound_real_time_payments_transfer_decline [Increase::Models::DeclinedTransaction::Source::InboundRealTimePaymentsTransferDecline, nil] An Inbound Real-Time Payments Transfer Decline object. This field will be presen
238
250
  #
239
251
  # @param other [Object, nil] If the category of this Transaction source is equal to `other`, this field will
@@ -1644,6 +1656,9 @@ module Increase
1644
1656
  # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object.
1645
1657
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = :inbound_real_time_payments_transfer_decline
1646
1658
 
1659
+ # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.
1660
+ INBOUND_FEDNOW_TRANSFER_DECLINE = :inbound_fednow_transfer_decline
1661
+
1647
1662
  # Wire Decline: details will be under the `wire_decline` object.
1648
1663
  WIRE_DECLINE = :wire_decline
1649
1664
 
@@ -1925,6 +1940,58 @@ module Increase
1925
1940
  end
1926
1941
  end
1927
1942
 
1943
+ # @see Increase::Models::DeclinedTransaction::Source#inbound_fednow_transfer_decline
1944
+ class InboundFednowTransferDecline < Increase::Internal::Type::BaseModel
1945
+ # @!attribute reason
1946
+ # Why the transfer was declined.
1947
+ #
1948
+ # @return [Symbol, Increase::Models::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason]
1949
+ required :reason, enum: -> { Increase::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason }
1950
+
1951
+ # @!attribute transfer_id
1952
+ # The identifier of the FedNow Transfer that led to this declined transaction.
1953
+ #
1954
+ # @return [String]
1955
+ required :transfer_id, String
1956
+
1957
+ # @!method initialize(reason:, transfer_id:)
1958
+ # An Inbound FedNow Transfer Decline object. This field will be present in the
1959
+ # JSON response if and only if `category` is equal to
1960
+ # `inbound_fednow_transfer_decline`.
1961
+ #
1962
+ # @param reason [Symbol, Increase::Models::DeclinedTransaction::Source::InboundFednowTransferDecline::Reason] Why the transfer was declined.
1963
+ #
1964
+ # @param transfer_id [String] The identifier of the FedNow Transfer that led to this declined transaction.
1965
+
1966
+ # Why the transfer was declined.
1967
+ #
1968
+ # @see Increase::Models::DeclinedTransaction::Source::InboundFednowTransferDecline#reason
1969
+ module Reason
1970
+ extend Increase::Internal::Type::Enum
1971
+
1972
+ # The account number is canceled.
1973
+ ACCOUNT_NUMBER_CANCELED = :account_number_canceled
1974
+
1975
+ # The account number is disabled.
1976
+ ACCOUNT_NUMBER_DISABLED = :account_number_disabled
1977
+
1978
+ # Your account is restricted.
1979
+ ACCOUNT_RESTRICTED = :account_restricted
1980
+
1981
+ # Your account is inactive.
1982
+ GROUP_LOCKED = :group_locked
1983
+
1984
+ # The account's entity is not active.
1985
+ ENTITY_NOT_ACTIVE = :entity_not_active
1986
+
1987
+ # Your account is not enabled to receive FedNow transfers.
1988
+ FEDNOW_NOT_ENABLED = :fednow_not_enabled
1989
+
1990
+ # @!method self.values
1991
+ # @return [Array<Symbol>]
1992
+ end
1993
+ end
1994
+
1928
1995
  # @see Increase::Models::DeclinedTransaction::Source#inbound_real_time_payments_transfer_decline
1929
1996
  class InboundRealTimePaymentsTransferDecline < Increase::Internal::Type::BaseModel
1930
1997
  # @!attribute amount
@@ -93,6 +93,9 @@ module Increase
93
93
  # Inbound Real-Time Payments Transfer Decline: details will be under the `inbound_real_time_payments_transfer_decline` object.
94
94
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_DECLINE = :inbound_real_time_payments_transfer_decline
95
95
 
96
+ # Inbound FedNow Transfer Decline: details will be under the `inbound_fednow_transfer_decline` object.
97
+ INBOUND_FEDNOW_TRANSFER_DECLINE = :inbound_fednow_transfer_decline
98
+
96
99
  # Wire Decline: details will be under the `wire_decline` object.
97
100
  WIRE_DECLINE = :wire_decline
98
101
 
@@ -223,6 +223,12 @@ module Increase
223
223
  # Occurs whenever an Inbound Check Deposit is updated.
224
224
  INBOUND_CHECK_DEPOSIT_UPDATED = :"inbound_check_deposit.updated"
225
225
 
226
+ # Occurs whenever an Inbound FedNow Transfer is created.
227
+ INBOUND_FEDNOW_TRANSFER_CREATED = :"inbound_fednow_transfer.created"
228
+
229
+ # Occurs whenever an Inbound FedNow Transfer is updated.
230
+ INBOUND_FEDNOW_TRANSFER_UPDATED = :"inbound_fednow_transfer.updated"
231
+
226
232
  # Occurs whenever an Inbound Mail Item is created.
227
233
  INBOUND_MAIL_ITEM_CREATED = :"inbound_mail_item.created"
228
234
 
@@ -225,6 +225,12 @@ module Increase
225
225
  # Occurs whenever an Inbound Check Deposit is updated.
226
226
  INBOUND_CHECK_DEPOSIT_UPDATED = :"inbound_check_deposit.updated"
227
227
 
228
+ # Occurs whenever an Inbound FedNow Transfer is created.
229
+ INBOUND_FEDNOW_TRANSFER_CREATED = :"inbound_fednow_transfer.created"
230
+
231
+ # Occurs whenever an Inbound FedNow Transfer is updated.
232
+ INBOUND_FEDNOW_TRANSFER_UPDATED = :"inbound_fednow_transfer.updated"
233
+
228
234
  # Occurs whenever an Inbound Mail Item is created.
229
235
  INBOUND_MAIL_ITEM_CREATED = :"inbound_mail_item.created"
230
236
 
@@ -246,6 +246,12 @@ module Increase
246
246
  # Occurs whenever an Inbound Check Deposit is updated.
247
247
  INBOUND_CHECK_DEPOSIT_UPDATED = :"inbound_check_deposit.updated"
248
248
 
249
+ # Occurs whenever an Inbound FedNow Transfer is created.
250
+ INBOUND_FEDNOW_TRANSFER_CREATED = :"inbound_fednow_transfer.created"
251
+
252
+ # Occurs whenever an Inbound FedNow Transfer is updated.
253
+ INBOUND_FEDNOW_TRANSFER_UPDATED = :"inbound_fednow_transfer.updated"
254
+
249
255
  # Occurs whenever an Inbound Mail Item is created.
250
256
  INBOUND_MAIL_ITEM_CREATED = :"inbound_mail_item.created"
251
257
 
@@ -207,6 +207,12 @@ module Increase
207
207
  # Occurs whenever an Inbound Check Deposit is updated.
208
208
  INBOUND_CHECK_DEPOSIT_UPDATED = :"inbound_check_deposit.updated"
209
209
 
210
+ # Occurs whenever an Inbound FedNow Transfer is created.
211
+ INBOUND_FEDNOW_TRANSFER_CREATED = :"inbound_fednow_transfer.created"
212
+
213
+ # Occurs whenever an Inbound FedNow Transfer is updated.
214
+ INBOUND_FEDNOW_TRANSFER_UPDATED = :"inbound_fednow_transfer.updated"
215
+
210
216
  # Occurs whenever an Inbound Mail Item is created.
211
217
  INBOUND_MAIL_ITEM_CREATED = :"inbound_mail_item.created"
212
218
 
@@ -401,6 +401,18 @@ module Increase
401
401
  -> { Increase::Transaction::Source::InboundCheckDepositReturnIntention },
402
402
  nil?: true
403
403
 
404
+ # @!attribute inbound_fednow_transfer_confirmation
405
+ # An Inbound FedNow Transfer Confirmation object. This field will be present in
406
+ # the JSON response if and only if `category` is equal to
407
+ # `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation
408
+ # is created when a FedNow transfer is initiated at another bank and received by
409
+ # Increase.
410
+ #
411
+ # @return [Increase::Models::Transaction::Source::InboundFednowTransferConfirmation, nil]
412
+ required :inbound_fednow_transfer_confirmation,
413
+ -> { Increase::Transaction::Source::InboundFednowTransferConfirmation },
414
+ nil?: true
415
+
404
416
  # @!attribute inbound_real_time_payments_transfer_confirmation
405
417
  # An Inbound Real-Time Payments Transfer Confirmation object. This field will be
406
418
  # present in the JSON response if and only if `category` is equal to
@@ -518,7 +530,7 @@ module Increase
518
530
  },
519
531
  nil?: true
520
532
 
521
- # @!method initialize(account_revenue_payment:, account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fednow_transfer_acknowledgement:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_real_time_payments_transfer_confirmation:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, swift_transfer_return:, wire_transfer_intention:)
533
+ # @!method initialize(account_revenue_payment:, account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fednow_transfer_acknowledgement:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_fednow_transfer_confirmation:, inbound_real_time_payments_transfer_confirmation:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, swift_transfer_return:, wire_transfer_intention:)
522
534
  # Some parameter documentations has been truncated, see
523
535
  # {Increase::Models::Transaction::Source} for more details.
524
536
  #
@@ -573,6 +585,8 @@ module Increase
573
585
  #
574
586
  # @param inbound_check_deposit_return_intention [Increase::Models::Transaction::Source::InboundCheckDepositReturnIntention, nil] An Inbound Check Deposit Return Intention object. This field will be present in
575
587
  #
588
+ # @param inbound_fednow_transfer_confirmation [Increase::Models::Transaction::Source::InboundFednowTransferConfirmation, nil] An Inbound FedNow Transfer Confirmation object. This field will be present in th
589
+ #
576
590
  # @param inbound_real_time_payments_transfer_confirmation [Increase::Models::Transaction::Source::InboundRealTimePaymentsTransferConfirmation, nil] An Inbound Real-Time Payments Transfer Confirmation object. This field will be p
577
591
  #
578
592
  # @param inbound_wire_reversal [Increase::Models::Transaction::Source::InboundWireReversal, nil] An Inbound Wire Reversal object. This field will be present in the JSON response
@@ -1094,12 +1108,6 @@ module Increase
1094
1108
  # @return [Time]
1095
1109
  required :accepted_at, Time
1096
1110
 
1097
- # @!attribute card_dispute_id
1098
- # The identifier of the Card Dispute that was accepted.
1099
- #
1100
- # @return [String]
1101
- required :card_dispute_id, String
1102
-
1103
1111
  # @!attribute transaction_id
1104
1112
  # The identifier of the Transaction that was created to return the disputed funds
1105
1113
  # to your account.
@@ -1107,7 +1115,7 @@ module Increase
1107
1115
  # @return [String]
1108
1116
  required :transaction_id, String
1109
1117
 
1110
- # @!method initialize(accepted_at:, card_dispute_id:, transaction_id:)
1118
+ # @!method initialize(accepted_at:, transaction_id:)
1111
1119
  # Some parameter documentations has been truncated, see
1112
1120
  # {Increase::Models::Transaction::Source::CardDisputeAcceptance} for more details.
1113
1121
  #
@@ -1117,8 +1125,6 @@ module Increase
1117
1125
  #
1118
1126
  # @param accepted_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
1119
1127
  #
1120
- # @param card_dispute_id [String] The identifier of the Card Dispute that was accepted.
1121
- #
1122
1128
  # @param transaction_id [String] The identifier of the Transaction that was created to return the disputed funds
1123
1129
  end
1124
1130
 
@@ -1130,12 +1136,6 @@ module Increase
1130
1136
  # @return [Integer]
1131
1137
  required :amount, Integer
1132
1138
 
1133
- # @!attribute card_dispute_id
1134
- # The identifier of the Card Dispute the financial event is associated with.
1135
- #
1136
- # @return [String]
1137
- required :card_dispute_id, String
1138
-
1139
1139
  # @!attribute network
1140
1140
  # The network that the Card Dispute is associated with.
1141
1141
  #
@@ -1157,7 +1157,7 @@ module Increase
1157
1157
  # @return [Increase::Models::Transaction::Source::CardDisputeFinancial::Visa, nil]
1158
1158
  required :visa, -> { Increase::Transaction::Source::CardDisputeFinancial::Visa }, nil?: true
1159
1159
 
1160
- # @!method initialize(amount:, card_dispute_id:, network:, transaction_id:, visa:)
1160
+ # @!method initialize(amount:, network:, transaction_id:, visa:)
1161
1161
  # Some parameter documentations has been truncated, see
1162
1162
  # {Increase::Models::Transaction::Source::CardDisputeFinancial} for more details.
1163
1163
  #
@@ -1167,8 +1167,6 @@ module Increase
1167
1167
  #
1168
1168
  # @param amount [Integer] The amount of the financial event.
1169
1169
  #
1170
- # @param card_dispute_id [String] The identifier of the Card Dispute the financial event is associated with.
1171
- #
1172
1170
  # @param network [Symbol, Increase::Models::Transaction::Source::CardDisputeFinancial::Network] The network that the Card Dispute is associated with.
1173
1171
  #
1174
1172
  # @param transaction_id [String] The identifier of the Transaction that was created to credit or debit the disput
@@ -1238,12 +1236,6 @@ module Increase
1238
1236
 
1239
1237
  # @see Increase::Models::Transaction::Source#card_dispute_loss
1240
1238
  class CardDisputeLoss < Increase::Internal::Type::BaseModel
1241
- # @!attribute card_dispute_id
1242
- # The identifier of the Card Dispute that was lost.
1243
- #
1244
- # @return [String]
1245
- required :card_dispute_id, String
1246
-
1247
1239
  # @!attribute explanation
1248
1240
  # Why the Card Dispute was lost.
1249
1241
  #
@@ -1264,7 +1256,7 @@ module Increase
1264
1256
  # @return [String]
1265
1257
  required :transaction_id, String
1266
1258
 
1267
- # @!method initialize(card_dispute_id:, explanation:, lost_at:, transaction_id:)
1259
+ # @!method initialize(explanation:, lost_at:, transaction_id:)
1268
1260
  # Some parameter documentations has been truncated, see
1269
1261
  # {Increase::Models::Transaction::Source::CardDisputeLoss} for more details.
1270
1262
  #
@@ -1272,8 +1264,6 @@ module Increase
1272
1264
  # and only if `category` is equal to `card_dispute_loss`. Contains the details of
1273
1265
  # a lost Card Dispute.
1274
1266
  #
1275
- # @param card_dispute_id [String] The identifier of the Card Dispute that was lost.
1276
- #
1277
1267
  # @param explanation [String] Why the Card Dispute was lost.
1278
1268
  #
1279
1269
  # @param lost_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
@@ -4281,6 +4271,9 @@ module Increase
4281
4271
  # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object.
4282
4272
  INBOUND_CHECK_ADJUSTMENT = :inbound_check_adjustment
4283
4273
 
4274
+ # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
4275
+ INBOUND_FEDNOW_TRANSFER_CONFIRMATION = :inbound_fednow_transfer_confirmation
4276
+
4284
4277
  # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
4285
4278
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION = :inbound_real_time_payments_transfer_confirmation
4286
4279
 
@@ -5068,6 +5061,24 @@ module Increase
5068
5061
  # @param transfer_id [String, nil] The identifier of the Check Transfer object that was deposited.
5069
5062
  end
5070
5063
 
5064
+ # @see Increase::Models::Transaction::Source#inbound_fednow_transfer_confirmation
5065
+ class InboundFednowTransferConfirmation < Increase::Internal::Type::BaseModel
5066
+ # @!attribute transfer_id
5067
+ # The identifier of the FedNow Transfer that led to this Transaction.
5068
+ #
5069
+ # @return [String]
5070
+ required :transfer_id, String
5071
+
5072
+ # @!method initialize(transfer_id:)
5073
+ # An Inbound FedNow Transfer Confirmation object. This field will be present in
5074
+ # the JSON response if and only if `category` is equal to
5075
+ # `inbound_fednow_transfer_confirmation`. An Inbound FedNow Transfer Confirmation
5076
+ # is created when a FedNow transfer is initiated at another bank and received by
5077
+ # Increase.
5078
+ #
5079
+ # @param transfer_id [String] The identifier of the FedNow Transfer that led to this Transaction.
5080
+ end
5081
+
5071
5082
  # @see Increase::Models::Transaction::Source#inbound_real_time_payments_transfer_confirmation
5072
5083
  class InboundRealTimePaymentsTransferConfirmation < Increase::Internal::Type::BaseModel
5073
5084
  # @!attribute amount
@@ -142,6 +142,9 @@ module Increase
142
142
  # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object.
143
143
  INBOUND_CHECK_ADJUSTMENT = :inbound_check_adjustment
144
144
 
145
+ # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
146
+ INBOUND_FEDNOW_TRANSFER_CONFIRMATION = :inbound_fednow_transfer_confirmation
147
+
145
148
  # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
146
149
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION = :inbound_real_time_payments_transfer_confirmation
147
150
 
@@ -139,14 +139,6 @@ module Increase
139
139
 
140
140
  CardDetailsParams = Increase::Models::CardDetailsParams
141
141
 
142
- CardDispute = Increase::Models::CardDispute
143
-
144
- CardDisputeCreateParams = Increase::Models::CardDisputeCreateParams
145
-
146
- CardDisputeListParams = Increase::Models::CardDisputeListParams
147
-
148
- CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams
149
-
150
142
  CardIframeURL = Increase::Models::CardIframeURL
151
143
 
152
144
  CardListParams = Increase::Models::CardListParams
@@ -30,9 +30,6 @@ module Increase
30
30
  # @return [Increase::Resources::Simulations::CardRefunds]
31
31
  attr_reader :card_refunds
32
32
 
33
- # @return [Increase::Resources::Simulations::CardDisputes]
34
- attr_reader :card_disputes
35
-
36
33
  # @return [Increase::Resources::Simulations::PhysicalCards]
37
34
  attr_reader :physical_cards
38
35
 
@@ -105,7 +102,6 @@ module Increase
105
102
  @card_increments = Increase::Resources::Simulations::CardIncrements.new(client: client)
106
103
  @card_fuel_confirmations = Increase::Resources::Simulations::CardFuelConfirmations.new(client: client)
107
104
  @card_refunds = Increase::Resources::Simulations::CardRefunds.new(client: client)
108
- @card_disputes = Increase::Resources::Simulations::CardDisputes.new(client: client)
109
105
  @physical_cards = Increase::Resources::Simulations::PhysicalCards.new(client: client)
110
106
  @digital_wallet_token_requests =
111
107
  Increase::Resources::Simulations::DigitalWalletTokenRequests.new(client: client)