service

package
v0.0.0-...-b6af633 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPurchaseService

func NewPurchaseService(opt Option) *purchaseService

Types

type Option

type Option struct {
	commons.Option
	Repository repository.Repository
}

type PurchaseService

type PurchaseService interface {
	Prepare(ctx context.Context, status string, variables map[string]interface{}) (purchaseID string, err error)
	UpdateStatus(ctx context.Context, status string, variables map[string]interface{}) (err error)
}

type Service

type Service struct {
	Purchase PurchaseService
}

Jump to

Keyboard shortcuts

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