Skip to content

Commit

Permalink
Update OpenAPI Specification (#33)
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 Dec 5, 2024
1 parent 5d63d31 commit 4412481
Show file tree
Hide file tree
Showing 56 changed files with 1,586 additions and 85 deletions.
11 changes: 11 additions & 0 deletions .konfig/changesets/smart-lights-laugh.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
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
# splitit-web-sdks

# ⚠️ Warning: Deprecated SDKs

**⚠️ All SDKs in this repository are fully deprecated as of December 2024.**

- These SDKs are no longer maintained or supported.
- While they may still function, they will become increasingly out-of-date as Splitit continues to make API updates.
- We strongly recommend migrating to newer solutions to ensure compatibility with the latest API features.

For more information, please contact [[email protected]](mailto:[email protected]).

|Language|Version|Package Manager|README|Source|
|-|-|-|-|-|
|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)|
Expand All @@ -18,4 +8,4 @@ For more information, please contact [[email protected]](mailto:danny@buil
|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)|
|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)|
|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)|
|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)|
|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)|
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 | 43422 |
| python | 41840 |
| typescript | 12443 |
| csharp | 26569 |
| php | 44055 |
| go | 31157 |
| phpGuzzle6 | 44055 |
| **Total** | 243541 |
| java | 43933 |
| python | 42105 |
| typescript | 12486 |
| csharp | 26855 |
| php | 44675 |
| go | 31524 |
| phpGuzzle6 | 44675 |
| **Total** | 246253 |
2 changes: 1 addition & 1 deletion csharp/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0b810a23-4746-49e7-9e36-f34ff9929554
3e0235b9-32f0-4b4a-881c-87e0fdc46df1
1 change: 1 addition & 0 deletions csharp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ Class | Method | HTTP request | Description
- [LinksData](docs/LinksData.md)
- [LinksModel](docs/LinksModel.md)
- [MockerShopperToken](docs/MockerShopperToken.md)
- [PaymentInfo](docs/PaymentInfo.md)
- [PaymentMethodModel](docs/PaymentMethodModel.md)
- [PaymentMethodType](docs/PaymentMethodType.md)
- [PaymentPlanOptionModel](docs/PaymentPlanOptionModel.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", "{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{8D2C5781-F906-41C7-A7F9-4247B8628871}"
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
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C1A0438E-B777-49AB-BD5B-3E6E78B9F055}.Release|Any CPU.Build.0 = Release|Any CPU
{8D2C5781-F906-41C7-A7F9-4247B8628871}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8D2C5781-F906-41C7-A7F9-4247B8628871}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8D2C5781-F906-41C7-A7F9-4247B8628871}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8D2C5781-F906-41C7-A7F9-4247B8628871}.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
11 changes: 11 additions & 0 deletions csharp/docs/PaymentInfo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Splitit.Web.Net.Model.PaymentInfo

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**CardBin** | **string** | | [optional]
**CardType** | **CardType** | | [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)

1 change: 1 addition & 0 deletions csharp/docs/PlanErrorResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Name | Type | Description | Notes
**TraceId** | **string** | | [optional]
**Error** | [**ErrorExtended**](ErrorExtended.md) | | [optional]
**InstallmentPlanNumber** | **string** | | [optional]
**PaymentInfo** | [**PaymentInfo**](PaymentInfo.md) | | [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)

1 change: 1 addition & 0 deletions csharp/docs/PlanErrorResponseAllOf.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**InstallmentPlanNumber** | **string** | | [optional]
**PaymentInfo** | [**PaymentInfo**](PaymentInfo.md) | | [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)

78 changes: 78 additions & 0 deletions csharp/src/Splitit.Web.Net.Test/Model/PaymentInfoTests.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* 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 PaymentInfo
/// </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 PaymentInfoTests : IDisposable
{
// TODO uncomment below to declare an instance variable for PaymentInfo
//private PaymentInfo instance;

public PaymentInfoTests()
{
// TODO uncomment below to create an instance of PaymentInfo
//instance = new PaymentInfo();
}

public void Dispose()
{
// Cleanup when everything is done.
}

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


/// <summary>
/// Test the property 'CardBin'
/// </summary>
[Fact]
public void CardBinTest()
{
// TODO unit test for the property 'CardBin'
}
/// <summary>
/// Test the property 'CardType'
/// </summary>
[Fact]
public void CardTypeTest()
{
// TODO unit test for the property 'CardType'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ public void InstallmentPlanNumberTest()
{
// TODO unit test for the property 'InstallmentPlanNumber'
}
/// <summary>
/// Test the property 'PaymentInfo'
/// </summary>
[Fact]
public void PaymentInfoTest()
{
// TODO unit test for the property 'PaymentInfo'
}

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ public void InstallmentPlanNumberTest()
{
// TODO unit test for the property 'InstallmentPlanNumber'
}
/// <summary>
/// Test the property 'PaymentInfo'
/// </summary>
[Fact]
public void PaymentInfoTest()
{
// TODO unit test for the property 'PaymentInfo'
}

}

Expand Down
142 changes: 142 additions & 0 deletions csharp/src/Splitit.Web.Net/Model/PaymentInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
/*
* 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
{
/// <summary>
/// PaymentInfo
/// </summary>
[DataContract(Name = "PaymentInfo")]
public partial class PaymentInfo : IEquatable<PaymentInfo>, IValidatableObject
{

/// <summary>
/// Gets or Sets CardType
/// </summary>
[DataMember(Name = "CardType", EmitDefaultValue = false)]
public CardType? CardType { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="PaymentInfo" /> class.
/// </summary>
/// <param name="cardBin">cardBin.</param>
/// <param name="cardType">cardType.</param>
public PaymentInfo(string cardBin = default(string), CardType? cardType = default(CardType?))
{
this.CardBin = cardBin;
this.CardType = cardType;
}

/// <summary>
/// Gets or Sets CardBin
/// </summary>
[DataMember(Name = "CardBin", EmitDefaultValue = false)]
public string CardBin { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class PaymentInfo {\n");
sb.Append(" CardBin: ").Append(CardBin).Append("\n");
sb.Append(" CardType: ").Append(CardType).Append("\n");
sb.Append("}\n");
return sb.ToString();
}

/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as PaymentInfo);
}

/// <summary>
/// Returns true if PaymentInfo instances are equal
/// </summary>
/// <param name="input">Instance of PaymentInfo to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(PaymentInfo input)
{
if (input == null)
{
return false;
}
return
(
this.CardBin == input.CardBin ||
(this.CardBin != null &&
this.CardBin.Equals(input.CardBin))
) &&
(
this.CardType == input.CardType ||
this.CardType.Equals(input.CardType)
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.CardBin != null)
{
hashCode = (hashCode * 59) + this.CardBin.GetHashCode();
}
hashCode = (hashCode * 59) + this.CardType.GetHashCode();
return hashCode;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
}

}
Loading

0 comments on commit 4412481

Please sign in to comment.