modern_treasury 0.1.0.pre.alpha.22 → 0.2.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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +0 -12
  5. data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
  6. data/lib/modern_treasury/internal/type/array_of.rb +1 -0
  7. data/lib/modern_treasury/internal/type/base_model.rb +7 -5
  8. data/lib/modern_treasury/internal/type/converter.rb +27 -0
  9. data/lib/modern_treasury/internal/type/hash_of.rb +1 -0
  10. data/lib/modern_treasury/internal/type/union.rb +9 -7
  11. data/lib/modern_treasury/models/accounting.rb +30 -0
  12. data/lib/modern_treasury/models/address.rb +94 -0
  13. data/lib/modern_treasury/models/address_request.rb +54 -0
  14. data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
  15. data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
  16. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
  17. data/lib/modern_treasury/models/contact_detail.rb +81 -0
  18. data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
  19. data/lib/modern_treasury/models/counterparty.rb +24 -177
  20. data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
  21. data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
  22. data/lib/modern_treasury/models/document.rb +4 -6
  23. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  24. data/lib/modern_treasury/models/document_list_params.rb +4 -6
  25. data/lib/modern_treasury/models/expected_payment.rb +9 -1
  26. data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
  27. data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
  28. data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
  29. data/lib/modern_treasury/models/external_account.rb +15 -177
  30. data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
  31. data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
  32. data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
  33. data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
  34. data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
  35. data/lib/modern_treasury/models/identification_create_request.rb +86 -0
  36. data/lib/modern_treasury/models/internal_account.rb +3 -95
  37. data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
  38. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
  39. data/lib/modern_treasury/models/invoice.rb +3 -81
  40. data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
  41. data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
  42. data/lib/modern_treasury/models/ledger_account.rb +9 -141
  43. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
  44. data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
  45. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
  46. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
  47. data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
  48. data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
  49. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
  50. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
  51. data/lib/modern_treasury/models/ledger_balance.rb +45 -0
  52. data/lib/modern_treasury/models/ledger_balances.rb +38 -0
  53. data/lib/modern_treasury/models/ledger_entry.rb +3 -183
  54. data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
  55. data/lib/modern_treasury/models/ledger_entry_list_params.rb +8 -6
  56. data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
  57. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
  58. data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
  59. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
  60. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
  61. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
  62. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
  63. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
  64. data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
  65. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
  66. data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
  67. data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
  68. data/lib/modern_treasury/models/line_item.rb +3 -29
  69. data/lib/modern_treasury/models/payment_action_list_params.rb +2 -0
  70. data/lib/modern_treasury/models/payment_order.rb +13 -102
  71. data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
  72. data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
  73. data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
  74. data/lib/modern_treasury/models/payment_orders/reversal.rb +3 -4
  75. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
  76. data/lib/modern_treasury/models/payment_reference.rb +7 -1
  77. data/lib/modern_treasury/models/return_list_params.rb +5 -6
  78. data/lib/modern_treasury/models/return_object.rb +7 -3
  79. data/lib/modern_treasury/models/routing_detail.rb +3 -93
  80. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
  81. data/lib/modern_treasury/models/transaction.rb +5 -73
  82. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
  83. data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
  84. data/lib/modern_treasury/models.rb +31 -6
  85. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  86. data/lib/modern_treasury/resources/counterparties.rb +20 -14
  87. data/lib/modern_treasury/resources/expected_payments.rb +10 -4
  88. data/lib/modern_treasury/resources/external_accounts.rb +23 -17
  89. data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
  90. data/lib/modern_treasury/resources/invoices.rb +2 -2
  91. data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
  92. data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
  93. data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
  94. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
  95. data/lib/modern_treasury/resources/legal_entities.rb +4 -4
  96. data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
  97. data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
  98. data/lib/modern_treasury/resources/payment_orders.rb +5 -5
  99. data/lib/modern_treasury/resources/returns.rb +1 -1
  100. data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
  101. data/lib/modern_treasury/version.rb +1 -1
  102. data/lib/modern_treasury.rb +16 -6
  103. data/rbi/modern_treasury/client.rbi +0 -9
  104. data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
  105. data/rbi/modern_treasury/internal/type/converter.rbi +58 -0
  106. data/rbi/modern_treasury/internal/type/union.rbi +11 -2
  107. data/rbi/modern_treasury/models/accounting.rbi +48 -0
  108. data/rbi/modern_treasury/models/address.rbi +107 -0
  109. data/rbi/modern_treasury/models/address_request.rbi +76 -0
  110. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
  111. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
  112. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
  113. data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
  114. data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
  115. data/rbi/modern_treasury/models/counterparty.rbi +24 -264
  116. data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
  117. data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
  118. data/rbi/modern_treasury/models/document.rbi +6 -16
  119. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  120. data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
  121. data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
  122. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
  123. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
  124. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
  125. data/rbi/modern_treasury/models/external_account.rbi +15 -244
  126. data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
  127. data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
  128. data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
  129. data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
  130. data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
  131. data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
  132. data/rbi/modern_treasury/models/internal_account.rbi +4 -115
  133. data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
  134. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
  135. data/rbi/modern_treasury/models/invoice.rbi +3 -128
  136. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
  137. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
  138. data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
  139. data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
  140. data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
  141. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
  142. data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
  143. data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
  144. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
  145. data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
  146. data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
  147. data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
  148. data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
  149. data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
  150. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
  151. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +13 -8
  152. data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
  153. data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
  154. data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
  155. data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
  156. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
  157. data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
  158. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
  159. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
  160. data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
  161. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
  162. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
  163. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
  164. data/rbi/modern_treasury/models/line_item.rbi +4 -52
  165. data/rbi/modern_treasury/models/payment_action_list_params.rbi +10 -0
  166. data/rbi/modern_treasury/models/payment_order.rbi +43 -159
  167. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
  168. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
  169. data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
  170. data/rbi/modern_treasury/models/payment_orders/reversal.rbi +3 -3
  171. data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
  172. data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
  173. data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
  174. data/rbi/modern_treasury/models/return_object.rbi +35 -12
  175. data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
  176. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
  177. data/rbi/modern_treasury/models/transaction.rbi +14 -103
  178. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
  179. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
  180. data/rbi/modern_treasury/models.rbi +36 -6
  181. data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
  182. data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
  183. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  184. data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
  185. data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
  186. data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
  187. data/rbi/modern_treasury/resources/invoices.rbi +2 -8
  188. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
  189. data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
  190. data/rbi/modern_treasury/resources/ledger_entries.rbi +4 -2
  191. data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
  192. data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
  193. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
  194. data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
  195. data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
  196. data/rbi/modern_treasury/resources/returns.rbi +2 -2
  197. data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
  198. data/sig/modern_treasury/client.rbs +0 -6
  199. data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
  200. data/sig/modern_treasury/internal/type/converter.rbs +17 -0
  201. data/sig/modern_treasury/internal/type/union.rbs +2 -2
  202. data/sig/modern_treasury/models/accounting.rbs +15 -0
  203. data/sig/modern_treasury/models/address.rbs +70 -0
  204. data/sig/modern_treasury/models/address_request.rbs +45 -0
  205. data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
  206. data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
  207. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
  208. data/sig/modern_treasury/models/contact_detail.rbs +67 -0
  209. data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
  210. data/sig/modern_treasury/models/counterparty.rbs +20 -141
  211. data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
  212. data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
  213. data/sig/modern_treasury/models/document.rbs +0 -4
  214. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  215. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  216. data/sig/modern_treasury/models/expected_payment.rbs +5 -0
  217. data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
  218. data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
  219. data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
  220. data/sig/modern_treasury/models/external_account.rbs +13 -139
  221. data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
  222. data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
  223. data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
  224. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
  225. data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
  226. data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
  227. data/sig/modern_treasury/models/internal_account.rbs +4 -71
  228. data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
  229. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
  230. data/sig/modern_treasury/models/invoice.rbs +4 -68
  231. data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
  232. data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
  233. data/sig/modern_treasury/models/ledger_account.rbs +12 -123
  234. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
  235. data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
  236. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
  237. data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
  238. data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
  239. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
  240. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
  241. data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
  242. data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
  243. data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
  244. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
  245. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +6 -6
  246. data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
  247. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
  248. data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
  249. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
  250. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
  251. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
  252. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
  253. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
  254. data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
  255. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
  256. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
  257. data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
  258. data/sig/modern_treasury/models/line_item.rbs +4 -16
  259. data/sig/modern_treasury/models/payment_action_list_params.rbs +4 -1
  260. data/sig/modern_treasury/models/payment_order.rbs +22 -69
  261. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
  262. data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
  263. data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
  264. data/sig/modern_treasury/models/payment_orders/reversal.rbs +4 -4
  265. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
  266. data/sig/modern_treasury/models/payment_reference.rbs +14 -2
  267. data/sig/modern_treasury/models/return_list_params.rbs +1 -6
  268. data/sig/modern_treasury/models/return_object.rbs +15 -10
  269. data/sig/modern_treasury/models/routing_detail.rbs +4 -71
  270. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
  271. data/sig/modern_treasury/models/transaction.rbs +8 -53
  272. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
  273. data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
  274. data/sig/modern_treasury/models.rbs +30 -6
  275. data/sig/modern_treasury/resources/counterparties.rbs +2 -0
  276. data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
  277. data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
  278. data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
  279. data/sig/modern_treasury/resources/invoices.rbs +2 -2
  280. data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
  281. data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
  282. data/sig/modern_treasury/resources/ledger_entries.rbs +1 -1
  283. data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
  284. data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
  285. data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
  286. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
  287. data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
  288. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
  289. metadata +52 -22
  290. data/lib/modern_treasury/models/paper_item.rb +0 -178
  291. data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
  292. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
  293. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
  294. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
  295. data/lib/modern_treasury/resources/paper_items.rb +0 -68
  296. data/rbi/modern_treasury/models/paper_item.rbi +0 -204
  297. data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
  298. data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
  299. data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
  300. data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
  301. data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
  302. data/sig/modern_treasury/models/paper_item.rbs +0 -122
  303. data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
  304. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
  305. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
  306. data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
  307. data/sig/modern_treasury/resources/paper_items.rbs +0 -21
