modern_treasury 0.4.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 (147) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -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 +2 -6
  13. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +3 -9
  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 +10 -27
  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 +1 -3
  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 +3 -10
  38. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +1 -3
  39. data/lib/modern_treasury/models/legal_entity_association.rb +7 -21
  40. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +1 -3
  41. data/lib/modern_treasury/models/legal_entity_create_params.rb +3 -9
  42. data/lib/modern_treasury/models/legal_entity_update_params.rb +2 -6
  43. data/lib/modern_treasury/models/line_item.rb +1 -18
  44. data/lib/modern_treasury/models/payment_action_create_response.rb +1 -1
  45. data/lib/modern_treasury/models/payment_action_list_params.rb +1 -2
  46. data/lib/modern_treasury/models/payment_action_list_response.rb +1 -1
  47. data/lib/modern_treasury/models/payment_action_retrieve_response.rb +1 -1
  48. data/lib/modern_treasury/models/payment_action_update_params.rb +1 -0
  49. data/lib/modern_treasury/models/payment_action_update_response.rb +1 -1
  50. data/lib/modern_treasury/models/payment_flow.rb +1 -4
  51. data/lib/modern_treasury/models/payment_order.rb +2 -19
  52. data/lib/modern_treasury/models/payment_order_create_async_params.rb +8 -37
  53. data/lib/modern_treasury/models/payment_order_create_params.rb +9 -40
  54. data/lib/modern_treasury/models/payment_order_list_params.rb +1 -0
  55. data/lib/modern_treasury/models/payment_order_type.rb +1 -0
  56. data/lib/modern_treasury/models/payment_order_update_params.rb +8 -37
  57. data/lib/modern_treasury/models/payment_reference.rb +1 -0
  58. data/lib/modern_treasury/models/reconciliation_rule.rb +1 -0
  59. data/lib/modern_treasury/models/return_object.rb +1 -0
  60. data/lib/modern_treasury/models/routing_detail.rb +1 -0
  61. data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
  62. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -7
  63. data/lib/modern_treasury/models/transaction.rb +1 -0
  64. data/lib/modern_treasury/models/transaction_create_params.rb +1 -0
  65. data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -6
  66. data/lib/modern_treasury/models.rb +0 -2
  67. data/lib/modern_treasury/resources/ledger_transactions.rb +3 -1
  68. data/lib/modern_treasury/resources/payment_orders.rb +3 -15
  69. data/lib/modern_treasury/version.rb +1 -1
  70. data/lib/modern_treasury.rb +0 -1
  71. data/rbi/modern_treasury/errors.rbi +2 -2
  72. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +15 -38
  73. data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -0
  74. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +5 -0
  75. data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -0
  76. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
  77. data/rbi/modern_treasury/models/external_account_verify_params.rbi +5 -0
  78. data/rbi/modern_treasury/models/external_account_verify_response.rbi +5 -0
  79. data/rbi/modern_treasury/models/internal_account.rbi +5 -0
  80. data/rbi/modern_treasury/models/internal_account_create_params.rbi +5 -0
  81. data/rbi/modern_treasury/models/internal_account_list_params.rbi +5 -0
  82. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +5 -0
  83. data/rbi/modern_treasury/models/ledger_account_settlement.rbi +3 -3
  84. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +84 -0
  85. data/rbi/modern_treasury/models/line_item.rbi +0 -21
  86. data/rbi/modern_treasury/models/payment_action_create_response.rbi +2 -2
  87. data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -10
  88. data/rbi/modern_treasury/models/payment_action_list_response.rbi +2 -2
  89. data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +2 -2
  90. data/rbi/modern_treasury/models/payment_action_update_params.rbi +5 -0
  91. data/rbi/modern_treasury/models/payment_action_update_response.rbi +2 -2
  92. data/rbi/modern_treasury/models/payment_order.rbi +5 -19
  93. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +5 -19
  94. data/rbi/modern_treasury/models/payment_order_create_params.rbi +5 -19
  95. data/rbi/modern_treasury/models/payment_order_list_params.rbi +5 -0
  96. data/rbi/modern_treasury/models/payment_order_type.rbi +1 -0
  97. data/rbi/modern_treasury/models/payment_order_update_params.rbi +5 -19
  98. data/rbi/modern_treasury/models/payment_reference.rbi +5 -0
  99. data/rbi/modern_treasury/models/reconciliation_rule.rbi +2 -0
  100. data/rbi/modern_treasury/models/return_object.rbi +5 -0
  101. data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
  102. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
  103. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +5 -0
  104. data/rbi/modern_treasury/models/transaction.rbi +1 -0
  105. data/rbi/modern_treasury/models/transaction_create_params.rbi +5 -0
  106. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
  107. data/rbi/modern_treasury/models.rbi +0 -2
  108. data/rbi/modern_treasury/resources/ledger_transactions.rbi +3 -0
  109. data/rbi/modern_treasury/resources/payment_orders.rbi +0 -18
  110. data/sig/modern_treasury/models/bulk_request_create_params.rbs +6 -28
  111. data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -0
  112. data/sig/modern_treasury/models/expected_payment_list_params.rbs +2 -0
  113. data/sig/modern_treasury/models/expected_payment_type.rbs +2 -0
  114. data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
  115. data/sig/modern_treasury/models/external_account_verify_params.rbs +2 -0
  116. data/sig/modern_treasury/models/external_account_verify_response.rbs +2 -0
  117. data/sig/modern_treasury/models/internal_account.rbs +2 -0
  118. data/sig/modern_treasury/models/internal_account_create_params.rbs +2 -0
  119. data/sig/modern_treasury/models/internal_account_list_params.rbs +2 -0
  120. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +2 -0
  121. data/sig/modern_treasury/models/ledger_account_settlement.rbs +4 -4
  122. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +50 -0
  123. data/sig/modern_treasury/models/line_item.rbs +0 -10
  124. data/sig/modern_treasury/models/payment_action_list_params.rbs +9 -5
  125. data/sig/modern_treasury/models/payment_action_update_params.rbs +8 -1
  126. data/sig/modern_treasury/models/payment_order.rbs +2 -10
  127. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -14
  128. data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -14
  129. data/sig/modern_treasury/models/payment_order_list_params.rbs +2 -0
  130. data/sig/modern_treasury/models/payment_order_type.rbs +2 -0
  131. data/sig/modern_treasury/models/payment_order_update_params.rbs +2 -14
  132. data/sig/modern_treasury/models/payment_reference.rbs +2 -0
  133. data/sig/modern_treasury/models/reconciliation_rule.rbs +2 -0
  134. data/sig/modern_treasury/models/return_object.rbs +2 -0
  135. data/sig/modern_treasury/models/routing_detail.rbs +2 -0
  136. data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
  137. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +2 -0
  138. data/sig/modern_treasury/models/transaction.rbs +2 -0
  139. data/sig/modern_treasury/models/transaction_create_params.rbs +2 -0
  140. data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
  141. data/sig/modern_treasury/models.rbs +0 -2
  142. data/sig/modern_treasury/resources/ledger_transactions.rbs +1 -0
  143. data/sig/modern_treasury/resources/payment_orders.rbs +0 -6
  144. metadata +2 -5
  145. data/lib/modern_treasury/models/accounting.rb +0 -30
  146. data/rbi/modern_treasury/models/accounting.rbi +0 -48
  147. data/sig/modern_treasury/models/accounting.rbs +0 -15
@@ -6,9 +6,7 @@ module ModernTreasury
6
6
  direction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::direction,
7
7
  originating_account_id: String,
8
8
  type: ModernTreasury::Models::payment_order_type,
9
- accounting: ModernTreasury::Accounting,
10
9
  accounting_category_id: String?,
11
- accounting_ledger_class_id: String?,
12
10
  charge_bearer: ModernTreasury::Models::PaymentOrderCreateAsyncParams::charge_bearer?,
13
11
  currency: ModernTreasury::Models::currency,
14
12
  description: String?,
@@ -52,16 +50,8 @@ module ModernTreasury
52
50
 
53
51
  attr_accessor type: ModernTreasury::Models::payment_order_type
54
52
 
55
- attr_reader accounting: ModernTreasury::Accounting?
56
-
57
- def accounting=: (
58
- ModernTreasury::Accounting
59
- ) -> ModernTreasury::Accounting
60
-
61
53
  attr_accessor accounting_category_id: String?
62
54
 
63
- attr_accessor accounting_ledger_class_id: String?
64
-
65
55
  attr_accessor charge_bearer: ModernTreasury::Models::PaymentOrderCreateAsyncParams::charge_bearer?
66
56
 
67
57
  attr_reader currency: ModernTreasury::Models::currency?
