ops

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureCouponLoaded added in v0.1.1

func EnsureCouponLoaded(c context.Context, db *postgres.PostgresStore, couponID string) error

func EnsureCustomerLoaded

func EnsureCustomerLoaded(c context.Context, db *postgres.PostgresStore, customerID string) error

func EnsurePriceLoaded

func EnsurePriceLoaded(c context.Context, db *postgres.PostgresStore, priceID string) error

func EnsureProductLoaded

func EnsureProductLoaded(c context.Context, db *postgres.PostgresStore, productId string) error

func HandleCouponDeleted added in v0.1.1

func HandleCouponDeleted(c context.Context, db *postgres.PostgresStore, coupon *stripe.Coupon) error

func HandleCouponUpdated added in v0.1.1

func HandleCouponUpdated(c context.Context, db *postgres.PostgresStore, partialCoupon *stripe.Coupon) error

func HandleCustomerUpdated

func HandleCustomerUpdated(c context.Context, db *postgres.PostgresStore, customer *stripe.Customer) error

func HandleEvent

func HandleEvent(c context.Context, db *postgres.PostgresStore, e *stripe.Event) error

func HandlePriceDeleted

func HandlePriceDeleted(c context.Context, db *postgres.PostgresStore, price *stripe.Price) error

func HandlePriceUpdated

func HandlePriceUpdated(c context.Context, db *postgres.PostgresStore, price *stripe.Price) error

func HandleProductDeleted

func HandleProductDeleted(c context.Context, db *postgres.PostgresStore, product *stripe.Product) error

func HandleProductUpdated

func HandleProductUpdated(c context.Context, db *postgres.PostgresStore, product *stripe.Product) error

func HandleSubscriptionDiscountUpdated added in v0.1.1

func HandleSubscriptionDiscountUpdated(c context.Context, db *postgres.PostgresStore, discount *stripe.Discount) error

func HandleSubscriptionUpdated

func HandleSubscriptionUpdated(c context.Context, db *postgres.PostgresStore, subscription *stripe.Subscription) error

func InititalLoad

func InititalLoad(db *postgres.PostgresStore) error

func SyncEvents

func SyncEvents(db *postgres.PostgresStore) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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