modern_treasury 0.11.0 → 0.12.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 (116) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +31 -0
  3. data/README.md +10 -1
  4. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
  5. data/lib/modern_treasury/internal/util.rb +7 -2
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
  7. data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
  8. data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
  9. data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
  10. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
  11. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
  12. data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
  13. data/lib/modern_treasury/models/expected_payment.rb +69 -1
  14. data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
  15. data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
  16. data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
  17. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
  18. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
  19. data/lib/modern_treasury/models/internal_account.rb +10 -1
  20. data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
  21. data/lib/modern_treasury/models/invoice.rb +2 -0
  22. data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
  23. data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
  24. data/lib/modern_treasury/models/ledger_entry.rb +10 -1
  25. data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
  26. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
  27. data/lib/modern_treasury/models/legal_entity.rb +61 -11
  28. data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
  29. data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
  30. data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
  31. data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
  32. data/lib/modern_treasury/models/payment_order.rb +4 -0
  33. data/lib/modern_treasury/models/payment_reference.rb +4 -0
  34. data/lib/modern_treasury/models/return_object.rb +5 -0
  35. data/lib/modern_treasury/models/transaction.rb +1 -0
  36. data/lib/modern_treasury/models.rb +4 -0
  37. data/lib/modern_treasury/resources/expected_payments.rb +18 -2
  38. data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
  39. data/lib/modern_treasury/resources/invoices.rb +2 -10
  40. data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
  41. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
  42. data/lib/modern_treasury/resources/legal_entities.rb +27 -3
  43. data/lib/modern_treasury/version.rb +1 -1
  44. data/lib/modern_treasury.rb +3 -0
  45. data/manifest.yaml +1 -0
  46. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
  47. data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
  48. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
  49. data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
  50. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
  51. data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
  52. data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
  53. data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
  54. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
  55. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
  56. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
  57. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
  58. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
  59. data/rbi/modern_treasury/models/internal_account.rbi +10 -0
  60. data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
  61. data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
  62. data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
  63. data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
  64. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
  65. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
  66. data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
  67. data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
  68. data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
  69. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
  70. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
  71. data/rbi/modern_treasury/models/payment_order.rbi +20 -0
  72. data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
  73. data/rbi/modern_treasury/models/return_object.rbi +22 -0
  74. data/rbi/modern_treasury/models/transaction.rbi +5 -0
  75. data/rbi/modern_treasury/models.rbi +5 -0
  76. data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
  77. data/rbi/modern_treasury/resources/internal_accounts.rbi +3 -0
  78. data/rbi/modern_treasury/resources/invoices.rbi +0 -16
  79. data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
  80. data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
  81. data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
  82. data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
  83. data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
  84. data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
  85. data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
  86. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
  87. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
  88. data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
  89. data/sig/modern_treasury/models/expected_payment.rbs +42 -0
  90. data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
  91. data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
  92. data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
  93. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
  94. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
  95. data/sig/modern_treasury/models/internal_account.rbs +5 -0
  96. data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
  97. data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
  98. data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
  99. data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
  100. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
  101. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
  102. data/sig/modern_treasury/models/legal_entity.rbs +38 -8
  103. data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
  104. data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
  105. data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
  106. data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
  107. data/sig/modern_treasury/models/payment_order.rbs +8 -0
  108. data/sig/modern_treasury/models/payment_reference.rbs +8 -0
  109. data/sig/modern_treasury/models/return_object.rbs +10 -0
  110. data/sig/modern_treasury/models/transaction.rbs +2 -0
  111. data/sig/modern_treasury/models.rbs +4 -0
  112. data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
  113. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  114. data/sig/modern_treasury/resources/invoices.rbs +0 -4
  115. data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
  116. metadata +8 -2
@@ -8,7 +8,7 @@ module ModernTreasury
8
8
  #
9
9
  # create legal_entity
10
10
  #
11
- # @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
11
+ # @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
12
12
  #
13
13
  # @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType] The type of legal entity.
14
14
  #
@@ -16,12 +16,16 @@ module ModernTreasury
16
16
  #
17
17
  # @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
18
18
  #
19
+ # @param business_description [String, nil] A description of the business.
20
+ #
19
21
  # @param business_name [String, nil] The business's legal business name.
20
22
  #
21
23
  # @param citizenship_country [String, nil] The country of citizenship for an individual.
22
24
  #
23
25
  # @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
24
26
  #
27
+ # @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
28
+ #
25
29
  # @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
26
30
  #
27
31
  # @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
@@ -30,15 +34,19 @@ module ModernTreasury
30
34
  #
31
35
  # @param email [String, nil] The entity's primary email.
32
36
  #
37
+ # @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in entity's local currency.
38
+ #
33
39
  # @param first_name [String, nil] An individual's first name.
34
40
  #
35
41
  # @param identifications [Array<ModernTreasury::Models::IdentificationCreateRequest>] A list of identifications for the legal entity.
36
42
  #
37
43
  # @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
38
44
  #
45
+ # @param intended_use [String, nil] A description of the intended use of the legal entity.
46
+ #
39
47
  # @param last_name [String, nil] An individual's last name.
40
48
  #
41
- # @param legal_entity_associations [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
49
+ # @param legal_entity_associations [Array<ModernTreasury::Models::LegalEntityAssociationInlineCreate>, nil] The legal entity associations and its child legal entities.
42
50
  #
43
51
  # @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalStructure, nil] The business's legal structure.
44
52
  #
@@ -46,6 +54,8 @@ module ModernTreasury
46
54
  #
47
55
  # @param middle_name [String, nil] An individual's middle name.
48
56
  #
57
+ # @param operating_jurisdictions [Array<String>] A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3 c
58
+ #
49
59
  # @param phone_numbers [Array<ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber>]
50
60
  #
51
61
  # @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
@@ -54,6 +64,8 @@ module ModernTreasury
54
64
  #
55
65
  # @param prefix [String, nil] An individual's prefix.
56
66
  #
67
+ # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
68
+ #
57
69
  # @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityCreateParams::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
58
70
  #
59
71
  # @param suffix [String, nil] An individual's suffix.
@@ -103,7 +115,7 @@ module ModernTreasury
103
115
  #
104
116
  # Update a legal entity.
105
117
  #
106
- # @overload update(id, addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
118
+ # @overload update(id, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_structure: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
107
119
  #
108
120
  # @param id [String] id
109
121
  #
@@ -111,12 +123,16 @@ module ModernTreasury
111
123
  #
112
124
  # @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
113
125
  #
126
+ # @param business_description [String, nil] A description of the business.
127
+ #
114
128
  # @param business_name [String, nil] The business's legal business name.
115
129
  #
116
130
  # @param citizenship_country [String, nil] The country of citizenship for an individual.
117
131
  #
118
132
  # @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
119
133
  #
134
+ # @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
135
+ #
120
136
  # @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
121
137
  #
122
138
  # @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
@@ -125,12 +141,16 @@ module ModernTreasury
125
141
  #
126
142
  # @param email [String, nil] The entity's primary email.
127
143
  #
144
+ # @param expected_activity_volume [Integer, nil] Monthly expected transaction volume in entity's local currency.
145
+ #
128
146
  # @param first_name [String, nil] An individual's first name.
129
147
  #
130
148
  # @param identifications [Array<ModernTreasury::Models::IdentificationCreateRequest>] A list of identifications for the legal entity.
131
149
  #
132
150
  # @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
133
151
  #
152
+ # @param intended_use [String, nil] A description of the intended use of the legal entity.
153
+ #
134
154
  # @param last_name [String, nil] An individual's last name.
135
155
  #
136
156
  # @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::LegalStructure, nil] The business's legal structure.
@@ -139,6 +159,8 @@ module ModernTreasury
139
159
  #
140
160
  # @param middle_name [String, nil] An individual's middle name.
141
161
  #
