();
-
- final String[] localVarAccepts = {
- "application/json;charset=utf-8"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
-
- final String[] localVarContentTypes = {
- "application/json;charset=utf-8"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- if(progressListener != null) {
- apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
- @Override
- public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
- okhttp3.Response originalResponse = chain.proceed(chain.request());
- return originalResponse.newBuilder()
- .body(new ProgressResponseBody(originalResponse.body(), progressListener))
- .build();
- }
- });
- }
-
- String[] localVarAuthNames = new String[] { };
- return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call createWebhookSubscriptionValidateBeforeCall(CreateWebhookRequest createWebhookRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
-
-
- okhttp3.Call call = createWebhookSubscriptionCall(createWebhookRequest, progressListener, progressRequestListener);
- return call;
-
-
-
-
-
- }
-
- /**
- * Create a Webhook
- * Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
- * DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
- * @param createWebhookRequest The webhook payload (optional)
- * @return InlineResponse2014
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public InlineResponse2014 createWebhookSubscription(CreateWebhookRequest createWebhookRequest) throws ApiException {
- logger.info("CALL TO METHOD 'createWebhookSubscription' STARTED");
- ApiResponse resp = createWebhookSubscriptionWithHttpInfo(createWebhookRequest);
- logger.info("CALL TO METHOD 'createWebhookSubscription' ENDED");
- return resp.getData();
- }
-
- /**
- * Create a Webhook
- * Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
- * @param createWebhookRequest The webhook payload (optional)
- * @return ApiResponse<InlineResponse2014>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public ApiResponse createWebhookSubscriptionWithHttpInfo(CreateWebhookRequest createWebhookRequest) throws ApiException {
- this.apiClient.setComputationStartTime(System.nanoTime());
- okhttp3.Call call = createWebhookSubscriptionValidateBeforeCall(createWebhookRequest, null, null);
- Type localVarReturnType = new TypeToken(){}.getType();
- return apiClient.execute(call, localVarReturnType);
- }
-
- /**
- * Create a Webhook (asynchronously)
- * Create a new webhook subscription. Before creating a webhook, ensure that a security key has been created at the top of this developer center section. You will not need to pass us back the key during the creation of the webhook, but you will receive an error if you did not already create a key or store one on file.
- * @param createWebhookRequest The webhook payload (optional)
- * @param callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- */
- public okhttp3.Call createWebhookSubscriptionAsync(CreateWebhookRequest createWebhookRequest, final ApiCallback callback) throws ApiException {
-
- this.apiClient.setComputationStartTime(System.nanoTime());
- ProgressResponseBody.ProgressListener progressListener = null;
- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
-
- if (callback != null) {
- progressListener = new ProgressResponseBody.ProgressListener() {
- @Override
- public void update(long bytesRead, long contentLength, boolean done) {
- callback.onDownloadProgress(bytesRead, contentLength, done);
- }
- };
-
- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
- @Override
- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
- callback.onUploadProgress(bytesWritten, contentLength, done);
- }
- };
- }
-
- okhttp3.Call call = createWebhookSubscriptionValidateBeforeCall(createWebhookRequest, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken(){}.getType();
- apiClient.executeAsync(call, localVarReturnType, callback);
- return call;
- }
- /**
- * Build call for findProductsToSubscribe
- * @param organizationId The Organization Identifier. (required)
- * @param progressListener Progress listener
- * @param progressRequestListener Progress request listener
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- */
- public okhttp3.Call findProductsToSubscribeCall(String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
- SdkTracker sdkTracker = new SdkTracker();
- Object localVarPostBody = null;
- if ("GET".equalsIgnoreCase("POST")) {
- localVarPostBody = "{}";
- }
-
- boolean isMLESupportedByCybsForApi = false;
- if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "findProductsToSubscribe,findProductsToSubscribeAsync,findProductsToSubscribeWithHttpInfo,findProductsToSubscribeCall")) {
- try {
- localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody);
- } catch (MLEException e) {
- logger.error("Failed to encrypt request body {}", e.getMessage(), e);
- throw new ApiException("Failed to encrypt request body : " + e.getMessage());
- }
- }
-
- // create path and map variables
- String localVarPath = "/notification-subscriptions/v1/products/{organizationId}"
- .replaceAll("\\{" + "organizationId" + "\\}", apiClient.escapeString(organizationId.toString()));
-
- List localVarQueryParams = new ArrayList();
-
- Map localVarHeaderParams = new HashMap();
-
- Map localVarFormParams = new HashMap();
-
- final String[] localVarAccepts = {
- "application/json;charset=utf-8"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
-
- final String[] localVarContentTypes = {
- "application/json;charset=utf-8"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- if(progressListener != null) {
- apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
- @Override
- public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
- okhttp3.Response originalResponse = chain.proceed(chain.request());
- return originalResponse.newBuilder()
- .body(new ProgressResponseBody(originalResponse.body(), progressListener))
- .build();
- }
- });
- }
-
- String[] localVarAuthNames = new String[] { };
- return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call findProductsToSubscribeValidateBeforeCall(String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
-
- // verify the required parameter 'organizationId' is set
- if (organizationId == null) {
- logger.error("Missing the required parameter 'organizationId' when calling findProductsToSubscribe(Async)");
- throw new ApiException("Missing the required parameter 'organizationId' when calling findProductsToSubscribe(Async)");
- }
-
-
- okhttp3.Call call = findProductsToSubscribeCall(organizationId, progressListener, progressRequestListener);
- return call;
-
-
-
-
-
- }
-
- /**
- * Find Products You Can Subscribe To
- * Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
- * DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
- * @param organizationId The Organization Identifier. (required)
- * @return List<InlineResponse2002>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public List findProductsToSubscribe(String organizationId) throws ApiException {
- logger.info("CALL TO METHOD 'findProductsToSubscribe' STARTED");
- ApiResponse> resp = findProductsToSubscribeWithHttpInfo(organizationId);
- logger.info("CALL TO METHOD 'findProductsToSubscribe' ENDED");
- return resp.getData();
- }
-
- /**
- * Find Products You Can Subscribe To
- * Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
- * @param organizationId The Organization Identifier. (required)
- * @return ApiResponse<List<InlineResponse2002>>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public ApiResponse> findProductsToSubscribeWithHttpInfo(String organizationId) throws ApiException {
- this.apiClient.setComputationStartTime(System.nanoTime());
- okhttp3.Call call = findProductsToSubscribeValidateBeforeCall(organizationId, null, null);
- Type localVarReturnType = new TypeToken>(){}.getType();
- return apiClient.execute(call, localVarReturnType);
- }
-
- /**
- * Find Products You Can Subscribe To (asynchronously)
- * Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
- * @param organizationId The Organization Identifier. (required)
- * @param callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- */
- public okhttp3.Call findProductsToSubscribeAsync(String organizationId, final ApiCallback> callback) throws ApiException {
-
- this.apiClient.setComputationStartTime(System.nanoTime());
- ProgressResponseBody.ProgressListener progressListener = null;
- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
-
- if (callback != null) {
- progressListener = new ProgressResponseBody.ProgressListener() {
- @Override
- public void update(long bytesRead, long contentLength, boolean done) {
- callback.onDownloadProgress(bytesRead, contentLength, done);
- }
- };
-
- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
- @Override
- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
- callback.onUploadProgress(bytesWritten, contentLength, done);
- }
- };
- }
-
- okhttp3.Call call = findProductsToSubscribeValidateBeforeCall(organizationId, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken>(){}.getType();
- apiClient.executeAsync(call, localVarReturnType, callback);
- return call;
- }
/**
* Build call for saveSymEgressKey
* @param vCSenderOrganizationId Sender organization id (required)
@@ -390,7 +105,7 @@ public okhttp3.Call saveSymEgressKeyCall(String vCSenderOrganizationId, String v
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
- "application/json;charset=utf-8"
+ "application/hal+json;charset=utf-8"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
@@ -444,7 +159,7 @@ private okhttp3.Call saveSymEgressKeyValidateBeforeCall(String vCSenderOrganizat
/**
* Create Webhook Security Keys
- * Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remeber to save the key in the API response, so that you can use it to validate messages later.
+ * Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remember to save the key in the API response, so that you can use it to validate messages later.
* DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
* @param vCSenderOrganizationId Sender organization id (required)
* @param vCPermissions Encoded user permissions returned by the CGK, for the entity user who initiated the boarding (required)
@@ -462,7 +177,7 @@ public InlineResponse2013 saveSymEgressKey(String vCSenderOrganizationId, String
/**
* Create Webhook Security Keys
- * Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remeber to save the key in the API response, so that you can use it to validate messages later.
+ * Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remember to save the key in the API response, so that you can use it to validate messages later.
* @param vCSenderOrganizationId Sender organization id (required)
* @param vCPermissions Encoded user permissions returned by the CGK, for the entity user who initiated the boarding (required)
* @param vCCorrelationId A globally unique id associated with your request (optional)
@@ -479,7 +194,7 @@ public ApiResponse saveSymEgressKeyWithHttpInfo(String vCSen
/**
* Create Webhook Security Keys (asynchronously)
- * Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remeber to save the key in the API response, so that you can use it to validate messages later.
+ * Create security keys that CyberSource will use internally to connect to your servers and validate messages using a digital signature. Select the CREATE example for CyberSource to generate the key on our server and maintain it for you as well. Remember to save the key in the API response, so that you can use it to validate messages later.
* @param vCSenderOrganizationId Sender organization id (required)
* @param vCPermissions Encoded user permissions returned by the CGK, for the entity user who initiated the boarding (required)
* @param vCCorrelationId A globally unique id associated with your request (optional)
diff --git a/src/main/java/Api/ManageWebhooksApi.java b/src/main/java/Api/ManageWebhooksApi.java
index 3c050e867..7b723c832 100644
--- a/src/main/java/Api/ManageWebhooksApi.java
+++ b/src/main/java/Api/ManageWebhooksApi.java
@@ -28,12 +28,9 @@
import java.io.InputStream;
-import Model.InlineResponse2003;
-import Model.InlineResponse2004;
+import Model.InlineResponse2014;
import Model.InlineResponse2015;
-import Model.InlineResponse4042;
import Model.SaveAsymEgressKey;
-import Model.UpdateWebhookRequest;
import java.lang.reflect.Type;
import java.util.ArrayList;
@@ -69,164 +66,22 @@ public void setApiClient(ApiClient apiClient) {
}
/**
- * Build call for deleteWebhookSubscription
- * @param webhookId The webhook identifier. (required)
- * @param progressListener Progress listener
- * @param progressRequestListener Progress request listener
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- */
- public okhttp3.Call deleteWebhookSubscriptionCall(String webhookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
- SdkTracker sdkTracker = new SdkTracker();
- Object localVarPostBody = null;
- if ("DELETE".equalsIgnoreCase("POST")) {
- localVarPostBody = "{}";
- }
-
- boolean isMLESupportedByCybsForApi = false;
- if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "deleteWebhookSubscription,deleteWebhookSubscriptionAsync,deleteWebhookSubscriptionWithHttpInfo,deleteWebhookSubscriptionCall")) {
- try {
- localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody);
- } catch (MLEException e) {
- logger.error("Failed to encrypt request body {}", e.getMessage(), e);
- throw new ApiException("Failed to encrypt request body : " + e.getMessage());
- }
- }
-
- // create path and map variables
- String localVarPath = "/notification-subscriptions/v1/webhooks/{webhookId}"
- .replaceAll("\\{" + "webhookId" + "\\}", apiClient.escapeString(webhookId.toString()));
-
- List localVarQueryParams = new ArrayList();
-
- Map localVarHeaderParams = new HashMap();
-
- Map localVarFormParams = new HashMap();
-
- final String[] localVarAccepts = {
- "application/json;charset=utf-8"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
-
- final String[] localVarContentTypes = {
- "application/json;charset=utf-8"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- if(progressListener != null) {
- apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
- @Override
- public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
- okhttp3.Response originalResponse = chain.proceed(chain.request());
- return originalResponse.newBuilder()
- .body(new ProgressResponseBody(originalResponse.body(), progressListener))
- .build();
- }
- });
- }
-
- String[] localVarAuthNames = new String[] { };
- return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call deleteWebhookSubscriptionValidateBeforeCall(String webhookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
-
- // verify the required parameter 'webhookId' is set
- if (webhookId == null) {
- logger.error("Missing the required parameter 'webhookId' when calling deleteWebhookSubscription(Async)");
- throw new ApiException("Missing the required parameter 'webhookId' when calling deleteWebhookSubscription(Async)");
- }
-
-
- okhttp3.Call call = deleteWebhookSubscriptionCall(webhookId, progressListener, progressRequestListener);
- return call;
-
-
-
-
-
- }
-
- /**
- * Delete a Webhook Subscription
- * Delete the webhook. Please note that deleting a particular webhook does not delete the history of the webhook notifications.
- * DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
- * @param webhookId The webhook identifier. (required)
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public void deleteWebhookSubscription(String webhookId) throws ApiException {
- logger.info("CALL TO METHOD 'deleteWebhookSubscription' STARTED");
- deleteWebhookSubscriptionWithHttpInfo(webhookId);
-
- }
-
- /**
- * Delete a Webhook Subscription
- * Delete the webhook. Please note that deleting a particular webhook does not delete the history of the webhook notifications.
- * @param webhookId The webhook identifier. (required)
- * @return ApiResponse<Void>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public ApiResponse deleteWebhookSubscriptionWithHttpInfo(String webhookId) throws ApiException {
- this.apiClient.setComputationStartTime(System.nanoTime());
- okhttp3.Call call = deleteWebhookSubscriptionValidateBeforeCall(webhookId, null, null);
- return apiClient.execute(call);
- }
-
- /**
- * Delete a Webhook Subscription (asynchronously)
- * Delete the webhook. Please note that deleting a particular webhook does not delete the history of the webhook notifications.
- * @param webhookId The webhook identifier. (required)
- * @param callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- */
- public okhttp3.Call deleteWebhookSubscriptionAsync(String webhookId, final ApiCallback callback) throws ApiException {
-
- this.apiClient.setComputationStartTime(System.nanoTime());
- ProgressResponseBody.ProgressListener progressListener = null;
- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
-
- if (callback != null) {
- progressListener = new ProgressResponseBody.ProgressListener() {
- @Override
- public void update(long bytesRead, long contentLength, boolean done) {
- callback.onDownloadProgress(bytesRead, contentLength, done);
- }
- };
-
- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
- @Override
- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
- callback.onUploadProgress(bytesWritten, contentLength, done);
- }
- };
- }
-
- okhttp3.Call call = deleteWebhookSubscriptionValidateBeforeCall(webhookId, progressListener, progressRequestListener);
- apiClient.executeAsync(call, callback);
- return call;
- }
- /**
- * Build call for getWebhookSubscriptionById
- * @param webhookId The webhook Identifier (required)
+ * Build call for notificationSubscriptionsV1WebhooksWebhookIdPost
+ * @param webhookId The Webhook Identifier. (required)
* @param progressListener Progress listener
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
*/
- public okhttp3.Call getWebhookSubscriptionByIdCall(String webhookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call notificationSubscriptionsV1WebhooksWebhookIdPostCall(String webhookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
- if ("GET".equalsIgnoreCase("POST")) {
+ if ("POST".equalsIgnoreCase("POST")) {
localVarPostBody = "{}";
}
boolean isMLESupportedByCybsForApi = false;
- if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getWebhookSubscriptionById,getWebhookSubscriptionByIdAsync,getWebhookSubscriptionByIdWithHttpInfo,getWebhookSubscriptionByIdCall")) {
+ if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "notificationSubscriptionsV1WebhooksWebhookIdPost,notificationSubscriptionsV1WebhooksWebhookIdPostAsync,notificationSubscriptionsV1WebhooksWebhookIdPostWithHttpInfo,notificationSubscriptionsV1WebhooksWebhookIdPostCall")) {
try {
localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody);
} catch (MLEException e) {
@@ -246,7 +101,7 @@ public okhttp3.Call getWebhookSubscriptionByIdCall(String webhookId, final Progr
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
- "application/json;charset=utf-8"
+ "application/hal+json;charset=utf-8"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
@@ -270,20 +125,20 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
String[] localVarAuthNames = new String[] { };
- return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getWebhookSubscriptionByIdValidateBeforeCall(String webhookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call notificationSubscriptionsV1WebhooksWebhookIdPostValidateBeforeCall(String webhookId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
// verify the required parameter 'webhookId' is set
if (webhookId == null) {
- logger.error("Missing the required parameter 'webhookId' when calling getWebhookSubscriptionById(Async)");
- throw new ApiException("Missing the required parameter 'webhookId' when calling getWebhookSubscriptionById(Async)");
+ logger.error("Missing the required parameter 'webhookId' when calling notificationSubscriptionsV1WebhooksWebhookIdPost(Async)");
+ throw new ApiException("Missing the required parameter 'webhookId' when calling notificationSubscriptionsV1WebhooksWebhookIdPost(Async)");
}
- okhttp3.Call call = getWebhookSubscriptionByIdCall(webhookId, progressListener, progressRequestListener);
+ okhttp3.Call call = notificationSubscriptionsV1WebhooksWebhookIdPostCall(webhookId, progressListener, progressRequestListener);
return call;
@@ -293,214 +148,43 @@ private okhttp3.Call getWebhookSubscriptionByIdValidateBeforeCall(String webhook
}
/**
- * Get Details On a Single Webhook
- * Retrieve the details of a specific webhook by supplying the webhook ID in the path.
+ * Test a Webhook Configuration
+ * Test the webhook configuration by sending a sample webhook. Calling this endpoint sends a sample webhook to the endpoint identified in the user's subscription. It will contain sample values for the product & eventType based on values present in your subscription along with a sample message in the payload. Based on the webhook response users can make any necessary modifications or rest assured knowing their setup is configured correctly.
* DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
- * @param webhookId The webhook Identifier (required)
- * @return InlineResponse2004
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public InlineResponse2004 getWebhookSubscriptionById(String webhookId) throws ApiException {
- logger.info("CALL TO METHOD 'getWebhookSubscriptionById' STARTED");
- ApiResponse resp = getWebhookSubscriptionByIdWithHttpInfo(webhookId);
- logger.info("CALL TO METHOD 'getWebhookSubscriptionById' ENDED");
- return resp.getData();
- }
-
- /**
- * Get Details On a Single Webhook
- * Retrieve the details of a specific webhook by supplying the webhook ID in the path.
- * @param webhookId The webhook Identifier (required)
- * @return ApiResponse<InlineResponse2004>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public ApiResponse getWebhookSubscriptionByIdWithHttpInfo(String webhookId) throws ApiException {
- this.apiClient.setComputationStartTime(System.nanoTime());
- okhttp3.Call call = getWebhookSubscriptionByIdValidateBeforeCall(webhookId, null, null);
- Type localVarReturnType = new TypeToken(){}.getType();
- return apiClient.execute(call, localVarReturnType);
- }
-
- /**
- * Get Details On a Single Webhook (asynchronously)
- * Retrieve the details of a specific webhook by supplying the webhook ID in the path.
- * @param webhookId The webhook Identifier (required)
- * @param callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- */
- public okhttp3.Call getWebhookSubscriptionByIdAsync(String webhookId, final ApiCallback callback) throws ApiException {
-
- this.apiClient.setComputationStartTime(System.nanoTime());
- ProgressResponseBody.ProgressListener progressListener = null;
- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
-
- if (callback != null) {
- progressListener = new ProgressResponseBody.ProgressListener() {
- @Override
- public void update(long bytesRead, long contentLength, boolean done) {
- callback.onDownloadProgress(bytesRead, contentLength, done);
- }
- };
-
- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
- @Override
- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
- callback.onUploadProgress(bytesWritten, contentLength, done);
- }
- };
- }
-
- okhttp3.Call call = getWebhookSubscriptionByIdValidateBeforeCall(webhookId, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken(){}.getType();
- apiClient.executeAsync(call, localVarReturnType, callback);
- return call;
- }
- /**
- * Build call for getWebhookSubscriptionsByOrg
- * @param organizationId The Organization Identifier. (required)
- * @param productId The Product Identifier. (required)
- * @param eventType The Event Type. (required)
- * @param progressListener Progress listener
- * @param progressRequestListener Progress request listener
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- */
- public okhttp3.Call getWebhookSubscriptionsByOrgCall(String organizationId, String productId, String eventType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
- SdkTracker sdkTracker = new SdkTracker();
- Object localVarPostBody = null;
- if ("GET".equalsIgnoreCase("POST")) {
- localVarPostBody = "{}";
- }
-
- boolean isMLESupportedByCybsForApi = false;
- if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "getWebhookSubscriptionsByOrg,getWebhookSubscriptionsByOrgAsync,getWebhookSubscriptionsByOrgWithHttpInfo,getWebhookSubscriptionsByOrgCall")) {
- try {
- localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody);
- } catch (MLEException e) {
- logger.error("Failed to encrypt request body {}", e.getMessage(), e);
- throw new ApiException("Failed to encrypt request body : " + e.getMessage());
- }
- }
-
- // create path and map variables
- String localVarPath = "/notification-subscriptions/v1/webhooks";
-
- List localVarQueryParams = new ArrayList();
- if (organizationId != null)
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "organizationId", organizationId));
- if (productId != null)
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "productId", productId));
- if (eventType != null)
- localVarQueryParams.addAll(apiClient.parameterToPairs("", "eventType", eventType));
-
- Map localVarHeaderParams = new HashMap();
-
- Map localVarFormParams = new HashMap();
-
- final String[] localVarAccepts = {
- "application/json;charset=utf-8"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
-
- final String[] localVarContentTypes = {
- "application/json;charset=utf-8"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- if(progressListener != null) {
- apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
- @Override
- public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
- okhttp3.Response originalResponse = chain.proceed(chain.request());
- return originalResponse.newBuilder()
- .body(new ProgressResponseBody(originalResponse.body(), progressListener))
- .build();
- }
- });
- }
-
- String[] localVarAuthNames = new String[] { };
- return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call getWebhookSubscriptionsByOrgValidateBeforeCall(String organizationId, String productId, String eventType, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
-
- // verify the required parameter 'organizationId' is set
- if (organizationId == null) {
- logger.error("Missing the required parameter 'organizationId' when calling getWebhookSubscriptionsByOrg(Async)");
- throw new ApiException("Missing the required parameter 'organizationId' when calling getWebhookSubscriptionsByOrg(Async)");
- }
-
- // verify the required parameter 'productId' is set
- if (productId == null) {
- logger.error("Missing the required parameter 'productId' when calling getWebhookSubscriptionsByOrg(Async)");
- throw new ApiException("Missing the required parameter 'productId' when calling getWebhookSubscriptionsByOrg(Async)");
- }
-
- // verify the required parameter 'eventType' is set
- if (eventType == null) {
- logger.error("Missing the required parameter 'eventType' when calling getWebhookSubscriptionsByOrg(Async)");
- throw new ApiException("Missing the required parameter 'eventType' when calling getWebhookSubscriptionsByOrg(Async)");
- }
-
-
- okhttp3.Call call = getWebhookSubscriptionsByOrgCall(organizationId, productId, eventType, progressListener, progressRequestListener);
- return call;
-
-
-
-
-
- }
-
- /**
- * Get Details On All Created Webhooks
- * Retrieve a list of all previously created webhooks.
- * DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
- * @param organizationId The Organization Identifier. (required)
- * @param productId The Product Identifier. (required)
- * @param eventType The Event Type. (required)
- * @return List<InlineResponse2003>
+ * @param webhookId The Webhook Identifier. (required)
+ * @return InlineResponse2014
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public List getWebhookSubscriptionsByOrg(String organizationId, String productId, String eventType) throws ApiException {
- logger.info("CALL TO METHOD 'getWebhookSubscriptionsByOrg' STARTED");
- ApiResponse> resp = getWebhookSubscriptionsByOrgWithHttpInfo(organizationId, productId, eventType);
- logger.info("CALL TO METHOD 'getWebhookSubscriptionsByOrg' ENDED");
+ public InlineResponse2014 notificationSubscriptionsV1WebhooksWebhookIdPost(String webhookId) throws ApiException {
+ logger.info("CALL TO METHOD 'notificationSubscriptionsV1WebhooksWebhookIdPost' STARTED");
+ ApiResponse resp = notificationSubscriptionsV1WebhooksWebhookIdPostWithHttpInfo(webhookId);
+ logger.info("CALL TO METHOD 'notificationSubscriptionsV1WebhooksWebhookIdPost' ENDED");
return resp.getData();
}
/**
- * Get Details On All Created Webhooks
- * Retrieve a list of all previously created webhooks.
- * @param organizationId The Organization Identifier. (required)
- * @param productId The Product Identifier. (required)
- * @param eventType The Event Type. (required)
- * @return ApiResponse<List<InlineResponse2003>>
+ * Test a Webhook Configuration
+ * Test the webhook configuration by sending a sample webhook. Calling this endpoint sends a sample webhook to the endpoint identified in the user's subscription. It will contain sample values for the product & eventType based on values present in your subscription along with a sample message in the payload. Based on the webhook response users can make any necessary modifications or rest assured knowing their setup is configured correctly.
+ * @param webhookId The Webhook Identifier. (required)
+ * @return ApiResponse<InlineResponse2014>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
- public ApiResponse> getWebhookSubscriptionsByOrgWithHttpInfo(String organizationId, String productId, String eventType) throws ApiException {
+ public ApiResponse notificationSubscriptionsV1WebhooksWebhookIdPostWithHttpInfo(String webhookId) throws ApiException {
this.apiClient.setComputationStartTime(System.nanoTime());
- okhttp3.Call call = getWebhookSubscriptionsByOrgValidateBeforeCall(organizationId, productId, eventType, null, null);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ okhttp3.Call call = notificationSubscriptionsV1WebhooksWebhookIdPostValidateBeforeCall(webhookId, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
/**
- * Get Details On All Created Webhooks (asynchronously)
- * Retrieve a list of all previously created webhooks.
- * @param organizationId The Organization Identifier. (required)
- * @param productId The Product Identifier. (required)
- * @param eventType The Event Type. (required)
+ * Test a Webhook Configuration (asynchronously)
+ * Test the webhook configuration by sending a sample webhook. Calling this endpoint sends a sample webhook to the endpoint identified in the user's subscription. It will contain sample values for the product & eventType based on values present in your subscription along with a sample message in the payload. Based on the webhook response users can make any necessary modifications or rest assured knowing their setup is configured correctly.
+ * @param webhookId The Webhook Identifier. (required)
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
*/
- public okhttp3.Call getWebhookSubscriptionsByOrgAsync(String organizationId, String productId, String eventType, final ApiCallback> callback) throws ApiException {
+ public okhttp3.Call notificationSubscriptionsV1WebhooksWebhookIdPostAsync(String webhookId, final ApiCallback callback) throws ApiException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -522,8 +206,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
};
}
- okhttp3.Call call = getWebhookSubscriptionsByOrgValidateBeforeCall(organizationId, productId, eventType, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ okhttp3.Call call = notificationSubscriptionsV1WebhooksWebhookIdPostValidateBeforeCall(webhookId, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -568,7 +252,7 @@ public okhttp3.Call saveAsymEgressKeyCall(String vCSenderOrganizationId, String
Map localVarFormParams = new HashMap();
final String[] localVarAccepts = {
- "application/json;charset=utf-8"
+ "application/hal+json;charset=utf-8"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
@@ -699,147 +383,4 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
- /**
- * Build call for updateWebhookSubscription
- * @param webhookId The Webhook Identifier. (required)
- * @param updateWebhookRequest The webhook payload or changes to apply. (optional)
- * @param progressListener Progress listener
- * @param progressRequestListener Progress request listener
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- */
- public okhttp3.Call updateWebhookSubscriptionCall(String webhookId, UpdateWebhookRequest updateWebhookRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
- SdkTracker sdkTracker = new SdkTracker();
- Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updateWebhookRequest, UpdateWebhookRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
-
- boolean isMLESupportedByCybsForApi = false;
- if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "updateWebhookSubscription,updateWebhookSubscriptionAsync,updateWebhookSubscriptionWithHttpInfo,updateWebhookSubscriptionCall")) {
- try {
- localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody);
- } catch (MLEException e) {
- logger.error("Failed to encrypt request body {}", e.getMessage(), e);
- throw new ApiException("Failed to encrypt request body : " + e.getMessage());
- }
- }
-
- // create path and map variables
- String localVarPath = "/notification-subscriptions/v1/webhooks/{webhookId}"
- .replaceAll("\\{" + "webhookId" + "\\}", apiClient.escapeString(webhookId.toString()));
-
- List localVarQueryParams = new ArrayList();
-
- Map localVarHeaderParams = new HashMap();
-
- Map localVarFormParams = new HashMap();
-
- final String[] localVarAccepts = {
- "application/json;charset=utf-8"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
-
- final String[] localVarContentTypes = {
- "application/json;charset=utf-8"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- if(progressListener != null) {
- apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
- @Override
- public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
- okhttp3.Response originalResponse = chain.proceed(chain.request());
- return originalResponse.newBuilder()
- .body(new ProgressResponseBody(originalResponse.body(), progressListener))
- .build();
- }
- });
- }
-
- String[] localVarAuthNames = new String[] { };
- return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call updateWebhookSubscriptionValidateBeforeCall(String webhookId, UpdateWebhookRequest updateWebhookRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
-
- // verify the required parameter 'webhookId' is set
- if (webhookId == null) {
- logger.error("Missing the required parameter 'webhookId' when calling updateWebhookSubscription(Async)");
- throw new ApiException("Missing the required parameter 'webhookId' when calling updateWebhookSubscription(Async)");
- }
-
-
- okhttp3.Call call = updateWebhookSubscriptionCall(webhookId, updateWebhookRequest, progressListener, progressRequestListener);
- return call;
-
-
-
-
-
- }
-
- /**
- * Update a Webhook Subscription
- * Update the webhook subscription using PATCH.
- * DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
- * @param webhookId The Webhook Identifier. (required)
- * @param updateWebhookRequest The webhook payload or changes to apply. (optional)
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public void updateWebhookSubscription(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException {
- logger.info("CALL TO METHOD 'updateWebhookSubscription' STARTED");
- updateWebhookSubscriptionWithHttpInfo(webhookId, updateWebhookRequest);
-
- }
-
- /**
- * Update a Webhook Subscription
- * Update the webhook subscription using PATCH.
- * @param webhookId The Webhook Identifier. (required)
- * @param updateWebhookRequest The webhook payload or changes to apply. (optional)
- * @return ApiResponse<Void>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public ApiResponse updateWebhookSubscriptionWithHttpInfo(String webhookId, UpdateWebhookRequest updateWebhookRequest) throws ApiException {
- this.apiClient.setComputationStartTime(System.nanoTime());
- okhttp3.Call call = updateWebhookSubscriptionValidateBeforeCall(webhookId, updateWebhookRequest, null, null);
- return apiClient.execute(call);
- }
-
- /**
- * Update a Webhook Subscription (asynchronously)
- * Update the webhook subscription using PATCH.
- * @param webhookId The Webhook Identifier. (required)
- * @param updateWebhookRequest The webhook payload or changes to apply. (optional)
- * @param callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- */
- public okhttp3.Call updateWebhookSubscriptionAsync(String webhookId, UpdateWebhookRequest updateWebhookRequest, final ApiCallback callback) throws ApiException {
-
- this.apiClient.setComputationStartTime(System.nanoTime());
- ProgressResponseBody.ProgressListener progressListener = null;
- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
-
- if (callback != null) {
- progressListener = new ProgressResponseBody.ProgressListener() {
- @Override
- public void update(long bytesRead, long contentLength, boolean done) {
- callback.onDownloadProgress(bytesRead, contentLength, done);
- }
- };
-
- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
- @Override
- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
- callback.onUploadProgress(bytesWritten, contentLength, done);
- }
- };
- }
-
- okhttp3.Call call = updateWebhookSubscriptionValidateBeforeCall(webhookId, updateWebhookRequest, progressListener, progressRequestListener);
- apiClient.executeAsync(call, callback);
- return call;
- }
}
diff --git a/src/main/java/Api/ReplayWebhooksApi.java b/src/main/java/Api/ReplayWebhooksApi.java
deleted file mode 100644
index 3ea140594..000000000
--- a/src/main/java/Api/ReplayWebhooksApi.java
+++ /dev/null
@@ -1,209 +0,0 @@
-/*
- * CyberSource Merged Spec
- * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
- *
- * OpenAPI spec version: 0.0.1
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-
-package Api;
-
-import Invokers.ApiCallback;
-import Invokers.ApiClient;
-import Invokers.ApiException;
-import Invokers.ApiResponse;
-import Invokers.Configuration;
-import Invokers.Pair;
-import Invokers.ProgressRequestBody;
-import Invokers.ProgressResponseBody;
-
-import com.google.gson.reflect.TypeToken;
-
-import java.io.IOException;
-import java.io.InputStream;
-
-
-import Model.ReplayWebhooksRequest;
-
-import java.lang.reflect.Type;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-
-import org.apache.logging.log4j.LogManager;
-import org.apache.logging.log4j.Logger;
-import utilities.tracking.SdkTracker;
-import com.cybersource.authsdk.util.mle.MLEUtility;
-import com.cybersource.authsdk.util.mle.MLEException;
-
-public class ReplayWebhooksApi {
- private static Logger logger = LogManager.getLogger(ReplayWebhooksApi.class);
-
- private ApiClient apiClient;
-
- public ReplayWebhooksApi() {
- this(Configuration.getDefaultApiClient());
- }
-
- public ReplayWebhooksApi(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- public ApiClient getApiClient() {
- return apiClient;
- }
-
- public void setApiClient(ApiClient apiClient) {
- this.apiClient = apiClient;
- }
-
- /**
- * Build call for replayPreviousWebhooks
- * @param webhookId The webhook uuid identifier. (required)
- * @param replayWebhooksRequest The request query (optional)
- * @param progressListener Progress listener
- * @param progressRequestListener Progress request listener
- * @return Call to execute
- * @throws ApiException If fail to serialize the request body object
- */
- public okhttp3.Call replayPreviousWebhooksCall(String webhookId, ReplayWebhooksRequest replayWebhooksRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
- SdkTracker sdkTracker = new SdkTracker();
- Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(replayWebhooksRequest, ReplayWebhooksRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
-
- boolean isMLESupportedByCybsForApi = false;
- if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "replayPreviousWebhooks,replayPreviousWebhooksAsync,replayPreviousWebhooksWithHttpInfo,replayPreviousWebhooksCall")) {
- try {
- localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody);
- } catch (MLEException e) {
- logger.error("Failed to encrypt request body {}", e.getMessage(), e);
- throw new ApiException("Failed to encrypt request body : " + e.getMessage());
- }
- }
-
- // create path and map variables
- String localVarPath = "/nrtf/v1/webhooks/{webhookId}/replays"
- .replaceAll("\\{" + "webhookId" + "\\}", apiClient.escapeString(webhookId.toString()));
-
- List localVarQueryParams = new ArrayList();
-
- Map localVarHeaderParams = new HashMap();
-
- Map localVarFormParams = new HashMap();
-
- final String[] localVarAccepts = {
- "application/json;charset=utf-8"
- };
- final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
- if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
-
- final String[] localVarContentTypes = {
- "application/json;charset=utf-8"
- };
- final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
- localVarHeaderParams.put("Content-Type", localVarContentType);
-
- if(progressListener != null) {
- apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
- @Override
- public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
- okhttp3.Response originalResponse = chain.proceed(chain.request());
- return originalResponse.newBuilder()
- .body(new ProgressResponseBody(originalResponse.body(), progressListener))
- .build();
- }
- });
- }
-
- String[] localVarAuthNames = new String[] { };
- return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
- }
-
- @SuppressWarnings("rawtypes")
- private okhttp3.Call replayPreviousWebhooksValidateBeforeCall(String webhookId, ReplayWebhooksRequest replayWebhooksRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
-
- // verify the required parameter 'webhookId' is set
- if (webhookId == null) {
- logger.error("Missing the required parameter 'webhookId' when calling replayPreviousWebhooks(Async)");
- throw new ApiException("Missing the required parameter 'webhookId' when calling replayPreviousWebhooks(Async)");
- }
-
-
- okhttp3.Call call = replayPreviousWebhooksCall(webhookId, replayWebhooksRequest, progressListener, progressRequestListener);
- return call;
-
-
-
-
-
- }
-
- /**
- * Replay Previous Webhooks
- * Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
- * DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
- * @param webhookId The webhook uuid identifier. (required)
- * @param replayWebhooksRequest The request query (optional)
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public void replayPreviousWebhooks(String webhookId, ReplayWebhooksRequest replayWebhooksRequest) throws ApiException {
- logger.info("CALL TO METHOD 'replayPreviousWebhooks' STARTED");
- replayPreviousWebhooksWithHttpInfo(webhookId, replayWebhooksRequest);
-
- }
-
- /**
- * Replay Previous Webhooks
- * Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
- * @param webhookId The webhook uuid identifier. (required)
- * @param replayWebhooksRequest The request query (optional)
- * @return ApiResponse<Void>
- * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
- */
- public ApiResponse replayPreviousWebhooksWithHttpInfo(String webhookId, ReplayWebhooksRequest replayWebhooksRequest) throws ApiException {
- this.apiClient.setComputationStartTime(System.nanoTime());
- okhttp3.Call call = replayPreviousWebhooksValidateBeforeCall(webhookId, replayWebhooksRequest, null, null);
- return apiClient.execute(call);
- }
-
- /**
- * Replay Previous Webhooks (asynchronously)
- * Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
- * @param webhookId The webhook uuid identifier. (required)
- * @param replayWebhooksRequest The request query (optional)
- * @param callback The callback to be executed when the API call finishes
- * @return The request call
- * @throws ApiException If fail to process the API call, e.g. serializing the request body object
- */
- public okhttp3.Call replayPreviousWebhooksAsync(String webhookId, ReplayWebhooksRequest replayWebhooksRequest, final ApiCallback callback) throws ApiException {
-
- this.apiClient.setComputationStartTime(System.nanoTime());
- ProgressResponseBody.ProgressListener progressListener = null;
- ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
-
- if (callback != null) {
- progressListener = new ProgressResponseBody.ProgressListener() {
- @Override
- public void update(long bytesRead, long contentLength, boolean done) {
- callback.onDownloadProgress(bytesRead, contentLength, done);
- }
- };
-
- progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
- @Override
- public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
- callback.onUploadProgress(bytesWritten, contentLength, done);
- }
- };
- }
-
- okhttp3.Call call = replayPreviousWebhooksValidateBeforeCall(webhookId, replayWebhooksRequest, progressListener, progressRequestListener);
- apiClient.executeAsync(call, callback);
- return call;
- }
-}
diff --git a/src/main/java/Api/TransactionBatchesApi.java b/src/main/java/Api/TransactionBatchesApi.java
index f4fbbee51..a9ce5ed87 100644
--- a/src/main/java/Api/TransactionBatchesApi.java
+++ b/src/main/java/Api/TransactionBatchesApi.java
@@ -29,7 +29,9 @@
import org.joda.time.DateTime;
+import java.io.File;
import org.joda.time.LocalDate;
+import Model.Model400UploadBatchFileResponse;
import Model.PtsV1TransactionBatchesGet200Response;
import Model.PtsV1TransactionBatchesGet400Response;
import Model.PtsV1TransactionBatchesGet500Response;
@@ -524,4 +526,146 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
+ /**
+ * Build call for uploadTransactionBatch
+ * @param file The file to upload. (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public okhttp3.Call uploadTransactionBatchCall(File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ SdkTracker sdkTracker = new SdkTracker();
+ Object localVarPostBody = null;
+ if ("POST".equalsIgnoreCase("POST")) {
+ localVarPostBody = "{}";
+ }
+
+ boolean isMLESupportedByCybsForApi = false;
+ if (MLEUtility.checkIsMLEForAPI(apiClient.merchantConfig, isMLESupportedByCybsForApi, "uploadTransactionBatch,uploadTransactionBatchAsync,uploadTransactionBatchWithHttpInfo,uploadTransactionBatchCall")) {
+ try {
+ localVarPostBody = MLEUtility.encryptRequestPayload(apiClient.merchantConfig, localVarPostBody);
+ } catch (MLEException e) {
+ logger.error("Failed to encrypt request body {}", e.getMessage(), e);
+ throw new ApiException("Failed to encrypt request body : " + e.getMessage());
+ }
+ }
+
+ // create path and map variables
+ String localVarPath = "/pts/v1/transaction-batch-upload";
+
+ List localVarQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+ if (file != null)
+ localVarFormParams.put("file", file);
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "multipart/form-data"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
+ @Override
+ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
+ okhttp3.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call uploadTransactionBatchValidateBeforeCall(File file, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+
+ // verify the required parameter 'file' is set
+ if (file == null) {
+ logger.error("Missing the required parameter 'file' when calling uploadTransactionBatch(Async)");
+ throw new ApiException("Missing the required parameter 'file' when calling uploadTransactionBatch(Async)");
+ }
+
+
+ okhttp3.Call call = uploadTransactionBatchCall(file, progressListener, progressRequestListener);
+ return call;
+
+
+
+
+
+ }
+
+ /**
+ * Upload a Batch File
+ * This endpoint enables the upload of a batch file containing transactions for processing.
+ * @param file The file to upload. (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public void uploadTransactionBatch(File file) throws ApiException {
+ logger.info("CALL TO METHOD 'uploadTransactionBatch' STARTED");
+ uploadTransactionBatchWithHttpInfo(file);
+
+ }
+
+ /**
+ * Upload a Batch File
+ * This endpoint enables the upload of a batch file containing transactions for processing.
+ * @param file The file to upload. (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse uploadTransactionBatchWithHttpInfo(File file) throws ApiException {
+ this.apiClient.setComputationStartTime(System.nanoTime());
+ okhttp3.Call call = uploadTransactionBatchValidateBeforeCall(file, null, null);
+ return apiClient.execute(call);
+ }
+
+ /**
+ * Upload a Batch File (asynchronously)
+ * This endpoint enables the upload of a batch file containing transactions for processing.
+ * @param file The file to upload. (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public okhttp3.Call uploadTransactionBatchAsync(File file, final ApiCallback callback) throws ApiException {
+
+ this.apiClient.setComputationStartTime(System.nanoTime());
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ okhttp3.Call call = uploadTransactionBatchValidateBeforeCall(file, progressListener, progressRequestListener);
+ apiClient.executeAsync(call, callback);
+ return call;
+ }
}
diff --git a/src/main/java/Invokers/ApiClient.java b/src/main/java/Invokers/ApiClient.java
index 16548d116..b7d6a6bb8 100644
--- a/src/main/java/Invokers/ApiClient.java
+++ b/src/main/java/Invokers/ApiClient.java
@@ -57,6 +57,7 @@
import okhttp3.internal.http.HttpMethod;
import okhttp3.logging.HttpLoggingInterceptor;
import okhttp3.logging.HttpLoggingInterceptor.Level;
+import okio.Buffer;
import okio.BufferedSink;
import okio.Okio;
import org.bouncycastle.jce.provider.BouncyCastleProvider;
@@ -516,7 +517,6 @@ public Date parseDate(String str) {
*
* When lenientDatetimeFormat is enabled, the following ISO 8601 datetime
* formats are supported:
- *
*
* - 2015-08-16T08:20:05Z
* - 2015-8-16T8:20:05Z
@@ -1090,10 +1090,10 @@ public T deserialize(Response response, Type returnType) throws ApiException
public RequestBody serialize(Object obj, String contentType) throws ApiException {
if (obj instanceof byte[]) {
// Binary (byte array) body parameter support.
- return RequestBody.create(MediaType.parse(contentType), (byte[]) obj);
+ return RequestBody.create((byte[]) obj, MediaType.parse(contentType));
} else if (obj instanceof File) {
// File body parameter support.
- return RequestBody.create(MediaType.parse(contentType), (File) obj);
+ return RequestBody.create((File) obj, MediaType.parse(contentType));
} else if (isJsonMime(contentType)) {
String content;
if (obj != null) {
@@ -1101,7 +1101,7 @@ public RequestBody serialize(Object obj, String contentType) throws ApiException
} else {
content = null;
}
- return RequestBody.create(MediaType.parse(contentType), content);
+ return RequestBody.create(content, MediaType.parse(contentType));
} else {
logger.error("ApiException : Content type \"" + contentType + "\" is not supported");
throw new ApiException("Content type \"" + contentType + "\" is not supported");
@@ -1339,8 +1339,15 @@ public Call buildCall(String path, String method, List queryParams, Object
}
}
}
-
- callAuthenticationHeader(method, path, body, queryParams, requestHeaderMap);
+
+ String contentType = headerParams.get("Content-Type");
+ // ensuring a default content type
+ if (contentType == null) {
+ contentType = "application/json";
+ }
+ RequestBody requestbody = createRequestBody(method, body, formParams, contentType);
+
+ callAuthenticationHeader(method, path, requestbody, queryParams, requestHeaderMap);
if (merchantConfig.isEnableClientCert()) {
addClientCertToKeyStore();
@@ -1357,17 +1364,27 @@ public Call buildCall(String path, String method, List queryParams, Object
logger.info("Request Header Parameters:\n{}", new PrettyPrintingMap(headerParams));
- Request request = buildRequest(path, method, queryParams, body, headerParams, formParams, authNames,
+ Request request = buildRequest(path, method, queryParams, requestbody, headerParams, formParams, authNames,
progressRequestListener);
return httpClient.newCall(request);
}
+
+ private String getRequestContentSendOverNetwork(RequestBody requestBody) throws IOException {
+ if(requestBody!=null) {
+ Buffer buffer = new Buffer();
+ requestBody.writeTo(buffer);
+ String payload = buffer.readUtf8();
+ return payload;
+ }
+ return null;
+ }
/*
* Purpose : This function calling the Authentication and making an Auth Header
*
*/
- public void callAuthenticationHeader(String method, String path, Object body, List queryParams, Map requestHeaderMap) {
+ public void callAuthenticationHeader(String method, String path, RequestBody reqBody, List queryParams, Map requestHeaderMap) {
try {
String requestTarget = null;
@@ -1399,14 +1416,7 @@ public void callAuthenticationHeader(String method, String path, Object body, Li
Authorization authorization = new Authorization();
- String requestBody = null;
- if ((method.equalsIgnoreCase("POST") || method.equalsIgnoreCase("PUT") ||
- method.equalsIgnoreCase("PATCH"))
- && body.equals("{}")) {
- requestBody = "{}";
- } else {
- requestBody = json.serialize(body);
- }
+ String requestBody = getRequestContentSendOverNetwork(reqBody);
logger.debug("HTTP Request Body:\n" + requestBody);
boolean isMerchantDetails = merchantConfig.validateMerchantDetails(method);
@@ -1443,7 +1453,7 @@ public void callAuthenticationHeader(String method, String path, Object body, Li
requestHeaderMap.put("v-c-client-id", "cybs-rest-sdk-java-" + versionInfo);
}
- } catch (ConfigException e) {
+ } catch (ConfigException | IOException e) {
logger.error(e.getMessage());
}
@@ -1456,7 +1466,7 @@ public void callAuthenticationHeader(String method, String path, Object body, Li
* @param method The request method, one of "GET", "HEAD",
* "OPTIONS", "POST", "PUT", "PATCH" and "DELETE"
* @param queryParams The query parameters
- * @param body The request body object
+ * @param reqBody The request body object
* @param headerParams The header parameters
* @param formParams The form parameters
* @param authNames The authentications to apply
@@ -1465,7 +1475,7 @@ public void callAuthenticationHeader(String method, String path, Object body, Li
* @throws ApiException If fail to serialize the request body object
*/
@SuppressWarnings({ "unchecked" })
- public Request buildRequest(String path, String method, List queryParams, Object body,
+ public Request buildRequest(String path, String method, List queryParams, RequestBody reqBody,
Map headerParams, Map formParams, String[] authNames,
ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
updateParamsForAuth(authNames, queryParams, headerParams);
@@ -1474,12 +1484,20 @@ public Request buildRequest(String path, String method, List queryParams,
final Request.Builder reqBuilder = new Request.Builder().url(url);
processHeaderParams(headerParams, reqBuilder);
- String contentType = headerParams.get("Content-Type");
- // ensuring a default content type
- if (contentType == null) {
- contentType = "application/json";
+ Request request = null;
+
+ if (progressRequestListener != null && reqBody != null) {
+ ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, progressRequestListener);
+ request = reqBuilder.method(method, progressRequestBody).build();
+ } else {
+ request = reqBuilder.method(method, reqBody).build();
}
+ return request;
+ }
+
+ private RequestBody createRequestBody(String method, Object body, Map formParams,
+ String contentType) throws ApiException {
RequestBody reqBody;
if (!HttpMethod.permitsRequestBody(method)) {
reqBody = null;
@@ -1497,7 +1515,7 @@ public Request buildRequest(String path, String method, List queryParams,
reqBody = null;
} else {
// use an empty request body (for POST, PUT and PATCH)
- reqBody = RequestBody.create(MediaType.parse(contentType), "");
+ reqBody = RequestBody.create("",MediaType.parse(contentType));
}
} else {
if (body.equals("{}")) {
@@ -1506,17 +1524,7 @@ public Request buildRequest(String path, String method, List queryParams,
reqBody = serialize(body, contentType);
}
}
-
- Request request = null;
-
- if (progressRequestListener != null && reqBody != null) {
- ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, progressRequestListener);
- request = reqBuilder.method(method, progressRequestBody).build();
- } else {
- request = reqBuilder.method(method, reqBody).build();
- }
-
- return request;
+ return reqBody;
}
/**
@@ -1627,10 +1635,10 @@ public RequestBody buildRequestBodyMultipart(Map formParams) {
Headers partHeaders = Headers.of("Content-Disposition",
"form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\"");
MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file));
- mpBuilder.addPart(partHeaders, RequestBody.create(mediaType, file));
+ mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType));
} else {
Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"");
- mpBuilder.addPart(partHeaders, RequestBody.create(null, parameterToString(param.getValue())));
+ mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null));
}
}
return mpBuilder.build();
diff --git a/src/main/java/Invokers/ApiResponse.java b/src/main/java/Invokers/ApiResponse.java
index de9e19eff..7485a5064 100644
--- a/src/main/java/Invokers/ApiResponse.java
+++ b/src/main/java/Invokers/ApiResponse.java
@@ -30,6 +30,7 @@ public class ApiResponse {
/**
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
+ * @param message The status message of HTTP response
*/
public ApiResponse(int statusCode, Map> headers, String message) {
this(statusCode, headers, message, null);
@@ -38,7 +39,8 @@ public ApiResponse(int statusCode, Map> headers, String mes
/**
* @param statusCode The status code of HTTP response
* @param headers The headers of HTTP response
- * @param data The object deserialized from response bod
+ * @param message The status message of HTTP response
+ * @param data The object deserialized from response body
*/
public ApiResponse(int statusCode, Map> headers, String message, T data) {
this.statusCode = statusCode;
diff --git a/src/main/java/Model/CreateWebhookRequest.java b/src/main/java/Model/CreateWebhookRequest.java
deleted file mode 100644
index f7b72fdbd..000000000
--- a/src/main/java/Model/CreateWebhookRequest.java
+++ /dev/null
@@ -1,313 +0,0 @@
-/*
- * CyberSource Merged Spec
- * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
- *
- * OpenAPI spec version: 0.0.1
- *
- *
- * NOTE: This class is auto generated by the swagger code generator program.
- * https://github.com/swagger-api/swagger-codegen.git
- * Do not edit the class manually.
- */
-
-
-package Model;
-
-import java.util.Objects;
-import java.util.Arrays;
-import Model.Notificationsubscriptionsv1webhooksRetryPolicy;
-import Model.Notificationsubscriptionsv1webhooksSecurityPolicy1;
-import com.google.gson.TypeAdapter;
-import com.google.gson.annotations.JsonAdapter;
-import com.google.gson.annotations.SerializedName;
-import com.google.gson.stream.JsonReader;
-import com.google.gson.stream.JsonWriter;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-/**
- * CreateWebhookRequest
- */
-
-public class CreateWebhookRequest {
- @SerializedName("name")
- private String name = null;
-
- @SerializedName("description")
- private String description = null;
-
- @SerializedName("organizationId")
- private String organizationId = null;
-
- @SerializedName("productId")
- private String productId = null;
-
- @SerializedName("eventTypes")
- private List eventTypes = null;
-
- @SerializedName("webhookUrl")
- private String webhookUrl = null;
-
- @SerializedName("healthCheckUrl")
- private String healthCheckUrl = null;
-
- @SerializedName("notificationScope")
- private String notificationScope = null;
-
- @SerializedName("retryPolicy")
- private Notificationsubscriptionsv1webhooksRetryPolicy retryPolicy = null;
-
- @SerializedName("securityPolicy")
- private Notificationsubscriptionsv1webhooksSecurityPolicy1 securityPolicy = null;
-
- public CreateWebhookRequest name(String name) {
- this.name = name;
- return this;
- }
-
- /**
- * Client friendly webhook name.
- * @return name
- **/
- @ApiModelProperty(value = "Client friendly webhook name.")
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public CreateWebhookRequest description(String description) {
- this.description = description;
- return this;
- }
-
- /**
- * Client friendly webhook description.
- * @return description
- **/
- @ApiModelProperty(value = "Client friendly webhook description.")
- public String getDescription() {
- return description;
- }
-
- public void setDescription(String description) {
- this.description = description;
- }
-
- public CreateWebhookRequest organizationId(String organizationId) {
- this.organizationId = organizationId;
- return this;
- }
-
- /**
- * Organization Identifier (OrgId) or Merchant Identifier (MID).
- * @return organizationId
- **/
- @ApiModelProperty(value = "Organization Identifier (OrgId) or Merchant Identifier (MID).")
- public String getOrganizationId() {
- return organizationId;
- }
-
- public void setOrganizationId(String organizationId) {
- this.organizationId = organizationId;
- }
-
- public CreateWebhookRequest productId(String productId) {
- this.productId = productId;
- return this;
- }
-
- /**
- * To see the valid productId and eventTypes, call the \"Create and Manage Webhooks - Retrieve a list of event types\" endpoint.
- * @return productId
- **/
- @ApiModelProperty(value = "To see the valid productId and eventTypes, call the \"Create and Manage Webhooks - Retrieve a list of event types\" endpoint.")
- public String getProductId() {
- return productId;
- }
-
- public void setProductId(String productId) {
- this.productId = productId;
- }
-
- public CreateWebhookRequest eventTypes(List eventTypes) {
- this.eventTypes = eventTypes;
- return this;
- }
-
- public CreateWebhookRequest addEventTypesItem(String eventTypesItem) {
- if (this.eventTypes == null) {
- this.eventTypes = new ArrayList();
- }
- this.eventTypes.add(eventTypesItem);
- return this;
- }
-
- /**
- * Array of the different events for a given product id.
- * @return eventTypes
- **/
- @ApiModelProperty(value = "Array of the different events for a given product id.")
- public List getEventTypes() {
- return eventTypes;
- }
-
- public void setEventTypes(List eventTypes) {
- this.eventTypes = eventTypes;
- }
-
- public CreateWebhookRequest webhookUrl(String webhookUrl) {
- this.webhookUrl = webhookUrl;
- return this;
- }
-
- /**
- * The client's endpoint (URL) to receive webhooks.
- * @return webhookUrl
- **/
- @ApiModelProperty(value = "The client's endpoint (URL) to receive webhooks.")
- public String getWebhookUrl() {
- return webhookUrl;
- }
-
- public void setWebhookUrl(String webhookUrl) {
- this.webhookUrl = webhookUrl;
- }
-
- public CreateWebhookRequest healthCheckUrl(String healthCheckUrl) {
- this.healthCheckUrl = healthCheckUrl;
- return this;
- }
-
- /**
- * The client's health check endpoint (URL). This should be as close as possible to the actual webhookUrl. If the user does not provide the health check URL, it is the user's responsibility to re-activate the webhook if it is deactivated by calling the test endpoint.
- * @return healthCheckUrl
- **/
- @ApiModelProperty(value = "The client's health check endpoint (URL). This should be as close as possible to the actual webhookUrl. If the user does not provide the health check URL, it is the user's responsibility to re-activate the webhook if it is deactivated by calling the test endpoint. ")
- public String getHealthCheckUrl() {
- return healthCheckUrl;
- }
-
- public void setHealthCheckUrl(String healthCheckUrl) {
- this.healthCheckUrl = healthCheckUrl;
- }
-
- public CreateWebhookRequest notificationScope(String notificationScope) {
- this.notificationScope = notificationScope;
- return this;
- }
-
- /**
- * The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. 3. CUSTOM The Webhook is used to deliver webhooks for the OrgIds (or MiDs) explicitly listed in scopeData field.
- * @return notificationScope
- **/
- @ApiModelProperty(value = "The webhook scope. 1. SELF The Webhook is used to deliver webhooks for only this Organization (or Merchant). 2. DESCENDANTS The Webhook is used to deliver webhooks for this Organization and its children. 3. CUSTOM The Webhook is used to deliver webhooks for the OrgIds (or MiDs) explicitly listed in scopeData field. ")
- public String getNotificationScope() {
- return notificationScope;
- }
-
- public void setNotificationScope(String notificationScope) {
- this.notificationScope = notificationScope;
- }
-
- public CreateWebhookRequest retryPolicy(Notificationsubscriptionsv1webhooksRetryPolicy retryPolicy) {
- this.retryPolicy = retryPolicy;
- return this;
- }
-
- /**
- * Get retryPolicy
- * @return retryPolicy
- **/
- @ApiModelProperty(value = "")
- public Notificationsubscriptionsv1webhooksRetryPolicy getRetryPolicy() {
- return retryPolicy;
- }
-
- public void setRetryPolicy(Notificationsubscriptionsv1webhooksRetryPolicy retryPolicy) {
- this.retryPolicy = retryPolicy;
- }
-
- public CreateWebhookRequest securityPolicy(Notificationsubscriptionsv1webhooksSecurityPolicy1 securityPolicy) {
- this.securityPolicy = securityPolicy;
- return this;
- }
-
- /**
- * Get securityPolicy
- * @return securityPolicy
- **/
- @ApiModelProperty(value = "")
- public Notificationsubscriptionsv1webhooksSecurityPolicy1 getSecurityPolicy() {
- return securityPolicy;
- }
-
- public void setSecurityPolicy(Notificationsubscriptionsv1webhooksSecurityPolicy1 securityPolicy) {
- this.securityPolicy = securityPolicy;
- }
-
-
- @Override
- public boolean equals(java.lang.Object o) {
- if (this == o) {
- return true;
- }
- if (o == null || getClass() != o.getClass()) {
- return false;
- }
- CreateWebhookRequest createWebhookRequest = (CreateWebhookRequest) o;
- return Objects.equals(this.name, createWebhookRequest.name) &&
- Objects.equals(this.description, createWebhookRequest.description) &&
- Objects.equals(this.organizationId, createWebhookRequest.organizationId) &&
- Objects.equals(this.productId, createWebhookRequest.productId) &&
- Objects.equals(this.eventTypes, createWebhookRequest.eventTypes) &&
- Objects.equals(this.webhookUrl, createWebhookRequest.webhookUrl) &&
- Objects.equals(this.healthCheckUrl, createWebhookRequest.healthCheckUrl) &&
- Objects.equals(this.notificationScope, createWebhookRequest.notificationScope) &&
- Objects.equals(this.retryPolicy, createWebhookRequest.retryPolicy) &&
- Objects.equals(this.securityPolicy, createWebhookRequest.securityPolicy);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(name, description, organizationId, productId, eventTypes, webhookUrl, healthCheckUrl, notificationScope, retryPolicy, securityPolicy);
- }
-
-
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder();
- sb.append("class CreateWebhookRequest {\n");
-
- if (name != null) sb.append(" name: ").append(toIndentedString(name)).append("\n");
- if (description != null) sb.append(" description: ").append(toIndentedString(description)).append("\n");
- if (organizationId != null) sb.append(" organizationId: ").append(toIndentedString(organizationId)).append("\n");
- if (productId != null) sb.append(" productId: ").append(toIndentedString(productId)).append("\n");
- if (eventTypes != null) sb.append(" eventTypes: ").append(toIndentedString(eventTypes)).append("\n");
- if (webhookUrl != null) sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n");
- if (healthCheckUrl != null) sb.append(" healthCheckUrl: ").append(toIndentedString(healthCheckUrl)).append("\n");
- if (notificationScope != null) sb.append(" notificationScope: ").append(toIndentedString(notificationScope)).append("\n");
- if (retryPolicy != null) sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n");
- if (securityPolicy != null) sb.append(" securityPolicy: ").append(toIndentedString(securityPolicy)).append("\n");
- sb.append("}");
- return sb.toString();
- }
-
- /**
- * Convert the given object to string with each line indented by 4 spaces
- * (except the first line).
- */
- private String toIndentedString(java.lang.Object o) {
- if (o == null) {
- // return "null";
- }
- return o.toString().replace("\n", "\n ");
- }
-
-}
-
diff --git a/src/main/java/Model/GenerateUnifiedCheckoutCaptureContextRequest.java b/src/main/java/Model/GenerateUnifiedCheckoutCaptureContextRequest.java
index 73965994d..ee4496406 100644
--- a/src/main/java/Model/GenerateUnifiedCheckoutCaptureContextRequest.java
+++ b/src/main/java/Model/GenerateUnifiedCheckoutCaptureContextRequest.java
@@ -145,10 +145,10 @@ public GenerateUnifiedCheckoutCaptureContextRequest addAllowedPaymentTypesItem(S
}
/**
- * The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.
+ * The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.
* @return allowedPaymentTypes
**/
- @ApiModelProperty(value = "The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE
Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY
**Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field. ")
+ @ApiModelProperty(value = "The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE
Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY
**Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.
**Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay. ")
public List getAllowedPaymentTypes() {
return allowedPaymentTypes;
}
diff --git a/src/main/java/Model/InlineResponse2002.java b/src/main/java/Model/InlineResponse2002.java
index aa2c6173b..e231099dd 100644
--- a/src/main/java/Model/InlineResponse2002.java
+++ b/src/main/java/Model/InlineResponse2002.java
@@ -15,7 +15,8 @@
import java.util.Objects;
import java.util.Arrays;
-import Model.Notificationsubscriptionsv1productsorganizationIdEventTypes;
+import Model.InlineResponse2002Embedded;
+import Model.InlineResponse2002Links;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
@@ -32,75 +33,159 @@
*/
public class InlineResponse2002 {
- @SerializedName("productId")
- private String productId = null;
+ @SerializedName("_links")
+ private List links = null;
- @SerializedName("productName")
- private String productName = null;
+ @SerializedName("object")
+ private String object = null;
- @SerializedName("eventTypes")
- private List eventTypes = null;
+ @SerializedName("offset")
+ private Integer offset = null;
- public InlineResponse2002 productId(String productId) {
- this.productId = productId;
+ @SerializedName("limit")
+ private Integer limit = null;
+
+ @SerializedName("count")
+ private Integer count = null;
+
+ @SerializedName("total")
+ private Integer total = null;
+
+ @SerializedName("_embedded")
+ private InlineResponse2002Embedded embedded = null;
+
+ public InlineResponse2002 links(List links) {
+ this.links = links;
+ return this;
+ }
+
+ public InlineResponse2002 addLinksItem(InlineResponse2002Links linksItem) {
+ if (this.links == null) {
+ this.links = new ArrayList();
+ }
+ this.links.add(linksItem);
return this;
}
/**
- * Product ID.
- * @return productId
+ * Get links
+ * @return links
**/
- @ApiModelProperty(value = "Product ID.")
- public String getProductId() {
- return productId;
+ @ApiModelProperty(value = "")
+ public List getLinks() {
+ return links;
}
- public void setProductId(String productId) {
- this.productId = productId;
+ public void setLinks(List links) {
+ this.links = links;
}
- public InlineResponse2002 productName(String productName) {
- this.productName = productName;
+ public InlineResponse2002 object(String object) {
+ this.object = object;
return this;
}
/**
- * Product Name.
- * @return productName
+ * Get object
+ * @return object
**/
- @ApiModelProperty(value = "Product Name.")
- public String getProductName() {
- return productName;
+ @ApiModelProperty(example = "collection", value = "")
+ public String getObject() {
+ return object;
}
- public void setProductName(String productName) {
- this.productName = productName;
+ public void setObject(String object) {
+ this.object = object;
}
- public InlineResponse2002 eventTypes(List eventTypes) {
- this.eventTypes = eventTypes;
+ public InlineResponse2002 offset(Integer offset) {
+ this.offset = offset;
return this;
}
- public InlineResponse2002 addEventTypesItem(Notificationsubscriptionsv1productsorganizationIdEventTypes eventTypesItem) {
- if (this.eventTypes == null) {
- this.eventTypes = new ArrayList();
- }
- this.eventTypes.add(eventTypesItem);
+ /**
+ * Get offset
+ * @return offset
+ **/
+ @ApiModelProperty(example = "0", value = "")
+ public Integer getOffset() {
+ return offset;
+ }
+
+ public void setOffset(Integer offset) {
+ this.offset = offset;
+ }
+
+ public InlineResponse2002 limit(Integer limit) {
+ this.limit = limit;
+ return this;
+ }
+
+ /**
+ * Get limit
+ * @return limit
+ **/
+ @ApiModelProperty(example = "20", value = "")
+ public Integer getLimit() {
+ return limit;
+ }
+
+ public void setLimit(Integer limit) {
+ this.limit = limit;
+ }
+
+ public InlineResponse2002 count(Integer count) {
+ this.count = count;
+ return this;
+ }
+
+ /**
+ * Get count
+ * @return count
+ **/
+ @ApiModelProperty(example = "1", value = "")
+ public Integer getCount() {
+ return count;
+ }
+
+ public void setCount(Integer count) {
+ this.count = count;
+ }
+
+ public InlineResponse2002 total(Integer total) {
+ this.total = total;
+ return this;
+ }
+
+ /**
+ * Get total
+ * @return total
+ **/
+ @ApiModelProperty(example = "1", value = "")
+ public Integer getTotal() {
+ return total;
+ }
+
+ public void setTotal(Integer total) {
+ this.total = total;
+ }
+
+ public InlineResponse2002 embedded(InlineResponse2002Embedded embedded) {
+ this.embedded = embedded;
return this;
}
/**
- * Get eventTypes
- * @return eventTypes
+ * Get embedded
+ * @return embedded
**/
@ApiModelProperty(value = "")
- public List getEventTypes() {
- return eventTypes;
+ public InlineResponse2002Embedded getEmbedded() {
+ return embedded;
}
- public void setEventTypes(List eventTypes) {
- this.eventTypes = eventTypes;
+ public void setEmbedded(InlineResponse2002Embedded embedded) {
+ this.embedded = embedded;
}
@@ -113,14 +198,18 @@ public boolean equals(java.lang.Object o) {
return false;
}
InlineResponse2002 inlineResponse2002 = (InlineResponse2002) o;
- return Objects.equals(this.productId, inlineResponse2002.productId) &&
- Objects.equals(this.productName, inlineResponse2002.productName) &&
- Objects.equals(this.eventTypes, inlineResponse2002.eventTypes);
+ return Objects.equals(this.links, inlineResponse2002.links) &&
+ Objects.equals(this.object, inlineResponse2002.object) &&
+ Objects.equals(this.offset, inlineResponse2002.offset) &&
+ Objects.equals(this.limit, inlineResponse2002.limit) &&
+ Objects.equals(this.count, inlineResponse2002.count) &&
+ Objects.equals(this.total, inlineResponse2002.total) &&
+ Objects.equals(this.embedded, inlineResponse2002.embedded);
}
@Override
public int hashCode() {
- return Objects.hash(productId, productName, eventTypes);
+ return Objects.hash(links, object, offset, limit, count, total, embedded);
}
@@ -129,9 +218,13 @@ public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class InlineResponse2002 {\n");
- if (productId != null) sb.append(" productId: ").append(toIndentedString(productId)).append("\n");
- if (productName != null) sb.append(" productName: ").append(toIndentedString(productName)).append("\n");
- if (eventTypes != null) sb.append(" eventTypes: ").append(toIndentedString(eventTypes)).append("\n");
+ if (links != null) sb.append(" links: ").append(toIndentedString(links)).append("\n");
+ if (object != null) sb.append(" object: ").append(toIndentedString(object)).append("\n");
+ if (offset != null) sb.append(" offset: ").append(toIndentedString(offset)).append("\n");
+ if (limit != null) sb.append(" limit: ").append(toIndentedString(limit)).append("\n");
+ if (count != null) sb.append(" count: ").append(toIndentedString(count)).append("\n");
+ if (total != null) sb.append(" total: ").append(toIndentedString(total)).append("\n");
+ if (embedded != null) sb.append(" embedded: ").append(toIndentedString(embedded)).append("\n");
sb.append("}");
return sb.toString();
}
diff --git a/src/main/java/Model/InlineResponse2005Embedded.java b/src/main/java/Model/InlineResponse2002Embedded.java
similarity index 71%
rename from src/main/java/Model/InlineResponse2005Embedded.java
rename to src/main/java/Model/InlineResponse2002Embedded.java
index 964c80dac..f918d0e48 100644
--- a/src/main/java/Model/InlineResponse2005Embedded.java
+++ b/src/main/java/Model/InlineResponse2002Embedded.java
@@ -15,7 +15,7 @@
import java.util.Objects;
import java.util.Arrays;
-import Model.InlineResponse2005EmbeddedBatches;
+import Model.InlineResponse2002EmbeddedBatches;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
@@ -28,21 +28,21 @@
import java.util.List;
/**
- * InlineResponse2005Embedded
+ * InlineResponse2002Embedded
*/
-public class InlineResponse2005Embedded {
+public class InlineResponse2002Embedded {
@SerializedName("batches")
- private List batches = null;
+ private List batches = null;
- public InlineResponse2005Embedded batches(List batches) {
+ public InlineResponse2002Embedded batches(List batches) {
this.batches = batches;
return this;
}
- public InlineResponse2005Embedded addBatchesItem(InlineResponse2005EmbeddedBatches batchesItem) {
+ public InlineResponse2002Embedded addBatchesItem(InlineResponse2002EmbeddedBatches batchesItem) {
if (this.batches == null) {
- this.batches = new ArrayList();
+ this.batches = new ArrayList();
}
this.batches.add(batchesItem);
return this;
@@ -53,11 +53,11 @@ public InlineResponse2005Embedded addBatchesItem(InlineResponse2005EmbeddedBatch
* @return batches
**/
@ApiModelProperty(value = "")
- public List getBatches() {
+ public List getBatches() {
return batches;
}
- public void setBatches(List batches) {
+ public void setBatches(List batches) {
this.batches = batches;
}
@@ -70,8 +70,8 @@ public boolean equals(java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- InlineResponse2005Embedded inlineResponse2005Embedded = (InlineResponse2005Embedded) o;
- return Objects.equals(this.batches, inlineResponse2005Embedded.batches);
+ InlineResponse2002Embedded inlineResponse2002Embedded = (InlineResponse2002Embedded) o;
+ return Objects.equals(this.batches, inlineResponse2002Embedded.batches);
}
@Override
@@ -83,7 +83,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class InlineResponse2005Embedded {\n");
+ sb.append("class InlineResponse2002Embedded {\n");
if (batches != null) sb.append(" batches: ").append(toIndentedString(batches)).append("\n");
sb.append("}");
diff --git a/src/main/java/Model/InlineResponse2005EmbeddedBatches.java b/src/main/java/Model/InlineResponse2002EmbeddedBatches.java
similarity index 79%
rename from src/main/java/Model/InlineResponse2005EmbeddedBatches.java
rename to src/main/java/Model/InlineResponse2002EmbeddedBatches.java
index cdd0a94dc..0c303b0ee 100644
--- a/src/main/java/Model/InlineResponse2005EmbeddedBatches.java
+++ b/src/main/java/Model/InlineResponse2002EmbeddedBatches.java
@@ -15,8 +15,8 @@
import java.util.Objects;
import java.util.Arrays;
-import Model.InlineResponse2005EmbeddedLinks;
-import Model.InlineResponse2005EmbeddedTotals;
+import Model.InlineResponse2002EmbeddedLinks;
+import Model.InlineResponse2002EmbeddedTotals;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
@@ -29,12 +29,12 @@
import java.util.List;
/**
- * InlineResponse2005EmbeddedBatches
+ * InlineResponse2002EmbeddedBatches
*/
-public class InlineResponse2005EmbeddedBatches {
+public class InlineResponse2002EmbeddedBatches {
@SerializedName("_links")
- private InlineResponse2005EmbeddedLinks links = null;
+ private InlineResponse2002EmbeddedLinks links = null;
@SerializedName("batchId")
private String batchId = null;
@@ -61,9 +61,9 @@ public class InlineResponse2005EmbeddedBatches {
private String status = null;
@SerializedName("totals")
- private InlineResponse2005EmbeddedTotals totals = null;
+ private InlineResponse2002EmbeddedTotals totals = null;
- public InlineResponse2005EmbeddedBatches links(InlineResponse2005EmbeddedLinks links) {
+ public InlineResponse2002EmbeddedBatches links(InlineResponse2002EmbeddedLinks links) {
this.links = links;
return this;
}
@@ -73,15 +73,15 @@ public InlineResponse2005EmbeddedBatches links(InlineResponse2005EmbeddedLinks l
* @return links
**/
@ApiModelProperty(value = "")
- public InlineResponse2005EmbeddedLinks getLinks() {
+ public InlineResponse2002EmbeddedLinks getLinks() {
return links;
}
- public void setLinks(InlineResponse2005EmbeddedLinks links) {
+ public void setLinks(InlineResponse2002EmbeddedLinks links) {
this.links = links;
}
- public InlineResponse2005EmbeddedBatches batchId(String batchId) {
+ public InlineResponse2002EmbeddedBatches batchId(String batchId) {
this.batchId = batchId;
return this;
}
@@ -99,7 +99,7 @@ public void setBatchId(String batchId) {
this.batchId = batchId;
}
- public InlineResponse2005EmbeddedBatches batchCreatedDate(String batchCreatedDate) {
+ public InlineResponse2002EmbeddedBatches batchCreatedDate(String batchCreatedDate) {
this.batchCreatedDate = batchCreatedDate;
return this;
}
@@ -117,7 +117,7 @@ public void setBatchCreatedDate(String batchCreatedDate) {
this.batchCreatedDate = batchCreatedDate;
}
- public InlineResponse2005EmbeddedBatches batchModifiedDate(String batchModifiedDate) {
+ public InlineResponse2002EmbeddedBatches batchModifiedDate(String batchModifiedDate) {
this.batchModifiedDate = batchModifiedDate;
return this;
}
@@ -135,7 +135,7 @@ public void setBatchModifiedDate(String batchModifiedDate) {
this.batchModifiedDate = batchModifiedDate;
}
- public InlineResponse2005EmbeddedBatches batchSource(String batchSource) {
+ public InlineResponse2002EmbeddedBatches batchSource(String batchSource) {
this.batchSource = batchSource;
return this;
}
@@ -153,7 +153,7 @@ public void setBatchSource(String batchSource) {
this.batchSource = batchSource;
}
- public InlineResponse2005EmbeddedBatches tokenSource(String tokenSource) {
+ public InlineResponse2002EmbeddedBatches tokenSource(String tokenSource) {
this.tokenSource = tokenSource;
return this;
}
@@ -171,7 +171,7 @@ public void setTokenSource(String tokenSource) {
this.tokenSource = tokenSource;
}
- public InlineResponse2005EmbeddedBatches merchantReference(String merchantReference) {
+ public InlineResponse2002EmbeddedBatches merchantReference(String merchantReference) {
this.merchantReference = merchantReference;
return this;
}
@@ -189,12 +189,12 @@ public void setMerchantReference(String merchantReference) {
this.merchantReference = merchantReference;
}
- public InlineResponse2005EmbeddedBatches batchCaEndpoints(List batchCaEndpoints) {
+ public InlineResponse2002EmbeddedBatches batchCaEndpoints(List batchCaEndpoints) {
this.batchCaEndpoints = batchCaEndpoints;
return this;
}
- public InlineResponse2005EmbeddedBatches addBatchCaEndpointsItem(String batchCaEndpointsItem) {
+ public InlineResponse2002EmbeddedBatches addBatchCaEndpointsItem(String batchCaEndpointsItem) {
if (this.batchCaEndpoints == null) {
this.batchCaEndpoints = new ArrayList();
}
@@ -215,7 +215,7 @@ public void setBatchCaEndpoints(List batchCaEndpoints) {
this.batchCaEndpoints = batchCaEndpoints;
}
- public InlineResponse2005EmbeddedBatches status(String status) {
+ public InlineResponse2002EmbeddedBatches status(String status) {
this.status = status;
return this;
}
@@ -233,7 +233,7 @@ public void setStatus(String status) {
this.status = status;
}
- public InlineResponse2005EmbeddedBatches totals(InlineResponse2005EmbeddedTotals totals) {
+ public InlineResponse2002EmbeddedBatches totals(InlineResponse2002EmbeddedTotals totals) {
this.totals = totals;
return this;
}
@@ -243,11 +243,11 @@ public InlineResponse2005EmbeddedBatches totals(InlineResponse2005EmbeddedTotals
* @return totals
**/
@ApiModelProperty(value = "")
- public InlineResponse2005EmbeddedTotals getTotals() {
+ public InlineResponse2002EmbeddedTotals getTotals() {
return totals;
}
- public void setTotals(InlineResponse2005EmbeddedTotals totals) {
+ public void setTotals(InlineResponse2002EmbeddedTotals totals) {
this.totals = totals;
}
@@ -260,17 +260,17 @@ public boolean equals(java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- InlineResponse2005EmbeddedBatches inlineResponse2005EmbeddedBatches = (InlineResponse2005EmbeddedBatches) o;
- return Objects.equals(this.links, inlineResponse2005EmbeddedBatches.links) &&
- Objects.equals(this.batchId, inlineResponse2005EmbeddedBatches.batchId) &&
- Objects.equals(this.batchCreatedDate, inlineResponse2005EmbeddedBatches.batchCreatedDate) &&
- Objects.equals(this.batchModifiedDate, inlineResponse2005EmbeddedBatches.batchModifiedDate) &&
- Objects.equals(this.batchSource, inlineResponse2005EmbeddedBatches.batchSource) &&
- Objects.equals(this.tokenSource, inlineResponse2005EmbeddedBatches.tokenSource) &&
- Objects.equals(this.merchantReference, inlineResponse2005EmbeddedBatches.merchantReference) &&
- Objects.equals(this.batchCaEndpoints, inlineResponse2005EmbeddedBatches.batchCaEndpoints) &&
- Objects.equals(this.status, inlineResponse2005EmbeddedBatches.status) &&
- Objects.equals(this.totals, inlineResponse2005EmbeddedBatches.totals);
+ InlineResponse2002EmbeddedBatches inlineResponse2002EmbeddedBatches = (InlineResponse2002EmbeddedBatches) o;
+ return Objects.equals(this.links, inlineResponse2002EmbeddedBatches.links) &&
+ Objects.equals(this.batchId, inlineResponse2002EmbeddedBatches.batchId) &&
+ Objects.equals(this.batchCreatedDate, inlineResponse2002EmbeddedBatches.batchCreatedDate) &&
+ Objects.equals(this.batchModifiedDate, inlineResponse2002EmbeddedBatches.batchModifiedDate) &&
+ Objects.equals(this.batchSource, inlineResponse2002EmbeddedBatches.batchSource) &&
+ Objects.equals(this.tokenSource, inlineResponse2002EmbeddedBatches.tokenSource) &&
+ Objects.equals(this.merchantReference, inlineResponse2002EmbeddedBatches.merchantReference) &&
+ Objects.equals(this.batchCaEndpoints, inlineResponse2002EmbeddedBatches.batchCaEndpoints) &&
+ Objects.equals(this.status, inlineResponse2002EmbeddedBatches.status) &&
+ Objects.equals(this.totals, inlineResponse2002EmbeddedBatches.totals);
}
@Override
@@ -282,7 +282,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class InlineResponse2005EmbeddedBatches {\n");
+ sb.append("class InlineResponse2002EmbeddedBatches {\n");
if (links != null) sb.append(" links: ").append(toIndentedString(links)).append("\n");
if (batchId != null) sb.append(" batchId: ").append(toIndentedString(batchId)).append("\n");
diff --git a/src/main/java/Model/InlineResponse2005EmbeddedLinks.java b/src/main/java/Model/InlineResponse2002EmbeddedLinks.java
similarity index 70%
rename from src/main/java/Model/InlineResponse2005EmbeddedLinks.java
rename to src/main/java/Model/InlineResponse2002EmbeddedLinks.java
index c66250182..db1b46c41 100644
--- a/src/main/java/Model/InlineResponse2005EmbeddedLinks.java
+++ b/src/main/java/Model/InlineResponse2002EmbeddedLinks.java
@@ -15,7 +15,7 @@
import java.util.Objects;
import java.util.Arrays;
-import Model.InlineResponse2005EmbeddedLinksReports;
+import Model.InlineResponse2002EmbeddedLinksReports;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
@@ -28,21 +28,21 @@
import java.util.List;
/**
- * InlineResponse2005EmbeddedLinks
+ * InlineResponse2002EmbeddedLinks
*/
-public class InlineResponse2005EmbeddedLinks {
+public class InlineResponse2002EmbeddedLinks {
@SerializedName("reports")
- private List reports = null;
+ private List reports = null;
- public InlineResponse2005EmbeddedLinks reports(List reports) {
+ public InlineResponse2002EmbeddedLinks reports(List reports) {
this.reports = reports;
return this;
}
- public InlineResponse2005EmbeddedLinks addReportsItem(InlineResponse2005EmbeddedLinksReports reportsItem) {
+ public InlineResponse2002EmbeddedLinks addReportsItem(InlineResponse2002EmbeddedLinksReports reportsItem) {
if (this.reports == null) {
- this.reports = new ArrayList();
+ this.reports = new ArrayList();
}
this.reports.add(reportsItem);
return this;
@@ -53,11 +53,11 @@ public InlineResponse2005EmbeddedLinks addReportsItem(InlineResponse2005Embedded
* @return reports
**/
@ApiModelProperty(value = "")
- public List getReports() {
+ public List getReports() {
return reports;
}
- public void setReports(List reports) {
+ public void setReports(List reports) {
this.reports = reports;
}
@@ -70,8 +70,8 @@ public boolean equals(java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- InlineResponse2005EmbeddedLinks inlineResponse2005EmbeddedLinks = (InlineResponse2005EmbeddedLinks) o;
- return Objects.equals(this.reports, inlineResponse2005EmbeddedLinks.reports);
+ InlineResponse2002EmbeddedLinks inlineResponse2002EmbeddedLinks = (InlineResponse2002EmbeddedLinks) o;
+ return Objects.equals(this.reports, inlineResponse2002EmbeddedLinks.reports);
}
@Override
@@ -83,7 +83,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class InlineResponse2005EmbeddedLinks {\n");
+ sb.append("class InlineResponse2002EmbeddedLinks {\n");
if (reports != null) sb.append(" reports: ").append(toIndentedString(reports)).append("\n");
sb.append("}");
diff --git a/src/main/java/Model/InlineResponse2005EmbeddedLinksReports.java b/src/main/java/Model/InlineResponse2002EmbeddedLinksReports.java
similarity index 85%
rename from src/main/java/Model/InlineResponse2005EmbeddedLinksReports.java
rename to src/main/java/Model/InlineResponse2002EmbeddedLinksReports.java
index 2ee924292..3e65c7055 100644
--- a/src/main/java/Model/InlineResponse2005EmbeddedLinksReports.java
+++ b/src/main/java/Model/InlineResponse2002EmbeddedLinksReports.java
@@ -29,11 +29,11 @@
*/
@ApiModel(description = "Retrieve the generated report of a batch when available.")
-public class InlineResponse2005EmbeddedLinksReports {
+public class InlineResponse2002EmbeddedLinksReports {
@SerializedName("href")
private String href = null;
- public InlineResponse2005EmbeddedLinksReports href(String href) {
+ public InlineResponse2002EmbeddedLinksReports href(String href) {
this.href = href;
return this;
}
@@ -60,8 +60,8 @@ public boolean equals(java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- InlineResponse2005EmbeddedLinksReports inlineResponse2005EmbeddedLinksReports = (InlineResponse2005EmbeddedLinksReports) o;
- return Objects.equals(this.href, inlineResponse2005EmbeddedLinksReports.href);
+ InlineResponse2002EmbeddedLinksReports inlineResponse2002EmbeddedLinksReports = (InlineResponse2002EmbeddedLinksReports) o;
+ return Objects.equals(this.href, inlineResponse2002EmbeddedLinksReports.href);
}
@Override
@@ -73,7 +73,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class InlineResponse2005EmbeddedLinksReports {\n");
+ sb.append("class InlineResponse2002EmbeddedLinksReports {\n");
if (href != null) sb.append(" href: ").append(toIndentedString(href)).append("\n");
sb.append("}");
diff --git a/src/main/java/Model/InlineResponse2005EmbeddedTotals.java b/src/main/java/Model/InlineResponse2002EmbeddedTotals.java
similarity index 84%
rename from src/main/java/Model/InlineResponse2005EmbeddedTotals.java
rename to src/main/java/Model/InlineResponse2002EmbeddedTotals.java
index 50c3a9a1e..a723e2a21 100644
--- a/src/main/java/Model/InlineResponse2005EmbeddedTotals.java
+++ b/src/main/java/Model/InlineResponse2002EmbeddedTotals.java
@@ -25,10 +25,10 @@
import java.io.IOException;
/**
- * InlineResponse2005EmbeddedTotals
+ * InlineResponse2002EmbeddedTotals
*/
-public class InlineResponse2005EmbeddedTotals {
+public class InlineResponse2002EmbeddedTotals {
@SerializedName("acceptedRecords")
private Integer acceptedRecords = null;
@@ -44,7 +44,7 @@ public class InlineResponse2005EmbeddedTotals {
@SerializedName("caResponsesOmitted")
private Integer caResponsesOmitted = null;
- public InlineResponse2005EmbeddedTotals acceptedRecords(Integer acceptedRecords) {
+ public InlineResponse2002EmbeddedTotals acceptedRecords(Integer acceptedRecords) {
this.acceptedRecords = acceptedRecords;
return this;
}
@@ -62,7 +62,7 @@ public void setAcceptedRecords(Integer acceptedRecords) {
this.acceptedRecords = acceptedRecords;
}
- public InlineResponse2005EmbeddedTotals rejectedRecords(Integer rejectedRecords) {
+ public InlineResponse2002EmbeddedTotals rejectedRecords(Integer rejectedRecords) {
this.rejectedRecords = rejectedRecords;
return this;
}
@@ -80,7 +80,7 @@ public void setRejectedRecords(Integer rejectedRecords) {
this.rejectedRecords = rejectedRecords;
}
- public InlineResponse2005EmbeddedTotals updatedRecords(Integer updatedRecords) {
+ public InlineResponse2002EmbeddedTotals updatedRecords(Integer updatedRecords) {
this.updatedRecords = updatedRecords;
return this;
}
@@ -98,7 +98,7 @@ public void setUpdatedRecords(Integer updatedRecords) {
this.updatedRecords = updatedRecords;
}
- public InlineResponse2005EmbeddedTotals caResponses(Integer caResponses) {
+ public InlineResponse2002EmbeddedTotals caResponses(Integer caResponses) {
this.caResponses = caResponses;
return this;
}
@@ -116,7 +116,7 @@ public void setCaResponses(Integer caResponses) {
this.caResponses = caResponses;
}
- public InlineResponse2005EmbeddedTotals caResponsesOmitted(Integer caResponsesOmitted) {
+ public InlineResponse2002EmbeddedTotals caResponsesOmitted(Integer caResponsesOmitted) {
this.caResponsesOmitted = caResponsesOmitted;
return this;
}
@@ -143,12 +143,12 @@ public boolean equals(java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- InlineResponse2005EmbeddedTotals inlineResponse2005EmbeddedTotals = (InlineResponse2005EmbeddedTotals) o;
- return Objects.equals(this.acceptedRecords, inlineResponse2005EmbeddedTotals.acceptedRecords) &&
- Objects.equals(this.rejectedRecords, inlineResponse2005EmbeddedTotals.rejectedRecords) &&
- Objects.equals(this.updatedRecords, inlineResponse2005EmbeddedTotals.updatedRecords) &&
- Objects.equals(this.caResponses, inlineResponse2005EmbeddedTotals.caResponses) &&
- Objects.equals(this.caResponsesOmitted, inlineResponse2005EmbeddedTotals.caResponsesOmitted);
+ InlineResponse2002EmbeddedTotals inlineResponse2002EmbeddedTotals = (InlineResponse2002EmbeddedTotals) o;
+ return Objects.equals(this.acceptedRecords, inlineResponse2002EmbeddedTotals.acceptedRecords) &&
+ Objects.equals(this.rejectedRecords, inlineResponse2002EmbeddedTotals.rejectedRecords) &&
+ Objects.equals(this.updatedRecords, inlineResponse2002EmbeddedTotals.updatedRecords) &&
+ Objects.equals(this.caResponses, inlineResponse2002EmbeddedTotals.caResponses) &&
+ Objects.equals(this.caResponsesOmitted, inlineResponse2002EmbeddedTotals.caResponsesOmitted);
}
@Override
@@ -160,7 +160,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class InlineResponse2005EmbeddedTotals {\n");
+ sb.append("class InlineResponse2002EmbeddedTotals {\n");
if (acceptedRecords != null) sb.append(" acceptedRecords: ").append(toIndentedString(acceptedRecords)).append("\n");
if (rejectedRecords != null) sb.append(" rejectedRecords: ").append(toIndentedString(rejectedRecords)).append("\n");
diff --git a/src/main/java/Model/InlineResponse2005Links.java b/src/main/java/Model/InlineResponse2002Links.java
similarity index 84%
rename from src/main/java/Model/InlineResponse2005Links.java
rename to src/main/java/Model/InlineResponse2002Links.java
index 0e762e935..21bda95e6 100644
--- a/src/main/java/Model/InlineResponse2005Links.java
+++ b/src/main/java/Model/InlineResponse2002Links.java
@@ -25,17 +25,17 @@
import java.io.IOException;
/**
- * InlineResponse2005Links
+ * InlineResponse2002Links
*/
-public class InlineResponse2005Links {
+public class InlineResponse2002Links {
@SerializedName("rel")
private String rel = null;
@SerializedName("href")
private String href = null;
- public InlineResponse2005Links rel(String rel) {
+ public InlineResponse2002Links rel(String rel) {
this.rel = rel;
return this;
}
@@ -53,7 +53,7 @@ public void setRel(String rel) {
this.rel = rel;
}
- public InlineResponse2005Links href(String href) {
+ public InlineResponse2002Links href(String href) {
this.href = href;
return this;
}
@@ -80,9 +80,9 @@ public boolean equals(java.lang.Object o) {
if (o == null || getClass() != o.getClass()) {
return false;
}
- InlineResponse2005Links inlineResponse2005Links = (InlineResponse2005Links) o;
- return Objects.equals(this.rel, inlineResponse2005Links.rel) &&
- Objects.equals(this.href, inlineResponse2005Links.href);
+ InlineResponse2002Links inlineResponse2002Links = (InlineResponse2002Links) o;
+ return Objects.equals(this.rel, inlineResponse2002Links.rel) &&
+ Objects.equals(this.href, inlineResponse2002Links.href);
}
@Override
@@ -94,7 +94,7 @@ public int hashCode() {
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
- sb.append("class InlineResponse2005Links {\n");
+ sb.append("class InlineResponse2002Links {\n");
if (rel != null) sb.append(" rel: ").append(toIndentedString(rel)).append("\n");
if (href != null) sb.append(" href: ").append(toIndentedString(href)).append("\n");
diff --git a/src/main/java/Model/InlineResponse2003.java b/src/main/java/Model/InlineResponse2003.java
index 660df7067..e21da6068 100644
--- a/src/main/java/Model/InlineResponse2003.java
+++ b/src/main/java/Model/InlineResponse2003.java
@@ -15,10 +15,9 @@
import java.util.Objects;
import java.util.Arrays;
-import Model.Notificationsubscriptionsv1webhooksNotificationScope;
-import Model.Notificationsubscriptionsv1webhooksProducts;
-import Model.Notificationsubscriptionsv1webhooksRetryPolicy;
-import Model.Notificationsubscriptionsv1webhooksSecurityPolicy;
+import Model.InlineResponse2002EmbeddedTotals;
+import Model.InlineResponse2003Billing;
+import Model.InlineResponse2003Links;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
@@ -27,171 +26,148 @@
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-import java.util.Map;
/**
* InlineResponse2003
*/
public class InlineResponse2003 {
- @SerializedName("webhookId")
- private String webhookId = null;
+ @SerializedName("_links")
+ private InlineResponse2003Links links = null;
- @SerializedName("organizationId")
- private String organizationId = null;
+ @SerializedName("batchId")
+ private String batchId = null;
- @SerializedName("products")
- private List products = null;
+ @SerializedName("batchCreatedDate")
+ private String batchCreatedDate = null;
- @SerializedName("webhookUrl")
- private String webhookUrl = null;
+ @SerializedName("batchSource")
+ private String batchSource = null;
- @SerializedName("healthCheckUrl")
- private String healthCheckUrl = null;
+ @SerializedName("merchantReference")
+ private String merchantReference = null;
- @SerializedName("notificationScope")
- private Notificationsubscriptionsv1webhooksNotificationScope notificationScope = null;
+ @SerializedName("batchCaEndpoints")
+ private String batchCaEndpoints = null;
@SerializedName("status")
- private String status = "INACTIVE";
+ private String status = null;
- @SerializedName("name")
- private String name = null;
+ @SerializedName("totals")
+ private InlineResponse2002EmbeddedTotals totals = null;
+
+ @SerializedName("billing")
+ private InlineResponse2003Billing billing = null;
@SerializedName("description")
private String description = null;
- @SerializedName("retryPolicy")
- private Notificationsubscriptionsv1webhooksRetryPolicy retryPolicy = null;
-
- @SerializedName("securityPolicy")
- private Notificationsubscriptionsv1webhooksSecurityPolicy securityPolicy = null;
-
- @SerializedName("createdOn")
- private String createdOn = null;
-
- @SerializedName("updatedOn")
- private String updatedOn = null;
-
- @SerializedName("additionalAttributes")
- private List