Skip to content

Commit

Permalink
Update OpenAPI Specification (#29)
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 Oct 21, 2024
1 parent 659717d commit af73564
Show file tree
Hide file tree
Showing 28 changed files with 217 additions and 27 deletions.
11 changes: 11 additions & 0 deletions .konfig/changesets/itchy-carpets-press.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
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 | 43364 |
| python | 41809 |
| typescript | 12437 |
| csharp | 26536 |
| php | 44007 |
| go | 31085 |
| phpGuzzle6 | 44007 |
| **Total** | 243245 |
| java | 43416 |
| python | 41831 |
| typescript | 12443 |
| csharp | 26563 |
| php | 44052 |
| go | 31151 |
| phpGuzzle6 | 44052 |
| **Total** | 243508 |
2 changes: 1 addition & 1 deletion csharp/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c663a463-aac9-4e89-8b5c-373fb6660ebf
d4610359-5cb3-4ad4-9ab3-a67496595958
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", "{D67C956C-9989-42B7-BFA6-19F1C61D6B49}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{83E4C341-D3B3-4F98-9729-25BC841A5766}"
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
{D67C956C-9989-42B7-BFA6-19F1C61D6B49}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D67C956C-9989-42B7-BFA6-19F1C61D6B49}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D67C956C-9989-42B7-BFA6-19F1C61D6B49}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D67C956C-9989-42B7-BFA6-19F1C61D6B49}.Release|Any CPU.Build.0 = Release|Any CPU
{83E4C341-D3B3-4F98-9729-25BC841A5766}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{83E4C341-D3B3-4F98-9729-25BC841A5766}.Debug|Any CPU.Build.0 = Debug|Any CPU
{83E4C341-D3B3-4F98-9729-25BC841A5766}.Release|Any CPU.ActiveCfg = Release|Any CPU
{83E4C341-D3B3-4F98-9729-25BC841A5766}.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
1 change: 1 addition & 0 deletions csharp/docs/EligibilityTermsAndConditionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TermsAndConditions** | **string** | | [optional]
**PrivacyPolicy** | **string** | | [optional]
**Provider** | **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 @@ -72,6 +72,14 @@ public void PrivacyPolicyTest()
{
// TODO unit test for the property 'PrivacyPolicy'
}
/// <summary>
/// Test the property 'Provider'
/// </summary>
[Fact]
public void ProviderTest()
{
// TODO unit test for the property 'Provider'
}

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ public partial class EligibilityTermsAndConditionResponse : IEquatable<Eligibili
/// </summary>
/// <param name="termsAndConditions">termsAndConditions.</param>
/// <param name="privacyPolicy">privacyPolicy.</param>
public EligibilityTermsAndConditionResponse(string termsAndConditions = default(string), string privacyPolicy = default(string))
/// <param name="provider">provider.</param>
public EligibilityTermsAndConditionResponse(string termsAndConditions = default(string), string privacyPolicy = default(string), string provider = default(string))
{
this.TermsAndConditions = termsAndConditions;
this.PrivacyPolicy = privacyPolicy;
this.Provider = provider;
}

/// <summary>
Expand All @@ -54,6 +56,12 @@ public partial class EligibilityTermsAndConditionResponse : IEquatable<Eligibili
[DataMember(Name = "PrivacyPolicy", EmitDefaultValue = false)]
public string PrivacyPolicy { get; set; }

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

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -64,6 +72,7 @@ public override string ToString()
sb.Append("class EligibilityTermsAndConditionResponse {\n");
sb.Append(" TermsAndConditions: ").Append(TermsAndConditions).Append("\n");
sb.Append(" PrivacyPolicy: ").Append(PrivacyPolicy).Append("\n");
sb.Append(" Provider: ").Append(Provider).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -108,6 +117,11 @@ public bool Equals(EligibilityTermsAndConditionResponse input)
this.PrivacyPolicy == input.PrivacyPolicy ||
(this.PrivacyPolicy != null &&
this.PrivacyPolicy.Equals(input.PrivacyPolicy))
) &&
(
this.Provider == input.Provider ||
(this.Provider != null &&
this.Provider.Equals(input.Provider))
);
}

Expand All @@ -128,6 +142,10 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.PrivacyPolicy.GetHashCode();
}
if (this.Provider != null)
{
hashCode = (hashCode * 59) + this.Provider.GetHashCode();
}
return hashCode;
}
}
Expand Down
2 changes: 1 addition & 1 deletion go/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c663a463-aac9-4e89-8b5c-373fb6660ebf
d4610359-5cb3-4ad4-9ab3-a67496595958
3 changes: 3 additions & 0 deletions go/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3042,11 +3042,14 @@ components:
example:
TermsAndConditions: TermsAndConditions
PrivacyPolicy: PrivacyPolicy
Provider: Provider
properties:
TermsAndConditions:
type: string
PrivacyPolicy:
type: string
Provider:
type: string
type: object
konfig-generated-schema-paths--api-installmentplans-installmentPlanNumber-get-parameters-2-schema:
example: ""
Expand Down
26 changes: 26 additions & 0 deletions go/docs/EligibilityTermsAndConditionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**TermsAndConditions** | Pointer to **string** | | [optional]
**PrivacyPolicy** | Pointer to **string** | | [optional]
**Provider** | Pointer to **string** | | [optional]

## Methods

Expand Down Expand Up @@ -76,6 +77,31 @@ SetPrivacyPolicy sets PrivacyPolicy field to given value.

HasPrivacyPolicy returns a boolean if a field has been set.

### GetProvider

`func (o *EligibilityTermsAndConditionResponse) GetProvider() string`

GetProvider returns the Provider field if non-nil, zero value otherwise.

### GetProviderOk

`func (o *EligibilityTermsAndConditionResponse) GetProviderOk() (*string, bool)`

GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetProvider

`func (o *EligibilityTermsAndConditionResponse) SetProvider(v string)`

SetProvider sets Provider field to given value.

### HasProvider

`func (o *EligibilityTermsAndConditionResponse) HasProvider() bool`

HasProvider 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)

Expand Down
1 change: 1 addition & 0 deletions go/docs/InstallmentPlanApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ func main() {
fmt.Fprintf(os.Stdout, "Response from `InstallmentPlanApi.GetEligibilityTermsAndCondition`: %v\n", resp)
fmt.Fprintf(os.Stdout, "Response from `EligibilityTermsAndConditionResponse.GetEligibilityTermsAndCondition.TermsAndConditions`: %v\n", *resp.TermsAndConditions)
fmt.Fprintf(os.Stdout, "Response from `EligibilityTermsAndConditionResponse.GetEligibilityTermsAndCondition.PrivacyPolicy`: %v\n", *resp.PrivacyPolicy)
fmt.Fprintf(os.Stdout, "Response from `EligibilityTermsAndConditionResponse.GetEligibilityTermsAndCondition.Provider`: %v\n", *resp.Provider)
}
```

Expand Down
36 changes: 36 additions & 0 deletions go/model_eligibility_terms_and_condition_response.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion java/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c663a463-aac9-4e89-8b5c-373fb6660ebf
d4610359-5cb3-4ad4-9ab3-a67496595958
3 changes: 3 additions & 0 deletions java/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3111,11 +3111,14 @@ components:
example:
TermsAndConditions: TermsAndConditions
PrivacyPolicy: PrivacyPolicy
Provider: Provider
properties:
TermsAndConditions:
type: string
PrivacyPolicy:
type: string
Provider:
type: string
type: object
x-konfig-is-used-in-successful-response: true
konfig-generated-schema-paths--api-installmentplans-installmentPlanNumber-get-parameters-2-schema:
Expand Down
1 change: 1 addition & 0 deletions java/docs/EligibilityTermsAndConditionResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**termsAndConditions** | **String** | | [optional] |
|**privacyPolicy** | **String** | | [optional] |
|**provider** | **String** | | [optional] |



1 change: 1 addition & 0 deletions java/docs/InstallmentPlanApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public class Example {
System.out.println(result);
System.out.println(result.getTermsAndConditions());
System.out.println(result.getPrivacyPolicy());
System.out.println(result.getProvider());
} catch (ApiException e) {
System.err.println("Exception when calling InstallmentPlanApi#getEligibilityTermsAndCondition");
System.err.println("Status code: " + e.getStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ public class EligibilityTermsAndConditionResponse {
@SerializedName(SERIALIZED_NAME_PRIVACY_POLICY)
private String privacyPolicy;

public static final String SERIALIZED_NAME_PROVIDER = "Provider";
@SerializedName(SERIALIZED_NAME_PROVIDER)
private String provider;

public EligibilityTermsAndConditionResponse() {
}

Expand Down Expand Up @@ -117,6 +121,35 @@ public void setPrivacyPolicy(String privacyPolicy) {
this.privacyPolicy = privacyPolicy;
}


public EligibilityTermsAndConditionResponse provider(String provider) {




this.provider = provider;
return this;
}

/**
* Get provider
* @return provider
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public String getProvider() {
return provider;
}


public void setProvider(String provider) {



this.provider = provider;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -173,13 +206,14 @@ public boolean equals(Object o) {
}
EligibilityTermsAndConditionResponse eligibilityTermsAndConditionResponse = (EligibilityTermsAndConditionResponse) o;
return Objects.equals(this.termsAndConditions, eligibilityTermsAndConditionResponse.termsAndConditions) &&
Objects.equals(this.privacyPolicy, eligibilityTermsAndConditionResponse.privacyPolicy)&&
Objects.equals(this.privacyPolicy, eligibilityTermsAndConditionResponse.privacyPolicy) &&
Objects.equals(this.provider, eligibilityTermsAndConditionResponse.provider)&&
Objects.equals(this.additionalProperties, eligibilityTermsAndConditionResponse.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(termsAndConditions, privacyPolicy, additionalProperties);
return Objects.hash(termsAndConditions, privacyPolicy, provider, additionalProperties);
}

@Override
Expand All @@ -188,6 +222,7 @@ public String toString() {
sb.append("class EligibilityTermsAndConditionResponse {\n");
sb.append(" termsAndConditions: ").append(toIndentedString(termsAndConditions)).append("\n");
sb.append(" privacyPolicy: ").append(toIndentedString(privacyPolicy)).append("\n");
sb.append(" provider: ").append(toIndentedString(provider)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand All @@ -213,6 +248,7 @@ private String toIndentedString(Object o) {
openapiFields = new HashSet<String>();
openapiFields.add("TermsAndConditions");
openapiFields.add("PrivacyPolicy");
openapiFields.add("Provider");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand All @@ -236,6 +272,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException {
if ((jsonObj.get("PrivacyPolicy") != null && !jsonObj.get("PrivacyPolicy").isJsonNull()) && !jsonObj.get("PrivacyPolicy").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `PrivacyPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("PrivacyPolicy").toString()));
}
if ((jsonObj.get("Provider") != null && !jsonObj.get("Provider").isJsonNull()) && !jsonObj.get("Provider").isJsonPrimitive()) {
throw new IllegalArgumentException(String.format("Expected the field `Provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("Provider").toString()));
}
}

public static class CustomTypeAdapterFactory implements TypeAdapterFactory {
Expand Down
Loading

0 comments on commit af73564

Please sign in to comment.