diff --git a/Xero.NetStandard.OAuth2/Client/ApiClient.cs b/Xero.NetStandard.OAuth2/Client/ApiClient.cs
index 5237fe3d..08af83a9 100644
--- a/Xero.NetStandard.OAuth2/Client/ApiClient.cs
+++ b/Xero.NetStandard.OAuth2/Client/ApiClient.cs
@@ -426,8 +426,24 @@ private HttpRequestMessage NewRequest(
return request;
}
- partial void InterceptRequest(HttpRequestMessage req);
- partial void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response);
+ ///
+ /// Intercepts the request before it is sent. Override to add custom logic.
+ ///
+ /// The HTTP request message.
+ protected virtual void InterceptRequest(HttpRequestMessage req)
+ {
+
+ }
+
+ ///
+ /// Intercepts the response after it is received. Override to add custom logic.
+ ///
+ /// The HTTP request message.
+ /// The HTTP response message.
+ protected virtual void InterceptResponse(HttpRequestMessage req, HttpResponseMessage response)
+ {
+
+ }
private async Task> ToApiResponse(HttpResponseMessage response, object responseData, Uri uri, bool isSuccess = true)
{
diff --git a/Xero.NetStandard.OAuth2/Client/Configuration.cs b/Xero.NetStandard.OAuth2/Client/Configuration.cs
index 2a345883..b45b2bcc 100644
--- a/Xero.NetStandard.OAuth2/Client/Configuration.cs
+++ b/Xero.NetStandard.OAuth2/Client/Configuration.cs
@@ -31,7 +31,7 @@ public class Configuration : IReadableConfiguration
/// Version of the package.
///
/// Version of the package.
- public const string Version = "12.1.0";
+ public const string Version = "12.2.0";
///
/// Identifier for ISO 8601 DateTime Format
@@ -103,7 +103,7 @@ public class Configuration : IReadableConfiguration
[System.Diagnostics.CodeAnalysis.SuppressMessage("ReSharper", "VirtualMemberCallInConstructor")]
public Configuration()
{
- UserAgent = "xero-netstandard-12.1.0";
+ UserAgent = "xero-netstandard-12.2.0";
BasePath = "https://api.xero.com/api.xro/2.0";
DefaultHeader = new ConcurrentDictionary();
ApiKey = new ConcurrentDictionary();
@@ -342,7 +342,7 @@ public static String ToDebugReport()
String report = "C# SDK (Xero.NetStandard.OAuth2) Debug Report:\n";
report += " OS: " + System.Runtime.InteropServices.RuntimeInformation.OSDescription + "\n";
report += " Version of the API: 9.1.0\n";
- report += " SDK Package Version: 12.1.0\n";
+ report += " SDK Package Version: 12.2.0\n";
return report;
}
diff --git a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
index 5e90a6c6..b050ee1a 100644
--- a/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
+++ b/Xero.NetStandard.OAuth2/Xero.NetStandard.OAuth2.csproj
@@ -16,7 +16,7 @@
true
true
Xero.NetStandard.OAuth2
- 12.1.0
+ 12.2.0
bin\$(Configuration)\$(TargetFramework)\Xero.NetStandard.OAuth2.xml
https://github.com/XeroAPI/Xero-NetStandard/
https://en.gravatar.com/userimage/180557955/74b3a957d886bc921b0d1455beed9dab.png
diff --git a/docs/accounting/index.html b/docs/accounting/index.html
index f893385c..cfe6f299 100644
--- a/docs/accounting/index.html
+++ b/docs/accounting/index.html
@@ -6340,7 +6340,7 @@