Response Types:
Methods:
client.Ping(ctx context.Context) (moderntreasury.PingResponse, error)
Response Types:
Methods:
client.Connections.List(ctx context.Context, query moderntreasury.ConnectionListParams) (pagination.Page[moderntreasury.Connection], error)
Response Types:
Methods:
client.Counterparties.New(ctx context.Context, body moderntreasury.CounterpartyNewParams) (moderntreasury.Counterparty, error)
client.Counterparties.Get(ctx context.Context, id string) (moderntreasury.Counterparty, error)
client.Counterparties.Update(ctx context.Context, id string, body moderntreasury.CounterpartyUpdateParams) (moderntreasury.Counterparty, error)
client.Counterparties.List(ctx context.Context, query moderntreasury.CounterpartyListParams) (pagination.Page[moderntreasury.Counterparty], error)
client.Counterparties.Delete(ctx context.Context, id string) error
client.Counterparties.CollectAccount(ctx context.Context, id string, body moderntreasury.CounterpartyCollectAccountParams) (moderntreasury.CounterpartyCollectAccountResponse, error)
Response Types:
Methods:
client.Events.Get(ctx context.Context, id string) (moderntreasury.Event, error)
client.Events.List(ctx context.Context, query moderntreasury.EventListParams) (pagination.Page[moderntreasury.Event], error)
Params Types:
Response Types:
Methods:
client.ExpectedPayments.New(ctx context.Context, body moderntreasury.ExpectedPaymentNewParams) (moderntreasury.ExpectedPayment, error)
client.ExpectedPayments.Get(ctx context.Context, id string) (moderntreasury.ExpectedPayment, error)
client.ExpectedPayments.Update(ctx context.Context, id string, body moderntreasury.ExpectedPaymentUpdateParams) (moderntreasury.ExpectedPayment, error)
client.ExpectedPayments.List(ctx context.Context, query moderntreasury.ExpectedPaymentListParams) (pagination.Page[moderntreasury.ExpectedPayment], error)
client.ExpectedPayments.Delete(ctx context.Context, id string) (moderntreasury.ExpectedPayment, error)
Params Types:
Response Types:
- moderntreasury.ExternalAccount
- moderntreasury.ExternalAccountType
- moderntreasury.ExternalAccountVerifyResponse
Methods:
client.ExternalAccounts.New(ctx context.Context, body moderntreasury.ExternalAccountNewParams) (moderntreasury.ExternalAccount, error)
client.ExternalAccounts.Get(ctx context.Context, id string) (moderntreasury.ExternalAccount, error)
client.ExternalAccounts.Update(ctx context.Context, id string, body moderntreasury.ExternalAccountUpdateParams) (moderntreasury.ExternalAccount, error)
client.ExternalAccounts.List(ctx context.Context, query moderntreasury.ExternalAccountListParams) (pagination.Page[moderntreasury.ExternalAccount], error)
client.ExternalAccounts.Delete(ctx context.Context, id string) error
client.ExternalAccounts.CompleteVerification(ctx context.Context, id string, body moderntreasury.ExternalAccountCompleteVerificationParams) (moderntreasury.ExternalAccount, error)
client.ExternalAccounts.Verify(ctx context.Context, id string, body moderntreasury.ExternalAccountVerifyParams) (moderntreasury.ExternalAccountVerifyResponse, error)
Response Types:
Methods:
client.IncomingPaymentDetails.Get(ctx context.Context, id string) (moderntreasury.IncomingPaymentDetail, error)
client.IncomingPaymentDetails.Update(ctx context.Context, id string, body moderntreasury.IncomingPaymentDetailUpdateParams) (moderntreasury.IncomingPaymentDetail, error)
client.IncomingPaymentDetails.List(ctx context.Context, query moderntreasury.IncomingPaymentDetailListParams) (pagination.Page[moderntreasury.IncomingPaymentDetail], error)
client.IncomingPaymentDetails.NewAsync(ctx context.Context, body moderntreasury.IncomingPaymentDetailNewAsyncParams) (shared.AsyncResponse, error)
Response Types:
Methods:
client.Invoices.New(ctx context.Context, body moderntreasury.InvoiceNewParams) (moderntreasury.Invoice, error)
client.Invoices.Get(ctx context.Context, id string) (moderntreasury.Invoice, error)
client.Invoices.Update(ctx context.Context, id string, body moderntreasury.InvoiceUpdateParams) (moderntreasury.Invoice, error)
client.Invoices.List(ctx context.Context, query moderntreasury.InvoiceListParams) (pagination.Page[moderntreasury.Invoice], error)
client.Invoices.AddPaymentOrder(ctx context.Context, id string, paymentOrderID string) error
Response Types:
Methods:
client.Invoices.LineItems.New(ctx context.Context, invoiceID string, body moderntreasury.InvoiceLineItemNewParams) (moderntreasury.InvoiceLineItem, error)
client.Invoices.LineItems.Get(ctx context.Context, invoiceID string, id string) (moderntreasury.InvoiceLineItem, error)
client.Invoices.LineItems.Update(ctx context.Context, invoiceID string, id string, body moderntreasury.InvoiceLineItemUpdateParams) (moderntreasury.InvoiceLineItem, error)
client.Invoices.LineItems.List(ctx context.Context, invoiceID string, query moderntreasury.InvoiceLineItemListParams) (pagination.Page[moderntreasury.InvoiceLineItem], error)
client.Invoices.LineItems.Delete(ctx context.Context, invoiceID string, id string) (moderntreasury.InvoiceLineItem, error)
Response Types:
Methods:
client.Documents.New(ctx context.Context, body moderntreasury.DocumentNewParams) (moderntreasury.Document, error)
client.Documents.Get(ctx context.Context, id string) (moderntreasury.Document, error)
client.Documents.List(ctx context.Context, query moderntreasury.DocumentListParams) (pagination.Page[moderntreasury.Document], error)
Response Types:
Methods:
client.AccountCollectionFlows.New(ctx context.Context, body moderntreasury.AccountCollectionFlowNewParams) (moderntreasury.AccountCollectionFlow, error)
client.AccountCollectionFlows.Get(ctx context.Context, id string) (moderntreasury.AccountCollectionFlow, error)
client.AccountCollectionFlows.Update(ctx context.Context, id string, body moderntreasury.AccountCollectionFlowUpdateParams) (moderntreasury.AccountCollectionFlow, error)
client.AccountCollectionFlows.List(ctx context.Context, query moderntreasury.AccountCollectionFlowListParams) (pagination.Page[moderntreasury.AccountCollectionFlow], error)
Response Types:
Methods:
client.AccountDetails.New(ctx context.Context, accountsType moderntreasury.AccountDetailNewParamsAccountsType, accountID string, body moderntreasury.AccountDetailNewParams) (moderntreasury.AccountDetail, error)
client.AccountDetails.Get(ctx context.Context, accountsType shared.AccountsType, accountID string, id string) (moderntreasury.AccountDetail, error)
client.AccountDetails.List(ctx context.Context, accountsType shared.AccountsType, accountID string, query moderntreasury.AccountDetailListParams) (pagination.Page[moderntreasury.AccountDetail], error)
client.AccountDetails.Delete(ctx context.Context, accountsType moderntreasury.AccountDetailDeleteParamsAccountsType, accountID string, id string) error
Response Types:
Methods:
client.RoutingDetails.New(ctx context.Context, accountsType moderntreasury.RoutingDetailNewParamsAccountsType, accountID string, body moderntreasury.RoutingDetailNewParams) (moderntreasury.RoutingDetail, error)
client.RoutingDetails.Get(ctx context.Context, accountsType shared.AccountsType, accountID string, id string) (moderntreasury.RoutingDetail, error)
client.RoutingDetails.List(ctx context.Context, accountsType shared.AccountsType, accountID string, query moderntreasury.RoutingDetailListParams) (pagination.Page[moderntreasury.RoutingDetail], error)
client.RoutingDetails.Delete(ctx context.Context, accountsType moderntreasury.RoutingDetailDeleteParamsAccountsType, accountID string, id string) error
Response Types:
Methods:
client.InternalAccounts.New(ctx context.Context, body moderntreasury.InternalAccountNewParams) (moderntreasury.InternalAccount, error)
client.InternalAccounts.Get(ctx context.Context, id string) (moderntreasury.InternalAccount, error)
client.InternalAccounts.Update(ctx context.Context, id string, body moderntreasury.InternalAccountUpdateParams) (moderntreasury.InternalAccount, error)
client.InternalAccounts.List(ctx context.Context, query moderntreasury.InternalAccountListParams) (pagination.Page[moderntreasury.InternalAccount], error)
Response Types:
Methods:
client.InternalAccounts.BalanceReports.New(ctx context.Context, internalAccountID string, body moderntreasury.BalanceReportNewParams) (moderntreasury.BalanceReport, error)
client.InternalAccounts.BalanceReports.Get(ctx context.Context, internalAccountID string, id string) (moderntreasury.BalanceReport, error)
client.InternalAccounts.BalanceReports.List(ctx context.Context, internalAccountID string, query moderntreasury.BalanceReportListParams) (pagination.Page[moderntreasury.BalanceReport], error)
client.InternalAccounts.BalanceReports.Delete(ctx context.Context, internalAccountID string, id string) error
Response Types:
Methods:
client.Ledgers.New(ctx context.Context, body moderntreasury.LedgerNewParams) (moderntreasury.Ledger, error)
client.Ledgers.Get(ctx context.Context, id string) (moderntreasury.Ledger, error)
client.Ledgers.Update(ctx context.Context, id string, body moderntreasury.LedgerUpdateParams) (moderntreasury.Ledger, error)
client.Ledgers.List(ctx context.Context, query moderntreasury.LedgerListParams) (pagination.Page[moderntreasury.Ledger], error)
client.Ledgers.Delete(ctx context.Context, id string) (moderntreasury.Ledger, error)
Response Types:
Methods:
client.LedgerableEvents.New(ctx context.Context, body moderntreasury.LedgerableEventNewParams) (moderntreasury.LedgerableEvent, error)
client.LedgerableEvents.Get(ctx context.Context, id string) (moderntreasury.LedgerableEvent, error)
Response Types:
Methods:
client.LedgerAccountCategories.New(ctx context.Context, body moderntreasury.LedgerAccountCategoryNewParams) (moderntreasury.LedgerAccountCategory, error)
client.LedgerAccountCategories.Get(ctx context.Context, id string, query moderntreasury.LedgerAccountCategoryGetParams) (moderntreasury.LedgerAccountCategory, error)
client.LedgerAccountCategories.Update(ctx context.Context, id string, body moderntreasury.LedgerAccountCategoryUpdateParams) (moderntreasury.LedgerAccountCategory, error)
client.LedgerAccountCategories.List(ctx context.Context, query moderntreasury.LedgerAccountCategoryListParams) (pagination.Page[moderntreasury.LedgerAccountCategory], error)
client.LedgerAccountCategories.Delete(ctx context.Context, id string) (moderntreasury.LedgerAccountCategory, error)
client.LedgerAccountCategories.AddLedgerAccount(ctx context.Context, id string, ledgerAccountID string) error
client.LedgerAccountCategories.AddNestedCategory(ctx context.Context, id string, subCategoryID string) error
client.LedgerAccountCategories.RemoveLedgerAccount(ctx context.Context, id string, ledgerAccountID string) error
client.LedgerAccountCategories.RemoveNestedCategory(ctx context.Context, id string, subCategoryID string) error
Response Types:
Methods:
client.LedgerAccounts.New(ctx context.Context, body moderntreasury.LedgerAccountNewParams) (moderntreasury.LedgerAccount, error)
client.LedgerAccounts.Get(ctx context.Context, id string, query moderntreasury.LedgerAccountGetParams) (moderntreasury.LedgerAccount, error)
client.LedgerAccounts.Update(ctx context.Context, id string, body moderntreasury.LedgerAccountUpdateParams) (moderntreasury.LedgerAccount, error)
client.LedgerAccounts.List(ctx context.Context, query moderntreasury.LedgerAccountListParams) (pagination.Page[moderntreasury.LedgerAccount], error)
client.LedgerAccounts.Delete(ctx context.Context, id string) (moderntreasury.LedgerAccount, error)
Response Types:
Methods:
client.LedgerAccountBalanceMonitors.New(ctx context.Context, body moderntreasury.LedgerAccountBalanceMonitorNewParams) (moderntreasury.LedgerAccountBalanceMonitor, error)
client.LedgerAccountBalanceMonitors.Get(ctx context.Context, id string) (moderntreasury.LedgerAccountBalanceMonitor, error)
client.LedgerAccountBalanceMonitors.Update(ctx context.Context, id string, body moderntreasury.LedgerAccountBalanceMonitorUpdateParams) (moderntreasury.LedgerAccountBalanceMonitor, error)
client.LedgerAccountBalanceMonitors.List(ctx context.Context, query moderntreasury.LedgerAccountBalanceMonitorListParams) (pagination.Page[moderntreasury.LedgerAccountBalanceMonitor], error)
client.LedgerAccountBalanceMonitors.Delete(ctx context.Context, id string) (moderntreasury.LedgerAccountBalanceMonitor, error)
Response Types:
Methods:
client.LedgerAccountStatements.New(ctx context.Context, body moderntreasury.LedgerAccountStatementNewParams) (moderntreasury.LedgerAccountStatementNewResponse, error)
client.LedgerAccountStatements.Get(ctx context.Context, id string) (moderntreasury.LedgerAccountStatementGetResponse, error)
Response Types:
Methods:
client.LedgerEntries.Get(ctx context.Context, id string, query moderntreasury.LedgerEntryGetParams) (moderntreasury.LedgerEntry, error)
client.LedgerEntries.Update(ctx context.Context, id string, body moderntreasury.LedgerEntryUpdateParams) (moderntreasury.LedgerEntry, error)
client.LedgerEntries.List(ctx context.Context, query moderntreasury.LedgerEntryListParams) (pagination.Page[moderntreasury.LedgerEntry], error)
Params Types:
Response Types:
Methods:
client.LedgerEventHandlers.New(ctx context.Context, body moderntreasury.LedgerEventHandlerNewParams) (moderntreasury.LedgerEventHandler, error)
client.LedgerEventHandlers.Get(ctx context.Context, id string) (moderntreasury.LedgerEventHandler, error)
client.LedgerEventHandlers.List(ctx context.Context, query moderntreasury.LedgerEventHandlerListParams) (pagination.Page[moderntreasury.LedgerEventHandler], error)
client.LedgerEventHandlers.Delete(ctx context.Context, id string) (moderntreasury.LedgerEventHandler, error)
Response Types:
Methods:
client.LedgerTransactions.New(ctx context.Context, body moderntreasury.LedgerTransactionNewParams) (moderntreasury.LedgerTransaction, error)
client.LedgerTransactions.Get(ctx context.Context, id string) (moderntreasury.LedgerTransaction, error)
client.LedgerTransactions.Update(ctx context.Context, id string, body moderntreasury.LedgerTransactionUpdateParams) (moderntreasury.LedgerTransaction, error)
client.LedgerTransactions.List(ctx context.Context, query moderntreasury.LedgerTransactionListParams) (pagination.Page[moderntreasury.LedgerTransaction], error)
client.LedgerTransactions.NewPartialPost(ctx context.Context, id string, body moderntreasury.LedgerTransactionNewPartialPostParams) (moderntreasury.LedgerTransaction, error)
client.LedgerTransactions.NewReversal(ctx context.Context, id string, body moderntreasury.LedgerTransactionNewReversalParams) (moderntreasury.LedgerTransaction, error)
Response Types:
Methods:
client.LedgerTransactions.Versions.List(ctx context.Context, query moderntreasury.LedgerTransactionVersionListParams) (pagination.Page[moderntreasury.LedgerTransactionVersion], error)
Response Types:
Methods:
client.LineItems.Get(ctx context.Context, itemizableType moderntreasury.LineItemGetParamsItemizableType, itemizableID string, id string) (moderntreasury.LineItem, error)
client.LineItems.Update(ctx context.Context, itemizableType moderntreasury.LineItemUpdateParamsItemizableType, itemizableID string, id string, body moderntreasury.LineItemUpdateParams) (moderntreasury.LineItem, error)
client.LineItems.List(ctx context.Context, itemizableType moderntreasury.LineItemListParamsItemizableType, itemizableID string, query moderntreasury.LineItemListParams) (pagination.Page[moderntreasury.LineItem], error)
Response Types:
Methods:
client.PaymentFlows.New(ctx context.Context, body moderntreasury.PaymentFlowNewParams) (moderntreasury.PaymentFlow, error)
client.PaymentFlows.Get(ctx context.Context, id string) (moderntreasury.PaymentFlow, error)
client.PaymentFlows.Update(ctx context.Context, id string, body moderntreasury.PaymentFlowUpdateParams) (moderntreasury.PaymentFlow, error)
client.PaymentFlows.List(ctx context.Context, query moderntreasury.PaymentFlowListParams) (pagination.Page[moderntreasury.PaymentFlow], error)
Params Types:
Response Types:
Methods:
client.PaymentOrders.New(ctx context.Context, body moderntreasury.PaymentOrderNewParams) (moderntreasury.PaymentOrder, error)
client.PaymentOrders.Get(ctx context.Context, id string) (moderntreasury.PaymentOrder, error)
client.PaymentOrders.Update(ctx context.Context, id string, body moderntreasury.PaymentOrderUpdateParams) (moderntreasury.PaymentOrder, error)
client.PaymentOrders.List(ctx context.Context, query moderntreasury.PaymentOrderListParams) (pagination.Page[moderntreasury.PaymentOrder], error)
client.PaymentOrders.NewAsync(ctx context.Context, body moderntreasury.PaymentOrderNewAsyncParams) (shared.AsyncResponse, error)
Response Types:
Methods:
client.PaymentOrders.Reversals.New(ctx context.Context, paymentOrderID string, body moderntreasury.PaymentOrderReversalNewParams) (moderntreasury.Reversal, error)
client.PaymentOrders.Reversals.Get(ctx context.Context, paymentOrderID string, reversalID string) (moderntreasury.Reversal, error)
client.PaymentOrders.Reversals.List(ctx context.Context, paymentOrderID string, query moderntreasury.PaymentOrderReversalListParams) (pagination.Page[moderntreasury.Reversal], error)
Response Types:
Methods:
client.PaymentReferences.Get(ctx context.Context, id string) (moderntreasury.PaymentReference, error)
client.PaymentReferences.List(ctx context.Context, query moderntreasury.PaymentReferenceListParams) (pagination.Page[moderntreasury.PaymentReference], error)
Response Types:
Methods:
client.Returns.New(ctx context.Context, body moderntreasury.ReturnNewParams) (moderntreasury.ReturnObject, error)
client.Returns.Get(ctx context.Context, id string) (moderntreasury.ReturnObject, error)
client.Returns.List(ctx context.Context, query moderntreasury.ReturnListParams) (pagination.Page[moderntreasury.ReturnObject], error)
Response Types:
Methods:
client.Transactions.New(ctx context.Context, body moderntreasury.TransactionNewParams) (moderntreasury.Transaction, error)
client.Transactions.Get(ctx context.Context, id string) (moderntreasury.Transaction, error)
client.Transactions.Update(ctx context.Context, id string, body moderntreasury.TransactionUpdateParams) (moderntreasury.Transaction, error)
client.Transactions.List(ctx context.Context, query moderntreasury.TransactionListParams) (pagination.Page[moderntreasury.Transaction], error)
client.Transactions.Delete(ctx context.Context, id string) error
Response Types:
Methods:
client.Transactions.LineItems.New(ctx context.Context, body moderntreasury.TransactionLineItemNewParams) (moderntreasury.TransactionLineItem, error)
client.Transactions.LineItems.Get(ctx context.Context, id string) (moderntreasury.TransactionLineItem, error)
client.Transactions.LineItems.List(ctx context.Context, query moderntreasury.TransactionLineItemListParams) (pagination.Page[moderntreasury.TransactionLineItem], error)
client.Transactions.LineItems.Delete(ctx context.Context, id string) error
Response Types:
Methods:
client.Validations.ValidateRoutingNumber(ctx context.Context, query moderntreasury.ValidationValidateRoutingNumberParams) (moderntreasury.RoutingNumberLookupRequest, error)
Response Types:
Methods:
client.PaperItems.Get(ctx context.Context, id string) (moderntreasury.PaperItem, error)
client.PaperItems.List(ctx context.Context, query moderntreasury.PaperItemListParams) (pagination.Page[moderntreasury.PaperItem], error)
Methods:
client.Webhooks.GetSignature(payload []byte, key string) (string, error)
client.Webhooks.ValidateSignature(payload []byte, key string, headers http.Header) (bool, error)
Response Types:
Methods:
client.VirtualAccounts.New(ctx context.Context, body moderntreasury.VirtualAccountNewParams) (moderntreasury.VirtualAccount, error)
client.VirtualAccounts.Get(ctx context.Context, id string) (moderntreasury.VirtualAccount, error)
client.VirtualAccounts.Update(ctx context.Context, id string, body moderntreasury.VirtualAccountUpdateParams) (moderntreasury.VirtualAccount, error)
client.VirtualAccounts.List(ctx context.Context, query moderntreasury.VirtualAccountListParams) (pagination.Page[moderntreasury.VirtualAccount], error)
client.VirtualAccounts.Delete(ctx context.Context, id string) (moderntreasury.VirtualAccount, error)
Response Types:
Methods:
client.BulkRequests.New(ctx context.Context, body moderntreasury.BulkRequestNewParams) (moderntreasury.BulkRequest, error)
client.BulkRequests.Get(ctx context.Context, id string) (moderntreasury.BulkRequest, error)
client.BulkRequests.List(ctx context.Context, query moderntreasury.BulkRequestListParams) (pagination.Page[moderntreasury.BulkRequest], error)
Response Types:
Methods:
client.BulkResults.Get(ctx context.Context, id string) (moderntreasury.BulkResult, error)
client.BulkResults.List(ctx context.Context, query moderntreasury.BulkResultListParams) (pagination.Page[moderntreasury.BulkResult], error)
Response Types:
Methods:
client.LedgerAccountSettlements.New(ctx context.Context, body moderntreasury.LedgerAccountSettlementNewParams) (moderntreasury.LedgerAccountSettlement, error)
client.LedgerAccountSettlements.Get(ctx context.Context, id string) (moderntreasury.LedgerAccountSettlement, error)
client.LedgerAccountSettlements.Update(ctx context.Context, id string, body moderntreasury.LedgerAccountSettlementUpdateParams) (moderntreasury.LedgerAccountSettlement, error)
client.LedgerAccountSettlements.List(ctx context.Context, query moderntreasury.LedgerAccountSettlementListParams) (pagination.Page[moderntreasury.LedgerAccountSettlement], error)
Methods:
client.LedgerAccountSettlements.AccountEntries.Update(ctx context.Context, id string, body moderntreasury.LedgerAccountSettlementAccountEntryUpdateParams) error
client.LedgerAccountSettlements.AccountEntries.Delete(ctx context.Context, id string, body moderntreasury.LedgerAccountSettlementAccountEntryDeleteParams) error
Response Types:
Methods:
client.ForeignExchangeQuotes.New(ctx context.Context, body moderntreasury.ForeignExchangeQuoteNewParams) (moderntreasury.ForeignExchangeQuote, error)
client.ForeignExchangeQuotes.Get(ctx context.Context, id string) (moderntreasury.ForeignExchangeQuote, error)
client.ForeignExchangeQuotes.List(ctx context.Context, query moderntreasury.ForeignExchangeQuoteListParams) (pagination.Page[moderntreasury.ForeignExchangeQuote], error)
Response Types:
Methods:
client.ConnectionLegalEntities.New(ctx context.Context, body moderntreasury.ConnectionLegalEntityNewParams) (moderntreasury.ConnectionLegalEntity, error)
client.ConnectionLegalEntities.Get(ctx context.Context, id string) (moderntreasury.ConnectionLegalEntity, error)
client.ConnectionLegalEntities.Update(ctx context.Context, id string, body moderntreasury.ConnectionLegalEntityUpdateParams) (moderntreasury.ConnectionLegalEntity, error)
client.ConnectionLegalEntities.List(ctx context.Context, query moderntreasury.ConnectionLegalEntityListParams) (pagination.Page[moderntreasury.ConnectionLegalEntity], error)
Params Types:
Response Types:
Methods:
client.LegalEntities.New(ctx context.Context, body moderntreasury.LegalEntityNewParams) (moderntreasury.LegalEntity, error)
client.LegalEntities.Get(ctx context.Context, id string) (moderntreasury.LegalEntity, error)
client.LegalEntities.Update(ctx context.Context, id string, body moderntreasury.LegalEntityUpdateParams) (moderntreasury.LegalEntity, error)
client.LegalEntities.List(ctx context.Context, query moderntreasury.LegalEntityListParams) (pagination.Page[moderntreasury.LegalEntity], error)
Response Types:
Methods:
client.LegalEntityAssociations.New(ctx context.Context, body moderntreasury.LegalEntityAssociationNewParams) (moderntreasury.LegalEntityAssociation, error)