162
+ # @param operating_jurisdictions [Array<String>] A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3 c
163
+ #
142
164
  # @param phone_numbers [Array<ModernTreasury::Models::LegalEntityUpdateParams::PhoneNumber>]
143
165
  #
144
166
  # @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
@@ -147,6 +169,8 @@ module ModernTreasury
147
169
  #
148
170
  # @param prefix [String, nil] An individual's prefix.
149
171
  #
172
+ # @param primary_social_media_sites [Array<String>] A list of primary social media URLs for the business.
173
+ #
150
174
  # @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
151
175
  #
152
176
  # @param suffix [String, nil] An individual's suffix.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModernTreasury
4
- VERSION = "0.11.0"
4
+ VERSION = "0.12.0"
5
5
  end
@@ -3,6 +3,7 @@
3
3
  # Standard libraries.
4
4
  # rubocop:disable Lint/RedundantRequireStatement
5
5
  require "English"
6
+ require "base64"
6
7
  require "cgi"
7
8
  require "date"
8
9
  require "erb"
@@ -76,6 +77,7 @@ require_relative "modern_treasury/models/bulk_request_retrieve_params"
76
77
  require_relative "modern_treasury/models/bulk_result"
77
78
  require_relative "modern_treasury/models/bulk_result_list_params"
78
79
  require_relative "modern_treasury/models/bulk_result_retrieve_params"
80
+ require_relative "modern_treasury/models/child_legal_entity"
79
81
  require_relative "modern_treasury/models/child_legal_entity_create"
80
82
  require_relative "modern_treasury/models/client_ping_params"
81
83
  require_relative "modern_treasury/models/connection"
@@ -228,6 +230,7 @@ require_relative "modern_treasury/models/legal_entity"
228
230
  require_relative "modern_treasury/models/legal_entity_address_create_request"
229
231
  require_relative "modern_treasury/models/legal_entity_association"
230
232
  require_relative "modern_treasury/models/legal_entity_association_create_params"
233
+ require_relative "modern_treasury/models/legal_entity_association_inline_create"
231
234
  require_relative "modern_treasury/models/legal_entity_bank_settings"
232
235
  require_relative "modern_treasury/models/legal_entity_compliance_detail"
233
236
  require_relative "modern_treasury/models/legal_entity_create_params"
data/manifest.yaml CHANGED
@@ -1,5 +1,6 @@
1
1
  dependencies:
2
2
  - English
3
+ - base64
3
4
  - cgi
4
5
  - date
5
6
  - erb
@@ -2012,6 +2012,38 @@ module ModernTreasury
2012
2012
  sig { returns(T.nilable(Integer)) }
2013
2013
  attr_accessor :amount_lower_bound
2014
2014
 
2015
+ # The amount reconciled for this expected payment. Value in specified currency's
2016
+ # smallest unit. e.g. $10 would be represented as 1000.
2017
+ sig { returns(T.nilable(Integer)) }
2018
+ attr_accessor :amount_reconciled
2019
+
2020
+ # One of credit or debit. Indicates whether amount_reconciled is a credit or debit
2021
+ # amount.
2022
+ sig do
2023
+ returns(
2024
+ T.nilable(
2025
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::OrSymbol
2026
+ )
2027
+ )
2028
+ end
2029
+ attr_accessor :amount_reconciled_direction
2030
+
2031
+ # The amount that remains unreconciled for this expected payment. Value in
2032
+ # specified currency's smallest unit. e.g. $10 would be represented as 1000.
2033
+ sig { returns(T.nilable(Integer)) }
2034
+ attr_accessor :amount_unreconciled
2035
+
2036
+ # One of credit or debit. Indicates whether amount_unreconciled is a credit or
2037
+ # debit amount.
2038
+ sig do
2039
+ returns(
2040
+ T.nilable(
2041
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::OrSymbol
2042
+ )
2043
+ )
2044
+ end
2045
+ attr_accessor :amount_unreconciled_direction
2046
+
2015
2047
  # The highest amount this expected payment may be equal to. Value in specified
2016
2048
  # currency's smallest unit. e.g. $10 would be represented as 1000.
2017
2049
  sig { returns(T.nilable(Integer)) }
@@ -2149,6 +2181,16 @@ module ModernTreasury
2149
2181
  sig do
2150
2182
  params(
2151
2183
  amount_lower_bound: T.nilable(Integer),
2184
+ amount_reconciled: T.nilable(Integer),
2185
+ amount_reconciled_direction:
2186
+ T.nilable(
2187
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::OrSymbol
2188
+ ),
2189
+ amount_unreconciled: T.nilable(Integer),
2190
+ amount_unreconciled_direction:
2191
+ T.nilable(
2192
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::OrSymbol
2193
+ ),
2152
2194
  amount_upper_bound: T.nilable(Integer),
2153
2195
  counterparty_id: T.nilable(String),
2154
2196
  currency: T.nilable(ModernTreasury::Currency::OrSymbol),
@@ -2182,6 +2224,18 @@ module ModernTreasury
2182
2224
  # The lowest amount this expected payment may be equal to. Value in specified
2183
2225
  # currency's smallest unit. e.g. $10 would be represented as 1000.
2184
2226
  amount_lower_bound: nil,
2227
+ # The amount reconciled for this expected payment. Value in specified currency's
2228
+ # smallest unit. e.g. $10 would be represented as 1000.
2229
+ amount_reconciled: nil,
2230
+ # One of credit or debit. Indicates whether amount_reconciled is a credit or debit
2231
+ # amount.
2232
+ amount_reconciled_direction: nil,
2233
+ # The amount that remains unreconciled for this expected payment. Value in
2234
+ # specified currency's smallest unit. e.g. $10 would be represented as 1000.
2235
+ amount_unreconciled: nil,
2236
+ # One of credit or debit. Indicates whether amount_unreconciled is a credit or
2237
+ # debit amount.
2238
+ amount_unreconciled_direction: nil,
2185
2239
  # The highest amount this expected payment may be equal to. Value in specified
2186
2240
  # currency's smallest unit. e.g. $10 would be represented as 1000.
2187
2241
  amount_upper_bound: nil,
@@ -2241,6 +2295,16 @@ module ModernTreasury
2241
2295
  override.returns(
2242
2296
  {
2243
2297
  amount_lower_bound: T.nilable(Integer),
2298
+ amount_reconciled: T.nilable(Integer),
2299
+ amount_reconciled_direction:
2300
+ T.nilable(
2301
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::OrSymbol
2302
+ ),
2303
+ amount_unreconciled: T.nilable(Integer),
2304
+ amount_unreconciled_direction:
2305
+ T.nilable(
2306
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::OrSymbol
2307
+ ),
2244
2308
  amount_upper_bound: T.nilable(Integer),
2245
2309
  counterparty_id: T.nilable(String),
2246
2310
  currency: T.nilable(ModernTreasury::Currency::OrSymbol),
@@ -2274,6 +2338,78 @@ module ModernTreasury
2274
2338
  def to_hash
2275
2339
  end
2276
2340
 
2341
+ # One of credit or debit. Indicates whether amount_reconciled is a credit or debit
2342
+ # amount.
2343
+ module AmountReconciledDirection
2344
+ extend ModernTreasury::Internal::Type::Enum
2345
+
2346
+ TaggedSymbol =
2347
+ T.type_alias do
2348
+ T.all(
2349
+ Symbol,
2350
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection
2351
+ )
2352
+ end
2353
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2354
+
2355
+ CREDIT =
2356
+ T.let(
2357
+ :credit,
2358
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::TaggedSymbol
2359
+ )
2360
+ DEBIT =
2361
+ T.let(
2362
+ :debit,
2363
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::TaggedSymbol
2364
+ )
2365
+
2366
+ sig do
2367
+ override.returns(
2368
+ T::Array[
2369
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountReconciledDirection::TaggedSymbol
2370
+ ]
2371
+ )
2372
+ end
2373
+ def self.values
2374
+ end
2375
+ end
2376
+
2377
+ # One of credit or debit. Indicates whether amount_unreconciled is a credit or
2378
+ # debit amount.
2379
+ module AmountUnreconciledDirection
2380
+ extend ModernTreasury::Internal::Type::Enum
2381
+
2382
+ TaggedSymbol =
2383
+ T.type_alias do
2384
+ T.all(
2385
+ Symbol,
2386
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection
2387
+ )
2388
+ end
2389
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
2390
+
2391
+ CREDIT =
2392
+ T.let(
2393
+ :credit,
2394
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::TaggedSymbol
2395
+ )
2396
+ DEBIT =
2397
+ T.let(
2398
+ :debit,
2399
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::TaggedSymbol
2400
+ )
2401
+
2402
+ sig do
2403
+ override.returns(
2404
+ T::Array[
2405
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::AmountUnreconciledDirection::TaggedSymbol
2406
+ ]
2407
+ )
2408
+ end
2409
+ def self.values
2410
+ end
2411
+ end
2412
+
2277
2413
  # One of credit or debit. When you are receiving money, use credit. When you are
2278
2414
  # being charged, use debit.
2279
2415
  module Direction
@@ -4653,6 +4789,38 @@ module ModernTreasury
4653
4789
  sig { returns(T.nilable(Integer)) }
4654
4790
  attr_accessor :amount_lower_bound
4655
4791
 
4792
+ # The amount reconciled for this expected payment. Value in specified currency's
4793
+ # smallest unit. e.g. $10 would be represented as 1000.
4794
+ sig { returns(T.nilable(Integer)) }
4795
+ attr_accessor :amount_reconciled
4796
+
4797
+ # One of credit or debit. Indicates whether amount_reconciled is a credit or debit
4798
+ # amount.
4799
+ sig do
4800
+ returns(
4801
+ T.nilable(
4802
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::OrSymbol
4803
+ )
4804
+ )
4805
+ end
4806
+ attr_accessor :amount_reconciled_direction
4807
+
4808
+ # The amount that remains unreconciled for this expected payment. Value in
4809
+ # specified currency's smallest unit. e.g. $10 would be represented as 1000.
4810
+ sig { returns(T.nilable(Integer)) }
4811
+ attr_accessor :amount_unreconciled
4812
+
4813
+ # One of credit or debit. Indicates whether amount_unreconciled is a credit or
4814
+ # debit amount.
4815
+ sig do
4816
+ returns(
4817
+ T.nilable(
4818
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::OrSymbol
4819
+ )
4820
+ )
4821
+ end
4822
+ attr_accessor :amount_unreconciled_direction
4823
+
4656
4824
  # The highest amount this expected payment may be equal to. Value in specified
4657
4825
  # currency's smallest unit. e.g. $10 would be represented as 1000.
4658
4826
  sig { returns(T.nilable(Integer)) }
@@ -4754,6 +4922,16 @@ module ModernTreasury
4754
4922
  params(
4755
4923
  id: String,
4756
4924
  amount_lower_bound: T.nilable(Integer),
4925
+ amount_reconciled: T.nilable(Integer),
4926
+ amount_reconciled_direction:
4927
+ T.nilable(
4928
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::OrSymbol
4929
+ ),
4930
+ amount_unreconciled: T.nilable(Integer),
4931
+ amount_unreconciled_direction:
4932
+ T.nilable(
4933
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::OrSymbol
4934
+ ),
4757
4935
  amount_upper_bound: T.nilable(Integer),
4758
4936
  counterparty_id: T.nilable(String),
4759
4937
  currency: T.nilable(ModernTreasury::Currency::OrSymbol),
@@ -4785,6 +4963,18 @@ module ModernTreasury
4785
4963
  # The lowest amount this expected payment may be equal to. Value in specified
4786
4964
  # currency's smallest unit. e.g. $10 would be represented as 1000.
4787
4965
  amount_lower_bound: nil,
4966
+ # The amount reconciled for this expected payment. Value in specified currency's
4967
+ # smallest unit. e.g. $10 would be represented as 1000.
4968
+ amount_reconciled: nil,
4969
+ # One of credit or debit. Indicates whether amount_reconciled is a credit or debit
4970
+ # amount.
4971
+ amount_reconciled_direction: nil,
4972
+ # The amount that remains unreconciled for this expected payment. Value in
4973
+ # specified currency's smallest unit. e.g. $10 would be represented as 1000.
4974
+ amount_unreconciled: nil,
4975
+ # One of credit or debit. Indicates whether amount_unreconciled is a credit or
4976
+ # debit amount.
4977
+ amount_unreconciled_direction: nil,
4788
4978
  # The highest amount this expected payment may be equal to. Value in specified
4789
4979
  # currency's smallest unit. e.g. $10 would be represented as 1000.
4790
4980
  amount_upper_bound: nil,
@@ -4837,6 +5027,16 @@ module ModernTreasury
4837
5027
  {
4838
5028
  id: String,
4839
5029
  amount_lower_bound: T.nilable(Integer),
5030
+ amount_reconciled: T.nilable(Integer),
5031
+ amount_reconciled_direction:
5032
+ T.nilable(
5033
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::OrSymbol
5034
+ ),
5035
+ amount_unreconciled: T.nilable(Integer),
5036
+ amount_unreconciled_direction:
5037
+ T.nilable(
5038
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::OrSymbol
5039
+ ),
4840
5040
  amount_upper_bound: T.nilable(Integer),
4841
5041
  counterparty_id: T.nilable(String),
4842
5042
  currency: T.nilable(ModernTreasury::Currency::OrSymbol),
@@ -4867,6 +5067,78 @@ module ModernTreasury
4867
5067
  def to_hash
4868
5068
  end
4869
5069
 
5070
+ # One of credit or debit. Indicates whether amount_reconciled is a credit or debit
5071
+ # amount.
5072
+ module AmountReconciledDirection
5073
+ extend ModernTreasury::Internal::Type::Enum
5074
+
5075
+ TaggedSymbol =
5076
+ T.type_alias do
5077
+ T.all(
5078
+ Symbol,
5079
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection
5080
+ )
5081
+ end
5082
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
5083
+
5084
+ CREDIT =
5085
+ T.let(
5086
+ :credit,
5087
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::TaggedSymbol
5088
+ )
5089
+ DEBIT =
5090
+ T.let(
5091
+ :debit,
5092
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::TaggedSymbol
5093
+ )
5094
+
5095
+ sig do
5096
+ override.returns(
5097
+ T::Array[
5098
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountReconciledDirection::TaggedSymbol
5099
+ ]
5100
+ )
5101
+ end
5102
+ def self.values
5103
+ end
5104
+ end
5105
+
5106
+ # One of credit or debit. Indicates whether amount_unreconciled is a credit or
5107
+ # debit amount.
5108
+ module AmountUnreconciledDirection
5109
+ extend ModernTreasury::Internal::Type::Enum
5110
+
5111
+ TaggedSymbol =
5112
+ T.type_alias do
5113
+ T.all(
5114
+ Symbol,
5115
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection
5116
+ )
5117
+ end
5118
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
5119
+
5120
+ CREDIT =
5121
+ T.let(
5122
+ :credit,
5123
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::TaggedSymbol
5124
+ )
5125
+ DEBIT =
5126
+ T.let(
5127
+ :debit,
5128
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::TaggedSymbol
5129
+ )
5130
+
5131
+ sig do
5132
+ override.returns(
5133
+ T::Array[
5134
+ ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::AmountUnreconciledDirection::TaggedSymbol
5135
+ ]
5136
+ )
5137
+ end
5138
+ def self.values
5139
+ end
5140
+ end
5141
+
4870
5142
  # One of credit or debit. When you are receiving money, use credit. When you are
4871
5143
  # being charged, use debit.
4872
5144
  module Direction