-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add create order type & shipping method type
- Loading branch information
1 parent
6977409
commit 6652761
Showing
4 changed files
with
49 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@cn-international-express-sdk/wanb': major | ||
--- | ||
|
||
feat: add create order type & shipping method type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
export interface WanbConfig { | ||
app_token: string; | ||
user_id: string; | ||
base_url?: string; | ||
} | ||
|
||
export interface GetShippingMethodsRes { | ||
ShippingMethods: { | ||
Code: string; | ||
Name: string; | ||
IsTracking: boolean; | ||
IsVolumeWeight: boolean; | ||
MaxVolumeWeightInCm: number; | ||
Region: string; | ||
}[]; | ||
} | ||
|
||
export type AddOrderRes = | ||
| { | ||
Succeeded: false; | ||
Error: { | ||
Message: string; | ||
}; | ||
} | ||
| { | ||
Succeeded: true; | ||
Data: { | ||
ProcessCode: string; | ||
IndexNumber: string; | ||
ReferenceId: string; | ||
TrackingNumber: string; | ||
IsVirtualTrackingNumber: boolean; | ||
SortCode: string; | ||
IsRemoteArea: boolean; | ||
Status: string; | ||
}; | ||
}; |