modern_treasury 0.1.0.pre.alpha.20 → 0.1.0.pre.alpha.22

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 (169) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +42 -0
  3. data/README.md +3 -3
  4. data/lib/modern_treasury/errors.rb +22 -0
  5. data/lib/modern_treasury/internal/transport/base_client.rb +10 -2
  6. data/lib/modern_treasury/internal/type/array_of.rb +6 -1
  7. data/lib/modern_treasury/internal/type/base_model.rb +77 -23
  8. data/lib/modern_treasury/internal/type/boolean.rb +7 -1
  9. data/lib/modern_treasury/internal/type/converter.rb +42 -34
  10. data/lib/modern_treasury/internal/type/enum.rb +16 -5
  11. data/lib/modern_treasury/internal/type/file_input.rb +6 -1
  12. data/lib/modern_treasury/internal/type/hash_of.rb +6 -1
  13. data/lib/modern_treasury/internal/type/union.rb +19 -9
  14. data/lib/modern_treasury/internal/type/unknown.rb +7 -1
  15. data/lib/modern_treasury/internal/util.rb +13 -10
  16. data/lib/modern_treasury/models/bulk_request_create_params.rb +143 -18
  17. data/lib/modern_treasury/models/bulk_result.rb +5 -3
  18. data/lib/modern_treasury/models/counterparty_create_params.rb +1 -0
  19. data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
  20. data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
  21. data/lib/modern_treasury/models/internal_account.rb +146 -3
  22. data/lib/modern_treasury/models/internal_account_create_params.rb +138 -1
  23. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +23 -0
  24. data/lib/modern_treasury/models/invoice.rb +10 -1
  25. data/lib/modern_treasury/models/ledger_account.rb +9 -1
  26. data/lib/modern_treasury/models/ledger_account_category.rb +9 -1
  27. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +8 -1
  28. data/lib/modern_treasury/models/ledger_account_list_params.rb +15 -1
  29. data/lib/modern_treasury/models/payment_order.rb +21 -9
  30. data/lib/modern_treasury/models/payment_order_create_async_params.rb +8 -7
  31. data/lib/modern_treasury/models/payment_order_create_params.rb +8 -7
  32. data/lib/modern_treasury/models/payment_order_list_params.rb +9 -1
  33. data/lib/modern_treasury/models/payment_order_update_params.rb +9 -7
  34. data/lib/modern_treasury/models/payment_reference.rb +4 -1
  35. data/lib/modern_treasury/models/return_create_params.rb +75 -1
  36. data/lib/modern_treasury/models/return_object.rb +80 -2
  37. data/lib/modern_treasury/models/routing_detail.rb +1 -0
  38. data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
  39. data/lib/modern_treasury/models/transaction.rb +1 -0
  40. data/lib/modern_treasury/models/transaction_create_params.rb +9 -1
  41. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +9 -1
  42. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
  43. data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
  44. data/lib/modern_treasury/models.rb +4 -22
  45. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  46. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +2 -2
  47. data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
  48. data/lib/modern_treasury/resources/ledger_account_categories.rb +3 -1
  49. data/lib/modern_treasury/resources/ledger_accounts.rb +5 -1
  50. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -111
  51. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -51
  52. data/lib/modern_treasury/resources/payment_orders.rb +6 -4
  53. data/lib/modern_treasury/resources/returns.rb +3 -1
  54. data/lib/modern_treasury/resources/transactions.rb +3 -1
  55. data/lib/modern_treasury/version.rb +1 -1
  56. data/lib/modern_treasury.rb +3 -10
  57. data/rbi/modern_treasury/errors.rbi +16 -0
  58. data/rbi/modern_treasury/internal/type/boolean.rbi +2 -0
  59. data/rbi/modern_treasury/internal/type/converter.rbi +15 -15
  60. data/rbi/modern_treasury/internal/type/union.rbi +5 -0
  61. data/rbi/modern_treasury/internal/type/unknown.rbi +2 -0
  62. data/rbi/modern_treasury/internal/util.rbi +2 -0
  63. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +234 -18
  64. data/rbi/modern_treasury/models/bulk_result.rbi +2 -0
  65. data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -0
  66. data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
  67. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
  68. data/rbi/modern_treasury/models/internal_account.rbi +328 -5
  69. data/rbi/modern_treasury/models/internal_account_create_params.rbi +333 -0
  70. data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +37 -0
  71. data/rbi/modern_treasury/models/invoice.rbi +10 -0
  72. data/rbi/modern_treasury/models/ledger_account.rbi +8 -0
  73. data/rbi/modern_treasury/models/ledger_account_category.rbi +8 -0
  74. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +9 -0
  75. data/rbi/modern_treasury/models/ledger_account_list_params.rbi +22 -0
  76. data/rbi/modern_treasury/models/payment_order.rbi +39 -14
  77. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +14 -9
  78. data/rbi/modern_treasury/models/payment_order_create_params.rbi +14 -9
  79. data/rbi/modern_treasury/models/payment_order_list_params.rbi +14 -0
  80. data/rbi/modern_treasury/models/payment_order_update_params.rbi +19 -9
  81. data/rbi/modern_treasury/models/payment_reference.rbi +20 -5
  82. data/rbi/modern_treasury/models/return_create_params.rbi +114 -0
  83. data/rbi/modern_treasury/models/return_object.rbi +131 -5
  84. data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
  85. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
  86. data/rbi/modern_treasury/models/transaction.rbi +5 -0
  87. data/rbi/modern_treasury/models/transaction_create_params.rbi +8 -0
  88. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +8 -0
  89. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
  90. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
  91. data/rbi/modern_treasury/models.rbi +0 -25
  92. data/rbi/modern_treasury/resources/bulk_requests.rbi +1 -0
  93. data/rbi/modern_treasury/resources/internal_accounts/balance_reports.rbi +7 -3
  94. data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -0
  95. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +2 -0
  96. data/rbi/modern_treasury/resources/ledger_accounts.rbi +4 -0
  97. data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -97
  98. data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -38
  99. data/rbi/modern_treasury/resources/payment_orders.rbi +11 -9
  100. data/rbi/modern_treasury/resources/returns.rbi +6 -0
  101. data/rbi/modern_treasury/resources/transactions.rbi +3 -0
  102. data/sig/modern_treasury/errors.rbs +9 -0
  103. data/sig/modern_treasury/internal/type/converter.rbs +7 -1
  104. data/sig/modern_treasury/models/bulk_request_create_params.rbs +101 -0
  105. data/sig/modern_treasury/models/bulk_result.rbs +1 -0
  106. data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -0
  107. data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
  108. data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
  109. data/sig/modern_treasury/models/internal_account.rbs +147 -3
  110. data/sig/modern_treasury/models/internal_account_create_params.rbs +143 -0
  111. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +10 -0
  112. data/sig/modern_treasury/models/invoice.rbs +5 -0
  113. data/sig/modern_treasury/models/ledger_account.rbs +5 -0
  114. data/sig/modern_treasury/models/ledger_account_category.rbs +5 -0
  115. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +7 -0
  116. data/sig/modern_treasury/models/ledger_account_list_params.rbs +16 -0
  117. data/sig/modern_treasury/models/payment_order.rbs +15 -2
  118. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -0
  119. data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -0
  120. data/sig/modern_treasury/models/payment_order_list_params.rbs +9 -0
  121. data/sig/modern_treasury/models/payment_order_update_params.rbs +4 -0
  122. data/sig/modern_treasury/models/payment_reference.rbs +8 -2
  123. data/sig/modern_treasury/models/return_create_params.rbs +47 -0
  124. data/sig/modern_treasury/models/return_object.rbs +55 -2
  125. data/sig/modern_treasury/models/routing_detail.rbs +2 -0
  126. data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
  127. data/sig/modern_treasury/models/transaction.rbs +2 -0
  128. data/sig/modern_treasury/models/transaction_create_params.rbs +5 -0
  129. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +5 -0
  130. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
  131. data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
  132. data/sig/modern_treasury/models.rbs +0 -18
  133. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +1 -1
  134. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  135. data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -0
  136. data/sig/modern_treasury/resources/ledger_accounts.rbs +2 -0
  137. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -30
  138. data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -13
  139. data/sig/modern_treasury/resources/payment_orders.rbs +1 -0
  140. data/sig/modern_treasury/resources/returns.rbs +1 -0
  141. data/sig/modern_treasury/resources/transactions.rbs +1 -0
  142. metadata +2 -29
  143. data/lib/modern_treasury/models/ledger_event_handler.rb +0 -222
  144. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +0 -177
  145. data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +0 -14
  146. data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +0 -58
  147. data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +0 -14
  148. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +0 -59
  149. data/lib/modern_treasury/models/ledgerable_event.rb +0 -92
  150. data/lib/modern_treasury/models/ledgerable_event_create_params.rb +0 -50
  151. data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +0 -14
  152. data/rbi/modern_treasury/models/ledger_event_handler.rbi +0 -322
  153. data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -303
  154. data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -32
  155. data/rbi/modern_treasury/models/ledger_event_handler_list_params.rbi +0 -92
  156. data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -32
  157. data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +0 -98
  158. data/rbi/modern_treasury/models/ledgerable_event.rbi +0 -108
  159. data/rbi/modern_treasury/models/ledgerable_event_create_params.rbi +0 -75
  160. data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -32
  161. data/sig/modern_treasury/models/ledger_event_handler.rbs +0 -149
  162. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +0 -127
  163. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -15
  164. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -54
  165. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -15
  166. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +0 -36
  167. data/sig/modern_treasury/models/ledgerable_event.rbs +0 -65
  168. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -43
  169. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -15
@@ -11,6 +11,8 @@ module ModernTreasury
11
11
  ModernTreasury::ReturnCreateParams::ReturnableType::OrSymbol,
12
12
  additional_information: T.nilable(String),
13
13
  code: T.nilable(ModernTreasury::ReturnCreateParams::Code::OrSymbol),
14
+ corrections:
15
+ T.nilable(ModernTreasury::ReturnCreateParams::Corrections::OrHash),
14
16
  data: T.nilable(T.anything),
15
17
  date_of_death: T.nilable(Date),
16
18
  reason: T.nilable(String),
@@ -28,6 +30,10 @@ module ModernTreasury
28
30
  additional_information: nil,
29
31
  # The return code. For ACH returns, this is the required ACH return code.
30
32
  code: nil,
33
+ # Only relevant for ACH NOC returns. This is an object containing all of the new
34
+ # and corrected information provided by the bank that was previously incorrect on
35
+ # the original outgoing payment.
36
+ corrections: nil,
31
37
  # The raw data from the return file that we get from the bank.
32
38
  data: nil,
33
39
  # If the return code is `R14` or `R15` this is the date the deceased counterparty
@@ -19,6 +19,7 @@ module ModernTreasury
19
19
  posted: T::Boolean,
20
20
  type:
21
21
  T.nilable(ModernTreasury::TransactionCreateParams::Type::OrSymbol),
22
+ vendor_customer_id: T.nilable(String),
22
23
  vendor_description: T.nilable(String),
23
24
  request_options: ModernTreasury::RequestOptions::OrHash
24
25
  ).returns(ModernTreasury::Transaction)
@@ -49,6 +50,8 @@ module ModernTreasury
49
50
  # The type of the transaction. Examples could be
50
51
  # `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
51
52
  type: nil,
53
+ # An identifier given to this transaction by the bank, often `null`.
54
+ vendor_customer_id: nil,
52
55
  # The transaction detail text that often appears in on your bank statement and in
53
56
  # your banking portal.
54
57
  vendor_description: nil,
@@ -5,6 +5,15 @@ module ModernTreasury
5
5
  end
6
6
 
7
7
  class ConversionError < ModernTreasury::Errors::Error
8
+ def cause: -> StandardError?
9
+
10
+ def initialize: (
11
+ on: Class,
12
+ method: Symbol,
13
+ target: top,
14
+ value: top,
15
+ ?cause: StandardError?
16
+ ) -> void
8
17
  end
9
18
 
10
19
  class APIError < ModernTreasury::Errors::Error
@@ -8,8 +8,10 @@ module ModernTreasury
8
8
 
9
9
  type coerce_state =
10
10
  {
11
- strictness: bool | :strong,
11
+ translate_names: bool,
12
+ strictness: bool,
12
13
  exactness: { yes: Integer, no: Integer, maybe: Integer },
14
+ error: Class,
13
15
  branched: Integer
14
16
  }
15
17
 
@@ -37,6 +39,10 @@ module ModernTreasury
37
39
  | ModernTreasury::Internal::Type::Converter::input spec
38
40
  ) -> (^-> top)
39
41
 
