From 350f6ebd2937e17c4128a00115ed76721874f0fa Mon Sep 17 00:00:00 2001 From: Takahiro Ikeuchi Date: Wed, 4 Dec 2024 18:35:45 +0900 Subject: [PATCH] fix: update error message to include new event types SUBSCRIPTION_EXTENDED and TEMPORARY_ENTITLEMENT_GRANT --- cancel_reason_value_test.go | 2 +- event_type_value_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cancel_reason_value_test.go b/cancel_reason_value_test.go index 7d482c7..5118fc6 100644 --- a/cancel_reason_value_test.go +++ b/cancel_reason_value_test.go @@ -16,7 +16,7 @@ func TestNewCancelReason(t *testing.T) { }{ {"UNSUBSCRIBE", "UNSUBSCRIBE", nil}, {"BILLING_ERROR", "BILLING_ERROR", nil}, - {"INVALID", "", errors.New("cancelReason value should be one of the following: UNSUBSCRIBE,BILLING_ERROR,DEVELOPER_INITIATED,PRICE_INCREASE,CUSTOMER_SUPPORT,UNKNOWN, got INVALID")}, + {"INVALID", "", errors.New("cancelReason value should be one of the following: UNSUBSCRIBE,BILLING_ERROR,DEVELOPER_INITIATED,PRICE_INCREASE,CUSTOMER_SUPPORT,SUBSCRIPTION_PAUSED,UNKNOWN, got INVALID")}, } for _, c := range cases { diff --git a/event_type_value_test.go b/event_type_value_test.go index 6c129b9..182785a 100644 --- a/event_type_value_test.go +++ b/event_type_value_test.go @@ -16,7 +16,7 @@ func TestNewEventType(t *testing.T) { }{ {"INITIAL_PURCHASE", "INITIAL_PURCHASE", nil}, {"CANCELLATION", "CANCELLATION", nil}, - {"INVALID", "", errors.New("eventType value should be one of the following: TEST, INITIAL_PURCHASE, NON_RENEWING_PURCHASE, RENEWAL, PRODUCT_CHANGE, CANCELLATION, UNCANCELLATION, BILLING_ISSUE, SUBSCRIBER_ALIAS, SUBSCRIPTION_PAUSED, TRANSFER, EXPIRATION, got INVALID")}, + {"INVALID", "", errors.New("eventType value should be one of the following: TEST, INITIAL_PURCHASE, NON_RENEWING_PURCHASE, RENEWAL, PRODUCT_CHANGE, CANCELLATION, UNCANCELLATION, BILLING_ISSUE, SUBSCRIBER_ALIAS, SUBSCRIPTION_PAUSED, TRANSFER, EXPIRATION, SUBSCRIPTION_EXTENDED, TEMPORARY_ENTITLEMENT_GRANT, got INVALID")}, } for _, c := range cases {