Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateCmd = &cobra.Command{ Use: "create", Short: "Create store", Long: "Create a new store for your account.\n\nA primary sales channel is created alongside the store.", Run: func(cmd *cobra.Command, args []string) { payload, err := json.Marshal(createBody(cmd)) if err != nil { log.Fatal(err) } r, err := api.Request().EcommerceCreateStoreV1WithBodyWithResponse(context.TODO(), "application/json", bytes.NewReader(payload)) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
View Source
var GroupCmd = &cobra.Command{
Use: "stores",
Short: "Stores commands",
}
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "Get stores", Long: "Retrieve the stores associated with your account.", Run: func(cmd *cobra.Command, args []string) { r, err := api.Request().EcommerceGetStoresV1WithResponse(context.TODO(), listParams(cmd)) if err != nil { log.Fatal(err) } output.Format(cmd, r.Body, r.StatusCode()) }, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.