42
+ def self.new_coerce_state: (
43
+ ?translate_names: bool
44
+ ) -> ModernTreasury::Internal::Type::Converter::coerce_state
45
+
40
46
  def self.coerce: (
41
47
  ModernTreasury::Internal::Type::Converter::input target,
42
48
  top value,
@@ -78,6 +78,7 @@ module ModernTreasury
78
78
  ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest
79
79
  | ModernTreasury::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest
80
80
  | ModernTreasury::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest
81
+ | ModernTreasury::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest
81
82
  | ModernTreasury::BulkRequestCreateParams::Resource::TransactionCreateRequest
82
83
  | ModernTreasury::BulkRequestCreateParams::Resource::ID
83
84
  | ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID
@@ -975,6 +976,7 @@ module ModernTreasury
975
976
  | :hk_interbank_clearing_code
976
977
  | :hu_interbank_clearing_code
977
978
  | :id_sknbi_code
979
+ | :il_bank_code
978
980
  | :in_ifsc
979
981
  | :jp_zengin_code
980
982
  | :my_branch_code
@@ -1000,6 +1002,7 @@ module ModernTreasury
1000
1002
  HK_INTERBANK_CLEARING_CODE: :hk_interbank_clearing_code
1001
1003
  HU_INTERBANK_CLEARING_CODE: :hu_interbank_clearing_code
1002
1004
  ID_SKNBI_CODE: :id_sknbi_code
1005
+ IL_BANK_CODE: :il_bank_code
1003
1006
  IN_IFSC: :in_ifsc
1004
1007
  JP_ZENGIN_CODE: :jp_zengin_code
1005
1008
  MY_BRANCH_CODE: :my_branch_code
@@ -1592,6 +1595,95 @@ module ModernTreasury
1592
1595
  end
1593
1596
  end
1594
1597
 
1598
+ type ledger_account_create_request =
1599
+ {
1600
+ currency: String,
1601
+ ledger_id: String,
1602
+ name: String,
1603
+ normal_balance: ModernTreasury::Models::transaction_direction,
1604
+ currency_exponent: Integer?,
1605
+ description: String?,
1606
+ ledger_account_category_ids: ::Array[String],
1607
+ ledgerable_id: String,
1608
+ ledgerable_type: ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest::ledgerable_type,
1609
+ metadata: ::Hash[Symbol, String]
1610
+ }
1611
+
1612
+ class LedgerAccountCreateRequest < ModernTreasury::Internal::Type::BaseModel
1613
+ attr_accessor currency: String
1614
+
1615
+ attr_accessor ledger_id: String
1616
+
1617
+ attr_accessor name: String
1618
+
1619
+ attr_accessor normal_balance: ModernTreasury::Models::transaction_direction
1620
+
1621
+ attr_accessor currency_exponent: Integer?
1622
+
1623
+ attr_accessor description: String?
1624
+
1625
+ attr_reader ledger_account_category_ids: ::Array[String]?
1626
+
1627
+ def ledger_account_category_ids=: (::Array[String]) -> ::Array[String]
1628
+
1629
+ attr_reader ledgerable_id: String?
1630
+
1631
+ def ledgerable_id=: (String) -> String
1632
+
1633
+ attr_reader ledgerable_type: ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest::ledgerable_type?
1634
+
1635
+ def ledgerable_type=: (
1636
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest::ledgerable_type
1637
+ ) -> ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest::ledgerable_type
1638
+
1639
+ attr_reader metadata: ::Hash[Symbol, String]?
1640
+
1641
+ def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
1642
+
1643
+ def initialize: (
1644
+ currency: String,
1645
+ ledger_id: String,
1646
+ name: String,
1647
+ normal_balance: ModernTreasury::Models::transaction_direction,
1648
+ ?currency_exponent: Integer?,
1649
+ ?description: String?,
1650
+ ?ledger_account_category_ids: ::Array[String],
1651
+ ?ledgerable_id: String,
1652
+ ?ledgerable_type: ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest::ledgerable_type,
1653
+ ?metadata: ::Hash[Symbol, String]
1654
+ ) -> void
1655
+
1656
+ def to_hash: -> {
1657
+ currency: String,
1658
+ ledger_id: String,
1659
+ name: String,
1660
+ normal_balance: ModernTreasury::Models::transaction_direction,
1661
+ currency_exponent: Integer?,
1662
+ description: String?,
1663
+ ledger_account_category_ids: ::Array[String],
1664
+ ledgerable_id: String,
1665
+ ledgerable_type: ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest::ledgerable_type,
1666
+ metadata: ::Hash[Symbol, String]
1667
+ }
1668
+
1669
+ type ledgerable_type =
1670
+ :counterparty
1671
+ | :external_account
1672
+ | :internal_account
1673
+ | :virtual_account
1674
+
1675
+ module LedgerableType
1676
+ extend ModernTreasury::Internal::Type::Enum
1677
+
1678
+ COUNTERPARTY: :counterparty
1679
+ EXTERNAL_ACCOUNT: :external_account
1680
+ INTERNAL_ACCOUNT: :internal_account
1681
+ VIRTUAL_ACCOUNT: :virtual_account
1682
+
1683
+ def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountCreateRequest::ledgerable_type]
1684
+ end
1685
+ end
1686
+
1595
1687
  type transaction_create_request =
1596
1688
  {
1597
1689
  amount: Integer,
@@ -1603,6 +1695,7 @@ module ModernTreasury
1603
1695
  metadata: ::Hash[Symbol, String],
1604
1696
  posted: bool,
1605
1697
  type: ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::type_?,
1698
+ vendor_customer_id: String?,
1606
1699
  vendor_description: String?
1607
1700
  }
1608
1701
 
@@ -1629,6 +1722,8 @@ module ModernTreasury
1629
1722
 
1630
1723
  attr_accessor type: ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::type_?
1631
1724
 
1725
+ attr_accessor vendor_customer_id: String?
1726
+
1632
1727
  attr_accessor vendor_description: String?
1633
1728
 
1634
1729
  def initialize: (
@@ -1641,6 +1736,7 @@ module ModernTreasury
1641
1736
  ?metadata: ::Hash[Symbol, String],
1642
1737
  ?posted: bool,
1643
1738
  ?type: ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::type_?,
1739
+ ?vendor_customer_id: String?,
1644
1740
  ?vendor_description: String?
1645
1741
  ) -> void
1646
1742
 
@@ -1654,6 +1750,7 @@ module ModernTreasury
1654
1750
  metadata: ::Hash[Symbol, String],
1655
1751
  posted: bool,
