Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 8 additions & 16 deletions src/main/java/com/basistheory/AsyncBasisTheoryApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
import com.basistheory.resources.applicationkeys.AsyncApplicationKeysClient;
import com.basistheory.resources.applications.AsyncApplicationsClient;
import com.basistheory.resources.applicationtemplates.AsyncApplicationTemplatesClient;
import com.basistheory.resources.connection.AsyncConnectionClient;
import com.basistheory.resources.documents.AsyncDocumentsClient;
import com.basistheory.resources.enrichments.AsyncEnrichmentsClient;
import com.basistheory.resources.googlepay.AsyncGooglepayClient;
import com.basistheory.resources.googlepay.AsyncGooglePayClient;
import com.basistheory.resources.keys.AsyncKeysClient;
import com.basistheory.resources.logs.AsyncLogsClient;
import com.basistheory.resources.networktokens.AsyncNetworkTokensClient;
Expand All @@ -40,14 +39,14 @@ public class AsyncBasisTheoryApiClient {

protected final Supplier<AsyncApplePayClient> applePayClient;

protected final Supplier<AsyncGooglePayClient> googlePayClient;

protected final Supplier<AsyncDocumentsClient> documentsClient;

protected final Supplier<AsyncTokensClient> tokensClient;

protected final Supplier<AsyncEnrichmentsClient> enrichmentsClient;

protected final Supplier<AsyncGooglepayClient> googlepayClient;

protected final Supplier<AsyncKeysClient> keysClient;

protected final Supplier<AsyncLogsClient> logsClient;
Expand All @@ -70,8 +69,6 @@ public class AsyncBasisTheoryApiClient {

protected final Supplier<AsyncAccountUpdaterClient> accountUpdaterClient;

protected final Supplier<AsyncConnectionClient> connectionClient;

protected final Supplier<AsyncTenantsClient> tenantsClient;

protected final Supplier<AsyncThreedsClient> threedsClient;
Expand All @@ -82,10 +79,10 @@ public AsyncBasisTheoryApiClient(ClientOptions clientOptions) {
this.applicationKeysClient = Suppliers.memoize(() -> new AsyncApplicationKeysClient(clientOptions));
this.applicationTemplatesClient = Suppliers.memoize(() -> new AsyncApplicationTemplatesClient(clientOptions));
this.applePayClient = Suppliers.memoize(() -> new AsyncApplePayClient(clientOptions));
this.googlePayClient = Suppliers.memoize(() -> new AsyncGooglePayClient(clientOptions));
this.documentsClient = Suppliers.memoize(() -> new AsyncDocumentsClient(clientOptions));
this.tokensClient = Suppliers.memoize(() -> new AsyncTokensClient(clientOptions));
this.enrichmentsClient = Suppliers.memoize(() -> new AsyncEnrichmentsClient(clientOptions));
this.googlepayClient = Suppliers.memoize(() -> new AsyncGooglepayClient(clientOptions));
this.keysClient = Suppliers.memoize(() -> new AsyncKeysClient(clientOptions));
this.logsClient = Suppliers.memoize(() -> new AsyncLogsClient(clientOptions));
this.networkTokensClient = Suppliers.memoize(() -> new AsyncNetworkTokensClient(clientOptions));
Expand All @@ -97,7 +94,6 @@ public AsyncBasisTheoryApiClient(ClientOptions clientOptions) {
this.tokenIntentsClient = Suppliers.memoize(() -> new AsyncTokenIntentsClient(clientOptions));
this.webhooksClient = Suppliers.memoize(() -> new AsyncWebhooksClient(clientOptions));
this.accountUpdaterClient = Suppliers.memoize(() -> new AsyncAccountUpdaterClient(clientOptions));
this.connectionClient = Suppliers.memoize(() -> new AsyncConnectionClient(clientOptions));
this.tenantsClient = Suppliers.memoize(() -> new AsyncTenantsClient(clientOptions));
this.threedsClient = Suppliers.memoize(() -> new AsyncThreedsClient(clientOptions));
}
Expand All @@ -118,6 +114,10 @@ public AsyncApplePayClient applePay() {
return this.applePayClient.get();
}

public AsyncGooglePayClient googlePay() {
return this.googlePayClient.get();
}

public AsyncDocumentsClient documents() {
return this.documentsClient.get();
}
Expand All @@ -130,10 +130,6 @@ public AsyncEnrichmentsClient enrichments() {
return this.enrichmentsClient.get();
}

public AsyncGooglepayClient googlepay() {
return this.googlepayClient.get();
}

public AsyncKeysClient keys() {
return this.keysClient.get();
}
Expand Down Expand Up @@ -178,10 +174,6 @@ public AsyncAccountUpdaterClient accountUpdater() {
return this.accountUpdaterClient.get();
}

public AsyncConnectionClient connection() {
return this.connectionClient.get();
}

public AsyncTenantsClient tenants() {
return this.tenantsClient.get();
}
Expand Down
24 changes: 8 additions & 16 deletions src/main/java/com/basistheory/BasisTheoryApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
import com.basistheory.resources.applicationkeys.ApplicationKeysClient;
import com.basistheory.resources.applications.ApplicationsClient;
import com.basistheory.resources.applicationtemplates.ApplicationTemplatesClient;
import com.basistheory.resources.connection.ConnectionClient;
import com.basistheory.resources.documents.DocumentsClient;
import com.basistheory.resources.enrichments.EnrichmentsClient;
import com.basistheory.resources.googlepay.GooglepayClient;
import com.basistheory.resources.googlepay.GooglePayClient;
import com.basistheory.resources.keys.KeysClient;
import com.basistheory.resources.logs.LogsClient;
import com.basistheory.resources.networktokens.NetworkTokensClient;
Expand All @@ -40,14 +39,14 @@ public class BasisTheoryApiClient {

protected final Supplier<ApplePayClient> applePayClient;

protected final Supplier<GooglePayClient> googlePayClient;

protected final Supplier<DocumentsClient> documentsClient;

protected final Supplier<TokensClient> tokensClient;

protected final Supplier<EnrichmentsClient> enrichmentsClient;

protected final Supplier<GooglepayClient> googlepayClient;

protected final Supplier<KeysClient> keysClient;

protected final Supplier<LogsClient> logsClient;
Expand All @@ -70,8 +69,6 @@ public class BasisTheoryApiClient {

protected final Supplier<AccountUpdaterClient> accountUpdaterClient;

protected final Supplier<ConnectionClient> connectionClient;

protected final Supplier<TenantsClient> tenantsClient;

protected final Supplier<ThreedsClient> threedsClient;
Expand All @@ -82,10 +79,10 @@ public BasisTheoryApiClient(ClientOptions clientOptions) {
this.applicationKeysClient = Suppliers.memoize(() -> new ApplicationKeysClient(clientOptions));
this.applicationTemplatesClient = Suppliers.memoize(() -> new ApplicationTemplatesClient(clientOptions));
this.applePayClient = Suppliers.memoize(() -> new ApplePayClient(clientOptions));
this.googlePayClient = Suppliers.memoize(() -> new GooglePayClient(clientOptions));
this.documentsClient = Suppliers.memoize(() -> new DocumentsClient(clientOptions));
this.tokensClient = Suppliers.memoize(() -> new TokensClient(clientOptions));
this.enrichmentsClient = Suppliers.memoize(() -> new EnrichmentsClient(clientOptions));
this.googlepayClient = Suppliers.memoize(() -> new GooglepayClient(clientOptions));
this.keysClient = Suppliers.memoize(() -> new KeysClient(clientOptions));
this.logsClient = Suppliers.memoize(() -> new LogsClient(clientOptions));
this.networkTokensClient = Suppliers.memoize(() -> new NetworkTokensClient(clientOptions));
Expand All @@ -97,7 +94,6 @@ public BasisTheoryApiClient(ClientOptions clientOptions) {
this.tokenIntentsClient = Suppliers.memoize(() -> new TokenIntentsClient(clientOptions));
this.webhooksClient = Suppliers.memoize(() -> new WebhooksClient(clientOptions));
this.accountUpdaterClient = Suppliers.memoize(() -> new AccountUpdaterClient(clientOptions));
this.connectionClient = Suppliers.memoize(() -> new ConnectionClient(clientOptions));
this.tenantsClient = Suppliers.memoize(() -> new TenantsClient(clientOptions));
this.threedsClient = Suppliers.memoize(() -> new ThreedsClient(clientOptions));
}
Expand All @@ -118,6 +114,10 @@ public ApplePayClient applePay() {
return this.applePayClient.get();
}

public GooglePayClient googlePay() {
return this.googlePayClient.get();
}

public DocumentsClient documents() {
return this.documentsClient.get();
}
Expand All @@ -130,10 +130,6 @@ public EnrichmentsClient enrichments() {
return this.enrichmentsClient.get();
}

public GooglepayClient googlepay() {
return this.googlepayClient.get();
}

public KeysClient keys() {
return this.keysClient.get();
}
Expand Down Expand Up @@ -178,10 +174,6 @@ public AccountUpdaterClient accountUpdater() {
return this.accountUpdaterClient.get();
}

public ConnectionClient connection() {
return this.connectionClient.get();
}

public TenantsClient tenants() {
return this.tenantsClient.get();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import com.basistheory.core.ClientOptions;
import com.basistheory.core.RequestOptions;
import com.basistheory.types.ApplePayDomainDeregistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationListRequest;
import com.basistheory.types.ApplePayDomainRegistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainDeregistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationListRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationResponse;
import java.util.concurrent.CompletableFuture;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import com.basistheory.errors.ServiceUnavailableError;
import com.basistheory.errors.UnauthorizedError;
import com.basistheory.errors.UnprocessableEntityError;
import com.basistheory.types.ApplePayDomainDeregistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationListRequest;
import com.basistheory.types.ApplePayDomainRegistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainDeregistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationListRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationResponse;
import com.basistheory.types.ProblemDetails;
import com.basistheory.types.ValidationProblemDetails;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

import com.basistheory.core.ClientOptions;
import com.basistheory.core.RequestOptions;
import com.basistheory.types.ApplePayDomainDeregistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationListRequest;
import com.basistheory.types.ApplePayDomainRegistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainDeregistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationListRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationResponse;

public class DomainClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
import com.basistheory.errors.ServiceUnavailableError;
import com.basistheory.errors.UnauthorizedError;
import com.basistheory.errors.UnprocessableEntityError;
import com.basistheory.types.ApplePayDomainDeregistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationListRequest;
import com.basistheory.types.ApplePayDomainRegistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainDeregistrationRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationListRequest;
import com.basistheory.resources.applepay.domain.requests.ApplePayDomainRegistrationRequest;
import com.basistheory.types.ApplePayDomainRegistrationResponse;
import com.basistheory.types.ProblemDetails;
import com.basistheory.types.ValidationProblemDetails;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.basistheory.types;
package com.basistheory.resources.applepay.domain.requests;

import com.basistheory.core.ObjectMappers;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.basistheory.types;
package com.basistheory.resources.applepay.domain.requests;

import com.basistheory.core.ObjectMappers;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.basistheory.types;
package com.basistheory.resources.applepay.domain.requests;

import com.basistheory.core.ObjectMappers;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.basistheory.errors.ForbiddenError;
import com.basistheory.errors.UnauthorizedError;
import com.basistheory.errors.UnprocessableEntityError;
import com.basistheory.types.ApplePaySessionRequest;
import com.basistheory.resources.applepay.session.requests.ApplePaySessionRequest;
import com.basistheory.types.ProblemDetails;
import com.basistheory.types.ValidationProblemDetails;
import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import com.basistheory.core.ClientOptions;
import com.basistheory.core.RequestOptions;
import com.basistheory.types.ApplePaySessionRequest;
import com.basistheory.resources.applepay.session.requests.ApplePaySessionRequest;
import java.util.concurrent.CompletableFuture;

public class AsyncSessionClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.basistheory.errors.ForbiddenError;
import com.basistheory.errors.UnauthorizedError;
import com.basistheory.errors.UnprocessableEntityError;
import com.basistheory.types.ApplePaySessionRequest;
import com.basistheory.resources.applepay.session.requests.ApplePaySessionRequest;
import com.basistheory.types.ProblemDetails;
import com.basistheory.types.ValidationProblemDetails;
import com.fasterxml.jackson.core.JsonProcessingException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import com.basistheory.core.ClientOptions;
import com.basistheory.core.RequestOptions;
import com.basistheory.types.ApplePaySessionRequest;
import com.basistheory.resources.applepay.session.requests.ApplePaySessionRequest;

public class SessionClient {
protected final ClientOptions clientOptions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* This file was auto-generated by Fern from our API Definition.
*/
package com.basistheory.types;
package com.basistheory.resources.applepay.session.requests;

import com.basistheory.core.ObjectMappers;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
Expand Down

This file was deleted.

This file was deleted.

Loading