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

Add support for parcel items #1584

Merged
merged 5 commits into from
Oct 18, 2017
Merged

Add support for parcel items #1584

merged 5 commits into from
Oct 18, 2017

Conversation

acbeni
Copy link
Contributor

@acbeni acbeni commented Oct 16, 2017

Close #1579

@Oehmi Oehmi added the review label Oct 16, 2017
@acbeni acbeni self-assigned this Oct 16, 2017
@acbeni acbeni requested a review from katmatt October 16, 2017 15:15
Copy link
Contributor

@katmatt katmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks already good, but I would suggest to add a test for the new adding a parcel with delivery items. What do you think?

import javax.annotation.Nullable;
import java.time.ZonedDateTime;

final class ParcelImpl extends Base implements Parcel {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that you removed this class with a generated one 👍

import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.models.Base;

final class ParcelMeasurementsImpl extends Base implements ParcelMeasurements {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great that you removed this class with a generated one 👍

@acbeni
Copy link
Contributor Author

acbeni commented Oct 17, 2017

@katmatt added tests, don,t know why the commit doesn't show up here, but to view the added test check OrderUpdateCommandIntegrationTest#testDeliveriesAndParcels()

@katmatt
Copy link
Contributor

katmatt commented Oct 18, 2017

Looks good to me 👍

Copy link
Contributor

@katmatt katmatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 👍

@@ -534,4 +535,27 @@ public void locale() {
return updatedOrder;
});
}

@Test
public void testDeliveriesAndParcels() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this test 👍

@acbeni acbeni merged commit 851384e into master Oct 18, 2017
@acbeni acbeni deleted the add_support_for_parcel_items branch October 18, 2017 11:55
@Oehmi Oehmi removed the review label Oct 18, 2017
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 this pull request may close these issues.

3 participants