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
@@ -129,6 +129,7 @@ module Increase
129
129
  inbound_ach_transfer_return_intention: Increase::Transaction::Source::InboundACHTransferReturnIntention?,
130
130
  inbound_check_adjustment: Increase::Transaction::Source::InboundCheckAdjustment?,
131
131
  inbound_check_deposit_return_intention: Increase::Transaction::Source::InboundCheckDepositReturnIntention?,
132
+ inbound_fednow_transfer_confirmation: Increase::Transaction::Source::InboundFednowTransferConfirmation?,
132
133
  inbound_real_time_payments_transfer_confirmation: Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation?,
133
134
  inbound_wire_reversal: Increase::Transaction::Source::InboundWireReversal?,
134
135
  inbound_wire_transfer: Increase::Transaction::Source::InboundWireTransfer?,
@@ -190,6 +191,8 @@ module Increase
190
191
 
191
192
  attr_accessor inbound_check_deposit_return_intention: Increase::Transaction::Source::InboundCheckDepositReturnIntention?
192
193
 
194
+ attr_accessor inbound_fednow_transfer_confirmation: Increase::Transaction::Source::InboundFednowTransferConfirmation?
195
+
193
196
  attr_accessor inbound_real_time_payments_transfer_confirmation: Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation?
194
197
 
195
198
  attr_accessor inbound_wire_reversal: Increase::Transaction::Source::InboundWireReversal?
@@ -238,6 +241,7 @@ module Increase
238
241
  inbound_ach_transfer_return_intention: Increase::Transaction::Source::InboundACHTransferReturnIntention?,
239
242
  inbound_check_adjustment: Increase::Transaction::Source::InboundCheckAdjustment?,
240
243
  inbound_check_deposit_return_intention: Increase::Transaction::Source::InboundCheckDepositReturnIntention?,
244
+ inbound_fednow_transfer_confirmation: Increase::Transaction::Source::InboundFednowTransferConfirmation?,
241
245
  inbound_real_time_payments_transfer_confirmation: Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation?,
242
246
  inbound_wire_reversal: Increase::Transaction::Source::InboundWireReversal?,
243
247
  inbound_wire_transfer: Increase::Transaction::Source::InboundWireTransfer?,
@@ -276,6 +280,7 @@ module Increase
276
280
  inbound_ach_transfer_return_intention: Increase::Transaction::Source::InboundACHTransferReturnIntention?,
277
281
  inbound_check_adjustment: Increase::Transaction::Source::InboundCheckAdjustment?,
278
282
  inbound_check_deposit_return_intention: Increase::Transaction::Source::InboundCheckDepositReturnIntention?,
283
+ inbound_fednow_transfer_confirmation: Increase::Transaction::Source::InboundFednowTransferConfirmation?,
279
284
  inbound_real_time_payments_transfer_confirmation: Increase::Transaction::Source::InboundRealTimePaymentsTransferConfirmation?,
280
285
  inbound_wire_reversal: Increase::Transaction::Source::InboundWireReversal?,
281
286
  inbound_wire_transfer: Increase::Transaction::Source::InboundWireTransfer?,
@@ -763,32 +768,21 @@ module Increase
763
768
  end
764
769
 
765
770
  type card_dispute_acceptance =
766
- { accepted_at: Time, card_dispute_id: String, transaction_id: String }
771
+ { accepted_at: Time, transaction_id: String }
767
772
 
768
773
  class CardDisputeAcceptance < Increase::Internal::Type::BaseModel
769
774
  attr_accessor accepted_at: Time
770
775
 
771
- attr_accessor card_dispute_id: String
772
-
773
776
  attr_accessor transaction_id: String
774
777
 
775
- def initialize: (
776
- accepted_at: Time,
777
- card_dispute_id: String,
778
- transaction_id: String
779
- ) -> void
778
+ def initialize: (accepted_at: Time, transaction_id: String) -> void
780
779
 
