modern_treasury 0.29.0 → 0.29.1

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 (82) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/models/bulk_request.rb +0 -1
  5. data/lib/modern_treasury/models/bulk_request_create_params.rb +149 -6
  6. data/lib/modern_treasury/models/bulk_request_list_params.rb +0 -1
  7. data/lib/modern_treasury/models/bulk_result.rb +0 -1
  8. data/lib/modern_treasury/models/bulk_result_list_params.rb +0 -1
  9. data/lib/modern_treasury/models/counterparty.rb +8 -1
  10. data/lib/modern_treasury/models/document.rb +5 -4
  11. data/lib/modern_treasury/models/document_create_params.rb +1 -0
  12. data/lib/modern_treasury/models/document_list_params.rb +5 -4
  13. data/lib/modern_treasury/models/external_account.rb +8 -1
  14. data/lib/modern_treasury/models/internal_account_create_params.rb +2 -2
  15. data/lib/modern_treasury/models/internal_account_update_params.rb +21 -1
  16. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +2 -3
  17. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +2 -3
  18. data/lib/modern_treasury/models/invoice_update_params.rb +1 -1
  19. data/lib/modern_treasury/models/payment_order.rb +90 -2
  20. data/lib/modern_treasury/models/payment_order_create_async_params.rb +70 -1
  21. data/lib/modern_treasury/models/payment_order_create_params.rb +71 -1
  22. data/lib/modern_treasury/models/payment_order_update_params.rb +70 -1
  23. data/lib/modern_treasury/models/payment_reference.rb +3 -1
  24. data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -0
  25. data/lib/modern_treasury/models/return_object.rb +1 -1
  26. data/lib/modern_treasury/models/transaction.rb +6 -7
  27. data/lib/modern_treasury/models/transaction_create_params.rb +3 -3
  28. data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
  29. data/lib/modern_treasury/resources/payment_orders.rb +9 -3
  30. data/lib/modern_treasury/version.rb +1 -1
  31. data/rbi/modern_treasury/models/bulk_request.rbi +0 -5
  32. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +224 -11
  33. data/rbi/modern_treasury/models/bulk_request_list_params.rbi +0 -5
  34. data/rbi/modern_treasury/models/bulk_result.rbi +0 -5
  35. data/rbi/modern_treasury/models/bulk_result_list_params.rbi +0 -5
  36. data/rbi/modern_treasury/models/counterparty.rbi +6 -0
  37. data/rbi/modern_treasury/models/document.rbi +11 -6
  38. data/rbi/modern_treasury/models/document_create_params.rbi +5 -0
  39. data/rbi/modern_treasury/models/document_list_params.rbi +11 -6
  40. data/rbi/modern_treasury/models/external_account.rbi +6 -0
  41. data/rbi/modern_treasury/models/internal_account_create_params.rbi +6 -6
  42. data/rbi/modern_treasury/models/internal_account_update_params.rbi +52 -0
  43. data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +4 -6
  44. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +4 -6
  45. data/rbi/modern_treasury/models/invoice_update_params.rbi +2 -2
  46. data/rbi/modern_treasury/models/payment_order.rbi +153 -5
  47. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +109 -0
  48. data/rbi/modern_treasury/models/payment_order_create_params.rbi +114 -0
  49. data/rbi/modern_treasury/models/payment_order_update_params.rbi +109 -0
  50. data/rbi/modern_treasury/models/payment_reference.rbi +15 -5
  51. data/rbi/modern_treasury/models/payment_reference_list_params.rbi +10 -0
  52. data/rbi/modern_treasury/models/return_object.rbi +5 -5
  53. data/rbi/modern_treasury/models/transaction.rbi +9 -14
  54. data/rbi/modern_treasury/models/transaction_create_params.rbi +6 -6
  55. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  56. data/rbi/modern_treasury/resources/internal_accounts.rbi +4 -0
  57. data/rbi/modern_treasury/resources/invoices.rbi +1 -1
  58. data/rbi/modern_treasury/resources/payment_orders.rbi +21 -0
  59. data/rbi/modern_treasury/resources/transactions.rbi +3 -3
  60. data/sig/modern_treasury/models/bulk_request.rbs +0 -2
  61. data/sig/modern_treasury/models/bulk_request_create_params.rbs +94 -2
  62. data/sig/modern_treasury/models/bulk_request_list_params.rbs +0 -2
  63. data/sig/modern_treasury/models/bulk_result.rbs +0 -2
  64. data/sig/modern_treasury/models/bulk_result_list_params.rbs +0 -2
  65. data/sig/modern_treasury/models/counterparty.rbs +5 -0
  66. data/sig/modern_treasury/models/document.rbs +2 -0
  67. data/sig/modern_treasury/models/document_create_params.rbs +2 -0
  68. data/sig/modern_treasury/models/document_list_params.rbs +2 -0
  69. data/sig/modern_treasury/models/external_account.rbs +5 -0
  70. data/sig/modern_treasury/models/internal_account_create_params.rbs +3 -3
  71. data/sig/modern_treasury/models/internal_account_update_params.rbs +20 -1
  72. data/sig/modern_treasury/models/payment_order.rbs +65 -2
  73. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +47 -0
  74. data/sig/modern_treasury/models/payment_order_create_params.rbs +49 -0
  75. data/sig/modern_treasury/models/payment_order_update_params.rbs +47 -0
  76. data/sig/modern_treasury/models/payment_reference.rbs +10 -3
  77. data/sig/modern_treasury/models/payment_reference_list_params.rbs +8 -1
  78. data/sig/modern_treasury/models/return_object.rbs +2 -2
  79. data/sig/modern_treasury/models/transaction.rbs +0 -2
  80. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  81. data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
  82. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20d89043eb349b2e59b81d7a59688622b41f42dc3f5714d425990edd3b68a682
