v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Portal_GetSubscription_FullMethodName            = "/api.public.portal.v1.Portal/GetSubscription"
	Portal_GetSubscriptionCatalog_FullMethodName     = "/api.public.portal.v1.Portal/GetSubscriptionCatalog"
	Portal_PrePurchaseOrder_FullMethodName           = "/api.public.portal.v1.Portal/PrePurchaseOrder"
	Portal_Purchase_FullMethodName                   = "/api.public.portal.v1.Portal/Purchase"
	Portal_GetAvailablePaymentMethods_FullMethodName = "/api.public.portal.v1.Portal/GetAvailablePaymentMethods"
	Portal_PurchaseCheckout_FullMethodName           = "/api.public.portal.v1.Portal/PurchaseCheckout"
	Portal_QueryPurchaseOrder_FullMethodName         = "/api.public.portal.v1.Portal/QueryPurchaseOrder"
)
View Source
const OperationPortalGetAvailablePaymentMethods = "/api.public.portal.v1.Portal/GetAvailablePaymentMethods"
View Source
const OperationPortalGetSubscription = "/api.public.portal.v1.Portal/GetSubscription"
View Source
const OperationPortalGetSubscriptionCatalog = "/api.public.portal.v1.Portal/GetSubscriptionCatalog"
View Source
const OperationPortalPrePurchaseOrder = "/api.public.portal.v1.Portal/PrePurchaseOrder"
View Source
const OperationPortalPurchase = "/api.public.portal.v1.Portal/Purchase"
View Source
const OperationPortalPurchaseCheckout = "/api.public.portal.v1.Portal/PurchaseCheckout"
View Source
const OperationPortalQueryPurchaseOrder = "/api.public.portal.v1.Portal/QueryPurchaseOrder"

Variables

View Source
var File_public_portal_v1_portal_proto protoreflect.FileDescriptor
View Source
var Portal_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.public.portal.v1.Portal",
	HandlerType: (*PortalServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSubscription",
			Handler:    _Portal_GetSubscription_Handler,
		},
		{
			MethodName: "GetSubscriptionCatalog",
			Handler:    _Portal_GetSubscriptionCatalog_Handler,
		},
		{
			MethodName: "PrePurchaseOrder",
			Handler:    _Portal_PrePurchaseOrder_Handler,
		},
		{
			MethodName: "Purchase",
			Handler:    _Portal_Purchase_Handler,
		},
		{
			MethodName: "GetAvailablePaymentMethods",
			Handler:    _Portal_GetAvailablePaymentMethods_Handler,
		},
		{
			MethodName: "PurchaseCheckout",
			Handler:    _Portal_PurchaseCheckout_Handler,
		},
		{
			MethodName: "QueryPurchaseOrder",
			Handler:    _Portal_QueryPurchaseOrder_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "public/portal/v1/portal.proto",
}

Portal_ServiceDesc is the grpc.ServiceDesc for Portal service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPortalHTTPServer

func RegisterPortalHTTPServer(s *http.Server, srv PortalHTTPServer)

func RegisterPortalServer

func RegisterPortalServer(s grpc.ServiceRegistrar, srv PortalServer)

Types

type GetAvailablePaymentMethodsReply

type GetAvailablePaymentMethodsReply struct {
	Methods []*PaymentMethod `protobuf:"bytes,1,rep,name=methods,proto3" json:"methods,omitempty"`
	// contains filtered or unexported fields
}

func (*GetAvailablePaymentMethodsReply) Descriptor deprecated

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

Deprecated: Use GetAvailablePaymentMethodsReply.ProtoReflect.Descriptor instead.

func (*GetAvailablePaymentMethodsReply) GetMethods

func (*GetAvailablePaymentMethodsReply) ProtoMessage

func (*GetAvailablePaymentMethodsReply) ProtoMessage()

func (*GetAvailablePaymentMethodsReply) ProtoReflect

func (*GetAvailablePaymentMethodsReply) Reset

func (*GetAvailablePaymentMethodsReply) String

func (*GetAvailablePaymentMethodsReply) Validate

func (m *GetAvailablePaymentMethodsReply) Validate() error

Validate checks the field values on GetAvailablePaymentMethodsReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetAvailablePaymentMethodsReply) ValidateAll

func (m *GetAvailablePaymentMethodsReply) ValidateAll() error

ValidateAll checks the field values on GetAvailablePaymentMethodsReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetAvailablePaymentMethodsReplyMultiError, or nil if none found.

type GetAvailablePaymentMethodsReplyMultiError

type GetAvailablePaymentMethodsReplyMultiError []error

GetAvailablePaymentMethodsReplyMultiError is an error wrapping multiple validation errors returned by GetAvailablePaymentMethodsReply.ValidateAll() if the designated constraints aren't met.

func (GetAvailablePaymentMethodsReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetAvailablePaymentMethodsReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetAvailablePaymentMethodsReplyValidationError

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

GetAvailablePaymentMethodsReplyValidationError is the validation error returned by GetAvailablePaymentMethodsReply.Validate if the designated constraints aren't met.

func (GetAvailablePaymentMethodsReplyValidationError) Cause

Cause function returns cause value.

func (GetAvailablePaymentMethodsReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAvailablePaymentMethodsReplyValidationError) ErrorName

ErrorName returns error name.

func (GetAvailablePaymentMethodsReplyValidationError) Field

Field function returns field value.

func (GetAvailablePaymentMethodsReplyValidationError) Key

Key function returns key value.

func (GetAvailablePaymentMethodsReplyValidationError) Reason

Reason function returns reason value.

type GetSubscriptionCatalogReply added in v1.0.9

type GetSubscriptionCatalogReply struct {
	Categories    []*SubscribeCategory `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"`
	Uncategorized []*SubscribeInfo     `protobuf:"bytes,2,rep,name=uncategorized,proto3" json:"uncategorized,omitempty"`
	Total         int32                `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubscriptionCatalogReply) Descriptor deprecated added in v1.0.9

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

Deprecated: Use GetSubscriptionCatalogReply.ProtoReflect.Descriptor instead.

func (*GetSubscriptionCatalogReply) GetCategories added in v1.0.9

func (x *GetSubscriptionCatalogReply) GetCategories() []*SubscribeCategory

func (*GetSubscriptionCatalogReply) GetTotal added in v1.0.9

func (x *GetSubscriptionCatalogReply) GetTotal() int32

func (*GetSubscriptionCatalogReply) GetUncategorized added in v1.0.9

func (x *GetSubscriptionCatalogReply) GetUncategorized() []*SubscribeInfo

func (*GetSubscriptionCatalogReply) ProtoMessage added in v1.0.9

func (*GetSubscriptionCatalogReply) ProtoMessage()

func (*GetSubscriptionCatalogReply) ProtoReflect added in v1.0.9

func (*GetSubscriptionCatalogReply) Reset added in v1.0.9

func (x *GetSubscriptionCatalogReply) Reset()

func (*GetSubscriptionCatalogReply) String added in v1.0.9

func (x *GetSubscriptionCatalogReply) String() string

func (*GetSubscriptionCatalogReply) Validate added in v1.0.9

func (m *GetSubscriptionCatalogReply) Validate() error

Validate checks the field values on GetSubscriptionCatalogReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSubscriptionCatalogReply) ValidateAll added in v1.0.9

func (m *GetSubscriptionCatalogReply) ValidateAll() error

ValidateAll checks the field values on GetSubscriptionCatalogReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSubscriptionCatalogReplyMultiError, or nil if none found.

type GetSubscriptionCatalogReplyMultiError added in v1.0.9

type GetSubscriptionCatalogReplyMultiError []error

GetSubscriptionCatalogReplyMultiError is an error wrapping multiple validation errors returned by GetSubscriptionCatalogReply.ValidateAll() if the designated constraints aren't met.

func (GetSubscriptionCatalogReplyMultiError) AllErrors added in v1.0.9

AllErrors returns a list of validation violation errors.

func (GetSubscriptionCatalogReplyMultiError) Error added in v1.0.9

Error returns a concatenation of all the error messages it wraps.

type GetSubscriptionCatalogReplyValidationError added in v1.0.9

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

GetSubscriptionCatalogReplyValidationError is the validation error returned by GetSubscriptionCatalogReply.Validate if the designated constraints aren't met.

func (GetSubscriptionCatalogReplyValidationError) Cause added in v1.0.9

Cause function returns cause value.

func (GetSubscriptionCatalogReplyValidationError) Error added in v1.0.9

Error satisfies the builtin error interface

func (GetSubscriptionCatalogReplyValidationError) ErrorName added in v1.0.9

ErrorName returns error name.

func (GetSubscriptionCatalogReplyValidationError) Field added in v1.0.9

Field function returns field value.

func (GetSubscriptionCatalogReplyValidationError) Key added in v1.0.9

Key function returns key value.

func (GetSubscriptionCatalogReplyValidationError) Reason added in v1.0.9

Reason function returns reason value.

type GetSubscriptionCatalogRequest added in v1.0.9

type GetSubscriptionCatalogRequest struct {
	Language *string `protobuf:"bytes,1,opt,name=language,proto3,oneof" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubscriptionCatalogRequest) Descriptor deprecated added in v1.0.9

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

Deprecated: Use GetSubscriptionCatalogRequest.ProtoReflect.Descriptor instead.

func (*GetSubscriptionCatalogRequest) GetLanguage added in v1.0.9

func (x *GetSubscriptionCatalogRequest) GetLanguage() string

func (*GetSubscriptionCatalogRequest) ProtoMessage added in v1.0.9

func (*GetSubscriptionCatalogRequest) ProtoMessage()

func (*GetSubscriptionCatalogRequest) ProtoReflect added in v1.0.9

func (*GetSubscriptionCatalogRequest) Reset added in v1.0.9

func (x *GetSubscriptionCatalogRequest) Reset()

func (*GetSubscriptionCatalogRequest) String added in v1.0.9

func (*GetSubscriptionCatalogRequest) Validate added in v1.0.9

func (m *GetSubscriptionCatalogRequest) Validate() error

Validate checks the field values on GetSubscriptionCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSubscriptionCatalogRequest) ValidateAll added in v1.0.9

func (m *GetSubscriptionCatalogRequest) ValidateAll() error

ValidateAll checks the field values on GetSubscriptionCatalogRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSubscriptionCatalogRequestMultiError, or nil if none found.

type GetSubscriptionCatalogRequestMultiError added in v1.0.9

type GetSubscriptionCatalogRequestMultiError []error

GetSubscriptionCatalogRequestMultiError is an error wrapping multiple validation errors returned by GetSubscriptionCatalogRequest.ValidateAll() if the designated constraints aren't met.

func (GetSubscriptionCatalogRequestMultiError) AllErrors added in v1.0.9

AllErrors returns a list of validation violation errors.

func (GetSubscriptionCatalogRequestMultiError) Error added in v1.0.9

Error returns a concatenation of all the error messages it wraps.

type GetSubscriptionCatalogRequestValidationError added in v1.0.9

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

GetSubscriptionCatalogRequestValidationError is the validation error returned by GetSubscriptionCatalogRequest.Validate if the designated constraints aren't met.

func (GetSubscriptionCatalogRequestValidationError) Cause added in v1.0.9

Cause function returns cause value.

func (GetSubscriptionCatalogRequestValidationError) Error added in v1.0.9

Error satisfies the builtin error interface

func (GetSubscriptionCatalogRequestValidationError) ErrorName added in v1.0.9

ErrorName returns error name.

func (GetSubscriptionCatalogRequestValidationError) Field added in v1.0.9

Field function returns field value.

func (GetSubscriptionCatalogRequestValidationError) Key added in v1.0.9

Key function returns key value.

func (GetSubscriptionCatalogRequestValidationError) Reason added in v1.0.9

Reason function returns reason value.

type GetSubscriptionReply

type GetSubscriptionReply struct {
	List []*SubscribeInfo `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubscriptionReply) Descriptor deprecated

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

Deprecated: Use GetSubscriptionReply.ProtoReflect.Descriptor instead.

func (*GetSubscriptionReply) GetList

func (x *GetSubscriptionReply) GetList() []*SubscribeInfo

func (*GetSubscriptionReply) ProtoMessage

func (*GetSubscriptionReply) ProtoMessage()

func (*GetSubscriptionReply) ProtoReflect

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

func (*GetSubscriptionReply) Reset

func (x *GetSubscriptionReply) Reset()

func (*GetSubscriptionReply) String

func (x *GetSubscriptionReply) String() string

func (*GetSubscriptionReply) Validate

func (m *GetSubscriptionReply) Validate() error

Validate checks the field values on GetSubscriptionReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSubscriptionReply) ValidateAll

func (m *GetSubscriptionReply) ValidateAll() error

ValidateAll checks the field values on GetSubscriptionReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSubscriptionReplyMultiError, or nil if none found.

type GetSubscriptionReplyMultiError

type GetSubscriptionReplyMultiError []error

GetSubscriptionReplyMultiError is an error wrapping multiple validation errors returned by GetSubscriptionReply.ValidateAll() if the designated constraints aren't met.

func (GetSubscriptionReplyMultiError) AllErrors

func (m GetSubscriptionReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSubscriptionReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetSubscriptionReplyValidationError

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

GetSubscriptionReplyValidationError is the validation error returned by GetSubscriptionReply.Validate if the designated constraints aren't met.

func (GetSubscriptionReplyValidationError) Cause

Cause function returns cause value.

func (GetSubscriptionReplyValidationError) Error

Error satisfies the builtin error interface

func (GetSubscriptionReplyValidationError) ErrorName

ErrorName returns error name.

func (GetSubscriptionReplyValidationError) Field

Field function returns field value.

func (GetSubscriptionReplyValidationError) Key

Key function returns key value.

func (GetSubscriptionReplyValidationError) Reason

Reason function returns reason value.

type GetSubscriptionRequest

type GetSubscriptionRequest struct {
	Language   *string `protobuf:"bytes,1,opt,name=language,proto3,oneof" json:"language,omitempty"`
	CategoryId int64   `protobuf:"varint,2,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSubscriptionRequest) Descriptor deprecated

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

Deprecated: Use GetSubscriptionRequest.ProtoReflect.Descriptor instead.

func (*GetSubscriptionRequest) GetCategoryId added in v1.0.9

func (x *GetSubscriptionRequest) GetCategoryId() int64

func (*GetSubscriptionRequest) GetLanguage

func (x *GetSubscriptionRequest) GetLanguage() string

func (*GetSubscriptionRequest) ProtoMessage

func (*GetSubscriptionRequest) ProtoMessage()

func (*GetSubscriptionRequest) ProtoReflect

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

func (*GetSubscriptionRequest) Reset

func (x *GetSubscriptionRequest) Reset()

func (*GetSubscriptionRequest) String

func (x *GetSubscriptionRequest) String() string

func (*GetSubscriptionRequest) Validate

func (m *GetSubscriptionRequest) Validate() error

Validate checks the field values on GetSubscriptionRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetSubscriptionRequest) ValidateAll

func (m *GetSubscriptionRequest) ValidateAll() error

ValidateAll checks the field values on GetSubscriptionRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetSubscriptionRequestMultiError, or nil if none found.

type GetSubscriptionRequestMultiError

type GetSubscriptionRequestMultiError []error

GetSubscriptionRequestMultiError is an error wrapping multiple validation errors returned by GetSubscriptionRequest.ValidateAll() if the designated constraints aren't met.

func (GetSubscriptionRequestMultiError) AllErrors

func (m GetSubscriptionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetSubscriptionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetSubscriptionRequestValidationError

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

GetSubscriptionRequestValidationError is the validation error returned by GetSubscriptionRequest.Validate if the designated constraints aren't met.

func (GetSubscriptionRequestValidationError) Cause

Cause function returns cause value.

func (GetSubscriptionRequestValidationError) Error

Error satisfies the builtin error interface

func (GetSubscriptionRequestValidationError) ErrorName

ErrorName returns error name.

func (GetSubscriptionRequestValidationError) Field

Field function returns field value.

func (GetSubscriptionRequestValidationError) Key

Key function returns key value.

func (GetSubscriptionRequestValidationError) Reason

Reason function returns reason value.

type PaymentMethod

type PaymentMethod struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Platform    string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Icon        string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"`
	FeeMode     uint32 `protobuf:"varint,6,opt,name=fee_mode,json=feeMode,proto3" json:"fee_mode,omitempty"`
	FeePercent  int64  `protobuf:"varint,7,opt,name=fee_percent,json=feePercent,proto3" json:"fee_percent,omitempty"`
	FeeAmount   int64  `protobuf:"varint,8,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentMethod) Descriptor deprecated

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

Deprecated: Use PaymentMethod.ProtoReflect.Descriptor instead.

func (*PaymentMethod) GetDescription

func (x *PaymentMethod) GetDescription() string

func (*PaymentMethod) GetFeeAmount

func (x *PaymentMethod) GetFeeAmount() int64

func (*PaymentMethod) GetFeeMode

func (x *PaymentMethod) GetFeeMode() uint32

func (*PaymentMethod) GetFeePercent

func (x *PaymentMethod) GetFeePercent() int64

func (*PaymentMethod) GetIcon

func (x *PaymentMethod) GetIcon() string

func (*PaymentMethod) GetId

func (x *PaymentMethod) GetId() int64

func (*PaymentMethod) GetName

func (x *PaymentMethod) GetName() string

func (*PaymentMethod) GetPlatform

func (x *PaymentMethod) GetPlatform() string

func (*PaymentMethod) ProtoMessage

func (*PaymentMethod) ProtoMessage()

func (*PaymentMethod) ProtoReflect

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

func (*PaymentMethod) Reset

func (x *PaymentMethod) Reset()

func (*PaymentMethod) String

func (x *PaymentMethod) String() string

func (*PaymentMethod) Validate

func (m *PaymentMethod) Validate() error

Validate checks the field values on PaymentMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PaymentMethod) ValidateAll

func (m *PaymentMethod) ValidateAll() error

ValidateAll checks the field values on PaymentMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaymentMethodMultiError, or nil if none found.

type PaymentMethodMultiError

type PaymentMethodMultiError []error

PaymentMethodMultiError is an error wrapping multiple validation errors returned by PaymentMethod.ValidateAll() if the designated constraints aren't met.

func (PaymentMethodMultiError) AllErrors

func (m PaymentMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PaymentMethodMultiError) Error

func (m PaymentMethodMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PaymentMethodValidationError

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

PaymentMethodValidationError is the validation error returned by PaymentMethod.Validate if the designated constraints aren't met.

func (PaymentMethodValidationError) Cause

Cause function returns cause value.

func (PaymentMethodValidationError) Error

Error satisfies the builtin error interface

func (PaymentMethodValidationError) ErrorName

func (e PaymentMethodValidationError) ErrorName() string

ErrorName returns error name.

func (PaymentMethodValidationError) Field

Field function returns field value.

func (PaymentMethodValidationError) Key

Key function returns key value.

func (PaymentMethodValidationError) Reason

Reason function returns reason value.

type PortalClient

type PortalClient interface {
	GetSubscription(ctx context.Context, in *GetSubscriptionRequest, opts ...grpc.CallOption) (*GetSubscriptionReply, error)
	GetSubscriptionCatalog(ctx context.Context, in *GetSubscriptionCatalogRequest, opts ...grpc.CallOption) (*GetSubscriptionCatalogReply, error)
	PrePurchaseOrder(ctx context.Context, in *PrePurchaseOrderRequest, opts ...grpc.CallOption) (*PrePurchaseOrderReply, error)
	Purchase(ctx context.Context, in *PurchaseRequest, opts ...grpc.CallOption) (*PurchaseReply, error)
	GetAvailablePaymentMethods(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetAvailablePaymentMethodsReply, error)
	PurchaseCheckout(ctx context.Context, in *PurchaseCheckoutRequest, opts ...grpc.CallOption) (*PurchaseCheckoutReply, error)
	QueryPurchaseOrder(ctx context.Context, in *QueryPurchaseOrderRequest, opts ...grpc.CallOption) (*QueryPurchaseOrderReply, error)
}

PortalClient is the client API for Portal service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewPortalClient

func NewPortalClient(cc grpc.ClientConnInterface) PortalClient

type PortalHTTPClient

type PortalHTTPClient interface {
	GetAvailablePaymentMethods(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *GetAvailablePaymentMethodsReply, err error)
	GetSubscription(ctx context.Context, req *GetSubscriptionRequest, opts ...http.CallOption) (rsp *GetSubscriptionReply, err error)
	GetSubscriptionCatalog(ctx context.Context, req *GetSubscriptionCatalogRequest, opts ...http.CallOption) (rsp *GetSubscriptionCatalogReply, err error)
	PrePurchaseOrder(ctx context.Context, req *PrePurchaseOrderRequest, opts ...http.CallOption) (rsp *PrePurchaseOrderReply, err error)
	Purchase(ctx context.Context, req *PurchaseRequest, opts ...http.CallOption) (rsp *PurchaseReply, err error)
	PurchaseCheckout(ctx context.Context, req *PurchaseCheckoutRequest, opts ...http.CallOption) (rsp *PurchaseCheckoutReply, err error)
	QueryPurchaseOrder(ctx context.Context, req *QueryPurchaseOrderRequest, opts ...http.CallOption) (rsp *QueryPurchaseOrderReply, err error)
}

func NewPortalHTTPClient

func NewPortalHTTPClient(client *http.Client) PortalHTTPClient

type PortalHTTPClientImpl

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

func (*PortalHTTPClientImpl) GetAvailablePaymentMethods

func (c *PortalHTTPClientImpl) GetAvailablePaymentMethods(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*GetAvailablePaymentMethodsReply, error)

func (*PortalHTTPClientImpl) GetSubscription

func (*PortalHTTPClientImpl) GetSubscriptionCatalog added in v1.0.9

func (*PortalHTTPClientImpl) PrePurchaseOrder

func (*PortalHTTPClientImpl) Purchase

func (*PortalHTTPClientImpl) PurchaseCheckout

func (*PortalHTTPClientImpl) QueryPurchaseOrder

type PortalServer

PortalServer is the server API for Portal service. All implementations must embed UnimplementedPortalServer for forward compatibility.

type PrePurchaseOrderReply

type PrePurchaseOrderReply struct {
	Price          int64  `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	Amount         int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Discount       int64  `protobuf:"varint,3,opt,name=discount,proto3" json:"discount,omitempty"`
	Coupon         string `protobuf:"bytes,4,opt,name=coupon,proto3" json:"coupon,omitempty"`
	CouponDiscount int64  `protobuf:"varint,5,opt,name=coupon_discount,json=couponDiscount,proto3" json:"coupon_discount,omitempty"`
	FeeAmount      int64  `protobuf:"varint,6,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*PrePurchaseOrderReply) Descriptor deprecated

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

Deprecated: Use PrePurchaseOrderReply.ProtoReflect.Descriptor instead.

func (*PrePurchaseOrderReply) GetAmount

func (x *PrePurchaseOrderReply) GetAmount() int64

func (*PrePurchaseOrderReply) GetCoupon

func (x *PrePurchaseOrderReply) GetCoupon() string

func (*PrePurchaseOrderReply) GetCouponDiscount

func (x *PrePurchaseOrderReply) GetCouponDiscount() int64

func (*PrePurchaseOrderReply) GetDiscount

func (x *PrePurchaseOrderReply) GetDiscount() int64

func (*PrePurchaseOrderReply) GetFeeAmount

func (x *PrePurchaseOrderReply) GetFeeAmount() int64

func (*PrePurchaseOrderReply) GetPrice

func (x *PrePurchaseOrderReply) GetPrice() int64

func (*PrePurchaseOrderReply) ProtoMessage

func (*PrePurchaseOrderReply) ProtoMessage()

func (*PrePurchaseOrderReply) ProtoReflect

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

func (*PrePurchaseOrderReply) Reset

func (x *PrePurchaseOrderReply) Reset()

func (*PrePurchaseOrderReply) String

func (x *PrePurchaseOrderReply) String() string

func (*PrePurchaseOrderReply) Validate

func (m *PrePurchaseOrderReply) Validate() error

Validate checks the field values on PrePurchaseOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PrePurchaseOrderReply) ValidateAll

func (m *PrePurchaseOrderReply) ValidateAll() error

ValidateAll checks the field values on PrePurchaseOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrePurchaseOrderReplyMultiError, or nil if none found.

type PrePurchaseOrderReplyMultiError

type PrePurchaseOrderReplyMultiError []error

PrePurchaseOrderReplyMultiError is an error wrapping multiple validation errors returned by PrePurchaseOrderReply.ValidateAll() if the designated constraints aren't met.

func (PrePurchaseOrderReplyMultiError) AllErrors

func (m PrePurchaseOrderReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PrePurchaseOrderReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PrePurchaseOrderReplyValidationError

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

PrePurchaseOrderReplyValidationError is the validation error returned by PrePurchaseOrderReply.Validate if the designated constraints aren't met.

func (PrePurchaseOrderReplyValidationError) Cause

Cause function returns cause value.

func (PrePurchaseOrderReplyValidationError) Error

Error satisfies the builtin error interface

func (PrePurchaseOrderReplyValidationError) ErrorName

ErrorName returns error name.

func (PrePurchaseOrderReplyValidationError) Field

Field function returns field value.

func (PrePurchaseOrderReplyValidationError) Key

Key function returns key value.

func (PrePurchaseOrderReplyValidationError) Reason

Reason function returns reason value.

type PrePurchaseOrderRequest

type PrePurchaseOrderRequest struct {
	Payment     int64   `protobuf:"varint,1,opt,name=payment,proto3" json:"payment,omitempty"`
	SubscribeId int64   `protobuf:"varint,2,opt,name=subscribe_id,json=subscribeId,proto3" json:"subscribe_id,omitempty"`
	Quantity    int64   `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Coupon      *string `protobuf:"bytes,4,opt,name=coupon,proto3,oneof" json:"coupon,omitempty"`
	// contains filtered or unexported fields
}

