increase 1.362.0 → 1.364.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 (165) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/client.rb +8 -16
  4. data/lib/increase/models/account_number.rb +51 -81
  5. data/lib/increase/models/account_number_create_params.rb +41 -75
  6. data/lib/increase/models/account_number_list_params.rb +39 -39
  7. data/lib/increase/models/account_number_update_params.rb +48 -79
  8. data/lib/increase/models/ach_transfer.rb +38 -23
  9. data/lib/increase/models/card_payment.rb +6 -0
  10. data/lib/increase/models/card_update_params.rb +12 -8
  11. data/lib/increase/models/check_transfer.rb +58 -44
  12. data/lib/increase/models/check_transfer_create_params.rb +35 -21
  13. data/lib/increase/models/checkbook.rb +352 -0
  14. data/lib/increase/models/checkbook_check.rb +100 -0
  15. data/lib/increase/models/checkbook_check_list_params.rb +61 -0
  16. data/lib/increase/models/checkbook_check_retrieve_params.rb +22 -0
  17. data/lib/increase/models/checkbook_check_stop_params.rb +22 -0
  18. data/lib/increase/models/checkbook_create_params.rb +111 -0
  19. data/lib/increase/models/checkbook_list_params.rb +104 -0
  20. data/lib/increase/models/checkbook_retrieve_params.rb +22 -0
  21. data/lib/increase/models/checkbook_stop_params.rb +22 -0
  22. data/lib/increase/models/declined_transaction.rb +10 -1
  23. data/lib/increase/models/entity.rb +1 -65
  24. data/lib/increase/models/entity_create_params.rb +1 -65
  25. data/lib/increase/models/entity_update_params.rb +1 -57
  26. data/lib/increase/models/export.rb +12 -1
  27. data/lib/increase/models/export_create_params.rb +26 -4
  28. data/lib/increase/models/inbound_ach_transfer.rb +6 -6
  29. data/lib/increase/models/inbound_check_deposit.rb +12 -1
  30. data/lib/increase/models/inbound_real_time_payments_transfer.rb +10 -1
  31. data/lib/increase/models/inbound_real_time_payments_transfer_return_params.rb +36 -0
  32. data/lib/increase/models/real_time_decision.rb +65 -1
  33. data/lib/increase/models/real_time_payments_transfer.rb +21 -1
  34. data/lib/increase/models/simulations/checkbook_mail_params.rb +24 -0
  35. data/lib/increase/models/transaction.rb +27 -5
  36. data/lib/increase/models.rb +21 -20
  37. data/lib/increase/resources/account_numbers.rb +19 -16
  38. data/lib/increase/resources/checkbook_checks.rb +90 -0
  39. data/lib/increase/resources/checkbooks.rb +127 -0
  40. data/lib/increase/resources/entities.rb +2 -12
  41. data/lib/increase/resources/inbound_real_time_payments_transfers.rb +28 -0
  42. data/lib/increase/resources/simulations/checkbooks.rb +38 -0
  43. data/lib/increase/resources/simulations.rb +4 -0
  44. data/lib/increase/version.rb +1 -1
  45. data/lib/increase.rb +14 -14
  46. data/rbi/increase/client.rbi +6 -12
  47. data/rbi/increase/models/account_number.rbi +86 -173
  48. data/rbi/increase/models/account_number_create_params.rbi +87 -165
  49. data/rbi/increase/models/account_number_list_params.rbi +106 -105
  50. data/rbi/increase/models/account_number_update_params.rbi +105 -190
  51. data/rbi/increase/models/ach_transfer.rbi +35 -23
  52. data/rbi/increase/models/card_payment.rbi +14 -0
  53. data/rbi/increase/models/card_update_params.rbi +17 -15
  54. data/rbi/increase/models/check_transfer.rbi +72 -54
  55. data/rbi/increase/models/check_transfer_create_params.rbi +55 -21
  56. data/rbi/increase/models/checkbook.rbi +507 -0
  57. data/rbi/increase/models/checkbook_check.rbi +142 -0
  58. data/rbi/increase/models/checkbook_check_list_params.rbi +96 -0
  59. data/rbi/increase/models/{oauth_connection_retrieve_params.rbi → checkbook_check_retrieve_params.rbi} +8 -8
  60. data/rbi/increase/models/{oauth_application_retrieve_params.rbi → checkbook_check_stop_params.rbi} +8 -11
  61. data/rbi/increase/models/checkbook_create_params.rbi +178 -0
  62. data/rbi/increase/models/checkbook_list_params.rbi +198 -0
  63. data/rbi/increase/models/checkbook_retrieve_params.rbi +40 -0
  64. data/rbi/increase/models/checkbook_stop_params.rbi +40 -0
  65. data/rbi/increase/models/declined_transaction.rbi +8 -0
  66. data/rbi/increase/models/entity.rbi +0 -97
  67. data/rbi/increase/models/entity_create_params.rbi +0 -119
  68. data/rbi/increase/models/entity_update_params.rbi +0 -108
  69. data/rbi/increase/models/export.rbi +15 -3
  70. data/rbi/increase/models/export_create_params.rbi +27 -3
  71. data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
  72. data/rbi/increase/models/inbound_check_deposit.rbi +10 -0
  73. data/rbi/increase/models/inbound_real_time_payments_transfer.rbi +8 -0
  74. data/rbi/increase/models/inbound_real_time_payments_transfer_return_params.rbi +61 -0
  75. data/rbi/increase/models/real_time_decision.rbi +134 -3
  76. data/rbi/increase/models/real_time_payments_transfer.rbi +18 -0
  77. data/rbi/increase/models/simulations/checkbook_mail_params.rbi +45 -0
  78. data/rbi/increase/models/transaction.rbi +33 -3
  79. data/rbi/increase/models.rbi +21 -22
  80. data/rbi/increase/resources/account_numbers.rbi +24 -19
  81. data/rbi/increase/resources/checkbook_checks.rbi +69 -0
  82. data/rbi/increase/resources/checkbooks.rbi +96 -0
  83. data/rbi/increase/resources/entities.rbi +0 -11
  84. data/rbi/increase/resources/inbound_real_time_payments_transfers.rbi +19 -0
  85. data/rbi/increase/resources/simulations/checkbooks.rbi +30 -0
  86. data/rbi/increase/resources/simulations.rbi +3 -0
  87. data/sig/increase/client.rbs +4 -8
  88. data/sig/increase/models/account_number.rbs +34 -66
  89. data/sig/increase/models/account_number_create_params.rbs +30 -64
  90. data/sig/increase/models/account_number_list_params.rbs +44 -44
  91. data/sig/increase/models/account_number_update_params.rbs +39 -77
  92. data/sig/increase/models/ach_transfer.rbs +4 -4
  93. data/sig/increase/models/card_payment.rbs +8 -0
  94. data/sig/increase/models/card_update_params.rbs +7 -11
  95. data/sig/increase/models/check_transfer.rbs +59 -49
  96. data/sig/increase/models/check_transfer_create_params.rbs +20 -12
  97. data/sig/increase/models/checkbook.rbs +272 -0
  98. data/sig/increase/models/checkbook_check.rbs +76 -0
  99. data/sig/increase/models/checkbook_check_list_params.rbs +56 -0
  100. data/sig/increase/models/{oauth_connection_retrieve_params.rbs → checkbook_check_retrieve_params.rbs} +6 -6
  101. data/sig/increase/models/{oauth_application_retrieve_params.rbs → checkbook_check_stop_params.rbs} +6 -6
  102. data/sig/increase/models/checkbook_create_params.rbs +90 -0
  103. data/sig/increase/models/checkbook_list_params.rbs +97 -0
  104. data/sig/increase/models/checkbook_retrieve_params.rbs +23 -0
  105. data/sig/increase/models/checkbook_stop_params.rbs +23 -0
  106. data/sig/increase/models/declined_transaction.rbs +5 -0
  107. data/sig/increase/models/entity.rbs +0 -46
  108. data/sig/increase/models/entity_create_params.rbs +0 -55
  109. data/sig/increase/models/entity_update_params.rbs +0 -48
  110. data/sig/increase/models/export.rbs +13 -3
  111. data/sig/increase/models/export_create_params.rbs +7 -0
  112. data/sig/increase/models/inbound_check_deposit.rbs +5 -0
  113. data/sig/increase/models/inbound_real_time_payments_transfer.rbs +5 -0
  114. data/sig/increase/models/inbound_real_time_payments_transfer_return_params.rbs +30 -0
  115. data/sig/increase/models/real_time_decision.rbs +69 -3
  116. data/sig/increase/models/real_time_payments_transfer.rbs +10 -0
  117. data/sig/increase/models/simulations/checkbook_mail_params.rbs +25 -0
  118. data/sig/increase/models/transaction.rbs +26 -5
  119. data/sig/increase/models.rbs +20 -20
  120. data/sig/increase/resources/account_numbers.rbs +5 -5
  121. data/sig/increase/resources/checkbook_checks.rbs +26 -0
  122. data/sig/increase/resources/checkbooks.rbs +33 -0
  123. data/sig/increase/resources/entities.rbs +0 -3
  124. data/sig/increase/resources/inbound_real_time_payments_transfers.rbs +6 -0
  125. data/sig/increase/resources/simulations/checkbooks.rbs +14 -0
  126. data/sig/increase/resources/simulations.rbs +2 -0
  127. metadata +45 -45
  128. data/lib/increase/models/group.rb +0 -57
  129. data/lib/increase/models/group_retrieve_params.rb +0 -14
  130. data/lib/increase/models/oauth_application.rb +0 -111
  131. data/lib/increase/models/oauth_application_list_params.rb +0 -129
  132. data/lib/increase/models/oauth_application_retrieve_params.rb +0 -22
  133. data/lib/increase/models/oauth_connection.rb +0 -107
  134. data/lib/increase/models/oauth_connection_list_params.rb +0 -88
  135. data/lib/increase/models/oauth_connection_retrieve_params.rb +0 -22
  136. data/lib/increase/models/oauth_token.rb +0 -76
  137. data/lib/increase/models/oauth_token_create_params.rb +0 -85
  138. data/lib/increase/resources/groups.rb +0 -32
  139. data/lib/increase/resources/oauth_applications.rb +0 -68
  140. data/lib/increase/resources/oauth_connections.rb +0 -70
  141. data/lib/increase/resources/oauth_tokens.rb +0 -54
  142. data/rbi/increase/models/group.rbi +0 -74
  143. data/rbi/increase/models/group_retrieve_params.rbi +0 -27
  144. data/rbi/increase/models/oauth_application.rbi +0 -146
  145. data/rbi/increase/models/oauth_application_list_params.rbi +0 -263
  146. data/rbi/increase/models/oauth_connection.rbi +0 -142
  147. data/rbi/increase/models/oauth_connection_list_params.rbi +0 -187
  148. data/rbi/increase/models/oauth_token.rbi +0 -106
  149. data/rbi/increase/models/oauth_token_create_params.rbi +0 -133
  150. data/rbi/increase/resources/groups.rbi +0 -21
  151. data/rbi/increase/resources/oauth_applications.rbi +0 -50
  152. data/rbi/increase/resources/oauth_connections.rbi +0 -52
  153. data/rbi/increase/resources/oauth_tokens.rbi +0 -44
  154. data/sig/increase/models/group.rbs +0 -36
  155. data/sig/increase/models/group_retrieve_params.rbs +0 -15
  156. data/sig/increase/models/oauth_application.rbs +0 -74
  157. data/sig/increase/models/oauth_application_list_params.rbs +0 -123
  158. data/sig/increase/models/oauth_connection.rbs +0 -74
  159. data/sig/increase/models/oauth_connection_list_params.rbs +0 -86
  160. data/sig/increase/models/oauth_token.rbs +0 -55
  161. data/sig/increase/models/oauth_token_create_params.rbs +0 -68
  162. data/sig/increase/resources/groups.rbs +0 -11
  163. data/sig/increase/resources/oauth_applications.rbs +0 -20
  164. data/sig/increase/resources/oauth_connections.rbs +0 -20
  165. data/sig/increase/resources/oauth_tokens.rbs +0 -16
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::Checkbooks#create
6
+ class CheckbookCreateParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute account_number_id
11
+ # The identifier of the Account Number that the checks will draw from. The Account
12
+ # Number must be active.
13
+ #
14
+ # @return [String]
15
+ required :account_number_id, String
16
+
17
+ # @!attribute mailing_address
18
+ # The destination address that the Checkbook will be mailed to.
19
+ #
20
+ # @return [Increase::Models::CheckbookCreateParams::MailingAddress]
21
+ required :mailing_address, -> { Increase::CheckbookCreateParams::MailingAddress }
22
+
23
+ # @!attribute payer
24
+ # The payer of the checks. This will be printed on the top-left corner of each
25
+ # check. This should be an array of up to 4 elements, each of which represents a
26
+ # line of the payer.
27
+ #
28
+ # @return [Array<Increase::Models::CheckbookCreateParams::Payer>]
29
+ required :payer, -> { Increase::Internal::Type::ArrayOf[Increase::CheckbookCreateParams::Payer] }
30
+
31
+ # @!method initialize(account_number_id:, mailing_address:, payer:, request_options: {})
32
+ # @param account_number_id [String]
33
+ # The identifier of the Account Number that the checks will draw from. The Account
34
+ # Number must be active.
35
+ #
36
+ # @param mailing_address [Increase::Models::CheckbookCreateParams::MailingAddress]
37
+ # The destination address that the Checkbook will be mailed to.
38
+ #
39
+ # @param payer [Array<Increase::Models::CheckbookCreateParams::Payer>]
40
+ # The payer of the checks. This will be printed on the top-left corner of each
41
+ # check. This should be an array of up to 4 elements, each of which represents a
42
+ # line of the payer.
43
+ #
44
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
45
+
46
+ class MailingAddress < Increase::Internal::Type::BaseModel
47
+ # @!attribute city
48
+ # The city of the destination address.
49
+ #
50
+ # @return [String]
51
+ required :city, String
52
+
53
+ # @!attribute line1
54
+ # The first line of the destination address.
55
+ #
56
+ # @return [String]
57
+ required :line1, String
58
+
59
+ # @!attribute name
60
+ # The recipient at the destination address.
61
+ #
62
+ # @return [String]
63
+ required :name, String
64
+
65
+ # @!attribute postal_code
66
+ # The postal code of the destination address.
67
+ #
68
+ # @return [String]
69
+ required :postal_code, String
70
+
71
+ # @!attribute state
72
+ # The US state of the destination address.
73
+ #
74
+ # @return [String]
75
+ required :state, String
76
+
77
+ # @!attribute line2
78
+ # The second line of the destination address.
79
+ #
80
+ # @return [String, nil]
81
+ optional :line2, String
82
+
83
+ # @!method initialize(city:, line1:, name:, postal_code:, state:, line2: nil)
84
+ # The destination address that the Checkbook will be mailed to.
85
+ #
86
+ # @param city [String] The city of the destination address.
87
+ #
88
+ # @param line1 [String] The first line of the destination address.
89
+ #
90
+ # @param name [String] The recipient at the destination address.
91
+ #
92
+ # @param postal_code [String] The postal code of the destination address.
93
+ #
94
+ # @param state [String] The US state of the destination address.
95
+ #
96
+ # @param line2 [String] The second line of the destination address.
97
+ end
98
+
99
+ class Payer < Increase::Internal::Type::BaseModel
100
+ # @!attribute contents
101
+ # The contents of the line.
102
+ #
103
+ # @return [String]
104
+ required :contents, String
105
+
106
+ # @!method initialize(contents:)
107
+ # @param contents [String] The contents of the line.
108
+ end
109
+ end
110
+ end
111
+ end
@@ -0,0 +1,104 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::Checkbooks#list
6
+ class CheckbookListParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute account_number_id
11
+ # Filter Checkbooks to those attached to the specified Account Number.
12
+ #
13
+ # @return [String, nil]
14
+ optional :account_number_id, String
15
+
16
+ # @!attribute cursor
17
+ # Return the page of entries after this one.
18
+ #
19
+ # @return [String, nil]
20
+ optional :cursor, String
21
+
22
+ # @!attribute idempotency_key
23
+ # Filter records to the one with the specified `idempotency_key` you chose for
24
+ # that object. This value is unique across Increase and is used to ensure that a
25
+ # request is only processed once. Learn more about
26
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
27
+ #
28
+ # @return [String, nil]
29
+ optional :idempotency_key, String
30
+
31
+ # @!attribute limit
32
+ # Limit the size of the list that is returned. The default (and maximum) is 100
33
+ # objects.
34
+ #
35
+ # Defaults to `100`.
36
+ #
37
+ # @return [Integer, nil]
38
+ optional :limit, Integer
39
+
40
+ # @!attribute status
41
+ #
42
+ # @return [Increase::Models::CheckbookListParams::Status, nil]
43
+ optional :status, -> { Increase::CheckbookListParams::Status }
44
+
45
+ # @!method initialize(account_number_id: nil, cursor: nil, idempotency_key: nil, limit: nil, status: nil, request_options: {})
46
+ # @param account_number_id [String] Filter Checkbooks to those attached to the specified Account Number.
47
+ #
48
+ # @param cursor [String] Return the page of entries after this one.
49
+ #
50
+ # @param idempotency_key [String]
51
+ # Filter records to the one with the specified `idempotency_key` you chose for
52
+ # that object. This value is unique across Increase and is used to ensure that a
53
+ # request is only processed once. Learn more about
54
+ # [idempotency](https://increase.com/documentation/idempotency-keys).
55
+ #
56
+ # @param limit [Integer]
57
+ # Limit the size of the list that is returned. The default (and maximum) is 100
58
+ # objects.
59
+ #
60
+ # Defaults to `100`.
61
+ #
62
+ # @param status [Increase::Models::CheckbookListParams::Status]
63
+ #
64
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
65
+
66
+ class Status < Increase::Internal::Type::BaseModel
67
+ # @!attribute in_
68
+ # Filter Checkbooks for those with the specified status or statuses. For GET
69
+ # requests, this should be encoded as a comma-delimited string, such as
70
+ # `?in=one,two,three`.
71
+ #
72
+ # @return [Array<Symbol, Increase::Models::CheckbookListParams::Status::In>, nil]
73
+ optional :in_,
74
+ -> { Increase::Internal::Type::ArrayOf[enum: Increase::CheckbookListParams::Status::In] },
75
+ api_name: :in
76
+
77
+ # @!method initialize(in_: nil)
78
+ # @param in_ [Array<Symbol, Increase::Models::CheckbookListParams::Status::In>]
79
+ # Filter Checkbooks for those with the specified status or statuses. For GET
80
+ # requests, this should be encoded as a comma-delimited string, such as
81
+ # `?in=one,two,three`.
82
+
83
+ module In
84
+ extend Increase::Internal::Type::Enum
85
+
86
+ # The Checkbook is pending submission to the printer.
87
+ PENDING_SUBMISSION = :pending_submission
88
+
89
+ # The Checkbook has been submitted to the printer and is pending mailing.
90
+ PENDING_MAILING = :pending_mailing
91
+
92
+ # The Checkbook has been mailed.
93
+ MAILED = :mailed
94
+
95
+ # The Checkbook has been stopped and its checks can no longer be deposited.
96
+ STOPPED = :stopped
97
+
98
+ # @!method self.values
99
+ # @return [Array<Symbol>]
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::Checkbooks#retrieve
6
+ class CheckbookRetrieveParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute checkbook_id
11
+ # The identifier of the Checkbook.
12
+ #
13
+ # @return [String]
14
+ required :checkbook_id, String
15
+
16
+ # @!method initialize(checkbook_id:, request_options: {})
17
+ # @param checkbook_id [String] The identifier of the Checkbook.
18
+ #
19
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::Checkbooks#stop
6
+ class CheckbookStopParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute checkbook_id
11
+ # The identifier of the Checkbook to stop.
12
+ #
13
+ # @return [String]
14
+ required :checkbook_id, String
15
+
16
+ # @!method initialize(checkbook_id:, request_options: {})
17
+ # @param checkbook_id [String] The identifier of the Checkbook to stop.
18
+ #
19
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -2166,6 +2166,12 @@ module Increase
2166
2166
  # @return [String, nil]
