increase 1.158.0 → 1.159.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92fc559824b2bb8ae1c96093ae2e60d30d1d88f3a79997da678d66b31385d8b9
4
- data.tar.gz: c25131750605e99718853e0c5688279beb278dfc1c42562802c12d42d0ee0bb3
3
+ metadata.gz: 2f3668625018cbbb0373043182c37ccfff475210b476453b2d362f13b4b5e165
4
+ data.tar.gz: f8809d73edc8a0543093fc8c4777edfeb1be707769c7b5297d74d741a49da86f
5
5
  SHA512:
6
- metadata.gz: 39ef03ee114710fa3948f5049f4556a3537e8e19ebc1037a4d07ef2a95032bf8047e7d6a7002e797a4975aaea2765892f5cbefbaeddad865c5f626d7d49b82c8
7
- data.tar.gz: a9809555c46b76e506cd3c4105eb316dd6b8f9e36219b5d7a853559d0f1504e8f999dd045fbc4096767f1ba5a4aabc45ed3cca9cfe0052ae28282244b84764c3
6
+ metadata.gz: ec99831b2ee0c08b397e09e9b85e39fdcfcdb970d7a7c13178de0db7fc23b9d1d50fc3be6ed324e676c152a48ccc39d8dbe50e634fb60431e7f44b46502820a9
7
+ data.tar.gz: 2bb769eefa10f18b5845f59097179fc45eda76b62fce4b7d8a30ed982c156679a422dbe630786c7dc003996994b3aac62b7b336ac70b793061aab664db8cc107
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.159.0 (2025-12-09)
4
+
5
+ Full Changelog: [v1.158.0...v1.159.0](https://github.com/Increase/increase-ruby/compare/v1.158.0...v1.159.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([d0dd7a8](https://github.com/Increase/increase-ruby/commit/d0dd7a857cdca3db358aef4c46530944d606851f))
10
+
3
11
  ## 1.158.0 (2025-12-08)
4
12
 
5
13
  Full Changelog: [v1.157.0...v1.158.0](https://github.com/Increase/increase-ruby/compare/v1.157.0...v1.158.0)
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.158.0"
18
+ gem "increase", "~> 1.159.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,279 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ module Simulations
6
+ # @see Increase::Resources::Simulations::CardBalanceInquiries#create
7
+ class CardBalanceInquiryCreateParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ # @!attribute balance
12
+ # The balance amount in cents. The account balance will be used if not provided.
13
+ #
14
+ # @return [Integer, nil]
15
+ optional :balance, Integer
16
+
17
+ # @!attribute card_id
18
+ # The identifier of the Card to be authorized.
19
+ #
20
+ # @return [String, nil]
21
+ optional :card_id, String
22
+
23
+ # @!attribute decline_reason
24
+ # Forces a card decline with a specific reason. No real time decision will be
25
+ # sent.
26
+ #
27
+ # @return [Symbol, Increase::Models::Simulations::CardBalanceInquiryCreateParams::DeclineReason, nil]
28
+ optional :decline_reason,
29
+ enum: -> { Increase::Simulations::CardBalanceInquiryCreateParams::DeclineReason }
30
+
31
+ # @!attribute digital_wallet_token_id
32
+ # The identifier of the Digital Wallet Token to be authorized.
33
+ #
34
+ # @return [String, nil]
35
+ optional :digital_wallet_token_id, String
36
+
37
+ # @!attribute event_subscription_id
38
+ # The identifier of the Event Subscription to use. If provided, will override the
39
+ # default real time event subscription. Because you can only create one real time
40
+ # decision event subscription, you can use this field to route events to any
41
+ # specified event subscription for testing purposes.
42
+ #
43
+ # @return [String, nil]
44
+ optional :event_subscription_id, String
45
+
46
+ # @!attribute merchant_acceptor_id
47
+ # The merchant identifier (commonly abbreviated as MID) of the merchant the card
48
+ # is transacting with.
49
+ #
50
+ # @return [String, nil]
51
+ optional :merchant_acceptor_id, String
52
+
53
+ # @!attribute merchant_category_code
54
+ # The Merchant Category Code (commonly abbreviated as MCC) of the merchant the
55
+ # card is transacting with.
56
+ #
57
+ # @return [String, nil]
58
+ optional :merchant_category_code, String
59
+
60
+ # @!attribute merchant_city
61
+ # The city the merchant resides in.
62
+ #
63
+ # @return [String, nil]
64
+ optional :merchant_city, String
65
+
66
+ # @!attribute merchant_country
67
+ # The country the merchant resides in.
68
+ #
69
+ # @return [String, nil]
70
+ optional :merchant_country, String
71
+
72
+ # @!attribute merchant_descriptor
73
+ # The merchant descriptor of the merchant the card is transacting with.
74
+ #
75
+ # @return [String, nil]
76
+ optional :merchant_descriptor, String
77
+
78
+ # @!attribute merchant_state
79
+ # The state the merchant resides in.
80
+ #
81
+ # @return [String, nil]
82
+ optional :merchant_state, String
83
+
84
+ # @!attribute network_details
85
+ # Fields specific to a given card network.
86
+ #
87
+ # @return [Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails, nil]
88
+ optional :network_details, -> { Increase::Simulations::CardBalanceInquiryCreateParams::NetworkDetails }
89
+
90
+ # @!attribute network_risk_score
91
+ # The risk score generated by the card network. For Visa this is the Visa Advanced
92
+ # Authorization risk score, from 0 to 99, where 99 is the riskiest.
93
+ #
94
+ # @return [Integer, nil]
95
+ optional :network_risk_score, Integer
96
+
97
+ # @!attribute physical_card_id
98
+ # The identifier of the Physical Card to be authorized.
99
+ #
100
+ # @return [String, nil]
101
+ optional :physical_card_id, String
102
+
103
+ # @!attribute terminal_id
104
+ # The terminal identifier (commonly abbreviated as TID) of the terminal the card
105
+ # is transacting with.
106
+ #
107
+ # @return [String, nil]
108
+ optional :terminal_id, String
109
+
110
+ # @!method initialize(balance: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, terminal_id: nil, request_options: {})
111
+ # Some parameter documentations has been truncated, see
112
+ # {Increase::Models::Simulations::CardBalanceInquiryCreateParams} for more
113
+ # details.
114
+ #
115
+ # @param balance [Integer] The balance amount in cents. The account balance will be used if not provided.
116
+ #
117
+ # @param card_id [String] The identifier of the Card to be authorized.
118
+ #
119
+ # @param decline_reason [Symbol, Increase::Models::Simulations::CardBalanceInquiryCreateParams::DeclineReason] Forces a card decline with a specific reason. No real time decision will be sent
120
+ #
121
+ # @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token to be authorized.
122
+ #
123
+ # @param event_subscription_id [String] The identifier of the Event Subscription to use. If provided, will override the
124
+ #
125
+ # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i
126
+ #
127
+ # @param merchant_category_code [String] The Merchant Category Code (commonly abbreviated as MCC) of the merchant the car
128
+ #
129
+ # @param merchant_city [String] The city the merchant resides in.
130
+ #
131
+ # @param merchant_country [String] The country the merchant resides in.
132
+ #
133
+ # @param merchant_descriptor [String] The merchant descriptor of the merchant the card is transacting with.
134
+ #
135
+ # @param merchant_state [String] The state the merchant resides in.
136
+ #
137
+ # @param network_details [Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails] Fields specific to a given card network.
138
+ #
139
+ # @param network_risk_score [Integer] The risk score generated by the card network. For Visa this is the Visa Advanced
140
+ #
141
+ # @param physical_card_id [String] The identifier of the Physical Card to be authorized.
142
+ #
143
+ # @param terminal_id [String] The terminal identifier (commonly abbreviated as TID) of the terminal the card i
144
+ #
145
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
146
+
147
+ # Forces a card decline with a specific reason. No real time decision will be
148
+ # sent.
149
+ module DeclineReason
150
+ extend Increase::Internal::Type::Enum
151
+
152
+ # The account has been closed.
153
+ ACCOUNT_CLOSED = :account_closed
154
+
155
+ # The Card was not active.
156
+ CARD_NOT_ACTIVE = :card_not_active
157
+
158
+ # The Card has been canceled.
159
+ CARD_CANCELED = :card_canceled
160
+
161
+ # The Physical Card was not active.
162
+ PHYSICAL_CARD_NOT_ACTIVE = :physical_card_not_active
163
+
164
+ # The account's entity was not active.
165
+ ENTITY_NOT_ACTIVE = :entity_not_active
166
+
167
+ # The account was inactive.
168
+ GROUP_LOCKED = :group_locked
169
+
170
+ # The Card's Account did not have a sufficient available balance.
171
+ INSUFFICIENT_FUNDS = :insufficient_funds
172
+
173
+ # The given CVV2 did not match the card's value.
174
+ CVV2_MISMATCH = :cvv2_mismatch
175
+
176
+ # The given PIN did not match the card's value.
177
+ PIN_MISMATCH = :pin_mismatch
178
+
179
+ # The given expiration date did not match the card's value. Only applies when a CVV2 is present.
180
+ CARD_EXPIRATION_MISMATCH = :card_expiration_mismatch
181
+
182
+ # The attempted card transaction is not allowed per Increase's terms.
183
+ TRANSACTION_NOT_ALLOWED = :transaction_not_allowed
184
+
185
+ # The transaction was blocked by a Limit.
186
+ BREACHES_LIMIT = :breaches_limit
187
+
188
+ # Your application declined the transaction via webhook.
189
+ WEBHOOK_DECLINED = :webhook_declined
190
+
191
+ # Your application webhook did not respond without the required timeout.
192
+ WEBHOOK_TIMED_OUT = :webhook_timed_out
193
+
194
+ # Declined by stand-in processing.
195
+ DECLINED_BY_STAND_IN_PROCESSING = :declined_by_stand_in_processing
196
+
197
+ # The card read had an invalid CVV, dCVV, or authorization request cryptogram.
198
+ INVALID_PHYSICAL_CARD = :invalid_physical_card
199
+
200
+ # The original card authorization for this incremental authorization does not exist.
201
+ MISSING_ORIGINAL_AUTHORIZATION = :missing_original_authorization
202
+
203
+ # The transaction was declined because the 3DS authentication failed.
204
+ FAILED_3DS_AUTHENTICATION = :failed_3ds_authentication
205
+
206
+ # The transaction was suspected to be used by a card tester to test for valid card numbers.
207
+ SUSPECTED_CARD_TESTING = :suspected_card_testing
208
+
209
+ # The transaction was suspected to be fraudulent. Please reach out to support@increase.com for more information.
210
+ SUSPECTED_FRAUD = :suspected_fraud
211
+
212
+ # @!method self.values
213
+ # @return [Array<Symbol>]
214
+ end
215
+
216
+ class NetworkDetails < Increase::Internal::Type::BaseModel
217
+ # @!attribute visa
218
+ # Fields specific to the Visa network.
219
+ #
220
+ # @return [Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails::Visa]
221
+ required :visa, -> { Increase::Simulations::CardBalanceInquiryCreateParams::NetworkDetails::Visa }
222
+
223
+ # @!method initialize(visa:)
224
+ # Fields specific to a given card network.
225
+ #
226
+ # @param visa [Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails::Visa] Fields specific to the Visa network.
227
+
228
+ # @see Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails#visa
229
+ class Visa < Increase::Internal::Type::BaseModel
230
+ # @!attribute stand_in_processing_reason
231
+ # The reason code for the stand-in processing.
232
+ #
233
+ # @return [Symbol, Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails::Visa::StandInProcessingReason, nil]
234
+ optional :stand_in_processing_reason,
235
+ enum: -> { Increase::Simulations::CardBalanceInquiryCreateParams::NetworkDetails::Visa::StandInProcessingReason }
236
+
237
+ # @!method initialize(stand_in_processing_reason: nil)
238
+ # Fields specific to the Visa network.
239
+ #
240
+ # @param stand_in_processing_reason [Symbol, Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails::Visa::StandInProcessingReason] The reason code for the stand-in processing.
241
+
242
+ # The reason code for the stand-in processing.
243
+ #
244
+ # @see Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails::Visa#stand_in_processing_reason
245
+ module StandInProcessingReason
246
+ extend Increase::Internal::Type::Enum
247
+
248
+ # Increase failed to process the authorization in a timely manner.
249
+ ISSUER_ERROR = :issuer_error
250
+
251
+ # The physical card read had an invalid CVV, dCVV, or authorization request cryptogram.
252
+ INVALID_PHYSICAL_CARD = :invalid_physical_card
253
+
254
+ # The 3DS cardholder authentication verification value was invalid.
255
+ INVALID_CARDHOLDER_AUTHENTICATION_VERIFICATION_VALUE =
256
+ :invalid_cardholder_authentication_verification_value
257
+
258
+ # An internal Visa error occurred. Visa uses this reason code for certain expected occurrences as well, such as Application Transaction Counter (ATC) replays.
259
+ INTERNAL_VISA_ERROR = :internal_visa_error
260
+
261
+ # The merchant has enabled Visa's Transaction Advisory Service and requires further authentication to perform the transaction. In practice this is often utilized at fuel pumps to tell the cardholder to see the cashier.
262
+ MERCHANT_TRANSACTION_ADVISORY_SERVICE_AUTHENTICATION_REQUIRED =
263
+ :merchant_transaction_advisory_service_authentication_required
264
+
265
+ # The transaction was blocked by Visa's Payment Fraud Disruption service due to fraudulent Acquirer behavior, such as card testing.
266
+ PAYMENT_FRAUD_DISRUPTION_ACQUIRER_BLOCK = :payment_fraud_disruption_acquirer_block
267
+
268
+ # An unspecific reason for stand-in processing.
269
+ OTHER = :other
270
+
271
+ # @!method self.values
272
+ # @return [Array<Symbol>]
273
+ end
274
+ end
275
+ end
276
+ end
277
+ end
278
+ end
279
+ end
@@ -0,0 +1,70 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Resources
5
+ class Simulations
6
+ class CardBalanceInquiries
7
+ # Some parameter documentations has been truncated, see
8
+ # {Increase::Models::Simulations::CardBalanceInquiryCreateParams} for more
9
+ # details.
10
+ #
11
+ # Simulates a balance inquiry on a [Card](#cards).
12
+ #
13
+ # @overload create(balance: nil, card_id: nil, decline_reason: nil, digital_wallet_token_id: nil, event_subscription_id: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_city: nil, merchant_country: nil, merchant_descriptor: nil, merchant_state: nil, network_details: nil, network_risk_score: nil, physical_card_id: nil, terminal_id: nil, request_options: {})
14
+ #
15
+ # @param balance [Integer] The balance amount in cents. The account balance will be used if not provided.
16
+ #
17
+ # @param card_id [String] The identifier of the Card to be authorized.
18
+ #
19
+ # @param decline_reason [Symbol, Increase::Models::Simulations::CardBalanceInquiryCreateParams::DeclineReason] Forces a card decline with a specific reason. No real time decision will be sent
20
+ #
21
+ # @param digital_wallet_token_id [String] The identifier of the Digital Wallet Token to be authorized.
22
+ #
23
+ # @param event_subscription_id [String] The identifier of the Event Subscription to use. If provided, will override the
24
+ #
25
+ # @param merchant_acceptor_id [String] The merchant identifier (commonly abbreviated as MID) of the merchant the card i
26
+ #
27
+ # @param merchant_category_code [String] The Merchant Category Code (commonly abbreviated as MCC) of the merchant the car
28
+ #
29
+ # @param merchant_city [String] The city the merchant resides in.
30
+ #
31
+ # @param merchant_country [String] The country the merchant resides in.
32
+ #
33
+ # @param merchant_descriptor [String] The merchant descriptor of the merchant the card is transacting with.
34
+ #
35
+ # @param merchant_state [String] The state the merchant resides in.
36
+ #
37
+ # @param network_details [Increase::Models::Simulations::CardBalanceInquiryCreateParams::NetworkDetails] Fields specific to a given card network.
38
+ #
39
+ # @param network_risk_score [Integer] The risk score generated by the card network. For Visa this is the Visa Advanced
40
+ #
41
+ # @param physical_card_id [String] The identifier of the Physical Card to be authorized.
42
+ #
43
+ # @param terminal_id [String] The terminal identifier (commonly abbreviated as TID) of the terminal the card i
44
+ #
45
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
46
+ #
47
+ # @return [Increase::Models::CardPayment]
48
+ #
49
+ # @see Increase::Models::Simulations::CardBalanceInquiryCreateParams
50
+ def create(params = {})
51
+ parsed, options = Increase::Simulations::CardBalanceInquiryCreateParams.dump_request(params)
52
+ @client.request(
53
+ method: :post,
54
+ path: "simulations/card_balance_inquiries",
55
+ body: parsed,
56
+ model: Increase::CardPayment,
57
+ options: options
58
+ )
59
+ end
60
+
61
+ # @api private
62
+ #
63
+ # @param client [Increase::Client]
64
+ def initialize(client:)
65
+ @client = client
66
+ end
67
+ end
68
+ end
69
+ end
70
+ end
@@ -12,6 +12,9 @@ module Increase
12
12
  # @return [Increase::Resources::Simulations::CardAuthorizations]
13
13
  attr_reader :card_authorizations
14
14
 
15
+ # @return [Increase::Resources::Simulations::CardBalanceInquiries]
16
+ attr_reader :card_balance_inquiries
17
+
15
18
  # @return [Increase::Resources::Simulations::CardAuthorizationExpirations]
16
19
  attr_reader :card_authorization_expirations
17
20
 
@@ -101,6 +104,7 @@ module Increase
101
104
  @interest_payments = Increase::Resources::Simulations::InterestPayments.new(client: client)
102
105
  @account_transfers = Increase::Resources::Simulations::AccountTransfers.new(client: client)
103
106
  @card_authorizations = Increase::Resources::Simulations::CardAuthorizations.new(client: client)
107
+ @card_balance_inquiries = Increase::Resources::Simulations::CardBalanceInquiries.new(client: client)
104
108
  @card_authorization_expirations =
105
109
  Increase::Resources::Simulations::CardAuthorizationExpirations.new(client: client)
106
110
  @card_settlements = Increase::Resources::Simulations::CardSettlements.new(client: client)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.158.0"
4
+ VERSION = "1.159.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -299,6 +299,7 @@ require_relative "increase/models/simulations/ach_transfer_submit_params"
299
299
  require_relative "increase/models/simulations/card_authorization_create_params"
300
300
  require_relative "increase/models/simulations/card_authorization_create_response"
301
301
  require_relative "increase/models/simulations/card_authorization_expiration_create_params"
302
+ require_relative "increase/models/simulations/card_balance_inquiry_create_params"
302
303
  require_relative "increase/models/simulations/card_dispute_action_params"
303
304
  require_relative "increase/models/simulations/card_fuel_confirmation_create_params"
304
305
  require_relative "increase/models/simulations/card_increment_create_params"
@@ -404,6 +405,7 @@ require_relative "increase/resources/simulations/account_transfers"
404
405
  require_relative "increase/resources/simulations/ach_transfers"
405
406
  require_relative "increase/resources/simulations/card_authorization_expirations"
406
407
  require_relative "increase/resources/simulations/card_authorizations"
408
+ require_relative "increase/resources/simulations/card_balance_inquiries"
407
409
  require_relative "increase/resources/simulations/card_disputes"
408
410
  require_relative "increase/resources/simulations/card_fuel_confirmations"
409
411
  require_relative "increase/resources/simulations/card_increments"