Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #79 from sunznx/feature/add_tracking_numbers
Browse files Browse the repository at this point in the history
feat: add more fields for `Get trackings` API
  • Loading branch information
Bossa573 authored May 7, 2022
2 parents 76c8b9f + 687adb5 commit 8d9f2d5
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/model/tracking/multi_trackings_query_params.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { DeliveryStatus } from './delivery_status';

/**
* Tracking list query params object
*/
Expand All @@ -20,6 +21,12 @@ export interface MultiTrackingsQueryParams {
*/
keyword?: string;

/**
* Tracking number of shipments. Use comma to separate multiple values
* (Example: RA123456789US,LE123456789US)
*/
tracking_numbers?: string;

/**
* Unique courier code Use comma for multiple values. (Example: dhl,ups,usps)
*/
Expand Down Expand Up @@ -61,6 +68,17 @@ export interface MultiTrackingsQueryParams {
*/
created_at_max?: string;

/**
* Start date and time of trackings updated.
* (Example: 2013-04-15T16:41:56+08:00)
*/
updated_at_min?: string;

/**
* End date and time of trackings updated. (Example: 2013-04-15T16:41:56+08:00)
*/
updated_at_max?: string;

/**
* List of fields to include in the response.
* Use comma for multiple values. Fields to include: title, order_id, tag,
Expand All @@ -74,4 +92,24 @@ export interface MultiTrackingsQueryParams {
* Support Chinese to English translation for china-ems and china-post only
*/
lang?: string;

/**
* Tracking last updated at
* (Example: 2013-03-15T16:41:56+08:00)
*/
last_updated_at?: string;

/**
* Select return to sender, the value should be true or false,
* with optional comma separated.
*/
return_to_sender?: string;

/**
* Destination country of trackings returned by courier.
* Use ISO Alpha-3 (three letters).
* Use comma for multiple values. (Example: USA,HKG)
*/
courier_destination_country_iso3?: string;

}

0 comments on commit 8d9f2d5

Please sign in to comment.