Documentation
¶
Overview ¶
Package store2 implements the Meplato Store API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MeResponse ¶
type MeResponse struct { // CatalogsLink is the URL for retrieving the list of catalogs. CatalogsLink string `json:"catalogsLink,omitempty"` // Kind is store#me for this entity. Kind string `json:"kind,omitempty"` // Merchant returns information about your merchant account. Merchant *Merchant `json:"merchant,omitempty"` // SelfLink is the URL of this request. SelfLink string `json:"selfLink,omitempty"` // User returns information about your user account. User *User `json:"user,omitempty"` }
MeResponse returns various information about the user and endpoints.
type MeService ¶
type MeService struct {
// contains filtered or unexported fields
}
Me returns information about your user profile and the API endpoints of the Meplato Store 2.0 API.
func NewMeService ¶
NewMeService creates a new instance of MeService.
type Merchant ¶
type Merchant struct { // Country/Region is the ISO code for the country/region of the merchant, // e.g. DE or CH. Country string `json:"country,omitempty"` // Created is the date/time when the merchant was created, e.g. // 2015-03-19T12:09:45Z Created *time.Time `json:"created,omitempty"` // Currency is the default ISO code for new catalogs, e.g. EUR or GBP. Currency string `json:"currency,omitempty"` // ID is a unique (internal) identifier of the merchant. ID int64 `json:"id,omitempty"` // Kind is store#merchant for this entity. Kind string `json:"kind,omitempty"` // Language is the code for the language of the merchant, e.g. de or en. Language string `json:"language,omitempty"` // Locale is the regional code in the format de_AT. Locale string `json:"locale,omitempty"` // Mpcc: MPCC is the Meplato Company Code, a unique identifier. Mpcc string `json:"mpcc,omitempty"` // Mpsc: MPSC is the Meplato Supplier Code. Mpsc string `json:"mpsc,omitempty"` // Name is the name of the merchant. Name string `json:"name,omitempty"` // Ou: OU is the default ISO code of the order unit, e.g. PCE or EA. Ou string `json:"ou,omitempty"` // SelfLink is the URL for this merchant. SelfLink string `json:"selfLink,omitempty"` // SelfService indicates whether this merchant is on self-service or // managed by Meplato. SelfService bool `json:"selfService,omitempty"` // TimeZone is the time zone in the format Europe/Berlin. TimeZone string `json:"timeZone,omitempty"` // Token is a shared token for this merchant. Token string `json:"token,omitempty"` // Updated is the date/time when the merchant was last modified, e.g. // 2015-03-19T12:09:45Z Updated *time.Time `json:"updated,omitempty"` }
Merchant holds account data for the merchant/supplier in Meplato Store.
type PingService ¶
type PingService struct {
// contains filtered or unexported fields
}
Ping allows you to test if the Meplato Store 2.0 API is currently operational.
func NewPingService ¶
func NewPingService(s *Service) *PingService
NewPingService creates a new instance of PingService.
type Service ¶
type Service struct { BaseURL string User string Password string // contains filtered or unexported fields }
func (*Service) Ping ¶
func (s *Service) Ping() *PingService
type User ¶
type User struct { // Country/Region is the ISO code for the country/region, e.g. DE or CH. Country string `json:"country,omitempty"` // Created is the date/time when the user was created, e.g. // 2015-03-19T12:09:45Z Created *time.Time `json:"created,omitempty"` // Currency is the default ISO code for currencies, e.g. EUR or GBP. Currency string `json:"currency,omitempty"` // Email is the email address. Email string `json:"email,omitempty"` // ID is a unique (internal) identifier of the user. ID int64 `json:"id,omitempty"` // Kind is store#user for this entity. Kind string `json:"kind,omitempty"` // Language is the code for the language, e.g. de or en. Language string `json:"language,omitempty"` // Locale is the regional code in the format de_AT. Locale string `json:"locale,omitempty"` // Name is the user, including first and last name. Name string `json:"name,omitempty"` // Provider is used internally. Provider string `json:"provider,omitempty"` // TimeZone is the time zone in the format Europe/Berlin. TimeZone string `json:"timeZone,omitempty"` // Uid: UID is used internally. Uid string `json:"uid,omitempty"` // Updated is the date/time when the user was last modified, e.g. // 2015-03-19T12:09:45Z Updated *time.Time `json:"updated,omitempty"` }
User holds account data for the user in Meplato Store.
Directories
¶
Path | Synopsis |
---|---|
Package availabilities implements the Meplato Store API.
|
Package availabilities implements the Meplato Store API. |
Package catalogs implements the Meplato Store API.
|
Package catalogs implements the Meplato Store API. |
cmd
|
|
internal
|
|
Package jobs implements the Meplato Store API.
|
Package jobs implements the Meplato Store API. |
Package products implements the Meplato Store API.
|
Package products implements the Meplato Store API. |
Click to show internal directories.
Click to hide internal directories.