(s string)
| 429 | } |
| 430 | |
| 431 | func parseInterval(s string) (storepb.SubscriptionPayload_BillingInterval, error) { |
| 432 | v, ok := storepb.SubscriptionPayload_BillingInterval_value[s] |
| 433 | if !ok { |
| 434 | return storepb.SubscriptionPayload_BILLING_INTERVAL_UNSPECIFIED, errors.Errorf("unknown interval %q", s) |
| 435 | } |
| 436 | return storepb.SubscriptionPayload_BillingInterval(v), nil |
| 437 | } |
| 438 | |
| 439 | // getStripeCustomer gets the full customer object. |
| 440 | // Stripe webhooks may only include the customer ID, not the full object. |
no test coverage detected