Documentation ¶
Index ¶
- Constants
- func ApplyMapping(logger *zap.SugaredLogger, ...) error
- func GetItemPrice(id string) (*itemPriceModel.ItemPrice, error)
- func GetSubscription(content map[string]interface{}) (*subscriptionModel.Subscription, error)
- func GetSubscriptionId(content map[string]interface{}) (string, error)
- func WebhookHandler(baseLogger *zap.SugaredLogger, mapping []map[string]string) func(w http.ResponseWriter, req *http.Request)
Constants ¶
View Source
const ( SubscriptionCreated = "subscription_created" SubscriptionChangeed = "subscription_changed" SubscriptionCancelled = "subscription_cancelled" )
View Source
const (
MaxSubscriptionRetries = 5
)
Variables ¶
This section is empty.
Functions ¶
func ApplyMapping ¶
func ApplyMapping( logger *zap.SugaredLogger, entitlements []*subscriptionEntitlementModel.SubscriptionEntitlement, mapping []map[string]string, svc *models.Service, ) error
func GetItemPrice ¶
func GetItemPrice(id string) (*itemPriceModel.ItemPrice, error)
func GetSubscription ¶
func GetSubscription(content map[string]interface{}) (*subscriptionModel.Subscription, error)
func GetSubscriptionId ¶
func WebhookHandler ¶
func WebhookHandler(baseLogger *zap.SugaredLogger, mapping []map[string]string) func(w http.ResponseWriter, req *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.