4
- data.tar.gz: f6f31150adcd14edb1d50dd9c03e070a5f363c58672b9e2bbeff61353989c8c7
3
+ metadata.gz: ae6729fdd63ad4a77f5f404911d1dd8c105aa91f8b2db62ac79b68122e2747a5
4
+ data.tar.gz: 4d734e2a29a13aeb43a9db8bacf69ed5e2b538c1b14a9130b9ea70a9401647f6
5
5
  SHA512:
6
- metadata.gz: d8155a7b01dcd215ee593798427901c177fcbe002c908f6270467f770ea100e884c69593d7edba04509311de06590a75b14c436ebe87b6d42547687c793a21bc
7
- data.tar.gz: c0f62e35829db036915c3d59bb90460e02db5facd4582259fb9e2aaade391fab72d8c5af8b0df8906b63d81760ea13019ab695d98a6809036303b26dfc7697dc
6
+ metadata.gz: 42088bba7cd6da125b07c3a2bea8e217d5a4712ad70492b8b5a5567b75b7356c0f9fab575a3b8b6837e0c73ebe8e45d6b85f2be71dca8c7b4aea7c36aca0dfd6
7
+ data.tar.gz: 6c0ebaaba712ff0dfbc88f047fc5aa5e28b361c0c6e49da60f59e1f7253fa5a1a5246bc31e9d330349d5df0eea2133ae900d43e17f3c5661d86b8e9483a0b935
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.29.1](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.29.0...v0.29.1) (2026-08-04)
4
+
5
+
6
+ ### Chores
7
+
8
+ * regenerate SDKs from 0371cfa2f8d48d2b06f62453e50d5b6eb64dccf3 ([0a69ce6](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/0a69ce647a162a99a5351ac40b5beb02f6af6f3a))
9
+ * regenerate SDKs from 2191f6bdc29650bb2462317646fe2689b92241e7 ([b5366bf](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b5366bf7c8122dab024e8e74e30168d342a76bcf))
10
+ * regenerate SDKs from 79394308401c2da912ede2ecfef7a23c8c407e1b ([b86edf7](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/b86edf7c862f31bfc86332da6cd107eb5f40012b))
11
+
3
12
  ## 0.29.0 (2026-07-24)
4
13
 
5
14
  Full Changelog: [v0.28.0...v0.29.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.28.0...v0.29.0)
data/README.md CHANGED
@@ -24,7 +24,7 @@ To use this gem, install via Bundler by adding the following to your application
24
24
  <!-- x-release-please-start-version -->
25
25
 
26
26
  ```ruby
27
- gem "modern_treasury", "~> 0.29.0"
27
+ gem "modern_treasury", "~> 0.29.1"
28
28
  ```
29
29
 
30
30
  <!-- x-release-please-end -->
@@ -130,7 +130,6 @@ module ModernTreasury
130
130
  EXPECTED_PAYMENT = :expected_payment
131
131
  TRANSACTION = :transaction
132
132
  TRANSACTION_LINE_ITEM = :transaction_line_item
133
- ENTITY_LINK = :entity_link
134
133
 
135
134
  # @!method self.values
136
135
  # @return [Array<Symbol>]
@@ -70,7 +70,6 @@ module ModernTreasury
70
70
  EXPECTED_PAYMENT = :expected_payment
71
71
  TRANSACTION = :transaction
72
72
  TRANSACTION_LINE_ITEM = :transaction_line_item
73
- ENTITY_LINK = :entity_link
74
73
 
75
74
  # @!method self.values
76
75
  # @return [Array<Symbol>]
@@ -270,6 +269,17 @@ module ModernTreasury
270
269
  # @return [Boolean, nil]
271
270
  optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
272
271
 
272
+ # @!attribute originating_party_address
273
+ # If present, this address will override the default originating party address
274
+ # used on the payment order. This works across all payment types.
275
+ #
276
+ # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress, nil]
277
+ optional :originating_party_address,
278
+ -> {
279
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress
280
+ },
281
+ nil?: true
282
+
273
283
  # @!attribute originating_party_name
274
284
  # If present, this will replace your default company name on receiver's bank
275
285
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -423,7 +433,7 @@ module ModernTreasury
423
433
  optional :vendor_attributes,
424
434
  ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
425
435
 
426
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil)
436
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil)
427
437
  # Some parameter documentations has been truncated, see
428
438
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest}
429
439
  # for more details.
@@ -470,6 +480,8 @@ module ModernTreasury
470
480
  #
471
481
  # @param nsf_protected [Boolean] A boolean to determine if NSF Protection is enabled for this payment order. Note
472
482
  #
483
+ # @param originating_party_address [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress, nil] If present, this address will override the default originating party address use
484
+ #
473
485
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
474
486
  #
475
487
  # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
@@ -644,6 +656,65 @@ module ModernTreasury
644
656
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
645
657
  end
646
658
 
659
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#originating_party_address
660
+ class OriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
661
+ # @!attribute country
662
+ # Country code conforms to [ISO 3166-1 alpha-2]
663
+ #
664
+ # @return [String, nil]
665
+ optional :country, String, nil?: true
666
+
667
+ # @!attribute line1
668
+ #
669
+ # @return [String, nil]
670
+ optional :line1, String, nil?: true
671
+
672
+ # @!attribute line2
673
+ #
674
+ # @return [String, nil]
675
+ optional :line2, String, nil?: true
676
+
677
+ # @!attribute locality
678
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
679
+ # Francisco).
680
+ #
681
+ # @return [String, nil]
682
+ optional :locality, String, nil?: true
683
+
684
+ # @!attribute postal_code
685
+ # The postal code of the address.
686
+ #
687
+ # @return [String, nil]
688
+ optional :postal_code, String, nil?: true
689
+
690
+ # @!attribute region
691
+ # Region or State. This field is free-form; for US states, we recommend a
692
+ # two-letter code (e.g. CA). Full state names are also accepted.
693
+ #
694
+ # @return [String, nil]
695
+ optional :region, String, nil?: true
696
+
697
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
698
+ # Some parameter documentations has been truncated, see
699
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::OriginatingPartyAddress}
700
+ # for more details.
701
+ #
702
+ # If present, this address will override the default originating party address
703
+ # used on the payment order. This works across all payment types.
704
+ #
705
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
706
+ #
707
+ # @param line1 [String, nil]
708
+ #
709
+ # @param line2 [String, nil]
710
+ #
711
+ # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
712
+ #
713
+ # @param postal_code [String, nil] The postal code of the address.
714
+ #
715
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
716
+ end
717
+
647
718
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
648
719
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
649
720
  # an overnight check rather than standard mail.
@@ -1351,9 +1422,9 @@ module ModernTreasury
1351
1422
 
1352
1423
  # @!attribute vendor_code_type
1353
1424
  # The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`,
1354
- # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dc_bank`, `dwolla`,
1355
- # `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`,
1356
- # `us_bank`, or others.
1425
+ # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dwolla`, `evolve`,
1426
+ # `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`, `us_bank`, or
1427
+ # others.
1357
1428
  #
1358
1429
  # @return [String, nil]
1359
1430
  required :vendor_code_type, String, nil?: true
@@ -1642,6 +1713,17 @@ module ModernTreasury
1642
1713
  # @return [String, nil]
1643
1714
  optional :originating_account_id, String
1644
1715
 
1716
+ # @!attribute originating_party_address
1717
+ # If present, this address will override the default originating party address
1718
+ # used on the payment order. This works across all payment types.
1719
+ #
1720
+ # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress, nil]
1721
+ optional :originating_party_address,
1722
+ -> {
1723
+ ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress
1724
+ },
1725
+ nil?: true
1726
+
1645
1727
  # @!attribute originating_party_name
1646
1728
  # If present, this will replace your default company name on receiver's bank
1647
1729
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -1785,7 +1867,7 @@ module ModernTreasury
1785
1867
  # @return [String, nil]
1786
1868
  optional :ultimate_receiving_party_name, String, nil?: true
1787
1869
 
1788
- # @!method initialize(id: nil, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1870
+ # @!method initialize(id: nil, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1789
1871
  # Some parameter documentations has been truncated, see
1790
1872
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID}
1791
1873
  # for more details.
@@ -1830,6 +1912,8 @@ module ModernTreasury
1830
1912
  #
1831
1913
  # @param originating_account_id [String] The ID of one of your organization's internal accounts.
1832
1914
  #
1915
+ # @param originating_party_address [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress, nil] If present, this address will override the default originating party address use
1916
+ #
1833
1917
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
1834
1918
  #
1835
1919
  # @param priority [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
@@ -2000,6 +2084,65 @@ module ModernTreasury
2000
2084
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
2001
2085
  end
2002
2086
 
2087
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#originating_party_address
2088
+ class OriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
2089
+ # @!attribute country
2090
+ # Country code conforms to [ISO 3166-1 alpha-2]
2091
+ #
2092
+ # @return [String, nil]
2093
+ optional :country, String, nil?: true
2094
+
2095
+ # @!attribute line1
2096
+ #
2097
+ # @return [String, nil]
2098
+ optional :line1, String, nil?: true
2099
+
2100
+ # @!attribute line2
2101
+ #
2102
+ # @return [String, nil]
2103
+ optional :line2, String, nil?: true
2104
+
2105
+ # @!attribute locality
2106
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
2107
+ # Francisco).
2108
+ #
2109
+ # @return [String, nil]
2110
+ optional :locality, String, nil?: true
2111
+
2112
+ # @!attribute postal_code
2113
+ # The postal code of the address.
2114
+ #
2115
+ # @return [String, nil]
2116
+ optional :postal_code, String, nil?: true
2117
+
2118
+ # @!attribute region
2119
+ # Region or State. This field is free-form; for US states, we recommend a
2120
+ # two-letter code (e.g. CA). Full state names are also accepted.
2121
+ #
2122
+ # @return [String, nil]
2123
+ optional :region, String, nil?: true
2124
+
2125
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
2126
+ # Some parameter documentations has been truncated, see
2127
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::OriginatingPartyAddress}
2128
+ # for more details.
2129
+ #
2130
+ # If present, this address will override the default originating party address
2131
+ # used on the payment order. This works across all payment types.
2132
+ #
2133
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
2134
+ #
2135
+ # @param line1 [String, nil]
2136
+ #
2137
+ # @param line2 [String, nil]
2138
+ #
2139
+ # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
2140
+ #
2141
+ # @param postal_code [String, nil] The postal code of the address.
2142
+ #
2143
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
2144
+ end
2145
+
2003
2146
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
2004
2147
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
2005
2148
  # an overnight check rather than standard mail.
