FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

NLIC-2515 Add DiscountService by v-rudkovskiy · Pull Request #61 · Labs64/NetLicensingClient-java · GitHub

NLIC-2515 Add DiscountService - #61

Closed
v-rudkovskiy wants to merge 2 commits into
masterfrom
RVA/NLIC-2515/Implement-Discounts-Licensing-Model
Closed

NLIC-2515 Add DiscountService#61
v-rudkovskiy wants to merge 2 commits into
masterfrom
RVA/NLIC-2515/Implement-Discounts-Licensing-Model

Conversation

Copy link
Copy Markdown
Member

No description provided.

v-rudkovskiy requested a review from kkorotkov May 11, 2026 11:05
v-rudkovskiy self-assigned this May 11, 2026

github-actions Bot commented May 11, 2026
edited
Loading

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 24d5056.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

v-rudkovskiy requested a review from kkorotkov June 29, 2026 14:12
Comment on lines +197 to +199
if (isNotFound(e)) {
return null;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This belongs to the business logic. If null is a legitimate response, the REST interface should handle it gracefully as well. Otherwise, the contract diverges between the Java binding and the REST interface.

* @throws NetLicensingException
* any non-not-found service error
*/
public static LicenseTemplate resolveDiscount(final Context context, final String productNumber,

kkorotkov Jul 14, 2026
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Is this intended for direct use by vendors? Consider implementing similar to the other internal endpoints in shop/src/main/java/com/labs64/netlicensing/service, instead of exposing it in the public client.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

If this should not be exposed publicly, this client PR is no longer needed, so I’ll close it.


private static boolean isNotFound(final ServiceException e) {
return (e.getStatusCode() == HTTP_STATUS_NOT_FOUND)
|| StringUtils.startsWith(e.getMessage(), NOT_FOUND_EXCEPTION_PREFIX);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Deprecated method: StringUtils.startsWith

Copy link
Copy Markdown
Member Author

Closing this PR because the proposed endpoint is intended for internal shop use and should not be exposed through the public Java client. Without the public API changes, there is nothing left to include in this PR.

kkorotkov deleted the RVA/NLIC-2515/Implement-Discounts-Licensing-Model branch August 10, 2026 08:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL