increase 1.354.0 → 1.356.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 (125) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +18 -0
  4. data/lib/increase/models/account_number.rb +1 -1
  5. data/lib/increase/models/account_number_create_params.rb +1 -1
  6. data/lib/increase/models/account_number_list_params.rb +1 -1
  7. data/lib/increase/models/account_number_update_params.rb +1 -1
  8. data/lib/increase/models/card_create_details_token_params.rb +22 -0
  9. data/lib/increase/models/card_details_token.rb +57 -0
  10. data/lib/increase/models/card_payment.rb +26 -1
  11. data/lib/increase/models/check_deposit.rb +3 -0
  12. data/lib/increase/models/digital_wallet_token.rb +3 -0
  13. data/lib/increase/models/digital_wallet_token_request.rb +307 -0
  14. data/lib/increase/models/digital_wallet_token_request_list_params.rb +99 -0
  15. data/lib/increase/models/digital_wallet_token_request_retrieve_params.rb +22 -0
  16. data/lib/increase/models/digital_wallet_token_transition_params.rb +48 -0
  17. data/lib/increase/models/inbound_real_time_payments_request_for_payment.rb +318 -0
  18. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rb +113 -0
  19. data/lib/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rb +25 -0
  20. data/lib/increase/models/physical_check_batch.rb +266 -0
  21. data/lib/increase/models/physical_check_batch_cancel_params.rb +22 -0
  22. data/lib/increase/models/physical_check_batch_complete_params.rb +22 -0
  23. data/lib/increase/models/physical_check_batch_create_params.rb +189 -0
  24. data/lib/increase/models/real_time_decision.rb +6 -0
  25. data/lib/increase/models/real_time_payments_request_for_payment.rb +658 -0
  26. data/lib/increase/models/real_time_payments_requests_for_payment_cancel_params.rb +64 -0
  27. data/lib/increase/models/real_time_payments_requests_for_payment_create_params.rb +194 -0
  28. data/lib/increase/models/real_time_payments_requests_for_payment_list_params.rb +117 -0
  29. data/lib/increase/models/real_time_payments_requests_for_payment_retrieve_params.rb +23 -0
  30. data/lib/increase/models/simulations/fednow_transfer_complete_params.rb +103 -0
  31. data/lib/increase/models/simulations/inbound_check_deposit_accept_params.rb +24 -0
  32. data/lib/increase/models/transaction.rb +26 -1
  33. data/lib/increase/models.rb +42 -0
  34. data/lib/increase/resources/cards.rb +23 -0
  35. data/lib/increase/resources/digital_wallet_token_requests.rb +68 -0
  36. data/lib/increase/resources/digital_wallet_tokens.rb +28 -0
  37. data/lib/increase/resources/inbound_real_time_payments_requests_for_payment.rb +79 -0
  38. data/lib/increase/resources/physical_check_batches.rb +86 -0
  39. data/lib/increase/resources/real_time_payments_requests_for_payment.rb +159 -0
  40. data/lib/increase/resources/simulations/fednow_transfers.rb +43 -0
  41. data/lib/increase/resources/simulations/inbound_check_deposits.rb +22 -0
  42. data/lib/increase/resources/simulations.rb +4 -0
  43. data/lib/increase/version.rb +1 -1
  44. data/lib/increase.rb +25 -0
  45. data/rbi/increase/client.rbi +14 -0
  46. data/rbi/increase/models/account_number.rbi +1 -1
  47. data/rbi/increase/models/account_number_create_params.rbi +1 -1
  48. data/rbi/increase/models/account_number_list_params.rbi +1 -1
  49. data/rbi/increase/models/account_number_update_params.rbi +1 -1
  50. data/rbi/increase/models/card_create_details_token_params.rbi +43 -0
  51. data/rbi/increase/models/card_details_token.rbi +85 -0
  52. data/rbi/increase/models/card_payment.rbi +52 -0
  53. data/rbi/increase/models/check_deposit.rbi +7 -0
  54. data/rbi/increase/models/digital_wallet_token.rbi +7 -0
  55. data/rbi/increase/models/digital_wallet_token_request.rbi +586 -0
  56. data/rbi/increase/models/digital_wallet_token_request_list_params.rbi +171 -0
  57. data/rbi/increase/models/digital_wallet_token_request_retrieve_params.rbi +46 -0
  58. data/rbi/increase/models/digital_wallet_token_transition_params.rbi +100 -0
  59. data/rbi/increase/models/inbound_real_time_payments_request_for_payment.rbi +442 -0
  60. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbi +188 -0
  61. data/rbi/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbi +48 -0
  62. data/rbi/increase/models/physical_check_batch.rbi +382 -0
  63. data/rbi/increase/models/physical_check_batch_cancel_params.rbi +46 -0
  64. data/rbi/increase/models/physical_check_batch_complete_params.rbi +46 -0
  65. data/rbi/increase/models/physical_check_batch_create_params.rbi +326 -0
  66. data/rbi/increase/models/real_time_decision.rbi +14 -0
  67. data/rbi/increase/models/real_time_payments_request_for_payment.rbi +1166 -0
  68. data/rbi/increase/models/real_time_payments_requests_for_payment_cancel_params.rbi +136 -0
  69. data/rbi/increase/models/real_time_payments_requests_for_payment_create_params.rbi +303 -0
  70. data/rbi/increase/models/real_time_payments_requests_for_payment_list_params.rbi +192 -0
  71. data/rbi/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbi +46 -0
  72. data/rbi/increase/models/simulations/fednow_transfer_complete_params.rbi +243 -0
  73. data/rbi/increase/models/simulations/inbound_check_deposit_accept_params.rbi +48 -0
  74. data/rbi/increase/models/transaction.rbi +52 -0
  75. data/rbi/increase/models.rbi +50 -0
  76. data/rbi/increase/resources/cards.rbi +17 -0
  77. data/rbi/increase/resources/digital_wallet_token_requests.rbi +52 -0
  78. data/rbi/increase/resources/digital_wallet_tokens.rbi +21 -0
  79. data/rbi/increase/resources/inbound_real_time_payments_requests_for_payment.rbi +62 -0
  80. data/rbi/increase/resources/physical_check_batches.rbi +66 -0
  81. data/rbi/increase/resources/real_time_payments_requests_for_payment.rbi +127 -0
  82. data/rbi/increase/resources/simulations/fednow_transfers.rbi +34 -0
  83. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +16 -0
  84. data/rbi/increase/resources/simulations.rbi +3 -0
  85. data/sig/increase/client.rbs +8 -0
  86. data/sig/increase/models/account_number.rbs +1 -1
  87. data/sig/increase/models/account_number_create_params.rbs +1 -1
  88. data/sig/increase/models/account_number_list_params.rbs +1 -1
  89. data/sig/increase/models/account_number_update_params.rbs +1 -1
  90. data/sig/increase/models/card_create_details_token_params.rbs +23 -0
  91. data/sig/increase/models/card_details_token.rbs +40 -0
  92. data/sig/increase/models/card_payment.rbs +19 -0
  93. data/sig/increase/models/check_deposit.rbs +5 -1
  94. data/sig/increase/models/digital_wallet_token.rbs +5 -1
  95. data/sig/increase/models/digital_wallet_token_request.rbs +260 -0
  96. data/sig/increase/models/digital_wallet_token_request_list_params.rbs +86 -0
  97. data/sig/increase/models/digital_wallet_token_request_retrieve_params.rbs +24 -0
  98. data/sig/increase/models/digital_wallet_token_transition_params.rbs +48 -0
  99. data/sig/increase/models/inbound_real_time_payments_request_for_payment.rbs +200 -0
  100. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_list_params.rbs +93 -0
  101. data/sig/increase/models/inbound_real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  102. data/sig/increase/models/physical_check_batch.rbs +193 -0
  103. data/sig/increase/models/physical_check_batch_cancel_params.rbs +24 -0
  104. data/sig/increase/models/physical_check_batch_complete_params.rbs +24 -0
  105. data/sig/increase/models/physical_check_batch_create_params.rbs +156 -0
  106. data/sig/increase/models/real_time_decision.rbs +10 -2
  107. data/sig/increase/models/real_time_payments_request_for_payment.rbs +513 -0
  108. data/sig/increase/models/real_time_payments_requests_for_payment_cancel_params.rbs +66 -0
  109. data/sig/increase/models/real_time_payments_requests_for_payment_create_params.rbs +149 -0
  110. data/sig/increase/models/real_time_payments_requests_for_payment_list_params.rbs +93 -0
  111. data/sig/increase/models/real_time_payments_requests_for_payment_retrieve_params.rbs +24 -0
  112. data/sig/increase/models/simulations/fednow_transfer_complete_params.rbs +122 -0
  113. data/sig/increase/models/simulations/inbound_check_deposit_accept_params.rbs +26 -0
  114. data/sig/increase/models/transaction.rbs +19 -0
  115. data/sig/increase/models.rbs +36 -0
  116. data/sig/increase/resources/cards.rbs +5 -0
  117. data/sig/increase/resources/digital_wallet_token_requests.rbs +20 -0
  118. data/sig/increase/resources/digital_wallet_tokens.rbs +6 -0
  119. data/sig/increase/resources/inbound_real_time_payments_requests_for_payment.rbs +21 -0
  120. data/sig/increase/resources/physical_check_batches.rbs +24 -0
  121. data/sig/increase/resources/real_time_payments_requests_for_payment.rbs +41 -0
  122. data/sig/increase/resources/simulations/fednow_transfers.rbs +15 -0
  123. data/sig/increase/resources/simulations/inbound_check_deposits.rbs +5 -0
  124. data/sig/increase/resources/simulations.rbs +2 -0
  125. metadata +77 -2
@@ -0,0 +1,66 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class PhysicalCheckBatches
6
+ # Create a Physical Check Batch
7
+ sig do
8
+ params(
9
+ mailing_address:
10
+ Increase::PhysicalCheckBatchCreateParams::MailingAddress::OrHash,
11
+ return_address:
12
+ Increase::PhysicalCheckBatchCreateParams::ReturnAddress::OrHash,
13
+ shipping_method:
14
+ Increase::PhysicalCheckBatchCreateParams::ShippingMethod::OrSymbol,
15
+ request_options: Increase::RequestOptions::OrHash
16
+ ).returns(Increase::PhysicalCheckBatch)
17
+ end
18
+ def create(
19
+ # Details for where the parcel will be mailed.
20
+ mailing_address:,
21
+ # Details for where the parcel should return if it is unable to be delivered.
22
+ return_address:,
23
+ # How to ship the batch.
24
+ #
25
+ # Defaults to `usps_first_class`.
26
+ shipping_method: nil,
27
+ request_options: {}
28
+ )
29
+ end
30
+
31
+ # Cancel a pending Physical Check Batch, which cancels all of its related checks.
32
+ sig do
33
+ params(
34
+ physical_check_batch_id: String,
35
+ request_options: Increase::RequestOptions::OrHash
36
+ ).returns(Increase::PhysicalCheckBatch)
37
+ end
38
+ def cancel(
39
+ # The identifier of the pending Physical Check Batch to cancel.
40
+ physical_check_batch_id,
41
+ request_options: {}
42
+ )
43
+ end
44
+
45
+ # Completing a Physical Check Batch closes it to new Physical Checks and begins
46
+ # the process of printing and mailing it.
47
+ sig do
48
+ params(
49
+ physical_check_batch_id: String,
50
+ request_options: Increase::RequestOptions::OrHash
51
+ ).returns(Increase::PhysicalCheckBatch)
52
+ end
53
+ def complete(
54
+ # The identifier of the Physical Check Batch to complete.
55
+ physical_check_batch_id,
56
+ request_options: {}
57
+ )
58
+ end
59
+
60
+ # @api private
61
+ sig { params(client: Increase::Client).returns(T.attached_class) }
62
+ def self.new(client:)
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,127 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class RealTimePaymentsRequestsForPayment
6
+ # Create a Real-Time Payments Request for Payment
7
+ sig do
8
+ params(
9
+ account_number_id: String,
10
+ amount: Integer,
11
+ debtor:
12
+ Increase::RealTimePaymentsRequestsForPaymentCreateParams::Debtor::OrHash,
13
+ debtor_account_number: String,
14
+ debtor_routing_number: String,
15
+ expires_at: Time,
16
+ requested_execution_at: Time,
17
+ unstructured_remittance_information: String,
18
+ creditor_name: String,
19
+ request_options: Increase::RequestOptions::OrHash
20
+ ).returns(Increase::RealTimePaymentsRequestForPayment)
21
+ end
22
+ def create(
23
+ # The identifier of the Account Number where the funds will land.
24
+ account_number_id:,
25
+ # The requested amount in USD cents. Must be positive.
26
+ amount:,
27
+ # Details of the person being requested to pay.
28
+ debtor:,
29
+ # The debtor's account number, which the funds will be requested from.
30
+ debtor_account_number:,
31
+ # The debtor's American Bankers' Association (ABA) Routing Transit Number (RTN).
32
+ debtor_routing_number:,
33
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time after which
34
+ # the request for payment is no longer valid. After this time the debtor's bank
35
+ # should no longer allow the debtor to pay it. Must not be before
36
+ # `requested_execution_at`.
37
+ expires_at:,
38
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time by which
39
+ # you are requesting the payment to be made.
40
+ requested_execution_at:,
41
+ # Unstructured information that will show on the recipient's bank statement.
42
+ unstructured_remittance_information:,
43
+ # The name of the creditor requesting the payment. If not provided, defaults to
44
+ # the name of the account's entity.
45
+ creditor_name: nil,
46
+ request_options: {}
47
+ )
48
+ end
49
+
50
+ # Retrieve a Real-Time Payments Request for Payment
51
+ sig do
52
+ params(
53
+ real_time_payments_request_for_payment_id: String,
54
+ request_options: Increase::RequestOptions::OrHash
55
+ ).returns(Increase::RealTimePaymentsRequestForPayment)
56
+ end
57
+ def retrieve(
58
+ # The identifier of the Real-Time Payments Request for Payment.
59
+ real_time_payments_request_for_payment_id,
60
+ request_options: {}
61
+ )
62
+ end
63
+
64
+ # List Real-Time Payments Requests for Payment
65
+ sig do
66
+ params(
67
+ account_id: String,
68
+ created_at:
69
+ Increase::RealTimePaymentsRequestsForPaymentListParams::CreatedAt::OrHash,
70
+ cursor: String,
71
+ idempotency_key: String,
72
+ limit: Integer,
73
+ request_options: Increase::RequestOptions::OrHash
74
+ ).returns(
75
+ Increase::Internal::Page[Increase::RealTimePaymentsRequestForPayment]
76
+ )
77
+ end
78
+ def list(
79
+ # Filter Real-Time Payments Requests for Payment to those destined to the
80
+ # specified Account.
81
+ account_id: nil,
82
+ created_at: nil,
83
+ # Return the page of entries after this one.
84
+ cursor: nil,
85
+ # Filter records to the one with the specified `idempotency_key` you chose for
86
+ # that object. This value is unique across Increase and is used to ensure that a
87
+ # request is only processed once. Learn more about
88
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
89
+ idempotency_key: nil,
90
+ # Limit the size of the list that is returned. The default (and maximum) is 100
91
+ # objects.
92
+ #
93
+ # Defaults to `100`.
94
+ limit: nil,
95
+ request_options: {}
96
+ )
97
+ end
98
+
99
+ # Cancels a Real-Time Payments Request for Payment that is still awaiting payment.
100
+ sig do
101
+ params(
102
+ real_time_payments_request_for_payment_id: String,
103
+ additional_information: String,
104
+ reason:
105
+ Increase::RealTimePaymentsRequestsForPaymentCancelParams::Reason::OrSymbol,
106
+ request_options: Increase::RequestOptions::OrHash
107
+ ).returns(Increase::RealTimePaymentsRequestForPayment)
108
+ end
109
+ def cancel(
110
+ # The identifier of the Real-Time Payments Request for Payment to cancel.
111
+ real_time_payments_request_for_payment_id,
112
+ # Additional information about the cancellation to pass on to the recipient bank.
113
+ additional_information: nil,
114
+ # The reason the request for payment is being canceled. Defaults to
115
+ # `requested_by_customer`.
116
+ reason: nil,
117
+ request_options: {}
118
+ )
119
+ end
120
+
121
+ # @api private
122
+ sig { params(client: Increase::Client).returns(T.attached_class) }
123
+ def self.new(client:)
124
+ end
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,34 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class Simulations
6
+ class FednowTransfers
7
+ # Simulates submission of a [FedNow Transfer](#fednow-transfers) and handling the
8
+ # response from the destination financial institution. This transfer must first
9
+ # have a `status` of `pending_submitting`.
10
+ sig do
11
+ params(
12
+ fednow_transfer_id: String,
13
+ rejection:
14
+ Increase::Simulations::FednowTransferCompleteParams::Rejection::OrHash,
15
+ request_options: Increase::RequestOptions::OrHash
16
+ ).returns(Increase::FednowTransfer)
17
+ end
18
+ def complete(
19
+ # The identifier of the FedNow Transfer you wish to complete.
20
+ fednow_transfer_id,
21
+ # If set, the simulation will reject the transfer.
22
+ rejection: nil,
23
+ request_options: {}
24
+ )
25
+ end
26
+
27
+ # @api private
28
+ sig { params(client: Increase::Client).returns(T.attached_class) }
29
+ def self.new(client:)
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -36,6 +36,22 @@ module Increase
36
36
  )
37
37
  end
38
38
 
39
+ # Simulates the acceptance of an [Inbound Check Deposit](#inbound-check-deposits),
40
+ # creating a Transaction as a result. The Inbound Check Deposit must first have a
41
+ # `status` of `pending`.
42
+ sig do
43
+ params(
44
+ inbound_check_deposit_id: String,
45
+ request_options: Increase::RequestOptions::OrHash
46
+ ).returns(Increase::InboundCheckDeposit)
47
+ end
48
+ def accept(
49
+ # The identifier of the Inbound Check Deposit you wish to accept.
50
+ inbound_check_deposit_id,
51
+ request_options: {}
52
+ )
53
+ end
54
+
39
55
  # Simulates an adjustment on an Inbound Check Deposit. The Inbound Check Deposit
40
56
  # must have a `status` of `accepted`.
41
57
  sig do
@@ -93,6 +93,9 @@ module Increase
93
93
  end
94
94
  attr_reader :inbound_real_time_payments_transfers
95
95
 
96
+ sig { returns(Increase::Resources::Simulations::FednowTransfers) }
97
+ attr_reader :fednow_transfers
98
+
96
99
  sig { returns(Increase::Resources::Simulations::InboundFednowTransfers) }
97
100
  attr_reader :inbound_fednow_transfers
98
101
 
@@ -39,6 +39,8 @@ module Increase
39
39
 
40
40
  attr_reader digital_wallet_tokens: Increase::Resources::DigitalWalletTokens
41
41
 
42
+ attr_reader digital_wallet_token_requests: Increase::Resources::DigitalWalletTokenRequests
43
+
42
44
  attr_reader transactions: Increase::Resources::Transactions
43
45
 
44
46
  attr_reader pending_transactions: Increase::Resources::PendingTransactions
@@ -67,6 +69,10 @@ module Increase
67
69
 
68
70
  attr_reader inbound_real_time_payments_transfers: Increase::Resources::InboundRealTimePaymentsTransfers
69
71
 
72
+ attr_reader real_time_payments_requests_for_payment: Increase::Resources::RealTimePaymentsRequestsForPayment
73
+
74
+ attr_reader inbound_real_time_payments_requests_for_payment: Increase::Resources::InboundRealTimePaymentsRequestsForPayment
75
+
70
76
  attr_reader fednow_transfers: Increase::Resources::FednowTransfers
71
77
 
72
78
  attr_reader inbound_fednow_transfers: Increase::Resources::InboundFednowTransfers
@@ -129,6 +135,8 @@ module Increase
129
135
 
130
136
  attr_reader card_validations: Increase::Resources::CardValidations
131
137
 
138
+ attr_reader physical_check_batches: Increase::Resources::PhysicalCheckBatches
139
+
132
140
  attr_reader simulations: Increase::Resources::Simulations
133
141
 
134
142
  private def auth_headers: -> ::Hash[String, String]
@@ -90,7 +90,7 @@ module Increase
90
90
  # ACH Debits are allowed.
91
91
  ALLOWED: :allowed
92
92
 
93
- # ACH Debits are blocked.
93
+ # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
94
94
  BLOCKED: :blocked
95
95
 
96
96
  def self?.values: -> ::Array[Increase::Models::AccountNumber::InboundACH::debit_status]
@@ -69,7 +69,7 @@ module Increase
69
69
  # ACH Debits are allowed.
70
70
  ALLOWED: :allowed
71
71
 
72
- # ACH Debits are blocked.
72
+ # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
73
73
  BLOCKED: :blocked
74
74
 
75
75
  def self?.values: -> ::Array[Increase::Models::AccountNumberCreateParams::InboundACH::debit_status]
@@ -100,7 +100,7 @@ module Increase
100
100
  # ACH Debits are allowed.
101
101
  ALLOWED: :allowed
102
102
 
103
- # ACH Debits are blocked.
103
+ # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
104
104
  BLOCKED: :blocked
105
105
 
106
106
  def self?.values: -> ::Array[Increase::Models::AccountNumberListParams::ACHDebitStatus::in_]
@@ -84,7 +84,7 @@ module Increase
84
84
  # ACH Debits are allowed.
85
85
  ALLOWED: :allowed
86
86
 
87
- # ACH Debits are blocked.
87
+ # ACH Debits are blocked. Received debits will be declined and returned with code `R20` (non-transaction account).
88
88
  BLOCKED: :blocked
89
89
 
90
90
  def self?.values: -> ::Array[Increase::Models::AccountNumberUpdateParams::InboundACH::debit_status]
@@ -0,0 +1,23 @@
1
+ module Increase
2
+ module Models
3
+ type card_create_details_token_params =
4
+ { card_id: String } & Increase::Internal::Type::request_parameters
5
+
6
+ class CardCreateDetailsTokenParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ attr_accessor card_id: String
11
+
12
+ def initialize: (
13
+ card_id: String,
14
+ ?request_options: Increase::request_opts
15
+ ) -> void
16
+
17
+ def to_hash: -> {
18
+ card_id: String,
19
+ request_options: Increase::RequestOptions
20
+ }
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,40 @@
1
+ module Increase
2
+ module Models
3
+ type card_details_token =
4
+ {
5
+ token: String,
6
+ expires_at: Time,
7
+ type: Increase::Models::CardDetailsToken::type_
8
+ }
9
+
10
+ class CardDetailsToken < Increase::Internal::Type::BaseModel
11
+ attr_accessor token: String
12
+
13
+ attr_accessor expires_at: Time
14
+
15
+ attr_accessor type: Increase::Models::CardDetailsToken::type_
16
+
17
+ def initialize: (
18
+ token: String,
19
+ expires_at: Time,
20
+ type: Increase::Models::CardDetailsToken::type_
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ token: String,
25
+ expires_at: Time,
26
+ type: Increase::Models::CardDetailsToken::type_
27
+ }
28
+
29
+ type type_ = :card_details_token
30
+
31
+ module Type
32
+ extend Increase::Internal::Type::Enum
33
+
34
+ CARD_DETAILS_TOKEN: :card_details_token
35
+
36
+ def self?.values: -> ::Array[Increase::Models::CardDetailsToken::type_]
37
+ end
38
+ end
39
+ end
40
+ end
@@ -6177,6 +6177,7 @@ module Increase
6177
6177
  merchant_name: String,
6178
6178
  merchant_postal_code: String?,
6179
6179
  merchant_state: String?,
6180
+ network: Increase::Models::CardPayment::Element::CardRefund::network,
6180
6181
  network_identifiers: Increase::CardPayment::Element::CardRefund::NetworkIdentifiers,
6181
6182
  presentment_amount: Integer,
6182
6183
  presentment_currency: String,
@@ -6213,6 +6214,8 @@ module Increase
6213
6214
 
6214
6215
  attr_accessor merchant_state: String?
6215
6216
 
6217
+ attr_accessor network: Increase::Models::CardPayment::Element::CardRefund::network
6218
+
6216
6219
  attr_accessor network_identifiers: Increase::CardPayment::Element::CardRefund::NetworkIdentifiers
6217
6220
 
6218
6221
  attr_accessor presentment_amount: Integer
@@ -6241,6 +6244,7 @@ module Increase
6241
6244
  merchant_name: String,
6242
6245
  merchant_postal_code: String?,
6243
6246
  merchant_state: String?,
6247
+ network: Increase::Models::CardPayment::Element::CardRefund::network,
6244
6248
  network_identifiers: Increase::CardPayment::Element::CardRefund::NetworkIdentifiers,
6245
6249
  presentment_amount: Integer,
6246
6250
  presentment_currency: String,
@@ -6264,6 +6268,7 @@ module Increase
6264
6268
  merchant_name: String,
6265
6269
  merchant_postal_code: String?,
6266
6270
  merchant_state: String?,
6271
+ network: Increase::Models::CardPayment::Element::CardRefund::network,
6267
6272
  network_identifiers: Increase::CardPayment::Element::CardRefund::NetworkIdentifiers,
6268
6273
  presentment_amount: Integer,
6269
6274
  presentment_currency: String,
@@ -6355,6 +6360,20 @@ module Increase
6355
6360
  end
6356
6361
  end
6357
6362
 
6363
+ type network = :visa | :pulse
6364
+
6365
+ module Network
6366
+ extend Increase::Internal::Type::Enum
6367
+
6368
+ # Visa
6369
+ VISA: :visa
6370
+
6371
+ # Pulse
6372
+ PULSE: :pulse
6373
+
6374
+ def self?.values: -> ::Array[Increase::Models::CardPayment::Element::CardRefund::network]
6375
+ end
6376
+
6358
6377
  type network_identifiers =
6359
6378
  {
6360
6379
  acquirer_business_id: String,
@@ -195,11 +195,15 @@ module Increase
195
195
  transaction_id: String
196
196
  }
197
197
 
198
- type reason = :adjusted_amount | :non_conforming_item | :paid
198
+ type reason =
199
+ :wrong_payee_credit | :adjusted_amount | :non_conforming_item | :paid
199
200
 
200
201
  module Reason
201
202
  extend Increase::Internal::Type::Enum
202
203
 
204
+ # The check was deposited to the wrong payee and the depositing institution has reimbursed the funds with a Wrong Payee Credit.
205
+ WRONG_PAYEE_CREDIT: :wrong_payee_credit
206
+
203
207
  # The check was deposited with a different amount than what was written on the check.
204
208
  ADJUSTED_AMOUNT: :adjusted_amount
205
209
 
@@ -271,7 +271,8 @@ module Increase
271
271
  def self?.values: -> ::Array[Increase::Models::DigitalWalletToken::status]
272
272
  end
273
273
 
274
- type token_requestor = :apple_pay | :google_pay | :samsung_pay | :unknown
274
+ type token_requestor =
275
+ :apple_pay | :google_pay | :samsung_pay | :garmin_pay | :unknown
275
276
 
276
277
  module TokenRequestor
277
278
  extend Increase::Internal::Type::Enum
@@ -285,6 +286,9 @@ module Increase
285
286
  # Samsung Pay
286
287
  SAMSUNG_PAY: :samsung_pay
287
288
 
289
+ # Garmin Pay
290
+ GARMIN_PAY: :garmin_pay
291
+
288
292
  # Unknown
289
293
  UNKNOWN: :unknown
290
294