Skip to content

Commit 23c586f

Browse files
committed
New version 0.1.0
1 parent 849469c commit 23c586f

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>it.eng.dome.billing</groupId>
1414
<artifactId>proxy</artifactId>
15-
<version>0.0.5</version>
15+
<version>0.1.0</version>
1616
<name>Billing Proxy</name>
1717
<description>Billing Proxy for DOME project</description>
1818

@@ -50,7 +50,7 @@
5050
<dependency>
5151
<groupId>it.eng.dome.brokerage</groupId>
5252
<artifactId>brokerage-utils</artifactId>
53-
<version>[1.0.0, 2.0.0)</version>
53+
<version>[2.0.0, 3.0.0)</version>
5454
</dependency>
5555

5656
<!-- TMF620 Catalog -->

src/main/java/it/eng/dome/billing/proxy/service/BillingService.java

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.springframework.stereotype.Component;
1010

1111
import it.eng.dome.billing.proxy.tmf.TmfApiFactory;
12-
import it.eng.dome.tmforum.tmf620.v4.api.ProductOfferingPriceApi;
12+
import it.eng.dome.brokerage.api.ProductOfferingPriceApis;
1313
import it.eng.dome.tmforum.tmf620.v4.model.ProductOfferingPrice;
1414

1515

@@ -22,19 +22,15 @@ public class BillingService implements InitializingBean {
2222
@Autowired
2323
private TmfApiFactory tmfApiFactory;
2424

25-
private ProductOfferingPriceApi productOfferingPrice;
25+
private ProductOfferingPriceApis productOfferingPrice;
2626

2727
@Override
2828
public void afterPropertiesSet() throws Exception {
29-
productOfferingPrice = new ProductOfferingPriceApi(tmfApiFactory.getTMF620CatalogApiClient());
29+
productOfferingPrice = new ProductOfferingPriceApis(tmfApiFactory.getTMF620CatalogApiClient());
3030
}
3131

3232
public ProductOfferingPrice getProductOfferingPrice(String id) {
33-
try {
34-
return productOfferingPrice.retrieveProductOfferingPrice(id, null);
35-
} catch (it.eng.dome.tmforum.tmf620.v4.ApiException e) {
36-
logger.error(e.getMessage());
37-
return null;
38-
}
33+
logger.info("Get ProductOfferingPrice by Id: {}", id);
34+
return productOfferingPrice.getProductOfferingPrice(id, null);
3935
}
4036
}

0 commit comments

Comments
 (0)