From 87d84c2999014a785f325392dfc830b076f99486 Mon Sep 17 00:00:00 2001 From: Nazarii-4chain Date: Fri, 2 Feb 2024 13:08:40 +0200 Subject: [PATCH] Added description --- paymail_addresses.go | 2 ++ transports/interface.go | 3 +++ 2 files changed, 5 insertions(+) diff --git a/paymail_addresses.go b/paymail_addresses.go index ef28753..b8b254b 100644 --- a/paymail_addresses.go +++ b/paymail_addresses.go @@ -8,6 +8,8 @@ import ( ) // NewPaymail will create a new paymail +// +// Paymail address (ie. example@bux.org) func (b *BuxClient) NewPaymail(ctx context.Context, rawXPub, paymailAddress, avatar, publicName string, metadata *buxmodels.Metadata) transports.ResponseError { return b.transport.NewPaymail(ctx, rawXPub, paymailAddress, avatar, publicName, metadata) } diff --git a/transports/interface.go b/transports/interface.go index 1426627..022ce7a 100644 --- a/transports/interface.go +++ b/transports/interface.go @@ -71,6 +71,9 @@ type AdminService interface { AdminGetPaymail(ctx context.Context, address string) (*buxmodels.PaymailAddress, ResponseError) AdminGetPaymails(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata, queryParams *QueryParams) ([]*buxmodels.PaymailAddress, ResponseError) AdminGetPaymailsCount(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata) (int64, ResponseError) + // AdminCreatePaymail Create a paymail. + // + // Paymail address (ie. example@bux.org) AdminCreatePaymail(ctx context.Context, xPubID string, address string, publicName string, avatar string) (*buxmodels.PaymailAddress, ResponseError) AdminDeletePaymail(ctx context.Context, address string) (*buxmodels.PaymailAddress, ResponseError) AdminGetTransactions(ctx context.Context, conditions map[string]interface{}, metadata *buxmodels.Metadata, queryParams *QueryParams) ([]*buxmodels.Transaction, ResponseError)