modern_treasury 0.10.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 (173) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +10 -1
  4. data/lib/modern_treasury/client.rb +12 -0
  5. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +12 -10
  6. data/lib/modern_treasury/internal/util.rb +7 -2
  7. data/lib/modern_treasury/models/bulk_request_create_params.rb +146 -2
  8. data/lib/modern_treasury/models/child_legal_entity.rb +609 -0
  9. data/lib/modern_treasury/models/child_legal_entity_create.rb +63 -1
  10. data/lib/modern_treasury/models/connection_legal_entity.rb +2 -0
  11. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +54 -63
  12. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -0
  13. data/lib/modern_treasury/models/counterparty_create_params.rb +54 -59
  14. data/lib/modern_treasury/models/expected_payment.rb +69 -1
  15. data/lib/modern_treasury/models/expected_payment_create_params.rb +65 -1
  16. data/lib/modern_treasury/models/expected_payment_update_params.rb +65 -1
  17. data/lib/modern_treasury/models/hold_create_params.rb +74 -0
  18. data/lib/modern_treasury/models/hold_create_response.rb +143 -0
  19. data/lib/modern_treasury/models/hold_list_params.rb +89 -0
  20. data/lib/modern_treasury/models/hold_list_response.rb +143 -0
  21. data/lib/modern_treasury/models/hold_retrieve_params.rb +14 -0
  22. data/lib/modern_treasury/models/hold_retrieve_response.rb +143 -0
  23. data/lib/modern_treasury/models/hold_update_params.rb +40 -0
  24. data/lib/modern_treasury/models/hold_update_response.rb +143 -0
  25. data/lib/modern_treasury/models/incoming_payment_detail.rb +5 -0
  26. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +5 -0
  27. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +5 -0
  28. data/lib/modern_treasury/models/internal_account.rb +10 -1
  29. data/lib/modern_treasury/models/internal_account_request_closure_params.rb +14 -0
  30. data/lib/modern_treasury/models/internal_account_update_params.rb +9 -1
  31. data/lib/modern_treasury/models/invoice.rb +2 -0
  32. data/lib/modern_treasury/models/invoice_create_params.rb +1 -19
  33. data/lib/modern_treasury/models/invoice_update_params.rb +1 -19
  34. data/lib/modern_treasury/models/journal_entry_list_params.rb +38 -0
  35. data/lib/modern_treasury/models/journal_entry_retrieve_params.rb +14 -0
  36. data/lib/modern_treasury/models/journal_report_list_params.rb +14 -0
  37. data/lib/modern_treasury/models/journal_report_retrieve_params.rb +14 -0
  38. data/lib/modern_treasury/models/journal_report_update_params.rb +26 -0
  39. data/lib/modern_treasury/models/ledger_entry.rb +10 -1
  40. data/lib/modern_treasury/models/ledger_entry_create_request.rb +10 -1
  41. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
  42. data/lib/modern_treasury/models/legal_entity.rb +61 -11
  43. data/lib/modern_treasury/models/legal_entity_association.rb +3 -559
  44. data/lib/modern_treasury/models/legal_entity_association_inline_create.rb +60 -0
  45. data/lib/modern_treasury/models/legal_entity_create_params.rb +54 -59
  46. data/lib/modern_treasury/models/legal_entity_update_params.rb +51 -1
  47. data/lib/modern_treasury/models/payment_order.rb +5 -1
  48. data/lib/modern_treasury/models/payment_order_subtype.rb +0 -1
  49. data/lib/modern_treasury/models/payment_reference.rb +5 -1
  50. data/lib/modern_treasury/models/return_object.rb +6 -1
  51. data/lib/modern_treasury/models/transaction.rb +2 -1
  52. data/lib/modern_treasury/models.rb +24 -0
  53. data/lib/modern_treasury/resources/expected_payments.rb +18 -2
  54. data/lib/modern_treasury/resources/holds.rb +126 -0
  55. data/lib/modern_treasury/resources/internal_accounts.rb +23 -1
  56. data/lib/modern_treasury/resources/invoices.rb +2 -10
  57. data/lib/modern_treasury/resources/journal_entries.rb +60 -0
  58. data/lib/modern_treasury/resources/journal_reports.rb +78 -0
  59. data/lib/modern_treasury/resources/ledger_accounts.rb +3 -3
  60. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -2
  61. data/lib/modern_treasury/resources/legal_entities.rb +27 -3
  62. data/lib/modern_treasury/version.rb +1 -1
  63. data/lib/modern_treasury.rb +20 -0
  64. data/manifest.yaml +1 -0
  65. data/rbi/modern_treasury/client.rbi +9 -0
  66. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +272 -0
  67. data/rbi/modern_treasury/models/child_legal_entity.rbi +969 -0
  68. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +78 -0
  69. data/rbi/modern_treasury/models/connection_legal_entity.rbi +10 -0
  70. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +61 -135
  71. data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +10 -0
  72. data/rbi/modern_treasury/models/counterparty_create_params.rbi +61 -135
  73. data/rbi/modern_treasury/models/expected_payment.rbi +136 -0
  74. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +136 -0
  75. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +136 -0
  76. data/rbi/modern_treasury/models/hold_create_params.rbi +125 -0
  77. data/rbi/modern_treasury/models/hold_create_response.rbi +232 -0
  78. data/rbi/modern_treasury/models/hold_list_params.rbi +150 -0
  79. data/rbi/modern_treasury/models/hold_list_response.rbi +225 -0
  80. data/rbi/modern_treasury/models/hold_retrieve_params.rbi +32 -0
  81. data/rbi/modern_treasury/models/hold_retrieve_response.rbi +234 -0
  82. data/rbi/modern_treasury/models/hold_update_params.rbi +79 -0
  83. data/rbi/modern_treasury/models/hold_update_response.rbi +232 -0
  84. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +25 -0
  85. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +25 -0
  86. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +25 -0
  87. data/rbi/modern_treasury/models/internal_account.rbi +10 -0
  88. data/rbi/modern_treasury/models/internal_account_request_closure_params.rbi +32 -0
  89. data/rbi/modern_treasury/models/internal_account_update_params.rbi +11 -0
  90. data/rbi/modern_treasury/models/invoice_create_params.rbi +0 -20
  91. data/rbi/modern_treasury/models/invoice_update_params.rbi +0 -20
  92. data/rbi/modern_treasury/models/journal_entry_list_params.rbi +68 -0
  93. data/rbi/modern_treasury/models/journal_entry_retrieve_params.rbi +32 -0
  94. data/rbi/modern_treasury/models/journal_report_list_params.rbi +32 -0
  95. data/rbi/modern_treasury/models/journal_report_retrieve_params.rbi +32 -0
  96. data/rbi/modern_treasury/models/journal_report_update_params.rbi +52 -0
  97. data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
  98. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +13 -0
  99. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
  100. data/rbi/modern_treasury/models/legal_entity.rbi +67 -15
  101. data/rbi/modern_treasury/models/legal_entity_association.rbi +4 -962
  102. data/rbi/modern_treasury/models/legal_entity_association_inline_create.rbi +130 -0
  103. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +61 -134
  104. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +58 -0
  105. data/rbi/modern_treasury/models/payment_order.rbi +22 -2
  106. data/rbi/modern_treasury/models/payment_order_subtype.rbi +0 -1
  107. data/rbi/modern_treasury/models/payment_reference.rbi +22 -2
  108. data/rbi/modern_treasury/models/return_object.rbi +24 -2
  109. data/rbi/modern_treasury/models/transaction.rbi +7 -2
  110. data/rbi/modern_treasury/models.rbi +28 -0
  111. data/rbi/modern_treasury/resources/expected_payments.rbi +44 -0
  112. data/rbi/modern_treasury/resources/holds.rbi +108 -0
  113. data/rbi/modern_treasury/resources/internal_accounts.rbi +17 -0
  114. data/rbi/modern_treasury/resources/invoices.rbi +0 -16
  115. data/rbi/modern_treasury/resources/journal_entries.rbi +46 -0
  116. data/rbi/modern_treasury/resources/journal_reports.rbi +51 -0
  117. data/rbi/modern_treasury/resources/ledger_accounts.rbi +3 -3
  118. data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -2
  119. data/rbi/modern_treasury/resources/legal_entities.rbi +41 -1
  120. data/sig/modern_treasury/client.rbs +6 -0
  121. data/sig/modern_treasury/models/bulk_request_create_params.rbs +84 -0
  122. data/sig/modern_treasury/models/child_legal_entity.rbs +469 -0
  123. data/sig/modern_treasury/models/child_legal_entity_create.rbs +39 -0
  124. data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -1
  125. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +38 -60
  126. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +4 -1
  127. data/sig/modern_treasury/models/counterparty_create_params.rbs +38 -60
  128. data/sig/modern_treasury/models/expected_payment.rbs +42 -0
  129. data/sig/modern_treasury/models/expected_payment_create_params.rbs +42 -0
  130. data/sig/modern_treasury/models/expected_payment_update_params.rbs +42 -0
  131. data/sig/modern_treasury/models/hold_create_params.rbs +66 -0
  132. data/sig/modern_treasury/models/hold_create_response.rbs +108 -0
  133. data/sig/modern_treasury/models/hold_list_params.rbs +76 -0
  134. data/sig/modern_treasury/models/hold_list_response.rbs +108 -0
  135. data/sig/modern_treasury/models/hold_retrieve_params.rbs +15 -0
  136. data/sig/modern_treasury/models/hold_retrieve_response.rbs +108 -0
  137. data/sig/modern_treasury/models/hold_update_params.rbs +41 -0
  138. data/sig/modern_treasury/models/hold_update_response.rbs +108 -0
  139. data/sig/modern_treasury/models/incoming_payment_detail.rbs +10 -0
  140. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +10 -0
  141. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +10 -0
  142. data/sig/modern_treasury/models/internal_account.rbs +5 -0
  143. data/sig/modern_treasury/models/internal_account_request_closure_params.rbs +15 -0
  144. data/sig/modern_treasury/models/internal_account_update_params.rbs +7 -0
  145. data/sig/modern_treasury/models/invoice_create_params.rbs +0 -10
  146. data/sig/modern_treasury/models/invoice_update_params.rbs +0 -10
  147. data/sig/modern_treasury/models/journal_entry_list_params.rbs +36 -0
  148. data/sig/modern_treasury/models/journal_entry_retrieve_params.rbs +15 -0
  149. data/sig/modern_treasury/models/journal_report_list_params.rbs +15 -0
  150. data/sig/modern_treasury/models/journal_report_retrieve_params.rbs +15 -0
  151. data/sig/modern_treasury/models/journal_report_update_params.rbs +32 -0
  152. data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
  153. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +7 -0
  154. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
  155. data/sig/modern_treasury/models/legal_entity.rbs +38 -8
  156. data/sig/modern_treasury/models/legal_entity_association.rbs +4 -435
  157. data/sig/modern_treasury/models/legal_entity_association_inline_create.rbs +59 -0
  158. data/sig/modern_treasury/models/legal_entity_create_params.rbs +38 -60
  159. data/sig/modern_treasury/models/legal_entity_update_params.rbs +34 -0
  160. data/sig/modern_treasury/models/payment_order.rbs +10 -2
  161. data/sig/modern_treasury/models/payment_order_subtype.rbs +0 -2
  162. data/sig/modern_treasury/models/payment_reference.rbs +10 -2
  163. data/sig/modern_treasury/models/return_object.rbs +12 -2
  164. data/sig/modern_treasury/models/transaction.rbs +4 -2
  165. data/sig/modern_treasury/models.rbs +24 -0
  166. data/sig/modern_treasury/resources/expected_payments.rbs +8 -0
  167. data/sig/modern_treasury/resources/holds.rbs +38 -0
  168. data/sig/modern_treasury/resources/internal_accounts.rbs +6 -0
  169. data/sig/modern_treasury/resources/invoices.rbs +0 -4
  170. data/sig/modern_treasury/resources/journal_entries.rbs +19 -0
  171. data/sig/modern_treasury/resources/journal_reports.rbs +21 -0
  172. data/sig/modern_treasury/resources/legal_entities.rbs +13 -1
  173. metadata +59 -2
@@ -12,24 +12,28 @@ module ModernTreasury
12
12
  T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
13
13
  bank_settings:
14
14
  T.nilable(ModernTreasury::LegalEntityBankSettings::OrHash),
15
+ business_description: T.nilable(String),
15
16
  business_name: T.nilable(String),
16
17
  citizenship_country: T.nilable(String),
17
18
  compliance_details:
18
19
  T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
20
+ country_of_incorporation: T.nilable(String),
19
21
  date_formed: T.nilable(Date),
20
22
  date_of_birth: T.nilable(Date),
21
23
  doing_business_as_names: T::Array[String],
22
24
  email: T.nilable(String),
25
+ expected_activity_volume: T.nilable(Integer),
23
26
  first_name: T.nilable(String),
24
27
  identifications:
25
28
  T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
26
29
  industry_classifications:
27
30
  T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
31
+ intended_use: T.nilable(String),
28
32
  last_name: T.nilable(String),
29
33
  legal_entity_associations:
30
34
  T.nilable(
31
35
  T::Array[
32
- ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::OrHash
36
+ ModernTreasury::LegalEntityAssociationInlineCreate::OrHash
33
37
  ]
34
38
  ),
35
39
  legal_structure:
@@ -38,6 +42,7 @@ module ModernTreasury
38
42
  ),
39
43
  metadata: T::Hash[Symbol, String],
40
44
  middle_name: T.nilable(String),
45
+ operating_jurisdictions: T::Array[String],
41
46
  phone_numbers:
42
47
  T::Array[
43
48
  ModernTreasury::LegalEntityCreateParams::PhoneNumber::OrHash
@@ -45,6 +50,7 @@ module ModernTreasury
45
50
  politically_exposed_person: T.nilable(T::Boolean),
46
51
  preferred_name: T.nilable(String),
47
52
  prefix: T.nilable(String),
53
+ primary_social_media_sites: T::Array[String],
48
54
  risk_rating:
49
55
  T.nilable(
50
56
  ModernTreasury::LegalEntityCreateParams::RiskRating::OrSymbol
@@ -64,11 +70,16 @@ module ModernTreasury
64
70
  # A list of addresses for the entity.
65
71
  addresses: nil,
66
72
  bank_settings: nil,
73
+ # A description of the business.
74
+ business_description: nil,
67
75
  # The business's legal business name.
68
76
  business_name: nil,
69
77
  # The country of citizenship for an individual.
70
78
  citizenship_country: nil,
71
79
  compliance_details: nil,
80
+ # The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
81
+ # alpha-3 formats.
82
+ country_of_incorporation: nil,
72
83
  # A business's formation date (YYYY-MM-DD).
73
84
  date_formed: nil,
74
85
  # An individual's date of birth (YYYY-MM-DD).
@@ -76,12 +87,16 @@ module ModernTreasury
76
87
  doing_business_as_names: nil,
77
88
  # The entity's primary email.
78
89
  email: nil,
90
+ # Monthly expected transaction volume in entity's local currency.
91
+ expected_activity_volume: nil,
79
92
  # An individual's first name.
80
93
  first_name: nil,
81
94
  # A list of identifications for the legal entity.
82
95
  identifications: nil,
83
96
  # A list of industry classifications for the legal entity.
84
97
  industry_classifications: nil,
98
+ # A description of the intended use of the legal entity.
99
+ intended_use: nil,
85
100
  # An individual's last name.
86
101
  last_name: nil,
87
102
  # The legal entity associations and its child legal entities.
@@ -93,6 +108,9 @@ module ModernTreasury
93
108
  metadata: nil,
94
109
  # An individual's middle name.
95
110
  middle_name: nil,
111
+ # A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
112
+ # codes).
113
+ operating_jurisdictions: nil,
96
114
  phone_numbers: nil,
97
115
  # Whether the individual is a politically exposed person.
98
116
  politically_exposed_person: nil,
@@ -100,6 +118,8 @@ module ModernTreasury
100
118
  preferred_name: nil,
101
119
  # An individual's prefix.
102
120
  prefix: nil,
121
+ # A list of primary social media URLs for the business.
122
+ primary_social_media_sites: nil,
103
123
  # The risk rating of the legal entity. One of low, medium, high.
104
124
  risk_rating: nil,
105
125
  # An individual's suffix.
@@ -133,19 +153,23 @@ module ModernTreasury
133
153
  T::Array[ModernTreasury::LegalEntityAddressCreateRequest::OrHash],
134
154
  bank_settings:
135
155
  T.nilable(ModernTreasury::LegalEntityBankSettings::OrHash),
156
+ business_description: T.nilable(String),
136
157
  business_name: T.nilable(String),
137
158
  citizenship_country: T.nilable(String),
138
159
  compliance_details:
139
160
  T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
161
+ country_of_incorporation: T.nilable(String),
140
162
  date_formed: T.nilable(Date),
141
163
  date_of_birth: T.nilable(Date),
142
164
  doing_business_as_names: T::Array[String],
143
165
  email: T.nilable(String),
166
+ expected_activity_volume: T.nilable(Integer),
144
167
  first_name: T.nilable(String),
145
168
  identifications:
146
169
  T::Array[ModernTreasury::IdentificationCreateRequest::OrHash],
147
170
  industry_classifications:
148
171
  T::Array[ModernTreasury::LegalEntityIndustryClassification::OrHash],
172
+ intended_use: T.nilable(String),
149
173
  last_name: T.nilable(String),
150
174
  legal_structure:
151
175
  T.nilable(
@@ -153,6 +177,7 @@ module ModernTreasury
153
177
  ),
154
178
  metadata: T::Hash[Symbol, String],
155
179
  middle_name: T.nilable(String),
180
+ operating_jurisdictions: T::Array[String],
156
181
  phone_numbers:
157
182
  T::Array[
158
183
  ModernTreasury::LegalEntityUpdateParams::PhoneNumber::OrHash
@@ -160,6 +185,7 @@ module ModernTreasury
160
185
  politically_exposed_person: T.nilable(T::Boolean),
161
186
  preferred_name: T.nilable(String),
162
187
  prefix: T.nilable(String),
188
+ primary_social_media_sites: T::Array[String],
163
189
  risk_rating:
164
190
  T.nilable(
165
191
  ModernTreasury::LegalEntityUpdateParams::RiskRating::OrSymbol
@@ -179,11 +205,16 @@ module ModernTreasury
179
205
  # A list of addresses for the entity.
180
206
  addresses: nil,
181
207
  bank_settings: nil,
208
+ # A description of the business.
209
+ business_description: nil,
182
210
  # The business's legal business name.
183
211
  business_name: nil,
184
212
  # The country of citizenship for an individual.
185
213
  citizenship_country: nil,
186
214
  compliance_details: nil,
215
+ # The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
216
+ # alpha-3 formats.
217
+ country_of_incorporation: nil,
187
218
  # A business's formation date (YYYY-MM-DD).
188
219
  date_formed: nil,
189
220
  # An individual's date of birth (YYYY-MM-DD).
@@ -191,12 +222,16 @@ module ModernTreasury
191
222
  doing_business_as_names: nil,
192
223
  # The entity's primary email.
193
224
  email: nil,
225
+ # Monthly expected transaction volume in entity's local currency.
226
+ expected_activity_volume: nil,
194
227
  # An individual's first name.
195
228
  first_name: nil,
196
229
  # A list of identifications for the legal entity.
197
230
  identifications: nil,
198
231
  # A list of industry classifications for the legal entity.
199
232
  industry_classifications: nil,
233
+ # A description of the intended use of the legal entity.
234
+ intended_use: nil,
200
235
  # An individual's last name.
201
236
  last_name: nil,
202
237
  # The business's legal structure.
@@ -206,6 +241,9 @@ module ModernTreasury
206
241
  metadata: nil,
207
242
  # An individual's middle name.
208
243
  middle_name: nil,
244
+ # A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
245
+ # codes).
246
+ operating_jurisdictions: nil,
209
247
  phone_numbers: nil,
210
248
  # Whether the individual is a politically exposed person.
211
249
  politically_exposed_person: nil,
@@ -213,6 +251,8 @@ module ModernTreasury
213
251
  preferred_name: nil,
214
252
  # An individual's prefix.
215
253
  prefix: nil,
254
+ # A list of primary social media URLs for the business.
255
+ primary_social_media_sites: nil,
216
256
  # The risk rating of the legal entity. One of low, medium, high.
217
257
  risk_rating: nil,
218
258
  # An individual's suffix.
@@ -82,6 +82,12 @@ module ModernTreasury
82
82
 
83
83
  attr_reader payment_actions: ModernTreasury::Resources::PaymentActions
84
84
 
85
+ attr_reader journal_entries: ModernTreasury::Resources::JournalEntries
86
+
87
+ attr_reader journal_reports: ModernTreasury::Resources::JournalReports
88
+
89
+ attr_reader holds: ModernTreasury::Resources::Holds
90
+
85
91
  def ping: (
86
92
  ?request_options: ModernTreasury::request_opts
87
93
  ) -> ModernTreasury::PingResponse
@@ -789,6 +789,10 @@ module ModernTreasury
789
789
  type expected_payment_create_request =
790
790
  {
791
791
  amount_lower_bound: Integer?,
792
+ amount_reconciled: Integer?,
793
+ amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_reconciled_direction?,
794
+ amount_unreconciled: Integer?,
795
+ amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_unreconciled_direction?,
792
796
  amount_upper_bound: Integer?,
793
797
  counterparty_id: String?,
794
798
  currency: ModernTreasury::Models::currency?,
@@ -813,6 +817,14 @@ module ModernTreasury
813
817
  class ExpectedPaymentCreateRequest < ModernTreasury::Internal::Type::BaseModel
814
818
  attr_accessor amount_lower_bound: Integer?
815
819
 
820
+ attr_accessor amount_reconciled: Integer?
821
+
822
+ attr_accessor amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_reconciled_direction?
823
+
824
+ attr_accessor amount_unreconciled: Integer?
825
+
826
+ attr_accessor amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_unreconciled_direction?
827
+
816
828
  attr_accessor amount_upper_bound: Integer?
817
829
 
818
830
  attr_accessor counterparty_id: String?
@@ -865,6 +877,10 @@ module ModernTreasury
865
877
 
866
878
  def initialize: (
867
879
  ?amount_lower_bound: Integer?,
880
+ ?amount_reconciled: Integer?,
881
+ ?amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_reconciled_direction?,
882
+ ?amount_unreconciled: Integer?,
883
+ ?amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_unreconciled_direction?,
868
884
  ?amount_upper_bound: Integer?,
869
885
  ?counterparty_id: String?,
870
886
  ?currency: ModernTreasury::Models::currency?,
@@ -888,6 +904,10 @@ module ModernTreasury
888
904
 
889
905
  def to_hash: -> {
890
906
  amount_lower_bound: Integer?,
907
+ amount_reconciled: Integer?,
908
+ amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_reconciled_direction?,
909
+ amount_unreconciled: Integer?,
910
+ amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_unreconciled_direction?,
891
911
  amount_upper_bound: Integer?,
892
912
  counterparty_id: String?,
893
913
  currency: ModernTreasury::Models::currency?,
@@ -909,6 +929,28 @@ module ModernTreasury
909
929
  type: ModernTreasury::Models::expected_payment_type?
910
930
  }
911
931
 
932
+ type amount_reconciled_direction = :credit | :debit
933
+
934
+ module AmountReconciledDirection
935
+ extend ModernTreasury::Internal::Type::Enum
936
+
937
+ CREDIT: :credit
938
+ DEBIT: :debit
939
+
940
+ def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_reconciled_direction]
941
+ end
942
+
943
+ type amount_unreconciled_direction = :credit | :debit
944
+
945
+ module AmountUnreconciledDirection
946
+ extend ModernTreasury::Internal::Type::Enum
947
+
948
+ CREDIT: :credit
949
+ DEBIT: :debit
950
+
951
+ def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::amount_unreconciled_direction]
952
+ end
953
+
912
954
  type direction = :credit | :debit
913
955
 
914
956
  module Direction
@@ -1865,6 +1907,10 @@ module ModernTreasury
1865
1907
  {
1866
1908
  id: String,
1867
1909
  amount_lower_bound: Integer?,
1910
+ amount_reconciled: Integer?,
1911
+ amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_reconciled_direction?,
1912
+ amount_unreconciled: Integer?,
1913
+ amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_unreconciled_direction?,
1868
1914
  amount_upper_bound: Integer?,
1869
1915
  counterparty_id: String?,
1870
1916
  currency: ModernTreasury::Models::currency?,
@@ -1891,6 +1937,14 @@ module ModernTreasury
1891
1937
 
1892
1938
  attr_accessor amount_lower_bound: Integer?
1893
1939
 
1940
+ attr_accessor amount_reconciled: Integer?
1941
+
1942
+ attr_accessor amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_reconciled_direction?
1943
+
1944
+ attr_accessor amount_unreconciled: Integer?
1945
+
1946
+ attr_accessor amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_unreconciled_direction?
1947
+
1894
1948
  attr_accessor amount_upper_bound: Integer?
1895
1949
 
1896
1950
  attr_accessor counterparty_id: String?
@@ -1930,6 +1984,10 @@ module ModernTreasury
1930
1984
  def initialize: (
1931
1985
  ?id: String,
1932
1986
  ?amount_lower_bound: Integer?,
1987
+ ?amount_reconciled: Integer?,
1988
+ ?amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_reconciled_direction?,
1989
+ ?amount_unreconciled: Integer?,
1990
+ ?amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_unreconciled_direction?,
1933
1991
  ?amount_upper_bound: Integer?,
1934
1992
  ?counterparty_id: String?,
1935
1993
  ?currency: ModernTreasury::Models::currency?,
@@ -1952,6 +2010,10 @@ module ModernTreasury
1952
2010
  def to_hash: -> {
1953
2011
  id: String,
1954
2012
  amount_lower_bound: Integer?,
2013
+ amount_reconciled: Integer?,
2014
+ amount_reconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_reconciled_direction?,
2015
+ amount_unreconciled: Integer?,
2016
+ amount_unreconciled_direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_unreconciled_direction?,
1955
2017
  amount_upper_bound: Integer?,
1956
2018
  counterparty_id: String?,
1957
2019
  currency: ModernTreasury::Models::currency?,
@@ -1971,6 +2033,28 @@ module ModernTreasury
1971
2033
  type: ModernTreasury::Models::expected_payment_type?
1972
2034
  }
1973
2035
 
2036
+ type amount_reconciled_direction = :credit | :debit
2037
+
2038
+ module AmountReconciledDirection
2039
+ extend ModernTreasury::Internal::Type::Enum
2040
+
2041
+ CREDIT: :credit
2042
+ DEBIT: :debit
2043
+
2044
+ def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_reconciled_direction]
2045
+ end
2046
+
2047
+ type amount_unreconciled_direction = :credit | :debit
2048
+
2049
+ module AmountUnreconciledDirection
2050
+ extend ModernTreasury::Internal::Type::Enum
2051
+
2052
+ CREDIT: :credit
2053
+ DEBIT: :debit
2054
+
2055
+ def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::amount_unreconciled_direction]
2056
+ end
2057
+
1974
2058
  type direction = :credit | :debit
1975
2059
 
1976
2060
  module Direction