Skip to content

change initial shipping state on inbound shipments and update inbound shipment states through easypost trackers#39

Open
JustShah wants to merge 4 commits into
12-shipment-referencefrom
20-change-initial-shipping-state-on-inbound-shipments-and-update-inbound-shipment-states-through-easypost-trackers
Open

change initial shipping state on inbound shipments and update inbound shipment states through easypost trackers#39
JustShah wants to merge 4 commits into
12-shipment-referencefrom
20-change-initial-shipping-state-on-inbound-shipments-and-update-inbound-shipment-states-through-easypost-trackers

Conversation

@JustShah

@JustShah JustShah commented Mar 27, 2025

Copy link
Copy Markdown

Description:

This PR introduces several changes to improve the handling of inbound shipments and their tracking via Easypost webhooks.

Summary of Changes:

  1. Add Solidus Webhook to Sandbox

    • Added Solidus webhook configuration for Easypost tracking in the sandbox environment to facilitate testing.
  2. Add Translation for Shipment States

    • Introduced missing translations for the new shipment states (inbound_ready, inbound_shipped, and complete) that were added for shipments.
  3. Add Webhooks for Shipment States

    • Implemented classes to publish, receive, and subscribe to Easypost webhook events.
    • Created a handler that updates shipment states based on the tracking information provided by Easypost.
  4. Add States and Columns to Shipment for Tracking

    • Added new states (inbound_ready, inbound_shipped, and complete) to the shipment model, allowing tracking of inbound shipment's progress based on Easypost webhook data.
    • Introduced new columns in the shipment model to store Easypost tracker IDs, enabling updates to shipment states based on the webhook data.

Purpose:

  • Enhance the ability to track and update the statuses of inbound shipments using Easypost tracking information.
  • Introduce new shipment states and the necessary columns to store tracker IDs, which will be updated through the Easypost webhooks.

@JustShah JustShah changed the title 20 change initial shipping state on inbound shipments and update inbound shipment states through easypost trackers change initial shipping state on inbound shipments and update inbound shipment states through easypost trackers Mar 27, 2025
Add new state inbound_ready, inbound_shipped and complete,
which can be used to set based on webhooks of easypost.

Add new columns to store tracker IDs of easypost shipments,
which can be used to update state based on the webhooks.
@JustShah
JustShah force-pushed the 20-change-initial-shipping-state-on-inbound-shipments-and-update-inbound-shipment-states-through-easypost-trackers branch 2 times, most recently from 2f1ad25 to c1e26d4 Compare April 1, 2025 12:16
JustShah added 3 commits April 1, 2025 17:58
Add class for publish, recieve and susbcribe events for the tracking information from
easypost webhooks, add a new handler which can be used to update shipment states
based on the easypost tracking_info
Add missing translation for the new states introduced to shipment
@JustShah
JustShah force-pushed the 20-change-initial-shipping-state-on-inbound-shipments-and-update-inbound-shipment-states-through-easypost-trackers branch from c1e26d4 to 0ba68ce Compare April 1, 2025 12:28
@JustShah
JustShah marked this pull request as ready for review April 1, 2025 12:39
@fthobe

fthobe commented Apr 1, 2025

Copy link
Copy Markdown

Can we demo this?

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.

Change initial shipping state on inbound shipments and Update Inbound Shipment States through easypost trackers Shipment States need to be defined

2 participants