modern_treasury 0.1.0.pre.alpha.22 → 0.2.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 +54 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +0 -12
- data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
- data/lib/modern_treasury/internal/type/array_of.rb +1 -0
- data/lib/modern_treasury/internal/type/base_model.rb +7 -5
- data/lib/modern_treasury/internal/type/converter.rb +27 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +1 -0
- data/lib/modern_treasury/internal/type/union.rb +9 -7
- data/lib/modern_treasury/models/accounting.rb +30 -0
- data/lib/modern_treasury/models/address.rb +94 -0
- data/lib/modern_treasury/models/address_request.rb +54 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +144 -1505
- data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
- data/lib/modern_treasury/models/contact_detail.rb +81 -0
- data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
- data/lib/modern_treasury/models/counterparty.rb +24 -177
- data/lib/modern_treasury/models/counterparty_create_params.rb +37 -838
- data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
- data/lib/modern_treasury/models/document.rb +4 -6
- data/lib/modern_treasury/models/document_create_params.rb +0 -2
- data/lib/modern_treasury/models/document_list_params.rb +4 -6
- data/lib/modern_treasury/models/expected_payment.rb +9 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
- data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
- data/lib/modern_treasury/models/external_account.rb +15 -177
- data/lib/modern_treasury/models/external_account_create_params.rb +18 -210
- data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
- data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
- data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
- data/lib/modern_treasury/models/identification_create_request.rb +86 -0
- data/lib/modern_treasury/models/internal_account.rb +3 -95
- data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
- data/lib/modern_treasury/models/invoice.rb +3 -81
- data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
- data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
- data/lib/modern_treasury/models/ledger_account.rb +9 -141
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
- data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
- data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_balance.rb +45 -0
- data/lib/modern_treasury/models/ledger_balances.rb +38 -0
- data/lib/modern_treasury/models/ledger_entry.rb +3 -183
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +8 -6
- data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
- data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
- data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
- data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
- data/lib/modern_treasury/models/line_item.rb +3 -29
- data/lib/modern_treasury/models/payment_action_list_params.rb +2 -0
- data/lib/modern_treasury/models/payment_order.rb +13 -102
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
- data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
- data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
- data/lib/modern_treasury/models/payment_orders/reversal.rb +3 -4
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
- data/lib/modern_treasury/models/payment_reference.rb +7 -1
- data/lib/modern_treasury/models/return_list_params.rb +5 -6
- data/lib/modern_treasury/models/return_object.rb +7 -3
- data/lib/modern_treasury/models/routing_detail.rb +3 -93
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
- data/lib/modern_treasury/models/transaction.rb +5 -73
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
- data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
- data/lib/modern_treasury/models.rb +31 -6
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +20 -14
- data/lib/modern_treasury/resources/expected_payments.rb +10 -4
- data/lib/modern_treasury/resources/external_accounts.rb +23 -17
- data/lib/modern_treasury/resources/internal_accounts.rb +34 -0
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
- data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +4 -4
- data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders.rb +5 -5
- data/lib/modern_treasury/resources/returns.rb +1 -1
- data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +16 -6
- data/rbi/modern_treasury/client.rbi +0 -9
- data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
- data/rbi/modern_treasury/internal/type/converter.rbi +58 -0
- data/rbi/modern_treasury/internal/type/union.rbi +11 -2
- data/rbi/modern_treasury/models/accounting.rbi +48 -0
- data/rbi/modern_treasury/models/address.rbi +107 -0
- data/rbi/modern_treasury/models/address_request.rbi +76 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +701 -3140
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
- data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
- data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
- data/rbi/modern_treasury/models/counterparty.rbi +24 -264
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +47 -1718
- data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/document.rbi +6 -16
- data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
- data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
- data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
- data/rbi/modern_treasury/models/external_account.rbi +15 -244
- data/rbi/modern_treasury/models/external_account_create_params.rbi +20 -400
- data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
- data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
- data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
- data/rbi/modern_treasury/models/internal_account.rbi +4 -115
- data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
- data/rbi/modern_treasury/models/invoice.rbi +3 -128
- data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
- data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
- data/rbi/modern_treasury/models/ledger_account.rbi +12 -218
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
- data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -7
- data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
- data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
- data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
- data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +13 -8
- data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
- data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
- data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
- data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
- data/rbi/modern_treasury/models/line_item.rbi +4 -52
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +10 -0
- data/rbi/modern_treasury/models/payment_order.rbi +43 -159
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
- data/rbi/modern_treasury/models/payment_orders/reversal.rbi +3 -3
- data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
- data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
- data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
- data/rbi/modern_treasury/models/return_object.rbi +35 -12
- data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
- data/rbi/modern_treasury/models/transaction.rbi +14 -103
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
- data/rbi/modern_treasury/models.rbi +36 -6
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
- data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
- data/rbi/modern_treasury/resources/documents.rbi +2 -2
- data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
- data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
- data/rbi/modern_treasury/resources/internal_accounts.rbi +24 -0
- data/rbi/modern_treasury/resources/invoices.rbi +2 -8
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -1
- data/rbi/modern_treasury/resources/ledger_entries.rbi +4 -2
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
- data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
- data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
- data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
- data/rbi/modern_treasury/resources/payment_orders.rbi +5 -8
- data/rbi/modern_treasury/resources/returns.rbi +2 -2
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
- data/sig/modern_treasury/client.rbs +0 -6
- data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
- data/sig/modern_treasury/internal/type/converter.rbs +17 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -2
- data/sig/modern_treasury/models/accounting.rbs +15 -0
- data/sig/modern_treasury/models/address.rbs +70 -0
- data/sig/modern_treasury/models/address_request.rbs +45 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +88 -1089
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/contact_detail.rbs +67 -0
- data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
- data/sig/modern_treasury/models/counterparty.rbs +20 -141
- data/sig/modern_treasury/models/counterparty_create_params.rbs +49 -737
- data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
- data/sig/modern_treasury/models/document.rbs +0 -4
- data/sig/modern_treasury/models/document_create_params.rbs +0 -4
- data/sig/modern_treasury/models/document_list_params.rbs +0 -4
- data/sig/modern_treasury/models/expected_payment.rbs +5 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account.rbs +13 -139
- data/sig/modern_treasury/models/external_account_create_params.rbs +23 -189
- data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
- data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
- data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
- data/sig/modern_treasury/models/internal_account.rbs +4 -71
- data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
- data/sig/modern_treasury/models/invoice.rbs +4 -68
- data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
- data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
- data/sig/modern_treasury/models/ledger_account.rbs +12 -123
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -5
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
- data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +6 -6
- data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
- data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
- data/sig/modern_treasury/models/line_item.rbs +4 -16
- data/sig/modern_treasury/models/payment_action_list_params.rbs +4 -1
- data/sig/modern_treasury/models/payment_order.rbs +22 -69
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
- data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
- data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +4 -4
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
- data/sig/modern_treasury/models/payment_reference.rbs +14 -2
- data/sig/modern_treasury/models/return_list_params.rbs +1 -6
- data/sig/modern_treasury/models/return_object.rbs +15 -10
- data/sig/modern_treasury/models/routing_detail.rbs +4 -71
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
- data/sig/modern_treasury/models/transaction.rbs +8 -53
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
- data/sig/modern_treasury/models.rbs +30 -6
- data/sig/modern_treasury/resources/counterparties.rbs +2 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
- data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
- data/sig/modern_treasury/resources/internal_accounts.rbs +7 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -2
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_entries.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders.rbs +5 -5
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
- metadata +52 -22
- data/lib/modern_treasury/models/paper_item.rb +0 -178
- data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -14
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
- data/lib/modern_treasury/resources/paper_items.rb +0 -68
- data/rbi/modern_treasury/models/paper_item.rbi +0 -204
- data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
- data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -12
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
- data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
- data/sig/modern_treasury/models/paper_item.rbs +0 -122
- data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -7
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
- data/sig/modern_treasury/resources/paper_items.rbs +0 -21
|
@@ -36,11 +36,8 @@ module ModernTreasury
|
|
|
36
36
|
# @!attribute contact_details
|
|
37
37
|
# The invoicer's contact details displayed at the top of the invoice.
|
|
38
38
|
#
|
|
39
|
-
# @return [Array<ModernTreasury::Models::
|
|
40
|
-
optional :contact_details,
|
|
41
|
-
-> {
|
|
42
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InvoiceCreateParams::ContactDetail]
|
|
43
|
-
}
|
|
39
|
+
# @return [Array<ModernTreasury::Models::ContactDetail>, nil]
|
|
40
|
+
optional :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
|
|
44
41
|
|
|
45
42
|
# @!attribute counterparty_billing_address
|
|
46
43
|
# The counterparty's billing address.
|
|
@@ -203,7 +200,7 @@ module ModernTreasury
|
|
|
203
200
|
#
|
|
204
201
|
# @param auto_advance [Boolean, nil] When true, the invoice will progress to unpaid automatically and cannot be edite
|
|
205
202
|
#
|
|
206
|
-
# @param contact_details [Array<ModernTreasury::Models::
|
|
203
|
+
# @param contact_details [Array<ModernTreasury::Models::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
|
|
207
204
|
#
|
|
208
205
|
# @param counterparty_billing_address [ModernTreasury::Models::InvoiceCreateParams::CounterpartyBillingAddress, nil] The counterparty's billing address.
|
|
209
206
|
#
|
|
@@ -247,83 +244,6 @@ module ModernTreasury
|
|
|
247
244
|
#
|
|
248
245
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
249
246
|
|
|
250
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
|
251
|
-
# @!attribute id
|
|
252
|
-
#
|
|
253
|
-
# @return [String]
|
|
254
|
-
required :id, String
|
|
255
|
-
|
|
256
|
-
# @!attribute contact_identifier
|
|
257
|
-
#
|
|
258
|
-
# @return [String]
|
|
259
|
-
required :contact_identifier, String
|
|
260
|
-
|
|
261
|
-
# @!attribute contact_identifier_type
|
|
262
|
-
#
|
|
263
|
-
# @return [Symbol, ModernTreasury::Models::InvoiceCreateParams::ContactDetail::ContactIdentifierType]
|
|
264
|
-
required :contact_identifier_type,
|
|
265
|
-
enum: -> { ModernTreasury::InvoiceCreateParams::ContactDetail::ContactIdentifierType }
|
|
266
|
-
|
|
267
|
-
# @!attribute created_at
|
|
268
|
-
#
|
|
269
|
-
# @return [Time]
|
|
270
|
-
required :created_at, Time
|
|
271
|
-
|
|
272
|
-
# @!attribute discarded_at
|
|
273
|
-
#
|
|
274
|
-
# @return [Time, nil]
|
|
275
|
-
required :discarded_at, Time, nil?: true
|
|
276
|
-
|
|
277
|
-
# @!attribute live_mode
|
|
278
|
-
# This field will be true if this object exists in the live environment or false
|
|
279
|
-
# if it exists in the test environment.
|
|
280
|
-
#
|
|
281
|
-
# @return [Boolean]
|
|
282
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
283
|
-
|
|
284
|
-
# @!attribute object
|
|
285
|
-
#
|
|
286
|
-
# @return [String]
|
|
287
|
-
required :object, String
|
|
288
|
-
|
|
289
|
-
# @!attribute updated_at
|
|
290
|
-
#
|
|
291
|
-
# @return [Time]
|
|
292
|
-
required :updated_at, Time
|
|
293
|
-
|
|
294
|
-
# @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
|
|
295
|
-
# Some parameter documentations has been truncated, see
|
|
296
|
-
# {ModernTreasury::Models::InvoiceCreateParams::ContactDetail} for more details.
|
|
297
|
-
#
|
|
298
|
-
# @param id [String]
|
|
299
|
-
#
|
|
300
|
-
# @param contact_identifier [String]
|
|
301
|
-
#
|
|
302
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::Models::InvoiceCreateParams::ContactDetail::ContactIdentifierType]
|
|
303
|
-
#
|
|
304
|
-
# @param created_at [Time]
|
|
305
|
-
#
|
|
306
|
-
# @param discarded_at [Time, nil]
|
|
307
|
-
#
|
|
308
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
309
|
-
#
|
|
310
|
-
# @param object [String]
|
|
311
|
-
#
|
|
312
|
-
# @param updated_at [Time]
|
|
313
|
-
|
|
314
|
-
# @see ModernTreasury::Models::InvoiceCreateParams::ContactDetail#contact_identifier_type
|
|
315
|
-
module ContactIdentifierType
|
|
316
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
317
|
-
|
|
318
|
-
EMAIL = :email
|
|
319
|
-
PHONE_NUMBER = :phone_number
|
|
320
|
-
WEBSITE = :website
|
|
321
|
-
|
|
322
|
-
# @!method self.values
|
|
323
|
-
# @return [Array<Symbol>]
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
|
|
327
247
|
class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
|
|
328
248
|
# @!attribute country
|
|
329
249
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
@@ -10,11 +10,8 @@ module ModernTreasury
|
|
|
10
10
|
# @!attribute contact_details
|
|
11
11
|
# The invoicer's contact details displayed at the top of the invoice.
|
|
12
12
|
#
|
|
13
|
-
# @return [Array<ModernTreasury::Models::
|
|
14
|
-
optional :contact_details,
|
|
15
|
-
-> {
|
|
16
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InvoiceUpdateParams::ContactDetail]
|
|
17
|
-
}
|
|
13
|
+
# @return [Array<ModernTreasury::Models::ContactDetail>, nil]
|
|
14
|
+
optional :contact_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ContactDetail] }
|
|
18
15
|
|
|
19
16
|
# @!attribute counterparty_billing_address
|
|
20
17
|
# The counterparty's billing address.
|
|
@@ -195,7 +192,7 @@ module ModernTreasury
|
|
|
195
192
|
# Some parameter documentations has been truncated, see
|
|
196
193
|
# {ModernTreasury::Models::InvoiceUpdateParams} for more details.
|
|
197
194
|
#
|
|
198
|
-
# @param contact_details [Array<ModernTreasury::Models::
|
|
195
|
+
# @param contact_details [Array<ModernTreasury::Models::ContactDetail>] The invoicer's contact details displayed at the top of the invoice.
|
|
199
196
|
#
|
|
200
197
|
# @param counterparty_billing_address [ModernTreasury::Models::InvoiceUpdateParams::CounterpartyBillingAddress, nil] The counterparty's billing address.
|
|
201
198
|
#
|
|
@@ -247,83 +244,6 @@ module ModernTreasury
|
|
|
247
244
|
#
|
|
248
245
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
|
249
246
|
|
|
250
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
|
251
|
-
# @!attribute id
|
|
252
|
-
#
|
|
253
|
-
# @return [String]
|
|
254
|
-
required :id, String
|
|
255
|
-
|
|
256
|
-
# @!attribute contact_identifier
|
|
257
|
-
#
|
|
258
|
-
# @return [String]
|
|
259
|
-
required :contact_identifier, String
|
|
260
|
-
|
|
261
|
-
# @!attribute contact_identifier_type
|
|
262
|
-
#
|
|
263
|
-
# @return [Symbol, ModernTreasury::Models::InvoiceUpdateParams::ContactDetail::ContactIdentifierType]
|
|
264
|
-
required :contact_identifier_type,
|
|
265
|
-
enum: -> { ModernTreasury::InvoiceUpdateParams::ContactDetail::ContactIdentifierType }
|
|
266
|
-
|
|
267
|
-
# @!attribute created_at
|
|
268
|
-
#
|
|
269
|
-
# @return [Time]
|
|
270
|
-
required :created_at, Time
|
|
271
|
-
|
|
272
|
-
# @!attribute discarded_at
|
|
273
|
-
#
|
|
274
|
-
# @return [Time, nil]
|
|
275
|
-
required :discarded_at, Time, nil?: true
|
|
276
|
-
|
|
277
|
-
# @!attribute live_mode
|
|
278
|
-
# This field will be true if this object exists in the live environment or false
|
|
279
|
-
# if it exists in the test environment.
|
|
280
|
-
#
|
|
281
|
-
# @return [Boolean]
|
|
282
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
283
|
-
|
|
284
|
-
# @!attribute object
|
|
285
|
-
#
|
|
286
|
-
# @return [String]
|
|
287
|
-
required :object, String
|
|
288
|
-
|
|
289
|
-
# @!attribute updated_at
|
|
290
|
-
#
|
|
291
|
-
# @return [Time]
|
|
292
|
-
required :updated_at, Time
|
|
293
|
-
|
|
294
|
-
# @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
|
|
295
|
-
# Some parameter documentations has been truncated, see
|
|
296
|
-
# {ModernTreasury::Models::InvoiceUpdateParams::ContactDetail} for more details.
|
|
297
|
-
#
|
|
298
|
-
# @param id [String]
|
|
299
|
-
#
|
|
300
|
-
# @param contact_identifier [String]
|
|
301
|
-
#
|
|
302
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::Models::InvoiceUpdateParams::ContactDetail::ContactIdentifierType]
|
|
303
|
-
#
|
|
304
|
-
# @param created_at [Time]
|
|
305
|
-
#
|
|
306
|
-
# @param discarded_at [Time, nil]
|
|
307
|
-
#
|
|
308
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
309
|
-
#
|
|
310
|
-
# @param object [String]
|
|
311
|
-
#
|
|
312
|
-
# @param updated_at [Time]
|
|
313
|
-
|
|
314
|
-
# @see ModernTreasury::Models::InvoiceUpdateParams::ContactDetail#contact_identifier_type
|
|
315
|
-
module ContactIdentifierType
|
|
316
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
317
|
-
|
|
318
|
-
EMAIL = :email
|
|
319
|
-
PHONE_NUMBER = :phone_number
|
|
320
|
-
WEBSITE = :website
|
|
321
|
-
|
|
322
|
-
# @!method self.values
|
|
323
|
-
# @return [Array<Symbol>]
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
|
|
327
247
|
class CounterpartyBillingAddress < ModernTreasury::Internal::Type::BaseModel
|
|
328
248
|
# @!attribute country
|
|
329
249
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
@@ -148,8 +148,8 @@ module ModernTreasury
|
|
|
148
148
|
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
149
149
|
# pending_credits.
|
|
150
150
|
#
|
|
151
|
-
# @return [ModernTreasury::Models::
|
|
152
|
-
required :available_balance, -> { ModernTreasury::
|
|
151
|
+
# @return [ModernTreasury::Models::LedgerBalance]
|
|
152
|
+
required :available_balance, -> { ModernTreasury::LedgerBalance }
|
|
153
153
|
|
|
154
154
|
# @!attribute effective_at_lower_bound
|
|
155
155
|
# The inclusive lower bound of the effective_at timestamp for the returned
|
|
@@ -168,14 +168,14 @@ module ModernTreasury
|
|
|
168
168
|
# @!attribute pending_balance
|
|
169
169
|
# The pending_balance is the sum of all pending and posted entries.
|
|
170
170
|
#
|
|
171
|
-
# @return [ModernTreasury::Models::
|
|
172
|
-
required :pending_balance, -> { ModernTreasury::
|
|
171
|
+
# @return [ModernTreasury::Models::LedgerBalance]
|
|
172
|
+
required :pending_balance, -> { ModernTreasury::LedgerBalance }
|
|
173
173
|
|
|
174
174
|
# @!attribute posted_balance
|
|
175
175
|
# The posted_balance is the sum of all posted entries.
|
|
176
176
|
#
|
|
177
|
-
# @return [ModernTreasury::Models::
|
|
178
|
-
required :posted_balance, -> { ModernTreasury::
|
|
177
|
+
# @return [ModernTreasury::Models::LedgerBalance]
|
|
178
|
+
required :posted_balance, -> { ModernTreasury::LedgerBalance }
|
|
179
179
|
|
|
180
180
|
# @!method initialize(available_balance:, effective_at_lower_bound:, effective_at_upper_bound:, pending_balance:, posted_balance:)
|
|
181
181
|
# Some parameter documentations has been truncated, see
|
|
@@ -187,147 +187,15 @@ module ModernTreasury
|
|
|
187
187
|
# is the posted incoming entries minus the sum of the pending and posted outgoing
|
|
188
188
|
# amounts.
|
|
189
189
|
#
|
|
190
|
-
# @param available_balance [ModernTreasury::Models::
|
|
190
|
+
# @param available_balance [ModernTreasury::Models::LedgerBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
|
191
191
|
#
|
|
192
192
|
# @param effective_at_lower_bound [Time, nil] The inclusive lower bound of the effective_at timestamp for the returned balance
|
|
193
193
|
#
|
|
194
194
|
# @param effective_at_upper_bound [Time, nil] The exclusive upper bound of the effective_at timestamp for the returned balance
|
|
195
195
|
#
|
|
196
|
-
# @param pending_balance [ModernTreasury::Models::
|
|
196
|
+
# @param pending_balance [ModernTreasury::Models::LedgerBalance] The pending_balance is the sum of all pending and posted entries.
|
|
197
197
|
#
|
|
198
|
-
# @param posted_balance [ModernTreasury::Models::
|
|
199
|
-
|
|
200
|
-
# @see ModernTreasury::Models::LedgerAccount::Balances#available_balance
|
|
201
|
-
class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
|
|
202
|
-
# @!attribute amount
|
|
203
|
-
#
|
|
204
|
-
# @return [Integer]
|
|
205
|
-
required :amount, Integer
|
|
206
|
-
|
|
207
|
-
# @!attribute credits
|
|
208
|
-
#
|
|
209
|
-
# @return [Integer]
|
|
210
|
-
required :credits, Integer
|
|
211
|
-
|
|
212
|
-
# @!attribute currency
|
|
213
|
-
# The currency of the ledger account.
|
|
214
|
-
#
|
|
215
|
-
# @return [String]
|
|
216
|
-
required :currency, String
|
|
217
|
-
|
|
218
|
-
# @!attribute currency_exponent
|
|
219
|
-
# The currency exponent of the ledger account.
|
|
220
|
-
#
|
|
221
|
-
# @return [Integer]
|
|
222
|
-
required :currency_exponent, Integer
|
|
223
|
-
|
|
224
|
-
# @!attribute debits
|
|
225
|
-
#
|
|
226
|
-
# @return [Integer]
|
|
227
|
-
required :debits, Integer
|
|
228
|
-
|
|
229
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
230
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
231
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
232
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
233
|
-
# pending_credits.
|
|
234
|
-
#
|
|
235
|
-
# @param amount [Integer]
|
|
236
|
-
#
|
|
237
|
-
# @param credits [Integer]
|
|
238
|
-
#
|
|
239
|
-
# @param currency [String] The currency of the ledger account.
|
|
240
|
-
#
|
|
241
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
242
|
-
#
|
|
243
|
-
# @param debits [Integer]
|
|
244
|
-
end
|
|
245
|
-
|
|
246
|
-
# @see ModernTreasury::Models::LedgerAccount::Balances#pending_balance
|
|
247
|
-
class PendingBalance < ModernTreasury::Internal::Type::BaseModel
|
|
248
|
-
# @!attribute amount
|
|
249
|
-
#
|
|
250
|
-
# @return [Integer]
|
|
251
|
-
required :amount, Integer
|
|
252
|
-
|
|
253
|
-
# @!attribute credits
|
|
254
|
-
#
|
|
255
|
-
# @return [Integer]
|
|
256
|
-
required :credits, Integer
|
|
257
|
-
|
|
258
|
-
# @!attribute currency
|
|
259
|
-
# The currency of the ledger account.
|
|
260
|
-
#
|
|
261
|
-
# @return [String]
|
|
262
|
-
required :currency, String
|
|
263
|
-
|
|
264
|
-
# @!attribute currency_exponent
|
|
265
|
-
# The currency exponent of the ledger account.
|
|
266
|
-
#
|
|
267
|
-
# @return [Integer]
|
|
268
|
-
required :currency_exponent, Integer
|
|
269
|
-
|
|
270
|
-
# @!attribute debits
|
|
271
|
-
#
|
|
272
|
-
# @return [Integer]
|
|
273
|
-
required :debits, Integer
|
|
274
|
-
|
|
275
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
276
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
277
|
-
#
|
|
278
|
-
# @param amount [Integer]
|
|
279
|
-
#
|
|
280
|
-
# @param credits [Integer]
|
|
281
|
-
#
|
|
282
|
-
# @param currency [String] The currency of the ledger account.
|
|
283
|
-
#
|
|
284
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
285
|
-
#
|
|
286
|
-
# @param debits [Integer]
|
|
287
|
-
end
|
|
288
|
-
|
|
289
|
-
# @see ModernTreasury::Models::LedgerAccount::Balances#posted_balance
|
|
290
|
-
class PostedBalance < ModernTreasury::Internal::Type::BaseModel
|
|
291
|
-
# @!attribute amount
|
|
292
|
-
#
|
|
293
|
-
# @return [Integer]
|
|
294
|
-
required :amount, Integer
|
|
295
|
-
|
|
296
|
-
# @!attribute credits
|
|
297
|
-
#
|
|
298
|
-
# @return [Integer]
|
|
299
|
-
required :credits, Integer
|
|
300
|
-
|
|
301
|
-
# @!attribute currency
|
|
302
|
-
# The currency of the ledger account.
|
|
303
|
-
#
|
|
304
|
-
# @return [String]
|
|
305
|
-
required :currency, String
|
|
306
|
-
|
|
307
|
-
# @!attribute currency_exponent
|
|
308
|
-
# The currency exponent of the ledger account.
|
|
309
|
-
#
|
|
310
|
-
# @return [Integer]
|
|
311
|
-
required :currency_exponent, Integer
|
|
312
|
-
|
|
313
|
-
# @!attribute debits
|
|
314
|
-
#
|
|
315
|
-
# @return [Integer]
|
|
316
|
-
required :debits, Integer
|
|
317
|
-
|
|
318
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
319
|
-
# The posted_balance is the sum of all posted entries.
|
|
320
|
-
#
|
|
321
|
-
# @param amount [Integer]
|
|
322
|
-
#
|
|
323
|
-
# @param credits [Integer]
|
|
324
|
-
#
|
|
325
|
-
# @param currency [String] The currency of the ledger account.
|
|
326
|
-
#
|
|
327
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
328
|
-
#
|
|
329
|
-
# @param debits [Integer]
|
|
330
|
-
end
|
|
198
|
+
# @param posted_balance [ModernTreasury::Models::LedgerBalance] The posted_balance is the sum of all posted entries.
|
|
331
199
|
end
|
|
332
200
|
|
|
333
201
|
# If the ledger account links to another object in Modern Treasury, the type will
|
|
@@ -138,11 +138,8 @@ module ModernTreasury
|
|
|
138
138
|
class CurrentLedgerAccountBalanceState < ModernTreasury::Internal::Type::BaseModel
|
|
139
139
|
# @!attribute balances
|
|
140
140
|
#
|
|
141
|
-
# @return [ModernTreasury::Models::
|
|
142
|
-
required :balances,
|
|
143
|
-
-> {
|
|
144
|
-
ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances
|
|
145
|
-
}
|
|
141
|
+
# @return [ModernTreasury::Models::LedgerBalances]
|
|
142
|
+
required :balances, -> { ModernTreasury::LedgerBalances }
|
|
146
143
|
|
|
147
144
|
# @!attribute ledger_account_lock_version
|
|
148
145
|
# The current lock version of the ledger account.
|
|
@@ -165,187 +162,11 @@ module ModernTreasury
|
|
|
165
162
|
# The ledger account's balances and the monitor state as of the current ledger
|
|
166
163
|
# account lock version.
|
|
167
164
|
#
|
|
168
|
-
# @param balances [ModernTreasury::Models::
|
|
165
|
+
# @param balances [ModernTreasury::Models::LedgerBalances]
|
|
169
166
|
#
|
|
170
167
|
# @param ledger_account_lock_version [Integer] The current lock version of the ledger account.
|
|
171
168
|
#
|
|
172
169
|
# @param triggered [Boolean] If `true`, the ledger account's balances satisfy the `alert_condition` at this l
|
|
173
|
-
|
|
174
|
-
# @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState#balances
|
|
175
|
-
class Balances < ModernTreasury::Internal::Type::BaseModel
|
|
176
|
-
# @!attribute available_balance
|
|
177
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
178
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
179
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
180
|
-
# pending_credits.
|
|
181
|
-
#
|
|
182
|
-
# @return [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::AvailableBalance]
|
|
183
|
-
required :available_balance,
|
|
184
|
-
-> {
|
|
185
|
-
ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::AvailableBalance
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
# @!attribute pending_balance
|
|
189
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
190
|
-
#
|
|
191
|
-
# @return [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PendingBalance]
|
|
192
|
-
required :pending_balance,
|
|
193
|
-
-> {
|
|
194
|
-
ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PendingBalance
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
# @!attribute posted_balance
|
|
198
|
-
# The posted_balance is the sum of all posted entries.
|
|
199
|
-
#
|
|
200
|
-
# @return [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PostedBalance]
|
|
201
|
-
required :posted_balance,
|
|
202
|
-
-> {
|
|
203
|
-
ModernTreasury::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PostedBalance
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
# @!method initialize(available_balance:, pending_balance:, posted_balance:)
|
|
207
|
-
# Some parameter documentations has been truncated, see
|
|
208
|
-
# {ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances}
|
|
209
|
-
# for more details.
|
|
210
|
-
#
|
|
211
|
-
# @param available_balance [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::AvailableBalance] The available_balance is the sum of all posted inbound entries and pending outbo
|
|
212
|
-
#
|
|
213
|
-
# @param pending_balance [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PendingBalance] The pending_balance is the sum of all pending and posted entries.
|
|
214
|
-
#
|
|
215
|
-
# @param posted_balance [ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances::PostedBalance] The posted_balance is the sum of all posted entries.
|
|
216
|
-
|
|
217
|
-
# @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances#available_balance
|
|
218
|
-
class AvailableBalance < ModernTreasury::Internal::Type::BaseModel
|
|
219
|
-
# @!attribute amount
|
|
220
|
-
#
|
|
221
|
-
# @return [Integer]
|
|
222
|
-
required :amount, Integer
|
|
223
|
-
|
|
224
|
-
# @!attribute credits
|
|
225
|
-
#
|
|
226
|
-
# @return [Integer]
|
|
227
|
-
required :credits, Integer
|
|
228
|
-
|
|
229
|
-
# @!attribute currency
|
|
230
|
-
# The currency of the ledger account.
|
|
231
|
-
#
|
|
232
|
-
# @return [String]
|
|
233
|
-
required :currency, String
|
|
234
|
-
|
|
235
|
-
# @!attribute currency_exponent
|
|
236
|
-
# The currency exponent of the ledger account.
|
|
237
|
-
#
|
|
238
|
-
# @return [Integer]
|
|
239
|
-
required :currency_exponent, Integer
|
|
240
|
-
|
|
241
|
-
# @!attribute debits
|
|
242
|
-
#
|
|
243
|
-
# @return [Integer]
|
|
244
|
-
required :debits, Integer
|
|
245
|
-
|
|
246
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
247
|
-
# The available_balance is the sum of all posted inbound entries and pending
|
|
248
|
-
# outbound entries. For credit normal, available_amount = posted_credits -
|
|
249
|
-
# pending_debits; for debit normal, available_amount = posted_debits -
|
|
250
|
-
# pending_credits.
|
|
251
|
-
#
|
|
252
|
-
# @param amount [Integer]
|
|
253
|
-
#
|
|
254
|
-
# @param credits [Integer]
|
|
255
|
-
#
|
|
256
|
-
# @param currency [String] The currency of the ledger account.
|
|
257
|
-
#
|
|
258
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
259
|
-
#
|
|
260
|
-
# @param debits [Integer]
|
|
261
|
-
end
|
|
262
|
-
|
|
263
|
-
# @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances#pending_balance
|
|
264
|
-
class PendingBalance < ModernTreasury::Internal::Type::BaseModel
|
|
265
|
-
# @!attribute amount
|
|
266
|
-
#
|
|
267
|
-
# @return [Integer]
|
|
268
|
-
required :amount, Integer
|
|
269
|
-
|
|
270
|
-
# @!attribute credits
|
|
271
|
-
#
|
|
272
|
-
# @return [Integer]
|
|
273
|
-
required :credits, Integer
|
|
274
|
-
|
|
275
|
-
# @!attribute currency
|
|
276
|
-
# The currency of the ledger account.
|
|
277
|
-
#
|
|
278
|
-
# @return [String]
|
|
279
|
-
required :currency, String
|
|
280
|
-
|
|
281
|
-
# @!attribute currency_exponent
|
|
282
|
-
# The currency exponent of the ledger account.
|
|
283
|
-
#
|
|
284
|
-
# @return [Integer]
|
|
285
|
-
required :currency_exponent, Integer
|
|
286
|
-
|
|
287
|
-
# @!attribute debits
|
|
288
|
-
#
|
|
289
|
-
# @return [Integer]
|
|
290
|
-
required :debits, Integer
|
|
291
|
-
|
|
292
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
293
|
-
# The pending_balance is the sum of all pending and posted entries.
|
|
294
|
-
#
|
|
295
|
-
# @param amount [Integer]
|
|
296
|
-
#
|
|
297
|
-
# @param credits [Integer]
|
|
298
|
-
#
|
|
299
|
-
# @param currency [String] The currency of the ledger account.
|
|
300
|
-
#
|
|
301
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
302
|
-
#
|
|
303
|
-
# @param debits [Integer]
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
# @see ModernTreasury::Models::LedgerAccountBalanceMonitor::CurrentLedgerAccountBalanceState::Balances#posted_balance
|
|
307
|
-
class PostedBalance < ModernTreasury::Internal::Type::BaseModel
|
|
308
|
-
# @!attribute amount
|
|
309
|
-
#
|
|
310
|
-
# @return [Integer]
|
|
311
|
-
required :amount, Integer
|
|
312
|
-
|
|
313
|
-
# @!attribute credits
|
|
314
|
-
#
|
|
315
|
-
# @return [Integer]
|
|
316
|
-
required :credits, Integer
|
|
317
|
-
|
|
318
|
-
# @!attribute currency
|
|
319
|
-
# The currency of the ledger account.
|
|
320
|
-
#
|
|
321
|
-
# @return [String]
|
|
322
|
-
required :currency, String
|
|
323
|
-
|
|
324
|
-
# @!attribute currency_exponent
|
|
325
|
-
# The currency exponent of the ledger account.
|
|
326
|
-
#
|
|
327
|
-
# @return [Integer]
|
|
328
|
-
required :currency_exponent, Integer
|
|
329
|
-
|
|
330
|
-
# @!attribute debits
|
|
331
|
-
#
|
|
332
|
-
# @return [Integer]
|
|
333
|
-
required :debits, Integer
|
|
334
|
-
|
|
335
|
-
# @!method initialize(amount:, credits:, currency:, currency_exponent:, debits:)
|
|
336
|
-
# The posted_balance is the sum of all posted entries.
|
|
337
|
-
#
|
|
338
|
-
# @param amount [Integer]
|
|
339
|
-
#
|
|
340
|
-
# @param credits [Integer]
|
|
341
|
-
#
|
|
342
|
-
# @param currency [String] The currency of the ledger account.
|
|
343
|
-
#
|
|
344
|
-
# @param currency_exponent [Integer] The currency exponent of the ledger account.
|
|
345
|
-
#
|
|
346
|
-
# @param debits [Integer]
|
|
347
|
-
end
|
|
348
|
-
end
|
|
349
170
|
end
|
|
350
171
|
end
|
|
351
172
|
end
|