modern_treasury 0.20.0 → 0.21.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/README.md +1 -1
- data/lib/modern_treasury/models/bulk_request_create_params.rb +83 -1
- data/lib/modern_treasury/models/child_legal_entity.rb +1 -0
- data/lib/modern_treasury/models/child_legal_entity_create.rb +10 -1
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +10 -1
- data/lib/modern_treasury/models/currency.rb +4 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +10 -1
- data/lib/modern_treasury/models/invoice_update_params.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -1
- data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order.rb +0 -2
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +80 -1
- data/lib/modern_treasury/models/payment_order_create_params.rb +80 -1
- data/lib/modern_treasury/models/payment_reference.rb +0 -2
- data/lib/modern_treasury/models/return_create_params.rb +11 -1
- data/lib/modern_treasury/models/return_object.rb +0 -2
- data/lib/modern_treasury/models/transaction.rb +0 -1
- data/lib/modern_treasury/resources/invoices.rb +6 -2
- data/lib/modern_treasury/resources/legal_entities.rb +3 -1
- data/lib/modern_treasury/resources/payment_orders.rb +14 -2
- data/lib/modern_treasury/resources/returns.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +149 -3
- data/rbi/modern_treasury/models/child_legal_entity.rbi +2 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +11 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +11 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +11 -0
- data/rbi/modern_treasury/models/currency.rbi +4 -0
- data/rbi/modern_treasury/models/invoice_create_params.rbi +10 -0
- data/rbi/modern_treasury/models/invoice_update_params.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +2 -0
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +11 -0
- data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order.rbi +0 -10
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +146 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +146 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +0 -10
- data/rbi/modern_treasury/models/return_create_params.rbi +21 -0
- data/rbi/modern_treasury/models/return_object.rbi +0 -10
- data/rbi/modern_treasury/models/transaction.rbi +0 -5
- data/rbi/modern_treasury/resources/invoices.rbi +8 -0
- data/rbi/modern_treasury/resources/legal_entities.rbi +2 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +28 -0
- data/rbi/modern_treasury/resources/returns.rbi +6 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +76 -3
- data/sig/modern_treasury/models/child_legal_entity.rbs +2 -1
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +7 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +7 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +7 -1
- data/sig/modern_treasury/models/currency.rbs +8 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +7 -1
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +2 -1
- data/sig/modern_treasury/models/payment_order.rbs +0 -4
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +74 -1
- data/sig/modern_treasury/models/payment_order_create_params.rbs +74 -1
- data/sig/modern_treasury/models/payment_reference.rbs +0 -4
- data/sig/modern_treasury/models/return_create_params.rbs +9 -0
- data/sig/modern_treasury/models/return_object.rbs +0 -4
- data/sig/modern_treasury/models/transaction.rbs +0 -2
- data/sig/modern_treasury/resources/invoices.rbs +2 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +1 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +6 -0
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7bc8fe8dedf0e1d7bee9b5354b96e39e345b116cbe8e6daad1a0758838d6a278
|
|
4
|
+
data.tar.gz: 575a91579f41dc127e2ad86b2bbb5b31ee98313039ca21db7f42aa954d74d989
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 658ca887289552480e91d839429bc16fbdba440621805eb46cb17868ce9190b31922618b8c5add6e47d1848128db2c5b64e935c590d8d9292b80035ed5ca7d7d
|
|
7
|
+
data.tar.gz: 1654ace4628ee1e7734d2d6120b3eaf68ed477331aeeb46a92ba1cfdb3f18394bff92e96e442dfc0ab58da799a1d7cf6b3b5db541303d25a52ac1b1a70e2da04
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.21.0 (2026-03-16)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.20.0...v0.21.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([cdf300d](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/cdf300dd436f82db909ccd0286bc15bccc175987))
|
|
10
|
+
* **api:** api update ([f6a2810](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/f6a28101451174511b63cc94074ed073e39a5eb2))
|
|
11
|
+
* **api:** api update ([0dbb1c7](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/0dbb1c7751696f549b0f3b0dfcfd8f8f061a57fe))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Chores
|
|
15
|
+
|
|
16
|
+
* **internal:** tweak CI branches ([7ca5b02](https://github.com/Modern-Treasury/modern-treasury-ruby/commit/7ca5b021e9028a10631fda4bc935dd9f4ab1d876))
|
|
17
|
+
|
|
3
18
|
## 0.20.0 (2026-03-12)
|
|
4
19
|
|
|
5
20
|
Full Changelog: [v0.19.0...v0.20.0](https://github.com/Modern-Treasury/modern-treasury-ruby/compare/v0.19.0...v0.20.0)
|
data/README.md
CHANGED
|
@@ -371,6 +371,23 @@ module ModernTreasury
|
|
|
371
371
|
# @return [Boolean, nil]
|
|
372
372
|
optional :transaction_monitoring_enabled, ModernTreasury::Internal::Type::Boolean
|
|
373
373
|
|
|
374
|
+
# @!attribute ultimate_originating_account_id
|
|
375
|
+
# The ultimate originating account ID. Can be a `virtual_account` or
|
|
376
|
+
# `internal_account`.
|
|
377
|
+
#
|
|
378
|
+
# @return [String, nil]
|
|
379
|
+
optional :ultimate_originating_account_id, String
|
|
380
|
+
|
|
381
|
+
# @!attribute ultimate_originating_party_address
|
|
382
|
+
# Address of the ultimate originator of the payment order.
|
|
383
|
+
#
|
|
384
|
+
# @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::UltimateOriginatingPartyAddress, nil]
|
|
385
|
+
optional :ultimate_originating_party_address,
|
|
386
|
+
-> {
|
|
387
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::UltimateOriginatingPartyAddress
|
|
388
|
+
},
|
|
389
|
+
nil?: true
|
|
390
|
+
|
|
374
391
|
# @!attribute ultimate_originating_party_identifier
|
|
375
392
|
# Identifier of the ultimate originator of the payment order.
|
|
376
393
|
#
|
|
@@ -395,7 +412,14 @@ module ModernTreasury
|
|
|
395
412
|
# @return [String, nil]
|
|
396
413
|
optional :ultimate_receiving_party_name, String, nil?: true
|
|
397
414
|
|
|
398
|
-
# @!
|
|
415
|
+
# @!attribute vendor_attributes
|
|
416
|
+
# Additional vendor specific fields for this payment. Data must be represented as
|
|
417
|
+
# key-value pairs.
|
|
418
|
+
#
|
|
419
|
+
# @return [Object, nil]
|
|
420
|
+
optional :vendor_attributes, ModernTreasury::Internal::Type::Unknown
|
|
421
|
+
|
|
422
|
+
# @!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)
|
|
399
423
|
# Some parameter documentations has been truncated, see
|
|
400
424
|
# {ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest}
|
|
401
425
|
# for more details.
|
|
@@ -466,6 +490,10 @@ module ModernTreasury
|
|
|
466
490
|
#
|
|
467
491
|
# @param transaction_monitoring_enabled [Boolean] A flag that determines whether a payment order should go through transaction mon
|
|
468
492
|
#
|
|
493
|
+
# @param ultimate_originating_account_id [String] The ultimate originating account ID. Can be a `virtual_account` or `internal_acc
|
|
494
|
+
#
|
|
495
|
+
# @param ultimate_originating_party_address [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::UltimateOriginatingPartyAddress, nil] Address of the ultimate originator of the payment order.
|
|
496
|
+
#
|
|
469
497
|
# @param ultimate_originating_party_identifier [String, nil] Identifier of the ultimate originator of the payment order.
|
|
470
498
|
#
|
|
471
499
|
# @param ultimate_originating_party_name [String, nil] Name of the ultimate originator of the payment order.
|
|
@@ -473,6 +501,8 @@ module ModernTreasury
|
|
|
473
501
|
# @param ultimate_receiving_party_identifier [String, nil] Identifier of the ultimate funds recipient.
|
|
474
502
|
#
|
|
475
503
|
# @param ultimate_receiving_party_name [String, nil] Name of the ultimate funds recipient.
|
|
504
|
+
#
|
|
505
|
+
# @param vendor_attributes [Object] Additional vendor specific fields for this payment. Data must be represented as
|
|
476
506
|
|
|
477
507
|
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
|
478
508
|
# transaction. A `credit` moves money from your account to someone else's. A
|
|
@@ -925,6 +955,58 @@ module ModernTreasury
|
|
|
925
955
|
# @!method self.values
|
|
926
956
|
# @return [Array<Symbol>]
|
|
927
957
|
end
|
|
958
|
+
|
|
959
|
+
# @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#ultimate_originating_party_address
|
|
960
|
+
class UltimateOriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
|
|
961
|
+
# @!attribute country
|
|
962
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
963
|
+
#
|
|
964
|
+
# @return [String, nil]
|
|
965
|
+
optional :country, String
|
|
966
|
+
|
|
967
|
+
# @!attribute line1
|
|
968
|
+
#
|
|
969
|
+
# @return [String, nil]
|
|
970
|
+
optional :line1, String
|
|
971
|
+
|
|
972
|
+
# @!attribute line2
|
|
973
|
+
#
|
|
974
|
+
# @return [String, nil]
|
|
975
|
+
optional :line2, String
|
|
976
|
+
|
|
977
|
+
# @!attribute locality
|
|
978
|
+
# Locality or City.
|
|
979
|
+
#
|
|
980
|
+
# @return [String, nil]
|
|
981
|
+
optional :locality, String
|
|
982
|
+
|
|
983
|
+
# @!attribute postal_code
|
|
984
|
+
# The postal code of the address.
|
|
985
|
+
#
|
|
986
|
+
# @return [String, nil]
|
|
987
|
+
optional :postal_code, String
|
|
988
|
+
|
|
989
|
+
# @!attribute region
|
|
990
|
+
# Region or State.
|
|
991
|
+
#
|
|
992
|
+
# @return [String, nil]
|
|
993
|
+
optional :region, String
|
|
994
|
+
|
|
995
|
+
# @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
|
|
996
|
+
# Address of the ultimate originator of the payment order.
|
|
997
|
+
#
|
|
998
|
+
# @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
|
|
999
|
+
#
|
|
1000
|
+
# @param line1 [String]
|
|
1001
|
+
#
|
|
1002
|
+
# @param line2 [String]
|
|
1003
|
+
#
|
|
1004
|
+
# @param locality [String] Locality or City.
|
|
1005
|
+
#
|
|
1006
|
+
# @param postal_code [String] The postal code of the address.
|
|
1007
|
+
#
|
|
1008
|
+
# @param region [String] Region or State.
|
|
1009
|
+
end
|
|
928
1010
|
end
|
|
929
1011
|
|
|
930
1012
|
class ExpectedPaymentCreateRequest < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -33,6 +33,12 @@ module ModernTreasury
|
|
|
33
33
|
# @return [String, nil]
|
|
34
34
|
optional :citizenship_country, String, nil?: true
|
|
35
35
|
|
|
36
|
+
# @!attribute compliance_details
|
|
37
|
+
# @deprecated
|
|
38
|
+
#
|
|
39
|
+
# @return [Object, nil]
|
|
40
|
+
optional :compliance_details, ModernTreasury::Internal::Type::Unknown, nil?: true
|
|
41
|
+
|
|
36
42
|
# @!attribute connection_id
|
|
37
43
|
# The connection ID for the connection the legal entity is associated with.
|
|
38
44
|
# Defaults to the id of the connection designated with an is_default value of true
|
|
@@ -263,7 +269,7 @@ module ModernTreasury
|
|
|
263
269
|
# @return [String, nil]
|
|
264
270
|
optional :website, String, nil?: true
|
|
265
271
|
|
|
266
|
-
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
272
|
+
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
267
273
|
# Some parameter documentations has been truncated, see
|
|
268
274
|
# {ModernTreasury::Models::ChildLegalEntityCreate} for more details.
|
|
269
275
|
#
|
|
@@ -277,6 +283,8 @@ module ModernTreasury
|
|
|
277
283
|
#
|
|
278
284
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
279
285
|
#
|
|
286
|
+
# @param compliance_details [Object, nil]
|
|
287
|
+
#
|
|
280
288
|
# @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
|
|
281
289
|
#
|
|
282
290
|
# @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
@@ -485,6 +493,7 @@ module ModernTreasury
|
|
|
485
493
|
|
|
486
494
|
ACTIVE = :active
|
|
487
495
|
CLOSED = :closed
|
|
496
|
+
DENIED = :denied
|
|
488
497
|
PENDING = :pending
|
|
489
498
|
SUSPENDED = :suspended
|
|
490
499
|
|
|
@@ -65,6 +65,12 @@ module ModernTreasury
|
|
|
65
65
|
# @return [String, nil]
|
|
66
66
|
optional :citizenship_country, String, nil?: true
|
|
67
67
|
|
|
68
|
+
# @!attribute compliance_details
|
|
69
|
+
# @deprecated
|
|
70
|
+
#
|
|
71
|
+
# @return [Object, nil]
|
|
72
|
+
optional :compliance_details, ModernTreasury::Internal::Type::Unknown, nil?: true
|
|
73
|
+
|
|
68
74
|
# @!attribute connection_id
|
|
69
75
|
# The connection ID for the connection the legal entity is associated with.
|
|
70
76
|
# Defaults to the id of the connection designated with an is_default value of true
|
|
@@ -300,7 +306,7 @@ module ModernTreasury
|
|
|
300
306
|
# @return [String, nil]
|
|
301
307
|
optional :website, String, nil?: true
|
|
302
308
|
|
|
303
|
-
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
309
|
+
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
304
310
|
# Some parameter documentations has been truncated, see
|
|
305
311
|
# {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity} for
|
|
306
312
|
# more details.
|
|
@@ -317,6 +323,8 @@ module ModernTreasury
|
|
|
317
323
|
#
|
|
318
324
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
319
325
|
#
|
|
326
|
+
# @param compliance_details [Object, nil]
|
|
327
|
+
#
|
|
320
328
|
# @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
|
|
321
329
|
#
|
|
322
330
|
# @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
@@ -527,6 +535,7 @@ module ModernTreasury
|
|
|
527
535
|
|
|
528
536
|
ACTIVE = :active
|
|
529
537
|
CLOSED = :closed
|
|
538
|
+
DENIED = :denied
|
|
530
539
|
PENDING = :pending
|
|
531
540
|
SUSPENDED = :suspended
|
|
532
541
|
|
|
@@ -469,6 +469,12 @@ module ModernTreasury
|
|
|
469
469
|
# @return [String, nil]
|
|
470
470
|
optional :citizenship_country, String, nil?: true
|
|
471
471
|
|
|
472
|
+
# @!attribute compliance_details
|
|
473
|
+
# @deprecated
|
|
474
|
+
#
|
|
475
|
+
# @return [Object, nil]
|
|
476
|
+
optional :compliance_details, ModernTreasury::Internal::Type::Unknown, nil?: true
|
|
477
|
+
|
|
472
478
|
# @!attribute connection_id
|
|
473
479
|
# The connection ID for the connection the legal entity is associated with.
|
|
474
480
|
# Defaults to the id of the connection designated with an is_default value of true
|
|
@@ -697,7 +703,7 @@ module ModernTreasury
|
|
|
697
703
|
# @return [String, nil]
|
|
698
704
|
optional :website, String, nil?: true
|
|
699
705
|
|
|
700
|
-
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
706
|
+
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
701
707
|
# Some parameter documentations has been truncated, see
|
|
702
708
|
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity} for more
|
|
703
709
|
# details.
|
|
@@ -714,6 +720,8 @@ module ModernTreasury
|
|
|
714
720
|
#
|
|
715
721
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
716
722
|
#
|
|
723
|
+
# @param compliance_details [Object, nil]
|
|
724
|
+
#
|
|
717
725
|
# @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
|
|
718
726
|
#
|
|
719
727
|
# @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
@@ -922,6 +930,7 @@ module ModernTreasury
|
|
|
922
930
|
|
|
923
931
|
ACTIVE = :active
|
|
924
932
|
CLOSED = :closed
|
|
933
|
+
DENIED = :denied
|
|
925
934
|
PENDING = :pending
|
|
926
935
|
SUSPENDED = :suspended
|
|
927
936
|
|
|
@@ -147,11 +147,13 @@ module ModernTreasury
|
|
|
147
147
|
SGD = :SGD
|
|
148
148
|
SHP = :SHP
|
|
149
149
|
SKK = :SKK
|
|
150
|
+
SLE = :SLE
|
|
150
151
|
SLL = :SLL
|
|
151
152
|
SOS = :SOS
|
|
152
153
|
SRD = :SRD
|
|
153
154
|
SSP = :SSP
|
|
154
155
|
STD = :STD
|
|
156
|
+
STN = :STN
|
|
155
157
|
SVC = :SVC
|
|
156
158
|
SYP = :SYP
|
|
157
159
|
SZL = :SZL
|
|
@@ -188,6 +190,7 @@ module ModernTreasury
|
|
|
188
190
|
XBC = :XBC
|
|
189
191
|
XBD = :XBD
|
|
190
192
|
XCD = :XCD
|
|
193
|
+
XCG = :XCG
|
|
191
194
|
XDR = :XDR
|
|
192
195
|
XFU = :XFU
|
|
193
196
|
XOF = :XOF
|
|
@@ -200,6 +203,7 @@ module ModernTreasury
|
|
|
200
203
|
ZMK = :ZMK
|
|
201
204
|
ZMW = :ZMW
|
|
202
205
|
ZWD = :ZWD
|
|
206
|
+
ZWG = :ZWG
|
|
203
207
|
ZWL = :ZWL
|
|
204
208
|
ZWN = :ZWN
|
|
205
209
|
ZWR = :ZWR
|
|
@@ -92,6 +92,13 @@ module ModernTreasury
|
|
|
92
92
|
# @return [ModernTreasury::Models::InvoiceCreateParams::InvoicerAddress, nil]
|
|
93
93
|
optional :invoicer_address, -> { ModernTreasury::InvoiceCreateParams::InvoicerAddress }, nil?: true
|
|
94
94
|
|
|
95
|
+
# @!attribute invoicer_name
|
|
96
|
+
# The name of the issuer for the invoice. Defaults to the name of the
|
|
97
|
+
# Organization.
|
|
98
|
+
#
|
|
99
|
+
# @return [String, nil]
|
|
100
|
+
optional :invoicer_name, String, nil?: true
|
|
101
|
+
|
|
95
102
|
# @!attribute metadata
|
|
96
103
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
97
104
|
# strings.
|
|
@@ -174,7 +181,7 @@ module ModernTreasury
|
|
|
174
181
|
# @return [String, nil]
|
|
175
182
|
optional :virtual_account_id, String, nil?: true
|
|
176
183
|
|
|
177
|
-
# @!method initialize(counterparty_id:, due_date:, originating_account_id:, auto_advance: nil, contact_details: nil, counterparty_billing_address: nil, counterparty_shipping_address: nil, currency: nil, description: nil, fallback_payment_method: nil, invoice_line_items: nil, invoicer_address: nil, metadata: nil, notification_email_addresses: nil, notifications_enabled: nil, payment_effective_date: nil, payment_method: nil, payment_type: nil, receiving_account_id: nil, recipient_email: nil, recipient_name: nil, remind_after_overdue_days: nil, virtual_account_id: nil, request_options: {})
|
|
184
|
+
# @!method initialize(counterparty_id:, due_date:, originating_account_id:, auto_advance: nil, contact_details: nil, counterparty_billing_address: nil, counterparty_shipping_address: nil, currency: nil, description: nil, fallback_payment_method: nil, invoice_line_items: nil, invoicer_address: nil, invoicer_name: nil, metadata: nil, notification_email_addresses: nil, notifications_enabled: nil, payment_effective_date: nil, payment_method: nil, payment_type: nil, receiving_account_id: nil, recipient_email: nil, recipient_name: nil, remind_after_overdue_days: nil, virtual_account_id: nil, request_options: {})
|
|
178
185
|
# Some parameter documentations has been truncated, see
|
|
179
186
|
# {ModernTreasury::Models::InvoiceCreateParams} for more details.
|
|
180
187
|
#
|
|
@@ -202,6 +209,8 @@ module ModernTreasury
|
|
|
202
209
|
#
|
|
203
210
|
# @param invoicer_address [ModernTreasury::Models::InvoiceCreateParams::InvoicerAddress, nil] The invoice issuer's business address.
|
|
204
211
|
#
|
|
212
|
+
# @param invoicer_name [String, nil] The name of the issuer for the invoice. Defaults to the name of the Organization
|
|
213
|
+
#
|
|
205
214
|
# @param metadata [Hash{Symbol=>String}, nil] Additional data represented as key-value pairs. Both the key and value must be s
|
|
206
215
|
#
|
|
207
216
|
# @param notification_email_addresses [Array<String>, nil] Emails in addition to the counterparty email to send invoice status notification
|
|
@@ -83,6 +83,13 @@ module ModernTreasury
|
|
|
83
83
|
# @return [ModernTreasury::Models::InvoiceUpdateParams::InvoicerAddress, nil]
|
|
84
84
|
optional :invoicer_address, -> { ModernTreasury::InvoiceUpdateParams::InvoicerAddress }, nil?: true
|
|
85
85
|
|
|
86
|
+
# @!attribute invoicer_name
|
|
87
|
+
# The name of the issuer for the invoice. Defaults to the name of the
|
|
88
|
+
# Organization.
|
|
89
|
+
#
|
|
90
|
+
# @return [String, nil]
|
|
91
|
+
optional :invoicer_name, String, nil?: true
|
|
92
|
+
|
|
86
93
|
# @!attribute metadata
|
|
87
94
|
# Additional data represented as key-value pairs. Both the key and value must be
|
|
88
95
|
# strings.
|
|
@@ -179,7 +186,7 @@ module ModernTreasury
|
|
|
179
186
|
# @return [String, nil]
|
|
180
187
|
optional :virtual_account_id, String, nil?: true
|
|
181
188
|
|
|
182
|
-
# @!method initialize(id:, contact_details: nil, counterparty_billing_address: nil, counterparty_id: nil, counterparty_shipping_address: nil, currency: nil, description: nil, due_date: nil, fallback_payment_method: nil, invoice_line_items: nil, invoicer_address: nil, metadata: nil, notification_email_addresses: nil, notifications_enabled: nil, originating_account_id: nil, payment_effective_date: nil, payment_method: nil, payment_type: nil, receiving_account_id: nil, recipient_email: nil, recipient_name: nil, remind_after_overdue_days: nil, status: nil, virtual_account_id: nil, request_options: {})
|
|
189
|
+
# @!method initialize(id:, contact_details: nil, counterparty_billing_address: nil, counterparty_id: nil, counterparty_shipping_address: nil, currency: nil, description: nil, due_date: nil, fallback_payment_method: nil, invoice_line_items: nil, invoicer_address: nil, invoicer_name: nil, metadata: nil, notification_email_addresses: nil, notifications_enabled: nil, originating_account_id: nil, payment_effective_date: nil, payment_method: nil, payment_type: nil, receiving_account_id: nil, recipient_email: nil, recipient_name: nil, remind_after_overdue_days: nil, status: nil, virtual_account_id: nil, request_options: {})
|
|
183
190
|
# Some parameter documentations has been truncated, see
|
|
184
191
|
# {ModernTreasury::Models::InvoiceUpdateParams} for more details.
|
|
185
192
|
#
|
|
@@ -205,6 +212,8 @@ module ModernTreasury
|
|
|
205
212
|
#
|
|
206
213
|
# @param invoicer_address [ModernTreasury::Models::InvoiceUpdateParams::InvoicerAddress, nil] The invoice issuer's business address.
|
|
207
214
|
#
|
|
215
|
+
# @param invoicer_name [String, nil] The name of the issuer for the invoice. Defaults to the name of the Organization
|
|
216
|
+
#
|
|
208
217
|
# @param metadata [Hash{Symbol=>String}, nil] Additional data represented as key-value pairs. Both the key and value must be s
|
|
209
218
|
#
|
|
210
219
|
# @param notification_email_addresses [Array<String>, nil] Emails in addition to the counterparty email to send invoice status notification
|
|
@@ -43,6 +43,12 @@ module ModernTreasury
|
|
|
43
43
|
# @return [String, nil]
|
|
44
44
|
optional :citizenship_country, String, nil?: true
|
|
45
45
|
|
|
46
|
+
# @!attribute compliance_details
|
|
47
|
+
# @deprecated
|
|
48
|
+
#
|
|
49
|
+
# @return [Object, nil]
|
|
50
|
+
optional :compliance_details, ModernTreasury::Internal::Type::Unknown, nil?: true
|
|
51
|
+
|
|
46
52
|
# @!attribute connection_id
|
|
47
53
|
# The connection ID for the connection the legal entity is associated with.
|
|
48
54
|
# Defaults to the id of the connection designated with an is_default value of true
|
|
@@ -265,7 +271,7 @@ module ModernTreasury
|
|
|
265
271
|
# @return [String, nil]
|
|
266
272
|
optional :website, String, nil?: true
|
|
267
273
|
|
|
268
|
-
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
274
|
+
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, status: nil, suffix: nil, third_party_verification: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
|
269
275
|
# Some parameter documentations has been truncated, see
|
|
270
276
|
# {ModernTreasury::Models::LegalEntityCreateParams} for more details.
|
|
271
277
|
#
|
|
@@ -281,6 +287,8 @@ module ModernTreasury
|
|
|
281
287
|
#
|
|
282
288
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
283
289
|
#
|
|
290
|
+
# @param compliance_details [Object, nil]
|
|
291
|
+
#
|
|
284
292
|
# @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
|
|
285
293
|
#
|
|
286
294
|
# @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
|
|
@@ -481,6 +489,7 @@ module ModernTreasury
|
|
|
481
489
|
|
|
482
490
|
ACTIVE = :active
|
|
483
491
|
CLOSED = :closed
|
|
492
|
+
DENIED = :denied
|
|
484
493
|
PENDING = :pending
|
|
485
494
|
SUSPENDED = :suspended
|
|
486
495
|
|
|
@@ -837,8 +837,6 @@ module ModernTreasury
|
|
|
837
837
|
GOLDMAN_SACHS_PAYMENT_REQUEST_ID = :goldman_sachs_payment_request_id
|
|
838
838
|
GOLDMAN_SACHS_REQUEST_ID = :goldman_sachs_request_id
|
|
839
839
|
GOLDMAN_SACHS_UNIQUE_PAYMENT_ID = :goldman_sachs_unique_payment_id
|
|
840
|
-
HIFI_OFFRAMP_ID = :hifi_offramp_id
|
|
841
|
-
HIFI_TRANSFER_ID = :hifi_transfer_id
|
|
842
840
|
INTERAC_MESSAGE_ID = :interac_message_id
|
|
843
841
|
JPMC_CCN = :jpmc_ccn
|
|
844
842
|
JPMC_CLEARING_SYSTEM_REFERENCE = :jpmc_clearing_system_reference
|
|
@@ -269,6 +269,21 @@ module ModernTreasury
|
|
|
269
269
|
# @return [Boolean, nil]
|
|
270
270
|
optional :transaction_monitoring_enabled, ModernTreasury::Internal::Type::Boolean
|
|
271
271
|
|
|
272
|
+
# @!attribute ultimate_originating_account_id
|
|
273
|
+
# The ultimate originating account ID. Can be a `virtual_account` or
|
|
274
|
+
# `internal_account`.
|
|
275
|
+
#
|
|
276
|
+
# @return [String, nil]
|
|
277
|
+
optional :ultimate_originating_account_id, String
|
|
278
|
+
|
|
279
|
+
# @!attribute ultimate_originating_party_address
|
|
280
|
+
# Address of the ultimate originator of the payment order.
|
|
281
|
+
#
|
|
282
|
+
# @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::UltimateOriginatingPartyAddress, nil]
|
|
283
|
+
optional :ultimate_originating_party_address,
|
|
284
|
+
-> { ModernTreasury::PaymentOrderCreateAsyncParams::UltimateOriginatingPartyAddress },
|
|
285
|
+
nil?: true
|
|
286
|
+
|
|
272
287
|
# @!attribute ultimate_originating_party_identifier
|
|
273
288
|
# Identifier of the ultimate originator of the payment order.
|
|
274
289
|
#
|
|
@@ -293,7 +308,14 @@ module ModernTreasury
|
|
|
293
308
|
# @return [String, nil]
|
|
294
309
|
optional :ultimate_receiving_party_name, String, nil?: true
|
|
295
310
|
|
|
296
|
-
# @!
|
|
311
|
+
# @!attribute vendor_attributes
|
|
312
|
+
# Additional vendor specific fields for this payment. Data must be represented as
|
|
313
|
+
# key-value pairs.
|
|
314
|
+
#
|
|
315
|
+
# @return [Object, nil]
|
|
316
|
+
optional :vendor_attributes, ModernTreasury::Internal::Type::Unknown
|
|
317
|
+
|
|
318
|
+
# @!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, request_options: {})
|
|
297
319
|
# Some parameter documentations has been truncated, see
|
|
298
320
|
# {ModernTreasury::Models::PaymentOrderCreateAsyncParams} for more details.
|
|
299
321
|
#
|
|
@@ -363,6 +385,10 @@ module ModernTreasury
|
|
|
363
385
|
#
|
|
364
386
|
# @param transaction_monitoring_enabled [Boolean] A flag that determines whether a payment order should go through transaction mon
|
|
365
387
|
#
|
|
388
|
+
# @param ultimate_originating_account_id [String] The ultimate originating account ID. Can be a `virtual_account` or `internal_acc
|
|
389
|
+
#
|
|
390
|
+
# @param ultimate_originating_party_address [ModernTreasury::Models::PaymentOrderCreateAsyncParams::UltimateOriginatingPartyAddress, nil] Address of the ultimate originator of the payment order.
|
|
391
|
+
#
|
|
366
392
|
# @param ultimate_originating_party_identifier [String, nil] Identifier of the ultimate originator of the payment order.
|
|
367
393
|
#
|
|
368
394
|
# @param ultimate_originating_party_name [String, nil] Name of the ultimate originator of the payment order.
|
|
@@ -371,6 +397,8 @@ module ModernTreasury
|
|
|
371
397
|
#
|
|
372
398
|
# @param ultimate_receiving_party_name [String, nil] Name of the ultimate funds recipient.
|
|
373
399
|
#
|
|
400
|
+
# @param vendor_attributes [Object] Additional vendor specific fields for this payment. Data must be represented as
|
|
401
|
+
#
|
|
374
402
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
375
403
|
|
|
376
404
|
# One of `credit`, `debit`. Describes the direction money is flowing in the
|
|
@@ -799,6 +827,57 @@ module ModernTreasury
|
|
|
799
827
|
# @!method self.values
|
|
800
828
|
# @return [Array<Symbol>]
|
|
801
829
|
end
|
|
830
|
+
|
|
831
|
+
class UltimateOriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
|
|
832
|
+
# @!attribute country
|
|
833
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
834
|
+
#
|
|
835
|
+
# @return [String, nil]
|
|
836
|
+
optional :country, String
|
|
837
|
+
|
|
838
|
+
# @!attribute line1
|
|
839
|
+
#
|
|
840
|
+
# @return [String, nil]
|
|
841
|
+
optional :line1, String
|
|
842
|
+
|
|
843
|
+
# @!attribute line2
|
|
844
|
+
#
|
|
845
|
+
# @return [String, nil]
|
|
846
|
+
optional :line2, String
|
|
847
|
+
|
|
848
|
+
# @!attribute locality
|
|
849
|
+
# Locality or City.
|
|
850
|
+
#
|
|
851
|
+
# @return [String, nil]
|
|
852
|
+
optional :locality, String
|
|
853
|
+
|
|
854
|
+
# @!attribute postal_code
|
|
855
|
+
# The postal code of the address.
|
|
856
|
+
#
|
|
857
|
+
# @return [String, nil]
|
|
858
|
+
optional :postal_code, String
|
|
859
|
+
|
|
860
|
+
# @!attribute region
|
|
861
|
+
# Region or State.
|
|
862
|
+
#
|
|
863
|
+
# @return [String, nil]
|
|
864
|
+
optional :region, String
|
|
865
|
+
|
|
866
|
+
# @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
|
|
867
|
+
# Address of the ultimate originator of the payment order.
|
|
868
|
+
#
|
|
869
|
+
# @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
|
|
870
|
+
#
|
|
871
|
+
# @param line1 [String]
|
|
872
|
+
#
|
|
873
|
+
# @param line2 [String]
|
|
874
|
+
#
|
|
875
|
+
# @param locality [String] Locality or City.
|
|
876
|
+
#
|
|
877
|
+
# @param postal_code [String] The postal code of the address.
|
|
878
|
+
#
|
|
879
|
+
# @param region [String] Region or State.
|
|
880
|
+
end
|
|
802
881
|
end
|
|
803
882
|
end
|
|
804
883
|
end
|