Skip to content

Commit

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

* map tags to preserve bwds compatibility

* regenerate SDKs

* version bump sdks

---------

Co-authored-by: konfig-bot[bot] <121480725+konfig-bot[bot]@users.noreply.github.com>
Co-authored-by: eddiechayes <[email protected]>
  • Loading branch information
konfig-bot[bot] and eddiechayes authored Dec 19, 2023
1 parent 350d9f6 commit 4e6a5c0
Show file tree
Hide file tree
Showing 269 changed files with 1,158 additions and 1,589 deletions.
4 changes: 4 additions & 0 deletions .konfig/progress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
description: Splitit's Web API
examples: {}
examples_2: {}
examples_3: {}
fixOnlyOneTagName: false
operationIds: {}
operationTags: {}
Expand All @@ -18,6 +19,8 @@ securityParameters:
tokenUrl: https://id.production.splitit.com/connect/token
securityName: oauth
type: oauth2
Splititclientinfo:
header: false
X-Splitit-IdempotencyKey:
header: false
X-Splitit-TestMode:
Expand All @@ -30,3 +33,4 @@ securityParameters:
query: false
refOrderNumber:
query: false
validServerUrls: {}
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# splitit-web-sdks

|Language|Version|Package Manager|Documentation|Source|
|Language|Version|Package Manager|README|Source|
|-|-|-|-|-|
|Java|2.2.2|[Maven Central](https://central.sonatype.com/artifact/com.konfigthis/splitit-web-java-sdk/2.2.2)|[Documentation](https://github.com/konfig-dev/splitit-web-sdks/tree/main/java/README.md)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/java)|
|Python|2.6.1|[PyPI](https://pypi.org/project/splitit-web-python-sdk/2.6.1)|[Documentation](https://github.com/konfig-dev/splitit-web-sdks/tree/main/python/README.md)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/python)|
|TypeScript|3.3.2|[npm](https://www.npmjs.com/package/splitit-web-typescript-sdk/v/3.3.2)|[Documentation](https://github.com/konfig-dev/splitit-web-sdks/tree/main/typescript/README.md)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/typescript)|
|C#|2.1.1|[NuGet](https://nuget.org/packages/Splitit.Web.Net/2.1.1)|[Documentation](https://github.com/konfig-dev/splitit-web-sdks/tree/main/csharp/README.md)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/csharp)|
|PHP (7.0+)|2.3.0|[Packagist](https://packagist.org/packages/konfig/splitit-web-php-sdk#2.3.0)|[Documentation](https://github.com/konfig-dev/splitit-web-php-sdk/blob/main/README.md)|[Source](https://github.com/konfig-dev/splitit-web-php-sdk)|
|Go|1.7.1|[pkg.go.dev](https://pkg.go.dev/github.com/konfig-dev/splitit-web-sdks/go)|[Documentation](https://github.com/konfig-dev/splitit-web-sdks/go/README.md)|[Source](https://github.com/konfig-dev/splitit-web-sdks/go)|
|Java|2.2.3|[Maven Central](https://central.sonatype.com/artifact/com.konfigthis/splitit-web-java-sdk/2.2.3)|[README](https://github.com/konfig-dev/splitit-web-sdks/tree/main/java#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/java)|
|Python|2.6.2|[PyPI](https://pypi.org/project/splitit-web-python-sdk/2.6.2)|[README](https://github.com/konfig-dev/splitit-web-sdks/tree/main/python#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/python)|
|TypeScript|3.3.3|[npm](https://www.npmjs.com/package/splitit-web-typescript-sdk/v/3.3.3)|[README](https://github.com/konfig-dev/splitit-web-sdks/tree/main/typescript#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/typescript)|
|C#|2.1.2|[NuGet](https://nuget.org/packages/Splitit.Web.Net/2.1.2)|[README](https://github.com/konfig-dev/splitit-web-sdks/tree/main/csharp#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/csharp)|
|PHP (7.0+)|2.3.1|[Packagist](https://packagist.org/packages/konfig/splitit-web-php-sdk#2.3.1)|[README](https://github.com/konfig-dev/splitit-web-php-sdk#readme)|[Source](https://github.com/konfig-dev/splitit-web-php-sdk)|
|Go|1.7.2|[pkg.go.dev](https://pkg.go.dev/github.com/konfig-dev/splitit-web-sdks/go)|[README](https://github.com/konfig-dev/splitit-web-sdks/go#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/go)|
14 changes: 7 additions & 7 deletions STATISTICS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

| SDK Name | Lines of Code |
| -------- | ------------- |
| java | 42479 |
| python | 41541 |
| typescript | 8884 |
| csharp | 26346 |
| php | 45015 |
| go | 30374 |
| **Total** | 194639 |
| java | 42332 |
| python | 41116 |
| typescript | 8887 |
| csharp | 26495 |
| php | 45059 |
| go | 30318 |
| **Total** | 194207 |
85 changes: 85 additions & 0 deletions csharp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,88 @@ MigrationBackup/

# Fody - auto-generated XML schema
FodyWeavers.xsd

# Jetbrains Rider IDE
# Created by https://www.toptal.com/developers/gitignore/api/rider
# Edit at https://www.toptal.com/developers/gitignore?templates=rider

### Rider ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# AWS User-specific
.idea/**/aws.xml

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries

# Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr

# CMake
cmake-build-*/

# Mongo Explorer plugin
.idea/**/mongoSettings.xml

# File-based project format
*.iws

# IntelliJ
out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Cursive Clojure plugin
.idea/replstate.xml

# SonarLint plugin
.idea/sonarlint/

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties

# Editor-based Rest Client
.idea/httpRequests

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

# End of https://www.toptal.com/developers/gitignore/api/rider
2 changes: 1 addition & 1 deletion csharp/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c0b1c5cf-e974-4332-88d1-ed87b1f271f1
ec15bfc3-c442-4dd0-8a58-c1c8ab3fd9c1
2 changes: 1 addition & 1 deletion csharp/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Splitit.Web.Net - C#

[![NuGet](https://img.shields.io/badge/NuGet-2.1.1-blue.svg)](https://www.nuget.org/packages/Splitit.Web.Net/2.1.1)
[![NuGet](https://img.shields.io/badge/NuGet-2.1.2-blue.svg)](https://www.nuget.org/packages/Splitit.Web.Net/2.1.2)

Splitit's Web API

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", "{E854D475-F747-4687-8251-30E6DA0C84F4}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{A9D91371-8A84-4A54-AB01-325CF0CB7358}"
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
{E854D475-F747-4687-8251-30E6DA0C84F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E854D475-F747-4687-8251-30E6DA0C84F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E854D475-F747-4687-8251-30E6DA0C84F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E854D475-F747-4687-8251-30E6DA0C84F4}.Release|Any CPU.Build.0 = Release|Any CPU
{A9D91371-8A84-4A54-AB01-325CF0CB7358}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A9D91371-8A84-4A54-AB01-325CF0CB7358}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A9D91371-8A84-4A54-AB01-325CF0CB7358}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A9D91371-8A84-4A54-AB01-325CF0CB7358}.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 @@ -350,10 +350,11 @@ namespace Example
processingData
);
var xSplititTestMode = "None";
var splititclientinfo = "splititclientinfo_example";

try
{
InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode);
InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo);
Console.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -379,7 +380,7 @@ This returns an ApiResponse object which contains the response data, status code
```csharp
try
{
ApiResponse<InitiatePlanResponse> response = apiInstance.PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode);
ApiResponse<InitiatePlanResponse> response = apiInstance.PostWithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
Expand All @@ -400,6 +401,7 @@ catch (ApiException e)
| **xSplititTouchPoint** | **string** | TouchPoint | [default to &quot;&quot;] |
| **installmentPlanInitiateRequest** | [**InstallmentPlanInitiateRequest**](InstallmentPlanInitiateRequest.md) | | |
| **xSplititTestMode** | **string** | | [optional] |
| **splititclientinfo** | **string** | | [optional] |

### Return type

Expand Down Expand Up @@ -468,10 +470,11 @@ namespace Example
eventsEndpoints
);
var xSplititTestMode = "None";
var splititclientinfo = "splititclientinfo_example";

try
{
InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode);
InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo);
Console.WriteLine(result);
}
catch (ApiException e)
Expand All @@ -497,7 +500,7 @@ This returns an ApiResponse object which contains the response data, status code
```csharp
try
{
ApiResponse<InstallmentPlanCreateResponse> response = apiInstance.Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode);
ApiResponse<InstallmentPlanCreateResponse> response = apiInstance.Post2WithHttpInfo(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo);
Debug.Write("Status Code: " + response.StatusCode);
Debug.Write("Response Headers: " + response.Headers);
Debug.Write("Response Body: " + response.Data);
Expand All @@ -518,6 +521,7 @@ catch (ApiException e)
| **xSplititTouchPoint** | **string** | TouchPoint | [default to &quot;&quot;] |
| **installmentPlanCreateRequest** | [**InstallmentPlanCreateRequest**](InstallmentPlanCreateRequest.md) | | |
| **xSplititTestMode** | **string** | | [optional] |
| **splititclientinfo** | **string** | | [optional] |

### Return type

Expand Down
1 change: 1 addition & 0 deletions csharp/docs/ThreeDsRedirectDataV3.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**Url** | **string** | | [optional]
**Verb** | **string** | | [optional]
**Params** | **Dictionary&lt;string, string&gt;** | | [optional]
**ClientRedirectUrl** | **string** | | [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)

Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ public void PostTest()
processingData
);
var xSplititTestMode = "None";
var splititclientinfo = "splititclientinfo_example";

try
{
InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode);
InitiatePlanResponse result = client.InstallmentPlan.Post(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanInitiateRequest, xSplititTestMode, splititclientinfo);
Console.WriteLine(result);
}
catch (ApiException e)
Expand Down Expand Up @@ -221,10 +222,11 @@ public void Post2Test()
eventsEndpoints
);
var xSplititTestMode = "None";
var splititclientinfo = "splititclientinfo_example";

try
{
InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode);
InstallmentPlanCreateResponse result = client.InstallmentPlan.Post2(xSplititIdempotencyKey, xSplititTouchPoint, installmentPlanCreateRequest, xSplititTestMode, splititclientinfo);
Console.WriteLine(result);
}
catch (ApiException e)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ public void ParamsTest()
{
// TODO unit test for the property 'Params'
}
/// <summary>
/// Test the property 'ClientRedirectUrl'
/// </summary>
[Fact]
public void ClientRedirectUrlTest()
{
// TODO unit test for the property 'ClientRedirectUrl'
}

}

Expand Down
Loading

0 comments on commit 4e6a5c0

Please sign in to comment.