1656
1752
  type: ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::type_?,
1753
+ vendor_customer_id: String?,
1657
1754
  vendor_description: String?
1658
1755
  }
1659
1756
 
@@ -2479,6 +2576,7 @@ module ModernTreasury
2479
2576
  | :hk_interbank_clearing_code
2480
2577
  | :hu_interbank_clearing_code
2481
2578
  | :id_sknbi_code
2579
+ | :il_bank_code
2482
2580
  | :in_ifsc
2483
2581
  | :jp_zengin_code
2484
2582
  | :my_branch_code
@@ -2504,6 +2602,7 @@ module ModernTreasury
2504
2602
  HK_INTERBANK_CLEARING_CODE: :hk_interbank_clearing_code
2505
2603
  HU_INTERBANK_CLEARING_CODE: :hu_interbank_clearing_code
2506
2604
  ID_SKNBI_CODE: :id_sknbi_code
2605
+ IL_BANK_CODE: :il_bank_code
2507
2606
  IN_IFSC: :in_ifsc
2508
2607
  JP_ZENGIN_CODE: :jp_zengin_code
2509
2608
  MY_BRANCH_CODE: :my_branch_code
@@ -2609,6 +2708,7 @@ module ModernTreasury
2609
2708
  | :returned
2610
2709
  | :reversed
2611
2710
  | :sent
2711
+ | :stopped
2612
2712
 
2613
2713
  module Status
2614
2714
  extend ModernTreasury::Internal::Type::Enum
@@ -2624,6 +2724,7 @@ module ModernTreasury
2624
2724
  RETURNED: :returned
2625
2725
  REVERSED: :reversed
2626
2726
  SENT: :sent
2727
+ STOPPED: :stopped
2627
2728
 
2628
2729
  def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::status]
2629
2730
  end
@@ -75,6 +75,7 @@ module ModernTreasury
75
75
  ModernTreasury::PaymentOrder
76
76
  | ModernTreasury::ExpectedPayment
77
77
  | ModernTreasury::LedgerTransaction
78
+ | ModernTreasury::LedgerAccount
78
79
  | ModernTreasury::Transaction
79
80
  | ModernTreasury::BulkResult::Entity::BulkError
80
81
 
@@ -520,6 +520,7 @@ module ModernTreasury
520
520
  | :hk_interbank_clearing_code
521
521
  | :hu_interbank_clearing_code
522
522
  | :id_sknbi_code
523
+ | :il_bank_code
523
524
  | :in_ifsc
524
525
  | :jp_zengin_code
525
526
  | :my_branch_code
@@ -545,6 +546,7 @@ module ModernTreasury
545
546
  HK_INTERBANK_CLEARING_CODE: :hk_interbank_clearing_code
546
547
  HU_INTERBANK_CLEARING_CODE: :hu_interbank_clearing_code
547
548
  ID_SKNBI_CODE: :id_sknbi_code
549
+ IL_BANK_CODE: :il_bank_code
548
550
  IN_IFSC: :in_ifsc
549
551
  JP_ZENGIN_CODE: :jp_zengin_code
550
552
  MY_BRANCH_CODE: :my_branch_code
@@ -401,6 +401,7 @@ module ModernTreasury
401
401
  | :hk_interbank_clearing_code
402
402
  | :hu_interbank_clearing_code
403
403
  | :id_sknbi_code
404
+ | :il_bank_code
404
405
  | :in_ifsc
405
406
  | :jp_zengin_code
406
407
  | :my_branch_code
@@ -426,6 +427,7 @@ module ModernTreasury
426
427
  HK_INTERBANK_CLEARING_CODE: :hk_interbank_clearing_code
427
428
  HU_INTERBANK_CLEARING_CODE: :hu_interbank_clearing_code
428
429
  ID_SKNBI_CODE: :id_sknbi_code
430
+ IL_BANK_CODE: :il_bank_code
429
431
  IN_IFSC: :in_ifsc
430
432
  JP_ZENGIN_CODE: :jp_zengin_code
431
433
  MY_BRANCH_CODE: :my_branch_code
@@ -185,6 +185,7 @@ module ModernTreasury
185
185
  | :hk_interbank_clearing_code
186
186
  | :hu_interbank_clearing_code
187
187
  | :id_sknbi_code
188
+ | :il_bank_code
188
189
  | :in_ifsc
189
190
  | :jp_zengin_code
190
191
  | :mx_bank_identifier
@@ -210,6 +211,7 @@ module ModernTreasury
210
211
  HK_INTERBANK_CLEARING_CODE: :hk_interbank_clearing_code
211
212
  HU_INTERBANK_CLEARING_CODE: :hu_interbank_clearing_code
212
213
  ID_SKNBI_CODE: :id_sknbi_code
214
+ IL_BANK_CODE: :il_bank_code
213
215
  IN_IFSC: :in_ifsc
