forked from labd/commercetools-go-sdk
/
client_product_types_by_project_key_product_types_key_by_key.go
45 lines (38 loc) · 1.47 KB
/
client_product_types_by_project_key_product_types_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
package platform
// Generated file, please do not change!!!
import (
"fmt"
)
type ByProjectKeyProductTypesKeyByKeyRequestBuilder struct {
projectKey string
key string
client *Client
}
func (rb *ByProjectKeyProductTypesKeyByKeyRequestBuilder) Get() *ByProjectKeyProductTypesKeyByKeyRequestMethodGet {
return &ByProjectKeyProductTypesKeyByKeyRequestMethodGet{
url: fmt.Sprintf("/%s/product-types/key=%s", rb.projectKey, rb.key),
client: rb.client,
}
}
/**
* Checks if a Product Type with given `key` exists. Responds with a `200 OK` status if the `Product Type` exists or `404 Not Found` otherwise.
*/
func (rb *ByProjectKeyProductTypesKeyByKeyRequestBuilder) Head() *ByProjectKeyProductTypesKeyByKeyRequestMethodHead {
return &ByProjectKeyProductTypesKeyByKeyRequestMethodHead{
url: fmt.Sprintf("/%s/product-types/key=%s", rb.projectKey, rb.key),
client: rb.client,
}
}
func (rb *ByProjectKeyProductTypesKeyByKeyRequestBuilder) Post(body ProductTypeUpdate) *ByProjectKeyProductTypesKeyByKeyRequestMethodPost {
return &ByProjectKeyProductTypesKeyByKeyRequestMethodPost{
body: body,
url: fmt.Sprintf("/%s/product-types/key=%s", rb.projectKey, rb.key),
client: rb.client,
}
}
func (rb *ByProjectKeyProductTypesKeyByKeyRequestBuilder) Delete() *ByProjectKeyProductTypesKeyByKeyRequestMethodDelete {
return &ByProjectKeyProductTypesKeyByKeyRequestMethodDelete{
url: fmt.Sprintf("/%s/product-types/key=%s", rb.projectKey, rb.key),
client: rb.client,
}
}