increase 1.238.0 → 1.240.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/entity.rb +3 -207
  8. data/lib/increase/models/entity_beneficial_owner.rb +238 -0
  9. data/lib/increase/models/simulations/card_token_create_params.rb +197 -1
  10. data/lib/increase/models.rb +6 -0
  11. data/lib/increase/resources/beneficial_owners.rb +67 -0
  12. data/lib/increase/resources/simulations/card_tokens.rb +3 -1
  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/entity.rbi +3 -403
  19. data/rbi/increase/models/entity_beneficial_owner.rbi +412 -0
  20. data/rbi/increase/models/simulations/card_token_create_params.rbi +495 -0
  21. data/rbi/increase/models.rbi +7 -0
  22. data/rbi/increase/resources/beneficial_owners.rbi +54 -0
  23. data/rbi/increase/resources/simulations/card_tokens.rbi +4 -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/entity.rbs +4 -174
  28. data/sig/increase/models/entity_beneficial_owner.rbs +193 -0
  29. data/sig/increase/models/simulations/card_token_create_params.rbs +246 -0
  30. data/sig/increase/models.rbs +6 -0
  31. data/sig/increase/resources/beneficial_owners.rbs +20 -0
  32. data/sig/increase/resources/simulations/card_tokens.rbs +1 -0
  33. metadata +14 -2
@@ -49,6 +49,22 @@ module Increase
49
49
  sig { params(last4: String).void }
50
50
  attr_writer :last4
51
51
 
52
+ # The outcome to simulate for card push transfers using this token.
53
+ sig do
54
+ returns(
55
+ T.nilable(Increase::Simulations::CardTokenCreateParams::Outcome)
56
+ )
57
+ end
58
+ attr_reader :outcome
59
+
60
+ sig do
61
+ params(
62
+ outcome:
63
+ Increase::Simulations::CardTokenCreateParams::Outcome::OrHash
64
+ ).void
65
+ end
66
+ attr_writer :outcome
67
+
52
68
  # The prefix of the card number, usually the first 8 digits.
53
69
  sig { returns(T.nilable(String)) }
54
70
  attr_reader :prefix
@@ -71,6 +87,8 @@ module Increase
71
87
  ],
72
88
  expiration: Date,
73
89
  last4: String,
90
+ outcome:
91
+ Increase::Simulations::CardTokenCreateParams::Outcome::OrHash,
74
92
  prefix: String,
75
93
  primary_account_number_length: Integer,
76
94
  request_options: Increase::RequestOptions::OrHash
@@ -83,6 +101,8 @@ module Increase
83
101
  expiration: nil,
84
102
  # The last 4 digits of the card number.
85
103
  last4: nil,
104
+ # The outcome to simulate for card push transfers using this token.
105
+ outcome: nil,
86
106
  # The prefix of the card number, usually the first 8 digits.
87
107
  prefix: nil,
88
108
  # The total length of the card number, including prefix and last4.
@@ -100,6 +120,7 @@ module Increase
100
120
  ],
101
121
  expiration: Date,
102
122
  last4: String,
123
+ outcome: Increase::Simulations::CardTokenCreateParams::Outcome,
103
124
  prefix: String,
104
125
  primary_account_number_length: Integer,
105
126
  request_options: Increase::RequestOptions
@@ -291,6 +312,480 @@ module Increase
291
312
  end
292
313
  end
293
314
  end