2167
2167
  required :check_transfer_id, String, nil?: true
2168
2168
 
2169
+ # @!attribute checkbook_check_id
2170
+ # The identifier of the Checkbook Check object associated with this decline.
2171
+ #
2172
+ # @return [String, nil]
2173
+ required :checkbook_check_id, String, nil?: true
2174
+
2169
2175
  # @!attribute front_image_file_id
2170
2176
  # The identifier of the API File object containing an image of the front of the
2171
2177
  # declined check.
@@ -2185,7 +2191,7 @@ module Increase
2185
2191
  # @return [Symbol, Increase::Models::DeclinedTransaction::Source::CheckDecline::Reason]
2186
2192
  required :reason, enum: -> { Increase::DeclinedTransaction::Source::CheckDecline::Reason }
2187
2193
 
2188
- # @!method initialize(amount:, auxiliary_on_us:, back_image_file_id:, check_transfer_id:, front_image_file_id:, inbound_check_deposit_id:, reason:)
2194
+ # @!method initialize(amount:, auxiliary_on_us:, back_image_file_id:, check_transfer_id:, checkbook_check_id:, front_image_file_id:, inbound_check_deposit_id:, reason:)
2189
2195
  # A Check Decline object. This field will be present in the JSON response if and
2190
2196
  # only if `category` is equal to `check_decline`.
2191
2197
  #
@@ -2203,6 +2209,9 @@ module Increase
2203
2209
  # @param check_transfer_id [String, nil]
2204
2210
  # The identifier of the Check Transfer object associated with this decline.
2205
2211
  #
2212
+ # @param checkbook_check_id [String, nil]
2213
+ # The identifier of the Checkbook Check object associated with this decline.
2214
+ #
2206
2215
  # @param front_image_file_id [String, nil]
2207
2216
  # The identifier of the API File object containing an image of the front of the
2208
2217
  # declined check.
@@ -31,12 +31,6 @@ module Increase
31
31
  # @return [String, nil]
32
32
  required :creating_entity_onboarding_session_id, String, nil?: true
33
33
 
34
- # @!attribute description
35
- # The entity's description for display purposes.
36
- #
37
- # @return [String, nil]
38
- required :description, String, nil?: true
39
-
40
34
  # @!attribute details_confirmed_at
41
35
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
42
36
  # Entity's details were most recently confirmed.
@@ -72,13 +66,6 @@ module Increase
72
66
  # @return [Increase::Models::Entity::NaturalPerson, nil]
73
67
  required :natural_person, -> { Increase::Entity::NaturalPerson }, nil?: true
74
68
 
75
- # @!attribute risk_rating
76
- # An assessment of the entity’s potential risk of involvement in financial crimes,
77
- # such as money laundering.
78
- #
79
- # @return [Increase::Models::Entity::RiskRating, nil]
80
- required :risk_rating, -> { Increase::Entity::RiskRating }, nil?: true
81
-
82
69
  # @!attribute sole_proprietorship
83
70
  # Details of the sole proprietorship entity. Will be present if `structure` is
84
71
  # equal to `sole_proprietorship`.
@@ -142,7 +129,7 @@ module Increase
142
129
  # @return [Increase::Models::Entity::Validation, nil]
143
130
  required :validation, -> { Increase::Entity::Validation }, nil?: true
144
131
 
145
- # @!method initialize(id:, corporation:, created_at:, creating_entity_onboarding_session_id:, description:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, risk_rating:, sole_proprietorship:, status:, structure:, supplemental_documents:, terms_agreements:, third_party_verification:, trust:, type:, validation:)
132
+ # @!method initialize(id:, corporation:, created_at:, creating_entity_onboarding_session_id:, details_confirmed_at:, government_authority:, idempotency_key:, joint:, natural_person:, sole_proprietorship:, status:, structure:, supplemental_documents:, terms_agreements:, third_party_verification:, trust:, type:, validation:)
146
133
  # Entities are the legal entities that own accounts. They can be people,
147
134
  # corporations, joint accounts, trusts, or government authorities. To learn more,
148
135
  # see [Entities](/documentation/entities).
@@ -161,8 +148,6 @@ module Increase
161
148
  # The identifier of the Entity Onboarding Session that was used to create this
162
149
  # Entity, if any.
163
150
  #
164
- # @param description [String, nil] The entity's description for display purposes.
165
- #
166
151
  # @param details_confirmed_at [Time, nil]
167
152
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the
168
153
  # Entity's details were most recently confirmed.
@@ -183,10 +168,6 @@ module Increase
183
168
  # Details of the natural person entity. Will be present if `structure` is equal to
184
169
  # `natural_person`.
185
170
  #
186
- # @param risk_rating [Increase::Models::Entity::RiskRating, nil]
187
- # An assessment of the entity’s potential risk of involvement in financial crimes,
188
- # such as money laundering.
189
- #
190
171
  # @param sole_proprietorship [Increase::Models::Entity::SoleProprietorship, nil]
191
172
  # Details of the sole proprietorship entity. Will be present if `structure` is
192
173
  # equal to `sole_proprietorship`.
@@ -1129,51 +1110,6 @@ module Increase
1129
1110
  end
1130
1111
  end
1131
1112
 
1132
- # @see Increase::Models::Entity#risk_rating
1133
- class RiskRating < Increase::Internal::Type::BaseModel
1134
- # @!attribute rated_at
1135
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1136
- # rating was performed.
1137
- #
1138
- # @return [Time]
1139
- required :rated_at, Time
1140
-
1141
- # @!attribute rating
1142
- # The rating given to this entity.
1143
- #
1144
- # @return [Symbol, Increase::Models::Entity::RiskRating::Rating]
1145
- required :rating, enum: -> { Increase::Entity::RiskRating::Rating }
1146
-
1147
- # @!method initialize(rated_at:, rating:)
1148
- # An assessment of the entity’s potential risk of involvement in financial crimes,
1149
- # such as money laundering.
1150
- #
1151
- # @param rated_at [Time]
1152
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1153
- # rating was performed.
1154
- #
1155
- # @param rating [Symbol, Increase::Models::Entity::RiskRating::Rating] The rating given to this entity.
1156
-
1157
- # The rating given to this entity.
1158
- #
1159
- # @see Increase::Models::Entity::RiskRating#rating
1160
- module Rating
1161
- extend Increase::Internal::Type::Enum
1162
-
1163
- # Minimal risk of involvement in financial crime.
1164
- LOW = :low
1165
-
1166
- # Moderate risk of involvement in financial crime.
1167
- MEDIUM = :medium
1168
-
1169
- # Elevated risk of involvement in financial crime.
1170
- HIGH = :high
1171
-
1172
- # @!method self.values
1173
- # @return [Array<Symbol>]
1174
- end
1175
- end
1176
-
1177
1113
  # @see Increase::Models::Entity#sole_proprietorship
1178
1114
  class SoleProprietorship < Increase::Internal::Type::BaseModel
1179
1115
  # @!attribute address
@@ -20,12 +20,6 @@ module Increase
20
20
  # @return [Increase::Models::EntityCreateParams::Corporation, nil]
21
21
  optional :corporation, -> { Increase::EntityCreateParams::Corporation }
22
22
 
23
- # @!attribute description
24
- # The description you choose to give the entity.
25
- #
26
- # @return [String, nil]
27
- optional :description, String
28
-
29
23
  # @!attribute government_authority
30
24
  # Details of the Government Authority entity to create. Required if `structure` is
31
25
  # equal to `government_authority`.
@@ -49,13 +43,6 @@ module Increase
49
43
  # @return [Increase::Models::EntityCreateParams::NaturalPerson, nil]
50
44
  optional :natural_person, -> { Increase::EntityCreateParams::NaturalPerson }
51
45
 
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
-
59
46
  # @!attribute sole_proprietorship
60
47
  # Details of the sole proprietorship entity to create. Required if `structure` is
61
48
  # equal to `sole_proprietorship`.
@@ -93,15 +80,13 @@ module Increase
93
80
  # @return [Increase::Models::EntityCreateParams::Trust, nil]
94
81
  optional :trust, -> { Increase::EntityCreateParams::Trust }
95
82
 
96
- # @!method initialize(structure:, corporation: nil, description: nil, government_authority: nil, joint: nil, natural_person: nil, risk_rating: nil, sole_proprietorship: nil, supplemental_documents: nil, terms_agreements: nil, third_party_verification: nil, trust: nil, request_options: {})
83
+ # @!method initialize(structure:, corporation: nil, government_authority: nil, joint: nil, natural_person: nil, sole_proprietorship: nil, supplemental_documents: nil, terms_agreements: nil, third_party_verification: nil, trust: nil, request_options: {})
97
84
  # @param structure [Symbol, Increase::Models::EntityCreateParams::Structure] The type of Entity to create.
98
85
  #
99
86
  # @param corporation [Increase::Models::EntityCreateParams::Corporation]
100
87
  # Details of the corporation entity to create. Required if `structure` is equal to
101
88
  # `corporation`.
102
89
  #
103
- # @param description [String] The description you choose to give the entity.
104
- #
105
90
  # @param government_authority [Increase::Models::EntityCreateParams::GovernmentAuthority]
106
91
  # Details of the Government Authority entity to create. Required if `structure` is
107
92
  # equal to `government_authority`.
@@ -116,10 +101,6 @@ module Increase
116
101
  # `social_security_number` or `individual_taxpayer_identification_number`
117
102
  # identification methods.
118
103
  #
119
- # @param risk_rating [Increase::Models::EntityCreateParams::RiskRating]
120
- # An assessment of the entity's potential risk of involvement in financial crimes,
121
- # such as money laundering.
122
- #
123
104
  # @param sole_proprietorship [Increase::Models::EntityCreateParams::SoleProprietorship]
124
105
  # Details of the sole proprietorship entity to create. Required if `structure` is
125
106
  # equal to `sole_proprietorship`.
@@ -1675,51 +1656,6 @@ module Increase
1675
1656
  end
1676
1657
  end
1677
1658
 
1678
- class RiskRating < Increase::Internal::Type::BaseModel
1679
- # @!attribute rated_at
1680
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1681
- # rating was performed.
1682
- #
1683
- # @return [Time]
1684
- required :rated_at, Time
1685
-
1686
- # @!attribute rating
1687
- # The rating given to this entity.
1688
- #
1689
- # @return [Symbol, Increase::Models::EntityCreateParams::RiskRating::Rating]
1690
- required :rating, enum: -> { Increase::EntityCreateParams::RiskRating::Rating }
1691
-
1692
- # @!method initialize(rated_at:, rating:)
1693
- # An assessment of the entity's potential risk of involvement in financial crimes,
1694
- # such as money laundering.
1695
- #
1696
- # @param rated_at [Time]
1697
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
1698
- # rating was performed.
1699
- #
1700
- # @param rating [Symbol, Increase::Models::EntityCreateParams::RiskRating::Rating]
1701
- # The rating given to this entity.
1702
-
1703
- # The rating given to this entity.
1704
- #
1705
- # @see Increase::Models::EntityCreateParams::RiskRating#rating
1706
- module Rating
1707
- extend Increase::Internal::Type::Enum
1708
-
1709
- # Minimal risk of involvement in financial crime.
1710
- LOW = :low
1711
-
1712
- # Moderate risk of involvement in financial crime.
1713
- MEDIUM = :medium
1714
-
1715
- # Elevated risk of involvement in financial crime.
1716
- HIGH = :high
1717
-
1718
- # @!method self.values
1719
- # @return [Array<Symbol>]
1720
- end
1721
- end
1722
-
1723
1659
  class SoleProprietorship < Increase::Internal::Type::BaseModel
1724
1660
  # @!attribute address
1725
1661
  # The sole proprietorship's business address. Mail receiving locations like PO
@@ -42,13 +42,6 @@ module Increase
42
42
  # @return [Increase::Models::EntityUpdateParams::NaturalPerson, nil]
43
43
  optional :natural_person, -> { Increase::EntityUpdateParams::NaturalPerson }
44
44
 
45
- # @!attribute risk_rating
46
- # An assessment of the entity’s potential risk of involvement in financial crimes,
47
- # such as money laundering.
48
- #
49
- # @return [Increase::Models::EntityUpdateParams::RiskRating, nil]
50
- optional :risk_rating, -> { Increase::EntityUpdateParams::RiskRating }
51
-
52
45
  # @!attribute sole_proprietorship
53
46
  # Details of the sole proprietorship entity to update. If you specify this
54
47
  # parameter and the entity is not a sole proprietorship, the request will fail.
@@ -79,7 +72,7 @@ module Increase
79
72
  # @return [Increase::Models::EntityUpdateParams::Trust, nil]
80
73
  optional :trust, -> { Increase::EntityUpdateParams::Trust }
81
74
 
82
- # @!method initialize(entity_id:, corporation: nil, details_confirmed_at: nil, government_authority: nil, natural_person: nil, risk_rating: nil, sole_proprietorship: nil, terms_agreements: nil, third_party_verification: nil, trust: nil, request_options: {})
75
+ # @!method initialize(entity_id:, corporation: nil, details_confirmed_at: nil, government_authority: nil, natural_person: nil, sole_proprietorship: nil, terms_agreements: nil, third_party_verification: nil, trust: nil, request_options: {})
83
76
  # @param entity_id [String] The entity identifier.
84
77
  #
85
78
  # @param corporation [Increase::Models::EntityUpdateParams::Corporation]
@@ -99,10 +92,6 @@ module Increase
99
92
  # Details of the natural person entity to update. If you specify this parameter
100
93
  # and the entity is not a natural person, the request will fail.
101
94
  #
102
- # @param risk_rating [Increase::Models::EntityUpdateParams::RiskRating]
103
- # An assessment of the entity’s potential risk of involvement in financial crimes,
104
- # such as money laundering.
105
- #
106
95
  # @param sole_proprietorship [Increase::Models::EntityUpdateParams::SoleProprietorship]
107
96
  # Details of the sole proprietorship entity to update. If you specify this
108
97
  # parameter and the entity is not a sole proprietorship, the request will fail.
@@ -730,51 +719,6 @@ module Increase
730
719
  end
731
720
  end
732
721
 
733
- class RiskRating < Increase::Internal::Type::BaseModel
734
- # @!attribute rated_at
735
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
736
- # rating was performed.
737
- #
738
- # @return [Time]
739
- required :rated_at, Time
740
-
741
- # @!attribute rating
742
- # The rating given to this entity.
743
- #
744
- # @return [Symbol, Increase::Models::EntityUpdateParams::RiskRating::Rating]
745
- required :rating, enum: -> { Increase::EntityUpdateParams::RiskRating::Rating }
746
-
747
- # @!method initialize(rated_at:, rating:)
748
- # An assessment of the entity’s potential risk of involvement in financial crimes,
749
- # such as money laundering.
750
- #
751
- # @param rated_at [Time]
752
- # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the risk
753
- # rating was performed.
754
- #
755
- # @param rating [Symbol, Increase::Models::EntityUpdateParams::RiskRating::Rating]
756
- # The rating given to this entity.
757
-
758
- # The rating given to this entity.
759
- #
760
- # @see Increase::Models::EntityUpdateParams::RiskRating#rating
761
- module Rating
762
- extend Increase::Internal::Type::Enum
763
-
764
- # Minimal risk of involvement in financial crime.
765
- LOW = :low
766
-
767
- # Moderate risk of involvement in financial crime.
768
- MEDIUM = :medium
769
-
770
- # Elevated risk of involvement in financial crime.
771
- HIGH = :high
772
-
773
- # @!method self.values
774
- # @return [Array<Symbol>]
775
- end
776
- end
777
-
778
722
  class SoleProprietorship < Increase::Internal::Type::BaseModel
779
723
  # @!attribute address
780
724
  # The sole proprietorship's business address. Mail receiving locations like PO
@@ -535,13 +535,24 @@ module Increase
535
535
  # @return [Increase::Models::Export::FeeCsv::CreatedAt, nil]
536
536
  required :created_at, -> { Increase::Export::FeeCsv::CreatedAt }, nil?: true
537
537
 
538
- # @!method initialize(created_at:)
538
+ # @!attribute fee_statement_period_start
539
+ # Filter fees by the UTC start date of their fee statement's period, such as
540
+ # `2026-08-01`.
541
+ #
542
+ # @return [Date, nil]
543
+ required :fee_statement_period_start, Date, nil?: true
544
+
545
+ # @!method initialize(created_at:, fee_statement_period_start:)
539
546
  # Details of the fee CSV export. This field will be present when the `category` is
540
547
  # equal to `fee_csv`.
541
548
  #
542
549
  # @param created_at [Increase::Models::Export::FeeCsv::CreatedAt, nil]
543
550
  # Filter fees by their created date. The time range must not include any fees on
544
551
  # an open fee statement.
552
+ #
553
+ # @param fee_statement_period_start [Date, nil]
554
+ # Filter fees by the UTC start date of their fee statement's period, such as
555
+ # `2026-08-01`.
545
556
 
546
557
  # @see Increase::Models::Export::FeeCsv#created_at
547
558
  class CreatedAt < Increase::Internal::Type::BaseModel
@@ -359,22 +359,41 @@ module Increase
359
359
 
360
360
  class FeeCsv < Increase::Internal::Type::BaseModel
361
361
  # @!attribute created_at
362
- # Filter results by time range on the `created_at` attribute.
362
+ # Filter exported Fees by the time they were created. This suits historical
363
+ # exports across many fee statements. To get all of the Fees for a given fee
364
+ # statement period, we recommend using `fee_statement_period_start` instead. The
365
+ # time range must not include any Fees on an open fee statement.
363
366
  #
364
367
  # @return [Increase::Models::ExportCreateParams::FeeCsv::CreatedAt, nil]
365
368
  optional :created_at, -> { Increase::ExportCreateParams::FeeCsv::CreatedAt }
366
369
 
370
+ # @!attribute fee_statement_period_start
371
+ # Filter exported Fees to the fee statements whose period starts on this UTC date,
372
+ # such as `2026-08-01`. Use this filter to export all of the Fees on a fee
373
+ # statement. The matching fee statements must be closed.
374
+ #
375
+ # @return [Date, nil]
376
+ optional :fee_statement_period_start, Date
377
+
367
378
  # @!attribute program_id
368
379
  # Filter exported Fees to the specified Program.
369
380
  #
370
381
  # @return [String, nil]
371
382
  optional :program_id, String
372
383
 
373
- # @!method initialize(created_at: nil, program_id: nil)
384
+ # @!method initialize(created_at: nil, fee_statement_period_start: nil, program_id: nil)
374
385
  # Options for the created export. Required if `category` is equal to `fee_csv`.
375
386
  #
376
387
  # @param created_at [Increase::Models::ExportCreateParams::FeeCsv::CreatedAt]
377
- # Filter results by time range on the `created_at` attribute.
388
+ # Filter exported Fees by the time they were created. This suits historical
389
+ # exports across many fee statements. To get all of the Fees for a given fee
390
+ # statement period, we recommend using `fee_statement_period_start` instead. The
391
+ # time range must not include any Fees on an open fee statement.
392
+ #
393
+ # @param fee_statement_period_start [Date]
394
+ # Filter exported Fees to the fee statements whose period starts on this UTC date,
395
+ # such as `2026-08-01`. Use this filter to export all of the Fees on a fee
396
+ # statement. The matching fee statements must be closed.
378
397
  #
379
398
  # @param program_id [String] Filter exported Fees to the specified Program.
380
399
 
@@ -409,7 +428,10 @@ module Increase
409
428
  optional :on_or_before, Time
410
429
 
411
430
  # @!method initialize(after: nil, before: nil, on_or_after: nil, on_or_before: nil)
412
- # Filter results by time range on the `created_at` attribute.
431
+ # Filter exported Fees by the time they were created. This suits historical
432
+ # exports across many fee statements. To get all of the Fees for a given fee
433
+ # statement period, we recommend using `fee_statement_period_start` instead. The
434
+ # time range must not include any Fees on an open fee statement.
413
435
  #
414
436
  # @param after [Time]
415
437
  # Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)