increase 1.127.0 → 1.129.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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/increase/internal/transport/base_client.rb +7 -1
  5. data/lib/increase/models/card_dispute.rb +311 -66
  6. data/lib/increase/models/card_dispute_create_params.rb +102 -30
  7. data/lib/increase/models/card_dispute_submit_user_submission_params.rb +104 -30
  8. data/lib/increase/models/card_payment.rb +60 -15
  9. data/lib/increase/models/declined_transaction.rb +21 -6
  10. data/lib/increase/models/export_create_params.rb +8 -3
  11. data/lib/increase/models/pending_transaction.rb +21 -6
  12. data/lib/increase/models/real_time_decision.rb +24 -6
  13. data/lib/increase/models/simulations/card_dispute_action_params.rb +97 -27
  14. data/lib/increase/models/transaction.rb +23 -6
  15. data/lib/increase/models/wire_drawdown_request.rb +3 -3
  16. data/lib/increase/models/wire_drawdown_request_list_params.rb +3 -3
  17. data/lib/increase/resources/exports.rb +1 -1
  18. data/lib/increase/version.rb +1 -1
  19. data/rbi/increase/internal/transport/base_client.rbi +5 -0
  20. data/rbi/increase/internal/type/base_model.rbi +8 -4
  21. data/rbi/increase/models/card_dispute.rbi +1038 -88
  22. data/rbi/increase/models/card_dispute_create_params.rbi +364 -40
  23. data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +364 -40
  24. data/rbi/increase/models/card_payment.rbi +211 -20
  25. data/rbi/increase/models/declined_transaction.rbi +78 -8
  26. data/rbi/increase/models/export_create_params.rbi +25 -4
  27. data/rbi/increase/models/pending_transaction.rbi +78 -8
  28. data/rbi/increase/models/real_time_decision.rbi +90 -8
  29. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +333 -36
  30. data/rbi/increase/models/transaction.rbi +76 -8
  31. data/rbi/increase/models/wire_drawdown_request.rbi +4 -4
  32. data/rbi/increase/models/wire_drawdown_request_list_params.rbi +6 -6
  33. data/rbi/increase/resources/exports.rbi +1 -1
  34. data/sig/increase/internal/transport/base_client.rbs +2 -0
  35. data/sig/increase/models/card_dispute.rbs +264 -88
  36. data/sig/increase/models/card_dispute_create_params.rbs +150 -50
  37. data/sig/increase/models/card_dispute_submit_user_submission_params.rbs +150 -50
  38. data/sig/increase/models/card_payment.rbs +60 -20
  39. data/sig/increase/models/declined_transaction.rbs +24 -8
  40. data/sig/increase/models/export_create_params.rbs +15 -5
  41. data/sig/increase/models/pending_transaction.rbs +24 -8
  42. data/sig/increase/models/real_time_decision.rbs +24 -8
  43. data/sig/increase/models/simulations/card_dispute_action_params.rbs +135 -45
  44. data/sig/increase/models/transaction.rbs +24 -8
  45. data/sig/increase/models/wire_drawdown_request.rbs +4 -4
  46. data/sig/increase/models/wire_drawdown_request_list_params.rbs +4 -4
  47. data/sig/increase/resources/exports.rbs +1 -1
  48. metadata +2 -2
@@ -485,8 +485,8 @@ module Increase
485
485
  # If the category of this Transaction source is equal to `other`, this field will
486
486
  # contain an empty object, otherwise it will contain null.
487
487
  #
488
- # @return [Object, nil]
489
- required :other, Increase::Internal::Type::Unknown, nil?: true
488
+ # @return [Increase::Models::Transaction::Source::Other, nil]
489
+ required :other, -> { Increase::Transaction::Source::Other }, nil?: true
490
490
 
491
491
  # @!attribute real_time_payments_transfer_acknowledgement
492
492
  # A Real-Time Payments Transfer Acknowledgement object. This field will be present
@@ -609,7 +609,7 @@ module Increase
609
609
  #
610
610
  # @param internal_source [Increase::Models::Transaction::Source::InternalSource, nil] An Internal Source object. This field will be present in the JSON response if an
611
611
  #
612
- # @param other [Object, nil] If the category of this Transaction source is equal to `other`, this field will
612
+ # @param other [Increase::Models::Transaction::Source::Other, nil] If the category of this Transaction source is equal to `other`, this field will
613
613
  #
614
614
  # @param real_time_payments_transfer_acknowledgement [Increase::Models::Transaction::Source::RealTimePaymentsTransferAcknowledgement, nil] A Real-Time Payments Transfer Acknowledgement object. This field will be present
615
615
  #
@@ -2008,8 +2008,12 @@ module Increase
2008
2008
  # @!attribute pulse
2009
2009
  # Fields specific to the `pulse` network.
2010
2010
  #
2011
- # @return [Object, nil]
2012
- required :pulse, Increase::Internal::Type::Unknown, nil?: true
2011
+ # @return [Increase::Models::Transaction::Source::CardFinancial::NetworkDetails::Pulse, nil]
2012
+ required :pulse,
2013
+ -> {
2014
+ Increase::Transaction::Source::CardFinancial::NetworkDetails::Pulse
2015
+ },
2016
+ nil?: true
2013
2017
 
2014
2018
  # @!attribute visa
2015
2019
  # Fields specific to the `visa` network.