315
+
316
+ class Outcome < Increase::Internal::Type::BaseModel
317
+ OrHash =
318
+ T.type_alias do
319
+ T.any(
320
+ Increase::Simulations::CardTokenCreateParams::Outcome,
321
+ Increase::Internal::AnyHash
322
+ )
323
+ end
324
+
325
+ # Whether card push transfers or validations will be approved or declined.
326
+ sig do
327
+ returns(
328
+ Increase::Simulations::CardTokenCreateParams::Outcome::Result::OrSymbol
329
+ )
330
+ end
331
+ attr_accessor :result
332
+
333
+ # If the result is declined, the details of the decline.
334
+ sig do
335
+ returns(
336
+ T.nilable(
337
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline
338
+ )
339
+ )
340
+ end
341
+ attr_reader :decline
342
+
343
+ sig do
344
+ params(
345
+ decline:
346
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::OrHash
347
+ ).void
348
+ end
349
+ attr_writer :decline
350
+
351
+ # The outcome to simulate for card push transfers using this token.
352
+ sig do
353
+ params(
354
+ result:
355
+ Increase::Simulations::CardTokenCreateParams::Outcome::Result::OrSymbol,
356
+ decline:
357
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::OrHash
358
+ ).returns(T.attached_class)
359
+ end
360
+ def self.new(
361
+ # Whether card push transfers or validations will be approved or declined.
362
+ result:,
363
+ # If the result is declined, the details of the decline.
364
+ decline: nil
365
+ )
366
+ end
367
+
368
+ sig do
369
+ override.returns(
370
+ {
371
+ result:
372
+ Increase::Simulations::CardTokenCreateParams::Outcome::Result::OrSymbol,
373
+ decline:
374
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline
375
+ }
376
+ )
377
+ end
378
+ def to_hash
379
+ end
380
+
381
+ # Whether card push transfers or validations will be approved or declined.
382
+ module Result
383
+ extend Increase::Internal::Type::Enum
384
+
385
+ TaggedSymbol =
386
+ T.type_alias do
387
+ T.all(
388
+ Symbol,
389
+ Increase::Simulations::CardTokenCreateParams::Outcome::Result
390
+ )
391
+ end
392
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
393
+
394
+ # Any card push transfers or validations will be approved.
395
+ APPROVE =
396
+ T.let(
397
+ :approve,
398
+ Increase::Simulations::CardTokenCreateParams::Outcome::Result::TaggedSymbol
399
+ )
400
+
401
+ # Any card push transfers or validations will be declined.
402
+ DECLINE =
403
+ T.let(
404
+ :decline,
405
+ Increase::Simulations::CardTokenCreateParams::Outcome::Result::TaggedSymbol
406
+ )
407
+
408
+ sig do
409
+ override.returns(
410
+ T::Array[
411
+ Increase::Simulations::CardTokenCreateParams::Outcome::Result::TaggedSymbol
412
+ ]
413
+ )
414
+ end
415
+ def self.values
416
+ end
417
+ end
418
+
419
+ class Decline < Increase::Internal::Type::BaseModel
420
+ OrHash =
421
+ T.type_alias do
422
+ T.any(
423
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline,
424
+ Increase::Internal::AnyHash
425
+ )
426
+ end
427
+
428
+ # The reason for the decline.
429
+ sig do
430
+ returns(
431
+ T.nilable(
432
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
433
+ )
434
+ )
435
+ end
436
+ attr_reader :reason
437
+
438
+ sig do
439
+ params(
440
+ reason:
441
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
442
+ ).void
443
+ end
444
+ attr_writer :reason
445
+
446
+ # If the result is declined, the details of the decline.
447
+ sig do
448
+ params(
449
+ reason:
450
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
451
+ ).returns(T.attached_class)
452
+ end
453
+ def self.new(
454
+ # The reason for the decline.
455
+ reason: nil
456
+ )
457
+ end
458
+
459
+ sig do
460
+ override.returns(
461
+ {
462
+ reason:
463
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::OrSymbol
464
+ }
465
+ )
466
+ end
467
+ def to_hash
468
+ end
469
+
470
+ # The reason for the decline.
471
+ module Reason
472
+ extend Increase::Internal::Type::Enum
473
+
474
+ TaggedSymbol =
475
+ T.type_alias do
476
+ T.all(
477
+ Symbol,
478
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason
479
+ )
480
+ end
481
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
482
+
483
+ # The card issuer has declined the transaction without providing a specific reason.
484
+ DO_NOT_HONOR =
485
+ T.let(
486
+ :do_not_honor,
487
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
488
+ )
489
+
490
+ # The number of transactions for the card has exceeded the limit set by the issuer.
491
+ ACTIVITY_COUNT_LIMIT_EXCEEDED =
492
+ T.let(
493
+ :activity_count_limit_exceeded,
494
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
495
+ )
496
+
497
+ # The card issuer requires the cardholder to contact them for further information regarding the transaction.
498
+ REFER_TO_CARD_ISSUER =
499
+ T.let(
500
+ :refer_to_card_issuer,
501
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
502
+ )
503
+
504
+ # The card issuer requires the cardholder to contact them due to a special condition related to the transaction.
505
+ REFER_TO_CARD_ISSUER_SPECIAL_CONDITION =
506
+ T.let(
507
+ :refer_to_card_issuer_special_condition,
508
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
509
+ )
510
+
511
+ # The merchant is not valid for this transaction.
512
+ INVALID_MERCHANT =
513
+ T.let(
514
+ :invalid_merchant,
515
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
516
+ )
517
+
518
+ # The card should be retained by the terminal.
519
+ PICK_UP_CARD =
520
+ T.let(
521
+ :pick_up_card,
522
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
523
+ )
524
+
525
+ # An error occurred during processing of the transaction.
526
+ ERROR =
527
+ T.let(
528
+ :error,
529
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
530
+ )
531
+
532
+ # The card should be retained by the terminal due to a special condition.
533
+ PICK_UP_CARD_SPECIAL =
534
+ T.let(
535
+ :pick_up_card_special,
536
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
537
+ )
538
+
539
+ # The transaction is invalid and cannot be processed.
540
+ INVALID_TRANSACTION =
541
+ T.let(
542
+ :invalid_transaction,
543
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
544
+ )
545
+
546
+ # The amount of the transaction is invalid.
547
+ INVALID_AMOUNT =
548
+ T.let(
549
+ :invalid_amount,
550
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
551
+ )
552
+
553
+ # The account number provided is invalid.
554
+ INVALID_ACCOUNT_NUMBER =
555
+ T.let(
556
+ :invalid_account_number,
557
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
558
+ )
559
+
560
+ # The issuer of the card could not be found.
561
+ NO_SUCH_ISSUER =
562
+ T.let(
563
+ :no_such_issuer,
564
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
565
+ )
566
+
567
+ # The transaction should be re-entered for processing.
568
+ RE_ENTER_TRANSACTION =
569
+ T.let(
570
+ :re_enter_transaction,
571
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
572
+ )
573
+
574
+ # There is no credit account associated with the card.
575
+ NO_CREDIT_ACCOUNT =
576
+ T.let(
577
+ :no_credit_account,
578
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
579
+ )
580
+
581
+ # The card should be retained by the terminal because it has been reported lost.
582
+ PICK_UP_CARD_LOST =
583
+ T.let(
584
+ :pick_up_card_lost,
585
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
586
+ )
587
+
588
+ # The card should be retained by the terminal because it has been reported stolen.
589
+ PICK_UP_CARD_STOLEN =
590
+ T.let(
591
+ :pick_up_card_stolen,
592
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
593
+ )
594
+
595
+ # The account associated with the card has been closed.
596
+ CLOSED_ACCOUNT =
597
+ T.let(
598
+ :closed_account,
599
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
600
+ )
601
+
602
+ # There are insufficient funds in the account to complete the transaction.
603
+ INSUFFICIENT_FUNDS =
604
+ T.let(
605
+ :insufficient_funds,
606
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
607
+ )
608
+
609
+ # There is no checking account associated with the card.
610
+ NO_CHECKING_ACCOUNT =
611
+ T.let(
612
+ :no_checking_account,
613
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
614
+ )
615
+
616
+ # There is no savings account associated with the card.
617
+ NO_SAVINGS_ACCOUNT =
618
+ T.let(
619
+ :no_savings_account,
620
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
621
+ )
622
+
623
+ # The card has expired and cannot be used for transactions.
624
+ EXPIRED_CARD =
625
+ T.let(
626
+ :expired_card,
627
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
628
+ )
629
+
630
+ # The transaction is not permitted for this cardholder.
631
+ TRANSACTION_NOT_PERMITTED_TO_CARDHOLDER =
632
+ T.let(
633
+ :transaction_not_permitted_to_cardholder,
634
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
635
+ )
636
+
637
+ # The transaction is not allowed at this terminal.
638
+ TRANSACTION_NOT_ALLOWED_AT_TERMINAL =
639
+ T.let(
640
+ :transaction_not_allowed_at_terminal,
641
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
642
+ )
643
+
644
+ # The transaction has been flagged as suspected fraud and cannot be processed.
645
+ SUSPECTED_FRAUD =
646
+ T.let(
647
+ :suspected_fraud,
648
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
649
+ )
650
+
651
+ # The amount of activity on the card has exceeded the limit set by the issuer.
652
+ ACTIVITY_AMOUNT_LIMIT_EXCEEDED =
653
+ T.let(
654
+ :activity_amount_limit_exceeded,
655
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
656
+ )
657
+
658
+ # The card has restrictions that prevent it from being used for this transaction.
659
+ RESTRICTED_CARD =
660
+ T.let(
661
+ :restricted_card,
662
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
663
+ )
664
+
665
+ # A security violation has occurred, preventing the transaction from being processed.
666
+ SECURITY_VIOLATION =
667
+ T.let(
668
+ :security_violation,
669
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
670
+ )
671
+
672
+ # The transaction does not meet the anti-money laundering requirements set by the issuer.
673
+ TRANSACTION_DOES_NOT_FULFILL_ANTI_MONEY_LAUNDERING_REQUIREMENT =
674
+ T.let(
675
+ :transaction_does_not_fulfill_anti_money_laundering_requirement,
676
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
677
+ )
678
+
679
+ # The first use of the card has been blocked by the issuer.
680
+ BLOCKED_FIRST_USE =
681
+ T.let(
682
+ :blocked_first_use,
683
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
684
+ )
685
+
686
+ # The credit issuer is currently unavailable to process the transaction.
687
+ CREDIT_ISSUER_UNAVAILABLE =
688
+ T.let(
689
+ :credit_issuer_unavailable,
690
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
691
+ )
692
+
693
+ # The card verification value (CVV) results were negative, indicating a potential issue with the card.
694
+ NEGATIVE_CARD_VERIFICATION_VALUE_RESULTS =
695
+ T.let(
696
+ :negative_card_verification_value_results,
697
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
698
+ )
699
+
700
+ # The issuer of the card is currently unavailable to process the transaction.
701
+ ISSUER_UNAVAILABLE =
702
+ T.let(
703
+ :issuer_unavailable,
704
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
705
+ )
706
+
707
+ # The financial institution associated with the card could not be found.
708
+ FINANCIAL_INSTITUTION_CANNOT_BE_FOUND =
709
+ T.let(
710
+ :financial_institution_cannot_be_found,
711
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
712
+ )
713
+
714
+ # The transaction cannot be completed due to an unspecified reason.
715
+ TRANSACTION_CANNOT_BE_COMPLETED =
716
+ T.let(
717
+ :transaction_cannot_be_completed,
718
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
719
+ )
720
+
721
+ # The transaction is a duplicate of a previous transaction and cannot be processed again.
722
+ DUPLICATE_TRANSACTION =
723
+ T.let(
724
+ :duplicate_transaction,
725
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
726
+ )
727
+
728
+ # A system malfunction occurred, preventing the transaction from being processed.
729
+ SYSTEM_MALFUNCTION =
730
+ T.let(
731
+ :system_malfunction,
732
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
733
+ )
734
+
735
+ # Additional customer authentication is required to complete the transaction.
736
+ ADDITIONAL_CUSTOMER_AUTHENTICATION_REQUIRED =
737
+ T.let(
738
+ :additional_customer_authentication_required,
739
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
740
+ )
741
+
742
+ # The surcharge amount applied to the transaction is not permitted by the issuer.
743
+ SURCHARGE_AMOUNT_NOT_PERMITTED =
744
+ T.let(
745
+ :surcharge_amount_not_permitted,
746
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
747
+ )
748
+
749
+ # The transaction was declined due to a failure in verifying the CVV2 code.
750
+ DECLINE_FOR_CVV2_FAILURE =
751
+ T.let(
752
+ :decline_for_cvv2_failure,
753
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
754
+ )
755
+
756
+ # A stop payment order has been placed on this transaction.
757
+ STOP_PAYMENT_ORDER =
758
+ T.let(
759
+ :stop_payment_order,
760
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
761
+ )
762
+
763
+ # An order has been placed to revoke authorization for this transaction.
764
+ REVOCATION_OF_AUTHORIZATION_ORDER =
765
+ T.let(
766
+ :revocation_of_authorization_order,
767
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
768
+ )
769
+
770
+ # An order has been placed to revoke all authorizations for this cardholder.
771
+ REVOCATION_OF_ALL_AUTHORIZATIONS_ORDER =
772
+ T.let(
773
+ :revocation_of_all_authorizations_order,
774
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
775
+ )
776
+
777
+ sig do
778
+ override.returns(
779
+ T::Array[
780
+ Increase::Simulations::CardTokenCreateParams::Outcome::Decline::Reason::TaggedSymbol
781
+ ]
782
+ )
783
+ end
784
+ def self.values
785
+ end
786
+ end
787
+ end
788
+ end
294
789
  end
