contracts

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package contracts contains the stable event contracts published by the payment-system module. Consumers depend on this package instead of payment provider or persistence internals.

Index

Constants

View Source
const PurchaseCompletedV1Topic coreevents.Topic[PurchaseCompletedV1] = "payment.purchase.completed.v1"

PurchaseCompletedV1Topic is emitted after a one-time purchase is confirmed by a payment provider and recorded by payment-system.

Variables

This section is empty.

Functions

This section is empty.

Types

type PurchaseCompletedV1

type PurchaseCompletedV1 struct {
	Provider          string
	ExternalPaymentID string
	CheckoutID        string
	IdentityID        string
	PriceID           string
	PlanCode          string
	AmountMinor       int64
	Currency          string
	CompletedAt       time.Time
}

PurchaseCompletedV1 is the provider-neutral payload used to fulfill a one-time purchase in the consuming application.

Jump to

Keyboard shortcuts

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