Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Querier ¶
type Querier interface { Create(ctx context.Context, orderID int64, userID *int64, billingAddressID int64, paymentIntentID string, paymentMethodID *string, amount decimal.Decimal, currency string, status string, clientSecret *string, lastError *string, cardLast4 string, cardBrand string, createdAt pgtype.Timestamptz) error GetByOrderID(ctx context.Context, orderID int64) (*StripeCardPayment, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) Create ¶
func (q *Queries) Create(ctx context.Context, orderID int64, userID *int64, billingAddressID int64, paymentIntentID string, paymentMethodID *string, amount decimal.Decimal, currency string, status string, clientSecret *string, lastError *string, cardLast4 string, cardBrand string, createdAt pgtype.Timestamptz) error
func (*Queries) GetByOrderID ¶
type Repository ¶
type Repository interface { Querier }
func NewRepository ¶
func NewRepository(db *pgxpool.Pool) Repository
type StripeCardPayment ¶
type StripeCardPayment struct { ID int64 OrderID int64 UserID *int64 BillingAddressID int64 PaymentIntentID string PaymentMethodID *string Amount decimal.Decimal Currency string Status string ClientSecret *string LastError *string CardLast4 string CardBrand string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
Click to show internal directories.
Click to hide internal directories.