Skip to content

Commit cc41ca5

Browse files
committed
2.0.0
1 parent 25d55a9 commit cc41ca5

File tree

1,752 files changed

+189823
-17
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,752 files changed

+189823
-17
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ License
2525

2626
## Latest Version
2727

28+
- [2.0.0](/versions/2.0.0/README.md)
29+
- New fields have been added to the History Tracking Fields API.
30+
- Fixed the issue with the inventory mass conversion status API.
31+
2832
- [1.0.0](/versions/1.0.0/README.md)
2933

3034
- C# SDK upgraded to support v8 APIs.
@@ -55,15 +59,15 @@ You can include the SDK to your project using:
5559
- Package Manager
5660

5761
```sh
58-
Install-Package ZOHOCRMSDK-8.0 -Version 1.0.0
62+
Install-Package ZOHOCRMSDK-8.0 -Version 2.0.0
5963
Install-Package MySql.Data -Version 6.9.12
6064
Install-Package Newtonsoft.Json -Version 13.0.1
6165
```
6266

6367
- .NET CLI
6468

6569
```sh
66-
dotnet add package ZOHOCRMSDK-8.0 --version 1.0.0
70+
dotnet add package ZOHOCRMSDK-8.0 --version 2.0.0
6771
dotnet add package Newtonsoft.Json --version 13.0.1
6872
dotnet add package MySql.Data --version 6.9.12
6973
```
@@ -74,7 +78,7 @@ You can include the SDK to your project using:
7478

