Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"estimated_days" and "arrives_by" not accessible in Rate object #37

Open
eelwayadmin opened this issue Feb 14, 2019 · 1 comment · Fixed by #61
Open

"estimated_days" and "arrives_by" not accessible in Rate object #37

eelwayadmin opened this issue Feb 14, 2019 · 1 comment · Fixed by #61

Comments

@eelwayadmin
Copy link

Hi there,
In the api doc for rate : https://goshippo.com/docs/reference?version=2017-08-01#rates
There are 2 fields available : "estimated_days" & "arrives_by"

They are not declared in the Rate Java definition.

@jfriedr jfriedr linked a pull request May 26, 2021 that will close this issue
@jfriedr jfriedr removed a link to a pull request May 26, 2021
@jfriedr jfriedr linked a pull request May 26, 2021 that will close this issue
@DeveloperJLLC
Copy link

DeveloperJLLC commented Jul 11, 2022

I don't work for shippo, but you should use the "days" field. Depending on api version it determines whether to use estimated_days or the Days field.

the following code snippet is from this repo

public Object getDays() {
		if (Shippo.apiVersion.compareTo("2017-08-01") < 0) {
			return days;
		} else {
			return estimated_days;
		}
	}

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 a pull request may close this issue.

2 participants