Versions in this module Expand all Collapse all v1 v1.1.0 Dec 2, 2025 Changes in this version + type CouponFieldMap struct + Active string + AppliesAt string + AutoApply string + Code string + CreatedAt string + Currency string + DiscountType string + DiscountValue string + ExpiresAt string + Metadata string + PaymentMethod string + ProductIDs string + Scope string + StartsAt string + UpdatedAt string + UsageCount string + UsageLimit string + type CouponMapping struct + CustomSQL *CustomSQLQueries + FieldMap CouponFieldMap + TableName string + Transforms map[string]Transform + type CouponSQLQueries struct + ColumnMap CouponFieldMap + Delete string + IncrementUsage string + Insert string + ListActive string + SelectAutoApply string + SelectOne string + TableName string + Update string + type CustomSQLQueries struct + Delete string + Insert string + ListActive string + Select string + Update string + type Mapping struct + Coupons CouponMapping + PaymentTracking PaymentTrackingMapping + Products ProductMapping + func LoadMapping(path string) (*Mapping, error) + type PaymentTrackingMapping struct + AdminNonces TableMapping + CartQuotes TableMapping + PaymentSignatures TableMapping + RefundQuotes TableMapping + type PaymentTrackingSQLQueries struct + AdminNoncesTable string + CartQuotesTable string + PaymentSignaturesTable string + RefundQuotesTable string + type PostgresMapper struct + func NewPostgresMapper(mapping *Mapping) *PostgresMapper + func (m *PostgresMapper) CouponQueries() *CouponSQLQueries + func (m *PostgresMapper) PaymentTrackingQueries() *PaymentTrackingSQLQueries + func (m *PostgresMapper) ProductQueries() *ProductSQLQueries + type ProductFieldMap struct + Active string + CreatedAt string + CryptoAccount string + CryptoAmount string + CryptoToken string + Description string + FiatAmount string + FiatCurrency string + ID string + MemoTemplate string + Metadata string + StripePriceID string + UpdatedAt string + type ProductMapping struct + CustomSQL *CustomSQLQueries + FieldMap ProductFieldMap + TableName string + Transforms map[string]Transform + type ProductSQLQueries struct + ColumnMap ProductFieldMap + Delete string + Insert string + ListActive string + SelectByStripePriceID string + SelectOne string + TableName string + Update string + type TableMapping struct + FieldMap map[string]string + TableName string + type Transform struct + Expr string + Factor float64 + Field string + Type string + Value interface{}