api

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const HTTP_GET = "GET"
View Source
const HTTP_POST = "POST"

Variables

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

ApiRequest is struct to call api

Functions

func NewApi

func NewApi(accessToken string, envDomain string)

NewApi returns api client

Types

type Api

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

Api has config data for calling api

type CardApiInterface added in v0.1.4

type CardApiInterface interface {
	CreateCard(models.CreateCardRequest) (*models.CreateCardResponse, error)
}

CardApiInterface defines the interface for the CustomerApi

type CardsApi added in v0.1.4

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

CardsApi is a struct that implements CustomerApiInterface

func NewCardApi added in v0.1.4

func NewCardApi() *CardsApi

NewCardApi returns a new CustomerApi

func (*CardsApi) CreateCard added in v0.1.4

CreateCard create new card

type CatalogApi added in v0.1.4

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

CatalogApi is a struct that implements CatalogApiInterface

func NewCatalogApi added in v0.1.4

func NewCatalogApi() *CatalogApi

NewCatalogApi returns a new CatalogApi

func (*CatalogApi) ListCatalog added in v0.1.4

CreateCatalog returns list of catalog objects

type CatalogApiInterface added in v0.1.4

type CatalogApiInterface interface {
	ListCatalog(models.ListCatalogRequest) (*models.ListCatalogResponse, error)
}

CatalogApiInterface defines the interface for the CatalogApi

type CustomersApi added in v0.1.3

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

CustomerApi is a struct that implements CustomerApiInterface

func NewCustomerApi

func NewCustomerApi() *CustomersApi

NewCustomerApi returns a new CustomerApi

func (*CustomersApi) CreateCustomer added in v0.1.3

CreateCustomer create customer

type CustomersApiInterface added in v0.1.3

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

CustomerApiInterface defines the interface for the CustomerApi

type SubscriptionApi added in v0.1.4

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

SubscriptionApi is a struct that implements SubscriptionApiInterface

func NewSubscriptionApi added in v0.1.4

func NewSubscriptionApi() *SubscriptionApi

NewSubscriptionApi returns a new SubscriptionApi

func (*SubscriptionApi) CreateSubscription added in v0.1.4

CreateSubscription create new subscription

type SubscriptionApiInterface added in v0.1.4

type SubscriptionApiInterface interface {
	CreateSubscription(models.CreateSubscriptionRequest) (*models.CreateSubscriptionResponse, error)
}

SubscriptionApiInterface defines the interface for the SubscriptionApi

Jump to

Keyboard shortcuts

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