mt-sdk 0.0.1 → 0.0.2
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/README.md +67 -60
- data/lib/modern_treasury/{controllers/account_collection_flow_controller.rb → apis/account_collection_flow_api.rb} +19 -13
- data/lib/modern_treasury/{controllers/account_detail_controller.rb → apis/account_detail_api.rb} +25 -11
- data/lib/modern_treasury/{controllers/balance_report_controller.rb → apis/balance_report_api.rb} +11 -6
- data/lib/modern_treasury/{controllers/base_controller.rb → apis/base_api.rb} +10 -3
- data/lib/modern_treasury/{controllers/connection_controller.rb → apis/connection_api.rb} +10 -9
- data/lib/modern_treasury/{controllers/counterparty_controller.rb → apis/counterparty_api.rb} +25 -15
- data/lib/modern_treasury/{controllers/document_controller.rb → apis/document_api.rb} +52 -28
- data/lib/modern_treasury/{controllers/event_controller.rb → apis/event_api.rb} +13 -10
- data/lib/modern_treasury/{controllers/expected_payment_controller.rb → apis/expected_payment_api.rb} +26 -19
- data/lib/modern_treasury/{controllers/external_account_controller.rb → apis/external_account_api.rb} +28 -16
- data/lib/modern_treasury/{controllers/incoming_payment_detail_controller.rb → apis/incoming_payment_detail_api.rb} +22 -16
- data/lib/modern_treasury/{controllers/internal_account_controller.rb → apis/internal_account_api.rb} +21 -15
- data/lib/modern_treasury/{controllers/invoice_controller.rb → apis/invoice_api.rb} +20 -14
- data/lib/modern_treasury/{controllers/invoice_line_item_controller.rb → apis/invoice_line_item_api.rb} +24 -11
- data/lib/modern_treasury/{controllers/ledger_account_controller.rb → apis/ledger_account_api.rb} +21 -13
- data/lib/modern_treasury/{controllers/ledger_account_category_controller.rb → apis/ledger_account_category_api.rb} +37 -17
- data/lib/modern_treasury/{controllers/ledger_account_payout_controller.rb → apis/ledger_account_payout_api.rb} +18 -12
- data/lib/modern_treasury/{controllers/ledger_account_statement_controller.rb → apis/ledger_account_statement_api.rb} +7 -4
- data/lib/modern_treasury/{controllers/ledger_controller.rb → apis/ledger_api.rb} +21 -13
- data/lib/modern_treasury/{controllers/ledger_entry_controller.rb → apis/ledger_entry_api.rb} +17 -15
- data/lib/modern_treasury/{controllers/ledger_event_handler_controller.rb → apis/ledger_event_handler_api.rb} +18 -12
- data/lib/modern_treasury/{controllers/ledger_transaction_controller.rb → apis/ledger_transaction_api.rb} +34 -24
- data/lib/modern_treasury/{controllers/ledgerable_event_controller.rb → apis/ledgerable_event_api.rb} +7 -4
- data/lib/modern_treasury/{controllers/line_item_controller.rb → apis/line_item_api.rb} +20 -9
- data/lib/modern_treasury/{controllers/paper_item_controller.rb → apis/paper_item_api.rb} +12 -9
- data/lib/modern_treasury/{controllers/payment_flow_controller.rb → apis/payment_flow_api.rb} +19 -13
- data/lib/modern_treasury/{controllers/payment_order_controller.rb → apis/payment_order_api.rb} +47 -36
- data/lib/modern_treasury/{controllers/payment_reference_controller.rb → apis/payment_reference_api.rb} +16 -13
- data/lib/modern_treasury/{controllers/ping_controller.rb → apis/ping_api.rb} +4 -3
- data/lib/modern_treasury/{controllers/return_controller.rb → apis/return_api.rb} +16 -12
- data/lib/modern_treasury/{controllers/reversal_controller.rb → apis/reversal_api.rb} +12 -5
- data/lib/modern_treasury/{controllers/routing_detail_controller.rb → apis/routing_detail_api.rb} +25 -11
- data/lib/modern_treasury/{controllers/transaction_controller.rb → apis/transaction_api.rb} +16 -11
- data/lib/modern_treasury/{controllers/transaction_line_item_controller.rb → apis/transaction_line_item_api.rb} +6 -4
- data/lib/modern_treasury/{controllers/validation_controller.rb → apis/validation_api.rb} +10 -7
- data/lib/modern_treasury/{controllers/virtual_account_controller.rb → apis/virtual_account_api.rb} +23 -15
- data/lib/modern_treasury/client.rb +80 -78
- data/lib/modern_treasury/configuration.rb +18 -47
- data/lib/modern_treasury/http/api_response.rb +19 -0
- data/lib/modern_treasury/logging/configuration/api_logging_configuration.rb +186 -0
- data/lib/modern_treasury/logging/sdk_logger.rb +17 -0
- data/lib/modern_treasury/models/account.rb +26 -26
- data/lib/modern_treasury/models/account1.rb +34 -21
- data/lib/modern_treasury/models/account_collection_flow.rb +15 -16
- data/lib/modern_treasury/models/account_collection_flow_create_request.rb +18 -5
- data/lib/modern_treasury/models/account_collection_flow_update_request.rb +16 -4
- data/lib/modern_treasury/models/account_detail.rb +15 -16
- data/lib/modern_treasury/models/account_detail1.rb +19 -6
- data/lib/modern_treasury/models/account_detail_create_request.rb +19 -6
- data/lib/modern_treasury/models/{account_number_type_enum.rb → account_number_type.rb} +3 -3
- data/lib/modern_treasury/models/{account_number_type2_enum.rb → account_number_type2.rb} +3 -3
- data/lib/modern_treasury/models/{account_type_enum.rb → account_type.rb} +3 -3
- data/lib/modern_treasury/models/{account_type5_enum.rb → account_type5.rb} +3 -3
- data/lib/modern_treasury/models/accounting.rb +19 -5
- data/lib/modern_treasury/models/accounting1.rb +17 -5
- data/lib/modern_treasury/models/{accounts_type_enum.rb → accounts_type.rb} +3 -3
- data/lib/modern_treasury/models/{accounts_type1_enum.rb → accounts_type1.rb} +3 -3
- data/lib/modern_treasury/models/address.rb +13 -14
- data/lib/modern_treasury/models/address_request.rb +23 -10
- data/lib/modern_treasury/models/async_response.rb +3 -3
- data/lib/modern_treasury/models/balance.rb +15 -17
- data/lib/modern_treasury/models/balance_report.rb +14 -15
- data/lib/modern_treasury/models/{balance_report_type_enum.rb → balance_report_type.rb} +3 -3
- data/lib/modern_treasury/models/{balance_report_type1_enum.rb → balance_report_type1.rb} +3 -3
- data/lib/modern_treasury/models/{balance_type_enum.rb → balance_type.rb} +3 -3
- data/lib/modern_treasury/models/balances.rb +2 -2
- data/lib/modern_treasury/models/balances1.rb +3 -3
- data/lib/modern_treasury/models/balances2.rb +7 -7
- data/lib/modern_treasury/models/balances3.rb +8 -8
- data/lib/modern_treasury/models/{charge_bearer_enum.rb → charge_bearer.rb} +3 -3
- data/lib/modern_treasury/models/{code_enum.rb → code.rb} +3 -3
- data/lib/modern_treasury/models/{code1_enum.rb → code1.rb} +3 -3
- data/lib/modern_treasury/models/connection.rb +11 -12
- data/lib/modern_treasury/models/contact_detail.rb +13 -14
- data/lib/modern_treasury/models/contact_detail_create_request.rb +20 -6
- data/lib/modern_treasury/models/{contact_identifier_type_enum.rb → contact_identifier_type.rb} +3 -3
- data/lib/modern_treasury/models/{content_type_enum.rb → content_type.rb} +3 -3
- data/lib/modern_treasury/models/counterparty.rb +16 -17
- data/lib/modern_treasury/models/counterparty_billing_address.rb +23 -10
- data/lib/modern_treasury/models/counterparty_collect_account_request.rb +23 -10
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +4 -4
- data/lib/modern_treasury/models/counterparty_create_request.rb +31 -17
- data/lib/modern_treasury/models/counterparty_shipping_address.rb +23 -10
- data/lib/modern_treasury/models/counterparty_update_request.rb +23 -9
- data/lib/modern_treasury/models/{created_at_enum.rb → created_at.rb} +3 -3
- data/lib/modern_treasury/models/{currency_enum.rb → currency.rb} +3 -3
- data/lib/modern_treasury/models/{currency1_enum.rb → currency1.rb} +3 -3
- data/lib/modern_treasury/models/{direction_enum.rb → direction.rb} +3 -3
- data/lib/modern_treasury/models/{direction1_enum.rb → direction1.rb} +3 -3
- data/lib/modern_treasury/models/{direction10_enum.rb → direction10.rb} +3 -3
- data/lib/modern_treasury/models/{direction14_enum.rb → direction14.rb} +3 -3
- data/lib/modern_treasury/models/{direction15_enum.rb → direction15.rb} +3 -3
- data/lib/modern_treasury/models/{direction4_enum.rb → direction4.rb} +3 -3
- data/lib/modern_treasury/models/{direction5_enum.rb → direction5.rb} +3 -3
- data/lib/modern_treasury/models/{direction9_enum.rb → direction9.rb} +3 -3
- data/lib/modern_treasury/models/document.rb +16 -17
- data/lib/modern_treasury/models/document_create_request.rb +22 -9
- data/lib/modern_treasury/models/document_detail.rb +11 -11
- data/lib/modern_treasury/models/{documentable_type_enum.rb → documentable_type.rb} +3 -3
- data/lib/modern_treasury/models/{documentable_type1_enum.rb → documentable_type1.rb} +3 -3
- data/lib/modern_treasury/models/{documentable_type2_enum.rb → documentable_type2.rb} +3 -3
- data/lib/modern_treasury/models/{effective_at_enum.rb → effective_at.rb} +3 -3
- data/lib/modern_treasury/models/errors.rb +21 -7
- data/lib/modern_treasury/models/event.rb +12 -13
- data/lib/modern_treasury/models/expected_payment.rb +38 -41
- data/lib/modern_treasury/models/expected_payment_create_request.rb +43 -29
- data/lib/modern_treasury/models/expected_payment_update_request.rb +40 -27
- data/lib/modern_treasury/models/external_account.rb +26 -28
- data/lib/modern_treasury/models/external_account_complete_verification_request.rb +17 -4
- data/lib/modern_treasury/models/external_account_create_request.rb +36 -23
- data/lib/modern_treasury/models/external_account_update_request.rb +27 -14
- data/lib/modern_treasury/models/external_account_verify_request.rb +23 -9
- data/lib/modern_treasury/models/{fallback_type_enum.rb → fallback_type.rb} +3 -3
- data/lib/modern_treasury/models/{field_enum.rb → field.rb} +3 -3
- data/lib/modern_treasury/models/file.rb +4 -4
- data/lib/modern_treasury/models/{foreign_exchange_indicator_enum.rb → foreign_exchange_indicator.rb} +3 -3
- data/lib/modern_treasury/models/incoming_payment_detail.rb +41 -43
- data/lib/modern_treasury/models/incoming_payment_detail_create_request.rb +31 -17
- data/lib/modern_treasury/models/incoming_payment_detail_update_request.rb +17 -4
- data/lib/modern_treasury/models/internal_account.rb +32 -34
- data/lib/modern_treasury/models/internal_account_create_request.rb +28 -15
- data/lib/modern_treasury/models/internal_account_update_request.rb +22 -8
- data/lib/modern_treasury/models/invoice.rb +36 -38
- data/lib/modern_treasury/models/invoice_create_request.rb +38 -25
- data/lib/modern_treasury/models/invoice_line_item.rb +13 -15
- data/lib/modern_treasury/models/invoice_line_item_create_request.rb +22 -9
- data/lib/modern_treasury/models/invoice_line_item_update_request.rb +38 -25
- data/lib/modern_treasury/models/invoice_update_request.rb +40 -26
- data/lib/modern_treasury/models/invoicer_address.rb +23 -10
- data/lib/modern_treasury/models/{itemizable_type_enum.rb → itemizable_type.rb} +3 -3
- data/lib/modern_treasury/models/{itemizable_type1_enum.rb → itemizable_type1.rb} +3 -3
- data/lib/modern_treasury/models/ledger.rb +28 -14
- data/lib/modern_treasury/models/ledger_account.rb +21 -22
- data/lib/modern_treasury/models/ledger_account_category.rb +16 -17
- data/lib/modern_treasury/models/ledger_account_category_create_request.rb +26 -13
- data/lib/modern_treasury/models/ledger_account_category_update_request.rb +20 -6
- data/lib/modern_treasury/models/ledger_account_create_request.rb +30 -17
- data/lib/modern_treasury/models/{ledger_account_normal_balance_enum.rb → ledger_account_normal_balance.rb} +3 -3
- data/lib/modern_treasury/models/ledger_account_payout.rb +22 -24
- data/lib/modern_treasury/models/ledger_account_payout_create_request.rb +29 -14
- data/lib/modern_treasury/models/ledger_account_payout_update_request.rb +21 -7
- data/lib/modern_treasury/models/ledger_account_statement.rb +21 -23
- data/lib/modern_treasury/models/ledger_account_statement_create_request.rb +24 -10
- data/lib/modern_treasury/models/ledger_account_update_request.rb +20 -6
- data/lib/modern_treasury/models/ledger_balance.rb +6 -7
- data/lib/modern_treasury/models/ledger_balances.rb +4 -5
- data/lib/modern_treasury/models/ledger_balances_with_effective_at.rb +7 -8
- data/lib/modern_treasury/models/ledger_create_request.rb +20 -6
- data/lib/modern_treasury/models/ledger_entry.rb +24 -26
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +30 -18
- data/lib/modern_treasury/models/ledger_entry_of_transaction_version.rb +21 -23
- data/lib/modern_treasury/models/ledger_event_handler.rb +14 -15
- data/lib/modern_treasury/models/ledger_event_handler_conditions.rb +4 -4
- data/lib/modern_treasury/models/ledger_event_handler_create_request.rb +23 -11
- data/lib/modern_treasury/models/ledger_event_handler_ledger_entries.rb +4 -4
- data/lib/modern_treasury/models/ledger_event_handler_ledger_transaction_template.rb +5 -6
- data/lib/modern_treasury/models/ledger_transaction.rb +24 -25
- data/lib/modern_treasury/models/ledger_transaction_create_request.rb +29 -17
- data/lib/modern_treasury/models/ledger_transaction_reversal_create_request.rb +27 -14
- data/lib/modern_treasury/models/ledger_transaction_update_request.rb +24 -10
- data/lib/modern_treasury/models/ledger_transaction_version.rb +24 -25
- data/lib/modern_treasury/models/{ledger_type_enum.rb → ledger_type.rb} +3 -3
- data/lib/modern_treasury/models/ledger_update_request.rb +20 -6
- data/lib/modern_treasury/models/ledgerable_event.rb +18 -19
- data/lib/modern_treasury/models/ledgerable_event_create_request.rb +26 -13
- data/lib/modern_treasury/models/{ledgerable_type_enum.rb → ledgerable_type.rb} +3 -3
- data/lib/modern_treasury/models/{ledgerable_type2_enum.rb → ledgerable_type2.rb} +3 -3
- data/lib/modern_treasury/models/{ledgerable_type5_enum.rb → ledgerable_type5.rb} +3 -3
- data/lib/modern_treasury/models/{ledgerable_type6_enum.rb → ledgerable_type6.rb} +3 -3
- data/lib/modern_treasury/models/legacy_document_create_request.rb +19 -5
- data/lib/modern_treasury/models/line_item.rb +18 -19
- data/lib/modern_treasury/models/line_item_request.rb +22 -8
- data/lib/modern_treasury/models/line_item_update_request.rb +17 -4
- data/lib/modern_treasury/models/mreturn.rb +48 -50
- data/lib/modern_treasury/models/{normal_balance_enum.rb → normal_balance.rb} +3 -3
- data/lib/modern_treasury/models/{normal_balance2_enum.rb → normal_balance2.rb} +3 -3
- data/lib/modern_treasury/models/order_by.rb +5 -5
- data/lib/modern_treasury/models/{originating_account_number_type_enum.rb → originating_account_number_type.rb} +3 -3
- data/lib/modern_treasury/models/{originating_routing_number_type_enum.rb → originating_routing_number_type.rb} +3 -3
- data/lib/modern_treasury/models/paper_item.rb +25 -27
- data/lib/modern_treasury/models/party_address.rb +23 -10
- data/lib/modern_treasury/models/{party_type_enum.rb → party_type.rb} +3 -3
- data/lib/modern_treasury/models/{party_type5_enum.rb → party_type5.rb} +3 -3
- data/lib/modern_treasury/models/{payment_direction_enum.rb → payment_direction.rb} +3 -3
- data/lib/modern_treasury/models/payment_flow.rb +21 -22
- data/lib/modern_treasury/models/payment_flow_create_request.rb +24 -10
- data/lib/modern_treasury/models/payment_flow_update_request.rb +16 -4
- data/lib/modern_treasury/models/{payment_method_enum.rb → payment_method.rb} +3 -3
- data/lib/modern_treasury/models/{payment_method1_enum.rb → payment_method1.rb} +3 -3
- data/lib/modern_treasury/models/payment_order.rb +90 -95
- data/lib/modern_treasury/models/payment_order_async_create_request.rb +75 -62
- data/lib/modern_treasury/models/payment_order_create_request.rb +77 -63
- data/lib/modern_treasury/models/payment_order_update_request.rb +77 -62
- data/lib/modern_treasury/models/payment_reference.rb +12 -13
- data/lib/modern_treasury/models/payment_reference_object.rb +14 -15
- data/lib/modern_treasury/models/{payment_type_enum.rb → payment_type.rb} +3 -3
- data/lib/modern_treasury/models/{payment_type1_enum.rb → payment_type1.rb} +3 -3
- data/lib/modern_treasury/models/{payment_type13_enum.rb → payment_type13.rb} +3 -3
- data/lib/modern_treasury/models/{payment_type2_enum.rb → payment_type2.rb} +3 -3
- data/lib/modern_treasury/models/{payment_type4_enum.rb → payment_type4.rb} +3 -3
- data/lib/modern_treasury/models/{payment_type5_enum.rb → payment_type5.rb} +3 -3
- data/lib/modern_treasury/models/{payment_type6_enum.rb → payment_type6.rb} +3 -3
- data/lib/modern_treasury/models/ping_response.rb +2 -2
- data/lib/modern_treasury/models/{priority_enum.rb → priority.rb} +3 -3
- data/lib/modern_treasury/models/{priority4_enum.rb → priority4.rb} +3 -3
- data/lib/modern_treasury/models/{reason_enum.rb → reason.rb} +3 -3
- data/lib/modern_treasury/models/{reason1_enum.rb → reason1.rb} +3 -3
- data/lib/modern_treasury/models/receiving_account.rb +43 -28
- data/lib/modern_treasury/models/receiving_account1.rb +34 -21
- data/lib/modern_treasury/models/{receiving_account_type_enum.rb → receiving_account_type.rb} +3 -3
- data/lib/modern_treasury/models/{reconciliation_method_enum.rb → reconciliation_method.rb} +3 -3
- data/lib/modern_treasury/models/{reference_number_type_enum.rb → reference_number_type.rb} +3 -3
- data/lib/modern_treasury/models/{reference_number_type1_enum.rb → reference_number_type1.rb} +3 -3
- data/lib/modern_treasury/models/{referenceable_type_enum.rb → referenceable_type.rb} +3 -3
- data/lib/modern_treasury/models/{referenceable_type1_enum.rb → referenceable_type1.rb} +3 -3
- data/lib/modern_treasury/models/return_create_request.rb +24 -10
- data/lib/modern_treasury/models/{returnable_type_enum.rb → returnable_type.rb} +3 -3
- data/lib/modern_treasury/models/{returnable_type1_enum.rb → returnable_type1.rb} +3 -3
- data/lib/modern_treasury/models/reversal.rb +13 -14
- data/lib/modern_treasury/models/reversal_create_request.rb +21 -7
- data/lib/modern_treasury/models/{role_enum.rb → role.rb} +3 -3
- data/lib/modern_treasury/models/routing_detail.rb +20 -21
- data/lib/modern_treasury/models/routing_detail1.rb +23 -9
- data/lib/modern_treasury/models/routing_detail_create_request.rb +23 -9
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +11 -11
- data/lib/modern_treasury/models/{routing_number_type_enum.rb → routing_number_type.rb} +3 -3
- data/lib/modern_treasury/models/{routing_number_type1_enum.rb → routing_number_type1.rb} +3 -3
- data/lib/modern_treasury/models/{routing_number_type7_enum.rb → routing_number_type7.rb} +3 -3
- data/lib/modern_treasury/models/{routing_number_type8_enum.rb → routing_number_type8.rb} +3 -3
- data/lib/modern_treasury/models/{status_enum.rb → status.rb} +3 -3
- data/lib/modern_treasury/models/{status1_enum.rb → status1.rb} +3 -3
- data/lib/modern_treasury/models/{status11_enum.rb → status11.rb} +3 -3
- data/lib/modern_treasury/models/{status12_enum.rb → status12.rb} +3 -3
- data/lib/modern_treasury/models/{status15_enum.rb → status15.rb} +3 -3
- data/lib/modern_treasury/models/{status16_enum.rb → status16.rb} +3 -3
- data/lib/modern_treasury/models/{status17_enum.rb → status17.rb} +3 -3
- data/lib/modern_treasury/models/{status18_enum.rb → status18.rb} +3 -3
- data/lib/modern_treasury/models/{status19_enum.rb → status19.rb} +3 -3
- data/lib/modern_treasury/models/{status2_enum.rb → status2.rb} +3 -3
- data/lib/modern_treasury/models/{status20_enum.rb → status20.rb} +3 -3
- data/lib/modern_treasury/models/{status21_enum.rb → status21.rb} +3 -3
- data/lib/modern_treasury/models/{status22_enum.rb → status22.rb} +3 -3
- data/lib/modern_treasury/models/{status24_enum.rb → status24.rb} +3 -3
- data/lib/modern_treasury/models/{status3_enum.rb → status3.rb} +3 -3
- data/lib/modern_treasury/models/{status4_enum.rb → status4.rb} +3 -3
- data/lib/modern_treasury/models/{status5_enum.rb → status5.rb} +3 -3
- data/lib/modern_treasury/models/{status6_enum.rb → status6.rb} +3 -3
- data/lib/modern_treasury/models/{status7_enum.rb → status7.rb} +3 -3
- data/lib/modern_treasury/models/{status8_enum.rb → status8.rb} +3 -3
- data/lib/modern_treasury/models/{status9_enum.rb → status9.rb} +3 -3
- data/lib/modern_treasury/models/{subtype_enum.rb → subtype.rb} +3 -3
- data/lib/modern_treasury/models/{supported_payment_type_enum.rb → supported_payment_type.rb} +3 -3
- data/lib/modern_treasury/models/{transactable_type_enum.rb → transactable_type.rb} +3 -3
- data/lib/modern_treasury/models/transaction.rb +31 -33
- data/lib/modern_treasury/models/transaction_line_item.rb +19 -20
- data/lib/modern_treasury/models/{type_enum.rb → type.rb} +3 -3
- data/lib/modern_treasury/models/{type1_enum.rb → type1.rb} +3 -3
- data/lib/modern_treasury/models/{type10_enum.rb → type10.rb} +3 -3
- data/lib/modern_treasury/models/{type11_enum.rb → type11.rb} +3 -3
- data/lib/modern_treasury/models/{type12_enum.rb → type12.rb} +3 -3
- data/lib/modern_treasury/models/{type13_enum.rb → type13.rb} +3 -3
- data/lib/modern_treasury/models/{type14_enum.rb → type14.rb} +3 -3
- data/lib/modern_treasury/models/{type16_enum.rb → type16.rb} +3 -3
- data/lib/modern_treasury/models/{type4_enum.rb → type4.rb} +3 -3
- data/lib/modern_treasury/models/{type5_enum.rb → type5.rb} +3 -3
- data/lib/modern_treasury/models/{type6_enum.rb → type6.rb} +3 -3
- data/lib/modern_treasury/models/{vendor_code_type_enum.rb → vendor_code_type.rb} +3 -3
- data/lib/modern_treasury/models/{vendor_code_type1_enum.rb → vendor_code_type1.rb} +3 -3
- data/lib/modern_treasury/models/{verification_status_enum.rb → verification_status.rb} +3 -3
- data/lib/modern_treasury/models/{verification_status1_enum.rb → verification_status1.rb} +3 -3
- data/lib/modern_treasury/models/virtual_account.rb +20 -21
- data/lib/modern_treasury/models/virtual_account_create_request.rb +29 -15
- data/lib/modern_treasury/models/virtual_account_update_request.rb +19 -6
- data/lib/modern_treasury.rb +153 -152
- metadata +152 -206
- data/test/controllers/controller_test_base.rb +0 -23
- data/test/controllers/test_account_collection_flow_controller.rb +0 -64
- data/test/controllers/test_connection_controller.rb +0 -41
- data/test/controllers/test_counterparty_controller.rb +0 -65
- data/test/controllers/test_document_controller.rb +0 -41
- data/test/controllers/test_event_controller.rb +0 -46
- data/test/controllers/test_expected_payment_controller.rb +0 -71
- data/test/controllers/test_external_account_controller.rb +0 -63
- data/test/controllers/test_incoming_payment_detail_controller.rb +0 -68
- data/test/controllers/test_internal_account_controller.rb +0 -65
- data/test/controllers/test_invoice_controller.rb +0 -56
- data/test/controllers/test_ledger_account_category_controller.rb +0 -67
- data/test/controllers/test_ledger_account_controller.rb +0 -70
- data/test/controllers/test_ledger_account_payout_controller.rb +0 -62
- data/test/controllers/test_ledger_account_statement_controller.rb +0 -36
- data/test/controllers/test_ledger_controller.rb +0 -59
- data/test/controllers/test_ledger_entry_controller.rb +0 -65
- data/test/controllers/test_ledger_event_handler_controller.rb +0 -63
- data/test/controllers/test_ledger_transaction_controller.rb +0 -112
- data/test/controllers/test_ledgerable_event_controller.rb +0 -36
- data/test/controllers/test_paper_item_controller.rb +0 -43
- data/test/controllers/test_payment_flow_controller.rb +0 -67
- data/test/controllers/test_payment_order_controller.rb +0 -76
- data/test/controllers/test_payment_reference_controller.rb +0 -43
- data/test/controllers/test_ping_controller.rb +0 -31
- data/test/controllers/test_return_controller.rb +0 -64
- data/test/controllers/test_transaction_controller.rb +0 -56
- data/test/controllers/test_virtual_account_controller.rb +0 -63
- data/test/http_response_catcher.rb +0 -19
|
@@ -12,14 +12,14 @@ module ModernTreasury
|
|
|
12
12
|
|
|
13
13
|
# One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`,
|
|
14
14
|
# `bacs`, `au_becs`, `interac`, `signet`, `provexchange`.
|
|
15
|
-
# @return [
|
|
15
|
+
# @return [Type5]
|
|
16
16
|
attr_accessor :type
|
|
17
17
|
|
|
18
18
|
# An additional layer of classification for the type of payment order you
|
|
19
19
|
# are doing. This field is only used for `ach` payment orders currently. For
|
|
20
20
|
# `ach` payment orders, the `subtype` represents the SEC code. We
|
|
21
21
|
# currently support `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
|
22
|
-
# @return [
|
|
22
|
+
# @return [Subtype]
|
|
23
23
|
attr_accessor :subtype
|
|
24
24
|
|
|
25
25
|
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
|
@@ -32,13 +32,13 @@ module ModernTreasury
|
|
|
32
32
|
# transaction. A `credit` moves money from your account to someone else's. A
|
|
33
33
|
# `debit` pulls money from someone else's account to your own. Note that
|
|
34
34
|
# wire, rtp, and check payments will always be `credit`.
|
|
35
|
-
# @return [
|
|
35
|
+
# @return [Direction5]
|
|
36
36
|
attr_accessor :direction
|
|
37
37
|
|
|
38
38
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
39
39
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can
|
|
40
40
|
# mean an overnight check rather than standard mail.
|
|
41
|
-
# @return [
|
|
41
|
+
# @return [Priority]
|
|
42
42
|
attr_accessor :priority
|
|
43
43
|
|
|
44
44
|
# The ID of one of your organization's internal accounts.
|
|
@@ -68,7 +68,7 @@ module ModernTreasury
|
|
|
68
68
|
attr_accessor :accounting_ledger_class_id
|
|
69
69
|
|
|
70
70
|
# Three-letter ISO currency code.
|
|
71
|
-
# @return [
|
|
71
|
+
# @return [Currency]
|
|
72
72
|
attr_accessor :currency
|
|
73
73
|
|
|
74
74
|
# Date transactions are to be posted to the participants' account. Defaults
|
|
@@ -111,13 +111,13 @@ module ModernTreasury
|
|
|
111
111
|
# The party that will pay the fees for the payment order. Only applies to
|
|
112
112
|
# wire payment orders. Can be one of shared, sender, or receiver, which
|
|
113
113
|
# correspond respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
|
114
|
-
# @return [
|
|
114
|
+
# @return [ChargeBearer]
|
|
115
115
|
attr_accessor :charge_bearer
|
|
116
116
|
|
|
117
117
|
# Indicates the type of FX transfer to initiate, can be either
|
|
118
118
|
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
|
119
119
|
# currency matches the originating account currency.
|
|
120
|
-
# @return [
|
|
120
|
+
# @return [ForeignExchangeIndicator]
|
|
121
121
|
attr_accessor :foreign_exchange_indicator
|
|
122
122
|
|
|
123
123
|
# If present, indicates a specific foreign exchange contract number that has
|
|
@@ -167,7 +167,7 @@ module ModernTreasury
|
|
|
167
167
|
# A payment type to fallback to if the original type is not valid for the
|
|
168
168
|
# receiving account. Currently, this only supports falling back from RTP to
|
|
169
169
|
# ACH (type=rtp and fallback_type=ach)
|
|
170
|
-
# @return [
|
|
170
|
+
# @return [FallbackType]
|
|
171
171
|
attr_accessor :fallback_type
|
|
172
172
|
|
|
173
173
|
# Either `receiving_account` or `receiving_account_id` must be present. When
|
|
@@ -294,25 +294,28 @@ module ModernTreasury
|
|
|
294
294
|
]
|
|
295
295
|
end
|
|
296
296
|
|
|
297
|
-
def initialize(type
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
297
|
+
def initialize(type:, amount:, direction:, originating_account_id:,
|
|
298
|
+
subtype: SKIP, priority: SKIP, receiving_account_id: SKIP,
|
|
299
|
+
accounting: SKIP, accounting_category_id: SKIP,
|
|
300
|
+
accounting_ledger_class_id: SKIP, currency: SKIP,
|
|
301
|
+
effective_date: SKIP, description: SKIP,
|
|
302
|
+
statement_descriptor: SKIP, remittance_information: SKIP,
|
|
303
|
+
purpose: SKIP, metadata: SKIP, charge_bearer: SKIP,
|
|
304
|
+
foreign_exchange_indicator: SKIP,
|
|
305
|
+
foreign_exchange_contract: SKIP, nsf_protected: SKIP,
|
|
306
|
+
originating_party_name: SKIP,
|
|
307
|
+
ultimate_originating_party_name: SKIP,
|
|
308
|
+
ultimate_originating_party_identifier: SKIP,
|
|
309
|
+
ultimate_receiving_party_name: SKIP,
|
|
310
|
+
ultimate_receiving_party_identifier: SKIP,
|
|
311
|
+
send_remittance_advice: SKIP, expires_at: SKIP,
|
|
312
|
+
fallback_type: SKIP, receiving_account: SKIP,
|
|
313
|
+
ledger_transaction: SKIP, line_items: SKIP,
|
|
314
|
+
transaction_monitoring_enabled: SKIP,
|
|
315
|
+
additional_properties: nil)
|
|
316
|
+
# Add additional model properties to the instance
|
|
317
|
+
additional_properties = {} if additional_properties.nil?
|
|
318
|
+
|
|
316
319
|
@type = type
|
|
317
320
|
@subtype = subtype unless subtype == SKIP
|
|
318
321
|
@amount = amount
|
|
@@ -370,6 +373,7 @@ module ModernTreasury
|
|
|
370
373
|
@transaction_monitoring_enabled =
|
|
371
374
|
transaction_monitoring_enabled
|
|
372
375
|
end
|
|
376
|
+
@additional_properties = additional_properties
|
|
373
377
|
end
|
|
374
378
|
|
|
375
379
|
# Creates an instance of the object from a hash.
|
|
@@ -442,40 +446,48 @@ module ModernTreasury
|
|
|
442
446
|
transaction_monitoring_enabled =
|
|
443
447
|
hash.key?('transaction_monitoring_enabled') ? hash['transaction_monitoring_enabled'] : SKIP
|
|
444
448
|
|
|
449
|
+
# Create a new hash for additional properties, removing known properties.
|
|
450
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
451
|
+
|
|
452
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
453
|
+
new_hash, proc { |value| value }
|
|
454
|
+
)
|
|
455
|
+
|
|
445
456
|
# Create object from extracted values.
|
|
446
|
-
PaymentOrderAsyncCreateRequest.new(type,
|
|
447
|
-
amount,
|
|
448
|
-
direction,
|
|
449
|
-
originating_account_id,
|
|
450
|
-
subtype,
|
|
451
|
-
priority,
|
|
452
|
-
receiving_account_id,
|
|
453
|
-
accounting,
|
|
454
|
-
accounting_category_id,
|
|
455
|
-
accounting_ledger_class_id,
|
|
456
|
-
currency,
|
|
457
|
-
effective_date,
|
|
458
|
-
description,
|
|
459
|
-
statement_descriptor,
|
|
460
|
-
remittance_information,
|
|
461
|
-
purpose,
|
|
462
|
-
metadata,
|
|
463
|
-
charge_bearer,
|
|
464
|
-
foreign_exchange_indicator,
|
|
465
|
-
foreign_exchange_contract,
|
|
466
|
-
nsf_protected,
|
|
467
|
-
originating_party_name,
|
|
468
|
-
ultimate_originating_party_name,
|
|
469
|
-
ultimate_originating_party_identifier,
|
|
470
|
-
ultimate_receiving_party_name,
|
|
471
|
-
ultimate_receiving_party_identifier,
|
|
472
|
-
send_remittance_advice,
|
|
473
|
-
expires_at,
|
|
474
|
-
fallback_type,
|
|
475
|
-
receiving_account,
|
|
476
|
-
ledger_transaction,
|
|
477
|
-
line_items,
|
|
478
|
-
transaction_monitoring_enabled
|
|
457
|
+
PaymentOrderAsyncCreateRequest.new(type: type,
|
|
458
|
+
amount: amount,
|
|
459
|
+
direction: direction,
|
|
460
|
+
originating_account_id: originating_account_id,
|
|
461
|
+
subtype: subtype,
|
|
462
|
+
priority: priority,
|
|
463
|
+
receiving_account_id: receiving_account_id,
|
|
464
|
+
accounting: accounting,
|
|
465
|
+
accounting_category_id: accounting_category_id,
|
|
466
|
+
accounting_ledger_class_id: accounting_ledger_class_id,
|
|
467
|
+
currency: currency,
|
|
468
|
+
effective_date: effective_date,
|
|
469
|
+
description: description,
|
|
470
|
+
statement_descriptor: statement_descriptor,
|
|
471
|
+
remittance_information: remittance_information,
|
|
472
|
+
purpose: purpose,
|
|
473
|
+
metadata: metadata,
|
|
474
|
+
charge_bearer: charge_bearer,
|
|
475
|
+
foreign_exchange_indicator: foreign_exchange_indicator,
|
|
476
|
+
foreign_exchange_contract: foreign_exchange_contract,
|
|
477
|
+
nsf_protected: nsf_protected,
|
|
478
|
+
originating_party_name: originating_party_name,
|
|
479
|
+
ultimate_originating_party_name: ultimate_originating_party_name,
|
|
480
|
+
ultimate_originating_party_identifier: ultimate_originating_party_identifier,
|
|
481
|
+
ultimate_receiving_party_name: ultimate_receiving_party_name,
|
|
482
|
+
ultimate_receiving_party_identifier: ultimate_receiving_party_identifier,
|
|
483
|
+
send_remittance_advice: send_remittance_advice,
|
|
484
|
+
expires_at: expires_at,
|
|
485
|
+
fallback_type: fallback_type,
|
|
486
|
+
receiving_account: receiving_account,
|
|
487
|
+
ledger_transaction: ledger_transaction,
|
|
488
|
+
line_items: line_items,
|
|
489
|
+
transaction_monitoring_enabled: transaction_monitoring_enabled,
|
|
490
|
+
additional_properties: additional_properties)
|
|
479
491
|
end
|
|
480
492
|
|
|
481
493
|
def to_custom_expires_at
|
|
@@ -503,7 +515,7 @@ module ModernTreasury
|
|
|
503
515
|
" #{@send_remittance_advice}, expires_at: #{@expires_at}, fallback_type: #{@fallback_type},"\
|
|
504
516
|
" receiving_account: #{@receiving_account}, ledger_transaction: #{@ledger_transaction},"\
|
|
505
517
|
" line_items: #{@line_items}, transaction_monitoring_enabled:"\
|
|
506
|
-
" #{@transaction_monitoring_enabled}>"
|
|
518
|
+
" #{@transaction_monitoring_enabled}, additional_properties: #{@additional_properties}>"
|
|
507
519
|
end
|
|
508
520
|
|
|
509
521
|
# Provides a debugging-friendly string with detailed object information.
|
|
@@ -530,7 +542,8 @@ module ModernTreasury
|
|
|
530
542
|
" #{@expires_at.inspect}, fallback_type: #{@fallback_type.inspect}, receiving_account:"\
|
|
531
543
|
" #{@receiving_account.inspect}, ledger_transaction: #{@ledger_transaction.inspect},"\
|
|
532
544
|
" line_items: #{@line_items.inspect}, transaction_monitoring_enabled:"\
|
|
533
|
-
" #{@transaction_monitoring_enabled.inspect}
|
|
545
|
+
" #{@transaction_monitoring_enabled.inspect}, additional_properties:"\
|
|
546
|
+
" #{@additional_properties}>"
|
|
534
547
|
end
|
|
535
548
|
end
|
|
536
549
|
end
|
|
@@ -12,14 +12,14 @@ module ModernTreasury
|
|
|
12
12
|
|
|
13
13
|
# One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`,
|
|
14
14
|
# `bacs`, `au_becs`, `interac`, `signet`, `provexchange`.
|
|
15
|
-
# @return [
|
|
15
|
+
# @return [Type5]
|
|
16
16
|
attr_accessor :type
|
|
17
17
|
|
|
18
18
|
# An additional layer of classification for the type of payment order you
|
|
19
19
|
# are doing. This field is only used for `ach` payment orders currently. For
|
|
20
20
|
# `ach` payment orders, the `subtype` represents the SEC code. We
|
|
21
21
|
# currently support `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
|
22
|
-
# @return [
|
|
22
|
+
# @return [Subtype]
|
|
23
23
|
attr_accessor :subtype
|
|
24
24
|
|
|
25
25
|
# Value in specified currency's smallest unit. e.g. $10 would be represented
|
|
@@ -32,13 +32,13 @@ module ModernTreasury
|
|
|
32
32
|
# transaction. A `credit` moves money from your account to someone else's. A
|
|
33
33
|
# `debit` pulls money from someone else's account to your own. Note that
|
|
34
34
|
# wire, rtp, and check payments will always be `credit`.
|
|
35
|
-
# @return [
|
|
35
|
+
# @return [Direction5]
|
|
36
36
|
attr_accessor :direction
|
|
37
37
|
|
|
38
38
|
# Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
39
39
|
# same-day ACH or EFT transfer, respectively. For check payments, `high` can
|
|
40
40
|
# mean an overnight check rather than standard mail.
|
|
41
|
-
# @return [
|
|
41
|
+
# @return [Priority]
|
|
42
42
|
attr_accessor :priority
|
|
43
43
|
|
|
44
44
|
# The ID of one of your organization's internal accounts.
|
|
@@ -68,7 +68,7 @@ module ModernTreasury
|
|
|
68
68
|
attr_accessor :accounting_ledger_class_id
|
|
69
69
|
|
|
70
70
|
# Three-letter ISO currency code.
|
|
71
|
-
# @return [
|
|
71
|
+
# @return [Currency]
|
|
72
72
|
attr_accessor :currency
|
|
73
73
|
|
|
74
74
|
# Date transactions are to be posted to the participants' account. Defaults
|
|
@@ -111,13 +111,13 @@ module ModernTreasury
|
|
|
111
111
|
# The party that will pay the fees for the payment order. Only applies to
|
|
112
112
|
# wire payment orders. Can be one of shared, sender, or receiver, which
|
|
113
113
|
# correspond respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
|
114
|
-
# @return [
|
|
114
|
+
# @return [ChargeBearer]
|
|
115
115
|
attr_accessor :charge_bearer
|
|
116
116
|
|
|
117
117
|
# Indicates the type of FX transfer to initiate, can be either
|
|
118
118
|
# `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
|
119
119
|
# currency matches the originating account currency.
|
|
120
|
-
# @return [
|
|
120
|
+
# @return [ForeignExchangeIndicator]
|
|
121
121
|
attr_accessor :foreign_exchange_indicator
|
|
122
122
|
|
|
123
123
|
# If present, indicates a specific foreign exchange contract number that has
|
|
@@ -167,7 +167,7 @@ module ModernTreasury
|
|
|
167
167
|
# A payment type to fallback to if the original type is not valid for the
|
|
168
168
|
# receiving account. Currently, this only supports falling back from RTP to
|
|
169
169
|
# ACH (type=rtp and fallback_type=ach)
|
|
170
|
-
# @return [
|
|
170
|
+
# @return [FallbackType]
|
|
171
171
|
attr_accessor :fallback_type
|
|
172
172
|
|
|
173
173
|
# Either `receiving_account` or `receiving_account_id` must be present. When
|
|
@@ -302,25 +302,28 @@ module ModernTreasury
|
|
|
302
302
|
]
|
|
303
303
|
end
|
|
304
304
|
|
|
305
|
-
def initialize(type
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
305
|
+
def initialize(type:, amount:, direction:, originating_account_id:,
|
|
306
|
+
subtype: SKIP, priority: SKIP, receiving_account_id: SKIP,
|
|
307
|
+
accounting: SKIP, accounting_category_id: SKIP,
|
|
308
|
+
accounting_ledger_class_id: SKIP, currency: SKIP,
|
|
309
|
+
effective_date: SKIP, description: SKIP,
|
|
310
|
+
statement_descriptor: SKIP, remittance_information: SKIP,
|
|
311
|
+
purpose: SKIP, metadata: SKIP, charge_bearer: SKIP,
|
|
312
|
+
foreign_exchange_indicator: SKIP,
|
|
313
|
+
foreign_exchange_contract: SKIP, nsf_protected: SKIP,
|
|
314
|
+
originating_party_name: SKIP,
|
|
315
|
+
ultimate_originating_party_name: SKIP,
|
|
316
|
+
ultimate_originating_party_identifier: SKIP,
|
|
317
|
+
ultimate_receiving_party_name: SKIP,
|
|
318
|
+
ultimate_receiving_party_identifier: SKIP,
|
|
319
|
+
send_remittance_advice: SKIP, expires_at: SKIP,
|
|
320
|
+
fallback_type: SKIP, receiving_account: SKIP,
|
|
321
|
+
ledger_transaction: SKIP, line_items: SKIP,
|
|
322
|
+
transaction_monitoring_enabled: SKIP, documents: SKIP,
|
|
323
|
+
additional_properties: nil)
|
|
324
|
+
# Add additional model properties to the instance
|
|
325
|
+
additional_properties = {} if additional_properties.nil?
|
|
326
|
+
|
|
324
327
|
@type = type
|
|
325
328
|
@subtype = subtype unless subtype == SKIP
|
|
326
329
|
@amount = amount
|
|
@@ -379,6 +382,7 @@ module ModernTreasury
|
|
|
379
382
|
transaction_monitoring_enabled
|
|
380
383
|
end
|
|
381
384
|
@documents = documents unless documents == SKIP
|
|
385
|
+
@additional_properties = additional_properties
|
|
382
386
|
end
|
|
383
387
|
|
|
384
388
|
# Creates an instance of the object from a hash.
|
|
@@ -461,41 +465,49 @@ module ModernTreasury
|
|
|
461
465
|
|
|
462
466
|
documents = SKIP unless hash.key?('documents')
|
|
463
467
|
|
|
468
|
+
# Create a new hash for additional properties, removing known properties.
|
|
469
|
+
new_hash = hash.reject { |k, _| names.value?(k) }
|
|
470
|
+
|
|
471
|
+
additional_properties = APIHelper.get_additional_properties(
|
|
472
|
+
new_hash, proc { |value| value }
|
|
473
|
+
)
|
|
474
|
+
|
|
464
475
|
# Create object from extracted values.
|
|
465
|
-
PaymentOrderCreateRequest.new(type,
|
|
466
|
-
amount,
|
|
467
|
-
direction,
|
|
468
|
-
originating_account_id,
|
|
469
|
-
subtype,
|
|
470
|
-
priority,
|
|
471
|
-
receiving_account_id,
|
|
472
|
-
accounting,
|
|
473
|
-
accounting_category_id,
|
|
474
|
-
accounting_ledger_class_id,
|
|
475
|
-
currency,
|
|
476
|
-
effective_date,
|
|
477
|
-
description,
|
|
478
|
-
statement_descriptor,
|
|
479
|
-
remittance_information,
|
|
480
|
-
purpose,
|
|
481
|
-
metadata,
|
|
482
|
-
charge_bearer,
|
|
483
|
-
foreign_exchange_indicator,
|
|
484
|
-
foreign_exchange_contract,
|
|
485
|
-
nsf_protected,
|
|
486
|
-
originating_party_name,
|
|
487
|
-
ultimate_originating_party_name,
|
|
488
|
-
ultimate_originating_party_identifier,
|
|
489
|
-
ultimate_receiving_party_name,
|
|
490
|
-
ultimate_receiving_party_identifier,
|
|
491
|
-
send_remittance_advice,
|
|
492
|
-
expires_at,
|
|
493
|
-
fallback_type,
|
|
494
|
-
receiving_account,
|
|
495
|
-
ledger_transaction,
|
|
496
|
-
line_items,
|
|
497
|
-
transaction_monitoring_enabled,
|
|
498
|
-
documents
|
|
476
|
+
PaymentOrderCreateRequest.new(type: type,
|
|
477
|
+
amount: amount,
|
|
478
|
+
direction: direction,
|
|
479
|
+
originating_account_id: originating_account_id,
|
|
480
|
+
subtype: subtype,
|
|
481
|
+
priority: priority,
|
|
482
|
+
receiving_account_id: receiving_account_id,
|
|
483
|
+
accounting: accounting,
|
|
484
|
+
accounting_category_id: accounting_category_id,
|
|
485
|
+
accounting_ledger_class_id: accounting_ledger_class_id,
|
|
486
|
+
currency: currency,
|
|
487
|
+
effective_date: effective_date,
|
|
488
|
+
description: description,
|
|
489
|
+
statement_descriptor: statement_descriptor,
|
|
490
|
+
remittance_information: remittance_information,
|
|
491
|
+
purpose: purpose,
|
|
492
|
+
metadata: metadata,
|
|
493
|
+
charge_bearer: charge_bearer,
|
|
494
|
+
foreign_exchange_indicator: foreign_exchange_indicator,
|
|
495
|
+
foreign_exchange_contract: foreign_exchange_contract,
|
|
496
|
+
nsf_protected: nsf_protected,
|
|
497
|
+
originating_party_name: originating_party_name,
|
|
498
|
+
ultimate_originating_party_name: ultimate_originating_party_name,
|
|
499
|
+
ultimate_originating_party_identifier: ultimate_originating_party_identifier,
|
|
500
|
+
ultimate_receiving_party_name: ultimate_receiving_party_name,
|
|
501
|
+
ultimate_receiving_party_identifier: ultimate_receiving_party_identifier,
|
|
502
|
+
send_remittance_advice: send_remittance_advice,
|
|
503
|
+
expires_at: expires_at,
|
|
504
|
+
fallback_type: fallback_type,
|
|
505
|
+
receiving_account: receiving_account,
|
|
506
|
+
ledger_transaction: ledger_transaction,
|
|
507
|
+
line_items: line_items,
|
|
508
|
+
transaction_monitoring_enabled: transaction_monitoring_enabled,
|
|
509
|
+
documents: documents,
|
|
510
|
+
additional_properties: additional_properties)
|
|
499
511
|
end
|
|
500
512
|
|
|
501
513
|
def to_custom_expires_at
|
|
@@ -523,7 +535,8 @@ module ModernTreasury
|
|
|
523
535
|
" #{@send_remittance_advice}, expires_at: #{@expires_at}, fallback_type: #{@fallback_type},"\
|
|
524
536
|
" receiving_account: #{@receiving_account}, ledger_transaction: #{@ledger_transaction},"\
|
|
525
537
|
" line_items: #{@line_items}, transaction_monitoring_enabled:"\
|
|
526
|
-
" #{@transaction_monitoring_enabled}, documents: #{@documents}
|
|
538
|
+
" #{@transaction_monitoring_enabled}, documents: #{@documents}, additional_properties:"\
|
|
539
|
+
" #{@additional_properties}>"
|
|
527
540
|
end
|
|
528
541
|
|
|
529
542
|
# Provides a debugging-friendly string with detailed object information.
|
|
@@ -550,7 +563,8 @@ module ModernTreasury
|
|
|
550
563
|
" #{@expires_at.inspect}, fallback_type: #{@fallback_type.inspect}, receiving_account:"\
|
|
551
564
|
" #{@receiving_account.inspect}, ledger_transaction: #{@ledger_transaction.inspect},"\
|
|
552
565
|
" line_items: #{@line_items.inspect}, transaction_monitoring_enabled:"\
|
|
553
|
-
" #{@transaction_monitoring_enabled.inspect}, documents: #{@documents.inspect}
|
|
566
|
+
" #{@transaction_monitoring_enabled.inspect}, documents: #{@documents.inspect},"\
|
|
567
|
+
" additional_properties: #{@additional_properties}>"
|
|
554
568
|
end
|
|
555
569
|
end
|
|
556
570
|
end
|