Skip to content

Commit

Permalink
fix: New generated files with logging traces fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
JPPortier committed Nov 3, 2023
1 parent 0fe7b53 commit 132e78b
Show file tree
Hide file tree
Showing 8 changed files with 91 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public ActiveNumberDto numberServiceGetActiveNumber(String projectId, String pho
"[numberServiceGetActiveNumber] "
+ "projectId: "
+ projectId
+ ", "
+ "phoneNumber: "
+ phoneNumber);

Expand Down Expand Up @@ -175,20 +176,28 @@ public ActiveNumbersResponseDto numberServiceListActiveNumbers(
"[numberServiceListActiveNumbers] "
+ "projectId: "
+ projectId
+ ", "
+ "regionCode: "
+ regionCode
+ ", "
+ "type: "
+ type
+ ", "
+ "numberPatternPattern: "
+ numberPatternPattern
+ ", "
+ "numberPatternSearchPattern: "
+ numberPatternSearchPattern
+ ", "
+ "capability: "
+ capability
+ ", "
+ "pageSize: "
+ pageSize
+ ", "
+ "pageToken: "
+ pageToken
+ ", "
+ "orderBy: "
+ orderBy);

Expand Down Expand Up @@ -342,6 +351,7 @@ public ActiveNumberDto numberServiceReleaseNumber(String projectId, String phone
"[numberServiceReleaseNumber] "
+ "projectId: "
+ projectId
+ ", "
+ "phoneNumber: "
+ phoneNumber);

Expand Down Expand Up @@ -431,8 +441,10 @@ public ActiveNumberDto numberServiceUpdateActiveNumber(
"[numberServiceUpdateActiveNumber] "
+ "projectId: "
+ projectId
+ ", "
+ "phoneNumber: "
+ phoneNumber
+ ", "
+ "activeNumberRequestDto: "
+ activeNumberRequestDto);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public AvailableNumberDto numberServiceGetAvailableNumber(String projectId, Stri
"[numberServiceGetAvailableNumber] "
+ "projectId: "
+ projectId
+ ", "
+ "phoneNumber: "
+ phoneNumber);

Expand Down Expand Up @@ -179,16 +180,22 @@ public AvailableNumbersResponseDto numberServiceListAvailableNumbers(
"[numberServiceListAvailableNumbers] "
+ "projectId: "
+ projectId
+ ", "
+ "regionCode: "
+ regionCode
+ ", "
+ "type: "
+ type
+ ", "
+ "numberPatternPattern: "
+ numberPatternPattern
+ ", "
+ "numberPatternSearchPattern: "
+ numberPatternSearchPattern
+ ", "
+ "capabilities: "
+ capabilities
+ ", "
+ "size: "
+ size);

Expand Down Expand Up @@ -330,6 +337,7 @@ public ActiveNumberDto numberServiceRentAnyNumber(
"[numberServiceRentAnyNumber] "
+ "projectId: "
+ projectId
+ ", "
+ "rentAnyNumberRequestDto: "
+ rentAnyNumberRequestDto);

Expand Down Expand Up @@ -417,8 +425,10 @@ public ActiveNumberDto numberServiceRentNumber(
"[numberServiceRentNumber] "
+ "projectId: "
+ projectId
+ ", "
+ "phoneNumber: "
+ phoneNumber
+ ", "
+ "rentNumberRequestDto: "
+ rentNumberRequestDto);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public ListAvailableRegionsResponseDto numberServiceListAvailableRegions(
String projectId, List<String> types) throws ApiException {

LOGGER.finest(
"[numberServiceListAvailableRegions] " + "projectId: " + projectId + "types: " + types);
"[numberServiceListAvailableRegions] "
+ "projectId: "
+ projectId
+ ", "
+ "types: "
+ types);

HttpRequest httpRequest = numberServiceListAvailableRegionsRequestBuilder(projectId, types);
HttpResponse response = httpClient.invokeAPI(this.serverConfiguration, httpRequest);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ public CallbackConfigurationDto updateCallbackConfiguration(
"[updateCallbackConfiguration] "
+ "projectId: "
+ projectId
+ ", "
+ "callbackConfigurationUpdateDto: "
+ callbackConfigurationUpdateDto);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,11 @@ public BatchesApi(
}

