-
Notifications
You must be signed in to change notification settings - Fork 40
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
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 👍
…dk into add_support_for_parcel_items
@katmatt added tests, don,t know why the commit doesn't show up here, but to view the added test check |
Looks good to me 👍 |
There was a problem hiding this 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() { |
There was a problem hiding this comment.
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 👍
Close #1579