increase 1.158.0 → 1.160.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 +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/entity.rb +9 -1
- data/lib/increase/models/entity_create_params.rb +10 -1
- data/lib/increase/models/entity_update_params.rb +10 -1
- data/lib/increase/models/simulations/card_balance_inquiry_create_params.rb +279 -0
- data/lib/increase/resources/simulations/card_balance_inquiries.rb +70 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +2 -0
- data/rbi/increase/models/entity.rbi +8 -0
- data/rbi/increase/models/entity_create_params.rbi +13 -0
- data/rbi/increase/models/entity_update_params.rbi +13 -0
- data/rbi/increase/models/simulations/card_balance_inquiry_create_params.rbi +587 -0
- data/rbi/increase/resources/simulations/card_balance_inquiries.rbi +80 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/models/entity.rbs +5 -0
- data/sig/increase/models/entity_create_params.rbs +7 -0
- data/sig/increase/models/entity_update_params.rbs +7 -0
- data/sig/increase/models/simulations/card_balance_inquiry_create_params.rbs +294 -0
- data/sig/increase/resources/simulations/card_balance_inquiries.rbs +28 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8c1c7c96c89aa6bd4d15958b4b515ebe2664b29aac652425ed703c3573281c4
|
|
4
|
+
data.tar.gz: f941658433d86000690ca5a00c6c45c5436eccd37b690b8224cc84269750abff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea0438fef562b57184b8a7b6ca884f9f261b61c00a8c00da25c002d5ad826f1cc3a6068a9adb90c93d24b46d6153cd9061655874d1acd3cb872fc6a77c40ec86
|
|
7
|
+
data.tar.gz: 89325a8fe1d38425482bd8bc7487f9cf50e0fb0dcd0029136d060510939d97009a0e748cab2ad1a4a65c8246ae4be12bc346b04d3ad4c45c0a9c43ec5fc60957
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.160.0 (2025-12-15)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.159.0...v1.160.0](https://github.com/Increase/increase-ruby/compare/v1.159.0...v1.160.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([5d1d461](https://github.com/Increase/increase-ruby/commit/5d1d46157b5a707fc910c14e60061e4b89c1f52d))
|
|
10
|
+
|
|
11
|
+
## 1.159.0 (2025-12-09)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.158.0...v1.159.0](https://github.com/Increase/increase-ruby/compare/v1.158.0...v1.159.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** api update ([d0dd7a8](https://github.com/Increase/increase-ruby/commit/d0dd7a857cdca3db358aef4c46530944d606851f))
|
|
18
|
+
|
|
3
19
|
## 1.158.0 (2025-12-08)
|
|
4
20
|
|
|
5
21
|
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
|
@@ -169,6 +169,12 @@ module Increase
|
|
|
169
169
|
required :beneficial_owners,
|
|
170
170
|
-> { Increase::Internal::Type::ArrayOf[Increase::Entity::Corporation::BeneficialOwner] }
|
|
171
171
|
|
|
172
|
+
# @!attribute email
|
|
173
|
+
# An email address for the business.
|
|
174
|
+
#
|
|
175
|
+
# @return [String, nil]
|
|
176
|
+
required :email, String, nil?: true
|
|
177
|
+
|
|
172
178
|
# @!attribute incorporation_state
|
|
173
179
|
# The two-letter United States Postal Service (USPS) abbreviation for the
|
|
174
180
|
# corporation's state of incorporation.
|
|
@@ -201,7 +207,7 @@ module Increase
|
|
|
201
207
|
# @return [String, nil]
|
|
202
208
|
required :website, String, nil?: true
|
|
203
209
|
|
|
204
|
-
# @!method initialize(address:, beneficial_owners:, incorporation_state:, industry_code:, name:, tax_identifier:, website:)
|
|
210
|
+
# @!method initialize(address:, beneficial_owners:, email:, incorporation_state:, industry_code:, name:, tax_identifier:, website:)
|
|
205
211
|
# Some parameter documentations has been truncated, see
|
|
206
212
|
# {Increase::Models::Entity::Corporation} for more details.
|
|
207
213
|
#
|
|
@@ -212,6 +218,8 @@ module Increase
|
|
|
212
218
|
#
|
|
213
219
|
# @param beneficial_owners [Array<Increase::Models::Entity::Corporation::BeneficialOwner>] The identifying details of anyone controlling or owning 25% or more of the corpo
|
|
214
220
|
#
|
|
221
|
+
# @param email [String, nil] An email address for the business.
|
|
222
|
+
#
|
|
215
223
|
# @param incorporation_state [String, nil] The two-letter United States Postal Service (USPS) abbreviation for the corporat
|
|
216
224
|
#
|
|
217
225
|
# @param industry_code [String, nil] The numeric North American Industry Classification System (NAICS) code submitted
|
|
@@ -165,6 +165,13 @@ module Increase
|
|
|
165
165
|
optional :beneficial_ownership_exemption_reason,
|
|
166
166
|
enum: -> { Increase::EntityCreateParams::Corporation::BeneficialOwnershipExemptionReason }
|
|
167
167
|
|
|
168
|
+
# @!attribute email
|
|
169
|
+
# An email address for the business. Not every program requires an email for
|
|
170
|
+
# submitted Entities.
|
|
171
|
+
#
|
|
172
|
+
# @return [String, nil]
|
|
173
|
+
optional :email, String
|
|
174
|
+
|
|
168
175
|
# @!attribute incorporation_state
|
|
169
176
|
# The two-letter United States Postal Service (USPS) abbreviation for the
|
|
170
177
|
# corporation's state of incorporation.
|
|
@@ -187,7 +194,7 @@ module Increase
|
|
|
187
194
|
# @return [String, nil]
|
|
188
195
|
optional :website, String
|
|
189
196
|
|
|
190
|
-
# @!method initialize(address:, beneficial_owners:, name:, tax_identifier:, beneficial_ownership_exemption_reason: nil, incorporation_state: nil, industry_code: nil, website: nil)
|
|
197
|
+
# @!method initialize(address:, beneficial_owners:, name:, tax_identifier:, beneficial_ownership_exemption_reason: nil, email: nil, incorporation_state: nil, industry_code: nil, website: nil)
|
|
191
198
|
# Some parameter documentations has been truncated, see
|
|
192
199
|
# {Increase::Models::EntityCreateParams::Corporation} for more details.
|
|
193
200
|
#
|
|
@@ -204,6 +211,8 @@ module Increase
|
|
|
204
211
|
#
|
|
205
212
|
# @param beneficial_ownership_exemption_reason [Symbol, Increase::Models::EntityCreateParams::Corporation::BeneficialOwnershipExemptionReason] If the entity is exempt from the requirement to submit beneficial owners, provid
|
|
206
213
|
#
|
|
214
|
+
# @param email [String] An email address for the business. Not every program requires an email for submi
|
|
215
|
+
#
|
|
207
216
|
# @param incorporation_state [String] The two-letter United States Postal Service (USPS) abbreviation for the corporat
|
|
208
217
|
#
|
|
209
218
|
# @param industry_code [String] The North American Industry Classification System (NAICS) code for the corporati
|
|
@@ -86,6 +86,13 @@ module Increase
|
|
|
86
86
|
# @return [Increase::Models::EntityUpdateParams::Corporation::Address, nil]
|
|
87
87
|
optional :address, -> { Increase::EntityUpdateParams::Corporation::Address }
|
|
88
88
|
|
|
89
|
+
# @!attribute email
|
|
90
|
+
# An email address for the business. Not every program requires an email for
|
|
91
|
+
# submitted Entities.
|
|
92
|
+
#
|
|
93
|
+
# @return [String, nil]
|
|
94
|
+
optional :email, String
|
|
95
|
+
|
|
89
96
|
# @!attribute industry_code
|
|
90
97
|
# The North American Industry Classification System (NAICS) code for the
|
|
91
98
|
# corporation's primary line of business. This is a number, like `5132` for
|
|
@@ -101,7 +108,7 @@ module Increase
|
|
|
101
108
|
# @return [String, nil]
|
|
102
109
|
optional :name, String
|
|
103
110
|
|
|
104
|
-
# @!method initialize(address: nil, industry_code: nil, name: nil)
|
|
111
|
+
# @!method initialize(address: nil, email: nil, industry_code: nil, name: nil)
|
|
105
112
|
# Some parameter documentations has been truncated, see
|
|
106
113
|
# {Increase::Models::EntityUpdateParams::Corporation} for more details.
|
|
107
114
|
#
|
|
@@ -110,6 +117,8 @@ module Increase
|
|
|
110
117
|
#
|
|
111
118
|
# @param address [Increase::Models::EntityUpdateParams::Corporation::Address] The entity's physical address. Mail receiving locations like PO Boxes and PMB's
|
|
112
119
|
#
|
|
120
|
+
# @param email [String] An email address for the business. Not every program requires an email for submi
|
|
121
|
+
#
|
|
113
122
|
# @param industry_code [String] The North American Industry Classification System (NAICS) code for the corporati
|
|
114
123
|
#
|
|
115
124
|
# @param name [String] The legal name of the corporation.
|
|
@@ -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)
|
data/lib/increase/version.rb
CHANGED
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"
|
|
@@ -250,6 +250,10 @@ module Increase
|
|
|
250
250
|
end
|
|
251
251
|
attr_accessor :beneficial_owners
|
|
252
252
|
|
|
253
|
+
# An email address for the business.
|
|
254
|
+
sig { returns(T.nilable(String)) }
|
|
255
|
+
attr_accessor :email
|
|
256
|
+
|
|
253
257
|
# The two-letter United States Postal Service (USPS) abbreviation for the
|
|
254
258
|
# corporation's state of incorporation.
|
|
255
259
|
sig { returns(T.nilable(String)) }
|
|
@@ -279,6 +283,7 @@ module Increase
|
|
|
279
283
|
address: Increase::Entity::Corporation::Address::OrHash,
|
|
280
284
|
beneficial_owners:
|
|
281
285
|
T::Array[Increase::Entity::Corporation::BeneficialOwner::OrHash],
|
|
286
|
+
email: T.nilable(String),
|
|
282
287
|
incorporation_state: T.nilable(String),
|
|
283
288
|
industry_code: T.nilable(String),
|
|
284
289
|
name: String,
|
|
@@ -292,6 +297,8 @@ module Increase
|
|
|
292
297
|
# The identifying details of anyone controlling or owning 25% or more of the
|
|
293
298
|
# corporation.
|
|
294
299
|
beneficial_owners:,
|
|
300
|
+
# An email address for the business.
|
|
301
|
+
email:,
|
|
295
302
|
# The two-letter United States Postal Service (USPS) abbreviation for the
|
|
296
303
|
# corporation's state of incorporation.
|
|
297
304
|
incorporation_state:,
|
|
@@ -313,6 +320,7 @@ module Increase
|
|
|
313
320
|
address: Increase::Entity::Corporation::Address,
|
|
314
321
|
beneficial_owners:
|
|
315
322
|
T::Array[Increase::Entity::Corporation::BeneficialOwner],
|
|
323
|
+
email: T.nilable(String),
|
|
316
324
|
incorporation_state: T.nilable(String),
|
|
317
325
|
industry_code: T.nilable(String),
|
|
318
326
|
name: String,
|
|
@@ -310,6 +310,14 @@ module Increase
|
|
|
310
310
|
end
|
|
311
311
|
attr_writer :beneficial_ownership_exemption_reason
|
|
312
312
|
|
|
313
|
+
# An email address for the business. Not every program requires an email for
|
|
314
|
+
# submitted Entities.
|
|
315
|
+
sig { returns(T.nilable(String)) }
|
|
316
|
+
attr_reader :email
|
|
317
|
+
|
|
318
|
+
sig { params(email: String).void }
|
|
319
|
+
attr_writer :email
|
|
320
|
+
|
|
313
321
|
# The two-letter United States Postal Service (USPS) abbreviation for the
|
|
314
322
|
# corporation's state of incorporation.
|
|
315
323
|
sig { returns(T.nilable(String)) }
|
|
@@ -348,6 +356,7 @@ module Increase
|
|
|
348
356
|
tax_identifier: String,
|
|
349
357
|
beneficial_ownership_exemption_reason:
|
|
350
358
|
Increase::EntityCreateParams::Corporation::BeneficialOwnershipExemptionReason::OrSymbol,
|
|
359
|
+
email: String,
|
|
351
360
|
incorporation_state: String,
|
|
352
361
|
industry_code: String,
|
|
353
362
|
website: String
|
|
@@ -369,6 +378,9 @@ module Increase
|
|
|
369
378
|
# provide the justification. If a reason is provided, you do not need to submit a
|
|
370
379
|
# list of beneficial owners.
|
|
371
380
|
beneficial_ownership_exemption_reason: nil,
|
|
381
|
+
# An email address for the business. Not every program requires an email for
|
|
382
|
+
# submitted Entities.
|
|
383
|
+
email: nil,
|
|
372
384
|
# The two-letter United States Postal Service (USPS) abbreviation for the
|
|
373
385
|
# corporation's state of incorporation.
|
|
374
386
|
incorporation_state: nil,
|
|
@@ -394,6 +406,7 @@ module Increase
|
|
|
394
406
|
tax_identifier: String,
|
|
395
407
|
beneficial_ownership_exemption_reason:
|
|
396
408
|
Increase::EntityCreateParams::Corporation::BeneficialOwnershipExemptionReason::OrSymbol,
|
|
409
|
+
email: String,
|
|
397
410
|
incorporation_state: String,
|
|
398
411
|
industry_code: String,
|
|
399
412
|
website: String
|
|
@@ -179,6 +179,14 @@ module Increase
|
|
|
179
179
|
end
|
|
180
180
|
attr_writer :address
|
|
181
181
|
|
|
182
|
+
# An email address for the business. Not every program requires an email for
|
|
183
|
+
# submitted Entities.
|
|
184
|
+
sig { returns(T.nilable(String)) }
|
|
185
|
+
attr_reader :email
|
|
186
|
+
|
|
187
|
+
sig { params(email: String).void }
|
|
188
|
+
attr_writer :email
|
|
189
|
+
|
|
182
190
|
# The North American Industry Classification System (NAICS) code for the
|
|
183
191
|
# corporation's primary line of business. This is a number, like `5132` for
|
|
184
192
|
# `Software Publishers`. A full list of classification codes is available
|
|
@@ -201,6 +209,7 @@ module Increase
|
|
|
201
209
|
sig do
|
|
202
210
|
params(
|
|
203
211
|
address: Increase::EntityUpdateParams::Corporation::Address::OrHash,
|
|
212
|
+
email: String,
|
|
204
213
|
industry_code: String,
|
|
205
214
|
name: String
|
|
206
215
|
).returns(T.attached_class)
|
|
@@ -209,6 +218,9 @@ module Increase
|
|
|
209
218
|
# The entity's physical address. Mail receiving locations like PO Boxes and PMB's
|
|
210
219
|
# are disallowed.
|
|
211
220
|
address: nil,
|
|
221
|
+
# An email address for the business. Not every program requires an email for
|
|
222
|
+
# submitted Entities.
|
|
223
|
+
email: nil,
|
|
212
224
|
# The North American Industry Classification System (NAICS) code for the
|
|
213
225
|
# corporation's primary line of business. This is a number, like `5132` for
|
|
214
226
|
# `Software Publishers`. A full list of classification codes is available
|
|
@@ -223,6 +235,7 @@ module Increase
|
|
|
223
235
|
override.returns(
|
|
224
236
|
{
|
|
225
237
|
address: Increase::EntityUpdateParams::Corporation::Address,
|
|
238
|
+
email: String,
|
|
226
239
|
industry_code: String,
|
|
227
240
|
name: String
|
|
228
241
|
}
|