Skip to content

Commit a687a42

Browse files
committed
rename internal company object
1 parent 95ed2f7 commit a687a42

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

intercom-java/src/main/java/io/intercom/api/Company.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static Company create(Company company) throws InvalidException, Authoriza
3434

3535
public static Company update(Company company) throws InvalidException, AuthorizationException {
3636
// because the data is asymmetric on the plan field
37-
final CompanyStringPlan entity = new CompanyStringPlan();
37+
final CompanyWithStringPlan entity = new CompanyWithStringPlan();
3838
entity.setCompanyID(company.getCompanyID());
3939
entity.setName(company.getName());
4040
entity.setSessionCount(company.getSessionCount());

intercom-java/src/main/java/io/intercom/api/CompanyStringPlan.java renamed to intercom-java/src/main/java/io/intercom/api/CompanyWithStringPlan.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
@SuppressWarnings("UnusedDeclaration")
1111
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
1212
@JsonIgnoreProperties(ignoreUnknown = true)
13-
class CompanyStringPlan extends TypedData {
13+
class CompanyWithStringPlan extends TypedData {
1414

1515
@JsonProperty("id")
1616
private String id;
@@ -37,7 +37,7 @@ class CompanyStringPlan extends TypedData {
3737
@JsonProperty("custom_attributes")
3838
private Map<String, CustomAttribute> customAttributes = Maps.newHashMap();
3939

40-
public CompanyStringPlan() {
40+
public CompanyWithStringPlan() {
4141
}
4242

4343
public String getType() {

intercom-java/src/main/java/io/intercom/api/User.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ public class User extends TypedData implements Replier {
2020

2121
private static final Map<String, String> SENTINEL = Maps.newHashMap();
2222

23-
private static List<CompanyStringPlan> buildUserUpdateCompanies(User user) {
23+
private static List<CompanyWithStringPlan> buildUserUpdateCompanies(User user) {
2424
// restrictions on the company data that can be sent via a user update
25-
final ArrayList<CompanyStringPlan> updatableCompanies = Lists.newArrayList();
25+
final ArrayList<CompanyWithStringPlan> updatableCompanies = Lists.newArrayList();
2626
if (user.getCompanyCollection() != null) {
2727
final List<Company> companies = user.getCompanyCollection().getPageItems();
2828
for (Company company : companies) {
29-
final CompanyStringPlan updatableCompany = new CompanyStringPlan();
29+
final CompanyWithStringPlan updatableCompany = new CompanyWithStringPlan();
3030
updatableCompany.setCompanyID(company.getCompanyID());
3131
updatableCompany.setName(company.getName());
3232
updatableCompany.setSessionCount(company.getSessionCount());
@@ -131,7 +131,7 @@ static UserUpdate buildFrom(User user) {
131131
private String lastSeenUserAgent;
132132

133133
@JsonProperty("companies")
134-
private List<CompanyStringPlan> companyCollection;
134+
private List<CompanyWithStringPlan> companyCollection;
135135

136136
@JsonProperty("last_request_at")
137137
private long lastRequestAt;
@@ -195,7 +195,7 @@ public String getLastSeenUserAgent() {
195195
return lastSeenUserAgent;
196196
}
197197

198-
public List<CompanyStringPlan> getCompanyCollection() {
198+
public List<CompanyWithStringPlan> getCompanyCollection() {
199199
return companyCollection;
200200
}
201201

0 commit comments

Comments
 (0)