@@ -2026,7 +2030,7 @@ module Increase
2026
2030
  #
2027
2031
  # @param category [Symbol, Increase::Models::Transaction::Source::CardFinancial::NetworkDetails::Category] The payment network used to process this card authorization.
2028
2032
  #
2029
- # @param pulse [Object, nil] Fields specific to the `pulse` network.
2033
+ # @param pulse [Increase::Models::Transaction::Source::CardFinancial::NetworkDetails::Pulse, nil] Fields specific to the `pulse` network.
2030
2034
  #
2031
2035
  # @param visa [Increase::Models::Transaction::Source::CardFinancial::NetworkDetails::Visa, nil] Fields specific to the `visa` network.
2032
2036
 
@@ -2046,6 +2050,12 @@ module Increase
2046
2050
  # @return [Array<Symbol>]
2047
2051
  end
2048
2052
 
2053
+ # @see Increase::Models::Transaction::Source::CardFinancial::NetworkDetails#pulse
2054
+ class Pulse < Increase::Internal::Type::BaseModel
2055
+ # @!method initialize
2056
+ # Fields specific to the `pulse` network.
2057
+ end
2058
+
2049
2059
  # @see Increase::Models::Transaction::Source::CardFinancial::NetworkDetails#visa
2050
2060
  class Visa < Increase::Internal::Type::BaseModel
2051
2061
  # @!attribute electronic_commerce_indicator
@@ -6957,6 +6967,13 @@ module Increase
6957
6967
  end
6958
6968
  end
6959
6969
 
6970
+ # @see Increase::Models::Transaction::Source#other
6971
+ class Other < Increase::Internal::Type::BaseModel
6972
+ # @!method initialize
6973
+ # If the category of this Transaction source is equal to `other`, this field will
6974
+ # contain an empty object, otherwise it will contain null.
6975
+ end
6976
+
6960
6977
  # @see Increase::Models::Transaction::Source#real_time_payments_transfer_acknowledgement
6961
6978
  class RealTimePaymentsTransferAcknowledgement < Increase::Internal::Type::BaseModel
6962
6979
  # @!attribute amount
@@ -294,12 +294,12 @@ module Increase
294
294
  # The drawdown request is queued to be submitted to Fedwire.
295
295
  PENDING_SUBMISSION = :pending_submission
296
296
 
297
- # The drawdown request has been sent and the recipient should respond in some way.
298
- PENDING_RESPONSE = :pending_response
299
-
300
297
  # The drawdown request has been fulfilled by the recipient.
301
298
  FULFILLED = :fulfilled
302
299
 
300
+ # The drawdown request has been sent and the recipient should respond in some way.
301
+ PENDING_RESPONSE = :pending_response
302
+
303
303
  # The drawdown request has been refused by the recipient.
304
304
  REFUSED = :refused
305
305
 
@@ -73,12 +73,12 @@ module Increase
73
73
  # The drawdown request is queued to be submitted to Fedwire.
74
74
  PENDING_SUBMISSION = :pending_submission
75
75
 
76
- # The drawdown request has been sent and the recipient should respond in some way.
77
- PENDING_RESPONSE = :pending_response
78
-
79
76
  # The drawdown request has been fulfilled by the recipient.
80
77
  FULFILLED = :fulfilled
81
78
 
79
+ # The drawdown request has been sent and the recipient should respond in some way.
80
+ PENDING_RESPONSE = :pending_response
81
+
82
82
  # The drawdown request has been refused by the recipient.
83
83
  REFUSED = :refused
84
84
 
@@ -26,7 +26,7 @@ module Increase
26
26
  # @param transaction_csv [Increase::Models::ExportCreateParams::TransactionCsv] Options for the created export. Required if `category` is equal to
27
27
  # `transaction\_
28
28
  #
29
- # @param vendor_csv [Object] Options for the created export. Required if `category` is equal to `vendor_csv`.
29
+ # @param vendor_csv [Increase::Models::ExportCreateParams::VendorCsv] Options for the created export. Required if `category` is equal to `vendor_csv`.
30
30
  #
31
31
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
32
32
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.127.0"
4
+ VERSION = "1.129.0"
5
5
  end
@@ -176,6 +176,11 @@ module Increase
176
176
  private def auth_headers
177
177
  end
178
178
 
179
+ # @api private
180
+ sig { returns(String) }
181
+ private def user_agent
182
+ end
183
+
179
184
  # @api private
180
185
  sig { returns(String) }
181
186
  private def generate_idempotency_key
@@ -31,7 +31,7 @@ module Increase
31
31
  #
32
32
  # Assumes superclass fields are totally defined before fields are accessed /
33
33
  # defined on subclasses.
34
- sig { params(child: T.self_type).void }
34
+ sig { params(child: Increase::Internal::Type::BaseModel).void }
35
35
  def inherited(child)
36
36
  end
37
37
 
@@ -274,9 +274,13 @@ module Increase
274
274
 
275
275
  # Create a new instance of a model.
276
276
  sig do
277
- params(data: T.any(T::Hash[Symbol, T.anything], T.self_type)).returns(
278
- T.attached_class
279
- )
277
+ params(
278
+ data:
279
+ T.any(
280
+ T::Hash[Symbol, T.anything],
281
+ Increase::Internal::Type::BaseModel
282
+ )
283
+ ).returns(T.attached_class)
280
284
  end
281
285
  def self.new(data = {})
282
286
  end