diff --git a/CHANGELOG.md b/CHANGELOG.md index 5576549..1490edf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ - Add attr_accessor for `additional_services` to class `Shipcloud::Shipment` to be able to access the additional_services attribute at the shipment object. - Add attr_reader for `label_voucher_url` to class `Shipcloud::Shipment` to be able to read the label_voucher_url (QR Code url) attribute at the shipment object. - Added missing `frozen_string_literal: true` magic comments to files +- Add attr_reader for `carrier_tracking_url` to class `Shipcloud::Shipment` to be able to read the carrier_tracking_url attribute at the shipment object. ### Changed - Ensure compatibility with ruby 2.x and 3.x diff --git a/lib/shipcloud/shipment.rb b/lib/shipcloud/shipment.rb index 105ac3e..2e150fd 100644 --- a/lib/shipcloud/shipment.rb +++ b/lib/shipcloud/shipment.rb @@ -9,7 +9,8 @@ class Shipment < Base attr_accessor :from, :to, :carrier, :service, :package, :reference_number, :metadata, :additional_services attr_reader :id, :created_at, :carrier_tracking_no, :tracking_url, :label_url, - :packages, :price, :customs_declaration, :pickup, :label_voucher_url + :packages, :price, :customs_declaration, :pickup, + :label_voucher_url, :carrier_tracking_url def self.index_response_root "#{class_name.downcase}s"