-
Notifications
You must be signed in to change notification settings - Fork 15
/
ByProjectKeyCartsByIDRequestBuilder.java
43 lines (31 loc) · 1.49 KB
/
ByProjectKeyCartsByIDRequestBuilder.java
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
package com.commercetools.api.client;
import java.util.function.UnaryOperator;
import io.vrap.rmf.base.client.ApiHttpClient;
import io.vrap.rmf.base.client.utils.Generated;
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ByProjectKeyCartsByIDRequestBuilder {
private final ApiHttpClient apiHttpClient;
private final String projectKey;
private final String ID;
public ByProjectKeyCartsByIDRequestBuilder(final ApiHttpClient apiHttpClient, final String projectKey,
final String ID) {
this.apiHttpClient = apiHttpClient;
this.projectKey = projectKey;
this.ID = ID;
}
public ByProjectKeyCartsByIDGet get() {
return new ByProjectKeyCartsByIDGet(apiHttpClient, projectKey, ID);
}
public ByProjectKeyCartsByIDPost post(com.commercetools.api.models.cart.CartUpdate cartUpdate) {
return new ByProjectKeyCartsByIDPost(apiHttpClient, projectKey, ID, cartUpdate);
}
public ByProjectKeyCartsByIDPost post(UnaryOperator<com.commercetools.api.models.cart.CartUpdateBuilder> op) {
return post(op.apply(com.commercetools.api.models.cart.CartUpdateBuilder.of()).build());
}
public ByProjectKeyCartsByIDDelete delete() {
return new ByProjectKeyCartsByIDDelete(apiHttpClient, projectKey, ID);
}
public <TValue> ByProjectKeyCartsByIDDelete delete(TValue version) {
return delete().withVersion(version);
}
}