modern_treasury 0.3.0 → 0.5.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 +31 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/internal/transport/base_client.rb +1 -4
  5. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +1 -9
  6. data/lib/modern_treasury/internal/type/base_model.rb +6 -12
  7. data/lib/modern_treasury/internal/util.rb +1 -1
  8. data/lib/modern_treasury/models/account_collection_flow.rb +2 -6
  9. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +1 -3
  10. data/lib/modern_treasury/models/bulk_request_create_params.rb +28 -107
  11. data/lib/modern_treasury/models/bulk_result.rb +1 -3
  12. data/lib/modern_treasury/models/child_legal_entity_create.rb +10 -12
  13. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +11 -15
  14. data/lib/modern_treasury/models/counterparty.rb +4 -16
  15. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +1 -3
  16. data/lib/modern_treasury/models/counterparty_create_params.rb +18 -33
  17. data/lib/modern_treasury/models/expected_payment_create_params.rb +1 -3
  18. data/lib/modern_treasury/models/expected_payment_list_params.rb +1 -0
  19. data/lib/modern_treasury/models/expected_payment_type.rb +1 -0
  20. data/lib/modern_treasury/models/external_account_create_params.rb +3 -6
  21. data/lib/modern_treasury/models/external_account_verify_params.rb +1 -0
  22. data/lib/modern_treasury/models/external_account_verify_response.rb +1 -0
  23. data/lib/modern_treasury/models/internal_account.rb +2 -3
  24. data/lib/modern_treasury/models/internal_account_create_params.rb +2 -3
  25. data/lib/modern_treasury/models/internal_account_list_params.rb +1 -0
  26. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +1 -0
  27. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +2 -7
  28. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +2 -6
  29. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +1 -3
  30. data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +1 -4
  31. data/lib/modern_treasury/models/ledger_account_list_params.rb +1 -4
  32. data/lib/modern_treasury/models/ledger_account_settlement.rb +3 -3
  33. data/lib/modern_treasury/models/ledger_entry_list_params.rb +46 -4
  34. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +2 -6
  35. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +45 -1
  36. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +2 -6
  37. data/lib/modern_treasury/models/legal_entity.rb +11 -16
  38. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +1 -3
  39. data/lib/modern_treasury/models/legal_entity_association.rb +15 -27
  40. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +1 -3
  41. data/lib/modern_treasury/models/legal_entity_bank_settings.rb +91 -0
  42. data/lib/modern_treasury/models/legal_entity_create_params.rb +11 -15
  43. data/lib/modern_treasury/models/legal_entity_update_params.rb +10 -12
  44. data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +312 -0
  45. data/lib/modern_treasury/models/line_item.rb +1 -18
  46. data/lib/modern_treasury/models/payment_action_create_response.rb +1 -1
  47. data/lib/modern_treasury/models/payment_action_list_params.rb +1 -2
  48. data/lib/modern_treasury/models/payment_action_list_response.rb +1 -1
  49. data/lib/modern_treasury/models/payment_action_retrieve_response.rb +1 -1
  50. data/lib/modern_treasury/models/payment_action_update_params.rb +1 -0
  51. data/lib/modern_treasury/models/payment_action_update_response.rb +1 -1
  52. data/lib/modern_treasury/models/payment_flow.rb +1 -4
  53. data/lib/modern_treasury/models/payment_order.rb +2 -19
  54. data/lib/modern_treasury/models/payment_order_create_async_params.rb +8 -37
  55. data/lib/modern_treasury/models/payment_order_create_params.rb +9 -40
  56. data/lib/modern_treasury/models/payment_order_list_params.rb +1 -0
  57. data/lib/modern_treasury/models/payment_order_type.rb +1 -0
  58. data/lib/modern_treasury/models/payment_order_update_params.rb +8 -37
  59. data/lib/modern_treasury/models/payment_reference.rb +1 -0
  60. data/lib/modern_treasury/models/reconciliation_rule.rb +1 -0
  61. data/lib/modern_treasury/models/return_object.rb +1 -0
  62. data/lib/modern_treasury/models/routing_detail.rb +1 -0
  63. data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
  64. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -7
  65. data/lib/modern_treasury/models/transaction.rb +1 -0
  66. data/lib/modern_treasury/models/transaction_create_params.rb +1 -0
  67. data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -6
  68. data/lib/modern_treasury/models.rb +4 -2
  69. data/lib/modern_treasury/resources/ledger_entries.rb +3 -1
  70. data/lib/modern_treasury/resources/ledger_transactions.rb +3 -1
  71. data/lib/modern_treasury/resources/legal_entities.rb +4 -4
  72. data/lib/modern_treasury/resources/payment_orders.rb +3 -15
  73. data/lib/modern_treasury/version.rb +1 -1
  74. data/lib/modern_treasury.rb +2 -1
  75. data/rbi/modern_treasury/errors.rbi +2 -2
  76. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +15 -38
  77. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +14 -8
  78. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +16 -8
  79. data/rbi/modern_treasury/models/counterparty_create_params.rbi +21 -8
  80. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +5 -0
  81. data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -0
  82. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
  83. data/rbi/modern_treasury/models/external_account_verify_params.rbi +5 -0
  84. data/rbi/modern_treasury/models/external_account_verify_response.rbi +5 -0
  85. data/rbi/modern_treasury/models/internal_account.rbi +5 -0
  86. data/rbi/modern_treasury/models/internal_account_create_params.rbi +5 -0
  87. data/rbi/modern_treasury/models/internal_account_list_params.rbi +5 -0
  88. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +5 -0
  89. data/rbi/modern_treasury/models/ledger_account_settlement.rbi +3 -3
  90. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +82 -0
  91. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +84 -0
  92. data/rbi/modern_treasury/models/legal_entity.rbi +14 -8
  93. data/rbi/modern_treasury/models/legal_entity_association.rbi +16 -8
  94. data/rbi/modern_treasury/models/legal_entity_bank_settings.rbi +112 -0
  95. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +14 -8
  96. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +14 -8
  97. data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +815 -0
  98. data/rbi/modern_treasury/models/line_item.rbi +0 -21
  99. data/rbi/modern_treasury/models/payment_action_create_response.rbi +2 -2
  100. data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -10
  101. data/rbi/modern_treasury/models/payment_action_list_response.rbi +2 -2
  102. data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +2 -2
  103. data/rbi/modern_treasury/models/payment_action_update_params.rbi +5 -0
  104. data/rbi/modern_treasury/models/payment_action_update_response.rbi +2 -2
  105. data/rbi/modern_treasury/models/payment_order.rbi +5 -19
  106. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +5 -19
  107. data/rbi/modern_treasury/models/payment_order_create_params.rbi +5 -19
  108. data/rbi/modern_treasury/models/payment_order_list_params.rbi +5 -0
  109. data/rbi/modern_treasury/models/payment_order_type.rbi +1 -0
  110. data/rbi/modern_treasury/models/payment_order_update_params.rbi +5 -19
  111. data/rbi/modern_treasury/models/payment_reference.rbi +5 -0
  112. data/rbi/modern_treasury/models/reconciliation_rule.rbi +2 -0
  113. data/rbi/modern_treasury/models/return_object.rbi +5 -0
  114. data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
  115. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
  116. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +5 -0
  117. data/rbi/modern_treasury/models/transaction.rbi +1 -0
  118. data/rbi/modern_treasury/models/transaction_create_params.rbi +5 -0
  119. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
  120. data/rbi/modern_treasury/models.rbi +5 -2
  121. data/rbi/modern_treasury/resources/ledger_entries.rbi +3 -0
  122. data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -0
  123. data/rbi/modern_treasury/resources/legal_entities.rbi +10 -4
  124. data/rbi/modern_treasury/resources/payment_orders.rbi +0 -18
  125. data/sig/modern_treasury/models/bulk_request_create_params.rbs +6 -28
  126. data/sig/modern_treasury/models/child_legal_entity_create.rbs +8 -8
  127. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +8 -8
  128. data/sig/modern_treasury/models/counterparty_create_params.rbs +10 -8
  129. data/sig/modern_treasury/models/expected_payment_list_params.rbs +2 -0
  130. data/sig/modern_treasury/models/expected_payment_type.rbs +2 -0
  131. data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
  132. data/sig/modern_treasury/models/external_account_verify_params.rbs +2 -0
  133. data/sig/modern_treasury/models/external_account_verify_response.rbs +2 -0
  134. data/sig/modern_treasury/models/internal_account.rbs +2 -0
  135. data/sig/modern_treasury/models/internal_account_create_params.rbs +2 -0
  136. data/sig/modern_treasury/models/internal_account_list_params.rbs +2 -0
  137. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +2 -0
  138. data/sig/modern_treasury/models/ledger_account_settlement.rbs +4 -4
  139. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +50 -0
  140. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +50 -0
  141. data/sig/modern_treasury/models/legal_entity.rbs +8 -8
  142. data/sig/modern_treasury/models/legal_entity_association.rbs +8 -8
  143. data/sig/modern_treasury/models/legal_entity_bank_settings.rbs +65 -0
  144. data/sig/modern_treasury/models/legal_entity_create_params.rbs +8 -8
  145. data/sig/modern_treasury/models/legal_entity_update_params.rbs +8 -8
  146. data/sig/modern_treasury/models/legal_entity_wealth_employment_detail.rbs +325 -0
  147. data/sig/modern_treasury/models/line_item.rbs +0 -10
  148. data/sig/modern_treasury/models/payment_action_list_params.rbs +9 -5
  149. data/sig/modern_treasury/models/payment_action_update_params.rbs +8 -1
  150. data/sig/modern_treasury/models/payment_order.rbs +2 -10
  151. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -14
  152. data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -14
  153. data/sig/modern_treasury/models/payment_order_list_params.rbs +2 -0
  154. data/sig/modern_treasury/models/payment_order_type.rbs +2 -0
  155. data/sig/modern_treasury/models/payment_order_update_params.rbs +2 -14
  156. data/sig/modern_treasury/models/payment_reference.rbs +2 -0
  157. data/sig/modern_treasury/models/reconciliation_rule.rbs +2 -0
  158. data/sig/modern_treasury/models/return_object.rbs +2 -0
  159. data/sig/modern_treasury/models/routing_detail.rbs +2 -0
  160. data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
  161. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +2 -0
  162. data/sig/modern_treasury/models/transaction.rbs +2 -0
  163. data/sig/modern_treasury/models/transaction_create_params.rbs +2 -0
  164. data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
  165. data/sig/modern_treasury/models.rbs +4 -2
  166. data/sig/modern_treasury/resources/ledger_entries.rbs +1 -0
  167. data/sig/modern_treasury/resources/ledger_transactions.rbs +1 -0
  168. data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
  169. data/sig/modern_treasury/resources/payment_orders.rbs +0 -6
  170. metadata +8 -5
  171. data/lib/modern_treasury/models/accounting.rb +0 -30
  172. data/rbi/modern_treasury/models/accounting.rbi +0 -48
  173. data/sig/modern_treasury/models/accounting.rbs +0 -15
