increase 1.237.0 → 1.239.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +16 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +4 -0
  5. data/lib/increase/models/beneficial_owner_list_params.rb +54 -0
  6. data/lib/increase/models/beneficial_owner_retrieve_params.rb +22 -0
  7. data/lib/increase/models/card_payment.rb +139 -90
  8. data/lib/increase/models/entity.rb +3 -207
  9. data/lib/increase/models/entity_beneficial_owner.rb +238 -0
  10. data/lib/increase/models/real_time_decision.rb +138 -86
  11. data/lib/increase/models.rb +6 -0
  12. data/lib/increase/resources/beneficial_owners.rb +67 -0
  13. data/lib/increase/version.rb +1 -1
  14. data/lib/increase.rb +4 -0
  15. data/rbi/increase/client.rbi +3 -0
  16. data/rbi/increase/models/beneficial_owner_list_params.rbi +89 -0
  17. data/rbi/increase/models/beneficial_owner_retrieve_params.rbi +46 -0
  18. data/rbi/increase/models/card_payment.rbi +316 -165
  19. data/rbi/increase/models/entity.rbi +3 -403
  20. data/rbi/increase/models/entity_beneficial_owner.rbi +412 -0
  21. data/rbi/increase/models/real_time_decision.rbi +316 -165
  22. data/rbi/increase/models.rbi +7 -0
  23. data/rbi/increase/resources/beneficial_owners.rbi +54 -0
  24. data/sig/increase/client.rbs +2 -0
  25. data/sig/increase/models/beneficial_owner_list_params.rbs +47 -0
  26. data/sig/increase/models/beneficial_owner_retrieve_params.rbs +24 -0
  27. data/sig/increase/models/card_payment.rbs +115 -67
  28. data/sig/increase/models/entity.rbs +4 -174
  29. data/sig/increase/models/entity_beneficial_owner.rbs +193 -0
  30. data/sig/increase/models/real_time_decision.rbs +114 -67
  31. data/sig/increase/models.rbs +6 -0
  32. data/sig/increase/resources/beneficial_owners.rbs +20 -0
  33. metadata +14 -2
@@ -276,16 +276,6 @@ module Increase
276
276
  sig { returns(T.nilable(String)) }
277
277
  attr_accessor :cardholder_name
278
278
 
279
- # The category of the card authentication attempt.
280
- sig do
281
- returns(
282
- T.nilable(
283
- Increase::RealTimeDecision::CardAuthentication::Category::TaggedSymbol
284
- )
285
- )
286
- end
287
- attr_accessor :category
288
-
289
279
  # Whether or not the authentication attempt was approved.
290
280
  sig do
