increase 1.33.0 → 1.35.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/client.rb +12 -0
- data/lib/increase/models/card_push_transfer.rb +824 -0
- data/lib/increase/models/card_push_transfer_approve_params.rb +14 -0
- data/lib/increase/models/card_push_transfer_cancel_params.rb +14 -0
- data/lib/increase/models/card_push_transfer_create_params.rb +215 -0
- data/lib/increase/models/card_push_transfer_list_params.rb +159 -0
- data/lib/increase/models/card_push_transfer_retrieve_params.rb +14 -0
- data/lib/increase/models/card_token.rb +87 -0
- data/lib/increase/models/card_token_capabilities.rb +123 -0
- data/lib/increase/models/card_token_capabilities_params.rb +14 -0
- data/lib/increase/models/card_token_list_params.rb +83 -0
- data/lib/increase/models/card_token_retrieve_params.rb +14 -0
- data/lib/increase/models/card_validation.rb +759 -0
- data/lib/increase/models/card_validation_create_params.rb +116 -0
- data/lib/increase/models/card_validation_list_params.rb +150 -0
- data/lib/increase/models/card_validation_retrieve_params.rb +14 -0
- data/lib/increase/models/external_account.rb +3 -0
- data/lib/increase/models/external_account_create_params.rb +3 -0
- data/lib/increase/models/external_account_update_params.rb +3 -0
- data/lib/increase/models/simulations/card_token_create_params.rb +140 -0
- data/lib/increase/models.rb +30 -0
- data/lib/increase/resources/card_push_transfers.rb +167 -0
- data/lib/increase/resources/card_tokens.rb +86 -0
- data/lib/increase/resources/card_validations.rb +117 -0
- data/lib/increase/resources/simulations/card_tokens.rb +46 -0
- data/lib/increase/resources/simulations.rb +4 -0
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +20 -0
- data/rbi/increase/client.rbi +9 -0
- data/rbi/increase/models/card_push_transfer.rbi +1450 -0
- data/rbi/increase/models/card_push_transfer_approve_params.rbi +30 -0
- data/rbi/increase/models/card_push_transfer_cancel_params.rbi +30 -0
- data/rbi/increase/models/card_push_transfer_create_params.rbi +325 -0
- data/rbi/increase/models/card_push_transfer_list_params.rbi +329 -0
- data/rbi/increase/models/card_push_transfer_retrieve_params.rbi +30 -0
- data/rbi/increase/models/card_token.rbi +108 -0
- data/rbi/increase/models/card_token_capabilities.rbi +250 -0
- data/rbi/increase/models/card_token_capabilities_params.rbi +30 -0
- data/rbi/increase/models/card_token_list_params.rbi +146 -0
- data/rbi/increase/models/card_token_retrieve_params.rbi +27 -0
- data/rbi/increase/models/card_validation.rbi +1438 -0
- data/rbi/increase/models/card_validation_create_params.rbi +155 -0
- data/rbi/increase/models/card_validation_list_params.rbi +295 -0
- data/rbi/increase/models/card_validation_retrieve_params.rbi +30 -0
- data/rbi/increase/models/external_account.rbi +7 -0
- data/rbi/increase/models/external_account_create_params.rbi +7 -0
- data/rbi/increase/models/external_account_update_params.rbi +7 -0
- data/rbi/increase/models/simulations/card_token_create_params.rbi +297 -0
- data/rbi/increase/models.rbi +32 -0
- data/rbi/increase/resources/card_push_transfers.rbi +157 -0
- data/rbi/increase/resources/card_tokens.rbi +62 -0
- data/rbi/increase/resources/card_validations.rbi +107 -0
- data/rbi/increase/resources/simulations/card_tokens.rbi +43 -0
- data/rbi/increase/resources/simulations.rbi +3 -0
- data/sig/increase/client.rbs +6 -0
- data/sig/increase/models/card_push_transfer.rbs +679 -0
- data/sig/increase/models/card_push_transfer_approve_params.rbs +15 -0
- data/sig/increase/models/card_push_transfer_cancel_params.rbs +15 -0
- data/sig/increase/models/card_push_transfer_create_params.rbs +172 -0
- data/sig/increase/models/card_push_transfer_list_params.rbs +163 -0
- data/sig/increase/models/card_push_transfer_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_token.rbs +60 -0
- data/sig/increase/models/card_token_capabilities.rbs +104 -0
- data/sig/increase/models/card_token_capabilities_params.rbs +15 -0
- data/sig/increase/models/card_token_list_params.rbs +79 -0
- data/sig/increase/models/card_token_retrieve_params.rbs +15 -0
- data/sig/increase/models/card_validation.rbs +634 -0
- data/sig/increase/models/card_validation_create_params.rbs +91 -0
- data/sig/increase/models/card_validation_list_params.rbs +151 -0
- data/sig/increase/models/card_validation_retrieve_params.rbs +15 -0
- data/sig/increase/models/external_account.rbs +4 -1
- data/sig/increase/models/external_account_create_params.rbs +4 -1
- data/sig/increase/models/external_account_update_params.rbs +4 -1
- data/sig/increase/models/simulations/card_token_create_params.rbs +129 -0
- data/sig/increase/models.rbs +30 -0
- data/sig/increase/resources/card_push_transfers.rbs +53 -0
- data/sig/increase/resources/card_tokens.rbs +24 -0
- data/sig/increase/resources/card_validations.rbs +38 -0
- data/sig/increase/resources/simulations/card_tokens.rbs +18 -0
- data/sig/increase/resources/simulations.rbs +2 -0
- metadata +62 -2
|
@@ -99,6 +99,9 @@ module Increase
|
|
|
99
99
|
sig { returns(Increase::Resources::Simulations::Documents) }
|
|
100
100
|
attr_reader :documents
|
|
101
101
|
|
|
102
|
+
sig { returns(Increase::Resources::Simulations::CardTokens) }
|
|
103
|
+
attr_reader :card_tokens
|
|
104
|
+
|
|
102
105
|
# @api private
|
|
103
106
|
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
104
107
|
def self.new(client:)
|
data/sig/increase/client.rbs
CHANGED
|
@@ -117,6 +117,12 @@ module Increase
|
|
|
117
117
|
|
|
118
118
|
attr_reader intrafi_exclusions: Increase::Resources::IntrafiExclusions
|
|
119
119
|
|
|
120
|
+
attr_reader card_tokens: Increase::Resources::CardTokens
|
|
121
|
+
|
|
122
|
+
attr_reader card_push_transfers: Increase::Resources::CardPushTransfers
|
|
123
|
+
|
|
124
|
+
attr_reader card_validations: Increase::Resources::CardValidations
|
|
125
|
+
|
|
120
126
|
attr_reader simulations: Increase::Resources::Simulations
|
|
121
127
|
|
|
122
128
|
private def auth_headers: -> ::Hash[String, String]
|
|
@@ -0,0 +1,679 @@
|
|
|
1
|
+
module Increase
|
|
2
|
+
module Models
|
|
3
|
+
type card_push_transfer =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
acceptance: Increase::CardPushTransfer::Acceptance?,
|
|
7
|
+
account_id: String,
|
|
8
|
+
amount: Integer,
|
|
9
|
+
approval: Increase::CardPushTransfer::Approval?,
|
|
10
|
+
business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier,
|
|
11
|
+
cancellation: Increase::CardPushTransfer::Cancellation?,
|
|
12
|
+
created_at: Time,
|
|
13
|
+
created_by: Increase::CardPushTransfer::CreatedBy?,
|
|
14
|
+
currency: Increase::Models::CardPushTransfer::currency,
|
|
15
|
+
decline: Increase::CardPushTransfer::Decline?,
|
|
16
|
+
idempotency_key: String?,
|
|
17
|
+
merchant_category_code: String,
|
|
18
|
+
merchant_city_name: String,
|
|
19
|
+
merchant_name: String,
|
|
20
|
+
merchant_name_prefix: String,
|
|
21
|
+
merchant_postal_code: String,
|
|
22
|
+
merchant_state: String,
|
|
23
|
+
recipient_name: String,
|
|
24
|
+
sender_address_city: String,
|
|
25
|
+
:sender_address_line1 => String,
|
|
26
|
+
sender_address_postal_code: String,
|
|
27
|
+
sender_address_state: String,
|
|
28
|
+
sender_name: String,
|
|
29
|
+
source_account_number_id: String,
|
|
30
|
+
status: Increase::Models::CardPushTransfer::status,
|
|
31
|
+
submission: Increase::CardPushTransfer::Submission?,
|
|
32
|
+
type: Increase::Models::CardPushTransfer::type_
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
class CardPushTransfer < Increase::Internal::Type::BaseModel
|
|
36
|
+
attr_accessor id: String
|
|
37
|
+
|
|
38
|
+
attr_accessor acceptance: Increase::CardPushTransfer::Acceptance?
|
|
39
|
+
|
|
40
|
+
attr_accessor account_id: String
|
|
41
|
+
|
|
42
|
+
attr_accessor amount: Integer
|
|
43
|
+
|
|
44
|
+
attr_accessor approval: Increase::CardPushTransfer::Approval?
|
|
45
|
+
|
|
46
|
+
attr_accessor business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier
|
|
47
|
+
|
|
48
|
+
attr_accessor cancellation: Increase::CardPushTransfer::Cancellation?
|
|
49
|
+
|
|
50
|
+
attr_accessor created_at: Time
|
|
51
|
+
|
|
52
|
+
attr_accessor created_by: Increase::CardPushTransfer::CreatedBy?
|
|
53
|
+
|
|
54
|
+
attr_accessor currency: Increase::Models::CardPushTransfer::currency
|
|
55
|
+
|
|
56
|
+
attr_accessor decline: Increase::CardPushTransfer::Decline?
|
|
57
|
+
|
|
58
|
+
attr_accessor idempotency_key: String?
|
|
59
|
+
|
|
60
|
+
attr_accessor merchant_category_code: String
|
|
61
|
+
|
|
62
|
+
attr_accessor merchant_city_name: String
|
|
63
|
+
|
|
64
|
+
attr_accessor merchant_name: String
|
|
65
|
+
|
|
66
|
+
attr_accessor merchant_name_prefix: String
|
|
67
|
+
|
|
68
|
+
attr_accessor merchant_postal_code: String
|
|
69
|
+
|
|
70
|
+
attr_accessor merchant_state: String
|
|
71
|
+
|
|
72
|
+
attr_accessor recipient_name: String
|
|
73
|
+
|
|
74
|
+
attr_accessor sender_address_city: String
|
|
75
|
+
|
|
76
|
+
attr_accessor sender_address_line1: String
|
|
77
|
+
|
|
78
|
+
attr_accessor sender_address_postal_code: String
|
|
79
|
+
|
|
80
|
+
attr_accessor sender_address_state: String
|
|
81
|
+
|
|
82
|
+
attr_accessor sender_name: String
|
|
83
|
+
|
|
84
|
+
attr_accessor source_account_number_id: String
|
|
85
|
+
|
|
86
|
+
attr_accessor status: Increase::Models::CardPushTransfer::status
|
|
87
|
+
|
|
88
|
+
attr_accessor submission: Increase::CardPushTransfer::Submission?
|
|
89
|
+
|
|
90
|
+
attr_accessor type: Increase::Models::CardPushTransfer::type_
|
|
91
|
+
|
|
92
|
+
def initialize: (
|
|
93
|
+
id: String,
|
|
94
|
+
acceptance: Increase::CardPushTransfer::Acceptance?,
|
|
95
|
+
account_id: String,
|
|
96
|
+
amount: Integer,
|
|
97
|
+
approval: Increase::CardPushTransfer::Approval?,
|
|
98
|
+
business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier,
|
|
99
|
+
cancellation: Increase::CardPushTransfer::Cancellation?,
|
|
100
|
+
created_at: Time,
|
|
101
|
+
created_by: Increase::CardPushTransfer::CreatedBy?,
|
|
102
|
+
currency: Increase::Models::CardPushTransfer::currency,
|
|
103
|
+
decline: Increase::CardPushTransfer::Decline?,
|
|
104
|
+
idempotency_key: String?,
|
|
105
|
+
merchant_category_code: String,
|
|
106
|
+
merchant_city_name: String,
|
|
107
|
+
merchant_name: String,
|
|
108
|
+
merchant_name_prefix: String,
|
|
109
|
+
merchant_postal_code: String,
|
|
110
|
+
merchant_state: String,
|
|
111
|
+
recipient_name: String,
|
|
112
|
+
sender_address_city: String,
|
|
113
|
+
sender_address_line1: String,
|
|
114
|
+
sender_address_postal_code: String,
|
|
115
|
+
sender_address_state: String,
|
|
116
|
+
sender_name: String,
|
|
117
|
+
source_account_number_id: String,
|
|
118
|
+
status: Increase::Models::CardPushTransfer::status,
|
|
119
|
+
submission: Increase::CardPushTransfer::Submission?,
|
|
120
|
+
type: Increase::Models::CardPushTransfer::type_
|
|
121
|
+
) -> void
|
|
122
|
+
|
|
123
|
+
def to_hash: -> {
|
|
124
|
+
id: String,
|
|
125
|
+
acceptance: Increase::CardPushTransfer::Acceptance?,
|
|
126
|
+
account_id: String,
|
|
127
|
+
amount: Integer,
|
|
128
|
+
approval: Increase::CardPushTransfer::Approval?,
|
|
129
|
+
business_application_identifier: Increase::Models::CardPushTransfer::business_application_identifier,
|
|
130
|
+
cancellation: Increase::CardPushTransfer::Cancellation?,
|
|
131
|
+
created_at: Time,
|
|
132
|
+
created_by: Increase::CardPushTransfer::CreatedBy?,
|
|
133
|
+
currency: Increase::Models::CardPushTransfer::currency,
|
|
134
|
+
decline: Increase::CardPushTransfer::Decline?,
|
|
135
|
+
idempotency_key: String?,
|
|
136
|
+
merchant_category_code: String,
|
|
137
|
+
merchant_city_name: String,
|
|
138
|
+
merchant_name: String,
|
|
139
|
+
merchant_name_prefix: String,
|
|
140
|
+
merchant_postal_code: String,
|
|
141
|
+
merchant_state: String,
|
|
142
|
+
recipient_name: String,
|
|
143
|
+
sender_address_city: String,
|
|
144
|
+
:sender_address_line1 => String,
|
|
145
|
+
sender_address_postal_code: String,
|
|
146
|
+
sender_address_state: String,
|
|
147
|
+
sender_name: String,
|
|
148
|
+
source_account_number_id: String,
|
|
149
|
+
status: Increase::Models::CardPushTransfer::status,
|
|
150
|
+
submission: Increase::CardPushTransfer::Submission?,
|
|
151
|
+
type: Increase::Models::CardPushTransfer::type_
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
type acceptance =
|
|
155
|
+
{
|
|
156
|
+
accepted_at: Time,
|
|
157
|
+
authorization_identification_response: String,
|
|
158
|
+
:card_verification_value2_result => Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result?,
|
|
159
|
+
network_transaction_identifier: String?
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
class Acceptance < Increase::Internal::Type::BaseModel
|
|
163
|
+
attr_accessor accepted_at: Time
|
|
164
|
+
|
|
165
|
+
attr_accessor authorization_identification_response: String
|
|
166
|
+
|
|
167
|
+
attr_accessor card_verification_value2_result: Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result?
|
|
168
|
+
|
|
169
|
+
attr_accessor network_transaction_identifier: String?
|
|
170
|
+
|
|
171
|
+
def initialize: (
|
|
172
|
+
accepted_at: Time,
|
|
173
|
+
authorization_identification_response: String,
|
|
174
|
+
card_verification_value2_result: Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result?,
|
|
175
|
+
network_transaction_identifier: String?
|
|
176
|
+
) -> void
|
|
177
|
+
|
|
178
|
+
def to_hash: -> {
|
|
179
|
+
accepted_at: Time,
|
|
180
|
+
authorization_identification_response: String,
|
|
181
|
+
:card_verification_value2_result => Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result?,
|
|
182
|
+
network_transaction_identifier: String?
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
type card_verification_value2_result = :match | :no_match
|
|
186
|
+
|
|
187
|
+
module CardVerificationValue2Result
|
|
188
|
+
extend Increase::Internal::Type::Enum
|
|
189
|
+
|
|
190
|
+
# The Card Verification Value 2 (CVV2) matches the expected value.
|
|
191
|
+
MATCH: :match
|
|
192
|
+
|
|
193
|
+
# The Card Verification Value 2 (CVV2) does not match the expected value.
|
|
194
|
+
NO_MATCH: :no_match
|
|
195
|
+
|
|
196
|
+
def self?.values: -> ::Array[Increase::Models::CardPushTransfer::Acceptance::card_verification_value2_result]
|
|
197
|
+
end
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
type approval = { approved_at: Time, approved_by: String? }
|
|
201
|
+
|
|
202
|
+
class Approval < Increase::Internal::Type::BaseModel
|
|
203
|
+
attr_accessor approved_at: Time
|
|
204
|
+
|
|
205
|
+
attr_accessor approved_by: String?
|
|
206
|
+
|
|
207
|
+
def initialize: (approved_at: Time, approved_by: String?) -> void
|
|
208
|
+
|
|
209
|
+
def to_hash: -> { approved_at: Time, approved_by: String? }
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
type business_application_identifier =
|
|
213
|
+
:account_to_account
|
|
214
|
+
| :business_to_business
|
|
215
|
+
| :money_transfer_bank_initiated
|
|
216
|
+
| :non_card_bill_payment
|
|
217
|
+
| :consumer_bill_payment
|
|
218
|
+
| :card_bill_payment
|
|
219
|
+
| :funds_disbursement
|
|
220
|
+
| :funds_transfer
|
|
221
|
+
| :loyalty_and_offers
|
|
222
|
+
| :merchant_disbursement
|
|
223
|
+
| :merchant_payment
|
|
224
|
+
| :person_to_person
|
|
225
|
+
| :top_up
|
|
226
|
+
| :wallet_transfer
|
|
227
|
+
|
|
228
|
+
module BusinessApplicationIdentifier
|
|
229
|
+
extend Increase::Internal::Type::Enum
|
|
230
|
+
|
|
231
|
+
# Account to Account
|
|
232
|
+
ACCOUNT_TO_ACCOUNT: :account_to_account
|
|
233
|
+
|
|
234
|
+
# Business to Business
|
|
235
|
+
BUSINESS_TO_BUSINESS: :business_to_business
|
|
236
|
+
|
|
237
|
+
# Money Transfer Bank Initiated
|
|
238
|
+
MONEY_TRANSFER_BANK_INITIATED: :money_transfer_bank_initiated
|
|
239
|
+
|
|
240
|
+
# Non-Card Bill Payment
|
|
241
|
+
NON_CARD_BILL_PAYMENT: :non_card_bill_payment
|
|
242
|
+
|
|
243
|
+
# Consumer Bill Payment
|
|
244
|
+
CONSUMER_BILL_PAYMENT: :consumer_bill_payment
|
|
245
|
+
|
|
246
|
+
# Card Bill Payment
|
|
247
|
+
CARD_BILL_PAYMENT: :card_bill_payment
|
|
248
|
+
|
|
249
|
+
# Funds Disbursement
|
|
250
|
+
FUNDS_DISBURSEMENT: :funds_disbursement
|
|
251
|
+
|
|
252
|
+
# Funds Transfer
|
|
253
|
+
FUNDS_TRANSFER: :funds_transfer
|
|
254
|
+
|
|
255
|
+
# Loyalty and Offers
|
|
256
|
+
LOYALTY_AND_OFFERS: :loyalty_and_offers
|
|
257
|
+
|
|
258
|
+
# Merchant Disbursement
|
|
259
|
+
MERCHANT_DISBURSEMENT: :merchant_disbursement
|
|
260
|
+
|
|
261
|
+
# Merchant Payment
|
|
262
|
+
MERCHANT_PAYMENT: :merchant_payment
|
|
263
|
+
|
|
264
|
+
# Person to Person
|
|
265
|
+
PERSON_TO_PERSON: :person_to_person
|
|
266
|
+
|
|
267
|
+
# Top Up
|
|
268
|
+
TOP_UP: :top_up
|
|
269
|
+
|
|
270
|
+
# Wallet Transfer
|
|
271
|
+
WALLET_TRANSFER: :wallet_transfer
|
|
272
|
+
|
|
273
|
+
def self?.values: -> ::Array[Increase::Models::CardPushTransfer::business_application_identifier]
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
type cancellation = { canceled_at: Time, canceled_by: String? }
|
|
277
|
+
|
|
278
|
+
class Cancellation < Increase::Internal::Type::BaseModel
|
|
279
|
+
attr_accessor canceled_at: Time
|
|
280
|
+
|
|
281
|
+
attr_accessor canceled_by: String?
|
|
282
|
+
|
|
283
|
+
def initialize: (canceled_at: Time, canceled_by: String?) -> void
|
|
284
|
+
|
|
285
|
+
def to_hash: -> { canceled_at: Time, canceled_by: String? }
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
type created_by =
|
|
289
|
+
{
|
|
290
|
+
api_key: Increase::CardPushTransfer::CreatedBy::APIKey?,
|
|
291
|
+
category: Increase::Models::CardPushTransfer::CreatedBy::category,
|
|
292
|
+
oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?,
|
|
293
|
+
user: Increase::CardPushTransfer::CreatedBy::User?
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
class CreatedBy < Increase::Internal::Type::BaseModel
|
|
297
|
+
attr_accessor api_key: Increase::CardPushTransfer::CreatedBy::APIKey?
|
|
298
|
+
|
|
299
|
+
attr_accessor category: Increase::Models::CardPushTransfer::CreatedBy::category
|
|
300
|
+
|
|
301
|
+
attr_accessor oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?
|
|
302
|
+
|
|
303
|
+
attr_accessor user: Increase::CardPushTransfer::CreatedBy::User?
|
|
304
|
+
|
|
305
|
+
def initialize: (
|
|
306
|
+
api_key: Increase::CardPushTransfer::CreatedBy::APIKey?,
|
|
307
|
+
category: Increase::Models::CardPushTransfer::CreatedBy::category,
|
|
308
|
+
oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?,
|
|
309
|
+
user: Increase::CardPushTransfer::CreatedBy::User?
|
|
310
|
+
) -> void
|
|
311
|
+
|
|
312
|
+
def to_hash: -> {
|
|
313
|
+
api_key: Increase::CardPushTransfer::CreatedBy::APIKey?,
|
|
314
|
+
category: Increase::Models::CardPushTransfer::CreatedBy::category,
|
|
315
|
+
oauth_application: Increase::CardPushTransfer::CreatedBy::OAuthApplication?,
|
|
316
|
+
user: Increase::CardPushTransfer::CreatedBy::User?
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
type api_key = { description: String? }
|
|
320
|
+
|
|
321
|
+
class APIKey < Increase::Internal::Type::BaseModel
|
|
322
|
+
attr_accessor description: String?
|
|
323
|
+
|
|
324
|
+
def initialize: (description: String?) -> void
|
|
325
|
+
|
|
326
|
+
def to_hash: -> { description: String? }
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
type category = :api_key | :oauth_application | :user
|
|
330
|
+
|
|
331
|
+
module Category
|
|
332
|
+
extend Increase::Internal::Type::Enum
|
|
333
|
+
|
|
334
|
+
# An API key. Details will be under the `api_key` object.
|
|
335
|
+
API_KEY: :api_key
|
|
336
|
+
|
|
337
|
+
# An OAuth application you connected to Increase. Details will be under the `oauth_application` object.
|
|
338
|
+
OAUTH_APPLICATION: :oauth_application
|
|
339
|
+
|
|
340
|
+
# A User in the Increase dashboard. Details will be under the `user` object.
|
|
341
|
+
USER: :user
|
|
342
|
+
|
|
343
|
+
def self?.values: -> ::Array[Increase::Models::CardPushTransfer::CreatedBy::category]
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
type oauth_application = { name: String }
|
|
347
|
+
|
|
348
|
+
class OAuthApplication < Increase::Internal::Type::BaseModel
|
|
349
|
+
attr_accessor name: String
|
|
350
|
+
|
|
351
|
+
def initialize: (name: String) -> void
|
|
352
|
+
|
|
353
|
+
def to_hash: -> { name: String }
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
type user = { email: String }
|
|
357
|
+
|
|
358
|
+
class User < Increase::Internal::Type::BaseModel
|
|
359
|
+
attr_accessor email: String
|
|
360
|
+
|
|
361
|
+
def initialize: (email: String) -> void
|
|
362
|
+
|
|
363
|
+
def to_hash: -> { email: String }
|
|
364
|
+
end
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
type currency = :CAD | :CHF | :EUR | :GBP | :JPY | :USD
|
|
368
|
+
|
|
369
|
+
module Currency
|
|
370
|
+
extend Increase::Internal::Type::Enum
|
|
371
|
+
|
|
372
|
+
# Canadian Dollar (CAD)
|
|
373
|
+
CAD: :CAD
|
|
374
|
+
|
|
375
|
+
# Swiss Franc (CHF)
|
|
376
|
+
CHF: :CHF
|
|
377
|
+
|
|
378
|
+
# Euro (EUR)
|
|
379
|
+
EUR: :EUR
|
|
380
|
+
|
|
381
|
+
# British Pound (GBP)
|
|
382
|
+
GBP: :GBP
|
|
383
|
+
|
|
384
|
+
# Japanese Yen (JPY)
|
|
385
|
+
JPY: :JPY
|
|
386
|
+
|
|
387
|
+
# US Dollar (USD)
|
|
388
|
+
USD: :USD
|
|
389
|
+
|
|
390
|
+
def self?.values: -> ::Array[Increase::Models::CardPushTransfer::currency]
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
type decline =
|
|
394
|
+
{
|
|
395
|
+
declined_at: Time,
|
|
396
|
+
network_transaction_identifier: String?,
|
|
397
|
+
reason: Increase::Models::CardPushTransfer::Decline::reason
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
class Decline < Increase::Internal::Type::BaseModel
|
|
401
|
+
attr_accessor declined_at: Time
|
|
402
|
+
|
|
403
|
+
attr_accessor network_transaction_identifier: String?
|
|
404
|
+
|
|
405
|
+
attr_accessor reason: Increase::Models::CardPushTransfer::Decline::reason
|
|
406
|
+
|
|
407
|
+
def initialize: (
|
|
408
|
+
declined_at: Time,
|
|
409
|
+
network_transaction_identifier: String?,
|
|
410
|
+
reason: Increase::Models::CardPushTransfer::Decline::reason
|
|
411
|
+
) -> void
|
|
412
|
+
|
|
413
|
+
def to_hash: -> {
|
|
414
|
+
declined_at: Time,
|
|
415
|
+
network_transaction_identifier: String?,
|
|
416
|
+
reason: Increase::Models::CardPushTransfer::Decline::reason
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
type reason =
|
|
420
|
+
:do_not_honor
|
|
421
|
+
| :activity_count_limit_exceeded
|
|
422
|
+
| :refer_to_card_issuer
|
|
423
|
+
| :refer_to_card_issuer_special_condition
|
|
424
|
+
| :invalid_merchant
|
|
425
|
+
| :pick_up_card
|
|
426
|
+
| :error
|
|
427
|
+
| :pick_up_card_special
|
|
428
|
+
| :invalid_transaction
|
|
429
|
+
| :invalid_amount
|
|
430
|
+
| :invalid_account_number
|
|
431
|
+
| :no_such_issuer
|
|
432
|
+
| :re_enter_transaction
|
|
433
|
+
| :no_credit_account
|
|
434
|
+
| :pick_up_card_lost
|
|
435
|
+
| :pick_up_card_stolen
|
|
436
|
+
| :closed_account
|
|
437
|
+
| :insufficient_funds
|
|
438
|
+
| :no_checking_account
|
|
439
|
+
| :no_savings_account
|
|
440
|
+
| :expired_card
|
|
441
|
+
| :transaction_not_permitted_to_cardholder
|
|
442
|
+
| :transaction_not_allowed_at_terminal
|
|
443
|
+
| :suspected_fraud
|
|
444
|
+
| :activity_amount_limit_exceeded
|
|
445
|
+
| :restricted_card
|
|
446
|
+
| :security_violation
|
|
447
|
+
| :transaction_does_not_fulfill_anti_money_laundering_requirement
|
|
448
|
+
| :blocked_first_use
|
|
449
|
+
| :credit_issuer_unavailable
|
|
450
|
+
| :negative_card_verification_value_results
|
|
451
|
+
| :issuer_unavailable
|
|
452
|
+
| :financial_institution_cannot_be_found
|
|
453
|
+
| :transaction_cannot_be_completed
|
|
454
|
+
| :duplicate_transaction
|
|
455
|
+
| :system_malfunction
|
|
456
|
+
| :additional_customer_authentication_required
|
|
457
|
+
| :surcharge_amount_not_permitted
|
|
458
|
+
| :decline_for_cvv2_failure
|
|
459
|
+
| :stop_payment_order
|
|
460
|
+
| :revocation_of_authorization_order
|
|
461
|
+
| :revocation_of_all_authorizations_order
|
|
462
|
+
|
|
463
|
+
module Reason
|
|
464
|
+
extend Increase::Internal::Type::Enum
|
|
465
|
+
|
|
466
|
+
# The card issuer has declined the transaction without providing a specific reason.
|
|
467
|
+
DO_NOT_HONOR: :do_not_honor
|
|
468
|
+
|
|
469
|
+
# The number of transactions for the card has exceeded the limit set by the issuer.
|
|
470
|
+
ACTIVITY_COUNT_LIMIT_EXCEEDED: :activity_count_limit_exceeded
|
|
471
|
+
|
|
472
|
+
# The card issuer requires the cardholder to contact them for further information regarding the transaction.
|
|
473
|
+
REFER_TO_CARD_ISSUER: :refer_to_card_issuer
|
|
474
|
+
|
|
475
|
+
# The card issuer requires the cardholder to contact them due to a special condition related to the transaction.
|
|
476
|
+
REFER_TO_CARD_ISSUER_SPECIAL_CONDITION: :refer_to_card_issuer_special_condition
|
|
477
|
+
|
|
478
|
+
# The merchant is not valid for this transaction.
|
|
479
|
+
INVALID_MERCHANT: :invalid_merchant
|
|
480
|
+
|
|
481
|
+
# The card should be retained by the terminal.
|
|
482
|
+
PICK_UP_CARD: :pick_up_card
|
|
483
|
+
|
|
484
|
+
# An error occurred during processing of the transaction.
|
|
485
|
+
ERROR: :error
|
|
486
|
+
|
|
487
|
+
# The card should be retained by the terminal due to a special condition.
|
|
488
|
+
PICK_UP_CARD_SPECIAL: :pick_up_card_special
|
|
489
|
+
|
|
490
|
+
# The transaction is invalid and cannot be processed.
|
|
491
|
+
INVALID_TRANSACTION: :invalid_transaction
|
|
492
|
+
|
|
493
|
+
# The amount of the transaction is invalid.
|
|
494
|
+
INVALID_AMOUNT: :invalid_amount
|
|
495
|
+
|
|
496
|
+
# The account number provided is invalid.
|
|
497
|
+
INVALID_ACCOUNT_NUMBER: :invalid_account_number
|
|
498
|
+
|
|
499
|
+
# The issuer of the card could not be found.
|
|
500
|
+
NO_SUCH_ISSUER: :no_such_issuer
|
|
501
|
+
|
|
502
|
+
# The transaction should be re-entered for processing.
|
|
503
|
+
RE_ENTER_TRANSACTION: :re_enter_transaction
|
|
504
|
+
|
|
505
|
+
# There is no credit account associated with the card.
|
|
506
|
+
NO_CREDIT_ACCOUNT: :no_credit_account
|
|
507
|
+
|
|
508
|
+
# The card should be retained by the terminal because it has been reported lost.
|
|
509
|
+
PICK_UP_CARD_LOST: :pick_up_card_lost
|
|
510
|
+
|
|
511
|
+
# The card should be retained by the terminal because it has been reported stolen.
|
|
512
|
+
PICK_UP_CARD_STOLEN: :pick_up_card_stolen
|
|
513
|
+
|
|
514
|
+
# The account associated with the card has been closed.
|
|
515
|
+
CLOSED_ACCOUNT: :closed_account
|
|
516
|
+
|
|
517
|
+
# There are insufficient funds in the account to complete the transaction.
|
|
518
|
+
INSUFFICIENT_FUNDS: :insufficient_funds
|
|
519
|
+
|
|
520
|
+
# There is no checking account associated with the card.
|
|
521
|
+
NO_CHECKING_ACCOUNT: :no_checking_account
|
|
522
|
+
|
|
523
|
+
# There is no savings account associated with the card.
|
|
524
|
+
NO_SAVINGS_ACCOUNT: :no_savings_account
|
|
525
|
+
|
|
526
|
+
# The card has expired and cannot be used for transactions.
|
|
527
|
+
EXPIRED_CARD: :expired_card
|
|
528
|
+
|
|
529
|
+
# The transaction is not permitted for this cardholder.
|
|
530
|
+
TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER: :transaction_not_permitted_to_cardholder
|
|
531
|
+
|
|
532
|
+
# The transaction is not allowed at this terminal.
|
|
533
|
+
TRANSACTION_NOT_ALLOWED_AT_TERMINAL: :transaction_not_allowed_at_terminal
|
|
534
|
+
|
|
535
|
+
# The transaction has been flagged as suspected fraud and cannot be processed.
|
|
536
|
+
SUSPECTED_FRAUD: :suspected_fraud
|
|
537
|
+
|
|
538
|
+
# The amount of activity on the card has exceeded the limit set by the issuer.
|
|
539
|
+
ACTIVITY_AMOUNT_LIMIT_EXCEEDED: :activity_amount_limit_exceeded
|
|
540
|
+
|
|
541
|
+
# The card has restrictions that prevent it from being used for this transaction.
|
|
542
|
+
RESTRICTED_CARD: :restricted_card
|
|
543
|
+
|
|
544
|
+
# A security violation has occurred, preventing the transaction from being processed.
|
|
545
|
+
SECURITY_VIOLATION: :security_violation
|
|
546
|
+
|
|
547
|
+
# The transaction does not meet the anti-money laundering requirements set by the issuer.
|
|
548
|
+
TRANSACTION_DOES_NOT_FULFILL_ANTI_MONEY_LAUNDERING_REQUIREMENT: :transaction_does_not_fulfill_anti_money_laundering_requirement
|
|
549
|
+
|
|
550
|
+
# The first use of the card has been blocked by the issuer.
|
|
551
|
+
BLOCKED_FIRST_USE: :blocked_first_use
|
|
552
|
+
|
|
553
|
+
# The credit issuer is currently unavailable to process the transaction.
|
|
554
|
+
CREDIT_ISSUER_UNAVAILABLE: :credit_issuer_unavailable
|
|
555
|
+
|
|
556
|
+
# The card verification value (CVV) results were negative, indicating a potential issue with the card.
|
|
557
|
+
NEGATIVE_CARD_VERIFICATION_VALUE_RESULTS: :negative_card_verification_value_results
|
|
558
|
+
|
|
559
|
+
# The issuer of the card is currently unavailable to process the transaction.
|
|
560
|
+
ISSUER_UNAVAILABLE: :issuer_unavailable
|
|
561
|
+
|
|
562
|
+
# The financial institution associated with the card could not be found.
|
|
563
|
+
FINANCIAL_INSTITUTION_CANNOT_BE_FOUND: :financial_institution_cannot_be_found
|
|
564
|
+
|
|
565
|
+
# The transaction cannot be completed due to an unspecified reason.
|
|
566
|
+
TRANSACTION_CANNOT_BE_COMPLETED: :transaction_cannot_be_completed
|
|
567
|
+
|
|
568
|
+
# The transaction is a duplicate of a previous transaction and cannot be processed again.
|
|
569
|
+
DUPLICATE_TRANSACTION: :duplicate_transaction
|
|
570
|
+
|
|
571
|
+
# A system malfunction occurred, preventing the transaction from being processed.
|
|
572
|
+
SYSTEM_MALFUNCTION: :system_malfunction
|
|
573
|
+
|
|
574
|
+
# Additional customer authentication is required to complete the transaction.
|
|
575
|
+
ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED: :additional_customer_authentication_required
|
|
576
|
+
|
|
577
|
+
# The surcharge amount applied to the transaction is not permitted by the issuer.
|
|
578
|
+
SURCHARGE_AMOUNT_NOT_PERMITTED: :surcharge_amount_not_permitted
|
|
579
|
+
|
|
580
|
+
# The transaction was declined due to a failure in verifying the CVV2 code.
|
|
581
|
+
DECLINE_FOR_CVV2_FAILURE: :decline_for_cvv2_failure
|
|
582
|
+
|
|
583
|
+
# A stop payment order has been placed on this transaction.
|
|
584
|
+
STOP_PAYMENT_ORDER: :stop_payment_order
|
|
585
|
+
|
|
586
|
+
# An order has been placed to revoke authorization for this transaction.
|
|
587
|
+
REVOCATION_OF_AUTHORIZATION_ORDER: :revocation_of_authorization_order
|
|
588
|
+
|
|
589
|
+
# An order has been placed to revoke all authorizations for this cardholder.
|
|
590
|
+
REVOCATION_OF_ALL_AUTHORIZATIONS_ORDER: :revocation_of_all_authorizations_order
|
|
591
|
+
|
|
592
|
+
def self?.values: -> ::Array[Increase::Models::CardPushTransfer::Decline::reason]
|
|
593
|
+
end
|
|
594
|
+
end
|
|
595
|
+
|
|
596
|
+
type status =
|
|
597
|
+
:pending_approval
|
|
598
|
+
| :canceled
|
|
599
|
+
| :pending_reviewing
|
|
600
|
+
| :requires_attention
|
|
601
|
+
| :pending_submission
|
|
602
|
+
| :submitted
|
|
603
|
+
| :complete
|
|
604
|
+
| :declined
|
|
605
|
+
|
|
606
|
+
module Status
|
|
607
|
+
extend Increase::Internal::Type::Enum
|
|
608
|
+
|
|
609
|
+
# The transfer is pending approval.
|
|
610
|
+
PENDING_APPROVAL: :pending_approval
|
|
611
|
+
|
|
612
|
+
# The transfer has been canceled.
|
|
613
|
+
CANCELED: :canceled
|
|
614
|
+
|
|
615
|
+
# The transfer is pending review by Increase.
|
|
616
|
+
PENDING_REVIEWING: :pending_reviewing
|
|
617
|
+
|
|
618
|
+
# The transfer requires attention from an Increase operator.
|
|
619
|
+
REQUIRES_ATTENTION: :requires_attention
|
|
620
|
+
|
|
621
|
+
# The transfer is queued to be submitted to the card network.
|
|
622
|
+
PENDING_SUBMISSION: :pending_submission
|
|
623
|
+
|
|
624
|
+
# The transfer has been submitted and is pending a response from the card network.
|
|
625
|
+
SUBMITTED: :submitted
|
|
626
|
+
|
|
627
|
+
# The transfer has been sent successfully and is complete.
|
|
628
|
+
COMPLETE: :complete
|
|
629
|
+
|
|
630
|
+
# The transfer was declined by the network or the recipient's bank.
|
|
631
|
+
DECLINED: :declined
|
|
632
|
+
|
|
633
|
+
def self?.values: -> ::Array[Increase::Models::CardPushTransfer::status]
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
type submission =
|
|
637
|
+
{
|
|
638
|
+
retrieval_reference_number: String,
|
|
639
|
+
sender_reference: String,
|
|
640
|
+
submitted_at: Time,
|
|
641
|
+
trace_number: String
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
class Submission < Increase::Internal::Type::BaseModel
|
|
645
|
+
attr_accessor retrieval_reference_number: String
|
|
646
|
+
|
|
647
|
+
attr_accessor sender_reference: String
|
|
648
|
+
|
|
649
|
+
attr_accessor submitted_at: Time
|
|
650
|
+
|
|
651
|
+
attr_accessor trace_number: String
|
|
652
|
+
|
|
653
|
+
def initialize: (
|
|
654
|
+
retrieval_reference_number: String,
|
|
655
|
+
sender_reference: String,
|
|
656
|
+
submitted_at: Time,
|
|
657
|
+
trace_number: String
|
|
658
|
+
) -> void
|
|
659
|
+
|
|
660
|
+
def to_hash: -> {
|
|
661
|
+
retrieval_reference_number: String,
|
|
662
|
+
sender_reference: String,
|
|
663
|
+
submitted_at: Time,
|
|
664
|
+
trace_number: String
|
|
665
|
+
}
|
|
666
|
+
end
|
|
667
|
+
|
|
668
|
+
type type_ = :card_push_transfer
|
|
669
|
+
|
|
670
|
+
module Type
|
|
671
|
+
extend Increase::Internal::Type::Enum
|
|
672
|
+
|
|
673
|
+
CARD_PUSH_TRANSFER: :card_push_transfer
|
|
674
|
+
|
|
675
|
+
def self?.values: -> ::Array[Increase::Models::CardPushTransfer::type_]
|
|
676
|
+
end
|
|
677
|
+
end
|
|
678
|
+
end
|
|
679
|
+
end
|