diff --git a/CHANGELOG.md b/CHANGELOG.md index 04952b9c..02bc3941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * fix(token): correctly deserialize the `ID` [#222](https://github.com/Scalingo/go-scalingo/pull/222) * feat(token): add the `LastUsedAt` field [#222](https://github.com/Scalingo/go-scalingo/pull/222) * feat(deployments): add the `DeploymentListWithPagination` method [#221](https://github.com/Scalingo/go-scalingo/pull/221) +* feat(addon): add the `ProvisionedAt` and `DeprovisionedAt` fields [#224](https://github.com/Scalingo/go-scalingo/pull/224) ## 4.13.1 diff --git a/addons.go b/addons.go index 3c84eb9c..036e2759 100644 --- a/addons.go +++ b/addons.go @@ -2,6 +2,7 @@ package scalingo import ( "encoding/json" + "time" "github.com/Scalingo/go-scalingo/v4/http" @@ -28,12 +29,14 @@ const ( ) type Addon struct { - ID string `json:"id"` - AppID string `json:"app_id"` - ResourceID string `json:"resource_id"` - Status AddonStatus `json:"status"` - Plan *Plan `json:"plan"` - AddonProvider *AddonProvider `json:"addon_provider"` + ID string `json:"id"` + AppID string `json:"app_id"` + ResourceID string `json:"resource_id"` + Status AddonStatus `json:"status"` + Plan *Plan `json:"plan"` + AddonProvider *AddonProvider `json:"addon_provider"` + ProvisionedAt time.Time `json:"provisioned_at"` + DeprovisionedAt time.Time `json:"deprovisioned_at"` } type AddonsRes struct {