Documentation
¶
Index ¶
- func Bool(value bool) param.Field[bool]
- func F(value T) param.Field[T]
- func Float(value float64) param.Field[float64]
- func Int(value int64) param.Field[int64]
- func Null() param.Field[T]
- func Raw(value any) param.Field[T]
- func String(value string) param.Field[string]
- type AccountCollectionFlow
- type AccountCollectionFlowListParams
- type AccountCollectionFlowNewParams
- type AccountCollectionFlowPaymentType
- type AccountCollectionFlowService
- func (r *AccountCollectionFlowService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AccountCollectionFlow, err error)
- func (r *AccountCollectionFlowService) List(ctx context.Context, query AccountCollectionFlowListParams, ...) (res *shared.Page[AccountCollectionFlow], err error)
- func (r *AccountCollectionFlowService) ListAutoPaging(ctx context.Context, query AccountCollectionFlowListParams, ...) *shared.PageAutoPager[AccountCollectionFlow]
- func (r *AccountCollectionFlowService) New(ctx context.Context, body AccountCollectionFlowNewParams, ...) (res *AccountCollectionFlow, err error)
- func (r *AccountCollectionFlowService) Update(ctx context.Context, id string, body AccountCollectionFlowUpdateParams, ...) (res *AccountCollectionFlow, err error)
- type AccountCollectionFlowStatus
- type AccountCollectionFlowUpdateParams
- type AccountCollectionFlowUpdateParamsStatus
- type AccountDetail
- type AccountDetailAccountNumberType
- type AccountDetailDeleteParamsAccountsType
- type AccountDetailListParams
- type AccountDetailNewParams
- type AccountDetailNewParamsAccountNumberType
- type AccountDetailNewParamsAccountsType
- type AccountDetailService
- func (r *AccountDetailService) Delete(ctx context.Context, accountsType AccountDetailDeleteParamsAccountsType, ...) (err error)
- func (r *AccountDetailService) Get(ctx context.Context, accountsType shared.AccountsType, accountID string, ...) (res *AccountDetail, err error)
- func (r *AccountDetailService) List(ctx context.Context, accountsType shared.AccountsType, accountID string, ...) (res *shared.Page[AccountDetail], err error)
- func (r *AccountDetailService) ListAutoPaging(ctx context.Context, accountsType shared.AccountsType, accountID string, ...) *shared.PageAutoPager[AccountDetail]
- func (r *AccountDetailService) New(ctx context.Context, accountsType AccountDetailNewParamsAccountsType, ...) (res *AccountDetail, err error)
- type AccountsType
- type AsyncResponse
- type BalanceReport
- type BalanceReportBalance
- type BalanceReportBalanceReportType
- type BalanceReportBalancesBalanceType
- type BalanceReportBalancesVendorCodeType
- type BalanceReportListParams
- type BalanceReportListParamsBalanceReportType
- type Client
- type Connection
- type ConnectionListParams
- type ConnectionService
- func (r *ConnectionService) List(ctx context.Context, query ConnectionListParams, opts ...option.RequestOption) (res *shared.Page[Connection], err error)
- func (r *ConnectionService) ListAutoPaging(ctx context.Context, query ConnectionListParams, opts ...option.RequestOption) *shared.PageAutoPager[Connection]
- type Counterparty
- type CounterpartyAccount
- type CounterpartyAccountsContactDetail
- type CounterpartyAccountsContactDetailsContactIdentifierType
- type CounterpartyAccountsPartyAddress
- type CounterpartyAccountsPartyType
- type CounterpartyAccountsVerificationStatus
- type CounterpartyCollectAccountParams
- type CounterpartyCollectAccountParamsDirection
- type CounterpartyCollectAccountParamsField
- type CounterpartyCollectAccountResponse
- type CounterpartyListParams
- type CounterpartyNewParams
- type CounterpartyNewParamsAccount
- type CounterpartyNewParamsAccounting
- type CounterpartyNewParamsAccountingType
- type CounterpartyNewParamsAccountsAccountDetail
- type CounterpartyNewParamsAccountsAccountDetailsAccountNumberType
- type CounterpartyNewParamsAccountsContactDetail
- type CounterpartyNewParamsAccountsContactDetailsContactIdentifierType
- type CounterpartyNewParamsAccountsLedgerAccount
- type CounterpartyNewParamsAccountsLedgerAccountLedgerableType
- type CounterpartyNewParamsAccountsLedgerAccountNormalBalance
- type CounterpartyNewParamsAccountsPartyAddress
- type CounterpartyNewParamsAccountsPartyType
- type CounterpartyNewParamsAccountsRoutingDetail
- type CounterpartyNewParamsAccountsRoutingDetailsPaymentType
- type CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType
- type CounterpartyNewParamsLedgerType
- type CounterpartyNewParamsVerificationStatus
- type CounterpartyService
- func (r *CounterpartyService) CollectAccount(ctx context.Context, id string, body CounterpartyCollectAccountParams, ...) (res *CounterpartyCollectAccountResponse, err error)
- func (r *CounterpartyService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
- func (r *CounterpartyService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Counterparty, err error)
- func (r *CounterpartyService) List(ctx context.Context, query CounterpartyListParams, ...) (res *shared.Page[Counterparty], err error)
- func (r *CounterpartyService) ListAutoPaging(ctx context.Context, query CounterpartyListParams, ...) *shared.PageAutoPager[Counterparty]
- func (r *CounterpartyService) New(ctx context.Context, body CounterpartyNewParams, opts ...option.RequestOption) (res *Counterparty, err error)
- func (r *CounterpartyService) Update(ctx context.Context, id string, body CounterpartyUpdateParams, ...) (res *Counterparty, err error)
- type CounterpartyUpdateParams
- type CounterpartyVerificationStatus
- type Currency
- type Document
- type DocumentDocumentDetail
- type DocumentDocumentableType
- type DocumentFile
- type DocumentListParams
- type DocumentListParamsDocumentableType
- type DocumentNewParams
- type DocumentNewParamsDocumentableType
- type DocumentService
- func (r *DocumentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Document, err error)
- func (r *DocumentService) List(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) (res *shared.Page[Document], err error)
- func (r *DocumentService) ListAutoPaging(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) *shared.PageAutoPager[Document]
- func (r *DocumentService) New(ctx context.Context, body DocumentNewParams, opts ...option.RequestOption) (res *Document, err error)
- type Error
- type Event
- type EventListParams
- type EventService
- func (r *EventService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Event, err error)
- func (r *EventService) List(ctx context.Context, query EventListParams, opts ...option.RequestOption) (res *shared.Page[Event], err error)
- func (r *EventService) ListAutoPaging(ctx context.Context, query EventListParams, opts ...option.RequestOption) *shared.PageAutoPager[Event]
- type ExpectedPayment
- type ExpectedPaymentDirection
- type ExpectedPaymentListParams
- type ExpectedPaymentListParamsDirection
- type ExpectedPaymentListParamsStatus
- type ExpectedPaymentListParamsType
- type ExpectedPaymentNewParams
- type ExpectedPaymentNewParamsDirection
- type ExpectedPaymentNewParamsLineItem
- type ExpectedPaymentReconciliationMethod
- type ExpectedPaymentService
- func (r *ExpectedPaymentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *ExpectedPayment, err error)
- func (r *ExpectedPaymentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ExpectedPayment, err error)
- func (r *ExpectedPaymentService) List(ctx context.Context, query ExpectedPaymentListParams, ...) (res *shared.Page[ExpectedPayment], err error)
- func (r *ExpectedPaymentService) ListAutoPaging(ctx context.Context, query ExpectedPaymentListParams, ...) *shared.PageAutoPager[ExpectedPayment]
- func (r *ExpectedPaymentService) New(ctx context.Context, body ExpectedPaymentNewParams, ...) (res *ExpectedPayment, err error)
- func (r *ExpectedPaymentService) Update(ctx context.Context, id string, body ExpectedPaymentUpdateParams, ...) (res *ExpectedPayment, err error)
- type ExpectedPaymentStatus
- type ExpectedPaymentType
- type ExpectedPaymentUpdateParams
- type ExpectedPaymentUpdateParamsDirection
- type ExternalAccount
- type ExternalAccountCompleteVerificationParams
- type ExternalAccountContactDetail
- type ExternalAccountContactDetailsContactIdentifierType
- type ExternalAccountListParams
- type ExternalAccountNewParams
- type ExternalAccountNewParamsAccountDetail
- type ExternalAccountNewParamsAccountDetailsAccountNumberType
- type ExternalAccountNewParamsContactDetail
- type ExternalAccountNewParamsContactDetailsContactIdentifierType
- type ExternalAccountNewParamsLedgerAccount
- type ExternalAccountNewParamsLedgerAccountLedgerableType
- type ExternalAccountNewParamsLedgerAccountNormalBalance
- type ExternalAccountNewParamsPartyAddress
- type ExternalAccountNewParamsPartyType
- type ExternalAccountNewParamsRoutingDetail
- type ExternalAccountNewParamsRoutingDetailsPaymentType
- type ExternalAccountNewParamsRoutingDetailsRoutingNumberType
- type ExternalAccountPartyAddress
- type ExternalAccountPartyType
- type ExternalAccountService
- func (r *ExternalAccountService) CompleteVerification(ctx context.Context, id string, body ExternalAccountCompleteVerificationParams, ...) (res *ExternalAccount, err error)
- func (r *ExternalAccountService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
- func (r *ExternalAccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ExternalAccount, err error)
- func (r *ExternalAccountService) List(ctx context.Context, query ExternalAccountListParams, ...) (res *shared.Page[ExternalAccount], err error)
- func (r *ExternalAccountService) ListAutoPaging(ctx context.Context, query ExternalAccountListParams, ...) *shared.PageAutoPager[ExternalAccount]
- func (r *ExternalAccountService) New(ctx context.Context, body ExternalAccountNewParams, ...) (res *ExternalAccount, err error)
- func (r *ExternalAccountService) Update(ctx context.Context, id string, body ExternalAccountUpdateParams, ...) (res *ExternalAccount, err error)
- func (r *ExternalAccountService) Verify(ctx context.Context, id string, body ExternalAccountVerifyParams, ...) (res *ExternalAccount, err error)
- type ExternalAccountType
- type ExternalAccountUpdateParams
- type ExternalAccountUpdateParamsPartyAddress
- type ExternalAccountUpdateParamsPartyType
- type ExternalAccountVerificationStatus
- type ExternalAccountVerifyParams
- type ExternalAccountVerifyParamsPaymentType
- type IncomingPaymentDetail
- type IncomingPaymentDetailDirection
- type IncomingPaymentDetailListParams
- type IncomingPaymentDetailListParamsDirection
- type IncomingPaymentDetailListParamsStatus
- type IncomingPaymentDetailListParamsType
- type IncomingPaymentDetailNewAsyncParams
- type IncomingPaymentDetailNewAsyncParamsDirection
- type IncomingPaymentDetailNewAsyncParamsType
- type IncomingPaymentDetailOriginatingAccountNumberType
- type IncomingPaymentDetailOriginatingRoutingNumberType
- type IncomingPaymentDetailService
- func (r *IncomingPaymentDetailService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *IncomingPaymentDetail, err error)
- func (r *IncomingPaymentDetailService) List(ctx context.Context, query IncomingPaymentDetailListParams, ...) (res *shared.Page[IncomingPaymentDetail], err error)
- func (r *IncomingPaymentDetailService) ListAutoPaging(ctx context.Context, query IncomingPaymentDetailListParams, ...) *shared.PageAutoPager[IncomingPaymentDetail]
- func (r *IncomingPaymentDetailService) NewAsync(ctx context.Context, body IncomingPaymentDetailNewAsyncParams, ...) (res *shared.AsyncResponse, err error)
- func (r *IncomingPaymentDetailService) Update(ctx context.Context, id string, body IncomingPaymentDetailUpdateParams, ...) (res *IncomingPaymentDetail, err error)
- type IncomingPaymentDetailStatus
- type IncomingPaymentDetailType
- type IncomingPaymentDetailUpdateParams
- type InternalAccount
- type InternalAccountAccountType
- type InternalAccountBalanceReportService
- func (r *InternalAccountBalanceReportService) Get(ctx context.Context, internalAccountID string, id string, ...) (res *BalanceReport, err error)
- func (r *InternalAccountBalanceReportService) List(ctx context.Context, internalAccountID string, query BalanceReportListParams, ...) (res *shared.Page[BalanceReport], err error)
- func (r *InternalAccountBalanceReportService) ListAutoPaging(ctx context.Context, internalAccountID string, query BalanceReportListParams, ...) *shared.PageAutoPager[BalanceReport]
- type InternalAccountListParams
- type InternalAccountListParamsPaymentDirection
- type InternalAccountListParamsPaymentType
- type InternalAccountNewParams
- type InternalAccountNewParamsCurrency
- type InternalAccountNewParamsPartyAddress
- type InternalAccountPartyAddress
- type InternalAccountPartyType
- type InternalAccountService
- func (r *InternalAccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *InternalAccount, err error)
- func (r *InternalAccountService) List(ctx context.Context, query InternalAccountListParams, ...) (res *shared.Page[InternalAccount], err error)
- func (r *InternalAccountService) ListAutoPaging(ctx context.Context, query InternalAccountListParams, ...) *shared.PageAutoPager[InternalAccount]
- func (r *InternalAccountService) New(ctx context.Context, body InternalAccountNewParams, ...) (res *InternalAccount, err error)
- func (r *InternalAccountService) Update(ctx context.Context, id string, body InternalAccountUpdateParams, ...) (res *InternalAccount, err error)
- type InternalAccountUpdateParams
- type Invoice
- type InvoiceContactDetail
- type InvoiceContactDetailsContactIdentifierType
- type InvoiceCounterpartyBillingAddress
- type InvoiceCounterpartyShippingAddress
- type InvoiceInvoicerAddress
- type InvoiceLineItem
- type InvoiceLineItemListParams
- type InvoiceLineItemNewParams
- type InvoiceLineItemService
- func (r *InvoiceLineItemService) Delete(ctx context.Context, invoiceID string, id string, opts ...option.RequestOption) (res *InvoiceLineItem, err error)
- func (r *InvoiceLineItemService) Get(ctx context.Context, invoiceID string, id string, opts ...option.RequestOption) (res *InvoiceLineItem, err error)
- func (r *InvoiceLineItemService) List(ctx context.Context, invoiceID string, query InvoiceLineItemListParams, ...) (res *shared.Page[InvoiceLineItem], err error)
- func (r *InvoiceLineItemService) ListAutoPaging(ctx context.Context, invoiceID string, query InvoiceLineItemListParams, ...) *shared.PageAutoPager[InvoiceLineItem]
- func (r *InvoiceLineItemService) New(ctx context.Context, invoiceID string, body InvoiceLineItemNewParams, ...) (res *InvoiceLineItem, err error)
- func (r *InvoiceLineItemService) Update(ctx context.Context, invoiceID string, id string, ...) (res *InvoiceLineItem, err error)
- type InvoiceLineItemUpdateParams
- type InvoiceListParams
- type InvoiceNewParams
- type InvoiceNewParamsContactDetail
- type InvoiceNewParamsContactDetailsContactIdentifierType
- type InvoiceNewParamsCounterpartyBillingAddress
- type InvoiceNewParamsCounterpartyShippingAddress
- type InvoiceNewParamsInvoicerAddress
- type InvoiceNewParamsPaymentMethod
- type InvoiceNewParamsPaymentType
- type InvoicePaymentMethod
- type InvoicePaymentType
- type InvoiceService
- func (r *InvoiceService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Invoice, err error)
- func (r *InvoiceService) List(ctx context.Context, query InvoiceListParams, opts ...option.RequestOption) (res *shared.Page[Invoice], err error)
- func (r *InvoiceService) ListAutoPaging(ctx context.Context, query InvoiceListParams, opts ...option.RequestOption) *shared.PageAutoPager[Invoice]
- func (r *InvoiceService) New(ctx context.Context, body InvoiceNewParams, opts ...option.RequestOption) (res *Invoice, err error)
- func (r *InvoiceService) Update(ctx context.Context, id string, body InvoiceUpdateParams, ...) (res *Invoice, err error)
- type InvoiceStatus
- type InvoiceUpdateParams
- type InvoiceUpdateParamsContactDetail
- type InvoiceUpdateParamsContactDetailsContactIdentifierType
- type InvoiceUpdateParamsCounterpartyBillingAddress
- type InvoiceUpdateParamsCounterpartyShippingAddress
- type InvoiceUpdateParamsInvoicerAddress
- type InvoiceUpdateParamsPaymentMethod
- type InvoiceUpdateParamsPaymentType
- type Ledger
- type LedgerAccount
- type LedgerAccountBalances
- type LedgerAccountBalancesAvailableBalance
- type LedgerAccountBalancesPendingBalance
- type LedgerAccountBalancesPostedBalance
- type LedgerAccountCategory
- type LedgerAccountCategoryBalances
- type LedgerAccountCategoryBalancesAvailableBalance
- type LedgerAccountCategoryBalancesPendingBalance
- type LedgerAccountCategoryBalancesPostedBalance
- type LedgerAccountCategoryGetParams
- type LedgerAccountCategoryGetParamsBalances
- type LedgerAccountCategoryListParams
- type LedgerAccountCategoryListParamsBalances
- type LedgerAccountCategoryNewParams
- type LedgerAccountCategoryNewParamsNormalBalance
- type LedgerAccountCategoryNormalBalance
- type LedgerAccountCategoryService
- func (r *LedgerAccountCategoryService) AddLedgerAccount(ctx context.Context, id string, ledgerAccountID string, ...) (err error)
- func (r *LedgerAccountCategoryService) AddNestedCategory(ctx context.Context, id string, subCategoryID string, ...) (err error)
- func (r *LedgerAccountCategoryService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *LedgerAccountCategory, err error)
- func (r *LedgerAccountCategoryService) Get(ctx context.Context, id string, query LedgerAccountCategoryGetParams, ...) (res *LedgerAccountCategory, err error)
- func (r *LedgerAccountCategoryService) List(ctx context.Context, query LedgerAccountCategoryListParams, ...) (res *shared.Page[LedgerAccountCategory], err error)
- func (r *LedgerAccountCategoryService) ListAutoPaging(ctx context.Context, query LedgerAccountCategoryListParams, ...) *shared.PageAutoPager[LedgerAccountCategory]
- func (r *LedgerAccountCategoryService) New(ctx context.Context, body LedgerAccountCategoryNewParams, ...) (res *LedgerAccountCategory, err error)
- func (r *LedgerAccountCategoryService) RemoveLedgerAccount(ctx context.Context, id string, ledgerAccountID string, ...) (err error)
- func (r *LedgerAccountCategoryService) RemoveNestedCategory(ctx context.Context, id string, subCategoryID string, ...) (err error)
- func (r *LedgerAccountCategoryService) Update(ctx context.Context, id string, body LedgerAccountCategoryUpdateParams, ...) (res *LedgerAccountCategory, err error)
- type LedgerAccountCategoryUpdateParams
- type LedgerAccountGetParams
- type LedgerAccountGetParamsBalances
- type LedgerAccountLedgerableType
- type LedgerAccountListParams
- type LedgerAccountListParamsBalances
- type LedgerAccountNewParams
- type LedgerAccountNewParamsLedgerableType
- type LedgerAccountNewParamsNormalBalance
- type LedgerAccountNormalBalance
- type LedgerAccountPayout
- type LedgerAccountPayoutListParams
- type LedgerAccountPayoutNewParams
- type LedgerAccountPayoutNewParamsStatus
- type LedgerAccountPayoutService
- func (r *LedgerAccountPayoutService) List(ctx context.Context, query LedgerAccountPayoutListParams, ...) (res *shared.Page[LedgerAccountPayout], err error)
- func (r *LedgerAccountPayoutService) ListAutoPaging(ctx context.Context, query LedgerAccountPayoutListParams, ...) *shared.PageAutoPager[LedgerAccountPayout]
- func (r *LedgerAccountPayoutService) New(ctx context.Context, body LedgerAccountPayoutNewParams, ...) (res *LedgerAccountPayout, err error)
- func (r *LedgerAccountPayoutService) Retireve(ctx context.Context, id string, opts ...option.RequestOption) (res *LedgerAccountPayout, err error)
- func (r *LedgerAccountPayoutService) Update(ctx context.Context, id string, body LedgerAccountPayoutUpdateParams, ...) (res *LedgerAccountPayout, err error)
- type LedgerAccountPayoutStatus
- type LedgerAccountPayoutUpdateParams
- type LedgerAccountPayoutUpdateParamsStatus
- type LedgerAccountService
- func (r *LedgerAccountService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *LedgerAccount, err error)
- func (r *LedgerAccountService) Get(ctx context.Context, id string, query LedgerAccountGetParams, ...) (res *LedgerAccount, err error)
- func (r *LedgerAccountService) List(ctx context.Context, query LedgerAccountListParams, ...) (res *shared.Page[LedgerAccount], err error)
- func (r *LedgerAccountService) ListAutoPaging(ctx context.Context, query LedgerAccountListParams, ...) *shared.PageAutoPager[LedgerAccount]
- func (r *LedgerAccountService) New(ctx context.Context, body LedgerAccountNewParams, opts ...option.RequestOption) (res *LedgerAccount, err error)
- func (r *LedgerAccountService) Update(ctx context.Context, id string, body LedgerAccountUpdateParams, ...) (res *LedgerAccount, err error)
- type LedgerAccountStatementGetResponse
- type LedgerAccountStatementGetResponseEndingBalance
- type LedgerAccountStatementGetResponseEndingBalanceAvailableBalance
- type LedgerAccountStatementGetResponseEndingBalancePendingBalance
- type LedgerAccountStatementGetResponseEndingBalancePostedBalance
- type LedgerAccountStatementGetResponseLedgerAccountNormalBalance
- type LedgerAccountStatementGetResponseStartingBalance
- type LedgerAccountStatementGetResponseStartingBalanceAvailableBalance
- type LedgerAccountStatementGetResponseStartingBalancePendingBalance
- type LedgerAccountStatementGetResponseStartingBalancePostedBalance
- type LedgerAccountStatementNewParams
- type LedgerAccountStatementNewResponse
- type LedgerAccountStatementNewResponseEndingBalance
- type LedgerAccountStatementNewResponseEndingBalanceAvailableBalance
- type LedgerAccountStatementNewResponseEndingBalancePendingBalance
- type LedgerAccountStatementNewResponseEndingBalancePostedBalance
- type LedgerAccountStatementNewResponseLedgerAccountNormalBalance
- type LedgerAccountStatementNewResponseStartingBalance
- type LedgerAccountStatementNewResponseStartingBalanceAvailableBalance
- type LedgerAccountStatementNewResponseStartingBalancePendingBalance
- type LedgerAccountStatementNewResponseStartingBalancePostedBalance
- type LedgerAccountStatementService
- func (r *LedgerAccountStatementService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *LedgerAccountStatementGetResponse, err error)
- func (r *LedgerAccountStatementService) New(ctx context.Context, body LedgerAccountStatementNewParams, ...) (res *LedgerAccountStatementNewResponse, err error)
- type LedgerAccountUpdateParams
- type LedgerEntry
- type LedgerEntryDirection
- type LedgerEntryGetParams
- type LedgerEntryListParams
- type LedgerEntryListParamsDirection
- type LedgerEntryListParamsOrderBy
- type LedgerEntryListParamsOrderByCreatedAt
- type LedgerEntryListParamsOrderByEffectiveAt
- type LedgerEntryListParamsStatus
- type LedgerEntryResultingLedgerAccountBalances
- type LedgerEntryResultingLedgerAccountBalancesAvailableBalance
- type LedgerEntryResultingLedgerAccountBalancesPendingBalance
- type LedgerEntryResultingLedgerAccountBalancesPostedBalance
- type LedgerEntryService
- func (r *LedgerEntryService) Get(ctx context.Context, id string, query LedgerEntryGetParams, ...) (res *LedgerEntry, err error)
- func (r *LedgerEntryService) List(ctx context.Context, query LedgerEntryListParams, opts ...option.RequestOption) (res *shared.Page[LedgerEntry], err error)
- func (r *LedgerEntryService) ListAutoPaging(ctx context.Context, query LedgerEntryListParams, opts ...option.RequestOption) *shared.PageAutoPager[LedgerEntry]
- type LedgerEntryStatus
- type LedgerEventHandlerDeleteResponse
- type LedgerEventHandlerDeleteResponseConditions
- type LedgerEventHandlerDeleteResponseLedgerTransactionTemplate
- type LedgerEventHandlerDeleteResponseLedgerTransactionTemplateLedgerEntry
- type LedgerEventHandlerGetResponse
- type LedgerEventHandlerGetResponseConditions
- type LedgerEventHandlerGetResponseLedgerTransactionTemplate
- type LedgerEventHandlerGetResponseLedgerTransactionTemplateLedgerEntry
- type LedgerEventHandlerListParams
- type LedgerEventHandlerListResponse
- type LedgerEventHandlerListResponseConditions
- type LedgerEventHandlerListResponseLedgerTransactionTemplate
- type LedgerEventHandlerListResponseLedgerTransactionTemplateLedgerEntry
- type LedgerEventHandlerNewParams
- type LedgerEventHandlerNewParamsConditions
- type LedgerEventHandlerNewParamsLedgerTransactionTemplate
- type LedgerEventHandlerNewParamsLedgerTransactionTemplateLedgerEntry
- type LedgerEventHandlerNewResponse
- type LedgerEventHandlerNewResponseConditions
- type LedgerEventHandlerNewResponseLedgerTransactionTemplate
- type LedgerEventHandlerNewResponseLedgerTransactionTemplateLedgerEntry
- type LedgerEventHandlerService
- func (r *LedgerEventHandlerService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *LedgerEventHandlerDeleteResponse, err error)
- func (r *LedgerEventHandlerService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *LedgerEventHandlerGetResponse, err error)
- func (r *LedgerEventHandlerService) List(ctx context.Context, query LedgerEventHandlerListParams, ...) (res *shared.Page[LedgerEventHandlerListResponse], err error)
- func (r *LedgerEventHandlerService) ListAutoPaging(ctx context.Context, query LedgerEventHandlerListParams, ...) *shared.PageAutoPager[LedgerEventHandlerListResponse]
- func (r *LedgerEventHandlerService) New(ctx context.Context, body LedgerEventHandlerNewParams, ...) (res *LedgerEventHandlerNewResponse, err error)
- type LedgerListParams
- type LedgerNewParams
- type LedgerService
- func (r *LedgerService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *Ledger, err error)
- func (r *LedgerService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Ledger, err error)
- func (r *LedgerService) List(ctx context.Context, query LedgerListParams, opts ...option.RequestOption) (res *shared.Page[Ledger], err error)
- func (r *LedgerService) ListAutoPaging(ctx context.Context, query LedgerListParams, opts ...option.RequestOption) *shared.PageAutoPager[Ledger]
- func (r *LedgerService) New(ctx context.Context, body LedgerNewParams, opts ...option.RequestOption) (res *Ledger, err error)
- func (r *LedgerService) Update(ctx context.Context, id string, body LedgerUpdateParams, ...) (res *Ledger, err error)
- type LedgerTransaction
- type LedgerTransactionLedgerableType
- type LedgerTransactionListParams
- type LedgerTransactionListParamsLedgerableType
- type LedgerTransactionListParamsOrderBy
- type LedgerTransactionListParamsOrderByCreatedAt
- type LedgerTransactionListParamsOrderByEffectiveAt
- type LedgerTransactionListParamsStatus
- type LedgerTransactionNewParams
- type LedgerTransactionNewParamsLedgerEntriesDirection
- type LedgerTransactionNewParamsLedgerEntry
- type LedgerTransactionNewParamsLedgerableType
- type LedgerTransactionNewParamsStatus
- type LedgerTransactionNewReversalParams
- type LedgerTransactionNewReversalParamsLedgerableType
- type LedgerTransactionNewReversalParamsStatus
- type LedgerTransactionService
- func (r *LedgerTransactionService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *LedgerTransaction, err error)
- func (r *LedgerTransactionService) List(ctx context.Context, query LedgerTransactionListParams, ...) (res *shared.Page[LedgerTransaction], err error)
- func (r *LedgerTransactionService) ListAutoPaging(ctx context.Context, query LedgerTransactionListParams, ...) *shared.PageAutoPager[LedgerTransaction]
- func (r *LedgerTransactionService) New(ctx context.Context, body LedgerTransactionNewParams, ...) (res *LedgerTransaction, err error)
- func (r *LedgerTransactionService) NewReversal(ctx context.Context, id string, body LedgerTransactionNewReversalParams, ...) (res *LedgerTransaction, err error)
- func (r *LedgerTransactionService) Update(ctx context.Context, id string, body LedgerTransactionUpdateParams, ...) (res *LedgerTransaction, err error)
- type LedgerTransactionStatus
- type LedgerTransactionUpdateParams
- type LedgerTransactionUpdateParamsLedgerEntriesDirection
- type LedgerTransactionUpdateParamsLedgerEntry
- type LedgerTransactionUpdateParamsStatus
- type LedgerTransactionVersion
- type LedgerTransactionVersionLedgerEntriesDirection
- type LedgerTransactionVersionLedgerEntriesResultingLedgerAccountBalances
- type LedgerTransactionVersionLedgerEntriesResultingLedgerAccountBalancesAvailableBalance
- type LedgerTransactionVersionLedgerEntriesResultingLedgerAccountBalancesPendingBalance
- type LedgerTransactionVersionLedgerEntriesResultingLedgerAccountBalancesPostedBalance
- type LedgerTransactionVersionLedgerEntriesStatus
- type LedgerTransactionVersionLedgerEntry
- type LedgerTransactionVersionLedgerableType
- type LedgerTransactionVersionListParams
- type LedgerTransactionVersionService
- func (r *LedgerTransactionVersionService) List(ctx context.Context, query LedgerTransactionVersionListParams, ...) (res *shared.Page[LedgerTransactionVersion], err error)
- func (r *LedgerTransactionVersionService) ListAutoPaging(ctx context.Context, query LedgerTransactionVersionListParams, ...) *shared.PageAutoPager[LedgerTransactionVersion]
- type LedgerTransactionVersionStatus
- type LedgerUpdateParams
- type LedgerableEvent
- type LedgerableEventNewParams
- type LedgerableEventService
- type LineItem
- type LineItemAccounting
- type LineItemGetParamsItemizableType
- type LineItemItemizableType
- type LineItemListParams
- type LineItemListParamsItemizableType
- type LineItemService
- func (r *LineItemService) Get(ctx context.Context, itemizableType LineItemGetParamsItemizableType, ...) (res *LineItem, err error)
- func (r *LineItemService) List(ctx context.Context, itemizableType LineItemListParamsItemizableType, ...) (res *shared.Page[LineItem], err error)
- func (r *LineItemService) ListAutoPaging(ctx context.Context, itemizableType LineItemListParamsItemizableType, ...) *shared.PageAutoPager[LineItem]
- func (r *LineItemService) Update(ctx context.Context, itemizableType LineItemUpdateParamsItemizableType, ...) (res *LineItem, err error)
- type LineItemUpdateParams
- type LineItemUpdateParamsItemizableType
- type PaperItem
- type PaperItemListParams
- type PaperItemService
- func (r *PaperItemService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *PaperItem, err error)
- func (r *PaperItemService) List(ctx context.Context, query PaperItemListParams, opts ...option.RequestOption) (res *shared.Page[PaperItem], err error)
- func (r *PaperItemService) ListAutoPaging(ctx context.Context, query PaperItemListParams, opts ...option.RequestOption) *shared.PageAutoPager[PaperItem]
- type PaperItemStatus
- type PaymentFlow
- type PaymentFlowDirection
- type PaymentFlowListParams
- type PaymentFlowNewParams
- type PaymentFlowNewParamsDirection
- type PaymentFlowService
- func (r *PaymentFlowService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *PaymentFlow, err error)
- func (r *PaymentFlowService) List(ctx context.Context, query PaymentFlowListParams, opts ...option.RequestOption) (res *shared.Page[PaymentFlow], err error)
- func (r *PaymentFlowService) ListAutoPaging(ctx context.Context, query PaymentFlowListParams, opts ...option.RequestOption) *shared.PageAutoPager[PaymentFlow]
- func (r *PaymentFlowService) New(ctx context.Context, body PaymentFlowNewParams, opts ...option.RequestOption) (res *PaymentFlow, err error)
- func (r *PaymentFlowService) Update(ctx context.Context, id string, body PaymentFlowUpdateParams, ...) (res *PaymentFlow, err error)
- type PaymentFlowStatus
- type PaymentFlowUpdateParams
- type PaymentFlowUpdateParamsStatus
- type PaymentOrder
- type PaymentOrderAccounting
- type PaymentOrderChargeBearer
- type PaymentOrderDirection
- type PaymentOrderForeignExchangeIndicator
- type PaymentOrderListParams
- type PaymentOrderListParamsDirection
- type PaymentOrderListParamsPriority
- type PaymentOrderListParamsStatus
- type PaymentOrderListParamsType
- type PaymentOrderNewAsyncParams
- type PaymentOrderNewAsyncParamsAccounting
- type PaymentOrderNewAsyncParamsChargeBearer
- type PaymentOrderNewAsyncParamsDirection
- type PaymentOrderNewAsyncParamsFallbackType
- type PaymentOrderNewAsyncParamsForeignExchangeIndicator
- type PaymentOrderNewAsyncParamsLedgerTransaction
- type PaymentOrderNewAsyncParamsLedgerTransactionLedgerEntriesDirection
- type PaymentOrderNewAsyncParamsLedgerTransactionLedgerEntry
- type PaymentOrderNewAsyncParamsLedgerTransactionLedgerableType
- type PaymentOrderNewAsyncParamsLedgerTransactionStatus
- type PaymentOrderNewAsyncParamsLineItem
- type PaymentOrderNewAsyncParamsPriority
- type PaymentOrderNewAsyncParamsReceivingAccount
- type PaymentOrderNewAsyncParamsReceivingAccountAccountDetail
- type PaymentOrderNewAsyncParamsReceivingAccountAccountDetailsAccountNumberType
- type PaymentOrderNewAsyncParamsReceivingAccountContactDetail
- type PaymentOrderNewAsyncParamsReceivingAccountContactDetailsContactIdentifierType
- type PaymentOrderNewAsyncParamsReceivingAccountLedgerAccount
- type PaymentOrderNewAsyncParamsReceivingAccountLedgerAccountLedgerableType
- type PaymentOrderNewAsyncParamsReceivingAccountLedgerAccountNormalBalance
- type PaymentOrderNewAsyncParamsReceivingAccountPartyAddress
- type PaymentOrderNewAsyncParamsReceivingAccountPartyType
- type PaymentOrderNewAsyncParamsReceivingAccountRoutingDetail
- type PaymentOrderNewAsyncParamsReceivingAccountRoutingDetailsPaymentType
- type PaymentOrderNewAsyncParamsReceivingAccountRoutingDetailsRoutingNumberType
- type PaymentOrderNewParams
- type PaymentOrderNewParamsAccounting
- type PaymentOrderNewParamsChargeBearer
- type PaymentOrderNewParamsDirection
- type PaymentOrderNewParamsDocument
- type PaymentOrderNewParamsDocumentsDocumentableType
- type PaymentOrderNewParamsFallbackType
- type PaymentOrderNewParamsForeignExchangeIndicator
- type PaymentOrderNewParamsLedgerTransaction
- type PaymentOrderNewParamsLedgerTransactionLedgerEntriesDirection
- type PaymentOrderNewParamsLedgerTransactionLedgerEntry
- type PaymentOrderNewParamsLedgerTransactionLedgerableType
- type PaymentOrderNewParamsLedgerTransactionStatus
- type PaymentOrderNewParamsLineItem
- type PaymentOrderNewParamsPriority
- type PaymentOrderNewParamsReceivingAccount
- type PaymentOrderNewParamsReceivingAccountAccountDetail
- type PaymentOrderNewParamsReceivingAccountAccountDetailsAccountNumberType
- type PaymentOrderNewParamsReceivingAccountContactDetail
- type PaymentOrderNewParamsReceivingAccountContactDetailsContactIdentifierType
- type PaymentOrderNewParamsReceivingAccountLedgerAccount
- type PaymentOrderNewParamsReceivingAccountLedgerAccountLedgerableType
- type PaymentOrderNewParamsReceivingAccountLedgerAccountNormalBalance
- type PaymentOrderNewParamsReceivingAccountPartyAddress
- type PaymentOrderNewParamsReceivingAccountPartyType
- type PaymentOrderNewParamsReceivingAccountRoutingDetail
- type PaymentOrderNewParamsReceivingAccountRoutingDetailsPaymentType
- type PaymentOrderNewParamsReceivingAccountRoutingDetailsRoutingNumberType
- type PaymentOrderPriority
- type PaymentOrderReceivingAccountType
- type PaymentOrderReferenceNumber
- type PaymentOrderReferenceNumbersReferenceNumberType
- type PaymentOrderReversalListParams
- type PaymentOrderReversalNewParams
- type PaymentOrderReversalNewParamsLedgerTransaction
- type PaymentOrderReversalNewParamsLedgerTransactionLedgerEntriesDirection
- type PaymentOrderReversalNewParamsLedgerTransactionLedgerEntry
- type PaymentOrderReversalNewParamsLedgerTransactionLedgerableType
- type PaymentOrderReversalNewParamsLedgerTransactionStatus
- type PaymentOrderReversalNewParamsReason
- type PaymentOrderReversalService
- func (r *PaymentOrderReversalService) Get(ctx context.Context, paymentOrderID string, reversalID string, ...) (res *Reversal, err error)
- func (r *PaymentOrderReversalService) List(ctx context.Context, paymentOrderID string, ...) (res *shared.Page[Reversal], err error)
- func (r *PaymentOrderReversalService) ListAutoPaging(ctx context.Context, paymentOrderID string, ...) *shared.PageAutoPager[Reversal]
- func (r *PaymentOrderReversalService) New(ctx context.Context, paymentOrderID string, body PaymentOrderReversalNewParams, ...) (res *Reversal, err error)
- type PaymentOrderService
- func (r *PaymentOrderService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *PaymentOrder, err error)
- func (r *PaymentOrderService) List(ctx context.Context, query PaymentOrderListParams, ...) (res *shared.Page[PaymentOrder], err error)
- func (r *PaymentOrderService) ListAutoPaging(ctx context.Context, query PaymentOrderListParams, ...) *shared.PageAutoPager[PaymentOrder]
- func (r *PaymentOrderService) New(ctx context.Context, body PaymentOrderNewParams, opts ...option.RequestOption) (res *PaymentOrder, err error)
- func (r *PaymentOrderService) NewAsync(ctx context.Context, body PaymentOrderNewAsyncParams, ...) (res *shared.AsyncResponse, err error)
- func (r *PaymentOrderService) Update(ctx context.Context, id string, body PaymentOrderUpdateParams, ...) (res *PaymentOrder, err error)
- type PaymentOrderStatus
- type PaymentOrderSubtype
- type PaymentOrderType
- type PaymentOrderUpdateParams
- type PaymentOrderUpdateParamsAccounting
- type PaymentOrderUpdateParamsChargeBearer
- type PaymentOrderUpdateParamsDirection
- type PaymentOrderUpdateParamsFallbackType
- type PaymentOrderUpdateParamsForeignExchangeIndicator
- type PaymentOrderUpdateParamsLineItem
- type PaymentOrderUpdateParamsPriority
- type PaymentOrderUpdateParamsReceivingAccount
- type PaymentOrderUpdateParamsReceivingAccountAccountDetail
- type PaymentOrderUpdateParamsReceivingAccountAccountDetailsAccountNumberType
- type PaymentOrderUpdateParamsReceivingAccountContactDetail
- type PaymentOrderUpdateParamsReceivingAccountContactDetailsContactIdentifierType
- type PaymentOrderUpdateParamsReceivingAccountLedgerAccount
- type PaymentOrderUpdateParamsReceivingAccountLedgerAccountLedgerableType
- type PaymentOrderUpdateParamsReceivingAccountLedgerAccountNormalBalance
- type PaymentOrderUpdateParamsReceivingAccountPartyAddress
- type PaymentOrderUpdateParamsReceivingAccountPartyType
- type PaymentOrderUpdateParamsReceivingAccountRoutingDetail
- type PaymentOrderUpdateParamsReceivingAccountRoutingDetailsPaymentType
- type PaymentOrderUpdateParamsReceivingAccountRoutingDetailsRoutingNumberType
- type PaymentOrderUpdateParamsStatus
- type PaymentReference
- type PaymentReferenceListParams
- type PaymentReferenceListParamsReferenceableType
- type PaymentReferenceReferenceNumberType
- type PaymentReferenceReferenceableType
- type PaymentReferenceService
- func (r *PaymentReferenceService) List(ctx context.Context, query PaymentReferenceListParams, ...) (res *shared.Page[PaymentReference], err error)
- func (r *PaymentReferenceService) ListAutoPaging(ctx context.Context, query PaymentReferenceListParams, ...) *shared.PageAutoPager[PaymentReference]
- func (r *PaymentReferenceService) Retireve(ctx context.Context, id string, opts ...option.RequestOption) (res *PaymentReference, err error)
- type PingResponse
- type ReturnListParams
- type ReturnListParamsReturnableType
- type ReturnNewParams
- type ReturnNewParamsCode
- type ReturnNewParamsReturnableType
- type ReturnObject
- type ReturnObjectCode
- type ReturnObjectReferenceNumber
- type ReturnObjectReferenceNumbersReferenceNumberType
- type ReturnObjectReturnableType
- type ReturnObjectRole
- type ReturnObjectStatus
- type ReturnObjectType
- type ReturnService
- func (r *ReturnService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ReturnObject, err error)
- func (r *ReturnService) List(ctx context.Context, query ReturnListParams, opts ...option.RequestOption) (res *shared.Page[ReturnObject], err error)
- func (r *ReturnService) ListAutoPaging(ctx context.Context, query ReturnListParams, opts ...option.RequestOption) *shared.PageAutoPager[ReturnObject]
- func (r *ReturnService) New(ctx context.Context, body ReturnNewParams, opts ...option.RequestOption) (res *ReturnObject, err error)
- type Reversal
- type ReversalReason
- type ReversalStatus
- type RoutingDetail
- type RoutingDetailBankAddress
- type RoutingDetailDeleteParamsAccountsType
- type RoutingDetailListParams
- type RoutingDetailNewParams
- type RoutingDetailNewParamsAccountsType
- type RoutingDetailNewParamsPaymentType
- type RoutingDetailNewParamsRoutingNumberType
- type RoutingDetailPaymentType
- type RoutingDetailRoutingNumberType
- type RoutingDetailService
- func (r *RoutingDetailService) Delete(ctx context.Context, accountsType RoutingDetailDeleteParamsAccountsType, ...) (err error)
- func (r *RoutingDetailService) Get(ctx context.Context, accountsType shared.AccountsType, accountID string, ...) (res *RoutingDetail, err error)
- func (r *RoutingDetailService) List(ctx context.Context, accountsType shared.AccountsType, accountID string, ...) (res *shared.Page[RoutingDetail], err error)
- func (r *RoutingDetailService) ListAutoPaging(ctx context.Context, accountsType shared.AccountsType, accountID string, ...) *shared.PageAutoPager[RoutingDetail]
- func (r *RoutingDetailService) New(ctx context.Context, accountsType RoutingDetailNewParamsAccountsType, ...) (res *RoutingDetail, err error)
- type RoutingNumberLookupRequest
- type RoutingNumberLookupRequestBankAddress
- type RoutingNumberLookupRequestRoutingNumberType
- type RoutingNumberLookupRequestSupportedPaymentType
- type Transaction
- type TransactionLineItem
- type TransactionLineItemListParams
- type TransactionLineItemListParamsType
- type TransactionLineItemService
- func (r *TransactionLineItemService) List(ctx context.Context, transactionID string, query TransactionLineItemListParams, ...) (res *shared.Page[TransactionLineItem], err error)
- func (r *TransactionLineItemService) ListAutoPaging(ctx context.Context, transactionID string, query TransactionLineItemListParams, ...) *shared.PageAutoPager[TransactionLineItem]
- type TransactionLineItemTransactableType
- type TransactionLineItemType
- type TransactionListParams
- type TransactionService
- func (r *TransactionService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Transaction, err error)
- func (r *TransactionService) List(ctx context.Context, query TransactionListParams, opts ...option.RequestOption) (res *shared.Page[Transaction], err error)
- func (r *TransactionService) ListAutoPaging(ctx context.Context, query TransactionListParams, opts ...option.RequestOption) *shared.PageAutoPager[Transaction]
- func (r *TransactionService) Update(ctx context.Context, id string, body TransactionUpdateParams, ...) (res *Transaction, err error)
- type TransactionType
- type TransactionUpdateParams
- type TransactionVendorCodeType
- type ValidationService
- type ValidationValidateRoutingNumberParams
- type ValidationValidateRoutingNumberParamsRoutingNumberType
- type VirtualAccount
- type VirtualAccountListParams
- type VirtualAccountNewParams
- type VirtualAccountNewParamsAccountDetail
- type VirtualAccountNewParamsAccountDetailsAccountNumberType
- type VirtualAccountNewParamsRoutingDetail
- type VirtualAccountNewParamsRoutingDetailsPaymentType
- type VirtualAccountNewParamsRoutingDetailsRoutingNumberType
- type VirtualAccountService
- func (r *VirtualAccountService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *VirtualAccount, err error)
- func (r *VirtualAccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *VirtualAccount, err error)
- func (r *VirtualAccountService) List(ctx context.Context, query VirtualAccountListParams, ...) (res *shared.Page[VirtualAccount], err error)
- func (r *VirtualAccountService) ListAutoPaging(ctx context.Context, query VirtualAccountListParams, ...) *shared.PageAutoPager[VirtualAccount]
- func (r *VirtualAccountService) New(ctx context.Context, body VirtualAccountNewParams, ...) (res *VirtualAccount, err error)
- func (r *VirtualAccountService) Update(ctx context.Context, id string, body VirtualAccountUpdateParams, ...) (res *VirtualAccount, err error)
- type VirtualAccountUpdateParams
- type WebhookGetSignatureParams
- type WebhookService
- type WebhookValidateSignatureParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func F ¶
F is a param field helper used to initialize a param.Field generic struct. This helps specify null, zero values, and overrides, as well as normal values. You can read more about this in our README.
func Int ¶
Int is a param field helper which helps specify integers. This is particularly helpful when specifying integer constants for fields.
func Raw ¶
Raw is a param field helper for specifying values for fields when the type you are looking to send is different from the type that is specified in the SDK. For example, if the type of the field is an integer, but you want to send a float, you could do that by setting the corresponding field with Raw[int](0.5).
Types ¶
type AccountCollectionFlow ¶ added in v1.1.0
type AccountCollectionFlow struct { // The ID of a counterparty. An external account created with this flow will be // associated with this counterparty. CounterpartyID string `json:"counterparty_id,required" format:"uuid"` PaymentTypes []AccountCollectionFlowPaymentType `json:"payment_types,required"` ID string `json:"id" format:"uuid"` // The client token of the account collection flow. This token can be used to embed // account collection in your client-side application. ClientToken string `json:"client_token"` CreatedAt time.Time `json:"created_at" format:"date-time"` // If present, the ID of the external account created using this flow. ExternalAccountID string `json:"external_account_id,nullable" format:"uuid"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode"` Object string `json:"object"` // The current status of the account collection flow. One of `pending`, // `completed`, `expired`, or `cancelled`. Status AccountCollectionFlowStatus `json:"status"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` JSON accountCollectionFlowJSON }
func (*AccountCollectionFlow) UnmarshalJSON ¶ added in v1.1.0
func (r *AccountCollectionFlow) UnmarshalJSON(data []byte) (err error)
type AccountCollectionFlowListParams ¶
type AccountCollectionFlowListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` ClientToken param.Field[string] `query:"client_token"` CounterpartyID param.Field[string] `query:"counterparty_id"` ExternalAccountID param.Field[string] `query:"external_account_id"` PerPage param.Field[int64] `query:"per_page"` Status param.Field[string] `query:"status"` }
func (AccountCollectionFlowListParams) URLQuery ¶
func (r AccountCollectionFlowListParams) URLQuery() (v url.Values)
URLQuery serializes AccountCollectionFlowListParams's query parameters as `url.Values`.
type AccountCollectionFlowNewParams ¶
type AccountCollectionFlowNewParams struct { // Required. CounterpartyID param.Field[string] `json:"counterparty_id,required" format:"uuid"` PaymentTypes param.Field[[]string] `json:"payment_types,required"` }
func (AccountCollectionFlowNewParams) MarshalJSON ¶
func (r AccountCollectionFlowNewParams) MarshalJSON() (data []byte, err error)
type AccountCollectionFlowPaymentType ¶ added in v1.1.0
type AccountCollectionFlowPaymentType string
An account created with this flow will support payments of one of these types.
const ( AccountCollectionFlowPaymentTypeACH AccountCollectionFlowPaymentType = "ach" AccountCollectionFlowPaymentTypeWire AccountCollectionFlowPaymentType = "wire" )
type AccountCollectionFlowService ¶
type AccountCollectionFlowService struct {
Options []option.RequestOption
}
AccountCollectionFlowService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccountCollectionFlowService method instead.
func NewAccountCollectionFlowService ¶
func NewAccountCollectionFlowService(opts ...option.RequestOption) (r *AccountCollectionFlowService)
NewAccountCollectionFlowService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccountCollectionFlowService) Get ¶
func (r *AccountCollectionFlowService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AccountCollectionFlow, err error)
get account_collection_flow
func (*AccountCollectionFlowService) List ¶
func (r *AccountCollectionFlowService) List(ctx context.Context, query AccountCollectionFlowListParams, opts ...option.RequestOption) (res *shared.Page[AccountCollectionFlow], err error)
list account_collection_flows
func (*AccountCollectionFlowService) ListAutoPaging ¶
func (r *AccountCollectionFlowService) ListAutoPaging(ctx context.Context, query AccountCollectionFlowListParams, opts ...option.RequestOption) *shared.PageAutoPager[AccountCollectionFlow]
list account_collection_flows
func (*AccountCollectionFlowService) New ¶
func (r *AccountCollectionFlowService) New(ctx context.Context, body AccountCollectionFlowNewParams, opts ...option.RequestOption) (res *AccountCollectionFlow, err error)
create account_collection_flow
func (*AccountCollectionFlowService) Update ¶
func (r *AccountCollectionFlowService) Update(ctx context.Context, id string, body AccountCollectionFlowUpdateParams, opts ...option.RequestOption) (res *AccountCollectionFlow, err error)
update account_collection_flow
type AccountCollectionFlowStatus ¶ added in v1.1.0
type AccountCollectionFlowStatus string
The current status of the account collection flow. One of `pending`, `completed`, `expired`, or `cancelled`.
const ( AccountCollectionFlowStatusCancelled AccountCollectionFlowStatus = "cancelled" AccountCollectionFlowStatusCompleted AccountCollectionFlowStatus = "completed" AccountCollectionFlowStatusExpired AccountCollectionFlowStatus = "expired" AccountCollectionFlowStatusPending AccountCollectionFlowStatus = "pending" )
type AccountCollectionFlowUpdateParams ¶
type AccountCollectionFlowUpdateParams struct { // Required. The updated status of the account collection flow. Can only be used to // mark a flow as `cancelled`. Status param.Field[AccountCollectionFlowUpdateParamsStatus] `json:"status,required"` }
func (AccountCollectionFlowUpdateParams) MarshalJSON ¶
func (r AccountCollectionFlowUpdateParams) MarshalJSON() (data []byte, err error)
type AccountCollectionFlowUpdateParamsStatus ¶
type AccountCollectionFlowUpdateParamsStatus string
Required. The updated status of the account collection flow. Can only be used to mark a flow as `cancelled`.
const (
AccountCollectionFlowUpdateParamsStatusCancelled AccountCollectionFlowUpdateParamsStatus = "cancelled"
)
type AccountDetail ¶
type AccountDetail struct { ID string `json:"id,required" format:"uuid"` // The last 4 digits of the account_number. AccountNumberSafe string `json:"account_number_safe,required"` // One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank // account number is in a generic format. AccountNumberType AccountDetailAccountNumberType `json:"account_number_type,required"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` // The account number for the bank account. AccountNumber string `json:"account_number"` JSON accountDetailJSON }
func (*AccountDetail) UnmarshalJSON ¶
func (r *AccountDetail) UnmarshalJSON(data []byte) (err error)
type AccountDetailAccountNumberType ¶
type AccountDetailAccountNumberType string
One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank account number is in a generic format.
const ( AccountDetailAccountNumberTypeClabe AccountDetailAccountNumberType = "clabe" AccountDetailAccountNumberTypeIban AccountDetailAccountNumberType = "iban" AccountDetailAccountNumberTypeOther AccountDetailAccountNumberType = "other" AccountDetailAccountNumberTypePan AccountDetailAccountNumberType = "pan" AccountDetailAccountNumberTypeWalletAddress AccountDetailAccountNumberType = "wallet_address" )
type AccountDetailDeleteParamsAccountsType ¶
type AccountDetailDeleteParamsAccountsType string
const (
AccountDetailDeleteParamsAccountsTypeExternalAccounts AccountDetailDeleteParamsAccountsType = "external_accounts"
)
type AccountDetailListParams ¶
type AccountDetailListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` PerPage param.Field[int64] `query:"per_page"` }
func (AccountDetailListParams) URLQuery ¶
func (r AccountDetailListParams) URLQuery() (v url.Values)
URLQuery serializes AccountDetailListParams's query parameters as `url.Values`.
type AccountDetailNewParams ¶
type AccountDetailNewParams struct { // The account number for the bank account. AccountNumber param.Field[string] `json:"account_number,required"` // One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank // account number is in a generic format. AccountNumberType param.Field[AccountDetailNewParamsAccountNumberType] `json:"account_number_type"` }
func (AccountDetailNewParams) MarshalJSON ¶
func (r AccountDetailNewParams) MarshalJSON() (data []byte, err error)
type AccountDetailNewParamsAccountNumberType ¶
type AccountDetailNewParamsAccountNumberType string
One of `iban`, `clabe`, `wallet_address`, or `other`. Use `other` if the bank account number is in a generic format.
const ( AccountDetailNewParamsAccountNumberTypeClabe AccountDetailNewParamsAccountNumberType = "clabe" AccountDetailNewParamsAccountNumberTypeIban AccountDetailNewParamsAccountNumberType = "iban" AccountDetailNewParamsAccountNumberTypeOther AccountDetailNewParamsAccountNumberType = "other" AccountDetailNewParamsAccountNumberTypePan AccountDetailNewParamsAccountNumberType = "pan" AccountDetailNewParamsAccountNumberTypeWalletAddress AccountDetailNewParamsAccountNumberType = "wallet_address" )
type AccountDetailNewParamsAccountsType ¶
type AccountDetailNewParamsAccountsType string
const (
AccountDetailNewParamsAccountsTypeExternalAccounts AccountDetailNewParamsAccountsType = "external_accounts"
)
type AccountDetailService ¶
type AccountDetailService struct {
Options []option.RequestOption
}
AccountDetailService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewAccountDetailService method instead.
func NewAccountDetailService ¶
func NewAccountDetailService(opts ...option.RequestOption) (r *AccountDetailService)
NewAccountDetailService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*AccountDetailService) Delete ¶
func (r *AccountDetailService) Delete(ctx context.Context, accountsType AccountDetailDeleteParamsAccountsType, accountID string, id string, opts ...option.RequestOption) (err error)
Delete a single account detail for an external account.
func (*AccountDetailService) Get ¶
func (r *AccountDetailService) Get(ctx context.Context, accountsType shared.AccountsType, accountID string, id string, opts ...option.RequestOption) (res *AccountDetail, err error)
Get a single account detail for a single internal or external account.
func (*AccountDetailService) List ¶
func (r *AccountDetailService) List(ctx context.Context, accountsType shared.AccountsType, accountID string, query AccountDetailListParams, opts ...option.RequestOption) (res *shared.Page[AccountDetail], err error)
Get a list of account details for a single internal or external account.
func (*AccountDetailService) ListAutoPaging ¶
func (r *AccountDetailService) ListAutoPaging(ctx context.Context, accountsType shared.AccountsType, accountID string, query AccountDetailListParams, opts ...option.RequestOption) *shared.PageAutoPager[AccountDetail]
Get a list of account details for a single internal or external account.
func (*AccountDetailService) New ¶
func (r *AccountDetailService) New(ctx context.Context, accountsType AccountDetailNewParamsAccountsType, accountID string, body AccountDetailNewParams, opts ...option.RequestOption) (res *AccountDetail, err error)
Create an account detail for an external account.
type AsyncResponse ¶
type AsyncResponse = shared.AsyncResponse
This is an alias to an internal type.
type BalanceReport ¶
type BalanceReport struct { ID string `json:"id,required" format:"uuid"` // The date of the balance report in local time. AsOfDate time.Time `json:"as_of_date,required" format:"date"` // The time (24-hour clock) of the balance report in local time. AsOfTime string `json:"as_of_time,required,nullable" format:"time"` // The specific type of balance report. One of `intraday`, `previous_day`, // `real_time`, or `other`. BalanceReportType BalanceReportBalanceReportType `json:"balance_report_type,required"` // An array of `Balance` objects. Balances []BalanceReportBalance `json:"balances,required"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` // The ID of one of your organization's Internal Accounts. InternalAccountID string `json:"internal_account_id,required" format:"uuid"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON balanceReportJSON }
func (*BalanceReport) UnmarshalJSON ¶
func (r *BalanceReport) UnmarshalJSON(data []byte) (err error)
type BalanceReportBalance ¶
type BalanceReportBalance struct { ID string `json:"id,required" format:"uuid"` // The balance amount. Amount int64 `json:"amount,required"` // The specific type of balance reported. One of `opening_ledger`, // `closing_ledger`, `current_ledger`, `opening_available`, // `opening_available_next_business_day`, `closing_available`, `current_available`, // or `other`. BalanceType BalanceReportBalancesBalanceType `json:"balance_type,required"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` // The currency of the balance. Currency shared.Currency `json:"currency,required,nullable"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` // The code used by the bank when reporting this specific balance. VendorCode string `json:"vendor_code,required"` // The code used by the bank when reporting this specific balance. VendorCodeType BalanceReportBalancesVendorCodeType `json:"vendor_code_type,required,nullable"` JSON balanceReportBalanceJSON }
func (*BalanceReportBalance) UnmarshalJSON ¶
func (r *BalanceReportBalance) UnmarshalJSON(data []byte) (err error)
type BalanceReportBalanceReportType ¶
type BalanceReportBalanceReportType string
The specific type of balance report. One of `intraday`, `previous_day`, `real_time`, or `other`.
const ( BalanceReportBalanceReportTypeIntraday BalanceReportBalanceReportType = "intraday" BalanceReportBalanceReportTypeOther BalanceReportBalanceReportType = "other" BalanceReportBalanceReportTypePreviousDay BalanceReportBalanceReportType = "previous_day" BalanceReportBalanceReportTypeRealTime BalanceReportBalanceReportType = "real_time" )
type BalanceReportBalancesBalanceType ¶
type BalanceReportBalancesBalanceType string
The specific type of balance reported. One of `opening_ledger`, `closing_ledger`, `current_ledger`, `opening_available`, `opening_available_next_business_day`, `closing_available`, `current_available`, or `other`.
const ( BalanceReportBalancesBalanceTypeClosingAvailable BalanceReportBalancesBalanceType = "closing_available" BalanceReportBalancesBalanceTypeClosingLedger BalanceReportBalancesBalanceType = "closing_ledger" BalanceReportBalancesBalanceTypeCurrentAvailable BalanceReportBalancesBalanceType = "current_available" BalanceReportBalancesBalanceTypeCurrentLedger BalanceReportBalancesBalanceType = "current_ledger" BalanceReportBalancesBalanceTypeOpeningAvailable BalanceReportBalancesBalanceType = "opening_available" BalanceReportBalancesBalanceTypeOpeningAvailableNextBusinessDay BalanceReportBalancesBalanceType = "opening_available_next_business_day" BalanceReportBalancesBalanceTypeOpeningLedger BalanceReportBalancesBalanceType = "opening_ledger" BalanceReportBalancesBalanceTypeOther BalanceReportBalancesBalanceType = "other" )
type BalanceReportBalancesVendorCodeType ¶
type BalanceReportBalancesVendorCodeType string
The code used by the bank when reporting this specific balance.
const ( BalanceReportBalancesVendorCodeTypeBai2 BalanceReportBalancesVendorCodeType = "bai2" BalanceReportBalancesVendorCodeTypeBankprov BalanceReportBalancesVendorCodeType = "bankprov" BalanceReportBalancesVendorCodeTypeBnkDev BalanceReportBalancesVendorCodeType = "bnk_dev" BalanceReportBalancesVendorCodeTypeCleartouch BalanceReportBalancesVendorCodeType = "cleartouch" BalanceReportBalancesVendorCodeTypeColumn BalanceReportBalancesVendorCodeType = "column" BalanceReportBalancesVendorCodeTypeCrossRiver BalanceReportBalancesVendorCodeType = "cross_river" BalanceReportBalancesVendorCodeTypeCurrencycloud BalanceReportBalancesVendorCodeType = "currencycloud" BalanceReportBalancesVendorCodeTypeDcBank BalanceReportBalancesVendorCodeType = "dc_bank" BalanceReportBalancesVendorCodeTypeDwolla BalanceReportBalancesVendorCodeType = "dwolla" BalanceReportBalancesVendorCodeTypeEvolve BalanceReportBalancesVendorCodeType = "evolve" BalanceReportBalancesVendorCodeTypeGoldmanSachs BalanceReportBalancesVendorCodeType = "goldman_sachs" BalanceReportBalancesVendorCodeTypeIso20022 BalanceReportBalancesVendorCodeType = "iso20022" BalanceReportBalancesVendorCodeTypeJpmc BalanceReportBalancesVendorCodeType = "jpmc" BalanceReportBalancesVendorCodeTypeMx BalanceReportBalancesVendorCodeType = "mx" BalanceReportBalancesVendorCodeTypePlaid BalanceReportBalancesVendorCodeType = "plaid" BalanceReportBalancesVendorCodeTypeRspecVendor BalanceReportBalancesVendorCodeType = "rspec_vendor" BalanceReportBalancesVendorCodeTypeSignet BalanceReportBalancesVendorCodeType = "signet" BalanceReportBalancesVendorCodeTypeSilvergate BalanceReportBalancesVendorCodeType = "silvergate" BalanceReportBalancesVendorCodeTypeSwift BalanceReportBalancesVendorCodeType = "swift" BalanceReportBalancesVendorCodeTypeUsBank BalanceReportBalancesVendorCodeType = "us_bank" )
type BalanceReportListParams ¶
type BalanceReportListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` // The date of the balance report in local time. AsOfDate param.Field[time.Time] `query:"as_of_date" format:"date"` // The specific type of balance report. One of `intraday`, `previous_day`, // `real_time`, or `other`. BalanceReportType param.Field[BalanceReportListParamsBalanceReportType] `query:"balance_report_type"` PerPage param.Field[int64] `query:"per_page"` }
func (BalanceReportListParams) URLQuery ¶
func (r BalanceReportListParams) URLQuery() (v url.Values)
URLQuery serializes BalanceReportListParams's query parameters as `url.Values`.
type BalanceReportListParamsBalanceReportType ¶
type BalanceReportListParamsBalanceReportType string
The specific type of balance report. One of `intraday`, `previous_day`, `real_time`, or `other`.
const ( BalanceReportListParamsBalanceReportTypeIntraday BalanceReportListParamsBalanceReportType = "intraday" BalanceReportListParamsBalanceReportTypeOther BalanceReportListParamsBalanceReportType = "other" BalanceReportListParamsBalanceReportTypePreviousDay BalanceReportListParamsBalanceReportType = "previous_day" BalanceReportListParamsBalanceReportTypeRealTime BalanceReportListParamsBalanceReportType = "real_time" )
type Client ¶
type Client struct { Options []option.RequestOption Connections *ConnectionService Counterparties *CounterpartyService Events *EventService ExpectedPayments *ExpectedPaymentService ExternalAccounts *ExternalAccountService IncomingPaymentDetails *IncomingPaymentDetailService Invoices *InvoiceService Documents *DocumentService AccountCollectionFlows *AccountCollectionFlowService AccountDetails *AccountDetailService RoutingDetails *RoutingDetailService InternalAccounts *InternalAccountService Ledgers *LedgerService LedgerableEvents *LedgerableEventService LedgerAccountCategories *LedgerAccountCategoryService LedgerAccounts *LedgerAccountService LedgerAccountPayouts *LedgerAccountPayoutService LedgerAccountStatements *LedgerAccountStatementService LedgerEntries *LedgerEntryService LedgerEventHandlers *LedgerEventHandlerService LedgerTransactions *LedgerTransactionService LineItems *LineItemService PaymentFlows *PaymentFlowService PaymentOrders *PaymentOrderService PaymentReferences *PaymentReferenceService Returns *ReturnService Transactions *TransactionService Validations *ValidationService PaperItems *PaperItemService Webhooks *WebhookService VirtualAccounts *VirtualAccountService }
Client creates a struct with services and top level methods that help with interacting with the Modern Treasury API. You should not instantiate this client directly, and instead use the NewClient method instead.
func NewClient ¶
func NewClient(opts ...option.RequestOption) (r *Client)
NewClient generates a new client with the default option read from the environment (MODERN_TREASURY_API_KEY, MODERN_TREASURY_ORGANIZATION_ID, MODERN_TREASURY_WEBHOOK_KEY). The option passed in as arguments are applied after these default arguments, and all option will be passed down to the services and requests that this client makes.
func (*Client) Ping ¶
func (r *Client) Ping(ctx context.Context, opts ...option.RequestOption) (res *PingResponse, err error)
A test endpoint often used to confirm credentials and headers are being passed in correctly.
type Connection ¶
type Connection struct { ID string `json:"id,required" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` // An identifier given to this connection by the bank. VendorCustomerID string `json:"vendor_customer_id,required,nullable" format:"uuid"` // Unique identifier for the bank or vendor. VendorID string `json:"vendor_id,required" format:"uuid"` // A human-friendly name for the bank or vendor. VendorName string `json:"vendor_name,required"` JSON connectionJSON }
func (*Connection) UnmarshalJSON ¶
func (r *Connection) UnmarshalJSON(data []byte) (err error)
type ConnectionListParams ¶
type ConnectionListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` // A string code representing the vendor (i.e. bank). Entity param.Field[string] `query:"entity"` PerPage param.Field[int64] `query:"per_page"` // An identifier assigned by the vendor to your organization. VendorCustomerID param.Field[string] `query:"vendor_customer_id" format:"uuid"` }
func (ConnectionListParams) URLQuery ¶
func (r ConnectionListParams) URLQuery() (v url.Values)
URLQuery serializes ConnectionListParams's query parameters as `url.Values`.
type ConnectionService ¶
type ConnectionService struct {
Options []option.RequestOption
}
ConnectionService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewConnectionService method instead.
func NewConnectionService ¶
func NewConnectionService(opts ...option.RequestOption) (r *ConnectionService)
NewConnectionService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ConnectionService) List ¶
func (r *ConnectionService) List(ctx context.Context, query ConnectionListParams, opts ...option.RequestOption) (res *shared.Page[Connection], err error)
Get a list of all connections.
func (*ConnectionService) ListAutoPaging ¶
func (r *ConnectionService) ListAutoPaging(ctx context.Context, query ConnectionListParams, opts ...option.RequestOption) *shared.PageAutoPager[Connection]
Get a list of all connections.
type Counterparty ¶
type Counterparty struct { ID string `json:"id,required" format:"uuid"` // The accounts for this counterparty. Accounts []CounterpartyAccount `json:"accounts,required"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` // The counterparty's email. Email string `json:"email,required,nullable" format:"email"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata map[string]string `json:"metadata,required"` // A human friendly name for this counterparty. Name string `json:"name,required,nullable"` Object string `json:"object,required"` // Send an email to the counterparty whenever an associated payment order is sent // to the bank. SendRemittanceAdvice bool `json:"send_remittance_advice,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` // The verification status of the counterparty. VerificationStatus CounterpartyVerificationStatus `json:"verification_status,required"` JSON counterpartyJSON }
func (*Counterparty) UnmarshalJSON ¶
func (r *Counterparty) UnmarshalJSON(data []byte) (err error)
type CounterpartyAccount ¶
type CounterpartyAccount struct { ID string `json:"id" format:"uuid"` AccountDetails []AccountDetail `json:"account_details"` // Can be `checking`, `savings` or `other`. AccountType ExternalAccountType `json:"account_type"` ContactDetails []CounterpartyAccountsContactDetail `json:"contact_details"` CreatedAt time.Time `json:"created_at" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,nullable" format:"date-time"` // If the external account links to a ledger account in Modern Treasury, the id of // the ledger account will be populated here. LedgerAccountID string `json:"ledger_account_id,nullable" format:"uuid"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata map[string]string `json:"metadata"` // A nickname for the external account. This is only for internal usage and won't // affect any payments Name string `json:"name,nullable"` Object string `json:"object"` // The address associated with the owner or `null`. PartyAddress CounterpartyAccountsPartyAddress `json:"party_address,nullable"` // The legal name of the entity which owns the account. PartyName string `json:"party_name"` // Either `individual` or `business`. PartyType CounterpartyAccountsPartyType `json:"party_type,nullable"` RoutingDetails []RoutingDetail `json:"routing_details"` UpdatedAt time.Time `json:"updated_at" format:"date-time"` VerificationStatus CounterpartyAccountsVerificationStatus `json:"verification_status"` JSON counterpartyAccountJSON }
func (*CounterpartyAccount) UnmarshalJSON ¶
func (r *CounterpartyAccount) UnmarshalJSON(data []byte) (err error)
type CounterpartyAccountsContactDetail ¶
type CounterpartyAccountsContactDetail struct { ID string `json:"id,required" format:"uuid"` ContactIdentifier string `json:"contact_identifier,required"` ContactIdentifierType CounterpartyAccountsContactDetailsContactIdentifierType `json:"contact_identifier_type,required"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON counterpartyAccountsContactDetailJSON }
func (*CounterpartyAccountsContactDetail) UnmarshalJSON ¶
func (r *CounterpartyAccountsContactDetail) UnmarshalJSON(data []byte) (err error)
type CounterpartyAccountsContactDetailsContactIdentifierType ¶
type CounterpartyAccountsContactDetailsContactIdentifierType string
const ( CounterpartyAccountsContactDetailsContactIdentifierTypeEmail CounterpartyAccountsContactDetailsContactIdentifierType = "email" CounterpartyAccountsContactDetailsContactIdentifierTypePhoneNumber CounterpartyAccountsContactDetailsContactIdentifierType = "phone_number" CounterpartyAccountsContactDetailsContactIdentifierTypeWebsite CounterpartyAccountsContactDetailsContactIdentifierType = "website" )
type CounterpartyAccountsPartyAddress ¶
type CounterpartyAccountsPartyAddress struct { ID string `json:"id,required" format:"uuid"` // Country code conforms to [ISO 3166-1 alpha-2] Country string `json:"country,required,nullable"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` Line1 string `json:"line1,required,nullable"` Line2 string `json:"line2,required,nullable"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Locality or City. Locality string `json:"locality,required,nullable"` Object string `json:"object,required"` // The postal code of the address. PostalCode string `json:"postal_code,required,nullable"` // Region or State. Region string `json:"region,required,nullable"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON counterpartyAccountsPartyAddressJSON }
The address associated with the owner or `null`.
func (*CounterpartyAccountsPartyAddress) UnmarshalJSON ¶
func (r *CounterpartyAccountsPartyAddress) UnmarshalJSON(data []byte) (err error)
type CounterpartyAccountsPartyType ¶
type CounterpartyAccountsPartyType string
Either `individual` or `business`.
const ( CounterpartyAccountsPartyTypeBusiness CounterpartyAccountsPartyType = "business" CounterpartyAccountsPartyTypeIndividual CounterpartyAccountsPartyType = "individual" )
type CounterpartyAccountsVerificationStatus ¶
type CounterpartyAccountsVerificationStatus string
const ( CounterpartyAccountsVerificationStatusPendingVerification CounterpartyAccountsVerificationStatus = "pending_verification" CounterpartyAccountsVerificationStatusUnverified CounterpartyAccountsVerificationStatus = "unverified" CounterpartyAccountsVerificationStatusVerified CounterpartyAccountsVerificationStatus = "verified" )
type CounterpartyCollectAccountParams ¶
type CounterpartyCollectAccountParams struct { // One of `credit` or `debit`. Use `credit` when you want to pay a counterparty. // Use `debit` when you need to charge a counterparty. This field helps us send a // more tailored email to your counterparties." Direction param.Field[CounterpartyCollectAccountParamsDirection] `json:"direction,required"` // The URL you want your customer to visit upon filling out the form. By default, // they will be sent to a Modern Treasury landing page. This must be a valid HTTPS // URL if set. CustomRedirect param.Field[string] `json:"custom_redirect" format:"uri"` // The list of fields you want on the form. This field is optional and if it is not // set, will default to [\"nameOnAccount\", \"accountType\", \"accountNumber\", // \"routingNumber\", \"address\"]. The full list of options is [\"name\", // \"nameOnAccount\", \"taxpayerIdentifier\", \"accountType\", \"accountNumber\", // \"routingNumber\", \"address\", \"ibanNumber\", \"swiftCode\"]. Fields param.Field[[]CounterpartyCollectAccountParamsField] `json:"fields"` // By default, Modern Treasury will send an email to your counterparty that // includes a link to the form they must fill out. However, if you would like to // send the counterparty the link, you can set this parameter to `false`. The JSON // body will include the link to the secure Modern Treasury form. SendEmail param.Field[bool] `json:"send_email"` }
func (CounterpartyCollectAccountParams) MarshalJSON ¶
func (r CounterpartyCollectAccountParams) MarshalJSON() (data []byte, err error)
type CounterpartyCollectAccountParamsDirection ¶
type CounterpartyCollectAccountParamsDirection string
One of `credit` or `debit`. Use `credit` when you want to pay a counterparty. Use `debit` when you need to charge a counterparty. This field helps us send a more tailored email to your counterparties."
const ( CounterpartyCollectAccountParamsDirectionCredit CounterpartyCollectAccountParamsDirection = "credit" CounterpartyCollectAccountParamsDirectionDebit CounterpartyCollectAccountParamsDirection = "debit" )
type CounterpartyCollectAccountParamsField ¶
type CounterpartyCollectAccountParamsField string
const ( CounterpartyCollectAccountParamsFieldName CounterpartyCollectAccountParamsField = "name" CounterpartyCollectAccountParamsFieldNameOnAccount CounterpartyCollectAccountParamsField = "nameOnAccount" CounterpartyCollectAccountParamsFieldTaxpayerIdentifier CounterpartyCollectAccountParamsField = "taxpayerIdentifier" CounterpartyCollectAccountParamsFieldAccountType CounterpartyCollectAccountParamsField = "accountType" CounterpartyCollectAccountParamsFieldAccountNumber CounterpartyCollectAccountParamsField = "accountNumber" CounterpartyCollectAccountParamsFieldIbanNumber CounterpartyCollectAccountParamsField = "ibanNumber" CounterpartyCollectAccountParamsFieldClabeNumber CounterpartyCollectAccountParamsField = "clabeNumber" CounterpartyCollectAccountParamsFieldWalletAddress CounterpartyCollectAccountParamsField = "walletAddress" CounterpartyCollectAccountParamsFieldPanNumber CounterpartyCollectAccountParamsField = "panNumber" CounterpartyCollectAccountParamsFieldRoutingNumber CounterpartyCollectAccountParamsField = "routingNumber" CounterpartyCollectAccountParamsFieldAbaWireRoutingNumber CounterpartyCollectAccountParamsField = "abaWireRoutingNumber" CounterpartyCollectAccountParamsFieldSwiftCode CounterpartyCollectAccountParamsField = "swiftCode" CounterpartyCollectAccountParamsFieldAuBsb CounterpartyCollectAccountParamsField = "auBsb" CounterpartyCollectAccountParamsFieldCaCpa CounterpartyCollectAccountParamsField = "caCpa" CounterpartyCollectAccountParamsFieldCnaps CounterpartyCollectAccountParamsField = "cnaps" CounterpartyCollectAccountParamsFieldGBSortCode CounterpartyCollectAccountParamsField = "gbSortCode" CounterpartyCollectAccountParamsFieldInIfsc CounterpartyCollectAccountParamsField = "inIfsc" CounterpartyCollectAccountParamsFieldMyBranchCode CounterpartyCollectAccountParamsField = "myBranchCode" CounterpartyCollectAccountParamsFieldBrCodigo CounterpartyCollectAccountParamsField = "brCodigo" CounterpartyCollectAccountParamsFieldRoutingNumberType CounterpartyCollectAccountParamsField = "routingNumberType" CounterpartyCollectAccountParamsFieldAddress CounterpartyCollectAccountParamsField = "address" )
type CounterpartyCollectAccountResponse ¶
type CounterpartyCollectAccountResponse struct { // The id of the existing counterparty. ID string `json:"id,required"` // This is the link to the secure Modern Treasury form. By default, Modern Treasury // will send an email to your counterparty that includes a link to this form. // However, if `send_email` is passed as `false` in the body then Modern Treasury // will not send the email and you can send it to the counterparty directly. FormLink string `json:"form_link,required" format:"uri"` // This field will be `true` if an email requesting account details has already // been sent to this counterparty. IsResend bool `json:"is_resend,required"` JSON counterpartyCollectAccountResponseJSON }
func (*CounterpartyCollectAccountResponse) UnmarshalJSON ¶
func (r *CounterpartyCollectAccountResponse) UnmarshalJSON(data []byte) (err error)
type CounterpartyListParams ¶
type CounterpartyListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` // Used to return counterparties created after some datetime. CreatedAtLowerBound param.Field[time.Time] `query:"created_at_lower_bound" format:"date-time"` // Used to return counterparties created before some datetime. CreatedAtUpperBound param.Field[time.Time] `query:"created_at_upper_bound" format:"date-time"` // Performs a partial string match of the email field. This is also case // insensitive. Email param.Field[string] `query:"email" format:"email"` // For example, if you want to query for records with metadata key `Type` and value // `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query // parameters. Metadata param.Field[map[string]string] `query:"metadata"` // Performs a partial string match of the name field. This is also case // insensitive. Name param.Field[string] `query:"name"` PerPage param.Field[int64] `query:"per_page"` }
func (CounterpartyListParams) URLQuery ¶
func (r CounterpartyListParams) URLQuery() (v url.Values)
URLQuery serializes CounterpartyListParams's query parameters as `url.Values`.
type CounterpartyNewParams ¶
type CounterpartyNewParams struct { // A human friendly name for this counterparty. Name param.Field[string] `json:"name,required"` Accounting param.Field[CounterpartyNewParamsAccounting] `json:"accounting"` // The accounts for this counterparty. Accounts param.Field[[]CounterpartyNewParamsAccount] `json:"accounts"` // The counterparty's email. Email param.Field[string] `json:"email" format:"email"` // An optional type to auto-sync the counterparty to your ledger. Either `customer` // or `vendor`. LedgerType param.Field[CounterpartyNewParamsLedgerType] `json:"ledger_type"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` // Send an email to the counterparty whenever an associated payment order is sent // to the bank. SendRemittanceAdvice param.Field[bool] `json:"send_remittance_advice"` // Either a valid SSN or EIN. TaxpayerIdentifier param.Field[string] `json:"taxpayer_identifier"` // The verification status of the counterparty. VerificationStatus param.Field[CounterpartyNewParamsVerificationStatus] `json:"verification_status"` }
func (CounterpartyNewParams) MarshalJSON ¶
func (r CounterpartyNewParams) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccount ¶
type CounterpartyNewParamsAccount struct { AccountDetails param.Field[[]CounterpartyNewParamsAccountsAccountDetail] `json:"account_details"` // Can be `checking`, `savings` or `other`. AccountType param.Field[ExternalAccountType] `json:"account_type"` ContactDetails param.Field[[]CounterpartyNewParamsAccountsContactDetail] `json:"contact_details"` // Specifies a ledger account object that will be created with the external // account. The resulting ledger account is linked to the external account for // auto-ledgering Payment objects. See // https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects // for more details. LedgerAccount param.Field[CounterpartyNewParamsAccountsLedgerAccount] `json:"ledger_account"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` // A nickname for the external account. This is only for internal usage and won't // affect any payments Name param.Field[string] `json:"name"` // Required if receiving wire payments. PartyAddress param.Field[CounterpartyNewParamsAccountsPartyAddress] `json:"party_address"` PartyIdentifier param.Field[string] `json:"party_identifier"` // If this value isn't provided, it will be inherited from the counterparty's name. PartyName param.Field[string] `json:"party_name"` // Either `individual` or `business`. PartyType param.Field[CounterpartyNewParamsAccountsPartyType] `json:"party_type"` // If you've enabled the Modern Treasury + Plaid integration in your Plaid account, // you can pass the processor token in this field. PlaidProcessorToken param.Field[string] `json:"plaid_processor_token"` RoutingDetails param.Field[[]CounterpartyNewParamsAccountsRoutingDetail] `json:"routing_details"` }
func (CounterpartyNewParamsAccount) MarshalJSON ¶
func (r CounterpartyNewParamsAccount) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccounting ¶
type CounterpartyNewParamsAccounting struct { // An optional type to auto-sync the counterparty to your ledger. Either `customer` // or `vendor`. Type param.Field[CounterpartyNewParamsAccountingType] `json:"type"` }
func (CounterpartyNewParamsAccounting) MarshalJSON ¶
func (r CounterpartyNewParamsAccounting) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccountingType ¶
type CounterpartyNewParamsAccountingType string
An optional type to auto-sync the counterparty to your ledger. Either `customer` or `vendor`.
const ( CounterpartyNewParamsAccountingTypeCustomer CounterpartyNewParamsAccountingType = "customer" CounterpartyNewParamsAccountingTypeVendor CounterpartyNewParamsAccountingType = "vendor" )
type CounterpartyNewParamsAccountsAccountDetail ¶
type CounterpartyNewParamsAccountsAccountDetail struct { AccountNumber param.Field[string] `json:"account_number,required"` AccountNumberType param.Field[CounterpartyNewParamsAccountsAccountDetailsAccountNumberType] `json:"account_number_type"` }
func (CounterpartyNewParamsAccountsAccountDetail) MarshalJSON ¶
func (r CounterpartyNewParamsAccountsAccountDetail) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccountsAccountDetailsAccountNumberType ¶
type CounterpartyNewParamsAccountsAccountDetailsAccountNumberType string
const ( CounterpartyNewParamsAccountsAccountDetailsAccountNumberTypeIban CounterpartyNewParamsAccountsAccountDetailsAccountNumberType = "iban" CounterpartyNewParamsAccountsAccountDetailsAccountNumberTypeClabe CounterpartyNewParamsAccountsAccountDetailsAccountNumberType = "clabe" CounterpartyNewParamsAccountsAccountDetailsAccountNumberTypeWalletAddress CounterpartyNewParamsAccountsAccountDetailsAccountNumberType = "wallet_address" CounterpartyNewParamsAccountsAccountDetailsAccountNumberTypePan CounterpartyNewParamsAccountsAccountDetailsAccountNumberType = "pan" CounterpartyNewParamsAccountsAccountDetailsAccountNumberTypeOther CounterpartyNewParamsAccountsAccountDetailsAccountNumberType = "other" )
type CounterpartyNewParamsAccountsContactDetail ¶
type CounterpartyNewParamsAccountsContactDetail struct { ContactIdentifier param.Field[string] `json:"contact_identifier"` ContactIdentifierType param.Field[CounterpartyNewParamsAccountsContactDetailsContactIdentifierType] `json:"contact_identifier_type"` }
func (CounterpartyNewParamsAccountsContactDetail) MarshalJSON ¶
func (r CounterpartyNewParamsAccountsContactDetail) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccountsContactDetailsContactIdentifierType ¶
type CounterpartyNewParamsAccountsContactDetailsContactIdentifierType string
const ( CounterpartyNewParamsAccountsContactDetailsContactIdentifierTypeEmail CounterpartyNewParamsAccountsContactDetailsContactIdentifierType = "email" CounterpartyNewParamsAccountsContactDetailsContactIdentifierTypePhoneNumber CounterpartyNewParamsAccountsContactDetailsContactIdentifierType = "phone_number" CounterpartyNewParamsAccountsContactDetailsContactIdentifierTypeWebsite CounterpartyNewParamsAccountsContactDetailsContactIdentifierType = "website" )
type CounterpartyNewParamsAccountsLedgerAccount ¶
type CounterpartyNewParamsAccountsLedgerAccount struct { // The currency of the ledger account. Currency param.Field[string] `json:"currency,required"` // The id of the ledger that this account belongs to. LedgerID param.Field[string] `json:"ledger_id,required" format:"uuid"` // The name of the ledger account. Name param.Field[string] `json:"name,required"` // The normal balance of the ledger account. NormalBalance param.Field[CounterpartyNewParamsAccountsLedgerAccountNormalBalance] `json:"normal_balance,required"` // The currency exponent of the ledger account. CurrencyExponent param.Field[int64] `json:"currency_exponent"` // The description of the ledger account. Description param.Field[string] `json:"description"` // If the ledger account links to another object in Modern Treasury, the id will be // populated here, otherwise null. LedgerableID param.Field[string] `json:"ledgerable_id" format:"uuid"` // If the ledger account links to another object in Modern Treasury, the type will // be populated here, otherwise null. The value is one of internal_account or // external_account. LedgerableType param.Field[CounterpartyNewParamsAccountsLedgerAccountLedgerableType] `json:"ledgerable_type"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` }
Specifies a ledger account object that will be created with the external account. The resulting ledger account is linked to the external account for auto-ledgering Payment objects. See https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects for more details.
func (CounterpartyNewParamsAccountsLedgerAccount) MarshalJSON ¶
func (r CounterpartyNewParamsAccountsLedgerAccount) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccountsLedgerAccountLedgerableType ¶
type CounterpartyNewParamsAccountsLedgerAccountLedgerableType string
If the ledger account links to another object in Modern Treasury, the type will be populated here, otherwise null. The value is one of internal_account or external_account.
const ( CounterpartyNewParamsAccountsLedgerAccountLedgerableTypeExternalAccount CounterpartyNewParamsAccountsLedgerAccountLedgerableType = "external_account" CounterpartyNewParamsAccountsLedgerAccountLedgerableTypeInternalAccount CounterpartyNewParamsAccountsLedgerAccountLedgerableType = "internal_account" )
type CounterpartyNewParamsAccountsLedgerAccountNormalBalance ¶
type CounterpartyNewParamsAccountsLedgerAccountNormalBalance string
The normal balance of the ledger account.
const ( CounterpartyNewParamsAccountsLedgerAccountNormalBalanceCredit CounterpartyNewParamsAccountsLedgerAccountNormalBalance = "credit" CounterpartyNewParamsAccountsLedgerAccountNormalBalanceDebit CounterpartyNewParamsAccountsLedgerAccountNormalBalance = "debit" )
type CounterpartyNewParamsAccountsPartyAddress ¶
type CounterpartyNewParamsAccountsPartyAddress struct { // Country code conforms to [ISO 3166-1 alpha-2] Country param.Field[string] `json:"country"` Line1 param.Field[string] `json:"line1"` Line2 param.Field[string] `json:"line2"` // Locality or City. Locality param.Field[string] `json:"locality"` // The postal code of the address. PostalCode param.Field[string] `json:"postal_code"` // Region or State. Region param.Field[string] `json:"region"` }
Required if receiving wire payments.
func (CounterpartyNewParamsAccountsPartyAddress) MarshalJSON ¶
func (r CounterpartyNewParamsAccountsPartyAddress) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccountsPartyType ¶
type CounterpartyNewParamsAccountsPartyType string
Either `individual` or `business`.
const ( CounterpartyNewParamsAccountsPartyTypeBusiness CounterpartyNewParamsAccountsPartyType = "business" CounterpartyNewParamsAccountsPartyTypeIndividual CounterpartyNewParamsAccountsPartyType = "individual" )
type CounterpartyNewParamsAccountsRoutingDetail ¶
type CounterpartyNewParamsAccountsRoutingDetail struct { RoutingNumber param.Field[string] `json:"routing_number,required"` RoutingNumberType param.Field[CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType] `json:"routing_number_type,required"` PaymentType param.Field[CounterpartyNewParamsAccountsRoutingDetailsPaymentType] `json:"payment_type"` }
func (CounterpartyNewParamsAccountsRoutingDetail) MarshalJSON ¶
func (r CounterpartyNewParamsAccountsRoutingDetail) MarshalJSON() (data []byte, err error)
type CounterpartyNewParamsAccountsRoutingDetailsPaymentType ¶
type CounterpartyNewParamsAccountsRoutingDetailsPaymentType string
const ( CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeACH CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "ach" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeAuBecs CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "au_becs" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeBacs CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "bacs" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeBook CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "book" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeCard CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "card" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeCheck CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "check" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeEft CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "eft" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeCrossBorder CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "cross_border" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeInterac CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "interac" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeMasav CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "masav" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeNeft CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "neft" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeProvxchange CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "provxchange" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeRtp CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "rtp" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeSen CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "sen" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeSepa CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "sepa" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeSignet CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "signet" CounterpartyNewParamsAccountsRoutingDetailsPaymentTypeWire CounterpartyNewParamsAccountsRoutingDetailsPaymentType = "wire" )
type CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType ¶
type CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType string
const ( CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeAba CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "aba" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeAuBsb CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "au_bsb" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeBrCodigo CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "br_codigo" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeCaCpa CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "ca_cpa" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeChips CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "chips" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeCnaps CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "cnaps" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeGBSortCode CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "gb_sort_code" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeInIfsc CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "in_ifsc" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeMyBranchCode CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "my_branch_code" CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberTypeSwift CounterpartyNewParamsAccountsRoutingDetailsRoutingNumberType = "swift" )
type CounterpartyNewParamsLedgerType ¶
type CounterpartyNewParamsLedgerType string
An optional type to auto-sync the counterparty to your ledger. Either `customer` or `vendor`.
const ( CounterpartyNewParamsLedgerTypeCustomer CounterpartyNewParamsLedgerType = "customer" CounterpartyNewParamsLedgerTypeVendor CounterpartyNewParamsLedgerType = "vendor" )
type CounterpartyNewParamsVerificationStatus ¶
type CounterpartyNewParamsVerificationStatus string
The verification status of the counterparty.
const ( CounterpartyNewParamsVerificationStatusDenied CounterpartyNewParamsVerificationStatus = "denied" CounterpartyNewParamsVerificationStatusNeedsApproval CounterpartyNewParamsVerificationStatus = "needs_approval" CounterpartyNewParamsVerificationStatusUnverified CounterpartyNewParamsVerificationStatus = "unverified" CounterpartyNewParamsVerificationStatusVerified CounterpartyNewParamsVerificationStatus = "verified" )
type CounterpartyService ¶
type CounterpartyService struct {
Options []option.RequestOption
}
CounterpartyService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewCounterpartyService method instead.
func NewCounterpartyService ¶
func NewCounterpartyService(opts ...option.RequestOption) (r *CounterpartyService)
NewCounterpartyService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*CounterpartyService) CollectAccount ¶
func (r *CounterpartyService) CollectAccount(ctx context.Context, id string, body CounterpartyCollectAccountParams, opts ...option.RequestOption) (res *CounterpartyCollectAccountResponse, err error)
Send an email requesting account details.
func (*CounterpartyService) Delete ¶
func (r *CounterpartyService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
Deletes a given counterparty.
func (*CounterpartyService) Get ¶
func (r *CounterpartyService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Counterparty, err error)
Get details on a single counterparty.
func (*CounterpartyService) List ¶
func (r *CounterpartyService) List(ctx context.Context, query CounterpartyListParams, opts ...option.RequestOption) (res *shared.Page[Counterparty], err error)
Get a paginated list of all counterparties.
func (*CounterpartyService) ListAutoPaging ¶
func (r *CounterpartyService) ListAutoPaging(ctx context.Context, query CounterpartyListParams, opts ...option.RequestOption) *shared.PageAutoPager[Counterparty]
Get a paginated list of all counterparties.
func (*CounterpartyService) New ¶
func (r *CounterpartyService) New(ctx context.Context, body CounterpartyNewParams, opts ...option.RequestOption) (res *Counterparty, err error)
Create a new counterparty.
func (*CounterpartyService) Update ¶
func (r *CounterpartyService) Update(ctx context.Context, id string, body CounterpartyUpdateParams, opts ...option.RequestOption) (res *Counterparty, err error)
Updates a given counterparty with new information.
type CounterpartyUpdateParams ¶
type CounterpartyUpdateParams struct { // A new email for the counterparty. Email param.Field[string] `json:"email" format:"email"` // Additional data in the form of key-value pairs. Pairs can be removed by passing // an empty string or `null` as the value. Metadata param.Field[map[string]string] `json:"metadata"` // A new name for the counterparty. Will only update if passed. Name param.Field[string] `json:"name"` // If this is `true`, Modern Treasury will send an email to the counterparty // whenever an associated payment order is sent to the bank. SendRemittanceAdvice param.Field[bool] `json:"send_remittance_advice"` // Either a valid SSN or EIN. TaxpayerIdentifier param.Field[string] `json:"taxpayer_identifier"` }
func (CounterpartyUpdateParams) MarshalJSON ¶
func (r CounterpartyUpdateParams) MarshalJSON() (data []byte, err error)
type CounterpartyVerificationStatus ¶
type CounterpartyVerificationStatus string
The verification status of the counterparty.
const ( CounterpartyVerificationStatusDenied CounterpartyVerificationStatus = "denied" CounterpartyVerificationStatusNeedsApproval CounterpartyVerificationStatus = "needs_approval" CounterpartyVerificationStatusUnverified CounterpartyVerificationStatus = "unverified" CounterpartyVerificationStatusVerified CounterpartyVerificationStatus = "verified" )
type Document ¶
type Document struct { ID string `json:"id,required" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` DocumentDetails []DocumentDocumentDetail `json:"document_details,required"` // A category given to the document, can be `null`. DocumentType string `json:"document_type,required,nullable"` // The unique identifier for the associated object. DocumentableID string `json:"documentable_id,required" format:"uuid"` // The type of the associated object. Currently can be one of `payment_order`, // `transaction`, `paper_item`, `expected_payment`, `counterparty`, `organization`, // `case`, `internal_account`, `decision`, or `external_account`. DocumentableType DocumentDocumentableType `json:"documentable_type,required"` File DocumentFile `json:"file,required"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` // The source of the document. Can be `vendor`, `customer`, or `modern_treasury`. Source string `json:"source,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON documentJSON }
func (*Document) UnmarshalJSON ¶
type DocumentDocumentDetail ¶
type DocumentDocumentDetail struct { ID string `json:"id,required" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` DocumentIdentifier string `json:"document_identifier,required"` DocumentIdentifierType string `json:"document_identifier_type,required"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON documentDocumentDetailJSON }
func (*DocumentDocumentDetail) UnmarshalJSON ¶
func (r *DocumentDocumentDetail) UnmarshalJSON(data []byte) (err error)
type DocumentDocumentableType ¶
type DocumentDocumentableType string
The type of the associated object. Currently can be one of `payment_order`, `transaction`, `paper_item`, `expected_payment`, `counterparty`, `organization`, `case`, `internal_account`, `decision`, or `external_account`.
const ( DocumentDocumentableTypeCase DocumentDocumentableType = "case" DocumentDocumentableTypeCounterparty DocumentDocumentableType = "counterparty" DocumentDocumentableTypeExpectedPayment DocumentDocumentableType = "expected_payment" DocumentDocumentableTypeExternalAccount DocumentDocumentableType = "external_account" DocumentDocumentableTypeInternalAccount DocumentDocumentableType = "internal_account" DocumentDocumentableTypeOrganization DocumentDocumentableType = "organization" DocumentDocumentableTypePaperItem DocumentDocumentableType = "paper_item" DocumentDocumentableTypePaymentOrder DocumentDocumentableType = "payment_order" DocumentDocumentableTypeTransaction DocumentDocumentableType = "transaction" DocumentDocumentableTypeDecision DocumentDocumentableType = "decision" DocumentDocumentableTypeConnection DocumentDocumentableType = "connection" )
type DocumentFile ¶
type DocumentFile struct { // The MIME content type of the document. ContentType string `json:"content_type"` // The original filename of the document. Filename string `json:"filename"` // The size of the document in bytes. Size int64 `json:"size"` JSON documentFileJSON }
func (*DocumentFile) UnmarshalJSON ¶
func (r *DocumentFile) UnmarshalJSON(data []byte) (err error)
type DocumentListParams ¶
type DocumentListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` // The unique identifier for the associated object. DocumentableID param.Field[string] `query:"documentable_id"` // The type of the associated object. Currently can be one of `payment_order`, // `transaction`, `paper_item`, `expected_payment`, `counterparty`, `organization`, // `case`, `internal_account`, `decision`, or `external_account`. DocumentableType param.Field[DocumentListParamsDocumentableType] `query:"documentable_type"` PerPage param.Field[int64] `query:"per_page"` }
func (DocumentListParams) URLQuery ¶
func (r DocumentListParams) URLQuery() (v url.Values)
URLQuery serializes DocumentListParams's query parameters as `url.Values`.
type DocumentListParamsDocumentableType ¶
type DocumentListParamsDocumentableType string
The type of the associated object. Currently can be one of `payment_order`, `transaction`, `paper_item`, `expected_payment`, `counterparty`, `organization`, `case`, `internal_account`, `decision`, or `external_account`.
const ( DocumentListParamsDocumentableTypeCases DocumentListParamsDocumentableType = "cases" DocumentListParamsDocumentableTypeCounterparties DocumentListParamsDocumentableType = "counterparties" DocumentListParamsDocumentableTypeExpectedPayments DocumentListParamsDocumentableType = "expected_payments" DocumentListParamsDocumentableTypeExternalAccounts DocumentListParamsDocumentableType = "external_accounts" DocumentListParamsDocumentableTypeInternalAccounts DocumentListParamsDocumentableType = "internal_accounts" DocumentListParamsDocumentableTypeOrganizations DocumentListParamsDocumentableType = "organizations" DocumentListParamsDocumentableTypePaperItems DocumentListParamsDocumentableType = "paper_items" DocumentListParamsDocumentableTypePaymentOrders DocumentListParamsDocumentableType = "payment_orders" DocumentListParamsDocumentableTypeTransactions DocumentListParamsDocumentableType = "transactions" DocumentListParamsDocumentableTypeDecisions DocumentListParamsDocumentableType = "decisions" DocumentListParamsDocumentableTypeConnections DocumentListParamsDocumentableType = "connections" )
type DocumentNewParams ¶
type DocumentNewParams struct { // The unique identifier for the associated object. DocumentableID param.Field[string] `json:"documentable_id,required"` DocumentableType param.Field[DocumentNewParamsDocumentableType] `json:"documentable_type,required"` File param.Field[io.Reader] `json:"file,required" format:"binary"` // A category given to the document, can be `null`. DocumentType param.Field[string] `json:"document_type"` }
func (DocumentNewParams) MarshalMultipart ¶
func (r DocumentNewParams) MarshalMultipart() (data []byte, contentType string, err error)
type DocumentNewParamsDocumentableType ¶
type DocumentNewParamsDocumentableType string
const ( DocumentNewParamsDocumentableTypeCases DocumentNewParamsDocumentableType = "cases" DocumentNewParamsDocumentableTypeCounterparties DocumentNewParamsDocumentableType = "counterparties" DocumentNewParamsDocumentableTypeExpectedPayments DocumentNewParamsDocumentableType = "expected_payments" DocumentNewParamsDocumentableTypeExternalAccounts DocumentNewParamsDocumentableType = "external_accounts" DocumentNewParamsDocumentableTypeInternalAccounts DocumentNewParamsDocumentableType = "internal_accounts" DocumentNewParamsDocumentableTypeOrganizations DocumentNewParamsDocumentableType = "organizations" DocumentNewParamsDocumentableTypePaperItems DocumentNewParamsDocumentableType = "paper_items" DocumentNewParamsDocumentableTypePaymentOrders DocumentNewParamsDocumentableType = "payment_orders" DocumentNewParamsDocumentableTypeTransactions DocumentNewParamsDocumentableType = "transactions" DocumentNewParamsDocumentableTypeDecisions DocumentNewParamsDocumentableType = "decisions" DocumentNewParamsDocumentableTypeConnections DocumentNewParamsDocumentableType = "connections" )
type DocumentService ¶
type DocumentService struct {
Options []option.RequestOption
}
DocumentService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewDocumentService method instead.
func NewDocumentService ¶
func NewDocumentService(opts ...option.RequestOption) (r *DocumentService)
NewDocumentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*DocumentService) Get ¶
func (r *DocumentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Document, err error)
Get an existing document.
func (*DocumentService) List ¶
func (r *DocumentService) List(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) (res *shared.Page[Document], err error)
Get a list of documents.
func (*DocumentService) ListAutoPaging ¶
func (r *DocumentService) ListAutoPaging(ctx context.Context, query DocumentListParams, opts ...option.RequestOption) *shared.PageAutoPager[Document]
Get a list of documents.
func (*DocumentService) New ¶
func (r *DocumentService) New(ctx context.Context, body DocumentNewParams, opts ...option.RequestOption) (res *Document, err error)
Create a document.
type Event ¶
type Event struct { ID string `json:"id,required" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` // The body of the event. Data map[string]interface{} `json:"data,required"` // The ID of the entity for the event. EntityID string `json:"entity_id,required"` // The name of the event. EventName string `json:"event_name,required"` // The time of the event. EventTime time.Time `json:"event_time,required" format:"date-time"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` // The type of resource for the event. Resource string `json:"resource,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON eventJSON }
func (*Event) UnmarshalJSON ¶
type EventListParams ¶
type EventListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` EntityID param.Field[string] `query:"entity_id"` EventName param.Field[string] `query:"event_name"` // An inclusive upper bound for when the event occurred EventTimeEnd param.Field[time.Time] `query:"event_time_end" format:"date-time"` // An inclusive lower bound for when the event occurred EventTimeStart param.Field[time.Time] `query:"event_time_start" format:"date-time"` PerPage param.Field[int64] `query:"per_page"` Resource param.Field[string] `query:"resource"` }
func (EventListParams) URLQuery ¶
func (r EventListParams) URLQuery() (v url.Values)
URLQuery serializes EventListParams's query parameters as `url.Values`.
type EventService ¶
type EventService struct {
Options []option.RequestOption
}
EventService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewEventService method instead.
func NewEventService ¶
func NewEventService(opts ...option.RequestOption) (r *EventService)
NewEventService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*EventService) Get ¶
func (r *EventService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *Event, err error)
get event
func (*EventService) List ¶
func (r *EventService) List(ctx context.Context, query EventListParams, opts ...option.RequestOption) (res *shared.Page[Event], err error)
list events
func (*EventService) ListAutoPaging ¶
func (r *EventService) ListAutoPaging(ctx context.Context, query EventListParams, opts ...option.RequestOption) *shared.PageAutoPager[Event]
list events
type ExpectedPayment ¶
type ExpectedPayment struct { ID string `json:"id,required" format:"uuid"` // The lowest amount this expected payment may be equal to. Value in specified // currency's smallest unit. e.g. $10 would be represented as 1000. AmountLowerBound int64 `json:"amount_lower_bound,required"` // The highest amount this expected payment may be equal to. Value in specified // currency's smallest unit. e.g. $10 would be represented as 1000. AmountUpperBound int64 `json:"amount_upper_bound,required"` // The ID of the counterparty you expect for this payment. CounterpartyID string `json:"counterparty_id,required,nullable" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` // Must conform to ISO 4217. Defaults to the currency of the internal account. Currency shared.Currency `json:"currency,required,nullable"` // The earliest date the payment may come in. Format: yyyy-mm-dd DateLowerBound time.Time `json:"date_lower_bound,required,nullable" format:"date"` // The latest date the payment may come in. Format: yyyy-mm-dd DateUpperBound time.Time `json:"date_upper_bound,required,nullable" format:"date"` // An optional description for internal use. Description string `json:"description,required,nullable"` // One of credit or debit. When you are receiving money, use credit. When you are // being charged, use debit. Direction ExpectedPaymentDirection `json:"direction,required"` // The ID of the Internal Account for the expected payment. InternalAccountID string `json:"internal_account_id,required" format:"uuid"` // The ID of the ledger transaction linked to the expected payment. LedgerTransactionID string `json:"ledger_transaction_id,required,nullable" format:"uuid"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata map[string]string `json:"metadata,required"` Object string `json:"object,required"` // The reconciliation filters you have for this payment. ReconciliationFilters interface{} `json:"reconciliation_filters,required,nullable"` // The reconciliation groups you have for this payment. ReconciliationGroups interface{} `json:"reconciliation_groups,required,nullable"` // One of manual if this expected payment was manually reconciled in the dashboard, // automatic if it was automatically reconciled by Modern Treasury, or null if it // is unreconciled. ReconciliationMethod ExpectedPaymentReconciliationMethod `json:"reconciliation_method,required,nullable"` // For `ach`, this field will be passed through on an addenda record. For `wire` // payments the field will be passed through as the "Originator to Beneficiary // Information", also known as OBI or Fedwire tag 6000. RemittanceInformation string `json:"remittance_information,required,nullable"` // The statement description you expect to see on the transaction. For ACH // payments, this will be the full line item passed from the bank. For wire // payments, this will be the OBI field on the wire. For check payments, this will // be the memo field. StatementDescriptor string `json:"statement_descriptor,required,nullable"` // One of unreconciled, reconciled, or archived. Status ExpectedPaymentStatus `json:"status,required"` // The ID of the Transaction this expected payment object has been matched to. TransactionID string `json:"transaction_id,required,nullable" format:"uuid"` // The ID of the Transaction Line Item this expected payment has been matched to. TransactionLineItemID string `json:"transaction_line_item_id,required,nullable" format:"uuid"` // One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, // sepa, signet, wire. Type ExpectedPaymentType `json:"type,required,nullable"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON expectedPaymentJSON }
func (*ExpectedPayment) UnmarshalJSON ¶
func (r *ExpectedPayment) UnmarshalJSON(data []byte) (err error)
type ExpectedPaymentDirection ¶
type ExpectedPaymentDirection string
One of credit or debit. When you are receiving money, use credit. When you are being charged, use debit.
const ( ExpectedPaymentDirectionCredit ExpectedPaymentDirection = "credit" ExpectedPaymentDirectionDebit ExpectedPaymentDirection = "debit" )
type ExpectedPaymentListParams ¶
type ExpectedPaymentListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` // Specify counterparty_id to see expected_payments for a specific account. CounterpartyID param.Field[string] `query:"counterparty_id"` // Used to return expected payments created after some datetime CreatedAtLowerBound param.Field[time.Time] `query:"created_at_lower_bound" format:"date-time"` // Used to return expected payments created before some datetime CreatedAtUpperBound param.Field[time.Time] `query:"created_at_upper_bound" format:"date-time"` // One of credit, debit Direction param.Field[ExpectedPaymentListParamsDirection] `query:"direction"` // Specify internal_account_id to see expected_payments for a specific account. InternalAccountID param.Field[string] `query:"internal_account_id"` // For example, if you want to query for records with metadata key `Type` and value // `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query // parameters. Metadata param.Field[map[string]string] `query:"metadata"` PerPage param.Field[int64] `query:"per_page"` // One of unreconciled, reconciled, or archived. Status param.Field[ExpectedPaymentListParamsStatus] `query:"status"` // One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, // sepa, signet, wire Type param.Field[ExpectedPaymentListParamsType] `query:"type"` }
func (ExpectedPaymentListParams) URLQuery ¶
func (r ExpectedPaymentListParams) URLQuery() (v url.Values)
URLQuery serializes ExpectedPaymentListParams's query parameters as `url.Values`.
type ExpectedPaymentListParamsDirection ¶
type ExpectedPaymentListParamsDirection string
One of credit, debit
const ( ExpectedPaymentListParamsDirectionCredit ExpectedPaymentListParamsDirection = "credit" ExpectedPaymentListParamsDirectionDebit ExpectedPaymentListParamsDirection = "debit" )
type ExpectedPaymentListParamsStatus ¶
type ExpectedPaymentListParamsStatus string
One of unreconciled, reconciled, or archived.
const ( ExpectedPaymentListParamsStatusArchived ExpectedPaymentListParamsStatus = "archived" ExpectedPaymentListParamsStatusReconciled ExpectedPaymentListParamsStatus = "reconciled" ExpectedPaymentListParamsStatusUnreconciled ExpectedPaymentListParamsStatus = "unreconciled" )
type ExpectedPaymentListParamsType ¶
type ExpectedPaymentListParamsType string
One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, sepa, signet, wire
const ( ExpectedPaymentListParamsTypeACH ExpectedPaymentListParamsType = "ach" ExpectedPaymentListParamsTypeAuBecs ExpectedPaymentListParamsType = "au_becs" ExpectedPaymentListParamsTypeBacs ExpectedPaymentListParamsType = "bacs" ExpectedPaymentListParamsTypeBook ExpectedPaymentListParamsType = "book" ExpectedPaymentListParamsTypeCard ExpectedPaymentListParamsType = "card" ExpectedPaymentListParamsTypeCheck ExpectedPaymentListParamsType = "check" ExpectedPaymentListParamsTypeCrossBorder ExpectedPaymentListParamsType = "cross_border" ExpectedPaymentListParamsTypeEft ExpectedPaymentListParamsType = "eft" ExpectedPaymentListParamsTypeInterac ExpectedPaymentListParamsType = "interac" ExpectedPaymentListParamsTypeMasav ExpectedPaymentListParamsType = "masav" ExpectedPaymentListParamsTypeNeft ExpectedPaymentListParamsType = "neft" ExpectedPaymentListParamsTypeProvxchange ExpectedPaymentListParamsType = "provxchange" ExpectedPaymentListParamsTypeRtp ExpectedPaymentListParamsType = "rtp" ExpectedPaymentListParamsTypeSen ExpectedPaymentListParamsType = "sen" ExpectedPaymentListParamsTypeSepa ExpectedPaymentListParamsType = "sepa" ExpectedPaymentListParamsTypeSignet ExpectedPaymentListParamsType = "signet" ExpectedPaymentListParamsTypeWire ExpectedPaymentListParamsType = "wire" )
type ExpectedPaymentNewParams ¶
type ExpectedPaymentNewParams struct { // The lowest amount this expected payment may be equal to. Value in specified // currency's smallest unit. e.g. $10 would be represented as 1000. AmountLowerBound param.Field[int64] `json:"amount_lower_bound,required"` // The highest amount this expected payment may be equal to. Value in specified // currency's smallest unit. e.g. $10 would be represented as 1000. AmountUpperBound param.Field[int64] `json:"amount_upper_bound,required"` // One of credit or debit. When you are receiving money, use credit. When you are // being charged, use debit. Direction param.Field[ExpectedPaymentNewParamsDirection] `json:"direction,required"` // The ID of the Internal Account for the expected payment. InternalAccountID param.Field[string] `json:"internal_account_id,required" format:"uuid"` // The ID of the counterparty you expect for this payment. CounterpartyID param.Field[string] `json:"counterparty_id" format:"uuid"` // Must conform to ISO 4217. Defaults to the currency of the internal account. Currency param.Field[shared.Currency] `json:"currency"` // The earliest date the payment may come in. Format: yyyy-mm-dd DateLowerBound param.Field[time.Time] `json:"date_lower_bound" format:"date"` // The latest date the payment may come in. Format: yyyy-mm-dd DateUpperBound param.Field[time.Time] `json:"date_upper_bound" format:"date"` // An optional description for internal use. Description param.Field[string] `json:"description"` LineItems param.Field[[]ExpectedPaymentNewParamsLineItem] `json:"line_items"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` // The reconciliation filters you have for this payment. ReconciliationFilters param.Field[interface{}] `json:"reconciliation_filters"` // The reconciliation groups you have for this payment. ReconciliationGroups param.Field[interface{}] `json:"reconciliation_groups"` // For `ach`, this field will be passed through on an addenda record. For `wire` // payments the field will be passed through as the "Originator to Beneficiary // Information", also known as OBI or Fedwire tag 6000. RemittanceInformation param.Field[string] `json:"remittance_information"` // The statement description you expect to see on the transaction. For ACH // payments, this will be the full line item passed from the bank. For wire // payments, this will be the OBI field on the wire. For check payments, this will // be the memo field. StatementDescriptor param.Field[string] `json:"statement_descriptor"` // One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, // sepa, signet, wire. Type param.Field[ExpectedPaymentType] `json:"type"` }
func (ExpectedPaymentNewParams) MarshalJSON ¶
func (r ExpectedPaymentNewParams) MarshalJSON() (data []byte, err error)
type ExpectedPaymentNewParamsDirection ¶
type ExpectedPaymentNewParamsDirection string
One of credit or debit. When you are receiving money, use credit. When you are being charged, use debit.
const ( ExpectedPaymentNewParamsDirectionCredit ExpectedPaymentNewParamsDirection = "credit" ExpectedPaymentNewParamsDirectionDebit ExpectedPaymentNewParamsDirection = "debit" )
type ExpectedPaymentNewParamsLineItem ¶
type ExpectedPaymentNewParamsLineItem struct { // Value in specified currency's smallest unit. e.g. $10 would be represented // as 1000. Amount param.Field[int64] `json:"amount,required"` // The ID of one of your accounting categories. Note that these will only be // accessible if your accounting system has been connected. AccountingCategoryID param.Field[string] `json:"accounting_category_id"` // A free-form description of the line item. Description param.Field[string] `json:"description"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` }
func (ExpectedPaymentNewParamsLineItem) MarshalJSON ¶
func (r ExpectedPaymentNewParamsLineItem) MarshalJSON() (data []byte, err error)
type ExpectedPaymentReconciliationMethod ¶
type ExpectedPaymentReconciliationMethod string
One of manual if this expected payment was manually reconciled in the dashboard, automatic if it was automatically reconciled by Modern Treasury, or null if it is unreconciled.
const ( ExpectedPaymentReconciliationMethodAutomatic ExpectedPaymentReconciliationMethod = "automatic" ExpectedPaymentReconciliationMethodManual ExpectedPaymentReconciliationMethod = "manual" )
type ExpectedPaymentService ¶
type ExpectedPaymentService struct {
Options []option.RequestOption
}
ExpectedPaymentService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewExpectedPaymentService method instead.
func NewExpectedPaymentService ¶
func NewExpectedPaymentService(opts ...option.RequestOption) (r *ExpectedPaymentService)
NewExpectedPaymentService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ExpectedPaymentService) Delete ¶
func (r *ExpectedPaymentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *ExpectedPayment, err error)
delete expected payment
func (*ExpectedPaymentService) Get ¶
func (r *ExpectedPaymentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ExpectedPayment, err error)
get expected payment
func (*ExpectedPaymentService) List ¶
func (r *ExpectedPaymentService) List(ctx context.Context, query ExpectedPaymentListParams, opts ...option.RequestOption) (res *shared.Page[ExpectedPayment], err error)
list expected_payments
func (*ExpectedPaymentService) ListAutoPaging ¶
func (r *ExpectedPaymentService) ListAutoPaging(ctx context.Context, query ExpectedPaymentListParams, opts ...option.RequestOption) *shared.PageAutoPager[ExpectedPayment]
list expected_payments
func (*ExpectedPaymentService) New ¶
func (r *ExpectedPaymentService) New(ctx context.Context, body ExpectedPaymentNewParams, opts ...option.RequestOption) (res *ExpectedPayment, err error)
create expected payment
func (*ExpectedPaymentService) Update ¶
func (r *ExpectedPaymentService) Update(ctx context.Context, id string, body ExpectedPaymentUpdateParams, opts ...option.RequestOption) (res *ExpectedPayment, err error)
update expected payment
type ExpectedPaymentStatus ¶
type ExpectedPaymentStatus string
One of unreconciled, reconciled, or archived.
const ( ExpectedPaymentStatusArchived ExpectedPaymentStatus = "archived" ExpectedPaymentStatusReconciled ExpectedPaymentStatus = "reconciled" ExpectedPaymentStatusUnreconciled ExpectedPaymentStatus = "unreconciled" )
type ExpectedPaymentType ¶
type ExpectedPaymentType string
One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, sepa, signet, wire.
const ( ExpectedPaymentTypeACH ExpectedPaymentType = "ach" ExpectedPaymentTypeAuBecs ExpectedPaymentType = "au_becs" ExpectedPaymentTypeBacs ExpectedPaymentType = "bacs" ExpectedPaymentTypeBook ExpectedPaymentType = "book" ExpectedPaymentTypeCard ExpectedPaymentType = "card" ExpectedPaymentTypeCheck ExpectedPaymentType = "check" ExpectedPaymentTypeCrossBorder ExpectedPaymentType = "cross_border" ExpectedPaymentTypeEft ExpectedPaymentType = "eft" ExpectedPaymentTypeInterac ExpectedPaymentType = "interac" ExpectedPaymentTypeMasav ExpectedPaymentType = "masav" ExpectedPaymentTypeNeft ExpectedPaymentType = "neft" ExpectedPaymentTypeProvxchange ExpectedPaymentType = "provxchange" ExpectedPaymentTypeRtp ExpectedPaymentType = "rtp" ExpectedPaymentTypeSen ExpectedPaymentType = "sen" ExpectedPaymentTypeSepa ExpectedPaymentType = "sepa" ExpectedPaymentTypeSignet ExpectedPaymentType = "signet" ExpectedPaymentTypeWire ExpectedPaymentType = "wire" )
type ExpectedPaymentUpdateParams ¶
type ExpectedPaymentUpdateParams struct { // The lowest amount this expected payment may be equal to. Value in specified // currency's smallest unit. e.g. $10 would be represented as 1000. AmountLowerBound param.Field[int64] `json:"amount_lower_bound"` // The highest amount this expected payment may be equal to. Value in specified // currency's smallest unit. e.g. $10 would be represented as 1000. AmountUpperBound param.Field[int64] `json:"amount_upper_bound"` // The ID of the counterparty you expect for this payment. CounterpartyID param.Field[string] `json:"counterparty_id" format:"uuid"` // Must conform to ISO 4217. Defaults to the currency of the internal account. Currency param.Field[shared.Currency] `json:"currency"` // The earliest date the payment may come in. Format: yyyy-mm-dd DateLowerBound param.Field[time.Time] `json:"date_lower_bound" format:"date"` // The latest date the payment may come in. Format: yyyy-mm-dd DateUpperBound param.Field[time.Time] `json:"date_upper_bound" format:"date"` // An optional description for internal use. Description param.Field[string] `json:"description"` // One of credit or debit. When you are receiving money, use credit. When you are // being charged, use debit. Direction param.Field[ExpectedPaymentUpdateParamsDirection] `json:"direction"` // The ID of the Internal Account for the expected payment. InternalAccountID param.Field[string] `json:"internal_account_id" format:"uuid"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` // The reconciliation filters you have for this payment. ReconciliationFilters param.Field[interface{}] `json:"reconciliation_filters"` // The reconciliation groups you have for this payment. ReconciliationGroups param.Field[interface{}] `json:"reconciliation_groups"` // For `ach`, this field will be passed through on an addenda record. For `wire` // payments the field will be passed through as the "Originator to Beneficiary // Information", also known as OBI or Fedwire tag 6000. RemittanceInformation param.Field[string] `json:"remittance_information"` // The statement description you expect to see on the transaction. For ACH // payments, this will be the full line item passed from the bank. For wire // payments, this will be the OBI field on the wire. For check payments, this will // be the memo field. StatementDescriptor param.Field[string] `json:"statement_descriptor"` // One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, // sepa, signet, wire. Type param.Field[ExpectedPaymentType] `json:"type"` }
func (ExpectedPaymentUpdateParams) MarshalJSON ¶
func (r ExpectedPaymentUpdateParams) MarshalJSON() (data []byte, err error)
type ExpectedPaymentUpdateParamsDirection ¶
type ExpectedPaymentUpdateParamsDirection string
One of credit or debit. When you are receiving money, use credit. When you are being charged, use debit.
const ( ExpectedPaymentUpdateParamsDirectionCredit ExpectedPaymentUpdateParamsDirection = "credit" ExpectedPaymentUpdateParamsDirectionDebit ExpectedPaymentUpdateParamsDirection = "debit" )
type ExternalAccount ¶
type ExternalAccount struct { ID string `json:"id,required" format:"uuid"` AccountDetails []AccountDetail `json:"account_details,required"` // Can be `checking`, `savings` or `other`. AccountType ExternalAccountType `json:"account_type,required"` ContactDetails []ExternalAccountContactDetail `json:"contact_details,required"` CounterpartyID string `json:"counterparty_id,required,nullable" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` // If the external account links to a ledger account in Modern Treasury, the id of // the ledger account will be populated here. LedgerAccountID string `json:"ledger_account_id,required,nullable" format:"uuid"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata map[string]string `json:"metadata,required"` // A nickname for the external account. This is only for internal usage and won't // affect any payments Name string `json:"name,required,nullable"` Object string `json:"object,required"` // The address associated with the owner or `null`. PartyAddress ExternalAccountPartyAddress `json:"party_address,required,nullable"` // The legal name of the entity which owns the account. PartyName string `json:"party_name,required"` // Either `individual` or `business`. PartyType ExternalAccountPartyType `json:"party_type,required,nullable"` RoutingDetails []RoutingDetail `json:"routing_details,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` VerificationStatus ExternalAccountVerificationStatus `json:"verification_status,required"` JSON externalAccountJSON }
func (*ExternalAccount) UnmarshalJSON ¶
func (r *ExternalAccount) UnmarshalJSON(data []byte) (err error)
type ExternalAccountCompleteVerificationParams ¶
type ExternalAccountCompleteVerificationParams struct {
Amounts param.Field[[]int64] `json:"amounts"`
}
func (ExternalAccountCompleteVerificationParams) MarshalJSON ¶
func (r ExternalAccountCompleteVerificationParams) MarshalJSON() (data []byte, err error)
type ExternalAccountContactDetail ¶
type ExternalAccountContactDetail struct { ID string `json:"id,required" format:"uuid"` ContactIdentifier string `json:"contact_identifier,required"` ContactIdentifierType ExternalAccountContactDetailsContactIdentifierType `json:"contact_identifier_type,required"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` DiscardedAt time.Time `json:"discarded_at,required,nullable" format:"date-time"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` Object string `json:"object,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON externalAccountContactDetailJSON }
func (*ExternalAccountContactDetail) UnmarshalJSON ¶
func (r *ExternalAccountContactDetail) UnmarshalJSON(data []byte) (err error)
type ExternalAccountContactDetailsContactIdentifierType ¶
type ExternalAccountContactDetailsContactIdentifierType string
const ( ExternalAccountContactDetailsContactIdentifierTypeEmail ExternalAccountContactDetailsContactIdentifierType = "email" ExternalAccountContactDetailsContactIdentifierTypePhoneNumber ExternalAccountContactDetailsContactIdentifierType = "phone_number" ExternalAccountContactDetailsContactIdentifierTypeWebsite ExternalAccountContactDetailsContactIdentifierType = "website" )
type ExternalAccountListParams ¶
type ExternalAccountListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` CounterpartyID param.Field[string] `query:"counterparty_id"` // For example, if you want to query for records with metadata key `Type` and value // `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query // parameters. Metadata param.Field[map[string]string] `query:"metadata"` // Searches the ExternalAccount's party_name AND the Counterparty's party_name PartyName param.Field[string] `query:"party_name"` PerPage param.Field[int64] `query:"per_page"` }
func (ExternalAccountListParams) URLQuery ¶
func (r ExternalAccountListParams) URLQuery() (v url.Values)
URLQuery serializes ExternalAccountListParams's query parameters as `url.Values`.
type ExternalAccountNewParams ¶
type ExternalAccountNewParams struct { CounterpartyID param.Field[string] `json:"counterparty_id,required" format:"uuid"` AccountDetails param.Field[[]ExternalAccountNewParamsAccountDetail] `json:"account_details"` // Can be `checking`, `savings` or `other`. AccountType param.Field[ExternalAccountType] `json:"account_type"` ContactDetails param.Field[[]ExternalAccountNewParamsContactDetail] `json:"contact_details"` // Specifies a ledger account object that will be created with the external // account. The resulting ledger account is linked to the external account for // auto-ledgering Payment objects. See // https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects // for more details. LedgerAccount param.Field[ExternalAccountNewParamsLedgerAccount] `json:"ledger_account"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` // A nickname for the external account. This is only for internal usage and won't // affect any payments Name param.Field[string] `json:"name"` // Required if receiving wire payments. PartyAddress param.Field[ExternalAccountNewParamsPartyAddress] `json:"party_address"` PartyIdentifier param.Field[string] `json:"party_identifier"` // If this value isn't provided, it will be inherited from the counterparty's name. PartyName param.Field[string] `json:"party_name"` // Either `individual` or `business`. PartyType param.Field[ExternalAccountNewParamsPartyType] `json:"party_type"` // If you've enabled the Modern Treasury + Plaid integration in your Plaid account, // you can pass the processor token in this field. PlaidProcessorToken param.Field[string] `json:"plaid_processor_token"` RoutingDetails param.Field[[]ExternalAccountNewParamsRoutingDetail] `json:"routing_details"` }
func (ExternalAccountNewParams) MarshalJSON ¶
func (r ExternalAccountNewParams) MarshalJSON() (data []byte, err error)
type ExternalAccountNewParamsAccountDetail ¶
type ExternalAccountNewParamsAccountDetail struct { AccountNumber param.Field[string] `json:"account_number,required"` AccountNumberType param.Field[ExternalAccountNewParamsAccountDetailsAccountNumberType] `json:"account_number_type"` }
func (ExternalAccountNewParamsAccountDetail) MarshalJSON ¶
func (r ExternalAccountNewParamsAccountDetail) MarshalJSON() (data []byte, err error)
type ExternalAccountNewParamsAccountDetailsAccountNumberType ¶
type ExternalAccountNewParamsAccountDetailsAccountNumberType string
const ( ExternalAccountNewParamsAccountDetailsAccountNumberTypeIban ExternalAccountNewParamsAccountDetailsAccountNumberType = "iban" ExternalAccountNewParamsAccountDetailsAccountNumberTypeClabe ExternalAccountNewParamsAccountDetailsAccountNumberType = "clabe" ExternalAccountNewParamsAccountDetailsAccountNumberTypeWalletAddress ExternalAccountNewParamsAccountDetailsAccountNumberType = "wallet_address" ExternalAccountNewParamsAccountDetailsAccountNumberTypePan ExternalAccountNewParamsAccountDetailsAccountNumberType = "pan" ExternalAccountNewParamsAccountDetailsAccountNumberTypeOther ExternalAccountNewParamsAccountDetailsAccountNumberType = "other" )
type ExternalAccountNewParamsContactDetail ¶
type ExternalAccountNewParamsContactDetail struct { ContactIdentifier param.Field[string] `json:"contact_identifier"` ContactIdentifierType param.Field[ExternalAccountNewParamsContactDetailsContactIdentifierType] `json:"contact_identifier_type"` }
func (ExternalAccountNewParamsContactDetail) MarshalJSON ¶
func (r ExternalAccountNewParamsContactDetail) MarshalJSON() (data []byte, err error)
type ExternalAccountNewParamsContactDetailsContactIdentifierType ¶
type ExternalAccountNewParamsContactDetailsContactIdentifierType string
const ( ExternalAccountNewParamsContactDetailsContactIdentifierTypeEmail ExternalAccountNewParamsContactDetailsContactIdentifierType = "email" ExternalAccountNewParamsContactDetailsContactIdentifierTypePhoneNumber ExternalAccountNewParamsContactDetailsContactIdentifierType = "phone_number" ExternalAccountNewParamsContactDetailsContactIdentifierTypeWebsite ExternalAccountNewParamsContactDetailsContactIdentifierType = "website" )
type ExternalAccountNewParamsLedgerAccount ¶
type ExternalAccountNewParamsLedgerAccount struct { // The currency of the ledger account. Currency param.Field[string] `json:"currency,required"` // The id of the ledger that this account belongs to. LedgerID param.Field[string] `json:"ledger_id,required" format:"uuid"` // The name of the ledger account. Name param.Field[string] `json:"name,required"` // The normal balance of the ledger account. NormalBalance param.Field[ExternalAccountNewParamsLedgerAccountNormalBalance] `json:"normal_balance,required"` // The currency exponent of the ledger account. CurrencyExponent param.Field[int64] `json:"currency_exponent"` // The description of the ledger account. Description param.Field[string] `json:"description"` // If the ledger account links to another object in Modern Treasury, the id will be // populated here, otherwise null. LedgerableID param.Field[string] `json:"ledgerable_id" format:"uuid"` // If the ledger account links to another object in Modern Treasury, the type will // be populated here, otherwise null. The value is one of internal_account or // external_account. LedgerableType param.Field[ExternalAccountNewParamsLedgerAccountLedgerableType] `json:"ledgerable_type"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata param.Field[map[string]string] `json:"metadata"` }
Specifies a ledger account object that will be created with the external account. The resulting ledger account is linked to the external account for auto-ledgering Payment objects. See https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects for more details.
func (ExternalAccountNewParamsLedgerAccount) MarshalJSON ¶
func (r ExternalAccountNewParamsLedgerAccount) MarshalJSON() (data []byte, err error)
type ExternalAccountNewParamsLedgerAccountLedgerableType ¶
type ExternalAccountNewParamsLedgerAccountLedgerableType string
If the ledger account links to another object in Modern Treasury, the type will be populated here, otherwise null. The value is one of internal_account or external_account.
const ( ExternalAccountNewParamsLedgerAccountLedgerableTypeExternalAccount ExternalAccountNewParamsLedgerAccountLedgerableType = "external_account" ExternalAccountNewParamsLedgerAccountLedgerableTypeInternalAccount ExternalAccountNewParamsLedgerAccountLedgerableType = "internal_account" )
type ExternalAccountNewParamsLedgerAccountNormalBalance ¶
type ExternalAccountNewParamsLedgerAccountNormalBalance string
The normal balance of the ledger account.
const ( ExternalAccountNewParamsLedgerAccountNormalBalanceCredit ExternalAccountNewParamsLedgerAccountNormalBalance = "credit" ExternalAccountNewParamsLedgerAccountNormalBalanceDebit ExternalAccountNewParamsLedgerAccountNormalBalance = "debit" )
type ExternalAccountNewParamsPartyAddress ¶
type ExternalAccountNewParamsPartyAddress struct { // Country code conforms to [ISO 3166-1 alpha-2] Country param.Field[string] `json:"country"` Line1 param.Field[string] `json:"line1"` Line2 param.Field[string] `json:"line2"` // Locality or City. Locality param.Field[string] `json:"locality"` // The postal code of the address. PostalCode param.Field[string] `json:"postal_code"` // Region or State. Region param.Field[string] `json:"region"` }
Required if receiving wire payments.
func (ExternalAccountNewParamsPartyAddress) MarshalJSON ¶
func (r ExternalAccountNewParamsPartyAddress) MarshalJSON() (data []byte, err error)
type ExternalAccountNewParamsPartyType ¶
type ExternalAccountNewParamsPartyType string
Either `individual` or `business`.
const ( ExternalAccountNewParamsPartyTypeBusiness ExternalAccountNewParamsPartyType = "business" ExternalAccountNewParamsPartyTypeIndividual ExternalAccountNewParamsPartyType = "individual" )
type ExternalAccountNewParamsRoutingDetail ¶
type ExternalAccountNewParamsRoutingDetail struct { RoutingNumber param.Field[string] `json:"routing_number,required"` RoutingNumberType param.Field[ExternalAccountNewParamsRoutingDetailsRoutingNumberType] `json:"routing_number_type,required"` PaymentType param.Field[ExternalAccountNewParamsRoutingDetailsPaymentType] `json:"payment_type"` }
func (ExternalAccountNewParamsRoutingDetail) MarshalJSON ¶
func (r ExternalAccountNewParamsRoutingDetail) MarshalJSON() (data []byte, err error)
type ExternalAccountNewParamsRoutingDetailsPaymentType ¶
type ExternalAccountNewParamsRoutingDetailsPaymentType string
const ( ExternalAccountNewParamsRoutingDetailsPaymentTypeACH ExternalAccountNewParamsRoutingDetailsPaymentType = "ach" ExternalAccountNewParamsRoutingDetailsPaymentTypeAuBecs ExternalAccountNewParamsRoutingDetailsPaymentType = "au_becs" ExternalAccountNewParamsRoutingDetailsPaymentTypeBacs ExternalAccountNewParamsRoutingDetailsPaymentType = "bacs" ExternalAccountNewParamsRoutingDetailsPaymentTypeBook ExternalAccountNewParamsRoutingDetailsPaymentType = "book" ExternalAccountNewParamsRoutingDetailsPaymentTypeCard ExternalAccountNewParamsRoutingDetailsPaymentType = "card" ExternalAccountNewParamsRoutingDetailsPaymentTypeCheck ExternalAccountNewParamsRoutingDetailsPaymentType = "check" ExternalAccountNewParamsRoutingDetailsPaymentTypeEft ExternalAccountNewParamsRoutingDetailsPaymentType = "eft" ExternalAccountNewParamsRoutingDetailsPaymentTypeCrossBorder ExternalAccountNewParamsRoutingDetailsPaymentType = "cross_border" ExternalAccountNewParamsRoutingDetailsPaymentTypeInterac ExternalAccountNewParamsRoutingDetailsPaymentType = "interac" ExternalAccountNewParamsRoutingDetailsPaymentTypeMasav ExternalAccountNewParamsRoutingDetailsPaymentType = "masav" ExternalAccountNewParamsRoutingDetailsPaymentTypeNeft ExternalAccountNewParamsRoutingDetailsPaymentType = "neft" ExternalAccountNewParamsRoutingDetailsPaymentTypeProvxchange ExternalAccountNewParamsRoutingDetailsPaymentType = "provxchange" ExternalAccountNewParamsRoutingDetailsPaymentTypeRtp ExternalAccountNewParamsRoutingDetailsPaymentType = "rtp" ExternalAccountNewParamsRoutingDetailsPaymentTypeSen ExternalAccountNewParamsRoutingDetailsPaymentType = "sen" ExternalAccountNewParamsRoutingDetailsPaymentTypeSepa ExternalAccountNewParamsRoutingDetailsPaymentType = "sepa" ExternalAccountNewParamsRoutingDetailsPaymentTypeSignet ExternalAccountNewParamsRoutingDetailsPaymentType = "signet" ExternalAccountNewParamsRoutingDetailsPaymentTypeWire ExternalAccountNewParamsRoutingDetailsPaymentType = "wire" )
type ExternalAccountNewParamsRoutingDetailsRoutingNumberType ¶
type ExternalAccountNewParamsRoutingDetailsRoutingNumberType string
const ( ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeAba ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "aba" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeAuBsb ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "au_bsb" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeBrCodigo ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "br_codigo" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeCaCpa ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "ca_cpa" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeChips ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "chips" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeCnaps ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "cnaps" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeGBSortCode ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "gb_sort_code" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeInIfsc ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "in_ifsc" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeMyBranchCode ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "my_branch_code" ExternalAccountNewParamsRoutingDetailsRoutingNumberTypeSwift ExternalAccountNewParamsRoutingDetailsRoutingNumberType = "swift" )
type ExternalAccountPartyAddress ¶
type ExternalAccountPartyAddress struct { ID string `json:"id,required" format:"uuid"` // Country code conforms to [ISO 3166-1 alpha-2] Country string `json:"country,required,nullable"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` Line1 string `json:"line1,required,nullable"` Line2 string `json:"line2,required,nullable"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Locality or City. Locality string `json:"locality,required,nullable"` Object string `json:"object,required"` // The postal code of the address. PostalCode string `json:"postal_code,required,nullable"` // Region or State. Region string `json:"region,required,nullable"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON externalAccountPartyAddressJSON }
The address associated with the owner or `null`.
func (*ExternalAccountPartyAddress) UnmarshalJSON ¶
func (r *ExternalAccountPartyAddress) UnmarshalJSON(data []byte) (err error)
type ExternalAccountPartyType ¶
type ExternalAccountPartyType string
Either `individual` or `business`.
const ( ExternalAccountPartyTypeBusiness ExternalAccountPartyType = "business" ExternalAccountPartyTypeIndividual ExternalAccountPartyType = "individual" )
type ExternalAccountService ¶
type ExternalAccountService struct {
Options []option.RequestOption
}
ExternalAccountService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewExternalAccountService method instead.
func NewExternalAccountService ¶
func NewExternalAccountService(opts ...option.RequestOption) (r *ExternalAccountService)
NewExternalAccountService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*ExternalAccountService) CompleteVerification ¶
func (r *ExternalAccountService) CompleteVerification(ctx context.Context, id string, body ExternalAccountCompleteVerificationParams, opts ...option.RequestOption) (res *ExternalAccount, err error)
complete verification of external account
func (*ExternalAccountService) Delete ¶
func (r *ExternalAccountService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (err error)
delete external account
func (*ExternalAccountService) Get ¶
func (r *ExternalAccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ExternalAccount, err error)
show external account
func (*ExternalAccountService) List ¶
func (r *ExternalAccountService) List(ctx context.Context, query ExternalAccountListParams, opts ...option.RequestOption) (res *shared.Page[ExternalAccount], err error)
list external accounts
func (*ExternalAccountService) ListAutoPaging ¶
func (r *ExternalAccountService) ListAutoPaging(ctx context.Context, query ExternalAccountListParams, opts ...option.RequestOption) *shared.PageAutoPager[ExternalAccount]
list external accounts
func (*ExternalAccountService) New ¶
func (r *ExternalAccountService) New(ctx context.Context, body ExternalAccountNewParams, opts ...option.RequestOption) (res *ExternalAccount, err error)
create external account
func (*ExternalAccountService) Update ¶
func (r *ExternalAccountService) Update(ctx context.Context, id string, body ExternalAccountUpdateParams, opts ...option.RequestOption) (res *ExternalAccount, err error)
update external account
func (*ExternalAccountService) Verify ¶
func (r *ExternalAccountService) Verify(ctx context.Context, id string, body ExternalAccountVerifyParams, opts ...option.RequestOption) (res *ExternalAccount, err error)
verify external account
type ExternalAccountType ¶
type ExternalAccountType string
Can be `checking`, `savings` or `other`.
const ( ExternalAccountTypeCash ExternalAccountType = "cash" ExternalAccountTypeChecking ExternalAccountType = "checking" ExternalAccountTypeLoan ExternalAccountType = "loan" ExternalAccountTypeNonResident ExternalAccountType = "non_resident" ExternalAccountTypeOther ExternalAccountType = "other" ExternalAccountTypeOverdraft ExternalAccountType = "overdraft" ExternalAccountTypeSavings ExternalAccountType = "savings" )
type ExternalAccountUpdateParams ¶
type ExternalAccountUpdateParams struct { // Can be `checking`, `savings` or `other`. AccountType param.Field[ExternalAccountType] `json:"account_type"` CounterpartyID param.Field[string] `json:"counterparty_id" format:"uuid"` // Additional data in the form of key-value pairs. Pairs can be removed by passing // an empty string or `null` as the value. Metadata param.Field[map[string]string] `json:"metadata"` // A nickname for the external account. This is only for internal usage and won't // affect any payments Name param.Field[string] `json:"name"` PartyAddress param.Field[ExternalAccountUpdateParamsPartyAddress] `json:"party_address"` // If this value isn't provided, it will be inherited from the counterparty's name. PartyName param.Field[string] `json:"party_name"` // Either `individual` or `business`. PartyType param.Field[ExternalAccountUpdateParamsPartyType] `json:"party_type"` }
func (ExternalAccountUpdateParams) MarshalJSON ¶
func (r ExternalAccountUpdateParams) MarshalJSON() (data []byte, err error)
type ExternalAccountUpdateParamsPartyAddress ¶
type ExternalAccountUpdateParamsPartyAddress struct { // Country code conforms to [ISO 3166-1 alpha-2] Country param.Field[string] `json:"country"` Line1 param.Field[string] `json:"line1"` Line2 param.Field[string] `json:"line2"` // Locality or City. Locality param.Field[string] `json:"locality"` // The postal code of the address. PostalCode param.Field[string] `json:"postal_code"` // Region or State. Region param.Field[string] `json:"region"` }
func (ExternalAccountUpdateParamsPartyAddress) MarshalJSON ¶
func (r ExternalAccountUpdateParamsPartyAddress) MarshalJSON() (data []byte, err error)
type ExternalAccountUpdateParamsPartyType ¶
type ExternalAccountUpdateParamsPartyType string
Either `individual` or `business`.
const ( ExternalAccountUpdateParamsPartyTypeBusiness ExternalAccountUpdateParamsPartyType = "business" ExternalAccountUpdateParamsPartyTypeIndividual ExternalAccountUpdateParamsPartyType = "individual" )
type ExternalAccountVerificationStatus ¶
type ExternalAccountVerificationStatus string
const ( ExternalAccountVerificationStatusPendingVerification ExternalAccountVerificationStatus = "pending_verification" ExternalAccountVerificationStatusUnverified ExternalAccountVerificationStatus = "unverified" ExternalAccountVerificationStatusVerified ExternalAccountVerificationStatus = "verified" )
type ExternalAccountVerifyParams ¶
type ExternalAccountVerifyParams struct { // The ID of the internal account where the micro-deposits originate from. Both // credit and debit capabilities must be enabled. OriginatingAccountID param.Field[string] `json:"originating_account_id,required" format:"uuid"` // Both ach and eft are supported payment types. PaymentType param.Field[ExternalAccountVerifyParamsPaymentType] `json:"payment_type,required"` // Defaults to the currency of the originating account. Currency param.Field[shared.Currency] `json:"currency"` }
func (ExternalAccountVerifyParams) MarshalJSON ¶
func (r ExternalAccountVerifyParams) MarshalJSON() (data []byte, err error)
type ExternalAccountVerifyParamsPaymentType ¶
type ExternalAccountVerifyParamsPaymentType string
Both ach and eft are supported payment types.
const ( ExternalAccountVerifyParamsPaymentTypeACH ExternalAccountVerifyParamsPaymentType = "ach" ExternalAccountVerifyParamsPaymentTypeAuBecs ExternalAccountVerifyParamsPaymentType = "au_becs" ExternalAccountVerifyParamsPaymentTypeBacs ExternalAccountVerifyParamsPaymentType = "bacs" ExternalAccountVerifyParamsPaymentTypeBook ExternalAccountVerifyParamsPaymentType = "book" ExternalAccountVerifyParamsPaymentTypeCard ExternalAccountVerifyParamsPaymentType = "card" ExternalAccountVerifyParamsPaymentTypeCheck ExternalAccountVerifyParamsPaymentType = "check" ExternalAccountVerifyParamsPaymentTypeCrossBorder ExternalAccountVerifyParamsPaymentType = "cross_border" ExternalAccountVerifyParamsPaymentTypeEft ExternalAccountVerifyParamsPaymentType = "eft" ExternalAccountVerifyParamsPaymentTypeInterac ExternalAccountVerifyParamsPaymentType = "interac" ExternalAccountVerifyParamsPaymentTypeMasav ExternalAccountVerifyParamsPaymentType = "masav" ExternalAccountVerifyParamsPaymentTypeNeft ExternalAccountVerifyParamsPaymentType = "neft" ExternalAccountVerifyParamsPaymentTypeProvxchange ExternalAccountVerifyParamsPaymentType = "provxchange" ExternalAccountVerifyParamsPaymentTypeRtp ExternalAccountVerifyParamsPaymentType = "rtp" ExternalAccountVerifyParamsPaymentTypeSen ExternalAccountVerifyParamsPaymentType = "sen" ExternalAccountVerifyParamsPaymentTypeSepa ExternalAccountVerifyParamsPaymentType = "sepa" ExternalAccountVerifyParamsPaymentTypeSignet ExternalAccountVerifyParamsPaymentType = "signet" ExternalAccountVerifyParamsPaymentTypeWire ExternalAccountVerifyParamsPaymentType = "wire" )
type IncomingPaymentDetail ¶
type IncomingPaymentDetail struct { ID string `json:"id,required" format:"uuid"` // Value in specified currency's smallest unit. e.g. $10 would be represented // as 1000. Amount int64 `json:"amount,required"` // The date on which the corresponding transaction will occur. AsOfDate time.Time `json:"as_of_date,required" format:"date"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` // The currency of the incoming payment detail. Currency shared.Currency `json:"currency,required,nullable"` // The raw data from the payment pre-notification file that we get from the bank. Data map[string]interface{} `json:"data,required"` // One of `credit` or `debit`. Direction IncomingPaymentDetailDirection `json:"direction,required"` // The ID of the Internal Account for the incoming payment detail. This is always // present. InternalAccountID string `json:"internal_account_id,required" format:"uuid"` // The ID of the ledger transaction linked to the incoming payment detail or // `null`. LedgerTransactionID string `json:"ledger_transaction_id,required,nullable" format:"uuid"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata map[string]string `json:"metadata,required"` Object string `json:"object,required"` // The last 4 digits of the originating account_number for the incoming payment // detail. OriginatingAccountNumberSafe string `json:"originating_account_number_safe,required,nullable"` // The type of the originating account number for the incoming payment detail. OriginatingAccountNumberType IncomingPaymentDetailOriginatingAccountNumberType `json:"originating_account_number_type,required,nullable"` // The routing number of the originating account for the incoming payment detail. OriginatingRoutingNumber string `json:"originating_routing_number,required,nullable"` // The type of the originating routing number for the incoming payment detail. OriginatingRoutingNumberType IncomingPaymentDetailOriginatingRoutingNumberType `json:"originating_routing_number_type,required,nullable"` // The current status of the incoming payment order. One of `pending`, `completed`, // or `returned`. Status IncomingPaymentDetailStatus `json:"status,required"` // The ID of the reconciled Transaction or `null`. TransactionID string `json:"transaction_id,required,nullable" format:"uuid"` // The ID of the reconciled Transaction Line Item or `null`. TransactionLineItemID string `json:"transaction_line_item_id,required,nullable" format:"uuid"` // One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or // `wire`. Type IncomingPaymentDetailType `json:"type,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` // The identifier of the vendor bank. VendorID string `json:"vendor_id,required,nullable" format:"uuid"` // If the incoming payment detail is in a virtual account, the serialized virtual // account object. VirtualAccount VirtualAccount `json:"virtual_account,required,nullable"` // If the incoming payment detail is in a virtual account, the ID of the Virtual // Account. VirtualAccountID string `json:"virtual_account_id,required,nullable" format:"uuid"` // The account number of the originating account for the incoming payment detail. OriginatingAccountNumber string `json:"originating_account_number,nullable"` JSON incomingPaymentDetailJSON }
func (*IncomingPaymentDetail) UnmarshalJSON ¶
func (r *IncomingPaymentDetail) UnmarshalJSON(data []byte) (err error)
type IncomingPaymentDetailDirection ¶
type IncomingPaymentDetailDirection string
One of `credit` or `debit`.
const ( IncomingPaymentDetailDirectionCredit IncomingPaymentDetailDirection = "credit" IncomingPaymentDetailDirectionDebit IncomingPaymentDetailDirection = "debit" )
type IncomingPaymentDetailListParams ¶
type IncomingPaymentDetailListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` // Filters incoming payment details with an as_of_date starting on or before the // specified date (YYYY-MM-DD). AsOfDateEnd param.Field[time.Time] `query:"as_of_date_end" format:"date"` // Filters incoming payment details with an as_of_date starting on or after the // specified date (YYYY-MM-DD). AsOfDateStart param.Field[time.Time] `query:"as_of_date_start" format:"date"` // One of `credit` or `debit`. Direction param.Field[IncomingPaymentDetailListParamsDirection] `query:"direction"` // For example, if you want to query for records with metadata key `Type` and value // `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query // parameters. Metadata param.Field[map[string]string] `query:"metadata"` PerPage param.Field[int64] `query:"per_page"` // The current status of the incoming payment order. One of `pending`, `completed`, // or `returned`. Status param.Field[IncomingPaymentDetailListParamsStatus] `query:"status"` // One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or // `wire`. Type param.Field[IncomingPaymentDetailListParamsType] `query:"type"` // If the incoming payment detail is in a virtual account, the ID of the Virtual // Account. VirtualAccountID param.Field[string] `query:"virtual_account_id"` }
func (IncomingPaymentDetailListParams) URLQuery ¶
func (r IncomingPaymentDetailListParams) URLQuery() (v url.Values)
URLQuery serializes IncomingPaymentDetailListParams's query parameters as `url.Values`.
type IncomingPaymentDetailListParamsDirection ¶
type IncomingPaymentDetailListParamsDirection string
One of `credit` or `debit`.
const ( IncomingPaymentDetailListParamsDirectionCredit IncomingPaymentDetailListParamsDirection = "credit" IncomingPaymentDetailListParamsDirectionDebit IncomingPaymentDetailListParamsDirection = "debit" )
type IncomingPaymentDetailListParamsStatus ¶
type IncomingPaymentDetailListParamsStatus string
The current status of the incoming payment order. One of `pending`, `completed`, or `returned`.
const ( IncomingPaymentDetailListParamsStatusCompleted IncomingPaymentDetailListParamsStatus = "completed" IncomingPaymentDetailListParamsStatusPending IncomingPaymentDetailListParamsStatus = "pending" IncomingPaymentDetailListParamsStatusReturned IncomingPaymentDetailListParamsStatus = "returned" )
type IncomingPaymentDetailListParamsType ¶
type IncomingPaymentDetailListParamsType string
One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `wire`.
const ( IncomingPaymentDetailListParamsTypeACH IncomingPaymentDetailListParamsType = "ach" IncomingPaymentDetailListParamsTypeBook IncomingPaymentDetailListParamsType = "book" IncomingPaymentDetailListParamsTypeCheck IncomingPaymentDetailListParamsType = "check" IncomingPaymentDetailListParamsTypeEft IncomingPaymentDetailListParamsType = "eft" IncomingPaymentDetailListParamsTypeInterac IncomingPaymentDetailListParamsType = "interac" IncomingPaymentDetailListParamsTypeRtp IncomingPaymentDetailListParamsType = "rtp" IncomingPaymentDetailListParamsTypeSepa IncomingPaymentDetailListParamsType = "sepa" IncomingPaymentDetailListParamsTypeSignet IncomingPaymentDetailListParamsType = "signet" IncomingPaymentDetailListParamsTypeWire IncomingPaymentDetailListParamsType = "wire" )
type IncomingPaymentDetailNewAsyncParams ¶
type IncomingPaymentDetailNewAsyncParams struct { // Value in specified currency's smallest unit. e.g. $10 would be represented // as 1000. Amount param.Field[int64] `json:"amount"` // Defaults to today. AsOfDate param.Field[time.Time] `json:"as_of_date" format:"date"` // Defaults to the currency of the originating account. Currency param.Field[shared.Currency] `json:"currency"` // Defaults to a random description. Description param.Field[string] `json:"description"` // One of `credit`, `debit`. Direction param.Field[IncomingPaymentDetailNewAsyncParamsDirection] `json:"direction"` // The ID of one of your internal accounts. InternalAccountID param.Field[string] `json:"internal_account_id" format:"uuid"` // One of `ach`, `wire`, `check`. Type param.Field[IncomingPaymentDetailNewAsyncParamsType] `json:"type"` // An optional parameter to associate the incoming payment detail to a virtual // account. VirtualAccountID param.Field[string] `json:"virtual_account_id" format:"uuid"` }
func (IncomingPaymentDetailNewAsyncParams) MarshalJSON ¶
func (r IncomingPaymentDetailNewAsyncParams) MarshalJSON() (data []byte, err error)
type IncomingPaymentDetailNewAsyncParamsDirection ¶
type IncomingPaymentDetailNewAsyncParamsDirection string
One of `credit`, `debit`.
const ( IncomingPaymentDetailNewAsyncParamsDirectionCredit IncomingPaymentDetailNewAsyncParamsDirection = "credit" IncomingPaymentDetailNewAsyncParamsDirectionDebit IncomingPaymentDetailNewAsyncParamsDirection = "debit" )
type IncomingPaymentDetailNewAsyncParamsType ¶
type IncomingPaymentDetailNewAsyncParamsType string
One of `ach`, `wire`, `check`.
const ( IncomingPaymentDetailNewAsyncParamsTypeACH IncomingPaymentDetailNewAsyncParamsType = "ach" IncomingPaymentDetailNewAsyncParamsTypeBook IncomingPaymentDetailNewAsyncParamsType = "book" IncomingPaymentDetailNewAsyncParamsTypeCheck IncomingPaymentDetailNewAsyncParamsType = "check" IncomingPaymentDetailNewAsyncParamsTypeEft IncomingPaymentDetailNewAsyncParamsType = "eft" IncomingPaymentDetailNewAsyncParamsTypeInterac IncomingPaymentDetailNewAsyncParamsType = "interac" IncomingPaymentDetailNewAsyncParamsTypeRtp IncomingPaymentDetailNewAsyncParamsType = "rtp" IncomingPaymentDetailNewAsyncParamsTypeSepa IncomingPaymentDetailNewAsyncParamsType = "sepa" IncomingPaymentDetailNewAsyncParamsTypeSignet IncomingPaymentDetailNewAsyncParamsType = "signet" IncomingPaymentDetailNewAsyncParamsTypeWire IncomingPaymentDetailNewAsyncParamsType = "wire" )
type IncomingPaymentDetailOriginatingAccountNumberType ¶
type IncomingPaymentDetailOriginatingAccountNumberType string
The type of the originating account number for the incoming payment detail.
const ( IncomingPaymentDetailOriginatingAccountNumberTypeClabe IncomingPaymentDetailOriginatingAccountNumberType = "clabe" IncomingPaymentDetailOriginatingAccountNumberTypeIban IncomingPaymentDetailOriginatingAccountNumberType = "iban" IncomingPaymentDetailOriginatingAccountNumberTypeOther IncomingPaymentDetailOriginatingAccountNumberType = "other" IncomingPaymentDetailOriginatingAccountNumberTypePan IncomingPaymentDetailOriginatingAccountNumberType = "pan" IncomingPaymentDetailOriginatingAccountNumberTypeWalletAddress IncomingPaymentDetailOriginatingAccountNumberType = "wallet_address" )
type IncomingPaymentDetailOriginatingRoutingNumberType ¶
type IncomingPaymentDetailOriginatingRoutingNumberType string
The type of the originating routing number for the incoming payment detail.
const ( IncomingPaymentDetailOriginatingRoutingNumberTypeAba IncomingPaymentDetailOriginatingRoutingNumberType = "aba" IncomingPaymentDetailOriginatingRoutingNumberTypeAuBsb IncomingPaymentDetailOriginatingRoutingNumberType = "au_bsb" IncomingPaymentDetailOriginatingRoutingNumberTypeBrCodigo IncomingPaymentDetailOriginatingRoutingNumberType = "br_codigo" IncomingPaymentDetailOriginatingRoutingNumberTypeCaCpa IncomingPaymentDetailOriginatingRoutingNumberType = "ca_cpa" IncomingPaymentDetailOriginatingRoutingNumberTypeChips IncomingPaymentDetailOriginatingRoutingNumberType = "chips" IncomingPaymentDetailOriginatingRoutingNumberTypeCnaps IncomingPaymentDetailOriginatingRoutingNumberType = "cnaps" IncomingPaymentDetailOriginatingRoutingNumberTypeGBSortCode IncomingPaymentDetailOriginatingRoutingNumberType = "gb_sort_code" IncomingPaymentDetailOriginatingRoutingNumberTypeInIfsc IncomingPaymentDetailOriginatingRoutingNumberType = "in_ifsc" IncomingPaymentDetailOriginatingRoutingNumberTypeMyBranchCode IncomingPaymentDetailOriginatingRoutingNumberType = "my_branch_code" IncomingPaymentDetailOriginatingRoutingNumberTypeSwift IncomingPaymentDetailOriginatingRoutingNumberType = "swift" )
type IncomingPaymentDetailService ¶
type IncomingPaymentDetailService struct {
Options []option.RequestOption
}
IncomingPaymentDetailService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewIncomingPaymentDetailService method instead.
func NewIncomingPaymentDetailService ¶
func NewIncomingPaymentDetailService(opts ...option.RequestOption) (r *IncomingPaymentDetailService)
NewIncomingPaymentDetailService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*IncomingPaymentDetailService) Get ¶
func (r *IncomingPaymentDetailService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *IncomingPaymentDetail, err error)
Get an existing Incoming Payment Detail.
func (*IncomingPaymentDetailService) List ¶
func (r *IncomingPaymentDetailService) List(ctx context.Context, query IncomingPaymentDetailListParams, opts ...option.RequestOption) (res *shared.Page[IncomingPaymentDetail], err error)
Get a list of Incoming Payment Details.
func (*IncomingPaymentDetailService) ListAutoPaging ¶
func (r *IncomingPaymentDetailService) ListAutoPaging(ctx context.Context, query IncomingPaymentDetailListParams, opts ...option.RequestOption) *shared.PageAutoPager[IncomingPaymentDetail]
Get a list of Incoming Payment Details.
func (*IncomingPaymentDetailService) NewAsync ¶
func (r *IncomingPaymentDetailService) NewAsync(ctx context.Context, body IncomingPaymentDetailNewAsyncParams, opts ...option.RequestOption) (res *shared.AsyncResponse, err error)
Simulate Incoming Payment Detail
func (*IncomingPaymentDetailService) Update ¶
func (r *IncomingPaymentDetailService) Update(ctx context.Context, id string, body IncomingPaymentDetailUpdateParams, opts ...option.RequestOption) (res *IncomingPaymentDetail, err error)
Update an existing Incoming Payment Detail.
type IncomingPaymentDetailStatus ¶
type IncomingPaymentDetailStatus string
The current status of the incoming payment order. One of `pending`, `completed`, or `returned`.
const ( IncomingPaymentDetailStatusCompleted IncomingPaymentDetailStatus = "completed" IncomingPaymentDetailStatusPending IncomingPaymentDetailStatus = "pending" IncomingPaymentDetailStatusReturned IncomingPaymentDetailStatus = "returned" )
type IncomingPaymentDetailType ¶
type IncomingPaymentDetailType string
One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `wire`.
const ( IncomingPaymentDetailTypeACH IncomingPaymentDetailType = "ach" IncomingPaymentDetailTypeBook IncomingPaymentDetailType = "book" IncomingPaymentDetailTypeCheck IncomingPaymentDetailType = "check" IncomingPaymentDetailTypeEft IncomingPaymentDetailType = "eft" IncomingPaymentDetailTypeInterac IncomingPaymentDetailType = "interac" IncomingPaymentDetailTypeRtp IncomingPaymentDetailType = "rtp" IncomingPaymentDetailTypeSepa IncomingPaymentDetailType = "sepa" IncomingPaymentDetailTypeSignet IncomingPaymentDetailType = "signet" IncomingPaymentDetailTypeWire IncomingPaymentDetailType = "wire" )
type IncomingPaymentDetailUpdateParams ¶
type IncomingPaymentDetailUpdateParams struct { // Additional data in the form of key-value pairs. Pairs can be removed by passing // an empty string or `null` as the value. Metadata param.Field[map[string]string] `json:"metadata"` }
func (IncomingPaymentDetailUpdateParams) MarshalJSON ¶
func (r IncomingPaymentDetailUpdateParams) MarshalJSON() (data []byte, err error)
type InternalAccount ¶
type InternalAccount struct { ID string `json:"id,required" format:"uuid"` // An array of account detail objects. AccountDetails []AccountDetail `json:"account_details,required"` // Can be checking, savings or other. AccountType InternalAccountAccountType `json:"account_type,required,nullable"` // Specifies which financial institution the accounts belong to. Connection Connection `json:"connection,required"` // The Counterparty associated to this account. CounterpartyID string `json:"counterparty_id,required,nullable" format:"uuid"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` // The currency of the account. Currency shared.Currency `json:"currency,required,nullable"` // If the internal account links to a ledger account in Modern Treasury, the id of // the ledger account will be populated here. LedgerAccountID string `json:"ledger_account_id,required,nullable" format:"uuid"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Additional data represented as key-value pairs. Both the key and value must be // strings. Metadata map[string]string `json:"metadata,required"` // A nickname for the account. Name string `json:"name,required,nullable"` Object string `json:"object,required"` // The parent InternalAccount of this account. ParentAccountID string `json:"parent_account_id,required,nullable" format:"uuid"` // The address associated with the owner or null. PartyAddress InternalAccountPartyAddress `json:"party_address,required,nullable"` // The legal name of the entity which owns the account. PartyName string `json:"party_name,required"` // Either individual or business. PartyType InternalAccountPartyType `json:"party_type,required,nullable"` // An array of routing detail objects. RoutingDetails []RoutingDetail `json:"routing_details,required"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON internalAccountJSON }
func (*InternalAccount) UnmarshalJSON ¶
func (r *InternalAccount) UnmarshalJSON(data []byte) (err error)
type InternalAccountAccountType ¶
type InternalAccountAccountType string
Can be checking, savings or other.
const ( InternalAccountAccountTypeCash InternalAccountAccountType = "cash" InternalAccountAccountTypeChecking InternalAccountAccountType = "checking" InternalAccountAccountTypeLoan InternalAccountAccountType = "loan" InternalAccountAccountTypeNonResident InternalAccountAccountType = "non_resident" InternalAccountAccountTypeOther InternalAccountAccountType = "other" InternalAccountAccountTypeOverdraft InternalAccountAccountType = "overdraft" InternalAccountAccountTypeSavings InternalAccountAccountType = "savings" )
type InternalAccountBalanceReportService ¶
type InternalAccountBalanceReportService struct {
Options []option.RequestOption
}
InternalAccountBalanceReportService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewInternalAccountBalanceReportService method instead.
func NewInternalAccountBalanceReportService ¶
func NewInternalAccountBalanceReportService(opts ...option.RequestOption) (r *InternalAccountBalanceReportService)
NewInternalAccountBalanceReportService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*InternalAccountBalanceReportService) Get ¶
func (r *InternalAccountBalanceReportService) Get(ctx context.Context, internalAccountID string, id string, opts ...option.RequestOption) (res *BalanceReport, err error)
Get a single balance report for a given internal account.
func (*InternalAccountBalanceReportService) List ¶
func (r *InternalAccountBalanceReportService) List(ctx context.Context, internalAccountID string, query BalanceReportListParams, opts ...option.RequestOption) (res *shared.Page[BalanceReport], err error)
Get all balance reports for a given internal account.
func (*InternalAccountBalanceReportService) ListAutoPaging ¶
func (r *InternalAccountBalanceReportService) ListAutoPaging(ctx context.Context, internalAccountID string, query BalanceReportListParams, opts ...option.RequestOption) *shared.PageAutoPager[BalanceReport]
Get all balance reports for a given internal account.
type InternalAccountListParams ¶
type InternalAccountListParams struct { AfterCursor param.Field[string] `query:"after_cursor"` // The counterparty associated with the internal account. CounterpartyID param.Field[string] `query:"counterparty_id"` // The currency associated with the internal account. Currency param.Field[shared.Currency] `query:"currency"` // For example, if you want to query for records with metadata key `Type` and value // `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query // parameters. Metadata param.Field[map[string]string] `query:"metadata"` // The direction of payments that can be made by internal account. PaymentDirection param.Field[InternalAccountListParamsPaymentDirection] `query:"payment_direction"` // The type of payment that can be made by the internal account. PaymentType param.Field[InternalAccountListParamsPaymentType] `query:"payment_type"` PerPage param.Field[int64] `query:"per_page"` }
func (InternalAccountListParams) URLQuery ¶
func (r InternalAccountListParams) URLQuery() (v url.Values)
URLQuery serializes InternalAccountListParams's query parameters as `url.Values`.
type InternalAccountListParamsPaymentDirection ¶
type InternalAccountListParamsPaymentDirection string
The direction of payments that can be made by internal account.
const ( InternalAccountListParamsPaymentDirectionCredit InternalAccountListParamsPaymentDirection = "credit" InternalAccountListParamsPaymentDirectionDebit InternalAccountListParamsPaymentDirection = "debit" )
type InternalAccountListParamsPaymentType ¶
type InternalAccountListParamsPaymentType string
The type of payment that can be made by the internal account.
const ( InternalAccountListParamsPaymentTypeACH InternalAccountListParamsPaymentType = "ach" InternalAccountListParamsPaymentTypeAuBecs InternalAccountListParamsPaymentType = "au_becs" InternalAccountListParamsPaymentTypeBacs InternalAccountListParamsPaymentType = "bacs" InternalAccountListParamsPaymentTypeBook InternalAccountListParamsPaymentType = "book" InternalAccountListParamsPaymentTypeCard InternalAccountListParamsPaymentType = "card" InternalAccountListParamsPaymentTypeCheck InternalAccountListParamsPaymentType = "check" InternalAccountListParamsPaymentTypeCrossBorder InternalAccountListParamsPaymentType = "cross_border" InternalAccountListParamsPaymentTypeEft InternalAccountListParamsPaymentType = "eft" InternalAccountListParamsPaymentTypeInterac InternalAccountListParamsPaymentType = "interac" InternalAccountListParamsPaymentTypeMasav InternalAccountListParamsPaymentType = "masav" InternalAccountListParamsPaymentTypeNeft InternalAccountListParamsPaymentType = "neft" InternalAccountListParamsPaymentTypeProvxchange InternalAccountListParamsPaymentType = "provxchange" InternalAccountListParamsPaymentTypeRtp InternalAccountListParamsPaymentType = "rtp" InternalAccountListParamsPaymentTypeSen InternalAccountListParamsPaymentType = "sen" InternalAccountListParamsPaymentTypeSepa InternalAccountListParamsPaymentType = "sepa" InternalAccountListParamsPaymentTypeSignet InternalAccountListParamsPaymentType = "signet" InternalAccountListParamsPaymentTypeWire InternalAccountListParamsPaymentType = "wire" )
type InternalAccountNewParams ¶
type InternalAccountNewParams struct { // The identifier of the financial institution the account belongs to. ConnectionID param.Field[string] `json:"connection_id,required"` // Either "USD" or "CAD". Internal accounts created at Increase only supports // "USD". Currency param.Field[InternalAccountNewParamsCurrency] `json:"currency,required"` // The nickname of the account. Name param.Field[string] `json:"name,required"` // The legal name of the entity which owns the account. PartyName param.Field[string] `json:"party_name,required"` // The Counterparty associated to this account. CounterpartyID param.Field[string] `json:"counterparty_id"` // The parent internal account of this new account. ParentAccountID param.Field[string] `json:"parent_account_id"` // The address associated with the owner or null. PartyAddress param.Field[InternalAccountNewParamsPartyAddress] `json:"party_address"` // A hash of vendor specific attributes that will be used when creating the account // at the vendor specified by the given connection. VendorAttributes param.Field[map[string]string] `json:"vendor_attributes"` }
func (InternalAccountNewParams) MarshalJSON ¶
func (r InternalAccountNewParams) MarshalJSON() (data []byte, err error)
type InternalAccountNewParamsCurrency ¶
type InternalAccountNewParamsCurrency string
Either "USD" or "CAD". Internal accounts created at Increase only supports "USD".
const ( InternalAccountNewParamsCurrencyUsd InternalAccountNewParamsCurrency = "USD" InternalAccountNewParamsCurrencyCad InternalAccountNewParamsCurrency = "CAD" )
type InternalAccountNewParamsPartyAddress ¶
type InternalAccountNewParamsPartyAddress struct { // Country code conforms to [ISO 3166-1 alpha-2] Country param.Field[string] `json:"country,required"` Line1 param.Field[string] `json:"line1,required"` // Locality or City. Locality param.Field[string] `json:"locality,required"` // The postal code of the address. PostalCode param.Field[string] `json:"postal_code,required"` // Region or State. Region param.Field[string] `json:"region,required"` Line2 param.Field[string] `json:"line2"` }
The address associated with the owner or null.
func (InternalAccountNewParamsPartyAddress) MarshalJSON ¶
func (r InternalAccountNewParamsPartyAddress) MarshalJSON() (data []byte, err error)
type InternalAccountPartyAddress ¶
type InternalAccountPartyAddress struct { ID string `json:"id,required" format:"uuid"` // Country code conforms to [ISO 3166-1 alpha-2] Country string `json:"country,required,nullable"` CreatedAt time.Time `json:"created_at,required" format:"date-time"` Line1 string `json:"line1,required,nullable"` Line2 string `json:"line2,required,nullable"` // This field will be true if this object exists in the live environment or false // if it exists in the test environment. LiveMode bool `json:"live_mode,required"` // Locality or City. Locality string `json:"locality,required,nullable"` Object string `json:"object,required"` // The postal code of the address. PostalCode string `json:"postal_code,required,nullable"` // Region or State. Region string `json:"region,required,nullable"` UpdatedAt time.Time `json:"updated_at,required" format:"date-time"` JSON internalAccountPartyAddressJSON }
The address associated with the owner or null.
func (*InternalAccountPartyAddress) UnmarshalJSON ¶
func (r *InternalAccountPartyAddress) UnmarshalJSON(data []byte) (err error)
type InternalAccountPartyType ¶
type InternalAccountPartyType string
Either individual or business.
const ( InternalAccountPartyTypeBusiness InternalAccountPartyType = "business" InternalAccountPartyTypeIndividual InternalAccountPartyType = "individual" )
type InternalAccountService ¶
type InternalAccountService struct { Options []option.RequestOption BalanceReports *InternalAccountBalanceReportService }
InternalAccountService contains methods and other services that help with interacting with the Modern Treasury API. Note, unlike clients, this service does not read variables from the environment automatically. You should not instantiate this service directly, and instead use the NewInternalAccountService method instead.
func NewInternalAccountService ¶
func NewInternalAccountService(opts ...option.RequestOption) (r *InternalAccountService)
NewInternalAccountService generates a new service that applies the given options to each request. These options are applied after the parent client's options (if there is one), and before any request-specific options.
func (*InternalAccountService) Get ¶
func (r *InternalAccountService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *InternalAccount, err error)
get internal account
func (*InternalAccountService) List ¶
func (r *InternalAccountService) List(ctx context.Context, query InternalAccountListParams, opts ...option.RequestOption) (res *shared.Page[InternalAccount], err error)
list internal accounts
func (*InternalAccountService) ListAutoPaging ¶
func (r *InternalAccountService) ListAutoPaging(ctx context.Context, query InternalAccountListParams, opts ...option.RequestOption) *shared.PageAutoPager[InternalAccount]
list internal accounts
func (*InternalAccountService) New ¶
func (r *InternalAccountService) New(ctx context.Context, body InternalAccountNewParams, opts ...