Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterRoutes ¶
RegisterRoutes creates the specific package routes
Types ¶
type CreateContact ¶
type CreateContact struct {
// Paymail address of the creator (Person A) who owns the contact being added.
CreatorPaymail string `json:"creatorPaymail"`
// The complete name of the contact, including first name, and last name.
FullName string `json:"fullName"`
// Accepts a JSON object for embedding custom metadata, enabling arbitrary additional information to be associated with the resource
Metadata engine.Metadata `json:"metadata" swaggertype:"object,string" example:"key:value,key2:value2"`
}
CreateContact is the model for creating a contact by admin
type CreatePaymail ¶
type CreatePaymail struct {
// Accepts a JSON object for embedding custom metadata, enabling arbitrary additional information to be associated with the resource
Metadata engine.Metadata `json:"metadata" swaggertype:"object,string" example:"key:value,key2:value2"`
// The xpub with which the paymail is associated
Key string `json:"key" example:"xpub661MyMwAqRbcGpZVrSHU..."`
// The paymail address
Address string `json:"address" example:"test@spv-wallet.com"`
// The public name of the paymail
PublicName string `json:"publicName" example:"Test"`
// The avatar of the paymail (url address)
Avatar string `json:"avatar" example:"https://example.com/avatar.png"`
}
CreatePaymail is the model for creating a paymail
type CreateXpub ¶
type CreateXpub struct {
// Accepts a JSON object for embedding custom metadata, enabling arbitrary additional information to be associated with the resource
Metadata engine.Metadata `json:"metadata" swaggertype:"object,string" example:"key:value,key2:value2"`
// The xpub key
Key string `json:"key" example:"xpub661MyMwAqRbcGpZVrSHU..."`
}
CreateXpub is the model for creating an xpub
type PaymailAddress ¶
type PaymailAddress struct {
// The paymail address
Address string `json:"address" example:"test@spv-wallet.com"`
}
PaymailAddress is the model containing only paymail address used for getting and deleting paymail address
type UpdateContact ¶
type UpdateContact struct {
// Accepts a JSON object for embedding custom metadata, enabling arbitrary additional information to be associated with the resource
Metadata engine.Metadata `json:"metadata" swaggertype:"object,string" example:"key:value,key2:value2"`
// New name for the contact
FullName string `json:"fullName" example:"John Doe"`
}
UpdateContact is the model for updating a contact
Click to show internal directories.
Click to hide internal directories.