generated from mrz1836/go-template
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUX-538: Create Paymail add description #190
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
87d84c2
Added description
Nazarii-4chain 542daee
Merge branch 'master' into BUX-538/CreatePaymailDesc
Nazarii-4chain 3b9c22a
Merge branch 'master' into BUX-538/CreatePaymailDesc
Nazarii-4chain b6b2efb
Merge branch 'master' into BUX-538/CreatePaymailDesc
Nazarii-4chain e156027
Update paymail_addresses.go
Nazarii-4chain 46b055a
Changed description
Nazarii-4chain ff65d99
Changed description
Nazarii-4chain cef9ae1
Merge branch 'master' into BUX-538/CreatePaymailDesc
Nazarii-4chain 7ae3d6c
Merge branch 'master' into BUX-538/CreatePaymailDesc
Nazarii-4chain File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ import ( | |
) | ||
|
||
// NewPaymail will create a new paymail | ||
// | ||
// paymailAddress: The paymail address to create (e.g., [email protected]) | ||
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) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,6 +70,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. [email protected]) | ||
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) | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why the comment is necessary for the
AdminCreatePaymail
when, at the same time, other methods (also public) are without a comment.Besides that, the multiline comment looks to me like a separator between two groups of methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comment should show an example of paymail address. Removed new line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But, as I see in the whole
AdminService
package documentation - not only theAdminCreatePaymail
gets an address as string which should be a paymail.So maybe an example how paymailAddress looks like would be in the AdminService description, like that:
https://pkg.go.dev/github.com/BuxOrg/[email protected]/transports#AdminService
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added this to show an example for users how paymail should look like.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because of the task is about just adding a comment/desc to
AdminCreatePaymail
- agreed, it's ok πBut I'm seeing some inconsistency, why some methods are commented and other not. But maybe it will be resolved by next tasks in the future.