@@ -37,8 +37,8 @@ module ModernTreasury
37
37
  # @!attribute foreign_exchange_rate
38
38
  # The serialized rate information represented by this quote.
39
39
  #
40
- # @return [ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate]
41
- required :foreign_exchange_rate, -> { ModernTreasury::ForeignExchangeQuote::ForeignExchangeRate }
40
+ # @return [ModernTreasury::Models::ForeignExchangeRate]
41
+ required :foreign_exchange_rate, -> { ModernTreasury::ForeignExchangeRate }
42
42
 
43
43
  # @!attribute internal_account_id
44
44
  # The ID for the `InternalAccount` this quote is associated with.
@@ -90,7 +90,7 @@ module ModernTreasury
90
90
  #
91
91
  # @param foreign_exchange_indicator [String] Either `fixed_to_variable` if the `base_amount` was specified, or `variable_to_f
92
92
  #
93
- # @param foreign_exchange_rate [ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate] The serialized rate information represented by this quote.
93
+ # @param foreign_exchange_rate [ModernTreasury::Models::ForeignExchangeRate] The serialized rate information represented by this quote.
94
94
  #
95
95
  # @param internal_account_id [String] The ID for the `InternalAccount` this quote is associated with.
96
96
  #
@@ -103,76 +103,6 @@ module ModernTreasury
103
103
  # @param updated_at [Time]
104
104
  #
105
105
  # @param vendor_id [String] This vendor assigned ID for this quote.
106
-
107
- # @see ModernTreasury::Models::ForeignExchangeQuote#foreign_exchange_rate
108
- class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
109
- # @!attribute base_amount
110
- # Amount in the lowest denomination of the `base_currency` to convert, often
111
- # called the "sell" amount.
112
- #
113
- # @return [Integer]
114
- required :base_amount, Integer
115
-
116
- # @!attribute base_currency
117
- # Currency to convert, often called the "sell" currency.
118
- #
119
- # @return [Symbol, ModernTreasury::Models::Currency]
120
- required :base_currency, enum: -> { ModernTreasury::Currency }
121
-
122
- # @!attribute exponent
123
- # The exponent component of the rate. The decimal is calculated as `value` / (10 ^
124
- # `exponent`).
125
- #
126
- # @return [Integer]
127
- required :exponent, Integer
128
-
129
- # @!attribute rate_string
130
- # A string representation of the rate.
131
- #
132
- # @return [String]
133
- required :rate_string, String
134
-
135
- # @!attribute target_amount
136
- # Amount in the lowest denomination of the `target_currency`, often called the
137
- # "buy" amount.
138
- #
139
- # @return [Integer]
140
- required :target_amount, Integer
141
-
142
- # @!attribute target_currency
143
- # Currency to convert the `base_currency` to, often called the "buy" currency.
144
- #
145
- # @return [Symbol, ModernTreasury::Models::Currency]
146
- required :target_currency, enum: -> { ModernTreasury::Currency }
147
-
148
- # @!attribute value
149
- # The whole number component of the rate. The decimal is calculated as `value` /
150
- # (10 ^ `exponent`).
151
- #
152
- # @return [Integer]
153
- required :value, Integer
154
-
155
- # @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
156
- # Some parameter documentations has been truncated, see
157
- # {ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate} for more
158
- # details.
159
- #
160
- # The serialized rate information represented by this quote.
161
- #
162
- # @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
163
- #
164
- # @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
165
- #
166
- # @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
167
- #
168
- # @param rate_string [String] A string representation of the rate.
169
- #
170
- # @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
171
- #
172
- # @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
173
- #
174
- # @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
175
- end
176
106
  end
177
107
  end
178
108
  end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
6
+ # @!attribute base_amount
7
+ # Amount in the lowest denomination of the `base_currency` to convert, often
8
+ # called the "sell" amount.
9
+ #
10
+ # @return [Integer]
11
+ required :base_amount, Integer
12
+
13
+ # @!attribute base_currency
14
+ # Currency to convert, often called the "sell" currency.
15
+ #
16
+ # @return [Symbol, ModernTreasury::Models::Currency]
17
+ required :base_currency, enum: -> { ModernTreasury::Currency }
18
+
19
+ # @!attribute exponent
20
+ # The exponent component of the rate. The decimal is calculated as `value` / (10 ^
21
+ # `exponent`).
22
+ #
23
+ # @return [Integer]
24
+ required :exponent, Integer
25
+
26
+ # @!attribute rate_string
27
+ # A string representation of the rate.
28
+ #
29
+ # @return [String]
30
+ required :rate_string, String
31
+
32
+ # @!attribute target_amount
33
+ # Amount in the lowest denomination of the `target_currency`, often called the
34
+ # "buy" amount.
35
+ #
36
+ # @return [Integer]
37
+ required :target_amount, Integer
38
+
39
+ # @!attribute target_currency
40
+ # Currency to convert the `base_currency` to, often called the "buy" currency.
41
+ #
42
+ # @return [Symbol, ModernTreasury::Models::Currency]
43
+ required :target_currency, enum: -> { ModernTreasury::Currency }
44
+
45
+ # @!attribute value
46
+ # The whole number component of the rate. The decimal is calculated as `value` /
47
+ # (10 ^ `exponent`).
48
+ #
49
+ # @return [Integer]
50
+ required :value, Integer
51
+
52
+ # @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
53
+ # Some parameter documentations has been truncated, see
54
+ # {ModernTreasury::Models::ForeignExchangeRate} for more details.
55
+ #
56
+ # @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
57
+ #
58
+ # @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
59
+ #
60
+ # @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
61
+ #
62
+ # @param rate_string [String] A string representation of the rate.
63
+ #
64
+ # @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
65
+ #
66
+ # @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
67
+ #
68
+ # @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,86 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class IdentificationCreateRequest < ModernTreasury::Internal::Type::BaseModel
6
+ # @!attribute id_number
7
+ # The ID number of identification document.
8
+ #
9
+ # @return [String]
10
+ required :id_number, String
11
+
12
+ # @!attribute id_type
13
+ # The type of ID number.
14
+ #
15
+ # @return [Symbol, ModernTreasury::Models::IdentificationCreateRequest::IDType]
16
+ required :id_type, enum: -> { ModernTreasury::IdentificationCreateRequest::IDType }
17
+
18
+ # @!attribute expiration_date
19
+ # The date when the Identification is no longer considered valid by the issuing
20
+ # authority.
21
+ #
22
+ # @return [Date, nil]
23
+ optional :expiration_date, Date, nil?: true
24
+
25
+ # @!attribute issuing_country
26
+ # The ISO 3166-1 alpha-2 country code of the country that issued the
27
+ # identification
28
+ #
29
+ # @return [String, nil]
30
+ optional :issuing_country, String, nil?: true
31
+
32
+ # @!attribute issuing_region
33
+ # The region in which the identifcation was issued.
34
+ #
35
+ # @return [String, nil]
36
+ optional :issuing_region, String, nil?: true
37
+
38
+ # @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
39
+ # Some parameter documentations has been truncated, see
40
+ # {ModernTreasury::Models::IdentificationCreateRequest} for more details.
41
+ #
42
+ # @param id_number [String] The ID number of identification document.
43
+ #
44
+ # @param id_type [Symbol, ModernTreasury::Models::IdentificationCreateRequest::IDType] The type of ID number.
45
+ #
46
+ # @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
47
+ #
48
+ # @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
49
+ #
50
+ # @param issuing_region [String, nil] The region in which the identifcation was issued.
51
+
52
+ # The type of ID number.
53
+ #
54
+ # @see ModernTreasury::Models::IdentificationCreateRequest#id_type
55
+ module IDType
56
+ extend ModernTreasury::Internal::Type::Enum
57
+
58
+ AR_CUIL = :ar_cuil
59
+ AR_CUIT = :ar_cuit
60
+ BR_CNPJ = :br_cnpj
61
+ BR_CPF = :br_cpf
62
+ CL_RUN = :cl_run
63
+ CL_RUT = :cl_rut
64
+ CO_CEDULAS = :co_cedulas
65
+ CO_NIT = :co_nit
66
+ DRIVERS_LICENSE = :drivers_license
67
+ HN_ID = :hn_id
68
+ HN_RTN = :hn_rtn
69
+ IN_LEI = :in_lei
70
+ KR_BRN = :kr_brn
71
+ KR_CRN = :kr_crn
72
+ KR_RRN = :kr_rrn
73
+ PASSPORT = :passport
74
+ SA_TIN = :sa_tin
75
+ SA_VAT = :sa_vat
76
+ US_EIN = :us_ein
77
+ US_ITIN = :us_itin
78
+ US_SSN = :us_ssn
79
+ VN_TIN = :vn_tin
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
84
+ end
85
+ end
86
+ end
@@ -101,8 +101,8 @@ module ModernTreasury
101
101
  # @!attribute party_address
102
102
  # The address associated with the owner or null.
103
103
  #
104
- # @return [ModernTreasury::Models::InternalAccount::PartyAddress, nil]
105
- required :party_address, -> { ModernTreasury::InternalAccount::PartyAddress }, nil?: true
104
+ # @return [ModernTreasury::Models::Address, nil]
105
+ required :party_address, -> { ModernTreasury::Address }, nil?: true
106
106
 
107
107
  # @!attribute party_name
108
108
  # The legal name of the entity which owns the account.
@@ -167,7 +167,7 @@ module ModernTreasury
167
167
  #
168
168
  # @param parent_account_id [String, nil] The parent InternalAccount of this account.
169
169
  #
170
- # @param party_address [ModernTreasury::Models::InternalAccount::PartyAddress, nil] The address associated with the owner or null.
170
+ # @param party_address [ModernTreasury::Models::Address, nil] The address associated with the owner or null.
171
171
  #
172
172
  # @param party_name [String] The legal name of the entity which owns the account.
173
173
  #
@@ -326,98 +326,6 @@ module ModernTreasury
326
326
  # @return [Array<Symbol>]
327
327
  end
328
328
 
329
- # @see ModernTreasury::Models::InternalAccount#party_address
330
- class PartyAddress < ModernTreasury::Internal::Type::BaseModel
331
- # @!attribute id
332
- #
333
- # @return [String]
334
- required :id, String
335
-
336
- # @!attribute country
337
- # Country code conforms to [ISO 3166-1 alpha-2]
338
- #
339
- # @return [String, nil]
340
- required :country, String, nil?: true
341
-
342
- # @!attribute created_at
343
- #
344
- # @return [Time]
345
- required :created_at, Time
346
-
347
- # @!attribute line1
348
- #
349
- # @return [String, nil]
350
- required :line1, String, nil?: true
351
-
352
- # @!attribute line2
353
- #
354
- # @return [String, nil]
355
- required :line2, String, nil?: true
356
-
357
- # @!attribute live_mode
358
- # This field will be true if this object exists in the live environment or false
359
- # if it exists in the test environment.
360
- #
361
- # @return [Boolean]
362
- required :live_mode, ModernTreasury::Internal::Type::Boolean
363
-
364
- # @!attribute locality
365
- # Locality or City.
366
- #
367
- # @return [String, nil]
368
- required :locality, String, nil?: true
369
-
370
- # @!attribute object
371
- #
372
- # @return [String]
373
- required :object, String
374
-
375
- # @!attribute postal_code
376
- # The postal code of the address.
377
- #
378
- # @return [String, nil]
379
- required :postal_code, String, nil?: true
380
-
381
- # @!attribute region
382
- # Region or State.
383
- #
384
- # @return [String, nil]
385
- required :region, String, nil?: true
386
-
387
- # @!attribute updated_at
388
- #
389
- # @return [Time]
390
- required :updated_at, Time
391
-
392
- # @!method initialize(id:, country:, created_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
393
- # Some parameter documentations has been truncated, see
394
- # {ModernTreasury::Models::InternalAccount::PartyAddress} for more details.
395
- #
396
- # The address associated with the owner or null.
397
- #
398
- # @param id [String]
399
- #
400
- # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
401
- #
402
- # @param created_at [Time]
403
- #
404
- # @param line1 [String, nil]
405
- #
406
- # @param line2 [String, nil]
407
- #
408
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
409
- #
410
- # @param locality [String, nil] Locality or City.
411
- #
412
- # @param object [String]
413
- #
414
- # @param postal_code [String, nil] The postal code of the address.
415
- #
416
- # @param region [String, nil] Region or State.
417
- #
418
- # @param updated_at [Time]
419
- end
420
-
421
329
  # Either individual or business.
422
330
  #
423
331
  # @see ModernTreasury::Models::InternalAccount#party_type
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ # @see ModernTreasury::Resources::InternalAccounts#update_account_capability
6
+ class InternalAccountUpdateAccountCapabilityParams < ModernTreasury::Internal::Type::BaseModel
7
+ extend ModernTreasury::Internal::Type::RequestParameters::Converter
8
+ include ModernTreasury::Internal::Type::RequestParameters
9
+
10
+ # @!attribute internal_account_id
11
+ #
12
+ # @return [String]
13
+ required :internal_account_id, String
14
+
15
+ # @!attribute identifier
16
+ # A unique reference assigned by your bank for tracking and recognizing payment
17
+ # files. It is important this is formatted exactly how the bank assigned it.
18
+ #
19
+ # @return [String]
20
+ required :identifier, String
21
+
22
+ # @!method initialize(internal_account_id:, identifier:, request_options: {})
23
+ # Some parameter documentations has been truncated, see
24
+ # {ModernTreasury::Models::InternalAccountUpdateAccountCapabilityParams} for more
25
+ # details.
26
+ #
27
+ # @param internal_account_id [String]
28
+ #
29
+ # @param identifier [String] A unique reference assigned by your bank for tracking and recognizing payment fi
30
+ #
31
+ # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,131 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ # @see ModernTreasury::Resources::InternalAccounts#update_account_capability
6
+ class InternalAccountUpdateAccountCapabilityResponse < ModernTreasury::Internal::Type::BaseModel
7
+ # @!attribute id
8
+ #
9
+ # @return [String]
10
+ required :id, String
11
+
12
+ # @!attribute created_at
13
+ #
14
+ # @return [Time]
15
+ required :created_at, Time
16
+
17
+ # @!attribute direction
18
+ # One of `debit` or `credit`. Indicates the direction of money movement this
19
+ # capability is responsible for.
20
+ #
21
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
22
+ required :direction, enum: -> { ModernTreasury::TransactionDirection }
23
+
24
+ # @!attribute discarded_at
25
+ #
26
+ # @return [Time, nil]
27
+ required :discarded_at, Time, nil?: true
28
+
29
+ # @!attribute identifier
30
+ # A unique reference assigned by your bank for tracking and recognizing payment
31
+ # files. It is important this is formatted exactly how the bank assigned it.
32
+ #
33
+ # @return [String, nil]
34
+ required :identifier, String, nil?: true
35
+
36
+ # @!attribute live_mode
37
+ # This field will be true if this object exists in the live environment or false
38
+ # if it exists in the test environment.
39
+ #
40
+ # @return [Boolean]
41
+ required :live_mode, ModernTreasury::Internal::Type::Boolean
42
+
43
+ # @!attribute object
44
+ #
45
+ # @return [String]
46
+ required :object, String
47
+
48
+ # @!attribute payment_type
49
+ # Indicates the the type of payment this capability is responsible for
50
+ # originating.
51
+ #
52
+ # @return [Symbol, ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType]
53
+ required :payment_type,
54
+ enum: -> { ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType }
55
+
56
+ # @!attribute updated_at
57
+ #
58
+ # @return [Time]
59
+ required :updated_at, Time
60
+
61
+ # @!method initialize(id:, created_at:, direction:, discarded_at:, identifier:, live_mode:, object:, payment_type:, updated_at:)
62
+ # Some parameter documentations has been truncated, see
63
+ # {ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse} for
64
+ # more details.
65
+ #
66
+ # @param id [String]
67
+ #
68
+ # @param created_at [Time]
69
+ #
70
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `debit` or `credit`. Indicates the direction of money movement this capab
71
+ #
72
+ # @param discarded_at [Time, nil]
73
+ #
74
+ # @param identifier [String, nil] A unique reference assigned by your bank for tracking and recognizing payment fi
75
+ #
76
+ # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
77
+ #
78
+ # @param object [String]
79
+ #
80
+ # @param payment_type [Symbol, ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse::PaymentType] Indicates the the type of payment this capability is responsible for originating
81
+ #
82
+ # @param updated_at [Time]
83
+
84
+ # Indicates the the type of payment this capability is responsible for
85
+ # originating.
86
+ #
87
+ # @see ModernTreasury::Models::InternalAccountUpdateAccountCapabilityResponse#payment_type
88
+ module PaymentType
89
+ extend ModernTreasury::Internal::Type::Enum
90
+
91
+ ACH = :ach
92
+ AU_BECS = :au_becs
93
+ BACS = :bacs
94
+ BASE = :base
95
+ BOOK = :book
96
+ CARD = :card
97
+ CHATS = :chats
98
+ CHECK = :check
99
+ CROSS_BORDER = :cross_border
100
+ DK_NETS = :dk_nets
101
+ EFT = :eft
102
+ ETHEREUM = :ethereum
103
+ HU_ICS = :hu_ics
104
+ INTERAC = :interac
105
+ MASAV = :masav
106
+ MX_CCEN = :mx_ccen
107
+ NEFT = :neft
108
+ NICS = :nics
109
+ NZ_BECS = :nz_becs
110
+ PL_ELIXIR = :pl_elixir
111
+ POLYGON = :polygon
112
+ PROVXCHANGE = :provxchange
113
+ RO_SENT = :ro_sent
114
+ RTP = :rtp
115
+ SE_BANKGIROT = :se_bankgirot
116
+ SEN = :sen
117
+ SEPA = :sepa
118
+ SG_GIRO = :sg_giro
119
+ SIC = :sic
120
+ SIGNET = :signet
121
+ SKNBI = :sknbi
122
+ SOLANA = :solana
123
+ WIRE = :wire
124
+ ZENGIN = :zengin
125
+
126
+ # @!method self.values
127
+ # @return [Array<Symbol>]
128
+ end
129
+ end
130
+ end
131
+ end
@@ -26,9 +26,8 @@ module ModernTreasury
26
26
  # @!attribute contact_details
