Skip to content

Commit 973ad43

Browse files
committed
Clean up
1 parent ab654a4 commit 973ad43

3 files changed

Lines changed: 0 additions & 76 deletions

File tree

src/main/java/com/integrationagent/hubspotApi/App.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/main/java/com/integrationagent/hubspotApi/utils/HubSpotHelper.java

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -37,31 +37,4 @@ public static String mapToJsonString(Map<String, String> map) {
3737

3838
return new JSONObject().put("properties", ja).toString();
3939
}
40-
41-
public static String getHubSpotStatus(String unsubscribeReason, String status) {
42-
String result;
43-
44-
if (status.equals("subscribed") && Strings.isNullOrEmpty(unsubscribeReason)) {
45-
result = "s_Active";
46-
} else {
47-
switch (unsubscribeReason) {
48-
case "admin_unsubscribed":
49-
result = "s_Refunded";
50-
break;
51-
case "auto_expired":
52-
result = "s_Expired";
53-
break;
54-
case "billing_failed":
55-
result = "s_billing_failed";
56-
break;
57-
case "client_cancelled":
58-
result = "s_Unsubscribed";
59-
break;
60-
default:
61-
result = "";
62-
break;
63-
}
64-
}
65-
return result;
66-
}
6740
}

src/test/java/com/integrationagent/hubspotApi/AppTest.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)