Skip to content

Commit b411770

Browse files
Merge pull request #363 from sujitharamadass/Webhooks
Batch item limit updated to 30
2 parents 816b988 + e9e0618 commit b411770

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

IPPDotNetDevKitCSV3/Code/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<PackageIcon>$(MSBuildThisFileDirectory)logo.png</PackageIcon>
1515
<OutputPath>$(SolutionDir)artifacts\bin</OutputPath>
1616
<Copyright>Copyright © 2020 Intuit, Inc.</Copyright>
17-
<AssemblyVersion>14.7.0.2</AssemblyVersion>
18-
<FileVersion>14.7.0.2</FileVersion>
17+
<AssemblyVersion>14.7.0.3</AssemblyVersion>
18+
<FileVersion>14.7.0.3</FileVersion>
1919
<Company>Intuit</Company>
2020
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
2121
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>

IPPDotNetDevKitCSV3/Code/Intuit.Ipp.DataService.Test/BatchTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public void AddNullEntityInBatch()
224224

225225
[TestMethod]
226226
[ExpectedException(typeof(Intuit.Ipp.Exception.IdsException))]
227-
public void AddMoreThanTwentyFiveItemsInBatch()
227+
public void AddMoreThanThirtyItemsInBatch()
228228
{
229229
ServiceContext context = Initializer.InitializeServiceContextQbo();
230230
DataService service = new DataService(context);
@@ -266,7 +266,7 @@ public void AddEmptyIdToBatch()
266266

267267
[TestMethod]
268268
[ExpectedException(typeof(Intuit.Ipp.Exception.IdsException))]
269-
public void AddTwentyFivePlusToBatch()
269+
public void AddThirtyPlusToBatch()
270270
{
271271
Batch batch = GetBatch();
272272
string queryId = string.Empty;
@@ -322,7 +322,7 @@ public void AddEmptyIdToBatchEntity()
322322

323323
[TestMethod]
324324
[ExpectedException(typeof(Intuit.Ipp.Exception.IdsException))]
325-
public void AddTwentyFivePlusToBatchEntity()
325+
public void AddThirtyPlusToBatchEntity()
326326
{
327327
Batch batch = GetBatch();
328328
string queryId = string.Empty;

IPPDotNetDevKitCSV3/Code/Intuit.Ipp.DataService/Batch.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public void Add(string query, string id, List<String> optionsData)
211211
IdsExceptionManager.HandleException(exception);
212212
}
213213

214-
if (this.batchRequests.Count > 30)
214+
if (this.batchRequests.Count >= 30)
215215
{
216216
IdsException exception = new IdsException(Resources.batchItemsExceededMessage, new BatchItemsExceededException(Resources.batchItemsExceededMessage));
217217
this.serviceContext.IppConfiguration.Logger.CustomLogger.Log(Diagnostics.TraceLevel.Error, string.Format(CultureInfo.InvariantCulture, Resources.ExceptionGeneratedMessage, exception.ToString()));
@@ -344,7 +344,7 @@ public void Add(IEntity entity, string id, OperationEnum operation, List<String>
344344
IdsExceptionManager.HandleException(exception);
345345
}
346346

347-
if (this.batchRequests.Count > 30)
347+
if (this.batchRequests.Count >= 30)
348348
{
349349
IdsException exception = new IdsException(Resources.batchItemsExceededMessage, new BatchItemsExceededException(Resources.batchItemsExceededMessage));
350350
this.serviceContext.IppConfiguration.Logger.CustomLogger.Log(Diagnostics.TraceLevel.Error, string.Format(CultureInfo.InvariantCulture, Resources.ExceptionGeneratedMessage, exception.ToString()));

IPPDotNetDevKitCSV3/Code/Intuit.Ipp.DataService/Properties/Resources.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
<value>string parameter can not be null or empty.</value>
185185
</data>
186186
<data name="batchItemsExceededMessage" xml:space="preserve">
187-
<value>Number of Items in Batch Request exceeded the permissible limit of 25 items.</value>
187+
<value>Number of Items in Batch Request exceeded the permissible limit of 30 items.</value>
188188
</data>
189189
<data name="PdfOperationNotSupportedOnEntity" xml:space="preserve">
190190
<value>Only entitites of type SalesReceipt, Invoice and Estimate are supported for this operation.</value>

IPPDotNetDevKitCSV3/Code/Intuit.Ipp.Exception/SdkExceptions/BatchItemsExceededException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Intuit.Ipp.Exception
2424
using Intuit.Ipp.Exception.Properties;
2525

2626
/// <summary>
27-
/// Represents an Exception raised when an batch collection exceeds 25 items.
27+
/// Represents an Exception raised when an batch collection exceeds 30 items.
2828
/// </summary>
2929
[System.Serializable]
3030
public class BatchItemsExceededException : SdkException

IPPDotNetDevKitCSV3/Code/Intuit.Ipp.Nupkg/Intuit.Ipp.Nupkg.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PackageId>IppDotNetSdkForQuickBooksApiV3</PackageId>
1010
<AssemblyName>IppDotNetSdkForQuickBooksApiV3</AssemblyName>
1111
<DocumentationFile>$(BaseOutputPath)$(AssemblyName).xml</DocumentationFile>
12-
<MainVersion>14.7.0.2</MainVersion>
12+
<MainVersion>14.7.0.3</MainVersion>
1313
<PackageVersionSuffix>pre</PackageVersionSuffix>
1414
<Version>$(MainVersion)-$(PackageVersionSuffix)</Version>
1515
<Version>$(MainVersion)</Version>

IPPDotNetDevKitCSV3/Code/Intuit.Ipp.ReportService/Properties/Resources.resx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@
112112
<value>2.0</value>
113113
</resheader>
114114
<resheader name="reader">
115-
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=9.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116116
</resheader>
117117
<resheader name="writer">
118-
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=9.1.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119119
</resheader>
120120
<data name="CommunicationErrorMessage" xml:space="preserve">
121121
<value>There was an error while communicating with the Ids Server.</value>
@@ -178,6 +178,6 @@
178178
<value>string parameter can not be null or empty.</value>
179179
</data>
180180
<data name="batchItemsExceededMessage" xml:space="preserve">
181-
<value>Number of Items in Batch Request exceeded the permissible limit of 25 items.</value>
181+
<value>Number of Items in Batch Request exceeded the permissible limit of 30 items.</value>
182182
</data>
183183
</root>

IPPDotNetDevKitCSV3/Code/Intuit.Ipp.Utility/Common/CoreConstants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public static class CoreConstants
250250
/// <summary>
251251
/// The Request source header value.
252252
/// </summary>
253-
public const string REQUESTSOURCEHEADER = "V3DotNetSDK14.7.0.2";
253+
public const string REQUESTSOURCEHEADER = "V3DotNetSDK14.7.0.3";
254254

255255
/// <summary>
256256
/// multipart/form-data format

IPPDotNetDevKitCSV3/Tools/XsdExtension/Intuit.Ipp.Data/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<PackageOutputPath>$(SolutionDir)artifacts\nupkg</PackageOutputPath>
1414
<OutputPath>$(SolutionDir)artifacts\bin</OutputPath>
1515
<Copyright>Copyright © 2020 Intuit, Inc.</Copyright>
16-
<AssemblyVersion>14.7.0.2</AssemblyVersion>
17-
<FileVersion>14.7.0.2</FileVersion>
16+
<AssemblyVersion>14.7.0.3</AssemblyVersion>
17+
<FileVersion>14.7.0.3</FileVersion>
1818
<Company>Intuit</Company>
1919
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
2020
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>

0 commit comments

Comments
 (0)