From 7abd54ae9eacaa23f9cae881c1d5177e89d6325b Mon Sep 17 00:00:00 2001 From: Michael Woodward Date: Thu, 19 Dec 2024 11:26:07 +0000 Subject: [PATCH] fix: Remove unused DiscountStatus values expired and used (#58) --- pkg/paddlenotification/discounts.go | 4 +--- shared.go | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/paddlenotification/discounts.go b/pkg/paddlenotification/discounts.go index 2d937e1..1a46502 100644 --- a/pkg/paddlenotification/discounts.go +++ b/pkg/paddlenotification/discounts.go @@ -23,14 +23,12 @@ type DiscountUpdated struct { Data DiscountNotification `json:"data"` } -// DiscountStatus: Whether this entity can be used in Paddle. `expired` and `used` are set automatically by Paddle.. +// DiscountStatus: Whether this entity can be used in Paddle.. type DiscountStatus string const ( DiscountStatusActive DiscountStatus = "active" DiscountStatusArchived DiscountStatus = "archived" - DiscountStatusExpired DiscountStatus = "expired" - DiscountStatusUsed DiscountStatus = "used" ) // Type: Type of discount. Determines how this discount impacts the checkout or transaction total.. diff --git a/shared.go b/shared.go index 3446bdd..a9bf0bf 100644 --- a/shared.go +++ b/shared.go @@ -1230,8 +1230,6 @@ type DiscountStatus string const ( DiscountStatusActive DiscountStatus = "active" DiscountStatusArchived DiscountStatus = "archived" - DiscountStatusExpired DiscountStatus = "expired" - DiscountStatusUsed DiscountStatus = "used" ) // DiscountType: Type of discount. Determines how this discount impacts the checkout or transaction total..