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.
@@ -10,14 +10,6 @@ module Increase
10
10
  sig { returns(String) }
11
11
  attr_accessor :id
12
12
 
13
- # If the Group is allowed to create ACH debits.
14
- sig { returns(Increase::Group::ACHDebitStatus::TaggedSymbol) }
15
- attr_accessor :ach_debit_status
16
-
17
- # If the Group is activated or not.
18
- sig { returns(Increase::Group::ActivationStatus::TaggedSymbol) }
19
- attr_accessor :activation_status
20
-
21
13
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
22
14
  # was created.
23
15
  sig { returns(Time) }
@@ -35,8 +27,6 @@ module Increase
35
27
  sig do
36
28
  params(
37
29
  id: String,
38
- ach_debit_status: Increase::Group::ACHDebitStatus::OrSymbol,
39
- activation_status: Increase::Group::ActivationStatus::OrSymbol,
40
30
  created_at: Time,
41
31
  type: Increase::Group::Type::OrSymbol
42
32
  ).returns(T.attached_class)
@@ -44,10 +34,6 @@ module Increase
44
34
  def self.new(
45
35
  # The Group identifier.
46
36
  id:,
47
- # If the Group is allowed to create ACH debits.
48
- ach_debit_status:,
49
- # If the Group is activated or not.
50
- activation_status:,
51
37
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Group
52
38
  # was created.
53
39
  created_at:,
@@ -61,8 +47,6 @@ module Increase
61
47
  override.returns(
62
48
  {
63
49
  id: String,
64
- ach_debit_status: Increase::Group::ACHDebitStatus::TaggedSymbol,
65
- activation_status: Increase::Group::ActivationStatus::TaggedSymbol,
66
50
  created_at: Time,
67
51
  type: Increase::Group::Type::TaggedSymbol
68
52
  }
@@ -71,55 +55,6 @@ module Increase
71
55
  def to_hash
72
56
  end
73
57
 
74
- # If the Group is allowed to create ACH debits.
75
- module ACHDebitStatus
76
- extend Increase::Internal::Type::Enum
77
-
78
- TaggedSymbol =
79
- T.type_alias { T.all(Symbol, Increase::Group::ACHDebitStatus) }
80
- OrSymbol = T.type_alias { T.any(Symbol, String) }
81
-
82
- # The Group cannot make ACH debits.
83
- DISABLED =
84
- T.let(:disabled, Increase::Group::ACHDebitStatus::TaggedSymbol)
85
-
86
- # The Group can make ACH debits.
87
- ENABLED = T.let(:enabled, Increase::Group::ACHDebitStatus::TaggedSymbol)
88
-
89
- sig do
90
- override.returns(
91
- T::Array[Increase::Group::ACHDebitStatus::TaggedSymbol]
92
- )
93
- end
94
- def self.values
95
- end
96
- end
97
-
98
- # If the Group is activated or not.
99
- module ActivationStatus
100
- extend Increase::Internal::Type::Enum
101
-
102
- TaggedSymbol =
103
- T.type_alias { T.all(Symbol, Increase::Group::ActivationStatus) }
104
- OrSymbol = T.type_alias { T.any(Symbol, String) }
105
-
106
- # The Group is not activated.
107
- UNACTIVATED =
108
- T.let(:unactivated, Increase::Group::ActivationStatus::TaggedSymbol)
109
-
110
- # The Group is activated.
111
- ACTIVATED =
112
- T.let(:activated, Increase::Group::ActivationStatus::TaggedSymbol)
113
-
114
- sig do
115
- override.returns(
116
- T::Array[Increase::Group::ActivationStatus::TaggedSymbol]
117
- )
118
- end
119
- def self.values
120
- end
121
- end
122
-
123
58
  # A constant representing the object's type. For this resource it will always be
124
59
  # `group`.
125
60
  module Type
@@ -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.
@@ -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?,