modern_treasury 0.5.0 → 0.6.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 (27) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/models/bulk_request_create_params.rb +108 -2
  5. data/lib/modern_treasury/models/counterparty_create_params.rb +2 -0
  6. data/lib/modern_treasury/models/line_item.rb +55 -1
  7. data/lib/modern_treasury/models/payment_order.rb +52 -1
  8. data/lib/modern_treasury/models/payment_order_create_async_params.rb +51 -1
  9. data/lib/modern_treasury/models/payment_order_create_params.rb +50 -1
  10. data/lib/modern_treasury/models/payment_order_update_params.rb +50 -1
  11. data/lib/modern_treasury/resources/payment_orders.rb +15 -3
  12. data/lib/modern_treasury/version.rb +1 -1
  13. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +156 -0
  14. data/rbi/modern_treasury/models/line_item.rbi +69 -0
  15. data/rbi/modern_treasury/models/payment_order.rbi +69 -0
  16. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +76 -0
  17. data/rbi/modern_treasury/models/payment_order_create_params.rbi +73 -0
  18. data/rbi/modern_treasury/models/payment_order_update_params.rbi +73 -0
  19. data/rbi/modern_treasury/resources/payment_orders.rbi +21 -0
  20. data/sig/modern_treasury/models/bulk_request_create_params.rbs +52 -0
  21. data/sig/modern_treasury/models/line_item.rbs +22 -0
  22. data/sig/modern_treasury/models/payment_order.rbs +22 -0
  23. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +26 -0
  24. data/sig/modern_treasury/models/payment_order_create_params.rbs +26 -0
  25. data/sig/modern_treasury/models/payment_order_update_params.rbs +26 -0
  26. data/sig/modern_treasury/resources/payment_orders.rbs +6 -0
  27. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f19540ad554c95c1363daa42455b55b89fb3645d92669ee31de7925afbfb4f31
4
- data.tar.gz: 93d1d05462f0d3ff98d499b7e07239c32ef0622a32e9f31fcd7c880bb9aa71d0
3
+ metadata.gz: 2f5ca04a82e3c5557fec0447900272e8ba64ada8767479b153e7324808f12840
4
+ data.tar.gz: d38c2cd97743067d0d03fe5becf94af79e573e47205d286f6314f2976ec3d7f1
5
5
  SHA512:
6
- metadata.gz: 03d18a809950a0aefa4dda2d741b68debe4fe701a0fab8e3b57bcbe27b3fdc8c6fcdd1b1b383155cea5fadb4c94f326dda5d0537729b30c9ecfc9200a47a8ba2
7
- data.tar.gz: 55bb3d874d986c0f1c2f36a8041410559f5aa2be9cd149e9f60704380a373c3d779aba43755fcfcbabf83f474a399209e88cec8d4c7bf81d11bc7b156d21bf62
6
+ metadata.gz: 6d733d8bf4a0dbba49c2cac2b7e556d349c7ac492e4baa43501328f3cec3cecc3e801279d657d7d7dc9befe05de00b8cb02e736df40a3eb9d3ea580878735820
7
+ data.tar.gz: fc38b14a011e9ca3889589caa11236be20a3844b992b53ec60cbc3f92ec7059549f7c0d2e738a0607ceaa0f823f27ec77aff8fede573ecdfcd5ceefc7815fc1b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0 (2025-09-11)
4
+
5
+ Full Changelog: [v0.5.0...v0.6.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.5.0...v0.6.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([3a6356b](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/3a6356b922c0815d7bfa6a4e542b38d13806face))
10
+
3
11
  ## 0.5.0 (2025-09-05)
4
12
 
5
13
  Full Changelog: [v0.4.0...v0.5.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.4.0...v0.5.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "modern_treasury", "~> 0.5.0"
18
+ gem "modern_treasury", "~> 0.6.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -131,6 +131,13 @@ module ModernTreasury
131
131
  # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
132
132
  required :type, enum: -> { ModernTreasury::PaymentOrderType }
133
133
 
134
+ # @!attribute accounting
135
+ # @deprecated
136
+ #
137
+ # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting, nil]
138
+ optional :accounting,
139
+ -> { ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting }
140
+
134
141
  # @!attribute accounting_category_id
135
142
  # @deprecated
136
143
  #
@@ -140,6 +147,15 @@ module ModernTreasury
140
147
  # @return [String, nil]
141
148
  optional :accounting_category_id, String, nil?: true
142
149
 
150
+ # @!attribute accounting_ledger_class_id
151
+ # @deprecated
152
+ #
153
+ # The ID of one of your accounting ledger classes. Note that these will only be
154
+ # accessible if your accounting system has been connected.
155
+ #
156
+ # @return [String, nil]
157
+ optional :accounting_ledger_class_id, String, nil?: true
158
+
143
159
  # @!attribute charge_bearer
144
160
  # The party that will pay the fees for the payment order. See
145
161
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
@@ -364,7 +380,7 @@ module ModernTreasury
364
380
  # @return [String, nil]
365
381
  optional :ultimate_receiving_party_name, String, nil?: true
366
382
 
367
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
383
+ # @!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, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
368
384
  # Some parameter documentations has been truncated, see
369
385
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest}
370
386
  # for more details.
@@ -377,8 +393,12 @@ module ModernTreasury
377
393
  #
378
394
  # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
379
395
  #
396
+ # @param accounting [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting]
397
+ #
380
398
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
381
399
  #
400
+ # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
401
+ #
382
402
  # @param charge_bearer [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
383
403
  #
384
404
  # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
@@ -451,6 +471,39 @@ module ModernTreasury
451
471
  # @return [Array<Symbol>]
452
472
  end
453
473
 
474
+ # @deprecated
475
+ #
476
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#accounting
477
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
478
+ # @!attribute account_id
479
+ # @deprecated
480
+ #
481
+ # The ID of one of your accounting categories. Note that these will only be
482
+ # accessible if your accounting system has been connected.
483
+ #
484
+ # @return [String, nil]
485
+ optional :account_id, String, nil?: true
486
+
487
+ # @!attribute class_id
488
+ # @deprecated
489
+ #
490
+ # The ID of one of the class objects in your accounting system. Class objects
491
+ # track segments of your business independent of client or project. Note that
492
+ # these will only be accessible if your accounting system has been connected.
493
+ #
494
+ # @return [String, nil]
495
+ optional :class_id, String, nil?: true
496
+
497
+ # @!method initialize(account_id: nil, class_id: nil)
498
+ # Some parameter documentations has been truncated, see
499
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting}
500
+ # for more details.
501
+ #
502
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
503
+ #
504
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
505
+ end
506
+
454
507
  # The party that will pay the fees for the payment order. See
455
508
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
456
509
  # differences between the options.
@@ -1256,6 +1309,13 @@ module ModernTreasury
1256
1309
  # @return [String, nil]
1257
1310
  optional :id, String
1258
1311
 
1312
+ # @!attribute accounting
1313
+ # @deprecated
1314
+ #
1315
+ # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting, nil]
1316
+ optional :accounting,
1317
+ -> { ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting }
1318
+
1259
1319
  # @!attribute accounting_category_id
1260
1320
  # @deprecated
1261
1321
  #
@@ -1265,6 +1325,15 @@ module ModernTreasury
1265
1325
  # @return [String, nil]
1266
1326
  optional :accounting_category_id, String, nil?: true
1267
1327
 
1328
+ # @!attribute accounting_ledger_class_id
1329
+ # @deprecated
1330
+ #
1331
+ # The ID of one of your accounting ledger classes. Note that these will only be
1332
+ # accessible if your accounting system has been connected.
1333
+ #
1334
+ # @return [String, nil]
1335
+ optional :accounting_ledger_class_id, String, nil?: true
1336
+
1268
1337
  # @!attribute amount
1269
1338
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
1270
1339
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
@@ -1518,15 +1587,19 @@ module ModernTreasury
1518
1587
  # @return [String, nil]
1519
1588
  optional :ultimate_receiving_party_name, String, nil?: true
