enumValues) {
19 | this.description = description;
20 | this.defaultValue = defaultValue;
21 | this.enumValues = enumValues;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/StringUtil.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export;
15 |
16 | import java.util.Collection;
17 | import java.util.Iterator;
18 |
19 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
20 | public class StringUtil {
21 | /**
22 | * Check if the given array contains the given value (with case-insensitive comparison).
23 | *
24 | * @param array The array
25 | * @param value The value to search
26 | * @return true if the array contains the value
27 | */
28 | public static boolean containsIgnoreCase(String[] array, String value) {
29 | for (String str : array) {
30 | if (value == null && str == null) {
31 | return true;
32 | }
33 | if (value != null && value.equalsIgnoreCase(str)) {
34 | return true;
35 | }
36 | }
37 | return false;
38 | }
39 |
40 | /**
41 | * Join an array of strings with the given separator.
42 | *
43 | * Note: This might be replaced by utility method from commons-lang or guava someday
44 | * if one of those libraries is added as dependency.
45 | *
46 | *
47 | * @param array The array of strings
48 | * @param separator The separator
49 | * @return the resulting string
50 | */
51 | public static String join(String[] array, String separator) {
52 | int len = array.length;
53 | if (len == 0) {
54 | return "";
55 | }
56 |
57 | StringBuilder out = new StringBuilder();
58 | out.append(array[0]);
59 | for (int i = 1; i < len; i++) {
60 | out.append(separator).append(array[i]);
61 | }
62 | return out.toString();
63 | }
64 |
65 | /**
66 | * Join a list of strings with the given separator.
67 | *
68 | * @param list The list of strings
69 | * @param separator The separator
70 | * @return the resulting string
71 | */
72 | public static String join(Collection list, String separator) {
73 | Iterator iterator = list.iterator();
74 | StringBuilder out = new StringBuilder();
75 | if (iterator.hasNext()) {
76 | out.append(iterator.next());
77 | }
78 | while (iterator.hasNext()) {
79 | out.append(separator).append(iterator.next());
80 | }
81 | return out.toString();
82 | }
83 | }
84 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/auth/ApiKeyAuth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.auth;
15 |
16 | import com.croct.client.export.Pair;
17 | import com.croct.client.export.ApiException;
18 |
19 | import java.net.URI;
20 | import java.util.Map;
21 | import java.util.List;
22 |
23 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
24 | public class ApiKeyAuth implements Authentication {
25 | private final String location;
26 | private final String paramName;
27 |
28 | private String apiKey;
29 | private String apiKeyPrefix;
30 |
31 | public ApiKeyAuth(String location, String paramName) {
32 | this.location = location;
33 | this.paramName = paramName;
34 | }
35 |
36 | public String getLocation() {
37 | return location;
38 | }
39 |
40 | public String getParamName() {
41 | return paramName;
42 | }
43 |
44 | public String getApiKey() {
45 | return apiKey;
46 | }
47 |
48 | public void setApiKey(String apiKey) {
49 | this.apiKey = apiKey;
50 | }
51 |
52 | public String getApiKeyPrefix() {
53 | return apiKeyPrefix;
54 | }
55 |
56 | public void setApiKeyPrefix(String apiKeyPrefix) {
57 | this.apiKeyPrefix = apiKeyPrefix;
58 | }
59 |
60 | @Override
61 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException {
62 | if (apiKey == null) {
63 | return;
64 | }
65 | String value;
66 | if (apiKeyPrefix != null) {
67 | value = apiKeyPrefix + " " + apiKey;
68 | } else {
69 | value = apiKey;
70 | }
71 | if ("query".equals(location)) {
72 | queryParams.add(new Pair(paramName, value));
73 | } else if ("header".equals(location)) {
74 | headerParams.put(paramName, value);
75 | } else if ("cookie".equals(location)) {
76 | cookieParams.put(paramName, value);
77 | }
78 | }
79 | }
80 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/auth/Authentication.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.auth;
15 |
16 | import com.croct.client.export.Pair;
17 | import com.croct.client.export.ApiException;
18 |
19 | import java.net.URI;
20 | import java.util.Map;
21 | import java.util.List;
22 |
23 | public interface Authentication {
24 | /**
25 | * Apply authentication settings to header and query params.
26 | *
27 | * @param queryParams List of query parameters
28 | * @param headerParams Map of header parameters
29 | * @param cookieParams Map of cookie parameters
30 | */
31 | void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException;
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/auth/HttpBasicAuth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.auth;
15 |
16 | import com.croct.client.export.Pair;
17 | import com.croct.client.export.ApiException;
18 |
19 | import java.util.Base64;
20 | import java.nio.charset.StandardCharsets;
21 |
22 | import java.net.URI;
23 | import java.util.Map;
24 | import java.util.List;
25 |
26 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
27 | public class HttpBasicAuth implements Authentication {
28 | private String username;
29 | private String password;
30 |
31 | public String getUsername() {
32 | return username;
33 | }
34 |
35 | public void setUsername(String username) {
36 | this.username = username;
37 | }
38 |
39 | public String getPassword() {
40 | return password;
41 | }
42 |
43 | public void setPassword(String password) {
44 | this.password = password;
45 | }
46 |
47 | @Override
48 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException {
49 | if (username == null && password == null) {
50 | return;
51 | }
52 | String str = (username == null ? "" : username) + ":" + (password == null ? "" : password);
53 | headerParams.put("Authorization", "Basic " + Base64.getEncoder().encodeToString(str.getBytes(StandardCharsets.UTF_8)));
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/auth/HttpBearerAuth.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.auth;
15 |
16 | import com.croct.client.export.Pair;
17 | import com.croct.client.export.ApiException;
18 |
19 | import java.net.URI;
20 | import java.util.Map;
21 | import java.util.List;
22 |
23 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
24 | public class HttpBearerAuth implements Authentication {
25 | private final String scheme;
26 | private String bearerToken;
27 |
28 | public HttpBearerAuth(String scheme) {
29 | this.scheme = scheme;
30 | }
31 |
32 | /**
33 | * Gets the token, which together with the scheme, will be sent as the value of the Authorization header.
34 | *
35 | * @return The bearer token
36 | */
37 | public String getBearerToken() {
38 | return bearerToken;
39 | }
40 |
41 | /**
42 | * Sets the token, which together with the scheme, will be sent as the value of the Authorization header.
43 | *
44 | * @param bearerToken The bearer token to send in the Authorization header
45 | */
46 | public void setBearerToken(String bearerToken) {
47 | this.bearerToken = bearerToken;
48 | }
49 |
50 | @Override
51 | public void applyToParams(List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException {
52 | if(bearerToken == null) {
53 | return;
54 | }
55 |
56 | headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken);
57 | }
58 |
59 | private static String upperCaseBearer(String scheme) {
60 | return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme;
61 | }
62 | }
63 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/AbstractOpenApiSchema.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import com.croct.client.export.ApiException;
17 | import java.util.Objects;
18 | import java.lang.reflect.Type;
19 | import java.util.Map;
20 | import javax.ws.rs.core.GenericType;
21 |
22 | import com.fasterxml.jackson.annotation.JsonValue;
23 |
24 | /**
25 | * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec
26 | */
27 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
28 | public abstract class AbstractOpenApiSchema {
29 |
30 | // store the actual instance of the schema/object
31 | private Object instance;
32 |
33 | // is nullable
34 | private Boolean isNullable;
35 |
36 | // schema type (e.g. oneOf, anyOf)
37 | private final String schemaType;
38 |
39 | public AbstractOpenApiSchema(String schemaType, Boolean isNullable) {
40 | this.schemaType = schemaType;
41 | this.isNullable = isNullable;
42 | }
43 |
44 | /**
45 | * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object
46 | *
47 | * @return an instance of the actual schema/object
48 | */
49 | public abstract Map getSchemas();
50 |
51 | /**
52 | * Get the actual instance
53 | *
54 | * @return an instance of the actual schema/object
55 | */
56 | @JsonValue
57 | public Object getActualInstance() {return instance;}
58 |
59 | /**
60 | * Set the actual instance
61 | *
62 | * @param instance the actual instance of the schema/object
63 | */
64 | public void setActualInstance(Object instance) {this.instance = instance;}
65 |
66 | /**
67 | * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well
68 | *
69 | * @return an instance of the actual schema/object
70 | */
71 | public Object getActualInstanceRecursively() {
72 | return getActualInstanceRecursively(this);
73 | }
74 |
75 | private Object getActualInstanceRecursively(AbstractOpenApiSchema object) {
76 | if (object.getActualInstance() == null) {
77 | return null;
78 | } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) {
79 | return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance());
80 | } else {
81 | return object.getActualInstance();
82 | }
83 | }
84 |
85 | /**
86 | * Get the schema type (e.g. anyOf, oneOf)
87 | *
88 | * @return the schema type
89 | */
90 | public String getSchemaType() {
91 | return schemaType;
92 | }
93 |
94 | @Override
95 | public String toString() {
96 | StringBuilder sb = new StringBuilder();
97 | sb.append("class ").append(getClass()).append(" {\n");
98 | sb.append(" instance: ").append(toIndentedString(instance)).append("\n");
99 | sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n");
100 | sb.append(" schemaType: ").append(toIndentedString(schemaType)).append("\n");
101 | sb.append("}");
102 | return sb.toString();
103 | }
104 |
105 | /**
106 | * Convert the given object to string with each line indented by 4 spaces
107 | * (except the first line).
108 | */
109 | private String toIndentedString(Object o) {
110 | if (o == null) {
111 | return "null";
112 | }
113 | return o.toString().replace("\n", "\n ");
114 | }
115 |
116 | public boolean equals(Object o) {
117 | if (this == o) {
118 | return true;
119 | }
120 | if (o == null || getClass() != o.getClass()) {
121 | return false;
122 | }
123 | AbstractOpenApiSchema a = (AbstractOpenApiSchema) o;
124 | return Objects.equals(this.instance, a.instance) &&
125 | Objects.equals(this.isNullable, a.isNullable) &&
126 | Objects.equals(this.schemaType, a.schemaType);
127 | }
128 |
129 | @Override
130 | public int hashCode() {
131 | return Objects.hash(instance, isNullable, schemaType);
132 | }
133 |
134 | /**
135 | * Is nullable
136 | *
137 | * @return true if it's nullable
138 | */
139 | public Boolean isNullable() {
140 | if (Boolean.TRUE.equals(isNullable)) {
141 | return Boolean.TRUE;
142 | } else {
143 | return Boolean.FALSE;
144 | }
145 | }
146 |
147 |
148 |
149 | }
150 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/ApiProblem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.fasterxml.jackson.annotation.JsonInclude;
24 | import com.fasterxml.jackson.annotation.JsonProperty;
25 | import com.fasterxml.jackson.annotation.JsonCreator;
26 | import com.fasterxml.jackson.annotation.JsonTypeName;
27 | import com.fasterxml.jackson.annotation.JsonValue;
28 | import java.util.Arrays;
29 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30 | import com.croct.client.export.JSON;
31 |
32 |
33 | /**
34 | * ApiProblem
35 | */
36 | @JsonPropertyOrder({
37 | ApiProblem.JSON_PROPERTY_TITLE,
38 | ApiProblem.JSON_PROPERTY_TYPE,
39 | ApiProblem.JSON_PROPERTY_DETAILS
40 | })
41 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
42 | public class ApiProblem {
43 | public static final String JSON_PROPERTY_TITLE = "title";
44 | private String title;
45 |
46 | public static final String JSON_PROPERTY_TYPE = "type";
47 | private String type;
48 |
49 | public static final String JSON_PROPERTY_DETAILS = "details";
50 | private String details;
51 |
52 | public ApiProblem() {
53 | }
54 |
55 | public ApiProblem title(String title) {
56 | this.title = title;
57 | return this;
58 | }
59 |
60 | /**
61 | * Get title
62 | * @return title
63 | **/
64 | @javax.annotation.Nonnull
65 | @JsonProperty(JSON_PROPERTY_TITLE)
66 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
67 |
68 | public String getTitle() {
69 | return title;
70 | }
71 |
72 |
73 | @JsonProperty(JSON_PROPERTY_TITLE)
74 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
75 | public void setTitle(String title) {
76 | this.title = title;
77 | }
78 |
79 |
80 | public ApiProblem type(String type) {
81 | this.type = type;
82 | return this;
83 | }
84 |
85 | /**
86 | * Get type
87 | * @return type
88 | **/
89 | @javax.annotation.Nonnull
90 | @JsonProperty(JSON_PROPERTY_TYPE)
91 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
92 |
93 | public String getType() {
94 | return type;
95 | }
96 |
97 |
98 | @JsonProperty(JSON_PROPERTY_TYPE)
99 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
100 | public void setType(String type) {
101 | this.type = type;
102 | }
103 |
104 |
105 | public ApiProblem details(String details) {
106 | this.details = details;
107 | return this;
108 | }
109 |
110 | /**
111 | * Get details
112 | * @return details
113 | **/
114 | @javax.annotation.Nullable
115 | @JsonProperty(JSON_PROPERTY_DETAILS)
116 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117 |
118 | public String getDetails() {
119 | return details;
120 | }
121 |
122 |
123 | @JsonProperty(JSON_PROPERTY_DETAILS)
124 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
125 | public void setDetails(String details) {
126 | this.details = details;
127 | }
128 |
129 | /**
130 | * A container for additional, undeclared properties.
131 | * This is a holder for any undeclared properties as specified with
132 | * the 'additionalProperties' keyword in the OAS document.
133 | */
134 | private Map additionalProperties;
135 |
136 | /**
137 | * Set the additional (undeclared) property with the specified name and value.
138 | * If the property does not already exist, create it otherwise replace it.
139 | */
140 | @JsonAnySetter
141 | public ApiProblem putAdditionalProperty(String key, Object value) {
142 | if (this.additionalProperties == null) {
143 | this.additionalProperties = new HashMap<>();
144 | }
145 | this.additionalProperties.put(key, value);
146 | return this;
147 | }
148 |
149 | /**
150 | * Return the additional (undeclared) property.
151 | */
152 | @JsonAnyGetter
153 | public Map getAdditionalProperties() {
154 | return additionalProperties;
155 | }
156 |
157 | /**
158 | * Return the additional (undeclared) property with the specified name.
159 | */
160 | public Object getAdditionalProperty(String key) {
161 | if (this.additionalProperties == null) {
162 | return null;
163 | }
164 | return this.additionalProperties.get(key);
165 | }
166 |
167 | /**
168 | * Return true if this ApiProblem object is equal to o.
169 | */
170 | @Override
171 | public boolean equals(Object o) {
172 | if (this == o) {
173 | return true;
174 | }
175 | if (o == null || getClass() != o.getClass()) {
176 | return false;
177 | }
178 | ApiProblem apiProblem = (ApiProblem) o;
179 | return Objects.equals(this.title, apiProblem.title) &&
180 | Objects.equals(this.type, apiProblem.type) &&
181 | Objects.equals(this.details, apiProblem.details)&&
182 | Objects.equals(this.additionalProperties, apiProblem.additionalProperties);
183 | }
184 |
185 | @Override
186 | public int hashCode() {
187 | return Objects.hash(title, type, details, additionalProperties);
188 | }
189 |
190 | @Override
191 | public String toString() {
192 | StringBuilder sb = new StringBuilder();
193 | sb.append("class ApiProblem {\n");
194 | sb.append(" title: ").append(toIndentedString(title)).append("\n");
195 | sb.append(" type: ").append(toIndentedString(type)).append("\n");
196 | sb.append(" details: ").append(toIndentedString(details)).append("\n");
197 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
198 | sb.append("}");
199 | return sb.toString();
200 | }
201 |
202 | /**
203 | * Convert the given object to string with each line indented by 4 spaces
204 | * (except the first line).
205 | */
206 | private String toIndentedString(Object o) {
207 | if (o == null) {
208 | return "null";
209 | }
210 | return o.toString().replace("\n", "\n ");
211 | }
212 |
213 | }
214 |
215 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/Browser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.croct.client.export.model.BrowserType;
20 | import com.fasterxml.jackson.annotation.JsonInclude;
21 | import com.fasterxml.jackson.annotation.JsonProperty;
22 | import com.fasterxml.jackson.annotation.JsonCreator;
23 | import com.fasterxml.jackson.annotation.JsonTypeName;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 | import java.util.Arrays;
26 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 | import com.croct.client.export.JSON;
28 |
29 |
30 | /**
31 | * The available information about a browser.
32 | */
33 | @JsonPropertyOrder({
34 | Browser.JSON_PROPERTY_NAME,
35 | Browser.JSON_PROPERTY_VERSION,
36 | Browser.JSON_PROPERTY_TYPE
37 | })
38 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
39 | public class Browser {
40 | public static final String JSON_PROPERTY_NAME = "name";
41 | private String name;
42 |
43 | public static final String JSON_PROPERTY_VERSION = "version";
44 | private String version;
45 |
46 | public static final String JSON_PROPERTY_TYPE = "type";
47 | private BrowserType type;
48 |
49 | public Browser() {
50 | }
51 |
52 | public Browser name(String name) {
53 | this.name = name;
54 | return this;
55 | }
56 |
57 | /**
58 | * The name of the browser, non-empty. For example, \"Chrome\".
59 | * @return name
60 | **/
61 | @javax.annotation.Nullable
62 | @JsonProperty(JSON_PROPERTY_NAME)
63 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
64 |
65 | public String getName() {
66 | return name;
67 | }
68 |
69 |
70 | @JsonProperty(JSON_PROPERTY_NAME)
71 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
72 | public void setName(String name) {
73 | this.name = name;
74 | }
75 |
76 |
77 | public Browser version(String version) {
78 | this.version = version;
79 | return this;
80 | }
81 |
82 | /**
83 | * The version of the browser, non-empty. For example, \"79.0.3945.130\", \"11\" or \"160.1\".
84 | * @return version
85 | **/
86 | @javax.annotation.Nullable
87 | @JsonProperty(JSON_PROPERTY_VERSION)
88 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
89 |
90 | public String getVersion() {
91 | return version;
92 | }
93 |
94 |
95 | @JsonProperty(JSON_PROPERTY_VERSION)
96 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
97 | public void setVersion(String version) {
98 | this.version = version;
99 | }
100 |
101 |
102 | public Browser type(BrowserType type) {
103 | this.type = type;
104 | return this;
105 | }
106 |
107 | /**
108 | * Get type
109 | * @return type
110 | **/
111 | @javax.annotation.Nonnull
112 | @JsonProperty(JSON_PROPERTY_TYPE)
113 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
114 |
115 | public BrowserType getType() {
116 | return type;
117 | }
118 |
119 |
120 | @JsonProperty(JSON_PROPERTY_TYPE)
121 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
122 | public void setType(BrowserType type) {
123 | this.type = type;
124 | }
125 |
126 |
127 | /**
128 | * Return true if this Browser object is equal to o.
129 | */
130 | @Override
131 | public boolean equals(Object o) {
132 | if (this == o) {
133 | return true;
134 | }
135 | if (o == null || getClass() != o.getClass()) {
136 | return false;
137 | }
138 | Browser browser = (Browser) o;
139 | return Objects.equals(this.name, browser.name) &&
140 | Objects.equals(this.version, browser.version) &&
141 | Objects.equals(this.type, browser.type);
142 | }
143 |
144 | @Override
145 | public int hashCode() {
146 | return Objects.hash(name, version, type);
147 | }
148 |
149 | @Override
150 | public String toString() {
151 | StringBuilder sb = new StringBuilder();
152 | sb.append("class Browser {\n");
153 | sb.append(" name: ").append(toIndentedString(name)).append("\n");
154 | sb.append(" version: ").append(toIndentedString(version)).append("\n");
155 | sb.append(" type: ").append(toIndentedString(type)).append("\n");
156 | sb.append("}");
157 | return sb.toString();
158 | }
159 |
160 | /**
161 | * Convert the given object to string with each line indented by 4 spaces
162 | * (except the first line).
163 | */
164 | private String toIndentedString(Object o) {
165 | if (o == null) {
166 | return "null";
167 | }
168 | return o.toString().replace("\n", "\n ");
169 | }
170 |
171 | }
172 |
173 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/BrowserType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
20 | import com.croct.client.export.JSON;
21 |
22 |
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 |
26 | /**
27 | * The type of the browser.
28 | */
29 | public enum BrowserType {
30 |
31 | WEB("WEB"),
32 |
33 | IN_APP("IN_APP"),
34 |
35 | CRAWLER("CRAWLER"),
36 |
37 | OTHER("OTHER"),
38 |
39 | UNKNOWN("UNKNOWN");
40 |
41 | private String value;
42 |
43 | BrowserType(String value) {
44 | this.value = value;
45 | }
46 |
47 | @JsonValue
48 | public String getValue() {
49 | return value;
50 | }
51 |
52 | @Override
53 | public String toString() {
54 | return String.valueOf(value);
55 | }
56 |
57 | @JsonCreator
58 | public static BrowserType fromValue(String value) {
59 | for (BrowserType b : BrowserType.values()) {
60 | if (b.value.equals(value)) {
61 | return b;
62 | }
63 | }
64 | throw new IllegalArgumentException("Unexpected value '" + value + "'");
65 | }
66 | }
67 |
68 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/CartModified.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.Cart;
24 | import com.croct.client.export.model.EventPayload;
25 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 | import com.fasterxml.jackson.annotation.JsonInclude;
27 | import com.fasterxml.jackson.annotation.JsonProperty;
28 | import com.fasterxml.jackson.annotation.JsonCreator;
29 | import com.fasterxml.jackson.annotation.JsonSubTypes;
30 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
31 | import com.fasterxml.jackson.annotation.JsonTypeName;
32 | import com.fasterxml.jackson.annotation.JsonValue;
33 | import java.util.Arrays;
34 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 | import com.croct.client.export.JSON;
36 |
37 |
38 | /**
39 | * An event recording that a shopping cart was modified.
40 | */
41 | @JsonPropertyOrder({
42 | CartModified.JSON_PROPERTY_CART
43 | })
44 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
45 | @JsonIgnoreProperties(
46 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
47 | allowSetters = true // allows the @type to be set during deserialization
48 | )
49 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
50 |
51 | public class CartModified extends EventPayload {
52 | public static final String JSON_PROPERTY_CART = "cart";
53 | private Cart cart;
54 |
55 | public CartModified() {
56 | }
57 |
58 | public CartModified cart(Cart cart) {
59 | this.cart = cart;
60 | return this;
61 | }
62 |
63 | /**
64 | * Get cart
65 | * @return cart
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_CART)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public Cart getCart() {
72 | return cart;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_CART)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setCart(Cart cart) {
79 | this.cart = cart;
80 | }
81 |
82 | /**
83 | * A container for additional, undeclared properties.
84 | * This is a holder for any undeclared properties as specified with
85 | * the 'additionalProperties' keyword in the OAS document.
86 | */
87 | private Map additionalProperties;
88 |
89 | /**
90 | * Set the additional (undeclared) property with the specified name and value.
91 | * If the property does not already exist, create it otherwise replace it.
92 | */
93 | @JsonAnySetter
94 | public CartModified putAdditionalProperty(String key, Object value) {
95 | if (this.additionalProperties == null) {
96 | this.additionalProperties = new HashMap<>();
97 | }
98 | this.additionalProperties.put(key, value);
99 | return this;
100 | }
101 |
102 | /**
103 | * Return the additional (undeclared) property.
104 | */
105 | @JsonAnyGetter
106 | public Map getAdditionalProperties() {
107 | return additionalProperties;
108 | }
109 |
110 | /**
111 | * Return the additional (undeclared) property with the specified name.
112 | */
113 | public Object getAdditionalProperty(String key) {
114 | if (this.additionalProperties == null) {
115 | return null;
116 | }
117 | return this.additionalProperties.get(key);
118 | }
119 |
120 | /**
121 | * Return true if this CartModified object is equal to o.
122 | */
123 | @Override
124 | public boolean equals(Object o) {
125 | if (this == o) {
126 | return true;
127 | }
128 | if (o == null || getClass() != o.getClass()) {
129 | return false;
130 | }
131 | CartModified cartModified = (CartModified) o;
132 | return Objects.equals(this.cart, cartModified.cart)&&
133 | Objects.equals(this.additionalProperties, cartModified.additionalProperties) &&
134 | super.equals(o);
135 | }
136 |
137 | @Override
138 | public int hashCode() {
139 | return Objects.hash(cart, super.hashCode(), additionalProperties);
140 | }
141 |
142 | @Override
143 | public String toString() {
144 | StringBuilder sb = new StringBuilder();
145 | sb.append("class CartModified {\n");
146 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
147 | sb.append(" cart: ").append(toIndentedString(cart)).append("\n");
148 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
149 | sb.append("}");
150 | return sb.toString();
151 | }
152 |
153 | /**
154 | * Convert the given object to string with each line indented by 4 spaces
155 | * (except the first line).
156 | */
157 | private String toIndentedString(Object o) {
158 | if (o == null) {
159 | return "null";
160 | }
161 | return o.toString().replace("\n", "\n ");
162 | }
163 |
164 | static {
165 | // Initialize and register the discriminator mappings.
166 | Map> mappings = new HashMap<>();
167 | mappings.put("CartModified", CartModified.class);
168 | JSON.registerDiscriminator(CartModified.class, "@type", mappings);
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/CartViewed.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.Cart;
24 | import com.croct.client.export.model.EventPayload;
25 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 | import com.fasterxml.jackson.annotation.JsonInclude;
27 | import com.fasterxml.jackson.annotation.JsonProperty;
28 | import com.fasterxml.jackson.annotation.JsonCreator;
29 | import com.fasterxml.jackson.annotation.JsonSubTypes;
30 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
31 | import com.fasterxml.jackson.annotation.JsonTypeName;
32 | import com.fasterxml.jackson.annotation.JsonValue;
33 | import java.util.Arrays;
34 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 | import com.croct.client.export.JSON;
36 |
37 |
38 | /**
39 | * An event recording that a shopping cart was viewed.
40 | */
41 | @JsonPropertyOrder({
42 | CartViewed.JSON_PROPERTY_CART
43 | })
44 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
45 | @JsonIgnoreProperties(
46 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
47 | allowSetters = true // allows the @type to be set during deserialization
48 | )
49 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
50 |
51 | public class CartViewed extends EventPayload {
52 | public static final String JSON_PROPERTY_CART = "cart";
53 | private Cart cart;
54 |
55 | public CartViewed() {
56 | }
57 |
58 | public CartViewed cart(Cart cart) {
59 | this.cart = cart;
60 | return this;
61 | }
62 |
63 | /**
64 | * Get cart
65 | * @return cart
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_CART)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public Cart getCart() {
72 | return cart;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_CART)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setCart(Cart cart) {
79 | this.cart = cart;
80 | }
81 |
82 | /**
83 | * A container for additional, undeclared properties.
84 | * This is a holder for any undeclared properties as specified with
85 | * the 'additionalProperties' keyword in the OAS document.
86 | */
87 | private Map additionalProperties;
88 |
89 | /**
90 | * Set the additional (undeclared) property with the specified name and value.
91 | * If the property does not already exist, create it otherwise replace it.
92 | */
93 | @JsonAnySetter
94 | public CartViewed putAdditionalProperty(String key, Object value) {
95 | if (this.additionalProperties == null) {
96 | this.additionalProperties = new HashMap<>();
97 | }
98 | this.additionalProperties.put(key, value);
99 | return this;
100 | }
101 |
102 | /**
103 | * Return the additional (undeclared) property.
104 | */
105 | @JsonAnyGetter
106 | public Map getAdditionalProperties() {
107 | return additionalProperties;
108 | }
109 |
110 | /**
111 | * Return the additional (undeclared) property with the specified name.
112 | */
113 | public Object getAdditionalProperty(String key) {
114 | if (this.additionalProperties == null) {
115 | return null;
116 | }
117 | return this.additionalProperties.get(key);
118 | }
119 |
120 | /**
121 | * Return true if this CartViewed object is equal to o.
122 | */
123 | @Override
124 | public boolean equals(Object o) {
125 | if (this == o) {
126 | return true;
127 | }
128 | if (o == null || getClass() != o.getClass()) {
129 | return false;
130 | }
131 | CartViewed cartViewed = (CartViewed) o;
132 | return Objects.equals(this.cart, cartViewed.cart)&&
133 | Objects.equals(this.additionalProperties, cartViewed.additionalProperties) &&
134 | super.equals(o);
135 | }
136 |
137 | @Override
138 | public int hashCode() {
139 | return Objects.hash(cart, super.hashCode(), additionalProperties);
140 | }
141 |
142 | @Override
143 | public String toString() {
144 | StringBuilder sb = new StringBuilder();
145 | sb.append("class CartViewed {\n");
146 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
147 | sb.append(" cart: ").append(toIndentedString(cart)).append("\n");
148 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
149 | sb.append("}");
150 | return sb.toString();
151 | }
152 |
153 | /**
154 | * Convert the given object to string with each line indented by 4 spaces
155 | * (except the first line).
156 | */
157 | private String toIndentedString(Object o) {
158 | if (o == null) {
159 | return "null";
160 | }
161 | return o.toString().replace("\n", "\n ");
162 | }
163 |
164 | static {
165 | // Initialize and register the discriminator mappings.
166 | Map> mappings = new HashMap<>();
167 | mappings.put("CartViewed", CartViewed.class);
168 | JSON.registerDiscriminator(CartViewed.class, "@type", mappings);
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/ClientDetected.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.croct.client.export.model.WebClient;
25 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 | import com.fasterxml.jackson.annotation.JsonInclude;
27 | import com.fasterxml.jackson.annotation.JsonProperty;
28 | import com.fasterxml.jackson.annotation.JsonCreator;
29 | import com.fasterxml.jackson.annotation.JsonSubTypes;
30 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
31 | import com.fasterxml.jackson.annotation.JsonTypeName;
32 | import com.fasterxml.jackson.annotation.JsonValue;
33 | import java.util.Arrays;
34 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 | import com.croct.client.export.JSON;
36 |
37 |
38 | /**
39 | * An event recording that the user's client was detected.
40 | */
41 | @JsonPropertyOrder({
42 | ClientDetected.JSON_PROPERTY_CLIENT
43 | })
44 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
45 | @JsonIgnoreProperties(
46 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
47 | allowSetters = true // allows the @type to be set during deserialization
48 | )
49 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
50 |
51 | public class ClientDetected extends EventPayload {
52 | public static final String JSON_PROPERTY_CLIENT = "client";
53 | private WebClient client;
54 |
55 | public ClientDetected() {
56 | }
57 |
58 | public ClientDetected client(WebClient client) {
59 | this.client = client;
60 | return this;
61 | }
62 |
63 | /**
64 | * Get client
65 | * @return client
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_CLIENT)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public WebClient getClient() {
72 | return client;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_CLIENT)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setClient(WebClient client) {
79 | this.client = client;
80 | }
81 |
82 | /**
83 | * A container for additional, undeclared properties.
84 | * This is a holder for any undeclared properties as specified with
85 | * the 'additionalProperties' keyword in the OAS document.
86 | */
87 | private Map additionalProperties;
88 |
89 | /**
90 | * Set the additional (undeclared) property with the specified name and value.
91 | * If the property does not already exist, create it otherwise replace it.
92 | */
93 | @JsonAnySetter
94 | public ClientDetected putAdditionalProperty(String key, Object value) {
95 | if (this.additionalProperties == null) {
96 | this.additionalProperties = new HashMap<>();
97 | }
98 | this.additionalProperties.put(key, value);
99 | return this;
100 | }
101 |
102 | /**
103 | * Return the additional (undeclared) property.
104 | */
105 | @JsonAnyGetter
106 | public Map getAdditionalProperties() {
107 | return additionalProperties;
108 | }
109 |
110 | /**
111 | * Return the additional (undeclared) property with the specified name.
112 | */
113 | public Object getAdditionalProperty(String key) {
114 | if (this.additionalProperties == null) {
115 | return null;
116 | }
117 | return this.additionalProperties.get(key);
118 | }
119 |
120 | /**
121 | * Return true if this ClientDetected object is equal to o.
122 | */
123 | @Override
124 | public boolean equals(Object o) {
125 | if (this == o) {
126 | return true;
127 | }
128 | if (o == null || getClass() != o.getClass()) {
129 | return false;
130 | }
131 | ClientDetected clientDetected = (ClientDetected) o;
132 | return Objects.equals(this.client, clientDetected.client)&&
133 | Objects.equals(this.additionalProperties, clientDetected.additionalProperties) &&
134 | super.equals(o);
135 | }
136 |
137 | @Override
138 | public int hashCode() {
139 | return Objects.hash(client, super.hashCode(), additionalProperties);
140 | }
141 |
142 | @Override
143 | public String toString() {
144 | StringBuilder sb = new StringBuilder();
145 | sb.append("class ClientDetected {\n");
146 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
147 | sb.append(" client: ").append(toIndentedString(client)).append("\n");
148 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
149 | sb.append("}");
150 | return sb.toString();
151 | }
152 |
153 | /**
154 | * Convert the given object to string with each line indented by 4 spaces
155 | * (except the first line).
156 | */
157 | private String toIndentedString(Object o) {
158 | if (o == null) {
159 | return "null";
160 | }
161 | return o.toString().replace("\n", "\n ");
162 | }
163 |
164 | static {
165 | // Initialize and register the discriminator mappings.
166 | Map> mappings = new HashMap<>();
167 | mappings.put("ClientDetected", ClientDetected.class);
168 | JSON.registerDiscriminator(ClientDetected.class, "@type", mappings);
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/Device.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.croct.client.export.model.DeviceCategory;
20 | import com.croct.client.export.model.OperatingSystem;
21 | import com.fasterxml.jackson.annotation.JsonInclude;
22 | import com.fasterxml.jackson.annotation.JsonProperty;
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonTypeName;
25 | import com.fasterxml.jackson.annotation.JsonValue;
26 | import java.util.Arrays;
27 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28 | import com.croct.client.export.JSON;
29 |
30 |
31 | /**
32 | * The available information about a device.
33 | */
34 | @JsonPropertyOrder({
35 | Device.JSON_PROPERTY_NAME,
36 | Device.JSON_PROPERTY_VENDOR,
37 | Device.JSON_PROPERTY_CATEGORY,
38 | Device.JSON_PROPERTY_OPERATING_SYSTEM
39 | })
40 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
41 | public class Device {
42 | public static final String JSON_PROPERTY_NAME = "name";
43 | private String name;
44 |
45 | public static final String JSON_PROPERTY_VENDOR = "vendor";
46 | private String vendor;
47 |
48 | public static final String JSON_PROPERTY_CATEGORY = "category";
49 | private DeviceCategory category;
50 |
51 | public static final String JSON_PROPERTY_OPERATING_SYSTEM = "operatingSystem";
52 | private OperatingSystem operatingSystem;
53 |
54 | public Device() {
55 | }
56 |
57 | public Device name(String name) {
58 | this.name = name;
59 | return this;
60 | }
61 |
62 | /**
63 | * The name of the device, non-empty. For example, \"Mac\", \"iPhone\" or \"Nexus 10\".
64 | * @return name
65 | **/
66 | @javax.annotation.Nullable
67 | @JsonProperty(JSON_PROPERTY_NAME)
68 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
69 |
70 | public String getName() {
71 | return name;
72 | }
73 |
74 |
75 | @JsonProperty(JSON_PROPERTY_NAME)
76 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
77 | public void setName(String name) {
78 | this.name = name;
79 | }
80 |
81 |
82 | public Device vendor(String vendor) {
83 | this.vendor = vendor;
84 | return this;
85 | }
86 |
87 | /**
88 | * The vendor of the device, non-empty. For example, \"Apple\", \"Samsung\" or \"LG\".
89 | * @return vendor
90 | **/
91 | @javax.annotation.Nullable
92 | @JsonProperty(JSON_PROPERTY_VENDOR)
93 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
94 |
95 | public String getVendor() {
96 | return vendor;
97 | }
98 |
99 |
100 | @JsonProperty(JSON_PROPERTY_VENDOR)
101 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
102 | public void setVendor(String vendor) {
103 | this.vendor = vendor;
104 | }
105 |
106 |
107 | public Device category(DeviceCategory category) {
108 | this.category = category;
109 | return this;
110 | }
111 |
112 | /**
113 | * Get category
114 | * @return category
115 | **/
116 | @javax.annotation.Nonnull
117 | @JsonProperty(JSON_PROPERTY_CATEGORY)
118 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
119 |
120 | public DeviceCategory getCategory() {
121 | return category;
122 | }
123 |
124 |
125 | @JsonProperty(JSON_PROPERTY_CATEGORY)
126 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
127 | public void setCategory(DeviceCategory category) {
128 | this.category = category;
129 | }
130 |
131 |
132 | public Device operatingSystem(OperatingSystem operatingSystem) {
133 | this.operatingSystem = operatingSystem;
134 | return this;
135 | }
136 |
137 | /**
138 | * Get operatingSystem
139 | * @return operatingSystem
140 | **/
141 | @javax.annotation.Nonnull
142 | @JsonProperty(JSON_PROPERTY_OPERATING_SYSTEM)
143 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
144 |
145 | public OperatingSystem getOperatingSystem() {
146 | return operatingSystem;
147 | }
148 |
149 |
150 | @JsonProperty(JSON_PROPERTY_OPERATING_SYSTEM)
151 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
152 | public void setOperatingSystem(OperatingSystem operatingSystem) {
153 | this.operatingSystem = operatingSystem;
154 | }
155 |
156 |
157 | /**
158 | * Return true if this Device object is equal to o.
159 | */
160 | @Override
161 | public boolean equals(Object o) {
162 | if (this == o) {
163 | return true;
164 | }
165 | if (o == null || getClass() != o.getClass()) {
166 | return false;
167 | }
168 | Device device = (Device) o;
169 | return Objects.equals(this.name, device.name) &&
170 | Objects.equals(this.vendor, device.vendor) &&
171 | Objects.equals(this.category, device.category) &&
172 | Objects.equals(this.operatingSystem, device.operatingSystem);
173 | }
174 |
175 | @Override
176 | public int hashCode() {
177 | return Objects.hash(name, vendor, category, operatingSystem);
178 | }
179 |
180 | @Override
181 | public String toString() {
182 | StringBuilder sb = new StringBuilder();
183 | sb.append("class Device {\n");
184 | sb.append(" name: ").append(toIndentedString(name)).append("\n");
185 | sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n");
186 | sb.append(" category: ").append(toIndentedString(category)).append("\n");
187 | sb.append(" operatingSystem: ").append(toIndentedString(operatingSystem)).append("\n");
188 | sb.append("}");
189 | return sb.toString();
190 | }
191 |
192 | /**
193 | * Convert the given object to string with each line indented by 4 spaces
194 | * (except the first line).
195 | */
196 | private String toIndentedString(Object o) {
197 | if (o == null) {
198 | return "null";
199 | }
200 | return o.toString().replace("\n", "\n ");
201 | }
202 |
203 | }
204 |
205 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/DeviceCategory.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
20 | import com.croct.client.export.JSON;
21 |
22 |
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 |
26 | /**
27 | * The category of the device.
28 | */
29 | public enum DeviceCategory {
30 |
31 | DESKTOP("DESKTOP"),
32 |
33 | TABLET("TABLET"),
34 |
35 | MOBILE("MOBILE"),
36 |
37 | BOT("BOT"),
38 |
39 | OTHER("OTHER"),
40 |
41 | UNKNOWN("UNKNOWN");
42 |
43 | private String value;
44 |
45 | DeviceCategory(String value) {
46 | this.value = value;
47 | }
48 |
49 | @JsonValue
50 | public String getValue() {
51 | return value;
52 | }
53 |
54 | @Override
55 | public String toString() {
56 | return String.valueOf(value);
57 | }
58 |
59 | @JsonCreator
60 | public static DeviceCategory fromValue(String value) {
61 | for (DeviceCategory b : DeviceCategory.values()) {
62 | if (b.value.equals(value)) {
63 | return b;
64 | }
65 | }
66 | throw new IllegalArgumentException("Unexpected value '" + value + "'");
67 | }
68 | }
69 |
70 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/EventContext.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 | import com.fasterxml.jackson.annotation.JsonInclude;
21 | import com.fasterxml.jackson.annotation.JsonProperty;
22 | import com.fasterxml.jackson.annotation.JsonCreator;
23 | import com.fasterxml.jackson.annotation.JsonSubTypes;
24 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
25 | import com.fasterxml.jackson.annotation.JsonTypeName;
26 | import com.fasterxml.jackson.annotation.JsonValue;
27 | import java.util.Arrays;
28 | import java.util.HashMap;
29 | import java.util.Map;
30 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
31 | import com.croct.client.export.JSON;
32 |
33 |
34 | /**
35 | * The context of the client when the event was tracked.
36 | */
37 | @JsonPropertyOrder({
38 | EventContext.JSON_PROPERTY_TYPE,
39 | EventContext.JSON_PROPERTY_METADATA
40 | })
41 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
42 | @JsonIgnoreProperties(
43 | value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization
44 | allowSetters = true // allows the type to be set during deserialization
45 | )
46 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true)
47 | @JsonSubTypes({
48 | @JsonSubTypes.Type(value = WebContext.class, name = "web"),
49 | })
50 |
51 | public class EventContext {
52 | public static final String JSON_PROPERTY_TYPE = "type";
53 | private String type = "web";
54 |
55 | public static final String JSON_PROPERTY_METADATA = "metadata";
56 | private Map metadata = new HashMap<>();
57 |
58 | public EventContext() {
59 | }
60 |
61 | public EventContext type(String type) {
62 | this.type = type;
63 | return this;
64 | }
65 |
66 | /**
67 | * Get type
68 | * @return type
69 | **/
70 | @javax.annotation.Nonnull
71 | @JsonProperty(JSON_PROPERTY_TYPE)
72 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
73 |
74 | public String getType() {
75 | return type;
76 | }
77 |
78 |
79 | @JsonProperty(JSON_PROPERTY_TYPE)
80 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
81 | public void setType(String type) {
82 | this.type = type;
83 | }
84 |
85 |
86 | public EventContext metadata(Map metadata) {
87 | this.metadata = metadata;
88 | return this;
89 | }
90 |
91 | public EventContext putMetadataItem(String key, String metadataItem) {
92 | if (this.metadata == null) {
93 | this.metadata = new HashMap<>();
94 | }
95 | this.metadata.put(key, metadataItem);
96 | return this;
97 | }
98 |
99 | /**
100 | * Get metadata
101 | * @return metadata
102 | **/
103 | @javax.annotation.Nullable
104 | @JsonProperty(JSON_PROPERTY_METADATA)
105 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106 |
107 | public Map getMetadata() {
108 | return metadata;
109 | }
110 |
111 |
112 | @JsonProperty(JSON_PROPERTY_METADATA)
113 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114 | public void setMetadata(Map metadata) {
115 | this.metadata = metadata;
116 | }
117 |
118 |
119 | /**
120 | * Return true if this EventContext object is equal to o.
121 | */
122 | @Override
123 | public boolean equals(Object o) {
124 | if (this == o) {
125 | return true;
126 | }
127 | if (o == null || getClass() != o.getClass()) {
128 | return false;
129 | }
130 | EventContext eventContext = (EventContext) o;
131 | return Objects.equals(this.type, eventContext.type) &&
132 | Objects.equals(this.metadata, eventContext.metadata);
133 | }
134 |
135 | @Override
136 | public int hashCode() {
137 | return Objects.hash(type, metadata);
138 | }
139 |
140 | @Override
141 | public String toString() {
142 | StringBuilder sb = new StringBuilder();
143 | sb.append("class EventContext {\n");
144 | sb.append(" type: ").append(toIndentedString(type)).append("\n");
145 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
146 | sb.append("}");
147 | return sb.toString();
148 | }
149 |
150 | /**
151 | * Convert the given object to string with each line indented by 4 spaces
152 | * (except the first line).
153 | */
154 | private String toIndentedString(Object o) {
155 | if (o == null) {
156 | return "null";
157 | }
158 | return o.toString().replace("\n", "\n ");
159 | }
160 |
161 | static {
162 | // Initialize and register the discriminator mappings.
163 | Map> mappings = new HashMap<>();
164 | mappings.put("web", WebContext.class);
165 | mappings.put("EventContext", EventContext.class);
166 | JSON.registerDiscriminator(EventContext.class, "type", mappings);
167 | }
168 | }
169 |
170 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/EventPayload.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
20 | import com.fasterxml.jackson.annotation.JsonInclude;
21 | import com.fasterxml.jackson.annotation.JsonProperty;
22 | import com.fasterxml.jackson.annotation.JsonCreator;
23 | import com.fasterxml.jackson.annotation.JsonSubTypes;
24 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
25 | import com.fasterxml.jackson.annotation.JsonTypeName;
26 | import com.fasterxml.jackson.annotation.JsonValue;
27 | import java.util.Arrays;
28 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29 | import com.croct.client.export.JSON;
30 |
31 |
32 | /**
33 | * The event details, specific to the type of event.
34 | */
35 | @JsonPropertyOrder({
36 | EventPayload.JSON_PROPERTY_AT_TYPE
37 | })
38 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
39 | @JsonIgnoreProperties(
40 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
41 | allowSetters = true // allows the @type to be set during deserialization
42 | )
43 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
44 | @JsonSubTypes({
45 | @JsonSubTypes.Type(value = CartModified.class, name = "cartModified"),
46 | @JsonSubTypes.Type(value = CartViewed.class, name = "cartViewed"),
47 | @JsonSubTypes.Type(value = CheckoutStarted.class, name = "checkoutStarted"),
48 | @JsonSubTypes.Type(value = ClientDetected.class, name = "clientDetected"),
49 | @JsonSubTypes.Type(value = EventOccurred.class, name = "eventOccurred"),
50 | @JsonSubTypes.Type(value = GoalCompleted.class, name = "goalCompleted"),
51 | @JsonSubTypes.Type(value = LocationDetected.class, name = "locationDetected"),
52 | @JsonSubTypes.Type(value = NothingChanged.class, name = "nothingChanged"),
53 | @JsonSubTypes.Type(value = OrderPlaced.class, name = "orderPlaced"),
54 | @JsonSubTypes.Type(value = PageLoaded.class, name = "pageLoaded"),
55 | @JsonSubTypes.Type(value = PageOpened.class, name = "pageOpened"),
56 | @JsonSubTypes.Type(value = ProductViewed.class, name = "productViewed"),
57 | @JsonSubTypes.Type(value = SlotPersonalized.class, name = "slotPersonalized"),
58 | @JsonSubTypes.Type(value = TabOpened.class, name = "tabOpened"),
59 | @JsonSubTypes.Type(value = TabUrlChanged.class, name = "tabUrlChanged"),
60 | @JsonSubTypes.Type(value = TabVisibilityChanged.class, name = "tabVisibilityChanged"),
61 | @JsonSubTypes.Type(value = TestGroupAssigned.class, name = "testGroupAssigned"),
62 | @JsonSubTypes.Type(value = UserSignedIn.class, name = "userSignedIn"),
63 | @JsonSubTypes.Type(value = UserSignedOut.class, name = "userSignedOut"),
64 | @JsonSubTypes.Type(value = UserSignedUp.class, name = "userSignedUp"),
65 | })
66 |
67 | public class EventPayload {
68 | public static final String JSON_PROPERTY_AT_TYPE = "@type";
69 | private String atType;
70 |
71 | public EventPayload() {
72 | }
73 |
74 | public EventPayload atType(String atType) {
75 | this.atType = atType;
76 | return this;
77 | }
78 |
79 | /**
80 | * Get atType
81 | * @return atType
82 | **/
83 | @javax.annotation.Nonnull
84 | @JsonProperty(JSON_PROPERTY_AT_TYPE)
85 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
86 |
87 | public String getAtType() {
88 | return atType;
89 | }
90 |
91 |
92 | @JsonProperty(JSON_PROPERTY_AT_TYPE)
93 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
94 | public void setAtType(String atType) {
95 | this.atType = atType;
96 | }
97 |
98 |
99 | /**
100 | * Return true if this EventPayload object is equal to o.
101 | */
102 | @Override
103 | public boolean equals(Object o) {
104 | if (this == o) {
105 | return true;
106 | }
107 | if (o == null || getClass() != o.getClass()) {
108 | return false;
109 | }
110 | EventPayload eventPayload = (EventPayload) o;
111 | return Objects.equals(this.atType, eventPayload.atType);
112 | }
113 |
114 | @Override
115 | public int hashCode() {
116 | return Objects.hash(atType);
117 | }
118 |
119 | @Override
120 | public String toString() {
121 | StringBuilder sb = new StringBuilder();
122 | sb.append("class EventPayload {\n");
123 | sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
124 | sb.append("}");
125 | return sb.toString();
126 | }
127 |
128 | /**
129 | * Convert the given object to string with each line indented by 4 spaces
130 | * (except the first line).
131 | */
132 | private String toIndentedString(Object o) {
133 | if (o == null) {
134 | return "null";
135 | }
136 | return o.toString().replace("\n", "\n ");
137 | }
138 |
139 | static {
140 | // Initialize and register the discriminator mappings.
141 | Map> mappings = new HashMap<>();
142 | mappings.put("cartModified", CartModified.class);
143 | mappings.put("cartViewed", CartViewed.class);
144 | mappings.put("checkoutStarted", CheckoutStarted.class);
145 | mappings.put("clientDetected", ClientDetected.class);
146 | mappings.put("eventOccurred", EventOccurred.class);
147 | mappings.put("goalCompleted", GoalCompleted.class);
148 | mappings.put("locationDetected", LocationDetected.class);
149 | mappings.put("nothingChanged", NothingChanged.class);
150 | mappings.put("orderPlaced", OrderPlaced.class);
151 | mappings.put("pageLoaded", PageLoaded.class);
152 | mappings.put("pageOpened", PageOpened.class);
153 | mappings.put("productViewed", ProductViewed.class);
154 | mappings.put("slotPersonalized", SlotPersonalized.class);
155 | mappings.put("tabOpened", TabOpened.class);
156 | mappings.put("tabUrlChanged", TabUrlChanged.class);
157 | mappings.put("tabVisibilityChanged", TabVisibilityChanged.class);
158 | mappings.put("testGroupAssigned", TestGroupAssigned.class);
159 | mappings.put("userSignedIn", UserSignedIn.class);
160 | mappings.put("userSignedOut", UserSignedOut.class);
161 | mappings.put("userSignedUp", UserSignedUp.class);
162 | mappings.put("EventPayload", EventPayload.class);
163 | JSON.registerDiscriminator(EventPayload.class, "@type", mappings);
164 | }
165 | }
166 |
167 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/EventResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.croct.client.export.model.Event;
20 | import com.croct.client.export.model.EventResponseMetadata;
21 | import com.fasterxml.jackson.annotation.JsonInclude;
22 | import com.fasterxml.jackson.annotation.JsonProperty;
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonTypeName;
25 | import com.fasterxml.jackson.annotation.JsonValue;
26 | import java.util.ArrayList;
27 | import java.util.Arrays;
28 | import java.util.List;
29 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
30 | import com.croct.client.export.JSON;
31 |
32 |
33 | /**
34 | * EventResponse
35 | */
36 | @JsonPropertyOrder({
37 | EventResponse.JSON_PROPERTY_ITEMS,
38 | EventResponse.JSON_PROPERTY_METADATA,
39 | EventResponse.JSON_PROPERTY_NEXT_CURSOR
40 | })
41 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
42 | public class EventResponse {
43 | public static final String JSON_PROPERTY_ITEMS = "items";
44 | private List items = new ArrayList<>();
45 |
46 | public static final String JSON_PROPERTY_METADATA = "metadata";
47 | private EventResponseMetadata metadata;
48 |
49 | public static final String JSON_PROPERTY_NEXT_CURSOR = "nextCursor";
50 | private String nextCursor;
51 |
52 | public EventResponse() {
53 | }
54 |
55 | public EventResponse items(List items) {
56 | this.items = items;
57 | return this;
58 | }
59 |
60 | public EventResponse addItemsItem(Event itemsItem) {
61 | if (this.items == null) {
62 | this.items = new ArrayList<>();
63 | }
64 | this.items.add(itemsItem);
65 | return this;
66 | }
67 |
68 | /**
69 | * Get items
70 | * @return items
71 | **/
72 | @javax.annotation.Nonnull
73 | @JsonProperty(JSON_PROPERTY_ITEMS)
74 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
75 |
76 | public List getItems() {
77 | return items;
78 | }
79 |
80 |
81 | @JsonProperty(JSON_PROPERTY_ITEMS)
82 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
83 | public void setItems(List items) {
84 | this.items = items;
85 | }
86 |
87 |
88 | public EventResponse metadata(EventResponseMetadata metadata) {
89 | this.metadata = metadata;
90 | return this;
91 | }
92 |
93 | /**
94 | * Get metadata
95 | * @return metadata
96 | **/
97 | @javax.annotation.Nonnull
98 | @JsonProperty(JSON_PROPERTY_METADATA)
99 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
100 |
101 | public EventResponseMetadata getMetadata() {
102 | return metadata;
103 | }
104 |
105 |
106 | @JsonProperty(JSON_PROPERTY_METADATA)
107 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
108 | public void setMetadata(EventResponseMetadata metadata) {
109 | this.metadata = metadata;
110 | }
111 |
112 |
113 | public EventResponse nextCursor(String nextCursor) {
114 | this.nextCursor = nextCursor;
115 | return this;
116 | }
117 |
118 | /**
119 | * Get nextCursor
120 | * @return nextCursor
121 | **/
122 | @javax.annotation.Nonnull
123 | @JsonProperty(JSON_PROPERTY_NEXT_CURSOR)
124 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
125 |
126 | public String getNextCursor() {
127 | return nextCursor;
128 | }
129 |
130 |
131 | @JsonProperty(JSON_PROPERTY_NEXT_CURSOR)
132 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
133 | public void setNextCursor(String nextCursor) {
134 | this.nextCursor = nextCursor;
135 | }
136 |
137 |
138 | /**
139 | * Return true if this EventResponse object is equal to o.
140 | */
141 | @Override
142 | public boolean equals(Object o) {
143 | if (this == o) {
144 | return true;
145 | }
146 | if (o == null || getClass() != o.getClass()) {
147 | return false;
148 | }
149 | EventResponse eventResponse = (EventResponse) o;
150 | return Objects.equals(this.items, eventResponse.items) &&
151 | Objects.equals(this.metadata, eventResponse.metadata) &&
152 | Objects.equals(this.nextCursor, eventResponse.nextCursor);
153 | }
154 |
155 | @Override
156 | public int hashCode() {
157 | return Objects.hash(items, metadata, nextCursor);
158 | }
159 |
160 | @Override
161 | public String toString() {
162 | StringBuilder sb = new StringBuilder();
163 | sb.append("class EventResponse {\n");
164 | sb.append(" items: ").append(toIndentedString(items)).append("\n");
165 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
166 | sb.append(" nextCursor: ").append(toIndentedString(nextCursor)).append("\n");
167 | sb.append("}");
168 | return sb.toString();
169 | }
170 |
171 | /**
172 | * Convert the given object to string with each line indented by 4 spaces
173 | * (except the first line).
174 | */
175 | private String toIndentedString(Object o) {
176 | if (o == null) {
177 | return "null";
178 | }
179 | return o.toString().replace("\n", "\n ");
180 | }
181 |
182 | }
183 |
184 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/EventType.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
20 | import com.croct.client.export.JSON;
21 |
22 |
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 |
26 | /**
27 | * Gets or Sets EventType
28 | */
29 | public enum EventType {
30 |
31 | USER_SIGNED_UP("userSignedUp"),
32 |
33 | USER_SIGNED_IN("userSignedIn"),
34 |
35 | USER_SIGNED_OUT("userSignedOut"),
36 |
37 | TAB_OPENED("tabOpened"),
38 |
39 | TAB_URL_CHANGED("tabUrlChanged"),
40 |
41 | TAB_VISIBILITY_CHANGED("tabVisibilityChanged"),
42 |
43 | LOCATION_DETECTED("locationDetected"),
44 |
45 | CLIENT_DETECTED("clientDetected"),
46 |
47 | PAGE_OPENED("pageOpened"),
48 |
49 | PAGE_LOADED("pageLoaded"),
50 |
51 | PRODUCT_VIEWED("productViewed"),
52 |
53 | CART_VIEWED("cartViewed"),
54 |
55 | CART_MODIFIED("cartModified"),
56 |
57 | CHECKOUT_STARTED("checkoutStarted"),
58 |
59 | ORDER_PLACED("orderPlaced"),
60 |
61 | TEST_GROUP_ASSIGNED("testGroupAssigned"),
62 |
63 | NOTHING_CHANGED("nothingChanged"),
64 |
65 | GOAL_COMPLETED("goalCompleted"),
66 |
67 | EVENT_OCCURRED("eventOccurred"),
68 |
69 | SLOT_PERSONALIZED("slotPersonalized");
70 |
71 | private String value;
72 |
73 | EventType(String value) {
74 | this.value = value;
75 | }
76 |
77 | @JsonValue
78 | public String getValue() {
79 | return value;
80 | }
81 |
82 | @Override
83 | public String toString() {
84 | return String.valueOf(value);
85 | }
86 |
87 | @JsonCreator
88 | public static EventType fromValue(String value) {
89 | for (EventType b : EventType.values()) {
90 | if (b.value.equals(value)) {
91 | return b;
92 | }
93 | }
94 | throw new IllegalArgumentException("Unexpected value '" + value + "'");
95 | }
96 | }
97 |
98 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/GeoPoint.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonInclude;
20 | import com.fasterxml.jackson.annotation.JsonProperty;
21 | import com.fasterxml.jackson.annotation.JsonCreator;
22 | import com.fasterxml.jackson.annotation.JsonTypeName;
23 | import com.fasterxml.jackson.annotation.JsonValue;
24 | import java.util.Arrays;
25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 | import com.croct.client.export.JSON;
27 |
28 |
29 | /**
30 | * A geographic location represented by a latitude and longitude coordinates pair.
31 | */
32 | @JsonPropertyOrder({
33 | GeoPoint.JSON_PROPERTY_LATITUDE,
34 | GeoPoint.JSON_PROPERTY_LONGITUDE
35 | })
36 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
37 | public class GeoPoint {
38 | public static final String JSON_PROPERTY_LATITUDE = "latitude";
39 | private Double latitude;
40 |
41 | public static final String JSON_PROPERTY_LONGITUDE = "longitude";
42 | private Double longitude;
43 |
44 | public GeoPoint() {
45 | }
46 |
47 | public GeoPoint latitude(Double latitude) {
48 | this.latitude = latitude;
49 | return this;
50 | }
51 |
52 | /**
53 | * The latitude of the geo-point, may be either negative or positive.
54 | * @return latitude
55 | **/
56 | @javax.annotation.Nonnull
57 | @JsonProperty(JSON_PROPERTY_LATITUDE)
58 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
59 |
60 | public Double getLatitude() {
61 | return latitude;
62 | }
63 |
64 |
65 | @JsonProperty(JSON_PROPERTY_LATITUDE)
66 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
67 | public void setLatitude(Double latitude) {
68 | this.latitude = latitude;
69 | }
70 |
71 |
72 | public GeoPoint longitude(Double longitude) {
73 | this.longitude = longitude;
74 | return this;
75 | }
76 |
77 | /**
78 | * The longitude of the geo-point, may be either negative or positive.
79 | * @return longitude
80 | **/
81 | @javax.annotation.Nonnull
82 | @JsonProperty(JSON_PROPERTY_LONGITUDE)
83 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
84 |
85 | public Double getLongitude() {
86 | return longitude;
87 | }
88 |
89 |
90 | @JsonProperty(JSON_PROPERTY_LONGITUDE)
91 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
92 | public void setLongitude(Double longitude) {
93 | this.longitude = longitude;
94 | }
95 |
96 |
97 | /**
98 | * Return true if this GeoPoint object is equal to o.
99 | */
100 | @Override
101 | public boolean equals(Object o) {
102 | if (this == o) {
103 | return true;
104 | }
105 | if (o == null || getClass() != o.getClass()) {
106 | return false;
107 | }
108 | GeoPoint geoPoint = (GeoPoint) o;
109 | return Objects.equals(this.latitude, geoPoint.latitude) &&
110 | Objects.equals(this.longitude, geoPoint.longitude);
111 | }
112 |
113 | @Override
114 | public int hashCode() {
115 | return Objects.hash(latitude, longitude);
116 | }
117 |
118 | @Override
119 | public String toString() {
120 | StringBuilder sb = new StringBuilder();
121 | sb.append("class GeoPoint {\n");
122 | sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n");
123 | sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n");
124 | sb.append("}");
125 | return sb.toString();
126 | }
127 |
128 | /**
129 | * Convert the given object to string with each line indented by 4 spaces
130 | * (except the first line).
131 | */
132 | private String toIndentedString(Object o) {
133 | if (o == null) {
134 | return "null";
135 | }
136 | return o.toString().replace("\n", "\n ");
137 | }
138 |
139 | }
140 |
141 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/LocationContinent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
20 | import com.croct.client.export.JSON;
21 |
22 |
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 |
26 | /**
27 | * The continent of the location.
28 | */
29 | public enum LocationContinent {
30 |
31 | AF("AF"),
32 |
33 | AN("AN"),
34 |
35 | AS("AS"),
36 |
37 | EU("EU"),
38 |
39 | NA("NA"),
40 |
41 | OC("OC"),
42 |
43 | SA("SA");
44 |
45 | private String value;
46 |
47 | LocationContinent(String value) {
48 | this.value = value;
49 | }
50 |
51 | @JsonValue
52 | public String getValue() {
53 | return value;
54 | }
55 |
56 | @Override
57 | public String toString() {
58 | return String.valueOf(value);
59 | }
60 |
61 | @JsonCreator
62 | public static LocationContinent fromValue(String value) {
63 | for (LocationContinent b : LocationContinent.values()) {
64 | if (b.value.equals(value)) {
65 | return b;
66 | }
67 | }
68 | return null;
69 | }
70 | }
71 |
72 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/LocationDetected.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.croct.client.export.model.Location;
25 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 | import com.fasterxml.jackson.annotation.JsonInclude;
27 | import com.fasterxml.jackson.annotation.JsonProperty;
28 | import com.fasterxml.jackson.annotation.JsonCreator;
29 | import com.fasterxml.jackson.annotation.JsonSubTypes;
30 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
31 | import com.fasterxml.jackson.annotation.JsonTypeName;
32 | import com.fasterxml.jackson.annotation.JsonValue;
33 | import java.util.Arrays;
34 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 | import com.croct.client.export.JSON;
36 |
37 |
38 | /**
39 | * An event recording that the location of a user was detected.
40 | */
41 | @JsonPropertyOrder({
42 | LocationDetected.JSON_PROPERTY_LOCATION
43 | })
44 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
45 | @JsonIgnoreProperties(
46 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
47 | allowSetters = true // allows the @type to be set during deserialization
48 | )
49 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
50 |
51 | public class LocationDetected extends EventPayload {
52 | public static final String JSON_PROPERTY_LOCATION = "location";
53 | private Location location;
54 |
55 | public LocationDetected() {
56 | }
57 |
58 | public LocationDetected location(Location location) {
59 | this.location = location;
60 | return this;
61 | }
62 |
63 | /**
64 | * Get location
65 | * @return location
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_LOCATION)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public Location getLocation() {
72 | return location;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_LOCATION)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setLocation(Location location) {
79 | this.location = location;
80 | }
81 |
82 | /**
83 | * A container for additional, undeclared properties.
84 | * This is a holder for any undeclared properties as specified with
85 | * the 'additionalProperties' keyword in the OAS document.
86 | */
87 | private Map additionalProperties;
88 |
89 | /**
90 | * Set the additional (undeclared) property with the specified name and value.
91 | * If the property does not already exist, create it otherwise replace it.
92 | */
93 | @JsonAnySetter
94 | public LocationDetected putAdditionalProperty(String key, Object value) {
95 | if (this.additionalProperties == null) {
96 | this.additionalProperties = new HashMap<>();
97 | }
98 | this.additionalProperties.put(key, value);
99 | return this;
100 | }
101 |
102 | /**
103 | * Return the additional (undeclared) property.
104 | */
105 | @JsonAnyGetter
106 | public Map getAdditionalProperties() {
107 | return additionalProperties;
108 | }
109 |
110 | /**
111 | * Return the additional (undeclared) property with the specified name.
112 | */
113 | public Object getAdditionalProperty(String key) {
114 | if (this.additionalProperties == null) {
115 | return null;
116 | }
117 | return this.additionalProperties.get(key);
118 | }
119 |
120 | /**
121 | * Return true if this LocationDetected object is equal to o.
122 | */
123 | @Override
124 | public boolean equals(Object o) {
125 | if (this == o) {
126 | return true;
127 | }
128 | if (o == null || getClass() != o.getClass()) {
129 | return false;
130 | }
131 | LocationDetected locationDetected = (LocationDetected) o;
132 | return Objects.equals(this.location, locationDetected.location)&&
133 | Objects.equals(this.additionalProperties, locationDetected.additionalProperties) &&
134 | super.equals(o);
135 | }
136 |
137 | @Override
138 | public int hashCode() {
139 | return Objects.hash(location, super.hashCode(), additionalProperties);
140 | }
141 |
142 | @Override
143 | public String toString() {
144 | StringBuilder sb = new StringBuilder();
145 | sb.append("class LocationDetected {\n");
146 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
147 | sb.append(" location: ").append(toIndentedString(location)).append("\n");
148 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
149 | sb.append("}");
150 | return sb.toString();
151 | }
152 |
153 | /**
154 | * Convert the given object to string with each line indented by 4 spaces
155 | * (except the first line).
156 | */
157 | private String toIndentedString(Object o) {
158 | if (o == null) {
159 | return "null";
160 | }
161 | return o.toString().replace("\n", "\n ");
162 | }
163 |
164 | static {
165 | // Initialize and register the discriminator mappings.
166 | Map> mappings = new HashMap<>();
167 | mappings.put("LocationDetected", LocationDetected.class);
168 | JSON.registerDiscriminator(LocationDetected.class, "@type", mappings);
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/LocationSource.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
20 | import com.croct.client.export.JSON;
21 |
22 |
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 |
26 | /**
27 | * The source of information used to determine the location.
28 | */
29 | public enum LocationSource {
30 |
31 | UNKNOWN("UNKNOWN"),
32 |
33 | IP("IP"),
34 |
35 | INPUT("INPUT"),
36 |
37 | BROWSER("BROWSER"),
38 |
39 | GPS("GPS");
40 |
41 | private String value;
42 |
43 | LocationSource(String value) {
44 | this.value = value;
45 | }
46 |
47 | @JsonValue
48 | public String getValue() {
49 | return value;
50 | }
51 |
52 | @Override
53 | public String toString() {
54 | return String.valueOf(value);
55 | }
56 |
57 | @JsonCreator
58 | public static LocationSource fromValue(String value) {
59 | for (LocationSource b : LocationSource.values()) {
60 | if (b.value.equals(value)) {
61 | return b;
62 | }
63 | }
64 | return null;
65 | }
66 | }
67 |
68 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/NothingChanged.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 | import com.fasterxml.jackson.annotation.JsonInclude;
26 | import com.fasterxml.jackson.annotation.JsonProperty;
27 | import com.fasterxml.jackson.annotation.JsonCreator;
28 | import com.fasterxml.jackson.annotation.JsonSubTypes;
29 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 | import com.fasterxml.jackson.annotation.JsonTypeName;
31 | import com.fasterxml.jackson.annotation.JsonValue;
32 | import java.util.Arrays;
33 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34 | import com.croct.client.export.JSON;
35 |
36 |
37 | /**
38 | * An event recording a period of inactivity.
39 | */
40 | @JsonPropertyOrder({
41 | NothingChanged.JSON_PROPERTY_SINCE_TIME
42 | })
43 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
44 | @JsonIgnoreProperties(
45 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
46 | allowSetters = true // allows the @type to be set during deserialization
47 | )
48 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
49 |
50 | public class NothingChanged extends EventPayload {
51 | public static final String JSON_PROPERTY_SINCE_TIME = "sinceTime";
52 | private Long sinceTime;
53 |
54 | public NothingChanged() {
55 | }
56 |
57 | public NothingChanged sinceTime(Long sinceTime) {
58 | this.sinceTime = sinceTime;
59 | return this;
60 | }
61 |
62 | /**
63 | * The timestamp when an activity was last observed, in milliseconds since epoch.
64 | * @return sinceTime
65 | **/
66 | @javax.annotation.Nonnull
67 | @JsonProperty(JSON_PROPERTY_SINCE_TIME)
68 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
69 |
70 | public Long getSinceTime() {
71 | return sinceTime;
72 | }
73 |
74 |
75 | @JsonProperty(JSON_PROPERTY_SINCE_TIME)
76 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
77 | public void setSinceTime(Long sinceTime) {
78 | this.sinceTime = sinceTime;
79 | }
80 |
81 | /**
82 | * A container for additional, undeclared properties.
83 | * This is a holder for any undeclared properties as specified with
84 | * the 'additionalProperties' keyword in the OAS document.
85 | */
86 | private Map additionalProperties;
87 |
88 | /**
89 | * Set the additional (undeclared) property with the specified name and value.
90 | * If the property does not already exist, create it otherwise replace it.
91 | */
92 | @JsonAnySetter
93 | public NothingChanged putAdditionalProperty(String key, Object value) {
94 | if (this.additionalProperties == null) {
95 | this.additionalProperties = new HashMap<>();
96 | }
97 | this.additionalProperties.put(key, value);
98 | return this;
99 | }
100 |
101 | /**
102 | * Return the additional (undeclared) property.
103 | */
104 | @JsonAnyGetter
105 | public Map getAdditionalProperties() {
106 | return additionalProperties;
107 | }
108 |
109 | /**
110 | * Return the additional (undeclared) property with the specified name.
111 | */
112 | public Object getAdditionalProperty(String key) {
113 | if (this.additionalProperties == null) {
114 | return null;
115 | }
116 | return this.additionalProperties.get(key);
117 | }
118 |
119 | /**
120 | * Return true if this NothingChanged object is equal to o.
121 | */
122 | @Override
123 | public boolean equals(Object o) {
124 | if (this == o) {
125 | return true;
126 | }
127 | if (o == null || getClass() != o.getClass()) {
128 | return false;
129 | }
130 | NothingChanged nothingChanged = (NothingChanged) o;
131 | return Objects.equals(this.sinceTime, nothingChanged.sinceTime)&&
132 | Objects.equals(this.additionalProperties, nothingChanged.additionalProperties) &&
133 | super.equals(o);
134 | }
135 |
136 | @Override
137 | public int hashCode() {
138 | return Objects.hash(sinceTime, super.hashCode(), additionalProperties);
139 | }
140 |
141 | @Override
142 | public String toString() {
143 | StringBuilder sb = new StringBuilder();
144 | sb.append("class NothingChanged {\n");
145 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
146 | sb.append(" sinceTime: ").append(toIndentedString(sinceTime)).append("\n");
147 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
148 | sb.append("}");
149 | return sb.toString();
150 | }
151 |
152 | /**
153 | * Convert the given object to string with each line indented by 4 spaces
154 | * (except the first line).
155 | */
156 | private String toIndentedString(Object o) {
157 | if (o == null) {
158 | return "null";
159 | }
160 | return o.toString().replace("\n", "\n ");
161 | }
162 |
163 | static {
164 | // Initialize and register the discriminator mappings.
165 | Map> mappings = new HashMap<>();
166 | mappings.put("NothingChanged", NothingChanged.class);
167 | JSON.registerDiscriminator(NothingChanged.class, "@type", mappings);
168 | }
169 | }
170 |
171 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/OperatingSystem.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonInclude;
20 | import com.fasterxml.jackson.annotation.JsonProperty;
21 | import com.fasterxml.jackson.annotation.JsonCreator;
22 | import com.fasterxml.jackson.annotation.JsonTypeName;
23 | import com.fasterxml.jackson.annotation.JsonValue;
24 | import java.util.Arrays;
25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 | import com.croct.client.export.JSON;
27 |
28 |
29 | /**
30 | * The available information about an operating system.
31 | */
32 | @JsonPropertyOrder({
33 | OperatingSystem.JSON_PROPERTY_NAME,
34 | OperatingSystem.JSON_PROPERTY_VERSION
35 | })
36 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
37 | public class OperatingSystem {
38 | public static final String JSON_PROPERTY_NAME = "name";
39 | private String name;
40 |
41 | public static final String JSON_PROPERTY_VERSION = "version";
42 | private String version;
43 |
44 | public OperatingSystem() {
45 | }
46 |
47 | public OperatingSystem name(String name) {
48 | this.name = name;
49 | return this;
50 | }
51 |
52 | /**
53 | * The name of the operating system, non-empty. For example, \"macOS\", \"iOS\" or \"Android\".
54 | * @return name
55 | **/
56 | @javax.annotation.Nullable
57 | @JsonProperty(JSON_PROPERTY_NAME)
58 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
59 |
60 | public String getName() {
61 | return name;
62 | }
63 |
64 |
65 | @JsonProperty(JSON_PROPERTY_NAME)
66 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
67 | public void setName(String name) {
68 | this.name = name;
69 | }
70 |
71 |
72 | public OperatingSystem version(String version) {
73 | this.version = version;
74 | return this;
75 | }
76 |
77 | /**
78 | * The version of operating system, non-empty. For example, \"10.15.1\", \"NT 5.1\" or \"8.4\".
79 | * @return version
80 | **/
81 | @javax.annotation.Nullable
82 | @JsonProperty(JSON_PROPERTY_VERSION)
83 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
84 |
85 | public String getVersion() {
86 | return version;
87 | }
88 |
89 |
90 | @JsonProperty(JSON_PROPERTY_VERSION)
91 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
92 | public void setVersion(String version) {
93 | this.version = version;
94 | }
95 |
96 |
97 | /**
98 | * Return true if this OperatingSystem object is equal to o.
99 | */
100 | @Override
101 | public boolean equals(Object o) {
102 | if (this == o) {
103 | return true;
104 | }
105 | if (o == null || getClass() != o.getClass()) {
106 | return false;
107 | }
108 | OperatingSystem operatingSystem = (OperatingSystem) o;
109 | return Objects.equals(this.name, operatingSystem.name) &&
110 | Objects.equals(this.version, operatingSystem.version);
111 | }
112 |
113 | @Override
114 | public int hashCode() {
115 | return Objects.hash(name, version);
116 | }
117 |
118 | @Override
119 | public String toString() {
120 | StringBuilder sb = new StringBuilder();
121 | sb.append("class OperatingSystem {\n");
122 | sb.append(" name: ").append(toIndentedString(name)).append("\n");
123 | sb.append(" version: ").append(toIndentedString(version)).append("\n");
124 | sb.append("}");
125 | return sb.toString();
126 | }
127 |
128 | /**
129 | * Convert the given object to string with each line indented by 4 spaces
130 | * (except the first line).
131 | */
132 | private String toIndentedString(Object o) {
133 | if (o == null) {
134 | return "null";
135 | }
136 | return o.toString().replace("\n", "\n ");
137 | }
138 |
139 | }
140 |
141 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/OrderPlaced.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.croct.client.export.model.Order;
25 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 | import com.fasterxml.jackson.annotation.JsonInclude;
27 | import com.fasterxml.jackson.annotation.JsonProperty;
28 | import com.fasterxml.jackson.annotation.JsonCreator;
29 | import com.fasterxml.jackson.annotation.JsonSubTypes;
30 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
31 | import com.fasterxml.jackson.annotation.JsonTypeName;
32 | import com.fasterxml.jackson.annotation.JsonValue;
33 | import java.util.Arrays;
34 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 | import com.croct.client.export.JSON;
36 |
37 |
38 | /**
39 | * An event recording that an order was placed.
40 | */
41 | @JsonPropertyOrder({
42 | OrderPlaced.JSON_PROPERTY_ORDER
43 | })
44 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
45 | @JsonIgnoreProperties(
46 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
47 | allowSetters = true // allows the @type to be set during deserialization
48 | )
49 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
50 |
51 | public class OrderPlaced extends EventPayload {
52 | public static final String JSON_PROPERTY_ORDER = "order";
53 | private Order order;
54 |
55 | public OrderPlaced() {
56 | }
57 |
58 | public OrderPlaced order(Order order) {
59 | this.order = order;
60 | return this;
61 | }
62 |
63 | /**
64 | * Get order
65 | * @return order
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_ORDER)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public Order getOrder() {
72 | return order;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_ORDER)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setOrder(Order order) {
79 | this.order = order;
80 | }
81 |
82 | /**
83 | * A container for additional, undeclared properties.
84 | * This is a holder for any undeclared properties as specified with
85 | * the 'additionalProperties' keyword in the OAS document.
86 | */
87 | private Map additionalProperties;
88 |
89 | /**
90 | * Set the additional (undeclared) property with the specified name and value.
91 | * If the property does not already exist, create it otherwise replace it.
92 | */
93 | @JsonAnySetter
94 | public OrderPlaced putAdditionalProperty(String key, Object value) {
95 | if (this.additionalProperties == null) {
96 | this.additionalProperties = new HashMap<>();
97 | }
98 | this.additionalProperties.put(key, value);
99 | return this;
100 | }
101 |
102 | /**
103 | * Return the additional (undeclared) property.
104 | */
105 | @JsonAnyGetter
106 | public Map getAdditionalProperties() {
107 | return additionalProperties;
108 | }
109 |
110 | /**
111 | * Return the additional (undeclared) property with the specified name.
112 | */
113 | public Object getAdditionalProperty(String key) {
114 | if (this.additionalProperties == null) {
115 | return null;
116 | }
117 | return this.additionalProperties.get(key);
118 | }
119 |
120 | /**
121 | * Return true if this OrderPlaced object is equal to o.
122 | */
123 | @Override
124 | public boolean equals(Object o) {
125 | if (this == o) {
126 | return true;
127 | }
128 | if (o == null || getClass() != o.getClass()) {
129 | return false;
130 | }
131 | OrderPlaced orderPlaced = (OrderPlaced) o;
132 | return Objects.equals(this.order, orderPlaced.order)&&
133 | Objects.equals(this.additionalProperties, orderPlaced.additionalProperties) &&
134 | super.equals(o);
135 | }
136 |
137 | @Override
138 | public int hashCode() {
139 | return Objects.hash(order, super.hashCode(), additionalProperties);
140 | }
141 |
142 | @Override
143 | public String toString() {
144 | StringBuilder sb = new StringBuilder();
145 | sb.append("class OrderPlaced {\n");
146 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
147 | sb.append(" order: ").append(toIndentedString(order)).append("\n");
148 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
149 | sb.append("}");
150 | return sb.toString();
151 | }
152 |
153 | /**
154 | * Convert the given object to string with each line indented by 4 spaces
155 | * (except the first line).
156 | */
157 | private String toIndentedString(Object o) {
158 | if (o == null) {
159 | return "null";
160 | }
161 | return o.toString().replace("\n", "\n ");
162 | }
163 |
164 | static {
165 | // Initialize and register the discriminator mappings.
166 | Map> mappings = new HashMap<>();
167 | mappings.put("OrderPlaced", OrderPlaced.class);
168 | JSON.registerDiscriminator(OrderPlaced.class, "@type", mappings);
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/OrderStatus.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
20 | import com.croct.client.export.JSON;
21 |
22 |
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 |
26 | /**
27 | * The current status of the order.
28 | */
29 | public enum OrderStatus {
30 |
31 | PLACED("PLACED"),
32 |
33 | PAID("PAID"),
34 |
35 | COMPLETED("COMPLETED");
36 |
37 | private String value;
38 |
39 | OrderStatus(String value) {
40 | this.value = value;
41 | }
42 |
43 | @JsonValue
44 | public String getValue() {
45 | return value;
46 | }
47 |
48 | @Override
49 | public String toString() {
50 | return String.valueOf(value);
51 | }
52 |
53 | @JsonCreator
54 | public static OrderStatus fromValue(String value) {
55 | for (OrderStatus b : OrderStatus.values()) {
56 | if (b.value.equals(value)) {
57 | return b;
58 | }
59 | }
60 | return null;
61 | }
62 | }
63 |
64 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/ProductViewed.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.croct.client.export.model.ProductDetails;
25 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
26 | import com.fasterxml.jackson.annotation.JsonInclude;
27 | import com.fasterxml.jackson.annotation.JsonProperty;
28 | import com.fasterxml.jackson.annotation.JsonCreator;
29 | import com.fasterxml.jackson.annotation.JsonSubTypes;
30 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
31 | import com.fasterxml.jackson.annotation.JsonTypeName;
32 | import com.fasterxml.jackson.annotation.JsonValue;
33 | import java.util.Arrays;
34 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 | import com.croct.client.export.JSON;
36 |
37 |
38 | /**
39 | * An event recording that a shopping cart was modified.
40 | */
41 | @JsonPropertyOrder({
42 | ProductViewed.JSON_PROPERTY_PRODUCT
43 | })
44 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
45 | @JsonIgnoreProperties(
46 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
47 | allowSetters = true // allows the @type to be set during deserialization
48 | )
49 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
50 |
51 | public class ProductViewed extends EventPayload {
52 | public static final String JSON_PROPERTY_PRODUCT = "product";
53 | private ProductDetails product;
54 |
55 | public ProductViewed() {
56 | }
57 |
58 | public ProductViewed product(ProductDetails product) {
59 | this.product = product;
60 | return this;
61 | }
62 |
63 | /**
64 | * Get product
65 | * @return product
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_PRODUCT)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public ProductDetails getProduct() {
72 | return product;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_PRODUCT)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setProduct(ProductDetails product) {
79 | this.product = product;
80 | }
81 |
82 | /**
83 | * A container for additional, undeclared properties.
84 | * This is a holder for any undeclared properties as specified with
85 | * the 'additionalProperties' keyword in the OAS document.
86 | */
87 | private Map additionalProperties;
88 |
89 | /**
90 | * Set the additional (undeclared) property with the specified name and value.
91 | * If the property does not already exist, create it otherwise replace it.
92 | */
93 | @JsonAnySetter
94 | public ProductViewed putAdditionalProperty(String key, Object value) {
95 | if (this.additionalProperties == null) {
96 | this.additionalProperties = new HashMap<>();
97 | }
98 | this.additionalProperties.put(key, value);
99 | return this;
100 | }
101 |
102 | /**
103 | * Return the additional (undeclared) property.
104 | */
105 | @JsonAnyGetter
106 | public Map getAdditionalProperties() {
107 | return additionalProperties;
108 | }
109 |
110 | /**
111 | * Return the additional (undeclared) property with the specified name.
112 | */
113 | public Object getAdditionalProperty(String key) {
114 | if (this.additionalProperties == null) {
115 | return null;
116 | }
117 | return this.additionalProperties.get(key);
118 | }
119 |
120 | /**
121 | * Return true if this ProductViewed object is equal to o.
122 | */
123 | @Override
124 | public boolean equals(Object o) {
125 | if (this == o) {
126 | return true;
127 | }
128 | if (o == null || getClass() != o.getClass()) {
129 | return false;
130 | }
131 | ProductViewed productViewed = (ProductViewed) o;
132 | return Objects.equals(this.product, productViewed.product)&&
133 | Objects.equals(this.additionalProperties, productViewed.additionalProperties) &&
134 | super.equals(o);
135 | }
136 |
137 | @Override
138 | public int hashCode() {
139 | return Objects.hash(product, super.hashCode(), additionalProperties);
140 | }
141 |
142 | @Override
143 | public String toString() {
144 | StringBuilder sb = new StringBuilder();
145 | sb.append("class ProductViewed {\n");
146 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
147 | sb.append(" product: ").append(toIndentedString(product)).append("\n");
148 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
149 | sb.append("}");
150 | return sb.toString();
151 | }
152 |
153 | /**
154 | * Convert the given object to string with each line indented by 4 spaces
155 | * (except the first line).
156 | */
157 | private String toIndentedString(Object o) {
158 | if (o == null) {
159 | return "null";
160 | }
161 | return o.toString().replace("\n", "\n ");
162 | }
163 |
164 | static {
165 | // Initialize and register the discriminator mappings.
166 | Map> mappings = new HashMap<>();
167 | mappings.put("ProductViewed", ProductViewed.class);
168 | JSON.registerDiscriminator(ProductViewed.class, "@type", mappings);
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/Region.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonInclude;
20 | import com.fasterxml.jackson.annotation.JsonProperty;
21 | import com.fasterxml.jackson.annotation.JsonCreator;
22 | import com.fasterxml.jackson.annotation.JsonTypeName;
23 | import com.fasterxml.jackson.annotation.JsonValue;
24 | import java.util.Arrays;
25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 | import com.croct.client.export.JSON;
27 |
28 |
29 | /**
30 | * A subsection of a country, typically a state or province.
31 | */
32 | @JsonPropertyOrder({
33 | Region.JSON_PROPERTY_NAME,
34 | Region.JSON_PROPERTY_CODE
35 | })
36 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
37 | public class Region {
38 | public static final String JSON_PROPERTY_NAME = "name";
39 | private String name;
40 |
41 | public static final String JSON_PROPERTY_CODE = "code";
42 | private String code;
43 |
44 | public Region() {
45 | }
46 |
47 | public Region name(String name) {
48 | this.name = name;
49 | return this;
50 | }
51 |
52 | /**
53 | * The subdivision name, non-empty. For example, \"Sao Paulo\".
54 | * @return name
55 | **/
56 | @javax.annotation.Nullable
57 | @JsonProperty(JSON_PROPERTY_NAME)
58 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
59 |
60 | public String getName() {
61 | return name;
62 | }
63 |
64 |
65 | @JsonProperty(JSON_PROPERTY_NAME)
66 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
67 | public void setName(String name) {
68 | this.name = name;
69 | }
70 |
71 |
72 | public Region code(String code) {
73 | this.code = code;
74 | return this;
75 | }
76 |
77 | /**
78 | * The 2-letter code as defined by the ISO 3166-2 standard. For example, \"SP\".
79 | * @return code
80 | **/
81 | @javax.annotation.Nullable
82 | @JsonProperty(JSON_PROPERTY_CODE)
83 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
84 |
85 | public String getCode() {
86 | return code;
87 | }
88 |
89 |
90 | @JsonProperty(JSON_PROPERTY_CODE)
91 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
92 | public void setCode(String code) {
93 | this.code = code;
94 | }
95 |
96 |
97 | /**
98 | * Return true if this Region object is equal to o.
99 | */
100 | @Override
101 | public boolean equals(Object o) {
102 | if (this == o) {
103 | return true;
104 | }
105 | if (o == null || getClass() != o.getClass()) {
106 | return false;
107 | }
108 | Region region = (Region) o;
109 | return Objects.equals(this.name, region.name) &&
110 | Objects.equals(this.code, region.code);
111 | }
112 |
113 | @Override
114 | public int hashCode() {
115 | return Objects.hash(name, code);
116 | }
117 |
118 | @Override
119 | public String toString() {
120 | StringBuilder sb = new StringBuilder();
121 | sb.append("class Region {\n");
122 | sb.append(" name: ").append(toIndentedString(name)).append("\n");
123 | sb.append(" code: ").append(toIndentedString(code)).append("\n");
124 | sb.append("}");
125 | return sb.toString();
126 | }
127 |
128 | /**
129 | * Convert the given object to string with each line indented by 4 spaces
130 | * (except the first line).
131 | */
132 | private String toIndentedString(Object o) {
133 | if (o == null) {
134 | return "null";
135 | }
136 | return o.toString().replace("\n", "\n ");
137 | }
138 |
139 | }
140 |
141 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/SessionResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.croct.client.export.model.Session;
20 | import com.fasterxml.jackson.annotation.JsonInclude;
21 | import com.fasterxml.jackson.annotation.JsonProperty;
22 | import com.fasterxml.jackson.annotation.JsonCreator;
23 | import com.fasterxml.jackson.annotation.JsonTypeName;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 | import java.util.ArrayList;
26 | import java.util.Arrays;
27 | import java.util.List;
28 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29 | import com.croct.client.export.JSON;
30 |
31 |
32 | /**
33 | * SessionResponse
34 | */
35 | @JsonPropertyOrder({
36 | SessionResponse.JSON_PROPERTY_ITEMS,
37 | SessionResponse.JSON_PROPERTY_NEXT_CURSOR
38 | })
39 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
40 | public class SessionResponse {
41 | public static final String JSON_PROPERTY_ITEMS = "items";
42 | private List items = new ArrayList<>();
43 |
44 | public static final String JSON_PROPERTY_NEXT_CURSOR = "nextCursor";
45 | private String nextCursor;
46 |
47 | public SessionResponse() {
48 | }
49 |
50 | public SessionResponse items(List items) {
51 | this.items = items;
52 | return this;
53 | }
54 |
55 | public SessionResponse addItemsItem(Session itemsItem) {
56 | if (this.items == null) {
57 | this.items = new ArrayList<>();
58 | }
59 | this.items.add(itemsItem);
60 | return this;
61 | }
62 |
63 | /**
64 | * Get items
65 | * @return items
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_ITEMS)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public List getItems() {
72 | return items;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_ITEMS)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setItems(List items) {
79 | this.items = items;
80 | }
81 |
82 |
83 | public SessionResponse nextCursor(String nextCursor) {
84 | this.nextCursor = nextCursor;
85 | return this;
86 | }
87 |
88 | /**
89 | * Get nextCursor
90 | * @return nextCursor
91 | **/
92 | @javax.annotation.Nonnull
93 | @JsonProperty(JSON_PROPERTY_NEXT_CURSOR)
94 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
95 |
96 | public String getNextCursor() {
97 | return nextCursor;
98 | }
99 |
100 |
101 | @JsonProperty(JSON_PROPERTY_NEXT_CURSOR)
102 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
103 | public void setNextCursor(String nextCursor) {
104 | this.nextCursor = nextCursor;
105 | }
106 |
107 |
108 | /**
109 | * Return true if this SessionResponse object is equal to o.
110 | */
111 | @Override
112 | public boolean equals(Object o) {
113 | if (this == o) {
114 | return true;
115 | }
116 | if (o == null || getClass() != o.getClass()) {
117 | return false;
118 | }
119 | SessionResponse sessionResponse = (SessionResponse) o;
120 | return Objects.equals(this.items, sessionResponse.items) &&
121 | Objects.equals(this.nextCursor, sessionResponse.nextCursor);
122 | }
123 |
124 | @Override
125 | public int hashCode() {
126 | return Objects.hash(items, nextCursor);
127 | }
128 |
129 | @Override
130 | public String toString() {
131 | StringBuilder sb = new StringBuilder();
132 | sb.append("class SessionResponse {\n");
133 | sb.append(" items: ").append(toIndentedString(items)).append("\n");
134 | sb.append(" nextCursor: ").append(toIndentedString(nextCursor)).append("\n");
135 | sb.append("}");
136 | return sb.toString();
137 | }
138 |
139 | /**
140 | * Convert the given object to string with each line indented by 4 spaces
141 | * (except the first line).
142 | */
143 | private String toIndentedString(Object o) {
144 | if (o == null) {
145 | return "null";
146 | }
147 | return o.toString().replace("\n", "\n ");
148 | }
149 |
150 | }
151 |
152 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/SessionStatistics.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonInclude;
20 | import com.fasterxml.jackson.annotation.JsonProperty;
21 | import com.fasterxml.jackson.annotation.JsonCreator;
22 | import com.fasterxml.jackson.annotation.JsonTypeName;
23 | import com.fasterxml.jackson.annotation.JsonValue;
24 | import java.util.Arrays;
25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 | import com.croct.client.export.JSON;
27 |
28 |
29 | /**
30 | * The aggregated statistics of the session.
31 | */
32 | @JsonPropertyOrder({
33 | SessionStatistics.JSON_PROPERTY_PAGE_VIEWS,
34 | SessionStatistics.JSON_PROPERTY_TAB_VIEWS,
35 | SessionStatistics.JSON_PROPERTY_ORDERS
36 | })
37 | @JsonTypeName("Session_statistics")
38 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
39 | public class SessionStatistics {
40 | public static final String JSON_PROPERTY_PAGE_VIEWS = "pageViews";
41 | private Integer pageViews;
42 |
43 | public static final String JSON_PROPERTY_TAB_VIEWS = "tabViews";
44 | private Integer tabViews;
45 |
46 | public static final String JSON_PROPERTY_ORDERS = "orders";
47 | private Integer orders;
48 |
49 | public SessionStatistics() {
50 | }
51 |
52 | public SessionStatistics pageViews(Integer pageViews) {
53 | this.pageViews = pageViews;
54 | return this;
55 | }
56 |
57 | /**
58 | * The total number of page views.
59 | * @return pageViews
60 | **/
61 | @javax.annotation.Nullable
62 | @JsonProperty(JSON_PROPERTY_PAGE_VIEWS)
63 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64 |
65 | public Integer getPageViews() {
66 | return pageViews;
67 | }
68 |
69 |
70 | @JsonProperty(JSON_PROPERTY_PAGE_VIEWS)
71 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
72 | public void setPageViews(Integer pageViews) {
73 | this.pageViews = pageViews;
74 | }
75 |
76 |
77 | public SessionStatistics tabViews(Integer tabViews) {
78 | this.tabViews = tabViews;
79 | return this;
80 | }
81 |
82 | /**
83 | * The total number of tab views.
84 | * @return tabViews
85 | **/
86 | @javax.annotation.Nullable
87 | @JsonProperty(JSON_PROPERTY_TAB_VIEWS)
88 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
89 |
90 | public Integer getTabViews() {
91 | return tabViews;
92 | }
93 |
94 |
95 | @JsonProperty(JSON_PROPERTY_TAB_VIEWS)
96 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
97 | public void setTabViews(Integer tabViews) {
98 | this.tabViews = tabViews;
99 | }
100 |
101 |
102 | public SessionStatistics orders(Integer orders) {
103 | this.orders = orders;
104 | return this;
105 | }
106 |
107 | /**
108 | * The total number of orders placed.
109 | * @return orders
110 | **/
111 | @javax.annotation.Nullable
112 | @JsonProperty(JSON_PROPERTY_ORDERS)
113 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
114 |
115 | public Integer getOrders() {
116 | return orders;
117 | }
118 |
119 |
120 | @JsonProperty(JSON_PROPERTY_ORDERS)
121 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
122 | public void setOrders(Integer orders) {
123 | this.orders = orders;
124 | }
125 |
126 |
127 | /**
128 | * Return true if this Session_statistics object is equal to o.
129 | */
130 | @Override
131 | public boolean equals(Object o) {
132 | if (this == o) {
133 | return true;
134 | }
135 | if (o == null || getClass() != o.getClass()) {
136 | return false;
137 | }
138 | SessionStatistics sessionStatistics = (SessionStatistics) o;
139 | return Objects.equals(this.pageViews, sessionStatistics.pageViews) &&
140 | Objects.equals(this.tabViews, sessionStatistics.tabViews) &&
141 | Objects.equals(this.orders, sessionStatistics.orders);
142 | }
143 |
144 | @Override
145 | public int hashCode() {
146 | return Objects.hash(pageViews, tabViews, orders);
147 | }
148 |
149 | @Override
150 | public String toString() {
151 | StringBuilder sb = new StringBuilder();
152 | sb.append("class SessionStatistics {\n");
153 | sb.append(" pageViews: ").append(toIndentedString(pageViews)).append("\n");
154 | sb.append(" tabViews: ").append(toIndentedString(tabViews)).append("\n");
155 | sb.append(" orders: ").append(toIndentedString(orders)).append("\n");
156 | sb.append("}");
157 | return sb.toString();
158 | }
159 |
160 | /**
161 | * Convert the given object to string with each line indented by 4 spaces
162 | * (except the first line).
163 | */
164 | private String toIndentedString(Object o) {
165 | if (o == null) {
166 | return "null";
167 | }
168 | return o.toString().replace("\n", "\n ");
169 | }
170 |
171 | }
172 |
173 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/SessionWindow.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonInclude;
20 | import com.fasterxml.jackson.annotation.JsonProperty;
21 | import com.fasterxml.jackson.annotation.JsonCreator;
22 | import com.fasterxml.jackson.annotation.JsonTypeName;
23 | import com.fasterxml.jackson.annotation.JsonValue;
24 | import java.util.Arrays;
25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 | import com.croct.client.export.JSON;
27 |
28 |
29 | /**
30 | * The time window covering the first and last event of the session.
31 | */
32 | @JsonPropertyOrder({
33 | SessionWindow.JSON_PROPERTY_START,
34 | SessionWindow.JSON_PROPERTY_END
35 | })
36 | @JsonTypeName("Session_window")
37 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
38 | public class SessionWindow {
39 | public static final String JSON_PROPERTY_START = "start";
40 | private Long start;
41 |
42 | public static final String JSON_PROPERTY_END = "end";
43 | private Long end;
44 |
45 | public SessionWindow() {
46 | }
47 |
48 | public SessionWindow start(Long start) {
49 | this.start = start;
50 | return this;
51 | }
52 |
53 | /**
54 | * Get start
55 | * @return start
56 | **/
57 | @javax.annotation.Nullable
58 | @JsonProperty(JSON_PROPERTY_START)
59 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60 |
61 | public Long getStart() {
62 | return start;
63 | }
64 |
65 |
66 | @JsonProperty(JSON_PROPERTY_START)
67 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68 | public void setStart(Long start) {
69 | this.start = start;
70 | }
71 |
72 |
73 | public SessionWindow end(Long end) {
74 | this.end = end;
75 | return this;
76 | }
77 |
78 | /**
79 | * Get end
80 | * @return end
81 | **/
82 | @javax.annotation.Nullable
83 | @JsonProperty(JSON_PROPERTY_END)
84 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85 |
86 | public Long getEnd() {
87 | return end;
88 | }
89 |
90 |
91 | @JsonProperty(JSON_PROPERTY_END)
92 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93 | public void setEnd(Long end) {
94 | this.end = end;
95 | }
96 |
97 |
98 | /**
99 | * Return true if this Session_window object is equal to o.
100 | */
101 | @Override
102 | public boolean equals(Object o) {
103 | if (this == o) {
104 | return true;
105 | }
106 | if (o == null || getClass() != o.getClass()) {
107 | return false;
108 | }
109 | SessionWindow sessionWindow = (SessionWindow) o;
110 | return Objects.equals(this.start, sessionWindow.start) &&
111 | Objects.equals(this.end, sessionWindow.end);
112 | }
113 |
114 | @Override
115 | public int hashCode() {
116 | return Objects.hash(start, end);
117 | }
118 |
119 | @Override
120 | public String toString() {
121 | StringBuilder sb = new StringBuilder();
122 | sb.append("class SessionWindow {\n");
123 | sb.append(" start: ").append(toIndentedString(start)).append("\n");
124 | sb.append(" end: ").append(toIndentedString(end)).append("\n");
125 | sb.append("}");
126 | return sb.toString();
127 | }
128 |
129 | /**
130 | * Convert the given object to string with each line indented by 4 spaces
131 | * (except the first line).
132 | */
133 | private String toIndentedString(Object o) {
134 | if (o == null) {
135 | return "null";
136 | }
137 | return o.toString().replace("\n", "\n ");
138 | }
139 |
140 | }
141 |
142 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/SlotPersonalized.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.croct.client.export.model.SlotPersonalizedMetadata;
20 | import com.croct.client.export.model.SlotPersonalizedPersonalization;
21 | import com.fasterxml.jackson.annotation.JsonInclude;
22 | import com.fasterxml.jackson.annotation.JsonProperty;
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonTypeName;
25 | import com.fasterxml.jackson.annotation.JsonValue;
26 | import java.util.Arrays;
27 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28 | import com.croct.client.export.JSON;
29 |
30 |
31 | /**
32 | * An event recording a slot personalization.
33 | */
34 | @JsonPropertyOrder({
35 | SlotPersonalized.JSON_PROPERTY_AT_TYPE,
36 | SlotPersonalized.JSON_PROPERTY_PERSONALIZATION,
37 | SlotPersonalized.JSON_PROPERTY_METADATA
38 | })
39 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
40 | public class SlotPersonalized {
41 | public static final String JSON_PROPERTY_AT_TYPE = "@type";
42 | private String atType;
43 |
44 | public static final String JSON_PROPERTY_PERSONALIZATION = "personalization";
45 | private SlotPersonalizedPersonalization personalization;
46 |
47 | public static final String JSON_PROPERTY_METADATA = "metadata";
48 | private SlotPersonalizedMetadata metadata;
49 |
50 | public SlotPersonalized() {
51 | }
52 |
53 | public SlotPersonalized atType(String atType) {
54 | this.atType = atType;
55 | return this;
56 | }
57 |
58 | /**
59 | * The event type identifier.
60 | * @return atType
61 | **/
62 | @javax.annotation.Nonnull
63 | @JsonProperty(JSON_PROPERTY_AT_TYPE)
64 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
65 |
66 | public String getAtType() {
67 | return atType;
68 | }
69 |
70 |
71 | @JsonProperty(JSON_PROPERTY_AT_TYPE)
72 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
73 | public void setAtType(String atType) {
74 | this.atType = atType;
75 | }
76 |
77 |
78 | public SlotPersonalized personalization(SlotPersonalizedPersonalization personalization) {
79 | this.personalization = personalization;
80 | return this;
81 | }
82 |
83 | /**
84 | * Get personalization
85 | * @return personalization
86 | **/
87 | @javax.annotation.Nonnull
88 | @JsonProperty(JSON_PROPERTY_PERSONALIZATION)
89 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
90 |
91 | public SlotPersonalizedPersonalization getPersonalization() {
92 | return personalization;
93 | }
94 |
95 |
96 | @JsonProperty(JSON_PROPERTY_PERSONALIZATION)
97 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
98 | public void setPersonalization(SlotPersonalizedPersonalization personalization) {
99 | this.personalization = personalization;
100 | }
101 |
102 |
103 | public SlotPersonalized metadata(SlotPersonalizedMetadata metadata) {
104 | this.metadata = metadata;
105 | return this;
106 | }
107 |
108 | /**
109 | * Get metadata
110 | * @return metadata
111 | **/
112 | @javax.annotation.Nonnull
113 | @JsonProperty(JSON_PROPERTY_METADATA)
114 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
115 |
116 | public SlotPersonalizedMetadata getMetadata() {
117 | return metadata;
118 | }
119 |
120 |
121 | @JsonProperty(JSON_PROPERTY_METADATA)
122 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
123 | public void setMetadata(SlotPersonalizedMetadata metadata) {
124 | this.metadata = metadata;
125 | }
126 |
127 |
128 | /**
129 | * Return true if this SlotPersonalized object is equal to o.
130 | */
131 | @Override
132 | public boolean equals(Object o) {
133 | if (this == o) {
134 | return true;
135 | }
136 | if (o == null || getClass() != o.getClass()) {
137 | return false;
138 | }
139 | SlotPersonalized slotPersonalized = (SlotPersonalized) o;
140 | return Objects.equals(this.atType, slotPersonalized.atType) &&
141 | Objects.equals(this.personalization, slotPersonalized.personalization) &&
142 | Objects.equals(this.metadata, slotPersonalized.metadata);
143 | }
144 |
145 | @Override
146 | public int hashCode() {
147 | return Objects.hash(atType, personalization, metadata);
148 | }
149 |
150 | @Override
151 | public String toString() {
152 | StringBuilder sb = new StringBuilder();
153 | sb.append("class SlotPersonalized {\n");
154 | sb.append(" atType: ").append(toIndentedString(atType)).append("\n");
155 | sb.append(" personalization: ").append(toIndentedString(personalization)).append("\n");
156 | sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n");
157 | sb.append("}");
158 | return sb.toString();
159 | }
160 |
161 | /**
162 | * Convert the given object to string with each line indented by 4 spaces
163 | * (except the first line).
164 | */
165 | private String toIndentedString(Object o) {
166 | if (o == null) {
167 | return "null";
168 | }
169 | return o.toString().replace("\n", "\n ");
170 | }
171 |
172 | }
173 |
174 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/SlotPersonalizedPersonalizationAssignedVariant.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonInclude;
20 | import com.fasterxml.jackson.annotation.JsonProperty;
21 | import com.fasterxml.jackson.annotation.JsonCreator;
22 | import com.fasterxml.jackson.annotation.JsonTypeName;
23 | import com.fasterxml.jackson.annotation.JsonValue;
24 | import java.util.Arrays;
25 | import java.util.UUID;
26 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 | import com.croct.client.export.JSON;
28 |
29 |
30 | /**
31 | * SlotPersonalizedPersonalizationAssignedVariant
32 | */
33 | @JsonPropertyOrder({
34 | SlotPersonalizedPersonalizationAssignedVariant.JSON_PROPERTY_EXPERIMENT_ID,
35 | SlotPersonalizedPersonalizationAssignedVariant.JSON_PROPERTY_VARIANT_ID
36 | })
37 | @JsonTypeName("SlotPersonalized_personalization_assignedVariant")
38 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
39 | public class SlotPersonalizedPersonalizationAssignedVariant {
40 | public static final String JSON_PROPERTY_EXPERIMENT_ID = "experimentId";
41 | private UUID experimentId;
42 |
43 | public static final String JSON_PROPERTY_VARIANT_ID = "variantId";
44 | private UUID variantId;
45 |
46 | public SlotPersonalizedPersonalizationAssignedVariant() {
47 | }
48 |
49 | public SlotPersonalizedPersonalizationAssignedVariant experimentId(UUID experimentId) {
50 | this.experimentId = experimentId;
51 | return this;
52 | }
53 |
54 | /**
55 | * The ID that uniquely identifies the experiment.
56 | * @return experimentId
57 | **/
58 | @javax.annotation.Nullable
59 | @JsonProperty(JSON_PROPERTY_EXPERIMENT_ID)
60 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
61 |
62 | public UUID getExperimentId() {
63 | return experimentId;
64 | }
65 |
66 |
67 | @JsonProperty(JSON_PROPERTY_EXPERIMENT_ID)
68 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
69 | public void setExperimentId(UUID experimentId) {
70 | this.experimentId = experimentId;
71 | }
72 |
73 |
74 | public SlotPersonalizedPersonalizationAssignedVariant variantId(UUID variantId) {
75 | this.variantId = variantId;
76 | return this;
77 | }
78 |
79 | /**
80 | * The ID that uniquely identifies the variant.
81 | * @return variantId
82 | **/
83 | @javax.annotation.Nullable
84 | @JsonProperty(JSON_PROPERTY_VARIANT_ID)
85 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
86 |
87 | public UUID getVariantId() {
88 | return variantId;
89 | }
90 |
91 |
92 | @JsonProperty(JSON_PROPERTY_VARIANT_ID)
93 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
94 | public void setVariantId(UUID variantId) {
95 | this.variantId = variantId;
96 | }
97 |
98 |
99 | /**
100 | * Return true if this SlotPersonalized_personalization_assignedVariant object is equal to o.
101 | */
102 | @Override
103 | public boolean equals(Object o) {
104 | if (this == o) {
105 | return true;
106 | }
107 | if (o == null || getClass() != o.getClass()) {
108 | return false;
109 | }
110 | SlotPersonalizedPersonalizationAssignedVariant slotPersonalizedPersonalizationAssignedVariant = (SlotPersonalizedPersonalizationAssignedVariant) o;
111 | return Objects.equals(this.experimentId, slotPersonalizedPersonalizationAssignedVariant.experimentId) &&
112 | Objects.equals(this.variantId, slotPersonalizedPersonalizationAssignedVariant.variantId);
113 | }
114 |
115 | @Override
116 | public int hashCode() {
117 | return Objects.hash(experimentId, variantId);
118 | }
119 |
120 | @Override
121 | public String toString() {
122 | StringBuilder sb = new StringBuilder();
123 | sb.append("class SlotPersonalizedPersonalizationAssignedVariant {\n");
124 | sb.append(" experimentId: ").append(toIndentedString(experimentId)).append("\n");
125 | sb.append(" variantId: ").append(toIndentedString(variantId)).append("\n");
126 | sb.append("}");
127 | return sb.toString();
128 | }
129 |
130 | /**
131 | * Convert the given object to string with each line indented by 4 spaces
132 | * (except the first line).
133 | */
134 | private String toIndentedString(Object o) {
135 | if (o == null) {
136 | return "null";
137 | }
138 | return o.toString().replace("\n", "\n ");
139 | }
140 |
141 | }
142 |
143 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/TabOpened.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 | import com.fasterxml.jackson.annotation.JsonInclude;
26 | import com.fasterxml.jackson.annotation.JsonProperty;
27 | import com.fasterxml.jackson.annotation.JsonCreator;
28 | import com.fasterxml.jackson.annotation.JsonSubTypes;
29 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 | import com.fasterxml.jackson.annotation.JsonTypeName;
31 | import com.fasterxml.jackson.annotation.JsonValue;
32 | import java.util.Arrays;
33 | import java.util.UUID;
34 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
35 | import com.croct.client.export.JSON;
36 |
37 |
38 | /**
39 | * An event recording that a new tab was opened.
40 | */
41 | @JsonPropertyOrder({
42 | TabOpened.JSON_PROPERTY_TAB_ID
43 | })
44 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
45 | @JsonIgnoreProperties(
46 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
47 | allowSetters = true // allows the @type to be set during deserialization
48 | )
49 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
50 |
51 | public class TabOpened extends EventPayload {
52 | public static final String JSON_PROPERTY_TAB_ID = "tabId";
53 | private UUID tabId;
54 |
55 | public TabOpened() {
56 | }
57 |
58 | public TabOpened tabId(UUID tabId) {
59 | this.tabId = tabId;
60 | return this;
61 | }
62 |
63 | /**
64 | * The ID that uniquely identifies the tab across the session.
65 | * @return tabId
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_TAB_ID)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public UUID getTabId() {
72 | return tabId;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_TAB_ID)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setTabId(UUID tabId) {
79 | this.tabId = tabId;
80 | }
81 |
82 | /**
83 | * A container for additional, undeclared properties.
84 | * This is a holder for any undeclared properties as specified with
85 | * the 'additionalProperties' keyword in the OAS document.
86 | */
87 | private Map additionalProperties;
88 |
89 | /**
90 | * Set the additional (undeclared) property with the specified name and value.
91 | * If the property does not already exist, create it otherwise replace it.
92 | */
93 | @JsonAnySetter
94 | public TabOpened putAdditionalProperty(String key, Object value) {
95 | if (this.additionalProperties == null) {
96 | this.additionalProperties = new HashMap<>();
97 | }
98 | this.additionalProperties.put(key, value);
99 | return this;
100 | }
101 |
102 | /**
103 | * Return the additional (undeclared) property.
104 | */
105 | @JsonAnyGetter
106 | public Map getAdditionalProperties() {
107 | return additionalProperties;
108 | }
109 |
110 | /**
111 | * Return the additional (undeclared) property with the specified name.
112 | */
113 | public Object getAdditionalProperty(String key) {
114 | if (this.additionalProperties == null) {
115 | return null;
116 | }
117 | return this.additionalProperties.get(key);
118 | }
119 |
120 | /**
121 | * Return true if this TabOpened object is equal to o.
122 | */
123 | @Override
124 | public boolean equals(Object o) {
125 | if (this == o) {
126 | return true;
127 | }
128 | if (o == null || getClass() != o.getClass()) {
129 | return false;
130 | }
131 | TabOpened tabOpened = (TabOpened) o;
132 | return Objects.equals(this.tabId, tabOpened.tabId)&&
133 | Objects.equals(this.additionalProperties, tabOpened.additionalProperties) &&
134 | super.equals(o);
135 | }
136 |
137 | @Override
138 | public int hashCode() {
139 | return Objects.hash(tabId, super.hashCode(), additionalProperties);
140 | }
141 |
142 | @Override
143 | public String toString() {
144 | StringBuilder sb = new StringBuilder();
145 | sb.append("class TabOpened {\n");
146 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
147 | sb.append(" tabId: ").append(toIndentedString(tabId)).append("\n");
148 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
149 | sb.append("}");
150 | return sb.toString();
151 | }
152 |
153 | /**
154 | * Convert the given object to string with each line indented by 4 spaces
155 | * (except the first line).
156 | */
157 | private String toIndentedString(Object o) {
158 | if (o == null) {
159 | return "null";
160 | }
161 | return o.toString().replace("\n", "\n ");
162 | }
163 |
164 | static {
165 | // Initialize and register the discriminator mappings.
166 | Map> mappings = new HashMap<>();
167 | mappings.put("TabOpened", TabOpened.class);
168 | JSON.registerDiscriminator(TabOpened.class, "@type", mappings);
169 | }
170 | }
171 |
172 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/TabUrlChanged.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 | import com.fasterxml.jackson.annotation.JsonInclude;
26 | import com.fasterxml.jackson.annotation.JsonProperty;
27 | import com.fasterxml.jackson.annotation.JsonCreator;
28 | import com.fasterxml.jackson.annotation.JsonSubTypes;
29 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 | import com.fasterxml.jackson.annotation.JsonTypeName;
31 | import com.fasterxml.jackson.annotation.JsonValue;
32 | import java.net.URI;
33 | import java.util.Arrays;
34 | import java.util.UUID;
35 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
36 | import com.croct.client.export.JSON;
37 |
38 |
39 | /**
40 | * An event recording that the URL of a tab has changed.
41 | */
42 | @JsonPropertyOrder({
43 | TabUrlChanged.JSON_PROPERTY_TAB_ID,
44 | TabUrlChanged.JSON_PROPERTY_URL
45 | })
46 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
47 | @JsonIgnoreProperties(
48 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
49 | allowSetters = true // allows the @type to be set during deserialization
50 | )
51 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
52 |
53 | public class TabUrlChanged extends EventPayload {
54 | public static final String JSON_PROPERTY_TAB_ID = "tabId";
55 | private UUID tabId;
56 |
57 | public static final String JSON_PROPERTY_URL = "url";
58 | private URI url;
59 |
60 | public TabUrlChanged() {
61 | }
62 |
63 | public TabUrlChanged tabId(UUID tabId) {
64 | this.tabId = tabId;
65 | return this;
66 | }
67 |
68 | /**
69 | * The ID that uniquely identifies the tab across the session.
70 | * @return tabId
71 | **/
72 | @javax.annotation.Nonnull
73 | @JsonProperty(JSON_PROPERTY_TAB_ID)
74 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
75 |
76 | public UUID getTabId() {
77 | return tabId;
78 | }
79 |
80 |
81 | @JsonProperty(JSON_PROPERTY_TAB_ID)
82 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
83 | public void setTabId(UUID tabId) {
84 | this.tabId = tabId;
85 | }
86 |
87 |
88 | public TabUrlChanged url(URI url) {
89 | this.url = url;
90 | return this;
91 | }
92 |
93 | /**
94 | * The URL the page that the tab was on.
95 | * @return url
96 | **/
97 | @javax.annotation.Nonnull
98 | @JsonProperty(JSON_PROPERTY_URL)
99 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
100 |
101 | public URI getUrl() {
102 | return url;
103 | }
104 |
105 |
106 | @JsonProperty(JSON_PROPERTY_URL)
107 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
108 | public void setUrl(URI url) {
109 | this.url = url;
110 | }
111 |
112 | /**
113 | * A container for additional, undeclared properties.
114 | * This is a holder for any undeclared properties as specified with
115 | * the 'additionalProperties' keyword in the OAS document.
116 | */
117 | private Map additionalProperties;
118 |
119 | /**
120 | * Set the additional (undeclared) property with the specified name and value.
121 | * If the property does not already exist, create it otherwise replace it.
122 | */
123 | @JsonAnySetter
124 | public TabUrlChanged putAdditionalProperty(String key, Object value) {
125 | if (this.additionalProperties == null) {
126 | this.additionalProperties = new HashMap<>();
127 | }
128 | this.additionalProperties.put(key, value);
129 | return this;
130 | }
131 |
132 | /**
133 | * Return the additional (undeclared) property.
134 | */
135 | @JsonAnyGetter
136 | public Map getAdditionalProperties() {
137 | return additionalProperties;
138 | }
139 |
140 | /**
141 | * Return the additional (undeclared) property with the specified name.
142 | */
143 | public Object getAdditionalProperty(String key) {
144 | if (this.additionalProperties == null) {
145 | return null;
146 | }
147 | return this.additionalProperties.get(key);
148 | }
149 |
150 | /**
151 | * Return true if this TabUrlChanged object is equal to o.
152 | */
153 | @Override
154 | public boolean equals(Object o) {
155 | if (this == o) {
156 | return true;
157 | }
158 | if (o == null || getClass() != o.getClass()) {
159 | return false;
160 | }
161 | TabUrlChanged tabUrlChanged = (TabUrlChanged) o;
162 | return Objects.equals(this.tabId, tabUrlChanged.tabId) &&
163 | Objects.equals(this.url, tabUrlChanged.url)&&
164 | Objects.equals(this.additionalProperties, tabUrlChanged.additionalProperties) &&
165 | super.equals(o);
166 | }
167 |
168 | @Override
169 | public int hashCode() {
170 | return Objects.hash(tabId, url, super.hashCode(), additionalProperties);
171 | }
172 |
173 | @Override
174 | public String toString() {
175 | StringBuilder sb = new StringBuilder();
176 | sb.append("class TabUrlChanged {\n");
177 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
178 | sb.append(" tabId: ").append(toIndentedString(tabId)).append("\n");
179 | sb.append(" url: ").append(toIndentedString(url)).append("\n");
180 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
181 | sb.append("}");
182 | return sb.toString();
183 | }
184 |
185 | /**
186 | * Convert the given object to string with each line indented by 4 spaces
187 | * (except the first line).
188 | */
189 | private String toIndentedString(Object o) {
190 | if (o == null) {
191 | return "null";
192 | }
193 | return o.toString().replace("\n", "\n ");
194 | }
195 |
196 | static {
197 | // Initialize and register the discriminator mappings.
198 | Map> mappings = new HashMap<>();
199 | mappings.put("TabUrlChanged", TabUrlChanged.class);
200 | JSON.registerDiscriminator(TabUrlChanged.class, "@type", mappings);
201 | }
202 | }
203 |
204 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/TabVisibility.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
20 | import com.croct.client.export.JSON;
21 |
22 |
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 |
26 | /**
27 | * The visibility of the tab.
28 | */
29 | public enum TabVisibility {
30 |
31 | VISIBLE("VISIBLE"),
32 |
33 | HIDDLE("HIDDEN");
34 |
35 | private String value;
36 |
37 | TabVisibility(String value) {
38 | this.value = value;
39 | }
40 |
41 | @JsonValue
42 | public String getValue() {
43 | return value;
44 | }
45 |
46 | @Override
47 | public String toString() {
48 | return String.valueOf(value);
49 | }
50 |
51 | @JsonCreator
52 | public static TabVisibility fromValue(String value) {
53 | for (TabVisibility b : TabVisibility.values()) {
54 | if (b.value.equals(value)) {
55 | return b;
56 | }
57 | }
58 | throw new IllegalArgumentException("Unexpected value '" + value + "'");
59 | }
60 | }
61 |
62 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/UserResponse.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.croct.client.export.model.User;
20 | import com.fasterxml.jackson.annotation.JsonInclude;
21 | import com.fasterxml.jackson.annotation.JsonProperty;
22 | import com.fasterxml.jackson.annotation.JsonCreator;
23 | import com.fasterxml.jackson.annotation.JsonTypeName;
24 | import com.fasterxml.jackson.annotation.JsonValue;
25 | import java.util.ArrayList;
26 | import java.util.Arrays;
27 | import java.util.List;
28 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
29 | import com.croct.client.export.JSON;
30 |
31 |
32 | /**
33 | * UserResponse
34 | */
35 | @JsonPropertyOrder({
36 | UserResponse.JSON_PROPERTY_ITEMS,
37 | UserResponse.JSON_PROPERTY_NEXT_CURSOR
38 | })
39 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
40 | public class UserResponse {
41 | public static final String JSON_PROPERTY_ITEMS = "items";
42 | private List items = new ArrayList<>();
43 |
44 | public static final String JSON_PROPERTY_NEXT_CURSOR = "nextCursor";
45 | private String nextCursor;
46 |
47 | public UserResponse() {
48 | }
49 |
50 | public UserResponse items(List items) {
51 | this.items = items;
52 | return this;
53 | }
54 |
55 | public UserResponse addItemsItem(User itemsItem) {
56 | if (this.items == null) {
57 | this.items = new ArrayList<>();
58 | }
59 | this.items.add(itemsItem);
60 | return this;
61 | }
62 |
63 | /**
64 | * Get items
65 | * @return items
66 | **/
67 | @javax.annotation.Nonnull
68 | @JsonProperty(JSON_PROPERTY_ITEMS)
69 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
70 |
71 | public List getItems() {
72 | return items;
73 | }
74 |
75 |
76 | @JsonProperty(JSON_PROPERTY_ITEMS)
77 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
78 | public void setItems(List items) {
79 | this.items = items;
80 | }
81 |
82 |
83 | public UserResponse nextCursor(String nextCursor) {
84 | this.nextCursor = nextCursor;
85 | return this;
86 | }
87 |
88 | /**
89 | * Get nextCursor
90 | * @return nextCursor
91 | **/
92 | @javax.annotation.Nonnull
93 | @JsonProperty(JSON_PROPERTY_NEXT_CURSOR)
94 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
95 |
96 | public String getNextCursor() {
97 | return nextCursor;
98 | }
99 |
100 |
101 | @JsonProperty(JSON_PROPERTY_NEXT_CURSOR)
102 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
103 | public void setNextCursor(String nextCursor) {
104 | this.nextCursor = nextCursor;
105 | }
106 |
107 |
108 | /**
109 | * Return true if this UserResponse object is equal to o.
110 | */
111 | @Override
112 | public boolean equals(Object o) {
113 | if (this == o) {
114 | return true;
115 | }
116 | if (o == null || getClass() != o.getClass()) {
117 | return false;
118 | }
119 | UserResponse userResponse = (UserResponse) o;
120 | return Objects.equals(this.items, userResponse.items) &&
121 | Objects.equals(this.nextCursor, userResponse.nextCursor);
122 | }
123 |
124 | @Override
125 | public int hashCode() {
126 | return Objects.hash(items, nextCursor);
127 | }
128 |
129 | @Override
130 | public String toString() {
131 | StringBuilder sb = new StringBuilder();
132 | sb.append("class UserResponse {\n");
133 | sb.append(" items: ").append(toIndentedString(items)).append("\n");
134 | sb.append(" nextCursor: ").append(toIndentedString(nextCursor)).append("\n");
135 | sb.append("}");
136 | return sb.toString();
137 | }
138 |
139 | /**
140 | * Convert the given object to string with each line indented by 4 spaces
141 | * (except the first line).
142 | */
143 | private String toIndentedString(Object o) {
144 | if (o == null) {
145 | return "null";
146 | }
147 | return o.toString().replace("\n", "\n ");
148 | }
149 |
150 | }
151 |
152 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/UserSignedIn.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 | import com.fasterxml.jackson.annotation.JsonInclude;
26 | import com.fasterxml.jackson.annotation.JsonProperty;
27 | import com.fasterxml.jackson.annotation.JsonCreator;
28 | import com.fasterxml.jackson.annotation.JsonSubTypes;
29 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 | import com.fasterxml.jackson.annotation.JsonTypeName;
31 | import com.fasterxml.jackson.annotation.JsonValue;
32 | import java.util.Arrays;
33 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34 | import com.croct.client.export.JSON;
35 |
36 |
37 | /**
38 | * An event recording that a user has signed in.
39 | */
40 | @JsonPropertyOrder({
41 | UserSignedIn.JSON_PROPERTY_EXTERNAL_USER_ID
42 | })
43 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
44 | @JsonIgnoreProperties(
45 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
46 | allowSetters = true // allows the @type to be set during deserialization
47 | )
48 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
49 |
50 | public class UserSignedIn extends EventPayload {
51 | public static final String JSON_PROPERTY_EXTERNAL_USER_ID = "externalUserId";
52 | private String externalUserId;
53 |
54 | public UserSignedIn() {
55 | }
56 |
57 | public UserSignedIn externalUserId(String externalUserId) {
58 | this.externalUserId = externalUserId;
59 | return this;
60 | }
61 |
62 | /**
63 | * The external ID of the user.
64 | * @return externalUserId
65 | **/
66 | @javax.annotation.Nonnull
67 | @JsonProperty(JSON_PROPERTY_EXTERNAL_USER_ID)
68 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
69 |
70 | public String getExternalUserId() {
71 | return externalUserId;
72 | }
73 |
74 |
75 | @JsonProperty(JSON_PROPERTY_EXTERNAL_USER_ID)
76 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
77 | public void setExternalUserId(String externalUserId) {
78 | this.externalUserId = externalUserId;
79 | }
80 |
81 | /**
82 | * A container for additional, undeclared properties.
83 | * This is a holder for any undeclared properties as specified with
84 | * the 'additionalProperties' keyword in the OAS document.
85 | */
86 | private Map additionalProperties;
87 |
88 | /**
89 | * Set the additional (undeclared) property with the specified name and value.
90 | * If the property does not already exist, create it otherwise replace it.
91 | */
92 | @JsonAnySetter
93 | public UserSignedIn putAdditionalProperty(String key, Object value) {
94 | if (this.additionalProperties == null) {
95 | this.additionalProperties = new HashMap<>();
96 | }
97 | this.additionalProperties.put(key, value);
98 | return this;
99 | }
100 |
101 | /**
102 | * Return the additional (undeclared) property.
103 | */
104 | @JsonAnyGetter
105 | public Map getAdditionalProperties() {
106 | return additionalProperties;
107 | }
108 |
109 | /**
110 | * Return the additional (undeclared) property with the specified name.
111 | */
112 | public Object getAdditionalProperty(String key) {
113 | if (this.additionalProperties == null) {
114 | return null;
115 | }
116 | return this.additionalProperties.get(key);
117 | }
118 |
119 | /**
120 | * Return true if this UserSignedIn object is equal to o.
121 | */
122 | @Override
123 | public boolean equals(Object o) {
124 | if (this == o) {
125 | return true;
126 | }
127 | if (o == null || getClass() != o.getClass()) {
128 | return false;
129 | }
130 | UserSignedIn userSignedIn = (UserSignedIn) o;
131 | return Objects.equals(this.externalUserId, userSignedIn.externalUserId)&&
132 | Objects.equals(this.additionalProperties, userSignedIn.additionalProperties) &&
133 | super.equals(o);
134 | }
135 |
136 | @Override
137 | public int hashCode() {
138 | return Objects.hash(externalUserId, super.hashCode(), additionalProperties);
139 | }
140 |
141 | @Override
142 | public String toString() {
143 | StringBuilder sb = new StringBuilder();
144 | sb.append("class UserSignedIn {\n");
145 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
146 | sb.append(" externalUserId: ").append(toIndentedString(externalUserId)).append("\n");
147 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
148 | sb.append("}");
149 | return sb.toString();
150 | }
151 |
152 | /**
153 | * Convert the given object to string with each line indented by 4 spaces
154 | * (except the first line).
155 | */
156 | private String toIndentedString(Object o) {
157 | if (o == null) {
158 | return "null";
159 | }
160 | return o.toString().replace("\n", "\n ");
161 | }
162 |
163 | static {
164 | // Initialize and register the discriminator mappings.
165 | Map> mappings = new HashMap<>();
166 | mappings.put("UserSignedIn", UserSignedIn.class);
167 | JSON.registerDiscriminator(UserSignedIn.class, "@type", mappings);
168 | }
169 | }
170 |
171 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/UserSignedOut.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 | import com.fasterxml.jackson.annotation.JsonInclude;
26 | import com.fasterxml.jackson.annotation.JsonProperty;
27 | import com.fasterxml.jackson.annotation.JsonCreator;
28 | import com.fasterxml.jackson.annotation.JsonSubTypes;
29 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 | import com.fasterxml.jackson.annotation.JsonTypeName;
31 | import com.fasterxml.jackson.annotation.JsonValue;
32 | import java.util.Arrays;
33 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34 | import com.croct.client.export.JSON;
35 |
36 |
37 | /**
38 | * An event recording that a user has signed out.
39 | */
40 | @JsonPropertyOrder({
41 | UserSignedOut.JSON_PROPERTY_EXTERNAL_USER_ID
42 | })
43 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
44 | @JsonIgnoreProperties(
45 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
46 | allowSetters = true // allows the @type to be set during deserialization
47 | )
48 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
49 |
50 | public class UserSignedOut extends EventPayload {
51 | public static final String JSON_PROPERTY_EXTERNAL_USER_ID = "externalUserId";
52 | private String externalUserId;
53 |
54 | public UserSignedOut() {
55 | }
56 |
57 | public UserSignedOut externalUserId(String externalUserId) {
58 | this.externalUserId = externalUserId;
59 | return this;
60 | }
61 |
62 | /**
63 | * The external ID of the user.
64 | * @return externalUserId
65 | **/
66 | @javax.annotation.Nonnull
67 | @JsonProperty(JSON_PROPERTY_EXTERNAL_USER_ID)
68 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
69 |
70 | public String getExternalUserId() {
71 | return externalUserId;
72 | }
73 |
74 |
75 | @JsonProperty(JSON_PROPERTY_EXTERNAL_USER_ID)
76 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
77 | public void setExternalUserId(String externalUserId) {
78 | this.externalUserId = externalUserId;
79 | }
80 |
81 | /**
82 | * A container for additional, undeclared properties.
83 | * This is a holder for any undeclared properties as specified with
84 | * the 'additionalProperties' keyword in the OAS document.
85 | */
86 | private Map additionalProperties;
87 |
88 | /**
89 | * Set the additional (undeclared) property with the specified name and value.
90 | * If the property does not already exist, create it otherwise replace it.
91 | */
92 | @JsonAnySetter
93 | public UserSignedOut putAdditionalProperty(String key, Object value) {
94 | if (this.additionalProperties == null) {
95 | this.additionalProperties = new HashMap<>();
96 | }
97 | this.additionalProperties.put(key, value);
98 | return this;
99 | }
100 |
101 | /**
102 | * Return the additional (undeclared) property.
103 | */
104 | @JsonAnyGetter
105 | public Map getAdditionalProperties() {
106 | return additionalProperties;
107 | }
108 |
109 | /**
110 | * Return the additional (undeclared) property with the specified name.
111 | */
112 | public Object getAdditionalProperty(String key) {
113 | if (this.additionalProperties == null) {
114 | return null;
115 | }
116 | return this.additionalProperties.get(key);
117 | }
118 |
119 | /**
120 | * Return true if this UserSignedOut object is equal to o.
121 | */
122 | @Override
123 | public boolean equals(Object o) {
124 | if (this == o) {
125 | return true;
126 | }
127 | if (o == null || getClass() != o.getClass()) {
128 | return false;
129 | }
130 | UserSignedOut userSignedOut = (UserSignedOut) o;
131 | return Objects.equals(this.externalUserId, userSignedOut.externalUserId)&&
132 | Objects.equals(this.additionalProperties, userSignedOut.additionalProperties) &&
133 | super.equals(o);
134 | }
135 |
136 | @Override
137 | public int hashCode() {
138 | return Objects.hash(externalUserId, super.hashCode(), additionalProperties);
139 | }
140 |
141 | @Override
142 | public String toString() {
143 | StringBuilder sb = new StringBuilder();
144 | sb.append("class UserSignedOut {\n");
145 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
146 | sb.append(" externalUserId: ").append(toIndentedString(externalUserId)).append("\n");
147 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
148 | sb.append("}");
149 | return sb.toString();
150 | }
151 |
152 | /**
153 | * Convert the given object to string with each line indented by 4 spaces
154 | * (except the first line).
155 | */
156 | private String toIndentedString(Object o) {
157 | if (o == null) {
158 | return "null";
159 | }
160 | return o.toString().replace("\n", "\n ");
161 | }
162 |
163 | static {
164 | // Initialize and register the discriminator mappings.
165 | Map> mappings = new HashMap<>();
166 | mappings.put("UserSignedOut", UserSignedOut.class);
167 | JSON.registerDiscriminator(UserSignedOut.class, "@type", mappings);
168 | }
169 | }
170 |
171 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/UserSignedUp.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventPayload;
24 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 | import com.fasterxml.jackson.annotation.JsonInclude;
26 | import com.fasterxml.jackson.annotation.JsonProperty;
27 | import com.fasterxml.jackson.annotation.JsonCreator;
28 | import com.fasterxml.jackson.annotation.JsonSubTypes;
29 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 | import com.fasterxml.jackson.annotation.JsonTypeName;
31 | import com.fasterxml.jackson.annotation.JsonValue;
32 | import java.util.Arrays;
33 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
34 | import com.croct.client.export.JSON;
35 |
36 |
37 | /**
38 | * An event recording that a user has signed up.
39 | */
40 | @JsonPropertyOrder({
41 | UserSignedUp.JSON_PROPERTY_EXTERNAL_USER_ID
42 | })
43 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
44 | @JsonIgnoreProperties(
45 | value = "@type", // ignore manually set @type, it will be automatically generated by Jackson during serialization
46 | allowSetters = true // allows the @type to be set during deserialization
47 | )
48 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type", visible = true)
49 |
50 | public class UserSignedUp extends EventPayload {
51 | public static final String JSON_PROPERTY_EXTERNAL_USER_ID = "externalUserId";
52 | private String externalUserId;
53 |
54 | public UserSignedUp() {
55 | }
56 |
57 | public UserSignedUp externalUserId(String externalUserId) {
58 | this.externalUserId = externalUserId;
59 | return this;
60 | }
61 |
62 | /**
63 | * The external ID of the user.
64 | * @return externalUserId
65 | **/
66 | @javax.annotation.Nonnull
67 | @JsonProperty(JSON_PROPERTY_EXTERNAL_USER_ID)
68 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
69 |
70 | public String getExternalUserId() {
71 | return externalUserId;
72 | }
73 |
74 |
75 | @JsonProperty(JSON_PROPERTY_EXTERNAL_USER_ID)
76 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
77 | public void setExternalUserId(String externalUserId) {
78 | this.externalUserId = externalUserId;
79 | }
80 |
81 | /**
82 | * A container for additional, undeclared properties.
83 | * This is a holder for any undeclared properties as specified with
84 | * the 'additionalProperties' keyword in the OAS document.
85 | */
86 | private Map additionalProperties;
87 |
88 | /**
89 | * Set the additional (undeclared) property with the specified name and value.
90 | * If the property does not already exist, create it otherwise replace it.
91 | */
92 | @JsonAnySetter
93 | public UserSignedUp putAdditionalProperty(String key, Object value) {
94 | if (this.additionalProperties == null) {
95 | this.additionalProperties = new HashMap<>();
96 | }
97 | this.additionalProperties.put(key, value);
98 | return this;
99 | }
100 |
101 | /**
102 | * Return the additional (undeclared) property.
103 | */
104 | @JsonAnyGetter
105 | public Map getAdditionalProperties() {
106 | return additionalProperties;
107 | }
108 |
109 | /**
110 | * Return the additional (undeclared) property with the specified name.
111 | */
112 | public Object getAdditionalProperty(String key) {
113 | if (this.additionalProperties == null) {
114 | return null;
115 | }
116 | return this.additionalProperties.get(key);
117 | }
118 |
119 | /**
120 | * Return true if this UserSignedUp object is equal to o.
121 | */
122 | @Override
123 | public boolean equals(Object o) {
124 | if (this == o) {
125 | return true;
126 | }
127 | if (o == null || getClass() != o.getClass()) {
128 | return false;
129 | }
130 | UserSignedUp userSignedUp = (UserSignedUp) o;
131 | return Objects.equals(this.externalUserId, userSignedUp.externalUserId)&&
132 | Objects.equals(this.additionalProperties, userSignedUp.additionalProperties) &&
133 | super.equals(o);
134 | }
135 |
136 | @Override
137 | public int hashCode() {
138 | return Objects.hash(externalUserId, super.hashCode(), additionalProperties);
139 | }
140 |
141 | @Override
142 | public String toString() {
143 | StringBuilder sb = new StringBuilder();
144 | sb.append("class UserSignedUp {\n");
145 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
146 | sb.append(" externalUserId: ").append(toIndentedString(externalUserId)).append("\n");
147 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
148 | sb.append("}");
149 | return sb.toString();
150 | }
151 |
152 | /**
153 | * Convert the given object to string with each line indented by 4 spaces
154 | * (except the first line).
155 | */
156 | private String toIndentedString(Object o) {
157 | if (o == null) {
158 | return "null";
159 | }
160 | return o.toString().replace("\n", "\n ");
161 | }
162 |
163 | static {
164 | // Initialize and register the discriminator mappings.
165 | Map> mappings = new HashMap<>();
166 | mappings.put("UserSignedUp", UserSignedUp.class);
167 | JSON.registerDiscriminator(UserSignedUp.class, "@type", mappings);
168 | }
169 | }
170 |
171 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/UserStatistics.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.fasterxml.jackson.annotation.JsonInclude;
20 | import com.fasterxml.jackson.annotation.JsonProperty;
21 | import com.fasterxml.jackson.annotation.JsonCreator;
22 | import com.fasterxml.jackson.annotation.JsonTypeName;
23 | import com.fasterxml.jackson.annotation.JsonValue;
24 | import java.util.Arrays;
25 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
26 | import com.croct.client.export.JSON;
27 |
28 |
29 | /**
30 | * The aggregated statistics of the user.
31 | */
32 | @JsonPropertyOrder({
33 | UserStatistics.JSON_PROPERTY_ORDERS,
34 | UserStatistics.JSON_PROPERTY_SESSIONS
35 | })
36 | @JsonTypeName("User_statistics")
37 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
38 | public class UserStatistics {
39 | public static final String JSON_PROPERTY_ORDERS = "orders";
40 | private Integer orders;
41 |
42 | public static final String JSON_PROPERTY_SESSIONS = "sessions";
43 | private Integer sessions;
44 |
45 | public UserStatistics() {
46 | }
47 |
48 | public UserStatistics orders(Integer orders) {
49 | this.orders = orders;
50 | return this;
51 | }
52 |
53 | /**
54 | * The total number of orders placed across all applications in a workspace.
55 | * @return orders
56 | **/
57 | @javax.annotation.Nullable
58 | @JsonProperty(JSON_PROPERTY_ORDERS)
59 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
60 |
61 | public Integer getOrders() {
62 | return orders;
63 | }
64 |
65 |
66 | @JsonProperty(JSON_PROPERTY_ORDERS)
67 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
68 | public void setOrders(Integer orders) {
69 | this.orders = orders;
70 | }
71 |
72 |
73 | public UserStatistics sessions(Integer sessions) {
74 | this.sessions = sessions;
75 | return this;
76 | }
77 |
78 | /**
79 | * The total number of sessions across all applications in a workspace.
80 | * @return sessions
81 | **/
82 | @javax.annotation.Nullable
83 | @JsonProperty(JSON_PROPERTY_SESSIONS)
84 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
85 |
86 | public Integer getSessions() {
87 | return sessions;
88 | }
89 |
90 |
91 | @JsonProperty(JSON_PROPERTY_SESSIONS)
92 | @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
93 | public void setSessions(Integer sessions) {
94 | this.sessions = sessions;
95 | }
96 |
97 |
98 | /**
99 | * Return true if this User_statistics object is equal to o.
100 | */
101 | @Override
102 | public boolean equals(Object o) {
103 | if (this == o) {
104 | return true;
105 | }
106 | if (o == null || getClass() != o.getClass()) {
107 | return false;
108 | }
109 | UserStatistics userStatistics = (UserStatistics) o;
110 | return Objects.equals(this.orders, userStatistics.orders) &&
111 | Objects.equals(this.sessions, userStatistics.sessions);
112 | }
113 |
114 | @Override
115 | public int hashCode() {
116 | return Objects.hash(orders, sessions);
117 | }
118 |
119 | @Override
120 | public String toString() {
121 | StringBuilder sb = new StringBuilder();
122 | sb.append("class UserStatistics {\n");
123 | sb.append(" orders: ").append(toIndentedString(orders)).append("\n");
124 | sb.append(" sessions: ").append(toIndentedString(sessions)).append("\n");
125 | sb.append("}");
126 | return sb.toString();
127 | }
128 |
129 | /**
130 | * Convert the given object to string with each line indented by 4 spaces
131 | * (except the first line).
132 | */
133 | private String toIndentedString(Object o) {
134 | if (o == null) {
135 | return "null";
136 | }
137 | return o.toString().replace("\n", "\n ");
138 | }
139 |
140 | }
141 |
142 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/WebClient.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Objects;
17 | import java.util.Map;
18 | import java.util.HashMap;
19 | import com.croct.client.export.model.Browser;
20 | import com.croct.client.export.model.Device;
21 | import com.fasterxml.jackson.annotation.JsonInclude;
22 | import com.fasterxml.jackson.annotation.JsonProperty;
23 | import com.fasterxml.jackson.annotation.JsonCreator;
24 | import com.fasterxml.jackson.annotation.JsonTypeName;
25 | import com.fasterxml.jackson.annotation.JsonValue;
26 | import java.util.Arrays;
27 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
28 | import com.croct.client.export.JSON;
29 |
30 |
31 | /**
32 | * The available information about a web client.
33 | */
34 | @JsonPropertyOrder({
35 | WebClient.JSON_PROPERTY_BROWSER,
36 | WebClient.JSON_PROPERTY_DEVICE
37 | })
38 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
39 | public class WebClient {
40 | public static final String JSON_PROPERTY_BROWSER = "browser";
41 | private Browser browser;
42 |
43 | public static final String JSON_PROPERTY_DEVICE = "device";
44 | private Device device;
45 |
46 | public WebClient() {
47 | }
48 |
49 | public WebClient browser(Browser browser) {
50 | this.browser = browser;
51 | return this;
52 | }
53 |
54 | /**
55 | * Get browser
56 | * @return browser
57 | **/
58 | @javax.annotation.Nonnull
59 | @JsonProperty(JSON_PROPERTY_BROWSER)
60 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
61 |
62 | public Browser getBrowser() {
63 | return browser;
64 | }
65 |
66 |
67 | @JsonProperty(JSON_PROPERTY_BROWSER)
68 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
69 | public void setBrowser(Browser browser) {
70 | this.browser = browser;
71 | }
72 |
73 |
74 | public WebClient device(Device device) {
75 | this.device = device;
76 | return this;
77 | }
78 |
79 | /**
80 | * Get device
81 | * @return device
82 | **/
83 | @javax.annotation.Nonnull
84 | @JsonProperty(JSON_PROPERTY_DEVICE)
85 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
86 |
87 | public Device getDevice() {
88 | return device;
89 | }
90 |
91 |
92 | @JsonProperty(JSON_PROPERTY_DEVICE)
93 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
94 | public void setDevice(Device device) {
95 | this.device = device;
96 | }
97 |
98 |
99 | /**
100 | * Return true if this WebClient object is equal to o.
101 | */
102 | @Override
103 | public boolean equals(Object o) {
104 | if (this == o) {
105 | return true;
106 | }
107 | if (o == null || getClass() != o.getClass()) {
108 | return false;
109 | }
110 | WebClient webClient = (WebClient) o;
111 | return Objects.equals(this.browser, webClient.browser) &&
112 | Objects.equals(this.device, webClient.device);
113 | }
114 |
115 | @Override
116 | public int hashCode() {
117 | return Objects.hash(browser, device);
118 | }
119 |
120 | @Override
121 | public String toString() {
122 | StringBuilder sb = new StringBuilder();
123 | sb.append("class WebClient {\n");
124 | sb.append(" browser: ").append(toIndentedString(browser)).append("\n");
125 | sb.append(" device: ").append(toIndentedString(device)).append("\n");
126 | sb.append("}");
127 | return sb.toString();
128 | }
129 |
130 | /**
131 | * Convert the given object to string with each line indented by 4 spaces
132 | * (except the first line).
133 | */
134 | private String toIndentedString(Object o) {
135 | if (o == null) {
136 | return "null";
137 | }
138 | return o.toString().replace("\n", "\n ");
139 | }
140 |
141 | }
142 |
143 |
--------------------------------------------------------------------------------
/src/main/java/com/croct/client/export/model/WebContext.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Croct Export
3 | * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4 | *
5 | * The version of the OpenAPI document: 0.3.0
6 | * Contact: apis@croct.com
7 | *
8 | * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9 | * https://openapi-generator.tech
10 | * Do not edit the class manually.
11 | */
12 |
13 |
14 | package com.croct.client.export.model;
15 |
16 | import java.util.Map;
17 | import java.util.HashMap;
18 | import com.fasterxml.jackson.annotation.JsonAnyGetter;
19 | import com.fasterxml.jackson.annotation.JsonAnySetter;
20 | import java.util.Objects;
21 | import java.util.Map;
22 | import java.util.HashMap;
23 | import com.croct.client.export.model.EventContext;
24 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
25 | import com.fasterxml.jackson.annotation.JsonInclude;
26 | import com.fasterxml.jackson.annotation.JsonProperty;
27 | import com.fasterxml.jackson.annotation.JsonCreator;
28 | import com.fasterxml.jackson.annotation.JsonSubTypes;
29 | import com.fasterxml.jackson.annotation.JsonTypeInfo;
30 | import com.fasterxml.jackson.annotation.JsonTypeName;
31 | import com.fasterxml.jackson.annotation.JsonValue;
32 | import java.net.URI;
33 | import java.util.Arrays;
34 | import java.util.HashMap;
35 | import java.util.Map;
36 | import java.util.UUID;
37 | import com.fasterxml.jackson.annotation.JsonPropertyOrder;
38 | import com.croct.client.export.JSON;
39 |
40 |
41 | /**
42 | * The context of the web client at the time the event was tracked.
43 | */
44 | @JsonPropertyOrder({
45 | WebContext.JSON_PROPERTY_TAB_ID,
46 | WebContext.JSON_PROPERTY_URL
47 | })
48 | @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0-SNAPSHOT")
49 | @JsonIgnoreProperties(
50 | value = "type", // ignore manually set type, it will be automatically generated by Jackson during serialization
51 | allowSetters = true // allows the type to be set during deserialization
52 | )
53 | @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type", visible = true)
54 |
55 | public class WebContext extends EventContext {
56 | public static final String JSON_PROPERTY_TAB_ID = "tabId";
57 | private UUID tabId;
58 |
59 | public static final String JSON_PROPERTY_URL = "url";
60 | private URI url;
61 |
62 | public WebContext() {
63 | }
64 |
65 | public WebContext tabId(UUID tabId) {
66 | this.tabId = tabId;
67 | return this;
68 | }
69 |
70 | /**
71 | * The ID that uniquely identifies the tab across the session.
72 | * @return tabId
73 | **/
74 | @javax.annotation.Nonnull
75 | @JsonProperty(JSON_PROPERTY_TAB_ID)
76 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
77 |
78 | public UUID getTabId() {
79 | return tabId;
80 | }
81 |
82 |
83 | @JsonProperty(JSON_PROPERTY_TAB_ID)
84 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
85 | public void setTabId(UUID tabId) {
86 | this.tabId = tabId;
87 | }
88 |
89 |
90 | public WebContext url(URI url) {
91 | this.url = url;
92 | return this;
93 | }
94 |
95 | /**
96 | * The URL of the page that the client was on.
97 | * @return url
98 | **/
99 | @javax.annotation.Nonnull
100 | @JsonProperty(JSON_PROPERTY_URL)
101 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
102 |
103 | public URI getUrl() {
104 | return url;
105 | }
106 |
107 |
108 | @JsonProperty(JSON_PROPERTY_URL)
109 | @JsonInclude(value = JsonInclude.Include.ALWAYS)
110 | public void setUrl(URI url) {
111 | this.url = url;
112 | }
113 |
114 | /**
115 | * A container for additional, undeclared properties.
116 | * This is a holder for any undeclared properties as specified with
117 | * the 'additionalProperties' keyword in the OAS document.
118 | */
119 | private Map additionalProperties;
120 |
121 | /**
122 | * Set the additional (undeclared) property with the specified name and value.
123 | * If the property does not already exist, create it otherwise replace it.
124 | */
125 | @JsonAnySetter
126 | public WebContext putAdditionalProperty(String key, Object value) {
127 | if (this.additionalProperties == null) {
128 | this.additionalProperties = new HashMap<>();
129 | }
130 | this.additionalProperties.put(key, value);
131 | return this;
132 | }
133 |
134 | /**
135 | * Return the additional (undeclared) property.
136 | */
137 | @JsonAnyGetter
138 | public Map getAdditionalProperties() {
139 | return additionalProperties;
140 | }
141 |
142 | /**
143 | * Return the additional (undeclared) property with the specified name.
144 | */
145 | public Object getAdditionalProperty(String key) {
146 | if (this.additionalProperties == null) {
147 | return null;
148 | }
149 | return this.additionalProperties.get(key);
150 | }
151 |
152 | /**
153 | * Return true if this WebContext object is equal to o.
154 | */
155 | @Override
156 | public boolean equals(Object o) {
157 | if (this == o) {
158 | return true;
159 | }
160 | if (o == null || getClass() != o.getClass()) {
161 | return false;
162 | }
163 | WebContext webContext = (WebContext) o;
164 | return Objects.equals(this.tabId, webContext.tabId) &&
165 | Objects.equals(this.url, webContext.url)&&
166 | Objects.equals(this.additionalProperties, webContext.additionalProperties) &&
167 | super.equals(o);
168 | }
169 |
170 | @Override
171 | public int hashCode() {
172 | return Objects.hash(tabId, url, super.hashCode(), additionalProperties);
173 | }
174 |
175 | @Override
176 | public String toString() {
177 | StringBuilder sb = new StringBuilder();
178 | sb.append("class WebContext {\n");
179 | sb.append(" ").append(toIndentedString(super.toString())).append("\n");
180 | sb.append(" tabId: ").append(toIndentedString(tabId)).append("\n");
181 | sb.append(" url: ").append(toIndentedString(url)).append("\n");
182 | sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
183 | sb.append("}");
184 | return sb.toString();
185 | }
186 |
187 | /**
188 | * Convert the given object to string with each line indented by 4 spaces
189 | * (except the first line).
190 | */
191 | private String toIndentedString(Object o) {
192 | if (o == null) {
193 | return "null";
194 | }
195 | return o.toString().replace("\n", "\n ");
196 | }
197 |
198 | static {
199 | // Initialize and register the discriminator mappings.
200 | Map> mappings = new HashMap<>();
201 | mappings.put("WebContext", WebContext.class);
202 | JSON.registerDiscriminator(WebContext.class, "type", mappings);
203 | }
204 | }
205 |
206 |
--------------------------------------------------------------------------------