Sha256: 15b1f2a8f96bb52bd3e0f8d02b7e690c1abb8c1a524edf8315c7a99c44c5ce08
Contents?: true
Size: 931 Bytes
Versions: 3
Compression:
Stored size: 931 Bytes
Contents
class EasyPost::Services::SmartRate < EasyPost::Services::Service # 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. def estimate_delivery_date(params = {}) url = 'smartrate/deliver_by' response = @client.make_request(:post, url, params) EasyPost::InternalUtilities::Json.convert_json_to_object(response, EasyPost::Models::EasyPostObject) end # 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. def recommend_ship_date(params = {}) url = 'smartrate/deliver_on' response = @client.make_request(:post, url, params) EasyPost::InternalUtilities::Json.convert_json_to_object(response, EasyPost::Models::EasyPostObject) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
easypost-6.4.1 | lib/easypost/services/smart_rate.rb |
easypost-6.4.0 | lib/easypost/services/smart_rate.rb |
easypost-6.3.0 | lib/easypost/services/smart_rate.rb |