diff --git a/.konfig/changesets/plain-apples-argue.md b/.konfig/changesets/plain-apples-argue.md new file mode 100644 index 00000000..eb77693e --- /dev/null +++ b/.konfig/changesets/plain-apples-argue.md @@ -0,0 +1,11 @@ +--- +java: patch +python: patch +typescript: patch +csharp: patch +php: patch +go: patch +phpGuzzle6: patch +--- + +Regenerate SDKs diff --git a/.konfig/progress.yaml b/.konfig/progress.yaml index 6d518ee1..ba65615b 100644 --- a/.konfig/progress.yaml +++ b/.konfig/progress.yaml @@ -23,6 +23,8 @@ securityParameters: header: false X-Splitit-IdempotencyKey: header: false + X-Splitit-Strategy: + header: false X-Splitit-TestMode: header: false X-Splitit-TouchPoint: diff --git a/STATISTICS.md b/STATISTICS.md index 8d122bdb..38141909 100644 --- a/STATISTICS.md +++ b/STATISTICS.md @@ -2,11 +2,11 @@ | SDK Name | Lines of Code | | -------- | ------------- | -| java | 42939 | -| python | 41193 | -| typescript | 12367 | -| csharp | 26272 | -| php | 43719 | -| go | 30656 | -| phpGuzzle6 | 43719 | -| **Total** | 240865 | +| java | 43305 | +| python | 41786 | +| typescript | 12431 | +| csharp | 26513 | +| php | 43962 | +| go | 31018 | +| phpGuzzle6 | 43962 | +| **Total** | 242977 | diff --git a/csharp/.konfig/generate-id.txt b/csharp/.konfig/generate-id.txt index 18074da9..e8454117 100644 --- a/csharp/.konfig/generate-id.txt +++ b/csharp/.konfig/generate-id.txt @@ -1 +1 @@ -ca9fe135-b667-40db-9efe-98997fd6f676 \ No newline at end of file +ab9fadc8-b262-46cf-866c-0640d3186c35 \ No newline at end of file diff --git a/csharp/README.md b/csharp/README.md index 94024457..f6b5240f 100644 --- a/csharp/README.md +++ b/csharp/README.md @@ -158,6 +158,7 @@ Class | Method | HTTP request | Description - [PlanErrorResponse](docs/PlanErrorResponse.md) - [PlanErrorResponseAllOf](docs/PlanErrorResponseAllOf.md) - [PlanStatus](docs/PlanStatus.md) + - [PlanStrategy](docs/PlanStrategy.md) - [ProcessingData](docs/ProcessingData.md) - [ProcessingData2](docs/ProcessingData2.md) - [PurchaseMethod](docs/PurchaseMethod.md) diff --git a/csharp/Splitit.Web.Net.sln b/csharp/Splitit.Web.Net.sln index a34d00b5..85808672 100644 --- a/csharp/Splitit.Web.Net.sln +++ b/csharp/Splitit.Web.Net.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 14 VisualStudioVersion = 14.0.25420.1 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{DEB86C7F-1F37-4EA3-87AD-EBC9E52B8D20}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{DD674CF9-F05D-47F0-B2DD-322601E24A74}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net.Test", "src\Splitit.Web.Net.Test\Splitit.Web.Net.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {DEB86C7F-1F37-4EA3-87AD-EBC9E52B8D20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {DEB86C7F-1F37-4EA3-87AD-EBC9E52B8D20}.Debug|Any CPU.Build.0 = Debug|Any CPU - {DEB86C7F-1F37-4EA3-87AD-EBC9E52B8D20}.Release|Any CPU.ActiveCfg = Release|Any CPU - {DEB86C7F-1F37-4EA3-87AD-EBC9E52B8D20}.Release|Any CPU.Build.0 = Release|Any CPU + {DD674CF9-F05D-47F0-B2DD-322601E24A74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {DD674CF9-F05D-47F0-B2DD-322601E24A74}.Debug|Any CPU.Build.0 = Debug|Any CPU + {DD674CF9-F05D-47F0-B2DD-322601E24A74}.Release|Any CPU.ActiveCfg = Release|Any CPU + {DD674CF9-F05D-47F0-B2DD-322601E24A74}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/csharp/docs/InstallmentPlanApi.md b/csharp/docs/InstallmentPlanApi.md index d3e2aae3..da86e035 100644 --- a/csharp/docs/InstallmentPlanApi.md +++ b/csharp/docs/InstallmentPlanApi.md @@ -352,11 +352,12 @@ namespace Example processingData ); var xSplititTestMode = "None"; + var xSplititStrategy = "SecuredPlan"; var splititclientinfo = "splititclientinfo_example"; try { - InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo); + InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); Console.WriteLine(result); } catch (ApiException e) @@ -382,7 +383,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo); + ApiResponse response = apiInstance.PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -403,6 +404,7 @@ catch (ApiException e) | **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | | **installmentPlanInitiateRequest** | [**InstallmentPlanInitiateRequest**](InstallmentPlanInitiateRequest.md) | | | | **xSplititTestMode** | **string** | | [optional] | +| **xSplititStrategy** | **string** | | [optional] | | **splititclientinfo** | **string** | | [optional] | ### Return type @@ -472,11 +474,12 @@ namespace Example eventsEndpoints ); var xSplititTestMode = "None"; + var xSplititStrategy = "SecuredPlan"; var splititclientinfo = "splititclientinfo_example"; try { - InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo); + InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); Console.WriteLine(result); } catch (ApiException e) @@ -502,7 +505,7 @@ This returns an ApiResponse object which contains the response data, status code ```csharp try { - ApiResponse response = apiInstance.Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo); + ApiResponse response = apiInstance.Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); Debug.Write("Status Code: " + response.StatusCode); Debug.Write("Response Headers: " + response.Headers); Debug.Write("Response Body: " + response.Data); @@ -523,6 +526,7 @@ catch (ApiException e) | **xSplititTouchPoint** | **string** | TouchPoint | [default to ""] | | **installmentPlanCreateRequest** | [**InstallmentPlanCreateRequest**](InstallmentPlanCreateRequest.md) | | | | **xSplititTestMode** | **string** | | [optional] | +| **xSplititStrategy** | **string** | | [optional] | | **splititclientinfo** | **string** | | [optional] | ### Return type diff --git a/csharp/docs/PlanData.md b/csharp/docs/PlanData.md index bb5999b9..813f541d 100644 --- a/csharp/docs/PlanData.md +++ b/csharp/docs/PlanData.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **Tags** | **Dictionary<string, string>** | | [optional] **ProcessingData** | [**ProcessingData2**](ProcessingData2.md) | | [optional] **FirstInstallmentDate** | **DateTime** | | [optional] +**Strategy** | **PlanStrategy** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/csharp/docs/PlanStrategy.md b/csharp/docs/PlanStrategy.md new file mode 100644 index 00000000..212a2c6e --- /dev/null +++ b/csharp/docs/PlanStrategy.md @@ -0,0 +1,9 @@ +# Splitit.Web.Net.Model.PlanStrategy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/csharp/src/Splitit.Web.Net.Test/Api/InstallmentPlanApiTests.cs b/csharp/src/Splitit.Web.Net.Test/Api/InstallmentPlanApiTests.cs index 4bdb79a8..c6fc1260 100644 --- a/csharp/src/Splitit.Web.Net.Test/Api/InstallmentPlanApiTests.cs +++ b/csharp/src/Splitit.Web.Net.Test/Api/InstallmentPlanApiTests.cs @@ -171,11 +171,12 @@ public void PostTest() processingData ); var xSplititTestMode = "None"; + var xSplititStrategy = "SecuredPlan"; var splititclientinfo = "splititclientinfo_example"; try { - InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo); + InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); Console.WriteLine(result); } catch (ApiException e) @@ -224,11 +225,12 @@ public void Post2Test() eventsEndpoints ); var xSplititTestMode = "None"; + var xSplititStrategy = "SecuredPlan"; var splititclientinfo = "splititclientinfo_example"; try { - InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo); + InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); Console.WriteLine(result); } catch (ApiException e) diff --git a/csharp/src/Splitit.Web.Net.Test/Model/PlanDataTests.cs b/csharp/src/Splitit.Web.Net.Test/Model/PlanDataTests.cs index 6e2a59db..69596a5d 100644 --- a/csharp/src/Splitit.Web.Net.Test/Model/PlanDataTests.cs +++ b/csharp/src/Splitit.Web.Net.Test/Model/PlanDataTests.cs @@ -144,6 +144,14 @@ public void FirstInstallmentDateTest() { // TODO unit test for the property 'FirstInstallmentDate' } + /// + /// Test the property 'Strategy' + /// + [Fact] + public void StrategyTest() + { + // TODO unit test for the property 'Strategy' + } } diff --git a/csharp/src/Splitit.Web.Net.Test/Model/PlanStrategyTests.cs b/csharp/src/Splitit.Web.Net.Test/Model/PlanStrategyTests.cs new file mode 100644 index 00000000..e9554bf8 --- /dev/null +++ b/csharp/src/Splitit.Web.Net.Test/Model/PlanStrategyTests.cs @@ -0,0 +1,62 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Splitit.Web.Net.Api; +using Splitit.Web.Net.Model; +using Splitit.Web.Net.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Splitit.Web.Net.Test.Model +{ + /// + /// Class for testing PlanStrategy + /// + /// + /// This file is automatically generated by Konfig (https://konfigthis.com). + /// Please update the test case below to test the model. + /// + public class PlanStrategyTests : IDisposable + { + // TODO uncomment below to declare an instance variable for PlanStrategy + //private PlanStrategy instance; + + public PlanStrategyTests() + { + // TODO uncomment below to create an instance of PlanStrategy + //instance = new PlanStrategy(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of PlanStrategy + /// + [Fact] + public void PlanStrategyInstanceTest() + { + // TODO uncomment below to test "IsType" PlanStrategy + //Assert.IsType(instance); + } + + + + } + +} diff --git a/csharp/src/Splitit.Web.Net/Api/InstallmentPlanApiGenerated.cs b/csharp/src/Splitit.Web.Net/Api/InstallmentPlanApiGenerated.cs index f072cf06..4403ec69 100644 --- a/csharp/src/Splitit.Web.Net/Api/InstallmentPlanApiGenerated.cs +++ b/csharp/src/Splitit.Web.Net/Api/InstallmentPlanApiGenerated.cs @@ -107,10 +107,11 @@ public interface IInstallmentPlanApiSync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// InitiatePlanResponse - InitiatePlanResponse Post(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0); + InitiatePlanResponse Post(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0); /// /// @@ -123,10 +124,11 @@ public interface IInstallmentPlanApiSync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of InitiatePlanResponse - ApiResponse PostWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0); + ApiResponse PostWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0); /// /// /// @@ -135,10 +137,11 @@ public interface IInstallmentPlanApiSync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// InstallmentPlanCreateResponse - InstallmentPlanCreateResponse Post2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0); + InstallmentPlanCreateResponse Post2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0); /// /// @@ -151,10 +154,11 @@ public interface IInstallmentPlanApiSync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of InstallmentPlanCreateResponse - ApiResponse Post2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0); + ApiResponse Post2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0); /// /// /// @@ -390,11 +394,12 @@ public interface IInstallmentPlanApiAsync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of InitiatePlanResponse - System.Threading.Tasks.Task PostAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task PostAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// @@ -407,11 +412,12 @@ public interface IInstallmentPlanApiAsync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (InitiatePlanResponse) - System.Threading.Tasks.Task> PostWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> PostWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// /// @@ -423,11 +429,12 @@ public interface IInstallmentPlanApiAsync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of InstallmentPlanCreateResponse - System.Threading.Tasks.Task Post2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task Post2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// @@ -440,11 +447,12 @@ public interface IInstallmentPlanApiAsync : IApiAccessor /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (InstallmentPlanCreateResponse) - System.Threading.Tasks.Task> Post2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> Post2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// /// @@ -1382,12 +1390,13 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// InitiatePlanResponse - public InitiatePlanResponse Post(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0) + public InitiatePlanResponse Post(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0) { - Splitit.Web.Net.Client.ApiResponse localVarResponse = PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo); + Splitit.Web.Net.Client.ApiResponse localVarResponse = PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); return localVarResponse.Data; } @@ -1399,10 +1408,11 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of InitiatePlanResponse - public Splitit.Web.Net.Client.ApiResponse PostWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0) + public Splitit.Web.Net.Client.ApiResponse PostWithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0) { // verify the required parameter 'xSplititIdempotencyKey' is set if (xSplititIdempotencyKey == null) @@ -1454,6 +1464,10 @@ public Splitit.Web.Net.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititTestMode)); // header parameter } + if (xSplititStrategy != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-Strategy", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititStrategy)); // header parameter + } if (splititclientinfo != null) { localVarRequestOptions.HeaderParameters.Add("Splititclientinfo", Splitit.Web.Net.Client.ClientUtils.ParameterToString(splititclientinfo)); // header parameter @@ -1504,13 +1518,14 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of InitiatePlanResponse - public async System.Threading.Tasks.Task PostAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task PostAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Splitit.Web.Net.Client.ApiResponse localVarResponse = await PostWithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo, operationIndex, cancellationToken).ConfigureAwait(false); + Splitit.Web.Net.Client.ApiResponse localVarResponse = await PostWithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1522,11 +1537,12 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (InitiatePlanResponse) - public virtual async System.Threading.Tasks.Task> PostWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public virtual async System.Threading.Tasks.Task> PostWithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'xSplititIdempotencyKey' is set if (xSplititIdempotencyKey == null) @@ -1579,6 +1595,10 @@ public Splitit.Web.Net.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititTestMode, dataFormat: "")); // header parameter } + if (xSplititStrategy != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-Strategy", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititStrategy, dataFormat: "")); // header parameter + } if (splititclientinfo != null) { localVarRequestOptions.HeaderParameters.Add("Splititclientinfo", Splitit.Web.Net.Client.ClientUtils.ParameterToString(splititclientinfo, dataFormat: "")); // header parameter @@ -1630,12 +1650,13 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// InstallmentPlanCreateResponse - public InstallmentPlanCreateResponse Post2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0) + public InstallmentPlanCreateResponse Post2(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0) { - Splitit.Web.Net.Client.ApiResponse localVarResponse = Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo); + Splitit.Web.Net.Client.ApiResponse localVarResponse = Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); return localVarResponse.Data; } @@ -1647,10 +1668,11 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// ApiResponse of InstallmentPlanCreateResponse - public Splitit.Web.Net.Client.ApiResponse Post2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0) + public Splitit.Web.Net.Client.ApiResponse Post2WithHttpInfo(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0) { // verify the required parameter 'xSplititIdempotencyKey' is set if (xSplititIdempotencyKey == null) @@ -1702,6 +1724,10 @@ public Splitit.Web.Net.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititTestMode)); // header parameter } + if (xSplititStrategy != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-Strategy", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititStrategy)); // header parameter + } if (splititclientinfo != null) { localVarRequestOptions.HeaderParameters.Add("Splititclientinfo", Splitit.Web.Net.Client.ClientUtils.ParameterToString(splititclientinfo)); // header parameter @@ -1752,13 +1778,14 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of InstallmentPlanCreateResponse - public async System.Threading.Tasks.Task Post2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task Post2Async(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Splitit.Web.Net.Client.ApiResponse localVarResponse = await Post2WithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo, operationIndex, cancellationToken).ConfigureAwait(false); + Splitit.Web.Net.Client.ApiResponse localVarResponse = await Post2WithHttpInfoAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, operationIndex, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1770,11 +1797,12 @@ public Splitit.Web.Net.Client.ApiResponse /// TouchPoint /// /// (optional) + /// (optional) /// (optional) /// Index associated with the operation. /// Cancellation Token to cancel the request. /// Task of ApiResponse (InstallmentPlanCreateResponse) - public virtual async System.Threading.Tasks.Task> Post2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public virtual async System.Threading.Tasks.Task> Post2WithHttpInfoAsync(string xSplititIdempotencyKey, string xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, string xSplititTestMode = default(string), string xSplititStrategy = default(string), string splititclientinfo = default(string), int operationIndex = 0, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'xSplititIdempotencyKey' is set if (xSplititIdempotencyKey == null) @@ -1827,6 +1855,10 @@ public Splitit.Web.Net.Client.ApiResponse { localVarRequestOptions.HeaderParameters.Add("X-Splitit-TestMode", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititTestMode, dataFormat: "")); // header parameter } + if (xSplititStrategy != null) + { + localVarRequestOptions.HeaderParameters.Add("X-Splitit-Strategy", Splitit.Web.Net.Client.ClientUtils.ParameterToString(xSplititStrategy, dataFormat: "")); // header parameter + } if (splititclientinfo != null) { localVarRequestOptions.HeaderParameters.Add("Splititclientinfo", Splitit.Web.Net.Client.ClientUtils.ParameterToString(splititclientinfo, dataFormat: "")); // header parameter diff --git a/csharp/src/Splitit.Web.Net/Model/PlanData.cs b/csharp/src/Splitit.Web.Net/Model/PlanData.cs index 56a964d4..8b907542 100644 --- a/csharp/src/Splitit.Web.Net/Model/PlanData.cs +++ b/csharp/src/Splitit.Web.Net/Model/PlanData.cs @@ -37,6 +37,12 @@ public partial class PlanData : IEquatable, IValidatableObject /// [DataMember(Name = "PurchaseMethod", IsRequired = true, EmitDefaultValue = true)] public PurchaseMethod PurchaseMethod { get; set; } + + /// + /// Gets or Sets Strategy + /// + [DataMember(Name = "Strategy", EmitDefaultValue = false)] + public PlanStrategy? Strategy { get; set; } /// /// Initializes a new instance of the class. /// @@ -56,7 +62,8 @@ protected PlanData() { } /// tags. /// processingData. /// firstInstallmentDate. - public PlanData(string terminalId = default(string), double totalAmount = default(double), double firstInstallmentAmount = default(double), string currency = default(string), int numberOfInstallments = default(int), PurchaseMethod purchaseMethod = default(PurchaseMethod), string refOrderNumber = default(string), List allowedInstallmentOptions = default(List), Dictionary tags = default(Dictionary), ProcessingData2 processingData = default(ProcessingData2), DateTime firstInstallmentDate = default(DateTime)) + /// strategy. + public PlanData(string terminalId = default(string), double totalAmount = default(double), double firstInstallmentAmount = default(double), string currency = default(string), int numberOfInstallments = default(int), PurchaseMethod purchaseMethod = default(PurchaseMethod), string refOrderNumber = default(string), List allowedInstallmentOptions = default(List), Dictionary tags = default(Dictionary), ProcessingData2 processingData = default(ProcessingData2), DateTime firstInstallmentDate = default(DateTime), PlanStrategy? strategy = default(PlanStrategy?)) { this.TotalAmount = totalAmount; this.NumberOfInstallments = numberOfInstallments; @@ -69,6 +76,7 @@ protected PlanData() { } this.Tags = tags; this.ProcessingData = processingData; this.FirstInstallmentDate = firstInstallmentDate; + this.Strategy = strategy; } /// @@ -150,6 +158,7 @@ public override string ToString() sb.Append(" Tags: ").Append(Tags).Append("\n"); sb.Append(" ProcessingData: ").Append(ProcessingData).Append("\n"); sb.Append(" FirstInstallmentDate: ").Append(FirstInstallmentDate).Append("\n"); + sb.Append(" Strategy: ").Append(Strategy).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -237,6 +246,10 @@ public bool Equals(PlanData input) this.FirstInstallmentDate == input.FirstInstallmentDate || (this.FirstInstallmentDate != null && this.FirstInstallmentDate.Equals(input.FirstInstallmentDate)) + ) && + ( + this.Strategy == input.Strategy || + this.Strategy.Equals(input.Strategy) ); } @@ -281,6 +294,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.FirstInstallmentDate.GetHashCode(); } + hashCode = (hashCode * 59) + this.Strategy.GetHashCode(); return hashCode; } } diff --git a/csharp/src/Splitit.Web.Net/Model/PlanStrategy.cs b/csharp/src/Splitit.Web.Net/Model/PlanStrategy.cs new file mode 100644 index 00000000..397359b6 --- /dev/null +++ b/csharp/src/Splitit.Web.Net/Model/PlanStrategy.cs @@ -0,0 +1,108 @@ +/* + * splitit-web-api-v3 + * + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * Generated by: https://konfigthis.com + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Splitit.Web.Net.Client.OpenAPIDateConverter; + +namespace Splitit.Web.Net.Model +{ + /// + /// Defines PlanStrategy + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PlanStrategy + { + /// + /// Enum SecuredPlan for value: SecuredPlan + /// + [EnumMember(Value = "SecuredPlan")] + SecuredPlan = 1, + + /// + /// Enum NonSecuredPlan for value: NonSecuredPlan + /// + [EnumMember(Value = "NonSecuredPlan")] + NonSecuredPlan = 2, + + /// + /// Enum SecuredPlanCaptureExistingSecurityAuth for value: SecuredPlanCaptureExistingSecurityAuth + /// + [EnumMember(Value = "SecuredPlanCaptureExistingSecurityAuth")] + SecuredPlanCaptureExistingSecurityAuth = 3, + + /// + /// Enum SecuredPlan3 for value: SecuredPlan3 + /// + [EnumMember(Value = "SecuredPlan3")] + SecuredPlan3 = 4, + + /// + /// Enum SinglePayment for value: SinglePayment + /// + [EnumMember(Value = "SinglePayment")] + SinglePayment = 5, + + /// + /// Enum ExternalInstallmentProvider for value: ExternalInstallmentProvider + /// + [EnumMember(Value = "ExternalInstallmentProvider")] + ExternalInstallmentProvider = 6, + + /// + /// Enum SecuredPlan3A for value: SecuredPlan3A + /// + [EnumMember(Value = "SecuredPlan3A")] + SecuredPlan3A = 7, + + /// + /// Enum SecuredPlan3B for value: SecuredPlan3B + /// + [EnumMember(Value = "SecuredPlan3B")] + SecuredPlan3B = 8, + + /// + /// Enum SecuredPlan2A for value: SecuredPlan2A + /// + [EnumMember(Value = "SecuredPlan2A")] + SecuredPlan2A = 9, + + /// + /// Enum SecuredPlan2 for value: SecuredPlan2 + /// + [EnumMember(Value = "SecuredPlan2")] + SecuredPlan2 = 10, + + /// + /// Enum SecuredPlan4 for value: SecuredPlan4 + /// + [EnumMember(Value = "SecuredPlan4")] + SecuredPlan4 = 11, + + /// + /// Enum SecuredPlan4A for value: SecuredPlan4A + /// + [EnumMember(Value = "SecuredPlan4A")] + SecuredPlan4A = 12 + + } + +} diff --git a/go/.konfig/generate-id.txt b/go/.konfig/generate-id.txt index 18074da9..e8454117 100644 --- a/go/.konfig/generate-id.txt +++ b/go/.konfig/generate-id.txt @@ -1 +1 @@ -ca9fe135-b667-40db-9efe-98997fd6f676 \ No newline at end of file +ab9fadc8-b262-46cf-866c-0640d3186c35 \ No newline at end of file diff --git a/go/README.md b/go/README.md index 26f7319b..1cedaf37 100644 --- a/go/README.md +++ b/go/README.md @@ -119,6 +119,7 @@ Class | Method | HTTP request | Description - [PlanErrorResponse](docs/PlanErrorResponse.md) - [PlanErrorResponseAllOf](docs/PlanErrorResponseAllOf.md) - [PlanStatus](docs/PlanStatus.md) + - [PlanStrategy](docs/PlanStrategy.md) - [ProcessingData](docs/ProcessingData.md) - [ProcessingData2](docs/ProcessingData2.md) - [PurchaseMethod](docs/PurchaseMethod.md) diff --git a/go/api/openapi.yaml b/go/api/openapi.yaml index 9b57f504..763dbb72 100644 --- a/go/api/openapi.yaml +++ b/go/api/openapi.yaml @@ -255,6 +255,30 @@ paths: x-schema: $ref: '#/components/schemas/TestModes' x-nullable: true + - explode: false + in: header + name: X-Splitit-Strategy + required: false + schema: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string + style: simple + x-originalName: planStrategy + x-schema: + $ref: '#/components/schemas/PlanStrategy' + x-nullable: true - explode: false in: header name: Splititclientinfo @@ -281,7 +305,7 @@ paths: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-4-schema style: simple requestBody: content: @@ -405,6 +429,30 @@ paths: x-schema: $ref: '#/components/schemas/TestModes' x-nullable: true + - explode: false + in: header + name: X-Splitit-Strategy + required: false + schema: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string + style: simple + x-originalName: planStrategy + x-schema: + $ref: '#/components/schemas/PlanStrategy' + x-nullable: true - explode: false in: header name: Splititclientinfo @@ -431,7 +479,7 @@ paths: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-4-schema style: simple requestBody: content: @@ -2318,6 +2366,35 @@ components: - Regular - Fast - Automation + PlanStrategy: + description: "" + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string + x-enumNames: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A InstallmentPlanCreateResponse: example: Status: null @@ -2817,6 +2894,7 @@ components: - 5 - 5 TerminalId: TerminalId + Strategy: null TotalAmount: 0.8008281904610115 PurchaseMethod: null FirstInstallmentAmount: 6.027456183070403 @@ -2868,6 +2946,7 @@ components: - 5 - 5 TerminalId: TerminalId + Strategy: null TotalAmount: 0.8008281904610115 PurchaseMethod: null FirstInstallmentAmount: 6.027456183070403 @@ -2907,6 +2986,8 @@ components: FirstInstallmentDate: format: date-time type: string + Strategy: + $ref: '#/components/schemas/PlanStrategy' required: - NumberOfInstallments - PurchaseMethod @@ -2971,11 +3052,11 @@ components: example: "" type: string x-do-not-generate: true - konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-3-schema: + konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-4-schema: example: "" type: string x-do-not-generate: true - konfig-generated-schema-paths--api-installmentplans-post-parameters-3-schema: + konfig-generated-schema-paths--api-installmentplans-post-parameters-4-schema: example: "" type: string x-do-not-generate: true @@ -3063,6 +3144,21 @@ components: - Fast - Automation type: string + X-Splitit-Strategy: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string Splititclientinfo: type: string X-Splitit-IdempotencyKey: @@ -3072,7 +3168,7 @@ components: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-4-schema AutoCapture: type: boolean Attempt3dSecure: @@ -3098,6 +3194,7 @@ components: x-do-not-generate: true x-konfig-is-parameter: - X-Splitit-TestMode + - X-Splitit-Strategy - Splititclientinfo - X-Splitit-IdempotencyKey - X-Splitit-TouchPoint @@ -3110,6 +3207,21 @@ components: - Fast - Automation type: string + X-Splitit-Strategy: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string Splititclientinfo: type: string X-Splitit-IdempotencyKey: @@ -3119,7 +3231,7 @@ components: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-4-schema AutoCapture: type: boolean Attempt3dSecure: @@ -3149,6 +3261,7 @@ components: x-do-not-generate: true x-konfig-is-parameter: - X-Splitit-TestMode + - X-Splitit-Strategy - Splititclientinfo - X-Splitit-IdempotencyKey - X-Splitit-TouchPoint diff --git a/go/api_installment_plan.go b/go/api_installment_plan.go index 2eb3a34f..12ecdca0 100644 --- a/go/api_installment_plan.go +++ b/go/api_installment_plan.go @@ -507,6 +507,7 @@ type InstallmentPlanApiPostRequest struct { xSplititTouchPoint string installmentPlanInitiateRequest InstallmentPlanInitiateRequest xSplititTestMode *string + xSplititStrategy *string splititclientinfo *string } @@ -515,6 +516,11 @@ func (r *InstallmentPlanApiPostRequest) XSplititTestMode(xSplititTestMode string return r } +func (r *InstallmentPlanApiPostRequest) XSplititStrategy(xSplititStrategy string) *InstallmentPlanApiPostRequest { + r.xSplititStrategy = &xSplititStrategy + return r +} + func (r *InstallmentPlanApiPostRequest) Splititclientinfo(splititclientinfo string) *InstallmentPlanApiPostRequest { r.splititclientinfo = &splititclientinfo return r @@ -588,6 +594,9 @@ func (a *InstallmentPlanApiService) PostExecute(r InstallmentPlanApiPostRequest) if r.xSplititTestMode != nil { localVarHeaderParams["X-Splitit-TestMode"] = parameterToString(*r.xSplititTestMode, "") } + if r.xSplititStrategy != nil { + localVarHeaderParams["X-Splitit-Strategy"] = parameterToString(*r.xSplititStrategy, "") + } if r.splititclientinfo != nil { localVarHeaderParams["Splititclientinfo"] = parameterToString(*r.splititclientinfo, "") } @@ -697,6 +706,7 @@ type InstallmentPlanApiPost2Request struct { xSplititTouchPoint string installmentPlanCreateRequest InstallmentPlanCreateRequest xSplititTestMode *string + xSplititStrategy *string splititclientinfo *string } @@ -705,6 +715,11 @@ func (r *InstallmentPlanApiPost2Request) XSplititTestMode(xSplititTestMode strin return r } +func (r *InstallmentPlanApiPost2Request) XSplititStrategy(xSplititStrategy string) *InstallmentPlanApiPost2Request { + r.xSplititStrategy = &xSplititStrategy + return r +} + func (r *InstallmentPlanApiPost2Request) Splititclientinfo(splititclientinfo string) *InstallmentPlanApiPost2Request { r.splititclientinfo = &splititclientinfo return r @@ -778,6 +793,9 @@ func (a *InstallmentPlanApiService) Post2Execute(r InstallmentPlanApiPost2Reques if r.xSplititTestMode != nil { localVarHeaderParams["X-Splitit-TestMode"] = parameterToString(*r.xSplititTestMode, "") } + if r.xSplititStrategy != nil { + localVarHeaderParams["X-Splitit-Strategy"] = parameterToString(*r.xSplititStrategy, "") + } if r.splititclientinfo != nil { localVarHeaderParams["Splititclientinfo"] = parameterToString(*r.splititclientinfo, "") } diff --git a/go/docs/InstallmentPlanApi.md b/go/docs/InstallmentPlanApi.md index 2d0fd1b6..0616f822 100644 --- a/go/docs/InstallmentPlanApi.md +++ b/go/docs/InstallmentPlanApi.md @@ -214,6 +214,7 @@ func main() { installmentPlanInitiateRequest, ) request.XSplititTestMode("xSplititTestMode_example") + request.XSplititStrategy("xSplititStrategy_example") request.Splititclientinfo("splititclientinfo_example") resp, httpRes, err := request.Execute() @@ -288,6 +289,7 @@ func main() { installmentPlanCreateRequest, ) request.XSplititTestMode("xSplititTestMode_example") + request.XSplititStrategy("xSplititStrategy_example") request.Splititclientinfo("splititclientinfo_example") resp, httpRes, err := request.Execute() diff --git a/go/docs/PlanData.md b/go/docs/PlanData.md index ad8d8418..4597720a 100644 --- a/go/docs/PlanData.md +++ b/go/docs/PlanData.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **Tags** | Pointer to **map[string]string** | | [optional] **ProcessingData** | Pointer to [**ProcessingData2**](ProcessingData2.md) | | [optional] **FirstInstallmentDate** | Pointer to **time.Time** | | [optional] +**Strategy** | Pointer to [**PlanStrategy**](PlanStrategy.md) | | [optional] ## Methods @@ -295,6 +296,31 @@ SetFirstInstallmentDate sets FirstInstallmentDate field to given value. HasFirstInstallmentDate returns a boolean if a field has been set. +### GetStrategy + +`func (o *PlanData) GetStrategy() PlanStrategy` + +GetStrategy returns the Strategy field if non-nil, zero value otherwise. + +### GetStrategyOk + +`func (o *PlanData) GetStrategyOk() (*PlanStrategy, bool)` + +GetStrategyOk returns a tuple with the Strategy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStrategy + +`func (o *PlanData) SetStrategy(v PlanStrategy)` + +SetStrategy sets Strategy field to given value. + +### HasStrategy + +`func (o *PlanData) HasStrategy() bool` + +HasStrategy returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/go/docs/PlanStrategy.md b/go/docs/PlanStrategy.md new file mode 100644 index 00000000..5a8ccabf --- /dev/null +++ b/go/docs/PlanStrategy.md @@ -0,0 +1,33 @@ +# PlanStrategy + +## Enum + + +* `SECURED_PLAN` (value: `"SecuredPlan"`) + +* `NON_SECURED_PLAN` (value: `"NonSecuredPlan"`) + +* `SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH` (value: `"SecuredPlanCaptureExistingSecurityAuth"`) + +* `SECURED_PLAN3` (value: `"SecuredPlan3"`) + +* `SINGLE_PAYMENT` (value: `"SinglePayment"`) + +* `EXTERNAL_INSTALLMENT_PROVIDER` (value: `"ExternalInstallmentProvider"`) + +* `SECURED_PLAN3_A` (value: `"SecuredPlan3A"`) + +* `SECURED_PLAN3_B` (value: `"SecuredPlan3B"`) + +* `SECURED_PLAN2_A` (value: `"SecuredPlan2A"`) + +* `SECURED_PLAN2` (value: `"SecuredPlan2"`) + +* `SECURED_PLAN4` (value: `"SecuredPlan4"`) + +* `SECURED_PLAN4_A` (value: `"SecuredPlan4A"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go/model_plan_data.go b/go/model_plan_data.go index 36363d53..89850ffd 100644 --- a/go/model_plan_data.go +++ b/go/model_plan_data.go @@ -28,6 +28,7 @@ type PlanData struct { Tags *map[string]string `json:"Tags,omitempty"` ProcessingData *ProcessingData2 `json:"ProcessingData,omitempty"` FirstInstallmentDate *time.Time `json:"FirstInstallmentDate,omitempty"` + Strategy *PlanStrategy `json:"Strategy,omitempty"` } // NewPlanData instantiates a new PlanData object @@ -378,6 +379,38 @@ func (o *PlanData) SetFirstInstallmentDate(v time.Time) { o.FirstInstallmentDate = &v } +// GetStrategy returns the Strategy field value if set, zero value otherwise. +func (o *PlanData) GetStrategy() PlanStrategy { + if o == nil || isNil(o.Strategy) { + var ret PlanStrategy + return ret + } + return *o.Strategy +} + +// GetStrategyOk returns a tuple with the Strategy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlanData) GetStrategyOk() (*PlanStrategy, bool) { + if o == nil || isNil(o.Strategy) { + return nil, false + } + return o.Strategy, true +} + +// HasStrategy returns a boolean if a field has been set. +func (o *PlanData) HasStrategy() bool { + if o != nil && !isNil(o.Strategy) { + return true + } + + return false +} + +// SetStrategy gets a reference to the given PlanStrategy and assigns it to the Strategy field. +func (o *PlanData) SetStrategy(v PlanStrategy) { + o.Strategy = &v +} + func (o PlanData) MarshalJSON() ([]byte, error) { toSerialize := map[string]interface{}{} if !isNil(o.TerminalId) { @@ -413,6 +446,9 @@ func (o PlanData) MarshalJSON() ([]byte, error) { if !isNil(o.FirstInstallmentDate) { toSerialize["FirstInstallmentDate"] = o.FirstInstallmentDate } + if !isNil(o.Strategy) { + toSerialize["Strategy"] = o.Strategy + } return json.Marshal(toSerialize) } diff --git a/go/model_plan_strategy.go b/go/model_plan_strategy.go new file mode 100644 index 00000000..2bb5abc5 --- /dev/null +++ b/go/model_plan_strategy.go @@ -0,0 +1,131 @@ +/* +splitit-web-api-v3 + +Splitit's Web API + +API version: 1.0.0 +*/ + +// Code generated by Konfig (https://konfigthis.com); DO NOT EDIT. + +package splitit + +import ( + "encoding/json" + "fmt" +) + +// PlanStrategy +type PlanStrategy string + +// List of PlanStrategy +const ( + PLANSTRATEGY_SECURED_PLAN PlanStrategy = "SecuredPlan" + PLANSTRATEGY_NON_SECURED_PLAN PlanStrategy = "NonSecuredPlan" + PLANSTRATEGY_SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH PlanStrategy = "SecuredPlanCaptureExistingSecurityAuth" + PLANSTRATEGY_SECURED_PLAN3 PlanStrategy = "SecuredPlan3" + PLANSTRATEGY_SINGLE_PAYMENT PlanStrategy = "SinglePayment" + PLANSTRATEGY_EXTERNAL_INSTALLMENT_PROVIDER PlanStrategy = "ExternalInstallmentProvider" + PLANSTRATEGY_SECURED_PLAN3_A PlanStrategy = "SecuredPlan3A" + PLANSTRATEGY_SECURED_PLAN3_B PlanStrategy = "SecuredPlan3B" + PLANSTRATEGY_SECURED_PLAN2_A PlanStrategy = "SecuredPlan2A" + PLANSTRATEGY_SECURED_PLAN2 PlanStrategy = "SecuredPlan2" + PLANSTRATEGY_SECURED_PLAN4 PlanStrategy = "SecuredPlan4" + PLANSTRATEGY_SECURED_PLAN4_A PlanStrategy = "SecuredPlan4A" +) + +// All allowed values of PlanStrategy enum +var AllowedPlanStrategyEnumValues = []PlanStrategy{ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A", +} + +func (v *PlanStrategy) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PlanStrategy(value) + for _, existing := range AllowedPlanStrategyEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PlanStrategy", value) +} + +// NewPlanStrategyFromValue returns a pointer to a valid PlanStrategy +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPlanStrategyFromValue(v string) (*PlanStrategy, error) { + ev := PlanStrategy(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PlanStrategy: valid values are %v", v, AllowedPlanStrategyEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PlanStrategy) IsValid() bool { + for _, existing := range AllowedPlanStrategyEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PlanStrategy value +func (v PlanStrategy) Ptr() *PlanStrategy { + return &v +} + +type NullablePlanStrategy struct { + value *PlanStrategy + isSet bool +} + +func (v NullablePlanStrategy) Get() *PlanStrategy { + return v.value +} + +func (v *NullablePlanStrategy) Set(val *PlanStrategy) { + v.value = val + v.isSet = true +} + +func (v NullablePlanStrategy) IsSet() bool { + return v.isSet +} + +func (v *NullablePlanStrategy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePlanStrategy(val *PlanStrategy) *NullablePlanStrategy { + return &NullablePlanStrategy{value: val, isSet: true} +} + +func (v NullablePlanStrategy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePlanStrategy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/go/test/api_installment_plan_test.go b/go/test/api_installment_plan_test.go index 4414f75c..87a4e020 100644 --- a/go/test/api_installment_plan_test.go +++ b/go/test/api_installment_plan_test.go @@ -109,6 +109,7 @@ func Test_splitit_InstallmentPlanApiService(t *testing.T) { installmentPlanInitiateRequest, ) request.XSplititTestMode("xSplititTestMode_example") + request.XSplititStrategy("xSplititStrategy_example") request.Splititclientinfo("splititclientinfo_example") resp, httpRes, err := request.Execute() @@ -148,6 +149,7 @@ func Test_splitit_InstallmentPlanApiService(t *testing.T) { installmentPlanCreateRequest, ) request.XSplititTestMode("xSplititTestMode_example") + request.XSplititStrategy("xSplititStrategy_example") request.Splititclientinfo("splititclientinfo_example") resp, httpRes, err := request.Execute() diff --git a/java/.konfig/generate-id.txt b/java/.konfig/generate-id.txt index 18074da9..e8454117 100644 --- a/java/.konfig/generate-id.txt +++ b/java/.konfig/generate-id.txt @@ -1 +1 @@ -ca9fe135-b667-40db-9efe-98997fd6f676 \ No newline at end of file +ab9fadc8-b262-46cf-866c-0640d3186c35 \ No newline at end of file diff --git a/java/README.md b/java/README.md index 83e18c1d..7ee509ad 100644 --- a/java/README.md +++ b/java/README.md @@ -341,6 +341,7 @@ InitiatePlanResponse result = client .eventsEndpoints(eventsEndpoints) .processingData(processingData) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .execute(); ``` @@ -373,6 +374,8 @@ TouchPoint ##### xSplititTestMode: `String` +##### xSplititStrategy: `String` + ##### splititclientinfo: `String` #### 🔄 Return @@ -407,6 +410,7 @@ InstallmentPlanCreateResponse result = client .processingData(processingData) .eventsEndpoints(eventsEndpoints) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .execute(); ``` @@ -441,6 +445,8 @@ TouchPoint ##### xSplititTestMode: `String` +##### xSplititStrategy: `String` + ##### splititclientinfo: `String` #### 🔄 Return diff --git a/java/api/openapi.yaml b/java/api/openapi.yaml index 5add7b26..de9b1087 100644 --- a/java/api/openapi.yaml +++ b/java/api/openapi.yaml @@ -265,6 +265,30 @@ paths: x-schema: $ref: '#/components/schemas/TestModes' x-nullable: true + - explode: false + in: header + name: X-Splitit-Strategy + required: false + schema: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string + style: simple + x-originalName: planStrategy + x-schema: + $ref: '#/components/schemas/PlanStrategy' + x-nullable: true - explode: false in: header name: Splititclientinfo @@ -291,7 +315,7 @@ paths: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-4-schema style: simple requestBody: content: @@ -422,6 +446,30 @@ paths: x-schema: $ref: '#/components/schemas/TestModes' x-nullable: true + - explode: false + in: header + name: X-Splitit-Strategy + required: false + schema: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string + style: simple + x-originalName: planStrategy + x-schema: + $ref: '#/components/schemas/PlanStrategy' + x-nullable: true - explode: false in: header name: Splititclientinfo @@ -448,7 +496,7 @@ paths: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-4-schema style: simple requestBody: content: @@ -2382,6 +2430,35 @@ components: - Regular - Fast - Automation + PlanStrategy: + description: "" + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string + x-enumNames: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A InstallmentPlanCreateResponse: example: Status: null @@ -2886,6 +2963,7 @@ components: - 5 - 5 TerminalId: TerminalId + Strategy: null TotalAmount: 0.8008281904610115 PurchaseMethod: null FirstInstallmentAmount: 6.027456183070403 @@ -2937,6 +3015,7 @@ components: - 5 - 5 TerminalId: TerminalId + Strategy: null TotalAmount: 0.8008281904610115 PurchaseMethod: null FirstInstallmentAmount: 6.027456183070403 @@ -2976,6 +3055,8 @@ components: FirstInstallmentDate: format: date-time type: string + Strategy: + $ref: '#/components/schemas/PlanStrategy' required: - NumberOfInstallments - PurchaseMethod @@ -3041,11 +3122,11 @@ components: example: "" type: string x-do-not-generate: true - konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-3-schema: + konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-4-schema: example: "" type: string x-do-not-generate: true - konfig-generated-schema-paths--api-installmentplans-post-parameters-3-schema: + konfig-generated-schema-paths--api-installmentplans-post-parameters-4-schema: example: "" type: string x-do-not-generate: true @@ -3133,6 +3214,21 @@ components: - Fast - Automation type: string + X-Splitit-Strategy: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string Splititclientinfo: type: string X-Splitit-IdempotencyKey: @@ -3142,7 +3238,7 @@ components: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-initiate-post-parameters-4-schema AutoCapture: type: boolean Attempt3dSecure: @@ -3168,6 +3264,7 @@ components: x-do-not-generate: true x-konfig-is-parameter: - X-Splitit-TestMode + - X-Splitit-Strategy - Splititclientinfo - X-Splitit-IdempotencyKey - X-Splitit-TouchPoint @@ -3180,6 +3277,21 @@ components: - Fast - Automation type: string + X-Splitit-Strategy: + enum: + - SecuredPlan + - NonSecuredPlan + - SecuredPlanCaptureExistingSecurityAuth + - SecuredPlan3 + - SinglePayment + - ExternalInstallmentProvider + - SecuredPlan3A + - SecuredPlan3B + - SecuredPlan2A + - SecuredPlan2 + - SecuredPlan4 + - SecuredPlan4A + type: string Splititclientinfo: type: string X-Splitit-IdempotencyKey: @@ -3189,7 +3301,7 @@ components: example: "" type: string x-konfig-original-example: "" - x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-3-schema + x-konfig-generated-schema: konfig-generated-schema-paths--api-installmentplans-post-parameters-4-schema AutoCapture: type: boolean Attempt3dSecure: @@ -3219,6 +3331,7 @@ components: x-do-not-generate: true x-konfig-is-parameter: - X-Splitit-TestMode + - X-Splitit-Strategy - Splititclientinfo - X-Splitit-IdempotencyKey - X-Splitit-TouchPoint diff --git a/java/docs/InstallmentPlanApi.md b/java/docs/InstallmentPlanApi.md index 0001088a..c2fc4ae2 100644 --- a/java/docs/InstallmentPlanApi.md +++ b/java/docs/InstallmentPlanApi.md @@ -340,7 +340,7 @@ public class Example { # **post** -> InitiatePlanResponse post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest).xSplititTestMode(xSplititTestMode).splititclientinfo(splititclientinfo).execute(); +> InitiatePlanResponse post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest).xSplititTestMode(xSplititTestMode).xSplititStrategy(xSplititStrategy).splititclientinfo(splititclientinfo).execute(); @@ -381,6 +381,7 @@ public class Example { EventsEndpointsModel eventsEndpoints = new EventsEndpointsModel(); ProcessingData processingData = new ProcessingData(); String xSplititTestMode = "None"; + String xSplititStrategy = "SecuredPlan"; String splititclientinfo = "splititclientinfo_example"; try { InitiatePlanResponse result = client @@ -396,6 +397,7 @@ public class Example { .eventsEndpoints(eventsEndpoints) .processingData(processingData) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .execute(); System.out.println(result); @@ -432,6 +434,7 @@ public class Example { .eventsEndpoints(eventsEndpoints) .processingData(processingData) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .executeWithHttpInfo(); System.out.println(response.getResponseBody()); @@ -459,6 +462,7 @@ public class Example { | **xSplititTouchPoint** | **String**| TouchPoint | [default to ] | | **installmentPlanInitiateRequest** | [**InstallmentPlanInitiateRequest**](InstallmentPlanInitiateRequest.md)| | | | **xSplititTestMode** | **String**| | [optional] [enum: None, Regular, Fast, Automation] | +| **xSplititStrategy** | **String**| | [optional] [enum: SecuredPlan, NonSecuredPlan, SecuredPlanCaptureExistingSecurityAuth, SecuredPlan3, SinglePayment, ExternalInstallmentProvider, SecuredPlan3A, SecuredPlan3B, SecuredPlan2A, SecuredPlan2, SecuredPlan4, SecuredPlan4A] | | **splititclientinfo** | **String**| | [optional] | ### Return type @@ -481,7 +485,7 @@ public class Example { # **post2** -> InstallmentPlanCreateResponse post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest).xSplititTestMode(xSplititTestMode).splititclientinfo(splititclientinfo).execute(); +> InstallmentPlanCreateResponse post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest).xSplititTestMode(xSplititTestMode).xSplititStrategy(xSplititStrategy).splititclientinfo(splititclientinfo).execute(); @@ -523,6 +527,7 @@ public class Example { ProcessingData processingData = new ProcessingData(); EventsEndpointsModel eventsEndpoints = new EventsEndpointsModel(); String xSplititTestMode = "None"; + String xSplititStrategy = "SecuredPlan"; String splititclientinfo = "splititclientinfo_example"; try { InstallmentPlanCreateResponse result = client @@ -537,6 +542,7 @@ public class Example { .processingData(processingData) .eventsEndpoints(eventsEndpoints) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .execute(); System.out.println(result); @@ -577,6 +583,7 @@ public class Example { .processingData(processingData) .eventsEndpoints(eventsEndpoints) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .executeWithHttpInfo(); System.out.println(response.getResponseBody()); @@ -604,6 +611,7 @@ public class Example { | **xSplititTouchPoint** | **String**| TouchPoint | [default to ] | | **installmentPlanCreateRequest** | [**InstallmentPlanCreateRequest**](InstallmentPlanCreateRequest.md)| | | | **xSplititTestMode** | **String**| | [optional] [enum: None, Regular, Fast, Automation] | +| **xSplititStrategy** | **String**| | [optional] [enum: SecuredPlan, NonSecuredPlan, SecuredPlanCaptureExistingSecurityAuth, SecuredPlan3, SinglePayment, ExternalInstallmentProvider, SecuredPlan3A, SecuredPlan3B, SecuredPlan2A, SecuredPlan2, SecuredPlan4, SecuredPlan4A] | | **splititclientinfo** | **String**| | [optional] | ### Return type diff --git a/java/docs/PlanData.md b/java/docs/PlanData.md index 0b6897d7..d16bcfb0 100644 --- a/java/docs/PlanData.md +++ b/java/docs/PlanData.md @@ -18,6 +18,7 @@ |**tags** | **Map<String, String>** | | [optional] | |**processingData** | [**ProcessingData2**](ProcessingData2.md) | | [optional] | |**firstInstallmentDate** | **OffsetDateTime** | | [optional] | +|**strategy** | **PlanStrategy** | | [optional] | diff --git a/java/docs/PlanStrategy.md b/java/docs/PlanStrategy.md new file mode 100644 index 00000000..6b092f9c --- /dev/null +++ b/java/docs/PlanStrategy.md @@ -0,0 +1,33 @@ + + +# PlanStrategy + +## Enum + + +* `SECUREDPLAN` (value: `"SecuredPlan"`) + +* `NONSECUREDPLAN` (value: `"NonSecuredPlan"`) + +* `SECUREDPLANCAPTUREEXISTINGSECURITYAUTH` (value: `"SecuredPlanCaptureExistingSecurityAuth"`) + +* `SECUREDPLAN3` (value: `"SecuredPlan3"`) + +* `SINGLEPAYMENT` (value: `"SinglePayment"`) + +* `EXTERNALINSTALLMENTPROVIDER` (value: `"ExternalInstallmentProvider"`) + +* `SECUREDPLAN3A` (value: `"SecuredPlan3A"`) + +* `SECUREDPLAN3B` (value: `"SecuredPlan3B"`) + +* `SECUREDPLAN2A` (value: `"SecuredPlan2A"`) + +* `SECUREDPLAN2` (value: `"SecuredPlan2"`) + +* `SECUREDPLAN4` (value: `"SecuredPlan4"`) + +* `SECUREDPLAN4A` (value: `"SecuredPlan4A"`) + + + diff --git a/java/src/main/java/com/konfigthis/splitit/client/api/InstallmentPlanApiGenerated.java b/java/src/main/java/com/konfigthis/splitit/client/api/InstallmentPlanApiGenerated.java index 87d467a4..0012468e 100644 --- a/java/src/main/java/com/konfigthis/splitit/client/api/InstallmentPlanApiGenerated.java +++ b/java/src/main/java/com/konfigthis/splitit/client/api/InstallmentPlanApiGenerated.java @@ -719,7 +719,7 @@ public InstallmentPlanApi.GetEligibilityTermsAndConditionRequestBuilder getEligi return ((InstallmentPlanApi) this).new GetEligibilityTermsAndConditionRequestBuilder(ipn, xSplititIdempotencyKey, xSplititTouchPoint); } - private okhttp3.Call postCall(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String splititclientinfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postCall(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -748,6 +748,10 @@ private okhttp3.Call postCall(String xSplititIdempotencyKey, String xSplititTouc localVarHeaderParams.put("X-Splitit-TestMode", localVarApiClient.parameterToString(xSplititTestMode)); } + if (xSplititStrategy != null) { + localVarHeaderParams.put("X-Splitit-Strategy", localVarApiClient.parameterToString(xSplititStrategy)); + } + if (splititclientinfo != null) { localVarHeaderParams.put("Splititclientinfo", localVarApiClient.parameterToString(splititclientinfo)); } @@ -786,7 +790,7 @@ private okhttp3.Call postCall(String xSplititIdempotencyKey, String xSplititTouc } @SuppressWarnings("rawtypes") - private okhttp3.Call postValidateBeforeCall(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String splititclientinfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postValidateBeforeCall(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo, final ApiCallback _callback) throws ApiException { // verify the required parameter 'xSplititIdempotencyKey' is set if (xSplititIdempotencyKey == null) { throw new ApiException("Missing the required parameter 'xSplititIdempotencyKey' when calling post(Async)"); @@ -802,20 +806,20 @@ private okhttp3.Call postValidateBeforeCall(String xSplititIdempotencyKey, Strin throw new ApiException("Missing the required parameter 'installmentPlanInitiateRequest' when calling post(Async)"); } - return postCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo, _callback); + return postCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); } - private ApiResponse postWithHttpInfo(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String splititclientinfo) throws ApiException { - okhttp3.Call localVarCall = postValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo, null); + private ApiResponse postWithHttpInfo(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo) throws ApiException { + okhttp3.Call localVarCall = postValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call postAsync(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String splititclientinfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call postAsync(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanInitiateRequest installmentPlanInitiateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = postValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo, _callback); + okhttp3.Call localVarCall = postValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -834,6 +838,7 @@ public abstract class PostRequestBuilderGenerated { EventsEndpointsModel eventsEndpoints; ProcessingData processingData; String xSplititTestMode; + String xSplititStrategy; String splititclientinfo; public PostRequestBuilderGenerated(String xSplititIdempotencyKey, String xSplititTouchPoint) { @@ -941,6 +946,16 @@ public InstallmentPlanApi.PostRequestBuilder xSplititTestMode(String xSplititTes return (InstallmentPlanApi.PostRequestBuilder) this; } + /** + * Set xSplititStrategy + * @param xSplititStrategy (optional) + * @return InstallmentPlanApi.PostRequestBuilder + */ + public InstallmentPlanApi.PostRequestBuilder xSplititStrategy(String xSplititStrategy) { + this.xSplititStrategy = xSplititStrategy; + return (InstallmentPlanApi.PostRequestBuilder) this; + } + /** * Set splititclientinfo * @param splititclientinfo (optional) @@ -964,7 +979,7 @@ public InstallmentPlanApi.PostRequestBuilder splititclientinfo(String splititcli */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { InstallmentPlanInitiateRequest installmentPlanInitiateRequest = buildBodyParams(); - return postCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo, _callback); + return postCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); } private InstallmentPlanInitiateRequest buildBodyParams() { @@ -993,7 +1008,7 @@ private InstallmentPlanInitiateRequest buildBodyParams() { */ public InitiatePlanResponse execute() throws ApiException { InstallmentPlanInitiateRequest installmentPlanInitiateRequest = buildBodyParams(); - ApiResponse localVarResp = postWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo); + ApiResponse localVarResp = postWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); return localVarResp.getResponseBody(); } @@ -1009,7 +1024,7 @@ public InitiatePlanResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { InstallmentPlanInitiateRequest installmentPlanInitiateRequest = buildBodyParams(); - return postWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo); + return postWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); } /** @@ -1025,7 +1040,7 @@ public ApiResponse executeWithHttpInfo() throws ApiExcepti */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { InstallmentPlanInitiateRequest installmentPlanInitiateRequest = buildBodyParams(); - return postAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo, _callback); + return postAsync(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); } } @@ -1051,7 +1066,7 @@ public InstallmentPlanApi.PostRequestBuilder post(String xSplititIdempotencyKey, return ((InstallmentPlanApi) this).new PostRequestBuilder(xSplititIdempotencyKey, xSplititTouchPoint); } - private okhttp3.Call post2Call(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String splititclientinfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call post2Call(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1080,6 +1095,10 @@ private okhttp3.Call post2Call(String xSplititIdempotencyKey, String xSplititTou localVarHeaderParams.put("X-Splitit-TestMode", localVarApiClient.parameterToString(xSplititTestMode)); } + if (xSplititStrategy != null) { + localVarHeaderParams.put("X-Splitit-Strategy", localVarApiClient.parameterToString(xSplititStrategy)); + } + if (splititclientinfo != null) { localVarHeaderParams.put("Splititclientinfo", localVarApiClient.parameterToString(splititclientinfo)); } @@ -1118,7 +1137,7 @@ private okhttp3.Call post2Call(String xSplititIdempotencyKey, String xSplititTou } @SuppressWarnings("rawtypes") - private okhttp3.Call post2ValidateBeforeCall(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String splititclientinfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call post2ValidateBeforeCall(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo, final ApiCallback _callback) throws ApiException { // verify the required parameter 'xSplititIdempotencyKey' is set if (xSplititIdempotencyKey == null) { throw new ApiException("Missing the required parameter 'xSplititIdempotencyKey' when calling post2(Async)"); @@ -1134,20 +1153,20 @@ private okhttp3.Call post2ValidateBeforeCall(String xSplititIdempotencyKey, Stri throw new ApiException("Missing the required parameter 'installmentPlanCreateRequest' when calling post2(Async)"); } - return post2Call(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo, _callback); + return post2Call(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); } - private ApiResponse post2WithHttpInfo(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String splititclientinfo) throws ApiException { - okhttp3.Call localVarCall = post2ValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo, null); + private ApiResponse post2WithHttpInfo(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo) throws ApiException { + okhttp3.Call localVarCall = post2ValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } - private okhttp3.Call post2Async(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String splititclientinfo, final ApiCallback _callback) throws ApiException { + private okhttp3.Call post2Async(String xSplititIdempotencyKey, String xSplititTouchPoint, InstallmentPlanCreateRequest installmentPlanCreateRequest, String xSplititTestMode, String xSplititStrategy, String splititclientinfo, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = post2ValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo, _callback); + okhttp3.Call localVarCall = post2ValidateBeforeCall(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1167,6 +1186,7 @@ public abstract class Post2RequestBuilderGenerated { ProcessingData processingData; EventsEndpointsModel eventsEndpoints; String xSplititTestMode; + String xSplititStrategy; String splititclientinfo; public Post2RequestBuilderGenerated(Boolean autoCapture, Boolean termsAndConditionsAccepted, String xSplititIdempotencyKey, String xSplititTouchPoint) { @@ -1266,6 +1286,16 @@ public InstallmentPlanApi.Post2RequestBuilder xSplititTestMode(String xSplititTe return (InstallmentPlanApi.Post2RequestBuilder) this; } + /** + * Set xSplititStrategy + * @param xSplititStrategy (optional) + * @return InstallmentPlanApi.Post2RequestBuilder + */ + public InstallmentPlanApi.Post2RequestBuilder xSplititStrategy(String xSplititStrategy) { + this.xSplititStrategy = xSplititStrategy; + return (InstallmentPlanApi.Post2RequestBuilder) this; + } + /** * Set splititclientinfo * @param splititclientinfo (optional) @@ -1289,7 +1319,7 @@ public InstallmentPlanApi.Post2RequestBuilder splititclientinfo(String splititcl */ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { InstallmentPlanCreateRequest installmentPlanCreateRequest = buildBodyParams(); - return post2Call(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo, _callback); + return post2Call(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); } private InstallmentPlanCreateRequest buildBodyParams() { @@ -1319,7 +1349,7 @@ private InstallmentPlanCreateRequest buildBodyParams() { */ public InstallmentPlanCreateResponse execute() throws ApiException { InstallmentPlanCreateRequest installmentPlanCreateRequest = buildBodyParams(); - ApiResponse localVarResp = post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo); + ApiResponse localVarResp = post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); return localVarResp.getResponseBody(); } @@ -1335,7 +1365,7 @@ public InstallmentPlanCreateResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { InstallmentPlanCreateRequest installmentPlanCreateRequest = buildBodyParams(); - return post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo); + return post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo); } /** @@ -1351,7 +1381,7 @@ public ApiResponse executeWithHttpInfo() throws A */ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { InstallmentPlanCreateRequest installmentPlanCreateRequest = buildBodyParams(); - return post2Async(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo, _callback); + return post2Async(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, xSplititStrategy, splititclientinfo, _callback); } } diff --git a/java/src/main/java/com/konfigthis/splitit/client/model/PlanData.java b/java/src/main/java/com/konfigthis/splitit/client/model/PlanData.java index 29643e4f..7af0807d 100644 --- a/java/src/main/java/com/konfigthis/splitit/client/model/PlanData.java +++ b/java/src/main/java/com/konfigthis/splitit/client/model/PlanData.java @@ -19,6 +19,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.konfigthis.splitit.client.model.PlanStrategy; import com.konfigthis.splitit.client.model.ProcessingData2; import com.konfigthis.splitit.client.model.PurchaseMethod; import io.swagger.annotations.ApiModel; @@ -100,6 +101,10 @@ public class PlanData { @SerializedName(SERIALIZED_NAME_FIRST_INSTALLMENT_DATE) private OffsetDateTime firstInstallmentDate; + public static final String SERIALIZED_NAME_STRATEGY = "Strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private PlanStrategy strategy; + public PlanData() { } @@ -455,6 +460,35 @@ public void setFirstInstallmentDate(OffsetDateTime firstInstallmentDate) { this.firstInstallmentDate = firstInstallmentDate; } + + public PlanData strategy(PlanStrategy strategy) { + + + + + this.strategy = strategy; + return this; + } + + /** + * Get strategy + * @return strategy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PlanStrategy getStrategy() { + return strategy; + } + + + public void setStrategy(PlanStrategy strategy) { + + + + this.strategy = strategy; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -520,13 +554,14 @@ public boolean equals(Object o) { Objects.equals(this.allowedInstallmentOptions, planData.allowedInstallmentOptions) && Objects.equals(this.tags, planData.tags) && Objects.equals(this.processingData, planData.processingData) && - Objects.equals(this.firstInstallmentDate, planData.firstInstallmentDate)&& + Objects.equals(this.firstInstallmentDate, planData.firstInstallmentDate) && + Objects.equals(this.strategy, planData.strategy)&& Objects.equals(this.additionalProperties, planData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(terminalId, totalAmount, firstInstallmentAmount, currency, numberOfInstallments, purchaseMethod, refOrderNumber, allowedInstallmentOptions, tags, processingData, firstInstallmentDate, additionalProperties); + return Objects.hash(terminalId, totalAmount, firstInstallmentAmount, currency, numberOfInstallments, purchaseMethod, refOrderNumber, allowedInstallmentOptions, tags, processingData, firstInstallmentDate, strategy, additionalProperties); } @Override @@ -544,6 +579,7 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" processingData: ").append(toIndentedString(processingData)).append("\n"); sb.append(" firstInstallmentDate: ").append(toIndentedString(firstInstallmentDate)).append("\n"); + sb.append(" strategy: ").append(toIndentedString(strategy)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -578,6 +614,7 @@ private String toIndentedString(Object o) { openapiFields.add("Tags"); openapiFields.add("ProcessingData"); openapiFields.add("FirstInstallmentDate"); + openapiFields.add("Strategy"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/java/src/main/java/com/konfigthis/splitit/client/model/PlanStrategy.java b/java/src/main/java/com/konfigthis/splitit/client/model/PlanStrategy.java new file mode 100644 index 00000000..94c0fd5e --- /dev/null +++ b/java/src/main/java/com/konfigthis/splitit/client/model/PlanStrategy.java @@ -0,0 +1,92 @@ +/* + * splitit-web-api-v3 + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by Konfig (https://konfigthis.com). + * Do not edit the class manually. + */ + + +package com.konfigthis.splitit.client.model; + +import java.util.Objects; +import java.util.Arrays; +import io.swagger.annotations.ApiModel; +import com.google.gson.annotations.SerializedName; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * + */ +@JsonAdapter(PlanStrategy.Adapter.class)public enum PlanStrategy { + + SECUREDPLAN("SecuredPlan"), + + NONSECUREDPLAN("NonSecuredPlan"), + + SECUREDPLANCAPTUREEXISTINGSECURITYAUTH("SecuredPlanCaptureExistingSecurityAuth"), + + SECUREDPLAN3("SecuredPlan3"), + + SINGLEPAYMENT("SinglePayment"), + + EXTERNALINSTALLMENTPROVIDER("ExternalInstallmentProvider"), + + SECUREDPLAN3A("SecuredPlan3A"), + + SECUREDPLAN3B("SecuredPlan3B"), + + SECUREDPLAN2A("SecuredPlan2A"), + + SECUREDPLAN2("SecuredPlan2"), + + SECUREDPLAN4("SecuredPlan4"), + + SECUREDPLAN4A("SecuredPlan4A"); + + private String value; + + PlanStrategy(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PlanStrategy fromValue(String value) { + for (PlanStrategy b : PlanStrategy.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PlanStrategy enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PlanStrategy read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PlanStrategy.fromValue(value); + } + } +} + diff --git a/java/src/test/java/com/konfigthis/splitit/client/api/InstallmentPlanApiTest.java b/java/src/test/java/com/konfigthis/splitit/client/api/InstallmentPlanApiTest.java index 2693d407..d1ed6c18 100644 --- a/java/src/test/java/com/konfigthis/splitit/client/api/InstallmentPlanApiTest.java +++ b/java/src/test/java/com/konfigthis/splitit/client/api/InstallmentPlanApiTest.java @@ -133,6 +133,7 @@ public void postTest() throws ApiException { EventsEndpointsModel eventsEndpoints = null; ProcessingData processingData = null; String xSplititTestMode = null; + String xSplititStrategy = null; String splititclientinfo = null; InitiatePlanResponse response = api.post(xSplititIdempotencyKey, xSplititTouchPoint) .autoCapture(autoCapture) @@ -145,6 +146,7 @@ public void postTest() throws ApiException { .eventsEndpoints(eventsEndpoints) .processingData(processingData) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .execute(); // TODO: test validations @@ -168,6 +170,7 @@ public void post2Test() throws ApiException { ProcessingData processingData = null; EventsEndpointsModel eventsEndpoints = null; String xSplititTestMode = null; + String xSplititStrategy = null; String splititclientinfo = null; InstallmentPlanCreateResponse response = api.post2(autoCapture, termsAndConditionsAccepted, xSplititIdempotencyKey, xSplititTouchPoint) .attempt3dSecure(attempt3dSecure) @@ -179,6 +182,7 @@ public void post2Test() throws ApiException { .processingData(processingData) .eventsEndpoints(eventsEndpoints) .xSplititTestMode(xSplititTestMode) + .xSplititStrategy(xSplititStrategy) .splititclientinfo(splititclientinfo) .execute(); // TODO: test validations diff --git a/java/src/test/java/com/konfigthis/splitit/client/model/PlanDataTest.java b/java/src/test/java/com/konfigthis/splitit/client/model/PlanDataTest.java index 318ae989..aefd695b 100644 --- a/java/src/test/java/com/konfigthis/splitit/client/model/PlanDataTest.java +++ b/java/src/test/java/com/konfigthis/splitit/client/model/PlanDataTest.java @@ -17,6 +17,7 @@ import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import com.konfigthis.splitit.client.model.PlanStrategy; import com.konfigthis.splitit.client.model.ProcessingData2; import com.konfigthis.splitit.client.model.PurchaseMethod; import io.swagger.annotations.ApiModel; @@ -133,4 +134,12 @@ public void firstInstallmentDateTest() { // TODO: test firstInstallmentDate } + /** + * Test the property 'strategy' + */ + @Test + public void strategyTest() { + // TODO: test strategy + } + } diff --git a/java/src/test/java/com/konfigthis/splitit/client/model/PlanStrategyTest.java b/java/src/test/java/com/konfigthis/splitit/client/model/PlanStrategyTest.java new file mode 100644 index 00000000..5d07ddc5 --- /dev/null +++ b/java/src/test/java/com/konfigthis/splitit/client/model/PlanStrategyTest.java @@ -0,0 +1,33 @@ +/* + * splitit-web-api-v3 + * Splitit's Web API + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by Konfig (https://konfigthis.com). + * Do not edit the class manually. + */ + + +package com.konfigthis.splitit.client.model; + +import io.swagger.annotations.ApiModel; +import com.google.gson.annotations.SerializedName; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PlanStrategy + */ +public class PlanStrategyTest { + /** + * Model tests for PlanStrategy + */ + @Test + public void testPlanStrategy() { + // TODO: test PlanStrategy + } + +} diff --git a/php b/php index 42188aa8..5d707569 160000 --- a/php +++ b/php @@ -1 +1 @@ -Subproject commit 42188aa83bc8826b8fca55fb8e19a38fe79a81d6 +Subproject commit 5d7075691263cbba3f00092f6a53945897ba0afe diff --git a/phpGuzzle6 b/phpGuzzle6 index ad618ed7..a2168f8e 160000 --- a/phpGuzzle6 +++ b/phpGuzzle6 @@ -1 +1 @@ -Subproject commit ad618ed7aa244256ad9bc526aa8739653c0942eb +Subproject commit a2168f8eb8479a9dda7a59912955c0f068112008 diff --git a/python/.konfig/generate-id.txt b/python/.konfig/generate-id.txt index 18074da9..e8454117 100644 --- a/python/.konfig/generate-id.txt +++ b/python/.konfig/generate-id.txt @@ -1 +1 @@ -ca9fe135-b667-40db-9efe-98997fd6f676 \ No newline at end of file +ab9fadc8-b262-46cf-866c-0640d3186c35 \ No newline at end of file diff --git a/python/README.md b/python/README.md index 11c2e623..80960e88 100644 --- a/python/README.md +++ b/python/README.md @@ -57,6 +57,7 @@ try: "total_amount": 3.14, "number_of_installments": 1, "purchase_method": "InStore", + "strategy": "SecuredPlan", }, card_details={ "card_brand": "Mastercard", @@ -116,6 +117,7 @@ async def main(): "total_amount": 3.14, "number_of_installments": 1, "purchase_method": "InStore", + "strategy": "SecuredPlan", }, card_details={ "card_brand": "Mastercard", @@ -170,6 +172,7 @@ check_eligibility_response = splitit.installment_plan.check_eligibility( "total_amount": 3.14, "number_of_installments": 1, "purchase_method": "InStore", + "strategy": "SecuredPlan", }, card_details={ "card_brand": "Mastercard", @@ -311,6 +314,7 @@ post_response = splitit.installment_plan.post( events_endpoints={}, processing_data={}, x_splitit_test_mode="None", + x_splitit_strategy="SecuredPlan", splititclientinfo="string_example", ) ``` @@ -350,6 +354,8 @@ TouchPoint ##### x_splitit_test_mode: `str` +##### x_splitit_strategy: `str` + ##### splititclientinfo: `str` #### ⚙️ Request Body @@ -393,6 +399,7 @@ post2_response = splitit.installment_plan.post2( processing_data={}, events_endpoints={}, x_splitit_test_mode="None", + x_splitit_strategy="SecuredPlan", splititclientinfo="string_example", ) ``` @@ -434,6 +441,8 @@ TouchPoint ##### x_splitit_test_mode: `str` +##### x_splitit_strategy: `str` + ##### splititclientinfo: `str` #### ⚙️ Request Body diff --git a/python/splitit_client/model/plan_data.py b/python/splitit_client/model/plan_data.py index afbc2fd7..0d89220d 100644 --- a/python/splitit_client/model/plan_data.py +++ b/python/splitit_client/model/plan_data.py @@ -62,6 +62,10 @@ def Tags() -> typing.Type['PlanDataTags']: def ProcessingData() -> typing.Type['ProcessingData2']: return ProcessingData2 FirstInstallmentDate = schemas.DateTimeSchema + + @staticmethod + def Strategy() -> typing.Type['PlanStrategy']: + return PlanStrategy __annotations__ = { "TotalAmount": TotalAmount, "NumberOfInstallments": NumberOfInstallments, @@ -74,6 +78,7 @@ def ProcessingData() -> typing.Type['ProcessingData2']: "Tags": Tags, "ProcessingData": ProcessingData, "FirstInstallmentDate": FirstInstallmentDate, + "Strategy": Strategy, } PurchaseMethod: 'PurchaseMethod' @@ -113,10 +118,13 @@ def __getitem__(self, name: typing_extensions.Literal["ProcessingData"]) -> 'Pro @typing.overload def __getitem__(self, name: typing_extensions.Literal["FirstInstallmentDate"]) -> MetaOapg.properties.FirstInstallmentDate: ... + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["Strategy"]) -> 'PlanStrategy': ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", "Strategy", ], str]): # dict_instance[name] accessor return super().__getitem__(name) @@ -154,10 +162,13 @@ def get_item_oapg(self, name: typing_extensions.Literal["ProcessingData"]) -> ty @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["FirstInstallmentDate"]) -> typing.Union[MetaOapg.properties.FirstInstallmentDate, schemas.Unset]: ... + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["Strategy"]) -> typing.Union['PlanStrategy', schemas.Unset]: ... + @typing.overload def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", "Strategy", ], str]): return super().get_item_oapg(name) @@ -175,6 +186,7 @@ def __new__( Tags: typing.Union['PlanDataTags', schemas.Unset] = schemas.unset, ProcessingData: typing.Union['ProcessingData2', schemas.Unset] = schemas.unset, FirstInstallmentDate: typing.Union[MetaOapg.properties.FirstInstallmentDate, str, datetime, schemas.Unset] = schemas.unset, + Strategy: typing.Union['PlanStrategy', schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], ) -> 'PlanData': @@ -192,11 +204,13 @@ def __new__( Tags=Tags, ProcessingData=ProcessingData, FirstInstallmentDate=FirstInstallmentDate, + Strategy=Strategy, _configuration=_configuration, **kwargs, ) from splitit_client.model.plan_data_allowed_installment_options import PlanDataAllowedInstallmentOptions from splitit_client.model.plan_data_tags import PlanDataTags +from splitit_client.model.plan_strategy import PlanStrategy from splitit_client.model.processing_data2 import ProcessingData2 from splitit_client.model.purchase_method import PurchaseMethod diff --git a/python/splitit_client/model/plan_data.pyi b/python/splitit_client/model/plan_data.pyi index afbc2fd7..0d89220d 100644 --- a/python/splitit_client/model/plan_data.pyi +++ b/python/splitit_client/model/plan_data.pyi @@ -62,6 +62,10 @@ class PlanData( def ProcessingData() -> typing.Type['ProcessingData2']: return ProcessingData2 FirstInstallmentDate = schemas.DateTimeSchema + + @staticmethod + def Strategy() -> typing.Type['PlanStrategy']: + return PlanStrategy __annotations__ = { "TotalAmount": TotalAmount, "NumberOfInstallments": NumberOfInstallments, @@ -74,6 +78,7 @@ class PlanData( "Tags": Tags, "ProcessingData": ProcessingData, "FirstInstallmentDate": FirstInstallmentDate, + "Strategy": Strategy, } PurchaseMethod: 'PurchaseMethod' @@ -113,10 +118,13 @@ class PlanData( @typing.overload def __getitem__(self, name: typing_extensions.Literal["FirstInstallmentDate"]) -> MetaOapg.properties.FirstInstallmentDate: ... + @typing.overload + def __getitem__(self, name: typing_extensions.Literal["Strategy"]) -> 'PlanStrategy': ... + @typing.overload def __getitem__(self, name: str) -> schemas.UnsetAnyTypeSchema: ... - def __getitem__(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", ], str]): + def __getitem__(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", "Strategy", ], str]): # dict_instance[name] accessor return super().__getitem__(name) @@ -154,10 +162,13 @@ class PlanData( @typing.overload def get_item_oapg(self, name: typing_extensions.Literal["FirstInstallmentDate"]) -> typing.Union[MetaOapg.properties.FirstInstallmentDate, schemas.Unset]: ... + @typing.overload + def get_item_oapg(self, name: typing_extensions.Literal["Strategy"]) -> typing.Union['PlanStrategy', schemas.Unset]: ... + @typing.overload def get_item_oapg(self, name: str) -> typing.Union[schemas.UnsetAnyTypeSchema, schemas.Unset]: ... - def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", ], str]): + def get_item_oapg(self, name: typing.Union[typing_extensions.Literal["TotalAmount", "NumberOfInstallments", "PurchaseMethod", "TerminalId", "FirstInstallmentAmount", "Currency", "RefOrderNumber", "AllowedInstallmentOptions", "Tags", "ProcessingData", "FirstInstallmentDate", "Strategy", ], str]): return super().get_item_oapg(name) @@ -175,6 +186,7 @@ class PlanData( Tags: typing.Union['PlanDataTags', schemas.Unset] = schemas.unset, ProcessingData: typing.Union['ProcessingData2', schemas.Unset] = schemas.unset, FirstInstallmentDate: typing.Union[MetaOapg.properties.FirstInstallmentDate, str, datetime, schemas.Unset] = schemas.unset, + Strategy: typing.Union['PlanStrategy', schemas.Unset] = schemas.unset, _configuration: typing.Optional[schemas.Configuration] = None, **kwargs: typing.Union[schemas.AnyTypeSchema, dict, frozendict.frozendict, str, date, datetime, uuid.UUID, int, float, decimal.Decimal, None, list, tuple, bytes], ) -> 'PlanData': @@ -192,11 +204,13 @@ class PlanData( Tags=Tags, ProcessingData=ProcessingData, FirstInstallmentDate=FirstInstallmentDate, + Strategy=Strategy, _configuration=_configuration, **kwargs, ) from splitit_client.model.plan_data_allowed_installment_options import PlanDataAllowedInstallmentOptions from splitit_client.model.plan_data_tags import PlanDataTags +from splitit_client.model.plan_strategy import PlanStrategy from splitit_client.model.processing_data2 import ProcessingData2 from splitit_client.model.purchase_method import PurchaseMethod diff --git a/python/splitit_client/model/plan_strategy.py b/python/splitit_client/model/plan_strategy.py new file mode 100644 index 00000000..d67fa378 --- /dev/null +++ b/python/splitit_client/model/plan_strategy.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + splitit-web-api-v3 + + Splitit's Web API + + The version of the OpenAPI document: 1.0.0 + Generated by: https://konfigthis.com +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from splitit_client import schemas # noqa: F401 + + +class PlanStrategy( + schemas.EnumBase, + schemas.StrSchema +): + """ + This class is auto generated by Konfig (https://konfigthis.com) + """ + + + class MetaOapg: + enum_value_to_name = { + "SecuredPlan": "SECURED_PLAN", + "NonSecuredPlan": "NON_SECURED_PLAN", + "SecuredPlanCaptureExistingSecurityAuth": "SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH", + "SecuredPlan3": "SECURED_PLAN3", + "SinglePayment": "SINGLE_PAYMENT", + "ExternalInstallmentProvider": "EXTERNAL_INSTALLMENT_PROVIDER", + "SecuredPlan3A": "SECURED_PLAN3A", + "SecuredPlan3B": "SECURED_PLAN3B", + "SecuredPlan2A": "SECURED_PLAN2A", + "SecuredPlan2": "SECURED_PLAN2", + "SecuredPlan4": "SECURED_PLAN4", + "SecuredPlan4A": "SECURED_PLAN4A", + } + + @schemas.classproperty + def SECURED_PLAN(cls): + return cls("SecuredPlan") + + @schemas.classproperty + def NON_SECURED_PLAN(cls): + return cls("NonSecuredPlan") + + @schemas.classproperty + def SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH(cls): + return cls("SecuredPlanCaptureExistingSecurityAuth") + + @schemas.classproperty + def SECURED_PLAN3(cls): + return cls("SecuredPlan3") + + @schemas.classproperty + def SINGLE_PAYMENT(cls): + return cls("SinglePayment") + + @schemas.classproperty + def EXTERNAL_INSTALLMENT_PROVIDER(cls): + return cls("ExternalInstallmentProvider") + + @schemas.classproperty + def SECURED_PLAN3A(cls): + return cls("SecuredPlan3A") + + @schemas.classproperty + def SECURED_PLAN3B(cls): + return cls("SecuredPlan3B") + + @schemas.classproperty + def SECURED_PLAN2A(cls): + return cls("SecuredPlan2A") + + @schemas.classproperty + def SECURED_PLAN2(cls): + return cls("SecuredPlan2") + + @schemas.classproperty + def SECURED_PLAN4(cls): + return cls("SecuredPlan4") + + @schemas.classproperty + def SECURED_PLAN4A(cls): + return cls("SecuredPlan4A") diff --git a/python/splitit_client/model/plan_strategy.pyi b/python/splitit_client/model/plan_strategy.pyi new file mode 100644 index 00000000..bbf7843f --- /dev/null +++ b/python/splitit_client/model/plan_strategy.pyi @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + splitit-web-api-v3 + + Splitit's Web API + + The version of the OpenAPI document: 1.0.0 + Generated by: https://konfigthis.com +""" + +from datetime import date, datetime # noqa: F401 +import decimal # noqa: F401 +import functools # noqa: F401 +import io # noqa: F401 +import re # noqa: F401 +import typing # noqa: F401 +import typing_extensions # noqa: F401 +import uuid # noqa: F401 + +import frozendict # noqa: F401 + +from splitit_client import schemas # noqa: F401 + + +class PlanStrategy( + schemas.EnumBase, + schemas.StrSchema +): + """ + This class is auto generated by Konfig (https://konfigthis.com) + """ + + @schemas.classproperty + def SECURED_PLAN(cls): + return cls("SecuredPlan") + + @schemas.classproperty + def NON_SECURED_PLAN(cls): + return cls("NonSecuredPlan") + + @schemas.classproperty + def SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH(cls): + return cls("SecuredPlanCaptureExistingSecurityAuth") + + @schemas.classproperty + def SECURED_PLAN3(cls): + return cls("SecuredPlan3") + + @schemas.classproperty + def SINGLE_PAYMENT(cls): + return cls("SinglePayment") + + @schemas.classproperty + def EXTERNAL_INSTALLMENT_PROVIDER(cls): + return cls("ExternalInstallmentProvider") + + @schemas.classproperty + def SECURED_PLAN3A(cls): + return cls("SecuredPlan3A") + + @schemas.classproperty + def SECURED_PLAN3B(cls): + return cls("SecuredPlan3B") + + @schemas.classproperty + def SECURED_PLAN2A(cls): + return cls("SecuredPlan2A") + + @schemas.classproperty + def SECURED_PLAN2(cls): + return cls("SecuredPlan2") + + @schemas.classproperty + def SECURED_PLAN4(cls): + return cls("SecuredPlan4") + + @schemas.classproperty + def SECURED_PLAN4A(cls): + return cls("SecuredPlan4A") diff --git a/python/splitit_client/models/__init__.py b/python/splitit_client/models/__init__.py index 93687ec7..e3672ffb 100644 --- a/python/splitit_client/models/__init__.py +++ b/python/splitit_client/models/__init__.py @@ -59,6 +59,7 @@ from splitit_client.model.plan_data_tags import PlanDataTags from splitit_client.model.plan_error_response import PlanErrorResponse from splitit_client.model.plan_status import PlanStatus +from splitit_client.model.plan_strategy import PlanStrategy from splitit_client.model.processing_data import ProcessingData from splitit_client.model.processing_data2 import ProcessingData2 from splitit_client.model.purchase_method import PurchaseMethod diff --git a/python/splitit_client/operation_parameter_map.py b/python/splitit_client/operation_parameter_map.py index d9c20c82..a9c447a8 100644 --- a/python/splitit_client/operation_parameter_map.py +++ b/python/splitit_client/operation_parameter_map.py @@ -85,6 +85,9 @@ { 'name': 'X-Splitit-TestMode' }, + { + 'name': 'X-Splitit-Strategy' + }, { 'name': 'Splititclientinfo' }, @@ -131,6 +134,9 @@ { 'name': 'X-Splitit-TestMode' }, + { + 'name': 'X-Splitit-Strategy' + }, { 'name': 'Splititclientinfo' }, diff --git a/python/splitit_client/paths/api_installmentplans/post.py b/python/splitit_client/paths/api_installmentplans/post.py index b4071713..a0a76603 100644 --- a/python/splitit_client/paths/api_installmentplans/post.py +++ b/python/splitit_client/paths/api_installmentplans/post.py @@ -89,6 +89,77 @@ def FAST(cls): @schemas.classproperty def AUTOMATION(cls): return cls("Automation") + + +class XSplititStrategySchema( + schemas.EnumBase, + schemas.StrSchema +): + + + class MetaOapg: + enum_value_to_name = { + "SecuredPlan": "SECURED_PLAN", + "NonSecuredPlan": "NON_SECURED_PLAN", + "SecuredPlanCaptureExistingSecurityAuth": "SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH", + "SecuredPlan3": "SECURED_PLAN3", + "SinglePayment": "SINGLE_PAYMENT", + "ExternalInstallmentProvider": "EXTERNAL_INSTALLMENT_PROVIDER", + "SecuredPlan3A": "SECURED_PLAN3A", + "SecuredPlan3B": "SECURED_PLAN3B", + "SecuredPlan2A": "SECURED_PLAN2A", + "SecuredPlan2": "SECURED_PLAN2", + "SecuredPlan4": "SECURED_PLAN4", + "SecuredPlan4A": "SECURED_PLAN4A", + } + + @schemas.classproperty + def SECURED_PLAN(cls): + return cls("SecuredPlan") + + @schemas.classproperty + def NON_SECURED_PLAN(cls): + return cls("NonSecuredPlan") + + @schemas.classproperty + def SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH(cls): + return cls("SecuredPlanCaptureExistingSecurityAuth") + + @schemas.classproperty + def SECURED_PLAN3(cls): + return cls("SecuredPlan3") + + @schemas.classproperty + def SINGLE_PAYMENT(cls): + return cls("SinglePayment") + + @schemas.classproperty + def EXTERNAL_INSTALLMENT_PROVIDER(cls): + return cls("ExternalInstallmentProvider") + + @schemas.classproperty + def SECURED_PLAN3A(cls): + return cls("SecuredPlan3A") + + @schemas.classproperty + def SECURED_PLAN3B(cls): + return cls("SecuredPlan3B") + + @schemas.classproperty + def SECURED_PLAN2A(cls): + return cls("SecuredPlan2A") + + @schemas.classproperty + def SECURED_PLAN2(cls): + return cls("SecuredPlan2") + + @schemas.classproperty + def SECURED_PLAN4(cls): + return cls("SecuredPlan4") + + @schemas.classproperty + def SECURED_PLAN4A(cls): + return cls("SecuredPlan4A") SplititclientinfoSchema = schemas.StrSchema XSplititIdempotencyKeySchema = schemas.StrSchema XSplititTouchPointSchema = schemas.StrSchema @@ -103,6 +174,7 @@ def AUTOMATION(cls): 'RequestOptionalHeaderParams', { 'X-Splitit-TestMode': typing.Union[XSplititTestModeSchema, str, ], + 'X-Splitit-Strategy': typing.Union[XSplititStrategySchema, str, ], 'Splititclientinfo': typing.Union[SplititclientinfoSchema, str, ], }, total=False @@ -118,6 +190,11 @@ class RequestHeaderParams(RequestRequiredHeaderParams, RequestOptionalHeaderPara style=api_client.ParameterStyle.SIMPLE, schema=XSplititTestModeSchema, ) +request_header_x_splitit_strategy = api_client.HeaderParameter( + name="X-Splitit-Strategy", + style=api_client.ParameterStyle.SIMPLE, + schema=XSplititStrategySchema, +) request_header_splititclientinfo = api_client.HeaderParameter( name="Splititclientinfo", style=api_client.ParameterStyle.SIMPLE, @@ -352,6 +429,7 @@ def _post2_mapped_args( processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> api_client.MappedArgs: args: api_client.MappedArgs = api_client.MappedArgs() @@ -380,6 +458,8 @@ def _post2_mapped_args( args.body = _body if x_splitit_test_mode is not None: _header_params["X-Splitit-TestMode"] = x_splitit_test_mode + if x_splitit_strategy is not None: + _header_params["X-Splitit-Strategy"] = x_splitit_strategy if splititclientinfo is not None: _header_params["Splititclientinfo"] = splititclientinfo if x_splitit_idempotency_key is not None: @@ -415,6 +495,7 @@ class instances _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -541,6 +622,7 @@ class instances _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -630,6 +712,7 @@ async def apost2( processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -651,6 +734,7 @@ async def apost2( processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost2_oapg( @@ -674,6 +758,7 @@ def post2( processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -694,6 +779,7 @@ def post2( processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post2_oapg( @@ -719,6 +805,7 @@ async def apost( processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -740,6 +827,7 @@ async def apost( processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost2_oapg( @@ -763,6 +851,7 @@ def post( processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -783,6 +872,7 @@ def post( processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post2_oapg( diff --git a/python/splitit_client/paths/api_installmentplans/post.pyi b/python/splitit_client/paths/api_installmentplans/post.pyi index e21ffec0..8cb64713 100644 --- a/python/splitit_client/paths/api_installmentplans/post.pyi +++ b/python/splitit_client/paths/api_installmentplans/post.pyi @@ -78,6 +78,60 @@ class XSplititTestModeSchema( @schemas.classproperty def AUTOMATION(cls): return cls("Automation") + + +class XSplititStrategySchema( + schemas.EnumBase, + schemas.StrSchema +): + + @schemas.classproperty + def SECURED_PLAN(cls): + return cls("SecuredPlan") + + @schemas.classproperty + def NON_SECURED_PLAN(cls): + return cls("NonSecuredPlan") + + @schemas.classproperty + def SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH(cls): + return cls("SecuredPlanCaptureExistingSecurityAuth") + + @schemas.classproperty + def SECURED_PLAN3(cls): + return cls("SecuredPlan3") + + @schemas.classproperty + def SINGLE_PAYMENT(cls): + return cls("SinglePayment") + + @schemas.classproperty + def EXTERNAL_INSTALLMENT_PROVIDER(cls): + return cls("ExternalInstallmentProvider") + + @schemas.classproperty + def SECURED_PLAN3A(cls): + return cls("SecuredPlan3A") + + @schemas.classproperty + def SECURED_PLAN3B(cls): + return cls("SecuredPlan3B") + + @schemas.classproperty + def SECURED_PLAN2A(cls): + return cls("SecuredPlan2A") + + @schemas.classproperty + def SECURED_PLAN2(cls): + return cls("SecuredPlan2") + + @schemas.classproperty + def SECURED_PLAN4(cls): + return cls("SecuredPlan4") + + @schemas.classproperty + def SECURED_PLAN4A(cls): + return cls("SecuredPlan4A") SplititclientinfoSchema = schemas.StrSchema XSplititIdempotencyKeySchema = schemas.StrSchema XSplititTouchPointSchema = schemas.StrSchema @@ -92,6 +146,7 @@ RequestOptionalHeaderParams = typing_extensions.TypedDict( 'RequestOptionalHeaderParams', { 'X-Splitit-TestMode': typing.Union[XSplititTestModeSchema, str, ], + 'X-Splitit-Strategy': typing.Union[XSplititStrategySchema, str, ], 'Splititclientinfo': typing.Union[SplititclientinfoSchema, str, ], }, total=False @@ -107,6 +162,11 @@ request_header_x_splitit_test_mode = api_client.HeaderParameter( style=api_client.ParameterStyle.SIMPLE, schema=XSplititTestModeSchema, ) +request_header_x_splitit_strategy = api_client.HeaderParameter( + name="X-Splitit-Strategy", + style=api_client.ParameterStyle.SIMPLE, + schema=XSplititStrategySchema, +) request_header_splititclientinfo = api_client.HeaderParameter( name="Splititclientinfo", style=api_client.ParameterStyle.SIMPLE, @@ -330,6 +390,7 @@ class BaseApi(api_client.Api): processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> api_client.MappedArgs: args: api_client.MappedArgs = api_client.MappedArgs() @@ -358,6 +419,8 @@ class BaseApi(api_client.Api): args.body = _body if x_splitit_test_mode is not None: _header_params["X-Splitit-TestMode"] = x_splitit_test_mode + if x_splitit_strategy is not None: + _header_params["X-Splitit-Strategy"] = x_splitit_strategy if splititclientinfo is not None: _header_params["Splititclientinfo"] = splititclientinfo if x_splitit_idempotency_key is not None: @@ -393,6 +456,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -519,6 +583,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -608,6 +673,7 @@ class Post2(BaseApi): processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -629,6 +695,7 @@ class Post2(BaseApi): processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost2_oapg( @@ -652,6 +719,7 @@ class Post2(BaseApi): processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -672,6 +740,7 @@ class Post2(BaseApi): processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post2_oapg( @@ -697,6 +766,7 @@ class ApiForpost(BaseApi): processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -718,6 +788,7 @@ class ApiForpost(BaseApi): processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost2_oapg( @@ -741,6 +812,7 @@ class ApiForpost(BaseApi): processing_data: typing.Optional[ProcessingData] = None, events_endpoints: typing.Optional[EventsEndpointsModel] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -761,6 +833,7 @@ class ApiForpost(BaseApi): processing_data=processing_data, events_endpoints=events_endpoints, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post2_oapg( diff --git a/python/splitit_client/paths/api_installmentplans_initiate/post.py b/python/splitit_client/paths/api_installmentplans_initiate/post.py index 4b4037f6..997e474e 100644 --- a/python/splitit_client/paths/api_installmentplans_initiate/post.py +++ b/python/splitit_client/paths/api_installmentplans_initiate/post.py @@ -89,6 +89,77 @@ def FAST(cls): @schemas.classproperty def AUTOMATION(cls): return cls("Automation") + + +class XSplititStrategySchema( + schemas.EnumBase, + schemas.StrSchema +): + + + class MetaOapg: + enum_value_to_name = { + "SecuredPlan": "SECURED_PLAN", + "NonSecuredPlan": "NON_SECURED_PLAN", + "SecuredPlanCaptureExistingSecurityAuth": "SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH", + "SecuredPlan3": "SECURED_PLAN3", + "SinglePayment": "SINGLE_PAYMENT", + "ExternalInstallmentProvider": "EXTERNAL_INSTALLMENT_PROVIDER", + "SecuredPlan3A": "SECURED_PLAN3A", + "SecuredPlan3B": "SECURED_PLAN3B", + "SecuredPlan2A": "SECURED_PLAN2A", + "SecuredPlan2": "SECURED_PLAN2", + "SecuredPlan4": "SECURED_PLAN4", + "SecuredPlan4A": "SECURED_PLAN4A", + } + + @schemas.classproperty + def SECURED_PLAN(cls): + return cls("SecuredPlan") + + @schemas.classproperty + def NON_SECURED_PLAN(cls): + return cls("NonSecuredPlan") + + @schemas.classproperty + def SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH(cls): + return cls("SecuredPlanCaptureExistingSecurityAuth") + + @schemas.classproperty + def SECURED_PLAN3(cls): + return cls("SecuredPlan3") + + @schemas.classproperty + def SINGLE_PAYMENT(cls): + return cls("SinglePayment") + + @schemas.classproperty + def EXTERNAL_INSTALLMENT_PROVIDER(cls): + return cls("ExternalInstallmentProvider") + + @schemas.classproperty + def SECURED_PLAN3A(cls): + return cls("SecuredPlan3A") + + @schemas.classproperty + def SECURED_PLAN3B(cls): + return cls("SecuredPlan3B") + + @schemas.classproperty + def SECURED_PLAN2A(cls): + return cls("SecuredPlan2A") + + @schemas.classproperty + def SECURED_PLAN2(cls): + return cls("SecuredPlan2") + + @schemas.classproperty + def SECURED_PLAN4(cls): + return cls("SecuredPlan4") + + @schemas.classproperty + def SECURED_PLAN4A(cls): + return cls("SecuredPlan4A") SplititclientinfoSchema = schemas.StrSchema XSplititIdempotencyKeySchema = schemas.StrSchema XSplititTouchPointSchema = schemas.StrSchema @@ -103,6 +174,7 @@ def AUTOMATION(cls): 'RequestOptionalHeaderParams', { 'X-Splitit-TestMode': typing.Union[XSplititTestModeSchema, str, ], + 'X-Splitit-Strategy': typing.Union[XSplititStrategySchema, str, ], 'Splititclientinfo': typing.Union[SplititclientinfoSchema, str, ], }, total=False @@ -118,6 +190,11 @@ class RequestHeaderParams(RequestRequiredHeaderParams, RequestOptionalHeaderPara style=api_client.ParameterStyle.SIMPLE, schema=XSplititTestModeSchema, ) +request_header_x_splitit_strategy = api_client.HeaderParameter( + name="X-Splitit-Strategy", + style=api_client.ParameterStyle.SIMPLE, + schema=XSplititStrategySchema, +) request_header_splititclientinfo = api_client.HeaderParameter( name="Splititclientinfo", style=api_client.ParameterStyle.SIMPLE, @@ -351,6 +428,7 @@ def _post_mapped_args( events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> api_client.MappedArgs: args: api_client.MappedArgs = api_client.MappedArgs() @@ -377,6 +455,8 @@ def _post_mapped_args( args.body = _body if x_splitit_test_mode is not None: _header_params["X-Splitit-TestMode"] = x_splitit_test_mode + if x_splitit_strategy is not None: + _header_params["X-Splitit-Strategy"] = x_splitit_strategy if splititclientinfo is not None: _header_params["Splititclientinfo"] = splititclientinfo if x_splitit_idempotency_key is not None: @@ -412,6 +492,7 @@ class instances _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -538,6 +619,7 @@ class instances _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -626,6 +708,7 @@ async def apost( events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -646,6 +729,7 @@ async def apost( events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost_oapg( @@ -668,6 +752,7 @@ def post( events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -687,6 +772,7 @@ def post( events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post_oapg( @@ -711,6 +797,7 @@ async def apost( events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -731,6 +818,7 @@ async def apost( events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost_oapg( @@ -753,6 +841,7 @@ def post( events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -772,6 +861,7 @@ def post( events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post_oapg( diff --git a/python/splitit_client/paths/api_installmentplans_initiate/post.pyi b/python/splitit_client/paths/api_installmentplans_initiate/post.pyi index 58f539b8..754d135e 100644 --- a/python/splitit_client/paths/api_installmentplans_initiate/post.pyi +++ b/python/splitit_client/paths/api_installmentplans_initiate/post.pyi @@ -78,6 +78,60 @@ class XSplititTestModeSchema( @schemas.classproperty def AUTOMATION(cls): return cls("Automation") + + +class XSplititStrategySchema( + schemas.EnumBase, + schemas.StrSchema +): + + @schemas.classproperty + def SECURED_PLAN(cls): + return cls("SecuredPlan") + + @schemas.classproperty + def NON_SECURED_PLAN(cls): + return cls("NonSecuredPlan") + + @schemas.classproperty + def SECURED_PLAN_CAPTURE_EXISTING_SECURITY_AUTH(cls): + return cls("SecuredPlanCaptureExistingSecurityAuth") + + @schemas.classproperty + def SECURED_PLAN3(cls): + return cls("SecuredPlan3") + + @schemas.classproperty + def SINGLE_PAYMENT(cls): + return cls("SinglePayment") + + @schemas.classproperty + def EXTERNAL_INSTALLMENT_PROVIDER(cls): + return cls("ExternalInstallmentProvider") + + @schemas.classproperty + def SECURED_PLAN3A(cls): + return cls("SecuredPlan3A") + + @schemas.classproperty + def SECURED_PLAN3B(cls): + return cls("SecuredPlan3B") + + @schemas.classproperty + def SECURED_PLAN2A(cls): + return cls("SecuredPlan2A") + + @schemas.classproperty + def SECURED_PLAN2(cls): + return cls("SecuredPlan2") + + @schemas.classproperty + def SECURED_PLAN4(cls): + return cls("SecuredPlan4") + + @schemas.classproperty + def SECURED_PLAN4A(cls): + return cls("SecuredPlan4A") SplititclientinfoSchema = schemas.StrSchema XSplititIdempotencyKeySchema = schemas.StrSchema XSplititTouchPointSchema = schemas.StrSchema @@ -92,6 +146,7 @@ RequestOptionalHeaderParams = typing_extensions.TypedDict( 'RequestOptionalHeaderParams', { 'X-Splitit-TestMode': typing.Union[XSplititTestModeSchema, str, ], + 'X-Splitit-Strategy': typing.Union[XSplititStrategySchema, str, ], 'Splititclientinfo': typing.Union[SplititclientinfoSchema, str, ], }, total=False @@ -107,6 +162,11 @@ request_header_x_splitit_test_mode = api_client.HeaderParameter( style=api_client.ParameterStyle.SIMPLE, schema=XSplititTestModeSchema, ) +request_header_x_splitit_strategy = api_client.HeaderParameter( + name="X-Splitit-Strategy", + style=api_client.ParameterStyle.SIMPLE, + schema=XSplititStrategySchema, +) request_header_splititclientinfo = api_client.HeaderParameter( name="Splititclientinfo", style=api_client.ParameterStyle.SIMPLE, @@ -329,6 +389,7 @@ class BaseApi(api_client.Api): events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> api_client.MappedArgs: args: api_client.MappedArgs = api_client.MappedArgs() @@ -355,6 +416,8 @@ class BaseApi(api_client.Api): args.body = _body if x_splitit_test_mode is not None: _header_params["X-Splitit-TestMode"] = x_splitit_test_mode + if x_splitit_strategy is not None: + _header_params["X-Splitit-Strategy"] = x_splitit_strategy if splititclientinfo is not None: _header_params["Splititclientinfo"] = splititclientinfo if x_splitit_idempotency_key is not None: @@ -390,6 +453,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -516,6 +580,7 @@ class BaseApi(api_client.Api): _headers = HTTPHeaderDict() for parameter in ( request_header_x_splitit_test_mode, + request_header_x_splitit_strategy, request_header_splititclientinfo, request_header_x_splitit_idempotency_key, request_header_x_splitit_touch_point, @@ -604,6 +669,7 @@ class Post(BaseApi): events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -624,6 +690,7 @@ class Post(BaseApi): events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost_oapg( @@ -646,6 +713,7 @@ class Post(BaseApi): events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -665,6 +733,7 @@ class Post(BaseApi): events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post_oapg( @@ -689,6 +758,7 @@ class ApiForpost(BaseApi): events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, **kwargs, ) -> typing.Union[ @@ -709,6 +779,7 @@ class ApiForpost(BaseApi): events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return await self._apost_oapg( @@ -731,6 +802,7 @@ class ApiForpost(BaseApi): events_endpoints: typing.Optional[EventsEndpointsModel] = None, processing_data: typing.Optional[ProcessingData] = None, x_splitit_test_mode: typing.Optional[str] = None, + x_splitit_strategy: typing.Optional[str] = None, splititclientinfo: typing.Optional[str] = None, ) -> typing.Union[ ApiResponseFor200, @@ -750,6 +822,7 @@ class ApiForpost(BaseApi): events_endpoints=events_endpoints, processing_data=processing_data, x_splitit_test_mode=x_splitit_test_mode, + x_splitit_strategy=x_splitit_strategy, splititclientinfo=splititclientinfo, ) return self._post_oapg( diff --git a/python/splitit_client/type/plan_data.py b/python/splitit_client/type/plan_data.py index 0ebc46df..c36de8b7 100644 --- a/python/splitit_client/type/plan_data.py +++ b/python/splitit_client/type/plan_data.py @@ -16,6 +16,7 @@ from splitit_client.type.plan_data_allowed_installment_options import PlanDataAllowedInstallmentOptions from splitit_client.type.plan_data_tags import PlanDataTags +from splitit_client.type.plan_strategy import PlanStrategy from splitit_client.type.processing_data2 import ProcessingData2 from splitit_client.type.purchase_method import PurchaseMethod @@ -44,5 +45,7 @@ class OptionalPlanData(TypedDict, total=False): FirstInstallmentDate: datetime + Strategy: PlanStrategy + class PlanData(RequiredPlanData, OptionalPlanData): pass diff --git a/python/splitit_client/type/plan_strategy.py b/python/splitit_client/type/plan_strategy.py new file mode 100644 index 00000000..01a23b6b --- /dev/null +++ b/python/splitit_client/type/plan_strategy.py @@ -0,0 +1,18 @@ +# coding: utf-8 + +""" + splitit-web-api-v3 + + Splitit's Web API + + The version of the OpenAPI document: 1.0.0 + Generated by: https://konfigthis.com +""" + +from datetime import datetime, date +import typing +from enum import Enum +from typing_extensions import TypedDict, Literal, TYPE_CHECKING + + +PlanStrategy = Literal["SecuredPlan", "NonSecuredPlan", "SecuredPlanCaptureExistingSecurityAuth", "SecuredPlan3", "SinglePayment", "ExternalInstallmentProvider", "SecuredPlan3A", "SecuredPlan3B", "SecuredPlan2A", "SecuredPlan2", "SecuredPlan4", "SecuredPlan4A"] diff --git a/python/test/test_models/test_plan_strategy.py b/python/test/test_models/test_plan_strategy.py new file mode 100644 index 00000000..35bcfb2b --- /dev/null +++ b/python/test/test_models/test_plan_strategy.py @@ -0,0 +1,25 @@ +# coding: utf-8 + +""" + splitit-web-api-v3 + + Splitit's Web API + + The version of the OpenAPI document: 1.0.0 + Generated by: https://konfigthis.com +""" + +import unittest + +import splitit_client +from splitit_client.model.plan_strategy import PlanStrategy +from splitit_client import configuration + + +class TestPlanStrategy(unittest.TestCase): + """PlanStrategy unit test stubs""" + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/swagger-fixed.json b/swagger-fixed.json index f6b8c289..02873086 100644 --- a/swagger-fixed.json +++ b/swagger-fixed.json @@ -368,6 +368,32 @@ ] } }, + { + "name": "X-Splitit-Strategy", + "x-originalName": "planStrategy", + "in": "header", + "x-schema": { + "$ref": "#/components/schemas/PlanStrategy" + }, + "x-nullable": true, + "schema": { + "type": "string", + "enum": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ] + } + }, { "name": "Splititclientinfo", "x-originalName": "splititclientinfo", @@ -584,6 +610,32 @@ ] } }, + { + "name": "X-Splitit-Strategy", + "x-originalName": "planStrategy", + "in": "header", + "x-schema": { + "$ref": "#/components/schemas/PlanStrategy" + }, + "x-nullable": true, + "schema": { + "type": "string", + "enum": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ] + } + }, { "name": "Splititclientinfo", "x-originalName": "splititclientinfo", @@ -2625,6 +2677,38 @@ "Automation" ] }, + "PlanStrategy": { + "description": "", + "type": "string", + "x-enumNames": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ], + "enum": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ] + }, "InstallmentPlanCreateResponse": { "type": "object", "required": [ @@ -3073,6 +3157,9 @@ "FirstInstallmentDate": { "type": "string", "format": "date-time" + }, + "Strategy": { + "$ref": "#/components/schemas/PlanStrategy" } } }, diff --git a/swagger.json b/swagger.json index b630cd44..0d306d61 100644 --- a/swagger.json +++ b/swagger.json @@ -231,6 +231,30 @@ "Automation" ] }, + { + "type": "string", + "name": "X-Splitit-Strategy", + "x-originalName": "planStrategy", + "in": "header", + "x-schema": { + "$ref": "#/definitions/PlanStrategy" + }, + "x-nullable": true, + "enum": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ] + }, { "type": "string", "name": "Splititclientinfo", @@ -351,6 +375,30 @@ "Automation" ] }, + { + "type": "string", + "name": "X-Splitit-Strategy", + "x-originalName": "planStrategy", + "in": "header", + "x-schema": { + "$ref": "#/definitions/PlanStrategy" + }, + "x-nullable": true, + "enum": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ] + }, { "type": "string", "name": "Splititclientinfo", @@ -1835,6 +1883,38 @@ "Automation" ] }, + "PlanStrategy": { + "type": "string", + "description": "", + "x-enumNames": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ], + "enum": [ + "SecuredPlan", + "NonSecuredPlan", + "SecuredPlanCaptureExistingSecurityAuth", + "SecuredPlan3", + "SinglePayment", + "ExternalInstallmentProvider", + "SecuredPlan3A", + "SecuredPlan3B", + "SecuredPlan2A", + "SecuredPlan2", + "SecuredPlan4", + "SecuredPlan4A" + ] + }, "InstallmentPlanCreateResponse": { "type": "object", "required": [ @@ -2283,6 +2363,9 @@ "FirstInstallmentDate": { "type": "string", "format": "date-time" + }, + "Strategy": { + "$ref": "#/definitions/PlanStrategy" } } }, diff --git a/typescript/.konfig/generate-id.txt b/typescript/.konfig/generate-id.txt index 18074da9..e8454117 100644 --- a/typescript/.konfig/generate-id.txt +++ b/typescript/.konfig/generate-id.txt @@ -1 +1 @@ -ca9fe135-b667-40db-9efe-98997fd6f676 \ No newline at end of file +ab9fadc8-b262-46cf-866c-0640d3186c35 \ No newline at end of file diff --git a/typescript/README.md b/typescript/README.md index 6c9592a4..deb40384 100644 --- a/typescript/README.md +++ b/typescript/README.md @@ -210,6 +210,7 @@ TouchPoint ```typescript const postResponse = await splitit.installmentplan.post({ xSplititTestMode: "None", + xSplititStrategy: "SecuredPlan", xSplititIdempotencyKey: "xSplititIdempotencyKey_example", xSplititTouchPoint: "", }); @@ -243,6 +244,8 @@ TouchPoint ##### xSplititTestMode: `'None' | 'Regular' | 'Fast' | 'Automation'` +##### xSplititStrategy: `'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A'` + ##### splititclientinfo: `string` #### 🔄 Return @@ -267,6 +270,7 @@ TouchPoint ```typescript const post2Response = await splitit.installmentplan.post2({ xSplititTestMode: "None", + xSplititStrategy: "SecuredPlan", xSplititIdempotencyKey: "xSplititIdempotencyKey_example", xSplititTouchPoint: "", AutoCapture: true, @@ -304,6 +308,8 @@ TouchPoint ##### xSplititTestMode: `'None' | 'Regular' | 'Fast' | 'Automation'` +##### xSplititStrategy: `'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A'` + ##### splititclientinfo: `string` #### 🔄 Return diff --git a/typescript/api/installmentplan-api-generated.ts b/typescript/api/installmentplan-api-generated.ts index b4ccfc41..772056c2 100644 --- a/typescript/api/installmentplan-api-generated.ts +++ b/typescript/api/installmentplan-api-generated.ts @@ -276,11 +276,12 @@ export const InstallmentplanApiAxiosParamCreator = function (configuration?: Con * @param {string} xSplititTouchPoint TouchPoint * @param {InstallmentPlanInitiateRequest} installmentPlanInitiateRequest * @param {'None' | 'Regular' | 'Fast' | 'Automation'} [xSplititTestMode] + * @param {'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A'} [xSplititStrategy] * @param {string} [splititclientinfo] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - post: async (xSplititIdempotencyKey: string, xSplititTouchPoint: string, installmentPlanInitiateRequest: InstallmentPlanInitiateRequest, xSplititTestMode?: 'None' | 'Regular' | 'Fast' | 'Automation', splititclientinfo?: string, options: AxiosRequestConfig = {}): Promise => { + post: async (xSplititIdempotencyKey: string, xSplititTouchPoint: string, installmentPlanInitiateRequest: InstallmentPlanInitiateRequest, xSplititTestMode?: 'None' | 'Regular' | 'Fast' | 'Automation', xSplititStrategy?: 'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A', splititclientinfo?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'xSplititIdempotencyKey' is not null or undefined assertParamExists('post', 'xSplititIdempotencyKey', xSplititIdempotencyKey) // verify required parameter 'xSplititTouchPoint' is not null or undefined @@ -306,6 +307,10 @@ export const InstallmentplanApiAxiosParamCreator = function (configuration?: Con localVarHeaderParameter['X-Splitit-TestMode'] = String(xSplititTestMode); } + if (xSplititStrategy != null) { + localVarHeaderParameter['X-Splitit-Strategy'] = String(xSplititStrategy); + } + if (splititclientinfo != null) { localVarHeaderParameter['Splititclientinfo'] = String(splititclientinfo); } @@ -348,11 +353,12 @@ export const InstallmentplanApiAxiosParamCreator = function (configuration?: Con * @param {string} xSplititTouchPoint TouchPoint * @param {InstallmentPlanCreateRequest} installmentPlanCreateRequest * @param {'None' | 'Regular' | 'Fast' | 'Automation'} [xSplititTestMode] + * @param {'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A'} [xSplititStrategy] * @param {string} [splititclientinfo] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - post2: async (xSplititIdempotencyKey: string, xSplititTouchPoint: string, installmentPlanCreateRequest: InstallmentPlanCreateRequest, xSplititTestMode?: 'None' | 'Regular' | 'Fast' | 'Automation', splititclientinfo?: string, options: AxiosRequestConfig = {}): Promise => { + post2: async (xSplititIdempotencyKey: string, xSplititTouchPoint: string, installmentPlanCreateRequest: InstallmentPlanCreateRequest, xSplititTestMode?: 'None' | 'Regular' | 'Fast' | 'Automation', xSplititStrategy?: 'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A', splititclientinfo?: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'xSplititIdempotencyKey' is not null or undefined assertParamExists('post2', 'xSplititIdempotencyKey', xSplititIdempotencyKey) // verify required parameter 'xSplititTouchPoint' is not null or undefined @@ -378,6 +384,10 @@ export const InstallmentplanApiAxiosParamCreator = function (configuration?: Con localVarHeaderParameter['X-Splitit-TestMode'] = String(xSplititTestMode); } + if (xSplititStrategy != null) { + localVarHeaderParameter['X-Splitit-Strategy'] = String(xSplititStrategy); + } + if (splititclientinfo != null) { localVarHeaderParameter['Splititclientinfo'] = String(splititclientinfo); } @@ -799,7 +809,7 @@ export const InstallmentplanApiFp = function(configuration?: Configuration) { EventsEndpoints: requestParameters.EventsEndpoints, ProcessingData: requestParameters.ProcessingData }; - const localVarAxiosArgs = await localVarAxiosParamCreator.post(requestParameters.xSplititIdempotencyKey, requestParameters.xSplititTouchPoint, installmentPlanInitiateRequest, requestParameters.xSplititTestMode, requestParameters.splititclientinfo, options); + const localVarAxiosArgs = await localVarAxiosParamCreator.post(requestParameters.xSplititIdempotencyKey, requestParameters.xSplititTouchPoint, installmentPlanInitiateRequest, requestParameters.xSplititTestMode, requestParameters.xSplititStrategy, requestParameters.splititclientinfo, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -821,7 +831,7 @@ export const InstallmentplanApiFp = function(configuration?: Configuration) { ProcessingData: requestParameters.ProcessingData, EventsEndpoints: requestParameters.EventsEndpoints }; - const localVarAxiosArgs = await localVarAxiosParamCreator.post2(requestParameters.xSplititIdempotencyKey, requestParameters.xSplititTouchPoint, installmentPlanCreateRequest, requestParameters.xSplititTestMode, requestParameters.splititclientinfo, options); + const localVarAxiosArgs = await localVarAxiosParamCreator.post2(requestParameters.xSplititIdempotencyKey, requestParameters.xSplititTouchPoint, installmentPlanCreateRequest, requestParameters.xSplititTestMode, requestParameters.xSplititStrategy, requestParameters.splititclientinfo, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -1102,6 +1112,13 @@ export type InstallmentplanApiPostRequest = { */ readonly xSplititTestMode?: 'None' | 'Regular' | 'Fast' | 'Automation' + /** + * + * @type {'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A'} + * @memberof InstallmentplanApiPost + */ + readonly xSplititStrategy?: 'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A' + /** * * @type {string} @@ -1139,6 +1156,13 @@ export type InstallmentplanApiPost2Request = { */ readonly xSplititTestMode?: 'None' | 'Regular' | 'Fast' | 'Automation' + /** + * + * @type {'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A'} + * @memberof InstallmentplanApiPost2 + */ + readonly xSplititStrategy?: 'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A' + /** * * @type {string} diff --git a/typescript/models/index.ts b/typescript/models/index.ts index 3bb55fbd..834db99f 100644 --- a/typescript/models/index.ts +++ b/typescript/models/index.ts @@ -42,6 +42,7 @@ export * from './plan-data-model'; export * from './plan-error-response'; export * from './plan-error-response-all-of'; export * from './plan-status'; +export * from './plan-strategy'; export * from './processing-data'; export * from './processing-data2'; export * from './purchase-method'; diff --git a/typescript/models/plan-data.ts b/typescript/models/plan-data.ts index 05ebce45..46280d08 100644 --- a/typescript/models/plan-data.ts +++ b/typescript/models/plan-data.ts @@ -10,6 +10,7 @@ NOTE: This file is auto generated by Konfig (https://konfigthis.com). */ import type * as buffer from "buffer" +import { PlanStrategy } from './plan-strategy'; import { ProcessingData2 } from './processing-data2'; import { PurchaseMethod } from './purchase-method'; @@ -85,5 +86,11 @@ export interface PlanData { * @memberof PlanData */ 'FirstInstallmentDate'?: string; + /** + * + * @type {PlanStrategy} + * @memberof PlanData + */ + 'Strategy'?: PlanStrategy; } diff --git a/typescript/models/plan-strategy.ts b/typescript/models/plan-strategy.ts new file mode 100644 index 00000000..ae9371b1 --- /dev/null +++ b/typescript/models/plan-strategy.ts @@ -0,0 +1,20 @@ +/* +splitit-web-api-v3 + +Splitit's Web API + +The version of the OpenAPI document: 1.0.0 + + +NOTE: This file is auto generated by Konfig (https://konfigthis.com). +*/ +import type * as buffer from "buffer" + + +/** + * + * @export + * @enum {string} + */ +export type PlanStrategy = 'SecuredPlan' | 'NonSecuredPlan' | 'SecuredPlanCaptureExistingSecurityAuth' | 'SecuredPlan3' | 'SinglePayment' | 'ExternalInstallmentProvider' | 'SecuredPlan3A' | 'SecuredPlan3B' | 'SecuredPlan2A' | 'SecuredPlan2' | 'SecuredPlan4' | 'SecuredPlan4A' + diff --git a/typescript/operationParameterMap.ts b/typescript/operationParameterMap.ts index 0b9098cb..043387e2 100644 --- a/typescript/operationParameterMap.ts +++ b/typescript/operationParameterMap.ts @@ -91,6 +91,9 @@ export const operationParameterMap: Record = { { name: 'X-Splitit-TestMode' }, + { + name: 'X-Splitit-Strategy' + }, { name: 'Splititclientinfo' }, @@ -137,6 +140,9 @@ export const operationParameterMap: Record = { { name: 'X-Splitit-TestMode' }, + { + name: 'X-Splitit-Strategy' + }, { name: 'Splititclientinfo' },