Skip to content

Commit 2d2bda0

Browse files
authored
Merge pull request #17 from PandaDoc/template_details_contact_placeholders
Serve contact placeholders data in template details response
2 parents 5afc235 + 8009ae3 commit 2d2bda0

File tree

7 files changed

+69
-9
lines changed

7 files changed

+69
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Add this dependency to your project's POM:
3535
<dependency>
3636
<groupId>com.pandadoc</groupId>
3737
<artifactId>pandadoc-java-client</artifactId>
38-
<version>5.4.1</version>
38+
<version>5.5.0</version>
3939
<scope>compile</scope>
4040
</dependency>
4141
```
@@ -45,7 +45,7 @@ Add this dependency to your project's POM:
4545
Add this dependency to your project's build file:
4646

4747
```groovy
48-
compile "com.pandadoc:pandadoc-java-client:5.4.1"
48+
compile "com.pandadoc:pandadoc-java-client:5.5.0"
4949
```
5050

5151
### Others
@@ -58,7 +58,7 @@ mvn clean package
5858

5959
Then manually install the following JARs:
6060

61-
- `target/pandadoc-java-client-5.4.1.jar`
61+
- `target/pandadoc-java-client-5.5.0.jar`
6262
- `target/lib/*.jar`
6363

6464
## Getting Started

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'java'
44
apply plugin: 'com.diffplug.spotless'
55

66
group = 'com.pandadoc'
7-
version = '5.4.1'
7+
version = '5.5.0'
88

99
buildscript {
1010
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.pandadoc",
44
name := "pandadoc-java-client",
5-
version := "5.4.1",
5+
version := "5.5.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/TemplateDetailsResponsePreassignedPerson.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
1010
**email** | **String** | | [optional]
1111
**type** | **String** | | [optional]
12+
**placeholderName** | **String** | | [optional]
13+
**placeholderSource** | **String** | | [optional]
1214

1315

1416

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>pandadoc-java-client</artifactId>
66
<packaging>jar</packaging>
77
<name>pandadoc-java-client</name>
8-
<version>5.4.1</version>
8+
<version>5.5.0</version>
99
<url>https://github.com/PandaDoc/pandadoc-api-java-client</url>
1010
<description>PandaDoc SDK spans a broad range of functionality to help you build incredible documents automation experiences inside your product.</description>
1111
<scm>

src/main/java/com/pandadoc/client/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ private void init() {
204204
json = new JSON();
205205

206206
// Set default User-Agent.
207-
setUserAgent("pandadoc_java_client/5.4.1");
207+
setUserAgent("pandadoc_java_client/5.5.0");
208208

209209
authentications = new HashMap<String, Authentication>();
210210
}

src/main/java/com/pandadoc/client/models/TemplateDetailsResponsePreassignedPerson.java

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,14 @@ public class TemplateDetailsResponsePreassignedPerson {
3636
@SerializedName(SERIALIZED_NAME_TYPE)
3737
private String type;
3838

39+
public static final String SERIALIZED_NAME_PLACEHOLDER_NAME = "placeholder_name";
40+
@SerializedName(SERIALIZED_NAME_PLACEHOLDER_NAME)
41+
private String placeholderName;
42+
43+
public static final String SERIALIZED_NAME_PLACEHOLDER_SOURCE = "placeholder_source";
44+
@SerializedName(SERIALIZED_NAME_PLACEHOLDER_SOURCE)
45+
private String placeholderSource;
46+
3947
public TemplateDetailsResponsePreassignedPerson() {
4048
}
4149

@@ -85,6 +93,52 @@ public void setType(String type) {
8593
}
8694

8795

96+
public TemplateDetailsResponsePreassignedPerson placeholderName(String placeholderName) {
97+
98+
this.placeholderName = placeholderName;
99+
return this;
100+
}
101+
102+
/**
103+
* Get placeholderName
104+
* @return placeholderName
105+
**/
106+
@javax.annotation.Nullable
107+
@ApiModelProperty(example = "Employee", value = "")
108+
109+
public String getPlaceholderName() {
110+
return placeholderName;
111+
}
112+
113+
114+
public void setPlaceholderName(String placeholderName) {
115+
this.placeholderName = placeholderName;
116+
}
117+
118+
119+
public TemplateDetailsResponsePreassignedPerson placeholderSource(String placeholderSource) {
120+
121+
this.placeholderSource = placeholderSource;
122+
return this;
123+
}
124+
125+
/**
126+
* Get placeholderSource
127+
* @return placeholderSource
128+
**/
129+
@javax.annotation.Nullable
130+
@ApiModelProperty(example = "bamboohr", value = "")
131+
132+
public String getPlaceholderSource() {
133+
return placeholderSource;
134+
}
135+
136+
137+
public void setPlaceholderSource(String placeholderSource) {
138+
this.placeholderSource = placeholderSource;
139+
}
140+
141+
88142
@Override
89143
public boolean equals(Object o) {
90144
if (this == o) {
@@ -95,12 +149,14 @@ public boolean equals(Object o) {
95149
}
96150
TemplateDetailsResponsePreassignedPerson templateDetailsResponsePreassignedPerson = (TemplateDetailsResponsePreassignedPerson) o;
97151
return Objects.equals(this.email, templateDetailsResponsePreassignedPerson.email) &&
98-
Objects.equals(this.type, templateDetailsResponsePreassignedPerson.type);
152+
Objects.equals(this.type, templateDetailsResponsePreassignedPerson.type) &&
153+
Objects.equals(this.placeholderName, templateDetailsResponsePreassignedPerson.placeholderName) &&
154+
Objects.equals(this.placeholderSource, templateDetailsResponsePreassignedPerson.placeholderSource);
99155
}
100156

101157
@Override
102158
public int hashCode() {
103-
return Objects.hash(email, type);
159+
return Objects.hash(email, type, placeholderName, placeholderSource);
104160
}
105161

106162
@Override
@@ -109,6 +165,8 @@ public String toString() {
109165
sb.append("class TemplateDetailsResponsePreassignedPerson {\n");
110166
sb.append(" email: ").append(toIndentedString(email)).append("\n");
111167
sb.append(" type: ").append(toIndentedString(type)).append("\n");
168+
sb.append(" placeholderName: ").append(toIndentedString(placeholderName)).append("\n");
169+
sb.append(" placeholderSource: ").append(toIndentedString(placeholderSource)).append("\n");
112170
sb.append("}");
113171
return sb.toString();
114172
}

0 commit comments

Comments
 (0)