Skip to content

Commit

Permalink
carrier: Add status in kr.lotte
Browse files Browse the repository at this point in the history
Add statCd 09, 25
  • Loading branch information
shlee322 committed Apr 2, 2024
1 parent 92bcc23 commit 2742d1c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/carriers/kr.lotte/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ class LotteGlobalLogisticsTrackScraper {

private parseStatusCode(statCd: string | null): TrackEventStatusCode {
switch (statCd) {
case "09": // 반품취소
return TrackEventStatusCode.Exception;
case "10": // 집하
return TrackEventStatusCode.AtPickup;
case "12": // 운송장 등록
Expand All @@ -128,6 +130,8 @@ class LotteGlobalLogisticsTrackScraper {
return TrackEventStatusCode.InTransit;
case "24": // 적입
return TrackEventStatusCode.InTransit;
case "25": // 해체
return TrackEventStatusCode.InTransit;
case "40": // 배달전
return TrackEventStatusCode.OutForDelivery;
case "41": // 배달완료
Expand Down

0 comments on commit 2742d1c

Please sign in to comment.