Skip to content

Commit 4412481

Browse files
Update OpenAPI Specification (#33)
* 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]>
1 parent 5d63d31 commit 4412481

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1586
-85
lines changed
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
java: patch
3+
python: patch
4+
typescript: patch
5+
csharp: patch
6+
php: patch
7+
go: patch
8+
phpGuzzle6: patch
9+
---
10+
11+
Regenerate SDKs

README.md

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,5 @@
11
# splitit-web-sdks
22

3-
# ⚠️ Warning: Deprecated SDKs
4-
5-
**⚠️ All SDKs in this repository are fully deprecated as of December 2024.**
6-
7-
- These SDKs are no longer maintained or supported.
8-
- While they may still function, they will become increasingly out-of-date as Splitit continues to make API updates.
9-
- We strongly recommend migrating to newer solutions to ensure compatibility with the latest API features.
10-
11-
For more information, please contact [[email protected]](mailto:[email protected]).
12-
133
|Language|Version|Package Manager|README|Source|
144
|-|-|-|-|-|
155
|Java|3.0.8|[Maven Central](https://central.sonatype.com/artifact/com.konfigthis/splitit-web-java-sdk/3.0.8)|[README](https://github.com/konfig-dev/splitit-web-sdks/tree/HEAD/java#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/HEAD/java)|
@@ -18,4 +8,4 @@ For more information, please contact [[email protected]](mailto:danny@buil
188
|C#|3.0.8|[NuGet](https://nuget.org/packages/Splitit.Web.Net/3.0.8)|[README](https://github.com/konfig-dev/splitit-web-sdks/tree/HEAD/csharp#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/HEAD/csharp)|
199
|PHP (7.0+)|3.0.8|[Packagist](https://packagist.org/packages/konfig/splitit-web-php-sdk#3.0.8)|[README](https://github.com/konfig-dev/splitit-web-php-sdk/tree/HEAD#readme)|[Source](https://github.com/konfig-dev/splitit-web-php-sdk/tree/HEAD)|
2010
|Go|1.8.8|[pkg.go.dev](https://pkg.go.dev/github.com/konfig-dev/splitit-web-sdks/go)|[README](https://github.com/konfig-dev/splitit-web-sdks/tree/HEAD/go#readme)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/HEAD/go)|
21-
|PHP (7.0+)|3.0.9|[Packagist](https://packagist.org/packages/konfig/splitit-web-php-guzzle6-sdk#3.0.9)|[README](https://github.com/konfig-dev/splitit-web-php-guzzle6-sdk/tree/HEAD#readme)|[Source](https://github.com/konfig-dev/splitit-web-php-guzzle6-sdk/tree/HEAD)|
11+
|PHP (7.0+)|3.0.9|[Packagist](https://packagist.org/packages/konfig/splitit-web-php-guzzle6-sdk#3.0.9)|[README](https://github.com/konfig-dev/splitit-web-php-guzzle6-sdk/tree/HEAD#readme)|[Source](https://github.com/konfig-dev/splitit-web-php-guzzle6-sdk/tree/HEAD)|

STATISTICS.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
| SDK Name | Lines of Code |
44
| -------- | ------------- |
5-
| java | 43422 |
6-
| python | 41840 |
7-
| typescript | 12443 |
8-
| csharp | 26569 |
9-
| php | 44055 |
10-
| go | 31157 |
11-
| phpGuzzle6 | 44055 |
12-
| **Total** | 243541 |
5+
| java | 43933 |
6+
| python | 42105 |
7+
| typescript | 12486 |
8+
| csharp | 26855 |
9+
| php | 44675 |
10+
| go | 31524 |
11+
| phpGuzzle6 | 44675 |
12+
| **Total** | 246253 |

csharp/.konfig/generate-id.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0b810a23-4746-49e7-9e36-f34ff9929554
1+
3e0235b9-32f0-4b4a-881c-87e0fdc46df1

csharp/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Class | Method | HTTP request | Description
150150
- [LinksData](docs/LinksData.md)
151151
- [LinksModel](docs/LinksModel.md)
152152
- [MockerShopperToken](docs/MockerShopperToken.md)
153+
- [PaymentInfo](docs/PaymentInfo.md)
153154
- [PaymentMethodModel](docs/PaymentMethodModel.md)
154155
- [PaymentMethodType](docs/PaymentMethodType.md)
155156
- [PaymentPlanOptionModel](docs/PaymentPlanOptionModel.md)

csharp/Splitit.Web.Net.sln

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
22
# Visual Studio 14
33
VisualStudioVersion = 14.0.25420.1
44
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}"
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{8D2C5781-F906-41C7-A7F9-4247B8628871}"
66
EndProject
77
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}"
88
EndProject
@@ -12,10 +12,10 @@ Global
1212
Release|Any CPU = Release|Any CPU
1313
EndGlobalSection
1414
GlobalSection(ProjectConfigurationPlatforms) = postSolution
15-
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16-
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Debug|Any CPU.Build.0 = Debug|Any CPU
17-
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Release|Any CPU.ActiveCfg = Release|Any CPU
18-
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Release|Any CPU.Build.0 = Release|Any CPU
15+
{8D2C5781-F906-41C7-A7F9-4247B8628871}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
16+
{8D2C5781-F906-41C7-A7F9-4247B8628871}.Debug|Any CPU.Build.0 = Debug|Any CPU
17+
{8D2C5781-F906-41C7-A7F9-4247B8628871}.Release|Any CPU.ActiveCfg = Release|Any CPU
18+
{8D2C5781-F906-41C7-A7F9-4247B8628871}.Release|Any CPU.Build.0 = Release|Any CPU
1919
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
2020
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
2121
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU

csharp/docs/PaymentInfo.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Splitit.Web.Net.Model.PaymentInfo
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**CardBin** | **string** | | [optional]
8+
**CardType** | **CardType** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

csharp/docs/PlanErrorResponse.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**TraceId** | **string** | | [optional]
88
**Error** | [**ErrorExtended**](ErrorExtended.md) | | [optional]
99
**InstallmentPlanNumber** | **string** | | [optional]
10+
**PaymentInfo** | [**PaymentInfo**](PaymentInfo.md) | | [optional]
1011

1112
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1213

csharp/docs/PlanErrorResponseAllOf.md

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**InstallmentPlanNumber** | **string** | | [optional]
8+
**PaymentInfo** | [**PaymentInfo**](PaymentInfo.md) | | [optional]
89

910
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1011

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
/*
2+
* splitit-web-api-v3
3+
*
4+
* Splitit's Web API
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Generated by: https://konfigthis.com
8+
*/
9+
10+
11+
using Xunit;
12+
13+
using System;
14+
using System.Linq;
15+
using System.IO;
16+
using System.Collections.Generic;
17+
using Splitit.Web.Net.Api;
18+
using Splitit.Web.Net.Model;
19+
using Splitit.Web.Net.Client;
20+
using System.Reflection;
21+
using Newtonsoft.Json;
22+
23+
namespace Splitit.Web.Net.Test.Model
24+
{
25+
/// <summary>
26+
/// Class for testing PaymentInfo
27+
/// </summary>
28+
/// <remarks>
29+
/// This file is automatically generated by Konfig (https://konfigthis.com).
30+
/// Please update the test case below to test the model.
31+
/// </remarks>
32+
public class PaymentInfoTests : IDisposable
33+
{
34+
// TODO uncomment below to declare an instance variable for PaymentInfo
35+
//private PaymentInfo instance;
36+
37+
public PaymentInfoTests()
38+
{
39+
// TODO uncomment below to create an instance of PaymentInfo
40+
//instance = new PaymentInfo();
41+
}
42+
43+
public void Dispose()
44+
{
45+
// Cleanup when everything is done.
46+
}
47+
48+
/// <summary>
49+
/// Test an instance of PaymentInfo
50+
/// </summary>
51+
[Fact]
52+
public void PaymentInfoInstanceTest()
53+
{
54+
// TODO uncomment below to test "IsType" PaymentInfo
55+
//Assert.IsType<PaymentInfo>(instance);
56+
}
57+
58+
59+
/// <summary>
60+
/// Test the property 'CardBin'
61+
/// </summary>
62+
[Fact]
63+
public void CardBinTest()
64+
{
65+
// TODO unit test for the property 'CardBin'
66+
}
67+
/// <summary>
68+
/// Test the property 'CardType'
69+
/// </summary>
70+
[Fact]
71+
public void CardTypeTest()
72+
{
73+
// TODO unit test for the property 'CardType'
74+
}
75+
76+
}
77+
78+
}

csharp/src/Splitit.Web.Net.Test/Model/PlanErrorResponseAllOfTests.cs

+8
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,14 @@ public void InstallmentPlanNumberTest()
6464
{
6565
// TODO unit test for the property 'InstallmentPlanNumber'
6666
}
67+
/// <summary>
68+
/// Test the property 'PaymentInfo'
69+
/// </summary>
70+
[Fact]
71+
public void PaymentInfoTest()
72+
{
73+
// TODO unit test for the property 'PaymentInfo'
74+
}
6775

6876
}
6977

csharp/src/Splitit.Web.Net.Test/Model/PlanErrorResponseTests.cs

+8
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ public void InstallmentPlanNumberTest()
8080
{
8181
// TODO unit test for the property 'InstallmentPlanNumber'
8282
}
83+
/// <summary>
84+
/// Test the property 'PaymentInfo'
85+
/// </summary>
86+
[Fact]
87+
public void PaymentInfoTest()
88+
{
89+
// TODO unit test for the property 'PaymentInfo'
90+
}
8391

8492
}
8593

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
/*
2+
* splitit-web-api-v3
3+
*
4+
* Splitit's Web API
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Generated by: https://konfigthis.com
8+
*/
9+
10+
11+
using System;
12+
using System.Collections;
13+
using System.Collections.Generic;
14+
using System.Collections.ObjectModel;
15+
using System.Linq;
16+
using System.IO;
17+
using System.Runtime.Serialization;
18+
using System.Text;
19+
using System.Text.RegularExpressions;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using Newtonsoft.Json.Linq;
23+
using System.ComponentModel.DataAnnotations;
24+
using OpenAPIDateConverter = Splitit.Web.Net.Client.OpenAPIDateConverter;
25+
26+
namespace Splitit.Web.Net.Model
27+
{
28+
/// <summary>
29+
/// PaymentInfo
30+
/// </summary>
31+
[DataContract(Name = "PaymentInfo")]
32+
public partial class PaymentInfo : IEquatable<PaymentInfo>, IValidatableObject
33+
{
34+
35+
/// <summary>
36+
/// Gets or Sets CardType
37+
/// </summary>
38+
[DataMember(Name = "CardType", EmitDefaultValue = false)]
39+
public CardType? CardType { get; set; }
40+
/// <summary>
41+
/// Initializes a new instance of the <see cref="PaymentInfo" /> class.
42+
/// </summary>
43+
/// <param name="cardBin">cardBin.</param>
44+
/// <param name="cardType">cardType.</param>
45+
public PaymentInfo(string cardBin = default(string), CardType? cardType = default(CardType?))
46+
{
47+
this.CardBin = cardBin;
48+
this.CardType = cardType;
49+
}
50+
51+
/// <summary>
52+
/// Gets or Sets CardBin
53+
/// </summary>
54+
[DataMember(Name = "CardBin", EmitDefaultValue = false)]
55+
public string CardBin { get; set; }
56+
57+
/// <summary>
58+
/// Returns the string presentation of the object
59+
/// </summary>
60+
/// <returns>String presentation of the object</returns>
61+
public override string ToString()
62+
{
63+
StringBuilder sb = new StringBuilder();
64+
sb.Append("class PaymentInfo {\n");
65+
sb.Append(" CardBin: ").Append(CardBin).Append("\n");
66+
sb.Append(" CardType: ").Append(CardType).Append("\n");
67+
sb.Append("}\n");
68+
return sb.ToString();
69+
}
70+
71+
/// <summary>
72+
/// Returns the JSON string presentation of the object
73+
/// </summary>
74+
/// <returns>JSON string presentation of the object</returns>
75+
public virtual string ToJson()
76+
{
77+
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
78+
}
79+
80+
/// <summary>
81+
/// Returns true if objects are equal
82+
/// </summary>
83+
/// <param name="input">Object to be compared</param>
84+
/// <returns>Boolean</returns>
85+
public override bool Equals(object input)
86+
{
87+
return this.Equals(input as PaymentInfo);
88+
}
89+
90+
/// <summary>
91+
/// Returns true if PaymentInfo instances are equal
92+
/// </summary>
93+
/// <param name="input">Instance of PaymentInfo to be compared</param>
94+
/// <returns>Boolean</returns>
95+
public bool Equals(PaymentInfo input)
96+
{
97+
if (input == null)
98+
{
99+
return false;
100+
}
101+
return
102+
(
103+
this.CardBin == input.CardBin ||
104+
(this.CardBin != null &&
105+
this.CardBin.Equals(input.CardBin))
106+
) &&
107+
(
108+
this.CardType == input.CardType ||
109+
this.CardType.Equals(input.CardType)
110+
);
111+
}
112+
113+
/// <summary>
114+
/// Gets the hash code
115+
/// </summary>
116+
/// <returns>Hash code</returns>
117+
public override int GetHashCode()
118+
{
119+
unchecked // Overflow is fine, just wrap
120+
{
121+
int hashCode = 41;
122+
if (this.CardBin != null)
123+
{
124+
hashCode = (hashCode * 59) + this.CardBin.GetHashCode();
125+
}
126+
hashCode = (hashCode * 59) + this.CardType.GetHashCode();
127+
return hashCode;
128+
}
129+
}
130+
131+
/// <summary>
132+
/// To validate all properties of the instance
133+
/// </summary>
134+
/// <param name="validationContext">Validation context</param>
135+
/// <returns>Validation Result</returns>
136+
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
137+
{
138+
yield break;
139+
}
140+
}
141+
142+
}

0 commit comments

Comments
 (0)