modern_treasury 0.26.0 → 0.28.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 +71 -0
- data/README.md +4 -4
- data/lib/modern_treasury/client.rb +14 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +5 -0
- data/lib/modern_treasury/internal/util.rb +3 -1
- data/lib/modern_treasury/models/bulk_request_create_params.rb +65 -202
- data/lib/modern_treasury/models/child_legal_entity.rb +121 -3
- data/lib/modern_treasury/models/child_legal_entity_create.rb +35 -1
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +38 -1
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
- data/lib/modern_treasury/models/counterparty_create_params.rb +38 -14
- data/lib/modern_treasury/models/currency.rb +0 -3
- data/lib/modern_treasury/models/document.rb +1 -73
- data/lib/modern_treasury/models/document_create_params.rb +11 -11
- data/lib/modern_treasury/models/document_list_params.rb +11 -11
- data/lib/modern_treasury/models/expected_payment.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -16
- data/lib/modern_treasury/models/expected_payment_type.rb +1 -13
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +0 -13
- data/lib/modern_treasury/models/external_account_verify_params.rb +0 -11
- data/lib/modern_treasury/models/external_account_verify_response.rb +0 -11
- data/lib/modern_treasury/models/hold_list_params.rb +8 -11
- data/lib/modern_treasury/models/identification_create_request.rb +75 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +15 -14
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +11 -7
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +15 -12
- data/lib/modern_treasury/models/internal_account.rb +12 -12
- data/lib/modern_treasury/models/internal_account_create_params.rb +37 -33
- data/lib/modern_treasury/models/internal_account_list_params.rb +0 -11
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -11
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +20 -11
- data/lib/modern_treasury/models/invoice.rb +25 -1
- data/lib/modern_treasury/models/invoice_create_params.rb +3 -4
- data/lib/modern_treasury/models/invoice_update_params.rb +3 -4
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +10 -1
- data/lib/modern_treasury/models/ledger_balance.rb +22 -1
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +19 -10
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +69 -10
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +121 -3
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +14 -1
- data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
- data/lib/modern_treasury/models/legal_entity_create_params.rb +34 -1
- data/lib/modern_treasury/models/legal_entity_update_params.rb +34 -1
- data/lib/modern_treasury/models/legal_entity_update_status_params.rb +46 -0
- data/lib/modern_treasury/models/payment_order.rb +9 -10
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +4 -18
- data/lib/modern_treasury/models/payment_order_create_params.rb +15 -29
- data/lib/modern_treasury/models/payment_order_list_params.rb +0 -11
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
- data/lib/modern_treasury/models/payment_order_type.rb +2 -14
- data/lib/modern_treasury/models/payment_order_update_params.rb +4 -18
- data/lib/modern_treasury/models/payment_reference.rb +5 -5
- data/lib/modern_treasury/models/reconciliation_rule.rb +3 -16
- data/lib/modern_treasury/models/return_object.rb +11 -8
- data/lib/modern_treasury/models/routing_detail.rb +0 -13
- data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -13
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -11
- data/lib/modern_treasury/models/third_party_verification.rb +2 -0
- data/lib/modern_treasury/models/transaction.rb +17 -20
- data/lib/modern_treasury/models/transaction_create_params.rb +23 -25
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
- data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -13
- data/lib/modern_treasury/models.rb +2 -0
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/expected_payments.rb +3 -3
- data/lib/modern_treasury/resources/holds.rb +3 -3
- data/lib/modern_treasury/resources/incoming_payment_details.rb +7 -3
- data/lib/modern_treasury/resources/internal_accounts.rb +8 -6
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +3 -1
- data/lib/modern_treasury/resources/legal_entities.rb +33 -2
- data/lib/modern_treasury/resources/payment_orders.rb +3 -3
- data/lib/modern_treasury/resources/transactions.rb +5 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +1 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +104 -522
- data/rbi/modern_treasury/models/child_legal_entity.rbi +452 -5
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +68 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +74 -0
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +74 -65
- data/rbi/modern_treasury/models/currency.rbi +0 -3
- data/rbi/modern_treasury/models/document.rbi +0 -87
- data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
- data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
- data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -61
- data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -18
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
- data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -65
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -55
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -55
- data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
- data/rbi/modern_treasury/models/identification_create_request.rbi +375 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +17 -43
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +12 -27
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +20 -33
- data/rbi/modern_treasury/models/internal_account.rbi +14 -55
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +60 -77
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -55
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -55
- data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +31 -15
- data/rbi/modern_treasury/models/invoice.rbi +27 -3
- data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -6
- data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -6
- data/rbi/modern_treasury/models/ledger_account_settlement_update_params.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +26 -10
- data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +89 -13
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +451 -5
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +18 -3
- data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +68 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +68 -0
- data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +96 -0
- data/rbi/modern_treasury/models/payment_order.rbi +30 -32
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +6 -73
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -95
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -55
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
- data/rbi/modern_treasury/models/payment_order_type.rbi +2 -16
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -73
- data/rbi/modern_treasury/models/payment_reference.rbi +24 -24
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -43
- data/rbi/modern_treasury/models/return_object.rbi +33 -29
- data/rbi/modern_treasury/models/routing_detail.rbi +0 -59
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -65
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -55
- data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
- data/rbi/modern_treasury/models/transaction.rbi +24 -35
- data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -72
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -65
- data/rbi/modern_treasury/models.rbi +3 -0
- data/rbi/modern_treasury/resources/bulk_requests.rbi +3 -2
- data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
- data/rbi/modern_treasury/resources/holds.rbi +3 -5
- data/rbi/modern_treasury/resources/incoming_payment_details.rbi +10 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +15 -8
- data/rbi/modern_treasury/resources/invoices.rbi +4 -6
- data/rbi/modern_treasury/resources/ledger_account_settlements.rbi +4 -0
- data/rbi/modern_treasury/resources/legal_entities.rbi +31 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +9 -12
- data/rbi/modern_treasury/resources/transactions.rbi +11 -7
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +45 -207
- data/sig/modern_treasury/models/child_legal_entity.rbs +179 -2
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
- data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -26
- data/sig/modern_treasury/models/currency.rbs +0 -6
- data/sig/modern_treasury/models/document.rbs +0 -57
- data/sig/modern_treasury/models/document_create_params.rbs +22 -22
- data/sig/modern_treasury/models/document_list_params.rbs +22 -22
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -22
- data/sig/modern_treasury/models/expected_payment_type.rbs +0 -22
- data/sig/modern_treasury/models/external_account_create_params.rbs +0 -26
- data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -22
- data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -22
- data/sig/modern_treasury/models/identification_create_request.rbs +150 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +7 -16
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +7 -12
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +9 -12
- data/sig/modern_treasury/models/internal_account.rbs +5 -22
- data/sig/modern_treasury/models/internal_account_create_params.rbs +22 -33
- data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -22
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -22
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
- data/sig/modern_treasury/models/invoice.rbs +18 -3
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +179 -2
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
- data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +43 -0
- data/sig/modern_treasury/models/payment_order.rbs +10 -10
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +0 -26
- data/sig/modern_treasury/models/payment_order_create_params.rbs +22 -48
- data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -22
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
- data/sig/modern_treasury/models/payment_order_type.rbs +0 -22
- data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -26
- data/sig/modern_treasury/models/payment_reference.rbs +10 -10
- data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -22
- data/sig/modern_treasury/models/return_object.rbs +18 -12
- data/sig/modern_treasury/models/routing_detail.rbs +0 -26
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -26
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -22
- data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
- data/sig/modern_treasury/models/transaction.rbs +7 -26
- data/sig/modern_treasury/models/transaction_create_params.rbs +14 -27
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -26
- data/sig/modern_treasury/models.rbs +2 -0
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +3 -2
- data/sig/modern_treasury/resources/ledger_account_settlements.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +8 -0
- data/sig/modern_treasury/resources/transactions.rbs +2 -1
- metadata +5 -2
|
@@ -2,9 +2,10 @@ module ModernTreasury
|
|
|
2
2
|
module Models
|
|
3
3
|
type ledger_entry_create_request =
|
|
4
4
|
{
|
|
5
|
-
amount: Integer,
|
|
6
5
|
direction: ModernTreasury::Models::transaction_direction,
|
|
7
6
|
ledger_account_id: String,
|
|
7
|
+
amount: Integer,
|
|
8
|
+
amount_string: String,
|
|
8
9
|
available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
9
10
|
effective_at: Time,
|
|
10
11
|
lock_version: Integer?,
|
|
@@ -15,12 +16,18 @@ module ModernTreasury
|
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
class LedgerEntryCreateRequest < ModernTreasury::Internal::Type::BaseModel
|
|
18
|
-
attr_accessor amount: Integer
|
|
19
|
-
|
|
20
19
|
attr_accessor direction: ModernTreasury::Models::transaction_direction
|
|
21
20
|
|
|
22
21
|
attr_accessor ledger_account_id: String
|
|
23
22
|
|
|
23
|
+
attr_reader amount: Integer?
|
|
24
|
+
|
|
25
|
+
def amount=: (Integer) -> Integer
|
|
26
|
+
|
|
27
|
+
attr_reader amount_string: String?
|
|
28
|
+
|
|
29
|
+
def amount_string=: (String) -> String
|
|
30
|
+
|
|
24
31
|
attr_accessor available_balance_amount: ::Hash[Symbol, Integer]?
|
|
25
32
|
|
|
26
33
|
attr_reader effective_at: Time?
|
|
@@ -40,9 +47,10 @@ module ModernTreasury
|
|
|
40
47
|
attr_accessor show_resulting_ledger_account_balances: bool?
|
|
41
48
|
|
|
42
49
|
def initialize: (
|
|
43
|
-
amount: Integer,
|
|
44
50
|
direction: ModernTreasury::Models::transaction_direction,
|
|
45
51
|
ledger_account_id: String,
|
|
52
|
+
?amount: Integer,
|
|
53
|
+
?amount_string: String,
|
|
46
54
|
?available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
47
55
|
?effective_at: Time,
|
|
48
56
|
?lock_version: Integer?,
|
|
@@ -53,9 +61,10 @@ module ModernTreasury
|
|
|
53
61
|
) -> void
|
|
54
62
|
|
|
55
63
|
def to_hash: -> {
|
|
56
|
-
amount: Integer,
|
|
57
64
|
direction: ModernTreasury::Models::transaction_direction,
|
|
58
65
|
ledger_account_id: String,
|
|
66
|
+
amount: Integer,
|
|
67
|
+
amount_string: String,
|
|
59
68
|
available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
60
69
|
effective_at: Time,
|
|
61
70
|
lock_version: Integer?,
|
|
@@ -50,35 +50,69 @@ module ModernTreasury
|
|
|
50
50
|
|
|
51
51
|
type posted_ledger_entry =
|
|
52
52
|
{
|
|
53
|
-
amount: Integer,
|
|
54
53
|
direction: ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::direction,
|
|
55
54
|
ledger_account_id: String,
|
|
56
|
-
|
|
55
|
+
amount: Integer,
|
|
56
|
+
amount_string: String,
|
|
57
|
+
available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
58
|
+
lock_version: Integer?,
|
|
59
|
+
metadata: ::Hash[Symbol, String],
|
|
60
|
+
pending_balance_amount: ::Hash[Symbol, Integer]?,
|
|
61
|
+
posted_balance_amount: ::Hash[Symbol, Integer]?,
|
|
62
|
+
show_resulting_ledger_account_balances: bool?
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
class PostedLedgerEntry < ModernTreasury::Internal::Type::BaseModel
|
|
60
|
-
attr_accessor amount: Integer
|
|
61
|
-
|
|
62
66
|
attr_accessor direction: ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::direction
|
|
63
67
|
|
|
64
68
|
attr_accessor ledger_account_id: String
|
|
65
69
|
|
|
70
|
+
attr_reader amount: Integer?
|
|
71
|
+
|
|
72
|
+
def amount=: (Integer) -> Integer
|
|
73
|
+
|
|
74
|
+
attr_reader amount_string: String?
|
|
75
|
+
|
|
76
|
+
def amount_string=: (String) -> String
|
|
77
|
+
|
|
78
|
+
attr_accessor available_balance_amount: ::Hash[Symbol, Integer]?
|
|
79
|
+
|
|
80
|
+
attr_accessor lock_version: Integer?
|
|
81
|
+
|
|
66
82
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
67
83
|
|
|
68
84
|
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
69
85
|
|
|
86
|
+
attr_accessor pending_balance_amount: ::Hash[Symbol, Integer]?
|
|
87
|
+
|
|
88
|
+
attr_accessor posted_balance_amount: ::Hash[Symbol, Integer]?
|
|
89
|
+
|
|
90
|
+
attr_accessor show_resulting_ledger_account_balances: bool?
|
|
91
|
+
|
|
70
92
|
def initialize: (
|
|
71
|
-
amount: Integer,
|
|
72
93
|
direction: ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::direction,
|
|
73
94
|
ledger_account_id: String,
|
|
74
|
-
?
|
|
95
|
+
?amount: Integer,
|
|
96
|
+
?amount_string: String,
|
|
97
|
+
?available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
98
|
+
?lock_version: Integer?,
|
|
99
|
+
?metadata: ::Hash[Symbol, String],
|
|
100
|
+
?pending_balance_amount: ::Hash[Symbol, Integer]?,
|
|
101
|
+
?posted_balance_amount: ::Hash[Symbol, Integer]?,
|
|
102
|
+
?show_resulting_ledger_account_balances: bool?
|
|
75
103
|
) -> void
|
|
76
104
|
|
|
77
105
|
def to_hash: -> {
|
|
78
|
-
amount: Integer,
|
|
79
106
|
direction: ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::direction,
|
|
80
107
|
ledger_account_id: String,
|
|
81
|
-
|
|
108
|
+
amount: Integer,
|
|
109
|
+
amount_string: String,
|
|
110
|
+
available_balance_amount: ::Hash[Symbol, Integer]?,
|
|
111
|
+
lock_version: Integer?,
|
|
112
|
+
metadata: ::Hash[Symbol, String],
|
|
113
|
+
pending_balance_amount: ::Hash[Symbol, Integer]?,
|
|
114
|
+
posted_balance_amount: ::Hash[Symbol, Integer]?,
|
|
115
|
+
show_resulting_ledger_account_balances: bool?
|
|
82
116
|
}
|
|
83
117
|
|
|
84
118
|
type direction = :credit | :debit
|
|
@@ -123,6 +123,7 @@ module ModernTreasury
|
|
|
123
123
|
{
|
|
124
124
|
id: String,
|
|
125
125
|
amount: Integer,
|
|
126
|
+
amount_string: String,
|
|
126
127
|
created_at: Time,
|
|
127
128
|
direction: ModernTreasury::Models::transaction_direction,
|
|
128
129
|
effective_at: Time,
|
|
@@ -143,6 +144,8 @@ module ModernTreasury
|
|
|
143
144
|
|
|
144
145
|
attr_accessor amount: Integer
|
|
145
146
|
|
|
147
|
+
attr_accessor amount_string: String
|
|
148
|
+
|
|
146
149
|
attr_accessor created_at: Time
|
|
147
150
|
|
|
148
151
|
attr_accessor direction: ModernTreasury::Models::transaction_direction
|
|
@@ -172,6 +175,7 @@ module ModernTreasury
|
|
|
172
175
|
def initialize: (
|
|
173
176
|
id: String,
|
|
174
177
|
amount: Integer,
|
|
178
|
+
amount_string: String,
|
|
175
179
|
created_at: Time,
|
|
176
180
|
direction: ModernTreasury::Models::transaction_direction,
|
|
177
181
|
effective_at: Time,
|
|
@@ -190,6 +194,7 @@ module ModernTreasury
|
|
|
190
194
|
def to_hash: -> {
|
|
191
195
|
id: String,
|
|
192
196
|
amount: Integer,
|
|
197
|
+
amount_string: String,
|
|
193
198
|
created_at: Time,
|
|
194
199
|
direction: ModernTreasury::Models::transaction_direction,
|
|
195
200
|
effective_at: Time,
|
|
@@ -42,6 +42,7 @@ module ModernTreasury
|
|
|
42
42
|
service_provider_legal_entity_id: String?,
|
|
43
43
|
status: ModernTreasury::Models::LegalEntity::status?,
|
|
44
44
|
suffix: String?,
|
|
45
|
+
terms_of_use: ModernTreasury::LegalEntity::TermsOfUse?,
|
|
45
46
|
third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
46
47
|
third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
47
48
|
ticker_symbol: String?,
|
|
@@ -132,6 +133,8 @@ module ModernTreasury
|
|
|
132
133
|
|
|
133
134
|
attr_accessor suffix: String?
|
|
134
135
|
|
|
136
|
+
attr_accessor terms_of_use: ModernTreasury::LegalEntity::TermsOfUse?
|
|
137
|
+
|
|
135
138
|
attr_accessor third_party_verification: ModernTreasury::ThirdPartyVerification?
|
|
136
139
|
|
|
137
140
|
attr_accessor third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification]
|
|
@@ -187,6 +190,7 @@ module ModernTreasury
|
|
|
187
190
|
service_provider_legal_entity_id: String?,
|
|
188
191
|
status: ModernTreasury::Models::LegalEntity::status?,
|
|
189
192
|
suffix: String?,
|
|
193
|
+
terms_of_use: ModernTreasury::LegalEntity::TermsOfUse?,
|
|
190
194
|
third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
191
195
|
third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
192
196
|
ticker_symbol: String?,
|
|
@@ -237,6 +241,7 @@ module ModernTreasury
|
|
|
237
241
|
service_provider_legal_entity_id: String?,
|
|
238
242
|
status: ModernTreasury::Models::LegalEntity::status?,
|
|
239
243
|
suffix: String?,
|
|
244
|
+
terms_of_use: ModernTreasury::LegalEntity::TermsOfUse?,
|
|
240
245
|
third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
241
246
|
third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
242
247
|
ticker_symbol: String?,
|
|
@@ -259,6 +264,7 @@ module ModernTreasury
|
|
|
259
264
|
locality: String?,
|
|
260
265
|
object: String,
|
|
261
266
|
postal_code: String?,
|
|
267
|
+
primary: bool?,
|
|
262
268
|
region: String?,
|
|
263
269
|
updated_at: Time
|
|
264
270
|
}
|
|
@@ -286,6 +292,8 @@ module ModernTreasury
|
|
|
286
292
|
|
|
287
293
|
attr_accessor postal_code: String?
|
|
288
294
|
|
|
295
|
+
attr_accessor primary: bool?
|
|
296
|
+
|
|
289
297
|
attr_accessor region: String?
|
|
290
298
|
|
|
291
299
|
attr_accessor updated_at: Time
|
|
@@ -302,6 +310,7 @@ module ModernTreasury
|
|
|
302
310
|
locality: String?,
|
|
303
311
|
object: String,
|
|
304
312
|
postal_code: String?,
|
|
313
|
+
primary: bool?,
|
|
305
314
|
region: String?,
|
|
306
315
|
updated_at: Time
|
|
307
316
|
) -> void
|
|
@@ -318,12 +327,14 @@ module ModernTreasury
|
|
|
318
327
|
locality: String?,
|
|
319
328
|
object: String,
|
|
320
329
|
postal_code: String?,
|
|
330
|
+
primary: bool?,
|
|
321
331
|
region: String?,
|
|
322
332
|
updated_at: Time
|
|
323
333
|
}
|
|
324
334
|
|
|
325
335
|
type address_type =
|
|
326
336
|
:business
|
|
337
|
+
| :business_physical
|
|
327
338
|
| :business_registered
|
|
328
339
|
| :mailing
|
|
329
340
|
| :other
|
|
@@ -334,6 +345,7 @@ module ModernTreasury
|
|
|
334
345
|
extend ModernTreasury::Internal::Type::Enum
|
|
335
346
|
|
|
336
347
|
BUSINESS: :business
|
|
348
|
+
BUSINESS_PHYSICAL: :business_physical
|
|
337
349
|
BUSINESS_REGISTERED: :business_registered
|
|
338
350
|
MAILING: :mailing
|
|
339
351
|
OTHER: :other
|
|
@@ -413,27 +425,102 @@ module ModernTreasury
|
|
|
413
425
|
type id_type =
|
|
414
426
|
:ar_cuil
|
|
415
427
|
| :ar_cuit
|
|
428
|
+
| :at_atin
|
|
429
|
+
| :at_vat
|
|
430
|
+
| :au_abn
|
|
431
|
+
| :au_tfn
|
|
432
|
+
| :be_ent
|
|
433
|
+
| :be_nrn
|
|
416
434
|
| :br_cnpj
|
|
417
435
|
| :br_cpf
|
|
436
|
+
| :ca_bn
|
|
418
437
|
| :ca_sin
|
|
438
|
+
| :ch_ahv
|
|
439
|
+
| :ch_uid
|
|
419
440
|
| :cl_run
|
|
420
441
|
| :cl_rut
|
|
421
442
|
| :co_cedulas
|
|
422
443
|
| :co_nit
|
|
444
|
+
| :cy_tin
|
|
445
|
+
| :cz_ico
|
|
446
|
+
| :cz_rc
|
|
447
|
+
| :de_stid
|
|
448
|
+
| :de_stnr
|
|
449
|
+
| :de_vat
|
|
450
|
+
| :dk_cpr
|
|
451
|
+
| :dk_cvr
|
|
423
452
|
| :drivers_license
|
|
453
|
+
| :ee_ik
|
|
454
|
+
| :ee_rk
|
|
455
|
+
| :es_nie
|
|
456
|
+
| :es_nif
|
|
457
|
+
| :fi_hetu
|
|
458
|
+
| :fi_ytj
|
|
459
|
+
| :fr_nif
|
|
460
|
+
| :fr_siren
|
|
461
|
+
| :fr_vat
|
|
462
|
+
| :gb_nino
|
|
463
|
+
| :gb_utr
|
|
464
|
+
| :gb_vat
|
|
465
|
+
| :generic_international
|
|
466
|
+
| :gr_vat
|
|
424
467
|
| :hn_id
|
|
425
468
|
| :hn_rtn
|
|
469
|
+
| :hr_oib
|
|
470
|
+
| :hu_adj
|
|
471
|
+
| :hu_anum
|
|
426
472
|
| :ie_pps
|
|
473
|
+
| :ie_trn
|
|
427
474
|
| :in_lei
|
|
475
|
+
| :is_knt
|
|
476
|
+
| :it_cf
|
|
477
|
+
| :it_piva
|
|
478
|
+
| :jp_hb
|
|
479
|
+
| :jp_mn
|
|
428
480
|
| :kr_brn
|
|
429
481
|
| :kr_crn
|
|
430
482
|
| :kr_rrn
|
|
483
|
+
| :li_peid
|
|
484
|
+
| :lt_ak
|
|
485
|
+
| :lt_jak
|
|
486
|
+
| :lu_mtc
|
|
487
|
+
| :lu_vat
|
|
488
|
+
| :lv_pk
|
|
489
|
+
| :lv_rn
|
|
490
|
+
| :mt_tin
|
|
491
|
+
| :mt_vat
|
|
492
|
+
| :mx_curp
|
|
493
|
+
| :mx_ine
|
|
494
|
+
| :mx_rfc
|
|
495
|
+
| :national_id
|
|
496
|
+
| :nl_bsn
|
|
497
|
+
| :nl_btw
|
|
498
|
+
| :nl_rsin
|
|
499
|
+
| :no_fdn
|
|
500
|
+
| :no_mva
|
|
501
|
+
| :no_orgnr
|
|
502
|
+
| :nz_ird
|
|
431
503
|
| :passport
|
|
504
|
+
| :pl_nip
|
|
505
|
+
| :pl_pesel
|
|
506
|
+
| :pt_nif
|
|
507
|
+
| :ro_cnp
|
|
508
|
+
| :ro_cui
|
|
432
509
|
| :sa_tin
|
|
433
510
|
| :sa_vat
|
|
511
|
+
| :se_orgnr
|
|
512
|
+
| :se_pnmr
|
|
513
|
+
| :sg_fin
|
|
514
|
+
| :sg_nric
|
|
515
|
+
| :sg_uen
|
|
516
|
+
| :si_dav
|
|
517
|
+
| :si_tin
|
|
518
|
+
| :sk_ico
|
|
519
|
+
| :sk_rc
|
|
434
520
|
| :us_ein
|
|
435
521
|
| :us_itin
|
|
436
522
|
| :us_ssn
|
|
523
|
+
| :uy_rut
|
|
437
524
|
| :vn_tin
|
|
438
525
|
|
|
439
526
|
module IDType
|
|
@@ -441,41 +528,115 @@ module ModernTreasury
|
|
|
441
528
|
|
|
442
529
|
AR_CUIL: :ar_cuil
|
|
443
530
|
AR_CUIT: :ar_cuit
|
|
531
|
+
AT_ATIN: :at_atin
|
|
532
|
+
AT_VAT: :at_vat
|
|
533
|
+
AU_ABN: :au_abn
|
|
534
|
+
AU_TFN: :au_tfn
|
|
535
|
+
BE_ENT: :be_ent
|
|
536
|
+
BE_NRN: :be_nrn
|
|
444
537
|
BR_CNPJ: :br_cnpj
|
|
445
538
|
BR_CPF: :br_cpf
|
|
539
|
+
CA_BN: :ca_bn
|
|
446
540
|
CA_SIN: :ca_sin
|
|
541
|
+
CH_AHV: :ch_ahv
|
|
542
|
+
CH_UID: :ch_uid
|
|
447
543
|
CL_RUN: :cl_run
|
|
448
544
|
CL_RUT: :cl_rut
|
|
449
545
|
CO_CEDULAS: :co_cedulas
|
|
450
546
|
CO_NIT: :co_nit
|
|
547
|
+
CY_TIN: :cy_tin
|
|
548
|
+
CZ_ICO: :cz_ico
|
|
549
|
+
CZ_RC: :cz_rc
|
|
550
|
+
DE_STID: :de_stid
|
|
551
|
+
DE_STNR: :de_stnr
|
|
552
|
+
DE_VAT: :de_vat
|
|
553
|
+
DK_CPR: :dk_cpr
|
|
554
|
+
DK_CVR: :dk_cvr
|
|
451
555
|
DRIVERS_LICENSE: :drivers_license
|
|
556
|
+
EE_IK: :ee_ik
|
|
557
|
+
EE_RK: :ee_rk
|
|
558
|
+
ES_NIE: :es_nie
|
|
559
|
+
ES_NIF: :es_nif
|
|
560
|
+
FI_HETU: :fi_hetu
|
|
561
|
+
FI_YTJ: :fi_ytj
|
|
562
|
+
FR_NIF: :fr_nif
|
|
563
|
+
FR_SIREN: :fr_siren
|
|
564
|
+
FR_VAT: :fr_vat
|
|
565
|
+
GB_NINO: :gb_nino
|
|
566
|
+
GB_UTR: :gb_utr
|
|
567
|
+
GB_VAT: :gb_vat
|
|
568
|
+
GENERIC_INTERNATIONAL: :generic_international
|
|
569
|
+
GR_VAT: :gr_vat
|
|
452
570
|
HN_ID: :hn_id
|
|
453
571
|
HN_RTN: :hn_rtn
|
|
572
|
+
HR_OIB: :hr_oib
|
|
573
|
+
HU_ADJ: :hu_adj
|
|
574
|
+
HU_ANUM: :hu_anum
|
|
454
575
|
IE_PPS: :ie_pps
|
|
576
|
+
IE_TRN: :ie_trn
|
|
455
577
|
IN_LEI: :in_lei
|
|
578
|
+
IS_KNT: :is_knt
|
|
579
|
+
IT_CF: :it_cf
|
|
580
|
+
IT_PIVA: :it_piva
|
|
581
|
+
JP_HB: :jp_hb
|
|
582
|
+
JP_MN: :jp_mn
|
|
456
583
|
KR_BRN: :kr_brn
|
|
457
584
|
KR_CRN: :kr_crn
|
|
458
585
|
KR_RRN: :kr_rrn
|
|
586
|
+
LI_PEID: :li_peid
|
|
587
|
+
LT_AK: :lt_ak
|
|
588
|
+
LT_JAK: :lt_jak
|
|
589
|
+
LU_MTC: :lu_mtc
|
|
590
|
+
LU_VAT: :lu_vat
|
|
591
|
+
LV_PK: :lv_pk
|
|
592
|
+
LV_RN: :lv_rn
|
|
593
|
+
MT_TIN: :mt_tin
|
|
594
|
+
MT_VAT: :mt_vat
|
|
595
|
+
MX_CURP: :mx_curp
|
|
596
|
+
MX_INE: :mx_ine
|
|
597
|
+
MX_RFC: :mx_rfc
|
|
598
|
+
NATIONAL_ID: :national_id
|
|
599
|
+
NL_BSN: :nl_bsn
|
|
600
|
+
NL_BTW: :nl_btw
|
|
601
|
+
NL_RSIN: :nl_rsin
|
|
602
|
+
NO_FDN: :no_fdn
|
|
603
|
+
NO_MVA: :no_mva
|
|
604
|
+
NO_ORGNR: :no_orgnr
|
|
605
|
+
NZ_IRD: :nz_ird
|
|
459
606
|
PASSPORT: :passport
|
|
607
|
+
PL_NIP: :pl_nip
|
|
608
|
+
PL_PESEL: :pl_pesel
|
|
609
|
+
PT_NIF: :pt_nif
|
|
610
|
+
RO_CNP: :ro_cnp
|
|
611
|
+
RO_CUI: :ro_cui
|
|
460
612
|
SA_TIN: :sa_tin
|
|
461
613
|
SA_VAT: :sa_vat
|
|
614
|
+
SE_ORGNR: :se_orgnr
|
|
615
|
+
SE_PNMR: :se_pnmr
|
|
616
|
+
SG_FIN: :sg_fin
|
|
617
|
+
SG_NRIC: :sg_nric
|
|
618
|
+
SG_UEN: :sg_uen
|
|
619
|
+
SI_DAV: :si_dav
|
|
620
|
+
SI_TIN: :si_tin
|
|
621
|
+
SK_ICO: :sk_ico
|
|
622
|
+
SK_RC: :sk_rc
|
|
462
623
|
US_EIN: :us_ein
|
|
463
624
|
US_ITIN: :us_itin
|
|
464
625
|
US_SSN: :us_ssn
|
|
626
|
+
UY_RUT: :uy_rut
|
|
465
627
|
VN_TIN: :vn_tin
|
|
466
628
|
|
|
467
629
|
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntity::Identification::id_type]
|
|
468
630
|
end
|
|
469
631
|
end
|
|
470
632
|
|
|
471
|
-
type legal_entity_type = :business | :individual
|
|
633
|
+
type legal_entity_type = :business | :individual
|
|
472
634
|
|
|
473
635
|
module LegalEntityType
|
|
474
636
|
extend ModernTreasury::Internal::Type::Enum
|
|
475
637
|
|
|
476
638
|
BUSINESS: :business
|
|
477
639
|
INDIVIDUAL: :individual
|
|
478
|
-
JOINT: :joint
|
|
479
640
|
|
|
480
641
|
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntity::legal_entity_type]
|
|
481
642
|
end
|
|
@@ -560,6 +721,22 @@ module ModernTreasury
|
|
|
560
721
|
|
|
561
722
|
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntity::status]
|
|
562
723
|
end
|
|
724
|
+
|
|
725
|
+
type terms_of_use = { accepted_at: Time, ip_address: String }
|
|
726
|
+
|
|
727
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
728
|
+
attr_reader accepted_at: Time?
|
|
729
|
+
|
|
730
|
+
def accepted_at=: (Time) -> Time
|
|
731
|
+
|
|
732
|
+
attr_reader ip_address: String?
|
|
733
|
+
|
|
734
|
+
def ip_address=: (String) -> String
|
|
735
|
+
|
|
736
|
+
def initialize: (?accepted_at: Time, ?ip_address: String) -> void
|
|
737
|
+
|
|
738
|
+
def to_hash: -> { accepted_at: Time, ip_address: String }
|
|
739
|
+
end
|
|
563
740
|
end
|
|
564
741
|
end
|
|
565
742
|
end
|
|
@@ -8,7 +8,8 @@ module ModernTreasury
|
|
|
8
8
|
postal_code: String?,
|
|
9
9
|
region: String?,
|
|
10
10
|
address_types: ::Array[ModernTreasury::Models::LegalEntityAddressCreateRequest::address_type],
|
|
11
|
-
:line2 => String
|
|
11
|
+
:line2 => String?,
|
|
12
|
+
primary: bool?
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
class LegalEntityAddressCreateRequest < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -30,6 +31,8 @@ module ModernTreasury
|
|
|
30
31
|
|
|
31
32
|
attr_accessor line2: String?
|
|
32
33
|
|
|
34
|
+
attr_accessor primary: bool?
|
|
35
|
+
|
|
33
36
|
def initialize: (
|
|
34
37
|
country: String?,
|
|
35
38
|
line1: String?,
|
|
@@ -37,7 +40,8 @@ module ModernTreasury
|
|
|
37
40
|
postal_code: String?,
|
|
38
41
|
region: String?,
|
|
39
42
|
?address_types: ::Array[ModernTreasury::Models::LegalEntityAddressCreateRequest::address_type],
|
|
40
|
-
?line2: String
|
|
43
|
+
?line2: String?,
|
|
44
|
+
?primary: bool?
|
|
41
45
|
) -> void
|
|
42
46
|
|
|
43
47
|
def to_hash: -> {
|
|
@@ -47,11 +51,13 @@ module ModernTreasury
|
|
|
47
51
|
postal_code: String?,
|
|
48
52
|
region: String?,
|
|
49
53
|
address_types: ::Array[ModernTreasury::Models::LegalEntityAddressCreateRequest::address_type],
|
|
50
|
-
:line2 => String
|
|
54
|
+
:line2 => String?,
|
|
55
|
+
primary: bool?
|
|
51
56
|
}
|
|
52
57
|
|
|
53
58
|
type address_type =
|
|
54
59
|
:business
|
|
60
|
+
| :business_physical
|
|
55
61
|
| :business_registered
|
|
56
62
|
| :mailing
|
|
57
63
|
| :other
|
|
@@ -62,6 +68,7 @@ module ModernTreasury
|
|
|
62
68
|
extend ModernTreasury::Internal::Type::Enum
|
|
63
69
|
|
|
64
70
|
BUSINESS: :business
|
|
71
|
+
BUSINESS_PHYSICAL: :business_physical
|
|
65
72
|
BUSINESS_REGISTERED: :business_registered
|
|
66
73
|
MAILING: :mailing
|
|
67
74
|
OTHER: :other
|
|
@@ -38,6 +38,7 @@ module ModernTreasury
|
|
|
38
38
|
risk_rating: ModernTreasury::Models::LegalEntityCreateParams::risk_rating?,
|
|
39
39
|
service_provider_legal_entity_id: String?,
|
|
40
40
|
suffix: String?,
|
|
41
|
+
terms_of_use: ModernTreasury::LegalEntityCreateParams::TermsOfUse?,
|
|
41
42
|
third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
42
43
|
third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
43
44
|
ticker_symbol: String?,
|
|
@@ -150,6 +151,8 @@ module ModernTreasury
|
|
|
150
151
|
|
|
151
152
|
attr_accessor suffix: String?
|
|
152
153
|
|
|
154
|
+
attr_accessor terms_of_use: ModernTreasury::LegalEntityCreateParams::TermsOfUse?
|
|
155
|
+
|
|
153
156
|
attr_accessor third_party_verification: ModernTreasury::ThirdPartyVerification?
|
|
154
157
|
|
|
155
158
|
attr_reader third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification]?
|
|
@@ -201,6 +204,7 @@ module ModernTreasury
|
|
|
201
204
|
?risk_rating: ModernTreasury::Models::LegalEntityCreateParams::risk_rating?,
|
|
202
205
|
?service_provider_legal_entity_id: String?,
|
|
203
206
|
?suffix: String?,
|
|
207
|
+
?terms_of_use: ModernTreasury::LegalEntityCreateParams::TermsOfUse?,
|
|
204
208
|
?third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
205
209
|
?third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
206
210
|
?ticker_symbol: String?,
|
|
@@ -246,6 +250,7 @@ module ModernTreasury
|
|
|
246
250
|
risk_rating: ModernTreasury::Models::LegalEntityCreateParams::risk_rating?,
|
|
247
251
|
service_provider_legal_entity_id: String?,
|
|
248
252
|
suffix: String?,
|
|
253
|
+
terms_of_use: ModernTreasury::LegalEntityCreateParams::TermsOfUse?,
|
|
249
254
|
third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
250
255
|
third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
251
256
|
ticker_symbol: String?,
|
|
@@ -384,6 +389,22 @@ module ModernTreasury
|
|
|
384
389
|
|
|
385
390
|
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityCreateParams::risk_rating]
|
|
386
391
|
end
|
|
392
|
+
|
|
393
|
+
type terms_of_use = { accepted_at: Time, ip_address: String }
|
|
394
|
+
|
|
395
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
396
|
+
attr_reader accepted_at: Time?
|
|
397
|
+
|
|
398
|
+
def accepted_at=: (Time) -> Time
|
|
399
|
+
|
|
400
|
+
attr_reader ip_address: String?
|
|
401
|
+
|
|
402
|
+
def ip_address=: (String) -> String
|
|
403
|
+
|
|
404
|
+
def initialize: (?accepted_at: Time, ?ip_address: String) -> void
|
|
405
|
+
|
|
406
|
+
def to_hash: -> { accepted_at: Time, ip_address: String }
|
|
407
|
+
end
|
|
387
408
|
end
|
|
388
409
|
end
|
|
389
410
|
end
|
|
@@ -34,6 +34,7 @@ module ModernTreasury
|
|
|
34
34
|
risk_rating: ModernTreasury::Models::LegalEntityUpdateParams::risk_rating?,
|
|
35
35
|
service_provider_legal_entity_id: String?,
|
|
36
36
|
suffix: String?,
|
|
37
|
+
terms_of_use: ModernTreasury::LegalEntityUpdateParams::TermsOfUse?,
|
|
37
38
|
third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
38
39
|
third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
39
40
|
ticker_symbol: String?,
|
|
@@ -134,6 +135,8 @@ module ModernTreasury
|
|
|
134
135
|
|
|
135
136
|
attr_accessor suffix: String?
|
|
136
137
|
|
|
138
|
+
attr_accessor terms_of_use: ModernTreasury::LegalEntityUpdateParams::TermsOfUse?
|
|
139
|
+
|
|
137
140
|
attr_accessor third_party_verification: ModernTreasury::ThirdPartyVerification?
|
|
138
141
|
|
|
139
142
|
attr_reader third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification]?
|
|
@@ -181,6 +184,7 @@ module ModernTreasury
|
|
|
181
184
|
?risk_rating: ModernTreasury::Models::LegalEntityUpdateParams::risk_rating?,
|
|
182
185
|
?service_provider_legal_entity_id: String?,
|
|
183
186
|
?suffix: String?,
|
|
187
|
+
?terms_of_use: ModernTreasury::LegalEntityUpdateParams::TermsOfUse?,
|
|
184
188
|
?third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
185
189
|
?third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
186
190
|
?ticker_symbol: String?,
|
|
@@ -222,6 +226,7 @@ module ModernTreasury
|
|
|
222
226
|
risk_rating: ModernTreasury::Models::LegalEntityUpdateParams::risk_rating?,
|
|
223
227
|
service_provider_legal_entity_id: String?,
|
|
224
228
|
suffix: String?,
|
|
229
|
+
terms_of_use: ModernTreasury::LegalEntityUpdateParams::TermsOfUse?,
|
|
225
230
|
third_party_verification: ModernTreasury::ThirdPartyVerification?,
|
|
226
231
|
third_party_verifications: ::Array[ModernTreasury::ThirdPartyVerification],
|
|
227
232
|
ticker_symbol: String?,
|
|
@@ -297,6 +302,22 @@ module ModernTreasury
|
|
|
297
302
|
|
|
298
303
|
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityUpdateParams::risk_rating]
|
|
299
304
|
end
|
|
305
|
+
|
|
306
|
+
type terms_of_use = { accepted_at: Time, ip_address: String }
|
|
307
|
+
|
|
308
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
309
|
+
attr_reader accepted_at: Time?
|
|
310
|
+
|
|
311
|
+
def accepted_at=: (Time) -> Time
|
|
312
|
+
|
|
313
|
+
attr_reader ip_address: String?
|
|
314
|
+
|
|
315
|
+
def ip_address=: (String) -> String
|
|
316
|
+
|
|
317
|
+
def initialize: (?accepted_at: Time, ?ip_address: String) -> void
|
|
318
|
+
|
|
319
|
+
def to_hash: -> { accepted_at: Time, ip_address: String }
|
|
320
|
+
end
|
|
300
321
|
end
|
|
301
322
|
end
|
|
302
323
|
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
module ModernTreasury
|
|
2
|
+
module Models
|
|
3
|
+
type legal_entity_update_status_params =
|
|
4
|
+
{
|
|
5
|
+
id: String,
|
|
6
|
+
status: ModernTreasury::Models::LegalEntityUpdateStatusParams::status
|
|
7
|
+
}
|
|
8
|
+
& ModernTreasury::Internal::Type::request_parameters
|
|
9
|
+
|
|
10
|
+
class LegalEntityUpdateStatusParams < ModernTreasury::Internal::Type::BaseModel
|
|
11
|
+
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
|
12
|
+
include ModernTreasury::Internal::Type::RequestParameters
|
|
13
|
+
|
|
14
|
+
attr_accessor id: String
|
|
15
|
+
|
|
16
|
+
attr_accessor status: ModernTreasury::Models::LegalEntityUpdateStatusParams::status
|
|
17
|
+
|
|
18
|
+
def initialize: (
|
|
19
|
+
id: String,
|
|
20
|
+
status: ModernTreasury::Models::LegalEntityUpdateStatusParams::status,
|
|
21
|
+
?request_options: ModernTreasury::request_opts
|
|
22
|
+
) -> void
|
|
23
|
+
|
|
24
|
+
def to_hash: -> {
|
|
25
|
+
id: String,
|
|
26
|
+
status: ModernTreasury::Models::LegalEntityUpdateStatusParams::status,
|
|
27
|
+
request_options: ModernTreasury::RequestOptions
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
type status = :active | :suspended | :denied
|
|
31
|
+
|
|
32
|
+
module Status
|
|
33
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
34
|
+
|
|
35
|
+
ACTIVE: :active
|
|
36
|
+
SUSPENDED: :suspended
|
|
37
|
+
DENIED: :denied
|
|
38
|
+
|
|
39
|
+
def self?.values: -> ::Array[ModernTreasury::Models::LegalEntityUpdateStatusParams::status]
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|