Skip to content

Commit

Permalink
Updated SDK to MV=57, Supports ReimburseCharge read/query, Fixed comm…
Browse files Browse the repository at this point in the history
…ents on files by another PR
  • Loading branch information
nimisha84 committed Nov 7, 2020
1 parent 95d07a1 commit 543fefa
Show file tree
Hide file tree
Showing 18 changed files with 728 additions and 519 deletions.
4 changes: 2 additions & 2 deletions IPPDotNetDevKitCSV3/Code/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<PackageIcon>$(MSBuildThisFileDirectory)logo.png</PackageIcon>
<OutputPath>$(SolutionDir)artifacts\bin</OutputPath>
<Copyright>Copyright © 2020 Intuit, Inc.</Copyright>
<AssemblyVersion>14.4.1.0</AssemblyVersion>
<FileVersion>14.4.1.0</FileVersion>
<AssemblyVersion>14.4.2.0</AssemblyVersion>
<FileVersion>14.4.2.0</FileVersion>
<Company>Intuit</Company>
<AppendTargetFrameworkToOutputPath>true</AppendTargetFrameworkToOutputPath>
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ internal static ServiceContext InitializeServiceContextQbo(string status=null)
else
reqValidator = new OAuth2RequestValidator(AuthorizationKeysQBO.accessTokenQBO);
context = new ServiceContext(AuthorizationKeysQBO.realmIdIAQBO, IntuitServicesType.QBO, reqValidator);
context.IppConfiguration.MinorVersion.Qbo = "43";
//context.IppConfiguration.MinorVersion.Qbo = "57";
DataService.DataService service = new DataService.DataService(context);
var compinfo = service.FindAll<CompanyInfo>(new CompanyInfo());
return context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
<value>Please specify a valid directory path.</value>
</data>
<data name="DefaultMinorVersionValue" xml:space="preserve">
<value>55</value>
<value>57</value>
</data>
<data name="ArgumentCannotBeGreaterThanBaseline" xml:space="preserve">
<value>The specified argument {0} cannot be greater than its ceiling value of {1}.</value>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<PackageId>IppDotNetSdkForQuickBooksApiV3</PackageId>
<AssemblyName>IppDotNetSdkForQuickBooksApiV3</AssemblyName>
<DocumentationFile>$(BaseOutputPath)$(AssemblyName).xml</DocumentationFile>
<MainVersion>14.4.1.0</MainVersion>
<MainVersion>14.4.2.0</MainVersion>
<!--<PackageVersionSuffix>stable</PackageVersionSuffix>-->
<!--<Version>$(MainVersion)-$(PackageVersionSuffix)</Version>-->
<Version>$(MainVersion)</Version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"Oauth2Keys": {
"AccessToken": "",
"RefreshToken": "",
"RealmId": "",
"ClientId": "",
"ClientSecret": "",
"AccessToken": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..h_eJRvHSvANIE6sMkIKjQg.WTaMBodO2eqFK6vJKTQUTyLdUkfpgLevPyH1G0YdEFayaraqqGBhPxoig1CwCw02uuRDL7Suy1yOgus4KZ4SBV8-HOXbxkHbpybITF5i9v2DzjaCMSPnJuDZ8A30cIa2rI8MGIJ7HOZ-UCoDU-DX1aPMp-g5fJ6zl_vuDg8AVmfahY2X8bQBPRlEKp9C22RAzi5x79w0BaMOwRLO_uDLr851GB2BIoKbvbhv1vRwsfzRO7T96w2un086fYn91NCalbr7gybNiJwF3zoZiBxMvRGIFstjAjGM_9DNh2xGkxKQRSrL3v801M7UGCiXx12I5Zb_9maEqFNPauAo8ugr2ceIPU_7nJJnlKHXq7Q1vXsfUUt-dWh5GBvDgCVNTYU7acnK5_TULhy5K98jUl45vahhq_YWZraQlGHOxmnNW7t1Rs1M4qNUwtC_7Six8nHk1r6XvyD5TPrpajsb7kQ0mnyrcCyY8LFFfBLg91UMRlkVSJecVZJmfQIOofi7VJVx6buz23lzYVRYLcADYL4jV1EUf9L1k8fTo7ovEpPzQ6JfStctvnTnnoIvYRgx5cSlybmEQohy_obPtAWWSMAGqZETkJVa_Jz89RqQTQBLZpDfE2YXEz3oJiPs5do6kbKq8sYs0OrBSe_vmS_1WkdkL5gqm2GsuR5W4_rRbxwNZidZeNLjG-NHszMn918MDCpTUHvLmu1uP4_WHhcdSJJjU4ddoGN2Beerigzn7nBuOxfub1IMRTUw0TlJEqIWq2BCegDOmWAJ8lW8nqw93M9J5M8awATjXZrEejnJa-Vu8HSfVvymQoR7XyNbAtgbLifw.s1fJqlV7cpZ5GryKEm0A5w",
"RefreshToken": "AB11613435323pDe75Qb78HSNEQdFDGK26DaBYFkBxfTVDqoCC",
"RealmId": "123146090856284",
"ClientId": "Q0joY7aqSROhDAspO4JLoH6ChEtpBvYalZIUwQOg3u5cwbVEaL",
"ClientSecret": "aHPShUDVCEg332ggf7pM3ffAkx6LyzcZIBh5muF5",
"RedirectUrl": "https://developer.intuit.com/v2/OAuth2Playground/RedirectUrl",
"QBOBaseUrl": "https://sandbox-quickbooks.api.intuit.com/",
"Environment": "sandbox"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public static class CoreConstants
/// <summary>
/// The Request source header value.
/// </summary>
public const string REQUESTSOURCEHEADER = "V3DotNetSDK14.4.1.0";
public const string REQUESTSOURCEHEADER = "V3DotNetSDK14.4.2.0";

/// <summary>
/// multipart/form-data format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ public async System.Threading.Tasks.Task QboApiCall()
lineSalesItemLineDetail.ItemRef = new ReferenceType()
{
name = item.Name,

Value = item.Id
};
//Line Sales Item Line Detail - UnitPrice
Expand All @@ -434,45 +434,6 @@ public async System.Threading.Tasks.Task QboApiCall()
//Assign Line Item to Invoice
invoice.Line = new Line[] { invoiceLine };

//Line
Line invoiceReimburseLine = new Line();
//Line Description
invoiceReimburseLine.Description = "Invoice line description.";
//Line Amount
invoiceReimburseLine.Amount = 330m;
invoiceReimburseLine.AmountSpecified = true;
//Line Detail Type
invoiceReimburseLine.DetailType = LineDetailTypeEnum.ReimburseLineDetail;
invoiceReimburseLine.DetailTypeSpecified = true;
//Line Sales Item Line Detail
ReimburseLineDetail lineReimburseLineDetail = new ReimburseLineDetail();
//Line Sales Item Line Detail - ItemRef
lineReimburseLineDetail.ItemRef = new ReferenceType()
{
name = item.Name,

Value = item.Id
};
//Line Sales Item Line Detail - UnitPrice
lineReimburseLineDetail.AnyIntuitObject = 33m;
lineReimburseLineDetail.ItemElementName = ItemChoiceType.UnitPrice;
//Line Sales Item Line Detail - Qty
lineReimburseLineDetail.Qty = 10;
lineReimburseLineDetail.QtySpecified = true;
//Line Sales Item Line Detail - TaxCodeRef
//For US companies, this can be 'TAX' or 'NON'
lineReimburseLineDetail.TaxCodeRef = new ReferenceType()
{
Value = "NON"
};
//Line Sales Item Line Detail - ServiceDate
//lineSalesItemLineDetail.ServiceDate = DateTime.Now.Date;
//lineSalesItemLineDetail.ServiceDateSpecified = true;
//Assign Sales Item Line Detail to Line Item
invoiceReimburseLine.AnyIntuitObject = lineReimburseLineDetail;
//Assign Line Item to Invoice
invoice.Line.Append(invoiceReimburseLine);

//TxnTaxDetail
TxnTaxDetail txnTaxDetail = new TxnTaxDetail();
txnTaxDetail.TxnTaxCodeRef = new ReferenceType()
Expand Down Expand Up @@ -555,10 +516,11 @@ public async System.Threading.Tasks.Task QboApiCall()

};

// List<IEntity> n = new List<IEntity>();
// n.Add(invoice) ;

recur.AnyIntuitObject = invoice;





RecurringTransaction recurAdded = dataService.Add<RecurringTransaction>(recur);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,64 +44,49 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Intuit.Ipp.Core, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.Core">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.Core.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.Data, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.Data">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.Data.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.DataService, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.DataService">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.DataService.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.Diagnostics, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.Diagnostics">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.Diagnostics.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.EntitlementService, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.EntitlementService">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.EntitlementService.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.Exception, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.Exception">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.Exception.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.GlobalTaxService, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.GlobalTaxService">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.GlobalTaxService.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.OAuth2PlatformClient, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.OAuth2PlatformClient">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.OAuth2PlatformClient.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.QueryFilter, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.QueryFilter">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.QueryFilter.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.ReportService, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.ReportService">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.ReportService.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.Retry, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.Retry">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.Retry.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.Security, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.Security">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.Security.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.Utility, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.Utility">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.Utility.dll</HintPath>
</Reference>
<Reference Include="Intuit.Ipp.WebHooksService, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="Intuit.Ipp.WebHooksService">
<HintPath>..\..\..\artifacts\bin\net472\Intuit.Ipp.WebHooksService.dll</HintPath>
</Reference>
<Reference Include="IppDotNetSdkForQuickBooksApiV3, Version=14.3.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<Reference Include="IppDotNetSdkForQuickBooksApiV3">
<HintPath>..\..\..\artifacts\bin\net472\IppDotNetSdkForQuickBooksApiV3.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Azure.Documents.Client, Version=2.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"Oauth2Keys": {
"AccessToken": "",
"RefreshToken": "",
"RealmId": "",
"ClientId": "",
"ClientSecret": "",
"AccessToken": "eyJlbmMiOiJBMTI4Q0JDLUhTMjU2IiwiYWxnIjoiZGlyIn0..h_eJRvHSvANIE6sMkIKjQg.WTaMBodO2eqFK6vJKTQUTyLdUkfpgLevPyH1G0YdEFayaraqqGBhPxoig1CwCw02uuRDL7Suy1yOgus4KZ4SBV8-HOXbxkHbpybITF5i9v2DzjaCMSPnJuDZ8A30cIa2rI8MGIJ7HOZ-UCoDU-DX1aPMp-g5fJ6zl_vuDg8AVmfahY2X8bQBPRlEKp9C22RAzi5x79w0BaMOwRLO_uDLr851GB2BIoKbvbhv1vRwsfzRO7T96w2un086fYn91NCalbr7gybNiJwF3zoZiBxMvRGIFstjAjGM_9DNh2xGkxKQRSrL3v801M7UGCiXx12I5Zb_9maEqFNPauAo8ugr2ceIPU_7nJJnlKHXq7Q1vXsfUUt-dWh5GBvDgCVNTYU7acnK5_TULhy5K98jUl45vahhq_YWZraQlGHOxmnNW7t1Rs1M4qNUwtC_7Six8nHk1r6XvyD5TPrpajsb7kQ0mnyrcCyY8LFFfBLg91UMRlkVSJecVZJmfQIOofi7VJVx6buz23lzYVRYLcADYL4jV1EUf9L1k8fTo7ovEpPzQ6JfStctvnTnnoIvYRgx5cSlybmEQohy_obPtAWWSMAGqZETkJVa_Jz89RqQTQBLZpDfE2YXEz3oJiPs5do6kbKq8sYs0OrBSe_vmS_1WkdkL5gqm2GsuR5W4_rRbxwNZidZeNLjG-NHszMn918MDCpTUHvLmu1uP4_WHhcdSJJjU4ddoGN2Beerigzn7nBuOxfub1IMRTUw0TlJEqIWq2BCegDOmWAJ8lW8nqw93M9J5M8awATjXZrEejnJa-Vu8HSfVvymQoR7XyNbAtgbLifw.s1fJqlV7cpZ5GryKEm0A5w",
"RefreshToken": "AB11613435323pDe75Qb78HSNEQdFDGK26DaBYFkBxfTVDqoCC",
"RealmId": "123146090856284",
"ClientId": "Q0joY7aqSROhDAspO4JLoH6ChEtpBvYalZIUwQOg3u5cwbVEaL",
"ClientSecret": "aHPShUDVCEg332ggf7pM3ffAkx6LyzcZIBh5muF5",
"RedirectUrl": "https://developer.intuit.com/v2/OAuth2Playground/RedirectUrl",
"QBOBaseUrl": "https://sandbox-quickbooks.api.intuit.com/",
"Environment": "sandbox"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ internal static ServiceContext InitializeQBOServiceContextUsingoAuth()

reqValidator = new OAuth2RequestValidator(AuthorizationKeysQBO.accessTokenQBO);
context = new ServiceContext(AuthorizationKeysQBO.realmIdIAQBO, IntuitServicesType.QBO, reqValidator);
context.IppConfiguration.MinorVersion.Qbo = "54";
context.IppConfiguration.MinorVersion.Qbo = "57";
context.IppConfiguration.BaseUrl.Qbo = "https://sandbox-quickbooks.api.intuit.com/";
DataService.DataService service = new DataService.DataService(context);
var compinfo= service.FindAll<CompanyInfo>(new CompanyInfo());
Expand Down
Loading

0 comments on commit 543fefa

Please sign in to comment.