27
27
  # The invoicer's contact details displayed at the top of the invoice.
28
28
  #
29
- # @return [Array<ModernTreasury::Models::Invoice::ContactDetail>]
30
- required :contact_details,
31
- -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Invoice::ContactDetail] }
29
+ # @return [Array<ModernTreasury::Models::ContactDetail>]
30
+ required :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
32
31
 
33
32
  # @!attribute counterparty_billing_address
34
33
  # The counterparty's billing address.
@@ -261,7 +260,7 @@ module ModernTreasury
261
260
  #
262
261
  # @param amount_remaining [Integer] Amount remaining due on the invoice in specified currency's smallest unit, e.g.,
263
262
  #
264
- # @param contact_details [Array<ModernTreasury::Models::Invoice::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
263
+ # @param contact_details [Array<ModernTreasury::Models::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
265
264
  #
266
265
  # @param counterparty_billing_address [ModernTreasury::Models::Invoice::CounterpartyBillingAddress, nil] The counterparty's billing address.
267
266
  #
@@ -331,83 +330,6 @@ module ModernTreasury
331
330
  #
332
331
  # @param virtual_account_id [String, nil] The ID of the virtual account the invoice should be paid to.
333
332
 
334
- class ContactDetail < ModernTreasury::Internal::Type::BaseModel
335
- # @!attribute id
336
- #
337
- # @return [String]
338
- required :id, String
339
-
340
- # @!attribute contact_identifier
341
- #
342
- # @return [String]
343
- required :contact_identifier, String
344
-
345
- # @!attribute contact_identifier_type
346
- #
347
- # @return [Symbol, ModernTreasury::Models::Invoice::ContactDetail::ContactIdentifierType]
348
- required :contact_identifier_type,
349
- enum: -> { ModernTreasury::Invoice::ContactDetail::ContactIdentifierType }
350
-
351
- # @!attribute created_at
352
- #
353
- # @return [Time]
354
- required :created_at, Time
355
-
356
- # @!attribute discarded_at
357
- #
358
- # @return [Time, nil]
359
- required :discarded_at, Time, nil?: true
360
-
361
- # @!attribute live_mode
362
- # This field will be true if this object exists in the live environment or false
363
- # if it exists in the test environment.
364
- #
365
- # @return [Boolean]
366
- required :live_mode, ModernTreasury::Internal::Type::Boolean
367
-
368
- # @!attribute object
369
- #
370
- # @return [String]
371
- required :object, String
372
-
373
- # @!attribute updated_at
374
- #
375
- # @return [Time]
376
- required :updated_at, Time
377
-
378
- # @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
379
- # Some parameter documentations has been truncated, see
380
- # {ModernTreasury::Models::Invoice::ContactDetail} for more details.
381
- #
382
- # @param id [String]
383
- #
384
- # @param contact_identifier [String]
385
- #
386
- # @param contact_identifier_type [Symbol, ModernTreasury::Models::Invoice::ContactDetail::ContactIdentifierType]
387
- #
388
- # @param created_at [Time]
389
- #
390
- # @param discarded_at [Time, nil]
391
- #
392
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
393
- #
394
- # @param object [String]
395
- #
396
- # @param updated_at [Time]
397
-
398
- # @see ModernTreasury::Models::Invoice::ContactDetail#contact_identifier_type
399
- module ContactIdentifierType
400
- extend ModernTreasury::Internal::Type::Enum
401
-
402
- EMAIL = :email
403
- PHONE_NUMBER = :phone_number
404
- WEBSITE = :website
405
-
406
- # @!method self.values
407
- # @return [Array<Symbol>]
408
- end
409
- end
410
-
411
333
  # @see ModernTreasury::Models::Invoice#counterparty_billing_address
412
334
  class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
413
335
  # @!attribute country