Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SUBSCRIPTION_EXTENDED and TEMPORARY_ENTITLEMENT_GRANT event types #6

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
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
28 changes: 16 additions & 12 deletions event_type_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@ import (
)

const (
EventTypeTest = "TEST"
EventTypeInitialPurchase = "INITIAL_PURCHASE"
EventTypeNonRenewingPurchase = "NON_RENEWING_PURCHASE"
EventTypeRenewal = "RENEWAL"
EventTypeProductChange = "PRODUCT_CHANGE"
EventTypeCancellation = "CANCELLATION"
EventTypeUnCancellation = "UNCANCELLATION"
EventTypeBillingIssue = "BILLING_ISSUE"
EventTypeSubscriberAlias = "SUBSCRIBER_ALIAS"
EventTypeSubscriptionPaused = "SUBSCRIPTION_PAUSED"
EventTypeTransfer = "TRANSFER"
EventTypeExpiration = "EXPIRATION"
EventTypeTest = "TEST"
EventTypeInitialPurchase = "INITIAL_PURCHASE"
EventTypeNonRenewingPurchase = "NON_RENEWING_PURCHASE"
EventTypeRenewal = "RENEWAL"
EventTypeProductChange = "PRODUCT_CHANGE"
EventTypeCancellation = "CANCELLATION"
EventTypeUnCancellation = "UNCANCELLATION"
EventTypeBillingIssue = "BILLING_ISSUE"
EventTypeSubscriberAlias = "SUBSCRIBER_ALIAS"
EventTypeSubscriptionPaused = "SUBSCRIPTION_PAUSED"
EventTypeTransfer = "TRANSFER"
EventTypeExpiration = "EXPIRATION"
EventTypeSubscriptionExtended = "SUBSCRIPTION_EXTENDED"
EventTypeTemporaryEntitlementGrant = "TEMPORARY_ENTITLEMENT_GRANT"
)

var validEventTypeValues = []string{
Expand All @@ -36,6 +38,8 @@ var validEventTypeValues = []string{
EventTypeSubscriptionPaused,
EventTypeTransfer,
EventTypeExpiration,
EventTypeSubscriptionExtended,
EventTypeTemporaryEntitlementGrant,
}

type eventType struct {
Expand Down