/**
* Cancel a batch message A batch can be canceled at any point. If a batch is canceled while
* it&#39;s currently being delivered some messages currently being processed might still be
* delivered. The delivery report will indicate which messages were canceled and which
* weren&#39;t. Canceling a batch scheduled in the future will result in an empty delivery report
* while canceling an already sent batch would result in no change to the completed delivery
* report.
* Cancel a batch message A batch can be canceled aty point. If a batch is canceled while it&#39;s
* currently being delivered some messages currently being processed might still be delivered. The
* delivery report will indicate which messages were canceled and which weren&#39;t. Canceling a
* batch scheduled in the future will result in an empty delivery report while canceling an
* already sent batch would result in no change to the completed delivery report.
*
* @param servicePlanId Your service plan ID. You can find this on your
* [Dashboard](https://dashboard.sinch.com/sms/api/rest). (required)
Expand All @@ -72,7 +71,7 @@ public SendSMS201ResponseDto cancelBatchMessage(String servicePlanId, String bat
throws ApiException {

LOGGER.finest(
"[cancelBatchMessage] " + "servicePlanId: " + servicePlanId + "batchId: " + batchId);
"[cancelBatchMessage] " + "servicePlanId: " + servicePlanId + ", " + "batchId: " + batchId);

HttpRequest httpRequest = cancelBatchMessageRequestBuilder(servicePlanId, batchId);
HttpResponse response = httpClient.invokeAPI(this.serverConfiguration, httpRequest);
Expand Down Expand Up @@ -159,8 +158,10 @@ public void deliveryFeedback(
"[deliveryFeedback] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "batchId: "
+ batchId
+ ", "
+ "apiDeliveryFeedbackDto: "
+ apiDeliveryFeedbackDto);

Expand Down Expand Up @@ -254,10 +255,13 @@ public DryRun200ResponseDto dryRun(
"[dryRun] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "perRecipient: "
+ perRecipient
+ ", "
+ "numberOfRecipients: "
+ numberOfRecipients
+ ", "
+ "sendSMSRequestDto: "
+ sendSMSRequestDto);

Expand Down Expand Up @@ -346,7 +350,8 @@ private HttpRequest dryRunRequestBuilder(
public SendSMS201ResponseDto getBatchMessage(String servicePlanId, String batchId)
throws ApiException {

LOGGER.finest("[getBatchMessage] " + "servicePlanId: " + servicePlanId + "batchId: " + batchId);
LOGGER.finest(
"[getBatchMessage] " + "servicePlanId: " + servicePlanId + ", " + "batchId: " + batchId);

HttpRequest httpRequest = getBatchMessageRequestBuilder(servicePlanId, batchId);
HttpResponse response = httpClient.invokeAPI(this.serverConfiguration, httpRequest);
Expand Down Expand Up @@ -442,16 +447,22 @@ public ApiBatchListDto listBatches(
"[listBatches] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "page: "
+ page
+ ", "
+ "pageSize: "
+ pageSize
+ ", "
+ "from: "
+ from
+ ", "
+ "startDate: "
+ startDate
+ ", "
+ "endDate: "
+ endDate
+ ", "
+ "clientReference: "
+ clientReference);

Expand Down Expand Up @@ -565,8 +576,10 @@ public SendSMS201ResponseDto replaceBatch(
"[replaceBatch] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "batchId: "
+ batchId
+ ", "
+ "replaceBatchRequestDto: "
+ replaceBatchRequestDto);

Expand Down Expand Up @@ -653,6 +666,7 @@ public SendSMS201ResponseDto sendSMS(String servicePlanId, SendSMSRequestDto sen
"[sendSMS] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "sendSMSRequestDto: "
+ sendSMSRequestDto);

Expand Down Expand Up @@ -729,8 +743,10 @@ public SendSMS201ResponseDto updateBatchMessage(
"[updateBatchMessage] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "batchId: "
+ batchId
+ ", "
+ "updateBatchMessageRequestDto: "
+ updateBatchMessageRequestDto);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,16 @@ public DeliveryReportDto getDeliveryReportByBatchId(
"[getDeliveryReportByBatchId] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "batchId: "
+ batchId
+ ", "
+ "type: "
+ type
+ ", "
+ "status: "
+ status
+ ", "
+ "code: "
+ code);

Expand Down Expand Up @@ -179,8 +183,10 @@ public RecipientDeliveryReportDto getDeliveryReportByPhoneNumber(
"[getDeliveryReportByPhoneNumber] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "batchId: "
+ batchId
+ ", "
+ "recipientMsisdn: "
+ recipientMsisdn);

Expand Down Expand Up @@ -290,18 +296,25 @@ public DeliveryReportListDto getDeliveryReports(
"[getDeliveryReports] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "page: "
+ page
+ ", "
+ "pageSize: "
+ pageSize
+ ", "
+ "startDate: "
+ startDate
+ ", "
+ "endDate: "
+ endDate
+ ", "
+ "status: "
+ status
+ ", "
+ "code: "
+ code
+ ", "
+ "clientReference: "
+ clientReference);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,12 @@ public CreateGroupResponseDto createGroup(String servicePlanId, GroupObjectDto g
throws ApiException {

LOGGER.finest(
"[createGroup] " + "servicePlanId: " + servicePlanId + "groupObjectDto: " + groupObjectDto);
"[createGroup] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "groupObjectDto: "
+ groupObjectDto);

HttpRequest httpRequest = createGroupRequestBuilder(servicePlanId, groupObjectDto);
HttpResponse response = httpClient.invokeAPI(this.serverConfiguration, httpRequest);
Expand Down Expand Up @@ -131,7 +136,8 @@ private HttpRequest createGroupRequestBuilder(String servicePlanId, GroupObjectD
*/
public void deleteGroup(String servicePlanId, String groupId) throws ApiException {

LOGGER.finest("[deleteGroup] " + "servicePlanId: " + servicePlanId + "groupId: " + groupId);
LOGGER.finest(
"[deleteGroup] " + "servicePlanId: " + servicePlanId + ", " + "groupId: " + groupId);

HttpRequest httpRequest = deleteGroupRequestBuilder(servicePlanId, groupId);
HttpResponse response = httpClient.invokeAPI(this.serverConfiguration, httpRequest);
Expand Down Expand Up @@ -203,7 +209,8 @@ private HttpRequest deleteGroupRequestBuilder(String servicePlanId, String group
*/
public List<String> getMembers(String servicePlanId, String groupId) throws ApiException {

LOGGER.finest("[getMembers] " + "servicePlanId: " + servicePlanId + "groupId: " + groupId);
LOGGER.finest(
"[getMembers] " + "servicePlanId: " + servicePlanId + ", " + "groupId: " + groupId);

HttpRequest httpRequest = getMembersRequestBuilder(servicePlanId, groupId);
HttpResponse response = httpClient.invokeAPI(this.serverConfiguration, httpRequest);
Expand Down Expand Up @@ -282,8 +289,10 @@ public ListGroups200ResponseDto listGroups(String servicePlanId, Integer page, I
"[listGroups] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "page: "
+ page
+ ", "
+ "pageSize: "
+ pageSize);

Expand Down Expand Up @@ -368,8 +377,10 @@ public CreateGroupResponseDto replaceGroup(
"[replaceGroup] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "groupId: "
+ groupId
+ ", "
+ "replaceGroupRequestDto: "
+ replaceGroupRequestDto);

Expand Down Expand Up @@ -447,7 +458,8 @@ private HttpRequest replaceGroupRequestBuilder(
public CreateGroupResponseDto retrieveGroup(String servicePlanId, String groupId)
throws ApiException {

LOGGER.finest("[retrieveGroup] " + "servicePlanId: " + servicePlanId + "groupId: " + groupId);
LOGGER.finest(
"[retrieveGroup] " + "servicePlanId: " + servicePlanId + ", " + "groupId: " + groupId);

HttpRequest httpRequest = retrieveGroupRequestBuilder(servicePlanId, groupId);
HttpResponse response = httpClient.invokeAPI(this.serverConfiguration, httpRequest);
Expand Down Expand Up @@ -537,8 +549,10 @@ public CreateGroupResponseDto updateGroup(
"[updateGroup] "
+ "servicePlanId: "
+ servicePlanId
+ ", "
+ "groupId: "
+ groupId
+ ", "
+ "updateGroupRequestDto: "
+ updateGroupRequestDto);

Expand Down
Loading

0 comments on commit 132e78b

Please sign in to comment.