Skip to content
Extraits de code Groupes Projets
Valider 7c1a211b rédigé par aya zouity's avatar aya zouity
Parcourir les fichiers

Add a methode to get Referred PromoCode By Uid

parent 67d0be15
Branches
1 requête de fusion!81MYD-640 /Add a methode to get Referred PromoCode By Uid
## [1.0.59-RELEASE]
### Added
- Add new conditions in apply promo code to cart.
- Add a methode to get Referred PromoCode By Uid
### Changed
- Changes in existing function.
......
......@@ -18,7 +18,7 @@
<dependency>
<groupId>com.marketingconfort</groupId>
<artifactId>mydressin-common</artifactId>
<version>1.0.142-RELEASE</version>
<version>1.0.144-RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
......
......@@ -253,7 +253,7 @@ public class ExternalApiServiceImpl implements ExternalApiService {
}
@Override
public List<ReferralPromoCodeRequest> getReferredPromoCodeByUid ( long uid) throws TechnicalException {
String url = "http://localhost:8093/api/addons/referral/referrer/promosCode/" + uid;
String url = nameUrl.getAddonsService() + NameUri.ADDONS + AddonsServicePath.getReferralPromoCodeByUid(uid);
try {
ResponseEntity<ReferralPromoCodeRequest[]> response = mcRestTemplateService.getForObject(url, ReferralPromoCodeRequest[].class);
if (response.getStatusCode() == HttpStatus.OK && response.getBody() != null) {
......
0% ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter