Skip to content

Commit

Permalink
Update OpenAPI Specification (#27)
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 9, 2024
1 parent bc16ed8 commit a285bad
Show file tree
Hide file tree
Showing 29 changed files with 258 additions and 61 deletions.
11 changes: 11 additions & 0 deletions .konfig/changesets/bitter-boats-divide.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 | 43305 |
| python | 41786 |
| typescript | 12431 |
| csharp | 26513 |
| php | 43962 |
| go | 31018 |
| phpGuzzle6 | 43962 |
| **Total** | 242977 |
| java | 43364 |
| python | 41809 |
| typescript | 12437 |
| csharp | 26536 |
| php | 44007 |
| go | 31085 |
| phpGuzzle6 | 44007 |
| **Total** | 243245 |
2 changes: 1 addition & 1 deletion csharp/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
536ac9c3-fc16-42c3-8d3d-cf804d74b3f5
025c759a-837a-4109-b060-10e007c885be
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", "{B9673DF8-DA02-4008-9BDD-4704A7685125}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Splitit.Web.Net", "src\Splitit.Web.Net\Splitit.Web.Net.csproj", "{336CA9B6-6F94-4977-885D-E44ABAFB006D}"
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
{B9673DF8-DA02-4008-9BDD-4704A7685125}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B9673DF8-DA02-4008-9BDD-4704A7685125}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B9673DF8-DA02-4008-9BDD-4704A7685125}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B9673DF8-DA02-4008-9BDD-4704A7685125}.Release|Any CPU.Build.0 = Release|Any CPU
{336CA9B6-6F94-4977-885D-E44ABAFB006D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{336CA9B6-6F94-4977-885D-E44ABAFB006D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{336CA9B6-6F94-4977-885D-E44ABAFB006D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{336CA9B6-6F94-4977-885D-E44ABAFB006D}.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/InitiatePlanResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**Shopper** | [**ShopperData**](ShopperData.md) | | [optional]
**BillingAddress** | [**AddressData**](AddressData.md) | | [optional]
**CheckoutUrl** | **string** | | [optional]
**PrincipalAmount** | **double** | | [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 @@ -136,6 +136,14 @@ public void CheckoutUrlTest()
{
// TODO unit test for the property 'CheckoutUrl'
}
/// <summary>
/// Test the property 'PrincipalAmount'
/// </summary>
[Fact]
public void PrincipalAmountTest()
{
// TODO unit test for the property 'PrincipalAmount'
}

}

Expand Down
16 changes: 15 additions & 1 deletion csharp/src/Splitit.Web.Net/Model/InitiatePlanResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ protected InitiatePlanResponse() { }
/// <param name="shopper">shopper.</param>
/// <param name="billingAddress">billingAddress.</param>
/// <param name="checkoutUrl">checkoutUrl.</param>
public InitiatePlanResponse(string installmentPlanNumber = default(string), string refOrderNumber = default(string), PurchaseMethod? purchaseMethod = default(PurchaseMethod?), PlanStatus status = default(PlanStatus), string currency = default(string), double amount = default(double), Dictionary<string, string> extendedParams = default(Dictionary<string, string>), ShopperData shopper = default(ShopperData), AddressData billingAddress = default(AddressData), string checkoutUrl = default(string))
/// <param name="principalAmount">principalAmount.</param>
public InitiatePlanResponse(string installmentPlanNumber = default(string), string refOrderNumber = default(string), PurchaseMethod? purchaseMethod = default(PurchaseMethod?), PlanStatus status = default(PlanStatus), string currency = default(string), double amount = default(double), Dictionary<string, string> extendedParams = default(Dictionary<string, string>), ShopperData shopper = default(ShopperData), AddressData billingAddress = default(AddressData), string checkoutUrl = default(string), double principalAmount = default(double))
{
this.Status = status;
this.InstallmentPlanNumber = installmentPlanNumber;
Expand All @@ -73,6 +74,7 @@ protected InitiatePlanResponse() { }
this.Shopper = shopper;
this.BillingAddress = billingAddress;
this.CheckoutUrl = checkoutUrl;
this.PrincipalAmount = principalAmount;
}

/// <summary>
Expand Down Expand Up @@ -123,6 +125,12 @@ protected InitiatePlanResponse() { }
[DataMember(Name = "CheckoutUrl", EmitDefaultValue = false)]
public string CheckoutUrl { get; set; }

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

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -141,6 +149,7 @@ public override string ToString()
sb.Append(" Shopper: ").Append(Shopper).Append("\n");
sb.Append(" BillingAddress: ").Append(BillingAddress).Append("\n");
sb.Append(" CheckoutUrl: ").Append(CheckoutUrl).Append("\n");
sb.Append(" PrincipalAmount: ").Append(PrincipalAmount).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -223,6 +232,10 @@ public bool Equals(InitiatePlanResponse input)
this.CheckoutUrl == input.CheckoutUrl ||
(this.CheckoutUrl != null &&
this.CheckoutUrl.Equals(input.CheckoutUrl))
) &&
(
this.PrincipalAmount == input.PrincipalAmount ||
this.PrincipalAmount.Equals(input.PrincipalAmount)
);
}

Expand Down Expand Up @@ -266,6 +279,7 @@ public override int GetHashCode()
{
hashCode = (hashCode * 59) + this.CheckoutUrl.GetHashCode();
}
hashCode = (hashCode * 59) + this.PrincipalAmount.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 @@
536ac9c3-fc16-42c3-8d3d-cf804d74b3f5
025c759a-837a-4109-b060-10e007c885be
4 changes: 4 additions & 0 deletions go/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2118,6 +2118,7 @@ components:
Culture: Culture
CheckoutUrl: CheckoutUrl
PurchaseMethod: null
PrincipalAmount: 6.027456183070403
properties:
InstallmentPlanNumber:
type: string
Expand All @@ -2142,6 +2143,9 @@ components:
$ref: '#/components/schemas/AddressData'
CheckoutUrl:
type: string
PrincipalAmount:
format: decimal
type: number
required:
- Status
type: object
Expand Down
26 changes: 26 additions & 0 deletions go/docs/InitiatePlanResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Name | Type | Description | Notes
**Shopper** | Pointer to [**ShopperData**](ShopperData.md) | | [optional]
**BillingAddress** | Pointer to [**AddressData**](AddressData.md) | | [optional]
**CheckoutUrl** | Pointer to **string** | | [optional]
**PrincipalAmount** | Pointer to **float32** | | [optional]

## Methods

Expand Down Expand Up @@ -279,6 +280,31 @@ SetCheckoutUrl sets CheckoutUrl field to given value.

HasCheckoutUrl returns a boolean if a field has been set.

### GetPrincipalAmount

`func (o *InitiatePlanResponse) GetPrincipalAmount() float32`

GetPrincipalAmount returns the PrincipalAmount field if non-nil, zero value otherwise.

### GetPrincipalAmountOk

`func (o *InitiatePlanResponse) GetPrincipalAmountOk() (*float32, bool)`

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

### SetPrincipalAmount

`func (o *InitiatePlanResponse) SetPrincipalAmount(v float32)`

SetPrincipalAmount sets PrincipalAmount field to given value.

### HasPrincipalAmount

`func (o *InitiatePlanResponse) HasPrincipalAmount() bool`

HasPrincipalAmount 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 @@ -235,6 +235,7 @@ func main() {
fmt.Fprintf(os.Stdout, "Response from `InitiatePlanResponse.Post.Shopper`: %v\n", *resp.Shopper)
fmt.Fprintf(os.Stdout, "Response from `InitiatePlanResponse.Post.BillingAddress`: %v\n", *resp.BillingAddress)
fmt.Fprintf(os.Stdout, "Response from `InitiatePlanResponse.Post.CheckoutUrl`: %v\n", *resp.CheckoutUrl)
fmt.Fprintf(os.Stdout, "Response from `InitiatePlanResponse.Post.PrincipalAmount`: %v\n", *resp.PrincipalAmount)
}
```

Expand Down
36 changes: 36 additions & 0 deletions go/model_initiate_plan_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 @@
536ac9c3-fc16-42c3-8d3d-cf804d74b3f5
025c759a-837a-4109-b060-10e007c885be
4 changes: 4 additions & 0 deletions java/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2180,6 +2180,7 @@ components:
Culture: Culture
CheckoutUrl: CheckoutUrl
PurchaseMethod: null
PrincipalAmount: 6.027456183070403
properties:
InstallmentPlanNumber:
type: string
Expand All @@ -2204,6 +2205,9 @@ components:
$ref: '#/components/schemas/AddressData'
CheckoutUrl:
type: string
PrincipalAmount:
format: decimal
type: number
required:
- Status
type: object
Expand Down
1 change: 1 addition & 0 deletions java/docs/InitiatePlanResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
|**shopper** | [**ShopperData**](ShopperData.md) | | [optional] |
|**billingAddress** | [**AddressData**](AddressData.md) | | [optional] |
|**checkoutUrl** | **String** | | [optional] |
|**principalAmount** | **Double** | | [optional] |



1 change: 1 addition & 0 deletions java/docs/InstallmentPlanApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ public class Example {
System.out.println(result.getShopper());
System.out.println(result.getBillingAddress());
System.out.println(result.getCheckoutUrl());
System.out.println(result.getPrincipalAmount());
} catch (ApiException e) {
System.err.println("Exception when calling InstallmentPlanApi#post");
System.err.println("Status code: " + e.getStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ public class InitiatePlanResponse {
@SerializedName(SERIALIZED_NAME_CHECKOUT_URL)
private String checkoutUrl;

public static final String SERIALIZED_NAME_PRINCIPAL_AMOUNT = "PrincipalAmount";
@SerializedName(SERIALIZED_NAME_PRINCIPAL_AMOUNT)
private Double principalAmount;

public InitiatePlanResponse() {
}

Expand Down Expand Up @@ -404,6 +408,44 @@ public void setCheckoutUrl(String checkoutUrl) {
this.checkoutUrl = checkoutUrl;
}


public InitiatePlanResponse principalAmount(Double principalAmount) {




this.principalAmount = principalAmount;
return this;
}

public InitiatePlanResponse principalAmount(Integer principalAmount) {




this.principalAmount = principalAmount.doubleValue();
return this;
}

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

public Double getPrincipalAmount() {
return principalAmount;
}


public void setPrincipalAmount(Double principalAmount) {



this.principalAmount = principalAmount;
}

/**
* A container for additional, undeclared properties.
* This is a holder for any undeclared properties as specified with
Expand Down Expand Up @@ -468,13 +510,14 @@ public boolean equals(Object o) {
Objects.equals(this.extendedParams, initiatePlanResponse.extendedParams) &&
Objects.equals(this.shopper, initiatePlanResponse.shopper) &&
Objects.equals(this.billingAddress, initiatePlanResponse.billingAddress) &&
Objects.equals(this.checkoutUrl, initiatePlanResponse.checkoutUrl)&&
Objects.equals(this.checkoutUrl, initiatePlanResponse.checkoutUrl) &&
Objects.equals(this.principalAmount, initiatePlanResponse.principalAmount)&&
Objects.equals(this.additionalProperties, initiatePlanResponse.additionalProperties);
}

@Override
public int hashCode() {
return Objects.hash(installmentPlanNumber, refOrderNumber, purchaseMethod, status, currency, amount, extendedParams, shopper, billingAddress, checkoutUrl, additionalProperties);
return Objects.hash(installmentPlanNumber, refOrderNumber, purchaseMethod, status, currency, amount, extendedParams, shopper, billingAddress, checkoutUrl, principalAmount, additionalProperties);
}

@Override
Expand All @@ -491,6 +534,7 @@ public String toString() {
sb.append(" shopper: ").append(toIndentedString(shopper)).append("\n");
sb.append(" billingAddress: ").append(toIndentedString(billingAddress)).append("\n");
sb.append(" checkoutUrl: ").append(toIndentedString(checkoutUrl)).append("\n");
sb.append(" principalAmount: ").append(toIndentedString(principalAmount)).append("\n");
sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n");
sb.append("}");
return sb.toString();
Expand Down Expand Up @@ -524,6 +568,7 @@ private String toIndentedString(Object o) {
openapiFields.add("Shopper");
openapiFields.add("BillingAddress");
openapiFields.add("CheckoutUrl");
openapiFields.add("PrincipalAmount");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
Expand Down
Loading

0 comments on commit a285bad

Please sign in to comment.