Documentation
¶
Index ¶
- func New(isProduction bool, baseUrl string, repo interfaces.Repository, log *zap.Logger) interfaces.UseCases
- type Impl
- func (u *Impl) BuyStaticPix(options *model.BuyStaticPixOptions) (*model.Pix, error)
- func (u *Impl) CheckSession() (*model.Session, error)
- func (u *Impl) GetBalanceOf(options *model.BalanceOfOptions) (*model.BalanceOf, error)
- func (u *Impl) GetContractAddress(chain enum.Chain) (*model.TokenAddresses, error)
- func (u *Impl) GetKYCStatus(taxId string) (*model.KYCHistory, error)
- func (u *Impl) GetPublicKey() (*ecdsa.PublicKey, error)
- func (u *Impl) GetUsedLimit(taxId string) (*model.Limits, error)
- func (u *Impl) KycLevelOne(options *model.KycLevelOneOptions) (*model.KycLevelOne, error)
- func (u *Impl) KycLevelTwo(options *model.KycLevelTwoOptions) error
- func (u *Impl) Login(email string, password string) (*model.Session, error)
- func (u *Impl) Sell(options *model.SellOptions) (*string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( isProduction bool, baseUrl string, repo interfaces.Repository, log *zap.Logger, ) interfaces.UseCases
New creates a new use cases instance
Types ¶
type Impl ¶
type Impl struct {
// contains filtered or unexported fields
}
func (*Impl) BuyStaticPix ¶
BuyStaticPix creates a new static pix on BRLA See more: - https://brla-superuser-api.readme.io/reference/superuserbuystaticpix
func (*Impl) CheckSession ¶
CheckSession checks if the client is authorized to access BRLA
func (*Impl) GetBalanceOf ¶
GetBalanceOf retrieves the balance of a wallet directly from the blockchain
func (*Impl) GetContractAddress ¶
GetContractAddress gets the contract addresses from BRLA for the given chain See more: - https://brla-superuser-api.readme.io/reference/smartcontractaddresses
func (*Impl) GetKYCStatus ¶
func (u *Impl) GetKYCStatus(taxId string) (*model.KYCHistory, error)
GetKYCStatus retrieves KYC status from BRLA See more: - https://brla-superuser-api.readme.io/reference/superuserkychistory
func (*Impl) GetPublicKey ¶
GetPublicKey gets the public key from BRLA See more: - https://brla-superuser-api.readme.io/reference/pubkey
func (*Impl) GetUsedLimit ¶
GetUsedLimit retrieves user used limit from BRLA See more: - https://brla-superuser-api.readme.io/reference/superuserusedlimit
func (*Impl) KycLevelOne ¶
func (u *Impl) KycLevelOne(options *model.KycLevelOneOptions) (*model.KycLevelOne, error)
KycLevelOne performs KYC Level One on BRLA for both Natural and Legal Person See more: - https://brla-superuser-api.readme.io/reference/superuserkycpflevel1 - https://brla-superuser-api.readme.io/reference/superuserkycpjlevel1 - https://brla-superuser-api.readme.io/reference/passkyclevel1 (Sandbox only) - https://brla-superuser-api.readme.io/reference/passkyclevel2 (Sandbox only)
func (*Impl) KycLevelTwo ¶
func (u *Impl) KycLevelTwo(options *model.KycLevelTwoOptions) error
KycLevelTwo performs KYC Level Two on BRLA for both Natural and Legal Person See more: - https://brla-superuser-api.readme.io/reference/superuserkycpflevel2 - https://brla-superuser-api.readme.io/reference/superuserkycpjlevel2
func (*Impl) Login ¶
Login logs in a super user into BRLA See more: https://brla-superuser-api.readme.io/reference/superuserlogin
func (*Impl) Sell ¶ added in v0.0.8
func (u *Impl) Sell(options *model.SellOptions) (*string, error)
Sell sells tokens on BRLA See more: https://brla-superuser-api.readme.io/reference/superusersell