7579
```sh
7680
<ItemGroup>
77-
<PackageReference Include="ZOHOCRMSDK-8.0" Version="1.0.0" />
81+
<PackageReference Include="ZOHOCRMSDK-8.0" Version="2.0.0" />
7882
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
7983
<PackageReference Include="MySql.Data" Version="6.9.12" />
8084
</ItemGroup>
@@ -94,4 +98,4 @@ For example, if you generate the tokens for your Sandbox environment in the CN d
9498

9599
---
96100

97-
For more details, kindly refer [here](/versions/1.0.0/ZohoCRM/README.md).
101+
For more details, kindly refer [here](/versions/2.0.0/ZohoCRM/README.md).

ZohoCRM/Com/Zoho/Crm/API/Fields/Fields.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public class Fields : Model
7575
private List<PickListValue> pickListValues;
7676
private Crypt crypt;
7777
private Tooltip tooltip;
78+
private bool? historyTrackingEnabled;
7879
private HistoryTracking historyTracking;
7980
private AssociationDetails associationDetails;
8081
private List<Modules.MinifiedModule> allowedModules;
@@ -1409,6 +1410,26 @@ public Tooltip Tooltip
14091410
}
14101411
}
14111412

1413+
public bool? HistoryTrackingEnabled
1414+
{
1415+
/// <summary>The method to get the historyTrackingEnabled</summary>
1416+
/// <returns>bool? representing the historyTrackingEnabled</returns>
1417+
get
1418+
{
1419+
return this.historyTrackingEnabled;
1420+
1421+
}
1422+
/// <summary>The method to set the value to historyTrackingEnabled</summary>
1423+
/// <param name="historyTrackingEnabled">bool?</param>
1424+
set
1425+
{
1426+
this.historyTrackingEnabled=value;
1427+
1428+
this.keyModified["history_tracking_enabled"] = 1;
1429+
1430+
}
1431+
}
1432+
14121433
public HistoryTracking HistoryTracking
14131434
{
14141435
/// <summary>The method to get the historyTracking</summary>

ZohoCRM/Com/Zoho/Crm/API/Fields/HistoryTracking.cs

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,73 @@ namespace Com.Zoho.Crm.API.Fields
77

88
public class HistoryTracking : Model
99
{
10+
private string relatedListName;
11+
private Choice<string> durationConfiguration;
12+
private List<MinifiedField> followedFields;
1013
private HistoryTrackingModule module;
1114
private Modules.MinifiedModule durationConfiguredField;
1215
private Dictionary<string, int?> keyModified=new Dictionary<string, int?>();
1316

17+
public string RelatedListName
18+
{
19+
/// <summary>The method to get the relatedListName</summary>
20+
/// <returns>string representing the relatedListName</returns>
21+
get
22+
{
23+
return this.relatedListName;
24+
25+
}
26+
/// <summary>The method to set the value to relatedListName</summary>
27+
/// <param name="relatedListName">string</param>
28+
set
29+
{
30+
this.relatedListName=value;
31+
32+
this.keyModified["related_list_name"] = 1;
33+
34+
}
35+
}
36+
37+
public Choice<string> DurationConfiguration
38+
{
39+
/// <summary>The method to get the durationConfiguration</summary>
40+
/// <returns>Instance of Choice<String></returns>
41+
get
42+
{
43+
return this.durationConfiguration;
44+
45+
}
46+
/// <summary>The method to set the value to durationConfiguration</summary>
47+
/// <param name="durationConfiguration">Instance of Choice<string></param>
48+
set
49+
{
50+
this.durationConfiguration=value;
51+
52+
this.keyModified["duration_configuration"] = 1;
53+
54+
}
55+
}
56+
57+
public List<MinifiedField> FollowedFields
58+
{
59+
/// <summary>The method to get the followedFields</summary>
60+
/// <returns>Instance of List<MinifiedField></returns>
61+
get
62+
{
63+
return this.followedFields;
64+
65+
}
66+
/// <summary>The method to set the value to followedFields</summary>
67+
/// <param name="followedFields">Instance of List<MinifiedField></param>
68+
set
69+
{
70+
this.followedFields=value;
71+
72+
this.keyModified["followed_fields"] = 1;
73+
74+
}
75+
}
76+
1477
public HistoryTrackingModule Module
1578
{
1679
/// <summary>The method to get the module</summary>
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
using Com.Zoho.Crm.API.Util;
2+
using System.Collections.Generic;
3+
4+
namespace Com.Zoho.Crm.API.InventoryMassConvert
5+
{
6+
7+
public class ResponseWrapper : Model, ResponseHandler
8+
{
9+
private List<Status> data;
10+
private Dictionary<string, int?> keyModified=new Dictionary<string, int?>();
11+
12+
public List<Status> Data
13+
{
14+
/// <summary>The method to get the data</summary>
15+
/// <returns>Instance of List<Status></returns>
16+
get
17+
{
18+
return this.data;
19+
20+
}
21+
/// <summary>The method to set the value to data</summary>
22+
/// <param name="data">Instance of List<Status></param>
23+
set
24+
{
25+
this.data=value;
26+
27+
this.keyModified["data"] = 1;
28+
29+
}
30+
}
31+
32+
/// <summary>The method to check if the user has modified the given key</summary>
33+
/// <param name="key">string</param>
34+
/// <returns>int? representing the modification</returns>
35+
public int? IsKeyModified(string key)
36+
{
37+
if((( this.keyModified.ContainsKey(key))))
38+
{
39+
return this.keyModified[key];
40+
41+
}
42+
return null;
43+
44+
45+
}
46+
47+
/// <summary>The method to mark the given key as modified</summary>
48+
/// <param name="key">string</param>
49+
/// <param name="modification">int?</param>
50+
public void SetKeyModified(string key, int? modification)
51+
{
52+
this.keyModified[key] = modification;
53+
54+
55+
}
56+
57+
58+
}
59+
}

ZohoCRM/Com/Zoho/Crm/API/InventoryMassConvert/Status.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace Com.Zoho.Crm.API.InventoryMassConvert
55
{
66

7-
public class Status : Model, ResponseHandler
7+
public class Status : Model
88
{
99
private int? totalCount;
1010
private int? convertedCount;

ZohoCRM/Com/Zoho/Crm/API/Layouts/SectionField.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ public class SectionField : Fields.Fields , Model
8585
private Fields.AutoNumber autoNumber71;
8686
private Fields.Crypt crypt;
8787
private Fields.Tooltip tooltip;
88+
private bool? historyTrackingEnabled;
8889
private Fields.HistoryTracking historyTracking;
8990
private Fields.AssociationDetails associationDetails;
9091
private string additionalColumn;
@@ -1595,6 +1596,26 @@ public Fields.Tooltip Tooltip
15951596
}
15961597
}
15971598

1599+
public bool? HistoryTrackingEnabled
1600+
{
1601+
/// <summary>The method to get the historyTrackingEnabled</summary>
1602+
/// <returns>bool? representing the historyTrackingEnabled</returns>
1603+
get
1604+
{
1605+
return this.historyTrackingEnabled;
1606+
1607+
}
1608+
/// <summary>The method to set the value to historyTrackingEnabled</summary>
1609+
/// <param name="historyTrackingEnabled">bool?</param>
1610+
set
1611+
{
1612+
this.historyTrackingEnabled=value;
1613+
1614+
this.keyModified["history_tracking_enabled"] = 1;
1615+
1616+
}
1617+
}
1618+
15981619
public Fields.HistoryTracking HistoryTracking
15991620
{
16001621
/// <summary>The method to get the historyTracking</summary>

ZohoCRM/Com/Zoho/Crm/API/Modules/ModuleFields.cs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public class ModuleFields : Fields.Fields , Model
7878
private Fields.AutoNumber autoNumber65;
7979
private Fields.Crypt crypt;
8080
private Fields.Tooltip tooltip;
81+
private bool? historyTrackingEnabled;
8182
private Fields.HistoryTracking historyTracking;
8283
private Fields.AssociationDetails associationDetails;
8384
private string additionalColumn;
@@ -1469,6 +1470,26 @@ public Fields.Tooltip Tooltip
14691470
}
14701471
}
14711472

1473+
public bool? HistoryTrackingEnabled
1474+
{
1475+
/// <summary>The method to get the historyTrackingEnabled</summary>
1476+
/// <returns>bool? representing the historyTrackingEnabled</returns>
1477+
get
1478+
{
1479+
return this.historyTrackingEnabled;
1480+
1481+
}
1482+
/// <summary>The method to set the value to historyTrackingEnabled</summary>
1483+
/// <param name="historyTrackingEnabled">bool?</param>
1484+
set
1485+
{
1486+
this.historyTrackingEnabled=value;
1487+
1488+
this.keyModified["history_tracking_enabled"] = 1;
1489+
1490+
}
1491+
}
1492+
14721493
public Fields.HistoryTracking HistoryTracking
14731494
{
14741495
/// <summary>The method to get the historyTracking</summary>

ZohoCRM/Com/Zoho/Crm/API/Util/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public static class Constants
5555
public static readonly string LOG_FILE_NAME = "sdk_logs.log";
5656
public static readonly string TOKEN_FILE = "sdk_tokens.txt";
5757
public static readonly string ZOHO_SDK = "X-ZOHO-SDK";
58-
public static readonly string SDK_VERSION = "1.0.0";
58+
public static readonly string SDK_VERSION = "2.0.0";
5959
public static readonly string MODULEPACKAGENAME = "modulePackageName";
6060
public static readonly string MODULEDETAILS = "moduleDetails";
6161
public static readonly string DATATYPECONVERTER = "Com.Zoho.Crm.API.Util.DataTypeConverter`1[[$type]], ZOHOCRMSDK-8.0";

