increase 1.126.0 → 1.128.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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/models/card_dispute.rb +311 -66
  5. data/lib/increase/models/card_dispute_create_params.rb +102 -30
  6. data/lib/increase/models/card_dispute_submit_user_submission_params.rb +104 -30
  7. data/lib/increase/models/card_payment.rb +60 -15
  8. data/lib/increase/models/declined_transaction.rb +21 -6
  9. data/lib/increase/models/export_create_params.rb +8 -3
  10. data/lib/increase/models/pending_transaction.rb +32 -33
  11. data/lib/increase/models/real_time_decision.rb +24 -6
  12. data/lib/increase/models/simulations/card_dispute_action_params.rb +97 -27
  13. data/lib/increase/models/transaction.rb +23 -6
  14. data/lib/increase/resources/exports.rb +1 -1
  15. data/lib/increase/version.rb +1 -1
  16. data/rbi/increase/models/card_dispute.rbi +1038 -88
  17. data/rbi/increase/models/card_dispute_create_params.rbi +364 -40
  18. data/rbi/increase/models/card_dispute_submit_user_submission_params.rbi +364 -40
  19. data/rbi/increase/models/card_payment.rbi +211 -20
  20. data/rbi/increase/models/declined_transaction.rbi +78 -8
  21. data/rbi/increase/models/export_create_params.rbi +25 -4
  22. data/rbi/increase/models/pending_transaction.rbi +90 -53
  23. data/rbi/increase/models/real_time_decision.rbi +90 -8
  24. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +333 -36
  25. data/rbi/increase/models/transaction.rbi +76 -8
  26. data/rbi/increase/resources/exports.rbi +1 -1
  27. data/sig/increase/models/card_dispute.rbs +264 -88
  28. data/sig/increase/models/card_dispute_create_params.rbs +150 -50
  29. data/sig/increase/models/card_dispute_submit_user_submission_params.rbs +150 -50
  30. data/sig/increase/models/card_payment.rbs +60 -20
  31. data/sig/increase/models/declined_transaction.rbs +24 -8
  32. data/sig/increase/models/export_create_params.rbs +15 -5
  33. data/sig/increase/models/pending_transaction.rbs +29 -27
  34. data/sig/increase/models/real_time_decision.rbs +24 -8
  35. data/sig/increase/models/simulations/card_dispute_action_params.rbs +135 -45
  36. data/sig/increase/models/transaction.rbs +24 -8
  37. data/sig/increase/resources/exports.rbs +1 -1
  38. metadata +1 -1
@@ -56,36 +56,39 @@ module Increase
56
56
  # The parameters for accepting the chargeback. Required if and only if `action` is
57
57
  # `accept_chargeback`.
58
58
  #
59
- # @return [Object, nil]
60
- optional :accept_chargeback, Increase::Internal::Type::Unknown
59
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptChargeback, nil]
60
+ optional :accept_chargeback, -> { Increase::Simulations::CardDisputeActionParams::Visa::AcceptChargeback }
61
61
 
62
62
  # @!attribute accept_user_submission
63
63
  # The parameters for accepting the user submission. Required if and only if
64
64
  # `action` is `accept_user_submission`.
65
65
  #
66
- # @return [Object, nil]
67
- optional :accept_user_submission, Increase::Internal::Type::Unknown
66
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission, nil]
67
+ optional :accept_user_submission,
68
+ -> { Increase::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission }
68
69
 
69
70
  # @!attribute decline_user_prearbitration
70
71
  # The parameters for declining the prearbitration. Required if and only if
71
72
  # `action` is `decline_user_prearbitration`.
72
73
  #
73
- # @return [Object, nil]
74
- optional :decline_user_prearbitration, Increase::Internal::Type::Unknown
74
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::DeclineUserPrearbitration, nil]
75
+ optional :decline_user_prearbitration,
76
+ -> { Increase::Simulations::CardDisputeActionParams::Visa::DeclineUserPrearbitration }
75
77
 
76
78
  # @!attribute receive_merchant_prearbitration
77
79
  # The parameters for receiving the prearbitration. Required if and only if
78
80
  # `action` is `receive_merchant_prearbitration`.
79
81
  #
80
- # @return [Object, nil]
81
- optional :receive_merchant_prearbitration, Increase::Internal::Type::Unknown
82
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::ReceiveMerchantPrearbitration, nil]
83
+ optional :receive_merchant_prearbitration,
84
+ -> { Increase::Simulations::CardDisputeActionParams::Visa::ReceiveMerchantPrearbitration }
82
85
 
83
86
  # @!attribute represent
84
87
  # The parameters for re-presenting the dispute. Required if and only if `action`
85
88
  # is `represent`.
86
89
  #
87
- # @return [Object, nil]
88
- optional :represent, Increase::Internal::Type::Unknown
90
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::Represent, nil]
91
+ optional :represent, -> { Increase::Simulations::CardDisputeActionParams::Visa::Represent }
89
92
 
90
93
  # @!attribute request_further_information
91
94
  # The parameters for requesting further information from the user. Required if and
@@ -99,29 +102,33 @@ module Increase
99
102
  # The parameters for timing out the chargeback. Required if and only if `action`
100
103
  # is `time_out_chargeback`.
101
104
  #
102
- # @return [Object, nil]
103
- optional :time_out_chargeback, Increase::Internal::Type::Unknown
105
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutChargeback, nil]
106
+ optional :time_out_chargeback,
107
+ -> { Increase::Simulations::CardDisputeActionParams::Visa::TimeOutChargeback }
104
108
 
105
109
  # @!attribute time_out_merchant_prearbitration
106
110
  # The parameters for timing out the merchant prearbitration. Required if and only
107
111
  # if `action` is `time_out_merchant_prearbitration`.
108
112
  #
109
- # @return [Object, nil]
110
- optional :time_out_merchant_prearbitration, Increase::Internal::Type::Unknown
113
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutMerchantPrearbitration, nil]
114
+ optional :time_out_merchant_prearbitration,
115
+ -> { Increase::Simulations::CardDisputeActionParams::Visa::TimeOutMerchantPrearbitration }
111
116
 
112
117
  # @!attribute time_out_representment
113
118
  # The parameters for timing out the re-presentment. Required if and only if
114
119
  # `action` is `time_out_representment`.
115
120
  #
116
- # @return [Object, nil]
117
- optional :time_out_representment, Increase::Internal::Type::Unknown
121
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutRepresentment, nil]
122
+ optional :time_out_representment,
123
+ -> { Increase::Simulations::CardDisputeActionParams::Visa::TimeOutRepresentment }
118
124
 
119
125
  # @!attribute time_out_user_prearbitration
120
126
  # The parameters for timing out the user prearbitration. Required if and only if
121
127
  # `action` is `time_out_user_prearbitration`.
122
128
  #
123
- # @return [Object, nil]
124
- optional :time_out_user_prearbitration, Increase::Internal::Type::Unknown
129
+ # @return [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutUserPrearbitration, nil]
130
+ optional :time_out_user_prearbitration,
131
+ -> { Increase::Simulations::CardDisputeActionParams::Visa::TimeOutUserPrearbitration }
125
132
 
126
133
  # @!method initialize(action:, accept_chargeback: nil, accept_user_submission: nil, decline_user_prearbitration: nil, receive_merchant_prearbitration: nil, represent: nil, request_further_information: nil, time_out_chargeback: nil, time_out_merchant_prearbitration: nil, time_out_representment: nil, time_out_user_prearbitration: nil)
127
134
  # Some parameter documentations has been truncated, see
@@ -132,25 +139,25 @@ module Increase
132
139
  #
133
140
  # @param action [Symbol, Increase::Models::Simulations::CardDisputeActionParams::Visa::Action] The action to take. Details specific to the action are required under the sub-ob
134
141
  #
135
- # @param accept_chargeback [Object] The parameters for accepting the chargeback. Required if and only if `action` is
142
+ # @param accept_chargeback [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptChargeback] The parameters for accepting the chargeback. Required if and only if `action` is
136
143
  #
137
- # @param accept_user_submission [Object] The parameters for accepting the user submission. Required if and only if `actio
144
+ # @param accept_user_submission [Increase::Models::Simulations::CardDisputeActionParams::Visa::AcceptUserSubmission] The parameters for accepting the user submission. Required if and only if `actio
138
145
  #
139
- # @param decline_user_prearbitration [Object] The parameters for declining the prearbitration. Required if and only if `action
146
+ # @param decline_user_prearbitration [Increase::Models::Simulations::CardDisputeActionParams::Visa::DeclineUserPrearbitration] The parameters for declining the prearbitration. Required if and only if `action
140
147
  #
141
- # @param receive_merchant_prearbitration [Object] The parameters for receiving the prearbitration. Required if and only if `action
148
+ # @param receive_merchant_prearbitration [Increase::Models::Simulations::CardDisputeActionParams::Visa::ReceiveMerchantPrearbitration] The parameters for receiving the prearbitration. Required if and only if `action
142
149
  #
143
- # @param represent [Object] The parameters for re-presenting the dispute. Required if and only if `action` i
150
+ # @param represent [Increase::Models::Simulations::CardDisputeActionParams::Visa::Represent] The parameters for re-presenting the dispute. Required if and only if `action` i
144
151
  #
145
152
  # @param request_further_information [Increase::Models::Simulations::CardDisputeActionParams::Visa::RequestFurtherInformation] The parameters for requesting further information from the user. Required if and
146
153
  #
147
- # @param time_out_chargeback [Object] The parameters for timing out the chargeback. Required if and only if `action` i
154
+ # @param time_out_chargeback [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutChargeback] The parameters for timing out the chargeback. Required if and only if `action` i
148
155
  #
149
- # @param time_out_merchant_prearbitration [Object] The parameters for timing out the merchant prearbitration. Required if and only
156
+ # @param time_out_merchant_prearbitration [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutMerchantPrearbitration] The parameters for timing out the merchant prearbitration. Required if and only
150
157
  #
151
- # @param time_out_representment [Object] The parameters for timing out the re-presentment. Required if and only if `actio
158
+ # @param time_out_representment [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutRepresentment] The parameters for timing out the re-presentment. Required if and only if `actio
152
159
  #
153
- # @param time_out_user_prearbitration [Object] The parameters for timing out the user prearbitration. Required if and only if `
160
+ # @param time_out_user_prearbitration [Increase::Models::Simulations::CardDisputeActionParams::Visa::TimeOutUserPrearbitration] The parameters for timing out the user prearbitration. Required if and only if `
154
161
 
155
162
  # The action to take. Details specific to the action are required under the
156
163
  # sub-object with the same identifier as the action.
@@ -193,6 +200,41 @@ module Increase
193
200
  # @return [Array<Symbol>]
194
201
  end
195
202
 
203
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#accept_chargeback
204
+ class AcceptChargeback < Increase::Internal::Type::BaseModel
205
+ # @!method initialize
206
+ # The parameters for accepting the chargeback. Required if and only if `action` is
207
+ # `accept_chargeback`.
208
+ end
209
+
210
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#accept_user_submission
211
+ class AcceptUserSubmission < Increase::Internal::Type::BaseModel
212
+ # @!method initialize
213
+ # The parameters for accepting the user submission. Required if and only if
214
+ # `action` is `accept_user_submission`.
215
+ end
216
+
217
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#decline_user_prearbitration
218
+ class DeclineUserPrearbitration < Increase::Internal::Type::BaseModel
219
+ # @!method initialize
220
+ # The parameters for declining the prearbitration. Required if and only if
221
+ # `action` is `decline_user_prearbitration`.
222
+ end
223
+
224
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#receive_merchant_prearbitration
225
+ class ReceiveMerchantPrearbitration < Increase::Internal::Type::BaseModel
226
+ # @!method initialize
227
+ # The parameters for receiving the prearbitration. Required if and only if
228
+ # `action` is `receive_merchant_prearbitration`.
229
+ end
230
+
231
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#represent
232
+ class Represent < Increase::Internal::Type::BaseModel
233
+ # @!method initialize
234
+ # The parameters for re-presenting the dispute. Required if and only if `action`
235
+ # is `represent`.
236
+ end
237
+
196
238
  # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#request_further_information
197
239
  class RequestFurtherInformation < Increase::Internal::Type::BaseModel
198
240
  # @!attribute reason
@@ -207,6 +249,34 @@ module Increase
207
249
  #
208
250
  # @param reason [String] The reason for requesting further information from the user.
209
251
  end
252
+
253
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#time_out_chargeback
254
+ class TimeOutChargeback < Increase::Internal::Type::BaseModel
255
+ # @!method initialize
256
+ # The parameters for timing out the chargeback. Required if and only if `action`
257
+ # is `time_out_chargeback`.
258
+ end
259
+
260
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#time_out_merchant_prearbitration
261
+ class TimeOutMerchantPrearbitration < Increase::Internal::Type::BaseModel
262
+ # @!method initialize
263
+ # The parameters for timing out the merchant prearbitration. Required if and only
264
+ # if `action` is `time_out_merchant_prearbitration`.
265
+ end
266
+
267
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#time_out_representment
268
+ class TimeOutRepresentment < Increase::Internal::Type::BaseModel
269
+ # @!method initialize
270
+ # The parameters for timing out the re-presentment. Required if and only if
271
+ # `action` is `time_out_representment`.
272
+ end
273
+
274
+ # @see Increase::Models::Simulations::CardDisputeActionParams::Visa#time_out_user_prearbitration
275
+ class TimeOutUserPrearbitration < Increase::Internal::Type::BaseModel
276
+ # @!method initialize
277
+ # The parameters for timing out the user prearbitration. Required if and only if
278
+ # `action` is `time_out_user_prearbitration`.
279
+ end
210
280
  end
211
281
  end
212
282
  end
@@ -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
@@ -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.126.0"
4
+ VERSION = "1.128.0"
5
5
  end