Skip to content

Commit

Permalink
Regenerate Java SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiechayes committed Oct 25, 2023
1 parent 6980fd6 commit 0b62076
Show file tree
Hide file tree
Showing 130 changed files with 9,495 additions and 3,955 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# splitit-sdks
# splitit-web-sdks

|Language|Version|Package Manager|Documentation|Source|
|-|-|-|-|-|
Expand All @@ -7,4 +7,4 @@
|TypeScript|3.3.1|[npm](https://www.npmjs.com/package/splitit-web-typescript-sdk/v/3.3.1)|[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.0|[NuGet](https://nuget.org/packages/Splitit.Web.Net/2.1.0)|[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.0|[Go Packages](https://pkg.go.dev/github.com/konfig-dev/splitit-web-sdks/go)|[Documentation](https://github.com/konfig-dev/splitit-web-sdks/tree/main/go/README.md)|[Source](https://github.com/konfig-dev/splitit-web-sdks/tree/main/go)|
|Go|1.7.0|[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)|
4 changes: 2 additions & 2 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 | 35689 |
| java | 42451 |
| python | 44380 |
| typescript | 9606 |
| csharp | 23097 |
| php | 45015 |
| go | 30391 |
| **Total** | 188178 |
| **Total** | 194940 |
2 changes: 1 addition & 1 deletion java/.konfig/generate-id.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
30347291-b0b9-4052-83bc-8bf198644552
02c9cdc7-c6a8-4c8f-be41-e498908b2c33
76 changes: 39 additions & 37 deletions java/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
# splitit-web-java-sdk

splitit-web-api-v3
- API version: 1.0.0
[![Maven Central](https://img.shields.io/badge/Maven%20Central-v2.2.0-blue)](https://central.sonatype.com/artifact/com.konfigthis/splitit-web-java-sdk/2.2.0)

Splitit's Web API


*Automatically generated by the [Konfig](https://konfigthis.com)*


## Requirements

Building the API client library requires:
Expand Down Expand Up @@ -108,61 +103,72 @@ Please follow the [installation](#installation) instruction and execute the foll
import com.konfigthis.splitit.client.ApiClient;
import com.konfigthis.splitit.client.ApiException;
import com.konfigthis.splitit.client.ApiResponse;
import com.konfigthis.splitit.client.Splitit;
import com.konfigthis.splitit.client.Configuration;
import com.konfigthis.splitit.client.auth.*;
import com.konfigthis.splitit.client.model.*;
import com.konfigthis.splitit.client.api.InstallmentPlanApi;
import java.util.List;
import java.util.Map;
import java.util.UUID;

public class Example {
public static void main(String[] args) {
Configuration configuration = new Configuration();
configuration.host = "https://web-api-v3.production.splitit.com";
// Configure OAuth2 client credentials for "application" OAuth flow
String clientId = System.getenv("CLIENT_ID");
String secretId = System.getenv("CLIENT_SECRET");
ApiClient apiClient = new ApiClient(clientId, secretId, null);
String clientSecret = System.getenv("CLIENT_SECRET");
configuration.clientId = clientId
configuration.clientSecret = clientSecret

// Set custom base path if desired
// apiClient.setBasePath("https://web-api-v3.sandbox.splitit.com");


InstallmentPlanApi api = new InstallmentPlanApi(apiClient);
Splitit client = new Splitit(configuration);
String installmentPlanNumber = "installmentPlanNumber_example";
String xSplititIdempotencyKey = "xSplititIdempotencyKey_example";
String xSplititTouchPoint = ""; // TouchPoint
try {
InstallmentPlanCancelResponse result = api
.cancel(installmentPlanNumber, xSplititIdempotencyKey)
InstallmentPlanCancelResponse result = client
.installmentPlan
.cancel(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint)
.execute();
System.out.println(result);
System.out.println(result.toJson()); // Serialize response back to JSON
System.out.println(result.getInstallmentPlanNumber());
} catch (ApiException e) {
System.err.println("Exception when calling InstallmentPlanApi#cancel");
System.err.println("Status code: " + e.getCode());
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}

// Use .executeWithHttpInfo() to retrieve HTTP Status Code, Headers and Request
// Use .executeWithHttpInfo() to retrieve HTTP Status Code, Headers and Request
try {
ApiResponse<InstallmentPlanCancelResponse> response = api
.cancel(installmentPlanNumber, xSplititIdempotencyKey)
ApiResponse<InstallmentPlanCancelResponse> response = client
.installmentPlan
.cancel(installmentPlanNumber, xSplititIdempotencyKey, xSplititTouchPoint)
.executeWithHttpInfo();
System.out.println(response.getData());
System.out.println(response.getHeaders());
System.out.println(response.getResponseBody());
System.out.println(response.getResponseHeaders());
System.out.println(response.getStatusCode());
System.out.println(response.getRoundTripTime());
System.out.println(response.getRequest());
} catch (ApiException e) {
System.err.println("Exception when calling InstallmentPlanApi#cancel");
System.err.println("Status code: " + e.getCode());
System.err.println("Status code: " + e.getStatusCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

```

## Documentation for API Endpoints

All URIs are relative to *https://web-api-v3.sandbox.splitit.com*
All URIs are relative to *https://web-api-v3.production.splitit.com*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
Expand All @@ -183,13 +189,16 @@ Class | Method | HTTP request | Description
- [AddressData](docs/AddressData.md)
- [AddressDataModel](docs/AddressDataModel.md)
- [AuthorizationModel](docs/AuthorizationModel.md)
- [BluesnapVaultedShopperToken](docs/BluesnapVaultedShopperToken.md)
- [CardBrand](docs/CardBrand.md)
- [CardData](docs/CardData.md)
- [CardType](docs/CardType.md)
- [CheckInstallmentsEligibilityRequest](docs/CheckInstallmentsEligibilityRequest.md)
- [Error](docs/Error.md)
- [ErrorExtended](docs/ErrorExtended.md)
- [ErrorExtendedAllOf](docs/ErrorExtendedAllOf.md)
- [EventsEndpointsModel](docs/EventsEndpointsModel.md)
- [GatewayTokenData](docs/GatewayTokenData.md)
- [GwAuthorizationStatus](docs/GwAuthorizationStatus.md)
- [IdentifierContract](docs/IdentifierContract.md)
- [InitiatePlanResponse](docs/InitiatePlanResponse.md)
Expand All @@ -211,6 +220,7 @@ Class | Method | HTTP request | Description
- [InstallmentsEligibilityResponse](docs/InstallmentsEligibilityResponse.md)
- [LinksData](docs/LinksData.md)
- [LinksModel](docs/LinksModel.md)
- [MockerShopperToken](docs/MockerShopperToken.md)
- [PaymentMethodModel](docs/PaymentMethodModel.md)
- [PaymentMethodType](docs/PaymentMethodType.md)
- [PaymentPlanOptionModel](docs/PaymentPlanOptionModel.md)
Expand All @@ -219,6 +229,8 @@ Class | Method | HTTP request | Description
- [PlanErrorResponse](docs/PlanErrorResponse.md)
- [PlanErrorResponseAllOf](docs/PlanErrorResponseAllOf.md)
- [PlanStatus](docs/PlanStatus.md)
- [ProcessingData](docs/ProcessingData.md)
- [ProcessingData2](docs/ProcessingData2.md)
- [PurchaseMethod](docs/PurchaseMethod.md)
- [RedirectionEndpointsModel](docs/RedirectionEndpointsModel.md)
- [RefundModel](docs/RefundModel.md)
Expand All @@ -229,25 +241,15 @@ Class | Method | HTTP request | Description
- [ShippingStatus](docs/ShippingStatus.md)
- [ShippingStatus2](docs/ShippingStatus2.md)
- [ShopperData](docs/ShopperData.md)
- [SpreedlyToken](docs/SpreedlyToken.md)
- [TestModes](docs/TestModes.md)
- [ThreeDSData](docs/ThreeDSData.md)
- [ThreeDSData2](docs/ThreeDSData2.md)
- [ThreeDsRedirectDataV3](docs/ThreeDsRedirectDataV3.md)
- [UpdateOrderRequest](docs/UpdateOrderRequest.md)
- [UxSettingsModel](docs/UxSettingsModel.md)
- [VerifyAuthorizationResponse](docs/VerifyAuthorizationResponse.md)


## Documentation for Authorization

Authentication schemes defined for the API:
### oauth

- **Type**: OAuth
- **Flow**: application
- **Authorization URL**:
- **Scopes**:
- api.v3:


## Recommendation

It's recommended to create an instance of `ApiClient` per thread in a multithreaded environment to avoid any potential issues.
## Author
This Java package is automatically generated by [Konfig](https://konfigthis.com)
Loading

0 comments on commit 0b62076

Please sign in to comment.