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
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardPushTransferApproveParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::CardPushTransferApproveParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(request_options: Increase::RequestOptions::OrHash).returns(
|
|
19
|
+
T.attached_class
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def self.new(request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardPushTransferCancelParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::CardPushTransferCancelParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
sig do
|
|
18
|
+
params(request_options: Increase::RequestOptions::OrHash).returns(
|
|
19
|
+
T.attached_class
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
def self.new(request_options: {})
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
sig { override.returns({ request_options: Increase::RequestOptions }) }
|
|
26
|
+
def to_hash
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardPushTransferCreateParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::CardPushTransferCreateParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# The transfer amount in USD cents. For Card Push transfers, must be positive.
|
|
18
|
+
sig { returns(Integer) }
|
|
19
|
+
attr_accessor :amount
|
|
20
|
+
|
|
21
|
+
# The Business Application Identifier describes the type of transaction being
|
|
22
|
+
# performed. Your program must be approved for the specified Business Application
|
|
23
|
+
# Identifier in order to use it.
|
|
24
|
+
sig do
|
|
25
|
+
returns(
|
|
26
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::OrSymbol
|
|
27
|
+
)
|
|
28
|
+
end
|
|
29
|
+
attr_accessor :business_application_identifier
|
|
30
|
+
|
|
31
|
+
# The Increase identifier for the Card Token that represents the card number
|
|
32
|
+
# you're pushing funds to.
|
|
33
|
+
sig { returns(String) }
|
|
34
|
+
attr_accessor :card_token_id
|
|
35
|
+
|
|
36
|
+
# The merchant category code (MCC) of the merchant (generally your business)
|
|
37
|
+
# sending the transfer. This is a four-digit code that describes the type of
|
|
38
|
+
# business or service provided by the merchant. Your program must be approved for
|
|
39
|
+
# the specified MCC in order to use it.
|
|
40
|
+
sig { returns(String) }
|
|
41
|
+
attr_accessor :merchant_category_code
|
|
42
|
+
|
|
43
|
+
# The city name of the merchant (generally your business) sending the transfer.
|
|
44
|
+
sig { returns(String) }
|
|
45
|
+
attr_accessor :merchant_city_name
|
|
46
|
+
|
|
47
|
+
# The merchant name shows up as the statement descriptor for the transfer. This is
|
|
48
|
+
# typically the name of your business or organization.
|
|
49
|
+
sig { returns(String) }
|
|
50
|
+
attr_accessor :merchant_name
|
|
51
|
+
|
|
52
|
+
# For certain Business Application Identifiers, the statement descriptor is
|
|
53
|
+
# `merchant_name_prefix*sender_name`, where the `merchant_name_prefix` is a one to
|
|
54
|
+
# four character prefix that identifies the merchant.
|
|
55
|
+
sig { returns(String) }
|
|
56
|
+
attr_accessor :merchant_name_prefix
|
|
57
|
+
|
|
58
|
+
# The postal code of the merchant (generally your business) sending the transfer.
|
|
59
|
+
sig { returns(String) }
|
|
60
|
+
attr_accessor :merchant_postal_code
|
|
61
|
+
|
|
62
|
+
# The state of the merchant (generally your business) sending the transfer.
|
|
63
|
+
sig { returns(String) }
|
|
64
|
+
attr_accessor :merchant_state
|
|
65
|
+
|
|
66
|
+
# The name of the funds recipient.
|
|
67
|
+
sig { returns(String) }
|
|
68
|
+
attr_accessor :recipient_name
|
|
69
|
+
|
|
70
|
+
# The city of the sender.
|
|
71
|
+
sig { returns(String) }
|
|
72
|
+
attr_accessor :sender_address_city
|
|
73
|
+
|
|
74
|
+
# The address line 1 of the sender.
|
|
75
|
+
sig { returns(String) }
|
|
76
|
+
attr_accessor :sender_address_line1
|
|
77
|
+
|
|
78
|
+
# The postal code of the sender.
|
|
79
|
+
sig { returns(String) }
|
|
80
|
+
attr_accessor :sender_address_postal_code
|
|
81
|
+
|
|
82
|
+
# The state of the sender.
|
|
83
|
+
sig { returns(String) }
|
|
84
|
+
attr_accessor :sender_address_state
|
|
85
|
+
|
|
86
|
+
# The name of the funds originator.
|
|
87
|
+
sig { returns(String) }
|
|
88
|
+
attr_accessor :sender_name
|
|
89
|
+
|
|
90
|
+
# The identifier of the Account Number from which to send the transfer.
|
|
91
|
+
sig { returns(String) }
|
|
92
|
+
attr_accessor :source_account_number_id
|
|
93
|
+
|
|
94
|
+
# Whether the transfer requires explicit approval via the dashboard or API.
|
|
95
|
+
sig { returns(T.nilable(T::Boolean)) }
|
|
96
|
+
attr_reader :require_approval
|
|
97
|
+
|
|
98
|
+
sig { params(require_approval: T::Boolean).void }
|
|
99
|
+
attr_writer :require_approval
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
params(
|
|
103
|
+
amount: Integer,
|
|
104
|
+
business_application_identifier:
|
|
105
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::OrSymbol,
|
|
106
|
+
card_token_id: String,
|
|
107
|
+
merchant_category_code: String,
|
|
108
|
+
merchant_city_name: String,
|
|
109
|
+
merchant_name: String,
|
|
110
|
+
merchant_name_prefix: String,
|
|
111
|
+
merchant_postal_code: String,
|
|
112
|
+
merchant_state: String,
|
|
113
|
+
recipient_name: String,
|
|
114
|
+
sender_address_city: String,
|
|
115
|
+
sender_address_line1: String,
|
|
116
|
+
sender_address_postal_code: String,
|
|
117
|
+
sender_address_state: String,
|
|
118
|
+
sender_name: String,
|
|
119
|
+
source_account_number_id: String,
|
|
120
|
+
require_approval: T::Boolean,
|
|
121
|
+
request_options: Increase::RequestOptions::OrHash
|
|
122
|
+
).returns(T.attached_class)
|
|
123
|
+
end
|
|
124
|
+
def self.new(
|
|
125
|
+
# The transfer amount in USD cents. For Card Push transfers, must be positive.
|
|
126
|
+
amount:,
|
|
127
|
+
# The Business Application Identifier describes the type of transaction being
|
|
128
|
+
# performed. Your program must be approved for the specified Business Application
|
|
129
|
+
# Identifier in order to use it.
|
|
130
|
+
business_application_identifier:,
|
|
131
|
+
# The Increase identifier for the Card Token that represents the card number
|
|
132
|
+
# you're pushing funds to.
|
|
133
|
+
card_token_id:,
|
|
134
|
+
# The merchant category code (MCC) of the merchant (generally your business)
|
|
135
|
+
# sending the transfer. This is a four-digit code that describes the type of
|
|
136
|
+
# business or service provided by the merchant. Your program must be approved for
|
|
137
|
+
# the specified MCC in order to use it.
|
|
138
|
+
merchant_category_code:,
|
|
139
|
+
# The city name of the merchant (generally your business) sending the transfer.
|
|
140
|
+
merchant_city_name:,
|
|
141
|
+
# The merchant name shows up as the statement descriptor for the transfer. This is
|
|
142
|
+
# typically the name of your business or organization.
|
|
143
|
+
merchant_name:,
|
|
144
|
+
# For certain Business Application Identifiers, the statement descriptor is
|
|
145
|
+
# `merchant_name_prefix*sender_name`, where the `merchant_name_prefix` is a one to
|
|
146
|
+
# four character prefix that identifies the merchant.
|
|
147
|
+
merchant_name_prefix:,
|
|
148
|
+
# The postal code of the merchant (generally your business) sending the transfer.
|
|
149
|
+
merchant_postal_code:,
|
|
150
|
+
# The state of the merchant (generally your business) sending the transfer.
|
|
151
|
+
merchant_state:,
|
|
152
|
+
# The name of the funds recipient.
|
|
153
|
+
recipient_name:,
|
|
154
|
+
# The city of the sender.
|
|
155
|
+
sender_address_city:,
|
|
156
|
+
# The address line 1 of the sender.
|
|
157
|
+
sender_address_line1:,
|
|
158
|
+
# The postal code of the sender.
|
|
159
|
+
sender_address_postal_code:,
|
|
160
|
+
# The state of the sender.
|
|
161
|
+
sender_address_state:,
|
|
162
|
+
# The name of the funds originator.
|
|
163
|
+
sender_name:,
|
|
164
|
+
# The identifier of the Account Number from which to send the transfer.
|
|
165
|
+
source_account_number_id:,
|
|
166
|
+
# Whether the transfer requires explicit approval via the dashboard or API.
|
|
167
|
+
require_approval: nil,
|
|
168
|
+
request_options: {}
|
|
169
|
+
)
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
sig do
|
|
173
|
+
override.returns(
|
|
174
|
+
{
|
|
175
|
+
amount: Integer,
|
|
176
|
+
business_application_identifier:
|
|
177
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::OrSymbol,
|
|
178
|
+
card_token_id: String,
|
|
179
|
+
merchant_category_code: String,
|
|
180
|
+
merchant_city_name: String,
|
|
181
|
+
merchant_name: String,
|
|
182
|
+
merchant_name_prefix: String,
|
|
183
|
+
merchant_postal_code: String,
|
|
184
|
+
merchant_state: String,
|
|
185
|
+
recipient_name: String,
|
|
186
|
+
sender_address_city: String,
|
|
187
|
+
sender_address_line1: String,
|
|
188
|
+
sender_address_postal_code: String,
|
|
189
|
+
sender_address_state: String,
|
|
190
|
+
sender_name: String,
|
|
191
|
+
source_account_number_id: String,
|
|
192
|
+
require_approval: T::Boolean,
|
|
193
|
+
request_options: Increase::RequestOptions
|
|
194
|
+
}
|
|
195
|
+
)
|
|
196
|
+
end
|
|
197
|
+
def to_hash
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# The Business Application Identifier describes the type of transaction being
|
|
201
|
+
# performed. Your program must be approved for the specified Business Application
|
|
202
|
+
# Identifier in order to use it.
|
|
203
|
+
module BusinessApplicationIdentifier
|
|
204
|
+
extend Increase::Internal::Type::Enum
|
|
205
|
+
|
|
206
|
+
TaggedSymbol =
|
|
207
|
+
T.type_alias do
|
|
208
|
+
T.all(
|
|
209
|
+
Symbol,
|
|
210
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier
|
|
211
|
+
)
|
|
212
|
+
end
|
|
213
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
214
|
+
|
|
215
|
+
# Account to Account
|
|
216
|
+
ACCOUNT_TO_ACCOUNT =
|
|
217
|
+
T.let(
|
|
218
|
+
:account_to_account,
|
|
219
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
220
|
+
)
|
|
221
|
+
|
|
222
|
+
# Business to Business
|
|
223
|
+
BUSINESS_TO_BUSINESS =
|
|
224
|
+
T.let(
|
|
225
|
+
:business_to_business,
|
|
226
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
# Money Transfer Bank Initiated
|
|
230
|
+
MONEY_TRANSFER_BANK_INITIATED =
|
|
231
|
+
T.let(
|
|
232
|
+
:money_transfer_bank_initiated,
|
|
233
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
234
|
+
)
|
|
235
|
+
|
|
236
|
+
# Non-Card Bill Payment
|
|
237
|
+
NON_CARD_BILL_PAYMENT =
|
|
238
|
+
T.let(
|
|
239
|
+
:non_card_bill_payment,
|
|
240
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
241
|
+
)
|
|
242
|
+
|
|
243
|
+
# Consumer Bill Payment
|
|
244
|
+
CONSUMER_BILL_PAYMENT =
|
|
245
|
+
T.let(
|
|
246
|
+
:consumer_bill_payment,
|
|
247
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
# Card Bill Payment
|
|
251
|
+
CARD_BILL_PAYMENT =
|
|
252
|
+
T.let(
|
|
253
|
+
:card_bill_payment,
|
|
254
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
255
|
+
)
|
|
256
|
+
|
|
257
|
+
# Funds Disbursement
|
|
258
|
+
FUNDS_DISBURSEMENT =
|
|
259
|
+
T.let(
|
|
260
|
+
:funds_disbursement,
|
|
261
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
# Funds Transfer
|
|
265
|
+
FUNDS_TRANSFER =
|
|
266
|
+
T.let(
|
|
267
|
+
:funds_transfer,
|
|
268
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
# Loyalty and Offers
|
|
272
|
+
LOYALTY_AND_OFFERS =
|
|
273
|
+
T.let(
|
|
274
|
+
:loyalty_and_offers,
|
|
275
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
276
|
+
)
|
|
277
|
+
|
|
278
|
+
# Merchant Disbursement
|
|
279
|
+
MERCHANT_DISBURSEMENT =
|
|
280
|
+
T.let(
|
|
281
|
+
:merchant_disbursement,
|
|
282
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
# Merchant Payment
|
|
286
|
+
MERCHANT_PAYMENT =
|
|
287
|
+
T.let(
|
|
288
|
+
:merchant_payment,
|
|
289
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
290
|
+
)
|
|
291
|
+
|
|
292
|
+
# Person to Person
|
|
293
|
+
PERSON_TO_PERSON =
|
|
294
|
+
T.let(
|
|
295
|
+
:person_to_person,
|
|
296
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
# Top Up
|
|
300
|
+
TOP_UP =
|
|
301
|
+
T.let(
|
|
302
|
+
:top_up,
|
|
303
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
304
|
+
)
|
|
305
|
+
|
|
306
|
+
# Wallet Transfer
|
|
307
|
+
WALLET_TRANSFER =
|
|
308
|
+
T.let(
|
|
309
|
+
:wallet_transfer,
|
|
310
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
311
|
+
)
|
|
312
|
+
|
|
313
|
+
sig do
|
|
314
|
+
override.returns(
|
|
315
|
+
T::Array[
|
|
316
|
+
Increase::CardPushTransferCreateParams::BusinessApplicationIdentifier::TaggedSymbol
|
|
317
|
+
]
|
|
318
|
+
)
|
|
319
|
+
end
|
|
320
|
+
def self.values
|
|
321
|
+
end
|
|
322
|
+
end
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Increase
|
|
4
|
+
module Models
|
|
5
|
+
class CardPushTransferListParams < Increase::Internal::Type::BaseModel
|
|
6
|
+
extend Increase::Internal::Type::RequestParameters::Converter
|
|
7
|
+
include Increase::Internal::Type::RequestParameters
|
|
8
|
+
|
|
9
|
+
OrHash =
|
|
10
|
+
T.type_alias do
|
|
11
|
+
T.any(
|
|
12
|
+
Increase::CardPushTransferListParams,
|
|
13
|
+
Increase::Internal::AnyHash
|
|
14
|
+
)
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# Filter Card Push Transfers to ones belonging to the specified Account.
|
|
18
|
+
sig { returns(T.nilable(String)) }
|
|
19
|
+
attr_reader :account_id
|
|
20
|
+
|
|
21
|
+
sig { params(account_id: String).void }
|
|
22
|
+
attr_writer :account_id
|
|
23
|
+
|
|
24
|
+
sig do
|
|
25
|
+
returns(T.nilable(Increase::CardPushTransferListParams::CreatedAt))
|
|
26
|
+
end
|
|
27
|
+
attr_reader :created_at
|
|
28
|
+
|
|
29
|
+
sig do
|
|
30
|
+
params(
|
|
31
|
+
created_at: Increase::CardPushTransferListParams::CreatedAt::OrHash
|
|
32
|
+
).void
|
|
33
|
+
end
|
|
34
|
+
attr_writer :created_at
|
|
35
|
+
|
|
36
|
+
# Return the page of entries after this one.
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_reader :cursor
|
|
39
|
+
|
|
40
|
+
sig { params(cursor: String).void }
|
|
41
|
+
attr_writer :cursor
|
|
42
|
+
|
|
43
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
44
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
45
|
+
# request is only processed once. Learn more about
|
|
46
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
47
|
+
sig { returns(T.nilable(String)) }
|
|
48
|
+
attr_reader :idempotency_key
|
|
49
|
+
|
|
50
|
+
sig { params(idempotency_key: String).void }
|
|
51
|
+
attr_writer :idempotency_key
|
|
52
|
+
|
|
53
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
54
|
+
# objects.
|
|
55
|
+
sig { returns(T.nilable(Integer)) }
|
|
56
|
+
attr_reader :limit
|
|
57
|
+
|
|
58
|
+
sig { params(limit: Integer).void }
|
|
59
|
+
attr_writer :limit
|
|
60
|
+
|
|
61
|
+
sig { returns(T.nilable(Increase::CardPushTransferListParams::Status)) }
|
|
62
|
+
attr_reader :status
|
|
63
|
+
|
|
64
|
+
sig do
|
|
65
|
+
params(
|
|
66
|
+
status: Increase::CardPushTransferListParams::Status::OrHash
|
|
67
|
+
).void
|
|
68
|
+
end
|
|
69
|
+
attr_writer :status
|
|
70
|
+
|
|
71
|
+
sig do
|
|
72
|
+
params(
|
|
73
|
+
account_id: String,
|
|
74
|
+
created_at: Increase::CardPushTransferListParams::CreatedAt::OrHash,
|
|
75
|
+
cursor: String,
|
|
76
|
+
idempotency_key: String,
|
|
77
|
+
limit: Integer,
|
|
78
|
+
status: Increase::CardPushTransferListParams::Status::OrHash,
|
|
79
|
+
request_options: Increase::RequestOptions::OrHash
|
|
80
|
+
).returns(T.attached_class)
|
|
81
|
+
end
|
|
82
|
+
def self.new(
|
|
83
|
+
# Filter Card Push Transfers to ones belonging to the specified Account.
|
|
84
|
+
account_id: nil,
|
|
85
|
+
created_at: nil,
|
|
86
|
+
# Return the page of entries after this one.
|
|
87
|
+
cursor: nil,
|
|
88
|
+
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
89
|
+
# that object. This value is unique across Increase and is used to ensure that a
|
|
90
|
+
# request is only processed once. Learn more about
|
|
91
|
+
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
92
|
+
idempotency_key: nil,
|
|
93
|
+
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
94
|
+
# objects.
|
|
95
|
+
limit: nil,
|
|
96
|
+
status: nil,
|
|
97
|
+
request_options: {}
|
|
98
|
+
)
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
sig do
|
|
102
|
+
override.returns(
|
|
103
|
+
{
|
|
104
|
+
account_id: String,
|
|
105
|
+
created_at: Increase::CardPushTransferListParams::CreatedAt,
|
|
106
|
+
cursor: String,
|
|
107
|
+
idempotency_key: String,
|
|
108
|
+
limit: Integer,
|
|
109
|
+
status: Increase::CardPushTransferListParams::Status,
|
|
110
|
+
request_options: Increase::RequestOptions
|
|
111
|
+
}
|
|
112
|
+
)
|
|
113
|
+
end
|
|
114
|
+
def to_hash
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
class CreatedAt < Increase::Internal::Type::BaseModel
|
|
118
|
+
OrHash =
|
|
119
|
+
T.type_alias do
|
|
120
|
+
T.any(
|
|
121
|
+
Increase::CardPushTransferListParams::CreatedAt,
|
|
122
|
+
Increase::Internal::AnyHash
|
|
123
|
+
)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
127
|
+
# timestamp.
|
|
128
|
+
sig { returns(T.nilable(Time)) }
|
|
129
|
+
attr_reader :after
|
|
130
|
+
|
|
131
|
+
sig { params(after: Time).void }
|
|
132
|
+
attr_writer :after
|
|
133
|
+
|
|
134
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
135
|
+
# timestamp.
|
|
136
|
+
sig { returns(T.nilable(Time)) }
|
|
137
|
+
attr_reader :before
|
|
138
|
+
|
|
139
|
+
sig { params(before: Time).void }
|
|
140
|
+
attr_writer :before
|
|
141
|
+
|
|
142
|
+
# Return results on or after this
|
|
143
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
144
|
+
sig { returns(T.nilable(Time)) }
|
|
145
|
+
attr_reader :on_or_after
|
|
146
|
+
|
|
147
|
+
sig { params(on_or_after: Time).void }
|
|
148
|
+
attr_writer :on_or_after
|
|
149
|
+
|
|
150
|
+
# Return results on or before this
|
|
151
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
152
|
+
sig { returns(T.nilable(Time)) }
|
|
153
|
+
attr_reader :on_or_before
|
|
154
|
+
|
|
155
|
+
sig { params(on_or_before: Time).void }
|
|
156
|
+
attr_writer :on_or_before
|
|
157
|
+
|
|
158
|
+
sig do
|
|
159
|
+
params(
|
|
160
|
+
after: Time,
|
|
161
|
+
before: Time,
|
|
162
|
+
on_or_after: Time,
|
|
163
|
+
on_or_before: Time
|
|
164
|
+
).returns(T.attached_class)
|
|
165
|
+
end
|
|
166
|
+
def self.new(
|
|
167
|
+
# Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
168
|
+
# timestamp.
|
|
169
|
+
after: nil,
|
|
170
|
+
# Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
|
|
171
|
+
# timestamp.
|
|
172
|
+
before: nil,
|
|
173
|
+
# Return results on or after this
|
|
174
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
175
|
+
on_or_after: nil,
|
|
176
|
+
# Return results on or before this
|
|
177
|
+
# [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp.
|
|
178
|
+
on_or_before: nil
|
|
179
|
+
)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
sig do
|
|
183
|
+
override.returns(
|
|
184
|
+
{ after: Time, before: Time, on_or_after: Time, on_or_before: Time }
|
|
185
|
+
)
|
|
186
|
+
end
|
|
187
|
+
def to_hash
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
class Status < Increase::Internal::Type::BaseModel
|
|
192
|
+
OrHash =
|
|
193
|
+
T.type_alias do
|
|
194
|
+
T.any(
|
|
195
|
+
Increase::CardPushTransferListParams::Status,
|
|
196
|
+
Increase::Internal::AnyHash
|
|
197
|
+
)
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Filter Card Push Transfers by status. For GET requests, this should be encoded
|
|
201
|
+
# as a comma-delimited string, such as `?in=one,two,three`.
|
|
202
|
+
sig do
|
|
203
|
+
returns(
|
|
204
|
+
T.nilable(
|
|
205
|
+
T::Array[
|
|
206
|
+
Increase::CardPushTransferListParams::Status::In::OrSymbol
|
|
207
|
+
]
|
|
208
|
+
)
|
|
209
|
+
)
|
|
210
|
+
end
|
|
211
|
+
attr_reader :in_
|
|
212
|
+
|
|
213
|
+
sig do
|
|
214
|
+
params(
|
|
215
|
+
in_:
|
|
216
|
+
T::Array[
|
|
217
|
+
Increase::CardPushTransferListParams::Status::In::OrSymbol
|
|
218
|
+
]
|
|
219
|
+
).void
|
|
220
|
+
end
|
|
221
|
+
attr_writer :in_
|
|
222
|
+
|
|
223
|
+
sig do
|
|
224
|
+
params(
|
|
225
|
+
in_:
|
|
226
|
+
T::Array[
|
|
227
|
+
Increase::CardPushTransferListParams::Status::In::OrSymbol
|
|
228
|
+
]
|
|
229
|
+
).returns(T.attached_class)
|
|
230
|
+
end
|
|
231
|
+
def self.new(
|
|
232
|
+
# Filter Card Push Transfers by status. For GET requests, this should be encoded
|
|
233
|
+
# as a comma-delimited string, such as `?in=one,two,three`.
|
|
234
|
+
in_: nil
|
|
235
|
+
)
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
sig do
|
|
239
|
+
override.returns(
|
|
240
|
+
{
|
|
241
|
+
in_:
|
|
242
|
+
T::Array[
|
|
243
|
+
Increase::CardPushTransferListParams::Status::In::OrSymbol
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
)
|
|
247
|
+
end
|
|
248
|
+
def to_hash
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
module In
|
|
252
|
+
extend Increase::Internal::Type::Enum
|
|
253
|
+
|
|
254
|
+
TaggedSymbol =
|
|
255
|
+
T.type_alias do
|
|
256
|
+
T.all(Symbol, Increase::CardPushTransferListParams::Status::In)
|
|
257
|
+
end
|
|
258
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
259
|
+
|
|
260
|
+
# The transfer is pending approval.
|
|
261
|
+
PENDING_APPROVAL =
|
|
262
|
+
T.let(
|
|
263
|
+
:pending_approval,
|
|
264
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
265
|
+
)
|
|
266
|
+
|
|
267
|
+
# The transfer has been canceled.
|
|
268
|
+
CANCELED =
|
|
269
|
+
T.let(
|
|
270
|
+
:canceled,
|
|
271
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
272
|
+
)
|
|
273
|
+
|
|
274
|
+
# The transfer is pending review by Increase.
|
|
275
|
+
PENDING_REVIEWING =
|
|
276
|
+
T.let(
|
|
277
|
+
:pending_reviewing,
|
|
278
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
279
|
+
)
|
|
280
|
+
|
|
281
|
+
# The transfer requires attention from an Increase operator.
|
|
282
|
+
REQUIRES_ATTENTION =
|
|
283
|
+
T.let(
|
|
284
|
+
:requires_attention,
|
|
285
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
286
|
+
)
|
|
287
|
+
|
|
288
|
+
# The transfer is queued to be submitted to the card network.
|
|
289
|
+
PENDING_SUBMISSION =
|
|
290
|
+
T.let(
|
|
291
|
+
:pending_submission,
|
|
292
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
293
|
+
)
|
|
294
|
+
|
|
295
|
+
# The transfer has been submitted and is pending a response from the card network.
|
|
296
|
+
SUBMITTED =
|
|
297
|
+
T.let(
|
|
298
|
+
:submitted,
|
|
299
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
300
|
+
)
|
|
301
|
+
|
|
302
|
+
# The transfer has been sent successfully and is complete.
|
|
303
|
+
COMPLETE =
|
|
304
|
+
T.let(
|
|
305
|
+
:complete,
|
|
306
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
307
|
+
)
|
|
308
|
+
|
|
309
|
+
# The transfer was declined by the network or the recipient's bank.
|
|
310
|
+
DECLINED =
|
|
311
|
+
T.let(
|
|
312
|
+
:declined,
|
|
313
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
314
|
+
)
|
|
315
|
+
|
|
316
|
+
sig do
|
|
317
|
+
override.returns(
|
|
318
|
+
T::Array[
|
|
319
|
+
Increase::CardPushTransferListParams::Status::In::TaggedSymbol
|
|
320
|
+
]
|
|
321
|
+
)
|
|
322
|
+
end
|
|
323
|
+
def self.values
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
end
|
|
329
|
+
end
|