Documentation
¶
Index ¶
Constants ¶
const HTTP_GET = "GET"
const HTTP_POST = "POST"
Variables ¶
var ApiRequest = Api{ // contains filtered or unexported fields }
ApiRequest is struct to call api
Functions ¶
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 (*CardsApi) CreateCard ¶ added in v0.1.4
func (api *CardsApi) CreateCard(req models.CreateCardRequest) (*models.CreateCardResponse, error)
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
func (api *CatalogApi) ListCatalog(req models.ListCatalogRequest) (*models.ListCatalogResponse, error)
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 (*CustomersApi) CreateCustomer ¶ added in v0.1.3
func (api *CustomersApi) CreateCustomer(req models.CreateCustomerRequest) (*models.CreateCustomerResponse, error)
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
func (api *SubscriptionApi) CreateSubscription(req models.CreateSubscriptionRequest) (*models.CreateSubscriptionResponse, error)
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