handlers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProviderHandlers

func ProviderHandlers(
	initial config.Initial,
	srv common.Services,
	validator *validator.Validate,
	set provider.AwareSet,
	cfg *common.Config,
) (common.Handlers, func(), error)

Types

type CountryRoute

type CountryRoute struct {
	provider.LMT
	// contains filtered or unexported fields
}

func NewCountryRoute

func NewCountryRoute(set common.HandlerSet, cfg *common.Config) *CountryRoute

func (*CountryRoute) Route

func (h *CountryRoute) Route(groups *common.Groups)

type CreateOrderJsonProjectResponse

type CreateOrderJsonProjectResponse struct {
	// The unique identifier for the order.
	Id string `json:"id"`
	// The URL of the PaySuper-hosted payment form.
	PaymentFormUrl string `json:"payment_form_url"`
}

type CustomerRoute added in v1.2.0

type CustomerRoute struct {
	provider.LMT
	// contains filtered or unexported fields
}

func NewCustomerRoute added in v1.2.0

func NewCustomerRoute(set common.HandlerSet, cfg *common.Config) *CustomerRoute

func (*CustomerRoute) Route added in v1.2.0

func (h *CustomerRoute) Route(groups *common.Groups)

type ListOrdersRequest

type ListOrdersRequest struct {
	MerchantId    string   `json:"merchant_id" validate:"required,hexadecimal,len=24"`
	FileType      string   `json:"file_type" validate:"required"`
	Template      string   `json:"template" validate:"omitempty,hexadecimal"`
	Id            string   `json:"id" validate:"omitempty,uuid"`
	Project       []string `json:"project" validate:"omitempty,dive,hexadecimal,len=24"`
	PaymentMethod []string `json:"payment_method" validate:"omitempty,dive,hexadecimal,len=24"`
	Country       []string `json:"country" validate:"omitempty,dive,alpha,len=2"`
	Status        []string `json:"status," validate:"omitempty,dive,alpha,oneof=created processed canceled rejected refunded chargeback pending"`
	PmDateFrom    int64    `json:"pm_date_from" validate:"omitempty,numeric,gt=0"`
	PmDateTo      int64    `json:"pm_date_to" validate:"omitempty,numeric,gt=0"`
}

type OrderRoute

type OrderRoute struct {
	provider.LMT
	// contains filtered or unexported fields
}

func NewOrderRoute

func NewOrderRoute(set common.HandlerSet, cfg *common.Config) *OrderRoute

func (*OrderRoute) Route

func (h *OrderRoute) Route(groups *common.Groups)

type PaymentRoute

type PaymentRoute struct {
	provider.LMT
	// contains filtered or unexported fields
}

func NewPaymentRoute

func NewPaymentRoute(set common.HandlerSet, cfg *common.Config) *PaymentRoute

func (*PaymentRoute) Route

func (h *PaymentRoute) Route(groups *common.Groups)

type ReCreateOrderRequest added in v1.1.0

type ReCreateOrderRequest struct {
	// The unique identifier for the order.
	Id string `json:"order_id"`
}

type RecurringRoute

type RecurringRoute struct {
	provider.LMT
	// contains filtered or unexported fields
}

func NewRecurringRoute

func NewRecurringRoute(set common.HandlerSet, cfg *common.Config) *RecurringRoute

func (*RecurringRoute) Route

func (h *RecurringRoute) Route(groups *common.Groups)

type RedirectResponse added in v1.1.0

type RedirectResponse struct {
	// The redirection URL.
	RedirectUrl string `json:"redirect_url"`
	// Has a true value if it needs to redirect by a link.
	NeedRedirect bool `json:"need_redirect"`
}

Jump to

Keyboard shortcuts

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