increase 1.278.2 → 1.280.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.
@@ -3,6 +3,7 @@ module Increase
3
3
  type card_create_params =
4
4
  {
5
5
  account_id: String,
6
+ authorization_controls: Increase::CardCreateParams::AuthorizationControls,
6
7
  billing_address: Increase::CardCreateParams::BillingAddress,
7
8
  description: String,
8
9
  digital_wallet: Increase::CardCreateParams::DigitalWallet,
@@ -16,6 +17,12 @@ module Increase
16
17
 
17
18
  attr_accessor account_id: String
18
19
 
20
+ attr_reader authorization_controls: Increase::CardCreateParams::AuthorizationControls?
21
+
22
+ def authorization_controls=: (
23
+ Increase::CardCreateParams::AuthorizationControls
24
+ ) -> Increase::CardCreateParams::AuthorizationControls
25
+
19
26
  attr_reader billing_address: Increase::CardCreateParams::BillingAddress?
20
27
 
21
28
  def billing_address=: (
@@ -38,6 +45,7 @@ module Increase
38
45
 
39
46
  def initialize: (
40
47
  account_id: String,
48
+ ?authorization_controls: Increase::CardCreateParams::AuthorizationControls,
41
49
  ?billing_address: Increase::CardCreateParams::BillingAddress,
42
50
  ?description: String,
43
51
  ?digital_wallet: Increase::CardCreateParams::DigitalWallet,
@@ -47,6 +55,7 @@ module Increase
47
55
 
48
56
  def to_hash: -> {
49
57
  account_id: String,
58
+ authorization_controls: Increase::CardCreateParams::AuthorizationControls,
50
59
  billing_address: Increase::CardCreateParams::BillingAddress,
51
60
  description: String,
52
61
  digital_wallet: Increase::CardCreateParams::DigitalWallet,
@@ -54,6 +63,288 @@ module Increase
54
63
  request_options: Increase::RequestOptions
55
64
  }
56
65
 
66
+ type authorization_controls =
67
+ {
68
+ maximum_authorization_count: Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount,
69
+ merchant_acceptor_identifier: Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier,
70
+ merchant_category_code: Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode,
71
+ merchant_country: Increase::CardCreateParams::AuthorizationControls::MerchantCountry,
72
+ spending_limits: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit]
73
+ }
74
+
75
+ class AuthorizationControls < Increase::Internal::Type::BaseModel
76
+ attr_reader maximum_authorization_count: Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount?
77
+
78
+ def maximum_authorization_count=: (
79
+ Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount
80
+ ) -> Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount
81
+
82
+ attr_reader merchant_acceptor_identifier: Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier?
83
+
84
+ def merchant_acceptor_identifier=: (
85
+ Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier
86
+ ) -> Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier
87
+
88
+ attr_reader merchant_category_code: Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode?
89
+
90
+ def merchant_category_code=: (
91
+ Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode
92
+ ) -> Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode
93
+
94
+ attr_reader merchant_country: Increase::CardCreateParams::AuthorizationControls::MerchantCountry?
95
+
96
+ def merchant_country=: (
97
+ Increase::CardCreateParams::AuthorizationControls::MerchantCountry
98
+ ) -> Increase::CardCreateParams::AuthorizationControls::MerchantCountry
99
+
100
+ attr_reader spending_limits: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit]?
101
+
102
+ def spending_limits=: (
103
+ ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit]
104
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit]
105
+
106
+ def initialize: (
107
+ ?maximum_authorization_count: Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount,
108
+ ?merchant_acceptor_identifier: Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier,
109
+ ?merchant_category_code: Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode,
110
+ ?merchant_country: Increase::CardCreateParams::AuthorizationControls::MerchantCountry,
111
+ ?spending_limits: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit]
112
+ ) -> void
113
+
114
+ def to_hash: -> {
115
+ maximum_authorization_count: Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount,
116
+ merchant_acceptor_identifier: Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier,
117
+ merchant_category_code: Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode,
118
+ merchant_country: Increase::CardCreateParams::AuthorizationControls::MerchantCountry,
119
+ spending_limits: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit]
120
+ }
121
+
122
+ type maximum_authorization_count = { all_time: Integer }
123
+
124
+ class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
125
+ attr_accessor all_time: Integer
126
+
127
+ def initialize: (all_time: Integer) -> void
128
+
129
+ def to_hash: -> { all_time: Integer }
130
+ end
131
+
132
+ type merchant_acceptor_identifier =
133
+ {
134
+ allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
135
+ blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
136
+ }
137
+
138
+ class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
139
+ attr_reader allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]?
140
+
141
+ def allowed=: (
142
+ ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]
143
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]
144
+
145
+ attr_reader blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]?
146
+
147
+ def blocked=: (
148
+ ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
149
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
150
+
151
+ def initialize: (
152
+ ?allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
153
+ ?blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
154
+ ) -> void
155
+
156
+ def to_hash: -> {
157
+ allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
158
+ blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
159
+ }
160
+
161
+ type allowed = { identifier: String }
162
+
163
+ class Allowed < Increase::Internal::Type::BaseModel
164
+ attr_accessor identifier: String
165
+
166
+ def initialize: (identifier: String) -> void
167
+
168
+ def to_hash: -> { identifier: String }
169
+ end
170
+
171
+ type blocked = { identifier: String }
172
+
173
+ class Blocked < Increase::Internal::Type::BaseModel
174
+ attr_accessor identifier: String
175
+
176
+ def initialize: (identifier: String) -> void
177
+
178
+ def to_hash: -> { identifier: String }
179
+ end
180
+ end
181
+
182
+ type merchant_category_code =
183
+ {
184
+ allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
185
+ blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
186
+ }
187
+
188
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
189
+ attr_reader allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed]?
190
+
191
+ def allowed=: (
192
+ ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed]
193
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed]
194
+
195
+ attr_reader blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked]?
196
+
197
+ def blocked=: (
198
+ ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
199
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
200
+
201
+ def initialize: (
202
+ ?allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
203
+ ?blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
204
+ ) -> void
205
+
206
+ def to_hash: -> {
207
+ allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
208
+ blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
209
+ }
210
+
211
+ type allowed = { code: String }
212
+
213
+ class Allowed < Increase::Internal::Type::BaseModel
214
+ attr_accessor code: String
215
+
216
+ def initialize: (code: String) -> void
217
+
218
+ def to_hash: -> { code: String }
219
+ end
220
+
221
+ type blocked = { code: String }
222
+
223
+ class Blocked < Increase::Internal::Type::BaseModel
224
+ attr_accessor code: String
225
+
226
+ def initialize: (code: String) -> void
227
+
228
+ def to_hash: -> { code: String }
229
+ end
230
+ end
231
+
232
+ type merchant_country =
233
+ {
234
+ allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed],
235
+ blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked]
236
+ }
237
+
238
+ class MerchantCountry < Increase::Internal::Type::BaseModel
239
+ attr_reader allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed]?
240
+
241
+ def allowed=: (
242
+ ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed]
243
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed]
244
+
245
+ attr_reader blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked]?
246
+
247
+ def blocked=: (
248
+ ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked]
249
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked]
250
+
251
+ def initialize: (
252
+ ?allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed],
253
+ ?blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked]
254
+ ) -> void
255
+
256
+ def to_hash: -> {
257
+ allowed: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed],
258
+ blocked: ::Array[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked]
259
+ }
260
+
261
+ type allowed = { country: String }
262
+
263
+ class Allowed < Increase::Internal::Type::BaseModel
264
+ attr_accessor country: String
265
+
266
+ def initialize: (country: String) -> void
267
+
268
+ def to_hash: -> { country: String }
269
+ end
270
+
271
+ type blocked = { country: String }
272
+
273
+ class Blocked < Increase::Internal::Type::BaseModel
274
+ attr_accessor country: String
275
+
276
+ def initialize: (country: String) -> void
277
+
278
+ def to_hash: -> { country: String }
279
+ end
280
+ end
281
+
282
+ type spending_limit =
283
+ {
284
+ interval: Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::interval,
285
+ settlement_amount: Integer,
286
+ merchant_category_codes: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
287
+ }
288
+
289
+ class SpendingLimit < Increase::Internal::Type::BaseModel
290
+ attr_accessor interval: Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::interval
291
+
292
+ attr_accessor settlement_amount: Integer
293
+
294
+ attr_reader merchant_category_codes: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]?
295
+
296
+ def merchant_category_codes=: (
297
+ ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
298
+ ) -> ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
299
+
300
+ def initialize: (
301
+ interval: Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::interval,
302
+ settlement_amount: Integer,
303
+ ?merchant_category_codes: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
304
+ ) -> void
305
+
306
+ def to_hash: -> {
307
+ interval: Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::interval,
308
+ settlement_amount: Integer,
309
+ merchant_category_codes: ::Array[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
310
+ }
311
+
312
+ type interval =
313
+ :all_time | :per_transaction | :per_day | :per_week | :per_month
314
+
315
+ module Interval
316
+ extend Increase::Internal::Type::Enum
317
+
318
+ # The spending limit applies over the lifetime of the card.
319
+ ALL_TIME: :all_time
320
+
321
+ # The spending limit applies per transaction.
322
+ PER_TRANSACTION: :per_transaction
323
+
324
+ # The spending limit applies per day. Resets nightly at midnight UTC.
325
+ PER_DAY: :per_day
326
+
327
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
328
+ PER_WEEK: :per_week
329
+
330
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
331
+ PER_MONTH: :per_month
332
+
333
+ def self?.values: -> ::Array[Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::interval]
334
+ end
335
+
336
+ type merchant_category_code = { code: String }
337
+
338
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
339
+ attr_accessor code: String
340
+
341
+ def initialize: (code: String) -> void
342
+
343
+ def to_hash: -> { code: String }
344
+ end
345
+ end
346
+ end
347
+
57
348
  type billing_address =
58
349
  {
59
350
  city: String,
@@ -3,6 +3,7 @@ module Increase
3
3
  type card_update_params =
4
4
  {
5
5
  card_id: String,
6
+ authorization_controls: Increase::CardUpdateParams::AuthorizationControls,
6
7
  billing_address: Increase::CardUpdateParams::BillingAddress,
7
8
  description: String,
8
9
  digital_wallet: Increase::CardUpdateParams::DigitalWallet,
@@ -17,6 +18,12 @@ module Increase
17
18
 
18
19
  attr_accessor card_id: String
19
20
 
21
+ attr_reader authorization_controls: Increase::CardUpdateParams::AuthorizationControls?
22
+
23
+ def authorization_controls=: (
24
+ Increase::CardUpdateParams::AuthorizationControls
25
+ ) -> Increase::CardUpdateParams::AuthorizationControls
26
+
20
27
  attr_reader billing_address: Increase::CardUpdateParams::BillingAddress?
21
28
 
22
29
  def billing_address=: (
@@ -45,6 +52,7 @@ module Increase
45
52
 
46
53
  def initialize: (
47
54
  card_id: String,
55
+ ?authorization_controls: Increase::CardUpdateParams::AuthorizationControls,
48
56
  ?billing_address: Increase::CardUpdateParams::BillingAddress,
49
57
  ?description: String,
50
58
  ?digital_wallet: Increase::CardUpdateParams::DigitalWallet,
@@ -55,6 +63,7 @@ module Increase
55
63
 
56
64
  def to_hash: -> {
57
65
  card_id: String,
66
+ authorization_controls: Increase::CardUpdateParams::AuthorizationControls,
58
67
  billing_address: Increase::CardUpdateParams::BillingAddress,
59
68
  description: String,
60
69
  digital_wallet: Increase::CardUpdateParams::DigitalWallet,
@@ -63,6 +72,288 @@ module Increase
63
72
  request_options: Increase::RequestOptions
64
73
  }
65
74
 
75
+ type authorization_controls =
76
+ {
77
+ maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount,
78
+ merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier,
79
+ merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode,
80
+ merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry,
81
+ spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
82
+ }
83
+
84
+ class AuthorizationControls < Increase::Internal::Type::BaseModel
85
+ attr_reader maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount?
86
+
87
+ def maximum_authorization_count=: (
88
+ Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount
89
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount
90
+
91
+ attr_reader merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier?
92
+
93
+ def merchant_acceptor_identifier=: (
94
+ Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier
95
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier
96
+
97
+ attr_reader merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode?
98
+
99
+ def merchant_category_code=: (
100
+ Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode
101
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode
102
+
103
+ attr_reader merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry?
104
+
105
+ def merchant_country=: (
106
+ Increase::CardUpdateParams::AuthorizationControls::MerchantCountry
107
+ ) -> Increase::CardUpdateParams::AuthorizationControls::MerchantCountry
108
+
109
+ attr_reader spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]?
110
+
111
+ def spending_limits=: (
112
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
113
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
114
+
115
+ def initialize: (
116
+ ?maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount,
117
+ ?merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier,
118
+ ?merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode,
119
+ ?merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry,
120
+ ?spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
121
+ ) -> void
122
+
123
+ def to_hash: -> {
124
+ maximum_authorization_count: Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount,
125
+ merchant_acceptor_identifier: Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier,
126
+ merchant_category_code: Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode,
127
+ merchant_country: Increase::CardUpdateParams::AuthorizationControls::MerchantCountry,
128
+ spending_limits: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit]
129
+ }
130
+
131
+ type maximum_authorization_count = { all_time: Integer }
132
+
133
+ class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
134
+ attr_accessor all_time: Integer
135
+
136
+ def initialize: (all_time: Integer) -> void
137
+
138
+ def to_hash: -> { all_time: Integer }
139
+ end
140
+
141
+ type merchant_acceptor_identifier =
142
+ {
143
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
144
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
145
+ }
146
+
147
+ class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
148
+ attr_reader allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]?
149
+
150
+ def allowed=: (
151
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]
152
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]
153
+
154
+ attr_reader blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]?
155
+
156
+ def blocked=: (
157
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
158
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
159
+
160
+ def initialize: (
161
+ ?allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
162
+ ?blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
163
+ ) -> void
164
+
165
+ def to_hash: -> {
166
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed],
167
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]
168
+ }
169
+
170
+ type allowed = { identifier: String }
171
+
172
+ class Allowed < Increase::Internal::Type::BaseModel
173
+ attr_accessor identifier: String
174
+
175
+ def initialize: (identifier: String) -> void
176
+
177
+ def to_hash: -> { identifier: String }
178
+ end
179
+
180
+ type blocked = { identifier: String }
181
+
182
+ class Blocked < Increase::Internal::Type::BaseModel
183
+ attr_accessor identifier: String
184
+
185
+ def initialize: (identifier: String) -> void
186
+
187
+ def to_hash: -> { identifier: String }
188
+ end
189
+ end
190
+
191
+ type merchant_category_code =
192
+ {
193
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
194
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
195
+ }
196
+
197
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
198
+ attr_reader allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed]?
199
+
200
+ def allowed=: (
201
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed]
202
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed]
203
+
204
+ attr_reader blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]?
205
+
206
+ def blocked=: (
207
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
208
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
209
+
210
+ def initialize: (
211
+ ?allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
212
+ ?blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
213
+ ) -> void
214
+
215
+ def to_hash: -> {
216
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed],
217
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked]
218
+ }
219
+
220
+ type allowed = { code: String }
221
+
222
+ class Allowed < Increase::Internal::Type::BaseModel
223
+ attr_accessor code: String
224
+
225
+ def initialize: (code: String) -> void
226
+
227
+ def to_hash: -> { code: String }
228
+ end
229
+
230
+ type blocked = { code: String }
231
+
232
+ class Blocked < Increase::Internal::Type::BaseModel
233
+ attr_accessor code: String
234
+
235
+ def initialize: (code: String) -> void
236
+
237
+ def to_hash: -> { code: String }
238
+ end
239
+ end
240
+
241
+ type merchant_country =
242
+ {
243
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed],
244
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
245
+ }
246
+
247
+ class MerchantCountry < Increase::Internal::Type::BaseModel
248
+ attr_reader allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed]?
249
+
250
+ def allowed=: (
251
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed]
252
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed]
253
+
254
+ attr_reader blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]?
255
+
256
+ def blocked=: (
257
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
258
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
259
+
260
+ def initialize: (
261
+ ?allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed],
262
+ ?blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
263
+ ) -> void
264
+
265
+ def to_hash: -> {
266
+ allowed: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed],
267
+ blocked: ::Array[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked]
268
+ }
269
+
270
+ type allowed = { country: String }
271
+
272
+ class Allowed < Increase::Internal::Type::BaseModel
273
+ attr_accessor country: String
274
+
275
+ def initialize: (country: String) -> void
276
+
277
+ def to_hash: -> { country: String }
278
+ end
279
+
280
+ type blocked = { country: String }
281
+
282
+ class Blocked < Increase::Internal::Type::BaseModel
283
+ attr_accessor country: String
284
+
285
+ def initialize: (country: String) -> void
286
+
287
+ def to_hash: -> { country: String }
288
+ end
289
+ end
290
+
291
+ type spending_limit =
292
+ {
293
+ interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval,
294
+ settlement_amount: Integer,
295
+ merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
296
+ }
297
+
298
+ class SpendingLimit < Increase::Internal::Type::BaseModel
299
+ attr_accessor interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval
300
+
301
+ attr_accessor settlement_amount: Integer
302
+
303
+ attr_reader merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]?
304
+
305
+ def merchant_category_codes=: (
306
+ ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
307
+ ) -> ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
308
+
309
+ def initialize: (
310
+ interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval,
311
+ settlement_amount: Integer,
312
+ ?merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
313
+ ) -> void
314
+
315
+ def to_hash: -> {
316
+ interval: Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval,
317
+ settlement_amount: Integer,
318
+ merchant_category_codes: ::Array[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode]
319
+ }
320
+
321
+ type interval =
322
+ :all_time | :per_transaction | :per_day | :per_week | :per_month
323
+
324
+ module Interval
325
+ extend Increase::Internal::Type::Enum
326
+
327
+ # The spending limit applies over the lifetime of the card.
328
+ ALL_TIME: :all_time
329
+
330
+ # The spending limit applies per transaction.
331
+ PER_TRANSACTION: :per_transaction
332
+
333
+ # The spending limit applies per day. Resets nightly at midnight UTC.
334
+ PER_DAY: :per_day
335
+
336
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
337
+ PER_WEEK: :per_week
338
+
339
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
340
+ PER_MONTH: :per_month
341
+
342
+ def self?.values: -> ::Array[Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::interval]
343
+ end
344
+
345
+ type merchant_category_code = { code: String }
346
+
347
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
348
+ attr_accessor code: String
349
+
350
+ def initialize: (code: String) -> void
351
+
352
+ def to_hash: -> { code: String }
353
+ end
354
+ end
355
+ end
356
+
66
357
  type billing_address =
67
358
  {
68
359
  city: String,