-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update TypeScript types for new functions and class
- Loading branch information
Showing
2 changed files
with
29 additions
and
1 deletion.
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
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,20 @@ | ||
/** | ||
* The SmartRate class interacts with the SmartRate API to provide optimized shipping rates and estimates. | ||
* | ||
* @see https://www.easypost.com/smartrate | ||
*/ | ||
export declare class SmartRate { | ||
/** | ||
* Retrieve the estimated delivery date of each carrier-service level combination via the Smart Deliver By API, based on a specific ship date and origin-destination postal code pair. | ||
* @param params - The parameters to estimate the delivery date with. | ||
* @returns {Object} - Estimates and related metadata. | ||
*/ | ||
static estimateDeliveryDate(params: object): object; | ||
|
||
/** | ||
* Retrieve a recommended ship date for each carrier-service level combination via the Smart Deliver On API, based on a specific delivery date and origin-destination postal code pair. | ||
* @param params - The parameters to recommend the ship date with. | ||
* @returns {Object} - Recommendation and related metadata. | ||
*/ | ||
static recommendShipDate(params: object): object; | ||
} |