291
281
  returns(
@@ -333,25 +323,27 @@ module Increase
333
323
  sig { returns(T.nilable(String)) }
334
324
  attr_accessor :merchant_name
335
325
 
326
+ # The message category of the card authentication attempt.
327
+ sig do
328
+ returns(
329
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory
330
+ )
331
+ end
332
+ attr_reader :message_category
333
+
334
+ sig do
335
+ params(
336
+ message_category:
337
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::OrHash
338
+ ).void
339
+ end
340
+ attr_writer :message_category
341
+
336
342
  # The ID of a prior Card Authentication that the requestor used to authenticate
337
343
  # this cardholder for a previous transaction.
338
344
  sig { returns(T.nilable(String)) }
339
345
  attr_accessor :prior_authenticated_card_payment_id
340
346
 
341
- # The purchase amount in minor units.
342
- sig { returns(T.nilable(Integer)) }
343
- attr_accessor :purchase_amount
344
-
345
- # The purchase amount in the cardholder's currency (i.e., USD) estimated using
346
- # daily conversion rates from the card network.
347
- sig { returns(T.nilable(Integer)) }
348
- attr_accessor :purchase_amount_cardholder_estimated
349
-
350
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
351
- # authentication attempt's purchase currency.
352
- sig { returns(T.nilable(String)) }
353
- attr_accessor :purchase_currency
354
-
355
347
  # The 3DS requestor authentication indicator describes why the authentication
356
348
  # attempt is performed, such as for a recurring transaction.
357
349
  sig do
@@ -414,16 +406,6 @@ module Increase
414
406
  sig { returns(String) }
415
407
  attr_accessor :three_d_secure_server_transaction_id
416
408
 
417
- # The type of transaction being authenticated.
418
- sig do
419
- returns(
420
- T.nilable(
421
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
422
- )
423
- )
424
- end
425
- attr_accessor :transaction_type
426
-
427
409
  # The identifier of the Card Payment this authentication attempt will belong to.
428
410
  # Available in the API once the card authentication has completed.
429
411
  sig { returns(String) }
@@ -444,10 +426,6 @@ module Increase
444
426
  card_id: String,
445
427
  cardholder_email: T.nilable(String),
446
428
  cardholder_name: T.nilable(String),
447
- category:
448
- T.nilable(
449
- Increase::RealTimeDecision::CardAuthentication::Category::OrSymbol
450
- ),
451
429
  decision:
452
430
  T.nilable(
453
431
  Increase::RealTimeDecision::CardAuthentication::Decision::OrSymbol
@@ -459,10 +437,9 @@ module Increase
459
437
  merchant_category_code: T.nilable(String),
460
438
  merchant_country: T.nilable(String),
461
439
  merchant_name: T.nilable(String),
440
+ message_category:
441
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::OrHash,
462
442
  prior_authenticated_card_payment_id: T.nilable(String),
463
- purchase_amount: T.nilable(Integer),
464
- purchase_amount_cardholder_estimated: T.nilable(Integer),
465
- purchase_currency: T.nilable(String),
466
443
  requestor_authentication_indicator:
467
444
  T.nilable(
468
445
  Increase::RealTimeDecision::CardAuthentication::RequestorAuthenticationIndicator::OrSymbol
@@ -481,10 +458,6 @@ module Increase
481
458
  shipping_address_postal_code: T.nilable(String),
482
459
  shipping_address_state: T.nilable(String),
483
460
  three_d_secure_server_transaction_id: String,
484
- transaction_type:
485
- T.nilable(
486
- Increase::RealTimeDecision::CardAuthentication::TransactionType::OrSymbol
487
- ),
488
461
  upcoming_card_payment_id: String
489
462
  ).returns(T.attached_class)
490
463
  end
@@ -521,8 +494,6 @@ module Increase
521
494
  cardholder_email:,
522
495
  # The name of the cardholder.
523
496
  cardholder_name:,
524
- # The category of the card authentication attempt.
525
- category:,
526
497
  # Whether or not the authentication attempt was approved.
527
498
  decision:,
528
499
  # The device channel of the card authentication attempt.
@@ -540,17 +511,11 @@ module Increase
540
511
  merchant_country:,
541
512
  # The name of the merchant.
542
513
  merchant_name:,
514
+ # The message category of the card authentication attempt.
515
+ message_category:,
543
516
  # The ID of a prior Card Authentication that the requestor used to authenticate
544
517
  # this cardholder for a previous transaction.
545
518
  prior_authenticated_card_payment_id:,
546
- # The purchase amount in minor units.
547
- purchase_amount:,
548
- # The purchase amount in the cardholder's currency (i.e., USD) estimated using
549
- # daily conversion rates from the card network.
550
- purchase_amount_cardholder_estimated:,
551
- # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
552
- # authentication attempt's purchase currency.
553
- purchase_currency:,
554
519
  # The 3DS requestor authentication indicator describes why the authentication
555
520
  # attempt is performed, such as for a recurring transaction.
556
521
  requestor_authentication_indicator:,
@@ -577,8 +542,6 @@ module Increase
577
542
  # A unique identifier assigned by the 3DS Server initiating the authentication
578
543
  # attempt for this transaction.
579
544
  three_d_secure_server_transaction_id:,
580
- # The type of transaction being authenticated.
581
- transaction_type:,
582
545
  # The identifier of the Card Payment this authentication attempt will belong to.
583
546
  # Available in the API once the card authentication has completed.
584
547
  upcoming_card_payment_id:
@@ -600,10 +563,6 @@ module Increase
600
563
  card_id: String,
601
564
  cardholder_email: T.nilable(String),
602
565
  cardholder_name: T.nilable(String),
603
- category:
604
- T.nilable(
605
- Increase::RealTimeDecision::CardAuthentication::Category::TaggedSymbol
606
- ),
607
566
  decision:
608
567
  T.nilable(
609
568
  Increase::RealTimeDecision::CardAuthentication::Decision::TaggedSymbol
@@ -615,10 +574,9 @@ module Increase
615
574
  merchant_category_code: T.nilable(String),
616
575
  merchant_country: T.nilable(String),
617
576
  merchant_name: T.nilable(String),
577
+ message_category:
578
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory,
618
579
  prior_authenticated_card_payment_id: T.nilable(String),
619
- purchase_amount: T.nilable(Integer),
620
- purchase_amount_cardholder_estimated: T.nilable(Integer),
621
- purchase_currency: T.nilable(String),
622
580
  requestor_authentication_indicator:
623
581
  T.nilable(
624
582
  Increase::RealTimeDecision::CardAuthentication::RequestorAuthenticationIndicator::TaggedSymbol
@@ -637,10 +595,6 @@ module Increase
637
595
  shipping_address_postal_code: T.nilable(String),
638
596
  shipping_address_state: T.nilable(String),
639
597
  three_d_secure_server_transaction_id: String,
640
- transaction_type:
641
- T.nilable(
642
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
643
- ),
644
598
  upcoming_card_payment_id: String
645
599
  }
646
600
  )
@@ -648,44 +602,6 @@ module Increase
648
602
  def to_hash
649
603
  end
650
604
 
651
- # The category of the card authentication attempt.
652
- module Category
653
- extend Increase::Internal::Type::Enum
654
-
655
- TaggedSymbol =
656
- T.type_alias do
657
- T.all(
658
- Symbol,
659
- Increase::RealTimeDecision::CardAuthentication::Category
660
- )
661
- end
662
- OrSymbol = T.type_alias { T.any(Symbol, String) }
663
-
664
- # The authentication attempt is for a payment.
665
- PAYMENT_AUTHENTICATION =
666
- T.let(
667
- :payment_authentication,
668
- Increase::RealTimeDecision::CardAuthentication::Category::TaggedSymbol
669
- )
670
-
671
- # The authentication attempt is not for a payment.
672
- NON_PAYMENT_AUTHENTICATION =
673
- T.let(
674
- :non_payment_authentication,
675
- Increase::RealTimeDecision::CardAuthentication::Category::TaggedSymbol
676
- )
677
-
678
- sig do
679
- override.returns(
680
- T::Array[
681
- Increase::RealTimeDecision::CardAuthentication::Category::TaggedSymbol
682
- ]
683
- )
684
- end
685
- def self.values
686
- end
687
- end
688
-
689
605
  # Whether or not the authentication attempt was approved.
690
606
  module Decision
691
607
  extend Increase::Internal::Type::Enum
@@ -1195,6 +1111,300 @@ module Increase
1195
1111
  end
1196
1112
  end
1197
1113
 
1114
+ class MessageCategory < Increase::Internal::Type::BaseModel
1115
+ OrHash =
1116
+ T.type_alias do
1117
+ T.any(
1118
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory,
1119
+ Increase::Internal::AnyHash
1120
+ )
1121
+ end
1122
+
1123
+ # The category of the card authentication attempt.
1124
+ sig do
1125
+ returns(
1126
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category::TaggedSymbol
1127
+ )
1128
+ end
1129
+ attr_accessor :category
1130
+
1131
+ # Fields specific to non-payment authentication attempts.
1132
+ sig do
1133
+ returns(
1134
+ T.nilable(
1135
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment
1136
+ )
1137
+ )
1138
+ end
1139
+ attr_reader :non_payment
1140
+
1141
+ sig do
1142
+ params(
1143
+ non_payment:
1144
+ T.nilable(
1145
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment::OrHash
1146
+ )
1147
+ ).void
1148
+ end
1149
+ attr_writer :non_payment
1150
+
1151
+ # Fields specific to payment authentication attempts.
1152
+ sig do
1153
+ returns(
1154
+ T.nilable(
1155
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment
1156
+ )
1157
+ )
1158
+ end
1159
+ attr_reader :payment
1160
+
1161
+ sig do
1162
+ params(
1163
+ payment:
1164
+ T.nilable(
1165
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::OrHash
1166
+ )
1167
+ ).void
1168
+ end
1169
+ attr_writer :payment
1170
+
1171
+ # The message category of the card authentication attempt.
1172
+ sig do
1173
+ params(
1174
+ category:
1175
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category::OrSymbol,
1176
+ non_payment:
1177
+ T.nilable(
1178
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment::OrHash
1179
+ ),
1180
+ payment:
1181
+ T.nilable(
1182
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::OrHash
1183
+ )
1184
+ ).returns(T.attached_class)
1185
+ end
1186
+ def self.new(
1187
+ # The category of the card authentication attempt.
1188
+ category:,
1189
+ # Fields specific to non-payment authentication attempts.
1190
+ non_payment:,
1191
+ # Fields specific to payment authentication attempts.
1192
+ payment:
1193
+ )
1194
+ end
1195
+
1196
+ sig do
1197
+ override.returns(
1198
+ {
1199
+ category:
1200
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category::TaggedSymbol,
1201
+ non_payment:
1202
+ T.nilable(
1203
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment
1204
+ ),
1205
+ payment:
1206
+ T.nilable(
1207
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment
1208
+ )
1209
+ }
1210
+ )
1211
+ end
1212
+ def to_hash
1213
+ end
1214
+
1215
+ # The category of the card authentication attempt.
1216
+ module Category
1217
+ extend Increase::Internal::Type::Enum
1218
+
1219
+ TaggedSymbol =
1220
+ T.type_alias do
1221
+ T.all(
1222
+ Symbol,
1223
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category
1224
+ )
1225
+ end
1226
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1227
+
1228
+ # The authentication attempt is for a payment.
1229
+ PAYMENT_AUTHENTICATION =
1230
+ T.let(
1231
+ :payment_authentication,
1232
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category::TaggedSymbol
1233
+ )
1234
+
1235
+ # The authentication attempt is not for a payment.
1236
+ NON_PAYMENT_AUTHENTICATION =
1237
+ T.let(
1238
+ :non_payment_authentication,
1239
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category::TaggedSymbol
1240
+ )
1241
+
1242
+ sig do
1243
+ override.returns(
1244
+ T::Array[
1245
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Category::TaggedSymbol
1246
+ ]
1247
+ )
1248
+ end
1249
+ def self.values
1250
+ end
1251
+ end
1252
+
1253
+ class NonPayment < Increase::Internal::Type::BaseModel
1254
+ OrHash =
1255
+ T.type_alias do
1256
+ T.any(
1257
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::NonPayment,
1258
+ Increase::Internal::AnyHash
1259
+ )
1260
+ end
1261
+
1262
+ # Fields specific to non-payment authentication attempts.
1263
+ sig { returns(T.attached_class) }
1264
+ def self.new
1265
+ end
1266
+
1267
+ sig { override.returns({}) }
1268
+ def to_hash
1269
+ end
1270
+ end
1271
+
1272
+ class Payment < Increase::Internal::Type::BaseModel
1273
+ OrHash =
1274
+ T.type_alias do
1275
+ T.any(
1276
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment,
1277
+ Increase::Internal::AnyHash
1278
+ )
1279
+ end
1280
+
1281
+ # The purchase amount in minor units.
1282
+ sig { returns(Integer) }
1283
+ attr_accessor :purchase_amount
1284
+
1285
+ # The purchase amount in the cardholder's currency (i.e., USD) estimated using
1286
+ # daily conversion rates from the card network.
1287
+ sig { returns(T.nilable(Integer)) }
1288
+ attr_accessor :purchase_amount_cardholder_estimated
1289
+
1290
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1291
+ # authentication attempt's purchase currency.
1292
+ sig { returns(String) }
1293
+ attr_accessor :purchase_currency
1294
+
1295
+ # The type of transaction being authenticated.
1296
+ sig do
1297
+ returns(
1298
+ T.nilable(
1299
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1300
+ )
1301
+ )
1302
+ end
1303
+ attr_accessor :transaction_type
1304
+
1305
+ # Fields specific to payment authentication attempts.
1306
+ sig do
1307
+ params(
1308
+ purchase_amount: Integer,
1309
+ purchase_amount_cardholder_estimated: T.nilable(Integer),
1310
+ purchase_currency: String,
1311
+ transaction_type:
1312
+ T.nilable(
1313
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::OrSymbol
1314
+ )
1315
+ ).returns(T.attached_class)
1316
+ end
1317
+ def self.new(
1318
+ # The purchase amount in minor units.
1319
+ purchase_amount:,
1320
+ # The purchase amount in the cardholder's currency (i.e., USD) estimated using
1321
+ # daily conversion rates from the card network.
1322
+ purchase_amount_cardholder_estimated:,
1323
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
1324
+ # authentication attempt's purchase currency.
1325
+ purchase_currency:,
1326
+ # The type of transaction being authenticated.
1327
+ transaction_type:
1328
+ )
1329
+ end
1330
+
1331
+ sig do
1332
+ override.returns(
1333
+ {
1334
+ purchase_amount: Integer,
1335
+ purchase_amount_cardholder_estimated: T.nilable(Integer),
1336
+ purchase_currency: String,
1337
+ transaction_type:
1338
+ T.nilable(
1339
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1340
+ )
1341
+ }
1342
+ )
1343
+ end
1344
+ def to_hash
1345
+ end
1346
+
1347
+ # The type of transaction being authenticated.
1348
+ module TransactionType
1349
+ extend Increase::Internal::Type::Enum
1350
+
1351
+ TaggedSymbol =
1352
+ T.type_alias do
1353
+ T.all(
1354
+ Symbol,
1355
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType
1356
+ )
1357
+ end
1358
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1359
+
1360
+ # Purchase of goods or services.
1361
+ GOODS_SERVICE_PURCHASE =
1362
+ T.let(
1363
+ :goods_service_purchase,
1364
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1365
+ )
1366
+
1367
+ # Check acceptance.
1368
+ CHECK_ACCEPTANCE =
1369
+ T.let(
1370
+ :check_acceptance,
1371
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1372
+ )
1373
+
1374
+ # Account funding.
1375
+ ACCOUNT_FUNDING =
1376
+ T.let(
1377
+ :account_funding,
1378
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1379
+ )
1380
+
1381
+ # Quasi-cash transaction.
1382
+ QUASI_CASH_TRANSACTION =
1383
+ T.let(
1384
+ :quasi_cash_transaction,
1385
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1386
+ )
1387
+
1388
+ # Prepaid activation and load.
1389
+ PREPAID_ACTIVATION_AND_LOAD =
1390
+ T.let(
1391
+ :prepaid_activation_and_load,
1392
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1393
+ )
1394
+
1395
+ sig do
1396
+ override.returns(
1397
+ T::Array[
1398
+ Increase::RealTimeDecision::CardAuthentication::MessageCategory::Payment::TransactionType::TaggedSymbol
1399
+ ]
1400
+ )
1401
+ end
1402
+ def self.values
1403
+ end
1404
+ end
1405
+ end
1406
+ end
1407
+
1198
1408
  # The 3DS requestor authentication indicator describes why the authentication
1199
1409
  # attempt is performed, such as for a recurring transaction.
1200
1410
  module RequestorAuthenticationIndicator
@@ -1355,65 +1565,6 @@ module Increase
1355
1565
  def self.values
1356
1566
  end
1357
1567
  end
1358
-
1359
- # The type of transaction being authenticated.
1360
- module TransactionType
1361
- extend Increase::Internal::Type::Enum
1362
-
1363
- TaggedSymbol =
1364
- T.type_alias do
1365
- T.all(
1366
- Symbol,
1367
- Increase::RealTimeDecision::CardAuthentication::TransactionType
1368
- )
1369
- end
1370
- OrSymbol = T.type_alias { T.any(Symbol, String) }
1371
-
1372
- # Purchase of goods or services.
1373
- GOODS_SERVICE_PURCHASE =
1374
- T.let(
1375
- :goods_service_purchase,
1376
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
1377
- )
1378
-
1379
- # Check acceptance.
1380
- CHECK_ACCEPTANCE =
1381
- T.let(
1382
- :check_acceptance,
1383
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
1384
- )
1385
-
1386
- # Account funding.
1387
- ACCOUNT_FUNDING =
1388
- T.let(
1389
- :account_funding,
1390
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
1391
- )
1392
-
1393
- # Quasi-cash transaction.
1394
- QUASI_CASH_TRANSACTION =
1395
- T.let(
1396
- :quasi_cash_transaction,
1397
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
1398
- )
1399
-
1400
- # Prepaid activation and load.
1401
- PREPAID_ACTIVATION_AND_LOAD =
1402
- T.let(
1403
- :prepaid_activation_and_load,
1404
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
1405
- )
1406
-
1407
- sig do
1408
- override.returns(
1409
- T::Array[
1410
- Increase::RealTimeDecision::CardAuthentication::TransactionType::TaggedSymbol
1411
- ]
1412
- )
1413
- end
1414
- def self.values
1415
- end
1416
- end
1417
1568
  end
1418
1569
 
1419
1570
  class CardAuthenticationChallenge < Increase::Internal::Type::BaseModel
@@ -69,6 +69,11 @@ module Increase
69
69
 
70
70
  BalanceLookup = Increase::Models::BalanceLookup
71
71
 
72
+ BeneficialOwnerListParams = Increase::Models::BeneficialOwnerListParams
73
+
74
+ BeneficialOwnerRetrieveParams =
75
+ Increase::Models::BeneficialOwnerRetrieveParams
76
+
72
77
  BookkeepingAccount = Increase::Models::BookkeepingAccount
73
78
 
74
79
  BookkeepingAccountBalanceParams =
@@ -243,6 +248,8 @@ module Increase
243
248
 
244
249
  EntityArchiveParams = Increase::Models::EntityArchiveParams
245
250
 
251
+ EntityBeneficialOwner = Increase::Models::EntityBeneficialOwner
252
+
246
253
  EntityCreateBeneficialOwnerParams =
247
254
  Increase::Models::EntityCreateBeneficialOwnerParams
248
255
 
@@ -0,0 +1,54 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Resources
5
+ class BeneficialOwners
6
+ # Retrieve a Beneficial Owner
7
+ sig do
8
+ params(
9
+ entity_beneficial_owner_id: String,
10
+ request_options: Increase::RequestOptions::OrHash
11
+ ).returns(Increase::EntityBeneficialOwner)
12
+ end
13
+ def retrieve(
14
+ # The identifier of the Beneficial Owner to retrieve.
15
+ entity_beneficial_owner_id,
16
+ request_options: {}
17
+ )
18
+ end
19
+
20
+ # List Beneficial Owners
21
+ sig do
22
+ params(
23
+ entity_id: String,
24
+ cursor: String,
25
+ idempotency_key: String,
26
+ limit: Integer,
27
+ request_options: Increase::RequestOptions::OrHash
28
+ ).returns(Increase::Internal::Page[Increase::EntityBeneficialOwner])
29
+ end
30
+ def list(
31
+ # The identifier of the Entity to list beneficial owners for. Only `corporation`
32
+ # entities have beneficial owners.
33
+ entity_id:,
34
+ # Return the page of entries after this one.
35
+ cursor: nil,
36
+ # Filter records to the one with the specified `idempotency_key` you chose for
37
+ # that object. This value is unique across Increase and is used to ensure that a
38
+ # request is only processed once. Learn more about
39
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
40
+ idempotency_key: nil,
41
+ # Limit the size of the list that is returned. The default (and maximum) is 100
42
+ # objects.
43
+ limit: nil,
44
+ request_options: {}
45
+ )
46
+ end
47
+
48
+ # @api private
49
+ sig { params(client: Increase::Client).returns(T.attached_class) }
50
+ def self.new(client:)
51
+ end
52
+ end
53
+ end
54
+ end
@@ -83,6 +83,8 @@ module Increase
83
83
 
84
84
  attr_reader entities: Increase::Resources::Entities
85
85
 
86
+ attr_reader beneficial_owners: Increase::Resources::BeneficialOwners
87
+
86
88
  attr_reader supplemental_documents: Increase::Resources::SupplementalDocuments
87
89
 
88
90
  attr_reader programs: Increase::Resources::Programs