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.
@@ -13,6 +13,12 @@ module Increase
13
13
  # @return [String]
14
14
  required :account_id, String
15
15
 
16
+ # @!attribute authorization_controls
17
+ # Controls that restrict how this card can be used.
18
+ #
19
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls, nil]
20
+ optional :authorization_controls, -> { Increase::CardCreateParams::AuthorizationControls }
21
+
16
22
  # @!attribute billing_address
17
23
  # The card's billing address.
18
24
  #
@@ -42,12 +48,14 @@ module Increase
42
48
  # @return [String, nil]
43
49
  optional :entity_id, String
44
50
 
45
- # @!method initialize(account_id:, billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil, request_options: {})
51
+ # @!method initialize(account_id:, authorization_controls: nil, billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil, request_options: {})
46
52
  # Some parameter documentations has been truncated, see
47
53
  # {Increase::Models::CardCreateParams} for more details.
48
54
  #
49
55
  # @param account_id [String] The Account the card should belong to.
50
56
  #
57
+ # @param authorization_controls [Increase::Models::CardCreateParams::AuthorizationControls] Controls that restrict how this card can be used.
58
+ #
51
59
  # @param billing_address [Increase::Models::CardCreateParams::BillingAddress] The card's billing address.
52
60
  #
53
61
  # @param description [String] The description you choose to give the card.
@@ -58,6 +66,310 @@ module Increase
58
66
  #
59
67
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
60
68
 
69
+ class AuthorizationControls < Increase::Internal::Type::BaseModel
70
+ # @!attribute maximum_authorization_count
71
+ # Limits the number of authorizations that can be approved on this card.
72
+ #
73
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount, nil]
74
+ optional :maximum_authorization_count,
75
+ -> { Increase::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount }
76
+
77
+ # @!attribute merchant_acceptor_identifier
78
+ # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
79
+ # on this card.
80
+ #
81
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier, nil]
82
+ optional :merchant_acceptor_identifier,
83
+ -> { Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier }
84
+
85
+ # @!attribute merchant_category_code
86
+ # Restricts which Merchant Category Codes are allowed or blocked for
87
+ # authorizations on this card.
88
+ #
89
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode, nil]
90
+ optional :merchant_category_code,
91
+ -> { Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode }
92
+
93
+ # @!attribute merchant_country
94
+ # Restricts which merchant countries are allowed or blocked for authorizations on
95
+ # this card.
96
+ #
97
+ # @return [Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry, nil]
98
+ optional :merchant_country, -> { Increase::CardCreateParams::AuthorizationControls::MerchantCountry }
99
+
100
+ # @!attribute spending_limits
101
+ # Spending limits for this card. The most restrictive limit is applied if multiple
102
+ # limits match.
103
+ #
104
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit>, nil]
105
+ optional :spending_limits,
106
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::SpendingLimit] }
107
+
108
+ # @!method initialize(maximum_authorization_count: nil, merchant_acceptor_identifier: nil, merchant_category_code: nil, merchant_country: nil, spending_limits: nil)
109
+ # Some parameter documentations has been truncated, see
110
+ # {Increase::Models::CardCreateParams::AuthorizationControls} for more details.
111
+ #
112
+ # Controls that restrict how this card can be used.
113
+ #
114
+ # @param maximum_authorization_count [Increase::Models::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount] Limits the number of authorizations that can be approved on this card.
115
+ #
116
+ # @param merchant_acceptor_identifier [Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier] Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
117
+ #
118
+ # @param merchant_category_code [Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode] Restricts which Merchant Category Codes are allowed or blocked for authorization
119
+ #
120
+ # @param merchant_country [Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry] Restricts which merchant countries are allowed or blocked for authorizations on
121
+ #
122
+ # @param spending_limits [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit>] Spending limits for this card. The most restrictive limit is applied if multiple
123
+
124
+ # @see Increase::Models::CardCreateParams::AuthorizationControls#maximum_authorization_count
125
+ class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
126
+ # @!attribute all_time
127
+ # The maximum number of authorizations that can be approved on this card over its
128
+ # lifetime.
129
+ #
130
+ # @return [Integer]
131
+ required :all_time, Integer
132
+
133
+ # @!method initialize(all_time:)
134
+ # Some parameter documentations has been truncated, see
135
+ # {Increase::Models::CardCreateParams::AuthorizationControls::MaximumAuthorizationCount}
136
+ # for more details.
137
+ #
138
+ # Limits the number of authorizations that can be approved on this card.
139
+ #
140
+ # @param all_time [Integer] The maximum number of authorizations that can be approved on this card over its
141
+ end
142
+
143
+ # @see Increase::Models::CardCreateParams::AuthorizationControls#merchant_acceptor_identifier
144
+ class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
145
+ # @!attribute allowed
146
+ # The Merchant Acceptor IDs that are allowed for authorizations on this card.
147
+ # Authorizations with Merchant Acceptor IDs not in this list will be declined.
148
+ #
149
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed>, nil]
150
+ optional :allowed,
151
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed] }
152
+
153
+ # @!attribute blocked
154
+ # The Merchant Acceptor IDs that are blocked for authorizations on this card.
155
+ # Authorizations with Merchant Acceptor IDs in this list will be declined.
156
+ #
157
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked>, nil]
158
+ optional :blocked,
159
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked] }
160
+
161
+ # @!method initialize(allowed: nil, blocked: nil)
162
+ # Some parameter documentations has been truncated, see
163
+ # {Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier}
164
+ # for more details.
165
+ #
166
+ # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
167
+ # on this card.
168
+ #
169
+ # @param allowed [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed>] The Merchant Acceptor IDs that are allowed for authorizations on this card. Auth
170
+ #
171
+ # @param blocked [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked>] The Merchant Acceptor IDs that are blocked for authorizations on this card. Auth
172
+
173
+ class Allowed < Increase::Internal::Type::BaseModel
174
+ # @!attribute identifier
175
+ # The Merchant Acceptor ID.
176
+ #
177
+ # @return [String]
178
+ required :identifier, String
179
+
180
+ # @!method initialize(identifier:)
181
+ # @param identifier [String] The Merchant Acceptor ID.
182
+ end
183
+
184
+ class Blocked < Increase::Internal::Type::BaseModel
185
+ # @!attribute identifier
186
+ # The Merchant Acceptor ID.
187
+ #
188
+ # @return [String]
189
+ required :identifier, String
190
+
191
+ # @!method initialize(identifier:)
192
+ # @param identifier [String] The Merchant Acceptor ID.
193
+ end
194
+ end
195
+
196
+ # @see Increase::Models::CardCreateParams::AuthorizationControls#merchant_category_code
197
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
198
+ # @!attribute allowed
199
+ # The Merchant Category Codes that are allowed for authorizations on this card.
200
+ # Authorizations with Merchant Category Codes not in this list will be declined.
201
+ #
202
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed>, nil]
203
+ optional :allowed,
204
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed] }
205
+
206
+ # @!attribute blocked
207
+ # The Merchant Category Codes that are blocked for authorizations on this card.
208
+ # Authorizations with Merchant Category Codes in this list will be declined.
209
+ #
210
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked>, nil]
211
+ optional :blocked,
212
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked] }
213
+
214
+ # @!method initialize(allowed: nil, blocked: nil)
215
+ # Some parameter documentations has been truncated, see
216
+ # {Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode}
217
+ # for more details.
218
+ #
219
+ # Restricts which Merchant Category Codes are allowed or blocked for
220
+ # authorizations on this card.
221
+ #
222
+ # @param allowed [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Allowed>] The Merchant Category Codes that are allowed for authorizations on this card. Au
223
+ #
224
+ # @param blocked [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCategoryCode::Blocked>] The Merchant Category Codes that are blocked for authorizations on this card. Au
225
+
226
+ class Allowed < Increase::Internal::Type::BaseModel
227
+ # @!attribute code
228
+ # The Merchant Category Code.
229
+ #
230
+ # @return [String]
231
+ required :code, String
232
+
233
+ # @!method initialize(code:)
234
+ # @param code [String] The Merchant Category Code.
235
+ end
236
+
237
+ class Blocked < Increase::Internal::Type::BaseModel
238
+ # @!attribute code
239
+ # The Merchant Category Code.
240
+ #
241
+ # @return [String]
242
+ required :code, String
243
+
244
+ # @!method initialize(code:)
245
+ # @param code [String] The Merchant Category Code.
246
+ end
247
+ end
248
+
249
+ # @see Increase::Models::CardCreateParams::AuthorizationControls#merchant_country
250
+ class MerchantCountry < Increase::Internal::Type::BaseModel
251
+ # @!attribute allowed
252
+ # The merchant countries that are allowed for authorizations on this card.
253
+ # Authorizations with merchant countries not in this list will be declined.
254
+ #
255
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed>, nil]
256
+ optional :allowed,
257
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed] }
258
+
259
+ # @!attribute blocked
260
+ # The merchant countries that are blocked for authorizations on this card.
261
+ # Authorizations with merchant countries in this list will be declined.
262
+ #
263
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked>, nil]
264
+ optional :blocked,
265
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked] }
266
+
267
+ # @!method initialize(allowed: nil, blocked: nil)
268
+ # Some parameter documentations has been truncated, see
269
+ # {Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry} for
270
+ # more details.
271
+ #
272
+ # Restricts which merchant countries are allowed or blocked for authorizations on
273
+ # this card.
274
+ #
275
+ # @param allowed [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry::Allowed>] The merchant countries that are allowed for authorizations on this card. Authori
276
+ #
277
+ # @param blocked [Array<Increase::Models::CardCreateParams::AuthorizationControls::MerchantCountry::Blocked>] The merchant countries that are blocked for authorizations on this card. Authori
278
+
279
+ class Allowed < Increase::Internal::Type::BaseModel
280
+ # @!attribute country
281
+ # The ISO 3166-1 alpha-2 country code.
282
+ #
283
+ # @return [String]
284
+ required :country, String
285
+
286
+ # @!method initialize(country:)
287
+ # @param country [String] The ISO 3166-1 alpha-2 country code.
288
+ end
289
+
290
+ class Blocked < Increase::Internal::Type::BaseModel
291
+ # @!attribute country
292
+ # The ISO 3166-1 alpha-2 country code.
293
+ #
294
+ # @return [String]
295
+ required :country, String
296
+
297
+ # @!method initialize(country:)
298
+ # @param country [String] The ISO 3166-1 alpha-2 country code.
299
+ end
300
+ end
301
+
302
+ class SpendingLimit < Increase::Internal::Type::BaseModel
303
+ # @!attribute interval
304
+ # The interval at which the spending limit is enforced.
305
+ #
306
+ # @return [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::Interval]
307
+ required :interval,
308
+ enum: -> { Increase::CardCreateParams::AuthorizationControls::SpendingLimit::Interval }
309
+
310
+ # @!attribute settlement_amount
311
+ # The maximum settlement amount permitted in the given interval.
312
+ #
313
+ # @return [Integer]
314
+ required :settlement_amount, Integer
315
+
316
+ # @!attribute merchant_category_codes
317
+ # The Merchant Category Codes this spending limit applies to. If not set, the
318
+ # limit applies to all transactions.
319
+ #
320
+ # @return [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>, nil]
321
+ optional :merchant_category_codes,
322
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode] }
323
+
324
+ # @!method initialize(interval:, settlement_amount:, merchant_category_codes: nil)
325
+ # Some parameter documentations has been truncated, see
326
+ # {Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit} for
327
+ # more details.
328
+ #
329
+ # @param interval [Symbol, Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::Interval] The interval at which the spending limit is enforced.
330
+ #
331
+ # @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
332
+ #
333
+ # @param merchant_category_codes [Array<Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>] The Merchant Category Codes this spending limit applies to. If not set, the limi
334
+
335
+ # The interval at which the spending limit is enforced.
336
+ #
337
+ # @see Increase::Models::CardCreateParams::AuthorizationControls::SpendingLimit#interval
338
+ module Interval
339
+ extend Increase::Internal::Type::Enum
340
+
341
+ # The spending limit applies over the lifetime of the card.
342
+ ALL_TIME = :all_time
343
+
344
+ # The spending limit applies per transaction.
345
+ PER_TRANSACTION = :per_transaction
346
+
347
+ # The spending limit applies per day. Resets nightly at midnight UTC.
348
+ PER_DAY = :per_day
349
+
350
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
351
+ PER_WEEK = :per_week
352
+
353
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
354
+ PER_MONTH = :per_month
355
+
356
+ # @!method self.values
357
+ # @return [Array<Symbol>]
358
+ end
359
+
360
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
361
+ # @!attribute code
362
+ # The Merchant Category Code.
363
+ #
364
+ # @return [String]
365
+ required :code, String
366
+
367
+ # @!method initialize(code:)
368
+ # @param code [String] The Merchant Category Code.
369
+ end
370
+ end
371
+ end
372
+
61
373
  class BillingAddress < Increase::Internal::Type::BaseModel
62
374
  # @!attribute city
63
375
  # The city of the billing address.
@@ -13,6 +13,12 @@ module Increase
13
13
  # @return [String]
14
14
  required :card_id, String
15
15
 
16
+ # @!attribute authorization_controls
17
+ # Controls that restrict how this card can be used.
18
+ #
19
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls, nil]
20
+ optional :authorization_controls, -> { Increase::CardUpdateParams::AuthorizationControls }
21
+
16
22
  # @!attribute billing_address
17
23
  # The card's updated billing address.
18
24
  #
@@ -46,12 +52,14 @@ module Increase
46
52
  # @return [Symbol, Increase::Models::CardUpdateParams::Status, nil]
47
53
  optional :status, enum: -> { Increase::CardUpdateParams::Status }
48
54
 
49
- # @!method initialize(card_id:, billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil, status: nil, request_options: {})
55
+ # @!method initialize(card_id:, authorization_controls: nil, billing_address: nil, description: nil, digital_wallet: nil, entity_id: nil, status: nil, request_options: {})
50
56
  # Some parameter documentations has been truncated, see
51
57
  # {Increase::Models::CardUpdateParams} for more details.
52
58
  #
53
59
  # @param card_id [String] The card identifier.
54
60
  #
61
+ # @param authorization_controls [Increase::Models::CardUpdateParams::AuthorizationControls] Controls that restrict how this card can be used.
62
+ #
55
63
  # @param billing_address [Increase::Models::CardUpdateParams::BillingAddress] The card's updated billing address.