func (*PrePurchaseOrderRequest) Descriptor deprecated

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

Deprecated: Use PrePurchaseOrderRequest.ProtoReflect.Descriptor instead.

func (*PrePurchaseOrderRequest) GetCoupon

func (x *PrePurchaseOrderRequest) GetCoupon() string

func (*PrePurchaseOrderRequest) GetPayment

func (x *PrePurchaseOrderRequest) GetPayment() int64

func (*PrePurchaseOrderRequest) GetQuantity

func (x *PrePurchaseOrderRequest) GetQuantity() int64

func (*PrePurchaseOrderRequest) GetSubscribeId

func (x *PrePurchaseOrderRequest) GetSubscribeId() int64

func (*PrePurchaseOrderRequest) ProtoMessage

func (*PrePurchaseOrderRequest) ProtoMessage()

func (*PrePurchaseOrderRequest) ProtoReflect

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

func (*PrePurchaseOrderRequest) Reset

func (x *PrePurchaseOrderRequest) Reset()

func (*PrePurchaseOrderRequest) String

func (x *PrePurchaseOrderRequest) String() string

func (*PrePurchaseOrderRequest) Validate

func (m *PrePurchaseOrderRequest) Validate() error

Validate checks the field values on PrePurchaseOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PrePurchaseOrderRequest) ValidateAll

func (m *PrePurchaseOrderRequest) ValidateAll() error

ValidateAll checks the field values on PrePurchaseOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrePurchaseOrderRequestMultiError, or nil if none found.

type PrePurchaseOrderRequestMultiError

type PrePurchaseOrderRequestMultiError []error

PrePurchaseOrderRequestMultiError is an error wrapping multiple validation errors returned by PrePurchaseOrderRequest.ValidateAll() if the designated constraints aren't met.

func (PrePurchaseOrderRequestMultiError) AllErrors

func (m PrePurchaseOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PrePurchaseOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PrePurchaseOrderRequestValidationError

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

PrePurchaseOrderRequestValidationError is the validation error returned by PrePurchaseOrderRequest.Validate if the designated constraints aren't met.

func (PrePurchaseOrderRequestValidationError) Cause

Cause function returns cause value.

func (PrePurchaseOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (PrePurchaseOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (PrePurchaseOrderRequestValidationError) Field

Field function returns field value.

func (PrePurchaseOrderRequestValidationError) Key

Key function returns key value.

func (PrePurchaseOrderRequestValidationError) Reason

Reason function returns reason value.

type PurchaseCheckoutReply

type PurchaseCheckoutReply struct {
	Type        string         `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	CheckoutUrl *string        `protobuf:"bytes,2,opt,name=checkout_url,json=checkoutUrl,proto3,oneof" json:"checkout_url,omitempty"`
	Stripe      *StripePayment `protobuf:"bytes,3,opt,name=stripe,proto3,oneof" json:"stripe,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseCheckoutReply) Descriptor deprecated

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

Deprecated: Use PurchaseCheckoutReply.ProtoReflect.Descriptor instead.

func (*PurchaseCheckoutReply) GetCheckoutUrl

func (x *PurchaseCheckoutReply) GetCheckoutUrl() string

func (*PurchaseCheckoutReply) GetStripe

func (x *PurchaseCheckoutReply) GetStripe() *StripePayment

func (*PurchaseCheckoutReply) GetType

func (x *PurchaseCheckoutReply) GetType() string

func (*PurchaseCheckoutReply) ProtoMessage

func (*PurchaseCheckoutReply) ProtoMessage()

func (*PurchaseCheckoutReply) ProtoReflect

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

func (*PurchaseCheckoutReply) Reset

func (x *PurchaseCheckoutReply) Reset()

func (*PurchaseCheckoutReply) String

func (x *PurchaseCheckoutReply) String() string

func (*PurchaseCheckoutReply) Validate

func (m *PurchaseCheckoutReply) Validate() error

Validate checks the field values on PurchaseCheckoutReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PurchaseCheckoutReply) ValidateAll

func (m *PurchaseCheckoutReply) ValidateAll() error

ValidateAll checks the field values on PurchaseCheckoutReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PurchaseCheckoutReplyMultiError, or nil if none found.

type PurchaseCheckoutReplyMultiError

type PurchaseCheckoutReplyMultiError []error

PurchaseCheckoutReplyMultiError is an error wrapping multiple validation errors returned by PurchaseCheckoutReply.ValidateAll() if the designated constraints aren't met.

func (PurchaseCheckoutReplyMultiError) AllErrors

func (m PurchaseCheckoutReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PurchaseCheckoutReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PurchaseCheckoutReplyValidationError

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

PurchaseCheckoutReplyValidationError is the validation error returned by PurchaseCheckoutReply.Validate if the designated constraints aren't met.

func (PurchaseCheckoutReplyValidationError) Cause

Cause function returns cause value.

func (PurchaseCheckoutReplyValidationError) Error

Error satisfies the builtin error interface

func (PurchaseCheckoutReplyValidationError) ErrorName

ErrorName returns error name.

func (PurchaseCheckoutReplyValidationError) Field

Field function returns field value.

func (PurchaseCheckoutReplyValidationError) Key

Key function returns key value.

func (PurchaseCheckoutReplyValidationError) Reason

Reason function returns reason value.

type PurchaseCheckoutRequest

type PurchaseCheckoutRequest struct {
	OrderNo   string  `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	ReturnUrl *string `protobuf:"bytes,2,opt,name=return_url,json=returnUrl,proto3,oneof" json:"return_url,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseCheckoutRequest) Descriptor deprecated

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

Deprecated: Use PurchaseCheckoutRequest.ProtoReflect.Descriptor instead.

func (*PurchaseCheckoutRequest) GetOrderNo

func (x *PurchaseCheckoutRequest) GetOrderNo() string

func (*PurchaseCheckoutRequest) GetReturnUrl

func (x *PurchaseCheckoutRequest) GetReturnUrl() string

func (*PurchaseCheckoutRequest) ProtoMessage

func (*PurchaseCheckoutRequest) ProtoMessage()

func (*PurchaseCheckoutRequest) ProtoReflect

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

func (*PurchaseCheckoutRequest) Reset

func (x *PurchaseCheckoutRequest) Reset()

func (*PurchaseCheckoutRequest) String

func (x *PurchaseCheckoutRequest) String() string

func (*PurchaseCheckoutRequest) Validate

func (m *PurchaseCheckoutRequest) Validate() error

Validate checks the field values on PurchaseCheckoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PurchaseCheckoutRequest) ValidateAll

func (m *PurchaseCheckoutRequest) ValidateAll() error

ValidateAll checks the field values on PurchaseCheckoutRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PurchaseCheckoutRequestMultiError, or nil if none found.

type PurchaseCheckoutRequestMultiError

type PurchaseCheckoutRequestMultiError []error

PurchaseCheckoutRequestMultiError is an error wrapping multiple validation errors returned by PurchaseCheckoutRequest.ValidateAll() if the designated constraints aren't met.

func (PurchaseCheckoutRequestMultiError) AllErrors

func (m PurchaseCheckoutRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PurchaseCheckoutRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PurchaseCheckoutRequestValidationError

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

PurchaseCheckoutRequestValidationError is the validation error returned by PurchaseCheckoutRequest.Validate if the designated constraints aren't met.

func (PurchaseCheckoutRequestValidationError) Cause

Cause function returns cause value.

func (PurchaseCheckoutRequestValidationError) Error

Error satisfies the builtin error interface

func (PurchaseCheckoutRequestValidationError) ErrorName

ErrorName returns error name.

func (PurchaseCheckoutRequestValidationError) Field

Field function returns field value.

func (PurchaseCheckoutRequestValidationError) Key

Key function returns key value.

func (PurchaseCheckoutRequestValidationError) Reason

Reason function returns reason value.

type PurchaseReply

type PurchaseReply struct {
	OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseReply) Descriptor deprecated

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

Deprecated: Use PurchaseReply.ProtoReflect.Descriptor instead.

func (*PurchaseReply) GetOrderNo

func (x *PurchaseReply) GetOrderNo() string

func (*PurchaseReply) ProtoMessage

func (*PurchaseReply) ProtoMessage()

func (*PurchaseReply) ProtoReflect

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

func (*PurchaseReply) Reset

func (x *PurchaseReply) Reset()

func (*PurchaseReply) String

func (x *PurchaseReply) String() string

func (*PurchaseReply) Validate

func (m *PurchaseReply) Validate() error

Validate checks the field values on PurchaseReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PurchaseReply) ValidateAll

func (m *PurchaseReply) ValidateAll() error

ValidateAll checks the field values on PurchaseReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PurchaseReplyMultiError, or nil if none found.

type PurchaseReplyMultiError

type PurchaseReplyMultiError []error

PurchaseReplyMultiError is an error wrapping multiple validation errors returned by PurchaseReply.ValidateAll() if the designated constraints aren't met.

func (PurchaseReplyMultiError) AllErrors

func (m PurchaseReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PurchaseReplyMultiError) Error

func (m PurchaseReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PurchaseReplyValidationError

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

PurchaseReplyValidationError is the validation error returned by PurchaseReply.Validate if the designated constraints aren't met.

func (PurchaseReplyValidationError) Cause

Cause function returns cause value.

func (PurchaseReplyValidationError) Error

Error satisfies the builtin error interface

func (PurchaseReplyValidationError) ErrorName

func (e PurchaseReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PurchaseReplyValidationError) Field

Field function returns field value.

func (PurchaseReplyValidationError) Key

Key function returns key value.

func (PurchaseReplyValidationError) Reason

Reason function returns reason value.

type PurchaseRequest

type PurchaseRequest struct {
	AuthType       string  `protobuf:"bytes,1,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	Identifier     string  `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	Password       string  `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
	Payment        int64   `protobuf:"varint,4,opt,name=payment,proto3" json:"payment,omitempty"`
	SubscribeId    int64   `protobuf:"varint,5,opt,name=subscribe_id,json=subscribeId,proto3" json:"subscribe_id,omitempty"`
	Quantity       int64   `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Coupon         *string `protobuf:"bytes,7,opt,name=coupon,proto3,oneof" json:"coupon,omitempty"`
	InviteCode     *string `protobuf:"bytes,8,opt,name=invite_code,json=inviteCode,proto3,oneof" json:"invite_code,omitempty"`
	TurnstileToken *string `protobuf:"bytes,9,opt,name=turnstile_token,json=turnstileToken,proto3,oneof" json:"turnstile_token,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseRequest) Descriptor deprecated

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

Deprecated: Use PurchaseRequest.ProtoReflect.Descriptor instead.

func (*PurchaseRequest) GetAuthType

func (x *PurchaseRequest) GetAuthType() string

func (*PurchaseRequest) GetCoupon

func (x *PurchaseRequest) GetCoupon() string

func (*PurchaseRequest) GetIdentifier

func (x *PurchaseRequest) GetIdentifier() string

func (*PurchaseRequest) GetInviteCode

func (x *PurchaseRequest) GetInviteCode() string

func (*PurchaseRequest) GetPassword

func (x *PurchaseRequest) GetPassword() string

func (*PurchaseRequest) GetPayment

func (x *PurchaseRequest) GetPayment() int64

func (*PurchaseRequest) GetQuantity

func (x *PurchaseRequest) GetQuantity() int64

func (*PurchaseRequest) GetSubscribeId

func (x *PurchaseRequest) GetSubscribeId() int64

func (*PurchaseRequest) GetTurnstileToken

func (x *PurchaseRequest) GetTurnstileToken() string

func (*PurchaseRequest) ProtoMessage

func (*PurchaseRequest) ProtoMessage()

func (*PurchaseRequest) ProtoReflect

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

func (*PurchaseRequest) Reset

func (x *PurchaseRequest) Reset()

func (*PurchaseRequest) String

func (x *PurchaseRequest) String() string

func (*PurchaseRequest) Validate

func (m *PurchaseRequest) Validate() error

Validate checks the field values on PurchaseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PurchaseRequest) ValidateAll

func (m *PurchaseRequest) ValidateAll() error

ValidateAll checks the field values on PurchaseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PurchaseRequestMultiError, or nil if none found.

type PurchaseRequestMultiError

type PurchaseRequestMultiError []error

PurchaseRequestMultiError is an error wrapping multiple validation errors returned by PurchaseRequest.ValidateAll() if the designated constraints aren't met.

func (PurchaseRequestMultiError) AllErrors

func (m PurchaseRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PurchaseRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PurchaseRequestValidationError

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

PurchaseRequestValidationError is the validation error returned by PurchaseRequest.Validate if the designated constraints aren't met.

func (PurchaseRequestValidationError) Cause

Cause function returns cause value.

func (PurchaseRequestValidationError) Error

Error satisfies the builtin error interface

func (PurchaseRequestValidationError) ErrorName

func (e PurchaseRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PurchaseRequestValidationError) Field

Field function returns field value.

func (PurchaseRequestValidationError) Key

Key function returns key value.

func (PurchaseRequestValidationError) Reason

Reason function returns reason value.

type QueryPurchaseOrderReply

type QueryPurchaseOrderReply struct {
	OrderNo        string         `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	Subscribe      *SubscribeInfo `protobuf:"bytes,2,opt,name=subscribe,proto3" json:"subscribe,omitempty"`
	Quantity       int64          `protobuf:"varint,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Price          int64          `protobuf:"varint,4,opt,name=price,proto3" json:"price,omitempty"`
	Amount         int64          `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
	Discount       int64          `protobuf:"varint,6,opt,name=discount,proto3" json:"discount,omitempty"`
	Coupon         string         `protobuf:"bytes,7,opt,name=coupon,proto3" json:"coupon,omitempty"`
	CouponDiscount int64          `protobuf:"varint,8,opt,name=coupon_discount,json=couponDiscount,proto3" json:"coupon_discount,omitempty"`
	FeeAmount      int64          `protobuf:"varint,9,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	Payment        *PaymentMethod `protobuf:"bytes,10,opt,name=payment,proto3" json:"payment,omitempty"`
	Status         int32          `protobuf:"varint,11,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt      int64          `protobuf:"varint,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	Token          string         `protobuf:"bytes,13,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryPurchaseOrderReply) Descriptor deprecated

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

Deprecated: Use QueryPurchaseOrderReply.ProtoReflect.Descriptor instead.

func (*QueryPurchaseOrderReply) GetAmount

func (x *QueryPurchaseOrderReply) GetAmount() int64

func (*QueryPurchaseOrderReply) GetCoupon

func (x *QueryPurchaseOrderReply) GetCoupon() string

func (*QueryPurchaseOrderReply) GetCouponDiscount

func (x *QueryPurchaseOrderReply) GetCouponDiscount() int64

func (*QueryPurchaseOrderReply) GetCreatedAt

func (x *QueryPurchaseOrderReply) GetCreatedAt() int64

func (*QueryPurchaseOrderReply) GetDiscount

func (x *QueryPurchaseOrderReply) GetDiscount() int64

func (*QueryPurchaseOrderReply) GetFeeAmount

func (x *QueryPurchaseOrderReply) GetFeeAmount() int64

func (*QueryPurchaseOrderReply) GetOrderNo

func (x *QueryPurchaseOrderReply) GetOrderNo() string

func (*QueryPurchaseOrderReply) GetPayment

func (x *QueryPurchaseOrderReply) GetPayment() *PaymentMethod

func (*QueryPurchaseOrderReply) GetPrice

func (x *QueryPurchaseOrderReply) GetPrice() int64

func (*QueryPurchaseOrderReply) GetQuantity

func (x *QueryPurchaseOrderReply) GetQuantity() int64

func (*QueryPurchaseOrderReply) GetStatus

func (x *QueryPurchaseOrderReply) GetStatus() int32

func (*QueryPurchaseOrderReply) GetSubscribe

func (x *QueryPurchaseOrderReply) GetSubscribe() *SubscribeInfo

func (*QueryPurchaseOrderReply) GetToken

func (x *QueryPurchaseOrderReply) GetToken() string

func (*QueryPurchaseOrderReply) ProtoMessage

func (*QueryPurchaseOrderReply) ProtoMessage()

func (*QueryPurchaseOrderReply) ProtoReflect

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

func (*QueryPurchaseOrderReply) Reset

func (x *QueryPurchaseOrderReply) Reset()

func (*QueryPurchaseOrderReply) String

func (x *QueryPurchaseOrderReply) String() string

func (*QueryPurchaseOrderReply) Validate

func (m *QueryPurchaseOrderReply) Validate() error

Validate checks the field values on QueryPurchaseOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryPurchaseOrderReply) ValidateAll

func (m *QueryPurchaseOrderReply) ValidateAll() error

ValidateAll checks the field values on QueryPurchaseOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryPurchaseOrderReplyMultiError, or nil if none found.

type QueryPurchaseOrderReplyMultiError

type QueryPurchaseOrderReplyMultiError []error

QueryPurchaseOrderReplyMultiError is an error wrapping multiple validation errors returned by QueryPurchaseOrderReply.ValidateAll() if the designated constraints aren't met.

func (QueryPurchaseOrderReplyMultiError) AllErrors

func (m QueryPurchaseOrderReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryPurchaseOrderReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryPurchaseOrderReplyValidationError

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

QueryPurchaseOrderReplyValidationError is the validation error returned by QueryPurchaseOrderReply.Validate if the designated constraints aren't met.

func (QueryPurchaseOrderReplyValidationError) Cause

Cause function returns cause value.

func (QueryPurchaseOrderReplyValidationError) Error

Error satisfies the builtin error interface

func (QueryPurchaseOrderReplyValidationError) ErrorName

ErrorName returns error name.

func (QueryPurchaseOrderReplyValidationError) Field

Field function returns field value.

func (QueryPurchaseOrderReplyValidationError) Key

Key function returns key value.

func (QueryPurchaseOrderReplyValidationError) Reason

Reason function returns reason value.

type QueryPurchaseOrderRequest

type QueryPurchaseOrderRequest struct {
	AuthType   string `protobuf:"bytes,1,opt,name=auth_type,json=authType,proto3" json:"auth_type,omitempty"`
	Identifier string `protobuf:"bytes,2,opt,name=identifier,proto3" json:"identifier,omitempty"`
	OrderNo    string `protobuf:"bytes,3,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryPurchaseOrderRequest) Descriptor deprecated

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

Deprecated: Use QueryPurchaseOrderRequest.ProtoReflect.Descriptor instead.

func (*QueryPurchaseOrderRequest) GetAuthType

func (x *QueryPurchaseOrderRequest) GetAuthType() string

func (*QueryPurchaseOrderRequest) GetIdentifier

func (x *QueryPurchaseOrderRequest) GetIdentifier() string

func (*QueryPurchaseOrderRequest) GetOrderNo

func (x *QueryPurchaseOrderRequest) GetOrderNo() string

func (*QueryPurchaseOrderRequest) ProtoMessage

func (*QueryPurchaseOrderRequest) ProtoMessage()

func (*QueryPurchaseOrderRequest) ProtoReflect

func (*QueryPurchaseOrderRequest) Reset

func (x *QueryPurchaseOrderRequest) Reset()

func (*QueryPurchaseOrderRequest) String

func (x *QueryPurchaseOrderRequest) String() string

func (*QueryPurchaseOrderRequest) Validate

func (m *QueryPurchaseOrderRequest) Validate() error

Validate checks the field values on QueryPurchaseOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryPurchaseOrderRequest) ValidateAll

func (m *QueryPurchaseOrderRequest) ValidateAll() error

ValidateAll checks the field values on QueryPurchaseOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryPurchaseOrderRequestMultiError, or nil if none found.

type QueryPurchaseOrderRequestMultiError

type QueryPurchaseOrderRequestMultiError []error

QueryPurchaseOrderRequestMultiError is an error wrapping multiple validation errors returned by QueryPurchaseOrderRequest.ValidateAll() if the designated constraints aren't met.

func (QueryPurchaseOrderRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (QueryPurchaseOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryPurchaseOrderRequestValidationError

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

QueryPurchaseOrderRequestValidationError is the validation error returned by QueryPurchaseOrderRequest.Validate if the designated constraints aren't met.

func (QueryPurchaseOrderRequestValidationError) Cause

Cause function returns cause value.

func (QueryPurchaseOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryPurchaseOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryPurchaseOrderRequestValidationError) Field

Field function returns field value.

func (QueryPurchaseOrderRequestValidationError) Key

Key function returns key value.

func (QueryPurchaseOrderRequestValidationError) Reason

Reason function returns reason value.

type StripePayment

type StripePayment struct {
	PublishableKey string `protobuf:"bytes,1,opt,name=publishable_key,json=publishableKey,proto3" json:"publishable_key,omitempty"`
	ClientSecret   string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"`
	Method         string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"`
	// contains filtered or unexported fields
}

func (*StripePayment) Descriptor deprecated

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

Deprecated: Use StripePayment.ProtoReflect.Descriptor instead.

func (*StripePayment) GetClientSecret

func (x *StripePayment) GetClientSecret() string

func (*StripePayment) GetMethod

func (x *StripePayment) GetMethod() string

func (*StripePayment) GetPublishableKey

func (x *StripePayment) GetPublishableKey() string

func (*StripePayment) ProtoMessage

func (*StripePayment) ProtoMessage()

func (*StripePayment) ProtoReflect

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

func (*StripePayment) Reset

func (x *StripePayment) Reset()

func (*StripePayment) String

func (x *StripePayment) String() string

func (*StripePayment) Validate

func (m *StripePayment) Validate() error

Validate checks the field values on StripePayment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*StripePayment) ValidateAll

func (m *StripePayment) ValidateAll() error

ValidateAll checks the field values on StripePayment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in StripePaymentMultiError, or nil if none found.

type StripePaymentMultiError

type StripePaymentMultiError []error

StripePaymentMultiError is an error wrapping multiple validation errors returned by StripePayment.ValidateAll() if the designated constraints aren't met.

func (StripePaymentMultiError) AllErrors

func (m StripePaymentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StripePaymentMultiError) Error

func (m StripePaymentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type StripePaymentValidationError

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

StripePaymentValidationError is the validation error returned by StripePayment.Validate if the designated constraints aren't met.

func (StripePaymentValidationError) Cause

Cause function returns cause value.

func (StripePaymentValidationError) Error

Error satisfies the builtin error interface

func (StripePaymentValidationError) ErrorName

func (e StripePaymentValidationError) ErrorName() string

ErrorName returns error name.

func (StripePaymentValidationError) Field

Field function returns field value.

func (StripePaymentValidationError) Key

Key function returns key value.

func (StripePaymentValidationError) Reason

Reason function returns reason value.

type SubscribeCategory added in v1.0.9

type SubscribeCategory struct {
	Id          int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ParentId    int64                `protobuf:"varint,2,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"`
	Name        string               `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description string               `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Language    string               `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"`
	Show        bool                 `protobuf:"varint,6,opt,name=show,proto3" json:"show,omitempty"`
	Sort        int32                `protobuf:"varint,7,opt,name=sort,proto3" json:"sort,omitempty"`
	List        []*SubscribeInfo     `protobuf:"bytes,8,rep,name=list,proto3" json:"list,omitempty"`
	Children    []*SubscribeCategory `protobuf:"bytes,9,rep,name=children,proto3" json:"children,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeCategory) Descriptor deprecated added in v1.0.9

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

Deprecated: Use SubscribeCategory.ProtoReflect.Descriptor instead.

func (*SubscribeCategory) GetChildren added in v1.0.9

func (x *SubscribeCategory) GetChildren() []*SubscribeCategory

func (*SubscribeCategory) GetDescription added in v1.0.9

func (x *SubscribeCategory) GetDescription() string

func (*SubscribeCategory) GetId added in v1.0.9

func (x *SubscribeCategory) GetId() int64

func (*SubscribeCategory) GetLanguage added in v1.0.9

func (x *SubscribeCategory) GetLanguage() string

func (*SubscribeCategory) GetList added in v1.0.9

func (x *SubscribeCategory) GetList() []*SubscribeInfo

func (*SubscribeCategory) GetName added in v1.0.9

func (x *SubscribeCategory) GetName() string

func (*SubscribeCategory) GetParentId added in v1.0.9

func (x *SubscribeCategory) GetParentId() int64

func (*SubscribeCategory) GetShow added in v1.0.9

func (x *SubscribeCategory) GetShow() bool

func (*SubscribeCategory) GetSort added in v1.0.9

func (x *SubscribeCategory) GetSort() int32

func (*SubscribeCategory) ProtoMessage added in v1.0.9

func (*SubscribeCategory) ProtoMessage()

func (*SubscribeCategory) ProtoReflect added in v1.0.9

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

func (*SubscribeCategory) Reset added in v1.0.9

func (x *SubscribeCategory) Reset()

func (*SubscribeCategory) String added in v1.0.9

func (x *SubscribeCategory) String() string

func (*SubscribeCategory) Validate added in v1.0.9

func (m *SubscribeCategory) Validate() error

Validate checks the field values on SubscribeCategory with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubscribeCategory) ValidateAll added in v1.0.9

func (m *SubscribeCategory) ValidateAll() error

ValidateAll checks the field values on SubscribeCategory with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubscribeCategoryMultiError, or nil if none found.

type SubscribeCategoryMultiError added in v1.0.9

type SubscribeCategoryMultiError []error

SubscribeCategoryMultiError is an error wrapping multiple validation errors returned by SubscribeCategory.ValidateAll() if the designated constraints aren't met.

func (SubscribeCategoryMultiError) AllErrors added in v1.0.9

func (m SubscribeCategoryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubscribeCategoryMultiError) Error added in v1.0.9

Error returns a concatenation of all the error messages it wraps.

type SubscribeCategoryValidationError added in v1.0.9

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

SubscribeCategoryValidationError is the validation error returned by SubscribeCategory.Validate if the designated constraints aren't met.

func (SubscribeCategoryValidationError) Cause added in v1.0.9

Cause function returns cause value.

func (SubscribeCategoryValidationError) Error added in v1.0.9

Error satisfies the builtin error interface

func (SubscribeCategoryValidationError) ErrorName added in v1.0.9

ErrorName returns error name.

func (SubscribeCategoryValidationError) Field added in v1.0.9

Field function returns field value.

func (SubscribeCategoryValidationError) Key added in v1.0.9

Key function returns key value.

func (SubscribeCategoryValidationError) Reason added in v1.0.9

Reason function returns reason value.

type SubscribeDiscount

type SubscribeDiscount struct {
	Quantity int64 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Discount int64 `protobuf:"varint,2,opt,name=discount,proto3" json:"discount,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeDiscount) Descriptor deprecated

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

Deprecated: Use SubscribeDiscount.ProtoReflect.Descriptor instead.

func (*SubscribeDiscount) GetDiscount

func (x *SubscribeDiscount) GetDiscount() int64

func (*SubscribeDiscount) GetQuantity

func (x *SubscribeDiscount) GetQuantity() int64

func (*SubscribeDiscount) ProtoMessage

func (*SubscribeDiscount) ProtoMessage()

func (*SubscribeDiscount) ProtoReflect

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

func (*SubscribeDiscount) Reset

func (x *SubscribeDiscount) Reset()

func (*SubscribeDiscount) String

func (x *SubscribeDiscount) String() string

func (*SubscribeDiscount) Validate

func (m *SubscribeDiscount) Validate() error

Validate checks the field values on SubscribeDiscount with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubscribeDiscount) ValidateAll

func (m *SubscribeDiscount) ValidateAll() error

ValidateAll checks the field values on SubscribeDiscount with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubscribeDiscountMultiError, or nil if none found.

type SubscribeDiscountMultiError

type SubscribeDiscountMultiError []error

SubscribeDiscountMultiError is an error wrapping multiple validation errors returned by SubscribeDiscount.ValidateAll() if the designated constraints aren't met.

func (SubscribeDiscountMultiError) AllErrors

func (m SubscribeDiscountMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubscribeDiscountMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SubscribeDiscountValidationError

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

SubscribeDiscountValidationError is the validation error returned by SubscribeDiscount.Validate if the designated constraints aren't met.

func (SubscribeDiscountValidationError) Cause

Cause function returns cause value.

func (SubscribeDiscountValidationError) Error

Error satisfies the builtin error interface

func (SubscribeDiscountValidationError) ErrorName

ErrorName returns error name.

func (SubscribeDiscountValidationError) Field

Field function returns field value.

func (SubscribeDiscountValidationError) Key

Key function returns key value.

func (SubscribeDiscountValidationError) Reason

Reason function returns reason value.

type SubscribeInfo

type SubscribeInfo struct {
	Id                int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name              string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Language          string               `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	Description       string               `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	UnitPrice         int64                `protobuf:"varint,5,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"`
	UnitTime          string               `protobuf:"bytes,6,opt,name=unit_time,json=unitTime,proto3" json:"unit_time,omitempty"`
	Discount          []*SubscribeDiscount `protobuf:"bytes,7,rep,name=discount,proto3" json:"discount,omitempty"`
	Replacement       int64                `protobuf:"varint,8,opt,name=replacement,proto3" json:"replacement,omitempty"`
	Inventory         int32                `protobuf:"varint,9,opt,name=inventory,proto3" json:"inventory,omitempty"`
	Traffic           int64                `protobuf:"varint,10,opt,name=traffic,proto3" json:"traffic,omitempty"`
	SpeedLimit        int32                `protobuf:"varint,11,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"`
	DeviceLimit       int32                `protobuf:"varint,12,opt,name=device_limit,json=deviceLimit,proto3" json:"device_limit,omitempty"`
	Quota             int32                `protobuf:"varint,13,opt,name=quota,proto3" json:"quota,omitempty"`
	CategoryId        int64                `protobuf:"varint,29,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"`
	CategoryName      string               `protobuf:"bytes,30,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"`
	Nodes             []int64              `protobuf:"varint,14,rep,packed,name=nodes,proto3" json:"nodes,omitempty"`
	NodeTags          []string             `protobuf:"bytes,15,rep,name=node_tags,json=nodeTags,proto3" json:"node_tags,omitempty"`
	NodeGroupIds      []int64              `protobuf:"varint,16,rep,packed,name=node_group_ids,json=nodeGroupIds,proto3" json:"node_group_ids,omitempty"`
	NodeGroupId       int64                `protobuf:"varint,17,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"`
	TrafficLimit      []*TrafficLimit      `protobuf:"bytes,18,rep,name=traffic_limit,json=trafficLimit,proto3" json:"traffic_limit,omitempty"`
	Show              bool                 `protobuf:"varint,19,opt,name=show,proto3" json:"show,omitempty"`
	Sell              bool                 `protobuf:"varint,20,opt,name=sell,proto3" json:"sell,omitempty"`
	Sort              int32                `protobuf:"varint,21,opt,name=sort,proto3" json:"sort,omitempty"`
	DeductionRatio    int32                `protobuf:"varint,22,opt,name=deduction_ratio,json=deductionRatio,proto3" json:"deduction_ratio,omitempty"`
	AllowDeduction    bool                 `protobuf:"varint,23,opt,name=allow_deduction,json=allowDeduction,proto3" json:"allow_deduction,omitempty"`
	ResetCycle        int32                `protobuf:"varint,24,opt,name=reset_cycle,json=resetCycle,proto3" json:"reset_cycle,omitempty"`
	RenewalReset      bool                 `protobuf:"varint,25,opt,name=renewal_reset,json=renewalReset,proto3" json:"renewal_reset,omitempty"`
	ShowOriginalPrice bool                 `protobuf:"varint,26,opt,name=show_original_price,json=showOriginalPrice,proto3" json:"show_original_price,omitempty"`
	CreatedAt         int64                `protobuf:"varint,27,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt         int64                `protobuf:"varint,28,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeInfo) Descriptor deprecated

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

Deprecated: Use SubscribeInfo.ProtoReflect.Descriptor instead.

func (*SubscribeInfo) GetAllowDeduction

func (x *SubscribeInfo) GetAllowDeduction() bool

func (*SubscribeInfo) GetCategoryId added in v1.0.9

func (x *SubscribeInfo) GetCategoryId() int64

func (*SubscribeInfo) GetCategoryName added in v1.0.9

func (x *SubscribeInfo) GetCategoryName() string

func (*SubscribeInfo) GetCreatedAt

func (x *SubscribeInfo) GetCreatedAt() int64

func (*SubscribeInfo) GetDeductionRatio

func (x *SubscribeInfo) GetDeductionRatio() int32

func (*SubscribeInfo) GetDescription

func (x *SubscribeInfo) GetDescription() string

func (*SubscribeInfo) GetDeviceLimit

func (x *SubscribeInfo) GetDeviceLimit() int32

func (*SubscribeInfo) GetDiscount

func (x *SubscribeInfo) GetDiscount() []*SubscribeDiscount

func (*SubscribeInfo) GetId

func (x *SubscribeInfo) GetId() int64

func (*SubscribeInfo) GetInventory

func (x *SubscribeInfo) GetInventory() int32

func (*SubscribeInfo) GetLanguage

func (x *SubscribeInfo) GetLanguage() string

func (*SubscribeInfo) GetName

func (x *SubscribeInfo) GetName() string

func (*SubscribeInfo) GetNodeGroupId

func (x *SubscribeInfo) GetNodeGroupId() int64

func (*SubscribeInfo) GetNodeGroupIds

func (x *SubscribeInfo) GetNodeGroupIds() []int64

func (*SubscribeInfo) GetNodeTags

func (x *SubscribeInfo) GetNodeTags() []string

func (*SubscribeInfo) GetNodes

func (x *SubscribeInfo) GetNodes() []int64

func (*SubscribeInfo) GetQuota

func (x *SubscribeInfo) GetQuota() int32

func (*SubscribeInfo) GetRenewalReset

func (x *SubscribeInfo) GetRenewalReset() bool

func (*SubscribeInfo) GetReplacement

func (x *SubscribeInfo) GetReplacement() int64

func (*SubscribeInfo) GetResetCycle

func (x *SubscribeInfo) GetResetCycle() int32

func (*SubscribeInfo) GetSell

func (x *SubscribeInfo) GetSell() bool

func (*SubscribeInfo) GetShow

func (x *SubscribeInfo) GetShow() bool

func (*SubscribeInfo) GetShowOriginalPrice

func (x *SubscribeInfo) GetShowOriginalPrice() bool

func (*SubscribeInfo) GetSort

func (x *SubscribeInfo) GetSort() int32

func (*SubscribeInfo) GetSpeedLimit

func (x *SubscribeInfo) GetSpeedLimit() int32

func (*SubscribeInfo) GetTraffic

func (x *SubscribeInfo) GetTraffic() int64

func (*SubscribeInfo) GetTrafficLimit

func (x *SubscribeInfo) GetTrafficLimit() []*TrafficLimit

func (*SubscribeInfo) GetUnitPrice

func (x *SubscribeInfo) GetUnitPrice() int64

func (*SubscribeInfo) GetUnitTime

func (x *SubscribeInfo) GetUnitTime() string

func (*SubscribeInfo) GetUpdatedAt

func (x *SubscribeInfo) GetUpdatedAt() int64

func (*SubscribeInfo) ProtoMessage

func (*SubscribeInfo) ProtoMessage()

func (*SubscribeInfo) ProtoReflect

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

func (*SubscribeInfo) Reset

func (x *SubscribeInfo) Reset()

func (*SubscribeInfo) String

func (x *SubscribeInfo) String() string

func (*SubscribeInfo) Validate

func (m *SubscribeInfo) Validate() error

Validate checks the field values on SubscribeInfo with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubscribeInfo) ValidateAll

func (m *SubscribeInfo) ValidateAll() error

ValidateAll checks the field values on SubscribeInfo with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubscribeInfoMultiError, or nil if none found.

type SubscribeInfoMultiError

type SubscribeInfoMultiError []error

SubscribeInfoMultiError is an error wrapping multiple validation errors returned by SubscribeInfo.ValidateAll() if the designated constraints aren't met.

func (SubscribeInfoMultiError) AllErrors

func (m SubscribeInfoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubscribeInfoMultiError) Error

func (m SubscribeInfoMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SubscribeInfoValidationError

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

SubscribeInfoValidationError is the validation error returned by SubscribeInfo.Validate if the designated constraints aren't met.

func (SubscribeInfoValidationError) Cause

Cause function returns cause value.

func (SubscribeInfoValidationError) Error

Error satisfies the builtin error interface

func (SubscribeInfoValidationError) ErrorName

func (e SubscribeInfoValidationError) ErrorName() string

ErrorName returns error name.

func (SubscribeInfoValidationError) Field

Field function returns field value.

func (SubscribeInfoValidationError) Key

Key function returns key value.

func (SubscribeInfoValidationError) Reason

Reason function returns reason value.

type TrafficLimit

type TrafficLimit struct {
	StatType     string `protobuf:"bytes,1,opt,name=stat_type,json=statType,proto3" json:"stat_type,omitempty"`
	StatValue    int64  `protobuf:"varint,2,opt,name=stat_value,json=statValue,proto3" json:"stat_value,omitempty"`
	TrafficUsage int64  `protobuf:"varint,3,opt,name=traffic_usage,json=trafficUsage,proto3" json:"traffic_usage,omitempty"`
	SpeedLimit   int32  `protobuf:"varint,4,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"`
	// contains filtered or unexported fields
}

func (*TrafficLimit) Descriptor deprecated

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

Deprecated: Use TrafficLimit.ProtoReflect.Descriptor instead.

func (*TrafficLimit) GetSpeedLimit

func (x *TrafficLimit) GetSpeedLimit() int32

func (*TrafficLimit) GetStatType

func (x *TrafficLimit) GetStatType() string

func (*TrafficLimit) GetStatValue

func (x *TrafficLimit) GetStatValue() int64

func (*TrafficLimit) GetTrafficUsage

func (x *TrafficLimit) GetTrafficUsage() int64

func (*TrafficLimit) ProtoMessage

func (*TrafficLimit) ProtoMessage()

func (*TrafficLimit) ProtoReflect

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

func (*TrafficLimit) Reset

func (x *TrafficLimit) Reset()

func (*TrafficLimit) String

func (x *TrafficLimit) String() string

func (*TrafficLimit) Validate

func (m *TrafficLimit) Validate() error

Validate checks the field values on TrafficLimit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TrafficLimit) ValidateAll

func (m *TrafficLimit) ValidateAll() error

ValidateAll checks the field values on TrafficLimit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TrafficLimitMultiError, or nil if none found.

type TrafficLimitMultiError

type TrafficLimitMultiError []error

TrafficLimitMultiError is an error wrapping multiple validation errors returned by TrafficLimit.ValidateAll() if the designated constraints aren't met.

func (TrafficLimitMultiError) AllErrors

func (m TrafficLimitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TrafficLimitMultiError) Error

func (m TrafficLimitMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TrafficLimitValidationError

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

TrafficLimitValidationError is the validation error returned by TrafficLimit.Validate if the designated constraints aren't met.

func (TrafficLimitValidationError) Cause

Cause function returns cause value.

func (TrafficLimitValidationError) Error

Error satisfies the builtin error interface

func (TrafficLimitValidationError) ErrorName

func (e TrafficLimitValidationError) ErrorName() string

ErrorName returns error name.

func (TrafficLimitValidationError) Field

Field function returns field value.

func (TrafficLimitValidationError) Key

Key function returns key value.

func (TrafficLimitValidationError) Reason

Reason function returns reason value.

type UnimplementedPortalServer

type UnimplementedPortalServer struct{}

UnimplementedPortalServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPortalServer) GetAvailablePaymentMethods

func (UnimplementedPortalServer) GetSubscription

func (UnimplementedPortalServer) GetSubscriptionCatalog added in v1.0.9

func (UnimplementedPortalServer) PrePurchaseOrder

func (UnimplementedPortalServer) Purchase

func (UnimplementedPortalServer) PurchaseCheckout

func (UnimplementedPortalServer) QueryPurchaseOrder

type UnsafePortalServer

type UnsafePortalServer interface {
	// contains filtered or unexported methods
}

UnsafePortalServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PortalServer will result in compilation errors.

Jump to

Keyboard shortcuts

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