increase 1.365.0 → 1.367.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 (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/ach_transfer.rb +6 -6
  4. data/lib/increase/models/ach_transfer_create_params.rb +12 -10
  5. data/lib/increase/models/card_dispute.rb +131 -2
  6. data/lib/increase/models/card_dispute_create_params.rb +20 -16
  7. data/lib/increase/models/card_dispute_provide_provisional_credit_params.rb +22 -0
  8. data/lib/increase/models/card_dispute_reverse_provisional_credit_params.rb +22 -0
  9. data/lib/increase/models/card_payment.rb +352 -12
  10. data/lib/increase/models/declined_transaction.rb +10 -1
  11. data/lib/increase/models/pending_transaction.rb +10 -1
  12. data/lib/increase/models/simulations/card_refund_create_params.rb +6 -6
  13. data/lib/increase/models/simulations/inbound_ach_transfer_create_params.rb +3 -0
  14. data/lib/increase/models/transaction.rb +411 -6
  15. data/lib/increase/models/transaction_list_params.rb +3 -0
  16. data/lib/increase/models.rb +4 -0
  17. data/lib/increase/resources/ach_transfers.rb +6 -5
  18. data/lib/increase/resources/card_disputes.rb +50 -6
  19. data/lib/increase/resources/simulations/card_refunds.rb +3 -3
  20. data/lib/increase/version.rb +1 -1
  21. data/lib/increase.rb +2 -0
  22. data/rbi/increase/models/ach_transfer.rbi +6 -6
  23. data/rbi/increase/models/ach_transfer_create_params.rbi +12 -10
  24. data/rbi/increase/models/card_dispute.rbi +188 -0
  25. data/rbi/increase/models/card_dispute_create_params.rbi +20 -16
  26. data/rbi/increase/models/card_dispute_provide_provisional_credit_params.rbi +43 -0
  27. data/rbi/increase/models/card_dispute_reverse_provisional_credit_params.rbi +43 -0
  28. data/rbi/increase/models/card_payment.rbi +726 -10
  29. data/rbi/increase/models/declined_transaction.rbi +22 -1
  30. data/rbi/increase/models/pending_transaction.rbi +22 -1
  31. data/rbi/increase/models/simulations/card_refund_create_params.rbi +6 -6
  32. data/rbi/increase/models/simulations/inbound_ach_transfer_create_params.rbi +3 -0
  33. data/rbi/increase/models/transaction.rbi +792 -3
  34. data/rbi/increase/models/transaction_list_params.rbi +7 -0
  35. data/rbi/increase/models.rbi +6 -0
  36. data/rbi/increase/resources/ach_transfers.rbi +6 -5
  37. data/rbi/increase/resources/card_disputes.rbi +38 -6
  38. data/rbi/increase/resources/simulations/card_refunds.rbi +3 -3
  39. data/sig/increase/models/ach_transfer.rbs +8 -8
  40. data/sig/increase/models/card_dispute.rbs +79 -0
  41. data/sig/increase/models/card_dispute_provide_provisional_credit_params.rbs +23 -0
  42. data/sig/increase/models/card_dispute_reverse_provisional_credit_params.rbs +23 -0
  43. data/sig/increase/models/card_payment.rbs +378 -10
  44. data/sig/increase/models/declined_transaction.rbs +13 -1
  45. data/sig/increase/models/pending_transaction.rbs +13 -1
  46. data/sig/increase/models/transaction.rbs +363 -3
  47. data/sig/increase/models/transaction_list_params.rbs +4 -0
  48. data/sig/increase/models.rbs +4 -0
  49. data/sig/increase/resources/card_disputes.rbs +10 -0
  50. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae30bf0558ef4dcd7f6c606fa989019600d19712f54440b0d03342e9cac5713b
4
- data.tar.gz: 58ee46d1a2797d8baa5761e5ef95b5a08d57f3eff4fdcfe0e7878d73c6f38419
3
+ metadata.gz: 98e0ff963d3d275e9d524bc177b51d7d3367250d023e03ecb1297e047f6d91d9
4
+ data.tar.gz: bd91efc473f5df56ffa23baa5cb7989e9cf2a415b0c7c20a427e122b242922f6
5
5
  SHA512:
6
- metadata.gz: bcbe7bc136e89b0edb416519fcc4c0a7f76bc5f6fb07304d46f8ed6d1218a22c4ba84e66d614d14b3a30df9b17b26b735bc95ce6b0a1efaec1c97689c23f8567
7
- data.tar.gz: 34364314be2e3ae7edaaabc5dcb19ded77072920dc628e28eb9a3a03c606cc953981f456c188b2ae068f6101ed502c78bccceb5145311d947f131ff1633e239c
6
+ metadata.gz: 6fcf7d6a933dd0d04acb9bee822fe14370a062f3d9ddf1bf57ec7c066b2c066a93dd5c6237dc81792988b05751a89da5e9cdd3e29d5ad04cf2bdd33d081dacfd
7
+ data.tar.gz: 2097487a3b63b2661a217b04ea67c7902b134fd1730e68b7342e97d25f873ac4a842005452414cc7051558bc0f1a657687c714de4d6cf7e830a787cc21d08de4
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.365.0"
18
+ gem "increase", "~> 1.367.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -94,8 +94,8 @@ module Increase
94
94
  # @!attribute company_name
95
95
  # The name by which the recipient knows you.
96
96
  #
97
- # @return [String, nil]
98
- required :company_name, String, nil?: true
97
+ # @return [String]
98
+ required :company_name, String
99
99
 
100
100
  # @!attribute created_at
101
101
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -161,8 +161,8 @@ module Increase
161
161
  # The name of the transfer recipient. This value is informational and not verified
162
162
  # by the recipient's bank.
163
163
  #
164
- # @return [String, nil]
165
- required :individual_name, String, nil?: true
164
+ # @return [String]
165
+ required :individual_name, String
166
166
 
167
167
  # @!attribute network
168
168
  # The transfer's network.
@@ -312,7 +312,7 @@ module Increase
312
312
  # to debit their accounts. This value is configured by Increase and will be the
313
313
  # same for all your transfers.
314
314
  #
315
- # @param company_name [String, nil] The name by which the recipient knows you.
315
+ # @param company_name [String] The name by which the recipient knows you.
316
316
  #
317
317
  # @param created_at [Time]
318
318
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
@@ -346,7 +346,7 @@ module Increase
346
346
  # Your internal identifier for the transfer recipient. This value is informational
347
347
  # and not verified by the recipient's bank.
348
348
  #
349
- # @param individual_name [String, nil]
349
+ # @param individual_name [String]
350
350
  # The name of the transfer recipient. This value is informational and not verified
351
351
  # by the recipient's bank.
352
352
  #
@@ -31,17 +31,18 @@ module Increase
31
31
  # you're processing payments on behalf of another party, use their name, not your
32
32
  # own, so that it's more likely the recipient understands the context of the
33
33
  # payment. This value is usually displayed to the recipient on their bank
34
- # statement. We recommend setting this on every transfer; if you do not, we fall
35
- # back to the `statement_descriptor`.
34
+ # statement.
36
35
  #
37
36
  # @return [String]
38
37
  required :company_name, String
39
38
 
40
39
  # @!attribute individual_name
41
40
  # The name of the transfer recipient. This value is informational and generally
42
- # not verified by the recipient's bank. This value is usually displayed to the
43
- # recipient on their bank statement. We recommend setting this on every transfer;
44
- # if you do not, we fall back to the `statement_descriptor`.
41
+ # not verified by the recipient's bank. The business-to-business
42
+ # [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
43
+ # call this "individual name or receiving company name;" it's reasonable to
44
+ # include a business name in this field. This value is usually displayed to the
45
+ # recipient on their bank statement.
45
46
  #
46
47
  # @return [String]
47
48
  required :individual_name, String
@@ -174,14 +175,15 @@ module Increase
174
175
  # you're processing payments on behalf of another party, use their name, not your
175
176
  # own, so that it's more likely the recipient understands the context of the
176
177
  # payment. This value is usually displayed to the recipient on their bank
177
- # statement. We recommend setting this on every transfer; if you do not, we fall
178
- # back to the `statement_descriptor`.
178
+ # statement.
179
179
  #
180
180
  # @param individual_name [String]
181
181
  # The name of the transfer recipient. This value is informational and generally
182
- # not verified by the recipient's bank. This value is usually displayed to the
183
- # recipient on their bank statement. We recommend setting this on every transfer;
184
- # if you do not, we fall back to the `statement_descriptor`.
182
+ # not verified by the recipient's bank. The business-to-business
183
+ # [Standard Entry Class (SEC) codes](/documentation/ach-standard-entry-class-codes)
184
+ # call this "individual name or receiving company name;" it's reasonable to
185
+ # include a business name in this field. This value is usually displayed to the
186
+ # recipient on their bank statement.
185
187
  #
186
188
  # @param account_number [String]
187
189
  # The receiver's account number. For credit transfers (transfers with a positive
@@ -62,6 +62,13 @@ module Increase
62
62
  # @return [Symbol, Increase::Models::CardDispute::Network]
63
63
  required :network, enum: -> { Increase::CardDispute::Network }
64
64
 
65
+ # @!attribute provisional_credit
66
+ # If a provisional credit has been provided for the Card Dispute, this will
67
+ # contain details of the provisional credit.
68
+ #
69
+ # @return [Increase::Models::CardDispute::ProvisionalCredit, nil]
70
+ required :provisional_credit, -> { Increase::CardDispute::ProvisionalCredit }, nil?: true
71
+
65
72
  # @!attribute rejection
66
73
  # If the Card Dispute has been rejected, this will contain details of the
67
74
  # rejection.
@@ -113,7 +120,7 @@ module Increase
113
120
  # @return [Increase::Models::CardDispute::Withdrawal, nil]
114
121
  required :withdrawal, -> { Increase::CardDispute::Withdrawal }, nil?: true
115
122
 
116
- # @!method initialize(id:, account_id:, amount:, card_id:, created_at:, disputed_transaction_id:, idempotency_key:, loss:, network:, rejection:, status:, type:, user_submission_required_by:, visa:, win:, withdrawal:)
123
+ # @!method initialize(id:, account_id:, amount:, card_id:, created_at:, disputed_transaction_id:, idempotency_key:, loss:, network:, provisional_credit:, rejection:, status:, type:, user_submission_required_by:, visa:, win:, withdrawal:)
117
124
  # If unauthorized activity occurs on a card, you can create a Card Dispute and
118
125
  # we'll work with the card networks to return the funds if appropriate. For more
119
126
  # information, see our guide on
@@ -145,6 +152,10 @@ module Increase
145
152
  # @param network [Symbol, Increase::Models::CardDispute::Network]
146
153
  # The network that the Card Dispute is associated with.
147
154
  #
155
+ # @param provisional_credit [Increase::Models::CardDispute::ProvisionalCredit, nil]
156
+ # If a provisional credit has been provided for the Card Dispute, this will
157
+ # contain details of the provisional credit.
158
+ #
148
159
  # @param rejection [Increase::Models::CardDispute::Rejection, nil]
149
160
  # If the Card Dispute has been rejected, this will contain details of the
150
161
  # rejection.
@@ -232,6 +243,115 @@ module Increase
232
243
  # @return [Array<Symbol>]
233
244
  end
234
245
 
246
+ # @see Increase::Models::CardDispute#provisional_credit
247
+ class ProvisionalCredit < Increase::Internal::Type::BaseModel
248
+ # @!attribute amount
249
+ # The amount of the provisional credit in the minor unit of its currency. For
250
+ # dollars, for example, this is cents.
251
+ #
252
+ # @return [Integer]
253
+ required :amount, Integer
254
+
255
+ # @!attribute cardholder_account_transaction_id
256
+ # The identifier of the Transaction that credited the cardholder's Account.
257
+ #
258
+ # @return [String]
259
+ required :cardholder_account_transaction_id, String
260
+
261
+ # @!attribute provided_at
262
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
263
+ # the provisional credit was provided.
264
+ #
265
+ # @return [Time]
266
+ required :provided_at, Time
267
+
268
+ # @!attribute provisional_credit_funding_account_transaction_id
269
+ # The identifier of the Transaction that debited the provisional credit funding
270
+ # Account.
271
+ #
272
+ # @return [String]
273
+ required :provisional_credit_funding_account_transaction_id, String
274
+
275
+ # @!attribute reversal
276
+ # If the provisional credit has been reversed, this will contain details of the
277
+ # reversal.
278
+ #
279
+ # @return [Increase::Models::CardDispute::ProvisionalCredit::Reversal, nil]
280
+ required :reversal, -> { Increase::CardDispute::ProvisionalCredit::Reversal }, nil?: true
281
+
282
+ # @!method initialize(amount:, cardholder_account_transaction_id:, provided_at:, provisional_credit_funding_account_transaction_id:, reversal:)
283
+ # If a provisional credit has been provided for the Card Dispute, this will
284
+ # contain details of the provisional credit.
285
+ #
286
+ # @param amount [Integer]
287
+ # The amount of the provisional credit in the minor unit of its currency. For
288
+ # dollars, for example, this is cents.
289
+ #
290
+ # @param cardholder_account_transaction_id [String]
291
+ # The identifier of the Transaction that credited the cardholder's Account.
292
+ #
293
+ # @param provided_at [Time]
294
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
295
+ # the provisional credit was provided.
296
+ #
297
+ # @param provisional_credit_funding_account_transaction_id [String]
298
+ # The identifier of the Transaction that debited the provisional credit funding
299
+ # Account.
300
+ #
301
+ # @param reversal [Increase::Models::CardDispute::ProvisionalCredit::Reversal, nil]
302
+ # If the provisional credit has been reversed, this will contain details of the
303
+ # reversal.
304
+
305
+ # @see Increase::Models::CardDispute::ProvisionalCredit#reversal
306
+ class Reversal < Increase::Internal::Type::BaseModel
307
+ # @!attribute amount
308
+ # The amount of the reversal in the minor unit of its currency. For dollars, for
309
+ # example, this is cents.
310
+ #
311
+ # @return [Integer]
312
+ required :amount, Integer
313
+
314
+ # @!attribute cardholder_account_transaction_id
315
+ # The identifier of the Transaction that debited the cardholder's Account.
316
+ #
317
+ # @return [String]
318
+ required :cardholder_account_transaction_id, String
319
+
320
+ # @!attribute provisional_credit_funding_account_transaction_id
321
+ # The identifier of the Transaction that credited the provisional credit funding
322
+ # Account.
323
+ #
324
+ # @return [String]
325
+ required :provisional_credit_funding_account_transaction_id, String
326
+
327
+ # @!attribute reversed_at
328
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
329
+ # the provisional credit was reversed.
330
+ #
331
+ # @return [Time]
332
+ required :reversed_at, Time
333
+
334
+ # @!method initialize(amount:, cardholder_account_transaction_id:, provisional_credit_funding_account_transaction_id:, reversed_at:)
335
+ # If the provisional credit has been reversed, this will contain details of the
336
+ # reversal.
337
+ #
338
+ # @param amount [Integer]
339
+ # The amount of the reversal in the minor unit of its currency. For dollars, for
340
+ # example, this is cents.
341
+ #
342
+ # @param cardholder_account_transaction_id [String]
343
+ # The identifier of the Transaction that debited the cardholder's Account.
344
+ #
345
+ # @param provisional_credit_funding_account_transaction_id [String]
346
+ # The identifier of the Transaction that credited the provisional credit funding
347
+ # Account.
348
+ #
349
+ # @param reversed_at [Time]
350
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
351
+ # the provisional credit was reversed.
352
+ end
353
+ end
354
+
235
355
  # @see Increase::Models::CardDispute#rejection
236
356
  class Rejection < Increase::Internal::Type::BaseModel
237
357
  # @!attribute explanation
@@ -370,6 +490,12 @@ module Increase
370
490
  # @return [Time]
371
491
  required :created_at, Time
372
492
 
493
+ # @!attribute dispute_financial_account_id
494
+ # The account the dispute financial transaction was posted to, if any.
495
+ #
496
+ # @return [String, nil]
497
+ required :dispute_financial_account_id, String, nil?: true
498
+
373
499
  # @!attribute dispute_financial_transaction_id
374
500
  # The dispute financial transaction that resulted from the network event, if any.
375
501
  #
@@ -532,7 +658,7 @@ module Increase
532
658
  -> { Increase::CardDispute::Visa::NetworkEvent::UserWithdrawalSubmitted },
533
659
  nil?: true
534
660
 
535
- # @!method initialize(attachment_files:, category:, created_at:, dispute_financial_transaction_id:, chargeback_accepted: nil, chargeback_submitted: nil, chargeback_timed_out: nil, merchant_prearbitration_decline_submitted: nil, merchant_prearbitration_received: nil, merchant_prearbitration_timed_out: nil, represented: nil, representment_timed_out: nil, user_prearbitration_accepted: nil, user_prearbitration_declined: nil, user_prearbitration_submitted: nil, user_prearbitration_timed_out: nil, user_withdrawal_submitted: nil)
661
+ # @!method initialize(attachment_files:, category:, created_at:, dispute_financial_account_id:, dispute_financial_transaction_id:, chargeback_accepted: nil, chargeback_submitted: nil, chargeback_timed_out: nil, merchant_prearbitration_decline_submitted: nil, merchant_prearbitration_received: nil, merchant_prearbitration_timed_out: nil, represented: nil, representment_timed_out: nil, user_prearbitration_accepted: nil, user_prearbitration_declined: nil, user_prearbitration_submitted: nil, user_prearbitration_timed_out: nil, user_withdrawal_submitted: nil)
536
662
  # @param attachment_files [Array<Increase::Models::CardDispute::Visa::NetworkEvent::AttachmentFile>]
537
663
  # The files attached to the Visa Card Dispute User Submission.
538
664
  #
@@ -545,6 +671,9 @@ module Increase
545
671
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
546
672
  # the Visa Card Dispute Network Event was created.
547
673
  #
674
+ # @param dispute_financial_account_id [String, nil]
675
+ # The account the dispute financial transaction was posted to, if any.
676
+ #
548
677
  # @param dispute_financial_transaction_id [String, nil]
549
678
  # The dispute financial transaction that resulted from the network event, if any.
550
679
  #
@@ -15,8 +15,8 @@ module Increase
15
15
  required :disputed_transaction_id, String
16
16
 
17
17
  # @!attribute network
18
- # The network of the disputed transaction. Details specific to the network are
19
- # required under the sub-object with the same identifier as the network.
18
+ # The network of the disputed transaction. Details specific to the network can be
19
+ # provided under the sub-object with the same identifier as the network.
20
20
  #
21
21
  # @return [Symbol, Increase::Models::CardDisputeCreateParams::Network]
22
22
  required :network, enum: -> { Increase::CardDisputeCreateParams::Network }
@@ -31,7 +31,8 @@ module Increase
31
31
  optional :amount, Integer
32
32
 
33
33
  # @!attribute attachment_files
34
- # The files to be attached to the initial dispute submission.
34
+ # The files to be attached to the initial dispute submission. Can only be provided
35
+ # along with the network-specific details.
35
36
  #
36
37
  # @return [Array<Increase::Models::CardDisputeCreateParams::AttachmentFile>, nil]
37
38
  optional :attachment_files,
@@ -39,14 +40,15 @@ module Increase
39
40
 
40
41
  # @!attribute explanation
41
42
  # The free-form explanation provided to Increase to provide more context for the
42
- # user submission. This field is not sent directly to the card networks.
43
+ # user submission. This field is not sent directly to the card networks. Can only
44
+ # be provided along with the network-specific details.
43
45
  #
44
46
  # @return [String, nil]
45
47
  optional :explanation, String
46
48
 
47
49
  # @!attribute visa
48
- # The Visa-specific parameters for the dispute. Required if and only if `network`
49
- # is `visa`.
50
+ # The Visa-specific parameters for the initial User Submission. If omitted, a
51
+ # later User Submission will be required.
50
52
  #
51
53
  # @return [Increase::Models::CardDisputeCreateParams::Visa, nil]
52
54
  optional :visa, -> { Increase::CardDisputeCreateParams::Visa }
@@ -57,8 +59,8 @@ module Increase
57
59
  # of `card_settlement`.
58
60
  #
59
61
  # @param network [Symbol, Increase::Models::CardDisputeCreateParams::Network]
60
- # The network of the disputed transaction. Details specific to the network are
61
- # required under the sub-object with the same identifier as the network.
62
+ # The network of the disputed transaction. Details specific to the network can be
63
+ # provided under the sub-object with the same identifier as the network.
62
64
  #
63
65
  # @param amount [Integer]
64
66
  # The monetary amount of the part of the transaction that is being disputed. This
@@ -67,20 +69,22 @@ module Increase
67
69
  # the transaction.
68
70
  #
69
71
  # @param attachment_files [Array<Increase::Models::CardDisputeCreateParams::AttachmentFile>]
70
- # The files to be attached to the initial dispute submission.
72
+ # The files to be attached to the initial dispute submission. Can only be provided
73
+ # along with the network-specific details.
71
74
  #
72
75
  # @param explanation [String]
73
76
  # The free-form explanation provided to Increase to provide more context for the
74
- # user submission. This field is not sent directly to the card networks.
77
+ # user submission. This field is not sent directly to the card networks. Can only
78
+ # be provided along with the network-specific details.
75
79
  #
76
80
  # @param visa [Increase::Models::CardDisputeCreateParams::Visa]
77
- # The Visa-specific parameters for the dispute. Required if and only if `network`
78
- # is `visa`.
81
+ # The Visa-specific parameters for the initial User Submission. If omitted, a
82
+ # later User Submission will be required.
79
83
  #
80
84
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
81
85
 
82
- # The network of the disputed transaction. Details specific to the network are
83
- # required under the sub-object with the same identifier as the network.
86
+ # The network of the disputed transaction. Details specific to the network can be
87
+ # provided under the sub-object with the same identifier as the network.
84
88
  module Network
85
89
  extend Increase::Internal::Type::Enum
86
90
 
@@ -259,8 +263,8 @@ module Increase
259
263
  optional :processing_error, -> { Increase::CardDisputeCreateParams::Visa::ProcessingError }
260
264
 
261
265
  # @!method initialize(category:, authorization: nil, consumer_canceled_merchandise: nil, consumer_canceled_recurring_transaction: nil, consumer_canceled_services: nil, consumer_counterfeit_merchandise: nil, consumer_credit_not_processed: nil, consumer_damaged_or_defective_merchandise: nil, consumer_merchandise_misrepresentation: nil, consumer_merchandise_not_as_described: nil, consumer_merchandise_not_received: nil, consumer_non_receipt_of_cash: nil, consumer_original_credit_transaction_not_accepted: nil, consumer_quality_merchandise: nil, consumer_quality_services: nil, consumer_services_misrepresentation: nil, consumer_services_not_as_described: nil, consumer_services_not_received: nil, fraud: nil, processing_error: nil)
262
- # The Visa-specific parameters for the dispute. Required if and only if `network`
263
- # is `visa`.
266
+ # The Visa-specific parameters for the initial User Submission. If omitted, a
267
+ # later User Submission will be required.
264
268
  #
265
269
  # @param category [Symbol, Increase::Models::CardDisputeCreateParams::Visa::Category] Category.
266
270
  #
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::CardDisputes#provide_provisional_credit
6
+ class CardDisputeProvideProvisionalCreditParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute card_dispute_id
11
+ # The identifier of the Card Dispute to provide a provisional credit for.
12
+ #
13
+ # @return [String]
14
+ required :card_dispute_id, String
15
+
16
+ # @!method initialize(card_dispute_id:, request_options: {})
17
+ # @param card_dispute_id [String] The identifier of the Card Dispute to provide a provisional credit for.
18
+ #
19
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::CardDisputes#reverse_provisional_credit
6
+ class CardDisputeReverseProvisionalCreditParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute card_dispute_id
11
+ # The identifier of the Card Dispute to reverse the provisional credit for.
12
+ #
13
+ # @return [String]
14
+ required :card_dispute_id, String
15
+
16
+ # @!method initialize(card_dispute_id:, request_options: {})
17
+ # @param card_dispute_id [String] The identifier of the Card Dispute to reverse the provisional credit for.
18
+ #
19
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end