reporterpb

package module
v0.0.0-...-838a961 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: GPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ServiceName    = "p1payreporter"
	ServiceVersion = "latest"

	ReportTypeTransactions                  = "transactions"
	ReportTypeVat                           = "vat"
	ReportTypeVatTransactions               = "vat_transactions"
	ReportTypeRoyalty                       = "royalty"
	ReportTypeRoyaltyTransactions           = "royalty_transactions"
	ReportTypeRoyaltyAccountant             = "royalty_accountant"
	ReportTypeRoyaltyTransactionsAccountant = "royalty_transactions_accountant"
	ReportTypePayout                        = "payout"
	ReportTypePayoutFinance                 = "payout_finance"
	ReportTypeAgreement                     = "agreement"
	ReportTypeActOfCompletion               = "act_of_completion"

	OutputExtensionXlsx = "xlsx"
	OutputExtensionCsv  = "csv"
	OutputExtensionPdf  = "pdf"
	OutputExtensionHtml = "html"

	ParamsFieldId            = "id"
	ParamsFieldCountry       = "country"
	ParamsFieldStatus        = "status"
	ParamsFieldPaymentMethod = "payment_method"
	ParamsFieldDateFrom      = "date_from"
	ParamsFieldDateTo        = "date_to"
	ParamsFieldMerchantId    = "merchant_id"
	ParamsFieldAccount       = "account"

	RequestParameterAgreementNumber                             = "number"
	RequestParameterAgreementLegalName                          = "legal_name"
	RequestParameterAgreementAddress                            = "address"
	RequestParameterAgreementRegistrationNumber                 = "registration_number"
	RequestParameterAgreementPayoutCost                         = "payout_cost"
	RequestParameterAgreementMinimalPayoutLimit                 = "minimal_payout_limit"
	RequestParameterAgreementPayoutCurrency                     = "payout_currency"
	RequestParameterAgreementPSRate                             = "ps_rate"
	RequestParameterAgreementHomeRegion                         = "home_region"
	RequestParameterAgreementMerchantAuthorizedName             = "merchant_authorized_name"
	RequestParameterAgreementMerchantAuthorizedPosition         = "merchant_authorized_position"
	RequestParameterAgreementOperatingCompanyLegalName          = "oc_name"
	RequestParameterAgreementOperatingCompanyAddress            = "oc_address"
	RequestParameterAgreementOperatingCompanyRegistrationNumber = "oc_registration_number"
	RequestParameterAgreementOperatingCompanyAuthorizedName     = "oc_authorized_name"
	RequestParameterAgreementOperatingCompanyAuthorizedPosition = "oc_authorized_position"

	FileMask          = "report_%s_%s.%s"
	FileMaskAgreement = "License Agreement_%s_#%s.%s"
)

Variables

View Source
var File_reporter_proto protoreflect.FileDescriptor

Functions

func RegisterReporterServiceHandler

func RegisterReporterServiceHandler(s server.Server, hdlr ReporterServiceHandler, opts ...server.HandlerOption) error

Types

type CreateFileResponse

type CreateFileResponse struct {

	// @inject_tag: json:"status"
	//
	// The response status code.
	Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status"`
	// @inject_tag: json:"message,omitempty"
	//
	// The response error message (if any).
	Message *ResponseErrorMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// @inject_tag: json:"file_id"
	//
	// The unique identifier for the file.
	FileId string `protobuf:"bytes,3,opt,name=file_id,json=fileId,proto3" json:"file_id"`
	// contains filtered or unexported fields
}

func (*CreateFileResponse) Descriptor deprecated

func (*CreateFileResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateFileResponse.ProtoReflect.Descriptor instead.

func (*CreateFileResponse) GetFileId

func (x *CreateFileResponse) GetFileId() string

func (*CreateFileResponse) GetMessage

func (x *CreateFileResponse) GetMessage() *ResponseErrorMessage

func (*CreateFileResponse) GetStatus

func (x *CreateFileResponse) GetStatus() int32

func (*CreateFileResponse) ProtoMessage

func (*CreateFileResponse) ProtoMessage()

func (*CreateFileResponse) ProtoReflect

func (x *CreateFileResponse) ProtoReflect() protoreflect.Message

func (*CreateFileResponse) Reset

func (x *CreateFileResponse) Reset()

func (*CreateFileResponse) String

func (x *CreateFileResponse) String() string

type PostProcessRequest

type PostProcessRequest struct {
	ReportFile    *ReportFile       `protobuf:"bytes,1,opt,name=report_file,json=reportFile,proto3" json:"report_file,omitempty"`
	FileName      string            `protobuf:"bytes,2,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
	RetentionTime int64             `protobuf:"varint,3,opt,name=retention_time,json=retentionTime,proto3" json:"retention_time,omitempty"`
	File          []byte            `protobuf:"bytes,4,opt,name=file,proto3" json:"file,omitempty"`
	Params        map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PostProcessRequest) Descriptor deprecated

func (*PostProcessRequest) Descriptor() ([]byte, []int)

Deprecated: Use PostProcessRequest.ProtoReflect.Descriptor instead.

func (*PostProcessRequest) GetFile

func (x *PostProcessRequest) GetFile() []byte

func (*PostProcessRequest) GetFileName

func (x *PostProcessRequest) GetFileName() string

func (*PostProcessRequest) GetParams

func (x *PostProcessRequest) GetParams() map[string]string

func (*PostProcessRequest) GetReportFile

func (x *PostProcessRequest) GetReportFile() *ReportFile

func (*PostProcessRequest) GetRetentionTime

func (x *PostProcessRequest) GetRetentionTime() int64

func (*PostProcessRequest) ProtoMessage

func (*PostProcessRequest) ProtoMessage()

func (*PostProcessRequest) ProtoReflect

func (x *PostProcessRequest) ProtoReflect() protoreflect.Message

func (*PostProcessRequest) Reset

func (x *PostProcessRequest) Reset()

func (*PostProcessRequest) String

func (x *PostProcessRequest) String() string

type ReportFile

type ReportFile struct {

	//@inject_tag: json:"-" bson:"_id"
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"-" bson:"_id"`
	// @inject_tag: json:"-" validate:"required,hexadecimal,len=24"
	UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"-" validate:"required,hexadecimal,len=24"`
	// @inject_tag: json:"-" validate:"required,hexadecimal,len=24" param:"merchant_id"
	MerchantId string `` /* 130-byte string literal not displayed */
	// @inject_tag: json:"report_type" validate:"required,oneof=transactions vat vat_transactions royalty royalty_transactions payout agreement act_of_completion"
	//
	// The report type. Available values: transactions, vat, vat_transactions, royalty, royalty_transactions, payout, agreement.
	ReportType string `` /* 205-byte string literal not displayed */
	// @inject_tag: json:"file_type" validate:"required,alpha"
	//
	// The report file type. Available values: pdf, xlsx, csv, html.
	FileType string `protobuf:"bytes,5,opt,name=file_type,json=fileType,proto3" json:"file_type" validate:"required,alpha"`
	// @inject_tag: json:"-"
	Params []byte `protobuf:"bytes,6,opt,name=params,proto3" json:"-"`
	// @inject_tag: json:"template" validate:"omitempty,hexadecimal"
	//
	// The unique identifier for the report template.
	Template string `protobuf:"bytes,7,opt,name=template,proto3" json:"template" validate:"omitempty,hexadecimal"`
	// @inject_tag: json:"retention_time"
	//
	// Retention time for the report.
	RetentionTime int32 `protobuf:"varint,8,opt,name=retention_time,json=retentionTime,proto3" json:"retention_time"`
	// @inject_tag: json:"send_notification"
	//
	// Has a true value if it's required to send a notification about the report file to the user.
	SendNotification bool `protobuf:"varint,9,opt,name=send_notification,json=sendNotification,proto3" json:"send_notification"`
	// @inject_tag: json:"created_at"
	//
	// The date of the report file creation.
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at"`
	// @inject_tag: json:"notification_channel_id"
	//
	// Merchant's or user's identifier to send notification in correct channel
	NotificationChannelId string `protobuf:"bytes,11,opt,name=notification_channel_id,json=notificationChannelId,proto3" json:"notification_channel_id"`
	// @inject_tag: json:"skip_post_process"
	//
	// Has a true value if need to skip post process method call after the report file exported.
	SkipPostProcess bool `protobuf:"varint,12,opt,name=skip_post_process,json=skipPostProcess,proto3" json:"skip_post_process"`
	// @inject_tag: json:"hide_test_transactions"
	//
	// Has a true value if need to hide test transactions
	HideTestTransactions bool `protobuf:"varint,13,opt,name=hide_test_transactions,json=hideTestTransactions,proto3" json:"hide_test_transactions"`
	// contains filtered or unexported fields
}

func (*ReportFile) Descriptor deprecated

func (*ReportFile) Descriptor() ([]byte, []int)

Deprecated: Use ReportFile.ProtoReflect.Descriptor instead.

func (*ReportFile) GetCreatedAt

func (x *ReportFile) GetCreatedAt() *timestamp.Timestamp

func (*ReportFile) GetFileType

func (x *ReportFile) GetFileType() string

func (*ReportFile) GetHideTestTransactions

func (x *ReportFile) GetHideTestTransactions() bool

func (*ReportFile) GetId

func (x *ReportFile) GetId() string

func (*ReportFile) GetMerchantId

func (x *ReportFile) GetMerchantId() string

func (*ReportFile) GetNotificationChannelId

func (x *ReportFile) GetNotificationChannelId() string

func (*ReportFile) GetParams

func (x *ReportFile) GetParams() []byte

func (*ReportFile) GetReportType

func (x *ReportFile) GetReportType() string

func (*ReportFile) GetRetentionTime

func (x *ReportFile) GetRetentionTime() int32

func (*ReportFile) GetSendNotification

func (x *ReportFile) GetSendNotification() bool

func (*ReportFile) GetSkipPostProcess

func (x *ReportFile) GetSkipPostProcess() bool

func (*ReportFile) GetTemplate

func (x *ReportFile) GetTemplate() string

func (*ReportFile) GetUserId

func (x *ReportFile) GetUserId() string

func (*ReportFile) ProtoMessage

func (*ReportFile) ProtoMessage()

func (*ReportFile) ProtoReflect

func (x *ReportFile) ProtoReflect() protoreflect.Message

func (*ReportFile) Reset

func (x *ReportFile) Reset()

func (*ReportFile) String

func (x *ReportFile) String() string

type ReporterService

type ReporterService interface {
	CreateFile(ctx context.Context, in *ReportFile, opts ...client.CallOption) (*CreateFileResponse, error)
}

func NewReporterService

func NewReporterService(name string, c client.Client) ReporterService

type ReporterServiceHandler

type ReporterServiceHandler interface {
	CreateFile(context.Context, *ReportFile, *CreateFileResponse) error
}

type ResponseErrorMessage

type ResponseErrorMessage struct {

	//@inject_tag: json:"code"
	//
	// The response code.
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code"`
	//@inject_tag: json:"message"
	//
	// The response message.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message"`
	//@inject_tag: json:"details,omitempty"
	//
	// The response details.
	Details string `protobuf:"bytes,3,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

func (*ResponseErrorMessage) Descriptor deprecated

func (*ResponseErrorMessage) Descriptor() ([]byte, []int)

Deprecated: Use ResponseErrorMessage.ProtoReflect.Descriptor instead.

func (*ResponseErrorMessage) GetCode

func (x *ResponseErrorMessage) GetCode() string

func (*ResponseErrorMessage) GetDetails

func (x *ResponseErrorMessage) GetDetails() string

func (*ResponseErrorMessage) GetMessage

func (x *ResponseErrorMessage) GetMessage() string

func (*ResponseErrorMessage) ProtoMessage

func (*ResponseErrorMessage) ProtoMessage()

func (*ResponseErrorMessage) ProtoReflect

func (x *ResponseErrorMessage) ProtoReflect() protoreflect.Message

func (*ResponseErrorMessage) Reset

func (x *ResponseErrorMessage) Reset()

func (*ResponseErrorMessage) String

func (x *ResponseErrorMessage) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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