package payment

import (
	"gorm.io/gorm"

	"github.com/google/wire"
)

// Provider is the narrow persistence seam required by payment repositories.
// Keeping it here lets payment remain an independent data module.
type Provider interface {
	DB() *gorm.DB
}

// ProviderSet wires payment persistence repositories.
var ProviderSet = wire.NewSet(NewPaymentRepo, NewPaymentOrderRepo)
