api

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApiRequest = Api{
	// contains filtered or unexported fields
}

Functions

func NewApi

func NewApi(accessToken string, envDomain string)

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

type CustomerApi

type CustomerApi struct {
	// contains filtered or unexported fields
}

func NewCustomerApi

func NewCustomerApi() *CustomerApi

func (*CustomerApi) CreateCustomer

type CustomerApiInterface

type CustomerApiInterface interface {
	CreateCustomer(models.CreateCustomerRequest) (*models.CreateCustomerResponse, error)
}

type SquareApiErrRes

type SquareApiErrRes struct {
	Errors []struct {
		Category string `json:"category"`
		Code     string `json:"code"`
		Detail   string `json:"detail"`
	} `json:"errors"`
}

func (*SquareApiErrRes) Error

func (e *SquareApiErrRes) Error() string

Jump to

Keyboard shortcuts

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