ZohoCRM/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ You can include the SDK to your project using:
7474
- Package Manager
7575

7676
```sh
77-
Install-Package ZOHOCRMSDK-8.0 -Version 1.0.0
77+
Install-Package ZOHOCRMSDK-8.0 -Version 2.0.0
7878
Install-Package MySql.Data -Version 6.9.12
7979
Install-Package Newtonsoft.Json -Version 13.0.1
8080
```
8181

8282
- .NET CLI
8383

8484
```sh
85-
dotnet add package ZOHOCRMSDK-8.0 --version 1.0.0
85+
dotnet add package ZOHOCRMSDK-8.0 --version 2.0.0
8686
dotnet add package Newtonsoft.Json --version 13.0.1
8787
dotnet add package MySql.Data --version 6.9.12
8888
```
@@ -93,7 +93,7 @@ You can include the SDK to your project using:
9393

9494
```sh
9595
<ItemGroup>
96-
<PackageReference Include="ZOHOCRMSDK-8.0" Version="1.0.0" />
96+
<PackageReference Include="ZOHOCRMSDK-8.0" Version="2.0.0" />
9797
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
9898
<PackageReference Include="MySql.Data" Version="6.9.12" />
9999
</ItemGroup>

ZohoCRM/Resources/JSONDetails.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)