Skip to content

Commit

Permalink
Merge pull request #6 from dgalambos/add-missing-event-types
Browse files Browse the repository at this point in the history
Add SUBSCRIPTION_EXTENDED and TEMPORARY_ENTITLEMENT_GRANT event types
  • Loading branch information
iktakahiro authored Dec 4, 2024
2 parents e95190f + 37f8876 commit 73d4418
Showing 1 changed file with 16 additions and 12 deletions.
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

0 comments on commit 73d4418

Please sign in to comment.