Skip to content

Commit

Permalink
fix handwritten test
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiechayes committed Oct 24, 2023
1 parent 8afa1fe commit 6980fd6
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.konfigthis.splitit.client.ApiClient;
import com.konfigthis.splitit.client.ApiException;
import com.konfigthis.splitit.client.auth.OAuth;
import com.konfigthis.splitit.client.model.*;
import org.junit.jupiter.api.Test;

Expand All @@ -16,12 +17,15 @@ public class SimpleInstallmentPlanApiTest {
*/
@Test
public void createInstallmentPlanTest() throws ApiException {
String clientId = System.getenv("SPLITIT_CLIENT_ID");
String secretId = System.getenv("SPLITIT_CLIENT_SECRET");
ApiClient defaultClient = new ApiClient(clientId, secretId, null);
// String clientId = System.getenv("SPLITIT_CLIENT_ID");
// String secretId = System.getenv("SPLITIT_CLIENT_SECRET");
ApiClient defaultClient = new ApiClient();
defaultClient.setBasePath("http://127.0.0.1:4010");
OAuth auth = (OAuth) defaultClient.getAuthentication("oauth");
auth.setAccessToken("dummy_token");
InstallmentPlanApi api = new InstallmentPlanApi(defaultClient);
InitiatePlanResponse result = api
.post(true, new Date().toString())
.post(true, new Date().toString(), new Date().toString())
.attempt3dSecure(true)
.planData(new PlanDataModel()
.totalAmount(10)
Expand Down

0 comments on commit 6980fd6

Please sign in to comment.