@@ -37,11 +37,6 @@ module ModernTreasury
37
37
  # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
38
38
  required :type, enum: -> { ModernTreasury::PaymentOrderType }
39
39
 
40
- # @!attribute accounting
41
- #
42
- # @return [ModernTreasury::Models::Accounting, nil]
43
- optional :accounting, -> { ModernTreasury::Accounting }
44
-
45
40
  # @!attribute accounting_category_id
46
41
  # @deprecated
47
42
  #
@@ -51,15 +46,6 @@ module ModernTreasury
51
46
  # @return [String, nil]
52
47
  optional :accounting_category_id, String, nil?: true
53
48
 
54
- # @!attribute accounting_ledger_class_id
55
- # @deprecated
56
- #
57
- # The ID of one of your accounting ledger classes. Note that these will only be
58
- # accessible if your accounting system has been connected.
59
- #
60
- # @return [String, nil]
61
- optional :accounting_ledger_class_id, String, nil?: true
62
-
63
49
  # @!attribute charge_bearer
64
50
  # The party that will pay the fees for the payment order. See
65
51
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
@@ -86,9 +72,7 @@ module ModernTreasury
86
72
  #
87
73
  # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::Document>, nil]
88
74
  optional :documents,
89
- -> {
90
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::Document]
91
- }
75
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::Document] }
92
76
 