56
64
  #
57
65
  # @param description [String] The description you choose to give the card.
@@ -64,6 +72,310 @@ module Increase
64
72
  #
65
73
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
66
74
 
75
+ class AuthorizationControls < Increase::Internal::Type::BaseModel
76
+ # @!attribute maximum_authorization_count
77
+ # Limits the number of authorizations that can be approved on this card.
78
+ #
79
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount, nil]
80
+ optional :maximum_authorization_count,
81
+ -> { Increase::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount }
82
+
83
+ # @!attribute merchant_acceptor_identifier
84
+ # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
85
+ # on this card.
86
+ #
87
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier, nil]
88
+ optional :merchant_acceptor_identifier,
89
+ -> { Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier }
90
+
91
+ # @!attribute merchant_category_code
92
+ # Restricts which Merchant Category Codes are allowed or blocked for
93
+ # authorizations on this card.
94
+ #
95
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode, nil]
96
+ optional :merchant_category_code,
97
+ -> { Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode }
98
+
99
+ # @!attribute merchant_country
100
+ # Restricts which merchant countries are allowed or blocked for authorizations on
101
+ # this card.
102
+ #
103
+ # @return [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry, nil]
104
+ optional :merchant_country, -> { Increase::CardUpdateParams::AuthorizationControls::MerchantCountry }
105
+
106
+ # @!attribute spending_limits
107
+ # Spending limits for this card. The most restrictive limit is applied if multiple
108
+ # limits match.
109
+ #
110
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit>, nil]
111
+ optional :spending_limits,
112
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit] }
113
+
114
+ # @!method initialize(maximum_authorization_count: nil, merchant_acceptor_identifier: nil, merchant_category_code: nil, merchant_country: nil, spending_limits: nil)
115
+ # Some parameter documentations has been truncated, see
116
+ # {Increase::Models::CardUpdateParams::AuthorizationControls} for more details.
117
+ #
118
+ # Controls that restrict how this card can be used.
119
+ #
120
+ # @param maximum_authorization_count [Increase::Models::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount] Limits the number of authorizations that can be approved on this card.
121
+ #
122
+ # @param merchant_acceptor_identifier [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier] Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
123
+ #
124
+ # @param merchant_category_code [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode] Restricts which Merchant Category Codes are allowed or blocked for authorization
125
+ #
126
+ # @param merchant_country [Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry] Restricts which merchant countries are allowed or blocked for authorizations on
127
+ #
128
+ # @param spending_limits [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit>] Spending limits for this card. The most restrictive limit is applied if multiple
129
+
130
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls#maximum_authorization_count
131
+ class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
132
+ # @!attribute all_time
133
+ # The maximum number of authorizations that can be approved on this card over its
134
+ # lifetime.
135
+ #
136
+ # @return [Integer]
137
+ required :all_time, Integer
138
+
139
+ # @!method initialize(all_time:)
140
+ # Some parameter documentations has been truncated, see
141
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::MaximumAuthorizationCount}
142
+ # for more details.
143
+ #
144
+ # Limits the number of authorizations that can be approved on this card.
145
+ #
146
+ # @param all_time [Integer] The maximum number of authorizations that can be approved on this card over its
147
+ end
148
+
149
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls#merchant_acceptor_identifier
150
+ class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
151
+ # @!attribute allowed
152
+ # The Merchant Acceptor IDs that are allowed for authorizations on this card.
153
+ # Authorizations with Merchant Acceptor IDs not in this list will be declined.
154
+ #
155
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed>, nil]
156
+ optional :allowed,
157
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed] }
158
+
159
+ # @!attribute blocked
160
+ # The Merchant Acceptor IDs that are blocked for authorizations on this card.
161
+ # Authorizations with Merchant Acceptor IDs in this list will be declined.
162
+ #
163
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked>, nil]
164
+ optional :blocked,
165
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked] }
166
+
167
+ # @!method initialize(allowed: nil, blocked: nil)
168
+ # Some parameter documentations has been truncated, see
169
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier}
170
+ # for more details.
171
+ #
172
+ # Restricts which Merchant Acceptor IDs are allowed or blocked for authorizations
173
+ # on this card.
174
+ #
175
+ # @param allowed [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Allowed>] The Merchant Acceptor IDs that are allowed for authorizations on this card. Auth
176
+ #
177
+ # @param blocked [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantAcceptorIdentifier::Blocked>] The Merchant Acceptor IDs that are blocked for authorizations on this card. Auth
178
+
179
+ class Allowed < Increase::Internal::Type::BaseModel
180
+ # @!attribute identifier
181
+ # The Merchant Acceptor ID.
182
+ #
183
+ # @return [String]
184
+ required :identifier, String
185
+
186
+ # @!method initialize(identifier:)
187
+ # @param identifier [String] The Merchant Acceptor ID.
188
+ end
189
+
190
+ class Blocked < Increase::Internal::Type::BaseModel
191
+ # @!attribute identifier
192
+ # The Merchant Acceptor ID.
193
+ #
194
+ # @return [String]
195
+ required :identifier, String
196
+
197
+ # @!method initialize(identifier:)
198
+ # @param identifier [String] The Merchant Acceptor ID.
199
+ end
200
+ end
201
+
202
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls#merchant_category_code
203
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
204
+ # @!attribute allowed
205
+ # The Merchant Category Codes that are allowed for authorizations on this card.
206
+ # Authorizations with Merchant Category Codes not in this list will be declined.
207
+ #
208
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed>, nil]
209
+ optional :allowed,
210
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed] }
211
+
212
+ # @!attribute blocked
213
+ # The Merchant Category Codes that are blocked for authorizations on this card.
214
+ # Authorizations with Merchant Category Codes in this list will be declined.
215
+ #
216
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked>, nil]
217
+ optional :blocked,
218
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked] }
219
+
220
+ # @!method initialize(allowed: nil, blocked: nil)
221
+ # Some parameter documentations has been truncated, see
222
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode}
223
+ # for more details.
224
+ #
225
+ # Restricts which Merchant Category Codes are allowed or blocked for
226
+ # authorizations on this card.
227
+ #
228
+ # @param allowed [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Allowed>] The Merchant Category Codes that are allowed for authorizations on this card. Au
229
+ #
230
+ # @param blocked [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCategoryCode::Blocked>] The Merchant Category Codes that are blocked for authorizations on this card. Au
231
+
232
+ class Allowed < Increase::Internal::Type::BaseModel
233
+ # @!attribute code
234
+ # The Merchant Category Code.
235
+ #
236
+ # @return [String]
237
+ required :code, String
238
+
239
+ # @!method initialize(code:)
240
+ # @param code [String] The Merchant Category Code.
241
+ end
242
+
243
+ class Blocked < Increase::Internal::Type::BaseModel
244
+ # @!attribute code
245
+ # The Merchant Category Code.
246
+ #
247
+ # @return [String]
248
+ required :code, String
249
+
250
+ # @!method initialize(code:)
251
+ # @param code [String] The Merchant Category Code.
252
+ end
253
+ end
254
+
255
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls#merchant_country
256
+ class MerchantCountry < Increase::Internal::Type::BaseModel
257
+ # @!attribute allowed
258
+ # The merchant countries that are allowed for authorizations on this card.
259
+ # Authorizations with merchant countries not in this list will be declined.
260
+ #
261
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed>, nil]
262
+ optional :allowed,
263
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed] }
264
+
265
+ # @!attribute blocked
266
+ # The merchant countries that are blocked for authorizations on this card.
267
+ # Authorizations with merchant countries in this list will be declined.
268
+ #
269
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked>, nil]
270
+ optional :blocked,
271
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked] }
272
+
273
+ # @!method initialize(allowed: nil, blocked: nil)
274
+ # Some parameter documentations has been truncated, see
275
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry} for
276
+ # more details.
277
+ #
278
+ # Restricts which merchant countries are allowed or blocked for authorizations on
279
+ # this card.
280
+ #
281
+ # @param allowed [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry::Allowed>] The merchant countries that are allowed for authorizations on this card. Authori
282
+ #
283
+ # @param blocked [Array<Increase::Models::CardUpdateParams::AuthorizationControls::MerchantCountry::Blocked>] The merchant countries that are blocked for authorizations on this card. Authori
284
+
285
+ class Allowed < Increase::Internal::Type::BaseModel
286
+ # @!attribute country
287
+ # The ISO 3166-1 alpha-2 country code.
288
+ #
289
+ # @return [String]
290
+ required :country, String
291
+
292
+ # @!method initialize(country:)
293
+ # @param country [String] The ISO 3166-1 alpha-2 country code.
294
+ end
295
+
296
+ class Blocked < Increase::Internal::Type::BaseModel
297
+ # @!attribute country
298
+ # The ISO 3166-1 alpha-2 country code.
299
+ #
300
+ # @return [String]
301
+ required :country, String
302
+
303
+ # @!method initialize(country:)
304
+ # @param country [String] The ISO 3166-1 alpha-2 country code.
305
+ end
306
+ end
307
+
308
+ class SpendingLimit < Increase::Internal::Type::BaseModel
309
+ # @!attribute interval
310
+ # The interval at which the spending limit is enforced.
311
+ #
312
+ # @return [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval]
313
+ required :interval,
314
+ enum: -> { Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval }
315
+
316
+ # @!attribute settlement_amount
317
+ # The maximum settlement amount permitted in the given interval.
318
+ #
319
+ # @return [Integer]
320
+ required :settlement_amount, Integer
321
+
322
+ # @!attribute merchant_category_codes
323
+ # The Merchant Category Codes this spending limit applies to. If not set, the
324
+ # limit applies to all transactions.
325
+ #
326
+ # @return [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>, nil]
327
+ optional :merchant_category_codes,
328
+ -> { Increase::Internal::Type::ArrayOf[Increase::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode] }
329
+
330
+ # @!method initialize(interval:, settlement_amount:, merchant_category_codes: nil)
331
+ # Some parameter documentations has been truncated, see
332
+ # {Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit} for
333
+ # more details.
334
+ #
335
+ # @param interval [Symbol, Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::Interval] The interval at which the spending limit is enforced.
336
+ #
337
+ # @param settlement_amount [Integer] The maximum settlement amount permitted in the given interval.
338
+ #
339
+ # @param merchant_category_codes [Array<Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit::MerchantCategoryCode>] The Merchant Category Codes this spending limit applies to. If not set, the limi
340
+
341
+ # The interval at which the spending limit is enforced.
342
+ #
343
+ # @see Increase::Models::CardUpdateParams::AuthorizationControls::SpendingLimit#interval
344
+ module Interval
345
+ extend Increase::Internal::Type::Enum
346
+
347
+ # The spending limit applies over the lifetime of the card.
348
+ ALL_TIME = :all_time
349
+
350
+ # The spending limit applies per transaction.
351
+ PER_TRANSACTION = :per_transaction
352
+
353
+ # The spending limit applies per day. Resets nightly at midnight UTC.
354
+ PER_DAY = :per_day
355
+
356
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
357
+ PER_WEEK = :per_week
358
+
359
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
360
+ PER_MONTH = :per_month
361
+
362
+ # @!method self.values
363
+ # @return [Array<Symbol>]
364
+ end
365
+
366
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
367
+ # @!attribute code
368
+ # The Merchant Category Code.
369
+ #
370
+ # @return [String]
371
+ required :code, String
372
+
373
+ # @!method initialize(code:)
374
+ # @param code [String] The Merchant Category Code.
375
+ end
376
+ end
377
+ end
378
+
67
379
  class BillingAddress < Increase::Internal::Type::BaseModel
68
380
  # @!attribute city
69
381
  # The city of the billing address.