mugglepay

package
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Token string `yaml:"token"`
}

func (*Config) ConfigName

func (s *Config) ConfigName() string

func (*Config) Default

func (s *Config) Default() interface{}

func (*Config) Validate

func (s *Config) Validate() error

type Service

type Service struct {
	sptty.BaseService
	// contains filtered or unexported fields
}

func (*Service) CancelOrder

func (s *Service) CancelOrder()

取消订单

func (*Service) CreateOrder

func (s *Service) CreateOrder(req *base.MuggleReqOrder) (*base.MuggleRespOrderCreate, error)

创建订单

func (*Service) GetOrder

func (s *Service) GetOrder(orderID string) (*base.MuggleRespOrderCreate, error)

查询订单

func (*Service) Init

func (s *Service) Init(app sptty.ISptty) error

func (*Service) Refund

func (s *Service) Refund()

退款

func (*Service) ServiceName

func (s *Service) ServiceName() string

func (*Service) SetToken

func (s *Service) SetToken(token string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL