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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
396 changes: 201 additions & 195 deletions pom.xml

Large diffs are not rendered by default.

29 changes: 12 additions & 17 deletions src/main/java/Api/CaptureApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

package Api;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.google.gson.reflect.TypeToken;

import Invokers.ApiCallback;
import Invokers.ApiClient;
import Invokers.ApiException;
Expand All @@ -21,23 +30,9 @@
import Invokers.Pair;
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import Model.CapturePaymentRequest;
import Model.InlineResponse2004;
import Model.InlineResponse2012;
import Model.InlineResponse4002;
import Model.InlineResponse502;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CaptureApi {
private ApiClient apiClient;
Expand Down Expand Up @@ -149,7 +144,7 @@ public InlineResponse2012 capturePayment(CapturePaymentRequest capturePaymentReq
* Include the payment ID in the POST request to capture the payment amount.
* @param capturePaymentRequest (required)
* @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)
* @return ApiResponse<InlineResponse2012>
* @return ApiResponse - InlineResponse2012;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2012> capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException {
Expand Down Expand Up @@ -264,7 +259,7 @@ private com.squareup.okhttp.Call getCaptureValidateBeforeCall(String id, final P
* Retrieve a Capture
* Include the capture ID in the GET request to retrieve the capture details.
* @param id The capture ID returned from a previous capture request. (required)
* @return InlineResponse2004
* @return InlineResponse2004 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse2004 getCapture(String id) throws ApiException {
Expand All @@ -276,7 +271,7 @@ public InlineResponse2004 getCapture(String id) throws ApiException {
* Retrieve a Capture
* Include the capture ID in the GET request to retrieve the capture details.
* @param id The capture ID returned from a previous capture request. (required)
* @return ApiResponse&lt;InlineResponse2004&gt;
* @return ApiResponse - InlineResponse2004
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2004> getCaptureWithHttpInfo(String id) throws ApiException {
Expand Down
31 changes: 13 additions & 18 deletions src/main/java/Api/CreditApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

package Api;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.google.gson.reflect.TypeToken;

import Invokers.ApiCallback;
import Invokers.ApiClient;
import Invokers.ApiException;
Expand All @@ -21,23 +30,9 @@
import Invokers.Pair;
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import Model.CreateCreditRequest;
import Model.InlineResponse2006;
import Model.InlineResponse2014;
import Model.InlineResponse4003;
import Model.InlineResponse502;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class CreditApi {
private ApiClient apiClient;
Expand Down Expand Up @@ -128,7 +123,7 @@ private com.squareup.okhttp.Call createCreditValidateBeforeCall(CreateCreditRequ
* Process a Credit
* POST to the credit resource to credit funds to a specified credit card.
* @param createCreditRequest (required)
* @return InlineResponse2014
* @return InlineResponse2014 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse2014 createCredit(CreateCreditRequest createCreditRequest) throws ApiException {
Expand All @@ -140,7 +135,7 @@ public InlineResponse2014 createCredit(CreateCreditRequest createCreditRequest)
* Process a Credit
* POST to the credit resource to credit funds to a specified credit card.
* @param createCreditRequest (required)
* @return ApiResponse&lt;InlineResponse2014&gt;
* @return ApiResponse - InlineResponse2014
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2014> createCreditWithHttpInfo(CreateCreditRequest createCreditRequest) throws ApiException {
Expand Down Expand Up @@ -254,7 +249,7 @@ private com.squareup.okhttp.Call getCreditValidateBeforeCall(String id, final Pr
* Retrieve a Credit
* Include the credit ID in the GET request to return details of the credit.
* @param id The credit ID returned from a previous stand-alone credit request. (required)
* @return InlineResponse2006
* @return InlineResponse2006 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse2006 getCredit(String id) throws ApiException {
Expand All @@ -266,7 +261,7 @@ public InlineResponse2006 getCredit(String id) throws ApiException {
* Retrieve a Credit
* Include the credit ID in the GET request to return details of the credit.
* @param id The credit ID returned from a previous stand-alone credit request. (required)
* @return ApiResponse&lt;InlineResponse2006&gt;
* @return ApiResponse - InlineResponse2006.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2006> getCreditWithHttpInfo(String id) throws ApiException {
Expand Down
22 changes: 7 additions & 15 deletions src/main/java/Api/DefaultApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@

package Api;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import Invokers.ApiCallback;
import Invokers.ApiClient;
import Invokers.ApiException;
Expand All @@ -21,22 +27,8 @@
import Invokers.Pair;
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import Model.InlineResponse4005;
import Model.InlineResponse502;
import Model.OctCreatePaymentRequest;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class DefaultApi {
private ApiClient apiClient;

Expand Down Expand Up @@ -136,7 +128,7 @@ public void octCreatePayment(OctCreatePaymentRequest octCreatePaymentRequest) th
* Process a Payout
* Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT).
* @param octCreatePaymentRequest (required)
* @return ApiResponse&lt;Void&gt;
* @return ApiResponse - Void.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> octCreatePaymentWithHttpInfo(OctCreatePaymentRequest octCreatePaymentRequest) throws ApiException {
Expand Down
41 changes: 18 additions & 23 deletions src/main/java/Api/InstrumentIdentifierApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

package Api;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.google.gson.reflect.TypeToken;

import Invokers.ApiCallback;
import Invokers.ApiClient;
import Invokers.ApiException;
Expand All @@ -21,24 +30,10 @@
import Invokers.Pair;
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import Model.Body;
import Model.Body1;
import Model.InlineResponse2007;
import Model.InlineResponse2008;
import Model.InlineResponse4006;
import Model.InlineResponse409;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class InstrumentIdentifierApi {
private ApiClient apiClient;
Expand Down Expand Up @@ -133,7 +128,7 @@ private com.squareup.okhttp.Call instrumentidentifiersPostValidateBeforeCall(Str
*
* @param profileId The id of a profile containing user specific TMS configuration. (required)
* @param body Please specify either a Card or Bank Account. (optional)
* @return InlineResponse2007
* @return InlineResponse2007 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse2007 instrumentidentifiersPost(String profileId, Body body) throws ApiException {
Expand All @@ -146,7 +141,7 @@ public InlineResponse2007 instrumentidentifiersPost(String profileId, Body body)
*
* @param profileId The id of a profile containing user specific TMS configuration. (required)
* @param body Please specify either a Card or Bank Account. (optional)
* @return ApiResponse&lt;InlineResponse2007&gt;
* @return ApiResponse - InlineResponse2007.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2007> instrumentidentifiersPostWithHttpInfo(String profileId, Body body) throws ApiException {
Expand Down Expand Up @@ -281,7 +276,7 @@ public void instrumentidentifiersTokenIdDelete(String profileId, String tokenId)
*
* @param profileId The id of a profile containing user specific TMS configuration. (required)
* @param tokenId The TokenId of an Instrument Identifier. (required)
* @return ApiResponse&lt;Void&gt;
* @return ApiResponse - Void.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<Void> instrumentidentifiersTokenIdDeleteWithHttpInfo(String profileId, String tokenId) throws ApiException {
Expand Down Expand Up @@ -403,7 +398,7 @@ private com.squareup.okhttp.Call instrumentidentifiersTokenIdGetValidateBeforeCa
*
* @param profileId The id of a profile containing user specific TMS configuration. (required)
* @param tokenId The TokenId of an Instrument Identifier. (required)
* @return InlineResponse2007
* @return InlineResponse2007 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse2007 instrumentidentifiersTokenIdGet(String profileId, String tokenId) throws ApiException {
Expand All @@ -416,7 +411,7 @@ public InlineResponse2007 instrumentidentifiersTokenIdGet(String profileId, Stri
*
* @param profileId The id of a profile containing user specific TMS configuration. (required)
* @param tokenId The TokenId of an Instrument Identifier. (required)
* @return ApiResponse&lt;InlineResponse2007&gt;
* @return ApiResponse - InlineResponse2007.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2007> instrumentidentifiersTokenIdGetWithHttpInfo(String profileId, String tokenId) throws ApiException {
Expand Down Expand Up @@ -547,7 +542,7 @@ private com.squareup.okhttp.Call instrumentidentifiersTokenIdPatchValidateBefore
* @param profileId The id of a profile containing user specific TMS configuration. (required)
* @param tokenId The TokenId of an Instrument Identifier (required)
* @param body Please specify the previous transaction Id to update. (required)
* @return InlineResponse2007
* @return InlineResponse2007 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse2007 instrumentidentifiersTokenIdPatch(String profileId, String tokenId, Body1 body) throws ApiException {
Expand All @@ -561,7 +556,7 @@ public InlineResponse2007 instrumentidentifiersTokenIdPatch(String profileId, St
* @param profileId The id of a profile containing user specific TMS configuration. (required)
* @param tokenId The TokenId of an Instrument Identifier (required)
* @param body Please specify the previous transaction Id to update. (required)
* @return ApiResponse&lt;InlineResponse2007&gt;
* @return ApiResponse - InlineResponse2007.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2007> instrumentidentifiersTokenIdPatchWithHttpInfo(String profileId, String tokenId, Body1 body) throws ApiException {
Expand Down Expand Up @@ -694,7 +689,7 @@ private com.squareup.okhttp.Call instrumentidentifiersTokenIdPaymentinstrumentsG
* @param tokenId The TokenId of an Instrument Identifier. (required)
* @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional)
* @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20)
* @return InlineResponse2008
* @return InlineResponse2008 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse2008 instrumentidentifiersTokenIdPaymentinstrumentsGet(String profileId, String tokenId, String offset, String limit) throws ApiException {
Expand All @@ -709,7 +704,7 @@ public InlineResponse2008 instrumentidentifiersTokenIdPaymentinstrumentsGet(Stri
* @param tokenId The TokenId of an Instrument Identifier. (required)
* @param offset Starting Payment Instrument record in zero-based dataset that should be returned as the first object in the array. Default is 0. (optional)
* @param limit The maximum number of Payment Instruments that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20)
* @return ApiResponse&lt;InlineResponse2008&gt;
* @return ApiResponse - InlineResponse2008.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse2008> instrumentidentifiersTokenIdPaymentinstrumentsGetWithHttpInfo(String profileId, String tokenId, String offset, String limit) throws ApiException {
Expand Down
33 changes: 12 additions & 21 deletions src/main/java/Api/KeyGenerationApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@

package Api;

import java.io.IOException;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.google.gson.reflect.TypeToken;

import Invokers.ApiCallback;
import Invokers.ApiClient;
import Invokers.ApiException;
Expand All @@ -21,21 +30,8 @@
import Invokers.Pair;
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import Model.GeneratePublicKeyRequest;
import Model.InlineResponse200;
import Model.InlineResponseDefault;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class KeyGenerationApi {
private ApiClient apiClient;
Expand Down Expand Up @@ -76,12 +72,7 @@ public com.squareup.okhttp.Call generatePublicKeyCall(GeneratePublicKeyRequest g

Map<String, Object> localVarFormParams = new HashMap<String, Object>();

/*final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
*/

final String[] localVarContentTypes = {

};
Expand Down Expand Up @@ -126,7 +117,7 @@ private com.squareup.okhttp.Call generatePublicKeyValidateBeforeCall(GeneratePub
* Generate Key
* Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser.
* @param generatePublicKeyRequest (required)
* @return InlineResponse200
* @return InlineResponse200 generated.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public InlineResponse200 generatePublicKey(GeneratePublicKeyRequest generatePublicKeyRequest) throws ApiException {
Expand All @@ -138,7 +129,7 @@ public InlineResponse200 generatePublicKey(GeneratePublicKeyRequest generatePubl
* Generate Key
* Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser.
* @param generatePublicKeyRequest (required)
* @return ApiResponse&lt;InlineResponse200&gt;
* @return ApiResponse - InlineResponse200.
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
*/
public ApiResponse<InlineResponse200> generatePublicKeyWithHttpInfo(GeneratePublicKeyRequest generatePublicKeyRequest) throws ApiException {
Expand Down
Loading