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

feat(carrier-with-rates) Add samples for validate shipment method #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AdamKowalczykMetaPack
Copy link

@AdamKowalczykMetaPack AdamKowalczykMetaPack commented Jun 19, 2023

Main purpose of this change is to add possibility to validate by carrier app shipment's prototype during created/update order.
Assumption:

validation can be optionally force during create/update shipment method (depend on request property ValidateShipmentMode: NoValidation, ValidateOnly, ValidateAndFail)
validate shipment method use model similar to create label request so connectApp should implement carrier required validation only once
ShipEngine calls gateway directly, SPS is omitted
for future use (dedicated ShipEngine ValidateShipment method) request/response models are extended to service collection
Service is identified by service code and correlation id
response error contains message, field name, field value and carrier error code
ShipEngine validation return success ("has_errors": false) when carrier app does not implement validation method
Changes related to adding new method ValidateShipment at connectApp.
Adjust models for new method.
Add template for generating it during connect init.

Related PR's:
Connect: https://github.com/shipstation/ipaas-connect/pull/828
Carrier-api-common https://github.com/shipstation/integrations-shipping/pull/2523
Example of usage in Dummy-module: https://github.com/shipstation/integrations-shipping/pull/2685
ShipEngine: https://github.com/shipstation/shipstation/pull/17118

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.

2 participants