1520
1589
 
1521
- # @!method initialize(id: nil, accounting_category_id: nil, amount: nil, charge_bearer: nil, counterparty_id: nil, currency: nil, description: nil, direction: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1590
+ # @!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, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_account_id: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, status: nil, subtype: nil, type: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil)
1522
1591
  # Some parameter documentations has been truncated, see
1523
1592
  # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID}
1524
1593
  # for more details.
1525
1594
  #
1526
1595
  # @param id [String]
1527
1596
  #
1597
+ # @param accounting [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting]
1598
+ #
1528
1599
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
1529
1600
  #
1601
+ # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
1602
+ #
1530
1603
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
1531
1604
  #
1532
1605
  # @param charge_bearer [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
@@ -1589,6 +1662,39 @@ module ModernTreasury
1589
1662
  #
1590
1663
  # @param ultimate_receiving_party_name [String, nil] This represents the identifier by which the merchant is known to the person init
1591
1664
 
1665
+ # @deprecated
1666
+ #
1667
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#accounting
1668
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
1669
+ # @!attribute account_id
1670
+ # @deprecated
1671
+ #
1672
+ # The ID of one of your accounting categories. Note that these will only be
1673
+ # accessible if your accounting system has been connected.
1674
+ #
1675
+ # @return [String, nil]
1676
+ optional :account_id, String, nil?: true
1677
+
1678
+ # @!attribute class_id
1679
+ # @deprecated
1680
+ #
1681
+ # The ID of one of the class objects in your accounting system. Class objects
1682
+ # track segments of your business independent of client or project. Note that
1683
+ # these will only be accessible if your accounting system has been connected.
1684
+ #
1685
+ # @return [String, nil]
1686
+ optional :class_id, String, nil?: true
1687
+
1688
+ # @!method initialize(account_id: nil, class_id: nil)
1689
+ # Some parameter documentations has been truncated, see
1690
+ # {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting}
1691
+ # for more details.
1692
+ #
1693
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
1694
+ #
1695
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
1696
+ end
1697
+
1592
1698
  # The party that will pay the fees for the payment order. See
1593
1699
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
1594
1700
  # differences between the options.
@@ -20,6 +20,7 @@ module ModernTreasury
20
20
  optional :body_external_id, String, api_name: :external_id, nil?: true
21
21
 
22
22
  # @!attribute accounting
23
+ # @deprecated
23
24
  #
24
25
  # @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting, nil]
25
26
  optional :accounting, -> { ModernTreasury::CounterpartyCreateParams::Accounting }
@@ -113,6 +114,7 @@ module ModernTreasury
113
114
  #
114
115
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
115
116
 
117
+ # @deprecated
116
118
  class Accounting < ModernTreasury::Internal::Type::BaseModel
117
119
  # @!attribute type
118
120
  # An optional type to auto-sync the counterparty to your ledger. Either `customer`
@@ -9,13 +9,31 @@ module ModernTreasury
9
9
  # @return [String]
10
10
  required :id, String
11
11
 
12
+ # @!attribute accounting
13
+ # @deprecated
14
+ #
15
+ # @return [ModernTreasury::Models::LineItem::Accounting]
16
+ required :accounting, -> { ModernTreasury::LineItem::Accounting }
17
+
12
18
  # @!attribute accounting_category_id
19
+ # @deprecated
20
+ #
13
21
  # The ID of one of your accounting categories. Note that these will only be
14
22
  # accessible if your accounting system has been connected.
15
23
  #
16
24
  # @return [String, nil]
17
25
  required :accounting_category_id, String, nil?: true
18
26
 
27
+ # @!attribute accounting_ledger_class_id
28
+ # @deprecated
29
+ #
30
+ # The ID of one of the class objects in your accounting system. Class objects
31
+ # track segments of your business independent of client or project. Note that
32
+ # these will only be accessible if your accounting system has been connected.
33
+ #
34
+ # @return [String, nil]
35
+ required :accounting_ledger_class_id, String, nil?: true
36
+
19
37
  # @!attribute amount
20
38
  # Value in specified currency's smallest unit. e.g. $10 would be represented
21
39
  # as 1000.
@@ -70,14 +88,18 @@ module ModernTreasury
70
88
  # @return [Time]
71
89
  required :updated_at, Time
72
90
 
73
- # @!method initialize(id:, accounting_category_id:, amount:, created_at:, description:, itemizable_id:, itemizable_type:, live_mode:, metadata:, object:, updated_at:)
91
+ # @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, created_at:, description:, itemizable_id:, itemizable_type:, live_mode:, metadata:, object:, updated_at:)
74
92
  # Some parameter documentations has been truncated, see
75
93
  # {ModernTreasury::Models::LineItem} for more details.
76
94
  #
77
95
  # @param id [String]
78
96
  #
97
+ # @param accounting [ModernTreasury::Models::LineItem::Accounting]
98
+ #
79
99
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
80
100
  #
101
+ # @param accounting_ledger_class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
102
+ #
81
103
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
82
104
  #
83
105
  # @param created_at [Time]
@@ -96,6 +118,38 @@ module ModernTreasury
96
118
  #
97
119
  # @param updated_at [Time]
98
120
 
121
+ # @deprecated
122
+ #
123
+ # @see ModernTreasury::Models::LineItem#accounting
124
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
125
+ # @!attribute account_id
126
+ # @deprecated
127
+ #
128
+ # The ID of one of your accounting categories. Note that these will only be
129
+ # accessible if your accounting system has been connected.
130
+ #
131
+ # @return [String, nil]
132
+ optional :account_id, String, nil?: true
133
+
134
+ # @!attribute class_id
135
+ # @deprecated
136
+ #
137
+ # The ID of one of the class objects in your accounting system. Class objects
138
+ # track segments of your business independent of client or project. Note that
139
+ # these will only be accessible if your accounting system has been connected.
140
+ #
141
+ # @return [String, nil]
142
+ optional :class_id, String, nil?: true
143
+
144
+ # @!method initialize(account_id: nil, class_id: nil)
145
+ # Some parameter documentations has been truncated, see
146
+ # {ModernTreasury::Models::LineItem::Accounting} for more details.
147
+ #
148
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
149
+ #
150
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
151
+ end
152
+
99
153
  # One of `payment_orders` or `expected_payments`.
100
154
  #
101
155
  # @see ModernTreasury::Models::LineItem#itemizable_type
@@ -9,6 +9,12 @@ module ModernTreasury
9
9
  # @return [String]
10
10
  required :id, String
11
11
 
12
+ # @!attribute accounting
13
+ # @deprecated
14
+ #
15
+ # @return [ModernTreasury::Models::PaymentOrder::Accounting]
16
+ required :accounting, -> { ModernTreasury::PaymentOrder::Accounting }
17
+
12
18
  # @!attribute accounting_category_id
13
19
  # @deprecated
14
20
  #
@@ -18,6 +24,15 @@ module ModernTreasury
18
24
  # @return [String, nil]
19
25
  required :accounting_category_id, String, nil?: true
20
26
 
27
+ # @!attribute accounting_ledger_class_id
28
+ # @deprecated
29
+ #
30
+ # The ID of one of your accounting ledger classes. Note that these will only be
31
+ # accessible if your accounting system has been connected.
32
+ #
33
+ # @return [String, nil]
34
+ required :accounting_ledger_class_id, String, nil?: true
35
+
21
36
  # @!attribute amount
22
37
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
23
38
  # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
@@ -328,14 +343,18 @@ module ModernTreasury
328
343
  # @return [String, nil]
329
344
  required :vendor_failure_reason, String, nil?: true
330
345
 
331
- # @!method initialize(id:, accounting_category_id:, amount:, charge_bearer:, counterparty_id:, created_at:, currency:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
346
+ # @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, charge_bearer:, counterparty_id:, created_at:, currency:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
332
347
  # Some parameter documentations has been truncated, see
333
348
  # {ModernTreasury::Models::PaymentOrder} for more details.
334
349
  #
335
350
  # @param id [String]
336
351
  #
352
+ # @param accounting [ModernTreasury::Models::PaymentOrder::Accounting]
353
+ #
337
354
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
338
355
  #
356
+ # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
357
+ #
339
358
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
340
359
  #
341
360
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrder::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
@@ -424,6 +443,38 @@ module ModernTreasury
424
443
  #
425
444
  # @param vendor_failure_reason [String, nil] This field will be populated if a vendor failure occurs. Logic shouldn't be buil
426
445
 
446
+ # @deprecated
447
+ #
448
+ # @see ModernTreasury::Models::PaymentOrder#accounting
449
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
450
+ # @!attribute account_id
451
+ # @deprecated
452
+ #
453
+ # The ID of one of your accounting categories. Note that these will only be
454
+ # accessible if your accounting system has been connected.
455
+ #
456
+ # @return [String, nil]
457
+ optional :account_id, String, nil?: true
458
+
459
+ # @!attribute class_id
460
+ # @deprecated
461
+ #
462
+ # The ID of one of the class objects in your accounting system. Class objects
463
+ # track segments of your business independent of client or project. Note that
464
+ # these will only be accessible if your accounting system has been connected.
465
+ #
466
+ # @return [String, nil]
467
+ optional :class_id, String, nil?: true
468
+
469
+ # @!method initialize(account_id: nil, class_id: nil)
470
+ # Some parameter documentations has been truncated, see
471
+ # {ModernTreasury::Models::PaymentOrder::Accounting} for more details.
472
+ #
473
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
474
+ #
475
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
476
+ end
477
+
427
478
  # The party that will pay the fees for the payment order. See
428
479
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
429
480
  # differences between the options.
@@ -37,6 +37,12 @@ module ModernTreasury
37
37
  # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
38
38
  required :type, enum: -> { ModernTreasury::PaymentOrderType }
39
39
 
40
+ # @!attribute accounting
41
+ # @deprecated
42
+ #
43
+ # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting, nil]
44
+ optional :accounting, -> { ModernTreasury::PaymentOrderCreateAsyncParams::Accounting }
45
+
40
46
  # @!attribute accounting_category_id
41
47
  # @deprecated
42
48
  #
@@ -46,6 +52,15 @@ module ModernTreasury
46
52
  # @return [String, nil]
47
53
  optional :accounting_category_id, String, nil?: true
48
54
 
55
+ # @!attribute accounting_ledger_class_id
56
+ # @deprecated
57
+ #
58
+ # The ID of one of your accounting ledger classes. Note that these will only be
59
+ # accessible if your accounting system has been connected.
60
+ #
61
+ # @return [String, nil]
62
+ optional :accounting_ledger_class_id, String, nil?: true
63
+
49
64
  # @!attribute charge_bearer
50
65
  # The party that will pay the fees for the payment order. See
51
66
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
@@ -263,7 +278,7 @@ module ModernTreasury
263
278
  # @return [String, nil]
264
279
  optional :ultimate_receiving_party_name, String, nil?: true
265
280
 
266
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
281
+ # @!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, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
267
282
  # Some parameter documentations has been truncated, see
268
283
  # {ModernTreasury::Models::PaymentOrderCreateAsyncParams} for more details.
269
284
  #
@@ -275,8 +290,12 @@ module ModernTreasury
275
290
  #
276
291
  # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
277
292
  #
293
+ # @param accounting [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting]
294
+ #
278
295
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
279
296
  #
297
+ # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
298
+ #
280
299
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
281
300
  #
282
301
  # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
@@ -349,6 +368,37 @@ module ModernTreasury
349
368
  # @return [Array<Symbol>]
350
369
  end
351
370
 
