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
@@ -0,0 +1,89 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class BeneficialOwnerListParams < Increase::Internal::Type::BaseModel
6
+ extend Increase::Internal::Type::RequestParameters::Converter
7
+ include Increase::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Increase::BeneficialOwnerListParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Entity to list beneficial owners for. Only `corporation`
18
+ # entities have beneficial owners.
19
+ sig { returns(String) }
20
+ attr_accessor :entity_id
21
+
22
+ # Return the page of entries after this one.
23
+ sig { returns(T.nilable(String)) }
24
+ attr_reader :cursor
25
+
26
+ sig { params(cursor: String).void }
27
+ attr_writer :cursor
28
+
29
+ # Filter records to the one with the specified `idempotency_key` you chose for
30
+ # that object. This value is unique across Increase and is used to ensure that a
31
+ # request is only processed once. Learn more about
32
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
33
+ sig { returns(T.nilable(String)) }
34
+ attr_reader :idempotency_key
35
+
36
+ sig { params(idempotency_key: String).void }
37
+ attr_writer :idempotency_key
38
+
39
+ # Limit the size of the list that is returned. The default (and maximum) is 100
40
+ # objects.
41
+ sig { returns(T.nilable(Integer)) }
42
+ attr_reader :limit
43
+
44
+ sig { params(limit: Integer).void }
45
+ attr_writer :limit
46
+
47
+ sig do
48
+ params(
49
+ entity_id: String,
50
+ cursor: String,
51
+ idempotency_key: String,
52
+ limit: Integer,
53
+ request_options: Increase::RequestOptions::OrHash
54
+ ).returns(T.attached_class)
55
+ end
56
+ def self.new(
57
+ # The identifier of the Entity to list beneficial owners for. Only `corporation`
58
+ # entities have beneficial owners.
59
+ entity_id:,
60
+ # Return the page of entries after this one.
61
+ cursor: nil,
62
+ # Filter records to the one with the specified `idempotency_key` you chose for
63
+ # that object. This value is unique across Increase and is used to ensure that a
64
+ # request is only processed once. Learn more about
65
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
66
+ idempotency_key: nil,
67
+ # Limit the size of the list that is returned. The default (and maximum) is 100
68
+ # objects.
69
+ limit: nil,
70
+ request_options: {}
71
+ )
72
+ end
73
+
74
+ sig do
75
+ override.returns(
76
+ {
77
+ entity_id: String,
78
+ cursor: String,
79
+ idempotency_key: String,
80
+ limit: Integer,
81
+ request_options: Increase::RequestOptions
82
+ }
83
+ )
84
+ end
85
+ def to_hash
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,46 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class BeneficialOwnerRetrieveParams < Increase::Internal::Type::BaseModel
6
+ extend Increase::Internal::Type::RequestParameters::Converter
7
+ include Increase::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Increase::BeneficialOwnerRetrieveParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Beneficial Owner to retrieve.
18
+ sig { returns(String) }
19
+ attr_accessor :entity_beneficial_owner_id
20
+
21
+ sig do
22
+ params(
23
+ entity_beneficial_owner_id: String,
24
+ request_options: Increase::RequestOptions::OrHash
25
+ ).returns(T.attached_class)
26
+ end
27
+ def self.new(
28
+ # The identifier of the Beneficial Owner to retrieve.
29
+ entity_beneficial_owner_id:,
30
+ request_options: {}
31
+ )
32
+ end
33
+
34
+ sig do
35
+ override.returns(
36
+ {
37
+ entity_beneficial_owner_id: String,
38
+ request_options: Increase::RequestOptions
39
+ }
40
+ )
41
+ end
42
+ def to_hash
43
+ end
44
+ end
45
+ end
46
+ end