From 4c84b709949995ce2eed6016b59c689571bcd2e3 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Thu, 22 Jun 2023 16:30:56 +0530 Subject: [PATCH 1/4] june spec changes --- docs/PlansApi.md | 12 +- docs/Ptsv2paymentsRecipientInformation.md | 1 + docs/SubscriptionsApi.md | 18 +- docs/TssV2TransactionsGet200Response.md | 1 + docs/TssV2TransactionsPost201Response.md | 1 - ...eddedApplicationInformationApplications.md | 2 + ...Post201ResponseEmbeddedErrorInformation.md | 10 + ...201ResponseEmbeddedTransactionSummaries.md | 2 + generator/cybersource-rest-spec.json | 435 ++++++++++++++---- src/main/java/Api/PlansApi.java | 54 ++- src/main/java/Api/SubscriptionsApi.java | 81 ++-- .../Ptsv2paymentsRecipientInformation.java | 27 +- .../TssV2TransactionsGet200Response.java | 25 +- .../TssV2TransactionsPost201Response.java | 25 +- ...dedApplicationInformationApplications.java | 48 +- ...st201ResponseEmbeddedErrorInformation.java | 93 ++++ ...1ResponseEmbeddedTransactionSummaries.java | 49 +- src/test/java/Api/PlansApiTest.java | 6 +- src/test/java/Api/SubscriptionsApiTest.java | 9 +- 19 files changed, 679 insertions(+), 220 deletions(-) create mode 100644 docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md create mode 100644 src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.java diff --git a/docs/PlansApi.md b/docs/PlansApi.md index b114b55c3..f33e1c801 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **activatePlan** -> InlineResponse2004 activatePlan(id, activatePlanRequest) +> InlineResponse2004 activatePlan(id) Activate a Plan @@ -31,9 +31,8 @@ Activate a Plan PlansApi apiInstance = new PlansApi(); String id = "id_example"; // String | Plan Id -Object activatePlanRequest = null; // Object | try { - InlineResponse2004 result = apiInstance.activatePlan(id, activatePlanRequest); + InlineResponse2004 result = apiInstance.activatePlan(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PlansApi#activatePlan"); @@ -46,7 +45,6 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| Plan Id | - **activatePlanRequest** | **Object**| | [optional] ### Return type @@ -108,7 +106,7 @@ No authorization required # **deactivatePlan** -> InlineResponse2004 deactivatePlan(id, deactivatePlanRequest) +> InlineResponse2004 deactivatePlan(id) Deactivate a Plan @@ -123,9 +121,8 @@ Deactivate a Plan PlansApi apiInstance = new PlansApi(); String id = "id_example"; // String | Plan Id -Object deactivatePlanRequest = null; // Object | try { - InlineResponse2004 result = apiInstance.deactivatePlan(id, deactivatePlanRequest); + InlineResponse2004 result = apiInstance.deactivatePlan(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PlansApi#deactivatePlan"); @@ -138,7 +135,6 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| Plan Id | - **deactivatePlanRequest** | **Object**| | [optional] ### Return type diff --git a/docs/Ptsv2paymentsRecipientInformation.md b/docs/Ptsv2paymentsRecipientInformation.md index a9c51c46c..c104326a6 100644 --- a/docs/Ptsv2paymentsRecipientInformation.md +++ b/docs/Ptsv2paymentsRecipientInformation.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **lastName** | **String** | Recipient’s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] **middleName** | **String** | Recipient’s middle name. This field is a _passthrough_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_middlename` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] **postalCode** | **String** | Partial postal code for the recipient’s address. For example, if the postal code is **NN5 7SG**, the value for this field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that CyberSource does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] +**dateOfBirth** | **String** | Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) | [optional] diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index b63c3500a..c643a1c54 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description # **activateSubscription** -> InlineResponse2009 activateSubscription(id, activateSubscriptionRequest) +> InlineResponse2009 activateSubscription(id) Activate a Subscription @@ -31,9 +31,8 @@ Activate a `CANCELLED` Or `SUSPENDED` Subscription SubscriptionsApi apiInstance = new SubscriptionsApi(); String id = "id_example"; // String | Subscription Id -Object activateSubscriptionRequest = null; // Object | try { - InlineResponse2009 result = apiInstance.activateSubscription(id, activateSubscriptionRequest); + InlineResponse2009 result = apiInstance.activateSubscription(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SubscriptionsApi#activateSubscription"); @@ -46,7 +45,6 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| Subscription Id | - **activateSubscriptionRequest** | **Object**| | [optional] ### Return type @@ -63,7 +61,7 @@ No authorization required # **cancelSubscription** -> InlineResponse202 cancelSubscription(id, cancelSubscriptionRequest) +> InlineResponse202 cancelSubscription(id) Cancel a Subscription @@ -78,9 +76,8 @@ Cancel a Subscription SubscriptionsApi apiInstance = new SubscriptionsApi(); String id = "id_example"; // String | Subscription Id -Object cancelSubscriptionRequest = null; // Object | try { - InlineResponse202 result = apiInstance.cancelSubscription(id, cancelSubscriptionRequest); + InlineResponse202 result = apiInstance.cancelSubscription(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SubscriptionsApi#cancelSubscription"); @@ -93,7 +90,6 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| Subscription Id | - **cancelSubscriptionRequest** | **Object**| | [optional] ### Return type @@ -292,7 +288,7 @@ No authorization required # **suspendSubscription** -> InlineResponse2021 suspendSubscription(id, suspendSubscriptionRequest) +> InlineResponse2021 suspendSubscription(id) Suspend a Subscription @@ -307,9 +303,8 @@ Suspend a Subscription SubscriptionsApi apiInstance = new SubscriptionsApi(); String id = "id_example"; // String | Subscription Id -Object suspendSubscriptionRequest = null; // Object | try { - InlineResponse2021 result = apiInstance.suspendSubscription(id, suspendSubscriptionRequest); + InlineResponse2021 result = apiInstance.suspendSubscription(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SubscriptionsApi#suspendSubscription"); @@ -322,7 +317,6 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| Subscription Id | - **suspendSubscriptionRequest** | **Object**| | [optional] ### Return type diff --git a/docs/TssV2TransactionsGet200Response.md b/docs/TssV2TransactionsGet200Response.md index 3b728118f..17ea9b80b 100644 --- a/docs/TssV2TransactionsGet200Response.md +++ b/docs/TssV2TransactionsGet200Response.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **reconciliationId** | **String** | Reference number for the transaction. Depending on how your Cybersource account is configured, this value could either be provided in the API request or generated by CyberSource. The actual value used in the request to the processor is provided back to you by Cybersource in the response. | [optional] **merchantId** | **String** | Your CyberSource merchant ID. | [optional] **submitTimeUTC** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] +**status** | **String** | The status of the submitted transaction. | [optional] **applicationInformation** | [**TssV2TransactionsGet200ResponseApplicationInformation**](TssV2TransactionsGet200ResponseApplicationInformation.md) | | [optional] **buyerInformation** | [**TssV2TransactionsGet200ResponseBuyerInformation**](TssV2TransactionsGet200ResponseBuyerInformation.md) | | [optional] **clientReferenceInformation** | [**TssV2TransactionsGet200ResponseClientReferenceInformation**](TssV2TransactionsGet200ResponseClientReferenceInformation.md) | | [optional] diff --git a/docs/TssV2TransactionsPost201Response.md b/docs/TssV2TransactionsPost201Response.md index 4af543d17..2666851cb 100644 --- a/docs/TssV2TransactionsPost201Response.md +++ b/docs/TssV2TransactionsPost201Response.md @@ -14,7 +14,6 @@ Name | Type | Description | Notes **sort** | **String** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional] **count** | **Integer** | Results for this page, this could be below the limit. | [optional] **totalCount** | **Integer** | Total number of results. | [optional] -**status** | **String** | The status of the submitted transaction. | [optional] **submitTimeUtc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **embedded** | [**TssV2TransactionsPost201ResponseEmbedded**](TssV2TransactionsPost201ResponseEmbedded.md) | | [optional] **links** | [**PtsV2IncrementalAuthorizationPatch201ResponseLinks**](PtsV2IncrementalAuthorizationPatch201ResponseLinks.md) | | [optional] diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md b/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md index 45e956849..2cb2a3756 100644 --- a/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the CyberSource transaction type (such as CC settlement or CC authorization) that the merchant wants to process in a transaction request. More than one transaction type can included in a transaction request. Each transaction type separately returns their own status, reasonCode, rCode, and rFlag messages. | [optional] **reasonCode** | **String** | 3-digit reason code that indicates why the customer profile payment succeeded or failed. | [optional] +**status** | **String** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional] +**reason** | **String** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional] **rCode** | **String** | Indicates whether the service request was successful. Possible values: - `-1`: An error occurred. - `0`: The request was declined. - `1`: The request was successful. | [optional] **rFlag** | **String** | One-word description of the result of the application. | [optional] **reconciliationId** | **String** | Reference number that you use to reconcile your CyberSource reports with your processor reports. | [optional] diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md b/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md new file mode 100644 index 000000000..a6ded898d --- /dev/null +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md @@ -0,0 +1,10 @@ + +# TssV2TransactionsPost201ResponseEmbeddedErrorInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reason** | **String** | Description of why a request failed. Note: This field may not be returned for all transactions. | [optional] + + + diff --git a/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md index ed32e3c29..c07a0d559 100644 --- a/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md +++ b/docs/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.md @@ -7,11 +7,13 @@ Name | Type | Description | Notes **id** | **String** | An unique identification number generated by Cybersource to identify the submitted request. Returned by all services. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response. | [optional] **submitTimeUtc** | **String** | Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services. | [optional] **merchantId** | **String** | Your CyberSource merchant ID. | [optional] +**status** | **String** | The status of the submitted transaction. Note: This field may not be returned for all transactions. | [optional] **applicationInformation** | [**TssV2TransactionsPost201ResponseEmbeddedApplicationInformation**](TssV2TransactionsPost201ResponseEmbeddedApplicationInformation.md) | | [optional] **buyerInformation** | [**TssV2TransactionsPost201ResponseEmbeddedBuyerInformation**](TssV2TransactionsPost201ResponseEmbeddedBuyerInformation.md) | | [optional] **clientReferenceInformation** | [**TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation**](TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation.md) | | [optional] **consumerAuthenticationInformation** | [**TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation**](TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation.md) | | [optional] **deviceInformation** | [**Riskv1authenticationresultsDeviceInformation**](Riskv1authenticationresultsDeviceInformation.md) | | [optional] +**errorInformation** | [**TssV2TransactionsPost201ResponseEmbeddedErrorInformation**](TssV2TransactionsPost201ResponseEmbeddedErrorInformation.md) | | [optional] **fraudMarkingInformation** | [**TssV2TransactionsGet200ResponseFraudMarkingInformation**](TssV2TransactionsGet200ResponseFraudMarkingInformation.md) | | [optional] **merchantDefinedInformation** | [**List<Ptsv2paymentsMerchantDefinedInformation>**](Ptsv2paymentsMerchantDefinedInformation.md) | The object containing the custom data that the merchant defines. | [optional] **merchantInformation** | [**TssV2TransactionsPost201ResponseEmbeddedMerchantInformation**](TssV2TransactionsPost201ResponseEmbeddedMerchantInformation.md) | | [optional] diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 2e3a2adbd..e2c4a75b8 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -1078,7 +1078,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -2175,7 +2175,7 @@ }, "lastName": { "type": "string", - "maxLength": 6, + "maxLength": 35, "description": "Recipient\u2019s last name. This field is a _passthrough_, which means that CyberSource does not verify the value or\nmodify it in any way before sending it to the processor. If the field is not required for the transaction,\nCyberSource does not forward it to the processor.\n\nFor details, see the `recipient_lastname` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" }, "middleName": { @@ -2185,8 +2185,13 @@ }, "postalCode": { "type": "string", - "maxLength": 6, + "maxLength": 10, "description": "Partial postal code for the recipient\u2019s address. For example, if the postal code is **NN5 7SG**, the value for\nthis field should be the first part of the postal code: **NN5**. This field is a _pass-through_, which means that\nCyberSource does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n\nFor details, see the `recipient_postal_code` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" + }, + "dateOfBirth": { + "type": "string", + "maxLength": 8, + "description": "Recipient\u2019s date of birth. **Format**: `YYYYMMDD`.\n\nThis field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters\nbut otherwise does not verify the value or modify it in any way before sending it to the processor. If the field\nis not required for the transaction, CyberSource does not forward it to the processor.\n\nFor more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)\n" } } }, @@ -8653,11 +8658,15 @@ "sample-name": "Pin Debit Purchase Using Swiped Track Data with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Purchase" + "code": "Pin Debit Purchase Using Swiped Track Data" }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", - "entryMode": "swiped" + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" }, "processingInformation": { "commerceIndicator": "retail" @@ -8682,7 +8691,7 @@ "sample-name": "Pin Debit Purchase Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Purchase" + "code": "Pin Debit Purchase Using EMV Contactless" }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", @@ -8710,6 +8719,174 @@ } }, "parentTag": "Card Present with Visa Platform Connect" + }, + "example56": { + "summary": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", + "sample-name": "Pin Debit Purchase with Cashback Request with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "Pin Debit Purchase With Cashback" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "contactless", + "terminalCapability": 4, + "emv": { + "tags": "9F3303204000950500000000009F3704518823719F100706011103A000009F26081E1756ED0E2134E29F36020015820200009C01009F1A0208409A030006219F02060000000020005F2A0208409F0306000000000000", + "cardSequenceNumber": 1 + } + }, + "processingInformation": { + "commerceIndicator": "retail" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "204.00", + "currency": "USD", + "cashbackAmount": "45.00" + } + }, + "paymentInformation": { + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example57": { + "summary": "EBT - Purchase from SNAP Account with Visa Platform Connect", + "sample-name": "EBT - Purchase from SNAP Account with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "EBT - Purchase From SNAP Account" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "category": "FOOD" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "101.00", + "currency": "USD" + }, + "merchantInformation": { + "categoryCode": "5499" + } + }, + "paymentInformation": { + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example58": { + "summary": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", + "sample-name": "EBT - Electronic Voucher Purchase from SNAP Account with Visa Platform Connect", + "value": { + "clientReferenceInformation": { + "code": "EBT - Voucher Purchase From SNAP Account" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "keyed", + "terminalCapability": 4 + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "voucherSerialNumber": "123451234512345", + "category": "FOOD" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "103.00", + "currency": "USD" + }, + "merchantInformation": { + "categoryCode": "5999" + } + }, + "paymentInformation": { + "card": { + "number": "4012002000013007", + "expirationMonth": "12", + "expirationYear": "25" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" + }, + "example59": { + "summary": "EBT - Purchase from Cash Benefits Account with Cashback", + "sample-name": "EBT - Purchase from Cash Benefits Account with Cashback", + "value": { + "clientReferenceInformation": { + "code": "EBT - Purchase from Cash Benefits Account with CB" + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "category": "CASH" + } + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "702.00", + "currency": "USD", + "cashbackAmount": "45.00" + }, + "merchantInformation": { + "categoryCode": "5411" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "parentTag": "Card Present with Visa Platform Connect" } } } @@ -13232,7 +13409,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -15743,7 +15920,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -18322,7 +18499,7 @@ }, "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "encoding": { @@ -20990,7 +21167,7 @@ "sample-name": "Pin Debit Credit Using Swiped Track Data with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Credit" + "code": "Pin Debit Credit Swiped Track Data" }, "processingInformation": { "commerceIndicator": "retail" @@ -21012,7 +21189,8 @@ }, "pointOfSaleInformation": { "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", - "entryMode": "swiped" + "entryMode": "swiped", + "terminalCapability": 4 } }, "parentTag": "Card Present with Visa Platform Connect" @@ -21022,7 +21200,7 @@ "sample-name": "Pin Debit Credit Using EMV Technology with Contactless Read with Visa Platform Connect", "value": { "clientReferenceInformation": { - "code": "2.2 Credit" + "code": "Pin Debit Credit Using EMV Contactless" }, "processingInformation": { "commerceIndicator": "retail" @@ -21053,6 +21231,52 @@ } }, "parentTag": "Card Present with Visa Platform Connect" + }, + "example10": { + "summary": "EBT - Merchandise Return / Credit Voucher from SNAP", + "sample-name": "EBT - Merchandise Return / Credit Voucher from SNAP", + "value": { + "clientReferenceInformation": { + "code": "Merchandise Return / Credit Voucher from SNAP" + }, + "processingInformation": { + "commerceIndicator": "retail", + "purchaseOptions": { + "isElectronicBenefitsTransfer": true + }, + "electronicBenefitsTransfer": { + "voucherSerialNumber": "123451234512345", + "category": "FOOD" + } + }, + "merchantInformation": { + "categoryCode": "5411" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "204.00", + "currency": "USD" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + }, + "pointOfSaleInformation": { + "trackData": "%B4111111111111111^JONES/JONES ^3112101976110000868000000?;4111111111111111=16121019761186800000?", + "entryMode": "swiped", + "terminalCapability": 4, + "pinBlockEncodingFormat": 1, + "encryptedPin": "52F20658C04DB351", + "encryptedKeySerialNumber": "FFFF1B1D140000000005" + } + }, + "parentTag": "Card Present with Visa Platform Connect" } } } @@ -21425,6 +21649,43 @@ } ] } + }, + "example2": { + "summary": "EBT - Reversal of Purchase from SNAP Account", + "value": { + "clientReferenceInformation": { + "code": "Reversal of Purchase from SNAP Account" + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "101.00", + "currency": "USD" + } + }, + "paymentInformation": { + "card": { + "type": "001" + }, + "paymentType": { + "name": "CARD", + "subTypeName": "DEBIT" + } + } + }, + "depends": { + "example": { + "path": "/pts/v2/payments", + "verb": "post", + "exampleId": "example2" + }, + "fieldMapping": [ + { + "sourceField": "id", + "destinationField": "id", + "fieldTypeInDestination": "path" + } + ] + } } } } @@ -51380,7 +51641,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -52225,7 +52486,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -53818,7 +54079,7 @@ "properties": { "value": { "type": "string", - "maxLength": 3072, + "maxLength": 4000, "description": "Represents the encrypted payment data BLOB. The entry for this field is dependent on the payment solution used by the merchant.\nUsed by Authorization and Standalone Credits. Required for authorizations and standalone credits that use a Cybersource suppored Point-to-Point encryption method.\nCard Present processing\nThis field represents the encrypted payment data generated by the payment terminal/device.\n" }, "keySerialNumber": { @@ -59389,10 +59650,8 @@ }, "example": { "planInformation": { - "code": "PLN1", "name": "Gold Plan", "description": "New Gold Plan", - "status": "DRAFT", "billingPeriod": { "length": "1", "unit": "M" @@ -59405,7 +59664,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "10", - "setupFee": "15" + "setupFee": "2" } } } @@ -59552,10 +59811,8 @@ "sample-name": "Create Plan", "value": { "planInformation": { - "code": "PLN1", "name": "Gold Plan", "description": "New Gold Plan", - "status": "DRAFT", "billingPeriod": { "length": "1", "unit": "M" @@ -59568,7 +59825,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "10", - "setupFee": "15" + "setupFee": "2" } } } @@ -60185,10 +60442,8 @@ }, "example": { "planInformation": { - "code": "PLAN1", "name": "Gold Plan NA", "description": "Updated Gold Plan", - "status": "ACTIVE", "billingPeriod": { "length": "2", "unit": "W" @@ -60206,7 +60461,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "11", - "setupFee": "25" + "setupFee": "2" } } } @@ -60353,10 +60608,8 @@ "sample-name": "Update Plan", "value": { "planInformation": { - "code": "PLAN1", "name": "Gold Plan NA", "description": "Updated Gold Plan", - "status": "ACTIVE", "billingPeriod": { "length": "2", "unit": "W" @@ -60374,7 +60627,7 @@ "amountDetails": { "currency": "USD", "billingAmount": "11", - "setupFee": "25" + "setupFee": "2" } } } @@ -60522,14 +60775,6 @@ "required": true, "type": "string", "description": "Plan Id" - }, - { - "name": "activatePlanRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -60689,14 +60934,6 @@ "required": true, "type": "string", "description": "Plan Id" - }, - { - "name": "deactivatePlanRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -61142,10 +61379,9 @@ } }, "subscriptionInformation": { - "code": "SUB1", - "planId": "4963015972176007901546", + "planId": "6868912495476705603955", "name": "Subscription with PlanId", - "startDate": "2023-12-11" + "startDate": "2024-06-11" }, "paymentInformation": { "customer": { @@ -61381,10 +61617,9 @@ } }, "subscriptionInformation": { - "code": "SUB1", - "planId": "4963015972176007901546", + "planId": "6868912495476705603955", "name": "Subscription with PlanId", - "startDate": "2023-12-11" + "startDate": "2024-06-11" }, "paymentInformation": { "customer": { @@ -62418,15 +62653,14 @@ } }, "subscriptionInformation": { - "code": 1, "planId": 424242442, "name": "Gold subs", - "startDate": "2022-11-11" + "startDate": "2024-06-15" }, "orderInformation": { "amountDetails": { "billingAmount": 10, - "setupFee": 25 + "setupFee": 5 } } } @@ -62454,14 +62688,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "cancelSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -62621,14 +62847,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "suspendSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -62788,14 +63006,6 @@ "type": "string", "required": true, "description": "Subscription Id" - }, - { - "name": "activateSubscriptionRequest", - "in": "body", - "required": false, - "schema": { - "type": "object" - } } ], "responses": { @@ -63101,6 +63311,10 @@ "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" }, + "status": { + "type": "string", + "description": "The status of the submitted transaction." + }, "applicationInformation": { "type": "object", "properties": { @@ -64557,6 +64771,7 @@ "reconciliationId": "53703847LK9LPPXY", "merchantId": "pa_rbsworldpay", "submitTimeUtc": "2018-07-31T17:26:14Z", + "status": "PENDING", "applicationInformation": { "status": "PENDING", "reasonCode": "100", @@ -64609,12 +64824,12 @@ "cookiesAccepted": "no" }, "errorInformation": { - "reason": "1", + "reason": "MISSING_FIELD", "message": "abc", "details": [ { "field": "xyz", - "reason": "1" + "reason": "MISSING_FIELD" } ] }, @@ -65296,10 +65511,6 @@ "type": "integer", "description": "Total number of results." }, - "status": { - "type": "string", - "description": "The status of the submitted transaction." - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" @@ -65326,6 +65537,10 @@ "type": "string", "description": "Your CyberSource merchant ID." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, "applicationInformation": { "type": "object", "properties": { @@ -65354,6 +65569,14 @@ "type": "string", "description": "3-digit reason code that indicates why the customer profile payment succeeded or failed." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + }, "rCode": { "type": "string", "description": "Indicates whether the service request was successful.\nPossible values:\n\n- `-1`: An error occurred.\n- `0`: The request was declined.\n- `1`: The request was successful.\n" @@ -65450,6 +65673,15 @@ } } }, + "errorInformation": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + } + } + }, "fraudMarkingInformation": { "type": "object", "properties": { @@ -65802,7 +66034,6 @@ "sort": "id:asc, submitTimeUtc:asc", "count": 22, "totalCount": 22, - "status": "status", "submitTimeUtc": "2018-09-18T16:59:28Z", "_embedded": { "transactionSummaries": [ @@ -65810,8 +66041,8 @@ "id": "5217848115816817001541", "submitTimeUtc": "2018-03-23T06:00:11Z", "merchantId": "sandeep_wf", + "status": "TRANSMITTED", "applicationInformation": { - "status": "TRANSMITTED", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -65820,6 +66051,7 @@ { "name": "ics_service_fee_calculate", "status": "TRANSMITTED", + "reason": "MISSING_FIELD", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -65848,6 +66080,9 @@ "deviceInformation": { "ipAddress": "1.10.10.10" }, + "errorInformation": { + "reason": "MISSING_FIELD" + }, "fraudMarkingInformation": { "reason": "fraud txn" }, @@ -66117,10 +66352,6 @@ "type": "integer", "description": "Total number of results." }, - "status": { - "type": "string", - "description": "The status of the submitted transaction." - }, "submitTimeUtc": { "type": "string", "description": "Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ`\n**Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.).\nThe `T` separates the date and the time. The `Z` indicates UTC.\n\nReturned by Cybersource for all services.\n" @@ -66147,6 +66378,10 @@ "type": "string", "description": "Your CyberSource merchant ID." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, "applicationInformation": { "type": "object", "properties": { @@ -66175,6 +66410,14 @@ "type": "string", "description": "3-digit reason code that indicates why the customer profile payment succeeded or failed." }, + "status": { + "type": "string", + "description": "The status of the submitted transaction.\nNote: This field may not be returned for all transactions.\n" + }, + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + }, "rCode": { "type": "string", "description": "Indicates whether the service request was successful.\nPossible values:\n\n- `-1`: An error occurred.\n- `0`: The request was declined.\n- `1`: The request was successful.\n" @@ -66271,6 +66514,15 @@ } } }, + "errorInformation": { + "type": "object", + "properties": { + "reason": { + "type": "string", + "description": "Description of why a request failed.\nNote: This field may not be returned for all transactions.\n" + } + } + }, "fraudMarkingInformation": { "type": "object", "properties": { @@ -66623,7 +66875,6 @@ "sort": "id:asc, submitTimeUtc:asc", "count": 22, "totalCount": 22, - "status": "status", "submitTimeUtc": "2018-09-18T16:59:28Z", "_embedded": { "transactionSummaries": [ @@ -66631,8 +66882,8 @@ "id": "5217848115816817001541", "submitTimeUtc": "2018-03-23T06:00:11Z", "merchantId": "sandeep_wf", + "status": "TRANSMITTED", "applicationInformation": { - "status": "TRANSMITTED", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -66641,6 +66892,7 @@ { "name": "ics_service_fee_calculate", "status": "TRANSMITTED", + "reason": "MISSING_FIELD", "reasonCode": "123", "rCode": "1", "rFlag": "SOK", @@ -66669,6 +66921,9 @@ "deviceInformation": { "ipAddress": "1.10.10.10" }, + "errorInformation": { + "reason": "MISSING_FIELD" + }, "fraudMarkingInformation": { "reason": "fraud txn" }, diff --git a/src/main/java/Api/PlansApi.java b/src/main/java/Api/PlansApi.java index 0711b7f23..3194a2719 100644 --- a/src/main/java/Api/PlansApi.java +++ b/src/main/java/Api/PlansApi.java @@ -74,14 +74,16 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for activatePlan * @param id Plan Id (required) - * @param activatePlanRequest (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 activatePlanCall(String id, Object activatePlanRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = activatePlanRequest; + public okhttp3.Call activatePlanCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + if ("POST".equalsIgnoreCase("POST")) { + localVarPostBody = "{}"; + } // create path and map variables String localVarPath = "/rbs/v1/plans/{id}/activate" @@ -122,7 +124,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce } @SuppressWarnings("rawtypes") - private okhttp3.Call activatePlanValidateBeforeCall(String id, Object activatePlanRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call activatePlanValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -131,7 +133,7 @@ private okhttp3.Call activatePlanValidateBeforeCall(String id, Object activatePl } - okhttp3.Call call = activatePlanCall(id, activatePlanRequest, progressListener, progressRequestListener); + okhttp3.Call call = activatePlanCall(id, progressListener, progressRequestListener); return call; @@ -144,14 +146,13 @@ private okhttp3.Call activatePlanValidateBeforeCall(String id, Object activatePl * Activate a Plan * Activate a Plan * @param id Plan Id (required) - * @param activatePlanRequest (optional) * @return InlineResponse2004 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2004 activatePlan(String id, Object activatePlanRequest) throws ApiException { + public InlineResponse2004 activatePlan(String id) throws ApiException { logger.info("CALL TO METHOD 'activatePlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); - ApiResponse resp = activatePlanWithHttpInfo(id, activatePlanRequest); + ApiResponse resp = activatePlanWithHttpInfo(id); logger.info("CALL TO METHOD 'activatePlan' ENDED"); return resp.getData(); } @@ -160,12 +161,11 @@ public InlineResponse2004 activatePlan(String id, Object activatePlanRequest) th * Activate a Plan * Activate a Plan * @param id Plan Id (required) - * @param activatePlanRequest (optional) * @return ApiResponse<InlineResponse2004> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse activatePlanWithHttpInfo(String id, Object activatePlanRequest) throws ApiException { - okhttp3.Call call = activatePlanValidateBeforeCall(id, activatePlanRequest, null, null); + public ApiResponse activatePlanWithHttpInfo(String id) throws ApiException { + okhttp3.Call call = activatePlanValidateBeforeCall(id, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -174,12 +174,11 @@ public ApiResponse activatePlanWithHttpInfo(String id, Objec * Activate a Plan (asynchronously) * Activate a Plan * @param id Plan Id (required) - * @param activatePlanRequest (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 activatePlanAsync(String id, Object activatePlanRequest, final ApiCallback callback) throws ApiException { + public okhttp3.Call activatePlanAsync(String id, final ApiCallback callback) throws ApiException { this.apiClient.setComputationStartTime(System.nanoTime()); ProgressResponseBody.ProgressListener progressListener = null; @@ -201,7 +200,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - okhttp3.Call call = activatePlanValidateBeforeCall(id, activatePlanRequest, progressListener, progressRequestListener); + okhttp3.Call call = activatePlanValidateBeforeCall(id, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -339,14 +338,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for deactivatePlan * @param id Plan Id (required) - * @param deactivatePlanRequest (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 deactivatePlanCall(String id, Object deactivatePlanRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = deactivatePlanRequest; + public okhttp3.Call deactivatePlanCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + if ("POST".equalsIgnoreCase("POST")) { + localVarPostBody = "{}"; + } // create path and map variables String localVarPath = "/rbs/v1/plans/{id}/deactivate" @@ -387,7 +388,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce } @SuppressWarnings("rawtypes") - private okhttp3.Call deactivatePlanValidateBeforeCall(String id, Object deactivatePlanRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deactivatePlanValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -396,7 +397,7 @@ private okhttp3.Call deactivatePlanValidateBeforeCall(String id, Object deactiva } - okhttp3.Call call = deactivatePlanCall(id, deactivatePlanRequest, progressListener, progressRequestListener); + okhttp3.Call call = deactivatePlanCall(id, progressListener, progressRequestListener); return call; @@ -409,14 +410,13 @@ private okhttp3.Call deactivatePlanValidateBeforeCall(String id, Object deactiva * Deactivate a Plan * Deactivate a Plan * @param id Plan Id (required) - * @param deactivatePlanRequest (optional) * @return InlineResponse2004 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2004 deactivatePlan(String id, Object deactivatePlanRequest) throws ApiException { + public InlineResponse2004 deactivatePlan(String id) throws ApiException { logger.info("CALL TO METHOD 'deactivatePlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); - ApiResponse resp = deactivatePlanWithHttpInfo(id, deactivatePlanRequest); + ApiResponse resp = deactivatePlanWithHttpInfo(id); logger.info("CALL TO METHOD 'deactivatePlan' ENDED"); return resp.getData(); } @@ -425,12 +425,11 @@ public InlineResponse2004 deactivatePlan(String id, Object deactivatePlanRequest * Deactivate a Plan * Deactivate a Plan * @param id Plan Id (required) - * @param deactivatePlanRequest (optional) * @return ApiResponse<InlineResponse2004> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse deactivatePlanWithHttpInfo(String id, Object deactivatePlanRequest) throws ApiException { - okhttp3.Call call = deactivatePlanValidateBeforeCall(id, deactivatePlanRequest, null, null); + public ApiResponse deactivatePlanWithHttpInfo(String id) throws ApiException { + okhttp3.Call call = deactivatePlanValidateBeforeCall(id, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -439,12 +438,11 @@ public ApiResponse deactivatePlanWithHttpInfo(String id, Obj * Deactivate a Plan (asynchronously) * Deactivate a Plan * @param id Plan Id (required) - * @param deactivatePlanRequest (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 deactivatePlanAsync(String id, Object deactivatePlanRequest, final ApiCallback callback) throws ApiException { + public okhttp3.Call deactivatePlanAsync(String id, final ApiCallback callback) throws ApiException { this.apiClient.setComputationStartTime(System.nanoTime()); ProgressResponseBody.ProgressListener progressListener = null; @@ -466,7 +464,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - okhttp3.Call call = deactivatePlanValidateBeforeCall(id, deactivatePlanRequest, progressListener, progressRequestListener); + okhttp3.Call call = deactivatePlanValidateBeforeCall(id, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/src/main/java/Api/SubscriptionsApi.java b/src/main/java/Api/SubscriptionsApi.java index f190d199c..94f73b70f 100644 --- a/src/main/java/Api/SubscriptionsApi.java +++ b/src/main/java/Api/SubscriptionsApi.java @@ -76,14 +76,16 @@ public void setApiClient(ApiClient apiClient) { /** * Build call for activateSubscription * @param id Subscription Id (required) - * @param activateSubscriptionRequest (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 activateSubscriptionCall(String id, Object activateSubscriptionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = activateSubscriptionRequest; + public okhttp3.Call activateSubscriptionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + if ("POST".equalsIgnoreCase("POST")) { + localVarPostBody = "{}"; + } // create path and map variables String localVarPath = "/rbs/v1/subscriptions/{id}/activate" @@ -124,7 +126,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce } @SuppressWarnings("rawtypes") - private okhttp3.Call activateSubscriptionValidateBeforeCall(String id, Object activateSubscriptionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call activateSubscriptionValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -133,7 +135,7 @@ private okhttp3.Call activateSubscriptionValidateBeforeCall(String id, Object ac } - okhttp3.Call call = activateSubscriptionCall(id, activateSubscriptionRequest, progressListener, progressRequestListener); + okhttp3.Call call = activateSubscriptionCall(id, progressListener, progressRequestListener); return call; @@ -146,14 +148,13 @@ private okhttp3.Call activateSubscriptionValidateBeforeCall(String id, Object ac * Activate a Subscription * Activate a `CANCELLED` Or `SUSPENDED` Subscription * @param id Subscription Id (required) - * @param activateSubscriptionRequest (optional) * @return InlineResponse2009 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2009 activateSubscription(String id, Object activateSubscriptionRequest) throws ApiException { + public InlineResponse2009 activateSubscription(String id) throws ApiException { logger.info("CALL TO METHOD 'activateSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); - ApiResponse resp = activateSubscriptionWithHttpInfo(id, activateSubscriptionRequest); + ApiResponse resp = activateSubscriptionWithHttpInfo(id); logger.info("CALL TO METHOD 'activateSubscription' ENDED"); return resp.getData(); } @@ -162,12 +163,11 @@ public InlineResponse2009 activateSubscription(String id, Object activateSubscri * Activate a Subscription * Activate a `CANCELLED` Or `SUSPENDED` Subscription * @param id Subscription Id (required) - * @param activateSubscriptionRequest (optional) * @return ApiResponse<InlineResponse2009> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse activateSubscriptionWithHttpInfo(String id, Object activateSubscriptionRequest) throws ApiException { - okhttp3.Call call = activateSubscriptionValidateBeforeCall(id, activateSubscriptionRequest, null, null); + public ApiResponse activateSubscriptionWithHttpInfo(String id) throws ApiException { + okhttp3.Call call = activateSubscriptionValidateBeforeCall(id, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -176,12 +176,11 @@ public ApiResponse activateSubscriptionWithHttpInfo(String i * Activate a Subscription (asynchronously) * Activate a `CANCELLED` Or `SUSPENDED` Subscription * @param id Subscription Id (required) - * @param activateSubscriptionRequest (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 activateSubscriptionAsync(String id, Object activateSubscriptionRequest, final ApiCallback callback) throws ApiException { + public okhttp3.Call activateSubscriptionAsync(String id, final ApiCallback callback) throws ApiException { this.apiClient.setComputationStartTime(System.nanoTime()); ProgressResponseBody.ProgressListener progressListener = null; @@ -203,7 +202,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - okhttp3.Call call = activateSubscriptionValidateBeforeCall(id, activateSubscriptionRequest, progressListener, progressRequestListener); + okhttp3.Call call = activateSubscriptionValidateBeforeCall(id, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -211,14 +210,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for cancelSubscription * @param id Subscription Id (required) - * @param cancelSubscriptionRequest (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 cancelSubscriptionCall(String id, Object cancelSubscriptionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = cancelSubscriptionRequest; + public okhttp3.Call cancelSubscriptionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + if ("POST".equalsIgnoreCase("POST")) { + localVarPostBody = "{}"; + } // create path and map variables String localVarPath = "/rbs/v1/subscriptions/{id}/cancel" @@ -259,7 +260,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce } @SuppressWarnings("rawtypes") - private okhttp3.Call cancelSubscriptionValidateBeforeCall(String id, Object cancelSubscriptionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call cancelSubscriptionValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -268,7 +269,7 @@ private okhttp3.Call cancelSubscriptionValidateBeforeCall(String id, Object canc } - okhttp3.Call call = cancelSubscriptionCall(id, cancelSubscriptionRequest, progressListener, progressRequestListener); + okhttp3.Call call = cancelSubscriptionCall(id, progressListener, progressRequestListener); return call; @@ -281,14 +282,13 @@ private okhttp3.Call cancelSubscriptionValidateBeforeCall(String id, Object canc * Cancel a Subscription * Cancel a Subscription * @param id Subscription Id (required) - * @param cancelSubscriptionRequest (optional) * @return InlineResponse202 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse202 cancelSubscription(String id, Object cancelSubscriptionRequest) throws ApiException { + public InlineResponse202 cancelSubscription(String id) throws ApiException { logger.info("CALL TO METHOD 'cancelSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); - ApiResponse resp = cancelSubscriptionWithHttpInfo(id, cancelSubscriptionRequest); + ApiResponse resp = cancelSubscriptionWithHttpInfo(id); logger.info("CALL TO METHOD 'cancelSubscription' ENDED"); return resp.getData(); } @@ -297,12 +297,11 @@ public InlineResponse202 cancelSubscription(String id, Object cancelSubscription * Cancel a Subscription * Cancel a Subscription * @param id Subscription Id (required) - * @param cancelSubscriptionRequest (optional) * @return ApiResponse<InlineResponse202> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse cancelSubscriptionWithHttpInfo(String id, Object cancelSubscriptionRequest) throws ApiException { - okhttp3.Call call = cancelSubscriptionValidateBeforeCall(id, cancelSubscriptionRequest, null, null); + public ApiResponse cancelSubscriptionWithHttpInfo(String id) throws ApiException { + okhttp3.Call call = cancelSubscriptionValidateBeforeCall(id, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -311,12 +310,11 @@ public ApiResponse cancelSubscriptionWithHttpInfo(String id, * Cancel a Subscription (asynchronously) * Cancel a Subscription * @param id Subscription Id (required) - * @param cancelSubscriptionRequest (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 cancelSubscriptionAsync(String id, Object cancelSubscriptionRequest, final ApiCallback callback) throws ApiException { + public okhttp3.Call cancelSubscriptionAsync(String id, final ApiCallback callback) throws ApiException { this.apiClient.setComputationStartTime(System.nanoTime()); ProgressResponseBody.ProgressListener progressListener = null; @@ -338,7 +336,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - okhttp3.Call call = cancelSubscriptionValidateBeforeCall(id, cancelSubscriptionRequest, progressListener, progressRequestListener); + okhttp3.Call call = cancelSubscriptionValidateBeforeCall(id, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; @@ -880,14 +878,16 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don /** * Build call for suspendSubscription * @param id Subscription Id (required) - * @param suspendSubscriptionRequest (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 suspendSubscriptionCall(String id, Object suspendSubscriptionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = suspendSubscriptionRequest; + public okhttp3.Call suspendSubscriptionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + Object localVarPostBody = null; + if ("POST".equalsIgnoreCase("POST")) { + localVarPostBody = "{}"; + } // create path and map variables String localVarPath = "/rbs/v1/subscriptions/{id}/suspend" @@ -928,7 +928,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce } @SuppressWarnings("rawtypes") - private okhttp3.Call suspendSubscriptionValidateBeforeCall(String id, Object suspendSubscriptionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call suspendSubscriptionValidateBeforeCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { // verify the required parameter 'id' is set if (id == null) { @@ -937,7 +937,7 @@ private okhttp3.Call suspendSubscriptionValidateBeforeCall(String id, Object sus } - okhttp3.Call call = suspendSubscriptionCall(id, suspendSubscriptionRequest, progressListener, progressRequestListener); + okhttp3.Call call = suspendSubscriptionCall(id, progressListener, progressRequestListener); return call; @@ -950,14 +950,13 @@ private okhttp3.Call suspendSubscriptionValidateBeforeCall(String id, Object sus * Suspend a Subscription * Suspend a Subscription * @param id Subscription Id (required) - * @param suspendSubscriptionRequest (optional) * @return InlineResponse2021 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public InlineResponse2021 suspendSubscription(String id, Object suspendSubscriptionRequest) throws ApiException { + public InlineResponse2021 suspendSubscription(String id) throws ApiException { logger.info("CALL TO METHOD 'suspendSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); - ApiResponse resp = suspendSubscriptionWithHttpInfo(id, suspendSubscriptionRequest); + ApiResponse resp = suspendSubscriptionWithHttpInfo(id); logger.info("CALL TO METHOD 'suspendSubscription' ENDED"); return resp.getData(); } @@ -966,12 +965,11 @@ public InlineResponse2021 suspendSubscription(String id, Object suspendSubscript * Suspend a Subscription * Suspend a Subscription * @param id Subscription Id (required) - * @param suspendSubscriptionRequest (optional) * @return ApiResponse<InlineResponse2021> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ - public ApiResponse suspendSubscriptionWithHttpInfo(String id, Object suspendSubscriptionRequest) throws ApiException { - okhttp3.Call call = suspendSubscriptionValidateBeforeCall(id, suspendSubscriptionRequest, null, null); + public ApiResponse suspendSubscriptionWithHttpInfo(String id) throws ApiException { + okhttp3.Call call = suspendSubscriptionValidateBeforeCall(id, null, null); Type localVarReturnType = new TypeToken(){}.getType(); return apiClient.execute(call, localVarReturnType); } @@ -980,12 +978,11 @@ public ApiResponse suspendSubscriptionWithHttpInfo(String id * Suspend a Subscription (asynchronously) * Suspend a Subscription * @param id Subscription Id (required) - * @param suspendSubscriptionRequest (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 suspendSubscriptionAsync(String id, Object suspendSubscriptionRequest, final ApiCallback callback) throws ApiException { + public okhttp3.Call suspendSubscriptionAsync(String id, final ApiCallback callback) throws ApiException { this.apiClient.setComputationStartTime(System.nanoTime()); ProgressResponseBody.ProgressListener progressListener = null; @@ -1007,7 +1004,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don }; } - okhttp3.Call call = suspendSubscriptionValidateBeforeCall(id, suspendSubscriptionRequest, progressListener, progressRequestListener); + okhttp3.Call call = suspendSubscriptionValidateBeforeCall(id, progressListener, progressRequestListener); Type localVarReturnType = new TypeToken(){}.getType(); apiClient.executeAsync(call, localVarReturnType, callback); return call; diff --git a/src/main/java/Model/Ptsv2paymentsRecipientInformation.java b/src/main/java/Model/Ptsv2paymentsRecipientInformation.java index a40160749..8b9bd332b 100644 --- a/src/main/java/Model/Ptsv2paymentsRecipientInformation.java +++ b/src/main/java/Model/Ptsv2paymentsRecipientInformation.java @@ -40,6 +40,9 @@ public class Ptsv2paymentsRecipientInformation { @SerializedName("postalCode") private String postalCode = null; + @SerializedName("dateOfBirth") + private String dateOfBirth = null; + public Ptsv2paymentsRecipientInformation accountId(String accountId) { this.accountId = accountId; return this; @@ -112,6 +115,24 @@ public void setPostalCode(String postalCode) { this.postalCode = postalCode; } + public Ptsv2paymentsRecipientInformation dateOfBirth(String dateOfBirth) { + this.dateOfBirth = dateOfBirth; + return this; + } + + /** + * Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) + * @return dateOfBirth + **/ + @ApiModelProperty(value = "Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/) ") + public String getDateOfBirth() { + return dateOfBirth; + } + + public void setDateOfBirth(String dateOfBirth) { + this.dateOfBirth = dateOfBirth; + } + @Override public boolean equals(java.lang.Object o) { @@ -125,12 +146,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.accountId, ptsv2paymentsRecipientInformation.accountId) && Objects.equals(this.lastName, ptsv2paymentsRecipientInformation.lastName) && Objects.equals(this.middleName, ptsv2paymentsRecipientInformation.middleName) && - Objects.equals(this.postalCode, ptsv2paymentsRecipientInformation.postalCode); + Objects.equals(this.postalCode, ptsv2paymentsRecipientInformation.postalCode) && + Objects.equals(this.dateOfBirth, ptsv2paymentsRecipientInformation.dateOfBirth); } @Override public int hashCode() { - return Objects.hash(accountId, lastName, middleName, postalCode); + return Objects.hash(accountId, lastName, middleName, postalCode, dateOfBirth); } @@ -143,6 +165,7 @@ public String toString() { sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); sb.append(" middleName: ").append(toIndentedString(middleName)).append("\n"); sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" dateOfBirth: ").append(toIndentedString(dateOfBirth)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/Model/TssV2TransactionsGet200Response.java b/src/main/java/Model/TssV2TransactionsGet200Response.java index 9aa9b0c5c..0006a4f00 100644 --- a/src/main/java/Model/TssV2TransactionsGet200Response.java +++ b/src/main/java/Model/TssV2TransactionsGet200Response.java @@ -67,6 +67,9 @@ public class TssV2TransactionsGet200Response { @SerializedName("submitTimeUTC") private String submitTimeUTC = null; + @SerializedName("status") + private String status = null; + @SerializedName("applicationInformation") private TssV2TransactionsGet200ResponseApplicationInformation applicationInformation = null; @@ -223,6 +226,24 @@ public void setSubmitTimeUTC(String submitTimeUTC) { this.submitTimeUTC = submitTimeUTC; } + public TssV2TransactionsGet200Response status(String status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction.") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + public TssV2TransactionsGet200Response applicationInformation(TssV2TransactionsGet200ResponseApplicationInformation applicationInformation) { this.applicationInformation = applicationInformation; return this; @@ -642,6 +663,7 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.reconciliationId, tssV2TransactionsGet200Response.reconciliationId) && Objects.equals(this.merchantId, tssV2TransactionsGet200Response.merchantId) && Objects.equals(this.submitTimeUTC, tssV2TransactionsGet200Response.submitTimeUTC) && + Objects.equals(this.status, tssV2TransactionsGet200Response.status) && Objects.equals(this.applicationInformation, tssV2TransactionsGet200Response.applicationInformation) && Objects.equals(this.buyerInformation, tssV2TransactionsGet200Response.buyerInformation) && Objects.equals(this.clientReferenceInformation, tssV2TransactionsGet200Response.clientReferenceInformation) && @@ -668,7 +690,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, rootId, reconciliationId, merchantId, submitTimeUTC, applicationInformation, buyerInformation, clientReferenceInformation, consumerAuthenticationInformation, deviceInformation, errorInformation, installmentInformation, fraudMarkingInformation, healthCareInformation, merchantDefinedInformation, merchantInformation, orderInformation, paymentInformation, paymentInsightsInformation, payoutOptions, processingInformation, processorInformation, pointOfSaleInformation, riskInformation, senderInformation, tokenInformation, links); + return Objects.hash(id, rootId, reconciliationId, merchantId, submitTimeUTC, status, applicationInformation, buyerInformation, clientReferenceInformation, consumerAuthenticationInformation, deviceInformation, errorInformation, installmentInformation, fraudMarkingInformation, healthCareInformation, merchantDefinedInformation, merchantInformation, orderInformation, paymentInformation, paymentInsightsInformation, payoutOptions, processingInformation, processorInformation, pointOfSaleInformation, riskInformation, senderInformation, tokenInformation, links); } @@ -682,6 +704,7 @@ public String toString() { sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); sb.append(" submitTimeUTC: ").append(toIndentedString(submitTimeUTC)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" applicationInformation: ").append(toIndentedString(applicationInformation)).append("\n"); sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n"); sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); diff --git a/src/main/java/Model/TssV2TransactionsPost201Response.java b/src/main/java/Model/TssV2TransactionsPost201Response.java index c079d8135..374f912d3 100644 --- a/src/main/java/Model/TssV2TransactionsPost201Response.java +++ b/src/main/java/Model/TssV2TransactionsPost201Response.java @@ -60,9 +60,6 @@ public class TssV2TransactionsPost201Response { @SerializedName("totalCount") private Integer totalCount = null; - @SerializedName("status") - private String status = null; - @SerializedName("submitTimeUtc") private String submitTimeUtc = null; @@ -252,24 +249,6 @@ public void setTotalCount(Integer totalCount) { this.totalCount = totalCount; } - public TssV2TransactionsPost201Response status(String status) { - this.status = status; - return this; - } - - /** - * The status of the submitted transaction. - * @return status - **/ - @ApiModelProperty(value = "The status of the submitted transaction.") - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status; - } - public TssV2TransactionsPost201Response submitTimeUtc(String submitTimeUtc) { this.submitTimeUtc = submitTimeUtc; return this; @@ -344,7 +323,6 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.sort, tssV2TransactionsPost201Response.sort) && Objects.equals(this.count, tssV2TransactionsPost201Response.count) && Objects.equals(this.totalCount, tssV2TransactionsPost201Response.totalCount) && - Objects.equals(this.status, tssV2TransactionsPost201Response.status) && Objects.equals(this.submitTimeUtc, tssV2TransactionsPost201Response.submitTimeUtc) && Objects.equals(this.embedded, tssV2TransactionsPost201Response.embedded) && Objects.equals(this.links, tssV2TransactionsPost201Response.links); @@ -352,7 +330,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(searchId, save, name, timezone, query, offset, limit, sort, count, totalCount, status, submitTimeUtc, embedded, links); + return Objects.hash(searchId, save, name, timezone, query, offset, limit, sort, count, totalCount, submitTimeUtc, embedded, links); } @@ -371,7 +349,6 @@ public String toString() { sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" embedded: ").append(toIndentedString(embedded)).append("\n"); sb.append(" links: ").append(toIndentedString(links)).append("\n"); diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.java index 2e772e31e..4111d434b 100644 --- a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.java +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.java @@ -34,6 +34,12 @@ public class TssV2TransactionsPost201ResponseEmbeddedApplicationInformationAppli @SerializedName("reasonCode") private String reasonCode = null; + @SerializedName("status") + private String status = null; + + @SerializedName("reason") + private String reason = null; + @SerializedName("rCode") private String rCode = null; @@ -85,6 +91,42 @@ public void setReasonCode(String reasonCode) { this.reasonCode = reasonCode; } + public TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications status(String status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. Note: This field may not be returned for all transactions. + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction. Note: This field may not be returned for all transactions. ") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications reason(String reason) { + this.reason = reason; + return this; + } + + /** + * Description of why a request failed. Note: This field may not be returned for all transactions. + * @return reason + **/ + @ApiModelProperty(value = "Description of why a request failed. Note: This field may not be returned for all transactions. ") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + public TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications rCode(String rCode) { this.rCode = rCode; return this; @@ -187,6 +229,8 @@ public boolean equals(java.lang.Object o) { TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications = (TssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications) o; return Objects.equals(this.name, tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.name) && Objects.equals(this.reasonCode, tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.reasonCode) && + Objects.equals(this.status, tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.status) && + Objects.equals(this.reason, tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.reason) && Objects.equals(this.rCode, tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.rCode) && Objects.equals(this.rFlag, tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.rFlag) && Objects.equals(this.reconciliationId, tssV2TransactionsPost201ResponseEmbeddedApplicationInformationApplications.reconciliationId) && @@ -196,7 +240,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(name, reasonCode, rCode, rFlag, reconciliationId, rMessage, returnCode); + return Objects.hash(name, reasonCode, status, reason, rCode, rFlag, reconciliationId, rMessage, returnCode); } @@ -207,6 +251,8 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" reasonCode: ").append(toIndentedString(reasonCode)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append(" rCode: ").append(toIndentedString(rCode)).append("\n"); sb.append(" rFlag: ").append(toIndentedString(rFlag)).append("\n"); sb.append(" reconciliationId: ").append(toIndentedString(reconciliationId)).append("\n"); diff --git a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.java new file mode 100644 index 000000000..36a63f7f8 --- /dev/null +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedErrorInformation.java @@ -0,0 +1,93 @@ +/* + * 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 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; + +/** + * TssV2TransactionsPost201ResponseEmbeddedErrorInformation + */ + +public class TssV2TransactionsPost201ResponseEmbeddedErrorInformation { + @SerializedName("reason") + private String reason = null; + + public TssV2TransactionsPost201ResponseEmbeddedErrorInformation reason(String reason) { + this.reason = reason; + return this; + } + + /** + * Description of why a request failed. Note: This field may not be returned for all transactions. + * @return reason + **/ + @ApiModelProperty(value = "Description of why a request failed. Note: This field may not be returned for all transactions. ") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TssV2TransactionsPost201ResponseEmbeddedErrorInformation tssV2TransactionsPost201ResponseEmbeddedErrorInformation = (TssV2TransactionsPost201ResponseEmbeddedErrorInformation) o; + return Objects.equals(this.reason, tssV2TransactionsPost201ResponseEmbeddedErrorInformation.reason); + } + + @Override + public int hashCode() { + return Objects.hash(reason); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TssV2TransactionsPost201ResponseEmbeddedErrorInformation {\n"); + + sb.append(" reason: ").append(toIndentedString(reason)).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/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.java b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.java index 31ffd3f23..85a309b8c 100644 --- a/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.java +++ b/src/main/java/Model/TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.java @@ -21,6 +21,7 @@ import Model.TssV2TransactionsPost201ResponseEmbeddedBuyerInformation; import Model.TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation; import Model.TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation; +import Model.TssV2TransactionsPost201ResponseEmbeddedErrorInformation; import Model.TssV2TransactionsPost201ResponseEmbeddedLinks; import Model.TssV2TransactionsPost201ResponseEmbeddedMerchantInformation; import Model.TssV2TransactionsPost201ResponseEmbeddedOrderInformation; @@ -54,6 +55,9 @@ public class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries { @SerializedName("merchantId") private String merchantId = null; + @SerializedName("status") + private String status = null; + @SerializedName("applicationInformation") private TssV2TransactionsPost201ResponseEmbeddedApplicationInformation applicationInformation = null; @@ -69,6 +73,9 @@ public class TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries { @SerializedName("deviceInformation") private Riskv1authenticationresultsDeviceInformation deviceInformation = null; + @SerializedName("errorInformation") + private TssV2TransactionsPost201ResponseEmbeddedErrorInformation errorInformation = null; + @SerializedName("fraudMarkingInformation") private TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation = null; @@ -153,6 +160,24 @@ public void setMerchantId(String merchantId) { this.merchantId = merchantId; } + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries status(String status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. Note: This field may not be returned for all transactions. + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction. Note: This field may not be returned for all transactions. ") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries applicationInformation(TssV2TransactionsPost201ResponseEmbeddedApplicationInformation applicationInformation) { this.applicationInformation = applicationInformation; return this; @@ -243,6 +268,24 @@ public void setDeviceInformation(Riskv1authenticationresultsDeviceInformation de this.deviceInformation = deviceInformation; } + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries errorInformation(TssV2TransactionsPost201ResponseEmbeddedErrorInformation errorInformation) { + this.errorInformation = errorInformation; + return this; + } + + /** + * Get errorInformation + * @return errorInformation + **/ + @ApiModelProperty(value = "") + public TssV2TransactionsPost201ResponseEmbeddedErrorInformation getErrorInformation() { + return errorInformation; + } + + public void setErrorInformation(TssV2TransactionsPost201ResponseEmbeddedErrorInformation errorInformation) { + this.errorInformation = errorInformation; + } + public TssV2TransactionsPost201ResponseEmbeddedTransactionSummaries fraudMarkingInformation(TssV2TransactionsGet200ResponseFraudMarkingInformation fraudMarkingInformation) { this.fraudMarkingInformation = fraudMarkingInformation; return this; @@ -444,11 +487,13 @@ public boolean equals(java.lang.Object o) { return Objects.equals(this.id, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.id) && Objects.equals(this.submitTimeUtc, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.submitTimeUtc) && Objects.equals(this.merchantId, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.merchantId) && + Objects.equals(this.status, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.status) && Objects.equals(this.applicationInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.applicationInformation) && Objects.equals(this.buyerInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.buyerInformation) && Objects.equals(this.clientReferenceInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.clientReferenceInformation) && Objects.equals(this.consumerAuthenticationInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.consumerAuthenticationInformation) && Objects.equals(this.deviceInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.deviceInformation) && + Objects.equals(this.errorInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.errorInformation) && Objects.equals(this.fraudMarkingInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.fraudMarkingInformation) && Objects.equals(this.merchantDefinedInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.merchantDefinedInformation) && Objects.equals(this.merchantInformation, tssV2TransactionsPost201ResponseEmbeddedTransactionSummaries.merchantInformation) && @@ -463,7 +508,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { - return Objects.hash(id, submitTimeUtc, merchantId, applicationInformation, buyerInformation, clientReferenceInformation, consumerAuthenticationInformation, deviceInformation, fraudMarkingInformation, merchantDefinedInformation, merchantInformation, orderInformation, paymentInformation, processingInformation, processorInformation, pointOfSaleInformation, riskInformation, links); + return Objects.hash(id, submitTimeUtc, merchantId, status, applicationInformation, buyerInformation, clientReferenceInformation, consumerAuthenticationInformation, deviceInformation, errorInformation, fraudMarkingInformation, merchantDefinedInformation, merchantInformation, orderInformation, paymentInformation, processingInformation, processorInformation, pointOfSaleInformation, riskInformation, links); } @@ -475,11 +520,13 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" submitTimeUtc: ").append(toIndentedString(submitTimeUtc)).append("\n"); sb.append(" merchantId: ").append(toIndentedString(merchantId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" applicationInformation: ").append(toIndentedString(applicationInformation)).append("\n"); sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n"); sb.append(" clientReferenceInformation: ").append(toIndentedString(clientReferenceInformation)).append("\n"); sb.append(" consumerAuthenticationInformation: ").append(toIndentedString(consumerAuthenticationInformation)).append("\n"); sb.append(" deviceInformation: ").append(toIndentedString(deviceInformation)).append("\n"); + sb.append(" errorInformation: ").append(toIndentedString(errorInformation)).append("\n"); sb.append(" fraudMarkingInformation: ").append(toIndentedString(fraudMarkingInformation)).append("\n"); sb.append(" merchantDefinedInformation: ").append(toIndentedString(merchantDefinedInformation)).append("\n"); sb.append(" merchantInformation: ").append(toIndentedString(merchantInformation)).append("\n"); diff --git a/src/test/java/Api/PlansApiTest.java b/src/test/java/Api/PlansApiTest.java index bc5326079..82dd20d2b 100644 --- a/src/test/java/Api/PlansApiTest.java +++ b/src/test/java/Api/PlansApiTest.java @@ -54,8 +54,7 @@ public class PlansApiTest { @Test public void activatePlanTest() throws ApiException { String id = null; - Object activatePlanRequest = null; - InlineResponse2004 response = api.activatePlan(id, activatePlanRequest); + InlineResponse2004 response = api.activatePlan(id); // TODO: test validations } @@ -87,8 +86,7 @@ public void createPlanTest() throws ApiException { @Test public void deactivatePlanTest() throws ApiException { String id = null; - Object deactivatePlanRequest = null; - InlineResponse2004 response = api.deactivatePlan(id, deactivatePlanRequest); + InlineResponse2004 response = api.deactivatePlan(id); // TODO: test validations } diff --git a/src/test/java/Api/SubscriptionsApiTest.java b/src/test/java/Api/SubscriptionsApiTest.java index 7cf027c24..1a296ecdd 100644 --- a/src/test/java/Api/SubscriptionsApiTest.java +++ b/src/test/java/Api/SubscriptionsApiTest.java @@ -56,8 +56,7 @@ public class SubscriptionsApiTest { @Test public void activateSubscriptionTest() throws ApiException { String id = null; - Object activateSubscriptionRequest = null; - InlineResponse2009 response = api.activateSubscription(id, activateSubscriptionRequest); + InlineResponse2009 response = api.activateSubscription(id); // TODO: test validations } @@ -73,8 +72,7 @@ public void activateSubscriptionTest() throws ApiException { @Test public void cancelSubscriptionTest() throws ApiException { String id = null; - Object cancelSubscriptionRequest = null; - InlineResponse202 response = api.cancelSubscription(id, cancelSubscriptionRequest); + InlineResponse202 response = api.cancelSubscription(id); // TODO: test validations } @@ -156,8 +154,7 @@ public void getSubscriptionCodeTest() throws ApiException { @Test public void suspendSubscriptionTest() throws ApiException { String id = null; - Object suspendSubscriptionRequest = null; - InlineResponse2021 response = api.suspendSubscription(id, suspendSubscriptionRequest); + InlineResponse2021 response = api.suspendSubscription(id); // TODO: test validations } From 60116f0db97e435624c508f5ac079f28f1d8e80e Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Date: Thu, 22 Jun 2023 17:24:49 +0530 Subject: [PATCH 2/4] Added SDK Tracking utility --- .../libraries/okhttp-gson/api.mustache | 12 +- .../java/utilities/tracking/SdkTracker.java | 610 ++++++++++++++++++ 2 files changed, 617 insertions(+), 5 deletions(-) create mode 100644 src/main/java/utilities/tracking/SdkTracker.java diff --git a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache index ed3256f62..368207155 100644 --- a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache +++ b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache @@ -45,6 +45,7 @@ import java.util.Map; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; {{#operations}} public class {{classname}} { @@ -78,8 +79,9 @@ public class {{classname}} { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call {{operationId}}Call({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object {{localVariablePrefix}}localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; - {{^bodyParam}} + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(capturePaymentRequest, CapturePaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment());; +{{^bodyParam}} if ("{{httpMethod}}".equalsIgnoreCase("POST")) { {{localVariablePrefix}}localVarPostBody = "{}"; } @@ -135,7 +137,7 @@ public class {{classname}} { {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set if ({{paramName}} == null) { - logger.error("Missing the required parameter '{{paramName}}' when calling {{operationId}}(Async)"); + logger.error("Missing the required parameter '{{paramName}}' when calling {{operationId}}(Async)"); throw new ApiException("Missing the required parameter '{{paramName}}' when calling {{operationId}}(Async)"); } {{/required}}{{/allParams}} @@ -184,10 +186,10 @@ public class {{classname}} { * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public {{#returnType}}{{{returnType}}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{{dataType}}} {{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}) throws ApiException { - logger.info("CALL TO METHOD '{{operationId}}' STARTED"); + logger.info("CALL TO METHOD '{{operationId}}' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); {{#returnType}}ApiResponse<{{{returnType}}}> {{localVariablePrefix}}resp = {{/returnType}}{{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}); - {{#returnType}} + {{#returnType}} logger.info("CALL TO METHOD '{{operationId}}' ENDED"); return {{localVariablePrefix}}resp.getData();{{/returnType}} } diff --git a/src/main/java/utilities/tracking/SdkTracker.java b/src/main/java/utilities/tracking/SdkTracker.java new file mode 100644 index 000000000..9838ae1f4 --- /dev/null +++ b/src/main/java/utilities/tracking/SdkTracker.java @@ -0,0 +1,610 @@ +package utilities.tracking; + +import Model.*; + +public class SdkTracker { + public Object insertDeveloperIdTracker(Object requestObj, String requestClass, String runEnvironment) { + String developerIdValue; + if (runEnvironment.contains("apitest.cybersource.com")) { + developerIdValue = "CEOVXJBB"; + } + else { + developerIdValue = "SBBARODQ"; + } + + switch (requestClass) + { + case "CreateP12KeysRequest": + CreateP12KeysRequest createP12KeysRequest = (CreateP12KeysRequest)requestObj; + + if (createP12KeysRequest.getClientReferenceInformation() == null) + { + createP12KeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation()); + } + + if (createP12KeysRequest.getClientReferenceInformation().getPartner() == null) + { + createP12KeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (createP12KeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createP12KeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createP12KeysRequest; + case "DeleteBulkP12KeysRequest": + DeleteBulkP12KeysRequest deleteBulkP12KeysRequest = (DeleteBulkP12KeysRequest)requestObj; + + if (deleteBulkP12KeysRequest.getClientReferenceInformation() == null) + { + deleteBulkP12KeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation()); + } + + if (deleteBulkP12KeysRequest.getClientReferenceInformation().getPartner() == null) + { + deleteBulkP12KeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (deleteBulkP12KeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + deleteBulkP12KeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return deleteBulkP12KeysRequest; + case "CapturePaymentRequest": + CapturePaymentRequest capturePaymentRequest = (CapturePaymentRequest)requestObj; + + if (capturePaymentRequest.getClientReferenceInformation() == null) + { + capturePaymentRequest.setClientReferenceInformation(new Ptsv2paymentsClientReferenceInformation()); + } + + if (capturePaymentRequest.getClientReferenceInformation().getPartner() == null) + { + capturePaymentRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsClientReferenceInformationPartner()); + } + + if (capturePaymentRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + capturePaymentRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return capturePaymentRequest; + case "CreateCreditRequest": + CreateCreditRequest createCreditRequest = (CreateCreditRequest)requestObj; + + if (createCreditRequest.getClientReferenceInformation() == null) + { + createCreditRequest.setClientReferenceInformation(new Ptsv2paymentsClientReferenceInformation()); + } + + if (createCreditRequest.getClientReferenceInformation().getPartner() == null) + { + createCreditRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsClientReferenceInformationPartner()); + } + + if (createCreditRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createCreditRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createCreditRequest; + case "AddNegativeListRequest": + AddNegativeListRequest addNegativeListRequest = (AddNegativeListRequest)requestObj; + + if (addNegativeListRequest.getClientReferenceInformation() == null) + { + addNegativeListRequest.setClientReferenceInformation(new Riskv1liststypeentriesClientReferenceInformation()); + } + + if (addNegativeListRequest.getClientReferenceInformation().getPartner() == null) + { + addNegativeListRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (addNegativeListRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + addNegativeListRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return addNegativeListRequest; + case "CreateBundledDecisionManagerCaseRequest": + CreateBundledDecisionManagerCaseRequest createBundledDecisionManagerCaseRequest = (CreateBundledDecisionManagerCaseRequest)requestObj; + + if (createBundledDecisionManagerCaseRequest.getClientReferenceInformation() == null) + { + createBundledDecisionManagerCaseRequest.setClientReferenceInformation(new Riskv1decisionsClientReferenceInformation()); + } + + if (createBundledDecisionManagerCaseRequest.getClientReferenceInformation().getPartner() == null) + { + createBundledDecisionManagerCaseRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (createBundledDecisionManagerCaseRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createBundledDecisionManagerCaseRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createBundledDecisionManagerCaseRequest; + case "FraudMarkingActionRequest": + FraudMarkingActionRequest fraudMarkingActionRequest = (FraudMarkingActionRequest)requestObj; + + if (fraudMarkingActionRequest.getClientReferenceInformation() == null) + { + fraudMarkingActionRequest.setClientReferenceInformation(new Riskv1liststypeentriesClientReferenceInformation()); + } + + if (fraudMarkingActionRequest.getClientReferenceInformation().getPartner() == null) + { + fraudMarkingActionRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (fraudMarkingActionRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + fraudMarkingActionRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return fraudMarkingActionRequest; + case "CheckPayerAuthEnrollmentRequest": + CheckPayerAuthEnrollmentRequest checkPayerAuthEnrollmentRequest = (CheckPayerAuthEnrollmentRequest)requestObj; + + if (checkPayerAuthEnrollmentRequest.getClientReferenceInformation() == null) + { + checkPayerAuthEnrollmentRequest.setClientReferenceInformation(new Riskv1decisionsClientReferenceInformation()); + } + + if (checkPayerAuthEnrollmentRequest.getClientReferenceInformation().getPartner() == null) + { + checkPayerAuthEnrollmentRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (checkPayerAuthEnrollmentRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + checkPayerAuthEnrollmentRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return checkPayerAuthEnrollmentRequest; + case "PayerAuthSetupRequest": + PayerAuthSetupRequest payerAuthSetupRequest = (PayerAuthSetupRequest)requestObj; + + if (payerAuthSetupRequest.getClientReferenceInformation() == null) + { + payerAuthSetupRequest.setClientReferenceInformation(new Riskv1decisionsClientReferenceInformation()); + } + + if (payerAuthSetupRequest.getClientReferenceInformation().getPartner() == null) + { + payerAuthSetupRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (payerAuthSetupRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + payerAuthSetupRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return payerAuthSetupRequest; + case "ValidateRequest": + ValidateRequest validateRequest = (ValidateRequest)requestObj; + + if (validateRequest.getClientReferenceInformation() == null) + { + validateRequest.setClientReferenceInformation(new Riskv1decisionsClientReferenceInformation()); + } + + if (validateRequest.getClientReferenceInformation().getPartner() == null) + { + validateRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (validateRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + validateRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return validateRequest; + case "CreatePaymentRequest": + CreatePaymentRequest createPaymentRequest = (CreatePaymentRequest)requestObj; + + if (createPaymentRequest.getClientReferenceInformation() == null) + { + createPaymentRequest.setClientReferenceInformation(new Ptsv2paymentsClientReferenceInformation()); + } + + if (createPaymentRequest.getClientReferenceInformation().getPartner() == null) + { + createPaymentRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsClientReferenceInformationPartner()); + } + + if (createPaymentRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createPaymentRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createPaymentRequest; + case "IncrementAuthRequest": + IncrementAuthRequest incrementAuthRequest = (IncrementAuthRequest)requestObj; + + if (incrementAuthRequest.getClientReferenceInformation() == null) + { + incrementAuthRequest.setClientReferenceInformation(new Ptsv2paymentsidClientReferenceInformation()); + } + + if (incrementAuthRequest.getClientReferenceInformation().getPartner() == null) + { + incrementAuthRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsidClientReferenceInformationPartner()); + } + + if (incrementAuthRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + incrementAuthRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return incrementAuthRequest; + case "CreatePlanRequest": + CreatePlanRequest createPlanRequest = (CreatePlanRequest)requestObj; + + if (createPlanRequest.getClientReferenceInformation() == null) + { + createPlanRequest.setClientReferenceInformation(new Rbsv1plansClientReferenceInformation()); + } + + if (createPlanRequest.getClientReferenceInformation().getPartner() == null) + { + createPlanRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (createPlanRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createPlanRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createPlanRequest; + case "RefundCaptureRequest": + RefundCaptureRequest refundCaptureRequest = (RefundCaptureRequest)requestObj; + + if (refundCaptureRequest.getClientReferenceInformation() == null) + { + refundCaptureRequest.setClientReferenceInformation(new Ptsv2paymentsidrefundsClientReferenceInformation()); + } + + if (refundCaptureRequest.getClientReferenceInformation().getPartner() == null) + { + refundCaptureRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsClientReferenceInformationPartner()); + } + + if (refundCaptureRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + refundCaptureRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return refundCaptureRequest; + case "RefundPaymentRequest": + RefundPaymentRequest refundPaymentRequest = (RefundPaymentRequest)requestObj; + + if (refundPaymentRequest.getClientReferenceInformation() == null) + { + refundPaymentRequest.setClientReferenceInformation(new Ptsv2paymentsidrefundsClientReferenceInformation()); + } + + if (refundPaymentRequest.getClientReferenceInformation().getPartner() == null) + { + refundPaymentRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsClientReferenceInformationPartner()); + } + + if (refundPaymentRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + refundPaymentRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return refundPaymentRequest; + case "AuthReversalRequest": + AuthReversalRequest authReversalRequest = (AuthReversalRequest)requestObj; + + if (authReversalRequest.getClientReferenceInformation() == null) + { + authReversalRequest.setClientReferenceInformation(new Ptsv2paymentsidreversalsClientReferenceInformation()); + } + + if (authReversalRequest.getClientReferenceInformation().getPartner() == null) + { + authReversalRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsidreversalsClientReferenceInformationPartner()); + } + + if (authReversalRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + authReversalRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return authReversalRequest; + case "MitReversalRequest": + MitReversalRequest mitReversalRequest = (MitReversalRequest)requestObj; + + if (mitReversalRequest.getClientReferenceInformation() == null) + { + mitReversalRequest.setClientReferenceInformation(new Ptsv2paymentsClientReferenceInformation()); + } + + if (mitReversalRequest.getClientReferenceInformation().getPartner() == null) + { + mitReversalRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsClientReferenceInformationPartner()); + } + + if (mitReversalRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + mitReversalRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return mitReversalRequest; + case "CreateSubscriptionRequest": + CreateSubscriptionRequest createSubscriptionRequest = (CreateSubscriptionRequest)requestObj; + + if (createSubscriptionRequest.getClientReferenceInformation() == null) + { + createSubscriptionRequest.setClientReferenceInformation(new Rbsv1subscriptionsClientReferenceInformation()); + } + + if (createSubscriptionRequest.getClientReferenceInformation().getPartner() == null) + { + createSubscriptionRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (createSubscriptionRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createSubscriptionRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createSubscriptionRequest; + case "UpdateSubscription": + UpdateSubscription updateSubscription = (UpdateSubscription)requestObj; + + if (updateSubscription.getClientReferenceInformation() == null) + { + updateSubscription.setClientReferenceInformation(new Rbsv1subscriptionsClientReferenceInformation()); + } + + if (updateSubscription.getClientReferenceInformation().getPartner() == null) + { + updateSubscription.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (updateSubscription.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + updateSubscription.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return updateSubscription; + case "CreateSharedSecretKeysRequest": + CreateSharedSecretKeysRequest createSharedSecretKeysRequest = (CreateSharedSecretKeysRequest)requestObj; + + if (createSharedSecretKeysRequest.getClientReferenceInformation() == null) + { + createSharedSecretKeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation()); + } + + if (createSharedSecretKeysRequest.getClientReferenceInformation().getPartner() == null) + { + createSharedSecretKeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (createSharedSecretKeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createSharedSecretKeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createSharedSecretKeysRequest; + case "CreateSharedSecretKeysVerifiRequest": + CreateSharedSecretKeysVerifiRequest createSharedSecretKeysVerifiRequest = (CreateSharedSecretKeysVerifiRequest)requestObj; + + if (createSharedSecretKeysVerifiRequest.getClientReferenceInformation() == null) + { + createSharedSecretKeysVerifiRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation()); + } + + if (createSharedSecretKeysVerifiRequest.getClientReferenceInformation().getPartner() == null) + { + createSharedSecretKeysVerifiRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (createSharedSecretKeysVerifiRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + createSharedSecretKeysVerifiRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return createSharedSecretKeysVerifiRequest; + case "DeleteBulkSymmetricKeysRequest": + DeleteBulkSymmetricKeysRequest deleteBulkSymmetricKeysRequest = (DeleteBulkSymmetricKeysRequest)requestObj; + + if (deleteBulkSymmetricKeysRequest.getClientReferenceInformation() == null) + { + deleteBulkSymmetricKeysRequest.setClientReferenceInformation(new Kmsv2keyssymClientReferenceInformation()); + } + + if (deleteBulkSymmetricKeysRequest.getClientReferenceInformation().getPartner() == null) + { + deleteBulkSymmetricKeysRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (deleteBulkSymmetricKeysRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + deleteBulkSymmetricKeysRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return deleteBulkSymmetricKeysRequest; + case "TaxRequest": + TaxRequest taxRequest = (TaxRequest)requestObj; + + if (taxRequest.getClientReferenceInformation() == null) + { + taxRequest.setClientReferenceInformation(new Vasv2taxClientReferenceInformation()); + } + + if (taxRequest.getClientReferenceInformation().getPartner() == null) + { + taxRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (taxRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + taxRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return taxRequest; + case "VoidTaxRequest": + VoidTaxRequest voidTaxRequest = (VoidTaxRequest)requestObj; + + if (voidTaxRequest.getClientReferenceInformation() == null) + { + voidTaxRequest.setClientReferenceInformation(new Vasv2taxidClientReferenceInformation()); + } + + if (voidTaxRequest.getClientReferenceInformation().getPartner() == null) + { + voidTaxRequest.getClientReferenceInformation().setPartner(new Vasv2taxidClientReferenceInformationPartner()); + } + + if (voidTaxRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + voidTaxRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return voidTaxRequest; + case "ValidateExportComplianceRequest": + ValidateExportComplianceRequest validateExportComplianceRequest = (ValidateExportComplianceRequest)requestObj; + + if (validateExportComplianceRequest.getClientReferenceInformation() == null) + { + validateExportComplianceRequest.setClientReferenceInformation(new Riskv1liststypeentriesClientReferenceInformation()); + } + + if (validateExportComplianceRequest.getClientReferenceInformation().getPartner() == null) + { + validateExportComplianceRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (validateExportComplianceRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + validateExportComplianceRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return validateExportComplianceRequest; + case "VerifyCustomerAddressRequest": + VerifyCustomerAddressRequest verifyCustomerAddressRequest = (VerifyCustomerAddressRequest)requestObj; + + if (verifyCustomerAddressRequest.getClientReferenceInformation() == null) + { + verifyCustomerAddressRequest.setClientReferenceInformation(new Riskv1liststypeentriesClientReferenceInformation()); + } + + if (verifyCustomerAddressRequest.getClientReferenceInformation().getPartner() == null) + { + verifyCustomerAddressRequest.getClientReferenceInformation().setPartner(new Riskv1decisionsClientReferenceInformationPartner()); + } + + if (verifyCustomerAddressRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + verifyCustomerAddressRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return verifyCustomerAddressRequest; + case "MitVoidRequest": + MitVoidRequest mitVoidRequest = (MitVoidRequest)requestObj; + + if (mitVoidRequest.getClientReferenceInformation() == null) + { + mitVoidRequest.setClientReferenceInformation(new Ptsv2paymentsClientReferenceInformation()); + } + + if (mitVoidRequest.getClientReferenceInformation().getPartner() == null) + { + mitVoidRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsClientReferenceInformationPartner()); + } + + if (mitVoidRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + mitVoidRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return mitVoidRequest; + case "VoidCaptureRequest": + VoidCaptureRequest voidCaptureRequest = (VoidCaptureRequest)requestObj; + + if (voidCaptureRequest.getClientReferenceInformation() == null) + { + voidCaptureRequest.setClientReferenceInformation(new Ptsv2paymentsidreversalsClientReferenceInformation()); + } + + if (voidCaptureRequest.getClientReferenceInformation().getPartner() == null) + { + voidCaptureRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsidreversalsClientReferenceInformationPartner()); + } + + if (voidCaptureRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + voidCaptureRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return voidCaptureRequest; + case "VoidCreditRequest": + VoidCreditRequest voidCreditRequest = (VoidCreditRequest)requestObj; + + if (voidCreditRequest.getClientReferenceInformation() == null) + { + voidCreditRequest.setClientReferenceInformation(new Ptsv2paymentsidreversalsClientReferenceInformation()); + } + + if (voidCreditRequest.getClientReferenceInformation().getPartner() == null) + { + voidCreditRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsidreversalsClientReferenceInformationPartner()); + } + + if (voidCreditRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + voidCreditRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return voidCreditRequest; + case "VoidPaymentRequest": + VoidPaymentRequest voidPaymentRequest = (VoidPaymentRequest)requestObj; + + if (voidPaymentRequest.getClientReferenceInformation() == null) + { + voidPaymentRequest.setClientReferenceInformation(new Ptsv2paymentsidreversalsClientReferenceInformation()); + } + + if (voidPaymentRequest.getClientReferenceInformation().getPartner() == null) + { + voidPaymentRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsidreversalsClientReferenceInformationPartner()); + } + + if (voidPaymentRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + voidPaymentRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return voidPaymentRequest; + case "VoidRefundRequest": + VoidRefundRequest voidRefundRequest = (VoidRefundRequest)requestObj; + + if (voidRefundRequest.getClientReferenceInformation() == null) + { + voidRefundRequest.setClientReferenceInformation(new Ptsv2paymentsidreversalsClientReferenceInformation()); + } + + if (voidRefundRequest.getClientReferenceInformation().getPartner() == null) + { + voidRefundRequest.getClientReferenceInformation().setPartner(new Ptsv2paymentsidreversalsClientReferenceInformationPartner()); + } + + if (voidRefundRequest.getClientReferenceInformation().getPartner().getDeveloperId() == null) + { + voidRefundRequest.getClientReferenceInformation().getPartner().setDeveloperId(developerIdValue); + } + + return voidRefundRequest; + default: + return requestObj; + } + } +} From 2f29d800eae8fa97106d4a90430b787652dc4b5b Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Date: Thu, 22 Jun 2023 17:49:58 +0530 Subject: [PATCH 3/4] Added SDK Tracking utility --- .../libraries/okhttp-gson/api.mustache | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache index 368207155..5af49fdb7 100644 --- a/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache +++ b/generator/cybersource-java-template/libraries/okhttp-gson/api.mustache @@ -80,7 +80,7 @@ public class {{classname}} { */ public okhttp3.Call {{operationId}}Call({{#allParams}}{{{dataType}}} {{paramName}}, {{/allParams}}final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { SdkTracker sdkTracker = new SdkTracker(); - Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(capturePaymentRequest, CapturePaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment());; + Object localVarPostBody = {{#bodyParam}}sdkTracker.insertDeveloperIdTracker({{paramName}}, {{dataType}}.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()){{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{^bodyParam}} if ("{{httpMethod}}".equalsIgnoreCase("POST")) { {{localVariablePrefix}}localVarPostBody = "{}"; From 47ac6f2470f885ad1f7fb477ce57de3502db4c41 Mon Sep 17 00:00:00 2001 From: Gaurav Bansal Date: Tue, 27 Jun 2023 12:17:01 +0530 Subject: [PATCH 4/4] june spec changes --- docs/PlansApi.md | 16 +- docs/PtsV2PaymentsPost201Response.md | 1 + ...2PaymentsPost201ResponseEmbeddedActions.md | 14 ++ ...tsPost201ResponseEmbeddedActionsCAPTURE.md | 12 ++ ...seEmbeddedActionsCONSUMERAUTHENTICATION.md | 12 ++ ...sPost201ResponseEmbeddedActionsDECISION.md | 12 ++ ...sponseEmbeddedActionsWATCHLISTSCREENING.md | 12 ++ docs/Ptsv2paymentsProcessingInformation.md | 2 +- docs/SubscriptionsApi.md | 16 +- generator/cybersource-rest-spec.json | 141 ++++++++++++- .../java/Api/AsymmetricKeyManagementApi.java | 29 +-- src/main/java/Api/BatchesApi.java | 21 +- src/main/java/Api/CaptureApi.java | 10 +- src/main/java/Api/ChargebackDetailsApi.java | 8 +- src/main/java/Api/ChargebackSummariesApi.java | 8 +- src/main/java/Api/ConversionDetailsApi.java | 8 +- src/main/java/Api/CreditApi.java | 8 +- src/main/java/Api/CustomerApi.java | 27 ++- .../Api/CustomerPaymentInstrumentApi.java | 40 ++-- .../java/Api/CustomerShippingAddressApi.java | 40 ++-- src/main/java/Api/DecisionManagerApi.java | 26 ++- src/main/java/Api/DownloadDTDApi.java | 6 +- src/main/java/Api/DownloadXSDApi.java | 6 +- src/main/java/Api/EMVTagDetailsApi.java | 11 +- .../java/Api/InstrumentIdentifierApi.java | 41 ++-- .../InterchangeClearingLevelDetailsApi.java | 8 +- src/main/java/Api/InvoiceSettingsApi.java | 11 +- src/main/java/Api/InvoicesApi.java | 39 ++-- src/main/java/Api/KeyManagementApi.java | 4 +- .../java/Api/KeyManagementPasswordApi.java | 10 +- src/main/java/Api/KeyManagementPgpApi.java | 10 +- src/main/java/Api/KeyManagementScmpApi.java | 10 +- .../java/Api/MicroformIntegrationApi.java | 8 +- src/main/java/Api/NetFundingsApi.java | 8 +- .../java/Api/NotificationOfChangesApi.java | 8 +- src/main/java/Api/PayerAuthenticationApi.java | 22 +- .../java/Api/PaymentBatchSummariesApi.java | 8 +- src/main/java/Api/PaymentInstrumentApi.java | 27 ++- src/main/java/Api/PaymentsApi.java | 26 ++- src/main/java/Api/PayoutsApi.java | 8 +- src/main/java/Api/PlansApi.java | 59 +++--- .../java/Api/PurchaseAndRefundDetailsApi.java | 8 +- src/main/java/Api/PushFundsApi.java | 20 +- src/main/java/Api/RefundApi.java | 19 +- src/main/java/Api/ReportDefinitionsApi.java | 9 +- src/main/java/Api/ReportDownloadsApi.java | 8 +- src/main/java/Api/ReportSubscriptionsApi.java | 28 ++- src/main/java/Api/ReportsApi.java | 22 +- src/main/java/Api/RetrievalDetailsApi.java | 8 +- src/main/java/Api/RetrievalSummariesApi.java | 8 +- src/main/java/Api/ReversalApi.java | 17 +- src/main/java/Api/SearchTransactionsApi.java | 13 +- src/main/java/Api/SecureFileShareApi.java | 13 +- src/main/java/Api/SubscriptionsApi.java | 59 +++--- .../java/Api/SymmetricKeyManagementApi.java | 29 +-- src/main/java/Api/TaxesApi.java | 17 +- src/main/java/Api/TokenApi.java | 6 +- src/main/java/Api/TransactionBatchesApi.java | 18 +- src/main/java/Api/TransactionDetailsApi.java | 6 +- src/main/java/Api/TransientTokenDataApi.java | 6 +- .../Api/UnifiedCheckoutCaptureContextApi.java | 8 +- src/main/java/Api/UserManagementApi.java | 4 +- .../java/Api/UserManagementSearchApi.java | 8 +- src/main/java/Api/VerificationApi.java | 15 +- src/main/java/Api/VoidApi.java | 44 ++-- .../Model/PtsV2PaymentsPost201Response.java | 26 ++- ...aymentsPost201ResponseEmbeddedActions.java | 190 ++++++++++++++++++ ...Post201ResponseEmbeddedActionsCAPTURE.java | 139 +++++++++++++ ...EmbeddedActionsCONSUMERAUTHENTICATION.java | 139 +++++++++++++ ...ost201ResponseEmbeddedActionsDECISION.java | 139 +++++++++++++ ...onseEmbeddedActionsWATCHLISTSCREENING.java | 139 +++++++++++++ .../Ptsv2paymentsProcessingInformation.java | 4 +- 72 files changed, 1559 insertions(+), 403 deletions(-) create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md create mode 100644 docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md create mode 100644 src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActions.java create mode 100644 src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.java create mode 100644 src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.java create mode 100644 src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.java create mode 100644 src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.java diff --git a/docs/PlansApi.md b/docs/PlansApi.md index f33e1c801..d758ac608 100644 --- a/docs/PlansApi.md +++ b/docs/PlansApi.md @@ -57,7 +57,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **createPlan** @@ -102,7 +102,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **deactivatePlan** @@ -147,7 +147,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **deletePlan** @@ -192,7 +192,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **getPlan** @@ -237,7 +237,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **getPlanCode** @@ -278,7 +278,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **getPlans** @@ -331,7 +331,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **updatePlan** @@ -378,5 +378,5 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 diff --git a/docs/PtsV2PaymentsPost201Response.md b/docs/PtsV2PaymentsPost201Response.md index 3c678b65f..f2e0be14e 100644 --- a/docs/PtsV2PaymentsPost201Response.md +++ b/docs/PtsV2PaymentsPost201Response.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **buyerInformation** | [**PtsV2PaymentsPost201ResponseBuyerInformation**](PtsV2PaymentsPost201ResponseBuyerInformation.md) | | [optional] **riskInformation** | [**PtsV2PaymentsPost201ResponseRiskInformation**](PtsV2PaymentsPost201ResponseRiskInformation.md) | | [optional] **consumerAuthenticationInformation** | [**PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation**](PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation.md) | | [optional] +**embeddedActions** | [**PtsV2PaymentsPost201ResponseEmbeddedActions**](PtsV2PaymentsPost201ResponseEmbeddedActions.md) | | [optional] **watchlistScreeningInformation** | [**PtsV2PaymentsPost201ResponseWatchlistScreeningInformation**](PtsV2PaymentsPost201ResponseWatchlistScreeningInformation.md) | | [optional] diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md new file mode 100644 index 000000000..36cc0ab64 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActions.md @@ -0,0 +1,14 @@ + +# PtsV2PaymentsPost201ResponseEmbeddedActions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CAPTURE** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE**](PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md) | | [optional] +**DECISION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION**](PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md) | | [optional] +**CONSUMER_AUTHENTICATION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional] +**VALIDATE_CONSUMER_AUTHENTICATION** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION**](PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md) | | [optional] +**WATCHLIST_SCREENING** | [**PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING**](PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md) | | [optional] + + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md new file mode 100644 index 000000000..ceefc3cfc --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.md @@ -0,0 +1,12 @@ + +# PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | The status of the submitted transaction. Possible values: - PENDING | [optional] +**reason** | **String** | The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED | [optional] +**message** | **String** | The detail message related to the status and reason listed above. | [optional] + + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md new file mode 100644 index 000000000..d0958aab9 --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.md @@ -0,0 +1,12 @@ + +# PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` | [optional] +**reason** | **String** | The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` | [optional] +**message** | **String** | The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. | [optional] + + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md new file mode 100644 index 000000000..56701a60d --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.md @@ -0,0 +1,12 @@ + +# PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` | [optional] +**reason** | **String** | The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` | [optional] +**message** | **String** | The detail message related to the status and reason listed above. | [optional] + + + diff --git a/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md new file mode 100644 index 000000000..c3879b29b --- /dev/null +++ b/docs/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.md @@ -0,0 +1,12 @@ + +# PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**status** | **String** | The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED | [optional] +**reason** | **String** | The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` | [optional] +**message** | **String** | The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match | [optional] + + + diff --git a/docs/Ptsv2paymentsProcessingInformation.md b/docs/Ptsv2paymentsProcessingInformation.md index 64a1165cd..1a18b92e5 100644 --- a/docs/Ptsv2paymentsProcessingInformation.md +++ b/docs/Ptsv2paymentsProcessingInformation.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**actionList** | **List<String>** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. | [optional] +**actionList** | **List<String>** | Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. | [optional] **enableEscrowOption** | **Boolean** | Indicates whether to use the customer’s escrow agreement. Possible values: - `true`: yes, use the customer’s escrow agreement. - `false`: no, do not use the customer’s escrow agreement. | [optional] **actionTokenTypes** | **List<String>** | CyberSource tokens types you are performing a create on. If not supplied the default token type for the merchants token vault will be used. Valid values: - customer - paymentInstrument - instrumentIdentifier - shippingAddress | [optional] **binSource** | **String** | Bin Source File Identifier. Possible values: - itmx - rupay | [optional] diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index c643a1c54..914b1271b 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -57,7 +57,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **cancelSubscription** @@ -102,7 +102,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **createSubscription** @@ -147,7 +147,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **getAllSubscriptions** @@ -198,7 +198,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **getSubscription** @@ -243,7 +243,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **getSubscriptionCode** @@ -284,7 +284,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **suspendSubscription** @@ -329,7 +329,7 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 # **updateSubscription** @@ -376,5 +376,5 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json;charset=utf-8 - - **Accept**: application/hal+json;charset=utf-8 + - **Accept**: application/json;charset=utf-8 diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index e2c4a75b8..77ceeb709 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -445,7 +445,7 @@ "properties": { "actionList": { "type": "array", - "description": "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment.\n\nPossible values are one or more of follows:\n\n - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s).\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request.\n\n - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request.\n\n - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request.\n \n - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.\n\n - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.\n", + "description": "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment.\n\nPossible values are one or more of follows:\n\n - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s).\n\n - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request.\n\n - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request.\n\n - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request.\n \n - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested.\n\n - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service.\n", "items": { "type": "string" } @@ -6358,6 +6358,97 @@ } } }, + "embeddedActions": { + "type": "object", + "description": "Contains embedded actions, that includes status and response for every actions in the list.", + "properties": { + "CAPTURE": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted transaction.\n\nPossible values:\n - PENDING\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - MISSING_FIELD\n - INVALID_DATA\n - DUPLICATE_REQUEST\n - INVALID_MERCHANT_CONFIGURATION\n - EXCEEDS_AUTH_AMOUNT\n - AUTH_ALREADY_REVERSED\n - TRANSACTION_ALREADY_SETTLED\n - INVALID_AMOUNT\n - MISSING_AUTH\n - TRANSACTION_ALREADY_REVERSED_OR_SETTLED\n - NOT_SUPPORTED\n" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + } + } + }, + "DECISION": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted transaction.\n\nPossible values:\n - `ACCEPTED`\n - `REJECTED`\n - `PENDING_REVIEW`\n - `DECLINED`\n - `PENDING_AUTHENTICATION`\n - `INVALID_REQUEST`\n - `AUTHENTICATION_FAILED`\n - `CHALLENGE`\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status.\n\nPossible values:\n - `EXPIRED_CARD`\n - `SCORE_EXCEEDS_THRESHOLD`\n - `DECISION_PROFILE_REVIEW`\n - `DECISION_PROFILE_REJECT`\n - `CONSUMER_AUTHENTICATION_REQUIRED`\n - `INVALID_MERCHANT_CONFIGURATION`\n - `CONSUMER_AUTHENTICATION_FAILED`\n - `DECISION_PROFILE_CHALLENGE`\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + } + } + }, + "CONSUMER_AUTHENTICATION": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value is:\n- Encountered a Payer Authentication problem. Payer could not be authenticated.\n" + } + } + }, + "VALIDATE_CONSUMER_AUTHENTICATION": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status for payerAuthentication 201 enroll and validate calls. Possible values are:\n- `AUTHENTICATION_SUCCESSFUL`\n- `PENDING_AUTHENTICATION`\n- `INVALID_REQUEST`\n- `AUTHENTICATION_FAILED`\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status. Possible values are:\n- `INVALID_MERCHANT_CONFIGURATION`\n- `CONSUMER_AUTHENTICATION_REQUIRED`\n- `CONSUMER_AUTHENTICATION_FAILED`\n- `AUTHENTICATION_FAILED`\n" + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value is:\n- Encountered a Payer Authentication problem. Payer could not be authenticated.\n" + } + } + }, + "WATCHLIST_SCREENING": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status for the call can be:\n- COMPLETED\n- INVALID_REQUEST\n- DECLINED\n" + }, + "reason": { + "type": "string", + "description": "The reason of the status. Value can be\n - `CUSTOMER_WATCHLIST_MATCH`\n - `ADDRESS_COUNTRY_WATCHLIST_MATCH`\n - `EMAIL_COUNTRY_WATCHLIST_MATCH`\n - `IP_COUNTRY_WATCHLIST_MATCH`\n - `INVALID_MERCHANT_CONFIGURATION`\n" + }, + "message": { + "type": "string", + "description": "The message describing the reason of the status. Value can be\n - The customer matched the Denied Parties List\n - The Export bill_country/ship_country match\n - Export email_country match\n - Export hostname_country/ip_country match\n" + } + } + } + } + }, "watchlistScreeningInformation": { "type": "object", "properties": { @@ -59521,6 +59612,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createPlanRequest", @@ -59844,6 +59938,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "offset", @@ -60126,6 +60223,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60337,6 +60437,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60646,6 +60749,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60768,6 +60874,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -60927,6 +61036,9 @@ "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", "disableProcessorDropDown": true }, + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -61081,6 +61193,9 @@ "Plans" ], "operationId": "getPlanCode", + "produces": [ + "application/json;charset=utf-8" + ], "x-devcenter-metaData": { "categoryTag": "Recurring_Billing_Subscriptions", "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", @@ -61184,6 +61299,9 @@ "disableProcessorDropDown": true }, "operationId": "createSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "createSubscriptionRequest", @@ -61642,6 +61760,9 @@ "disableProcessorDropDown": true }, "operationId": "getAllSubscriptions", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "offset", @@ -62010,6 +62131,9 @@ "disableProcessorDropDown": true }, "operationId": "getSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62314,6 +62438,9 @@ "disableProcessorDropDown": true }, "operationId": "updateSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62681,6 +62808,9 @@ "disableProcessorDropDown": true }, "operationId": "cancelSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62840,6 +62970,9 @@ "disableProcessorDropDown": true }, "operationId": "suspendSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -62999,6 +63132,9 @@ "disableProcessorDropDown": true }, "operationId": "activateSubscription", + "produces": [ + "application/json;charset=utf-8" + ], "parameters": [ { "name": "id", @@ -63153,6 +63289,9 @@ "Subscriptions" ], "operationId": "getSubscriptionCode", + "produces": [ + "application/json;charset=utf-8" + ], "x-devcenter-metaData": { "categoryTag": "Recurring_Billing_Subscriptions", "developerGuides": "https://developer.cybersource.com/docs/cybs/en-us/recurring-billing/developer/all/rest/recurring-billing/recur-bill-dev-intro.html", diff --git a/src/main/java/Api/AsymmetricKeyManagementApi.java b/src/main/java/Api/AsymmetricKeyManagementApi.java index fb84f15ae..7d65aa8b9 100644 --- a/src/main/java/Api/AsymmetricKeyManagementApi.java +++ b/src/main/java/Api/AsymmetricKeyManagementApi.java @@ -47,6 +47,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class AsymmetricKeyManagementApi { private static Logger logger = LogManager.getLogger(AsymmetricKeyManagementApi.class); @@ -78,7 +79,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createP12KeysCall(CreateP12KeysRequest createP12KeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createP12KeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createP12KeysRequest, CreateP12KeysRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-asym"; @@ -122,7 +124,7 @@ private okhttp3.Call createP12KeysValidateBeforeCall(CreateP12KeysRequest create // verify the required parameter 'createP12KeysRequest' is set if (createP12KeysRequest == null) { - logger.error("Missing the required parameter 'createP12KeysRequest' when calling createP12Keys(Async)"); + logger.error("Missing the required parameter 'createP12KeysRequest' when calling createP12Keys(Async)"); throw new ApiException("Missing the required parameter 'createP12KeysRequest' when calling createP12Keys(Async)"); } @@ -144,7 +146,7 @@ private okhttp3.Call createP12KeysValidateBeforeCall(CreateP12KeysRequest create * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public KmsV2KeysAsymPost201Response createP12Keys(CreateP12KeysRequest createP12KeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'createP12Keys' STARTED"); + logger.info("CALL TO METHOD 'createP12Keys' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createP12KeysWithHttpInfo(createP12KeysRequest); logger.info("CALL TO METHOD 'createP12Keys' ENDED"); @@ -208,7 +210,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deleteBulkP12KeysCall(DeleteBulkP12KeysRequest deleteBulkP12KeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = deleteBulkP12KeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(deleteBulkP12KeysRequest, DeleteBulkP12KeysRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-asym/deletes"; @@ -252,7 +255,7 @@ private okhttp3.Call deleteBulkP12KeysValidateBeforeCall(DeleteBulkP12KeysReques // verify the required parameter 'deleteBulkP12KeysRequest' is set if (deleteBulkP12KeysRequest == null) { - logger.error("Missing the required parameter 'deleteBulkP12KeysRequest' when calling deleteBulkP12Keys(Async)"); + logger.error("Missing the required parameter 'deleteBulkP12KeysRequest' when calling deleteBulkP12Keys(Async)"); throw new ApiException("Missing the required parameter 'deleteBulkP12KeysRequest' when calling deleteBulkP12Keys(Async)"); } @@ -274,7 +277,7 @@ private okhttp3.Call deleteBulkP12KeysValidateBeforeCall(DeleteBulkP12KeysReques * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public KmsV2KeysAsymDeletesPost200Response deleteBulkP12Keys(DeleteBulkP12KeysRequest deleteBulkP12KeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'deleteBulkP12Keys' STARTED"); + logger.info("CALL TO METHOD 'deleteBulkP12Keys' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = deleteBulkP12KeysWithHttpInfo(deleteBulkP12KeysRequest); logger.info("CALL TO METHOD 'deleteBulkP12Keys' ENDED"); @@ -338,6 +341,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getP12KeyDetailsCall(String keyId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -386,7 +390,7 @@ private okhttp3.Call getP12KeyDetailsValidateBeforeCall(String keyId, final Prog // verify the required parameter 'keyId' is set if (keyId == null) { - logger.error("Missing the required parameter 'keyId' when calling getP12KeyDetails(Async)"); + logger.error("Missing the required parameter 'keyId' when calling getP12KeyDetails(Async)"); throw new ApiException("Missing the required parameter 'keyId' when calling getP12KeyDetails(Async)"); } @@ -408,7 +412,7 @@ private okhttp3.Call getP12KeyDetailsValidateBeforeCall(String keyId, final Prog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public KmsV2KeysAsymGet200Response getP12KeyDetails(String keyId) throws ApiException { - logger.info("CALL TO METHOD 'getP12KeyDetails' STARTED"); + logger.info("CALL TO METHOD 'getP12KeyDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getP12KeyDetailsWithHttpInfo(keyId); logger.info("CALL TO METHOD 'getP12KeyDetails' ENDED"); @@ -473,7 +477,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updateAsymKeyCall(String keyId, UpdateAsymKeysRequest updateAsymKeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = updateAsymKeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updateAsymKeysRequest, UpdateAsymKeysRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-asym/{keyId}" @@ -518,13 +523,13 @@ private okhttp3.Call updateAsymKeyValidateBeforeCall(String keyId, UpdateAsymKey // verify the required parameter 'keyId' is set if (keyId == null) { - logger.error("Missing the required parameter 'keyId' when calling updateAsymKey(Async)"); + logger.error("Missing the required parameter 'keyId' when calling updateAsymKey(Async)"); throw new ApiException("Missing the required parameter 'keyId' when calling updateAsymKey(Async)"); } // verify the required parameter 'updateAsymKeysRequest' is set if (updateAsymKeysRequest == null) { - logger.error("Missing the required parameter 'updateAsymKeysRequest' when calling updateAsymKey(Async)"); + logger.error("Missing the required parameter 'updateAsymKeysRequest' when calling updateAsymKey(Async)"); throw new ApiException("Missing the required parameter 'updateAsymKeysRequest' when calling updateAsymKey(Async)"); } @@ -547,7 +552,7 @@ private okhttp3.Call updateAsymKeyValidateBeforeCall(String keyId, UpdateAsymKey * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Object updateAsymKey(String keyId, UpdateAsymKeysRequest updateAsymKeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'updateAsymKey' STARTED"); + logger.info("CALL TO METHOD 'updateAsymKey' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updateAsymKeyWithHttpInfo(keyId, updateAsymKeysRequest); logger.info("CALL TO METHOD 'updateAsymKey' ENDED"); diff --git a/src/main/java/Api/BatchesApi.java b/src/main/java/Api/BatchesApi.java index b814b3b3e..095726b84 100644 --- a/src/main/java/Api/BatchesApi.java +++ b/src/main/java/Api/BatchesApi.java @@ -43,6 +43,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class BatchesApi { private static Logger logger = LogManager.getLogger(BatchesApi.class); @@ -74,6 +75,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getBatchReportCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -122,7 +124,7 @@ private okhttp3.Call getBatchReportValidateBeforeCall(String batchId, final Prog // verify the required parameter 'batchId' is set if (batchId == null) { - logger.error("Missing the required parameter 'batchId' when calling getBatchReport(Async)"); + logger.error("Missing the required parameter 'batchId' when calling getBatchReport(Async)"); throw new ApiException("Missing the required parameter 'batchId' when calling getBatchReport(Async)"); } @@ -144,7 +146,7 @@ private okhttp3.Call getBatchReportValidateBeforeCall(String batchId, final Prog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse20014 getBatchReport(String batchId) throws ApiException { - logger.info("CALL TO METHOD 'getBatchReport' STARTED"); + logger.info("CALL TO METHOD 'getBatchReport' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getBatchReportWithHttpInfo(batchId); logger.info("CALL TO METHOD 'getBatchReport' ENDED"); @@ -208,6 +210,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getBatchStatusCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -256,7 +259,7 @@ private okhttp3.Call getBatchStatusValidateBeforeCall(String batchId, final Prog // verify the required parameter 'batchId' is set if (batchId == null) { - logger.error("Missing the required parameter 'batchId' when calling getBatchStatus(Async)"); + logger.error("Missing the required parameter 'batchId' when calling getBatchStatus(Async)"); throw new ApiException("Missing the required parameter 'batchId' when calling getBatchStatus(Async)"); } @@ -278,7 +281,7 @@ private okhttp3.Call getBatchStatusValidateBeforeCall(String batchId, final Prog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse20013 getBatchStatus(String batchId) throws ApiException { - logger.info("CALL TO METHOD 'getBatchStatus' STARTED"); + logger.info("CALL TO METHOD 'getBatchStatus' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getBatchStatusWithHttpInfo(batchId); logger.info("CALL TO METHOD 'getBatchStatus' ENDED"); @@ -345,6 +348,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getBatchesListCall(Long offset, Long limit, String fromDate, String toDate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -419,7 +423,7 @@ private okhttp3.Call getBatchesListValidateBeforeCall(Long offset, Long limit, S * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse20012 getBatchesList(Long offset, Long limit, String fromDate, String toDate) throws ApiException { - logger.info("CALL TO METHOD 'getBatchesList' STARTED"); + logger.info("CALL TO METHOD 'getBatchesList' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getBatchesListWithHttpInfo(offset, limit, fromDate, toDate); logger.info("CALL TO METHOD 'getBatchesList' ENDED"); @@ -489,7 +493,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postBatchCall(Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = body; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(body, Body.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/accountupdater/v1/batches"; @@ -533,7 +538,7 @@ private okhttp3.Call postBatchValidateBeforeCall(Body body, final ProgressRespon // verify the required parameter 'body' is set if (body == null) { - logger.error("Missing the required parameter 'body' when calling postBatch(Async)"); + logger.error("Missing the required parameter 'body' when calling postBatch(Async)"); throw new ApiException("Missing the required parameter 'body' when calling postBatch(Async)"); } @@ -555,7 +560,7 @@ private okhttp3.Call postBatchValidateBeforeCall(Body body, final ProgressRespon * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2022 postBatch(Body body) throws ApiException { - logger.info("CALL TO METHOD 'postBatch' STARTED"); + logger.info("CALL TO METHOD 'postBatch' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = postBatchWithHttpInfo(body); logger.info("CALL TO METHOD 'postBatch' ENDED"); diff --git a/src/main/java/Api/CaptureApi.java b/src/main/java/Api/CaptureApi.java index f9ce628a8..6d3efa2a9 100644 --- a/src/main/java/Api/CaptureApi.java +++ b/src/main/java/Api/CaptureApi.java @@ -41,6 +41,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class CaptureApi { private static Logger logger = LogManager.getLogger(CaptureApi.class); @@ -73,7 +74,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = capturePaymentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(capturePaymentRequest, CapturePaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/payments/{id}/captures" @@ -118,13 +120,13 @@ private okhttp3.Call capturePaymentValidateBeforeCall(CapturePaymentRequest capt // verify the required parameter 'capturePaymentRequest' is set if (capturePaymentRequest == null) { - logger.error("Missing the required parameter 'capturePaymentRequest' when calling capturePayment(Async)"); + logger.error("Missing the required parameter 'capturePaymentRequest' when calling capturePayment(Async)"); throw new ApiException("Missing the required parameter 'capturePaymentRequest' when calling capturePayment(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling capturePayment(Async)"); + logger.error("Missing the required parameter 'id' when calling capturePayment(Async)"); throw new ApiException("Missing the required parameter 'id' when calling capturePayment(Async)"); } @@ -147,7 +149,7 @@ private okhttp3.Call capturePaymentValidateBeforeCall(CapturePaymentRequest capt * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'capturePayment' STARTED"); + logger.info("CALL TO METHOD 'capturePayment' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = capturePaymentWithHttpInfo(capturePaymentRequest, id); logger.info("CALL TO METHOD 'capturePayment' ENDED"); diff --git a/src/main/java/Api/ChargebackDetailsApi.java b/src/main/java/Api/ChargebackDetailsApi.java index 4d58a0d56..85d350ea0 100644 --- a/src/main/java/Api/ChargebackDetailsApi.java +++ b/src/main/java/Api/ChargebackDetailsApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ChargebackDetailsApi { private static Logger logger = LogManager.getLogger(ChargebackDetailsApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getChargebackDetailsCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -125,13 +127,13 @@ private okhttp3.Call getChargebackDetailsValidateBeforeCall(DateTime startTime, // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getChargebackDetails(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getChargebackDetails(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getChargebackDetails(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getChargebackDetails(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getChargebackDetails(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getChargebackDetails(Async)"); } @@ -155,7 +157,7 @@ private okhttp3.Call getChargebackDetailsValidateBeforeCall(DateTime startTime, * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ChargebackDetailsGet200Response getChargebackDetails(DateTime startTime, DateTime endTime, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getChargebackDetails' STARTED"); + logger.info("CALL TO METHOD 'getChargebackDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getChargebackDetailsWithHttpInfo(startTime, endTime, organizationId); logger.info("CALL TO METHOD 'getChargebackDetails' ENDED"); diff --git a/src/main/java/Api/ChargebackSummariesApi.java b/src/main/java/Api/ChargebackSummariesApi.java index 33c82bc33..c3e8855f5 100644 --- a/src/main/java/Api/ChargebackSummariesApi.java +++ b/src/main/java/Api/ChargebackSummariesApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ChargebackSummariesApi { private static Logger logger = LogManager.getLogger(ChargebackSummariesApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getChargebackSummariesCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -125,13 +127,13 @@ private okhttp3.Call getChargebackSummariesValidateBeforeCall(DateTime startTime // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getChargebackSummaries(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getChargebackSummaries(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getChargebackSummaries(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getChargebackSummaries(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getChargebackSummaries(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getChargebackSummaries(Async)"); } @@ -155,7 +157,7 @@ private okhttp3.Call getChargebackSummariesValidateBeforeCall(DateTime startTime * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ChargebackSummariesGet200Response getChargebackSummaries(DateTime startTime, DateTime endTime, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getChargebackSummaries' STARTED"); + logger.info("CALL TO METHOD 'getChargebackSummaries' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getChargebackSummariesWithHttpInfo(startTime, endTime, organizationId); logger.info("CALL TO METHOD 'getChargebackSummaries' ENDED"); diff --git a/src/main/java/Api/ConversionDetailsApi.java b/src/main/java/Api/ConversionDetailsApi.java index 981301c0a..e79797d88 100644 --- a/src/main/java/Api/ConversionDetailsApi.java +++ b/src/main/java/Api/ConversionDetailsApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ConversionDetailsApi { private static Logger logger = LogManager.getLogger(ConversionDetailsApi.class); @@ -73,6 +74,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getConversionDetailCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -126,13 +128,13 @@ private okhttp3.Call getConversionDetailValidateBeforeCall(DateTime startTime, D // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getConversionDetail(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getConversionDetail(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getConversionDetail(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getConversionDetail(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getConversionDetail(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getConversionDetail(Async)"); } @@ -156,7 +158,7 @@ private okhttp3.Call getConversionDetailValidateBeforeCall(DateTime startTime, D * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ConversionDetailsGet200Response getConversionDetail(DateTime startTime, DateTime endTime, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getConversionDetail' STARTED"); + logger.info("CALL TO METHOD 'getConversionDetail' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getConversionDetailWithHttpInfo(startTime, endTime, organizationId); logger.info("CALL TO METHOD 'getConversionDetail' ENDED"); diff --git a/src/main/java/Api/CreditApi.java b/src/main/java/Api/CreditApi.java index a027b4db1..ae0535ea4 100644 --- a/src/main/java/Api/CreditApi.java +++ b/src/main/java/Api/CreditApi.java @@ -41,6 +41,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class CreditApi { private static Logger logger = LogManager.getLogger(CreditApi.class); @@ -72,7 +73,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createCreditCall(CreateCreditRequest createCreditRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createCreditRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createCreditRequest, CreateCreditRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/credits"; @@ -116,7 +118,7 @@ private okhttp3.Call createCreditValidateBeforeCall(CreateCreditRequest createCr // verify the required parameter 'createCreditRequest' is set if (createCreditRequest == null) { - logger.error("Missing the required parameter 'createCreditRequest' when calling createCredit(Async)"); + logger.error("Missing the required parameter 'createCreditRequest' when calling createCredit(Async)"); throw new ApiException("Missing the required parameter 'createCreditRequest' when calling createCredit(Async)"); } @@ -138,7 +140,7 @@ private okhttp3.Call createCreditValidateBeforeCall(CreateCreditRequest createCr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2CreditsPost201Response createCredit(CreateCreditRequest createCreditRequest) throws ApiException { - logger.info("CALL TO METHOD 'createCredit' STARTED"); + logger.info("CALL TO METHOD 'createCredit' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createCreditWithHttpInfo(createCreditRequest); logger.info("CALL TO METHOD 'createCredit' ENDED"); diff --git a/src/main/java/Api/CustomerApi.java b/src/main/java/Api/CustomerApi.java index fd919cf59..957e41ef7 100644 --- a/src/main/java/Api/CustomerApi.java +++ b/src/main/java/Api/CustomerApi.java @@ -47,6 +47,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class CustomerApi { private static Logger logger = LogManager.getLogger(CustomerApi.class); @@ -79,6 +80,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deleteCustomerCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("DELETE".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -129,7 +131,7 @@ private okhttp3.Call deleteCustomerValidateBeforeCall(String customerId, String // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling deleteCustomer(Async)"); + logger.error("Missing the required parameter 'customerId' when calling deleteCustomer(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling deleteCustomer(Async)"); } @@ -151,7 +153,7 @@ private okhttp3.Call deleteCustomerValidateBeforeCall(String customerId, String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void deleteCustomer(String customerId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'deleteCustomer' STARTED"); + logger.info("CALL TO METHOD 'deleteCustomer' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); deleteCustomerWithHttpInfo(customerId, profileId); @@ -215,6 +217,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getCustomerCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -265,7 +268,7 @@ private okhttp3.Call getCustomerValidateBeforeCall(String customerId, String pro // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling getCustomer(Async)"); + logger.error("Missing the required parameter 'customerId' when calling getCustomer(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling getCustomer(Async)"); } @@ -288,7 +291,7 @@ private okhttp3.Call getCustomerValidateBeforeCall(String customerId, String pro * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TmsV2CustomersResponse getCustomer(String customerId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'getCustomer' STARTED"); + logger.info("CALL TO METHOD 'getCustomer' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getCustomerWithHttpInfo(customerId, profileId); logger.info("CALL TO METHOD 'getCustomer' ENDED"); @@ -357,7 +360,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call patchCustomerCall(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = patchCustomerRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerRequest, PatchCustomerRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v2/customers/{customerId}" @@ -406,13 +410,13 @@ private okhttp3.Call patchCustomerValidateBeforeCall(String customerId, PatchCus // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling patchCustomer(Async)"); + logger.error("Missing the required parameter 'customerId' when calling patchCustomer(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling patchCustomer(Async)"); } // verify the required parameter 'patchCustomerRequest' is set if (patchCustomerRequest == null) { - logger.error("Missing the required parameter 'patchCustomerRequest' when calling patchCustomer(Async)"); + logger.error("Missing the required parameter 'patchCustomerRequest' when calling patchCustomer(Async)"); throw new ApiException("Missing the required parameter 'patchCustomerRequest' when calling patchCustomer(Async)"); } @@ -437,7 +441,7 @@ private okhttp3.Call patchCustomerValidateBeforeCall(String customerId, PatchCus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TmsV2CustomersResponse patchCustomer(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch) throws ApiException { - logger.info("CALL TO METHOD 'patchCustomer' STARTED"); + logger.info("CALL TO METHOD 'patchCustomer' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = patchCustomerWithHttpInfo(customerId, patchCustomerRequest, profileId, ifMatch); logger.info("CALL TO METHOD 'patchCustomer' ENDED"); @@ -508,7 +512,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postCustomerCall(PostCustomerRequest postCustomerRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = postCustomerRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerRequest, PostCustomerRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v2/customers"; @@ -554,7 +559,7 @@ private okhttp3.Call postCustomerValidateBeforeCall(PostCustomerRequest postCust // verify the required parameter 'postCustomerRequest' is set if (postCustomerRequest == null) { - logger.error("Missing the required parameter 'postCustomerRequest' when calling postCustomer(Async)"); + logger.error("Missing the required parameter 'postCustomerRequest' when calling postCustomer(Async)"); throw new ApiException("Missing the required parameter 'postCustomerRequest' when calling postCustomer(Async)"); } @@ -577,7 +582,7 @@ private okhttp3.Call postCustomerValidateBeforeCall(PostCustomerRequest postCust * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TmsV2CustomersResponse postCustomer(PostCustomerRequest postCustomerRequest, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'postCustomer' STARTED"); + logger.info("CALL TO METHOD 'postCustomer' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = postCustomerWithHttpInfo(postCustomerRequest, profileId); logger.info("CALL TO METHOD 'postCustomer' ENDED"); diff --git a/src/main/java/Api/CustomerPaymentInstrumentApi.java b/src/main/java/Api/CustomerPaymentInstrumentApi.java index 663dd33cd..013cc3401 100644 --- a/src/main/java/Api/CustomerPaymentInstrumentApi.java +++ b/src/main/java/Api/CustomerPaymentInstrumentApi.java @@ -48,6 +48,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class CustomerPaymentInstrumentApi { private static Logger logger = LogManager.getLogger(CustomerPaymentInstrumentApi.class); @@ -81,6 +82,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deleteCustomerPaymentInstrumentCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("DELETE".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -132,13 +134,13 @@ private okhttp3.Call deleteCustomerPaymentInstrumentValidateBeforeCall(String cu // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling deleteCustomerPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'customerId' when calling deleteCustomerPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling deleteCustomerPaymentInstrument(Async)"); } // verify the required parameter 'paymentInstrumentId' is set if (paymentInstrumentId == null) { - logger.error("Missing the required parameter 'paymentInstrumentId' when calling deleteCustomerPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'paymentInstrumentId' when calling deleteCustomerPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'paymentInstrumentId' when calling deleteCustomerPaymentInstrument(Async)"); } @@ -161,7 +163,7 @@ private okhttp3.Call deleteCustomerPaymentInstrumentValidateBeforeCall(String cu * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void deleteCustomerPaymentInstrument(String customerId, String paymentInstrumentId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'deleteCustomerPaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'deleteCustomerPaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); deleteCustomerPaymentInstrumentWithHttpInfo(customerId, paymentInstrumentId, profileId); @@ -228,6 +230,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getCustomerPaymentInstrumentCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -279,13 +282,13 @@ private okhttp3.Call getCustomerPaymentInstrumentValidateBeforeCall(String custo // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling getCustomerPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'customerId' when calling getCustomerPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling getCustomerPaymentInstrument(Async)"); } // verify the required parameter 'paymentInstrumentId' is set if (paymentInstrumentId == null) { - logger.error("Missing the required parameter 'paymentInstrumentId' when calling getCustomerPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'paymentInstrumentId' when calling getCustomerPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'paymentInstrumentId' when calling getCustomerPaymentInstrument(Async)"); } @@ -309,7 +312,7 @@ private okhttp3.Call getCustomerPaymentInstrumentValidateBeforeCall(String custo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrument getCustomerPaymentInstrument(String customerId, String paymentInstrumentId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'getCustomerPaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'getCustomerPaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getCustomerPaymentInstrumentWithHttpInfo(customerId, paymentInstrumentId, profileId); logger.info("CALL TO METHOD 'getCustomerPaymentInstrument' ENDED"); @@ -380,6 +383,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getCustomerPaymentInstrumentsListCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -434,7 +438,7 @@ private okhttp3.Call getCustomerPaymentInstrumentsListValidateBeforeCall(String // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling getCustomerPaymentInstrumentsList(Async)"); + logger.error("Missing the required parameter 'customerId' when calling getCustomerPaymentInstrumentsList(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling getCustomerPaymentInstrumentsList(Async)"); } @@ -459,7 +463,7 @@ private okhttp3.Call getCustomerPaymentInstrumentsListValidateBeforeCall(String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PaymentInstrumentList getCustomerPaymentInstrumentsList(String customerId, String profileId, Long offset, Long limit) throws ApiException { - logger.info("CALL TO METHOD 'getCustomerPaymentInstrumentsList' STARTED"); + logger.info("CALL TO METHOD 'getCustomerPaymentInstrumentsList' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getCustomerPaymentInstrumentsListWithHttpInfo(customerId, profileId, offset, limit); logger.info("CALL TO METHOD 'getCustomerPaymentInstrumentsList' ENDED"); @@ -533,7 +537,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call patchCustomersPaymentInstrumentCall(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = patchCustomerPaymentInstrumentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerPaymentInstrumentRequest, PatchCustomerPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v2/customers/{customerId}/payment-instruments/{paymentInstrumentId}" @@ -583,19 +588,19 @@ private okhttp3.Call patchCustomersPaymentInstrumentValidateBeforeCall(String cu // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling patchCustomersPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'customerId' when calling patchCustomersPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling patchCustomersPaymentInstrument(Async)"); } // verify the required parameter 'paymentInstrumentId' is set if (paymentInstrumentId == null) { - logger.error("Missing the required parameter 'paymentInstrumentId' when calling patchCustomersPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'paymentInstrumentId' when calling patchCustomersPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'paymentInstrumentId' when calling patchCustomersPaymentInstrument(Async)"); } // verify the required parameter 'patchCustomerPaymentInstrumentRequest' is set if (patchCustomerPaymentInstrumentRequest == null) { - logger.error("Missing the required parameter 'patchCustomerPaymentInstrumentRequest' when calling patchCustomersPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'patchCustomerPaymentInstrumentRequest' when calling patchCustomersPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'patchCustomerPaymentInstrumentRequest' when calling patchCustomersPaymentInstrument(Async)"); } @@ -621,7 +626,7 @@ private okhttp3.Call patchCustomersPaymentInstrumentValidateBeforeCall(String cu * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrument patchCustomersPaymentInstrument(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch) throws ApiException { - logger.info("CALL TO METHOD 'patchCustomersPaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'patchCustomersPaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = patchCustomersPaymentInstrumentWithHttpInfo(customerId, paymentInstrumentId, patchCustomerPaymentInstrumentRequest, profileId, ifMatch); logger.info("CALL TO METHOD 'patchCustomersPaymentInstrument' ENDED"); @@ -695,7 +700,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postCustomerPaymentInstrumentCall(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = postCustomerPaymentInstrumentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerPaymentInstrumentRequest, PostCustomerPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v2/customers/{customerId}/payment-instruments" @@ -742,13 +748,13 @@ private okhttp3.Call postCustomerPaymentInstrumentValidateBeforeCall(String cust // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling postCustomerPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'customerId' when calling postCustomerPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling postCustomerPaymentInstrument(Async)"); } // verify the required parameter 'postCustomerPaymentInstrumentRequest' is set if (postCustomerPaymentInstrumentRequest == null) { - logger.error("Missing the required parameter 'postCustomerPaymentInstrumentRequest' when calling postCustomerPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'postCustomerPaymentInstrumentRequest' when calling postCustomerPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'postCustomerPaymentInstrumentRequest' when calling postCustomerPaymentInstrument(Async)"); } @@ -772,7 +778,7 @@ private okhttp3.Call postCustomerPaymentInstrumentValidateBeforeCall(String cust * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrument postCustomerPaymentInstrument(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'postCustomerPaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'postCustomerPaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = postCustomerPaymentInstrumentWithHttpInfo(customerId, postCustomerPaymentInstrumentRequest, profileId); logger.info("CALL TO METHOD 'postCustomerPaymentInstrument' ENDED"); diff --git a/src/main/java/Api/CustomerShippingAddressApi.java b/src/main/java/Api/CustomerShippingAddressApi.java index 76b725870..158a64ed8 100644 --- a/src/main/java/Api/CustomerShippingAddressApi.java +++ b/src/main/java/Api/CustomerShippingAddressApi.java @@ -48,6 +48,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class CustomerShippingAddressApi { private static Logger logger = LogManager.getLogger(CustomerShippingAddressApi.class); @@ -81,6 +82,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deleteCustomerShippingAddressCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("DELETE".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -132,13 +134,13 @@ private okhttp3.Call deleteCustomerShippingAddressValidateBeforeCall(String cust // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling deleteCustomerShippingAddress(Async)"); + logger.error("Missing the required parameter 'customerId' when calling deleteCustomerShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling deleteCustomerShippingAddress(Async)"); } // verify the required parameter 'shippingAddressId' is set if (shippingAddressId == null) { - logger.error("Missing the required parameter 'shippingAddressId' when calling deleteCustomerShippingAddress(Async)"); + logger.error("Missing the required parameter 'shippingAddressId' when calling deleteCustomerShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'shippingAddressId' when calling deleteCustomerShippingAddress(Async)"); } @@ -161,7 +163,7 @@ private okhttp3.Call deleteCustomerShippingAddressValidateBeforeCall(String cust * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void deleteCustomerShippingAddress(String customerId, String shippingAddressId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'deleteCustomerShippingAddress' STARTED"); + logger.info("CALL TO METHOD 'deleteCustomerShippingAddress' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); deleteCustomerShippingAddressWithHttpInfo(customerId, shippingAddressId, profileId); @@ -228,6 +230,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getCustomerShippingAddressCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -279,13 +282,13 @@ private okhttp3.Call getCustomerShippingAddressValidateBeforeCall(String custome // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling getCustomerShippingAddress(Async)"); + logger.error("Missing the required parameter 'customerId' when calling getCustomerShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling getCustomerShippingAddress(Async)"); } // verify the required parameter 'shippingAddressId' is set if (shippingAddressId == null) { - logger.error("Missing the required parameter 'shippingAddressId' when calling getCustomerShippingAddress(Async)"); + logger.error("Missing the required parameter 'shippingAddressId' when calling getCustomerShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'shippingAddressId' when calling getCustomerShippingAddress(Async)"); } @@ -309,7 +312,7 @@ private okhttp3.Call getCustomerShippingAddressValidateBeforeCall(String custome * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultShippingAddress getCustomerShippingAddress(String customerId, String shippingAddressId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'getCustomerShippingAddress' STARTED"); + logger.info("CALL TO METHOD 'getCustomerShippingAddress' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getCustomerShippingAddressWithHttpInfo(customerId, shippingAddressId, profileId); logger.info("CALL TO METHOD 'getCustomerShippingAddress' ENDED"); @@ -380,6 +383,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getCustomerShippingAddressesListCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -434,7 +438,7 @@ private okhttp3.Call getCustomerShippingAddressesListValidateBeforeCall(String c // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling getCustomerShippingAddressesList(Async)"); + logger.error("Missing the required parameter 'customerId' when calling getCustomerShippingAddressesList(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling getCustomerShippingAddressesList(Async)"); } @@ -459,7 +463,7 @@ private okhttp3.Call getCustomerShippingAddressesListValidateBeforeCall(String c * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ShippingAddressListForCustomer getCustomerShippingAddressesList(String customerId, String profileId, Long offset, Long limit) throws ApiException { - logger.info("CALL TO METHOD 'getCustomerShippingAddressesList' STARTED"); + logger.info("CALL TO METHOD 'getCustomerShippingAddressesList' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getCustomerShippingAddressesListWithHttpInfo(customerId, profileId, offset, limit); logger.info("CALL TO METHOD 'getCustomerShippingAddressesList' ENDED"); @@ -533,7 +537,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call patchCustomersShippingAddressCall(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = patchCustomerShippingAddressRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerShippingAddressRequest, PatchCustomerShippingAddressRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v2/customers/{customerId}/shipping-addresses/{shippingAddressId}" @@ -583,19 +588,19 @@ private okhttp3.Call patchCustomersShippingAddressValidateBeforeCall(String cust // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling patchCustomersShippingAddress(Async)"); + logger.error("Missing the required parameter 'customerId' when calling patchCustomersShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling patchCustomersShippingAddress(Async)"); } // verify the required parameter 'shippingAddressId' is set if (shippingAddressId == null) { - logger.error("Missing the required parameter 'shippingAddressId' when calling patchCustomersShippingAddress(Async)"); + logger.error("Missing the required parameter 'shippingAddressId' when calling patchCustomersShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'shippingAddressId' when calling patchCustomersShippingAddress(Async)"); } // verify the required parameter 'patchCustomerShippingAddressRequest' is set if (patchCustomerShippingAddressRequest == null) { - logger.error("Missing the required parameter 'patchCustomerShippingAddressRequest' when calling patchCustomersShippingAddress(Async)"); + logger.error("Missing the required parameter 'patchCustomerShippingAddressRequest' when calling patchCustomersShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'patchCustomerShippingAddressRequest' when calling patchCustomersShippingAddress(Async)"); } @@ -621,7 +626,7 @@ private okhttp3.Call patchCustomersShippingAddressValidateBeforeCall(String cust * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultShippingAddress patchCustomersShippingAddress(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch) throws ApiException { - logger.info("CALL TO METHOD 'patchCustomersShippingAddress' STARTED"); + logger.info("CALL TO METHOD 'patchCustomersShippingAddress' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = patchCustomersShippingAddressWithHttpInfo(customerId, shippingAddressId, patchCustomerShippingAddressRequest, profileId, ifMatch); logger.info("CALL TO METHOD 'patchCustomersShippingAddress' ENDED"); @@ -695,7 +700,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postCustomerShippingAddressCall(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = postCustomerShippingAddressRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerShippingAddressRequest, PostCustomerShippingAddressRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v2/customers/{customerId}/shipping-addresses" @@ -742,13 +748,13 @@ private okhttp3.Call postCustomerShippingAddressValidateBeforeCall(String custom // verify the required parameter 'customerId' is set if (customerId == null) { - logger.error("Missing the required parameter 'customerId' when calling postCustomerShippingAddress(Async)"); + logger.error("Missing the required parameter 'customerId' when calling postCustomerShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'customerId' when calling postCustomerShippingAddress(Async)"); } // verify the required parameter 'postCustomerShippingAddressRequest' is set if (postCustomerShippingAddressRequest == null) { - logger.error("Missing the required parameter 'postCustomerShippingAddressRequest' when calling postCustomerShippingAddress(Async)"); + logger.error("Missing the required parameter 'postCustomerShippingAddressRequest' when calling postCustomerShippingAddress(Async)"); throw new ApiException("Missing the required parameter 'postCustomerShippingAddressRequest' when calling postCustomerShippingAddress(Async)"); } @@ -772,7 +778,7 @@ private okhttp3.Call postCustomerShippingAddressValidateBeforeCall(String custom * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultShippingAddress postCustomerShippingAddress(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'postCustomerShippingAddress' STARTED"); + logger.info("CALL TO METHOD 'postCustomerShippingAddress' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = postCustomerShippingAddressWithHttpInfo(customerId, postCustomerShippingAddressRequest, profileId); logger.info("CALL TO METHOD 'postCustomerShippingAddress' ENDED"); diff --git a/src/main/java/Api/DecisionManagerApi.java b/src/main/java/Api/DecisionManagerApi.java index 507b156b3..807ecf75b 100644 --- a/src/main/java/Api/DecisionManagerApi.java +++ b/src/main/java/Api/DecisionManagerApi.java @@ -45,6 +45,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class DecisionManagerApi { private static Logger logger = LogManager.getLogger(DecisionManagerApi.class); @@ -77,7 +78,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call addNegativeCall(String type, AddNegativeListRequest addNegativeListRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = addNegativeListRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(addNegativeListRequest, AddNegativeListRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/lists/{type}/entries" @@ -122,13 +124,13 @@ private okhttp3.Call addNegativeValidateBeforeCall(String type, AddNegativeListR // verify the required parameter 'type' is set if (type == null) { - logger.error("Missing the required parameter 'type' when calling addNegative(Async)"); + logger.error("Missing the required parameter 'type' when calling addNegative(Async)"); throw new ApiException("Missing the required parameter 'type' when calling addNegative(Async)"); } // verify the required parameter 'addNegativeListRequest' is set if (addNegativeListRequest == null) { - logger.error("Missing the required parameter 'addNegativeListRequest' when calling addNegative(Async)"); + logger.error("Missing the required parameter 'addNegativeListRequest' when calling addNegative(Async)"); throw new ApiException("Missing the required parameter 'addNegativeListRequest' when calling addNegative(Async)"); } @@ -151,7 +153,7 @@ private okhttp3.Call addNegativeValidateBeforeCall(String type, AddNegativeListR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1UpdatePost201Response addNegative(String type, AddNegativeListRequest addNegativeListRequest) throws ApiException { - logger.info("CALL TO METHOD 'addNegative' STARTED"); + logger.info("CALL TO METHOD 'addNegative' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = addNegativeWithHttpInfo(type, addNegativeListRequest); logger.info("CALL TO METHOD 'addNegative' ENDED"); @@ -217,7 +219,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createBundledDecisionManagerCaseCall(CreateBundledDecisionManagerCaseRequest createBundledDecisionManagerCaseRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createBundledDecisionManagerCaseRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createBundledDecisionManagerCaseRequest, CreateBundledDecisionManagerCaseRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/decisions"; @@ -261,7 +264,7 @@ private okhttp3.Call createBundledDecisionManagerCaseValidateBeforeCall(CreateBu // verify the required parameter 'createBundledDecisionManagerCaseRequest' is set if (createBundledDecisionManagerCaseRequest == null) { - logger.error("Missing the required parameter 'createBundledDecisionManagerCaseRequest' when calling createBundledDecisionManagerCase(Async)"); + logger.error("Missing the required parameter 'createBundledDecisionManagerCaseRequest' when calling createBundledDecisionManagerCase(Async)"); throw new ApiException("Missing the required parameter 'createBundledDecisionManagerCaseRequest' when calling createBundledDecisionManagerCase(Async)"); } @@ -283,7 +286,7 @@ private okhttp3.Call createBundledDecisionManagerCaseValidateBeforeCall(CreateBu * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1DecisionsPost201Response createBundledDecisionManagerCase(CreateBundledDecisionManagerCaseRequest createBundledDecisionManagerCaseRequest) throws ApiException { - logger.info("CALL TO METHOD 'createBundledDecisionManagerCase' STARTED"); + logger.info("CALL TO METHOD 'createBundledDecisionManagerCase' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createBundledDecisionManagerCaseWithHttpInfo(createBundledDecisionManagerCaseRequest); logger.info("CALL TO METHOD 'createBundledDecisionManagerCase' ENDED"); @@ -348,7 +351,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call fraudUpdateCall(String id, FraudMarkingActionRequest fraudMarkingActionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = fraudMarkingActionRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(fraudMarkingActionRequest, FraudMarkingActionRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/decisions/{id}/marking" @@ -393,13 +397,13 @@ private okhttp3.Call fraudUpdateValidateBeforeCall(String id, FraudMarkingAction // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling fraudUpdate(Async)"); + logger.error("Missing the required parameter 'id' when calling fraudUpdate(Async)"); throw new ApiException("Missing the required parameter 'id' when calling fraudUpdate(Async)"); } // verify the required parameter 'fraudMarkingActionRequest' is set if (fraudMarkingActionRequest == null) { - logger.error("Missing the required parameter 'fraudMarkingActionRequest' when calling fraudUpdate(Async)"); + logger.error("Missing the required parameter 'fraudMarkingActionRequest' when calling fraudUpdate(Async)"); throw new ApiException("Missing the required parameter 'fraudMarkingActionRequest' when calling fraudUpdate(Async)"); } @@ -422,7 +426,7 @@ private okhttp3.Call fraudUpdateValidateBeforeCall(String id, FraudMarkingAction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1UpdatePost201Response fraudUpdate(String id, FraudMarkingActionRequest fraudMarkingActionRequest) throws ApiException { - logger.info("CALL TO METHOD 'fraudUpdate' STARTED"); + logger.info("CALL TO METHOD 'fraudUpdate' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = fraudUpdateWithHttpInfo(id, fraudMarkingActionRequest); logger.info("CALL TO METHOD 'fraudUpdate' ENDED"); diff --git a/src/main/java/Api/DownloadDTDApi.java b/src/main/java/Api/DownloadDTDApi.java index eda89c673..56a640fae 100644 --- a/src/main/java/Api/DownloadDTDApi.java +++ b/src/main/java/Api/DownloadDTDApi.java @@ -37,6 +37,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class DownloadDTDApi { private static Logger logger = LogManager.getLogger(DownloadDTDApi.class); @@ -68,6 +69,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getDTDV2Call(String reportDefinitionNameVersion, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -116,7 +118,7 @@ private okhttp3.Call getDTDV2ValidateBeforeCall(String reportDefinitionNameVersi // verify the required parameter 'reportDefinitionNameVersion' is set if (reportDefinitionNameVersion == null) { - logger.error("Missing the required parameter 'reportDefinitionNameVersion' when calling getDTDV2(Async)"); + logger.error("Missing the required parameter 'reportDefinitionNameVersion' when calling getDTDV2(Async)"); throw new ApiException("Missing the required parameter 'reportDefinitionNameVersion' when calling getDTDV2(Async)"); } @@ -137,7 +139,7 @@ private okhttp3.Call getDTDV2ValidateBeforeCall(String reportDefinitionNameVersi * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void getDTDV2(String reportDefinitionNameVersion) throws ApiException { - logger.info("CALL TO METHOD 'getDTDV2' STARTED"); + logger.info("CALL TO METHOD 'getDTDV2' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); getDTDV2WithHttpInfo(reportDefinitionNameVersion); diff --git a/src/main/java/Api/DownloadXSDApi.java b/src/main/java/Api/DownloadXSDApi.java index 0e0f8a844..040d489b1 100644 --- a/src/main/java/Api/DownloadXSDApi.java +++ b/src/main/java/Api/DownloadXSDApi.java @@ -37,6 +37,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class DownloadXSDApi { private static Logger logger = LogManager.getLogger(DownloadXSDApi.class); @@ -68,6 +69,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getXSDV2Call(String reportDefinitionNameVersion, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -116,7 +118,7 @@ private okhttp3.Call getXSDV2ValidateBeforeCall(String reportDefinitionNameVersi // verify the required parameter 'reportDefinitionNameVersion' is set if (reportDefinitionNameVersion == null) { - logger.error("Missing the required parameter 'reportDefinitionNameVersion' when calling getXSDV2(Async)"); + logger.error("Missing the required parameter 'reportDefinitionNameVersion' when calling getXSDV2(Async)"); throw new ApiException("Missing the required parameter 'reportDefinitionNameVersion' when calling getXSDV2(Async)"); } @@ -137,7 +139,7 @@ private okhttp3.Call getXSDV2ValidateBeforeCall(String reportDefinitionNameVersi * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void getXSDV2(String reportDefinitionNameVersion) throws ApiException { - logger.info("CALL TO METHOD 'getXSDV2' STARTED"); + logger.info("CALL TO METHOD 'getXSDV2' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); getXSDV2WithHttpInfo(reportDefinitionNameVersion); diff --git a/src/main/java/Api/EMVTagDetailsApi.java b/src/main/java/Api/EMVTagDetailsApi.java index 9b76bd6a0..88e3f3757 100644 --- a/src/main/java/Api/EMVTagDetailsApi.java +++ b/src/main/java/Api/EMVTagDetailsApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class EMVTagDetailsApi { private static Logger logger = LogManager.getLogger(EMVTagDetailsApi.class); @@ -70,6 +71,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getEmvTagsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -132,7 +134,7 @@ private okhttp3.Call getEmvTagsValidateBeforeCall(final ProgressResponseBody.Pro * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TssV2GetEmvTags200Response getEmvTags() throws ApiException { - logger.info("CALL TO METHOD 'getEmvTags' STARTED"); + logger.info("CALL TO METHOD 'getEmvTags' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getEmvTagsWithHttpInfo(); logger.info("CALL TO METHOD 'getEmvTags' ENDED"); @@ -194,7 +196,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call parseEmvTagsCall(Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = body; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(body, Body.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tss/v2/transactions/emvTagDetails"; @@ -238,7 +241,7 @@ private okhttp3.Call parseEmvTagsValidateBeforeCall(Body body, final ProgressRes // verify the required parameter 'body' is set if (body == null) { - logger.error("Missing the required parameter 'body' when calling parseEmvTags(Async)"); + logger.error("Missing the required parameter 'body' when calling parseEmvTags(Async)"); throw new ApiException("Missing the required parameter 'body' when calling parseEmvTags(Async)"); } @@ -260,7 +263,7 @@ private okhttp3.Call parseEmvTagsValidateBeforeCall(Body body, final ProgressRes * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TssV2PostEmvTags200Response parseEmvTags(Body body) throws ApiException { - logger.info("CALL TO METHOD 'parseEmvTags' STARTED"); + logger.info("CALL TO METHOD 'parseEmvTags' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = parseEmvTagsWithHttpInfo(body); logger.info("CALL TO METHOD 'parseEmvTags' ENDED"); diff --git a/src/main/java/Api/InstrumentIdentifierApi.java b/src/main/java/Api/InstrumentIdentifierApi.java index 7ec99967d..2e2c5365e 100644 --- a/src/main/java/Api/InstrumentIdentifierApi.java +++ b/src/main/java/Api/InstrumentIdentifierApi.java @@ -49,6 +49,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class InstrumentIdentifierApi { private static Logger logger = LogManager.getLogger(InstrumentIdentifierApi.class); @@ -81,6 +82,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deleteInstrumentIdentifierCall(String instrumentIdentifierId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("DELETE".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -131,7 +133,7 @@ private okhttp3.Call deleteInstrumentIdentifierValidateBeforeCall(String instrum // verify the required parameter 'instrumentIdentifierId' is set if (instrumentIdentifierId == null) { - logger.error("Missing the required parameter 'instrumentIdentifierId' when calling deleteInstrumentIdentifier(Async)"); + logger.error("Missing the required parameter 'instrumentIdentifierId' when calling deleteInstrumentIdentifier(Async)"); throw new ApiException("Missing the required parameter 'instrumentIdentifierId' when calling deleteInstrumentIdentifier(Async)"); } @@ -153,7 +155,7 @@ private okhttp3.Call deleteInstrumentIdentifierValidateBeforeCall(String instrum * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void deleteInstrumentIdentifier(String instrumentIdentifierId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'deleteInstrumentIdentifier' STARTED"); + logger.info("CALL TO METHOD 'deleteInstrumentIdentifier' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); deleteInstrumentIdentifierWithHttpInfo(instrumentIdentifierId, profileId); @@ -217,6 +219,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getInstrumentIdentifierCall(String instrumentIdentifierId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -267,7 +270,7 @@ private okhttp3.Call getInstrumentIdentifierValidateBeforeCall(String instrument // verify the required parameter 'instrumentIdentifierId' is set if (instrumentIdentifierId == null) { - logger.error("Missing the required parameter 'instrumentIdentifierId' when calling getInstrumentIdentifier(Async)"); + logger.error("Missing the required parameter 'instrumentIdentifierId' when calling getInstrumentIdentifier(Async)"); throw new ApiException("Missing the required parameter 'instrumentIdentifierId' when calling getInstrumentIdentifier(Async)"); } @@ -290,7 +293,7 @@ private okhttp3.Call getInstrumentIdentifierValidateBeforeCall(String instrument * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifier getInstrumentIdentifier(String instrumentIdentifierId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'getInstrumentIdentifier' STARTED"); + logger.info("CALL TO METHOD 'getInstrumentIdentifier' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getInstrumentIdentifierWithHttpInfo(instrumentIdentifierId, profileId); logger.info("CALL TO METHOD 'getInstrumentIdentifier' ENDED"); @@ -359,6 +362,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getInstrumentIdentifierPaymentInstrumentsListCall(String instrumentIdentifierId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -413,7 +417,7 @@ private okhttp3.Call getInstrumentIdentifierPaymentInstrumentsListValidateBefore // verify the required parameter 'instrumentIdentifierId' is set if (instrumentIdentifierId == null) { - logger.error("Missing the required parameter 'instrumentIdentifierId' when calling getInstrumentIdentifierPaymentInstrumentsList(Async)"); + logger.error("Missing the required parameter 'instrumentIdentifierId' when calling getInstrumentIdentifierPaymentInstrumentsList(Async)"); throw new ApiException("Missing the required parameter 'instrumentIdentifierId' when calling getInstrumentIdentifierPaymentInstrumentsList(Async)"); } @@ -438,7 +442,7 @@ private okhttp3.Call getInstrumentIdentifierPaymentInstrumentsListValidateBefore * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PaymentInstrumentList getInstrumentIdentifierPaymentInstrumentsList(String instrumentIdentifierId, String profileId, Long offset, Long limit) throws ApiException { - logger.info("CALL TO METHOD 'getInstrumentIdentifierPaymentInstrumentsList' STARTED"); + logger.info("CALL TO METHOD 'getInstrumentIdentifierPaymentInstrumentsList' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getInstrumentIdentifierPaymentInstrumentsListWithHttpInfo(instrumentIdentifierId, profileId, offset, limit); logger.info("CALL TO METHOD 'getInstrumentIdentifierPaymentInstrumentsList' ENDED"); @@ -511,7 +515,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call patchInstrumentIdentifierCall(String instrumentIdentifierId, PatchInstrumentIdentifierRequest patchInstrumentIdentifierRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = patchInstrumentIdentifierRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchInstrumentIdentifierRequest, PatchInstrumentIdentifierRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v1/instrumentidentifiers/{instrumentIdentifierId}" @@ -560,13 +565,13 @@ private okhttp3.Call patchInstrumentIdentifierValidateBeforeCall(String instrume // verify the required parameter 'instrumentIdentifierId' is set if (instrumentIdentifierId == null) { - logger.error("Missing the required parameter 'instrumentIdentifierId' when calling patchInstrumentIdentifier(Async)"); + logger.error("Missing the required parameter 'instrumentIdentifierId' when calling patchInstrumentIdentifier(Async)"); throw new ApiException("Missing the required parameter 'instrumentIdentifierId' when calling patchInstrumentIdentifier(Async)"); } // verify the required parameter 'patchInstrumentIdentifierRequest' is set if (patchInstrumentIdentifierRequest == null) { - logger.error("Missing the required parameter 'patchInstrumentIdentifierRequest' when calling patchInstrumentIdentifier(Async)"); + logger.error("Missing the required parameter 'patchInstrumentIdentifierRequest' when calling patchInstrumentIdentifier(Async)"); throw new ApiException("Missing the required parameter 'patchInstrumentIdentifierRequest' when calling patchInstrumentIdentifier(Async)"); } @@ -591,7 +596,7 @@ private okhttp3.Call patchInstrumentIdentifierValidateBeforeCall(String instrume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifier patchInstrumentIdentifier(String instrumentIdentifierId, PatchInstrumentIdentifierRequest patchInstrumentIdentifierRequest, String profileId, String ifMatch) throws ApiException { - logger.info("CALL TO METHOD 'patchInstrumentIdentifier' STARTED"); + logger.info("CALL TO METHOD 'patchInstrumentIdentifier' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = patchInstrumentIdentifierWithHttpInfo(instrumentIdentifierId, patchInstrumentIdentifierRequest, profileId, ifMatch); logger.info("CALL TO METHOD 'patchInstrumentIdentifier' ENDED"); @@ -662,7 +667,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postInstrumentIdentifierCall(PostInstrumentIdentifierRequest postInstrumentIdentifierRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = postInstrumentIdentifierRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postInstrumentIdentifierRequest, PostInstrumentIdentifierRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v1/instrumentidentifiers"; @@ -708,7 +714,7 @@ private okhttp3.Call postInstrumentIdentifierValidateBeforeCall(PostInstrumentId // verify the required parameter 'postInstrumentIdentifierRequest' is set if (postInstrumentIdentifierRequest == null) { - logger.error("Missing the required parameter 'postInstrumentIdentifierRequest' when calling postInstrumentIdentifier(Async)"); + logger.error("Missing the required parameter 'postInstrumentIdentifierRequest' when calling postInstrumentIdentifier(Async)"); throw new ApiException("Missing the required parameter 'postInstrumentIdentifierRequest' when calling postInstrumentIdentifier(Async)"); } @@ -731,7 +737,7 @@ private okhttp3.Call postInstrumentIdentifierValidateBeforeCall(PostInstrumentId * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifier postInstrumentIdentifier(PostInstrumentIdentifierRequest postInstrumentIdentifierRequest, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'postInstrumentIdentifier' STARTED"); + logger.info("CALL TO METHOD 'postInstrumentIdentifier' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = postInstrumentIdentifierWithHttpInfo(postInstrumentIdentifierRequest, profileId); logger.info("CALL TO METHOD 'postInstrumentIdentifier' ENDED"); @@ -799,7 +805,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postInstrumentIdentifierEnrollmentCall(String instrumentIdentifierId, PostInstrumentIdentifierEnrollmentRequest postInstrumentIdentifierEnrollmentRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = postInstrumentIdentifierEnrollmentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postInstrumentIdentifierEnrollmentRequest, PostInstrumentIdentifierEnrollmentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v1/instrumentidentifiers/{instrumentIdentifierId}/enrollment" @@ -846,13 +853,13 @@ private okhttp3.Call postInstrumentIdentifierEnrollmentValidateBeforeCall(String // verify the required parameter 'instrumentIdentifierId' is set if (instrumentIdentifierId == null) { - logger.error("Missing the required parameter 'instrumentIdentifierId' when calling postInstrumentIdentifierEnrollment(Async)"); + logger.error("Missing the required parameter 'instrumentIdentifierId' when calling postInstrumentIdentifierEnrollment(Async)"); throw new ApiException("Missing the required parameter 'instrumentIdentifierId' when calling postInstrumentIdentifierEnrollment(Async)"); } // verify the required parameter 'postInstrumentIdentifierEnrollmentRequest' is set if (postInstrumentIdentifierEnrollmentRequest == null) { - logger.error("Missing the required parameter 'postInstrumentIdentifierEnrollmentRequest' when calling postInstrumentIdentifierEnrollment(Async)"); + logger.error("Missing the required parameter 'postInstrumentIdentifierEnrollmentRequest' when calling postInstrumentIdentifierEnrollment(Async)"); throw new ApiException("Missing the required parameter 'postInstrumentIdentifierEnrollmentRequest' when calling postInstrumentIdentifierEnrollment(Async)"); } @@ -875,7 +882,7 @@ private okhttp3.Call postInstrumentIdentifierEnrollmentValidateBeforeCall(String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void postInstrumentIdentifierEnrollment(String instrumentIdentifierId, PostInstrumentIdentifierEnrollmentRequest postInstrumentIdentifierEnrollmentRequest, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'postInstrumentIdentifierEnrollment' STARTED"); + logger.info("CALL TO METHOD 'postInstrumentIdentifierEnrollment' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); postInstrumentIdentifierEnrollmentWithHttpInfo(instrumentIdentifierId, postInstrumentIdentifierEnrollmentRequest, profileId); diff --git a/src/main/java/Api/InterchangeClearingLevelDetailsApi.java b/src/main/java/Api/InterchangeClearingLevelDetailsApi.java index 3cabecf0a..fa46eb19c 100644 --- a/src/main/java/Api/InterchangeClearingLevelDetailsApi.java +++ b/src/main/java/Api/InterchangeClearingLevelDetailsApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class InterchangeClearingLevelDetailsApi { private static Logger logger = LogManager.getLogger(InterchangeClearingLevelDetailsApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getInterchangeClearingLevelDetailsCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -125,13 +127,13 @@ private okhttp3.Call getInterchangeClearingLevelDetailsValidateBeforeCall(DateTi // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getInterchangeClearingLevelDetails(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getInterchangeClearingLevelDetails(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getInterchangeClearingLevelDetails(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getInterchangeClearingLevelDetails(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getInterchangeClearingLevelDetails(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getInterchangeClearingLevelDetails(Async)"); } @@ -155,7 +157,7 @@ private okhttp3.Call getInterchangeClearingLevelDetailsValidateBeforeCall(DateTi * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3InterchangeClearingLevelDetailsGet200Response getInterchangeClearingLevelDetails(DateTime startTime, DateTime endTime, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getInterchangeClearingLevelDetails' STARTED"); + logger.info("CALL TO METHOD 'getInterchangeClearingLevelDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getInterchangeClearingLevelDetailsWithHttpInfo(startTime, endTime, organizationId); logger.info("CALL TO METHOD 'getInterchangeClearingLevelDetails' ENDED"); diff --git a/src/main/java/Api/InvoiceSettingsApi.java b/src/main/java/Api/InvoiceSettingsApi.java index 5a4f9df7b..580f59c53 100644 --- a/src/main/java/Api/InvoiceSettingsApi.java +++ b/src/main/java/Api/InvoiceSettingsApi.java @@ -41,6 +41,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class InvoiceSettingsApi { private static Logger logger = LogManager.getLogger(InvoiceSettingsApi.class); @@ -71,6 +72,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getInvoiceSettingsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -133,7 +135,7 @@ private okhttp3.Call getInvoiceSettingsValidateBeforeCall(final ProgressResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoiceSettingsGet200Response getInvoiceSettings() throws ApiException { - logger.info("CALL TO METHOD 'getInvoiceSettings' STARTED"); + logger.info("CALL TO METHOD 'getInvoiceSettings' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getInvoiceSettingsWithHttpInfo(); logger.info("CALL TO METHOD 'getInvoiceSettings' ENDED"); @@ -195,7 +197,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updateInvoiceSettingsCall(InvoiceSettingsRequest invoiceSettingsRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = invoiceSettingsRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(invoiceSettingsRequest, InvoiceSettingsRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/invoicing/v2/invoiceSettings"; @@ -239,7 +242,7 @@ private okhttp3.Call updateInvoiceSettingsValidateBeforeCall(InvoiceSettingsRequ // verify the required parameter 'invoiceSettingsRequest' is set if (invoiceSettingsRequest == null) { - logger.error("Missing the required parameter 'invoiceSettingsRequest' when calling updateInvoiceSettings(Async)"); + logger.error("Missing the required parameter 'invoiceSettingsRequest' when calling updateInvoiceSettings(Async)"); throw new ApiException("Missing the required parameter 'invoiceSettingsRequest' when calling updateInvoiceSettings(Async)"); } @@ -261,7 +264,7 @@ private okhttp3.Call updateInvoiceSettingsValidateBeforeCall(InvoiceSettingsRequ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoiceSettingsGet200Response updateInvoiceSettings(InvoiceSettingsRequest invoiceSettingsRequest) throws ApiException { - logger.info("CALL TO METHOD 'updateInvoiceSettings' STARTED"); + logger.info("CALL TO METHOD 'updateInvoiceSettings' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updateInvoiceSettingsWithHttpInfo(invoiceSettingsRequest); logger.info("CALL TO METHOD 'updateInvoiceSettings' ENDED"); diff --git a/src/main/java/Api/InvoicesApi.java b/src/main/java/Api/InvoicesApi.java index b8af90ad2..ac31ec3a1 100644 --- a/src/main/java/Api/InvoicesApi.java +++ b/src/main/java/Api/InvoicesApi.java @@ -46,6 +46,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class InvoicesApi { private static Logger logger = LogManager.getLogger(InvoicesApi.class); @@ -77,7 +78,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createInvoiceCall(CreateInvoiceRequest createInvoiceRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createInvoiceRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createInvoiceRequest, CreateInvoiceRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/invoicing/v2/invoices"; @@ -121,7 +123,7 @@ private okhttp3.Call createInvoiceValidateBeforeCall(CreateInvoiceRequest create // verify the required parameter 'createInvoiceRequest' is set if (createInvoiceRequest == null) { - logger.error("Missing the required parameter 'createInvoiceRequest' when calling createInvoice(Async)"); + logger.error("Missing the required parameter 'createInvoiceRequest' when calling createInvoice(Async)"); throw new ApiException("Missing the required parameter 'createInvoiceRequest' when calling createInvoice(Async)"); } @@ -143,7 +145,7 @@ private okhttp3.Call createInvoiceValidateBeforeCall(CreateInvoiceRequest create * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoicesPost201Response createInvoice(CreateInvoiceRequest createInvoiceRequest) throws ApiException { - logger.info("CALL TO METHOD 'createInvoice' STARTED"); + logger.info("CALL TO METHOD 'createInvoice' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createInvoiceWithHttpInfo(createInvoiceRequest); logger.info("CALL TO METHOD 'createInvoice' ENDED"); @@ -209,6 +211,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getAllInvoicesCall(Integer offset, Integer limit, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -262,13 +265,13 @@ private okhttp3.Call getAllInvoicesValidateBeforeCall(Integer offset, Integer li // verify the required parameter 'offset' is set if (offset == null) { - logger.error("Missing the required parameter 'offset' when calling getAllInvoices(Async)"); + logger.error("Missing the required parameter 'offset' when calling getAllInvoices(Async)"); throw new ApiException("Missing the required parameter 'offset' when calling getAllInvoices(Async)"); } // verify the required parameter 'limit' is set if (limit == null) { - logger.error("Missing the required parameter 'limit' when calling getAllInvoices(Async)"); + logger.error("Missing the required parameter 'limit' when calling getAllInvoices(Async)"); throw new ApiException("Missing the required parameter 'limit' when calling getAllInvoices(Async)"); } @@ -292,7 +295,7 @@ private okhttp3.Call getAllInvoicesValidateBeforeCall(Integer offset, Integer li * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoicesAllGet200Response getAllInvoices(Integer offset, Integer limit, String status) throws ApiException { - logger.info("CALL TO METHOD 'getAllInvoices' STARTED"); + logger.info("CALL TO METHOD 'getAllInvoices' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getAllInvoicesWithHttpInfo(offset, limit, status); logger.info("CALL TO METHOD 'getAllInvoices' ENDED"); @@ -360,6 +363,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getInvoiceCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -408,7 +412,7 @@ private okhttp3.Call getInvoiceValidateBeforeCall(String id, final ProgressRespo // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling getInvoice(Async)"); + logger.error("Missing the required parameter 'id' when calling getInvoice(Async)"); throw new ApiException("Missing the required parameter 'id' when calling getInvoice(Async)"); } @@ -430,7 +434,7 @@ private okhttp3.Call getInvoiceValidateBeforeCall(String id, final ProgressRespo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoicesGet200Response getInvoice(String id) throws ApiException { - logger.info("CALL TO METHOD 'getInvoice' STARTED"); + logger.info("CALL TO METHOD 'getInvoice' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getInvoiceWithHttpInfo(id); logger.info("CALL TO METHOD 'getInvoice' ENDED"); @@ -494,6 +498,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call performCancelActionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -542,7 +547,7 @@ private okhttp3.Call performCancelActionValidateBeforeCall(String id, final Prog // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling performCancelAction(Async)"); + logger.error("Missing the required parameter 'id' when calling performCancelAction(Async)"); throw new ApiException("Missing the required parameter 'id' when calling performCancelAction(Async)"); } @@ -564,7 +569,7 @@ private okhttp3.Call performCancelActionValidateBeforeCall(String id, final Prog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoicesPost201Response performCancelAction(String id) throws ApiException { - logger.info("CALL TO METHOD 'performCancelAction' STARTED"); + logger.info("CALL TO METHOD 'performCancelAction' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = performCancelActionWithHttpInfo(id); logger.info("CALL TO METHOD 'performCancelAction' ENDED"); @@ -628,6 +633,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call performSendActionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -676,7 +682,7 @@ private okhttp3.Call performSendActionValidateBeforeCall(String id, final Progre // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling performSendAction(Async)"); + logger.error("Missing the required parameter 'id' when calling performSendAction(Async)"); throw new ApiException("Missing the required parameter 'id' when calling performSendAction(Async)"); } @@ -698,7 +704,7 @@ private okhttp3.Call performSendActionValidateBeforeCall(String id, final Progre * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoicesPost201Response performSendAction(String id) throws ApiException { - logger.info("CALL TO METHOD 'performSendAction' STARTED"); + logger.info("CALL TO METHOD 'performSendAction' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = performSendActionWithHttpInfo(id); logger.info("CALL TO METHOD 'performSendAction' ENDED"); @@ -763,7 +769,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updateInvoiceCall(String id, UpdateInvoiceRequest updateInvoiceRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = updateInvoiceRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updateInvoiceRequest, UpdateInvoiceRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/invoicing/v2/invoices/{id}" @@ -808,13 +815,13 @@ private okhttp3.Call updateInvoiceValidateBeforeCall(String id, UpdateInvoiceReq // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling updateInvoice(Async)"); + logger.error("Missing the required parameter 'id' when calling updateInvoice(Async)"); throw new ApiException("Missing the required parameter 'id' when calling updateInvoice(Async)"); } // verify the required parameter 'updateInvoiceRequest' is set if (updateInvoiceRequest == null) { - logger.error("Missing the required parameter 'updateInvoiceRequest' when calling updateInvoice(Async)"); + logger.error("Missing the required parameter 'updateInvoiceRequest' when calling updateInvoice(Async)"); throw new ApiException("Missing the required parameter 'updateInvoiceRequest' when calling updateInvoice(Async)"); } @@ -837,7 +844,7 @@ private okhttp3.Call updateInvoiceValidateBeforeCall(String id, UpdateInvoiceReq * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InvoicingV2InvoicesPost201Response updateInvoice(String id, UpdateInvoiceRequest updateInvoiceRequest) throws ApiException { - logger.info("CALL TO METHOD 'updateInvoice' STARTED"); + logger.info("CALL TO METHOD 'updateInvoice' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updateInvoiceWithHttpInfo(id, updateInvoiceRequest); logger.info("CALL TO METHOD 'updateInvoice' ENDED"); diff --git a/src/main/java/Api/KeyManagementApi.java b/src/main/java/Api/KeyManagementApi.java index ae55d1516..78a5c2079 100644 --- a/src/main/java/Api/KeyManagementApi.java +++ b/src/main/java/Api/KeyManagementApi.java @@ -41,6 +41,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class KeyManagementApi { private static Logger logger = LogManager.getLogger(KeyManagementApi.class); @@ -79,6 +80,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call searchKeysCall(Integer offset, Integer limit, String sort, List organizationIds, List keyIds, List keyTypes, DateTime expirationStartDate, DateTime expirationEndDate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -165,7 +167,7 @@ private okhttp3.Call searchKeysValidateBeforeCall(Integer offset, Integer limit, * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse20011 searchKeys(Integer offset, Integer limit, String sort, List organizationIds, List keyIds, List keyTypes, DateTime expirationStartDate, DateTime expirationEndDate) throws ApiException { - logger.info("CALL TO METHOD 'searchKeys' STARTED"); + logger.info("CALL TO METHOD 'searchKeys' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = searchKeysWithHttpInfo(offset, limit, sort, organizationIds, keyIds, keyTypes, expirationStartDate, expirationEndDate); logger.info("CALL TO METHOD 'searchKeys' ENDED"); diff --git a/src/main/java/Api/KeyManagementPasswordApi.java b/src/main/java/Api/KeyManagementPasswordApi.java index 6e7f87059..d4ab157fd 100644 --- a/src/main/java/Api/KeyManagementPasswordApi.java +++ b/src/main/java/Api/KeyManagementPasswordApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class KeyManagementPasswordApi { private static Logger logger = LogManager.getLogger(KeyManagementPasswordApi.class); @@ -72,7 +73,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updatePasswordCall(String keyId, UpdatePasswordKeysRequest updatePasswordKeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = updatePasswordKeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updatePasswordKeysRequest, UpdatePasswordKeysRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-password/{keyId}" @@ -117,13 +119,13 @@ private okhttp3.Call updatePasswordValidateBeforeCall(String keyId, UpdatePasswo // verify the required parameter 'keyId' is set if (keyId == null) { - logger.error("Missing the required parameter 'keyId' when calling updatePassword(Async)"); + logger.error("Missing the required parameter 'keyId' when calling updatePassword(Async)"); throw new ApiException("Missing the required parameter 'keyId' when calling updatePassword(Async)"); } // verify the required parameter 'updatePasswordKeysRequest' is set if (updatePasswordKeysRequest == null) { - logger.error("Missing the required parameter 'updatePasswordKeysRequest' when calling updatePassword(Async)"); + logger.error("Missing the required parameter 'updatePasswordKeysRequest' when calling updatePassword(Async)"); throw new ApiException("Missing the required parameter 'updatePasswordKeysRequest' when calling updatePassword(Async)"); } @@ -146,7 +148,7 @@ private okhttp3.Call updatePasswordValidateBeforeCall(String keyId, UpdatePasswo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Object updatePassword(String keyId, UpdatePasswordKeysRequest updatePasswordKeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'updatePassword' STARTED"); + logger.info("CALL TO METHOD 'updatePassword' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updatePasswordWithHttpInfo(keyId, updatePasswordKeysRequest); logger.info("CALL TO METHOD 'updatePassword' ENDED"); diff --git a/src/main/java/Api/KeyManagementPgpApi.java b/src/main/java/Api/KeyManagementPgpApi.java index 62b3984be..bada356b9 100644 --- a/src/main/java/Api/KeyManagementPgpApi.java +++ b/src/main/java/Api/KeyManagementPgpApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class KeyManagementPgpApi { private static Logger logger = LogManager.getLogger(KeyManagementPgpApi.class); @@ -72,7 +73,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updatePGPCall(String keyId, UpdatePGPKeysRequest updatePGPKeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = updatePGPKeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updatePGPKeysRequest, UpdatePGPKeysRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-pgp/{keyId}" @@ -117,13 +119,13 @@ private okhttp3.Call updatePGPValidateBeforeCall(String keyId, UpdatePGPKeysRequ // verify the required parameter 'keyId' is set if (keyId == null) { - logger.error("Missing the required parameter 'keyId' when calling updatePGP(Async)"); + logger.error("Missing the required parameter 'keyId' when calling updatePGP(Async)"); throw new ApiException("Missing the required parameter 'keyId' when calling updatePGP(Async)"); } // verify the required parameter 'updatePGPKeysRequest' is set if (updatePGPKeysRequest == null) { - logger.error("Missing the required parameter 'updatePGPKeysRequest' when calling updatePGP(Async)"); + logger.error("Missing the required parameter 'updatePGPKeysRequest' when calling updatePGP(Async)"); throw new ApiException("Missing the required parameter 'updatePGPKeysRequest' when calling updatePGP(Async)"); } @@ -146,7 +148,7 @@ private okhttp3.Call updatePGPValidateBeforeCall(String keyId, UpdatePGPKeysRequ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Object updatePGP(String keyId, UpdatePGPKeysRequest updatePGPKeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'updatePGP' STARTED"); + logger.info("CALL TO METHOD 'updatePGP' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updatePGPWithHttpInfo(keyId, updatePGPKeysRequest); logger.info("CALL TO METHOD 'updatePGP' ENDED"); diff --git a/src/main/java/Api/KeyManagementScmpApi.java b/src/main/java/Api/KeyManagementScmpApi.java index 376eb8777..8292f3708 100644 --- a/src/main/java/Api/KeyManagementScmpApi.java +++ b/src/main/java/Api/KeyManagementScmpApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class KeyManagementScmpApi { private static Logger logger = LogManager.getLogger(KeyManagementScmpApi.class); @@ -72,7 +73,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updateSCMPCall(String keyId, UpdatePGPKeysRequest1 updatePGPKeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = updatePGPKeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updatePGPKeysRequest, UpdatePGPKeysRequest1.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-scmp/{keyId}" @@ -117,13 +119,13 @@ private okhttp3.Call updateSCMPValidateBeforeCall(String keyId, UpdatePGPKeysReq // verify the required parameter 'keyId' is set if (keyId == null) { - logger.error("Missing the required parameter 'keyId' when calling updateSCMP(Async)"); + logger.error("Missing the required parameter 'keyId' when calling updateSCMP(Async)"); throw new ApiException("Missing the required parameter 'keyId' when calling updateSCMP(Async)"); } // verify the required parameter 'updatePGPKeysRequest' is set if (updatePGPKeysRequest == null) { - logger.error("Missing the required parameter 'updatePGPKeysRequest' when calling updateSCMP(Async)"); + logger.error("Missing the required parameter 'updatePGPKeysRequest' when calling updateSCMP(Async)"); throw new ApiException("Missing the required parameter 'updatePGPKeysRequest' when calling updateSCMP(Async)"); } @@ -146,7 +148,7 @@ private okhttp3.Call updateSCMPValidateBeforeCall(String keyId, UpdatePGPKeysReq * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Object updateSCMP(String keyId, UpdatePGPKeysRequest1 updatePGPKeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'updateSCMP' STARTED"); + logger.info("CALL TO METHOD 'updateSCMP' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updateSCMPWithHttpInfo(keyId, updatePGPKeysRequest); logger.info("CALL TO METHOD 'updateSCMP' ENDED"); diff --git a/src/main/java/Api/MicroformIntegrationApi.java b/src/main/java/Api/MicroformIntegrationApi.java index d885e5572..f1076605d 100644 --- a/src/main/java/Api/MicroformIntegrationApi.java +++ b/src/main/java/Api/MicroformIntegrationApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class MicroformIntegrationApi { private static Logger logger = LogManager.getLogger(MicroformIntegrationApi.class); @@ -70,7 +71,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call generateCaptureContextCall(GenerateCaptureContextRequest generateCaptureContextRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = generateCaptureContextRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(generateCaptureContextRequest, GenerateCaptureContextRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/microform/v2/sessions"; @@ -114,7 +116,7 @@ private okhttp3.Call generateCaptureContextValidateBeforeCall(GenerateCaptureCon // verify the required parameter 'generateCaptureContextRequest' is set if (generateCaptureContextRequest == null) { - logger.error("Missing the required parameter 'generateCaptureContextRequest' when calling generateCaptureContext(Async)"); + logger.error("Missing the required parameter 'generateCaptureContextRequest' when calling generateCaptureContext(Async)"); throw new ApiException("Missing the required parameter 'generateCaptureContextRequest' when calling generateCaptureContext(Async)"); } @@ -136,7 +138,7 @@ private okhttp3.Call generateCaptureContextValidateBeforeCall(GenerateCaptureCon * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public String generateCaptureContext(GenerateCaptureContextRequest generateCaptureContextRequest) throws ApiException { - logger.info("CALL TO METHOD 'generateCaptureContext' STARTED"); + logger.info("CALL TO METHOD 'generateCaptureContext' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = generateCaptureContextWithHttpInfo(generateCaptureContextRequest); logger.info("CALL TO METHOD 'generateCaptureContext' ENDED"); diff --git a/src/main/java/Api/NetFundingsApi.java b/src/main/java/Api/NetFundingsApi.java index 860337f2e..ed7229a0e 100644 --- a/src/main/java/Api/NetFundingsApi.java +++ b/src/main/java/Api/NetFundingsApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class NetFundingsApi { private static Logger logger = LogManager.getLogger(NetFundingsApi.class); @@ -74,6 +75,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getNetFundingDetailsCall(DateTime startTime, DateTime endTime, String organizationId, String groupName, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -129,13 +131,13 @@ private okhttp3.Call getNetFundingDetailsValidateBeforeCall(DateTime startTime, // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getNetFundingDetails(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getNetFundingDetails(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getNetFundingDetails(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getNetFundingDetails(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getNetFundingDetails(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getNetFundingDetails(Async)"); } @@ -160,7 +162,7 @@ private okhttp3.Call getNetFundingDetailsValidateBeforeCall(DateTime startTime, * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3NetFundingsGet200Response getNetFundingDetails(DateTime startTime, DateTime endTime, String organizationId, String groupName) throws ApiException { - logger.info("CALL TO METHOD 'getNetFundingDetails' STARTED"); + logger.info("CALL TO METHOD 'getNetFundingDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getNetFundingDetailsWithHttpInfo(startTime, endTime, organizationId, groupName); logger.info("CALL TO METHOD 'getNetFundingDetails' ENDED"); diff --git a/src/main/java/Api/NotificationOfChangesApi.java b/src/main/java/Api/NotificationOfChangesApi.java index c2d0bffeb..0a08a5cd8 100644 --- a/src/main/java/Api/NotificationOfChangesApi.java +++ b/src/main/java/Api/NotificationOfChangesApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class NotificationOfChangesApi { private static Logger logger = LogManager.getLogger(NotificationOfChangesApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getNotificationOfChangeReportCall(DateTime startTime, DateTime endTime, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -123,13 +125,13 @@ private okhttp3.Call getNotificationOfChangeReportValidateBeforeCall(DateTime st // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getNotificationOfChangeReport(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getNotificationOfChangeReport(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getNotificationOfChangeReport(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getNotificationOfChangeReport(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getNotificationOfChangeReport(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getNotificationOfChangeReport(Async)"); } @@ -152,7 +154,7 @@ private okhttp3.Call getNotificationOfChangeReportValidateBeforeCall(DateTime st * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3NotificationofChangesGet200Response getNotificationOfChangeReport(DateTime startTime, DateTime endTime) throws ApiException { - logger.info("CALL TO METHOD 'getNotificationOfChangeReport' STARTED"); + logger.info("CALL TO METHOD 'getNotificationOfChangeReport' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getNotificationOfChangeReportWithHttpInfo(startTime, endTime); logger.info("CALL TO METHOD 'getNotificationOfChangeReport' ENDED"); diff --git a/src/main/java/Api/PayerAuthenticationApi.java b/src/main/java/Api/PayerAuthenticationApi.java index 0d3fee9a0..294c67d08 100644 --- a/src/main/java/Api/PayerAuthenticationApi.java +++ b/src/main/java/Api/PayerAuthenticationApi.java @@ -46,6 +46,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PayerAuthenticationApi { private static Logger logger = LogManager.getLogger(PayerAuthenticationApi.class); @@ -77,7 +78,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call checkPayerAuthEnrollmentCall(CheckPayerAuthEnrollmentRequest checkPayerAuthEnrollmentRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = checkPayerAuthEnrollmentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(checkPayerAuthEnrollmentRequest, CheckPayerAuthEnrollmentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/authentications"; @@ -121,7 +123,7 @@ private okhttp3.Call checkPayerAuthEnrollmentValidateBeforeCall(CheckPayerAuthEn // verify the required parameter 'checkPayerAuthEnrollmentRequest' is set if (checkPayerAuthEnrollmentRequest == null) { - logger.error("Missing the required parameter 'checkPayerAuthEnrollmentRequest' when calling checkPayerAuthEnrollment(Async)"); + logger.error("Missing the required parameter 'checkPayerAuthEnrollmentRequest' when calling checkPayerAuthEnrollment(Async)"); throw new ApiException("Missing the required parameter 'checkPayerAuthEnrollmentRequest' when calling checkPayerAuthEnrollment(Async)"); } @@ -143,7 +145,7 @@ private okhttp3.Call checkPayerAuthEnrollmentValidateBeforeCall(CheckPayerAuthEn * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1AuthenticationsPost201Response checkPayerAuthEnrollment(CheckPayerAuthEnrollmentRequest checkPayerAuthEnrollmentRequest) throws ApiException { - logger.info("CALL TO METHOD 'checkPayerAuthEnrollment' STARTED"); + logger.info("CALL TO METHOD 'checkPayerAuthEnrollment' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = checkPayerAuthEnrollmentWithHttpInfo(checkPayerAuthEnrollmentRequest); logger.info("CALL TO METHOD 'checkPayerAuthEnrollment' ENDED"); @@ -207,7 +209,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call payerAuthSetupCall(PayerAuthSetupRequest payerAuthSetupRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = payerAuthSetupRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(payerAuthSetupRequest, PayerAuthSetupRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/authentication-setups"; @@ -251,7 +254,7 @@ private okhttp3.Call payerAuthSetupValidateBeforeCall(PayerAuthSetupRequest paye // verify the required parameter 'payerAuthSetupRequest' is set if (payerAuthSetupRequest == null) { - logger.error("Missing the required parameter 'payerAuthSetupRequest' when calling payerAuthSetup(Async)"); + logger.error("Missing the required parameter 'payerAuthSetupRequest' when calling payerAuthSetup(Async)"); throw new ApiException("Missing the required parameter 'payerAuthSetupRequest' when calling payerAuthSetup(Async)"); } @@ -273,7 +276,7 @@ private okhttp3.Call payerAuthSetupValidateBeforeCall(PayerAuthSetupRequest paye * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1AuthenticationSetupsPost201Response payerAuthSetup(PayerAuthSetupRequest payerAuthSetupRequest) throws ApiException { - logger.info("CALL TO METHOD 'payerAuthSetup' STARTED"); + logger.info("CALL TO METHOD 'payerAuthSetup' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = payerAuthSetupWithHttpInfo(payerAuthSetupRequest); logger.info("CALL TO METHOD 'payerAuthSetup' ENDED"); @@ -337,7 +340,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call validateAuthenticationResultsCall(ValidateRequest validateRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = validateRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(validateRequest, ValidateRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/authentication-results"; @@ -381,7 +385,7 @@ private okhttp3.Call validateAuthenticationResultsValidateBeforeCall(ValidateReq // verify the required parameter 'validateRequest' is set if (validateRequest == null) { - logger.error("Missing the required parameter 'validateRequest' when calling validateAuthenticationResults(Async)"); + logger.error("Missing the required parameter 'validateRequest' when calling validateAuthenticationResults(Async)"); throw new ApiException("Missing the required parameter 'validateRequest' when calling validateAuthenticationResults(Async)"); } @@ -403,7 +407,7 @@ private okhttp3.Call validateAuthenticationResultsValidateBeforeCall(ValidateReq * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1AuthenticationResultsPost201Response validateAuthenticationResults(ValidateRequest validateRequest) throws ApiException { - logger.info("CALL TO METHOD 'validateAuthenticationResults' STARTED"); + logger.info("CALL TO METHOD 'validateAuthenticationResults' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = validateAuthenticationResultsWithHttpInfo(validateRequest); logger.info("CALL TO METHOD 'validateAuthenticationResults' ENDED"); diff --git a/src/main/java/Api/PaymentBatchSummariesApi.java b/src/main/java/Api/PaymentBatchSummariesApi.java index 91b52fd07..6ab1eca83 100644 --- a/src/main/java/Api/PaymentBatchSummariesApi.java +++ b/src/main/java/Api/PaymentBatchSummariesApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PaymentBatchSummariesApi { private static Logger logger = LogManager.getLogger(PaymentBatchSummariesApi.class); @@ -76,6 +77,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getPaymentBatchSummaryCall(DateTime startTime, DateTime endTime, String organizationId, String rollUp, String breakdown, Integer startDayOfWeek, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -135,13 +137,13 @@ private okhttp3.Call getPaymentBatchSummaryValidateBeforeCall(DateTime startTime // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getPaymentBatchSummary(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getPaymentBatchSummary(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getPaymentBatchSummary(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getPaymentBatchSummary(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getPaymentBatchSummary(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getPaymentBatchSummary(Async)"); } @@ -168,7 +170,7 @@ private okhttp3.Call getPaymentBatchSummaryValidateBeforeCall(DateTime startTime * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3PaymentBatchSummariesGet200Response getPaymentBatchSummary(DateTime startTime, DateTime endTime, String organizationId, String rollUp, String breakdown, Integer startDayOfWeek) throws ApiException { - logger.info("CALL TO METHOD 'getPaymentBatchSummary' STARTED"); + logger.info("CALL TO METHOD 'getPaymentBatchSummary' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getPaymentBatchSummaryWithHttpInfo(startTime, endTime, organizationId, rollUp, breakdown, startDayOfWeek); logger.info("CALL TO METHOD 'getPaymentBatchSummary' ENDED"); diff --git a/src/main/java/Api/PaymentInstrumentApi.java b/src/main/java/Api/PaymentInstrumentApi.java index 9bdaada10..cc0d21f16 100644 --- a/src/main/java/Api/PaymentInstrumentApi.java +++ b/src/main/java/Api/PaymentInstrumentApi.java @@ -47,6 +47,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PaymentInstrumentApi { private static Logger logger = LogManager.getLogger(PaymentInstrumentApi.class); @@ -79,6 +80,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deletePaymentInstrumentCall(String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("DELETE".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -129,7 +131,7 @@ private okhttp3.Call deletePaymentInstrumentValidateBeforeCall(String paymentIns // verify the required parameter 'paymentInstrumentId' is set if (paymentInstrumentId == null) { - logger.error("Missing the required parameter 'paymentInstrumentId' when calling deletePaymentInstrument(Async)"); + logger.error("Missing the required parameter 'paymentInstrumentId' when calling deletePaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'paymentInstrumentId' when calling deletePaymentInstrument(Async)"); } @@ -151,7 +153,7 @@ private okhttp3.Call deletePaymentInstrumentValidateBeforeCall(String paymentIns * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void deletePaymentInstrument(String paymentInstrumentId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'deletePaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'deletePaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); deletePaymentInstrumentWithHttpInfo(paymentInstrumentId, profileId); @@ -215,6 +217,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getPaymentInstrumentCall(String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -265,7 +268,7 @@ private okhttp3.Call getPaymentInstrumentValidateBeforeCall(String paymentInstru // verify the required parameter 'paymentInstrumentId' is set if (paymentInstrumentId == null) { - logger.error("Missing the required parameter 'paymentInstrumentId' when calling getPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'paymentInstrumentId' when calling getPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'paymentInstrumentId' when calling getPaymentInstrument(Async)"); } @@ -288,7 +291,7 @@ private okhttp3.Call getPaymentInstrumentValidateBeforeCall(String paymentInstru * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrument getPaymentInstrument(String paymentInstrumentId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'getPaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'getPaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getPaymentInstrumentWithHttpInfo(paymentInstrumentId, profileId); logger.info("CALL TO METHOD 'getPaymentInstrument' ENDED"); @@ -357,7 +360,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call patchPaymentInstrumentCall(String paymentInstrumentId, PatchPaymentInstrumentRequest patchPaymentInstrumentRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = patchPaymentInstrumentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchPaymentInstrumentRequest, PatchPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v1/paymentinstruments/{paymentInstrumentId}" @@ -406,13 +410,13 @@ private okhttp3.Call patchPaymentInstrumentValidateBeforeCall(String paymentInst // verify the required parameter 'paymentInstrumentId' is set if (paymentInstrumentId == null) { - logger.error("Missing the required parameter 'paymentInstrumentId' when calling patchPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'paymentInstrumentId' when calling patchPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'paymentInstrumentId' when calling patchPaymentInstrument(Async)"); } // verify the required parameter 'patchPaymentInstrumentRequest' is set if (patchPaymentInstrumentRequest == null) { - logger.error("Missing the required parameter 'patchPaymentInstrumentRequest' when calling patchPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'patchPaymentInstrumentRequest' when calling patchPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'patchPaymentInstrumentRequest' when calling patchPaymentInstrument(Async)"); } @@ -437,7 +441,7 @@ private okhttp3.Call patchPaymentInstrumentValidateBeforeCall(String paymentInst * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrument patchPaymentInstrument(String paymentInstrumentId, PatchPaymentInstrumentRequest patchPaymentInstrumentRequest, String profileId, String ifMatch) throws ApiException { - logger.info("CALL TO METHOD 'patchPaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'patchPaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = patchPaymentInstrumentWithHttpInfo(paymentInstrumentId, patchPaymentInstrumentRequest, profileId, ifMatch); logger.info("CALL TO METHOD 'patchPaymentInstrument' ENDED"); @@ -508,7 +512,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postPaymentInstrumentCall(PostPaymentInstrumentRequest postPaymentInstrumentRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = postPaymentInstrumentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postPaymentInstrumentRequest, PostPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tms/v1/paymentinstruments"; @@ -554,7 +559,7 @@ private okhttp3.Call postPaymentInstrumentValidateBeforeCall(PostPaymentInstrume // verify the required parameter 'postPaymentInstrumentRequest' is set if (postPaymentInstrumentRequest == null) { - logger.error("Missing the required parameter 'postPaymentInstrumentRequest' when calling postPaymentInstrument(Async)"); + logger.error("Missing the required parameter 'postPaymentInstrumentRequest' when calling postPaymentInstrument(Async)"); throw new ApiException("Missing the required parameter 'postPaymentInstrumentRequest' when calling postPaymentInstrument(Async)"); } @@ -577,7 +582,7 @@ private okhttp3.Call postPaymentInstrumentValidateBeforeCall(PostPaymentInstrume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public Tmsv2customersEmbeddedDefaultPaymentInstrument postPaymentInstrument(PostPaymentInstrumentRequest postPaymentInstrumentRequest, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'postPaymentInstrument' STARTED"); + logger.info("CALL TO METHOD 'postPaymentInstrument' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = postPaymentInstrumentWithHttpInfo(postPaymentInstrumentRequest, profileId); logger.info("CALL TO METHOD 'postPaymentInstrument' ENDED"); diff --git a/src/main/java/Api/PaymentsApi.java b/src/main/java/Api/PaymentsApi.java index 1c27ffbd3..0a075e1ab 100644 --- a/src/main/java/Api/PaymentsApi.java +++ b/src/main/java/Api/PaymentsApi.java @@ -46,6 +46,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PaymentsApi { private static Logger logger = LogManager.getLogger(PaymentsApi.class); @@ -77,7 +78,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createPaymentCall(CreatePaymentRequest createPaymentRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createPaymentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createPaymentRequest, CreatePaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/payments"; @@ -121,7 +123,7 @@ private okhttp3.Call createPaymentValidateBeforeCall(CreatePaymentRequest create // verify the required parameter 'createPaymentRequest' is set if (createPaymentRequest == null) { - logger.error("Missing the required parameter 'createPaymentRequest' when calling createPayment(Async)"); + logger.error("Missing the required parameter 'createPaymentRequest' when calling createPayment(Async)"); throw new ApiException("Missing the required parameter 'createPaymentRequest' when calling createPayment(Async)"); } @@ -143,7 +145,7 @@ private okhttp3.Call createPaymentValidateBeforeCall(CreatePaymentRequest create * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsPost201Response createPayment(CreatePaymentRequest createPaymentRequest) throws ApiException { - logger.info("CALL TO METHOD 'createPayment' STARTED"); + logger.info("CALL TO METHOD 'createPayment' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createPaymentWithHttpInfo(createPaymentRequest); logger.info("CALL TO METHOD 'createPayment' ENDED"); @@ -208,7 +210,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call incrementAuthCall(String id, IncrementAuthRequest incrementAuthRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = incrementAuthRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(incrementAuthRequest, IncrementAuthRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/payments/{id}" @@ -253,13 +256,13 @@ private okhttp3.Call incrementAuthValidateBeforeCall(String id, IncrementAuthReq // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling incrementAuth(Async)"); + logger.error("Missing the required parameter 'id' when calling incrementAuth(Async)"); throw new ApiException("Missing the required parameter 'id' when calling incrementAuth(Async)"); } // verify the required parameter 'incrementAuthRequest' is set if (incrementAuthRequest == null) { - logger.error("Missing the required parameter 'incrementAuthRequest' when calling incrementAuth(Async)"); + logger.error("Missing the required parameter 'incrementAuthRequest' when calling incrementAuth(Async)"); throw new ApiException("Missing the required parameter 'incrementAuthRequest' when calling incrementAuth(Async)"); } @@ -282,7 +285,7 @@ private okhttp3.Call incrementAuthValidateBeforeCall(String id, IncrementAuthReq * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2IncrementalAuthorizationPatch201Response incrementAuth(String id, IncrementAuthRequest incrementAuthRequest) throws ApiException { - logger.info("CALL TO METHOD 'incrementAuth' STARTED"); + logger.info("CALL TO METHOD 'incrementAuth' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = incrementAuthWithHttpInfo(id, incrementAuthRequest); logger.info("CALL TO METHOD 'incrementAuth' ENDED"); @@ -349,7 +352,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call refreshPaymentStatusCall(String id, RefreshPaymentStatusRequest refreshPaymentStatusRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = refreshPaymentStatusRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(refreshPaymentStatusRequest, RefreshPaymentStatusRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/refresh-payment-status/{id}" @@ -394,13 +398,13 @@ private okhttp3.Call refreshPaymentStatusValidateBeforeCall(String id, RefreshPa // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling refreshPaymentStatus(Async)"); + logger.error("Missing the required parameter 'id' when calling refreshPaymentStatus(Async)"); throw new ApiException("Missing the required parameter 'id' when calling refreshPaymentStatus(Async)"); } // verify the required parameter 'refreshPaymentStatusRequest' is set if (refreshPaymentStatusRequest == null) { - logger.error("Missing the required parameter 'refreshPaymentStatusRequest' when calling refreshPaymentStatus(Async)"); + logger.error("Missing the required parameter 'refreshPaymentStatusRequest' when calling refreshPaymentStatus(Async)"); throw new ApiException("Missing the required parameter 'refreshPaymentStatusRequest' when calling refreshPaymentStatus(Async)"); } @@ -423,7 +427,7 @@ private okhttp3.Call refreshPaymentStatusValidateBeforeCall(String id, RefreshPa * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsPost201Response1 refreshPaymentStatus(String id, RefreshPaymentStatusRequest refreshPaymentStatusRequest) throws ApiException { - logger.info("CALL TO METHOD 'refreshPaymentStatus' STARTED"); + logger.info("CALL TO METHOD 'refreshPaymentStatus' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = refreshPaymentStatusWithHttpInfo(id, refreshPaymentStatusRequest); logger.info("CALL TO METHOD 'refreshPaymentStatus' ENDED"); diff --git a/src/main/java/Api/PayoutsApi.java b/src/main/java/Api/PayoutsApi.java index 76b123d76..9c676b808 100644 --- a/src/main/java/Api/PayoutsApi.java +++ b/src/main/java/Api/PayoutsApi.java @@ -41,6 +41,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PayoutsApi { private static Logger logger = LogManager.getLogger(PayoutsApi.class); @@ -72,7 +73,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call octCreatePaymentCall(OctCreatePaymentRequest octCreatePaymentRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = octCreatePaymentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(octCreatePaymentRequest, OctCreatePaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/payouts"; @@ -116,7 +118,7 @@ private okhttp3.Call octCreatePaymentValidateBeforeCall(OctCreatePaymentRequest // verify the required parameter 'octCreatePaymentRequest' is set if (octCreatePaymentRequest == null) { - logger.error("Missing the required parameter 'octCreatePaymentRequest' when calling octCreatePayment(Async)"); + logger.error("Missing the required parameter 'octCreatePaymentRequest' when calling octCreatePayment(Async)"); throw new ApiException("Missing the required parameter 'octCreatePaymentRequest' when calling octCreatePayment(Async)"); } @@ -138,7 +140,7 @@ private okhttp3.Call octCreatePaymentValidateBeforeCall(OctCreatePaymentRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PayoutsPost201Response octCreatePayment(OctCreatePaymentRequest octCreatePaymentRequest) throws ApiException { - logger.info("CALL TO METHOD 'octCreatePayment' STARTED"); + logger.info("CALL TO METHOD 'octCreatePayment' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = octCreatePaymentWithHttpInfo(octCreatePaymentRequest); logger.info("CALL TO METHOD 'octCreatePayment' ENDED"); diff --git a/src/main/java/Api/PlansApi.java b/src/main/java/Api/PlansApi.java index 3194a2719..6aec9fa17 100644 --- a/src/main/java/Api/PlansApi.java +++ b/src/main/java/Api/PlansApi.java @@ -49,6 +49,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PlansApi { private static Logger logger = LogManager.getLogger(PlansApi.class); @@ -80,6 +81,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call activatePlanCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -96,7 +98,7 @@ public okhttp3.Call activatePlanCall(String id, final ProgressResponseBody.Progr Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -128,7 +130,7 @@ private okhttp3.Call activatePlanValidateBeforeCall(String id, final ProgressRes // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling activatePlan(Async)"); + logger.error("Missing the required parameter 'id' when calling activatePlan(Async)"); throw new ApiException("Missing the required parameter 'id' when calling activatePlan(Async)"); } @@ -150,7 +152,7 @@ private okhttp3.Call activatePlanValidateBeforeCall(String id, final ProgressRes * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2004 activatePlan(String id) throws ApiException { - logger.info("CALL TO METHOD 'activatePlan' STARTED"); + logger.info("CALL TO METHOD 'activatePlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = activatePlanWithHttpInfo(id); logger.info("CALL TO METHOD 'activatePlan' ENDED"); @@ -214,7 +216,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createPlanCall(CreatePlanRequest createPlanRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createPlanRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createPlanRequest, CreatePlanRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/rbs/v1/plans"; @@ -226,7 +229,7 @@ public okhttp3.Call createPlanCall(CreatePlanRequest createPlanRequest, final Pr Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -258,7 +261,7 @@ private okhttp3.Call createPlanValidateBeforeCall(CreatePlanRequest createPlanRe // verify the required parameter 'createPlanRequest' is set if (createPlanRequest == null) { - logger.error("Missing the required parameter 'createPlanRequest' when calling createPlan(Async)"); + logger.error("Missing the required parameter 'createPlanRequest' when calling createPlan(Async)"); throw new ApiException("Missing the required parameter 'createPlanRequest' when calling createPlan(Async)"); } @@ -280,7 +283,7 @@ private okhttp3.Call createPlanValidateBeforeCall(CreatePlanRequest createPlanRe * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse201 createPlan(CreatePlanRequest createPlanRequest) throws ApiException { - logger.info("CALL TO METHOD 'createPlan' STARTED"); + logger.info("CALL TO METHOD 'createPlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createPlanWithHttpInfo(createPlanRequest); logger.info("CALL TO METHOD 'createPlan' ENDED"); @@ -344,6 +347,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deactivatePlanCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -360,7 +364,7 @@ public okhttp3.Call deactivatePlanCall(String id, final ProgressResponseBody.Pro Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -392,7 +396,7 @@ private okhttp3.Call deactivatePlanValidateBeforeCall(String id, final ProgressR // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling deactivatePlan(Async)"); + logger.error("Missing the required parameter 'id' when calling deactivatePlan(Async)"); throw new ApiException("Missing the required parameter 'id' when calling deactivatePlan(Async)"); } @@ -414,7 +418,7 @@ private okhttp3.Call deactivatePlanValidateBeforeCall(String id, final ProgressR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2004 deactivatePlan(String id) throws ApiException { - logger.info("CALL TO METHOD 'deactivatePlan' STARTED"); + logger.info("CALL TO METHOD 'deactivatePlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = deactivatePlanWithHttpInfo(id); logger.info("CALL TO METHOD 'deactivatePlan' ENDED"); @@ -478,6 +482,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deletePlanCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("DELETE".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -494,7 +499,7 @@ public okhttp3.Call deletePlanCall(String id, final ProgressResponseBody.Progres Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -526,7 +531,7 @@ private okhttp3.Call deletePlanValidateBeforeCall(String id, final ProgressRespo // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling deletePlan(Async)"); + logger.error("Missing the required parameter 'id' when calling deletePlan(Async)"); throw new ApiException("Missing the required parameter 'id' when calling deletePlan(Async)"); } @@ -548,7 +553,7 @@ private okhttp3.Call deletePlanValidateBeforeCall(String id, final ProgressRespo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2002 deletePlan(String id) throws ApiException { - logger.info("CALL TO METHOD 'deletePlan' STARTED"); + logger.info("CALL TO METHOD 'deletePlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = deletePlanWithHttpInfo(id); logger.info("CALL TO METHOD 'deletePlan' ENDED"); @@ -612,6 +617,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getPlanCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -628,7 +634,7 @@ public okhttp3.Call getPlanCall(String id, final ProgressResponseBody.ProgressLi Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -660,7 +666,7 @@ private okhttp3.Call getPlanValidateBeforeCall(String id, final ProgressResponse // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling getPlan(Async)"); + logger.error("Missing the required parameter 'id' when calling getPlan(Async)"); throw new ApiException("Missing the required parameter 'id' when calling getPlan(Async)"); } @@ -682,7 +688,7 @@ private okhttp3.Call getPlanValidateBeforeCall(String id, final ProgressResponse * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2001 getPlan(String id) throws ApiException { - logger.info("CALL TO METHOD 'getPlan' STARTED"); + logger.info("CALL TO METHOD 'getPlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getPlanWithHttpInfo(id); logger.info("CALL TO METHOD 'getPlan' ENDED"); @@ -745,6 +751,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getPlanCodeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -760,7 +767,7 @@ public okhttp3.Call getPlanCodeCall(final ProgressResponseBody.ProgressListener Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -807,7 +814,7 @@ private okhttp3.Call getPlanCodeValidateBeforeCall(final ProgressResponseBody.Pr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2005 getPlanCode() throws ApiException { - logger.info("CALL TO METHOD 'getPlanCode' STARTED"); + logger.info("CALL TO METHOD 'getPlanCode' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getPlanCodeWithHttpInfo(); logger.info("CALL TO METHOD 'getPlanCode' ENDED"); @@ -873,6 +880,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getPlansCall(Integer offset, Integer limit, String code, String status, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -898,7 +906,7 @@ public okhttp3.Call getPlansCall(Integer offset, Integer limit, String code, Str Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -950,7 +958,7 @@ private okhttp3.Call getPlansValidateBeforeCall(Integer offset, Integer limit, S * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse200 getPlans(Integer offset, Integer limit, String code, String status, String name) throws ApiException { - logger.info("CALL TO METHOD 'getPlans' STARTED"); + logger.info("CALL TO METHOD 'getPlans' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getPlansWithHttpInfo(offset, limit, code, status, name); logger.info("CALL TO METHOD 'getPlans' ENDED"); @@ -1023,7 +1031,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updatePlanCall(String id, UpdatePlanRequest updatePlanRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = updatePlanRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updatePlanRequest, UpdatePlanRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/rbs/v1/plans/{id}" @@ -1036,7 +1045,7 @@ public okhttp3.Call updatePlanCall(String id, UpdatePlanRequest updatePlanReques Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -1068,13 +1077,13 @@ private okhttp3.Call updatePlanValidateBeforeCall(String id, UpdatePlanRequest u // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling updatePlan(Async)"); + logger.error("Missing the required parameter 'id' when calling updatePlan(Async)"); throw new ApiException("Missing the required parameter 'id' when calling updatePlan(Async)"); } // verify the required parameter 'updatePlanRequest' is set if (updatePlanRequest == null) { - logger.error("Missing the required parameter 'updatePlanRequest' when calling updatePlan(Async)"); + logger.error("Missing the required parameter 'updatePlanRequest' when calling updatePlan(Async)"); throw new ApiException("Missing the required parameter 'updatePlanRequest' when calling updatePlan(Async)"); } @@ -1097,7 +1106,7 @@ private okhttp3.Call updatePlanValidateBeforeCall(String id, UpdatePlanRequest u * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2003 updatePlan(String id, UpdatePlanRequest updatePlanRequest) throws ApiException { - logger.info("CALL TO METHOD 'updatePlan' STARTED"); + logger.info("CALL TO METHOD 'updatePlan' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updatePlanWithHttpInfo(id, updatePlanRequest); logger.info("CALL TO METHOD 'updatePlan' ENDED"); diff --git a/src/main/java/Api/PurchaseAndRefundDetailsApi.java b/src/main/java/Api/PurchaseAndRefundDetailsApi.java index 4a49c8422..2031b767c 100644 --- a/src/main/java/Api/PurchaseAndRefundDetailsApi.java +++ b/src/main/java/Api/PurchaseAndRefundDetailsApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PurchaseAndRefundDetailsApi { private static Logger logger = LogManager.getLogger(PurchaseAndRefundDetailsApi.class); @@ -78,6 +79,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getPurchaseAndRefundDetailsCall(DateTime startTime, DateTime endTime, String organizationId, String paymentSubtype, String viewBy, String groupName, Integer offset, Integer limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -141,13 +143,13 @@ private okhttp3.Call getPurchaseAndRefundDetailsValidateBeforeCall(DateTime star // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getPurchaseAndRefundDetails(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getPurchaseAndRefundDetails(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getPurchaseAndRefundDetails(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getPurchaseAndRefundDetails(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getPurchaseAndRefundDetails(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getPurchaseAndRefundDetails(Async)"); } @@ -176,7 +178,7 @@ private okhttp3.Call getPurchaseAndRefundDetailsValidateBeforeCall(DateTime star * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3PurchaseRefundDetailsGet200Response getPurchaseAndRefundDetails(DateTime startTime, DateTime endTime, String organizationId, String paymentSubtype, String viewBy, String groupName, Integer offset, Integer limit) throws ApiException { - logger.info("CALL TO METHOD 'getPurchaseAndRefundDetails' STARTED"); + logger.info("CALL TO METHOD 'getPurchaseAndRefundDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getPurchaseAndRefundDetailsWithHttpInfo(startTime, endTime, organizationId, paymentSubtype, viewBy, groupName, offset, limit); logger.info("CALL TO METHOD 'getPurchaseAndRefundDetails' ENDED"); diff --git a/src/main/java/Api/PushFundsApi.java b/src/main/java/Api/PushFundsApi.java index 4d30b9040..5cbcd10ef 100644 --- a/src/main/java/Api/PushFundsApi.java +++ b/src/main/java/Api/PushFundsApi.java @@ -43,6 +43,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class PushFundsApi { private static Logger logger = LogManager.getLogger(PushFundsApi.class); @@ -80,7 +81,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createPushFundsTransferCall(PushFundsRequest pushFundsRequest, String contentType, String xRequestid, String vCMerchantId, String vCPermissions, String vCCorrelationId, String vCOrganizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = pushFundsRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(pushFundsRequest, PushFundsRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v1/push-funds-transfer"; @@ -136,43 +138,43 @@ private okhttp3.Call createPushFundsTransferValidateBeforeCall(PushFundsRequest // verify the required parameter 'pushFundsRequest' is set if (pushFundsRequest == null) { - logger.error("Missing the required parameter 'pushFundsRequest' when calling createPushFundsTransfer(Async)"); + logger.error("Missing the required parameter 'pushFundsRequest' when calling createPushFundsTransfer(Async)"); throw new ApiException("Missing the required parameter 'pushFundsRequest' when calling createPushFundsTransfer(Async)"); } // verify the required parameter 'contentType' is set if (contentType == null) { - logger.error("Missing the required parameter 'contentType' when calling createPushFundsTransfer(Async)"); + logger.error("Missing the required parameter 'contentType' when calling createPushFundsTransfer(Async)"); throw new ApiException("Missing the required parameter 'contentType' when calling createPushFundsTransfer(Async)"); } // verify the required parameter 'xRequestid' is set if (xRequestid == null) { - logger.error("Missing the required parameter 'xRequestid' when calling createPushFundsTransfer(Async)"); + logger.error("Missing the required parameter 'xRequestid' when calling createPushFundsTransfer(Async)"); throw new ApiException("Missing the required parameter 'xRequestid' when calling createPushFundsTransfer(Async)"); } // verify the required parameter 'vCMerchantId' is set if (vCMerchantId == null) { - logger.error("Missing the required parameter 'vCMerchantId' when calling createPushFundsTransfer(Async)"); + logger.error("Missing the required parameter 'vCMerchantId' when calling createPushFundsTransfer(Async)"); throw new ApiException("Missing the required parameter 'vCMerchantId' when calling createPushFundsTransfer(Async)"); } // verify the required parameter 'vCPermissions' is set if (vCPermissions == null) { - logger.error("Missing the required parameter 'vCPermissions' when calling createPushFundsTransfer(Async)"); + logger.error("Missing the required parameter 'vCPermissions' when calling createPushFundsTransfer(Async)"); throw new ApiException("Missing the required parameter 'vCPermissions' when calling createPushFundsTransfer(Async)"); } // verify the required parameter 'vCCorrelationId' is set if (vCCorrelationId == null) { - logger.error("Missing the required parameter 'vCCorrelationId' when calling createPushFundsTransfer(Async)"); + logger.error("Missing the required parameter 'vCCorrelationId' when calling createPushFundsTransfer(Async)"); throw new ApiException("Missing the required parameter 'vCCorrelationId' when calling createPushFundsTransfer(Async)"); } // verify the required parameter 'vCOrganizationId' is set if (vCOrganizationId == null) { - logger.error("Missing the required parameter 'vCOrganizationId' when calling createPushFundsTransfer(Async)"); + logger.error("Missing the required parameter 'vCOrganizationId' when calling createPushFundsTransfer(Async)"); throw new ApiException("Missing the required parameter 'vCOrganizationId' when calling createPushFundsTransfer(Async)"); } @@ -200,7 +202,7 @@ private okhttp3.Call createPushFundsTransferValidateBeforeCall(PushFundsRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PushFunds201Response createPushFundsTransfer(PushFundsRequest pushFundsRequest, String contentType, String xRequestid, String vCMerchantId, String vCPermissions, String vCCorrelationId, String vCOrganizationId) throws ApiException { - logger.info("CALL TO METHOD 'createPushFundsTransfer' STARTED"); + logger.info("CALL TO METHOD 'createPushFundsTransfer' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createPushFundsTransferWithHttpInfo(pushFundsRequest, contentType, xRequestid, vCMerchantId, vCPermissions, vCCorrelationId, vCOrganizationId); logger.info("CALL TO METHOD 'createPushFundsTransfer' ENDED"); diff --git a/src/main/java/Api/RefundApi.java b/src/main/java/Api/RefundApi.java index a340040a5..5b2ff507c 100644 --- a/src/main/java/Api/RefundApi.java +++ b/src/main/java/Api/RefundApi.java @@ -42,6 +42,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class RefundApi { private static Logger logger = LogManager.getLogger(RefundApi.class); @@ -74,7 +75,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call refundCaptureCall(RefundCaptureRequest refundCaptureRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = refundCaptureRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(refundCaptureRequest, RefundCaptureRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/captures/{id}/refunds" @@ -119,13 +121,13 @@ private okhttp3.Call refundCaptureValidateBeforeCall(RefundCaptureRequest refund // verify the required parameter 'refundCaptureRequest' is set if (refundCaptureRequest == null) { - logger.error("Missing the required parameter 'refundCaptureRequest' when calling refundCapture(Async)"); + logger.error("Missing the required parameter 'refundCaptureRequest' when calling refundCapture(Async)"); throw new ApiException("Missing the required parameter 'refundCaptureRequest' when calling refundCapture(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling refundCapture(Async)"); + logger.error("Missing the required parameter 'id' when calling refundCapture(Async)"); throw new ApiException("Missing the required parameter 'id' when calling refundCapture(Async)"); } @@ -148,7 +150,7 @@ private okhttp3.Call refundCaptureValidateBeforeCall(RefundCaptureRequest refund * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsRefundPost201Response refundCapture(RefundCaptureRequest refundCaptureRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'refundCapture' STARTED"); + logger.info("CALL TO METHOD 'refundCapture' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = refundCaptureWithHttpInfo(refundCaptureRequest, id); logger.info("CALL TO METHOD 'refundCapture' ENDED"); @@ -215,7 +217,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call refundPaymentCall(RefundPaymentRequest refundPaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = refundPaymentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(refundPaymentRequest, RefundPaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/payments/{id}/refunds" @@ -260,13 +263,13 @@ private okhttp3.Call refundPaymentValidateBeforeCall(RefundPaymentRequest refund // verify the required parameter 'refundPaymentRequest' is set if (refundPaymentRequest == null) { - logger.error("Missing the required parameter 'refundPaymentRequest' when calling refundPayment(Async)"); + logger.error("Missing the required parameter 'refundPaymentRequest' when calling refundPayment(Async)"); throw new ApiException("Missing the required parameter 'refundPaymentRequest' when calling refundPayment(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling refundPayment(Async)"); + logger.error("Missing the required parameter 'id' when calling refundPayment(Async)"); throw new ApiException("Missing the required parameter 'id' when calling refundPayment(Async)"); } @@ -289,7 +292,7 @@ private okhttp3.Call refundPaymentValidateBeforeCall(RefundPaymentRequest refund * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsRefundPost201Response refundPayment(RefundPaymentRequest refundPaymentRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'refundPayment' STARTED"); + logger.info("CALL TO METHOD 'refundPayment' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = refundPaymentWithHttpInfo(refundPaymentRequest, id); logger.info("CALL TO METHOD 'refundPayment' ENDED"); diff --git a/src/main/java/Api/ReportDefinitionsApi.java b/src/main/java/Api/ReportDefinitionsApi.java index 4375d4869..4c1f90f8b 100644 --- a/src/main/java/Api/ReportDefinitionsApi.java +++ b/src/main/java/Api/ReportDefinitionsApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ReportDefinitionsApi { private static Logger logger = LogManager.getLogger(ReportDefinitionsApi.class); @@ -74,6 +75,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getResourceInfoByReportDefinitionCall(String reportDefinitionName, String subscriptionType, String reportMimeType, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -128,7 +130,7 @@ private okhttp3.Call getResourceInfoByReportDefinitionValidateBeforeCall(String // verify the required parameter 'reportDefinitionName' is set if (reportDefinitionName == null) { - logger.error("Missing the required parameter 'reportDefinitionName' when calling getResourceInfoByReportDefinition(Async)"); + logger.error("Missing the required parameter 'reportDefinitionName' when calling getResourceInfoByReportDefinition(Async)"); throw new ApiException("Missing the required parameter 'reportDefinitionName' when calling getResourceInfoByReportDefinition(Async)"); } @@ -153,7 +155,7 @@ private okhttp3.Call getResourceInfoByReportDefinitionValidateBeforeCall(String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ReportDefinitionsNameGet200Response getResourceInfoByReportDefinition(String reportDefinitionName, String subscriptionType, String reportMimeType, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getResourceInfoByReportDefinition' STARTED"); + logger.info("CALL TO METHOD 'getResourceInfoByReportDefinition' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getResourceInfoByReportDefinitionWithHttpInfo(reportDefinitionName, subscriptionType, reportMimeType, organizationId); logger.info("CALL TO METHOD 'getResourceInfoByReportDefinition' ENDED"); @@ -224,6 +226,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getResourceV2InfoCall(String subscriptionType, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -292,7 +295,7 @@ private okhttp3.Call getResourceV2InfoValidateBeforeCall(String subscriptionType * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ReportDefinitionsGet200Response getResourceV2Info(String subscriptionType, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getResourceV2Info' STARTED"); + logger.info("CALL TO METHOD 'getResourceV2Info' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getResourceV2InfoWithHttpInfo(subscriptionType, organizationId); logger.info("CALL TO METHOD 'getResourceV2Info' ENDED"); diff --git a/src/main/java/Api/ReportDownloadsApi.java b/src/main/java/Api/ReportDownloadsApi.java index c66941041..25a2ab332 100644 --- a/src/main/java/Api/ReportDownloadsApi.java +++ b/src/main/java/Api/ReportDownloadsApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ReportDownloadsApi { private static Logger logger = LogManager.getLogger(ReportDownloadsApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call downloadReportCall(LocalDate reportDate, String reportName, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -125,13 +127,13 @@ private okhttp3.Call downloadReportValidateBeforeCall(LocalDate reportDate, Stri // verify the required parameter 'reportDate' is set if (reportDate == null) { - logger.error("Missing the required parameter 'reportDate' when calling downloadReport(Async)"); + logger.error("Missing the required parameter 'reportDate' when calling downloadReport(Async)"); throw new ApiException("Missing the required parameter 'reportDate' when calling downloadReport(Async)"); } // verify the required parameter 'reportName' is set if (reportName == null) { - logger.error("Missing the required parameter 'reportName' when calling downloadReport(Async)"); + logger.error("Missing the required parameter 'reportName' when calling downloadReport(Async)"); throw new ApiException("Missing the required parameter 'reportName' when calling downloadReport(Async)"); } @@ -154,7 +156,7 @@ private okhttp3.Call downloadReportValidateBeforeCall(LocalDate reportDate, Stri * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void downloadReport(LocalDate reportDate, String reportName, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'downloadReport' STARTED"); + logger.info("CALL TO METHOD 'downloadReport' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); downloadReportWithHttpInfo(reportDate, reportName, organizationId); diff --git a/src/main/java/Api/ReportSubscriptionsApi.java b/src/main/java/Api/ReportSubscriptionsApi.java index 5bf27434b..c8826f67f 100644 --- a/src/main/java/Api/ReportSubscriptionsApi.java +++ b/src/main/java/Api/ReportSubscriptionsApi.java @@ -43,6 +43,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ReportSubscriptionsApi { private static Logger logger = LogManager.getLogger(ReportSubscriptionsApi.class); @@ -75,7 +76,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createStandardOrClassicSubscriptionCall(PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = predefinedSubscriptionRequestBean; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(predefinedSubscriptionRequestBean, PredefinedSubscriptionRequestBean.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/reporting/v3/predefined-report-subscriptions"; @@ -121,7 +123,7 @@ private okhttp3.Call createStandardOrClassicSubscriptionValidateBeforeCall(Prede // verify the required parameter 'predefinedSubscriptionRequestBean' is set if (predefinedSubscriptionRequestBean == null) { - logger.error("Missing the required parameter 'predefinedSubscriptionRequestBean' when calling createStandardOrClassicSubscription(Async)"); + logger.error("Missing the required parameter 'predefinedSubscriptionRequestBean' when calling createStandardOrClassicSubscription(Async)"); throw new ApiException("Missing the required parameter 'predefinedSubscriptionRequestBean' when calling createStandardOrClassicSubscription(Async)"); } @@ -143,7 +145,7 @@ private okhttp3.Call createStandardOrClassicSubscriptionValidateBeforeCall(Prede * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void createStandardOrClassicSubscription(PredefinedSubscriptionRequestBean predefinedSubscriptionRequestBean, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'createStandardOrClassicSubscription' STARTED"); + logger.info("CALL TO METHOD 'createStandardOrClassicSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); createStandardOrClassicSubscriptionWithHttpInfo(predefinedSubscriptionRequestBean, organizationId); @@ -207,7 +209,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createSubscriptionCall(CreateReportSubscriptionRequest createReportSubscriptionRequest, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createReportSubscriptionRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createReportSubscriptionRequest, CreateReportSubscriptionRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/reporting/v3/report-subscriptions"; @@ -253,7 +256,7 @@ private okhttp3.Call createSubscriptionValidateBeforeCall(CreateReportSubscripti // verify the required parameter 'createReportSubscriptionRequest' is set if (createReportSubscriptionRequest == null) { - logger.error("Missing the required parameter 'createReportSubscriptionRequest' when calling createSubscription(Async)"); + logger.error("Missing the required parameter 'createReportSubscriptionRequest' when calling createSubscription(Async)"); throw new ApiException("Missing the required parameter 'createReportSubscriptionRequest' when calling createSubscription(Async)"); } @@ -275,7 +278,7 @@ private okhttp3.Call createSubscriptionValidateBeforeCall(CreateReportSubscripti * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void createSubscription(CreateReportSubscriptionRequest createReportSubscriptionRequest, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'createSubscription' STARTED"); + logger.info("CALL TO METHOD 'createSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); createSubscriptionWithHttpInfo(createReportSubscriptionRequest, organizationId); @@ -339,6 +342,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deleteSubscriptionCall(String reportName, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("DELETE".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -389,7 +393,7 @@ private okhttp3.Call deleteSubscriptionValidateBeforeCall(String reportName, Str // verify the required parameter 'reportName' is set if (reportName == null) { - logger.error("Missing the required parameter 'reportName' when calling deleteSubscription(Async)"); + logger.error("Missing the required parameter 'reportName' when calling deleteSubscription(Async)"); throw new ApiException("Missing the required parameter 'reportName' when calling deleteSubscription(Async)"); } @@ -411,7 +415,7 @@ private okhttp3.Call deleteSubscriptionValidateBeforeCall(String reportName, Str * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void deleteSubscription(String reportName, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'deleteSubscription' STARTED"); + logger.info("CALL TO METHOD 'deleteSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); deleteSubscriptionWithHttpInfo(reportName, organizationId); @@ -474,6 +478,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getAllSubscriptionsCall(String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -539,7 +544,7 @@ private okhttp3.Call getAllSubscriptionsValidateBeforeCall(String organizationId * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ReportSubscriptionsGet200Response getAllSubscriptions(String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getAllSubscriptions' STARTED"); + logger.info("CALL TO METHOD 'getAllSubscriptions' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getAllSubscriptionsWithHttpInfo(organizationId); logger.info("CALL TO METHOD 'getAllSubscriptions' ENDED"); @@ -604,6 +609,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getSubscriptionCall(String reportName, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -654,7 +660,7 @@ private okhttp3.Call getSubscriptionValidateBeforeCall(String reportName, String // verify the required parameter 'reportName' is set if (reportName == null) { - logger.error("Missing the required parameter 'reportName' when calling getSubscription(Async)"); + logger.error("Missing the required parameter 'reportName' when calling getSubscription(Async)"); throw new ApiException("Missing the required parameter 'reportName' when calling getSubscription(Async)"); } @@ -677,7 +683,7 @@ private okhttp3.Call getSubscriptionValidateBeforeCall(String reportName, String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ReportSubscriptionsGet200ResponseSubscriptions getSubscription(String reportName, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getSubscription' STARTED"); + logger.info("CALL TO METHOD 'getSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getSubscriptionWithHttpInfo(reportName, organizationId); logger.info("CALL TO METHOD 'getSubscription' ENDED"); diff --git a/src/main/java/Api/ReportsApi.java b/src/main/java/Api/ReportsApi.java index f0c42cd63..ce492925a 100644 --- a/src/main/java/Api/ReportsApi.java +++ b/src/main/java/Api/ReportsApi.java @@ -42,6 +42,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ReportsApi { private static Logger logger = LogManager.getLogger(ReportsApi.class); @@ -74,7 +75,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createReportCall(CreateAdhocReportRequest createAdhocReportRequest, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createAdhocReportRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createAdhocReportRequest, CreateAdhocReportRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/reporting/v3/reports"; @@ -120,7 +122,7 @@ private okhttp3.Call createReportValidateBeforeCall(CreateAdhocReportRequest cre // verify the required parameter 'createAdhocReportRequest' is set if (createAdhocReportRequest == null) { - logger.error("Missing the required parameter 'createAdhocReportRequest' when calling createReport(Async)"); + logger.error("Missing the required parameter 'createAdhocReportRequest' when calling createReport(Async)"); throw new ApiException("Missing the required parameter 'createAdhocReportRequest' when calling createReport(Async)"); } @@ -142,7 +144,7 @@ private okhttp3.Call createReportValidateBeforeCall(CreateAdhocReportRequest cre * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void createReport(CreateAdhocReportRequest createAdhocReportRequest, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'createReport' STARTED"); + logger.info("CALL TO METHOD 'createReport' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); createReportWithHttpInfo(createAdhocReportRequest, organizationId); @@ -206,6 +208,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getReportByReportIdCall(String reportId, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -256,7 +259,7 @@ private okhttp3.Call getReportByReportIdValidateBeforeCall(String reportId, Stri // verify the required parameter 'reportId' is set if (reportId == null) { - logger.error("Missing the required parameter 'reportId' when calling getReportByReportId(Async)"); + logger.error("Missing the required parameter 'reportId' when calling getReportByReportId(Async)"); throw new ApiException("Missing the required parameter 'reportId' when calling getReportByReportId(Async)"); } @@ -279,7 +282,7 @@ private okhttp3.Call getReportByReportIdValidateBeforeCall(String reportId, Stri * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ReportsIdGet200Response getReportByReportId(String reportId, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getReportByReportId' STARTED"); + logger.info("CALL TO METHOD 'getReportByReportId' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getReportByReportIdWithHttpInfo(reportId, organizationId); logger.info("CALL TO METHOD 'getReportByReportId' ENDED"); @@ -353,6 +356,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call searchReportsCall(DateTime startTime, DateTime endTime, String timeQueryType, String organizationId, String reportMimeType, String reportFrequency, String reportName, Integer reportDefinitionId, String reportStatus, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -418,19 +422,19 @@ private okhttp3.Call searchReportsValidateBeforeCall(DateTime startTime, DateTim // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling searchReports(Async)"); + logger.error("Missing the required parameter 'startTime' when calling searchReports(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling searchReports(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling searchReports(Async)"); + logger.error("Missing the required parameter 'endTime' when calling searchReports(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling searchReports(Async)"); } // verify the required parameter 'timeQueryType' is set if (timeQueryType == null) { - logger.error("Missing the required parameter 'timeQueryType' when calling searchReports(Async)"); + logger.error("Missing the required parameter 'timeQueryType' when calling searchReports(Async)"); throw new ApiException("Missing the required parameter 'timeQueryType' when calling searchReports(Async)"); } @@ -460,7 +464,7 @@ private okhttp3.Call searchReportsValidateBeforeCall(DateTime startTime, DateTim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3ReportsGet200Response searchReports(DateTime startTime, DateTime endTime, String timeQueryType, String organizationId, String reportMimeType, String reportFrequency, String reportName, Integer reportDefinitionId, String reportStatus) throws ApiException { - logger.info("CALL TO METHOD 'searchReports' STARTED"); + logger.info("CALL TO METHOD 'searchReports' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = searchReportsWithHttpInfo(startTime, endTime, timeQueryType, organizationId, reportMimeType, reportFrequency, reportName, reportDefinitionId, reportStatus); logger.info("CALL TO METHOD 'searchReports' ENDED"); diff --git a/src/main/java/Api/RetrievalDetailsApi.java b/src/main/java/Api/RetrievalDetailsApi.java index 5cadac4ad..7bb6548e9 100644 --- a/src/main/java/Api/RetrievalDetailsApi.java +++ b/src/main/java/Api/RetrievalDetailsApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class RetrievalDetailsApi { private static Logger logger = LogManager.getLogger(RetrievalDetailsApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getRetrievalDetailsCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -125,13 +127,13 @@ private okhttp3.Call getRetrievalDetailsValidateBeforeCall(DateTime startTime, D // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getRetrievalDetails(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getRetrievalDetails(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getRetrievalDetails(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getRetrievalDetails(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getRetrievalDetails(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getRetrievalDetails(Async)"); } @@ -155,7 +157,7 @@ private okhttp3.Call getRetrievalDetailsValidateBeforeCall(DateTime startTime, D * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3RetrievalDetailsGet200Response getRetrievalDetails(DateTime startTime, DateTime endTime, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getRetrievalDetails' STARTED"); + logger.info("CALL TO METHOD 'getRetrievalDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getRetrievalDetailsWithHttpInfo(startTime, endTime, organizationId); logger.info("CALL TO METHOD 'getRetrievalDetails' ENDED"); diff --git a/src/main/java/Api/RetrievalSummariesApi.java b/src/main/java/Api/RetrievalSummariesApi.java index f51112b79..f069c356c 100644 --- a/src/main/java/Api/RetrievalSummariesApi.java +++ b/src/main/java/Api/RetrievalSummariesApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class RetrievalSummariesApi { private static Logger logger = LogManager.getLogger(RetrievalSummariesApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getRetrievalSummaryCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -125,13 +127,13 @@ private okhttp3.Call getRetrievalSummaryValidateBeforeCall(DateTime startTime, D // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getRetrievalSummary(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getRetrievalSummary(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getRetrievalSummary(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getRetrievalSummary(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getRetrievalSummary(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getRetrievalSummary(Async)"); } @@ -155,7 +157,7 @@ private okhttp3.Call getRetrievalSummaryValidateBeforeCall(DateTime startTime, D * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public ReportingV3RetrievalSummariesGet200Response getRetrievalSummary(DateTime startTime, DateTime endTime, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getRetrievalSummary' STARTED"); + logger.info("CALL TO METHOD 'getRetrievalSummary' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getRetrievalSummaryWithHttpInfo(startTime, endTime, organizationId); logger.info("CALL TO METHOD 'getRetrievalSummary' ENDED"); diff --git a/src/main/java/Api/ReversalApi.java b/src/main/java/Api/ReversalApi.java index 3a1d46d20..1980502ac 100644 --- a/src/main/java/Api/ReversalApi.java +++ b/src/main/java/Api/ReversalApi.java @@ -42,6 +42,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class ReversalApi { private static Logger logger = LogManager.getLogger(ReversalApi.class); @@ -74,7 +75,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call authReversalCall(String id, AuthReversalRequest authReversalRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = authReversalRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(authReversalRequest, AuthReversalRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/payments/{id}/reversals" @@ -119,13 +121,13 @@ private okhttp3.Call authReversalValidateBeforeCall(String id, AuthReversalReque // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling authReversal(Async)"); + logger.error("Missing the required parameter 'id' when calling authReversal(Async)"); throw new ApiException("Missing the required parameter 'id' when calling authReversal(Async)"); } // verify the required parameter 'authReversalRequest' is set if (authReversalRequest == null) { - logger.error("Missing the required parameter 'authReversalRequest' when calling authReversal(Async)"); + logger.error("Missing the required parameter 'authReversalRequest' when calling authReversal(Async)"); throw new ApiException("Missing the required parameter 'authReversalRequest' when calling authReversal(Async)"); } @@ -148,7 +150,7 @@ private okhttp3.Call authReversalValidateBeforeCall(String id, AuthReversalReque * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsReversalsPost201Response authReversal(String id, AuthReversalRequest authReversalRequest) throws ApiException { - logger.info("CALL TO METHOD 'authReversal' STARTED"); + logger.info("CALL TO METHOD 'authReversal' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = authReversalWithHttpInfo(id, authReversalRequest); logger.info("CALL TO METHOD 'authReversal' ENDED"); @@ -214,7 +216,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call mitReversalCall(MitReversalRequest mitReversalRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = mitReversalRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(mitReversalRequest, MitReversalRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/reversals"; @@ -258,7 +261,7 @@ private okhttp3.Call mitReversalValidateBeforeCall(MitReversalRequest mitReversa // verify the required parameter 'mitReversalRequest' is set if (mitReversalRequest == null) { - logger.error("Missing the required parameter 'mitReversalRequest' when calling mitReversal(Async)"); + logger.error("Missing the required parameter 'mitReversalRequest' when calling mitReversal(Async)"); throw new ApiException("Missing the required parameter 'mitReversalRequest' when calling mitReversal(Async)"); } @@ -280,7 +283,7 @@ private okhttp3.Call mitReversalValidateBeforeCall(MitReversalRequest mitReversa * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsReversalsPost201Response mitReversal(MitReversalRequest mitReversalRequest) throws ApiException { - logger.info("CALL TO METHOD 'mitReversal' STARTED"); + logger.info("CALL TO METHOD 'mitReversal' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = mitReversalWithHttpInfo(mitReversalRequest); logger.info("CALL TO METHOD 'mitReversal' ENDED"); diff --git a/src/main/java/Api/SearchTransactionsApi.java b/src/main/java/Api/SearchTransactionsApi.java index 2e9b00607..e064f8201 100644 --- a/src/main/java/Api/SearchTransactionsApi.java +++ b/src/main/java/Api/SearchTransactionsApi.java @@ -41,6 +41,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class SearchTransactionsApi { private static Logger logger = LogManager.getLogger(SearchTransactionsApi.class); @@ -72,7 +73,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createSearchCall(CreateSearchRequest createSearchRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createSearchRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createSearchRequest, CreateSearchRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/tss/v2/searches"; @@ -116,7 +118,7 @@ private okhttp3.Call createSearchValidateBeforeCall(CreateSearchRequest createSe // verify the required parameter 'createSearchRequest' is set if (createSearchRequest == null) { - logger.error("Missing the required parameter 'createSearchRequest' when calling createSearch(Async)"); + logger.error("Missing the required parameter 'createSearchRequest' when calling createSearch(Async)"); throw new ApiException("Missing the required parameter 'createSearchRequest' when calling createSearch(Async)"); } @@ -138,7 +140,7 @@ private okhttp3.Call createSearchValidateBeforeCall(CreateSearchRequest createSe * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TssV2TransactionsPost201Response createSearch(CreateSearchRequest createSearchRequest) throws ApiException { - logger.info("CALL TO METHOD 'createSearch' STARTED"); + logger.info("CALL TO METHOD 'createSearch' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createSearchWithHttpInfo(createSearchRequest); logger.info("CALL TO METHOD 'createSearch' ENDED"); @@ -202,6 +204,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getSearchCall(String searchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -250,7 +253,7 @@ private okhttp3.Call getSearchValidateBeforeCall(String searchId, final Progress // verify the required parameter 'searchId' is set if (searchId == null) { - logger.error("Missing the required parameter 'searchId' when calling getSearch(Async)"); + logger.error("Missing the required parameter 'searchId' when calling getSearch(Async)"); throw new ApiException("Missing the required parameter 'searchId' when calling getSearch(Async)"); } @@ -272,7 +275,7 @@ private okhttp3.Call getSearchValidateBeforeCall(String searchId, final Progress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TssV2TransactionsPost201Response getSearch(String searchId) throws ApiException { - logger.info("CALL TO METHOD 'getSearch' STARTED"); + logger.info("CALL TO METHOD 'getSearch' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getSearchWithHttpInfo(searchId); logger.info("CALL TO METHOD 'getSearch' ENDED"); diff --git a/src/main/java/Api/SecureFileShareApi.java b/src/main/java/Api/SecureFileShareApi.java index cdd7f5601..b28a4383c 100644 --- a/src/main/java/Api/SecureFileShareApi.java +++ b/src/main/java/Api/SecureFileShareApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class SecureFileShareApi { private static Logger logger = LogManager.getLogger(SecureFileShareApi.class); @@ -72,6 +73,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getFileCall(String fileId, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -122,7 +124,7 @@ private okhttp3.Call getFileValidateBeforeCall(String fileId, String organizatio // verify the required parameter 'fileId' is set if (fileId == null) { - logger.error("Missing the required parameter 'fileId' when calling getFile(Async)"); + logger.error("Missing the required parameter 'fileId' when calling getFile(Async)"); throw new ApiException("Missing the required parameter 'fileId' when calling getFile(Async)"); } @@ -144,7 +146,7 @@ private okhttp3.Call getFileValidateBeforeCall(String fileId, String organizatio * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void getFile(String fileId, String organizationId) throws ApiException { - logger.info("CALL TO METHOD 'getFile' STARTED"); + logger.info("CALL TO METHOD 'getFile' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); getFileWithHttpInfo(fileId, organizationId); @@ -210,6 +212,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getFileDetailCall(LocalDate startDate, LocalDate endDate, String organizationId, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -265,13 +268,13 @@ private okhttp3.Call getFileDetailValidateBeforeCall(LocalDate startDate, LocalD // verify the required parameter 'startDate' is set if (startDate == null) { - logger.error("Missing the required parameter 'startDate' when calling getFileDetail(Async)"); + logger.error("Missing the required parameter 'startDate' when calling getFileDetail(Async)"); throw new ApiException("Missing the required parameter 'startDate' when calling getFileDetail(Async)"); } // verify the required parameter 'endDate' is set if (endDate == null) { - logger.error("Missing the required parameter 'endDate' when calling getFileDetail(Async)"); + logger.error("Missing the required parameter 'endDate' when calling getFileDetail(Async)"); throw new ApiException("Missing the required parameter 'endDate' when calling getFileDetail(Async)"); } @@ -296,7 +299,7 @@ private okhttp3.Call getFileDetailValidateBeforeCall(LocalDate startDate, LocalD * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public V1FileDetailsGet200Response getFileDetail(LocalDate startDate, LocalDate endDate, String organizationId, String name) throws ApiException { - logger.info("CALL TO METHOD 'getFileDetail' STARTED"); + logger.info("CALL TO METHOD 'getFileDetail' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getFileDetailWithHttpInfo(startDate, endDate, organizationId, name); logger.info("CALL TO METHOD 'getFileDetail' ENDED"); diff --git a/src/main/java/Api/SubscriptionsApi.java b/src/main/java/Api/SubscriptionsApi.java index 94f73b70f..037c66a65 100644 --- a/src/main/java/Api/SubscriptionsApi.java +++ b/src/main/java/Api/SubscriptionsApi.java @@ -51,6 +51,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class SubscriptionsApi { private static Logger logger = LogManager.getLogger(SubscriptionsApi.class); @@ -82,6 +83,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call activateSubscriptionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -98,7 +100,7 @@ public okhttp3.Call activateSubscriptionCall(String id, final ProgressResponseBo Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -130,7 +132,7 @@ private okhttp3.Call activateSubscriptionValidateBeforeCall(String id, final Pro // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling activateSubscription(Async)"); + logger.error("Missing the required parameter 'id' when calling activateSubscription(Async)"); throw new ApiException("Missing the required parameter 'id' when calling activateSubscription(Async)"); } @@ -152,7 +154,7 @@ private okhttp3.Call activateSubscriptionValidateBeforeCall(String id, final Pro * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2009 activateSubscription(String id) throws ApiException { - logger.info("CALL TO METHOD 'activateSubscription' STARTED"); + logger.info("CALL TO METHOD 'activateSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = activateSubscriptionWithHttpInfo(id); logger.info("CALL TO METHOD 'activateSubscription' ENDED"); @@ -216,6 +218,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call cancelSubscriptionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -232,7 +235,7 @@ public okhttp3.Call cancelSubscriptionCall(String id, final ProgressResponseBody Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -264,7 +267,7 @@ private okhttp3.Call cancelSubscriptionValidateBeforeCall(String id, final Progr // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling cancelSubscription(Async)"); + logger.error("Missing the required parameter 'id' when calling cancelSubscription(Async)"); throw new ApiException("Missing the required parameter 'id' when calling cancelSubscription(Async)"); } @@ -286,7 +289,7 @@ private okhttp3.Call cancelSubscriptionValidateBeforeCall(String id, final Progr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse202 cancelSubscription(String id) throws ApiException { - logger.info("CALL TO METHOD 'cancelSubscription' STARTED"); + logger.info("CALL TO METHOD 'cancelSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = cancelSubscriptionWithHttpInfo(id); logger.info("CALL TO METHOD 'cancelSubscription' ENDED"); @@ -350,7 +353,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createSubscriptionCall(CreateSubscriptionRequest createSubscriptionRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createSubscriptionRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createSubscriptionRequest, CreateSubscriptionRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/rbs/v1/subscriptions"; @@ -362,7 +366,7 @@ public okhttp3.Call createSubscriptionCall(CreateSubscriptionRequest createSubsc Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -394,7 +398,7 @@ private okhttp3.Call createSubscriptionValidateBeforeCall(CreateSubscriptionRequ // verify the required parameter 'createSubscriptionRequest' is set if (createSubscriptionRequest == null) { - logger.error("Missing the required parameter 'createSubscriptionRequest' when calling createSubscription(Async)"); + logger.error("Missing the required parameter 'createSubscriptionRequest' when calling createSubscription(Async)"); throw new ApiException("Missing the required parameter 'createSubscriptionRequest' when calling createSubscription(Async)"); } @@ -416,7 +420,7 @@ private okhttp3.Call createSubscriptionValidateBeforeCall(CreateSubscriptionRequ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2011 createSubscription(CreateSubscriptionRequest createSubscriptionRequest) throws ApiException { - logger.info("CALL TO METHOD 'createSubscription' STARTED"); + logger.info("CALL TO METHOD 'createSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createSubscriptionWithHttpInfo(createSubscriptionRequest); logger.info("CALL TO METHOD 'createSubscription' ENDED"); @@ -483,6 +487,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getAllSubscriptionsCall(Integer offset, Integer limit, String code, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -506,7 +511,7 @@ public okhttp3.Call getAllSubscriptionsCall(Integer offset, Integer limit, Strin Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -557,7 +562,7 @@ private okhttp3.Call getAllSubscriptionsValidateBeforeCall(Integer offset, Integ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2006 getAllSubscriptions(Integer offset, Integer limit, String code, String status) throws ApiException { - logger.info("CALL TO METHOD 'getAllSubscriptions' STARTED"); + logger.info("CALL TO METHOD 'getAllSubscriptions' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getAllSubscriptionsWithHttpInfo(offset, limit, code, status); logger.info("CALL TO METHOD 'getAllSubscriptions' ENDED"); @@ -627,6 +632,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getSubscriptionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -643,7 +649,7 @@ public okhttp3.Call getSubscriptionCall(String id, final ProgressResponseBody.Pr Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -675,7 +681,7 @@ private okhttp3.Call getSubscriptionValidateBeforeCall(String id, final Progress // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling getSubscription(Async)"); + logger.error("Missing the required parameter 'id' when calling getSubscription(Async)"); throw new ApiException("Missing the required parameter 'id' when calling getSubscription(Async)"); } @@ -697,7 +703,7 @@ private okhttp3.Call getSubscriptionValidateBeforeCall(String id, final Progress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2007 getSubscription(String id) throws ApiException { - logger.info("CALL TO METHOD 'getSubscription' STARTED"); + logger.info("CALL TO METHOD 'getSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getSubscriptionWithHttpInfo(id); logger.info("CALL TO METHOD 'getSubscription' ENDED"); @@ -760,6 +766,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getSubscriptionCodeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -775,7 +782,7 @@ public okhttp3.Call getSubscriptionCodeCall(final ProgressResponseBody.ProgressL Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -822,7 +829,7 @@ private okhttp3.Call getSubscriptionCodeValidateBeforeCall(final ProgressRespons * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse20010 getSubscriptionCode() throws ApiException { - logger.info("CALL TO METHOD 'getSubscriptionCode' STARTED"); + logger.info("CALL TO METHOD 'getSubscriptionCode' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getSubscriptionCodeWithHttpInfo(); logger.info("CALL TO METHOD 'getSubscriptionCode' ENDED"); @@ -884,6 +891,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call suspendSubscriptionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -900,7 +908,7 @@ public okhttp3.Call suspendSubscriptionCall(String id, final ProgressResponseBod Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -932,7 +940,7 @@ private okhttp3.Call suspendSubscriptionValidateBeforeCall(String id, final Prog // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling suspendSubscription(Async)"); + logger.error("Missing the required parameter 'id' when calling suspendSubscription(Async)"); throw new ApiException("Missing the required parameter 'id' when calling suspendSubscription(Async)"); } @@ -954,7 +962,7 @@ private okhttp3.Call suspendSubscriptionValidateBeforeCall(String id, final Prog * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2021 suspendSubscription(String id) throws ApiException { - logger.info("CALL TO METHOD 'suspendSubscription' STARTED"); + logger.info("CALL TO METHOD 'suspendSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = suspendSubscriptionWithHttpInfo(id); logger.info("CALL TO METHOD 'suspendSubscription' ENDED"); @@ -1019,7 +1027,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call updateSubscriptionCall(String id, UpdateSubscription updateSubscription, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = updateSubscription; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(updateSubscription, UpdateSubscription.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/rbs/v1/subscriptions/{id}" @@ -1032,7 +1041,7 @@ public okhttp3.Call updateSubscriptionCall(String id, UpdateSubscription updateS Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { - "application/hal+json;charset=utf-8" + "application/json;charset=utf-8" }; final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); @@ -1064,13 +1073,13 @@ private okhttp3.Call updateSubscriptionValidateBeforeCall(String id, UpdateSubsc // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling updateSubscription(Async)"); + logger.error("Missing the required parameter 'id' when calling updateSubscription(Async)"); throw new ApiException("Missing the required parameter 'id' when calling updateSubscription(Async)"); } // verify the required parameter 'updateSubscription' is set if (updateSubscription == null) { - logger.error("Missing the required parameter 'updateSubscription' when calling updateSubscription(Async)"); + logger.error("Missing the required parameter 'updateSubscription' when calling updateSubscription(Async)"); throw new ApiException("Missing the required parameter 'updateSubscription' when calling updateSubscription(Async)"); } @@ -1093,7 +1102,7 @@ private okhttp3.Call updateSubscriptionValidateBeforeCall(String id, UpdateSubsc * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public InlineResponse2008 updateSubscription(String id, UpdateSubscription updateSubscription) throws ApiException { - logger.info("CALL TO METHOD 'updateSubscription' STARTED"); + logger.info("CALL TO METHOD 'updateSubscription' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = updateSubscriptionWithHttpInfo(id, updateSubscription); logger.info("CALL TO METHOD 'updateSubscription' ENDED"); diff --git a/src/main/java/Api/SymmetricKeyManagementApi.java b/src/main/java/Api/SymmetricKeyManagementApi.java index f28e510b4..51b6b7c7a 100644 --- a/src/main/java/Api/SymmetricKeyManagementApi.java +++ b/src/main/java/Api/SymmetricKeyManagementApi.java @@ -45,6 +45,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class SymmetricKeyManagementApi { private static Logger logger = LogManager.getLogger(SymmetricKeyManagementApi.class); @@ -76,7 +77,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createV2SharedSecretKeysCall(CreateSharedSecretKeysRequest createSharedSecretKeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createSharedSecretKeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createSharedSecretKeysRequest, CreateSharedSecretKeysRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-sym"; @@ -120,7 +122,7 @@ private okhttp3.Call createV2SharedSecretKeysValidateBeforeCall(CreateSharedSecr // verify the required parameter 'createSharedSecretKeysRequest' is set if (createSharedSecretKeysRequest == null) { - logger.error("Missing the required parameter 'createSharedSecretKeysRequest' when calling createV2SharedSecretKeys(Async)"); + logger.error("Missing the required parameter 'createSharedSecretKeysRequest' when calling createV2SharedSecretKeys(Async)"); throw new ApiException("Missing the required parameter 'createSharedSecretKeysRequest' when calling createV2SharedSecretKeys(Async)"); } @@ -142,7 +144,7 @@ private okhttp3.Call createV2SharedSecretKeysValidateBeforeCall(CreateSharedSecr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public KmsV2KeysSymPost201Response createV2SharedSecretKeys(CreateSharedSecretKeysRequest createSharedSecretKeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'createV2SharedSecretKeys' STARTED"); + logger.info("CALL TO METHOD 'createV2SharedSecretKeys' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createV2SharedSecretKeysWithHttpInfo(createSharedSecretKeysRequest); logger.info("CALL TO METHOD 'createV2SharedSecretKeys' ENDED"); @@ -207,7 +209,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call createV2SharedSecretKeysVerifiCall(String vIcDomain, CreateSharedSecretKeysVerifiRequest createSharedSecretKeysVerifiRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = createSharedSecretKeysVerifiRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createSharedSecretKeysVerifiRequest, CreateSharedSecretKeysVerifiRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-sym/verifi"; @@ -253,13 +256,13 @@ private okhttp3.Call createV2SharedSecretKeysVerifiValidateBeforeCall(String vIc // verify the required parameter 'vIcDomain' is set if (vIcDomain == null) { - logger.error("Missing the required parameter 'vIcDomain' when calling createV2SharedSecretKeysVerifi(Async)"); + logger.error("Missing the required parameter 'vIcDomain' when calling createV2SharedSecretKeysVerifi(Async)"); throw new ApiException("Missing the required parameter 'vIcDomain' when calling createV2SharedSecretKeysVerifi(Async)"); } // verify the required parameter 'createSharedSecretKeysVerifiRequest' is set if (createSharedSecretKeysVerifiRequest == null) { - logger.error("Missing the required parameter 'createSharedSecretKeysVerifiRequest' when calling createV2SharedSecretKeysVerifi(Async)"); + logger.error("Missing the required parameter 'createSharedSecretKeysVerifiRequest' when calling createV2SharedSecretKeysVerifi(Async)"); throw new ApiException("Missing the required parameter 'createSharedSecretKeysVerifiRequest' when calling createV2SharedSecretKeysVerifi(Async)"); } @@ -282,7 +285,7 @@ private okhttp3.Call createV2SharedSecretKeysVerifiValidateBeforeCall(String vIc * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public KmsV2KeysSymPost201Response createV2SharedSecretKeysVerifi(String vIcDomain, CreateSharedSecretKeysVerifiRequest createSharedSecretKeysVerifiRequest) throws ApiException { - logger.info("CALL TO METHOD 'createV2SharedSecretKeysVerifi' STARTED"); + logger.info("CALL TO METHOD 'createV2SharedSecretKeysVerifi' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = createV2SharedSecretKeysVerifiWithHttpInfo(vIcDomain, createSharedSecretKeysVerifiRequest); logger.info("CALL TO METHOD 'createV2SharedSecretKeysVerifi' ENDED"); @@ -348,7 +351,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call deleteBulkSymmetricKeysCall(DeleteBulkSymmetricKeysRequest deleteBulkSymmetricKeysRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = deleteBulkSymmetricKeysRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(deleteBulkSymmetricKeysRequest, DeleteBulkSymmetricKeysRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/kms/v2/keys-sym/deletes"; @@ -392,7 +396,7 @@ private okhttp3.Call deleteBulkSymmetricKeysValidateBeforeCall(DeleteBulkSymmetr // verify the required parameter 'deleteBulkSymmetricKeysRequest' is set if (deleteBulkSymmetricKeysRequest == null) { - logger.error("Missing the required parameter 'deleteBulkSymmetricKeysRequest' when calling deleteBulkSymmetricKeys(Async)"); + logger.error("Missing the required parameter 'deleteBulkSymmetricKeysRequest' when calling deleteBulkSymmetricKeys(Async)"); throw new ApiException("Missing the required parameter 'deleteBulkSymmetricKeysRequest' when calling deleteBulkSymmetricKeys(Async)"); } @@ -414,7 +418,7 @@ private okhttp3.Call deleteBulkSymmetricKeysValidateBeforeCall(DeleteBulkSymmetr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public KmsV2KeysSymDeletesPost200Response deleteBulkSymmetricKeys(DeleteBulkSymmetricKeysRequest deleteBulkSymmetricKeysRequest) throws ApiException { - logger.info("CALL TO METHOD 'deleteBulkSymmetricKeys' STARTED"); + logger.info("CALL TO METHOD 'deleteBulkSymmetricKeys' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = deleteBulkSymmetricKeysWithHttpInfo(deleteBulkSymmetricKeysRequest); logger.info("CALL TO METHOD 'deleteBulkSymmetricKeys' ENDED"); @@ -478,6 +482,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getKeyDetailsCall(String keyId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -526,7 +531,7 @@ private okhttp3.Call getKeyDetailsValidateBeforeCall(String keyId, final Progres // verify the required parameter 'keyId' is set if (keyId == null) { - logger.error("Missing the required parameter 'keyId' when calling getKeyDetails(Async)"); + logger.error("Missing the required parameter 'keyId' when calling getKeyDetails(Async)"); throw new ApiException("Missing the required parameter 'keyId' when calling getKeyDetails(Async)"); } @@ -548,7 +553,7 @@ private okhttp3.Call getKeyDetailsValidateBeforeCall(String keyId, final Progres * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public KmsV2KeysSymGet200Response getKeyDetails(String keyId) throws ApiException { - logger.info("CALL TO METHOD 'getKeyDetails' STARTED"); + logger.info("CALL TO METHOD 'getKeyDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getKeyDetailsWithHttpInfo(keyId); logger.info("CALL TO METHOD 'getKeyDetails' ENDED"); diff --git a/src/main/java/Api/TaxesApi.java b/src/main/java/Api/TaxesApi.java index d6d3cb1aa..baccb8081 100644 --- a/src/main/java/Api/TaxesApi.java +++ b/src/main/java/Api/TaxesApi.java @@ -44,6 +44,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class TaxesApi { private static Logger logger = LogManager.getLogger(TaxesApi.class); @@ -75,7 +76,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call calculateTaxCall(TaxRequest taxRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = taxRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(taxRequest, TaxRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/vas/v2/tax"; @@ -119,7 +121,7 @@ private okhttp3.Call calculateTaxValidateBeforeCall(TaxRequest taxRequest, final // verify the required parameter 'taxRequest' is set if (taxRequest == null) { - logger.error("Missing the required parameter 'taxRequest' when calling calculateTax(Async)"); + logger.error("Missing the required parameter 'taxRequest' when calling calculateTax(Async)"); throw new ApiException("Missing the required parameter 'taxRequest' when calling calculateTax(Async)"); } @@ -141,7 +143,7 @@ private okhttp3.Call calculateTaxValidateBeforeCall(TaxRequest taxRequest, final * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public VasV2PaymentsPost201Response calculateTax(TaxRequest taxRequest) throws ApiException { - logger.info("CALL TO METHOD 'calculateTax' STARTED"); + logger.info("CALL TO METHOD 'calculateTax' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = calculateTaxWithHttpInfo(taxRequest); logger.info("CALL TO METHOD 'calculateTax' ENDED"); @@ -206,7 +208,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call voidTaxCall(VoidTaxRequest voidTaxRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = voidTaxRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(voidTaxRequest, VoidTaxRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/vas/v2/tax/{id}" @@ -251,13 +254,13 @@ private okhttp3.Call voidTaxValidateBeforeCall(VoidTaxRequest voidTaxRequest, St // verify the required parameter 'voidTaxRequest' is set if (voidTaxRequest == null) { - logger.error("Missing the required parameter 'voidTaxRequest' when calling voidTax(Async)"); + logger.error("Missing the required parameter 'voidTaxRequest' when calling voidTax(Async)"); throw new ApiException("Missing the required parameter 'voidTaxRequest' when calling voidTax(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling voidTax(Async)"); + logger.error("Missing the required parameter 'id' when calling voidTax(Async)"); throw new ApiException("Missing the required parameter 'id' when calling voidTax(Async)"); } @@ -280,7 +283,7 @@ private okhttp3.Call voidTaxValidateBeforeCall(VoidTaxRequest voidTaxRequest, St * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public VasV2TaxVoid200Response voidTax(VoidTaxRequest voidTaxRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'voidTax' STARTED"); + logger.info("CALL TO METHOD 'voidTax' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = voidTaxWithHttpInfo(voidTaxRequest, id); logger.info("CALL TO METHOD 'voidTax' ENDED"); diff --git a/src/main/java/Api/TokenApi.java b/src/main/java/Api/TokenApi.java index 5d0869256..8b4c7cbdc 100644 --- a/src/main/java/Api/TokenApi.java +++ b/src/main/java/Api/TokenApi.java @@ -42,6 +42,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class TokenApi { private static Logger logger = LogManager.getLogger(TokenApi.class); @@ -74,6 +75,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call postTokenPaymentCredentialsCall(String tokenId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("POST".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -124,7 +126,7 @@ private okhttp3.Call postTokenPaymentCredentialsValidateBeforeCall(String tokenI // verify the required parameter 'tokenId' is set if (tokenId == null) { - logger.error("Missing the required parameter 'tokenId' when calling postTokenPaymentCredentials(Async)"); + logger.error("Missing the required parameter 'tokenId' when calling postTokenPaymentCredentials(Async)"); throw new ApiException("Missing the required parameter 'tokenId' when calling postTokenPaymentCredentials(Async)"); } @@ -147,7 +149,7 @@ private okhttp3.Call postTokenPaymentCredentialsValidateBeforeCall(String tokenI * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public String postTokenPaymentCredentials(String tokenId, String profileId) throws ApiException { - logger.info("CALL TO METHOD 'postTokenPaymentCredentials' STARTED"); + logger.info("CALL TO METHOD 'postTokenPaymentCredentials' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = postTokenPaymentCredentialsWithHttpInfo(tokenId, profileId); logger.info("CALL TO METHOD 'postTokenPaymentCredentials' ENDED"); diff --git a/src/main/java/Api/TransactionBatchesApi.java b/src/main/java/Api/TransactionBatchesApi.java index 939d7a4a5..aab8045e0 100644 --- a/src/main/java/Api/TransactionBatchesApi.java +++ b/src/main/java/Api/TransactionBatchesApi.java @@ -43,6 +43,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class TransactionBatchesApi { private static Logger logger = LogManager.getLogger(TransactionBatchesApi.class); @@ -76,6 +77,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getTransactionBatchDetailsCall(String id, LocalDate uploadDate, String status, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -128,7 +130,7 @@ private okhttp3.Call getTransactionBatchDetailsValidateBeforeCall(String id, Loc // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling getTransactionBatchDetails(Async)"); + logger.error("Missing the required parameter 'id' when calling getTransactionBatchDetails(Async)"); throw new ApiException("Missing the required parameter 'id' when calling getTransactionBatchDetails(Async)"); } @@ -151,7 +153,7 @@ private okhttp3.Call getTransactionBatchDetailsValidateBeforeCall(String id, Loc * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void getTransactionBatchDetails(String id, LocalDate uploadDate, String status) throws ApiException { - logger.info("CALL TO METHOD 'getTransactionBatchDetails' STARTED"); + logger.info("CALL TO METHOD 'getTransactionBatchDetails' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); getTransactionBatchDetailsWithHttpInfo(id, uploadDate, status); @@ -216,6 +218,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getTransactionBatchIdCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -264,7 +267,7 @@ private okhttp3.Call getTransactionBatchIdValidateBeforeCall(String id, final Pr // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling getTransactionBatchId(Async)"); + logger.error("Missing the required parameter 'id' when calling getTransactionBatchId(Async)"); throw new ApiException("Missing the required parameter 'id' when calling getTransactionBatchId(Async)"); } @@ -286,7 +289,7 @@ private okhttp3.Call getTransactionBatchIdValidateBeforeCall(String id, final Pr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV1TransactionBatchesIdGet200Response getTransactionBatchId(String id) throws ApiException { - logger.info("CALL TO METHOD 'getTransactionBatchId' STARTED"); + logger.info("CALL TO METHOD 'getTransactionBatchId' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getTransactionBatchIdWithHttpInfo(id); logger.info("CALL TO METHOD 'getTransactionBatchId' ENDED"); @@ -351,6 +354,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getTransactionBatchesCall(DateTime startTime, DateTime endTime, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -402,13 +406,13 @@ private okhttp3.Call getTransactionBatchesValidateBeforeCall(DateTime startTime, // verify the required parameter 'startTime' is set if (startTime == null) { - logger.error("Missing the required parameter 'startTime' when calling getTransactionBatches(Async)"); + logger.error("Missing the required parameter 'startTime' when calling getTransactionBatches(Async)"); throw new ApiException("Missing the required parameter 'startTime' when calling getTransactionBatches(Async)"); } // verify the required parameter 'endTime' is set if (endTime == null) { - logger.error("Missing the required parameter 'endTime' when calling getTransactionBatches(Async)"); + logger.error("Missing the required parameter 'endTime' when calling getTransactionBatches(Async)"); throw new ApiException("Missing the required parameter 'endTime' when calling getTransactionBatches(Async)"); } @@ -431,7 +435,7 @@ private okhttp3.Call getTransactionBatchesValidateBeforeCall(DateTime startTime, * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV1TransactionBatchesGet200Response getTransactionBatches(DateTime startTime, DateTime endTime) throws ApiException { - logger.info("CALL TO METHOD 'getTransactionBatches' STARTED"); + logger.info("CALL TO METHOD 'getTransactionBatches' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getTransactionBatchesWithHttpInfo(startTime, endTime); logger.info("CALL TO METHOD 'getTransactionBatches' ENDED"); diff --git a/src/main/java/Api/TransactionDetailsApi.java b/src/main/java/Api/TransactionDetailsApi.java index 9a3a1ff0d..2477ee163 100644 --- a/src/main/java/Api/TransactionDetailsApi.java +++ b/src/main/java/Api/TransactionDetailsApi.java @@ -38,6 +38,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class TransactionDetailsApi { private static Logger logger = LogManager.getLogger(TransactionDetailsApi.class); @@ -69,6 +70,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getTransactionCall(String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -117,7 +119,7 @@ private okhttp3.Call getTransactionValidateBeforeCall(String id, final ProgressR // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling getTransaction(Async)"); + logger.error("Missing the required parameter 'id' when calling getTransaction(Async)"); throw new ApiException("Missing the required parameter 'id' when calling getTransaction(Async)"); } @@ -139,7 +141,7 @@ private okhttp3.Call getTransactionValidateBeforeCall(String id, final ProgressR * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public TssV2TransactionsGet200Response getTransaction(String id) throws ApiException { - logger.info("CALL TO METHOD 'getTransaction' STARTED"); + logger.info("CALL TO METHOD 'getTransaction' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getTransactionWithHttpInfo(id); logger.info("CALL TO METHOD 'getTransaction' ENDED"); diff --git a/src/main/java/Api/TransientTokenDataApi.java b/src/main/java/Api/TransientTokenDataApi.java index 4e48f8505..900577499 100644 --- a/src/main/java/Api/TransientTokenDataApi.java +++ b/src/main/java/Api/TransientTokenDataApi.java @@ -37,6 +37,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class TransientTokenDataApi { private static Logger logger = LogManager.getLogger(TransientTokenDataApi.class); @@ -68,6 +69,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getTransactionForTransientTokenCall(String transientToken, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -116,7 +118,7 @@ private okhttp3.Call getTransactionForTransientTokenValidateBeforeCall(String tr // verify the required parameter 'transientToken' is set if (transientToken == null) { - logger.error("Missing the required parameter 'transientToken' when calling getTransactionForTransientToken(Async)"); + logger.error("Missing the required parameter 'transientToken' when calling getTransactionForTransientToken(Async)"); throw new ApiException("Missing the required parameter 'transientToken' when calling getTransactionForTransientToken(Async)"); } @@ -137,7 +139,7 @@ private okhttp3.Call getTransactionForTransientTokenValidateBeforeCall(String tr * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public void getTransactionForTransientToken(String transientToken) throws ApiException { - logger.info("CALL TO METHOD 'getTransactionForTransientToken' STARTED"); + logger.info("CALL TO METHOD 'getTransactionForTransientToken' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); getTransactionForTransientTokenWithHttpInfo(transientToken); diff --git a/src/main/java/Api/UnifiedCheckoutCaptureContextApi.java b/src/main/java/Api/UnifiedCheckoutCaptureContextApi.java index c3a9878c3..3bd4df559 100644 --- a/src/main/java/Api/UnifiedCheckoutCaptureContextApi.java +++ b/src/main/java/Api/UnifiedCheckoutCaptureContextApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class UnifiedCheckoutCaptureContextApi { private static Logger logger = LogManager.getLogger(UnifiedCheckoutCaptureContextApi.class); @@ -70,7 +71,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call generateUnifiedCheckoutCaptureContextCall(GenerateUnifiedCheckoutCaptureContextRequest generateUnifiedCheckoutCaptureContextRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = generateUnifiedCheckoutCaptureContextRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(generateUnifiedCheckoutCaptureContextRequest, GenerateUnifiedCheckoutCaptureContextRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/up/v1/capture-contexts"; @@ -114,7 +116,7 @@ private okhttp3.Call generateUnifiedCheckoutCaptureContextValidateBeforeCall(Gen // verify the required parameter 'generateUnifiedCheckoutCaptureContextRequest' is set if (generateUnifiedCheckoutCaptureContextRequest == null) { - logger.error("Missing the required parameter 'generateUnifiedCheckoutCaptureContextRequest' when calling generateUnifiedCheckoutCaptureContext(Async)"); + logger.error("Missing the required parameter 'generateUnifiedCheckoutCaptureContextRequest' when calling generateUnifiedCheckoutCaptureContext(Async)"); throw new ApiException("Missing the required parameter 'generateUnifiedCheckoutCaptureContextRequest' when calling generateUnifiedCheckoutCaptureContext(Async)"); } @@ -136,7 +138,7 @@ private okhttp3.Call generateUnifiedCheckoutCaptureContextValidateBeforeCall(Gen * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public String generateUnifiedCheckoutCaptureContext(GenerateUnifiedCheckoutCaptureContextRequest generateUnifiedCheckoutCaptureContextRequest) throws ApiException { - logger.info("CALL TO METHOD 'generateUnifiedCheckoutCaptureContext' STARTED"); + logger.info("CALL TO METHOD 'generateUnifiedCheckoutCaptureContext' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = generateUnifiedCheckoutCaptureContextWithHttpInfo(generateUnifiedCheckoutCaptureContextRequest); logger.info("CALL TO METHOD 'generateUnifiedCheckoutCaptureContext' ENDED"); diff --git a/src/main/java/Api/UserManagementApi.java b/src/main/java/Api/UserManagementApi.java index f87ae1fd5..dff789088 100644 --- a/src/main/java/Api/UserManagementApi.java +++ b/src/main/java/Api/UserManagementApi.java @@ -39,6 +39,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class UserManagementApi { private static Logger logger = LogManager.getLogger(UserManagementApi.class); @@ -73,6 +74,7 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call getUsersCall(String organizationId, String userName, String permissionId, String roleId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + SdkTracker sdkTracker = new SdkTracker(); Object localVarPostBody = null; if ("GET".equalsIgnoreCase("POST")) { localVarPostBody = "{}"; @@ -147,7 +149,7 @@ private okhttp3.Call getUsersValidateBeforeCall(String organizationId, String us * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public UmsV1UsersGet200Response getUsers(String organizationId, String userName, String permissionId, String roleId) throws ApiException { - logger.info("CALL TO METHOD 'getUsers' STARTED"); + logger.info("CALL TO METHOD 'getUsers' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = getUsersWithHttpInfo(organizationId, userName, permissionId, roleId); logger.info("CALL TO METHOD 'getUsers' ENDED"); diff --git a/src/main/java/Api/UserManagementSearchApi.java b/src/main/java/Api/UserManagementSearchApi.java index c6e496edb..e651d4d8e 100644 --- a/src/main/java/Api/UserManagementSearchApi.java +++ b/src/main/java/Api/UserManagementSearchApi.java @@ -40,6 +40,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class UserManagementSearchApi { private static Logger logger = LogManager.getLogger(UserManagementSearchApi.class); @@ -71,7 +72,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call searchUsersCall(SearchRequest searchRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = searchRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(searchRequest, SearchRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/ums/v1/users/search"; @@ -115,7 +117,7 @@ private okhttp3.Call searchUsersValidateBeforeCall(SearchRequest searchRequest, // verify the required parameter 'searchRequest' is set if (searchRequest == null) { - logger.error("Missing the required parameter 'searchRequest' when calling searchUsers(Async)"); + logger.error("Missing the required parameter 'searchRequest' when calling searchUsers(Async)"); throw new ApiException("Missing the required parameter 'searchRequest' when calling searchUsers(Async)"); } @@ -137,7 +139,7 @@ private okhttp3.Call searchUsersValidateBeforeCall(SearchRequest searchRequest, * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public UmsV1UsersGet200Response searchUsers(SearchRequest searchRequest) throws ApiException { - logger.info("CALL TO METHOD 'searchUsers' STARTED"); + logger.info("CALL TO METHOD 'searchUsers' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = searchUsersWithHttpInfo(searchRequest); logger.info("CALL TO METHOD 'searchUsers' ENDED"); diff --git a/src/main/java/Api/VerificationApi.java b/src/main/java/Api/VerificationApi.java index f7541fdb8..e8a132377 100644 --- a/src/main/java/Api/VerificationApi.java +++ b/src/main/java/Api/VerificationApi.java @@ -43,6 +43,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class VerificationApi { private static Logger logger = LogManager.getLogger(VerificationApi.class); @@ -74,7 +75,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call validateExportComplianceCall(ValidateExportComplianceRequest validateExportComplianceRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = validateExportComplianceRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(validateExportComplianceRequest, ValidateExportComplianceRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/export-compliance-inquiries"; @@ -118,7 +120,7 @@ private okhttp3.Call validateExportComplianceValidateBeforeCall(ValidateExportCo // verify the required parameter 'validateExportComplianceRequest' is set if (validateExportComplianceRequest == null) { - logger.error("Missing the required parameter 'validateExportComplianceRequest' when calling validateExportCompliance(Async)"); + logger.error("Missing the required parameter 'validateExportComplianceRequest' when calling validateExportCompliance(Async)"); throw new ApiException("Missing the required parameter 'validateExportComplianceRequest' when calling validateExportCompliance(Async)"); } @@ -140,7 +142,7 @@ private okhttp3.Call validateExportComplianceValidateBeforeCall(ValidateExportCo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1ExportComplianceInquiriesPost201Response validateExportCompliance(ValidateExportComplianceRequest validateExportComplianceRequest) throws ApiException { - logger.info("CALL TO METHOD 'validateExportCompliance' STARTED"); + logger.info("CALL TO METHOD 'validateExportCompliance' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = validateExportComplianceWithHttpInfo(validateExportComplianceRequest); logger.info("CALL TO METHOD 'validateExportCompliance' ENDED"); @@ -204,7 +206,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call verifyCustomerAddressCall(VerifyCustomerAddressRequest verifyCustomerAddressRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = verifyCustomerAddressRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(verifyCustomerAddressRequest, VerifyCustomerAddressRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/risk/v1/address-verifications"; @@ -248,7 +251,7 @@ private okhttp3.Call verifyCustomerAddressValidateBeforeCall(VerifyCustomerAddre // verify the required parameter 'verifyCustomerAddressRequest' is set if (verifyCustomerAddressRequest == null) { - logger.error("Missing the required parameter 'verifyCustomerAddressRequest' when calling verifyCustomerAddress(Async)"); + logger.error("Missing the required parameter 'verifyCustomerAddressRequest' when calling verifyCustomerAddress(Async)"); throw new ApiException("Missing the required parameter 'verifyCustomerAddressRequest' when calling verifyCustomerAddress(Async)"); } @@ -270,7 +273,7 @@ private okhttp3.Call verifyCustomerAddressValidateBeforeCall(VerifyCustomerAddre * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public RiskV1AddressVerificationsPost201Response verifyCustomerAddress(VerifyCustomerAddressRequest verifyCustomerAddressRequest) throws ApiException { - logger.info("CALL TO METHOD 'verifyCustomerAddress' STARTED"); + logger.info("CALL TO METHOD 'verifyCustomerAddress' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = verifyCustomerAddressWithHttpInfo(verifyCustomerAddressRequest); logger.info("CALL TO METHOD 'verifyCustomerAddress' ENDED"); diff --git a/src/main/java/Api/VoidApi.java b/src/main/java/Api/VoidApi.java index 85c4803b7..1df493236 100644 --- a/src/main/java/Api/VoidApi.java +++ b/src/main/java/Api/VoidApi.java @@ -45,6 +45,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import utilities.tracking.SdkTracker; public class VoidApi { private static Logger logger = LogManager.getLogger(VoidApi.class); @@ -76,7 +77,8 @@ public void setApiClient(ApiClient apiClient) { * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call mitVoidCall(MitVoidRequest mitVoidRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = mitVoidRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(mitVoidRequest, MitVoidRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/voids"; @@ -120,7 +122,7 @@ private okhttp3.Call mitVoidValidateBeforeCall(MitVoidRequest mitVoidRequest, fi // verify the required parameter 'mitVoidRequest' is set if (mitVoidRequest == null) { - logger.error("Missing the required parameter 'mitVoidRequest' when calling mitVoid(Async)"); + logger.error("Missing the required parameter 'mitVoidRequest' when calling mitVoid(Async)"); throw new ApiException("Missing the required parameter 'mitVoidRequest' when calling mitVoid(Async)"); } @@ -142,7 +144,7 @@ private okhttp3.Call mitVoidValidateBeforeCall(MitVoidRequest mitVoidRequest, fi * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsVoidsPost201Response mitVoid(MitVoidRequest mitVoidRequest) throws ApiException { - logger.info("CALL TO METHOD 'mitVoid' STARTED"); + logger.info("CALL TO METHOD 'mitVoid' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = mitVoidWithHttpInfo(mitVoidRequest); logger.info("CALL TO METHOD 'mitVoid' ENDED"); @@ -207,7 +209,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call voidCaptureCall(VoidCaptureRequest voidCaptureRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = voidCaptureRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(voidCaptureRequest, VoidCaptureRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/captures/{id}/voids" @@ -252,13 +255,13 @@ private okhttp3.Call voidCaptureValidateBeforeCall(VoidCaptureRequest voidCaptur // verify the required parameter 'voidCaptureRequest' is set if (voidCaptureRequest == null) { - logger.error("Missing the required parameter 'voidCaptureRequest' when calling voidCapture(Async)"); + logger.error("Missing the required parameter 'voidCaptureRequest' when calling voidCapture(Async)"); throw new ApiException("Missing the required parameter 'voidCaptureRequest' when calling voidCapture(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling voidCapture(Async)"); + logger.error("Missing the required parameter 'id' when calling voidCapture(Async)"); throw new ApiException("Missing the required parameter 'id' when calling voidCapture(Async)"); } @@ -281,7 +284,7 @@ private okhttp3.Call voidCaptureValidateBeforeCall(VoidCaptureRequest voidCaptur * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsVoidsPost201Response voidCapture(VoidCaptureRequest voidCaptureRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'voidCapture' STARTED"); + logger.info("CALL TO METHOD 'voidCapture' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = voidCaptureWithHttpInfo(voidCaptureRequest, id); logger.info("CALL TO METHOD 'voidCapture' ENDED"); @@ -348,7 +351,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call voidCreditCall(VoidCreditRequest voidCreditRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = voidCreditRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(voidCreditRequest, VoidCreditRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/credits/{id}/voids" @@ -393,13 +397,13 @@ private okhttp3.Call voidCreditValidateBeforeCall(VoidCreditRequest voidCreditRe // verify the required parameter 'voidCreditRequest' is set if (voidCreditRequest == null) { - logger.error("Missing the required parameter 'voidCreditRequest' when calling voidCredit(Async)"); + logger.error("Missing the required parameter 'voidCreditRequest' when calling voidCredit(Async)"); throw new ApiException("Missing the required parameter 'voidCreditRequest' when calling voidCredit(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling voidCredit(Async)"); + logger.error("Missing the required parameter 'id' when calling voidCredit(Async)"); throw new ApiException("Missing the required parameter 'id' when calling voidCredit(Async)"); } @@ -422,7 +426,7 @@ private okhttp3.Call voidCreditValidateBeforeCall(VoidCreditRequest voidCreditRe * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsVoidsPost201Response voidCredit(VoidCreditRequest voidCreditRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'voidCredit' STARTED"); + logger.info("CALL TO METHOD 'voidCredit' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = voidCreditWithHttpInfo(voidCreditRequest, id); logger.info("CALL TO METHOD 'voidCredit' ENDED"); @@ -489,7 +493,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call voidPaymentCall(VoidPaymentRequest voidPaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = voidPaymentRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(voidPaymentRequest, VoidPaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/payments/{id}/voids" @@ -534,13 +539,13 @@ private okhttp3.Call voidPaymentValidateBeforeCall(VoidPaymentRequest voidPaymen // verify the required parameter 'voidPaymentRequest' is set if (voidPaymentRequest == null) { - logger.error("Missing the required parameter 'voidPaymentRequest' when calling voidPayment(Async)"); + logger.error("Missing the required parameter 'voidPaymentRequest' when calling voidPayment(Async)"); throw new ApiException("Missing the required parameter 'voidPaymentRequest' when calling voidPayment(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling voidPayment(Async)"); + logger.error("Missing the required parameter 'id' when calling voidPayment(Async)"); throw new ApiException("Missing the required parameter 'id' when calling voidPayment(Async)"); } @@ -563,7 +568,7 @@ private okhttp3.Call voidPaymentValidateBeforeCall(VoidPaymentRequest voidPaymen * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsVoidsPost201Response voidPayment(VoidPaymentRequest voidPaymentRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'voidPayment' STARTED"); + logger.info("CALL TO METHOD 'voidPayment' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = voidPaymentWithHttpInfo(voidPaymentRequest, id); logger.info("CALL TO METHOD 'voidPayment' ENDED"); @@ -630,7 +635,8 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @throws ApiException If fail to serialize the request body object */ public okhttp3.Call voidRefundCall(VoidRefundRequest voidRefundRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = voidRefundRequest; + SdkTracker sdkTracker = new SdkTracker(); + Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(voidRefundRequest, VoidRefundRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment()); // create path and map variables String localVarPath = "/pts/v2/refunds/{id}/voids" @@ -675,13 +681,13 @@ private okhttp3.Call voidRefundValidateBeforeCall(VoidRefundRequest voidRefundRe // verify the required parameter 'voidRefundRequest' is set if (voidRefundRequest == null) { - logger.error("Missing the required parameter 'voidRefundRequest' when calling voidRefund(Async)"); + logger.error("Missing the required parameter 'voidRefundRequest' when calling voidRefund(Async)"); throw new ApiException("Missing the required parameter 'voidRefundRequest' when calling voidRefund(Async)"); } // verify the required parameter 'id' is set if (id == null) { - logger.error("Missing the required parameter 'id' when calling voidRefund(Async)"); + logger.error("Missing the required parameter 'id' when calling voidRefund(Async)"); throw new ApiException("Missing the required parameter 'id' when calling voidRefund(Async)"); } @@ -704,7 +710,7 @@ private okhttp3.Call voidRefundValidateBeforeCall(VoidRefundRequest voidRefundRe * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body */ public PtsV2PaymentsVoidsPost201Response voidRefund(VoidRefundRequest voidRefundRequest, String id) throws ApiException { - logger.info("CALL TO METHOD 'voidRefund' STARTED"); + logger.info("CALL TO METHOD 'voidRefund' STARTED"); this.apiClient.setComputationStartTime(System.nanoTime()); ApiResponse resp = voidRefundWithHttpInfo(voidRefundRequest, id); logger.info("CALL TO METHOD 'voidRefund' ENDED"); diff --git a/src/main/java/Model/PtsV2PaymentsPost201Response.java b/src/main/java/Model/PtsV2PaymentsPost201Response.java index b22c0bea5..55d34cb7e 100644 --- a/src/main/java/Model/PtsV2PaymentsPost201Response.java +++ b/src/main/java/Model/PtsV2PaymentsPost201Response.java @@ -17,6 +17,7 @@ import Model.PtsV2PaymentsPost201ResponseBuyerInformation; import Model.PtsV2PaymentsPost201ResponseClientReferenceInformation; import Model.PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation; +import Model.PtsV2PaymentsPost201ResponseEmbeddedActions; import Model.PtsV2PaymentsPost201ResponseErrorInformation; import Model.PtsV2PaymentsPost201ResponseInstallmentInformation; import Model.PtsV2PaymentsPost201ResponseIssuerInformation; @@ -105,6 +106,9 @@ public class PtsV2PaymentsPost201Response { @SerializedName("consumerAuthenticationInformation") private PtsV2PaymentsPost201ResponseConsumerAuthenticationInformation consumerAuthenticationInformation = null; + @SerializedName("embeddedActions") + private PtsV2PaymentsPost201ResponseEmbeddedActions embeddedActions = null; + @SerializedName("watchlistScreeningInformation") private PtsV2PaymentsPost201ResponseWatchlistScreeningInformation watchlistScreeningInformation = null; @@ -468,6 +472,24 @@ public void setConsumerAuthenticationInformation(PtsV2PaymentsPost201ResponseCon this.consumerAuthenticationInformation = consumerAuthenticationInformation; } + public PtsV2PaymentsPost201Response embeddedActions(PtsV2PaymentsPost201ResponseEmbeddedActions embeddedActions) { + this.embeddedActions = embeddedActions; + return this; + } + + /** + * Get embeddedActions + * @return embeddedActions + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseEmbeddedActions getEmbeddedActions() { + return embeddedActions; + } + + public void setEmbeddedActions(PtsV2PaymentsPost201ResponseEmbeddedActions embeddedActions) { + this.embeddedActions = embeddedActions; + } + public PtsV2PaymentsPost201Response watchlistScreeningInformation(PtsV2PaymentsPost201ResponseWatchlistScreeningInformation watchlistScreeningInformation) { this.watchlistScreeningInformation = watchlistScreeningInformation; return this; @@ -516,12 +538,13 @@ public boolean equals(java.lang.Object o) { Objects.equals(this.buyerInformation, ptsV2PaymentsPost201Response.buyerInformation) && Objects.equals(this.riskInformation, ptsV2PaymentsPost201Response.riskInformation) && Objects.equals(this.consumerAuthenticationInformation, ptsV2PaymentsPost201Response.consumerAuthenticationInformation) && + Objects.equals(this.embeddedActions, ptsV2PaymentsPost201Response.embeddedActions) && Objects.equals(this.watchlistScreeningInformation, ptsV2PaymentsPost201Response.watchlistScreeningInformation); } @Override public int hashCode() { - return Objects.hash(links, id, submitTimeUtc, status, reconciliationId, errorInformation, clientReferenceInformation, processingInformation, processorInformation, issuerInformation, paymentAccountInformation, paymentInformation, paymentInsightsInformation, orderInformation, pointOfSaleInformation, installmentInformation, tokenInformation, buyerInformation, riskInformation, consumerAuthenticationInformation, watchlistScreeningInformation); + return Objects.hash(links, id, submitTimeUtc, status, reconciliationId, errorInformation, clientReferenceInformation, processingInformation, processorInformation, issuerInformation, paymentAccountInformation, paymentInformation, paymentInsightsInformation, orderInformation, pointOfSaleInformation, installmentInformation, tokenInformation, buyerInformation, riskInformation, consumerAuthenticationInformation, embeddedActions, watchlistScreeningInformation); } @@ -550,6 +573,7 @@ public String toString() { sb.append(" buyerInformation: ").append(toIndentedString(buyerInformation)).append("\n"); sb.append(" riskInformation: ").append(toIndentedString(riskInformation)).append("\n"); sb.append(" consumerAuthenticationInformation: ").append(toIndentedString(consumerAuthenticationInformation)).append("\n"); + sb.append(" embeddedActions: ").append(toIndentedString(embeddedActions)).append("\n"); sb.append(" watchlistScreeningInformation: ").append(toIndentedString(watchlistScreeningInformation)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActions.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActions.java new file mode 100644 index 000000000..0e7989fed --- /dev/null +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActions.java @@ -0,0 +1,190 @@ +/* + * 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 Model.PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE; +import Model.PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION; +import Model.PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION; +import Model.PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING; +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; + +/** + * Contains embedded actions, that includes status and response for every actions in the list. + */ +@ApiModel(description = "Contains embedded actions, that includes status and response for every actions in the list.") + +public class PtsV2PaymentsPost201ResponseEmbeddedActions { + @SerializedName("CAPTURE") + private PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE CAPTURE = null; + + @SerializedName("DECISION") + private PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION DECISION = null; + + @SerializedName("CONSUMER_AUTHENTICATION") + private PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION CONSUMER_AUTHENTICATION = null; + + @SerializedName("VALIDATE_CONSUMER_AUTHENTICATION") + private PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION VALIDATE_CONSUMER_AUTHENTICATION = null; + + @SerializedName("WATCHLIST_SCREENING") + private PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING WATCHLIST_SCREENING = null; + + public PtsV2PaymentsPost201ResponseEmbeddedActions CAPTURE(PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE CAPTURE) { + this.CAPTURE = CAPTURE; + return this; + } + + /** + * Get CAPTURE + * @return CAPTURE + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE getCAPTURE() { + return CAPTURE; + } + + public void setCAPTURE(PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE CAPTURE) { + this.CAPTURE = CAPTURE; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActions DECISION(PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION DECISION) { + this.DECISION = DECISION; + return this; + } + + /** + * Get DECISION + * @return DECISION + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION getDECISION() { + return DECISION; + } + + public void setDECISION(PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION DECISION) { + this.DECISION = DECISION; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActions CONSUMER_AUTHENTICATION(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION CONSUMER_AUTHENTICATION) { + this.CONSUMER_AUTHENTICATION = CONSUMER_AUTHENTICATION; + return this; + } + + /** + * Get CONSUMER_AUTHENTICATION + * @return CONSUMER_AUTHENTICATION + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION getCONSUMERAUTHENTICATION() { + return CONSUMER_AUTHENTICATION; + } + + public void setCONSUMERAUTHENTICATION(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION CONSUMER_AUTHENTICATION) { + this.CONSUMER_AUTHENTICATION = CONSUMER_AUTHENTICATION; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActions VALIDATE_CONSUMER_AUTHENTICATION(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION VALIDATE_CONSUMER_AUTHENTICATION) { + this.VALIDATE_CONSUMER_AUTHENTICATION = VALIDATE_CONSUMER_AUTHENTICATION; + return this; + } + + /** + * Get VALIDATE_CONSUMER_AUTHENTICATION + * @return VALIDATE_CONSUMER_AUTHENTICATION + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION getVALIDATECONSUMERAUTHENTICATION() { + return VALIDATE_CONSUMER_AUTHENTICATION; + } + + public void setVALIDATECONSUMERAUTHENTICATION(PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION VALIDATE_CONSUMER_AUTHENTICATION) { + this.VALIDATE_CONSUMER_AUTHENTICATION = VALIDATE_CONSUMER_AUTHENTICATION; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActions WATCHLIST_SCREENING(PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING WATCHLIST_SCREENING) { + this.WATCHLIST_SCREENING = WATCHLIST_SCREENING; + return this; + } + + /** + * Get WATCHLIST_SCREENING + * @return WATCHLIST_SCREENING + **/ + @ApiModelProperty(value = "") + public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING getWATCHLISTSCREENING() { + return WATCHLIST_SCREENING; + } + + public void setWATCHLISTSCREENING(PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING WATCHLIST_SCREENING) { + this.WATCHLIST_SCREENING = WATCHLIST_SCREENING; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV2PaymentsPost201ResponseEmbeddedActions ptsV2PaymentsPost201ResponseEmbeddedActions = (PtsV2PaymentsPost201ResponseEmbeddedActions) o; + return Objects.equals(this.CAPTURE, ptsV2PaymentsPost201ResponseEmbeddedActions.CAPTURE) && + Objects.equals(this.DECISION, ptsV2PaymentsPost201ResponseEmbeddedActions.DECISION) && + Objects.equals(this.CONSUMER_AUTHENTICATION, ptsV2PaymentsPost201ResponseEmbeddedActions.CONSUMER_AUTHENTICATION) && + Objects.equals(this.VALIDATE_CONSUMER_AUTHENTICATION, ptsV2PaymentsPost201ResponseEmbeddedActions.VALIDATE_CONSUMER_AUTHENTICATION) && + Objects.equals(this.WATCHLIST_SCREENING, ptsV2PaymentsPost201ResponseEmbeddedActions.WATCHLIST_SCREENING); + } + + @Override + public int hashCode() { + return Objects.hash(CAPTURE, DECISION, CONSUMER_AUTHENTICATION, VALIDATE_CONSUMER_AUTHENTICATION, WATCHLIST_SCREENING); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV2PaymentsPost201ResponseEmbeddedActions {\n"); + + sb.append(" CAPTURE: ").append(toIndentedString(CAPTURE)).append("\n"); + sb.append(" DECISION: ").append(toIndentedString(DECISION)).append("\n"); + sb.append(" CONSUMER_AUTHENTICATION: ").append(toIndentedString(CONSUMER_AUTHENTICATION)).append("\n"); + sb.append(" VALIDATE_CONSUMER_AUTHENTICATION: ").append(toIndentedString(VALIDATE_CONSUMER_AUTHENTICATION)).append("\n"); + sb.append(" WATCHLIST_SCREENING: ").append(toIndentedString(WATCHLIST_SCREENING)).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/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.java new file mode 100644 index 000000000..20abe3bd6 --- /dev/null +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.java @@ -0,0 +1,139 @@ +/* + * 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 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; + +/** + * PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE + */ + +public class PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE { + @SerializedName("status") + private String status = null; + + @SerializedName("reason") + private String reason = null; + + @SerializedName("message") + private String message = null; + + public PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE status(String status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. Possible values: - PENDING + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction. Possible values: - PENDING ") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED + * @return reason + **/ + @ApiModelProperty(value = "The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - EXCEEDS_AUTH_AMOUNT - AUTH_ALREADY_REVERSED - TRANSACTION_ALREADY_SETTLED - INVALID_AMOUNT - MISSING_AUTH - TRANSACTION_ALREADY_REVERSED_OR_SETTLED - NOT_SUPPORTED ") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE message(String message) { + this.message = message; + return this; + } + + /** + * The detail message related to the status and reason listed above. + * @return message + **/ + @ApiModelProperty(value = "The detail message related to the status and reason listed above.") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE ptsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE = (PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE) o; + return Objects.equals(this.status, ptsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.status) && + Objects.equals(this.reason, ptsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.reason) && + Objects.equals(this.message, ptsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE.message); + } + + @Override + public int hashCode() { + return Objects.hash(status, reason, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).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/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.java new file mode 100644 index 000000000..6c4792f7f --- /dev/null +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.java @@ -0,0 +1,139 @@ +/* + * 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 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; + +/** + * PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION + */ + +public class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION { + @SerializedName("status") + private String status = null; + + @SerializedName("reason") + private String reason = null; + + @SerializedName("message") + private String message = null; + + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION status(String status) { + this.status = status; + return this; + } + + /** + * The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` + * @return status + **/ + @ApiModelProperty(value = "The status for payerAuthentication 201 enroll and validate calls. Possible values are: - `AUTHENTICATION_SUCCESSFUL` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` ") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` + * @return reason + **/ + @ApiModelProperty(value = "The reason of the status. Possible values are: - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_REQUIRED` - `CONSUMER_AUTHENTICATION_FAILED` - `AUTHENTICATION_FAILED` ") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION message(String message) { + this.message = message; + return this; + } + + /** + * The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. + * @return message + **/ + @ApiModelProperty(value = "The message describing the reason of the status. Value is: - Encountered a Payer Authentication problem. Payer could not be authenticated. ") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION ptsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION = (PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION) o; + return Objects.equals(this.status, ptsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.status) && + Objects.equals(this.reason, ptsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.reason) && + Objects.equals(this.message, ptsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION.message); + } + + @Override + public int hashCode() { + return Objects.hash(status, reason, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).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/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.java new file mode 100644 index 000000000..8656d3a19 --- /dev/null +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION.java @@ -0,0 +1,139 @@ +/* + * 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 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; + +/** + * PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION + */ + +public class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION { + @SerializedName("status") + private String status = null; + + @SerializedName("reason") + private String reason = null; + + @SerializedName("message") + private String message = null; + + public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION status(String status) { + this.status = status; + return this; + } + + /** + * The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` + * @return status + **/ + @ApiModelProperty(value = "The status of the submitted transaction. Possible values: - `ACCEPTED` - `REJECTED` - `PENDING_REVIEW` - `DECLINED` - `PENDING_AUTHENTICATION` - `INVALID_REQUEST` - `AUTHENTICATION_FAILED` - `CHALLENGE` ") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` + * @return reason + **/ + @ApiModelProperty(value = "The reason of the status. Possible values: - `EXPIRED_CARD` - `SCORE_EXCEEDS_THRESHOLD` - `DECISION_PROFILE_REVIEW` - `DECISION_PROFILE_REJECT` - `CONSUMER_AUTHENTICATION_REQUIRED` - `INVALID_MERCHANT_CONFIGURATION` - `CONSUMER_AUTHENTICATION_FAILED` - `DECISION_PROFILE_CHALLENGE` - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` ") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION message(String message) { + this.message = message; + return this; + } + + /** + * The detail message related to the status and reason listed above. + * @return message + **/ + @ApiModelProperty(value = "The detail message related to the status and reason listed above.") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION ptsV2PaymentsPost201ResponseEmbeddedActionsDECISION = (PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION) o; + return Objects.equals(this.status, ptsV2PaymentsPost201ResponseEmbeddedActionsDECISION.status) && + Objects.equals(this.reason, ptsV2PaymentsPost201ResponseEmbeddedActionsDECISION.reason) && + Objects.equals(this.message, ptsV2PaymentsPost201ResponseEmbeddedActionsDECISION.message); + } + + @Override + public int hashCode() { + return Objects.hash(status, reason, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).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/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.java b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.java new file mode 100644 index 000000000..2410165bd --- /dev/null +++ b/src/main/java/Model/PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.java @@ -0,0 +1,139 @@ +/* + * 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 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; + +/** + * PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING + */ + +public class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING { + @SerializedName("status") + private String status = null; + + @SerializedName("reason") + private String reason = null; + + @SerializedName("message") + private String message = null; + + public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING status(String status) { + this.status = status; + return this; + } + + /** + * The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED + * @return status + **/ + @ApiModelProperty(value = "The status for the call can be: - COMPLETED - INVALID_REQUEST - DECLINED ") + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` + * @return reason + **/ + @ApiModelProperty(value = "The reason of the status. Value can be - `CUSTOMER_WATCHLIST_MATCH` - `ADDRESS_COUNTRY_WATCHLIST_MATCH` - `EMAIL_COUNTRY_WATCHLIST_MATCH` - `IP_COUNTRY_WATCHLIST_MATCH` - `INVALID_MERCHANT_CONFIGURATION` ") + public String getReason() { + return reason; + } + + public void setReason(String reason) { + this.reason = reason; + } + + public PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING message(String message) { + this.message = message; + return this; + } + + /** + * The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match + * @return message + **/ + @ApiModelProperty(value = "The message describing the reason of the status. Value can be - The customer matched the Denied Parties List - The Export bill_country/ship_country match - Export email_country match - Export hostname_country/ip_country match ") + public String getMessage() { + return message; + } + + public void setMessage(String message) { + this.message = message; + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING ptsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING = (PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING) o; + return Objects.equals(this.status, ptsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.status) && + Objects.equals(this.reason, ptsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.reason) && + Objects.equals(this.message, ptsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING.message); + } + + @Override + public int hashCode() { + return Objects.hash(status, reason, message); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).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/Ptsv2paymentsProcessingInformation.java b/src/main/java/Model/Ptsv2paymentsProcessingInformation.java index 843875313..f3afb14da 100644 --- a/src/main/java/Model/Ptsv2paymentsProcessingInformation.java +++ b/src/main/java/Model/Ptsv2paymentsProcessingInformation.java @@ -148,10 +148,10 @@ public Ptsv2paymentsProcessingInformation addActionListItem(String actionListIte } /** - * Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. + * Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. * @return actionList **/ - @ApiModelProperty(value = "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentioncation along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentioncation result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. ") + @ApiModelProperty(value = "Array of actions (one or more) to be included in the payment to invoke bundled services along with payment. Possible values are one or more of follows: - `DECISION_SKIP`: Use this when you want to skip Decision Manager service(s). - `TOKEN_CREATE`: Use this when you want to create a token from the card/bank data in your payment request. - `CONSUMER_AUTHENTICATION`: Use this when you want to check if a card is enrolled in Payer Authentication along with your payment request. - `VALIDATE_CONSUMER_AUTHENTICATION`: Use this after you acquire a Payer Authentication result that needs to be included for your payment request. - `AP_INITIATE`: Use this when Alternative Payment Initiate service is requested. - `WATCHLIST_SCREENING` : Use this when you want to call Watchlist Screening service. ") public List getActionList() { return actionList; }