@@ -83,7 +83,6 @@ module ModernTreasury
83
83
  EXPECTED_PAYMENT = :expected_payment
84
84
  TRANSACTION = :transaction
85
85
  TRANSACTION_LINE_ITEM = :transaction_line_item
86
- ENTITY_LINK = :entity_link
87
86
 
88
87
  # @!method self.values
89
88
  # @return [Array<Symbol>]
@@ -219,7 +219,6 @@ module ModernTreasury
219
219
  LEDGER_TRANSACTION = :ledger_transaction
220
220
  EXPECTED_PAYMENT = :expected_payment
221
221
  TRANSACTION = :transaction
222
- ENTITY_LINK = :entity_link
223
222
  TRANSACTION_LINE_ITEM = :transaction_line_item
224
223
  BULK_ERROR = :bulk_error
225
224
 
@@ -80,7 +80,6 @@ module ModernTreasury
80
80
  LEDGER_TRANSACTION = :ledger_transaction
81
81
  EXPECTED_PAYMENT = :expected_payment
82
82
  TRANSACTION = :transaction
83
- ENTITY_LINK = :entity_link
84
83
  TRANSACTION_LINE_ITEM = :transaction_line_item
85
84
  BULK_ERROR = :bulk_error
86
85
 
@@ -137,6 +137,11 @@ module ModernTreasury
137
137
  # @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
138
138
  optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
139
139
 
140
+ # @!attribute card_id
141
+ #
142
+ # @return [String, nil]
143
+ optional :card_id, String, nil?: true
144
+
140
145
  # @!attribute contact_details
141
146
  #
142
147
  # @return [Array<ModernTreasury::Models::ContactDetail>, nil]
@@ -231,7 +236,7 @@ module ModernTreasury
231
236
  # @return [Symbol, ModernTreasury::Models::Counterparty::Account::VerificationStatus, nil]
232
237
  optional :verification_status, enum: -> { ModernTreasury::Counterparty::Account::VerificationStatus }
233
238
 
234
- # @!method initialize(id: nil, account_details: nil, account_type: nil, contact_details: nil, created_at: nil, discarded_at: nil, external_id: nil, ledger_account_id: nil, live_mode: nil, metadata: nil, name: nil, object: nil, party_address: nil, party_name: nil, party_type: nil, routing_details: nil, updated_at: nil, verification_source: nil, verification_status: nil)
239
+ # @!method initialize(id: nil, account_details: nil, account_type: nil, card_id: nil, contact_details: nil, created_at: nil, discarded_at: nil, external_id: nil, ledger_account_id: nil, live_mode: nil, metadata: nil, name: nil, object: nil, party_address: nil, party_name: nil, party_type: nil, routing_details: nil, updated_at: nil, verification_source: nil, verification_status: nil)
235
240
  # Some parameter documentations has been truncated, see
236
241
  # {ModernTreasury::Models::Counterparty::Account} for more details.
237
242
  #
@@ -241,6 +246,8 @@ module ModernTreasury
241
246
  #
242
247
  # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
243
248
  #
249
+ # @param card_id [String, nil]
250
+ #
244
251
  # @param contact_details [Array<ModernTreasury::Models::ContactDetail>]
245
252
  #
246
253
  # @param created_at [Time]
@@ -33,8 +33,8 @@ module ModernTreasury
33
33
 
34
34
  # @!attribute documentable_type
35
35
  # The type of the associated object. Currently can be one of `payment_order`,
36
- # `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
37
- # `internal_account`, `decision`, or `external_account`.
36
+ # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
37
+ # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
38
38
  #
39
39
  # @return [Symbol, ModernTreasury::Models::Document::DocumentableType, nil]
40
40
  required :documentable_type, enum: -> { ModernTreasury::Document::DocumentableType }, nil?: true
@@ -94,8 +94,8 @@ module ModernTreasury
94
94
  # @param updated_at [Time]
95
95
 
96
96
  # The type of the associated object. Currently can be one of `payment_order`,
97
- # `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
98
- # `internal_account`, `decision`, or `external_account`.
97
+ # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
98
+ # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
99
99
  #
100
100
  # @see ModernTreasury::Models::Document#documentable_type
101
101
  module DocumentableType
@@ -111,6 +111,7 @@ module ModernTreasury
111
111
  LEGAL_ENTITY = :legal_entity
112
112
  ORGANIZATION = :organization
113
113
  PAYMENT_ORDER = :payment_order
114
+ RETURN = :return
114
115
  TRANSACTION = :transaction
115
116
 
116
117
  # @!method self.values
@@ -53,6 +53,7 @@ module ModernTreasury
53
53
  LEGAL_ENTITY = :legal_entity
54
54
  ORGANIZATION = :organization
55
55
  PAYMENT_ORDER = :payment_order
56
+ RETURN = :return
56
57
  TRANSACTION = :transaction
57
58
 
58
59
  # @!method self.values
@@ -20,8 +20,8 @@ module ModernTreasury
20
20
 
21
21
  # @!attribute documentable_type
22
22
  # The type of the associated object. Currently can be one of `payment_order`,
23
- # `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
24
- # `internal_account`, `decision`, or `external_account`.
23
+ # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
24
+ # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
25
25
  #
26
26
  # @return [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType, nil]
27
27
  optional :documentable_type, enum: -> { ModernTreasury::DocumentListParams::DocumentableType }
@@ -46,8 +46,8 @@ module ModernTreasury
46
46
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
47
47
 
48
48
  # The type of the associated object. Currently can be one of `payment_order`,
49
- # `transaction`, `expected_payment`, `counterparty`, `organization`, `case`,
50
- # `internal_account`, `decision`, or `external_account`.
49
+ # `transaction`, `expected_payment`, `return`, `legal_entity`, `counterparty`,
50
+ # `organization`, `case`, `internal_account`, `decision`, or `external_account`.
51
51
  module DocumentableType
52
52
  extend ModernTreasury::Internal::Type::Enum
53
53
 
@@ -61,6 +61,7 @@ module ModernTreasury
61
61
  LEGAL_ENTITY = :legal_entity
62
62
  ORGANIZATION = :organization
63
63
  PAYMENT_ORDER = :payment_order
64
+ RETURN = :return
64
65
  TRANSACTION = :transaction
65
66
 
66
67
  # @!method self.values
@@ -20,6 +20,11 @@ module ModernTreasury
20
20
  # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
21
21
  required :account_type, enum: -> { ModernTreasury::ExternalAccountType }
22
22
 
23
+ # @!attribute card_id
24
+ #
25
+ # @return [String, nil]
26
+ required :card_id, String, nil?: true
27
+
23
28
  # @!attribute contact_details
24
29
  #
25
30
  # @return [Array<ModernTreasury::Models::ContactDetail>]
@@ -119,7 +124,7 @@ module ModernTreasury
119
124
  # @return [Symbol, ModernTreasury::Models::ExternalAccount::VerificationStatus]
120
125
  required :verification_status, enum: -> { ModernTreasury::ExternalAccount::VerificationStatus }
121
126
 
122
- # @!method initialize(id:, account_details:, account_type:, contact_details:, counterparty_id:, created_at:, discarded_at:, external_id:, ledger_account_id:, live_mode:, metadata:, name:, object:, party_address:, party_name:, party_type:, routing_details:, updated_at:, verification_source:, verification_status:)
127
+ # @!method initialize(id:, account_details:, account_type:, card_id:, contact_details:, counterparty_id:, created_at:, discarded_at:, external_id:, ledger_account_id:, live_mode:, metadata:, name:, object:, party_address:, party_name:, party_type:, routing_details:, updated_at:, verification_source:, verification_status:)
123
128
  # Some parameter documentations has been truncated, see
124
129
  # {ModernTreasury::Models::ExternalAccount} for more details.
125
130
  #
@@ -129,6 +134,8 @@ module ModernTreasury
129
134
  #
130
135
  # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
131
136
  #
137
+ # @param card_id [String, nil]
138
+ #
132
139
  # @param contact_details [Array<ModernTreasury::Models::ContactDetail>]
133
140
  #
134
141
  # @param counterparty_id [String, nil]
@@ -358,10 +358,10 @@ module ModernTreasury
358
358
  module RequestedAccountNumberType
359
359
  extend ModernTreasury::Internal::Type::Enum
360
360
 
361
+ BASE_ADDRESS = :base_address
361
362
  ETHEREUM_ADDRESS = :ethereum_address
362
- SOLANA_ADDRESS = :solana_address
363
363
  POLYGON_ADDRESS = :polygon_address
364
- BASE_ADDRESS = :base_address
364
+ SOLANA_ADDRESS = :solana_address
365
365
 
366
366
  # @!method self.values
367
367
  # @return [Array<Symbol>]
@@ -55,7 +55,14 @@ module ModernTreasury
55
55
  # @return [String, nil]
56
56
  optional :parent_account_id, String
57
57
 
58
- # @!method initialize(id:, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, request_options: {})
58
+ # @!attribute status
59
+ # Requests closure of the internal account. The resulting status may be `closed`
60
+ # for vendors that close synchronously.
61
+ #
62
+ # @return [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::Status, nil]
63
+ optional :status, enum: -> { ModernTreasury::InternalAccountUpdateParams::Status }
64
+
65
+ # @!method initialize(id:, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, status: nil, request_options: {})
59
66
  # Some parameter documentations has been truncated, see
60
67
  # {ModernTreasury::Models::InternalAccountUpdateParams} for more details.
61
68
  #
@@ -75,7 +82,20 @@ module ModernTreasury
75
82
  #
76
83
  # @param parent_account_id [String] The parent internal account for this account.
77
84
  #
85
+ # @param status [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::Status] Requests closure of the internal account. The resulting status may be `closed` f
86
+ #
78
87
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
88
+
89
+ # Requests closure of the internal account. The resulting status may be `closed`
90
+ # for vendors that close synchronously.
91
+ module Status
92
+ extend ModernTreasury::Internal::Type::Enum
93
+
94
+ PENDING_CLOSURE = :pending_closure
95
+
96
+ # @!method self.values
97
+ # @return [Array<Symbol>]
98
+ end
79
99
  end
80
100
  end
81
101
  end
@@ -187,9 +187,8 @@ module ModernTreasury
187
187
 
188
188
  # @!attribute vendor_code_type
189
189
  # The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`,
190
- # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dc_bank`, `dwolla`,
191
- # `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`, or
192
- # `us_bank`.
190
+ # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dwolla`, `evolve`,
191
+ # `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`, or `us_bank`.
193
192
  #
194
193
  # @return [String, nil]
195
194
  required :vendor_code_type, String, nil?: true
@@ -90,9 +90,8 @@ module ModernTreasury
90
90
 
91
91
  # @!attribute vendor_code_type
92
92
  # The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`,
93
- # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dc_bank`, `dwolla`,
94
- # `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`, or
95
- # `us_bank`.
93
+ # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dwolla`, `evolve`,
94
+ # `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`, or `us_bank`.
96
95
  #
97
96
  # @return [String, nil]
98
97
  required :vendor_code_type, String, nil?: true
@@ -174,7 +174,7 @@ module ModernTreasury
174
174
  # @!attribute status
175
175
  # Invoice status must be updated in a `PATCH` request that does not modify any
176
176
  # other invoice attributes. Valid state transitions are `draft` to `unpaid`,
177
- # `draft` or `unpaid` to `voided`, and `draft` or `unpaid` to `paid`.
177
+ # `draft`, `unpaid` or `paid` to `voided`, and `draft` or `unpaid` to `paid`.
178
178
  #
179
179
  # @return [String, nil]
180
180
  optional :status, String