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
@@ -11,23 +11,11 @@ module ModernTreasury
11
11
  sig { returns(String) }
12
12
  attr_accessor :id
13
13
 
14
- sig { returns(ModernTreasury::Accounting) }
15
- attr_reader :accounting
16
-
17
- sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
18
- attr_writer :accounting
19
-
20
14
  # The ID of one of your accounting categories. Note that these will only be
21
15
  # accessible if your accounting system has been connected.
22
16
  sig { returns(T.nilable(String)) }
23
17
  attr_accessor :accounting_category_id
24
18
 
25
- # The ID of one of the class objects in your accounting system. Class objects
26
- # track segments of your business independent of client or project. Note that
27
- # these will only be accessible if your accounting system has been connected.
28
- sig { returns(T.nilable(String)) }
29
- attr_accessor :accounting_ledger_class_id
30
-
31
19
  # Value in specified currency's smallest unit. e.g. $10 would be represented
32
20
  # as 1000.
33
21
  sig { returns(Integer) }
@@ -67,9 +55,7 @@ module ModernTreasury
67
55
  sig do
68
56
  params(
69
57
  id: String,
70
- accounting: ModernTreasury::Accounting::OrHash,
71
58
  accounting_category_id: T.nilable(String),
72
- accounting_ledger_class_id: T.nilable(String),
73
59
  amount: Integer,
74
60
  created_at: Time,
75
61
  description: T.nilable(String),
@@ -83,14 +69,9 @@ module ModernTreasury
83
69
  end
84
70
  def self.new(
85
71
  id:,
86
- accounting:,
87
72
  # The ID of one of your accounting categories. Note that these will only be
88
73
  # accessible if your accounting system has been connected.
89
74
  accounting_category_id:,
90
- # The ID of one of the class objects in your accounting system. Class objects
91
- # track segments of your business independent of client or project. Note that
92
- # these will only be accessible if your accounting system has been connected.
93
- accounting_ledger_class_id:,
94
75
  # Value in specified currency's smallest unit. e.g. $10 would be represented
95
76
  # as 1000.
96
77
  amount:,
@@ -116,9 +97,7 @@ module ModernTreasury
116
97
  override.returns(
117
98
  {
118
99
  id: String,
119
- accounting: ModernTreasury::Accounting,
120
100
  accounting_category_id: T.nilable(String),
121
- accounting_ledger_class_id: T.nilable(String),
122
101
  amount: Integer,
123
102
  created_at: Time,
124
103
  description: T.nilable(String),
@@ -43,7 +43,7 @@ module ModernTreasury
43
43
  attr_accessor :object
44
44
 
45
45
  # The current status of the payment action. One of `pending`, `processing`,
46
- # `sent`, `cancelled`, or `failed`.
46
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
47
47
  sig { returns(String) }
48
48
  attr_accessor :status
49
49
 
@@ -86,7 +86,7 @@ module ModernTreasury
86
86
  live_mode:,
87
87
  object:,
88
88
  # The current status of the payment action. One of `pending`, `processing`,
89
- # `sent`, `cancelled`, or `failed`.
89
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
90
90
  status:,
91
91
  # The type of the payment action. Determines the action to be taken.
92
92
  type:,
@@ -248,6 +248,11 @@ module ModernTreasury
248
248
  :sent,
249
249
  ModernTreasury::PaymentActionListParams::Status::TaggedSymbol
250
250
  )
251
+ ACKNOWLEDGED =
252
+ T.let(
253
+ :acknowledged,
254
+ ModernTreasury::PaymentActionListParams::Status::TaggedSymbol
255
+ )
251
256
  FAILED =
252
257
  T.let(
253
258
  :failed,
@@ -280,16 +285,6 @@ module ModernTreasury
280
285
  end
281
286
  OrSymbol = T.type_alias { T.any(Symbol, String) }
282
287
 
283
- EVOLVE_NON_PROCESSING_TRANSACTION =
284
- T.let(
285
- :evolve_non_processing_transaction,
286
- ModernTreasury::PaymentActionListParams::Type::TaggedSymbol
287
- )
288
- CONTROL_FILE =
289
- T.let(
290
- :control_file,
291
- ModernTreasury::PaymentActionListParams::Type::TaggedSymbol
292
- )
293
288
  STOP =
294
289
  T.let(
295
290
  :stop,
@@ -43,7 +43,7 @@ module ModernTreasury
43
43
  attr_accessor :object
44
44
 
45
45
  # The current status of the payment action. One of `pending`, `processing`,
46
- # `sent`, `cancelled`, or `failed`.
46
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
47
47
  sig { returns(String) }
48
48
  attr_accessor :status
49
49
 
@@ -86,7 +86,7 @@ module ModernTreasury
86
86
  live_mode:,
87
87
  object:,
88
88
  # The current status of the payment action. One of `pending`, `processing`,
89
- # `sent`, `cancelled`, or `failed`.
89
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
90
90
  status:,
91
91
  # The type of the payment action. Determines the action to be taken.
92
92
  type:,
@@ -43,7 +43,7 @@ module ModernTreasury
43
43
  attr_accessor :object
44
44
 
45
45
  # The current status of the payment action. One of `pending`, `processing`,
46
- # `sent`, `cancelled`, or `failed`.
46
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
47
47
  sig { returns(String) }
48
48
  attr_accessor :status
49
49
 
@@ -86,7 +86,7 @@ module ModernTreasury
86
86
  live_mode:,
87
87
  object:,
88
88
  # The current status of the payment action. One of `pending`, `processing`,
89
- # `sent`, `cancelled`, or `failed`.
89
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
90
90
  status:,
91
91
  # The type of the payment action. Determines the action to be taken.
92
92
  type:,
@@ -80,6 +80,11 @@ module ModernTreasury
80
80
  :sent,
81
81
  ModernTreasury::PaymentActionUpdateParams::Status::TaggedSymbol
82
82
  )
83
+ ACKNOWLEDGED =
84
+ T.let(
85
+ :acknowledged,
86
+ ModernTreasury::PaymentActionUpdateParams::Status::TaggedSymbol
87
+ )
83
88
  FAILED =
84
89
  T.let(
85
90
  :failed,
@@ -43,7 +43,7 @@ module ModernTreasury
43
43
  attr_accessor :object
44
44
 
45
45
  # The current status of the payment action. One of `pending`, `processing`,
46
- # `sent`, `cancelled`, or `failed`.
46
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
47
47
  sig { returns(String) }
48
48
  attr_accessor :status
49
49
 
@@ -86,7 +86,7 @@ module ModernTreasury
86
86
  live_mode:,
87
87
  object:,
88
88
  # The current status of the payment action. One of `pending`, `processing`,
89
- # `sent`, `cancelled`, or `failed`.
89
+ # `sent`, `acknowledged`, `cancelled`, or `failed`.
90
90
  status:,
91
91
  # The type of the payment action. Determines the action to be taken.
92
92
  type:,
@@ -11,22 +11,11 @@ module ModernTreasury
11
11
  sig { returns(String) }
12
12
  attr_accessor :id
13
13
 
14
- sig { returns(ModernTreasury::Accounting) }
15
- attr_reader :accounting
16
-
17
- sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
18
- attr_writer :accounting
19
-
20
14
  # The ID of one of your accounting categories. Note that these will only be
21
15
  # accessible if your accounting system has been connected.
22
16
  sig { returns(T.nilable(String)) }
23
17
  attr_accessor :accounting_category_id
24
18
 
25
- # The ID of one of your accounting ledger classes. Note that these will only be
26
- # accessible if your accounting system has been connected.
27
- sig { returns(T.nilable(String)) }
28
- attr_accessor :accounting_ledger_class_id
29
-
30
19
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
31
20
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
32
21
  sig { returns(Integer) }
@@ -288,9 +277,7 @@ module ModernTreasury
288
277
  sig do
289
278
  params(
290
279
  id: String,
291
- accounting: ModernTreasury::Accounting::OrHash,
292
280
  accounting_category_id: T.nilable(String),
293
- accounting_ledger_class_id: T.nilable(String),
294
281
  amount: Integer,
295
282
  charge_bearer:
296
283
  T.nilable(ModernTreasury::PaymentOrder::ChargeBearer::OrSymbol),
@@ -355,13 +342,9 @@ module ModernTreasury
355
342
  end
356
343
  def self.new(
357
344
  id:,
358
- accounting:,
359
345
  # The ID of one of your accounting categories. Note that these will only be
360
346
  # accessible if your accounting system has been connected.
361
347
  accounting_category_id:,
362
- # The ID of one of your accounting ledger classes. Note that these will only be
363
- # accessible if your accounting system has been connected.
364
- accounting_ledger_class_id:,
365
348
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
366
349
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
367
350
  amount:,
@@ -496,9 +479,7 @@ module ModernTreasury
496
479
  override.returns(
497
480
  {
498
481
  id: String,
499
- accounting: ModernTreasury::Accounting,
500
482
  accounting_category_id: T.nilable(String),
501
- accounting_ledger_class_id: T.nilable(String),
502
483
  amount: Integer,
503
484
  charge_bearer:
504
485
  T.nilable(
@@ -846,6 +827,11 @@ module ModernTreasury
846
827
  :bnk_dev_transfer_id,
847
828
  ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
848
829
  )
830
+ BNY_MELLON_TRANSACTION_REFERENCE_NUMBER =
831
+ T.let(
832
+ :bny_mellon_transaction_reference_number,
833
+ ModernTreasury::PaymentOrder::ReferenceNumber::ReferenceNumberType::TaggedSymbol
834
+ )
849
835
  BOFA_END_TO_END_ID =
850
836
  T.let(
851
837
  :bofa_end_to_end_id,
@@ -40,22 +40,11 @@ module ModernTreasury
40
40
  sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
41
41
  attr_accessor :type
42
42
 
43
- sig { returns(T.nilable(ModernTreasury::Accounting)) }
44
- attr_reader :accounting
45
-
46
- sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
47
- attr_writer :accounting
48
-
49
43
  # The ID of one of your accounting categories. Note that these will only be
50
44
  # accessible if your accounting system has been connected.
51
45
  sig { returns(T.nilable(String)) }
52
46
  attr_accessor :accounting_category_id
53
47
 
54
- # The ID of one of your accounting ledger classes. Note that these will only be
55
- # accessible if your accounting system has been connected.
56
- sig { returns(T.nilable(String)) }
57
- attr_accessor :accounting_ledger_class_id
58
-
59
48
  # The party that will pay the fees for the payment order. See
60
49
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
61
50
  # differences between the options.
@@ -318,9 +307,7 @@ module ModernTreasury
318
307
  ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
319
308
  originating_account_id: String,
320
309
  type: ModernTreasury::PaymentOrderType::OrSymbol,
321
- accounting: ModernTreasury::Accounting::OrHash,
322
310
  accounting_category_id: T.nilable(String),
323
- accounting_ledger_class_id: T.nilable(String),
324
311
  charge_bearer:
325
312
  T.nilable(
326
313
  ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
@@ -380,13 +367,9 @@ module ModernTreasury
380
367
  # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
381
368
  # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
382
369
  type:,
383
- accounting: nil,
384
370
  # The ID of one of your accounting categories. Note that these will only be
385
371
  # accessible if your accounting system has been connected.
386
372
  accounting_category_id: nil,
387
- # The ID of one of your accounting ledger classes. Note that these will only be
388
- # accessible if your accounting system has been connected.
389
- accounting_ledger_class_id: nil,
390
373
  # The party that will pay the fees for the payment order. See
391
374
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
392
375
  # differences between the options.
@@ -499,9 +482,7 @@ module ModernTreasury
499
482
  ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
500
483
  originating_account_id: String,
501
484
  type: ModernTreasury::PaymentOrderType::OrSymbol,
502
- accounting: ModernTreasury::Accounting,
503
485
  accounting_category_id: T.nilable(String),
504
- accounting_ledger_class_id: T.nilable(String),
505
486
  charge_bearer:
506
487
  T.nilable(
507
488
  ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
@@ -1496,6 +1477,11 @@ module ModernTreasury
1496
1477
  :ethereum,
1497
1478
  ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1498
1479
  )
1480
+ GB_FPS =
1481
+ T.let(
1482
+ :gb_fps,
1483
+ ModernTreasury::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1484
+ )
1499
1485
  HU_ICS =
1500
1486
  T.let(
1501
1487
  :hu_ics,
@@ -38,22 +38,11 @@ module ModernTreasury
38
38
  sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
39
39
  attr_accessor :type
40
40
 
41
- sig { returns(T.nilable(ModernTreasury::Accounting)) }
42
- attr_reader :accounting
43
-
44
- sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
45
- attr_writer :accounting
46
-
47
41
  # The ID of one of your accounting categories. Note that these will only be
48
42
  # accessible if your accounting system has been connected.
49
43
  sig { returns(T.nilable(String)) }
50
44
  attr_accessor :accounting_category_id
51
45
 
52
- # The ID of one of your accounting ledger classes. Note that these will only be
53
- # accessible if your accounting system has been connected.
54
- sig { returns(T.nilable(String)) }
55
- attr_accessor :accounting_ledger_class_id
56
-
57
46
  # The party that will pay the fees for the payment order. See
58
47
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
59
48
  # differences between the options.
@@ -330,9 +319,7 @@ module ModernTreasury
330
319
  ModernTreasury::PaymentOrderCreateParams::Direction::OrSymbol,
331
320
  originating_account_id: String,
332
321
  type: ModernTreasury::PaymentOrderType::OrSymbol,
333
- accounting: ModernTreasury::Accounting::OrHash,
334
322
  accounting_category_id: T.nilable(String),
335
- accounting_ledger_class_id: T.nilable(String),
336
323
  charge_bearer:
337
324
  T.nilable(
338
325
  ModernTreasury::PaymentOrderCreateParams::ChargeBearer::OrSymbol
@@ -396,13 +383,9 @@ module ModernTreasury
396
383
  # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
397
384
  # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
398
385
  type:,
399
- accounting: nil,
400
386
  # The ID of one of your accounting categories. Note that these will only be
401
387
  # accessible if your accounting system has been connected.
402
388
  accounting_category_id: nil,
403
- # The ID of one of your accounting ledger classes. Note that these will only be
404
- # accessible if your accounting system has been connected.
405
- accounting_ledger_class_id: nil,
406
389
  # The party that will pay the fees for the payment order. See
407
390
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
408
391
  # differences between the options.
@@ -518,9 +501,7 @@ module ModernTreasury
518
501
  ModernTreasury::PaymentOrderCreateParams::Direction::OrSymbol,
519
502
  originating_account_id: String,
520
503
  type: ModernTreasury::PaymentOrderType::OrSymbol,
521
- accounting: ModernTreasury::Accounting,
522
504
  accounting_category_id: T.nilable(String),
523
- accounting_ledger_class_id: T.nilable(String),
524
505
  charge_bearer:
525
506
  T.nilable(
526
507
  ModernTreasury::PaymentOrderCreateParams::ChargeBearer::OrSymbol
@@ -1649,6 +1630,11 @@ module ModernTreasury
1649
1630
  :ethereum,
1650
1631
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1651
1632
  )
1633
+ GB_FPS =
1634
+ T.let(
1635
+ :gb_fps,
1636
+ ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1637
+ )
1652
1638
  HU_ICS =
1653
1639
  T.let(
1654
1640
  :hu_ics,
@@ -432,6 +432,11 @@ module ModernTreasury
432
432
  :ethereum,
433
433
  ModernTreasury::PaymentOrderListParams::Type::TaggedSymbol
434
434
  )
435
+ GB_FPS =
436
+ T.let(
437
+ :gb_fps,
438
+ ModernTreasury::PaymentOrderListParams::Type::TaggedSymbol
439
+ )
435
440
  HU_ICS =
436
441
  T.let(
437
442
  :hu_ics,
@@ -26,6 +26,7 @@ module ModernTreasury
26
26
  EFT = T.let(:eft, ModernTreasury::PaymentOrderType::TaggedSymbol)
27
27
  ETHEREUM =
28
28
  T.let(:ethereum, ModernTreasury::PaymentOrderType::TaggedSymbol)
29
+ GB_FPS = T.let(:gb_fps, ModernTreasury::PaymentOrderType::TaggedSymbol)
29
30
  HU_ICS = T.let(:hu_ics, ModernTreasury::PaymentOrderType::TaggedSymbol)
30
31
  INTERAC = T.let(:interac, ModernTreasury::PaymentOrderType::TaggedSymbol)
31
32
  MASAV = T.let(:masav, ModernTreasury::PaymentOrderType::TaggedSymbol)
@@ -14,22 +14,11 @@ module ModernTreasury
14
14
  )
15
15
  end
16
16
 
17
- sig { returns(T.nilable(ModernTreasury::Accounting)) }
18
- attr_reader :accounting
19
-
20
- sig { params(accounting: ModernTreasury::Accounting::OrHash).void }
21
- attr_writer :accounting
22
-
23
17
  # The ID of one of your accounting categories. Note that these will only be
24
18
  # accessible if your accounting system has been connected.
25
19
  sig { returns(T.nilable(String)) }
26
20
  attr_accessor :accounting_category_id
27
21
 
28
- # The ID of one of your accounting ledger classes. Note that these will only be
29
- # accessible if your accounting system has been connected.
30
- sig { returns(T.nilable(String)) }
31
- attr_accessor :accounting_ledger_class_id
32
-
33
22
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
34
23
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
35
24
  sig { returns(T.nilable(Integer)) }
@@ -323,9 +312,7 @@ module ModernTreasury
323
312
 
324
313
  sig do
325
314
  params(
326
- accounting: ModernTreasury::Accounting::OrHash,
327
315
  accounting_category_id: T.nilable(String),
328
- accounting_ledger_class_id: T.nilable(String),
329
316
  amount: Integer,
330
317
  charge_bearer:
331
318
  T.nilable(
@@ -374,13 +361,9 @@ module ModernTreasury
374
361
  ).returns(T.attached_class)
375
362
  end
376
363
  def self.new(
377
- accounting: nil,
378
364
  # The ID of one of your accounting categories. Note that these will only be
379
365
  # accessible if your accounting system has been connected.
380
366
  accounting_category_id: nil,
381
- # The ID of one of your accounting ledger classes. Note that these will only be
382
- # accessible if your accounting system has been connected.
383
- accounting_ledger_class_id: nil,
384
367
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
385
368
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
386
369
  amount: nil,
@@ -503,9 +486,7 @@ module ModernTreasury
503
486
  sig do
504
487
  override.returns(
505
488
  {
506
- accounting: ModernTreasury::Accounting,
507
489
  accounting_category_id: T.nilable(String),
508
- accounting_ledger_class_id: T.nilable(String),
509
490
  amount: Integer,
510
491
  charge_bearer:
511
492
  T.nilable(
@@ -1498,6 +1479,11 @@ module ModernTreasury
1498
1479
  :ethereum,
1499
1480
  ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1500
1481
  )
1482
+ GB_FPS =
1483
+ T.let(
1484
+ :gb_fps,
1485
+ ModernTreasury::PaymentOrderUpdateParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1486
+ )
1501
1487
  HU_ICS =
1502
1488
  T.let(
1503
1489
  :hu_ics,
@@ -150,6 +150,11 @@ module ModernTreasury
150
150
  :bnk_dev_transfer_id,
151
151
  ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
152
152
  )
153
+ BNY_MELLON_TRANSACTION_REFERENCE_NUMBER =
154
+ T.let(
155
+ :bny_mellon_transaction_reference_number,
156
+ ModernTreasury::PaymentReference::ReferenceNumberType::TaggedSymbol
157
+ )
153
158
  BOFA_END_TO_END_ID =
154
159
  T.let(
155
160
  :bofa_end_to_end_id,
@@ -201,6 +201,8 @@ module ModernTreasury
201
201
  :ethereum,
202
202
  ModernTreasury::ReconciliationRule::Type::TaggedSymbol
203
203
  )
204
+ GB_FPS =
205
+ T.let(:gb_fps, ModernTreasury::ReconciliationRule::Type::TaggedSymbol)
204
206
  HU_ICS =
205
207
  T.let(:hu_ics, ModernTreasury::ReconciliationRule::Type::TaggedSymbol)
206
208
  INTERAC =
@@ -611,6 +611,11 @@ module ModernTreasury
611
611
  :bnk_dev_transfer_id,
612
612
  ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
613
613
  )
614
+ BNY_MELLON_TRANSACTION_REFERENCE_NUMBER =
615
+ T.let(
616
+ :bny_mellon_transaction_reference_number,
617
+ ModernTreasury::ReturnObject::ReferenceNumber::ReferenceNumberType::TaggedSymbol
618
+ )
614
619
  BOFA_END_TO_END_ID =
615
620
  T.let(
616
621
  :bofa_end_to_end_id,
@@ -182,6 +182,11 @@ module ModernTreasury
182
182
  :ethereum,
183
183
  ModernTreasury::RoutingDetail::PaymentType::TaggedSymbol
184
184
  )
185
+ GB_FPS =
186
+ T.let(
187
+ :gb_fps,
188
+ ModernTreasury::RoutingDetail::PaymentType::TaggedSymbol
189
+ )
185
190
  HU_ICS =
186
191
  T.let(
187
192
  :hu_ics,
@@ -334,6 +334,11 @@ module ModernTreasury
334
334
  :ethereum,
335
335
  ModernTreasury::RoutingDetailCreateParams::PaymentType::TaggedSymbol
336
336
  )
337
+ GB_FPS =
338
+ T.let(
339
+ :gb_fps,
340
+ ModernTreasury::RoutingDetailCreateParams::PaymentType::TaggedSymbol
341
+ )
337
342
  HU_ICS =
338
343
  T.let(
339
344
  :hu_ics,
@@ -285,6 +285,11 @@ module ModernTreasury
285
285
  :ethereum,
286
286
  ModernTreasury::RoutingNumberLookupRequest::SupportedPaymentType::TaggedSymbol
287
287
  )
288
+ GB_FPS =
289
+ T.let(
290
+ :gb_fps,
291
+ ModernTreasury::RoutingNumberLookupRequest::SupportedPaymentType::TaggedSymbol
292
+ )
288
293
  HU_ICS =
289
294
  T.let(
290
295
  :hu_ics,
@@ -301,6 +301,7 @@ module ModernTreasury
301
301
  EFT = T.let(:eft, ModernTreasury::Transaction::Type::TaggedSymbol)
302
302
  ETHEREUM =
303
303
  T.let(:ethereum, ModernTreasury::Transaction::Type::TaggedSymbol)
304
+ GB_FPS = T.let(:gb_fps, ModernTreasury::Transaction::Type::TaggedSymbol)
304
305
  HU_ICS = T.let(:hu_ics, ModernTreasury::Transaction::Type::TaggedSymbol)
305
306
  INTERAC =
306
307
  T.let(:interac, ModernTreasury::Transaction::Type::TaggedSymbol)
@@ -223,6 +223,11 @@ module ModernTreasury
223
223
  :ethereum,
224
224
  ModernTreasury::TransactionCreateParams::Type::TaggedSymbol
225
225
  )
226
+ GB_FPS =
227
+ T.let(
228
+ :gb_fps,
229
+ ModernTreasury::TransactionCreateParams::Type::TaggedSymbol
230
+ )
226
231
  HU_ICS =
227
232
  T.let(
228
233
  :hu_ics,
@@ -636,6 +636,11 @@ module ModernTreasury
636
636
  :ethereum,
637
637
  ModernTreasury::VirtualAccountCreateParams::RoutingDetail::PaymentType::TaggedSymbol
638
638
  )
639
+ GB_FPS =
640
+ T.let(
641
+ :gb_fps,
642
+ ModernTreasury::VirtualAccountCreateParams::RoutingDetail::PaymentType::TaggedSymbol
643
+ )
639
644
  HU_ICS =
640
645
  T.let(
641
646
  :hu_ics,
@@ -26,8 +26,6 @@ module ModernTreasury
26
26
  AccountDetailRetrieveParams =
27
27
  ModernTreasury::Models::AccountDetailRetrieveParams
28
28
 
29
- Accounting = ModernTreasury::Models::Accounting
30
-
31
29
  AccountsType = ModernTreasury::Models::AccountsType
32
30
 
33
31
  Address = ModernTreasury::Models::Address
@@ -116,6 +116,7 @@ module ModernTreasury
116
116
  params(
117
117
  id: T::Array[String],
118
118
  after_cursor: T.nilable(String),
119
+ amount: ModernTreasury::LedgerTransactionListParams::Amount::OrHash,
119
120
  effective_at: T::Hash[Symbol, Time],
120
121
  effective_date: T::Hash[Symbol, Time],
121
122
  external_id: String,
@@ -151,6 +152,8 @@ module ModernTreasury
151
152
  # parameters delimited with `id[]=`, for example `?id[]=123&id[]=abc`.
152
153
  id: nil,
153
154
  after_cursor: nil,
155
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by amount.
156
+ amount: nil,
154
157
  # Use "gt" (>), "gte" (>=), "lt" (<), "lte" (<=), or "eq" (=) to filter by
155
158
  # effective at. For example, for all transactions after Jan 1 2000, use
156
159
  # effective_at%5Bgt%5D=2000-01-01T00:00:00:00.000Z.