Documentation ¶
Index ¶
- type AdjustInvoice
- type App
- type Application
- func (a Application) AdjustInvoice(ctx context.Context, adjust AdjustInvoice) error
- func (a Application) AuthorizePayment(ctx context.Context, authorize AuthorizePayment) error
- func (a Application) CancelInvoice(ctx context.Context, cancel CancelInvoice) error
- func (a Application) ConfirmPayment(ctx context.Context, confirm ConfirmPayment) error
- func (a Application) CreateInvoice(ctx context.Context, create CreateInvoice) error
- func (a Application) PayInvoice(ctx context.Context, pay PayInvoice) error
- type AuthorizePayment
- type CancelInvoice
- type ConfirmPayment
- type CreateInvoice
- type InvoiceRepository
- type OrderRepository
- type PayInvoice
- type PaymentRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdjustInvoice ¶
type App ¶
type App interface { AuthorizePayment(ctx context.Context, authorize AuthorizePayment) error ConfirmPayment(ctx context.Context, confirm ConfirmPayment) error CreateInvoice(ctx context.Context, create CreateInvoice) error AdjustInvoice(ctx context.Context, adjust AdjustInvoice) error PayInvoice(ctx context.Context, pay PayInvoice) error CancelInvoice(ctx context.Context, cancel CancelInvoice) error }
type Application ¶
type Application struct {
// contains filtered or unexported fields
}
func New ¶
func New(invoices InvoiceRepository, payments PaymentRepository, orders OrderRepository, ) *Application
func (Application) AdjustInvoice ¶
func (a Application) AdjustInvoice(ctx context.Context, adjust AdjustInvoice) error
func (Application) AuthorizePayment ¶
func (a Application) AuthorizePayment(ctx context.Context, authorize AuthorizePayment) error
func (Application) CancelInvoice ¶
func (a Application) CancelInvoice(ctx context.Context, cancel CancelInvoice) error
func (Application) ConfirmPayment ¶
func (a Application) ConfirmPayment(ctx context.Context, confirm ConfirmPayment) error
func (Application) CreateInvoice ¶
func (a Application) CreateInvoice(ctx context.Context, create CreateInvoice) error
func (Application) PayInvoice ¶
func (a Application) PayInvoice(ctx context.Context, pay PayInvoice) error
type AuthorizePayment ¶
type CancelInvoice ¶
type CancelInvoice struct {
ID string
}
type ConfirmPayment ¶
type ConfirmPayment struct {
ID string
}
type CreateInvoice ¶
type InvoiceRepository ¶
type OrderRepository ¶
type PayInvoice ¶
type PayInvoice struct {
ID string
}
Click to show internal directories.
Click to hide internal directories.