app

package
v0.0.0-...-82ba225 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

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 GetSubscriptionId(content map[string]interface{}) (string, error)

func WebhookHandler

func WebhookHandler(baseLogger *zap.SugaredLogger, mapping []map[string]string) func(w http.ResponseWriter, req *http.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL