increase 1.279.0 → 1.282.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.
@@ -7,6 +7,8 @@ module Increase
7
7
  sig do
8
8
  params(
9
9
  account_id: String,
10
+ authorization_controls:
11
+ Increase::CardCreateParams::AuthorizationControls::OrHash,
10
12
  billing_address: Increase::CardCreateParams::BillingAddress::OrHash,
11
13
  description: String,
12
14
  digital_wallet: Increase::CardCreateParams::DigitalWallet::OrHash,
@@ -17,6 +19,8 @@ module Increase
17
19
  def create(
18
20
  # The Account the card should belong to.
19
21
  account_id:,
22
+ # Controls that restrict how this card can be used.
23
+ authorization_controls: nil,
20
24
  # The card's billing address.
21
25
  billing_address: nil,
22
26
  # The description you choose to give the card.
@@ -52,6 +56,8 @@ module Increase
52
56
  sig do
53
57
  params(
54
58
  card_id: String,
59
+ authorization_controls:
60
+ Increase::CardUpdateParams::AuthorizationControls::OrHash,
55
61
  billing_address: Increase::CardUpdateParams::BillingAddress::OrHash,
56
62
  description: String,
57
63
  digital_wallet: Increase::CardUpdateParams::DigitalWallet::OrHash,
@@ -63,6 +69,8 @@ module Increase
63
69
  def update(
64
70
  # The card identifier.
65
71
  card_id,
72
+ # Controls that restrict how this card can be used.
73
+ authorization_controls: nil,
66
74
  # The card's updated billing address.
67
75
  billing_address: nil,
68
76
  # The description you choose to give the card.
@@ -12,8 +12,6 @@ module Increase
12
12
  funding: Increase::Models::Account::funding,
13
13
  idempotency_key: String?,
14
14
  informational_entity_id: String?,
15
- interest_accrued: String,
16
- interest_accrued_at: Date?,
17
15
  interest_rate: String,
18
16
  loan: Increase::Account::Loan?,
19
17
  name: String,
@@ -43,10 +41,6 @@ module Increase
43
41
 
44
42
  attr_accessor informational_entity_id: String?
45
43
 
46
- attr_accessor interest_accrued: String
47
-
48
- attr_accessor interest_accrued_at: Date?
49
-
50
44
  attr_accessor interest_rate: String
51
45
 
52
46
  attr_accessor loan: Increase::Account::Loan?
@@ -70,8 +64,6 @@ module Increase
70
64
  funding: Increase::Models::Account::funding,
71
65
  idempotency_key: String?,
72
66
  informational_entity_id: String?,
73
- interest_accrued: String,
74
- interest_accrued_at: Date?,
75
67
  interest_rate: String,
76
68
  loan: Increase::Account::Loan?,
77
69
  name: String,
@@ -91,8 +83,6 @@ module Increase
91
83
  funding: Increase::Models::Account::funding,
92
84
  idempotency_key: String?,
93
85
  informational_entity_id: String?,
94
- interest_accrued: String,
95
- interest_accrued_at: Date?,
96
86
  interest_rate: String,
97
87
  loan: Increase::Account::Loan?,
98
88
  name: String,
@@ -4,6 +4,7 @@ module Increase
4
4
  {
5
5
  id: String,
6
6
  account_id: String,
7
+ authorization_controls: Increase::Card::AuthorizationControls?,
7
8
  billing_address: Increase::Card::BillingAddress,
8
9
  created_at: Time,
9
10
  description: String?,
@@ -22,6 +23,8 @@ module Increase
22
23
 
23
24
  attr_accessor account_id: String
24
25
 
26
+ attr_accessor authorization_controls: Increase::Card::AuthorizationControls?
27
+
25
28
  attr_accessor billing_address: Increase::Card::BillingAddress
26
29
 
27
30
  attr_accessor created_at: Time
@@ -47,6 +50,7 @@ module Increase
47
50
  def initialize: (
48
51
  id: String,
49
52
  account_id: String,
53
+ authorization_controls: Increase::Card::AuthorizationControls?,
50
54
  billing_address: Increase::Card::BillingAddress,
51
55
  created_at: Time,
52
56
  description: String?,
@@ -63,6 +67,7 @@ module Increase
63
67
  def to_hash: -> {
64
68
  id: String,
65
69
  account_id: String,
70
+ authorization_controls: Increase::Card::AuthorizationControls?,
66
71
  billing_address: Increase::Card::BillingAddress,
67
72
  created_at: Time,
68
73
  description: String?,
@@ -76,6 +81,240 @@ module Increase
76
81
  type: Increase::Models::Card::type_
77
82
  }
78
83
 
84
+ type authorization_controls =
85
+ {
86
+ maximum_authorization_count: Increase::Card::AuthorizationControls::MaximumAuthorizationCount?,
87
+ merchant_acceptor_identifier: Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier?,
88
+ merchant_category_code: Increase::Card::AuthorizationControls::MerchantCategoryCode?,
89
+ merchant_country: Increase::Card::AuthorizationControls::MerchantCountry?,
90
+ spending_limits: ::Array[Increase::Card::AuthorizationControls::SpendingLimit]?
91
+ }
92
+
93
+ class AuthorizationControls < Increase::Internal::Type::BaseModel
94
+ attr_accessor maximum_authorization_count: Increase::Card::AuthorizationControls::MaximumAuthorizationCount?
95
+
96
+ attr_accessor merchant_acceptor_identifier: Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier?
97
+
98
+ attr_accessor merchant_category_code: Increase::Card::AuthorizationControls::MerchantCategoryCode?
99
+
100
+ attr_accessor merchant_country: Increase::Card::AuthorizationControls::MerchantCountry?
101
+
102
+ attr_accessor spending_limits: ::Array[Increase::Card::AuthorizationControls::SpendingLimit]?
103
+
104
+ def initialize: (
105
+ maximum_authorization_count: Increase::Card::AuthorizationControls::MaximumAuthorizationCount?,
106
+ merchant_acceptor_identifier: Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier?,
107
+ merchant_category_code: Increase::Card::AuthorizationControls::MerchantCategoryCode?,
108
+ merchant_country: Increase::Card::AuthorizationControls::MerchantCountry?,
109
+ spending_limits: ::Array[Increase::Card::AuthorizationControls::SpendingLimit]?
110
+ ) -> void
111
+
112
+ def to_hash: -> {
113
+ maximum_authorization_count: Increase::Card::AuthorizationControls::MaximumAuthorizationCount?,
114
+ merchant_acceptor_identifier: Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier?,
115
+ merchant_category_code: Increase::Card::AuthorizationControls::MerchantCategoryCode?,
116
+ merchant_country: Increase::Card::AuthorizationControls::MerchantCountry?,
117
+ spending_limits: ::Array[Increase::Card::AuthorizationControls::SpendingLimit]?
118
+ }
119
+
120
+ type maximum_authorization_count = { all_time: Integer? }
121
+
122
+ class MaximumAuthorizationCount < Increase::Internal::Type::BaseModel
123
+ attr_accessor all_time: Integer?
124
+
125
+ def initialize: (all_time: Integer?) -> void
126
+
127
+ def to_hash: -> { all_time: Integer? }
128
+ end
129
+
130
+ type merchant_acceptor_identifier =
131
+ {
132
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]?,
133
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]?
134
+ }
135
+
136
+ class MerchantAcceptorIdentifier < Increase::Internal::Type::BaseModel
137
+ attr_accessor allowed: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]?
138
+
139
+ attr_accessor blocked: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]?
140
+
141
+ def initialize: (
142
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]?,
143
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]?
144
+ ) -> void
145
+
146
+ def to_hash: -> {
147
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Allowed]?,
148
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantAcceptorIdentifier::Blocked]?
149
+ }
150
+
151
+ type allowed = { identifier: String }
152
+
153
+ class Allowed < Increase::Internal::Type::BaseModel
154
+ attr_accessor identifier: String
155
+
156
+ def initialize: (identifier: String) -> void
157
+
158
+ def to_hash: -> { identifier: String }
159
+ end
160
+
161
+ type blocked = { identifier: String }
162
+
163
+ class Blocked < 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
+ end
171
+
172
+ type merchant_category_code =
173
+ {
174
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed]?,
175
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked]?
176
+ }
177
+
178
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
179
+ attr_accessor allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed]?
180
+
181
+ attr_accessor blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked]?
182
+
183
+ def initialize: (
184
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed]?,
185
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked]?
186
+ ) -> void
187
+
188
+ def to_hash: -> {
189
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Allowed]?,
190
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCategoryCode::Blocked]?
191
+ }
192
+
193
+ type allowed = { code: String }
194
+
195
+ class Allowed < Increase::Internal::Type::BaseModel
196
+ attr_accessor code: String
197
+
198
+ def initialize: (code: String) -> void
199
+
200
+ def to_hash: -> { code: String }
201
+ end
202
+
203
+ type blocked = { code: String }
204
+
205
+ class Blocked < Increase::Internal::Type::BaseModel
206
+ attr_accessor code: String
207
+
208
+ def initialize: (code: String) -> void
209
+
210
+ def to_hash: -> { code: String }
211
+ end
212
+ end
213
+
214
+ type merchant_country =
215
+ {
216
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Allowed]?,
217
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Blocked]?
218
+ }
219
+
220
+ class MerchantCountry < Increase::Internal::Type::BaseModel
221
+ attr_accessor allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Allowed]?
222
+
223
+ attr_accessor blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Blocked]?
224
+
225
+ def initialize: (
226
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Allowed]?,
227
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Blocked]?
228
+ ) -> void
229
+
230
+ def to_hash: -> {
231
+ allowed: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Allowed]?,
232
+ blocked: ::Array[Increase::Card::AuthorizationControls::MerchantCountry::Blocked]?
233
+ }
234
+
235
+ type allowed = { country: String }
236
+
237
+ class Allowed < Increase::Internal::Type::BaseModel
238
+ attr_accessor country: String
239
+
240
+ def initialize: (country: String) -> void
241
+
242
+ def to_hash: -> { country: String }
243
+ end
244
+
245
+ type blocked = { country: String }
246
+
247
+ class Blocked < Increase::Internal::Type::BaseModel
248
+ attr_accessor country: String
249
+
250
+ def initialize: (country: String) -> void
251
+
252
+ def to_hash: -> { country: String }
253
+ end
254
+ end
255
+
256
+ type spending_limit =
257
+ {
258
+ interval: Increase::Models::Card::AuthorizationControls::SpendingLimit::interval,
259
+ merchant_category_codes: ::Array[Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode]?,
260
+ settlement_amount: Integer
261
+ }
262
+
263
+ class SpendingLimit < Increase::Internal::Type::BaseModel
264
+ attr_accessor interval: Increase::Models::Card::AuthorizationControls::SpendingLimit::interval
265
+
266
+ attr_accessor merchant_category_codes: ::Array[Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode]?
267
+
268
+ attr_accessor settlement_amount: Integer
269
+
270
+ def initialize: (
271
+ interval: Increase::Models::Card::AuthorizationControls::SpendingLimit::interval,
272
+ merchant_category_codes: ::Array[Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode]?,
273
+ settlement_amount: Integer
274
+ ) -> void
275
+
276
+ def to_hash: -> {
277
+ interval: Increase::Models::Card::AuthorizationControls::SpendingLimit::interval,
278
+ merchant_category_codes: ::Array[Increase::Card::AuthorizationControls::SpendingLimit::MerchantCategoryCode]?,
279
+ settlement_amount: Integer
280
+ }
281
+
282
+ type interval =
283
+ :all_time | :per_transaction | :per_day | :per_week | :per_month
284
+
285
+ module Interval
286
+ extend Increase::Internal::Type::Enum
287
+
288
+ # The spending limit applies over the lifetime of the card.
289
+ ALL_TIME: :all_time
290
+
291
+ # The spending limit applies per transaction.
292
+ PER_TRANSACTION: :per_transaction
293
+
294
+ # The spending limit applies per day. Resets nightly at midnight UTC.
295
+ PER_DAY: :per_day
296
+
297
+ # The spending limit applies per week. Resets weekly on Mondays at midnight UTC.
298
+ PER_WEEK: :per_week
299
+
300
+ # The spending limit applies per month. Resets on the first of the month, midnight UTC.
301
+ PER_MONTH: :per_month
302
+
303
+ def self?.values: -> ::Array[Increase::Models::Card::AuthorizationControls::SpendingLimit::interval]
304
+ end
305
+
306
+ type merchant_category_code = { code: String }
307
+
308
+ class MerchantCategoryCode < Increase::Internal::Type::BaseModel
309
+ attr_accessor code: String
310
+
311
+ def initialize: (code: String) -> void
312
+
313
+ def to_hash: -> { code: String }
314
+ end
315
+ end
316
+ end
317
+
79
318
  type billing_address =
80
319
  {
81
320
  city: String?,
@@ -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,