Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- `betaReferralCustomer.createBankAccountClientSecret`
- `referralCustomer.addCreditCardFromStripe`
- `referralCustomer.addBankAccountFromStripe`
- Adds missing tracker props
- Routes `AmazonShippingAccount` to the correct endpoint on create
- Fixes all references to the docs
- Properly returns the response body of the following functions: `addPaymentMethod`, `refundByAmount`, `refundByPaymentLog`
Expand Down
6 changes: 4 additions & 2 deletions src/models/tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ import EasyPostObject from './easypost_object';
* @extends EasyPostObject
*/
export default class Tracker extends EasyPostObject {
static carrier_details;
static carrier_detail;
static carrier;
static est_delivery_date;
static fees;
static finalized;
static is_return;
static public_url;
static shipment_id;
static signed_by;
static status;
static status_detail;
static status;
static tracking_code;
static tracking_details;
static weight;
Expand Down
6 changes: 6 additions & 0 deletions types/Tracker/Tracker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ export declare interface ITracker extends IObjectWithId<'Tracker'>, IDatedObject
* Array of the associated Fee objects
*/
fees: IFee[];

finalized: boolean;

is_return: boolean;
}

export declare class Tracker implements ITracker {
Expand All @@ -116,6 +120,8 @@ export declare class Tracker implements ITracker {
carrier_detail: ICarrierDetail;
public_url: string;
fees: IFee[];
finalized: boolean;
is_return: boolean;
created_at: string;
updated_at: string;

Expand Down
6 changes: 6 additions & 0 deletions types/Tracker/TrackingDetail.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ export declare interface ITrackingDetail extends IBaseObject<'TrackingDetail'> {
*/
message: string;

description: string;

/**
* Status of the package at the time of the scan event, possible values are "unknown", "pre_transit", "in_transit", "out_for_delivery", "delivered", "available_for_pickup", "return_to_sender", "failure", "cancelled" or "error"
*/
status: ITrackerStatus;

status_detail: string;

/**
* The timestamp when the tracking scan occurred
*/
Expand All @@ -26,6 +30,8 @@ export declare interface ITrackingDetail extends IBaseObject<'TrackingDetail'> {
*/
source: string;

carrier_code: string;

/**
* The location associated with the scan event
*/
Expand Down