214
216
  JP_ZENGIN_CODE: :jp_zengin_code
215
217
  MX_BANK_IDENTIFIER: :mx_bank_identifier
@@ -3,6 +3,7 @@ module ModernTreasury
3
3
  type internal_account =
4
4
  {
5
5
  id: String,
6
+ account_capabilities: ::Array[ModernTreasury::InternalAccount::AccountCapability],
6
7
  account_details: ::Array[ModernTreasury::AccountDetail],
7
8
  account_type: ModernTreasury::Models::InternalAccount::account_type?,
8
9
  connection: ModernTreasury::Connection,
@@ -20,12 +21,15 @@ module ModernTreasury
20
21
  party_name: String,
21
22
  party_type: ModernTreasury::Models::InternalAccount::party_type?,
22
23
  routing_details: ::Array[ModernTreasury::RoutingDetail],
23
- updated_at: Time
24
+ updated_at: Time,
25
+ vendor_id: String?
24
26
  }
25
27
 
26
28
  class InternalAccount < ModernTreasury::Internal::Type::BaseModel
27
29
  attr_accessor id: String
28
30
 
31
+ attr_accessor account_capabilities: ::Array[ModernTreasury::InternalAccount::AccountCapability]
32
+
29
33
  attr_accessor account_details: ::Array[ModernTreasury::AccountDetail]
30
34
 
31
35
  attr_accessor account_type: ModernTreasury::Models::InternalAccount::account_type?
@@ -62,8 +66,11 @@ module ModernTreasury
62
66
 
63
67
  attr_accessor updated_at: Time
64
68
 
69
+ attr_accessor vendor_id: String?
70
+
65
71
  def initialize: (
66
72
  id: String,
73
+ account_capabilities: ::Array[ModernTreasury::InternalAccount::AccountCapability],
67
74
  account_details: ::Array[ModernTreasury::AccountDetail],
68
75
  account_type: ModernTreasury::Models::InternalAccount::account_type?,
69
76
  connection: ModernTreasury::Connection,
@@ -81,11 +88,13 @@ module ModernTreasury
81
88
  party_name: String,
82
89
  party_type: ModernTreasury::Models::InternalAccount::party_type?,
83
90
  routing_details: ::Array[ModernTreasury::RoutingDetail],
84
- updated_at: Time
91
+ updated_at: Time,
92
+ vendor_id: String?
85
93
  ) -> void
86
94
 
87
95
  def to_hash: -> {
88
96
  id: String,
97
+ account_capabilities: ::Array[ModernTreasury::InternalAccount::AccountCapability],
89
98
  account_details: ::Array[ModernTreasury::AccountDetail],
90
99
  account_type: ModernTreasury::Models::InternalAccount::account_type?,
91
100
  connection: ModernTreasury::Connection,
@@ -103,9 +112,144 @@ module ModernTreasury
103
112
  party_name: String,
104
113
  party_type: ModernTreasury::Models::InternalAccount::party_type?,
105
114
  routing_details: ::Array[ModernTreasury::RoutingDetail],
106
- updated_at: Time
115
+ updated_at: Time,
116
+ vendor_id: String?
107
117
  }
108
118
 
119
+ type account_capability =
120
+ {
121
+ id: String,
122
+ created_at: Time,
123
+ direction: ModernTreasury::Models::transaction_direction,
124
+ discarded_at: Time?,
125
+ identifier: String?,
126
+ live_mode: bool,
127
+ object: String,
128
+ payment_type: ModernTreasury::Models::InternalAccount::AccountCapability::payment_type,
129
+ updated_at: Time
130
+ }
131
+
132
+ class AccountCapability < ModernTreasury::Internal::Type::BaseModel
133
+ attr_accessor id: String
134
+
135
+ attr_accessor created_at: Time
136
+
137
+ attr_accessor direction: ModernTreasury::Models::transaction_direction
138
+
139
+ attr_accessor discarded_at: Time?
140
+
141
+ attr_accessor identifier: String?
142
+
143
+ attr_accessor live_mode: bool
144
+
145
+ attr_accessor object: String
146
+
147
+ attr_accessor payment_type: ModernTreasury::Models::InternalAccount::AccountCapability::payment_type
148
+
149
+ attr_accessor updated_at: Time
150
+
151
+ def initialize: (
152
+ id: String,
153
+ created_at: Time,
154
+ direction: ModernTreasury::Models::transaction_direction,
155
+ discarded_at: Time?,
156
+ identifier: String?,
157
+ live_mode: bool,
158
+ object: String,
159
+ payment_type: ModernTreasury::Models::InternalAccount::AccountCapability::payment_type,
160
+ updated_at: Time
161
+ ) -> void
162
+
163
+ def to_hash: -> {
164
+ id: String,
165
+ created_at: Time,
166
+ direction: ModernTreasury::Models::transaction_direction,
167
+ discarded_at: Time?,
168
+ identifier: String?,
169
+ live_mode: bool,
170
+ object: String,
171
+ payment_type: ModernTreasury::Models::InternalAccount::AccountCapability::payment_type,
172
+ updated_at: Time
173
+ }
174
+
175
+ type payment_type =
176
+ :ach
177
+ | :au_becs
178
+ | :bacs
179
+ | :base
180
+ | :book
181
+ | :card
182
+ | :chats
183
+ | :check
184
+ | :cross_border
185
+ | :dk_nets
186
+ | :eft
187
+ | :ethereum
188
+ | :hu_ics
189
+ | :interac
190
+ | :masav
191
+ | :mx_ccen
192
+ | :neft
193
+ | :nics
194
+ | :nz_becs
195
+ | :pl_elixir
196
+ | :polygon
197
+ | :provxchange
198
+ | :ro_sent
199
+ | :rtp
200
+ | :se_bankgirot
201
+ | :sen
202
+ | :sepa
203
+ | :sg_giro
204
+ | :sic
205
+ | :signet
206
+ | :sknbi
207
+ | :solana
208
+ | :wire
209
+ | :zengin
210
+
211
+ module PaymentType
212
+ extend ModernTreasury::Internal::Type::Enum
213
+
214
+ ACH: :ach
215
+ AU_BECS: :au_becs
216
+ BACS: :bacs
217
+ BASE: :base
218
+ BOOK: :book
219
+ CARD: :card
220
+ CHATS: :chats
221
+ CHECK: :check
222
+ CROSS_BORDER: :cross_border
223
+ DK_NETS: :dk_nets
224
+ EFT: :eft
225
+ ETHEREUM: :ethereum
226
+ HU_ICS: :hu_ics
227
+ INTERAC: :interac
228
+ MASAV: :masav
229
+ MX_CCEN: :mx_ccen
230
+ NEFT: :neft
231
+ NICS: :nics
232
+ NZ_BECS: :nz_becs
233
+ PL_ELIXIR: :pl_elixir
234
+ POLYGON: :polygon
235
+ PROVXCHANGE: :provxchange
236
+ RO_SENT: :ro_sent
237
+ RTP: :rtp
238
+ SE_BANKGIROT: :se_bankgirot
239
+ SEN: :sen
240
+ SEPA: :sepa
241
+ SG_GIRO: :sg_giro
242
+ SIC: :sic
243
+ SIGNET: :signet
244
+ SKNBI: :sknbi
245
+ SOLANA: :solana
246
+ WIRE: :wire
247
+ ZENGIN: :zengin
248
+
249
+ def self?.values: -> ::Array[ModernTreasury::Models::InternalAccount::AccountCapability::payment_type]
250
+ end
251
+ end
252
+
109
253
  type account_type =
110
254
  :base_wallet
111
255
  | :cash
@@ -6,6 +6,7 @@ module ModernTreasury
6
6
  currency: ModernTreasury::Models::InternalAccountCreateParams::currency,
7
7
  name: String,
8
8
  party_name: String,
9
+ account_capabilities: ::Array[ModernTreasury::InternalAccountCreateParams::AccountCapability],
9
10
  account_type: ModernTreasury::Models::InternalAccountCreateParams::account_type,
10
11
  counterparty_id: String,
11
12
  legal_entity_id: String,
@@ -27,6 +28,12 @@ module ModernTreasury
27
28
 
28
29
  attr_accessor party_name: String
29
30
 
31
+ attr_reader account_capabilities: ::Array[ModernTreasury::InternalAccountCreateParams::AccountCapability]?
32
+
33
+ def account_capabilities=: (
34
+ ::Array[ModernTreasury::InternalAccountCreateParams::AccountCapability]
35
+ ) -> ::Array[ModernTreasury::InternalAccountCreateParams::AccountCapability]
36
+
30
37
  attr_reader account_type: ModernTreasury::Models::InternalAccountCreateParams::account_type?
31
38
 
