Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 1 commit
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 @@ -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.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be moved to the Unreleased header, we'll move it to a new version header (probably 0.13.0) before the change is released.


### Changed
- Ensure compatibility with ruby 2.x and 3.x
Expand Down
2 changes: 1 addition & 1 deletion lib/shipcloud/shipment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ 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,
attr_reader :id, :created_at, :carrier_tracking_no, :tracking_url, :label_url, :carrier_tracking_url,
Comment thread
stphnrdmr marked this conversation as resolved.
Outdated
:packages, :price, :customs_declaration, :pickup, :label_voucher_url

def self.index_response_root
Expand Down