295
790
  end
296
791
  end
@@ -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
@@ -13,6 +13,8 @@ module Increase
13
13
  ],
14
14
  expiration: Date,
15
15
  last4: String,
16
+ outcome:
17
+ Increase::Simulations::CardTokenCreateParams::Outcome::OrHash,
16
18
  prefix: String,
17
19
  primary_account_number_length: Integer,
18
20
  request_options: Increase::RequestOptions::OrHash
@@ -25,6 +27,8 @@ module Increase
25
27
  expiration: nil,
26
28
  # The last 4 digits of the card number.
27
29
  last4: nil,
30
+ # The outcome to simulate for card push transfers using this token.
31
+ outcome: nil,
28
32
  # The prefix of the card number, usually the first 8 digits.
29
33
  prefix: nil,
30
34
  # The total length of the card number, including prefix and last4.
@@ -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
@@ -0,0 +1,47 @@
1
+ module Increase
2
+ module Models
3
+ type beneficial_owner_list_params =
4
+ {
5
+ entity_id: String,
6
+ cursor: String,
7
+ idempotency_key: String,
8
+ limit: Integer
9
+ }
10
+ & Increase::Internal::Type::request_parameters
11
+
12
+ class BeneficialOwnerListParams < Increase::Internal::Type::BaseModel
13
+ extend Increase::Internal::Type::RequestParameters::Converter
14
+ include Increase::Internal::Type::RequestParameters
15
+
16
+ attr_accessor entity_id: String
17
+
18
+ attr_reader cursor: String?
19
+
20
+ def cursor=: (String) -> String
21
+
22
+ attr_reader idempotency_key: String?
23
+
24
+ def idempotency_key=: (String) -> String
25
+
26
+ attr_reader limit: Integer?
27
+
28
+ def limit=: (Integer) -> Integer
29
+
30
+ def initialize: (
31
+ entity_id: String,
32
+ ?cursor: String,
33
+ ?idempotency_key: String,
34
+ ?limit: Integer,
35
+ ?request_options: Increase::request_opts
36
+ ) -> void
37
+
38
+ def to_hash: -> {
39
+ entity_id: String,
40
+ cursor: String,
41
+ idempotency_key: String,
42
+ limit: Integer,
43
+ request_options: Increase::RequestOptions
44
+ }
45
+ end
46
+ end
47
+ end