32
39
  def account_type=: (
@@ -60,6 +67,7 @@ module ModernTreasury
60
67
  currency: ModernTreasury::Models::InternalAccountCreateParams::currency,
61
68
  name: String,
62
69
  party_name: String,
70
+ ?account_capabilities: ::Array[ModernTreasury::InternalAccountCreateParams::AccountCapability],
63
71
  ?account_type: ModernTreasury::Models::InternalAccountCreateParams::account_type,
64
72
  ?counterparty_id: String,
65
73
  ?legal_entity_id: String,
@@ -74,6 +82,7 @@ module ModernTreasury
74
82
  currency: ModernTreasury::Models::InternalAccountCreateParams::currency,
75
83
  name: String,
76
84
  party_name: String,
85
+ account_capabilities: ::Array[ModernTreasury::InternalAccountCreateParams::AccountCapability],
77
86
  account_type: ModernTreasury::Models::InternalAccountCreateParams::account_type,
78
87
  counterparty_id: String,
79
88
  legal_entity_id: String,
@@ -94,6 +103,140 @@ module ModernTreasury
94
103
  def self?.values: -> ::Array[ModernTreasury::Models::InternalAccountCreateParams::currency]
95
104
  end
96
105
 
106
+ type account_capability =
107
+ {
108
+ id: String,
109
+ created_at: Time,
110
+ direction: ModernTreasury::Models::transaction_direction,
111
+ discarded_at: Time?,
112
+ identifier: String?,
113
+ live_mode: bool,
114
+ object: String,
115
+ payment_type: ModernTreasury::Models::InternalAccountCreateParams::AccountCapability::payment_type,
116
+ updated_at: Time
117
+ }
118
+
119
+ class AccountCapability < ModernTreasury::Internal::Type::BaseModel
120
+ attr_accessor id: String
121
+
122
+ attr_accessor created_at: Time
123
+
124
+ attr_accessor direction: ModernTreasury::Models::transaction_direction
125
+
126
+ attr_accessor discarded_at: Time?
127
+
128
+ attr_accessor identifier: String?
129
+
130
+ attr_accessor live_mode: bool
131
+
132
+ attr_accessor object: String
133
+
134
+ attr_accessor payment_type: ModernTreasury::Models::InternalAccountCreateParams::AccountCapability::payment_type
135
+
136
+ attr_accessor updated_at: Time
137
+
138
+ def initialize: (
139
+ id: String,
140
+ created_at: Time,
141
+ direction: ModernTreasury::Models::transaction_direction,
142
+ discarded_at: Time?,
143
+ identifier: String?,
144
+ live_mode: bool,
145
+ object: String,
146
+ payment_type: ModernTreasury::Models::InternalAccountCreateParams::AccountCapability::payment_type,
147
+ updated_at: Time
148
+ ) -> void
149
+
150
+ def to_hash: -> {
151
+ id: String,
152
+ created_at: Time,
153
+ direction: ModernTreasury::Models::transaction_direction,
154
+ discarded_at: Time?,
155
+ identifier: String?,
156
+ live_mode: bool,
157
+ object: String,
158
+ payment_type: ModernTreasury::Models::InternalAccountCreateParams::AccountCapability::payment_type,
159
+ updated_at: Time
160
+ }
161
+
162
+ type payment_type =
163
+ :ach
164
+ | :au_becs
165
+ | :bacs
166
+ | :base
167
+ | :book
168
+ | :card
169
+ | :chats
170
+ | :check
171
+ | :cross_border
172
+ | :dk_nets
173
+ | :eft
174
+ | :ethereum
175
+ | :hu_ics
176
+ | :interac
177
+ | :masav
178
+ | :mx_ccen
179
+ | :neft
180
+ | :nics
181
+ | :nz_becs
182
+ | :pl_elixir
183
+ | :polygon
184
+ | :provxchange
185
+ | :ro_sent
186
+ | :rtp
187
+ | :se_bankgirot
188
+ | :sen
189
+ | :sepa
190
+ | :sg_giro
191
+ | :sic
192
+ | :signet
193
+ | :sknbi
194
+ | :solana
195
+ | :wire
196
+ | :zengin
197
+
198
+ module PaymentType
199
+ extend ModernTreasury::Internal::Type::Enum
200
+
201
+ ACH: :ach
202
+ AU_BECS: :au_becs
203
+ BACS: :bacs
204
+ BASE: :base
205
+ BOOK: :book
206
+ CARD: :card
207
+ CHATS: :chats
208
+ CHECK: :check
209
+ CROSS_BORDER: :cross_border
210
+ DK_NETS: :dk_nets
211
+ EFT: :eft
212
+ ETHEREUM: :ethereum
213
+ HU_ICS: :hu_ics
214
+ INTERAC: :interac
215
+ MASAV: :masav
216
+ MX_CCEN: :mx_ccen
217
+ NEFT: :neft
218
+ NICS: :nics
219
+ NZ_BECS: :nz_becs
220
+ PL_ELIXIR: :pl_elixir
221
+ POLYGON: :polygon
222
+ PROVXCHANGE: :provxchange
223
+ RO_SENT: :ro_sent
224
+ RTP: :rtp
225
+ SE_BANKGIROT: :se_bankgirot
226
+ SEN: :sen
227
+ SEPA: :sepa
228
+ SG_GIRO: :sg_giro
229
+ SIC: :sic
230
+ SIGNET: :signet
231
+ SKNBI: :sknbi
232
+ SOLANA: :solana
233
+ WIRE: :wire
234
+ ZENGIN: :zengin
235
+
236
+ def self?.values: -> ::Array[ModernTreasury::Models::InternalAccountCreateParams::AccountCapability::payment_type]
237
+ end
238
+ end
239
+
97
240
  type account_type =
98
241
  :base_wallet
99
242
  | :cash