datastore

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InvoiceRepository

type InvoiceRepository interface {
	FindByNumber(ctx context.Context, number string) (*invoice.Invoice, error)
	Save(ctx context.Context, invoice *invoice.Invoice) error
}

InvoiceRepository is an interface for invoice storage

type MidtransTransactionStatusRepository

type MidtransTransactionStatusRepository interface {
	Save(ctx context.Context, status *midtrans.TransactionStatus) error
	FindByOrderID(ctx context.Context, orderID string) (*midtrans.TransactionStatus, error)
}

MidtransTransactionStatusRepository is an interface for the storage of midtrans transaction status.

type PaymentConfigReader

type PaymentConfigReader interface {
	FindByPaymentType(ctx context.Context, paymentType payment.PaymentType, opts ...payment.Option) (config.FeeConfigReader, error)
	FindAll(ctx context.Context) (*config.PaymentConfig, error)
}

PaymentConfigReader is interface for reading payment configuration

type SubscriptionRepository added in v0.5.0

type SubscriptionRepository interface {
	Save(ctx context.Context, subs *subscription.Subscription) error
	FindByNumber(ctx context.Context, number string) (*subscription.Subscription, error)
}

SubscriptionRepository is an interface for subscription store

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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