Documentation ¶
Index ¶
- type Handler
- func (h *Handler) Charge(ctx context.Context, req *paymentpb.NewChargeRequest) (*paymentpb.NewChargeResponse, error)
- func (h *Handler) Get(ctx context.Context, req *connect.Request[paymentpb.GetRequest]) (*connect.Response[paymentpb.GetResponse], error)
- func (h *Handler) List(ctx context.Context, req *connect.Request[paymentpb.ListRequest]) (*connect.Response[paymentpb.ListResponse], error)
- func (h *Handler) NewCharge(ctx context.Context, req *connect.Request[paymentpb.NewChargeRequest]) (*connect.Response[paymentpb.NewChargeResponse], error)
- func (h *Handler) NewRefund(ctx context.Context, req *connect.Request[paymentpb.NewRefundRequest]) (*connect.Response[paymentpb.NewRefundResponse], error)
- func (h *Handler) Refund(ctx context.Context, req *paymentpb.NewRefundRequest) (*paymentpb.NewRefundResponse, error)
- type RepositoryPaymentDynamo
- func (r RepositoryPaymentDynamo) Get(ctx context.Context, payment *payment) error
- func (r RepositoryPaymentDynamo) Insert(ctx context.Context, payment *payment) error
- func (r RepositoryPaymentDynamo) List(ctx context.Context, payment *paymentlist, pagination db.Pagination) (int32, string, error)
- func (r RepositoryPaymentDynamo) Update(ctx context.Context, payment *payment) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler( dbRepositoryDynamo *db.DBRepositoryDynamo, provider paymentprovider.PaymentProvider, ) *Handler
func (*Handler) Charge ¶
func (h *Handler) Charge(ctx context.Context, req *paymentpb.NewChargeRequest) (*paymentpb.NewChargeResponse, error)
func (*Handler) Refund ¶
func (h *Handler) Refund(ctx context.Context, req *paymentpb.NewRefundRequest) (*paymentpb.NewRefundResponse, error)
type RepositoryPaymentDynamo ¶
type RepositoryPaymentDynamo struct {
*db.DBRepositoryDynamo
}
func (RepositoryPaymentDynamo) Get ¶
func (r RepositoryPaymentDynamo) Get(ctx context.Context, payment *payment) error
func (RepositoryPaymentDynamo) Insert ¶
func (r RepositoryPaymentDynamo) Insert(ctx context.Context, payment *payment) error
func (RepositoryPaymentDynamo) List ¶
func (r RepositoryPaymentDynamo) List(ctx context.Context, payment *paymentlist, pagination db.Pagination) (int32, string, error)
Click to show internal directories.
Click to hide internal directories.