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 to return sugggested shipping method #60

Closed
dixitdeepak opened this issue Sep 27, 2024 · 0 comments · Fixed by #61
Closed

Add support to return sugggested shipping method #60

dixitdeepak opened this issue Sep 27, 2024 · 0 comments · Fixed by #61

Comments

@dixitdeepak
Copy link
Contributor

Evaluate Shipping Method and Transit Time to Suggest Appropriate Shipping Method:

  • Condition 1 (STANDARD):
    • If smt.PARENT_TYPE_ID is 'STANDARD' or smt.SHIPMENT_METHOD_TYPE_ID is 'STANDARD' and cpcm.GROUND_TRANSIT_TIME is less than or equal to 8 days, the suggested shipping method will be STANDARD.
  • Condition 2 (NEXT_DAY <= 1):
    • If smt.PARENT_TYPE_ID is 'NEXT_DAY' or smt.SHIPMENT_METHOD_TYPE_ID is 'NEXT_DAY' and cpcm.GROUND_TRANSIT_TIME is less than or equal to 1 day, the suggested shipping method will be STANDARD.
  • Condition 3 (NEXT_DAY > 1):
    • If smt.PARENT_TYPE_ID is 'NEXT_DAY' or smt.SHIPMENT_METHOD_TYPE_ID is 'NEXT_DAY' and cpcm.GROUND_TRANSIT_TIME is greater than 1 day, the suggested shipping method will be NEXT_DAY.
  • Condition 4 (SECOND_DAY <= 2):
    • If smt.PARENT_TYPE_ID is 'SECOND_DAY' or smt.SHIPMENT_METHOD_TYPE_ID is 'SECOND_DAY' and cpcm.GROUND_TRANSIT_TIME is less than or equal to 2 days, the suggested shipping method will be STANDARD.
  • Condition 5 (SECOND_DAY > 2):
    • If smt.PARENT_TYPE_ID is 'SECOND_DAY' or smt.SHIPMENT_METHOD_TYPE_ID is 'SECOND_DAY' and cpcm.GROUND_TRANSIT_TIME is greater than 2 days, the suggested shipping method will be SECOND_DAY.
  • Condition 6 (THIRD_DAY <= 3):
    • If smt.PARENT_TYPE_ID is 'THIRD_DAY' or smt.SHIPMENT_METHOD_TYPE_ID is 'THIRD_DAY' and cpcm.GROUND_TRANSIT_TIME is less than or equal to 3 days, the suggested shipping method will be STANDARD.
  • Condition 7 (THIRD_DAY > 3):
    • If smt.PARENT_TYPE_ID is 'THIRD_DAY' or smt.SHIPMENT_METHOD_TYPE_ID is 'THIRD_DAY' and cpcm.GROUND_TRANSIT_TIME is greater than 3 days, the suggested shipping method will be THIRD_DAY.
  • Output:
    The final suggested shipping method (suggested_ship_method) will be one of STANDARD, NEXT_DAY, SECOND_DAY, or THIRD_DAY based on the above conditions.
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 a pull request may close this issue.

1 participant