builder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agreement

type Agreement DefaultHandler

func (*Agreement) Build

func (h *Agreement) Build() (interface{}, error)

func (*Agreement) GetAgreementName

func (h *Agreement) GetAgreementName(fileType string) (string, error)

func (*Agreement) PostProcess

func (h *Agreement) PostProcess(
	ctx context.Context,
	_ string,
	fileName string,
	_ int64,
	_ []byte,
) error

func (*Agreement) Validate

func (h *Agreement) Validate() error

type AgreementInterface

type AgreementInterface interface {
	GetAgreementName(fileType string) (string, error)
}

type BuildInterface

type BuildInterface interface {
	Validate() error
	Build() (interface{}, error)
	PostProcess(context.Context, string, string, int64, []byte) error
}

type DefaultHandler

type DefaultHandler struct {
	*Handler
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(
	service micro.Service,
	report *reporterpb.ReportFile,
	billing billingpb.BillingService,
) *Handler

func (*Handler) GetBuilder

func (h *Handler) GetBuilder() (BuildInterface, error)

func (*Handler) GetParams

func (h *Handler) GetParams() (map[string]interface{}, error)

type Payout

type Payout DefaultHandler

func (*Payout) Build

func (h *Payout) Build() (interface{}, error)

func (*Payout) PostProcess

func (h *Payout) PostProcess(
	ctx context.Context,
	id string,
	fileName string,
	retentionTime int64,
	content []byte,
) error

func (*Payout) Validate

func (h *Payout) Validate() error

type Royalty

type Royalty DefaultHandler

func (*Royalty) Build

func (h *Royalty) Build() (interface{}, error)

func (*Royalty) PostProcess

func (h *Royalty) PostProcess(
	ctx context.Context,
	id string,
	fileName string,
	retentionTime int64,
	content []byte,
) error

func (*Royalty) Validate

func (h *Royalty) Validate() error

type RoyaltyTransactions

type RoyaltyTransactions DefaultHandler

func (*RoyaltyTransactions) Build

func (h *RoyaltyTransactions) Build() (interface{}, error)

func (*RoyaltyTransactions) PostProcess

func (h *RoyaltyTransactions) PostProcess(_ context.Context, _, _ string, _ int64, _ []byte) error

func (*RoyaltyTransactions) Validate

func (h *RoyaltyTransactions) Validate() error

type TariffPrintable

type TariffPrintable struct {
	Region                string `json:"payer_region"`
	MethodName            string `json:"method_name"`
	PaymentAmountMin      string `json:"payment_amount_min"`
	PaymentAmountMax      string `json:"payment_amount_max"`
	PaymentAmountCurrency string `json:"payment_amount_currency"`
	PsPercentFee          string `json:"ps_percent_fee"`
	PsFixedFee            string `json:"ps_fixed_fee"`
}

type Transactions

type Transactions DefaultHandler

func (*Transactions) Build

func (h *Transactions) Build() (interface{}, error)

func (*Transactions) PostProcess

func (h *Transactions) PostProcess(_ context.Context, _, _ string, _ int64, _ []byte) error

func (*Transactions) Validate

func (h *Transactions) Validate() error

type Vat

type Vat DefaultHandler

func (*Vat) Build

func (h *Vat) Build() (interface{}, error)

func (*Vat) PostProcess

func (h *Vat) PostProcess(_ context.Context, _, _ string, _ int64, _ []byte) error

func (*Vat) Validate

func (h *Vat) Validate() error

type VatTransactions

type VatTransactions DefaultHandler

func (*VatTransactions) Build

func (h *VatTransactions) Build() (interface{}, error)

func (*VatTransactions) PostProcess

func (h *VatTransactions) PostProcess(_ context.Context, _, _ string, _ int64, _ []byte) error

func (*VatTransactions) Validate

func (h *VatTransactions) Validate() error

Jump to

Keyboard shortcuts

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