@@ -159,9 +149,7 @@ module ModernTreasury
159
149
  direction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::direction,
160
150
  originating_account_id: String,
161
151
  type: ModernTreasury::Models::payment_order_type,
162
- ?accounting: ModernTreasury::Accounting,
163
152
  ?accounting_category_id: String?,
164
- ?accounting_ledger_class_id: String?,
165
153
  ?charge_bearer: ModernTreasury::Models::PaymentOrderCreateAsyncParams::charge_bearer?,
166
154
  ?currency: ModernTreasury::Models::currency,
167
155
  ?description: String?,
@@ -198,9 +186,7 @@ module ModernTreasury
198
186
  direction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::direction,
199
187
  originating_account_id: String,
200
188
  type: ModernTreasury::Models::payment_order_type,
201
- accounting: ModernTreasury::Accounting,
202
189
  accounting_category_id: String?,
203
- accounting_ledger_class_id: String?,
204
190
  charge_bearer: ModernTreasury::Models::PaymentOrderCreateAsyncParams::charge_bearer?,
205
191
  currency: ModernTreasury::Models::currency,
206
192
  description: String?,
@@ -599,6 +585,7 @@ module ModernTreasury
599
585
  | :dk_nets
600
586
  | :eft
601
587
  | :ethereum
588
+ | :gb_fps
602
589
  | :hu_ics
603
590
  | :interac
604
591
  | :masav
@@ -637,6 +624,7 @@ module ModernTreasury
637
624
  DK_NETS: :dk_nets
638
625
  EFT: :eft
639
626
  ETHEREUM: :ethereum
627
+ GB_FPS: :gb_fps
640
628
  HU_ICS: :hu_ics
641
629
  INTERAC: :interac
642
630
  MASAV: :masav
@@ -6,9 +6,7 @@ module ModernTreasury
6
6
  direction: ModernTreasury::Models::PaymentOrderCreateParams::direction,
7
7
  originating_account_id: String,
8
8
  type: ModernTreasury::Models::payment_order_type,
9
- accounting: ModernTreasury::Accounting,
10
9
  accounting_category_id: String?,
11
- accounting_ledger_class_id: String?,
12
10
  charge_bearer: ModernTreasury::Models::PaymentOrderCreateParams::charge_bearer?,
13
11
  currency: ModernTreasury::Models::currency,
14
12
  description: String?,
@@ -53,16 +51,8 @@ module ModernTreasury
53
51
 
54
52
  attr_accessor type: ModernTreasury::Models::payment_order_type
55
53
 
56
- attr_reader accounting: ModernTreasury::Accounting?
57
-
58
- def accounting=: (
59
- ModernTreasury::Accounting
60
- ) -> ModernTreasury::Accounting
61
-
62
54
  attr_accessor accounting_category_id: String?
63
55
 
64
- attr_accessor accounting_ledger_class_id: String?
65
-
66
56
  attr_accessor charge_bearer: ModernTreasury::Models::PaymentOrderCreateParams::charge_bearer?
67
57
 
68
58
  attr_reader currency: ModernTreasury::Models::currency?