93
77
  # @!attribute effective_date
94
78
  # Date transactions are to be posted to the participants' account. Defaults to the
@@ -152,9 +136,7 @@ module ModernTreasury
152
136
  #
153
137
  # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::LineItem>, nil]
154
138
  optional :line_items,
155
- -> {
156
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::LineItem]
157
- }
139
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::LineItem] }
158
140
 
159
141
  # @!attribute metadata
160
142
  # Additional data represented as key-value pairs. Both the key and value must be
@@ -287,7 +269,7 @@ module ModernTreasury
287
269
  # @return [String, nil]
288
270
  optional :ultimate_receiving_party_name, String, nil?: true
289
271
 
290
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
272
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
291
273
  # Some parameter documentations has been truncated, see
292
274
  # {ModernTreasury::Models::PaymentOrderCreateParams} for more details.
293
275
  #
@@ -299,12 +281,8 @@ module ModernTreasury
299
281
  #
300
282
  # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
301
283
  #
302
- # @param accounting [ModernTreasury::Models::Accounting]
303
- #
304
284
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
305
285
  #
306
- # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
307
- #
308
286
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
309
287
  #
310
288
  # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
@@ -530,9 +508,7 @@ module ModernTreasury
530
508
  #
531
509
  # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>, nil]
532
510
  optional :account_details,
