Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #70 from panxl6/master
Browse files Browse the repository at this point in the history
feat: add proof_of_delivery field
  • Loading branch information
panxl6 authored May 31, 2024
2 parents eb8290a + 23776fd commit 56c5372
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.1] - 2024-05-31
- Added `proof_of_delivery` field to Tracking Model.

## [3.1.0] - 2024-01-03
- All SDK errors will be wrapped with "APIError".

Expand Down
7 changes: 7 additions & 0 deletions trackings.go
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,13 @@ type Tracking struct {
* If a shipment has multiple carriers, you can use the next_couriers field to tell AfterShip who the second carrier is.
*/
NextCouriers []NextCourier `json:"next_couriers"`

ProofOfDelivery []ProofOfDelivery `json:"proof_of_delivery"`
}

type ProofOfDelivery struct {
Type string `json:"type"`
Url string `json:"url"`
}

type NextCourier struct {
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package aftership

// VERSION is the version number of this package
const VERSION string = "3.1.0"
const VERSION string = "3.1.1"

0 comments on commit 56c5372

Please sign in to comment.