forked from labd/commercetools-go-sdk
/
client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key.go
50 lines (44 loc) · 2.01 KB
/
client_shopping_lists_by_project_key_in_store_key_by_store_key_me_shopping_lists_key_by_key.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package platform
// Generated file, please do not change!!!
import (
"fmt"
)
type ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder struct {
projectKey string
storeKey string
key string
client *Client
}
/**
* If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store, the [ResourceNotFound](/errors#404-not-found-1) error is returned.
*
*/
func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder) Get() *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodGet {
return &ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodGet{
url: fmt.Sprintf("/%s/in-store/key=%s/me/shopping-lists/key=%s", rb.projectKey, rb.storeKey, rb.key),
client: rb.client,
}
}
/**
* If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
* the [ResourceNotFound](/errors#404-not-found-1) error is returned.
*
*/
func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder) Post(body MyShoppingListUpdate) *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodPost {
return &ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodPost{
body: body,
url: fmt.Sprintf("/%s/in-store/key=%s/me/shopping-lists/key=%s", rb.projectKey, rb.storeKey, rb.key),
client: rb.client,
}
}
/**
* If a ShoppingList exists in a Project but does _not_ have the `store` field, or the `store` field references a different Store,
* the [ResourceNotFound](/errors#404-not-found-1) error is returned.
*
*/
func (rb *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestBuilder) Delete() *ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodDelete {
return &ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyRequestMethodDelete{
url: fmt.Sprintf("/%s/in-store/key=%s/me/shopping-lists/key=%s", rb.projectKey, rb.storeKey, rb.key),
client: rb.client,
}
}