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

FulFillmentInboundServicev20240320.ListDeliveryWindowOptionsAsync return dates as null #781

Open
dmelendez35 opened this issue Oct 17, 2024 · 2 comments

Comments

@dmelendez35
Copy link
Contributor

dmelendez35 commented Oct 17, 2024

The method FulFillmentInboundServicev20240320.ListDeliveryWindowOptionsAsync is returning the rows, however, all the date fields return null. When I test the same request in postman it returns the dates fields with values.
The field "DeliveryWindowOptionId" is also null

See image
image

@dmelendez35
Copy link
Contributor Author

dmelendez35 commented Oct 18, 2024

So I tested creating a different model where the dates are of type 'string', I had to inherith the 'FulFillmentInboundServicev20240320' service in order to copy the method and make use of my modified model, and it worked!
So the problem seems to be this line:

var response = await RequestClient.ExecuteAsync(Request, cancellationToken);

where RequestClient is unable to parse the date string in the fields "startDate", "endDate", "validUntil", and that also affects "DeliveryWindowOptionId" somehow. This is an example of the format in the fields: "2024-10-25T00:00Z" that is causing problems to be converted to DateTime? I believe.

So I appreciate any help fixing that, to avoid having to keep my inherited service

@Baros6647
Copy link
Contributor

So I tested creating a different model where the dates are of type 'string', I had to inherith the 'FulFillmentInboundServicev20240320' service in order to copy the method and make use of my modified model, and it worked! So the problem seems to be this line:

var response = await RequestClient.ExecuteAsync(Request, cancellationToken);

where RequestClient is unable to parse the date string in the fields "startDate", "endDate", "validUntil", and that also affects "DeliveryWindowOptionId" somehow. This is an example of the format in the fields: "2024-10-25T00:00Z" that is causing problems to be converted to DateTime? I believe.

So I appreciate any help fixing that, to avoid having to keep my inherited service

Hi! This error is already fixed. The fix was waiting for approving and now it is approved.

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

No branches or pull requests

2 participants