@@ -166,9 +156,7 @@ module ModernTreasury
166
156
  direction: ModernTreasury::Models::PaymentOrderCreateParams::direction,
167
157
  originating_account_id: String,
168
158
  type: ModernTreasury::Models::payment_order_type,
169
- ?accounting: ModernTreasury::Accounting,
170
159
  ?accounting_category_id: String?,
171
- ?accounting_ledger_class_id: String?,
172
160
  ?charge_bearer: ModernTreasury::Models::PaymentOrderCreateParams::charge_bearer?,
173
161
  ?currency: ModernTreasury::Models::currency,
174
162
  ?description: String?,
@@ -206,9 +194,7 @@ module ModernTreasury
206
194
  direction: ModernTreasury::Models::PaymentOrderCreateParams::direction,
207
195
  originating_account_id: String,
208
196
  type: ModernTreasury::Models::payment_order_type,
209
- accounting: ModernTreasury::Accounting,
210
197
  accounting_category_id: String?,
211
- accounting_ledger_class_id: String?,
212
198
  charge_bearer: ModernTreasury::Models::PaymentOrderCreateParams::charge_bearer?,
213
199
  currency: ModernTreasury::Models::currency,
214
200
  description: String?,
@@ -671,6 +657,7 @@ module ModernTreasury
671
657
  | :dk_nets
672
658
  | :eft
673
659
  | :ethereum
660
+ | :gb_fps
674
661
  | :hu_ics
675
662
  | :interac
676
663
  | :masav
@@ -709,6 +696,7 @@ module ModernTreasury
709
696
  DK_NETS: :dk_nets
710
697
  EFT: :eft
711
698
  ETHEREUM: :ethereum
699
+ GB_FPS: :gb_fps
712
700
  HU_ICS: :hu_ics
713
701
  INTERAC: :interac
714
702
  MASAV: :masav
@@ -206,6 +206,7 @@ module ModernTreasury
206
206
  | :dk_nets
207
207
  | :eft
208
208
  | :ethereum
209
+ | :gb_fps
209
210
  | :hu_ics
210
211
  | :interac
211
212
  | :masav
@@ -244,6 +245,7 @@ module ModernTreasury
244
245
  DK_NETS: :dk_nets
245
246
  EFT: :eft
246
247
  ETHEREUM: :ethereum
248
+ GB_FPS: :gb_fps
247
249
  HU_ICS: :hu_ics
248
250
  INTERAC: :interac
249
251
  MASAV: :masav
@@ -13,6 +13,7 @@ module ModernTreasury
13
13
  | :dk_nets
14
14
  | :eft
15
15
  | :ethereum
16
+ | :gb_fps
16
17
  | :hu_ics
17
18
  | :interac
18
19
  | :masav
@@ -51,6 +52,7 @@ module ModernTreasury
51
52
  DK_NETS: :dk_nets
52
53
  EFT: :eft
53
54
  ETHEREUM: :ethereum
55
+ GB_FPS: :gb_fps
54
56
  HU_ICS: :hu_ics
55
57
  INTERAC: :interac
56
58
  MASAV: :masav
@@ -2,9 +2,7 @@ module ModernTreasury
2
2
  module Models
3
3
  type payment_order_update_params =
4
4
  {
5
- accounting: ModernTreasury::Accounting,
6
5
  accounting_category_id: String?,
7
- accounting_ledger_class_id: String?,
8
6
  amount: Integer,
9
7
  charge_bearer: ModernTreasury::Models::PaymentOrderUpdateParams::charge_bearer?,
10
8
  counterparty_id: String?,
@@ -43,16 +41,8 @@ module ModernTreasury
43
41
  extend ModernTreasury::Internal::Type::RequestParameters::Converter
44
42
  include ModernTreasury::Internal::Type::RequestParameters
45
43
 
46
- attr_reader accounting: ModernTreasury::Accounting?
47
-
48
- def accounting=: (
49
- ModernTreasury::Accounting
50
- ) -> ModernTreasury::Accounting
51
-
52
44
  attr_accessor accounting_category_id: String?
53
45
 
54
- attr_accessor accounting_ledger_class_id: String?
55
-
56
46
  attr_reader amount: Integer?
57
47
 
58
48
  def amount=: (Integer) -> Integer
@@ -160,9 +150,7 @@ module ModernTreasury
160
150
  attr_accessor ultimate_receiving_party_name: String?
161
151
 
162
152
  def initialize: (
163
- ?accounting: ModernTreasury::Accounting,
164
153
  ?accounting_category_id: String?,
165
- ?accounting_ledger_class_id: String?,
166
154
  ?amount: Integer,
167
155
  ?charge_bearer: ModernTreasury::Models::PaymentOrderUpdateParams::charge_bearer?,
168
156
  ?counterparty_id: String?,
@@ -198,9 +186,7 @@ module ModernTreasury
198
186
  ) -> void
199
187
 
200
188
  def to_hash: -> {
201
- accounting: ModernTreasury::Accounting,
202
189
  accounting_category_id: String?,
203
- accounting_ledger_class_id: String?,
204
190
  amount: Integer,
205
191
  charge_bearer: ModernTreasury::Models::PaymentOrderUpdateParams::charge_bearer?,
206
192
  counterparty_id: String?,
@@ -602,6 +588,7 @@ module ModernTreasury
602
588
  | :dk_nets
603
589
  | :eft
604
590
  | :ethereum
591
+ | :gb_fps
605
592
  | :hu_ics
606
593
  | :interac
607
594
  | :masav
@@ -640,6 +627,7 @@ module ModernTreasury
640
627
  DK_NETS: :dk_nets
641
628
  EFT: :eft
642
629
  ETHEREUM: :ethereum
630
+ GB_FPS: :gb_fps
643
631
  HU_ICS: :hu_ics
644
632
  INTERAC: :interac
645
633
  MASAV: :masav
@@ -63,6 +63,7 @@ module ModernTreasury
63
63
  | :bankprov_payment_id
64
64
  | :bnk_dev_prenotification_id
65
65
  | :bnk_dev_transfer_id
66
+ | :bny_mellon_transaction_reference_number
66
67
  | :bofa_end_to_end_id
67
68
  | :bofa_transaction_id
68
69
  | :brale_transfer_id
@@ -154,6 +155,7 @@ module ModernTreasury
154
155
  BANKPROV_PAYMENT_ID: :bankprov_payment_id
155
156
  BNK_DEV_PRENOTIFICATION_ID: :bnk_dev_prenotification_id
156
157
  BNK_DEV_TRANSFER_ID: :bnk_dev_transfer_id
158
+ BNY_MELLON_TRANSACTION_REFERENCE_NUMBER: :bny_mellon_transaction_reference_number
157
159
  BOFA_END_TO_END_ID: :bofa_end_to_end_id
158
160
  BOFA_TRANSACTION_ID: :bofa_transaction_id
159
161
  BRALE_TRANSFER_ID: :brale_transfer_id
@@ -89,6 +89,7 @@ module ModernTreasury
89
89
  | :dk_nets
90
90
  | :eft
91
91
  | :ethereum
92
+ | :gb_fps
92
93
  | :hu_ics
93
94
  | :interac
94
95
  | :masav
@@ -127,6 +128,7 @@ module ModernTreasury
127
128
  DK_NETS: :dk_nets
128
129
  EFT: :eft
129
130
  ETHEREUM: :ethereum
131
+ GB_FPS: :gb_fps
130
132
  HU_ICS: :hu_ics
131
133
  INTERAC: :interac
132
134
  MASAV: :masav
@@ -431,6 +431,7 @@ module ModernTreasury
431
431
  | :bankprov_payment_id
432
432
  | :bnk_dev_prenotification_id
433
433
  | :bnk_dev_transfer_id
434
+ | :bny_mellon_transaction_reference_number
434
435
  | :bofa_end_to_end_id
435
436
  | :bofa_transaction_id
436
437
  | :brale_transfer_id
@@ -522,6 +523,7 @@ module ModernTreasury
522
523
  BANKPROV_PAYMENT_ID: :bankprov_payment_id
523
524
  BNK_DEV_PRENOTIFICATION_ID: :bnk_dev_prenotification_id
524
525
  BNK_DEV_TRANSFER_ID: :bnk_dev_transfer_id
526
+ BNY_MELLON_TRANSACTION_REFERENCE_NUMBER: :bny_mellon_transaction_reference_number
525
527
  BOFA_END_TO_END_ID: :bofa_end_to_end_id
526
528
  BOFA_TRANSACTION_ID: :bofa_transaction_id
527
529
  BRALE_TRANSFER_ID: :brale_transfer_id
@@ -79,6 +79,7 @@ module ModernTreasury
79
79
  | :dk_nets
80
80
  | :eft
81
81
  | :ethereum
82
+ | :gb_fps
82
83
  | :hu_ics
83
84
  | :interac
84
85
  | :masav
@@ -117,6 +118,7 @@ module ModernTreasury
117
118
  DK_NETS: :dk_nets
118
119
  EFT: :eft
119
120
  ETHEREUM: :ethereum
121
+ GB_FPS: :gb_fps
120
122
  HU_ICS: :hu_ics
121
123
  INTERAC: :interac
122
124
  MASAV: :masav
@@ -113,6 +113,7 @@ module ModernTreasury
113
113
  | :dk_nets
114
114
  | :eft
115
115
  | :ethereum
116
+ | :gb_fps
116
117
  | :hu_ics
117
118
  | :interac
118
119
  | :masav
@@ -151,6 +152,7 @@ module ModernTreasury
151
152
  DK_NETS: :dk_nets
152
153
  EFT: :eft
153
154
  ETHEREUM: :ethereum
155
+ GB_FPS: :gb_fps
154
156
  HU_ICS: :hu_ics
155
157
  INTERAC: :interac
156
158
  MASAV: :masav
@@ -99,6 +99,7 @@ module ModernTreasury
99
99
  | :dk_nets
100
100
  | :eft
101
101
  | :ethereum
102
+ | :gb_fps
102
103
  | :hu_ics
103
104
  | :interac
104
105
  | :masav
@@ -137,6 +138,7 @@ module ModernTreasury
137
138
  DK_NETS: :dk_nets
138
139
  EFT: :eft
139
140
  ETHEREUM: :ethereum
141
+ GB_FPS: :gb_fps
140
142
  HU_ICS: :hu_ics
141
143
  INTERAC: :interac
142
144
  MASAV: :masav
@@ -151,6 +151,7 @@ module ModernTreasury
151
151
  | :dk_nets
152
152
  | :eft
153
153
  | :ethereum
154
+ | :gb_fps
154
155
  | :hu_ics
155
156
  | :interac
156
157
  | :masav
@@ -190,6 +191,7 @@ module ModernTreasury
190
191
  DK_NETS: :dk_nets
191
192
  EFT: :eft
192
193
  ETHEREUM: :ethereum
194
+ GB_FPS: :gb_fps
193
195
  HU_ICS: :hu_ics
194
196
  INTERAC: :interac
195
197
  MASAV: :masav
@@ -89,6 +89,7 @@ module ModernTreasury
89
89
  | :dk_nets
90
90
  | :eft
91
91
  | :ethereum
92
+ | :gb_fps
92
93
  | :hu_ics
93
94
  | :interac
94
95
  | :masav
@@ -128,6 +129,7 @@ module ModernTreasury
128
129
  DK_NETS: :dk_nets
129
130
  EFT: :eft
130
131
  ETHEREUM: :ethereum
132
+ GB_FPS: :gb_fps
131
133
  HU_ICS: :hu_ics
132
134
  INTERAC: :interac
133
135
  MASAV: :masav
@@ -244,6 +244,7 @@ module ModernTreasury
244
244
  | :dk_nets
245
245
  | :eft
246
246
  | :ethereum
247
+ | :gb_fps
247
248
  | :hu_ics
248
249
  | :interac
249
250
  | :masav
@@ -282,6 +283,7 @@ module ModernTreasury
282
283
  DK_NETS: :dk_nets
283
284
  EFT: :eft
284
285
  ETHEREUM: :ethereum
286
+ GB_FPS: :gb_fps
285
287
  HU_ICS: :hu_ics
286
288
  INTERAC: :interac
287
289
  MASAV: :masav
@@ -19,8 +19,6 @@ module ModernTreasury
19
19
 
20
20
  class AccountDetailRetrieveParams = ModernTreasury::Models::AccountDetailRetrieveParams
21
21
 
22
- class Accounting = ModernTreasury::Models::Accounting
23
-
24
22
  module AccountsType = ModernTreasury::Models::AccountsType
25
23
 
26
24
  class Address = ModernTreasury::Models::Address
@@ -36,6 +36,7 @@ module ModernTreasury
36
36
  def list: (
37
37
  ?id: ::Array[String],
38
38
  ?after_cursor: String?,
39
+ ?amount: ModernTreasury::LedgerTransactionListParams::Amount,
39
40
  ?effective_at: ::Hash[Symbol, Time],
40
41
  ?effective_date: ::Hash[Symbol, Time],
41
42
  ?external_id: String,
@@ -8,9 +8,7 @@ module ModernTreasury
8
8
  direction: ModernTreasury::Models::PaymentOrderCreateParams::direction,
9
9
  originating_account_id: String,
10
10
  type: ModernTreasury::Models::payment_order_type,
11
- ?accounting: ModernTreasury::Accounting,
12
11
  ?accounting_category_id: String?,
13
- ?accounting_ledger_class_id: String?,
14
12
  ?charge_bearer: ModernTreasury::Models::PaymentOrderCreateParams::charge_bearer?,
15
13
  ?currency: ModernTreasury::Models::currency,
16
14
  ?description: String?,
@@ -50,9 +48,7 @@ module ModernTreasury
50
48
 
51
49
  def update: (
52
50
  String id,
53
- ?accounting: ModernTreasury::Accounting,
54
51
  ?accounting_category_id: String?,
55
- ?accounting_ledger_class_id: String?,
56
52
  ?amount: Integer,
57
53
  ?charge_bearer: ModernTreasury::Models::PaymentOrderUpdateParams::charge_bearer?,
58
54
  ?counterparty_id: String?,
@@ -114,9 +110,7 @@ module ModernTreasury
114
110
  direction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::direction,
115
111
  originating_account_id: String,
116
112
  type: ModernTreasury::Models::payment_order_type,
117
- ?accounting: ModernTreasury::Accounting,
118
113
  ?accounting_category_id: String?,
119
- ?accounting_ledger_class_id: String?,
120
114
  ?charge_bearer: ModernTreasury::Models::PaymentOrderCreateAsyncParams::charge_bearer?,
121
115
  ?currency: ModernTreasury::Models::currency,
122
116
  ?description: String?,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: modern_treasury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Modern Treasury
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-08-12 00:00:00.000000000 Z
11
+ date: 2025-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -66,7 +66,6 @@ files:
66
66
  - lib/modern_treasury/models/account_detail_delete_params.rb
67
67
  - lib/modern_treasury/models/account_detail_list_params.rb
68
68
  - lib/modern_treasury/models/account_detail_retrieve_params.rb
69
- - lib/modern_treasury/models/accounting.rb
70
69
  - lib/modern_treasury/models/accounts_type.rb
71
70
  - lib/modern_treasury/models/address.rb
72
71
  - lib/modern_treasury/models/address_request.rb
@@ -366,7 +365,6 @@ files:
366
365
  - rbi/modern_treasury/models/account_detail_delete_params.rbi
367
366
  - rbi/modern_treasury/models/account_detail_list_params.rbi
368
367
  - rbi/modern_treasury/models/account_detail_retrieve_params.rbi
369
- - rbi/modern_treasury/models/accounting.rbi
370
368
  - rbi/modern_treasury/models/accounts_type.rbi
371
369
  - rbi/modern_treasury/models/address.rbi
372
370
  - rbi/modern_treasury/models/address_request.rbi
@@ -665,7 +663,6 @@ files:
665
663
  - sig/modern_treasury/models/account_detail_delete_params.rbs
666
664
  - sig/modern_treasury/models/account_detail_list_params.rbs
667
665
  - sig/modern_treasury/models/account_detail_retrieve_params.rbs
668
- - sig/modern_treasury/models/accounting.rbs
669
666
  - sig/modern_treasury/models/accounts_type.rbs
670
667
  - sig/modern_treasury/models/address.rbs
671
668
  - sig/modern_treasury/models/address_request.rbs
@@ -1,30 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module ModernTreasury
4
- module Models
5
- class Accounting < ModernTreasury::Internal::Type::BaseModel
6
- # @!attribute account_id
7
- # The ID of one of your accounting categories. Note that these will only be
8
- # accessible if your accounting system has been connected.
9
- #
10
- # @return [String, nil]
11
- optional :account_id, String, nil?: true
12
-
13
- # @!attribute class_id
14
- # The ID of one of the class objects in your accounting system. Class objects
15
- # track segments of your business independent of client or project. Note that
16
- # these will only be accessible if your accounting system has been connected.
17
- #
18
- # @return [String, nil]
19
- optional :class_id, String, nil?: true
20
-
21
- # @!method initialize(account_id: nil, class_id: nil)
22
- # Some parameter documentations has been truncated, see
23
- # {ModernTreasury::Models::Accounting} for more details.
24
- #
25
- # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
26
- #
27
- # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
28
- end
29
- end
30
- end
@@ -1,48 +0,0 @@
1
- # typed: strong
2
-
3
- module ModernTreasury
4
- module Models
5
- class Accounting < ModernTreasury::Internal::Type::BaseModel
6
- OrHash =
7
- T.type_alias do
8
- T.any(ModernTreasury::Accounting, ModernTreasury::Internal::AnyHash)
9
- end
10
-
11
- # The ID of one of your accounting categories. Note that these will only be
12
- # accessible if your accounting system has been connected.
13
- sig { returns(T.nilable(String)) }
14
- attr_accessor :account_id
15
-
16
- # The ID of one of the class objects in your accounting system. Class objects
17
- # track segments of your business independent of client or project. Note that
18
- # these will only be accessible if your accounting system has been connected.
19
- sig { returns(T.nilable(String)) }
20
- attr_accessor :class_id
21
-
22
- sig do
23
- params(
24
- account_id: T.nilable(String),
25
- class_id: T.nilable(String)
26
- ).returns(T.attached_class)
27
- end
28
- def self.new(
29
- # The ID of one of your accounting categories. Note that these will only be
30
- # accessible if your accounting system has been connected.
31
- account_id: nil,
32
- # The ID of one of the class objects in your accounting system. Class objects
33
- # track segments of your business independent of client or project. Note that
34
- # these will only be accessible if your accounting system has been connected.
35
- class_id: nil
36
- )
37
- end
38
-
39
- sig do
40
- override.returns(
41
- { account_id: T.nilable(String), class_id: T.nilable(String) }
42
- )
43
- end
44
- def to_hash
45
- end
46
- end
47
- end
48
- end
@@ -1,15 +0,0 @@
1
- module ModernTreasury
2
- module Models
3
- type accounting = { account_id: String?, class_id: String? }
4
-
5
- class Accounting < ModernTreasury::Internal::Type::BaseModel
6
- attr_accessor account_id: String?
7
-
8
- attr_accessor class_id: String?
9
-
10
- def initialize: (?account_id: String?, ?class_id: String?) -> void
11
-
12
- def to_hash: -> { account_id: String?, class_id: String? }
13
- end
14
- end
15
- end