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
@@ -810,8 +810,15 @@ module Increase
810
810
 
811
811
  # If the category of this Transaction source is equal to `other`, this field will
812
812
  # contain an empty object, otherwise it will contain null.
813
- sig { returns(T.nilable(T.anything)) }
814
- attr_accessor :other
813
+ sig { returns(T.nilable(Increase::Transaction::Source::Other)) }
814
+ attr_reader :other
815
+
816
+ sig do
817
+ params(
818
+ other: T.nilable(Increase::Transaction::Source::Other::OrHash)
819
+ ).void
820
+ end
821
+ attr_writer :other
815
822
 
816
823
  # A Real-Time Payments Transfer Acknowledgement object. This field will be present
817
824
  # in the JSON response if and only if `category` is equal to
@@ -1020,7 +1027,7 @@ module Increase
1020
1027
  T.nilable(Increase::Transaction::Source::InterestPayment::OrHash),
1021
1028
  internal_source:
1022
1029
  T.nilable(Increase::Transaction::Source::InternalSource::OrHash),
1023
- other: T.nilable(T.anything),
1030
+ other: T.nilable(Increase::Transaction::Source::Other::OrHash),
1024
1031
  real_time_payments_transfer_acknowledgement:
1025
1032
  T.nilable(
1026
1033
  Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement::OrHash
@@ -1311,7 +1318,7 @@ module Increase
1311
1318
  T.nilable(Increase::Transaction::Source::InterestPayment),
1312
1319
  internal_source:
1313
1320
  T.nilable(Increase::Transaction::Source::InternalSource),
1314
- other: T.nilable(T.anything),
1321
+ other: T.nilable(Increase::Transaction::Source::Other),
1315
1322
  real_time_payments_transfer_acknowledgement:
1316
1323
  T.nilable(
1317
1324
  Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement
@@ -3893,8 +3900,24 @@ module Increase
3893
3900
  attr_accessor :category
3894
3901
 
3895
3902
  # Fields specific to the `pulse` network.
3896
- sig { returns(T.nilable(T.anything)) }
3897
- attr_accessor :pulse
3903
+ sig do
3904
+ returns(
3905
+ T.nilable(
3906
+ Increase::Transaction::Source::CardFinancial::NetworkDetails::Pulse
3907
+ )
3908
+ )
3909
+ end
3910
+ attr_reader :pulse
3911
+
3912
+ sig do
3913
+ params(
3914
+ pulse:
3915
+ T.nilable(
3916
+ Increase::Transaction::Source::CardFinancial::NetworkDetails::Pulse::OrHash
3917
+ )
3918
+ ).void
3919
+ end
3920
+ attr_writer :pulse
3898
3921
 
3899
3922
  # Fields specific to the `visa` network.
3900
3923
  sig do
@@ -3921,7 +3944,10 @@ module Increase
3921
3944
  params(
3922
3945
  category:
3923
3946
  Increase::Transaction::Source::CardFinancial::NetworkDetails::Category::OrSymbol,
3924
- pulse: T.nilable(T.anything),
3947
+ pulse:
3948
+ T.nilable(
3949
+ Increase::Transaction::Source::CardFinancial::NetworkDetails::Pulse::OrHash
3950
+ ),
3925
3951
  visa:
3926
3952
  T.nilable(
3927
3953
  Increase::Transaction::Source::CardFinancial::NetworkDetails::Visa::OrHash
@@ -3943,7 +3969,10 @@ module Increase
3943
3969
  {
3944
3970
  category:
3945
3971
  Increase::Transaction::Source::CardFinancial::NetworkDetails::Category::TaggedSymbol,
3946
- pulse: T.nilable(T.anything),
3972
+ pulse:
3973
+ T.nilable(
3974
+ Increase::Transaction::Source::CardFinancial::NetworkDetails::Pulse
3975
+ ),
3947
3976
  visa:
3948
3977
  T.nilable(
3949
3978
  Increase::Transaction::Source::CardFinancial::NetworkDetails::Visa
@@ -3992,6 +4021,25 @@ module Increase
3992
4021
  end
3993
4022
  end
3994
4023
 
4024
+ class Pulse < Increase::Internal::Type::BaseModel
4025
+ OrHash =
4026
+ T.type_alias do
4027
+ T.any(
4028
+ Increase::Transaction::Source::CardFinancial::NetworkDetails::Pulse,
4029
+ Increase::Internal::AnyHash
4030
+ )
4031
+ end
4032
+
4033
+ # Fields specific to the `pulse` network.
4034
+ sig { returns(T.attached_class) }
4035
+ def self.new
4036
+ end
4037
+
4038
+ sig { override.returns({}) }
4039
+ def to_hash
4040
+ end
4041
+ end
4042
+
3995
4043
  class Visa < Increase::Internal::Type::BaseModel
3996
4044
  OrHash =
3997
4045
  T.type_alias do
@@ -12849,6 +12897,26 @@ module Increase
12849
12897
  end
12850
12898
  end
12851
12899
 
12900
+ class Other < Increase::Internal::Type::BaseModel
12901
+ OrHash =
12902
+ T.type_alias do
12903
+ T.any(
12904
+ Increase::Transaction::Source::Other,
12905
+ Increase::Internal::AnyHash
12906
+ )
12907
+ end
12908
+
12909
+ # If the category of this Transaction source is equal to `other`, this field will
12910
+ # contain an empty object, otherwise it will contain null.
12911
+ sig { returns(T.attached_class) }
12912
+ def self.new
12913
+ end
12914
+
12915
+ sig { override.returns({}) }
12916
+ def to_hash
12917
+ end
12918
+ end
12919
+
12852
12920
  class RealTimePaymentsTransferAcknowledgement < Increase::Internal::Type::BaseModel
12853
12921
  OrHash =
12854
12922
  T.type_alias do
@@ -391,6 +391,10 @@ module Increase
391
391
  Increase::WireDrawdownRequest::Status::TaggedSymbol
392
392
  )
393
393
 
394
+ # The drawdown request has been fulfilled by the recipient.
395
+ FULFILLED =
396
+ T.let(:fulfilled, Increase::WireDrawdownRequest::Status::TaggedSymbol)
397
+
394
398
  # The drawdown request has been sent and the recipient should respond in some way.
395
399
  PENDING_RESPONSE =
396
400
  T.let(
@@ -398,10 +402,6 @@ module Increase
398
402
  Increase::WireDrawdownRequest::Status::TaggedSymbol
399
403
  )
400
404
 
401
- # The drawdown request has been fulfilled by the recipient.
402
- FULFILLED =
403
- T.let(:fulfilled, Increase::WireDrawdownRequest::Status::TaggedSymbol)
404
-
405
405
  # The drawdown request has been refused by the recipient.
406
406
  REFUSED =
407
407
  T.let(:refused, Increase::WireDrawdownRequest::Status::TaggedSymbol)
@@ -168,17 +168,17 @@ module Increase
168
168
  Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol
169
169
  )
170
170
 
171
- # The drawdown request has been sent and the recipient should respond in some way.
172
- PENDING_RESPONSE =
171
+ # The drawdown request has been fulfilled by the recipient.
172
+ FULFILLED =
173
173
  T.let(
174
- :pending_response,
174
+ :fulfilled,
175
175
  Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol
176
176
  )
177
177
 
178
- # The drawdown request has been fulfilled by the recipient.
179
- FULFILLED =
178
+ # The drawdown request has been sent and the recipient should respond in some way.
179
+ PENDING_RESPONSE =
180
180
  T.let(
181
- :fulfilled,
181
+ :pending_response,
182
182
  Increase::WireDrawdownRequestListParams::Status::In::TaggedSymbol
183
183
  )
184
184
 
@@ -16,7 +16,7 @@ module Increase
16
16
  Increase::ExportCreateParams::BookkeepingAccountBalanceCsv::OrHash,
17
17
  entity_csv: Increase::ExportCreateParams::EntityCsv::OrHash,
18
18
  transaction_csv: Increase::ExportCreateParams::TransactionCsv::OrHash,
19
- vendor_csv: T.anything,
19
+ vendor_csv: Increase::ExportCreateParams::VendorCsv::OrHash,
20
20
  request_options: Increase::RequestOptions::OrHash
21
21
  ).returns(Increase::Export)
22
22
  end
@@ -87,6 +87,8 @@ module Increase
87
87
 
88
88
  private def auth_headers: -> ::Hash[String, String]
89
89
 
90
+ private def user_agent: -> String
91
+
90
92
  private def generate_idempotency_key: -> String
91
93
 
92
94
  private def build_request: (