increase 1.62.0 → 1.64.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 15b72439e813be126ada1f2b7beb01e41b0dcaca294c17b428d03b822b22a357
4
- data.tar.gz: 8042dc70cb56867f1c738c33a99c922b3f51d914e9a96ed8b37b2c313c9bd957
3
+ metadata.gz: c8b5e9d399f56194de72af40e25b4aabd27adb2335c9511eaf4daee25944ab93
4
+ data.tar.gz: 8d80daf1e96ea0e91e0cc8d525dbdf0a70cd5c943479447c321969db25969afc
5
5
  SHA512:
6
- metadata.gz: d10f55ebe9343ad66de8f33ec8c6cd36cff42744a8bdef1b4eeb5055d881696bcb4b75b1f2603d1e124eb5b378de9e23348df21b57b1233e696f6cbfdc18ca54
7
- data.tar.gz: 23023e9919b592b3d4b72b61b9b157ea81d0aa3b786054e96f577cca507cd27624307e4016f209786ef2416758743650369cf8ed16d66b48d2e39d47be838d5a
6
+ metadata.gz: 44febe6946143aee092b5e0e219ef2768ae33c5870b1d77ae8a4365b015723d4fa5a4177ecfb396b0dacbeef5057cd56043cfe25ea8de33a7206e22ce3e93300
7
+ data.tar.gz: 4dc8e224e8859f4a64d29f1cc86d72570e63e3c0c4b175e89e66be242e2e3a2ac9c0700f8e6022ba27e0572ff27c3ee188dae887ed8084d3ac1586a3d0468e26
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.64.0 (2025-09-04)
4
+
5
+ Full Changelog: [v1.63.0...v1.64.0](https://github.com/Increase/increase-ruby/compare/v1.63.0...v1.64.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([8a7c3b9](https://github.com/Increase/increase-ruby/commit/8a7c3b9792f9aa78a9193f3594ab20f3793de872))
10
+
11
+ ## 1.63.0 (2025-09-04)
12
+
13
+ Full Changelog: [v1.62.0...v1.63.0](https://github.com/Increase/increase-ruby/compare/v1.62.0...v1.63.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([76b55a5](https://github.com/Increase/increase-ruby/commit/76b55a5d0254bf59bd03e72bb5db7b828d9dbd4c))
18
+
3
19
  ## 1.62.0 (2025-08-29)
4
20
 
5
21
  Full Changelog: [v1.61.0...v1.62.0](https://github.com/Increase/increase-ruby/compare/v1.61.0...v1.62.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.62.0"
18
+ gem "increase", "~> 1.64.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -65,6 +65,13 @@ module Increase
65
65
  # @return [Increase::Models::Entity::NaturalPerson, nil]
66
66
  required :natural_person, -> { Increase::Entity::NaturalPerson }, nil?: true
67
67
 
68
+ # @!attribute risk_rating
69
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
70
+ # such as money laundering.
71
+ #
72
+ # @return [Increase::Models::Entity::RiskRating, nil]
73
+ required :risk_rating, -> { Increase::Entity::RiskRating }, nil?: true
74
+
68
75
  # @!attribute status
69
76
  # The status of the entity.
70
77
  #
@@ -106,7 +113,7 @@ module Increase
106
113
  # @return [Symbol, Increase::Models::Entity::Type]
107
114
  required :type, enum: -> { Increase::Entity::Type }
108
115
 
109
- # @!method initialize(id:, corporation:, created_at:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, status:, structure:, supplemental_documents:, third_party_verification:, trust:, type:)
116
+ # @!method initialize(id:, corporation:, created_at:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, risk_rating:, status:, structure:, supplemental_documents:, third_party_verification:, trust:, type:)
110
117
  # Some parameter documentations has been truncated, see {Increase::Models::Entity}
111
118
  # for more details.
112
119
  #
@@ -131,6 +138,8 @@ module Increase
131
138
  #
132
139
  # @param natural_person [Increase::Models::Entity::NaturalPerson, nil] Details of the natural person entity. Will be present if `structure` is equal to
133
140
  #
141
+ # @param risk_rating [Increase::Models::Entity::RiskRating, nil] An assessment of the entity’s potential risk of involvement in financial crimes,
142
+ #
134
143
  # @param status [Symbol, Increase::Models::Entity::Status] The status of the entity.
135
144
  #
136
145
  # @param structure [Symbol, Increase::Models::Entity::Structure] The entity's legal structure.
@@ -919,6 +928,52 @@ module Increase
919
928
  end
920
929
  end
921
930
 
931
+ # @see Increase::Models::Entity#risk_rating
932
+ class RiskRating < Increase::Internal::Type::BaseModel
933
+ # @!attribute rated_at
934
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
935
+ # rating was performed.
936
+ #
937
+ # @return [Time]
938
+ required :rated_at, Time
939
+
940
+ # @!attribute rating
941
+ # The rating given to this entity.
942
+ #
943
+ # @return [Symbol, Increase::Models::Entity::RiskRating::Rating]
944
+ required :rating, enum: -> { Increase::Entity::RiskRating::Rating }
945
+
946
+ # @!method initialize(rated_at:, rating:)
947
+ # Some parameter documentations has been truncated, see
948
+ # {Increase::Models::Entity::RiskRating} for more details.
949
+ #
950
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
951
+ # such as money laundering.
952
+ #
953
+ # @param rated_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk ra
954
+ #
955
+ # @param rating [Symbol, Increase::Models::Entity::RiskRating::Rating] The rating given to this entity.
956
+
957
+ # The rating given to this entity.
958
+ #
959
+ # @see Increase::Models::Entity::RiskRating#rating
960
+ module Rating
961
+ extend Increase::Internal::Type::Enum
962
+
963
+ # Low
964
+ LOW = :low
965
+
966
+ # Medium
967
+ MEDIUM = :medium
968
+
969
+ # High
970
+ HIGH = :high
971
+
972
+ # @!method self.values
973
+ # @return [Array<Symbol>]
974
+ end
975
+ end
976
+
922
977
  # The status of the entity.
923
978
  #
924
979
  # @see Increase::Models::Entity#status
@@ -49,6 +49,13 @@ module Increase
49
49
  # @return [Increase::Models::EntityCreateParams::NaturalPerson, nil]
50
50
  optional :natural_person, -> { Increase::EntityCreateParams::NaturalPerson }
51
51
 
52
+ # @!attribute risk_rating
53
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
54
+ # such as money laundering.
55
+ #
56
+ # @return [Increase::Models::EntityCreateParams::RiskRating, nil]
57
+ optional :risk_rating, -> { Increase::EntityCreateParams::RiskRating }
58
+
52
59
  # @!attribute supplemental_documents
53
60
  # Additional documentation associated with the entity.
54
61
  #
@@ -70,7 +77,7 @@ module Increase
70
77
  # @return [Increase::Models::EntityCreateParams::Trust, nil]
71
78
  optional :trust, -> { Increase::EntityCreateParams::Trust }
72
79
 
73
- # @!method initialize(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {})
80
+ # @!method initialize(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, risk_rating: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {})
74
81
  # Some parameter documentations has been truncated, see
75
82
  # {Increase::Models::EntityCreateParams} for more details.
76
83
  #
@@ -86,6 +93,8 @@ module Increase
86
93
  #
87
94
  # @param natural_person [Increase::Models::EntityCreateParams::NaturalPerson] Details of the natural person entity to create. Required if `structure` is equal
88
95
  #
96
+ # @param risk_rating [Increase::Models::EntityCreateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes,
97
+ #
89
98
  # @param supplemental_documents [Array<Increase::Models::EntityCreateParams::SupplementalDocument>] Additional documentation associated with the entity.
90
99
  #
91
100
  # @param third_party_verification [Increase::Models::EntityCreateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati
@@ -1436,6 +1445,51 @@ module Increase
1436
1445
  end
1437
1446
  end
1438
1447
 
1448
+ class RiskRating < Increase::Internal::Type::BaseModel
1449
+ # @!attribute rated_at
1450
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1451
+ # rating was performed.
1452
+ #
1453
+ # @return [Time]
1454
+ required :rated_at, Time
1455
+
1456
+ # @!attribute rating
1457
+ # The rating given to this entity.
1458
+ #
1459
+ # @return [Symbol, Increase::Models::EntityCreateParams::RiskRating::Rating]
1460
+ required :rating, enum: -> { Increase::EntityCreateParams::RiskRating::Rating }
1461
+
1462
+ # @!method initialize(rated_at:, rating:)
1463
+ # Some parameter documentations has been truncated, see
1464
+ # {Increase::Models::EntityCreateParams::RiskRating} for more details.
1465
+ #
1466
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
1467
+ # such as money laundering.
1468
+ #
1469
+ # @param rated_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk ra
1470
+ #
1471
+ # @param rating [Symbol, Increase::Models::EntityCreateParams::RiskRating::Rating] The rating given to this entity.
1472
+
1473
+ # The rating given to this entity.
1474
+ #
1475
+ # @see Increase::Models::EntityCreateParams::RiskRating#rating
1476
+ module Rating
1477
+ extend Increase::Internal::Type::Enum
1478
+
1479
+ # Low
1480
+ LOW = :low
1481
+
1482
+ # Medium
1483
+ MEDIUM = :medium
1484
+
1485
+ # High
1486
+ HIGH = :high
1487
+
1488
+ # @!method self.values
1489
+ # @return [Array<Symbol>]
1490
+ end
1491
+ end
1492
+
1439
1493
  class SupplementalDocument < Increase::Internal::Type::BaseModel
1440
1494
  # @!attribute file_id
1441
1495
  # The identifier of the File containing the document.
@@ -0,0 +1,121 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::Entities#update
6
+ class EntityUpdateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute risk_rating
11
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
12
+ # such as money laundering.
13
+ #
14
+ # @return [Increase::Models::EntityUpdateParams::RiskRating, nil]
15
+ optional :risk_rating, -> { Increase::EntityUpdateParams::RiskRating }
16
+
17
+ # @!attribute third_party_verification
18
+ # A reference to data stored in a third-party verification service. Your
19
+ # integration may or may not use this field.
20
+ #
21
+ # @return [Increase::Models::EntityUpdateParams::ThirdPartyVerification, nil]
22
+ optional :third_party_verification, -> { Increase::EntityUpdateParams::ThirdPartyVerification }
23
+
24
+ # @!method initialize(risk_rating: nil, third_party_verification: nil, request_options: {})
25
+ # Some parameter documentations has been truncated, see
26
+ # {Increase::Models::EntityUpdateParams} for more details.
27
+ #
28
+ # @param risk_rating [Increase::Models::EntityUpdateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes,
29
+ #
30
+ # @param third_party_verification [Increase::Models::EntityUpdateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati
31
+ #
32
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
33
+
34
+ class RiskRating < Increase::Internal::Type::BaseModel
35
+ # @!attribute rated_at
36
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
37
+ # rating was performed.
38
+ #
39
+ # @return [Time]
40
+ required :rated_at, Time
41
+
42
+ # @!attribute rating
43
+ # The rating given to this entity.
44
+ #
45
+ # @return [Symbol, Increase::Models::EntityUpdateParams::RiskRating::Rating]
46
+ required :rating, enum: -> { Increase::EntityUpdateParams::RiskRating::Rating }
47
+
48
+ # @!method initialize(rated_at:, rating:)
49
+ # Some parameter documentations has been truncated, see
50
+ # {Increase::Models::EntityUpdateParams::RiskRating} for more details.
51
+ #
52
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
53
+ # such as money laundering.
54
+ #
55
+ # @param rated_at [Time] The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk ra
56
+ #
57
+ # @param rating [Symbol, Increase::Models::EntityUpdateParams::RiskRating::Rating] The rating given to this entity.
58
+
59
+ # The rating given to this entity.
60
+ #
61
+ # @see Increase::Models::EntityUpdateParams::RiskRating#rating
62
+ module Rating
63
+ extend Increase::Internal::Type::Enum
64
+
65
+ # Low
66
+ LOW = :low
67
+
68
+ # Medium
69
+ MEDIUM = :medium
70
+
71
+ # High
72
+ HIGH = :high
73
+
74
+ # @!method self.values
75
+ # @return [Array<Symbol>]
76
+ end
77
+ end
78
+
79
+ class ThirdPartyVerification < Increase::Internal::Type::BaseModel
80
+ # @!attribute reference
81
+ # The reference identifier for the third party verification.
82
+ #
83
+ # @return [String]
84
+ required :reference, String
85
+
86
+ # @!attribute vendor
87
+ # The vendor that was used to perform the verification.
88
+ #
89
+ # @return [Symbol, Increase::Models::EntityUpdateParams::ThirdPartyVerification::Vendor]
90
+ required :vendor, enum: -> { Increase::EntityUpdateParams::ThirdPartyVerification::Vendor }
91
+
92
+ # @!method initialize(reference:, vendor:)
93
+ # A reference to data stored in a third-party verification service. Your
94
+ # integration may or may not use this field.
95
+ #
96
+ # @param reference [String] The reference identifier for the third party verification.
97
+ #
98
+ # @param vendor [Symbol, Increase::Models::EntityUpdateParams::ThirdPartyVerification::Vendor] The vendor that was used to perform the verification.
99
+
100
+ # The vendor that was used to perform the verification.
101
+ #
102
+ # @see Increase::Models::EntityUpdateParams::ThirdPartyVerification#vendor
103
+ module Vendor
104
+ extend Increase::Internal::Type::Enum
105
+
106
+ # Alloy. See https://alloy.com for more information.
107
+ ALLOY = :alloy
108
+
109
+ # Middesk. See https://middesk.com for more information.
110
+ MIDDESK = :middesk
111
+
112
+ # Oscilar. See https://oscilar.com for more information.
113
+ OSCILAR = :oscilar
114
+
115
+ # @!method self.values
116
+ # @return [Array<Symbol>]
117
+ end
118
+ end
119
+ end
120
+ end
121
+ end
@@ -37,6 +37,20 @@ module Increase
37
37
  # @return [String]
38
38
  required :program_id, String
39
39
 
40
+ # @!attribute card_stock_reference
41
+ # A reference ID provided by the fulfillment provider for the card stock used.
42
+ # Only used if you've ordered card stock separately.
43
+ #
44
+ # @return [String, nil]
45
+ optional :card_stock_reference, String
46
+
47
+ # @!attribute carrier_stock_reference
48
+ # A reference ID provided by the fulfillment provider for the carrier stock used.
49
+ # Only used if you've ordered carrier stock separately.
50
+ #
51
+ # @return [String, nil]
52
+ optional :carrier_stock_reference, String
53
+
40
54
  # @!attribute front_text
41
55
  # Text printed on the front of the card. Reach out to
42
56
  # [support@increase.com](mailto:support@increase.com) for more information.
@@ -44,7 +58,7 @@ module Increase
44
58
  # @return [Increase::Models::PhysicalCardProfileCreateParams::FrontText, nil]
45
59
  optional :front_text, -> { Increase::PhysicalCardProfileCreateParams::FrontText }
46
60
 
47
- # @!method initialize(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, front_text: nil, request_options: {})
61
+ # @!method initialize(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, card_stock_reference: nil, carrier_stock_reference: nil, front_text: nil, request_options: {})
48
62
  # Some parameter documentations has been truncated, see
49
63
  # {Increase::Models::PhysicalCardProfileCreateParams} for more details.
50
64
  #
@@ -58,6 +72,10 @@ module Increase
58
72
  #
59
73
  # @param program_id [String] The identifier for the Program that this Physical Card Profile falls under.
60
74
  #
75
+ # @param card_stock_reference [String] A reference ID provided by the fulfillment provider for the card stock used. Onl
76
+ #
77
+ # @param carrier_stock_reference [String] A reference ID provided by the fulfillment provider for the carrier stock used.
78
+ #
61
79
  # @param front_text [Increase::Models::PhysicalCardProfileCreateParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt
62
80
  #
63
81
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
@@ -275,6 +275,8 @@ module Increase
275
275
 
276
276
  EntityUpdateIndustryCodeParams = Increase::Models::EntityUpdateIndustryCodeParams
277
277
 
278
+ EntityUpdateParams = Increase::Models::EntityUpdateParams
279
+
278
280
  Event = Increase::Models::Event
279
281
 
280
282
  EventListParams = Increase::Models::EventListParams
@@ -8,7 +8,7 @@ module Increase
8
8
  #
9
9
  # Create an Entity
10
10
  #
11
- # @overload create(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {})
11
+ # @overload create(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, risk_rating: nil, supplemental_documents: nil, third_party_verification: nil, trust: nil, request_options: {})
12
12
  #
13
13
  # @param structure [Symbol, Increase::Models::EntityCreateParams::Structure] The type of Entity to create.
14
14
  #
@@ -22,6 +22,8 @@ module Increase
22
22
  #
23
23
  # @param natural_person [Increase::Models::EntityCreateParams::NaturalPerson] Details of the natural person entity to create. Required if `structure` is equal
24
24
  #
25
+ # @param risk_rating [Increase::Models::EntityCreateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes,
26
+ #
25
27
  # @param supplemental_documents [Array<Increase::Models::EntityCreateParams::SupplementalDocument>] Additional documentation associated with the entity.
26
28
  #
27
29
  # @param third_party_verification [Increase::Models::EntityCreateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati
@@ -64,6 +66,35 @@ module Increase
64
66
  )
65
67
  end
66
68
 
69
+ # Some parameter documentations has been truncated, see
70
+ # {Increase::Models::EntityUpdateParams} for more details.
71
+ #
72
+ # Update an Entity
73
+ #
74
+ # @overload update(entity_id, risk_rating: nil, third_party_verification: nil, request_options: {})
75
+ #
76
+ # @param entity_id [String] The entity identifier.
77
+ #
78
+ # @param risk_rating [Increase::Models::EntityUpdateParams::RiskRating] An assessment of the entity’s potential risk of involvement in financial crimes,
79
+ #
80
+ # @param third_party_verification [Increase::Models::EntityUpdateParams::ThirdPartyVerification] A reference to data stored in a third-party verification service. Your integrati
81
+ #
82
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
83
+ #
84
+ # @return [Increase::Models::Entity]
85
+ #
86
+ # @see Increase::Models::EntityUpdateParams
87
+ def update(entity_id, params = {})
88
+ parsed, options = Increase::EntityUpdateParams.dump_request(params)
89
+ @client.request(
90
+ method: :patch,
91
+ path: ["entities/%1$s", entity_id],
92
+ body: parsed,
93
+ model: Increase::Entity,
94
+ options: options
95
+ )
96
+ end
97
+
67
98
  # Some parameter documentations has been truncated, see
68
99
  # {Increase::Models::EntityListParams} for more details.
69
100
  #
@@ -8,7 +8,7 @@ module Increase
8
8
  #
9
9
  # Create a Physical Card Profile
10
10
  #
11
- # @overload create(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, front_text: nil, request_options: {})
11
+ # @overload create(carrier_image_file_id:, contact_phone:, description:, front_image_file_id:, program_id:, card_stock_reference: nil, carrier_stock_reference: nil, front_text: nil, request_options: {})
12
12
  #
13
13
  # @param carrier_image_file_id [String] The identifier of the File containing the physical card's carrier image.
14
14
  #
@@ -20,6 +20,10 @@ module Increase
20
20
  #
21
21
  # @param program_id [String] The identifier for the Program that this Physical Card Profile falls under.
22
22
  #
23
+ # @param card_stock_reference [String] A reference ID provided by the fulfillment provider for the card stock used. Onl
24
+ #
25
+ # @param carrier_stock_reference [String] A reference ID provided by the fulfillment provider for the carrier stock used.
26
+ #
23
27
  # @param front_text [Increase::Models::PhysicalCardProfileCreateParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt
24
28
  #
25
29
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.62.0"
4
+ VERSION = "1.64.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -169,6 +169,7 @@ require_relative "increase/models/entity_supplemental_document"
169
169
  require_relative "increase/models/entity_update_address_params"
170
170
  require_relative "increase/models/entity_update_beneficial_owner_address_params"
171
171
  require_relative "increase/models/entity_update_industry_code_params"
172
+ require_relative "increase/models/entity_update_params"
172
173
  require_relative "increase/models/event"
173
174
  require_relative "increase/models/event_list_params"
174
175
  require_relative "increase/models/event_retrieve_params"
@@ -74,6 +74,18 @@ module Increase
74
74
  end
75
75
  attr_writer :natural_person
76
76
 
77
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
78
+ # such as money laundering.
79
+ sig { returns(T.nilable(Increase::Entity::RiskRating)) }
80
+ attr_reader :risk_rating
81
+
82
+ sig do
83
+ params(
84
+ risk_rating: T.nilable(Increase::Entity::RiskRating::OrHash)
85
+ ).void
86
+ end
87
+ attr_writer :risk_rating
88
+
77
89
  # The status of the entity.
78
90
  sig { returns(Increase::Entity::Status::TaggedSymbol) }
79
91
  attr_accessor :status
@@ -127,6 +139,7 @@ module Increase
127
139
  idempotency_key: T.nilable(String),
128
140
  joint: T.nilable(Increase::Entity::Joint::OrHash),
129
141
  natural_person: T.nilable(Increase::Entity::NaturalPerson::OrHash),
142
+ risk_rating: T.nilable(Increase::Entity::RiskRating::OrHash),
130
143
  status: Increase::Entity::Status::OrSymbol,
131
144
  structure: Increase::Entity::Structure::OrSymbol,
132
145
  supplemental_documents:
@@ -163,6 +176,9 @@ module Increase
163
176
  # Details of the natural person entity. Will be present if `structure` is equal to
164
177
  # `natural_person`.
165
178
  natural_person:,
179
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
180
+ # such as money laundering.
181
+ risk_rating:,
166
182
  # The status of the entity.
167
183
  status:,
168
184
  # The entity's legal structure.
@@ -195,6 +211,7 @@ module Increase
195
211
  idempotency_key: T.nilable(String),
196
212
  joint: T.nilable(Increase::Entity::Joint),
197
213
  natural_person: T.nilable(Increase::Entity::NaturalPerson),
214
+ risk_rating: T.nilable(Increase::Entity::RiskRating),
198
215
  status: Increase::Entity::Status::TaggedSymbol,
199
216
  structure: Increase::Entity::Structure::TaggedSymbol,
200
217
  supplemental_documents:
@@ -1572,6 +1589,78 @@ module Increase
1572
1589
  end
1573
1590
  end
1574
1591
 
1592
+ class RiskRating < Increase::Internal::Type::BaseModel
1593
+ OrHash =
1594
+ T.type_alias do
1595
+ T.any(Increase::Entity::RiskRating, Increase::Internal::AnyHash)
1596
+ end
1597
+
1598
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1599
+ # rating was performed.
1600
+ sig { returns(Time) }
1601
+ attr_accessor :rated_at
1602
+
1603
+ # The rating given to this entity.
1604
+ sig { returns(Increase::Entity::RiskRating::Rating::TaggedSymbol) }
1605
+ attr_accessor :rating
1606
+
1607
+ # An assessment of the entity’s potential risk of involvement in financial crimes,
1608
+ # such as money laundering.
1609
+ sig do
1610
+ params(
1611
+ rated_at: Time,
1612
+ rating: Increase::Entity::RiskRating::Rating::OrSymbol
1613
+ ).returns(T.attached_class)
1614
+ end
1615
+ def self.new(
1616
+ # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1617
+ # rating was performed.
1618
+ rated_at:,
1619
+ # The rating given to this entity.
1620
+ rating:
1621
+ )
1622
+ end
1623
+
1624
+ sig do
1625
+ override.returns(
1626
+ {
1627
+ rated_at: Time,
1628
+ rating: Increase::Entity::RiskRating::Rating::TaggedSymbol
1629
+ }
1630
+ )
1631
+ end
1632
+ def to_hash
1633
+ end
1634
+
1635
+ # The rating given to this entity.
1636
+ module Rating
1637
+ extend Increase::Internal::Type::Enum
1638
+
1639
+ TaggedSymbol =
1640
+ T.type_alias { T.all(Symbol, Increase::Entity::RiskRating::Rating) }
1641
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
1642
+
1643
+ # Low
1644
+ LOW = T.let(:low, Increase::Entity::RiskRating::Rating::TaggedSymbol)
1645
+
1646
+ # Medium
1647
+ MEDIUM =
1648
+ T.let(:medium, Increase::Entity::RiskRating::Rating::TaggedSymbol)
1649
+
1650
+ # High
1651
+ HIGH =
1652
+ T.let(:high, Increase::Entity::RiskRating::Rating::TaggedSymbol)
1653
+
1654
+ sig do
1655
+ override.returns(
1656
+ T::Array[Increase::Entity::RiskRating::Rating::TaggedSymbol]
1657
+ )
1658
+ end
1659
+ def self.values
1660
+ end
1661
+ end
1662
+ end
1663
+
1575
1664
  # The status of the entity.
1576
1665
  module Status
1577
1666
  extend Increase::Internal::Type::Enum