-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v3.2.3:
SessionId
property of Event object returned from integratio…
…n API is optional (#9)
- Loading branch information
Showing
11 changed files
with
217 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
|
||
# IntegrationEvent | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**profileId** | **String** | ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | [optional] | ||
**type** | **String** | A string representing the event. Must not be a reserved event name. | | ||
**attributes** | [**Object**](.md) | Arbitrary additional JSON data associated with the event. | | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,144 @@ | ||
/* | ||
* Talon.One API | ||
* The Talon.One API is used to manage applications and campaigns, as well as to integrate with your application. The operations in the _Integration API_ section are used to integrate with our platform, while the other operations are used to manage applications and campaigns. ### Where is the API? The API is available at the same hostname as these docs. For example, if you are reading this page at `https://mycompany.talon.one/docs/api/`, the URL for the [updateCustomerProfile][] operation is `https://mycompany.talon.one/v1/customer_profiles/id` [updateCustomerProfile]: #operation--v1-customer_profiles--integrationId--put | ||
* | ||
* OpenAPI spec version: 1.0.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
package one.talon.model; | ||
|
||
import java.util.Objects; | ||
import java.util.Arrays; | ||
import com.google.gson.TypeAdapter; | ||
import com.google.gson.annotations.JsonAdapter; | ||
import com.google.gson.annotations.SerializedName; | ||
import com.google.gson.stream.JsonReader; | ||
import com.google.gson.stream.JsonWriter; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.io.IOException; | ||
|
||
/** | ||
* | ||
*/ | ||
@ApiModel(description = "") | ||
|
||
public class IntegrationEvent { | ||
public static final String SERIALIZED_NAME_PROFILE_ID = "profileId"; | ||
@SerializedName(SERIALIZED_NAME_PROFILE_ID) | ||
private String profileId; | ||
|
||
public static final String SERIALIZED_NAME_TYPE = "type"; | ||
@SerializedName(SERIALIZED_NAME_TYPE) | ||
private String type; | ||
|
||
public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; | ||
@SerializedName(SERIALIZED_NAME_ATTRIBUTES) | ||
private Object attributes = null; | ||
|
||
public IntegrationEvent profileId(String profileId) { | ||
this.profileId = profileId; | ||
return this; | ||
} | ||
|
||
/** | ||
* ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID. | ||
* @return profileId | ||
**/ | ||
@ApiModelProperty(value = "ID of the customers profile as used within this Talon.One account. May be omitted or set to the empty string if the customer does not yet have a known profile ID.") | ||
public String getProfileId() { | ||
return profileId; | ||
} | ||
|
||
public void setProfileId(String profileId) { | ||
this.profileId = profileId; | ||
} | ||
|
||
public IntegrationEvent type(String type) { | ||
this.type = type; | ||
return this; | ||
} | ||
|
||
/** | ||
* A string representing the event. Must not be a reserved event name. | ||
* @return type | ||
**/ | ||
@ApiModelProperty(required = true, value = "A string representing the event. Must not be a reserved event name.") | ||
public String getType() { | ||
return type; | ||
} | ||
|
||
public void setType(String type) { | ||
this.type = type; | ||
} | ||
|
||
public IntegrationEvent attributes(Object attributes) { | ||
this.attributes = attributes; | ||
return this; | ||
} | ||
|
||
/** | ||
* Arbitrary additional JSON data associated with the event. | ||
* @return attributes | ||
**/ | ||
@ApiModelProperty(required = true, value = "Arbitrary additional JSON data associated with the event.") | ||
public Object getAttributes() { | ||
return attributes; | ||
} | ||
|
||
public void setAttributes(Object attributes) { | ||
this.attributes = attributes; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
IntegrationEvent integrationEvent = (IntegrationEvent) o; | ||
return Objects.equals(this.profileId, integrationEvent.profileId) && | ||
Objects.equals(this.type, integrationEvent.type) && | ||
Objects.equals(this.attributes, integrationEvent.attributes); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(profileId, type, attributes); | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class IntegrationEvent {\n"); | ||
|
||
sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); | ||
sb.append(" type: ").append(toIndentedString(type)).append("\n"); | ||
sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces | ||
* (except the first line). | ||
*/ | ||
private String toIndentedString(java.lang.Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.