Skip to content

Commit

Permalink
fix: update error message to include new event types SUBSCRIPTION_EXT…
Browse files Browse the repository at this point in the history
…ENDED and TEMPORARY_ENTITLEMENT_GRANT
  • Loading branch information
iktakahiro committed Dec 4, 2024
1 parent 49813f2 commit 350f6eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cancel_reason_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion event_type_value_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 350f6eb

Please sign in to comment.