File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
backend/services/mgmt/v1alpha1/user-account-service Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,10 @@ import (
25
25
26
26
var (
27
27
// 14 days duration
28
- trialDuration = 14 * 24 * time .Hour
28
+ trialDuration = 14 * 24 * time .Hour
29
+ stripeExclusionSet = map [string ]bool {
30
+ "8428f91a-f377-406e-b81b-55c92f853a9b" : true ,
31
+ }
29
32
)
30
33
31
34
func (s * Service ) GetAccountStatus (
@@ -77,6 +80,13 @@ func (s *Service) GetAccountStatus(
77
80
}), nil
78
81
}
79
82
83
+ if stripeExclusionSet [req .Msg .GetAccountId ()] {
84
+ logger .Debug ("account is in stripe exclusion set, returning active status" )
85
+ return connect .NewResponse (& mgmtv1alpha1.GetAccountStatusResponse {
86
+ SubscriptionStatus : mgmtv1alpha1 .BillingStatus_BILLING_STATUS_ACTIVE ,
87
+ }), nil
88
+ }
89
+
80
90
logger .Debug ("attempting to find active stripe subscription" )
81
91
subscriptions , err := s .getStripeSubscriptions (account .StripeCustomerID .String )
82
92
if err != nil {
You can’t perform that action at this time.
0 commit comments