ripe-tech / ripe-sdk

The public Javascript SDK for RIPE Core
https://www.platforme.com
Apache License 2.0
8 stars 4 forks source link

Method for order image URL #380

Closed NFSS10 closed 2 years ago

NFSS10 commented 2 years ago

Rationale

As there isn't a method in ripe-sdk to get the order image URL so currenlty we manually build the order image URL. Examples: ripe-pulse, ripe-robin-revamp, ripe-util-vue, ripe-copper, etc

Having a method to handle this will make the situation less error prone and ensure that compatiblity is maintained everywhere.

Description

Add a method in ripe-sdk to build and return an order image URL.

Implementation

Add a method called _getOrderImageURL here. The approach would be similar to, for example, _getOrderReportPNGURL

Reference

https://github.com/ripe-tech/products/issues/38 was created because inconsistencies were found between order image URL for build and buildless types.

Estimation

Discipline Estimation
Software Development 0.5 days
dsafonso commented 2 years ago

Test OK :+1: