notifierpb

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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName                 = "p1paynotifier"
	PayOneTopicNameValidateUser = "validate-user"
)

Variables

View Source
var File_notifier_proto protoreflect.FileDescriptor

Functions

func RegisterNotifierServiceHandler

func RegisterNotifierServiceHandler(s server.Server, hdlr NotifierServiceHandler, opts ...server.HandlerOption) error

Types

type BillingAddress

type BillingAddress struct {

	// @inject_tag: json:"country"
	//
	// The customer's country. Two-letter country code in ISO 3166-1, in uppercase (for instance US).
	Country string `protobuf:"bytes,1,opt,name=country,proto3" json:"country"`
	// @inject_tag: json:"city"
	//
	// The customer’s city.
	City string `protobuf:"bytes,2,opt,name=city,proto3" json:"city"`
	// @inject_tag: json:"postal_code"
	//
	// The customer's postal code.
	PostalCode string `protobuf:"bytes,3,opt,name=postal_code,json=postalCode,proto3" json:"postal_code"`
	// @inject_tag: json:"state"
	//
	// The customer's state code in ISO 3166-2.
	State string `protobuf:"bytes,4,opt,name=state,proto3" json:"state"`
	// contains filtered or unexported fields
}

func (*BillingAddress) Descriptor deprecated

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

Deprecated: Use BillingAddress.ProtoReflect.Descriptor instead.

func (*BillingAddress) GetCity

func (x *BillingAddress) GetCity() string

func (*BillingAddress) GetCountry

func (x *BillingAddress) GetCountry() string

func (*BillingAddress) GetPostalCode

func (x *BillingAddress) GetPostalCode() string

func (*BillingAddress) GetState

func (x *BillingAddress) GetState() string

func (*BillingAddress) ProtoMessage

func (*BillingAddress) ProtoMessage()

func (*BillingAddress) ProtoReflect

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

func (*BillingAddress) Reset

func (x *BillingAddress) Reset()

func (*BillingAddress) String

func (x *BillingAddress) String() string

type CheckUserRequest

type CheckUserRequest struct {
	Url           string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	User          *User  `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	SecretKey     string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	IsLiveProject bool   `protobuf:"varint,4,opt,name=is_live_project,json=isLiveProject,proto3" json:"is_live_project,omitempty"`
	TestingCase   string `protobuf:"bytes,5,opt,name=testing_case,json=testingCase,proto3" json:"testing_case,omitempty"`
	OrderUuid     string `protobuf:"bytes,6,opt,name=order_uuid,json=orderUuid,proto3" json:"order_uuid,omitempty"`
	MerchantId    string `protobuf:"bytes,7,opt,name=merchant_id,json=merchantId,proto3" json:"merchant_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckUserRequest) Descriptor deprecated

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

Deprecated: Use CheckUserRequest.ProtoReflect.Descriptor instead.

func (*CheckUserRequest) GetIsLiveProject

func (x *CheckUserRequest) GetIsLiveProject() bool

func (*CheckUserRequest) GetMerchantId

func (x *CheckUserRequest) GetMerchantId() string

func (*CheckUserRequest) GetOrderUuid

func (x *CheckUserRequest) GetOrderUuid() string

func (*CheckUserRequest) GetSecretKey

func (x *CheckUserRequest) GetSecretKey() string

func (*CheckUserRequest) GetTestingCase

func (x *CheckUserRequest) GetTestingCase() string

func (*CheckUserRequest) GetUrl

func (x *CheckUserRequest) GetUrl() string

func (*CheckUserRequest) GetUser

func (x *CheckUserRequest) GetUser() *User

func (*CheckUserRequest) ProtoMessage

func (*CheckUserRequest) ProtoMessage()

func (*CheckUserRequest) ProtoReflect

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

func (*CheckUserRequest) Reset

func (x *CheckUserRequest) Reset()

func (*CheckUserRequest) String

func (x *CheckUserRequest) String() string

type CheckUserResponse

type CheckUserResponse struct {
	Status  int32  `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckUserResponse) Descriptor deprecated

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

Deprecated: Use CheckUserResponse.ProtoReflect.Descriptor instead.

func (*CheckUserResponse) GetMessage

func (x *CheckUserResponse) GetMessage() string

func (*CheckUserResponse) GetStatus

func (x *CheckUserResponse) GetStatus() int32

func (*CheckUserResponse) ProtoMessage

func (*CheckUserResponse) ProtoMessage()

func (*CheckUserResponse) ProtoReflect

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

func (*CheckUserResponse) Reset

func (x *CheckUserResponse) Reset()

func (*CheckUserResponse) String

func (x *CheckUserResponse) String() string

type NotifierService

type NotifierService interface {
	CheckUser(ctx context.Context, in *CheckUserRequest, opts ...client.CallOption) (*CheckUserResponse, error)
}

func NewNotifierService

func NewNotifierService(name string, c client.Client) NotifierService

type NotifierServiceHandler

type NotifierServiceHandler interface {
	CheckUser(context.Context, *CheckUserRequest, *CheckUserResponse) error
}

type User

type User struct {

	// @inject_tag: json:"id"
	//
	// The unique identifier for the customer in the paysuper.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
	// @inject_tag: json:"object"
	//
	// The system constant that contains the returned object's type.
	Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object"`
	// @inject_tag: json:"external_id"
	//
	// The unique identifier for the customer in the merchant project.
	ExternalId string `protobuf:"bytes,3,opt,name=external_id,json=externalId,proto3" json:"external_id"`
	// @inject_tag: json:"name"
	//
	// The customer's name.
	Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name"`
	// @inject_tag: json:"email"
	//
	// The customer's email address.
	Email string `protobuf:"bytes,5,opt,name=email,proto3" json:"email"`
	// @inject_tag: json:"email_verified"
	//
	// Whether the customer's email address has been verified on the merchant side.
	EmailVerified bool `protobuf:"varint,6,opt,name=email_verified,json=emailVerified,proto3" json:"email_verified"`
	// @inject_tag: json:"phone"
	//
	// The customer's phone number.
	Phone string `protobuf:"bytes,7,opt,name=phone,proto3" json:"phone"`
	// @inject_tag: json:"phone_verified"
	//
	// Whether the customer's phone number has been verified on the merchant side.
	PhoneVerified bool `protobuf:"varint,8,opt,name=phone_verified,json=phoneVerified,proto3" json:"phone_verified"`
	// @inject_tag: json:"ip"
	//
	// The customer's IP address.
	Ip string `protobuf:"bytes,9,opt,name=ip,proto3" json:"ip"`
	// @inject_tag: json:"locale"
	//
	// The customer's locale name. The language code in ISO 639-1 (for instance en-US).
	Locale string `protobuf:"bytes,10,opt,name=locale,proto3" json:"locale"`
	// @inject_tag: json:"address"
	//
	// The customer's address details.
	Address *BillingAddress `protobuf:"bytes,11,opt,name=address,proto3" json:"address"`
	// @inject_tag: json:"metadata"
	//
	// A string-value description that you can attach to the customer's object. It can be useful for storing additional information about your customer's payment.
	Metadata map[string]string `` /* 148-byte string literal not displayed */
	// @inject_tag: json:"notify_new_region"
	//
	// Has the value true if the customer confirmed to receive the PaySuper newsletter about the beginning of payment acceptance in new regions.
	NotifyNewRegion bool `protobuf:"varint,13,opt,name=notify_new_region,json=notifyNewRegion,proto3" json:"notify_new_region"`
	// @inject_tag: json:"notify_new_region_email"
	//
	// The customer’s email for a newsletter about the beginning of payment acceptance in new regions.
	NotifyNewRegionEmail string `protobuf:"bytes,14,opt,name=notify_new_region_email,json=notifyNewRegionEmail,proto3" json:"notify_new_region_email"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetAddress

func (x *User) GetAddress() *BillingAddress

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetEmailVerified

func (x *User) GetEmailVerified() bool

func (*User) GetExternalId

func (x *User) GetExternalId() string

func (*User) GetId

func (x *User) GetId() string

func (*User) GetIp

func (x *User) GetIp() string

func (*User) GetLocale

func (x *User) GetLocale() string

func (*User) GetMetadata

func (x *User) GetMetadata() map[string]string

func (*User) GetName

func (x *User) GetName() string

func (*User) GetNotifyNewRegion

func (x *User) GetNotifyNewRegion() bool

func (*User) GetNotifyNewRegionEmail

func (x *User) GetNotifyNewRegionEmail() string

func (*User) GetObject

func (x *User) GetObject() string

func (*User) GetPhone

func (x *User) GetPhone() string

func (*User) GetPhoneVerified

func (x *User) GetPhoneVerified() bool

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

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

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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