2025-01-05 08:37:03 +02:00
|
|
|
package accounts
|
|
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
// ErrLabelAlreadyExists is returned by the CreateAccount method if the
|
|
|
|
|
// account label is already used by an existing account.
|
|
|
|
|
ErrLabelAlreadyExists = errors.New(
|
|
|
|
|
"account label uniqueness constraint violation",
|
|
|
|
|
)
|
2025-01-04 15:49:13 +02:00
|
|
|
|
|
|
|
|
// ErrAlreadySucceeded is returned by the UpsertAccountPayment method
|
|
|
|
|
// if the WithErrAlreadySucceeded option is used and the payment has
|
|
|
|
|
// already succeeded.
|
|
|
|
|
ErrAlreadySucceeded = errors.New("payment has already succeeded")
|
2025-01-04 15:59:07 +02:00
|
|
|
|
|
|
|
|
// ErrPaymentNotAssociated indicate that the payment with the given hash
|
2025-01-04 16:12:04 +02:00
|
|
|
// has not yet been associated with the account in question. It is also
|
|
|
|
|
// returned when the WithErrIfUnknown option is used with
|
|
|
|
|
// UpsertAccountPayment if the payment is not yet known.
|
2025-01-04 15:59:07 +02:00
|
|
|
ErrPaymentNotAssociated = errors.New(
|
|
|
|
|
"payment not associated with account",
|
|
|
|
|
)
|
2025-01-05 08:37:03 +02:00
|
|
|
)
|