781
- def to_hash: -> {
782
- accepted_at: Time,
783
- card_dispute_id: String,
784
- transaction_id: String
785
- }
780
+ def to_hash: -> { accepted_at: Time, transaction_id: String }
786
781
  end
787
782
 
788
783
  type card_dispute_financial =
789
784
  {
790
785
  amount: Integer,
791
- card_dispute_id: String,
792
786
  network: Increase::Models::Transaction::Source::CardDisputeFinancial::network,
793
787
  transaction_id: String,
794
788
  visa: Increase::Transaction::Source::CardDisputeFinancial::Visa?
@@ -797,8 +791,6 @@ module Increase
797
791
  class CardDisputeFinancial < Increase::Internal::Type::BaseModel
798
792
  attr_accessor amount: Integer
799
793
 
800
- attr_accessor card_dispute_id: String
801
-
802
794
  attr_accessor network: Increase::Models::Transaction::Source::CardDisputeFinancial::network
803
795
 
804
796
  attr_accessor transaction_id: String
@@ -807,7 +799,6 @@ module Increase
807
799
 
808
800
  def initialize: (
809
801
  amount: Integer,
810
- card_dispute_id: String,
811
802
  network: Increase::Models::Transaction::Source::CardDisputeFinancial::network,
812
803
  transaction_id: String,
813
804
  visa: Increase::Transaction::Source::CardDisputeFinancial::Visa?
@@ -815,7 +806,6 @@ module Increase
815
806
 
816
807
  def to_hash: -> {
817
808
  amount: Integer,
818
- card_dispute_id: String,
819
809
  network: Increase::Models::Transaction::Source::CardDisputeFinancial::network,
820
810
  transaction_id: String,
821
811
  visa: Increase::Transaction::Source::CardDisputeFinancial::Visa?
@@ -887,16 +877,9 @@ module Increase
887
877
  end
888
878
 
889
879
  type card_dispute_loss =
890
- {
891
- card_dispute_id: String,
892
- explanation: String,
893
- lost_at: Time,
894
- transaction_id: String
895
- }
880
+ { explanation: String, lost_at: Time, transaction_id: String }
896
881
 
897
882
  class CardDisputeLoss < Increase::Internal::Type::BaseModel
898
- attr_accessor card_dispute_id: String
899
-
900
883
  attr_accessor explanation: String
901
884
 
902
885
  attr_accessor lost_at: Time
@@ -904,14 +887,12 @@ module Increase
904
887
  attr_accessor transaction_id: String
905
888
 
906
889
  def initialize: (
907
- card_dispute_id: String,
908
890
  explanation: String,
909
891
  lost_at: Time,
910
892
  transaction_id: String
911
893
  ) -> void
912
894
 
913
895
  def to_hash: -> {
914
- card_dispute_id: String,
915
896
  explanation: String,
916
897
  lost_at: Time,
917
898
  transaction_id: String
@@ -3156,6 +3137,7 @@ module Increase
3156
3137
  | :inbound_ach_transfer_return_intention
3157
3138
  | :inbound_check_deposit_return_intention
3158
3139
  | :inbound_check_adjustment
3140
+ | :inbound_fednow_transfer_confirmation
3159
3141
  | :inbound_real_time_payments_transfer_confirmation
3160
3142
  | :inbound_wire_reversal
3161
3143
  | :inbound_wire_transfer
@@ -3234,6 +3216,9 @@ module Increase
3234
3216
  # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object.
3235
3217
  INBOUND_CHECK_ADJUSTMENT: :inbound_check_adjustment
3236
3218
 
3219
+ # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
3220
+ INBOUND_FEDNOW_TRANSFER_CONFIRMATION: :inbound_fednow_transfer_confirmation
3221
+
3237
3222
  # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
3238
3223
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION: :inbound_real_time_payments_transfer_confirmation
3239
3224
 
@@ -3870,6 +3855,16 @@ module Increase
3870
3855
  }
3871
3856
  end
3872
3857
 
3858
+ type inbound_fednow_transfer_confirmation = { transfer_id: String }
3859
+
3860
+ class InboundFednowTransferConfirmation < Increase::Internal::Type::BaseModel
3861
+ attr_accessor transfer_id: String
3862
+
3863
+ def initialize: (transfer_id: String) -> void
3864
+
3865
+ def to_hash: -> { transfer_id: String }
3866
+ end
3867
+
3873
3868
  type inbound_real_time_payments_transfer_confirmation =
3874
3869
  {
3875
3870
  amount: Integer,
@@ -102,6 +102,7 @@ module Increase
102
102
  | :inbound_ach_transfer_return_intention
103
103
  | :inbound_check_deposit_return_intention
104
104
  | :inbound_check_adjustment
105
+ | :inbound_fednow_transfer_confirmation
105
106
  | :inbound_real_time_payments_transfer_confirmation
106
107
  | :inbound_wire_reversal
107
108
  | :inbound_wire_transfer
@@ -180,6 +181,9 @@ module Increase
180
181
  # Inbound Check Adjustment: details will be under the `inbound_check_adjustment` object.
181
182
  INBOUND_CHECK_ADJUSTMENT: :inbound_check_adjustment
182
183
 
184
+ # Inbound FedNow Transfer Confirmation: details will be under the `inbound_fednow_transfer_confirmation` object.
185
+ INBOUND_FEDNOW_TRANSFER_CONFIRMATION: :inbound_fednow_transfer_confirmation
186
+
183
187
  # Inbound Real-Time Payments Transfer Confirmation: details will be under the `inbound_real_time_payments_transfer_confirmation` object.
184
188
  INBOUND_REAL_TIME_PAYMENTS_TRANSFER_CONFIRMATION: :inbound_real_time_payments_transfer_confirmation
185
189
 
@@ -99,14 +99,6 @@ module Increase
99
99
 
100
100
  class CardDetailsParams = Increase::Models::CardDetailsParams
101
101
 
102
- class CardDispute = Increase::Models::CardDispute
103
-
104
- class CardDisputeCreateParams = Increase::Models::CardDisputeCreateParams
105
-
106
- class CardDisputeListParams = Increase::Models::CardDisputeListParams
107
-
108
- class CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams
109
-
110
102
  class CardIframeURL = Increase::Models::CardIframeURL
111
103
 
112
104
  class CardListParams = Increase::Models::CardListParams
@@ -19,8 +19,6 @@ module Increase
19
19
 
20
20
  attr_reader card_refunds: Increase::Resources::Simulations::CardRefunds
21
21
 
22
- attr_reader card_disputes: Increase::Resources::Simulations::CardDisputes
23
-
24
22
  attr_reader physical_cards: Increase::Resources::Simulations::PhysicalCards
25
23
 
26
24
  attr_reader digital_wallet_token_requests: Increase::Resources::Simulations::DigitalWalletTokenRequests
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.78.0
4
+ version: 1.80.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-16 00:00:00.000000000 Z
11
+ date: 2025-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -106,10 +106,6 @@ files:
106
106
  - lib/increase/models/card_create_params.rb
107
107
  - lib/increase/models/card_details.rb
108
108
  - lib/increase/models/card_details_params.rb
109
- - lib/increase/models/card_dispute.rb
110
- - lib/increase/models/card_dispute_create_params.rb
111
- - lib/increase/models/card_dispute_list_params.rb
112
- - lib/increase/models/card_dispute_retrieve_params.rb
113
109
  - lib/increase/models/card_iframe_url.rb
114
110
  - lib/increase/models/card_list_params.rb
115
111
  - lib/increase/models/card_payment.rb
@@ -289,7 +285,6 @@ files:
289
285
  - lib/increase/models/simulations/card_authorization_create_params.rb
290
286
  - lib/increase/models/simulations/card_authorization_create_response.rb
291
287
  - lib/increase/models/simulations/card_authorization_expiration_create_params.rb
292
- - lib/increase/models/simulations/card_dispute_action_params.rb
293
288
  - lib/increase/models/simulations/card_fuel_confirmation_create_params.rb
294
289
  - lib/increase/models/simulations/card_increment_create_params.rb
295
290
  - lib/increase/models/simulations/card_refund_create_params.rb
@@ -344,7 +339,6 @@ files:
344
339
  - lib/increase/resources/bookkeeping_accounts.rb
345
340
  - lib/increase/resources/bookkeeping_entries.rb
346
341
  - lib/increase/resources/bookkeeping_entry_sets.rb
347
- - lib/increase/resources/card_disputes.rb
348
342
  - lib/increase/resources/card_payments.rb
349
343
  - lib/increase/resources/card_purchase_supplements.rb
350
344
  - lib/increase/resources/card_push_transfers.rb
@@ -391,7 +385,6 @@ files:
391
385
  - lib/increase/resources/simulations/ach_transfers.rb
392
386
  - lib/increase/resources/simulations/card_authorization_expirations.rb
393
387
  - lib/increase/resources/simulations/card_authorizations.rb
394
- - lib/increase/resources/simulations/card_disputes.rb
395
388
  - lib/increase/resources/simulations/card_fuel_confirmations.rb
396
389
  - lib/increase/resources/simulations/card_increments.rb
397
390
  - lib/increase/resources/simulations/card_refunds.rb
@@ -491,10 +484,6 @@ files:
491
484
  - rbi/increase/models/card_create_params.rbi
492
485
  - rbi/increase/models/card_details.rbi
493
486
  - rbi/increase/models/card_details_params.rbi
494
- - rbi/increase/models/card_dispute.rbi
495
- - rbi/increase/models/card_dispute_create_params.rbi
496
- - rbi/increase/models/card_dispute_list_params.rbi
497
- - rbi/increase/models/card_dispute_retrieve_params.rbi
498
487
  - rbi/increase/models/card_iframe_url.rbi
499
488
  - rbi/increase/models/card_list_params.rbi
500
489
  - rbi/increase/models/card_payment.rbi
@@ -674,7 +663,6 @@ files:
674
663
  - rbi/increase/models/simulations/card_authorization_create_params.rbi
675
664
  - rbi/increase/models/simulations/card_authorization_create_response.rbi
676
665
  - rbi/increase/models/simulations/card_authorization_expiration_create_params.rbi
677
- - rbi/increase/models/simulations/card_dispute_action_params.rbi
678
666
  - rbi/increase/models/simulations/card_fuel_confirmation_create_params.rbi
679
667
  - rbi/increase/models/simulations/card_increment_create_params.rbi
680
668
  - rbi/increase/models/simulations/card_refund_create_params.rbi
@@ -729,7 +717,6 @@ files:
729
717
  - rbi/increase/resources/bookkeeping_accounts.rbi
730
718
  - rbi/increase/resources/bookkeeping_entries.rbi
731
719
  - rbi/increase/resources/bookkeeping_entry_sets.rbi
732
- - rbi/increase/resources/card_disputes.rbi
733
720
  - rbi/increase/resources/card_payments.rbi
734
721
  - rbi/increase/resources/card_purchase_supplements.rbi
735
722
  - rbi/increase/resources/card_push_transfers.rbi
@@ -776,7 +763,6 @@ files:
776
763
  - rbi/increase/resources/simulations/ach_transfers.rbi
777
764
  - rbi/increase/resources/simulations/card_authorization_expirations.rbi
778
765
  - rbi/increase/resources/simulations/card_authorizations.rbi
779
- - rbi/increase/resources/simulations/card_disputes.rbi
780
766
  - rbi/increase/resources/simulations/card_fuel_confirmations.rbi
781
767
  - rbi/increase/resources/simulations/card_increments.rbi
782
768
  - rbi/increase/resources/simulations/card_refunds.rbi
@@ -875,10 +861,6 @@ files:
875
861
  - sig/increase/models/card_create_params.rbs
876
862
  - sig/increase/models/card_details.rbs
877
863
  - sig/increase/models/card_details_params.rbs
878
- - sig/increase/models/card_dispute.rbs
879
- - sig/increase/models/card_dispute_create_params.rbs
880
- - sig/increase/models/card_dispute_list_params.rbs
881
- - sig/increase/models/card_dispute_retrieve_params.rbs
882
864
  - sig/increase/models/card_iframe_url.rbs
883
865
  - sig/increase/models/card_list_params.rbs
884
866
  - sig/increase/models/card_payment.rbs
@@ -1058,7 +1040,6 @@ files:
1058
1040
  - sig/increase/models/simulations/card_authorization_create_params.rbs
1059
1041
  - sig/increase/models/simulations/card_authorization_create_response.rbs
1060
1042
  - sig/increase/models/simulations/card_authorization_expiration_create_params.rbs
1061
- - sig/increase/models/simulations/card_dispute_action_params.rbs
1062
1043
  - sig/increase/models/simulations/card_fuel_confirmation_create_params.rbs
1063
1044
  - sig/increase/models/simulations/card_increment_create_params.rbs
1064
1045
  - sig/increase/models/simulations/card_refund_create_params.rbs
@@ -1113,7 +1094,6 @@ files:
1113
1094
  - sig/increase/resources/bookkeeping_accounts.rbs
1114
1095
  - sig/increase/resources/bookkeeping_entries.rbs
1115
1096
  - sig/increase/resources/bookkeeping_entry_sets.rbs
1116
- - sig/increase/resources/card_disputes.rbs
1117
1097
  - sig/increase/resources/card_payments.rbs
1118
1098
  - sig/increase/resources/card_purchase_supplements.rbs
1119
1099
  - sig/increase/resources/card_push_transfers.rbs
@@ -1160,7 +1140,6 @@ files:
1160
1140
  - sig/increase/resources/simulations/ach_transfers.rbs
1161
1141
  - sig/increase/resources/simulations/card_authorization_expirations.rbs
1162
1142
  - sig/increase/resources/simulations/card_authorizations.rbs
1163
- - sig/increase/resources/simulations/card_disputes.rbs
1164
1143
  - sig/increase/resources/simulations/card_fuel_confirmations.rbs
1165
1144
  - sig/increase/resources/simulations/card_increments.rbs
1166
1145
  - sig/increase/resources/simulations/card_refunds.rbs
@@ -1,302 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::CardDisputes#create
6
- class CardDispute < Increase::Internal::Type::BaseModel
7
- # @!attribute id
8
- # The Card Dispute identifier.
9
- #
10
- # @return [String]
11
- required :id, String
12
-
13
- # @!attribute acceptance
14
- # If the Card Dispute's status is `accepted`, this will contain details of the
15
- # successful dispute.
16
- #
17
- # @return [Increase::Models::CardDispute::Acceptance, nil]
18
- required :acceptance, -> { Increase::CardDispute::Acceptance }, nil?: true
19
-
20
- # @!attribute amount
21
- # The amount of the dispute, if provided, or the transaction amount otherwise.
22
- #
23
- # @return [Integer, nil]
24
- required :amount, Integer, nil?: true
25
-
26
- # @!attribute created_at
27
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
28
- # the Card Dispute was created.
29
- #
30
- # @return [Time]
31
- required :created_at, Time
32
-
33
- # @!attribute disputed_transaction_id
34
- # The identifier of the Transaction that was disputed.
35
- #
36
- # @return [String]
37
- required :disputed_transaction_id, String
38
-
39
- # @!attribute explanation
40
- # Why you disputed the Transaction in question.
41
- #
42
- # @return [String]
43
- required :explanation, String
44
-
45
- # @!attribute idempotency_key
46
- # The idempotency key you chose for this object. This value is unique across
47
- # Increase and is used to ensure that a request is only processed once. Learn more
48
- # about [idempotency](https://increase.com/documentation/idempotency-keys).
49
- #
50
- # @return [String, nil]
51
- required :idempotency_key, String, nil?: true
52
-
53
- # @!attribute loss
54
- # If the Card Dispute's status is `lost`, this will contain details of the lost
55
- # dispute.
56
- #
57
- # @return [Increase::Models::CardDispute::Loss, nil]
58
- required :loss, -> { Increase::CardDispute::Loss }, nil?: true
59
-
60
- # @!attribute rejection
61
- # If the Card Dispute's status is `rejected`, this will contain details of the
62
- # unsuccessful dispute.
63
- #
64
- # @return [Increase::Models::CardDispute::Rejection, nil]
65
- required :rejection, -> { Increase::CardDispute::Rejection }, nil?: true
66
-
67
- # @!attribute status
68
- # The results of the Dispute investigation.
69
- #
70
- # @return [Symbol, Increase::Models::CardDispute::Status]
71
- required :status, enum: -> { Increase::CardDispute::Status }
72
-
73
- # @!attribute type
74
- # A constant representing the object's type. For this resource it will always be
75
- # `card_dispute`.
76
- #
77
- # @return [Symbol, Increase::Models::CardDispute::Type]
78
- required :type, enum: -> { Increase::CardDispute::Type }
79
-
80
- # @!attribute win
81
- # If the Card Dispute's status is `won`, this will contain details of the won
82
- # dispute.
83
- #
84
- # @return [Increase::Models::CardDispute::Win, nil]
85
- required :win, -> { Increase::CardDispute::Win }, nil?: true
86
-
87
- # @!method initialize(id:, acceptance:, amount:, created_at:, disputed_transaction_id:, explanation:, idempotency_key:, loss:, rejection:, status:, type:, win:)
88
- # Some parameter documentations has been truncated, see
89
- # {Increase::Models::CardDispute} for more details.
90
- #
91
- # If unauthorized activity occurs on a card, you can create a Card Dispute and
92
- # we'll return the funds if appropriate.
93
- #
94
- # @param id [String] The Card Dispute identifier.
95
- #
96
- # @param acceptance [Increase::Models::CardDispute::Acceptance, nil] If the Card Dispute's status is `accepted`, this will contain details of the suc
97
- #
98
- # @param amount [Integer, nil] The amount of the dispute, if provided, or the transaction amount otherwise.
99
- #
100
- # @param created_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
101
- #
102
- # @param disputed_transaction_id [String] The identifier of the Transaction that was disputed.
103
- #
104
- # @param explanation [String] Why you disputed the Transaction in question.
105
- #
106
- # @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
107
- #
108
- # @param loss [Increase::Models::CardDispute::Loss, nil] If the Card Dispute's status is `lost`, this will contain details of the lost di
109
- #
110
- # @param rejection [Increase::Models::CardDispute::Rejection, nil] If the Card Dispute's status is `rejected`, this will contain details of the uns
111
- #
112
- # @param status [Symbol, Increase::Models::CardDispute::Status] The results of the Dispute investigation.
113
- #
114
- # @param type [Symbol, Increase::Models::CardDispute::Type] A constant representing the object's type. For this resource it will always be `
115
- #
116
- # @param win [Increase::Models::CardDispute::Win, nil] If the Card Dispute's status is `won`, this will contain details of the won disp
117
-
118
- # @see Increase::Models::CardDispute#acceptance
119
- class Acceptance < Increase::Internal::Type::BaseModel
120
- # @!attribute accepted_at
121
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
122
- # the Card Dispute was accepted.
123
- #
124
- # @return [Time]
125
- required :accepted_at, Time
126
-
127
- # @!attribute card_dispute_id
128
- # The identifier of the Card Dispute that was accepted.
129
- #
130
- # @return [String]
131
- required :card_dispute_id, String
132
-
133
- # @!attribute transaction_id
134
- # The identifier of the Transaction that was created to return the disputed funds
135
- # to your account.
136
- #
137
- # @return [String]
138
- required :transaction_id, String
139
-
140
- # @!method initialize(accepted_at:, card_dispute_id:, transaction_id:)
141
- # Some parameter documentations has been truncated, see
142
- # {Increase::Models::CardDispute::Acceptance} for more details.
143
- #
144
- # If the Card Dispute's status is `accepted`, this will contain details of the
145
- # successful dispute.
146
- #
147
- # @param accepted_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
148
- #
149
- # @param card_dispute_id [String] The identifier of the Card Dispute that was accepted.
150
- #
151
- # @param transaction_id [String] The identifier of the Transaction that was created to return the disputed funds
152
- end
153
-
154
- # @see Increase::Models::CardDispute#loss
155
- class Loss < Increase::Internal::Type::BaseModel
156
- # @!attribute card_dispute_id
157
- # The identifier of the Card Dispute that was lost.
158
- #
159
- # @return [String]
160
- required :card_dispute_id, String
161
-
162
- # @!attribute explanation
163
- # Why the Card Dispute was lost.
164
- #
165
- # @return [String]
166
- required :explanation, String
167
-
168
- # @!attribute lost_at
169
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
170
- # the Card Dispute was lost.
171
- #
172
- # @return [Time]
173
- required :lost_at, Time
174
-
175
- # @!attribute transaction_id
176
- # The identifier of the Transaction that was created to debit the disputed funds
177
- # from your account.
178
- #
179
- # @return [String]
180
- required :transaction_id, String
181
-
182
- # @!method initialize(card_dispute_id:, explanation:, lost_at:, transaction_id:)
183
- # Some parameter documentations has been truncated, see
184
- # {Increase::Models::CardDispute::Loss} for more details.
185
- #
186
- # If the Card Dispute's status is `lost`, this will contain details of the lost
187
- # dispute.
188
- #
189
- # @param card_dispute_id [String] The identifier of the Card Dispute that was lost.
190
- #
191
- # @param explanation [String] Why the Card Dispute was lost.
192
- #
193
- # @param lost_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
194
- #
195
- # @param transaction_id [String] The identifier of the Transaction that was created to debit the disputed funds f
196
- end
197
-
198
- # @see Increase::Models::CardDispute#rejection
199
- class Rejection < Increase::Internal::Type::BaseModel
200
- # @!attribute card_dispute_id
201
- # The identifier of the Card Dispute that was rejected.
202
- #
203
- # @return [String]
204
- required :card_dispute_id, String
205
-
206
- # @!attribute explanation
207
- # Why the Card Dispute was rejected.
208
- #
209
- # @return [String]
210
- required :explanation, String
211
-
212
- # @!attribute rejected_at
213
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
214
- # the Card Dispute was rejected.
215
- #
216
- # @return [Time]
217
- required :rejected_at, Time
218
-
219
- # @!method initialize(card_dispute_id:, explanation:, rejected_at:)
220
- # Some parameter documentations has been truncated, see
221
- # {Increase::Models::CardDispute::Rejection} for more details.
222
- #
223
- # If the Card Dispute's status is `rejected`, this will contain details of the
224
- # unsuccessful dispute.
225
- #
226
- # @param card_dispute_id [String] The identifier of the Card Dispute that was rejected.
227
- #
228
- # @param explanation [String] Why the Card Dispute was rejected.
229
- #
230
- # @param rejected_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
231
- end
232
-
233
- # The results of the Dispute investigation.
234
- #
235
- # @see Increase::Models::CardDispute#status
236
- module Status
237
- extend Increase::Internal::Type::Enum
238
-
239
- # The Card Dispute is pending review.
240
- PENDING_REVIEWING = :pending_reviewing
241
-
242
- # Increase has requested more information related to the Card Dispute from you.
243
- PENDING_USER_INFORMATION = :pending_user_information
244
-
245
- # The Card Dispute has been accepted and your funds have been returned. The card dispute will eventually transition into `won` or `lost` depending on the outcome.
246
- ACCEPTED = :accepted
247
-
248
- # The Card Dispute has been rejected.
249
- REJECTED = :rejected
250
-
251
- # The Card Dispute has been lost and funds previously credited from the acceptance have been debited.
252
- LOST = :lost
253
-
254
- # The Card Dispute has been won and no further action can be taken.
255
- WON = :won
256
-
257
- # @!method self.values
258
- # @return [Array<Symbol>]
259
- end
260
-
261
- # A constant representing the object's type. For this resource it will always be
262
- # `card_dispute`.
263
- #
264
- # @see Increase::Models::CardDispute#type
265
- module Type
266
- extend Increase::Internal::Type::Enum
267
-
268
- CARD_DISPUTE = :card_dispute
269
-
270
- # @!method self.values
271
- # @return [Array<Symbol>]
272
- end
273
-
274
- # @see Increase::Models::CardDispute#win
275
- class Win < Increase::Internal::Type::BaseModel
276
- # @!attribute card_dispute_id
277
- # The identifier of the Card Dispute that was won.
278
- #
279
- # @return [String]
280
- required :card_dispute_id, String
281
-
282
- # @!attribute won_at
283
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
284
- # the Card Dispute was won.
285
- #
286
- # @return [Time]
287
- required :won_at, Time
288
-
289
- # @!method initialize(card_dispute_id:, won_at:)
290
- # Some parameter documentations has been truncated, see
291
- # {Increase::Models::CardDispute::Win} for more details.
292
- #
293
- # If the Card Dispute's status is `won`, this will contain details of the won
294
- # dispute.
295
- #
296
- # @param card_dispute_id [String] The identifier of the Card Dispute that was won.
297
- #
298
- # @param won_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which th
299
- end
300
- end
301
- end
302
- end
@@ -1,45 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Models
5
- # @see Increase::Resources::CardDisputes#create
6
- class CardDisputeCreateParams < Increase::Internal::Type::BaseModel
7
- extend Increase::Internal::Type::RequestParameters::Converter
8
- include Increase::Internal::Type::RequestParameters
9
-
10
- # @!attribute disputed_transaction_id
11
- # The Transaction you wish to dispute. This Transaction must have a `source_type`
12
- # of `card_settlement`.
13
- #
14
- # @return [String]
15
- required :disputed_transaction_id, String
16
-
17
- # @!attribute explanation
18
- # Why you are disputing this Transaction.
19
- #
20
- # @return [String]
21
- required :explanation, String
22
-
23
- # @!attribute amount
24
- # The monetary amount of the part of the transaction that is being disputed. This
25
- # is optional and will default to the full amount of the transaction if not
26
- # provided. If provided, the amount must be less than or equal to the amount of
27
- # the transaction.
28
- #
29
- # @return [Integer, nil]
30
- optional :amount, Integer
31
-
32
- # @!method initialize(disputed_transaction_id:, explanation:, amount: nil, request_options: {})
33
- # Some parameter documentations has been truncated, see
34
- # {Increase::Models::CardDisputeCreateParams} for more details.
35
- #
36
- # @param disputed_transaction_id [String] The Transaction you wish to dispute. This Transaction must have a `source_type`
37
- #
38
- # @param explanation [String] Why you are disputing this Transaction.
39
- #
40
- # @param amount [Integer] The monetary amount of the part of the transaction that is being disputed. This
41
- #
42
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
43
- end
44
- end
45
- end