Documentation ¶
Index ¶
- func EnsureCouponLoaded(c context.Context, db *postgres.PostgresStore, couponID string) error
- func EnsureCustomerLoaded(c context.Context, db *postgres.PostgresStore, customerID string) error
- func EnsurePriceLoaded(c context.Context, db *postgres.PostgresStore, priceID string) error
- func EnsureProductLoaded(c context.Context, db *postgres.PostgresStore, productId string) error
- func HandleCouponDeleted(c context.Context, db *postgres.PostgresStore, coupon *stripe.Coupon) error
- func HandleCouponUpdated(c context.Context, db *postgres.PostgresStore, partialCoupon *stripe.Coupon) error
- func HandleCustomerUpdated(c context.Context, db *postgres.PostgresStore, customer *stripe.Customer) error
- func HandleEvent(c context.Context, db *postgres.PostgresStore, e *stripe.Event) error
- func HandlePriceDeleted(c context.Context, db *postgres.PostgresStore, price *stripe.Price) error
- func HandlePriceUpdated(c context.Context, db *postgres.PostgresStore, price *stripe.Price) error
- func HandleProductDeleted(c context.Context, db *postgres.PostgresStore, product *stripe.Product) error
- func HandleProductUpdated(c context.Context, db *postgres.PostgresStore, product *stripe.Product) error
- func HandleSubscriptionDiscountUpdated(c context.Context, db *postgres.PostgresStore, discount *stripe.Discount) error
- func HandleSubscriptionUpdated(c context.Context, db *postgres.PostgresStore, ...) error
- func InititalLoad(db *postgres.PostgresStore) error
- func SyncEvents(db *postgres.PostgresStore) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureCouponLoaded ¶ added in v0.1.1
func EnsureCustomerLoaded ¶
func EnsurePriceLoaded ¶
func EnsureProductLoaded ¶
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.
Click to show internal directories.
Click to hide internal directories.