EasyPost / easypost-java

EasyPost Shipping API Client Library for Java
https://easypost.com/docs/api
MIT License
54 stars 37 forks source link

[Bug]: `EasyPostTimeInTransitData` inaccessible #304

Closed zarubto4 closed 7 months ago

zarubto4 commented 7 months ago

Software Version

7.1.0

Language Version

Java 17

Operating System

MacOS

What happened?

Hi,

in object EasyPostTimeInTransitData here https://github.com/EasyPost/easypost-java/blame/master/src/main/java/com/easypost/model/EstimatedDeliveryDate.java you have all values as private without abstract parent services.

So it's not possible to use that in Java.

Snímek obrazovky 2024-03-21 v 2 20 24

What was expected?

Set is as public or create abstract class with @Getter

Sample Code

public String getPlannedShipDate() {
        return plannedShipDate;
    }

 public String getEasyPostEstimatedDeliveryDate() {
        return easypostEstimatedDeliveryDate;
    }

Relevant logs

No response

nwithan8 commented 7 months ago

@zarubto4 Thank you for bringing this to our attention. It appears the class was not explicitly marked as public, making it inaccessible as you've pointed out. This is being rectified in #305 and will be included in our next release.

jchen293 commented 7 months ago

@zarubto4 We have just released v7.1.1 for this patch, thanks for submitting this issue!