Skip to content

Commit

Permalink
Update OpenAPI Specification (#25)
Browse files Browse the repository at this point in the history
* Update OpenAPI Specification (swagger.json)

* Regenerate SDKs

* Update submodule references

---------

Co-authored-by: konfig-bot[bot] <121480725+konfig-bot[bot]@users.noreply.github.com>
Co-authored-by: konfig-publisher <[email protected]>
  • Loading branch information
konfig-bot[bot] and konfig-publisher authored Sep 30, 2024
1 parent 6847f79 commit 82cf424
Show file tree
Hide file tree
Showing 63 changed files with 1,902 additions and 93 deletions.
11 changes: 11 additions & 0 deletions .konfig/changesets/plain-apples-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
java: patch
python: patch
typescript: patch
csharp: patch
php: patch
go: patch
phpGuzzle6: patch
---

Regenerate SDKs
2 changes: 2 additions & 0 deletions .konfig/progress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions STATISTICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
2 changes: 1 addition & 1 deletion csharp/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ca9fe135-b667-40db-9efe-98997fd6f676
ab9fadc8-b262-46cf-866c-0640d3186c35
1 change: 1 addition & 0 deletions csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions csharp/Splitit.Web.Net.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
12 changes: 8 additions & 4 deletions csharp/docs/InstallmentPlanApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -382,7 +383,7 @@ This returns an ApiResponse object which contains the response data, status code
```csharp
try
{
ApiResponse<InitiatePlanResponse> response = apiInstance.PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo);
ApiResponse<InitiatePlanResponse> 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);
Expand All @@ -403,6 +404,7 @@ catch (ApiException e)
| **xSplititTouchPoint** | **string** | TouchPoint | [default to &quot;&quot;] |
| **installmentPlanInitiateRequest** | [**InstallmentPlanInitiateRequest**](InstallmentPlanInitiateRequest.md) | | |
| **xSplititTestMode** | **string** | | [optional] |
| **xSplititStrategy** | **string** | | [optional] |
| **splititclientinfo** | **string** | | [optional] |

### Return type
Expand Down Expand Up @@ -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)
Expand All @@ -502,7 +505,7 @@ This returns an ApiResponse object which contains the response data, status code
```csharp
try
{
ApiResponse<InstallmentPlanCreateResponse> response = apiInstance.Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo);
ApiResponse<InstallmentPlanCreateResponse> 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);
Expand All @@ -523,6 +526,7 @@ catch (ApiException e)
| **xSplititTouchPoint** | **string** | TouchPoint | [default to &quot;&quot;] |
| **installmentPlanCreateRequest** | [**InstallmentPlanCreateRequest**](InstallmentPlanCreateRequest.md) | | |
| **xSplititTestMode** | **string** | | [optional] |
| **xSplititStrategy** | **string** | | [optional] |
| **splititclientinfo** | **string** | | [optional] |

### Return type
Expand Down
1 change: 1 addition & 0 deletions csharp/docs/PlanData.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Name | Type | Description | Notes
**Tags** | **Dictionary&lt;string, string&gt;** | | [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)

9 changes: 9 additions & 0 deletions csharp/docs/PlanStrategy.md
Original file line number Diff line number Diff line change
@@ -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)

Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions csharp/src/Splitit.Web.Net.Test/Model/PlanDataTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ public void FirstInstallmentDateTest()
{
// TODO unit test for the property 'FirstInstallmentDate'
}
/// <summary>
/// Test the property 'Strategy'
/// </summary>
[Fact]
public void StrategyTest()
{
// TODO unit test for the property 'Strategy'
}

}

Expand Down
62 changes: 62 additions & 0 deletions csharp/src/Splitit.Web.Net.Test/Model/PlanStrategyTests.cs
Original file line number Diff line number Diff line change
@@ -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
{
/// <summary>
/// Class for testing PlanStrategy
/// </summary>
/// <remarks>
/// This file is automatically generated by Konfig (https://konfigthis.com).
/// Please update the test case below to test the model.
/// </remarks>
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.
}

/// <summary>
/// Test an instance of PlanStrategy
/// </summary>
[Fact]
public void PlanStrategyInstanceTest()
{
// TODO uncomment below to test "IsType" PlanStrategy
//Assert.IsType<PlanStrategy>(instance);
}



}

}
Loading

0 comments on commit 82cf424

Please sign in to comment.