371
+ # @deprecated
372
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
373
+ # @!attribute account_id
374
+ # @deprecated
375
+ #
376
+ # The ID of one of your accounting categories. Note that these will only be
377
+ # accessible if your accounting system has been connected.
378
+ #
379
+ # @return [String, nil]
380
+ optional :account_id, String, nil?: true
381
+
382
+ # @!attribute class_id
383
+ # @deprecated
384
+ #
385
+ # The ID of one of the class objects in your accounting system. Class objects
386
+ # track segments of your business independent of client or project. Note that
387
+ # these will only be accessible if your accounting system has been connected.
388
+ #
389
+ # @return [String, nil]
390
+ optional :class_id, String, nil?: true
391
+
392
+ # @!method initialize(account_id: nil, class_id: nil)
393
+ # Some parameter documentations has been truncated, see
394
+ # {ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting} for more
395
+ # details.
396
+ #
397
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
398
+ #
399
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
400
+ end
401
+
352
402
  # The party that will pay the fees for the payment order. See
353
403
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
354
404
  # differences between the options.
@@ -37,6 +37,12 @@ module ModernTreasury
37
37
  # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
38
38
  required :type, enum: -> { ModernTreasury::PaymentOrderType }
39
39
 
40
+ # @!attribute accounting
41
+ # @deprecated
42
+ #
43
+ # @return [ModernTreasury::Models::PaymentOrderCreateParams::Accounting, nil]
44
+ optional :accounting, -> { ModernTreasury::PaymentOrderCreateParams::Accounting }
45
+
40
46
  # @!attribute accounting_category_id
41
47
  # @deprecated
42
48
  #
@@ -46,6 +52,15 @@ module ModernTreasury
46
52
  # @return [String, nil]
47
53
  optional :accounting_category_id, String, nil?: true
48
54
 
55
+ # @!attribute accounting_ledger_class_id
56
+ # @deprecated
57
+ #
58
+ # The ID of one of your accounting ledger classes. Note that these will only be
59
+ # accessible if your accounting system has been connected.
60
+ #
61
+ # @return [String, nil]
62
+ optional :accounting_ledger_class_id, String, nil?: true
63
+
49
64
  # @!attribute charge_bearer
50
65
  # The party that will pay the fees for the payment order. See
51
66
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
@@ -269,7 +284,7 @@ module ModernTreasury
269
284
  # @return [String, nil]
270
285
  optional :ultimate_receiving_party_name, String, nil?: true
271
286
 
272
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting_category_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
287
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, request_options: {})
273
288
  # Some parameter documentations has been truncated, see
274
289
  # {ModernTreasury::Models::PaymentOrderCreateParams} for more details.
275
290
  #
@@ -281,8 +296,12 @@ module ModernTreasury
281
296
  #
282
297
  # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
283
298
  #
299
+ # @param accounting [ModernTreasury::Models::PaymentOrderCreateParams::Accounting]
300
+ #
284
301
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
285
302
  #
303
+ # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
304
+ #
286
305
  # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. See https://docs.modernt
287
306
  #
288
307
  # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
@@ -357,6 +376,36 @@ module ModernTreasury
357
376
  # @return [Array<Symbol>]
358
377
  end
359
378
 
379
+ # @deprecated
380
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
381
+ # @!attribute account_id
382
+ # @deprecated
383
+ #
384
+ # The ID of one of your accounting categories. Note that these will only be
385
+ # accessible if your accounting system has been connected.
386
+ #
387
+ # @return [String, nil]
388
+ optional :account_id, String, nil?: true
389
+
390
+ # @!attribute class_id
391
+ # @deprecated
392
+ #
393
+ # The ID of one of the class objects in your accounting system. Class objects
394
+ # track segments of your business independent of client or project. Note that
395
+ # these will only be accessible if your accounting system has been connected.
396
+ #
397
+ # @return [String, nil]
398
+ optional :class_id, String, nil?: true
399
+
400
+ # @!method initialize(account_id: nil, class_id: nil)
401
+ # Some parameter documentations has been truncated, see
402
+ # {ModernTreasury::Models::PaymentOrderCreateParams::Accounting} for more details.
403
+ #
404
+ # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
405
+ #
406
+ # @param class_id [String, nil] The ID of one of the class objects in your accounting system. Class objects trac
407
+ end
408
+
360
409
  # The party that will pay the fees for the payment order. See
361
410
  # https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
362
411
  # differences between the options.