533
- -> {
534
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail]
535
- }
511
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail] }
536
512
 
537
513
  # @!attribute account_type
538
514
  # Can be `checking`, `savings` or `other`.
@@ -612,9 +588,7 @@ module ModernTreasury
612
588
  #
613
589
  # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail>, nil]
614
590
  optional :routing_details,
615
- -> {
616
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail]
617
- }
591
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail] }
618
592
 
619
593
  # @!method initialize(account_details: nil, account_type: nil, contact_details: nil, external_id: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
620
594
  # Some parameter documentations has been truncated, see
@@ -661,9 +635,7 @@ module ModernTreasury
661
635
  #
662
636
  # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
663
637
  optional :account_number_type,
664
- enum: -> {
665
- ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType
666
- }
638
+ enum: -> { ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType }
667
639
 
668
640
  # @!method initialize(account_number:, account_number_type: nil)
669
641
  # @param account_number [String]
@@ -716,17 +688,13 @@ module ModernTreasury
716
688
  #
717
689
  # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
718
690
  required :routing_number_type,
719
- enum: -> {
720
- ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType
721
- }
691
+ enum: -> { ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType }
722
692
 
723
693
  # @!attribute payment_type
724
694
  #
725
695
  # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
726
696
  optional :payment_type,
727
- enum: -> {
728
- ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType
729
- }
697
+ enum: -> { ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType }
730
698
 
731
699
  # @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
732
700
  # @param routing_number [String]
@@ -780,6 +748,7 @@ module ModernTreasury
780
748
  DK_NETS = :dk_nets
781
749
  EFT = :eft
782
750
  ETHEREUM = :ethereum
751
+ GB_FPS = :gb_fps
783
752
  HU_ICS = :hu_ics
784
753
  INTERAC = :interac
785
754
  MASAV = :masav
@@ -201,6 +201,7 @@ module ModernTreasury
201
201
  DK_NETS = :dk_nets
202
202
  EFT = :eft
203
203
  ETHEREUM = :ethereum
204
+ GB_FPS = :gb_fps
204
205
  HU_ICS = :hu_ics
205
206
  INTERAC = :interac
206
207
  MASAV = :masav
@@ -20,6 +20,7 @@ module ModernTreasury
20
20
  DK_NETS = :dk_nets
21
21
  EFT = :eft
22
22
  ETHEREUM = :ethereum
23
+ GB_FPS = :gb_fps
23
24
  HU_ICS = :hu_ics
24
25
  INTERAC = :interac
25
26
  MASAV = :masav
@@ -7,11 +7,6 @@ module ModernTreasury
7
7
  extend ModernTreasury::Internal::Type::RequestParameters::Converter
8
8
  include ModernTreasury::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute accounting
11
- #
12
- # @return [ModernTreasury::Models::Accounting, nil]
13
- optional :accounting, -> { ModernTreasury::Accounting }
14
-
15
10
  # @!attribute accounting_category_id
16
11
  # @deprecated
17
12
  #
@@ -21,15 +16,6 @@ module ModernTreasury
21
16
  # @return [String, nil]
22
17
  optional :accounting_category_id, String, nil?: true
23
18
 
24
- # @!attribute accounting_ledger_class_id
25
- # @deprecated
26
- #
27
- # The ID of one of your accounting ledger classes. Note that these will only be
28
- # accessible if your accounting system has been connected.
29
- #
30
- # @return [String, nil]
31
- optional :accounting_ledger_class_id, String, nil?: true
32
-
33
19
  # @!attribute amount
34
20
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
35
21
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
@@ -116,9 +102,7 @@ module ModernTreasury
116
102
  #
117
103
  # @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::LineItem>, nil]
118
104
  optional :line_items,
119
- -> {
120
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderUpdateParams::LineItem]
121
- }
105
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderUpdateParams::LineItem] }
122
106
 
123
107
  # @!attribute metadata
124
108
  # Additional data represented as key-value pairs. Both the key and value must be
@@ -274,16 +258,12 @@ module ModernTreasury
274
258
  # @return [String, nil]
275
259
  optional :ultimate_receiving_party_name, String, nil?: true
276
260
 
277
- # @!method initialize(accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
261
+ # @!method initialize(accounting_category_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
278
262
  # Some parameter documentations has been truncated, see
279
263
  # {ModernTreasury::Models::PaymentOrderUpdateParams} for more details.
280
264
  #
281
- # @param accounting [ModernTreasury::Models::Accounting]
282
- #
283
265
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
284
266
  #
285
- # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
286
- #
287
267
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
288
268
  #
289
269
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
@@ -460,9 +440,7 @@ module ModernTreasury
460
440
  #
461
441
  # @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail>, nil]
462
442
  optional :account_details,
463
- -> {
464
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail]
465
- }
443
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail] }
466
444
 
467
445
  # @!attribute account_type
468
446
  # Can be `checking`, `savings` or `other`.
@@ -542,9 +520,7 @@ module ModernTreasury
542
520
  #
543
521
  # @return [Array<ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail>, nil]
544
522
  optional :routing_details,
545
- -> {
546
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail]
547
- }
523
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail] }
548
524
 
549
525
  # @!method initialize(account_details: nil, account_type: nil, contact_details: nil, external_id: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
550
526
  # Some parameter documentations has been truncated, see
@@ -591,9 +567,7 @@ module ModernTreasury
591
567
  #
592
568
  # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
593
569
  optional :account_number_type,
594
- enum: -> {
595
- ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType
596
- }
570
+ enum: -> { ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::AccountDetail::AccountNumberType }
597
571
 
598
572
  # @!method initialize(account_number:, account_number_type: nil)
599
573
  # @param account_number [String]
@@ -646,17 +620,13 @@ module ModernTreasury
646
620
  #
647
621
  # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
648
622
  required :routing_number_type,
649
- enum: -> {
650
- ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::RoutingNumberType
651
- }
623
+ enum: -> { ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::RoutingNumberType }
652
624
 
653
625
  # @!attribute payment_type
654
626
  #
655
627
  # @return [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
656
628
  optional :payment_type,
657
- enum: -> {
658
- ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType
659
- }
629
+ enum: -> { ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType }
660
630
 
661
631
  # @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
662
632
  # @param routing_number [String]
@@ -710,6 +680,7 @@ module ModernTreasury
710
680
  DK_NETS = :dk_nets
711
681
  EFT = :eft
712
682
  ETHEREUM = :ethereum
683
+ GB_FPS = :gb_fps
713
684
  HU_ICS = :hu_ics
714
685
  INTERAC = :interac
715
686
  MASAV = :masav
@@ -91,6 +91,7 @@ module ModernTreasury
91
91
  BANKPROV_PAYMENT_ID = :bankprov_payment_id
92
92
  BNK_DEV_PRENOTIFICATION_ID = :bnk_dev_prenotification_id
93
93
  BNK_DEV_TRANSFER_ID = :bnk_dev_transfer_id
94
+ BNY_MELLON_TRANSACTION_REFERENCE_NUMBER = :bny_mellon_transaction_reference_number
94
95
  BOFA_END_TO_END_ID = :bofa_end_to_end_id
95
96
  BOFA_TRANSACTION_ID = :bofa_transaction_id
96
97
  BRALE_TRANSFER_ID = :brale_transfer_id
@@ -124,6 +124,7 @@ module ModernTreasury
124
124
  DK_NETS = :dk_nets
125
125
  EFT = :eft
126
126
  ETHEREUM = :ethereum
127
+ GB_FPS = :gb_fps
127
128
  HU_ICS = :hu_ics
128
129
  INTERAC = :interac
129
130
  MASAV = :masav
@@ -462,6 +462,7 @@ module ModernTreasury
462
462
  BANKPROV_PAYMENT_ID = :bankprov_payment_id
463
463
  BNK_DEV_PRENOTIFICATION_ID = :bnk_dev_prenotification_id
464
464
  BNK_DEV_TRANSFER_ID = :bnk_dev_transfer_id
465
+ BNY_MELLON_TRANSACTION_REFERENCE_NUMBER = :bny_mellon_transaction_reference_number
465
466
  BOFA_END_TO_END_ID = :bofa_end_to_end_id
466
467
  BOFA_TRANSACTION_ID = :bofa_transaction_id
467
468
  BRALE_TRANSFER_ID = :brale_transfer_id
@@ -113,6 +113,7 @@ module ModernTreasury
113
113
  DK_NETS = :dk_nets
114
114
  EFT = :eft
115
115
  ETHEREUM = :ethereum
116
+ GB_FPS = :gb_fps
116
117
  HU_ICS = :hu_ics
117
118
  INTERAC = :interac
118
119
  MASAV = :masav
@@ -106,6 +106,7 @@ module ModernTreasury
106
106
  DK_NETS = :dk_nets
107
107
  EFT = :eft
108
108
  ETHEREUM = :ethereum
109
+ GB_FPS = :gb_fps
109
110
  HU_ICS = :hu_ics
110
111
  INTERAC = :interac
111
112
  MASAV = :masav
@@ -29,10 +29,7 @@ module ModernTreasury
29
29
  # routing numbers '123456789' and 'GRINUST0XXX' respectively.
30
30
  #
31
31
  # @return [Symbol, ModernTreasury::Models::RoutingNumberLookupRequest::RoutingNumberType, nil]
32
- optional :routing_number_type,
33
- enum: -> {
34
- ModernTreasury::RoutingNumberLookupRequest::RoutingNumberType
35
- }
32
+ optional :routing_number_type, enum: -> { ModernTreasury::RoutingNumberLookupRequest::RoutingNumberType }
36
33
 
37
34
  # @!attribute sanctions
38
35
  # An object containing key-value pairs, each with a sanctions list as the key and
@@ -48,9 +45,7 @@ module ModernTreasury
48
45
  #
49
46
  # @return [Array<Symbol, ModernTreasury::Models::RoutingNumberLookupRequest::SupportedPaymentType>, nil]
50
47
  optional :supported_payment_types,
51
- -> {
52
- ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::RoutingNumberLookupRequest::SupportedPaymentType]
53
- }
48
+ -> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::RoutingNumberLookupRequest::SupportedPaymentType] }
54
49
 
55
50
  # @!method initialize(bank_address: nil, bank_name: nil, routing_number: nil, routing_number_type: nil, sanctions: nil, supported_payment_types: nil)
56
51
  # Some parameter documentations has been truncated, see
@@ -106,6 +101,7 @@ module ModernTreasury
106
101
  DK_NETS = :dk_nets
107
102
  EFT = :eft
108
103
  ETHEREUM = :ethereum
104
+ GB_FPS = :gb_fps
109
105
  HU_ICS = :hu_ics
110
106
  INTERAC = :interac
111
107
  MASAV = :masav
@@ -242,6 +242,7 @@ module ModernTreasury
242
242
  DK_NETS = :dk_nets
243
243
  EFT = :eft
244
244
  ETHEREUM = :ethereum
245
+ GB_FPS = :gb_fps
245
246
  HU_ICS = :hu_ics
246
247
  INTERAC = :interac
247
248
  MASAV = :masav
@@ -126,6 +126,7 @@ module ModernTreasury
126
126
  DK_NETS = :dk_nets
127
127
  EFT = :eft
128
128
  ETHEREUM = :ethereum
129
+ GB_FPS = :gb_fps
129
130
  HU_ICS = :hu_ics
130
131
  INTERAC = :interac
131
132
  MASAV = :masav
@@ -24,9 +24,7 @@ module ModernTreasury
24
24
  #
25
25
  # @return [Array<ModernTreasury::Models::VirtualAccountCreateParams::AccountDetail>, nil]
26
26
  optional :account_details,
27
- -> {
28
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::AccountDetail]
29
- }
27
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::AccountDetail] }
30
28
 
31
29
  # @!attribute counterparty_id
32
30
  # The ID of the counterparty that the virtual account belongs to.
@@ -76,9 +74,7 @@ module ModernTreasury
76
74
  #
77
75
  # @return [Array<ModernTreasury::Models::VirtualAccountCreateParams::RoutingDetail>, nil]
78
76
  optional :routing_details,
79
- -> {
80
- ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::RoutingDetail]
81
- }
77
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::VirtualAccountCreateParams::RoutingDetail] }
82
78
 
83
79
  # @!method initialize(internal_account_id:, name:, account_details: nil, counterparty_id: nil, credit_ledger_account_id: nil, debit_ledger_account_id: nil, description: nil, ledger_account: nil, metadata: nil, routing_details: nil, request_options: {})
84
80
  # Some parameter documentations has been truncated, see
@@ -247,6 +243,7 @@ module ModernTreasury
247
243
  DK_NETS = :dk_nets
248
244
  EFT = :eft
249
245
  ETHEREUM = :ethereum
246
+ GB_FPS = :gb_fps
250
247
  HU_ICS = :hu_ics
251
248
  INTERAC = :interac
252
249
  MASAV = :masav
@@ -62,8 +62,6 @@ module ModernTreasury
62
62
 
63
63
  AccountDetailRetrieveParams = ModernTreasury::Models::AccountDetailRetrieveParams
64
64
 
65
- Accounting = ModernTreasury::Models::Accounting
66
-
67
65
  AccountsType = ModernTreasury::Models::AccountsType
68
66
 
69
67
  Address = ModernTreasury::Models::Address
@@ -346,6 +344,8 @@ module ModernTreasury
346
344
 
347
345
  LegalEntityAssociationCreateParams = ModernTreasury::Models::LegalEntityAssociationCreateParams
348
346
 
347
+ LegalEntityBankSettings = ModernTreasury::Models::LegalEntityBankSettings
348
+
349
349
  LegalEntityComplianceDetail = ModernTreasury::Models::LegalEntityComplianceDetail
350
350
 
351
351
  LegalEntityCreateParams = ModernTreasury::Models::LegalEntityCreateParams
@@ -358,6 +358,8 @@ module ModernTreasury
358
358
 
359
359
  LegalEntityUpdateParams = ModernTreasury::Models::LegalEntityUpdateParams
360
360
 
361
+ LegalEntityWealthEmploymentDetail = ModernTreasury::Models::LegalEntityWealthEmploymentDetail
362
+
361
363
  LineItem = ModernTreasury::Models::LineItem
362
364
 
363
365
  LineItemListParams = ModernTreasury::Models::LineItemListParams
@@ -62,12 +62,14 @@ module ModernTreasury
62
62
  #
63
63
  # Get a list of all ledger entries.
64
64
  #
65
- # @overload list(id: nil, after_cursor: nil, as_of_lock_version: nil, direction: nil, effective_at: nil, effective_date: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_lock_version: nil, ledger_account_payout_id: nil, ledger_account_settlement_id: nil, ledger_account_statement_id: nil, ledger_transaction_id: nil, metadata: nil, order_by: nil, per_page: nil, show_balances: nil, show_deleted: nil, status: nil, updated_at: nil, request_options: {})
65
+ # @overload list(id: nil, after_cursor: nil, amount: nil, as_of_lock_version: nil, direction: nil, effective_at: nil, effective_date: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_lock_version: nil, ledger_account_payout_id: nil, ledger_account_settlement_id: nil, ledger_account_statement_id: nil, ledger_transaction_id: nil, metadata: nil, order_by: nil, per_page: nil, show_balances: nil, show_deleted: nil, status: nil, updated_at: nil, request_options: {})
66
66
  #
67
67
  # @param id [Array<String>] If you have specific IDs to retrieve in bulk, you can pass them as query paramet
68
68
  #
69
69
  # @param after_cursor [String, nil]
70
70
  #
71
+ # @param amount [ModernTreasury::Models::LedgerEntryListParams::Amount] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
72
+ #
71
73
  # @param as_of_lock_version [Integer] Shows all ledger entries that were present on a ledger account at a particular `
72
74
  #
73
75
  # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] If true, response will include ledger entries that were deleted. When you update
@@ -111,12 +111,14 @@ module ModernTreasury
111
111
  #
112
112
  # Get a list of ledger transactions.
113
113
  #
114
- # @overload list(id: nil, after_cursor: nil, effective_at: nil, effective_date: nil, external_id: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_settlement_id: nil, ledger_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, order_by: nil, partially_posts_ledger_transaction_id: nil, per_page: nil, posted_at: nil, reverses_ledger_transaction_id: nil, status: nil, updated_at: nil, request_options: {})
114
+ # @overload list(id: nil, after_cursor: nil, amount: nil, effective_at: nil, effective_date: nil, external_id: nil, ledger_account_category_id: nil, ledger_account_id: nil, ledger_account_settlement_id: nil, ledger_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, order_by: nil, partially_posts_ledger_transaction_id: nil, per_page: nil, posted_at: nil, reverses_ledger_transaction_id: nil, status: nil, updated_at: nil, request_options: {})
115
115
  #
116
116
  # @param id [Array<String>] If you have specific IDs to retrieve in bulk, you can pass them as query paramet
117
117
  #
118
118
  # @param after_cursor [String, nil]
119
119
  #
120
+ # @param amount [ModernTreasury::Models::LedgerTransactionListParams::Amount] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
121
+ #
120
122
  # @param effective_at [Hash{Symbol=>Time}] Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by effecti
121
123
  #
122
124
  # @param effective_date [Hash{Symbol=>Time}] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by effecti
@@ -14,7 +14,7 @@ module ModernTreasury
14
14
  #
15
15
  # @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
16
16
  #
17
- # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
17
+ # @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
18
18
  #
19
19
  # @param business_name [String, nil] The business's legal business name.
20
20
  #
@@ -58,7 +58,7 @@ module ModernTreasury
58
58
  #
59
59
  # @param suffix [String, nil] An individual's suffix.
60
60
  #
61
- # @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
61
+ # @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
62
62
  #
63
63
  # @param website [String, nil] The entity's primary website URL.
64
64
  #
@@ -109,7 +109,7 @@ module ModernTreasury
109
109
  #
110
110
  # @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
111
111
  #
112
- # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
112
+ # @param bank_settings [ModernTreasury::Models::LegalEntityBankSettings, nil]
113
113
  #
114
114
  # @param business_name [String, nil] The business's legal business name.
115
115
  #
@@ -151,7 +151,7 @@ module ModernTreasury
151
151
  #
152
152
  # @param suffix [String, nil] An individual's suffix.
153
153
  #
154
- # @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
154
+ # @param wealth_and_employment_details [ModernTreasury::Models::LegalEntityWealthEmploymentDetail, nil]
155
155
  #
156
156
  # @param website [String, nil] The entity's primary website URL.
157
157
  #
@@ -11,7 +11,7 @@ module ModernTreasury
11
11
  #
12
12
  # Create a new Payment Order
13
13
  #
14
- # @overload create(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
14
+ # @overload create(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
15
15
  #
16
16
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
17
17
  #
@@ -21,12 +21,8 @@ module ModernTreasury
21
21
  #
22
22
  # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
23
23
  #
24
- # @param accounting [ModernTreasury::Models::Accounting]
25
- #
26
24
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
27
25
  #
28
- # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
29
- #
30
26
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
31
27
  #
32
28
  # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
@@ -125,16 +121,12 @@ module ModernTreasury
125
121
  #
126
122
  # Update a payment order
127
123
  #
128
- # @overload update(id, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
124
+ # @overload update(id, accounting_category_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
129
125
  #
130
126
  # @param id [String]
131
127
  #
132
- # @param accounting [ModernTreasury::Models::Accounting]
133
- #
134
128
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
135
129
  #
136
- # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
137
- #
138
130
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
139
131
  #
140
132
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderUpdateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
@@ -278,7 +270,7 @@ module ModernTreasury
278
270
  #
279
271
  # Create a new payment order asynchronously
280
272
  #
281
- # @overload create_async(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
273
+ # @overload create_async(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
282
274
  #
283
275
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
284
276
  #
@@ -288,12 +280,8 @@ module ModernTreasury
288
280
  #
289
281
  # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
290
282
  #
291
- # @param accounting [ModernTreasury::Models::Accounting]
292
- #
293
283
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
294
284
  #
295
- # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
296
- #
297
285
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
298
286
  #
299
287
  # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModernTreasury
4
- VERSION = "0.3.0"
4
+ VERSION = "0.5.0"
5
5
  end
@@ -63,7 +63,6 @@ require_relative "modern_treasury/models/account_detail_create_params"
63
63
  require_relative "modern_treasury/models/account_detail_delete_params"
64
64
  require_relative "modern_treasury/models/account_detail_list_params"
65
65
  require_relative "modern_treasury/models/account_detail_retrieve_params"
66
- require_relative "modern_treasury/models/accounting"
67
66
  require_relative "modern_treasury/models/accounts_type"
68
67
  require_relative "modern_treasury/models/address"
69
68
  require_relative "modern_treasury/models/address_request"
@@ -214,12 +213,14 @@ require_relative "modern_treasury/models/legal_entity"
214
213
  require_relative "modern_treasury/models/legal_entity_address_create_request"
215
214
  require_relative "modern_treasury/models/legal_entity_association"
216
215
  require_relative "modern_treasury/models/legal_entity_association_create_params"
216
+ require_relative "modern_treasury/models/legal_entity_bank_settings"
217
217
  require_relative "modern_treasury/models/legal_entity_compliance_detail"
218
218
  require_relative "modern_treasury/models/legal_entity_create_params"
219
219
  require_relative "modern_treasury/models/legal_entity_industry_classification"
220
220
  require_relative "modern_treasury/models/legal_entity_list_params"
221
221
  require_relative "modern_treasury/models/legal_entity_retrieve_params"
222
222
  require_relative "modern_treasury/models/legal_entity_update_params"
223
+ require_relative "modern_treasury/models/legal_entity_wealth_employment_detail"
223
224
  require_relative "modern_treasury/models/line_item"
224
225
  require_relative "modern_treasury/models/line_item_list_params"
225
226
  require_relative "modern_treasury/models/line_item_retrieve_params"
@@ -59,10 +59,10 @@ module ModernTreasury
59
59
  end
60
60
 
61
61
  class APIConnectionError < ModernTreasury::Errors::APIError
62
- sig { void }
62
+ sig { returns(NilClass) }
63
63
  attr_accessor :status
64
64
 
65
- sig { void }
65
+ sig { returns(NilClass) }
66
66
  attr_accessor :body
67
67
 
68
68
  # @api private