Documentation ¶
Index ¶
- Variables
- func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)
- func RegisterProductServiceServer(s grpc.ServiceRegistrar, srv ProductServiceServer)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type ApproveProductRequest
- func (*ApproveProductRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveProductRequest) GetComment() string
- func (x *ApproveProductRequest) GetId() string
- func (x *ApproveProductRequest) GetProductStatus() string
- func (x *ApproveProductRequest) GetVisibility() string
- func (*ApproveProductRequest) ProtoMessage()
- func (x *ApproveProductRequest) ProtoReflect() protoreflect.Message
- func (x *ApproveProductRequest) Reset()
- func (x *ApproveProductRequest) String() string
- type ApproveProductResponse
- func (*ApproveProductResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ApproveProductResponse) GetComment() string
- func (x *ApproveProductResponse) GetId() string
- func (x *ApproveProductResponse) GetStatus() string
- func (x *ApproveProductResponse) GetVisibility() string
- func (*ApproveProductResponse) ProtoMessage()
- func (x *ApproveProductResponse) ProtoReflect() protoreflect.Message
- func (x *ApproveProductResponse) Reset()
- func (x *ApproveProductResponse) String() string
- type AutomaticPaymentMethods
- func (*AutomaticPaymentMethods) Descriptor() ([]byte, []int)deprecated
- func (x *AutomaticPaymentMethods) GetAllowRedirects() AutomaticPaymentMethods_AllowRedirects
- func (x *AutomaticPaymentMethods) GetEnabled() bool
- func (*AutomaticPaymentMethods) ProtoMessage()
- func (x *AutomaticPaymentMethods) ProtoReflect() protoreflect.Message
- func (x *AutomaticPaymentMethods) Reset()
- func (x *AutomaticPaymentMethods) String() string
- type AutomaticPaymentMethods_AllowRedirects
- func (AutomaticPaymentMethods_AllowRedirects) Descriptor() protoreflect.EnumDescriptor
- func (x AutomaticPaymentMethods_AllowRedirects) Enum() *AutomaticPaymentMethods_AllowRedirects
- func (AutomaticPaymentMethods_AllowRedirects) EnumDescriptor() ([]byte, []int)deprecated
- func (x AutomaticPaymentMethods_AllowRedirects) Number() protoreflect.EnumNumber
- func (x AutomaticPaymentMethods_AllowRedirects) String() string
- func (AutomaticPaymentMethods_AllowRedirects) Type() protoreflect.EnumType
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCreatedAt() *timestamppb.Timestamp
- func (x *Category) GetDeletedAt() *timestamppb.Timestamp
- func (x *Category) GetDescription() string
- func (x *Category) GetId() string
- func (x *Category) GetIsAdmins() string
- func (x *Category) GetName() string
- func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CreateCategoryRequest
- func (*CreateCategoryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCategoryRequest) GetDescription() string
- func (x *CreateCategoryRequest) GetId() string
- func (x *CreateCategoryRequest) GetName() string
- func (*CreateCategoryRequest) ProtoMessage()
- func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCategoryRequest) Reset()
- func (x *CreateCategoryRequest) String() string
- type CustomerProduct
- func (*CustomerProduct) Descriptor() ([]byte, []int)deprecated
- func (x *CustomerProduct) GetCustomerId() string
- func (x *CustomerProduct) GetHasBoughtProduct() string
- func (x *CustomerProduct) GetId() string
- func (x *CustomerProduct) GetOrderId() string
- func (x *CustomerProduct) GetProductId() string
- func (x *CustomerProduct) GetProofLink() string
- func (*CustomerProduct) ProtoMessage()
- func (x *CustomerProduct) ProtoReflect() protoreflect.Message
- func (x *CustomerProduct) Reset()
- func (x *CustomerProduct) String() string
- type DeleteCategoryResponse
- func (*DeleteCategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCategoryResponse) GetStatus() bool
- func (*DeleteCategoryResponse) ProtoMessage()
- func (x *DeleteCategoryResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteCategoryResponse) Reset()
- func (x *DeleteCategoryResponse) String() string
- type DeleteUserResponse
- func (*DeleteUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUserResponse) GetStatus() bool
- func (*DeleteUserResponse) ProtoMessage()
- func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteUserResponse) Reset()
- func (x *DeleteUserResponse) String() string
- type GetAllUsersRequest
- func (*GetAllUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllUsersRequest) GetPagination() *Pagination
- func (x *GetAllUsersRequest) GetSearch() string
- func (x *GetAllUsersRequest) GetSorting() *Sorting
- func (*GetAllUsersRequest) ProtoMessage()
- func (x *GetAllUsersRequest) ProtoReflect() protoreflect.Message
- func (x *GetAllUsersRequest) Reset()
- func (x *GetAllUsersRequest) String() string
- type GetCategoryFilter
- func (*GetCategoryFilter) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoryFilter) GetId() string
- func (x *GetCategoryFilter) GetPagination() *Pagination
- func (x *GetCategoryFilter) GetSearch() string
- func (x *GetCategoryFilter) GetSorting() *Sorting
- func (*GetCategoryFilter) ProtoMessage()
- func (x *GetCategoryFilter) ProtoReflect() protoreflect.Message
- func (x *GetCategoryFilter) Reset()
- func (x *GetCategoryFilter) String() string
- type GetCategoryResponse
- func (*GetCategoryResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCategoryResponse) GetCategories() []*Category
- func (*GetCategoryResponse) ProtoMessage()
- func (x *GetCategoryResponse) ProtoReflect() protoreflect.Message
- func (x *GetCategoryResponse) Reset()
- func (x *GetCategoryResponse) String() string
- type GetOrderFilter
- func (*GetOrderFilter) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrderFilter) GetCustomerId() string
- func (x *GetOrderFilter) GetOrderId() string
- func (*GetOrderFilter) ProtoMessage()
- func (x *GetOrderFilter) ProtoReflect() protoreflect.Message
- func (x *GetOrderFilter) Reset()
- func (x *GetOrderFilter) String() string
- type GetOrderResponse
- type GetOrdersRequest
- func (*GetOrdersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetOrdersRequest) GetCustomerId() string
- func (x *GetOrdersRequest) GetPagination() *Pagination
- func (x *GetOrdersRequest) GetSearch() string
- func (x *GetOrdersRequest) GetSorting() *Sorting
- func (*GetOrdersRequest) ProtoMessage()
- func (x *GetOrdersRequest) ProtoReflect() protoreflect.Message
- func (x *GetOrdersRequest) Reset()
- func (x *GetOrdersRequest) String() string
- type GetProductFilter
- func (*GetProductFilter) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductFilter) GetCategories() []*Category
- func (x *GetProductFilter) GetExclusion() string
- func (x *GetProductFilter) GetHighestPrice() int32
- func (x *GetProductFilter) GetId() string
- func (x *GetProductFilter) GetInvisEarly() string
- func (x *GetProductFilter) GetInvisLate() string
- func (x *GetProductFilter) GetIsAdminVerified() string
- func (x *GetProductFilter) GetLowestPrice() int32
- func (x *GetProductFilter) GetPagination() *Pagination
- func (x *GetProductFilter) GetSearch() string
- func (x *GetProductFilter) GetSellerId() string
- func (x *GetProductFilter) GetSorting() *Sorting
- func (x *GetProductFilter) GetVisEarly() string
- func (x *GetProductFilter) GetVisLate() string
- func (x *GetProductFilter) GetVisibility() string
- func (*GetProductFilter) ProtoMessage()
- func (x *GetProductFilter) ProtoReflect() protoreflect.Message
- func (x *GetProductFilter) Reset()
- func (x *GetProductFilter) String() string
- type GetProductResponse
- func (*GetProductResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProductResponse) GetProducts() []*Product
- func (*GetProductResponse) ProtoMessage()
- func (x *GetProductResponse) ProtoReflect() protoreflect.Message
- func (x *GetProductResponse) Reset()
- func (x *GetProductResponse) String() string
- type GetUsersFilter
- func (*GetUsersFilter) Descriptor() ([]byte, []int)deprecated
- func (x *GetUsersFilter) GetId() string
- func (x *GetUsersFilter) GetPagination() *Pagination
- func (x *GetUsersFilter) GetSearch() string
- func (x *GetUsersFilter) GetSorting() *Sorting
- func (*GetUsersFilter) ProtoMessage()
- func (x *GetUsersFilter) ProtoReflect() protoreflect.Message
- func (x *GetUsersFilter) Reset()
- func (x *GetUsersFilter) String() string
- type GetUsersResponse
- type NextAction
- func (*NextAction) Descriptor() ([]byte, []int)deprecated
- func (x *NextAction) GetRedirectToUrl() *NextAction_RedirectToURL
- func (x *NextAction) GetType() NextAction_Type
- func (x *NextAction) GetUseStripeSdk() *NextAction_UseStripeSDK
- func (*NextAction) ProtoMessage()
- func (x *NextAction) ProtoReflect() protoreflect.Message
- func (x *NextAction) Reset()
- func (x *NextAction) String() string
- type NextAction_RedirectToURL
- func (*NextAction_RedirectToURL) Descriptor() ([]byte, []int)deprecated
- func (x *NextAction_RedirectToURL) GetReturnUrl() string
- func (x *NextAction_RedirectToURL) GetUrl() string
- func (*NextAction_RedirectToURL) ProtoMessage()
- func (x *NextAction_RedirectToURL) ProtoReflect() protoreflect.Message
- func (x *NextAction_RedirectToURL) Reset()
- func (x *NextAction_RedirectToURL) String() string
- type NextAction_Type
- func (NextAction_Type) Descriptor() protoreflect.EnumDescriptor
- func (x NextAction_Type) Enum() *NextAction_Type
- func (NextAction_Type) EnumDescriptor() ([]byte, []int)deprecated
- func (x NextAction_Type) Number() protoreflect.EnumNumber
- func (x NextAction_Type) String() string
- func (NextAction_Type) Type() protoreflect.EnumType
- type NextAction_UseStripeSDK
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetAdminFee() int32
- func (x *Order) GetCreatedAt() *timestamppb.Timestamp
- func (x *Order) GetCustomerId() string
- func (x *Order) GetDeletedAt() *timestamppb.Timestamp
- func (x *Order) GetGrandTotal() int32
- func (x *Order) GetId() string
- func (x *Order) GetPaymentLink() string
- func (x *Order) GetProductIds() []string
- func (x *Order) GetProductsDetails() []*ProductDetails
- func (x *Order) GetSettlementStatus() string
- func (x *Order) GetTotalPayment() int32
- func (x *Order) GetUpdatedAt() *timestamppb.Timestamp
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- type OrderQueryFilter
- func (*OrderQueryFilter) Descriptor() ([]byte, []int)deprecated
- func (x *OrderQueryFilter) GetEarliest() string
- func (x *OrderQueryFilter) GetExclusion() string
- func (x *OrderQueryFilter) GetLatest() string
- func (x *OrderQueryFilter) GetPagination() *Pagination
- func (x *OrderQueryFilter) GetSearch() string
- func (x *OrderQueryFilter) GetSettlementStatus() string
- func (x *OrderQueryFilter) GetSorting() *Sorting
- func (*OrderQueryFilter) ProtoMessage()
- func (x *OrderQueryFilter) ProtoReflect() protoreflect.Message
- func (x *OrderQueryFilter) Reset()
- func (x *OrderQueryFilter) String() string
- type OrderServiceClient
- type OrderServiceServer
- type Pagination
- func (*Pagination) Descriptor() ([]byte, []int)deprecated
- func (x *Pagination) GetLimit() int32
- func (x *Pagination) GetOffset() int32
- func (x *Pagination) GetPage() int32
- func (*Pagination) ProtoMessage()
- func (x *Pagination) ProtoReflect() protoreflect.Message
- func (x *Pagination) Reset()
- func (x *Pagination) String() string
- type PaymentError
- func (*PaymentError) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentError) GetCharge() string
- func (x *PaymentError) GetCode() string
- func (x *PaymentError) GetDeclineCode() string
- func (x *PaymentError) GetDocUrl() string
- func (x *PaymentError) GetMessage() string
- func (x *PaymentError) GetParam() string
- func (x *PaymentError) GetPaymentMethod() *PaymentMethod
- func (*PaymentError) ProtoMessage()
- func (x *PaymentError) ProtoReflect() protoreflect.Message
- func (x *PaymentError) Reset()
- func (x *PaymentError) String() string
- type PaymentIntent
- func (*PaymentIntent) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentIntent) GetAmount() int64
- func (x *PaymentIntent) GetAutomaticPaymentMethods() *AutomaticPaymentMethods
- func (x *PaymentIntent) GetClientSecret() string
- func (x *PaymentIntent) GetCurrency() string
- func (x *PaymentIntent) GetCustomer() string
- func (x *PaymentIntent) GetDescription() string
- func (x *PaymentIntent) GetId() string
- func (x *PaymentIntent) GetLatestCharge() string
- func (x *PaymentIntent) GetMetadata() map[string]string
- func (x *PaymentIntent) GetNextAction() *NextAction
- func (x *PaymentIntent) GetPaymentMethod() string
- func (x *PaymentIntent) GetReceiptEmail() string
- func (x *PaymentIntent) GetSetupFutureUsage() PaymentIntent_SetupFutureUsage
- func (x *PaymentIntent) GetStatus() string
- func (*PaymentIntent) ProtoMessage()
- func (x *PaymentIntent) ProtoReflect() protoreflect.Message
- func (x *PaymentIntent) Reset()
- func (x *PaymentIntent) String() string
- type PaymentIntent_SetupFutureUsage
- func (PaymentIntent_SetupFutureUsage) Descriptor() protoreflect.EnumDescriptor
- func (x PaymentIntent_SetupFutureUsage) Enum() *PaymentIntent_SetupFutureUsage
- func (PaymentIntent_SetupFutureUsage) EnumDescriptor() ([]byte, []int)deprecated
- func (x PaymentIntent_SetupFutureUsage) Number() protoreflect.EnumNumber
- func (x PaymentIntent_SetupFutureUsage) String() string
- func (PaymentIntent_SetupFutureUsage) Type() protoreflect.EnumType
- type PaymentMethod
- func (*PaymentMethod) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentMethod) GetId() string
- func (x *PaymentMethod) GetObject() string
- func (*PaymentMethod) ProtoMessage()
- func (x *PaymentMethod) ProtoReflect() protoreflect.Message
- func (x *PaymentMethod) Reset()
- func (x *PaymentMethod) String() string
- type Product
- func (*Product) Descriptor() ([]byte, []int)deprecated
- func (x *Product) GetAdminComment() string
- func (x *Product) GetCategoryId() string
- func (x *Product) GetCategoryName() string
- func (x *Product) GetCertUrl() string
- func (x *Product) GetCreatedAt() *timestamppb.Timestamp
- func (x *Product) GetDeletedAt() *timestamppb.Timestamp
- func (x *Product) GetDescription() string
- func (x *Product) GetExclusion() string
- func (x *Product) GetFlatPrice() int32
- func (x *Product) GetId() string
- func (x *Product) GetInsiderKey() string
- func (x *Product) GetInvisTime() *timestamppb.Timestamp
- func (x *Product) GetIsAdminVerified() string
- func (x *Product) GetIsReviewable() bool
- func (x *Product) GetName() string
- func (x *Product) GetPercentagePrice() int32
- func (x *Product) GetPictUrl() string
- func (x *Product) GetPrice() int32
- func (x *Product) GetSellerId() string
- func (x *Product) GetSellerName() string
- func (x *Product) GetTotalDuration() int32
- func (x *Product) GetUpdatedAt() *timestamppb.Timestamp
- func (x *Product) GetVariantIds() []string
- func (x *Product) GetVariantSettings() []*VariantSettings
- func (x *Product) GetVisTime() *timestamppb.Timestamp
- func (x *Product) GetVisibility() string
- func (x *Product) GetVoucher() string
- func (x *Product) GetVoucherDiscount() int32
- func (*Product) ProtoMessage()
- func (x *Product) ProtoReflect() protoreflect.Message
- func (x *Product) Reset()
- func (x *Product) String() string
- type ProductDetails
- func (*ProductDetails) Descriptor() ([]byte, []int)deprecated
- func (x *ProductDetails) GetCategory() string
- func (x *ProductDetails) GetId() string
- func (x *ProductDetails) GetName() string
- func (x *ProductDetails) GetPrice() int32
- func (x *ProductDetails) GetSellerName() string
- func (x *ProductDetails) GetVoucher() string
- func (x *ProductDetails) GetVoucherDiscount() int32
- func (*ProductDetails) ProtoMessage()
- func (x *ProductDetails) ProtoReflect() protoreflect.Message
- func (x *ProductDetails) Reset()
- func (x *ProductDetails) String() string
- type ProductQueryFilter
- func (*ProductQueryFilter) Descriptor() ([]byte, []int)deprecated
- func (x *ProductQueryFilter) GetCategories() []string
- func (x *ProductQueryFilter) GetEarliest() string
- func (x *ProductQueryFilter) GetExclusion() string
- func (x *ProductQueryFilter) GetIsAdminVerified() string
- func (x *ProductQueryFilter) GetLatest() string
- func (x *ProductQueryFilter) GetLowerPrice() string
- func (x *ProductQueryFilter) GetPagination() *Pagination
- func (x *ProductQueryFilter) GetSearch() string
- func (x *ProductQueryFilter) GetSorting() *Sorting
- func (x *ProductQueryFilter) GetUpperPrice() string
- func (x *ProductQueryFilter) GetVisibility() string
- func (*ProductQueryFilter) ProtoMessage()
- func (x *ProductQueryFilter) ProtoReflect() protoreflect.Message
- func (x *ProductQueryFilter) Reset()
- func (x *ProductQueryFilter) String() string
- type ProductServiceClient
- type ProductServiceServer
- type Seller
- func (*Seller) Descriptor() ([]byte, []int)deprecated
- func (x *Seller) GetAddress() string
- func (x *Seller) GetBankAcc() string
- func (x *Seller) GetBankAccNum() string
- func (x *Seller) GetCity() string
- func (x *Seller) GetCreatedAt() *timestamppb.Timestamp
- func (x *Seller) GetDeletedAt() *timestamppb.Timestamp
- func (x *Seller) GetEmail() string
- func (x *Seller) GetId() string
- func (x *Seller) GetName() string
- func (x *Seller) GetPassword() string
- func (x *Seller) GetPhoneNumber() string
- func (x *Seller) GetProvince() string
- func (x *Seller) GetUpdatedAt() *timestamppb.Timestamp
- func (*Seller) ProtoMessage()
- func (x *Seller) ProtoReflect() protoreflect.Message
- func (x *Seller) Reset()
- func (x *Seller) String() string
- type SendOrderRequest
- type SendOrderResponse
- func (*SendOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SendOrderResponse) GetPaymentLink() string
- func (*SendOrderResponse) ProtoMessage()
- func (x *SendOrderResponse) ProtoReflect() protoreflect.Message
- func (x *SendOrderResponse) Reset()
- func (x *SendOrderResponse) String() string
- type Shipping
- func (*Shipping) Descriptor() ([]byte, []int)deprecated
- func (x *Shipping) GetAddress() string
- func (x *Shipping) GetCarrier() string
- func (x *Shipping) GetName() string
- func (x *Shipping) GetPhone() string
- func (x *Shipping) GetTrackingNumber() string
- func (*Shipping) ProtoMessage()
- func (x *Shipping) ProtoReflect() protoreflect.Message
- func (x *Shipping) Reset()
- func (x *Shipping) String() string
- type Sorting
- type StripePaymentIntentResponse
- func (*StripePaymentIntentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StripePaymentIntentResponse) GetAmount() int64
- func (x *StripePaymentIntentResponse) GetAmountCapturable() int64
- func (x *StripePaymentIntentResponse) GetAmountReceived() int64
- func (x *StripePaymentIntentResponse) GetClientSecret() string
- func (x *StripePaymentIntentResponse) GetCreated() *timestamppb.Timestamp
- func (x *StripePaymentIntentResponse) GetCurrency() string
- func (x *StripePaymentIntentResponse) GetDescription() string
- func (x *StripePaymentIntentResponse) GetId() string
- func (x *StripePaymentIntentResponse) GetObject() string
- func (x *StripePaymentIntentResponse) GetPaymentMethod() string
- func (x *StripePaymentIntentResponse) GetReceiptEmail() string
- func (x *StripePaymentIntentResponse) GetReceiptUrl() string
- func (x *StripePaymentIntentResponse) GetStatus() string
- func (x *StripePaymentIntentResponse) GetUpdated() *timestamppb.Timestamp
- func (*StripePaymentIntentResponse) ProtoMessage()
- func (x *StripePaymentIntentResponse) ProtoReflect() protoreflect.Message
- func (x *StripePaymentIntentResponse) Reset()
- func (x *StripePaymentIntentResponse) String() string
- type UnimplementedOrderServiceServer
- func (UnimplementedOrderServiceServer) CreateOrder(context.Context, *Order) (*Order, error)
- func (UnimplementedOrderServiceServer) GetOrder(context.Context, *GetOrderFilter) (*GetOrderResponse, error)
- func (UnimplementedOrderServiceServer) GetOrders(context.Context, *GetOrdersRequest) (*GetOrderResponse, error)
- func (UnimplementedOrderServiceServer) SendOrder(context.Context, *SendOrderRequest) (*SendOrderResponse, error)
- func (UnimplementedOrderServiceServer) UpdateOrder(context.Context, *Order) (*Order, error)
- type UnimplementedProductServiceServer
- func (UnimplementedProductServiceServer) ApproveProduct(context.Context, *ApproveProductRequest) (*ApproveProductResponse, error)
- func (UnimplementedProductServiceServer) CreateCategory(context.Context, *Category) (*Category, error)
- func (UnimplementedProductServiceServer) CreateProduct(context.Context, *Product) (*Product, error)
- func (UnimplementedProductServiceServer) DeleteCategory(context.Context, *GetCategoryFilter) (*DeleteCategoryResponse, error)
- func (UnimplementedProductServiceServer) GetCategories(context.Context, *GetCategoryFilter) (*GetCategoryResponse, error)
- func (UnimplementedProductServiceServer) GetCategoryByID(context.Context, *GetCategoryFilter) (*GetCategoryResponse, error)
- func (UnimplementedProductServiceServer) GetProductByID(context.Context, *GetProductFilter) (*GetProductResponse, error)
- func (UnimplementedProductServiceServer) GetProducts(context.Context, *GetProductFilter) (*GetProductResponse, error)
- func (UnimplementedProductServiceServer) UpdateCategory(context.Context, *Category) (*Category, error)
- func (UnimplementedProductServiceServer) UpdateProduct(context.Context, *Product) (*Product, error)
- type UnimplementedUserServiceServer
- func (UnimplementedUserServiceServer) CreateUser(context.Context, *User) (*User, error)
- func (UnimplementedUserServiceServer) DeleteUser(context.Context, *GetUsersFilter) (*DeleteUserResponse, error)
- func (UnimplementedUserServiceServer) GetAllUsers(context.Context, *GetAllUsersRequest) (*GetUsersResponse, error)
- func (UnimplementedUserServiceServer) GetUserByID(context.Context, *GetUsersFilter) (*GetUsersResponse, error)
- func (UnimplementedUserServiceServer) UpdateUser(context.Context, *User) (*User, error)
- type UnsafeOrderServiceServer
- type UnsafeProductServiceServer
- type UnsafeUserServiceServer
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- func (x *User) GetAddress() string
- func (x *User) GetCity() string
- func (x *User) GetCreatedAt() *timestamppb.Timestamp
- func (x *User) GetDeletedAt() *timestamppb.Timestamp
- func (x *User) GetEmail() string
- func (x *User) GetId() string
- func (x *User) GetInstitution() string
- func (x *User) GetName() string
- func (x *User) GetPassword() string
- func (x *User) GetPhoneNumber() string
- func (x *User) GetProvince() string
- func (x *User) GetSex() string
- func (x *User) GetUpdatedAt() *timestamppb.Timestamp
- func (x *User) GetUserType() string
- func (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
- type VariantSettings
- func (*VariantSettings) Descriptor() ([]byte, []int)deprecated
- func (x *VariantSettings) GetDuration() int32
- func (x *VariantSettings) GetId() string
- func (x *VariantSettings) GetName() string
- func (x *VariantSettings) GetTotalVariants() int32
- func (*VariantSettings) ProtoMessage()
- func (x *VariantSettings) ProtoReflect() protoreflect.Message
- func (x *VariantSettings) Reset()
- func (x *VariantSettings) String() string
Constants ¶
This section is empty.
Variables ¶
var ( PaymentIntent_SetupFutureUsage_name = map[int32]string{ 0: "SETUP_FUTURE_USAGE_UNSPECIFIED", 1: "SETUP_FUTURE_USAGE_OFF_SESSION", } PaymentIntent_SetupFutureUsage_value = map[string]int32{ "SETUP_FUTURE_USAGE_UNSPECIFIED": 0, "SETUP_FUTURE_USAGE_OFF_SESSION": 1, } )
Enum value maps for PaymentIntent_SetupFutureUsage.
var ( AutomaticPaymentMethods_AllowRedirects_name = map[int32]string{ 0: "ALLOW_REDIRECTS_UNSPECIFIED", 1: "ALLOW_REDIRECTS_ALWAYS", 2: "ALLOW_REDIRECTS_NEVER", } AutomaticPaymentMethods_AllowRedirects_value = map[string]int32{ "ALLOW_REDIRECTS_UNSPECIFIED": 0, "ALLOW_REDIRECTS_ALWAYS": 1, "ALLOW_REDIRECTS_NEVER": 2, } )
Enum value maps for AutomaticPaymentMethods_AllowRedirects.
var ( NextAction_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "TYPE_REDIRECT_TO_URL", 2: "TYPE_USE_STRIPE_SDK", } NextAction_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "TYPE_REDIRECT_TO_URL": 1, "TYPE_USE_STRIPE_SDK": 2, } )
Enum value maps for NextAction_Type.
var File_api_proto protoreflect.FileDescriptor
var OrderService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "OrderService", HandlerType: (*OrderServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateOrder", Handler: _OrderService_CreateOrder_Handler, }, { MethodName: "GetOrder", Handler: _OrderService_GetOrder_Handler, }, { MethodName: "GetOrders", Handler: _OrderService_GetOrders_Handler, }, { MethodName: "UpdateOrder", Handler: _OrderService_UpdateOrder_Handler, }, { MethodName: "SendOrder", Handler: _OrderService_SendOrder_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
OrderService_ServiceDesc is the grpc.ServiceDesc for OrderService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ProductService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "ProductService", HandlerType: (*ProductServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateProduct", Handler: _ProductService_CreateProduct_Handler, }, { MethodName: "GetProductByID", Handler: _ProductService_GetProductByID_Handler, }, { MethodName: "GetProducts", Handler: _ProductService_GetProducts_Handler, }, { MethodName: "UpdateProduct", Handler: _ProductService_UpdateProduct_Handler, }, { MethodName: "ApproveProduct", Handler: _ProductService_ApproveProduct_Handler, }, { MethodName: "CreateCategory", Handler: _ProductService_CreateCategory_Handler, }, { MethodName: "GetCategoryByID", Handler: _ProductService_GetCategoryByID_Handler, }, { MethodName: "GetCategories", Handler: _ProductService_GetCategories_Handler, }, { MethodName: "UpdateCategory", Handler: _ProductService_UpdateCategory_Handler, }, { MethodName: "DeleteCategory", Handler: _ProductService_DeleteCategory_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
ProductService_ServiceDesc is the grpc.ServiceDesc for ProductService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateUser", Handler: _UserService_CreateUser_Handler, }, { MethodName: "GetAllUsers", Handler: _UserService_GetAllUsers_Handler, }, { MethodName: "GetUserByID", Handler: _UserService_GetUserByID_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, { MethodName: "DeleteUser", Handler: _UserService_DeleteUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterOrderServiceServer ¶
func RegisterOrderServiceServer(s grpc.ServiceRegistrar, srv OrderServiceServer)
func RegisterProductServiceServer ¶
func RegisterProductServiceServer(s grpc.ServiceRegistrar, srv ProductServiceServer)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type ApproveProductRequest ¶
type ApproveProductRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` ProductStatus string `protobuf:"bytes,2,opt,name=product_status,json=productStatus,proto3" json:"product_status,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` Visibility string `protobuf:"bytes,4,opt,name=visibility,proto3" json:"visibility,omitempty"` // contains filtered or unexported fields }
func (*ApproveProductRequest) Descriptor
deprecated
func (*ApproveProductRequest) Descriptor() ([]byte, []int)
Deprecated: Use ApproveProductRequest.ProtoReflect.Descriptor instead.
func (*ApproveProductRequest) GetComment ¶
func (x *ApproveProductRequest) GetComment() string
func (*ApproveProductRequest) GetId ¶
func (x *ApproveProductRequest) GetId() string
func (*ApproveProductRequest) GetProductStatus ¶
func (x *ApproveProductRequest) GetProductStatus() string
func (*ApproveProductRequest) GetVisibility ¶
func (x *ApproveProductRequest) GetVisibility() string
func (*ApproveProductRequest) ProtoMessage ¶
func (*ApproveProductRequest) ProtoMessage()
func (*ApproveProductRequest) ProtoReflect ¶
func (x *ApproveProductRequest) ProtoReflect() protoreflect.Message
func (*ApproveProductRequest) Reset ¶
func (x *ApproveProductRequest) Reset()
func (*ApproveProductRequest) String ¶
func (x *ApproveProductRequest) String() string
type ApproveProductResponse ¶
type ApproveProductResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` Visibility string `protobuf:"bytes,4,opt,name=visibility,proto3" json:"visibility,omitempty"` // contains filtered or unexported fields }
func (*ApproveProductResponse) Descriptor
deprecated
func (*ApproveProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use ApproveProductResponse.ProtoReflect.Descriptor instead.
func (*ApproveProductResponse) GetComment ¶
func (x *ApproveProductResponse) GetComment() string
func (*ApproveProductResponse) GetId ¶
func (x *ApproveProductResponse) GetId() string
func (*ApproveProductResponse) GetStatus ¶
func (x *ApproveProductResponse) GetStatus() string
func (*ApproveProductResponse) GetVisibility ¶
func (x *ApproveProductResponse) GetVisibility() string
func (*ApproveProductResponse) ProtoMessage ¶
func (*ApproveProductResponse) ProtoMessage()
func (*ApproveProductResponse) ProtoReflect ¶
func (x *ApproveProductResponse) ProtoReflect() protoreflect.Message
func (*ApproveProductResponse) Reset ¶
func (x *ApproveProductResponse) Reset()
func (*ApproveProductResponse) String ¶
func (x *ApproveProductResponse) String() string
type AutomaticPaymentMethods ¶
type AutomaticPaymentMethods struct { AllowRedirects AutomaticPaymentMethods_AllowRedirects `` /* 148-byte string literal not displayed */ Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"` // contains filtered or unexported fields }
func (*AutomaticPaymentMethods) Descriptor
deprecated
func (*AutomaticPaymentMethods) Descriptor() ([]byte, []int)
Deprecated: Use AutomaticPaymentMethods.ProtoReflect.Descriptor instead.
func (*AutomaticPaymentMethods) GetAllowRedirects ¶
func (x *AutomaticPaymentMethods) GetAllowRedirects() AutomaticPaymentMethods_AllowRedirects
func (*AutomaticPaymentMethods) GetEnabled ¶
func (x *AutomaticPaymentMethods) GetEnabled() bool
func (*AutomaticPaymentMethods) ProtoMessage ¶
func (*AutomaticPaymentMethods) ProtoMessage()
func (*AutomaticPaymentMethods) ProtoReflect ¶
func (x *AutomaticPaymentMethods) ProtoReflect() protoreflect.Message
func (*AutomaticPaymentMethods) Reset ¶
func (x *AutomaticPaymentMethods) Reset()
func (*AutomaticPaymentMethods) String ¶
func (x *AutomaticPaymentMethods) String() string
type AutomaticPaymentMethods_AllowRedirects ¶
type AutomaticPaymentMethods_AllowRedirects int32
const ( AutomaticPaymentMethods_ALLOW_REDIRECTS_UNSPECIFIED AutomaticPaymentMethods_AllowRedirects = 0 AutomaticPaymentMethods_ALLOW_REDIRECTS_ALWAYS AutomaticPaymentMethods_AllowRedirects = 1 AutomaticPaymentMethods_ALLOW_REDIRECTS_NEVER AutomaticPaymentMethods_AllowRedirects = 2 )
func (AutomaticPaymentMethods_AllowRedirects) Descriptor ¶
func (AutomaticPaymentMethods_AllowRedirects) Descriptor() protoreflect.EnumDescriptor
func (AutomaticPaymentMethods_AllowRedirects) EnumDescriptor
deprecated
func (AutomaticPaymentMethods_AllowRedirects) EnumDescriptor() ([]byte, []int)
Deprecated: Use AutomaticPaymentMethods_AllowRedirects.Descriptor instead.
func (AutomaticPaymentMethods_AllowRedirects) Number ¶
func (x AutomaticPaymentMethods_AllowRedirects) Number() protoreflect.EnumNumber
func (AutomaticPaymentMethods_AllowRedirects) String ¶
func (x AutomaticPaymentMethods_AllowRedirects) String() string
func (AutomaticPaymentMethods_AllowRedirects) Type ¶
func (AutomaticPaymentMethods_AllowRedirects) Type() protoreflect.EnumType
type Category ¶
type Category struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` IsAdmins string `protobuf:"bytes,4,opt,name=is_admins,json=isAdmins,proto3" json:"is_admins,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetCreatedAt ¶
func (x *Category) GetCreatedAt() *timestamppb.Timestamp
func (*Category) GetDeletedAt ¶
func (x *Category) GetDeletedAt() *timestamppb.Timestamp
func (*Category) GetDescription ¶
func (*Category) GetIsAdmins ¶
func (*Category) GetUpdatedAt ¶
func (x *Category) GetUpdatedAt() *timestamppb.Timestamp
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CreateCategoryRequest ¶
type CreateCategoryRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*CreateCategoryRequest) Descriptor
deprecated
func (*CreateCategoryRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCategoryRequest.ProtoReflect.Descriptor instead.
func (*CreateCategoryRequest) GetDescription ¶
func (x *CreateCategoryRequest) GetDescription() string
func (*CreateCategoryRequest) GetId ¶
func (x *CreateCategoryRequest) GetId() string
func (*CreateCategoryRequest) GetName ¶
func (x *CreateCategoryRequest) GetName() string
func (*CreateCategoryRequest) ProtoMessage ¶
func (*CreateCategoryRequest) ProtoMessage()
func (*CreateCategoryRequest) ProtoReflect ¶
func (x *CreateCategoryRequest) ProtoReflect() protoreflect.Message
func (*CreateCategoryRequest) Reset ¶
func (x *CreateCategoryRequest) Reset()
func (*CreateCategoryRequest) String ¶
func (x *CreateCategoryRequest) String() string
type CustomerProduct ¶
type CustomerProduct struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ProductId string `protobuf:"bytes,3,opt,name=product_id,json=productId,proto3" json:"product_id,omitempty"` OrderId string `protobuf:"bytes,4,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` HasBoughtProduct string `protobuf:"bytes,5,opt,name=has_bought_product,json=hasBoughtProduct,proto3" json:"has_bought_product,omitempty"` ProofLink string `protobuf:"bytes,6,opt,name=proof_link,json=proofLink,proto3" json:"proof_link,omitempty"` // contains filtered or unexported fields }
func (*CustomerProduct) Descriptor
deprecated
func (*CustomerProduct) Descriptor() ([]byte, []int)
Deprecated: Use CustomerProduct.ProtoReflect.Descriptor instead.
func (*CustomerProduct) GetCustomerId ¶
func (x *CustomerProduct) GetCustomerId() string
func (*CustomerProduct) GetHasBoughtProduct ¶
func (x *CustomerProduct) GetHasBoughtProduct() string
func (*CustomerProduct) GetId ¶
func (x *CustomerProduct) GetId() string
func (*CustomerProduct) GetOrderId ¶
func (x *CustomerProduct) GetOrderId() string
func (*CustomerProduct) GetProductId ¶
func (x *CustomerProduct) GetProductId() string
func (*CustomerProduct) GetProofLink ¶
func (x *CustomerProduct) GetProofLink() string
func (*CustomerProduct) ProtoMessage ¶
func (*CustomerProduct) ProtoMessage()
func (*CustomerProduct) ProtoReflect ¶
func (x *CustomerProduct) ProtoReflect() protoreflect.Message
func (*CustomerProduct) Reset ¶
func (x *CustomerProduct) Reset()
func (*CustomerProduct) String ¶
func (x *CustomerProduct) String() string
type DeleteCategoryResponse ¶
type DeleteCategoryResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*DeleteCategoryResponse) Descriptor
deprecated
func (*DeleteCategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCategoryResponse.ProtoReflect.Descriptor instead.
func (*DeleteCategoryResponse) GetStatus ¶
func (x *DeleteCategoryResponse) GetStatus() bool
func (*DeleteCategoryResponse) ProtoMessage ¶
func (*DeleteCategoryResponse) ProtoMessage()
func (*DeleteCategoryResponse) ProtoReflect ¶
func (x *DeleteCategoryResponse) ProtoReflect() protoreflect.Message
func (*DeleteCategoryResponse) Reset ¶
func (x *DeleteCategoryResponse) Reset()
func (*DeleteCategoryResponse) String ¶
func (x *DeleteCategoryResponse) String() string
type DeleteUserResponse ¶
type DeleteUserResponse struct { Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*DeleteUserResponse) Descriptor
deprecated
func (*DeleteUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUserResponse.ProtoReflect.Descriptor instead.
func (*DeleteUserResponse) GetStatus ¶
func (x *DeleteUserResponse) GetStatus() bool
func (*DeleteUserResponse) ProtoMessage ¶
func (*DeleteUserResponse) ProtoMessage()
func (*DeleteUserResponse) ProtoReflect ¶
func (x *DeleteUserResponse) ProtoReflect() protoreflect.Message
func (*DeleteUserResponse) Reset ¶
func (x *DeleteUserResponse) Reset()
func (*DeleteUserResponse) String ¶
func (x *DeleteUserResponse) String() string
type GetAllUsersRequest ¶
type GetAllUsersRequest struct { Pagination *Pagination `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *Sorting `protobuf:"bytes,2,opt,name=sorting,proto3" json:"sorting,omitempty"` Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*GetAllUsersRequest) Descriptor
deprecated
func (*GetAllUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllUsersRequest.ProtoReflect.Descriptor instead.
func (*GetAllUsersRequest) GetPagination ¶
func (x *GetAllUsersRequest) GetPagination() *Pagination
func (*GetAllUsersRequest) GetSearch ¶
func (x *GetAllUsersRequest) GetSearch() string
func (*GetAllUsersRequest) GetSorting ¶
func (x *GetAllUsersRequest) GetSorting() *Sorting
func (*GetAllUsersRequest) ProtoMessage ¶
func (*GetAllUsersRequest) ProtoMessage()
func (*GetAllUsersRequest) ProtoReflect ¶
func (x *GetAllUsersRequest) ProtoReflect() protoreflect.Message
func (*GetAllUsersRequest) Reset ¶
func (x *GetAllUsersRequest) Reset()
func (*GetAllUsersRequest) String ¶
func (x *GetAllUsersRequest) String() string
type GetCategoryFilter ¶
type GetCategoryFilter struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *Sorting `protobuf:"bytes,3,opt,name=sorting,proto3" json:"sorting,omitempty"` Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryFilter) Descriptor
deprecated
func (*GetCategoryFilter) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryFilter.ProtoReflect.Descriptor instead.
func (*GetCategoryFilter) GetId ¶
func (x *GetCategoryFilter) GetId() string
func (*GetCategoryFilter) GetPagination ¶
func (x *GetCategoryFilter) GetPagination() *Pagination
func (*GetCategoryFilter) GetSearch ¶
func (x *GetCategoryFilter) GetSearch() string
func (*GetCategoryFilter) GetSorting ¶
func (x *GetCategoryFilter) GetSorting() *Sorting
func (*GetCategoryFilter) ProtoMessage ¶
func (*GetCategoryFilter) ProtoMessage()
func (*GetCategoryFilter) ProtoReflect ¶
func (x *GetCategoryFilter) ProtoReflect() protoreflect.Message
func (*GetCategoryFilter) Reset ¶
func (x *GetCategoryFilter) Reset()
func (*GetCategoryFilter) String ¶
func (x *GetCategoryFilter) String() string
type GetCategoryResponse ¶
type GetCategoryResponse struct { Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*GetCategoryResponse) Descriptor
deprecated
func (*GetCategoryResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCategoryResponse.ProtoReflect.Descriptor instead.
func (*GetCategoryResponse) GetCategories ¶
func (x *GetCategoryResponse) GetCategories() []*Category
func (*GetCategoryResponse) ProtoMessage ¶
func (*GetCategoryResponse) ProtoMessage()
func (*GetCategoryResponse) ProtoReflect ¶
func (x *GetCategoryResponse) ProtoReflect() protoreflect.Message
func (*GetCategoryResponse) Reset ¶
func (x *GetCategoryResponse) Reset()
func (*GetCategoryResponse) String ¶
func (x *GetCategoryResponse) String() string
type GetOrderFilter ¶
type GetOrderFilter struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // contains filtered or unexported fields }
func (*GetOrderFilter) Descriptor
deprecated
func (*GetOrderFilter) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderFilter.ProtoReflect.Descriptor instead.
func (*GetOrderFilter) GetCustomerId ¶
func (x *GetOrderFilter) GetCustomerId() string
func (*GetOrderFilter) GetOrderId ¶
func (x *GetOrderFilter) GetOrderId() string
func (*GetOrderFilter) ProtoMessage ¶
func (*GetOrderFilter) ProtoMessage()
func (*GetOrderFilter) ProtoReflect ¶
func (x *GetOrderFilter) ProtoReflect() protoreflect.Message
func (*GetOrderFilter) Reset ¶
func (x *GetOrderFilter) Reset()
func (*GetOrderFilter) String ¶
func (x *GetOrderFilter) String() string
type GetOrderResponse ¶
type GetOrderResponse struct { Orders []*Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders,omitempty"` // contains filtered or unexported fields }
func (*GetOrderResponse) Descriptor
deprecated
func (*GetOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetOrderResponse.ProtoReflect.Descriptor instead.
func (*GetOrderResponse) GetOrders ¶
func (x *GetOrderResponse) GetOrders() []*Order
func (*GetOrderResponse) ProtoMessage ¶
func (*GetOrderResponse) ProtoMessage()
func (*GetOrderResponse) ProtoReflect ¶
func (x *GetOrderResponse) ProtoReflect() protoreflect.Message
func (*GetOrderResponse) Reset ¶
func (x *GetOrderResponse) Reset()
func (*GetOrderResponse) String ¶
func (x *GetOrderResponse) String() string
type GetOrdersRequest ¶
type GetOrdersRequest struct { CustomerId string `protobuf:"bytes,1,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *Sorting `protobuf:"bytes,3,opt,name=sorting,proto3" json:"sorting,omitempty"` Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*GetOrdersRequest) Descriptor
deprecated
func (*GetOrdersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetOrdersRequest.ProtoReflect.Descriptor instead.
func (*GetOrdersRequest) GetCustomerId ¶
func (x *GetOrdersRequest) GetCustomerId() string
func (*GetOrdersRequest) GetPagination ¶
func (x *GetOrdersRequest) GetPagination() *Pagination
func (*GetOrdersRequest) GetSearch ¶
func (x *GetOrdersRequest) GetSearch() string
func (*GetOrdersRequest) GetSorting ¶
func (x *GetOrdersRequest) GetSorting() *Sorting
func (*GetOrdersRequest) ProtoMessage ¶
func (*GetOrdersRequest) ProtoMessage()
func (*GetOrdersRequest) ProtoReflect ¶
func (x *GetOrdersRequest) ProtoReflect() protoreflect.Message
func (*GetOrdersRequest) Reset ¶
func (x *GetOrdersRequest) Reset()
func (*GetOrdersRequest) String ¶
func (x *GetOrdersRequest) String() string
type GetProductFilter ¶
type GetProductFilter struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SellerId string `protobuf:"bytes,2,opt,name=seller_id,json=sellerId,proto3" json:"seller_id,omitempty"` VisEarly string `protobuf:"bytes,3,opt,name=vis_early,json=visEarly,proto3" json:"vis_early,omitempty"` VisLate string `protobuf:"bytes,4,opt,name=vis_late,json=visLate,proto3" json:"vis_late,omitempty"` InvisEarly string `protobuf:"bytes,5,opt,name=invis_early,json=invisEarly,proto3" json:"invis_early,omitempty"` InvisLate string `protobuf:"bytes,6,opt,name=invis_late,json=invisLate,proto3" json:"invis_late,omitempty"` Visibility string `protobuf:"bytes,7,opt,name=visibility,proto3" json:"visibility,omitempty"` Exclusion string `protobuf:"bytes,8,opt,name=exclusion,proto3" json:"exclusion,omitempty"` IsAdminVerified string `protobuf:"bytes,9,opt,name=is_admin_verified,json=isAdminVerified,proto3" json:"is_admin_verified,omitempty"` LowestPrice int32 `protobuf:"varint,10,opt,name=lowest_price,json=lowestPrice,proto3" json:"lowest_price,omitempty"` HighestPrice int32 `protobuf:"varint,11,opt,name=highest_price,json=highestPrice,proto3" json:"highest_price,omitempty"` Categories []*Category `protobuf:"bytes,12,rep,name=categories,proto3" json:"categories,omitempty"` Pagination *Pagination `protobuf:"bytes,13,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *Sorting `protobuf:"bytes,14,opt,name=sorting,proto3" json:"sorting,omitempty"` Search string `protobuf:"bytes,15,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*GetProductFilter) Descriptor
deprecated
func (*GetProductFilter) Descriptor() ([]byte, []int)
Deprecated: Use GetProductFilter.ProtoReflect.Descriptor instead.
func (*GetProductFilter) GetCategories ¶
func (x *GetProductFilter) GetCategories() []*Category
func (*GetProductFilter) GetExclusion ¶
func (x *GetProductFilter) GetExclusion() string
func (*GetProductFilter) GetHighestPrice ¶
func (x *GetProductFilter) GetHighestPrice() int32
func (*GetProductFilter) GetId ¶
func (x *GetProductFilter) GetId() string
func (*GetProductFilter) GetInvisEarly ¶
func (x *GetProductFilter) GetInvisEarly() string
func (*GetProductFilter) GetInvisLate ¶
func (x *GetProductFilter) GetInvisLate() string
func (*GetProductFilter) GetIsAdminVerified ¶
func (x *GetProductFilter) GetIsAdminVerified() string
func (*GetProductFilter) GetLowestPrice ¶
func (x *GetProductFilter) GetLowestPrice() int32
func (*GetProductFilter) GetPagination ¶
func (x *GetProductFilter) GetPagination() *Pagination
func (*GetProductFilter) GetSearch ¶
func (x *GetProductFilter) GetSearch() string
func (*GetProductFilter) GetSellerId ¶
func (x *GetProductFilter) GetSellerId() string
func (*GetProductFilter) GetSorting ¶
func (x *GetProductFilter) GetSorting() *Sorting
func (*GetProductFilter) GetVisEarly ¶
func (x *GetProductFilter) GetVisEarly() string
func (*GetProductFilter) GetVisLate ¶
func (x *GetProductFilter) GetVisLate() string
func (*GetProductFilter) GetVisibility ¶
func (x *GetProductFilter) GetVisibility() string
func (*GetProductFilter) ProtoMessage ¶
func (*GetProductFilter) ProtoMessage()
func (*GetProductFilter) ProtoReflect ¶
func (x *GetProductFilter) ProtoReflect() protoreflect.Message
func (*GetProductFilter) Reset ¶
func (x *GetProductFilter) Reset()
func (*GetProductFilter) String ¶
func (x *GetProductFilter) String() string
type GetProductResponse ¶
type GetProductResponse struct { Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"` // contains filtered or unexported fields }
func (*GetProductResponse) Descriptor
deprecated
func (*GetProductResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProductResponse.ProtoReflect.Descriptor instead.
func (*GetProductResponse) GetProducts ¶
func (x *GetProductResponse) GetProducts() []*Product
func (*GetProductResponse) ProtoMessage ¶
func (*GetProductResponse) ProtoMessage()
func (*GetProductResponse) ProtoReflect ¶
func (x *GetProductResponse) ProtoReflect() protoreflect.Message
func (*GetProductResponse) Reset ¶
func (x *GetProductResponse) Reset()
func (*GetProductResponse) String ¶
func (x *GetProductResponse) String() string
type GetUsersFilter ¶
type GetUsersFilter struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Pagination *Pagination `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *Sorting `protobuf:"bytes,3,opt,name=sorting,proto3" json:"sorting,omitempty"` Search string `protobuf:"bytes,4,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*GetUsersFilter) Descriptor
deprecated
func (*GetUsersFilter) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersFilter.ProtoReflect.Descriptor instead.
func (*GetUsersFilter) GetId ¶
func (x *GetUsersFilter) GetId() string
func (*GetUsersFilter) GetPagination ¶
func (x *GetUsersFilter) GetPagination() *Pagination
func (*GetUsersFilter) GetSearch ¶
func (x *GetUsersFilter) GetSearch() string
func (*GetUsersFilter) GetSorting ¶
func (x *GetUsersFilter) GetSorting() *Sorting
func (*GetUsersFilter) ProtoMessage ¶
func (*GetUsersFilter) ProtoMessage()
func (*GetUsersFilter) ProtoReflect ¶
func (x *GetUsersFilter) ProtoReflect() protoreflect.Message
func (*GetUsersFilter) Reset ¶
func (x *GetUsersFilter) Reset()
func (*GetUsersFilter) String ¶
func (x *GetUsersFilter) String() string
type GetUsersResponse ¶
type GetUsersResponse struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetUsersResponse) Descriptor
deprecated
func (*GetUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.
func (*GetUsersResponse) GetUsers ¶
func (x *GetUsersResponse) GetUsers() []*User
func (*GetUsersResponse) ProtoMessage ¶
func (*GetUsersResponse) ProtoMessage()
func (*GetUsersResponse) ProtoReflect ¶
func (x *GetUsersResponse) ProtoReflect() protoreflect.Message
func (*GetUsersResponse) Reset ¶
func (x *GetUsersResponse) Reset()
func (*GetUsersResponse) String ¶
func (x *GetUsersResponse) String() string
type NextAction ¶
type NextAction struct { Type NextAction_Type `protobuf:"varint,1,opt,name=type,proto3,enum=NextAction_Type" json:"type,omitempty"` RedirectToUrl *NextAction_RedirectToURL `protobuf:"bytes,2,opt,name=redirect_to_url,json=redirectToUrl,proto3" json:"redirect_to_url,omitempty"` UseStripeSdk *NextAction_UseStripeSDK `protobuf:"bytes,3,opt,name=use_stripe_sdk,json=useStripeSdk,proto3" json:"use_stripe_sdk,omitempty"` // contains filtered or unexported fields }
func (*NextAction) Descriptor
deprecated
func (*NextAction) Descriptor() ([]byte, []int)
Deprecated: Use NextAction.ProtoReflect.Descriptor instead.
func (*NextAction) GetRedirectToUrl ¶
func (x *NextAction) GetRedirectToUrl() *NextAction_RedirectToURL
func (*NextAction) GetType ¶
func (x *NextAction) GetType() NextAction_Type
func (*NextAction) GetUseStripeSdk ¶
func (x *NextAction) GetUseStripeSdk() *NextAction_UseStripeSDK
func (*NextAction) ProtoMessage ¶
func (*NextAction) ProtoMessage()
func (*NextAction) ProtoReflect ¶
func (x *NextAction) ProtoReflect() protoreflect.Message
func (*NextAction) Reset ¶
func (x *NextAction) Reset()
func (*NextAction) String ¶
func (x *NextAction) String() string
type NextAction_RedirectToURL ¶
type NextAction_RedirectToURL struct { ReturnUrl string `protobuf:"bytes,1,opt,name=return_url,json=returnUrl,proto3" json:"return_url,omitempty"` Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*NextAction_RedirectToURL) Descriptor
deprecated
func (*NextAction_RedirectToURL) Descriptor() ([]byte, []int)
Deprecated: Use NextAction_RedirectToURL.ProtoReflect.Descriptor instead.
func (*NextAction_RedirectToURL) GetReturnUrl ¶
func (x *NextAction_RedirectToURL) GetReturnUrl() string
func (*NextAction_RedirectToURL) GetUrl ¶
func (x *NextAction_RedirectToURL) GetUrl() string
func (*NextAction_RedirectToURL) ProtoMessage ¶
func (*NextAction_RedirectToURL) ProtoMessage()
func (*NextAction_RedirectToURL) ProtoReflect ¶
func (x *NextAction_RedirectToURL) ProtoReflect() protoreflect.Message
func (*NextAction_RedirectToURL) Reset ¶
func (x *NextAction_RedirectToURL) Reset()
func (*NextAction_RedirectToURL) String ¶
func (x *NextAction_RedirectToURL) String() string
type NextAction_Type ¶
type NextAction_Type int32
const ( NextAction_TYPE_UNSPECIFIED NextAction_Type = 0 NextAction_TYPE_REDIRECT_TO_URL NextAction_Type = 1 NextAction_TYPE_USE_STRIPE_SDK NextAction_Type = 2 )
func (NextAction_Type) Descriptor ¶
func (NextAction_Type) Descriptor() protoreflect.EnumDescriptor
func (NextAction_Type) Enum ¶
func (x NextAction_Type) Enum() *NextAction_Type
func (NextAction_Type) EnumDescriptor
deprecated
func (NextAction_Type) EnumDescriptor() ([]byte, []int)
Deprecated: Use NextAction_Type.Descriptor instead.
func (NextAction_Type) Number ¶
func (x NextAction_Type) Number() protoreflect.EnumNumber
func (NextAction_Type) String ¶
func (x NextAction_Type) String() string
func (NextAction_Type) Type ¶
func (NextAction_Type) Type() protoreflect.EnumType
type NextAction_UseStripeSDK ¶
type NextAction_UseStripeSDK struct {
// contains filtered or unexported fields
}
func (*NextAction_UseStripeSDK) Descriptor
deprecated
func (*NextAction_UseStripeSDK) Descriptor() ([]byte, []int)
Deprecated: Use NextAction_UseStripeSDK.ProtoReflect.Descriptor instead.
func (*NextAction_UseStripeSDK) ProtoMessage ¶
func (*NextAction_UseStripeSDK) ProtoMessage()
func (*NextAction_UseStripeSDK) ProtoReflect ¶
func (x *NextAction_UseStripeSDK) ProtoReflect() protoreflect.Message
func (*NextAction_UseStripeSDK) Reset ¶
func (x *NextAction_UseStripeSDK) Reset()
func (*NextAction_UseStripeSDK) String ¶
func (x *NextAction_UseStripeSDK) String() string
type Order ¶
type Order struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` CustomerId string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` ProductIds []string `protobuf:"bytes,3,rep,name=product_ids,json=productIds,proto3" json:"product_ids,omitempty"` ProductsDetails []*ProductDetails `protobuf:"bytes,4,rep,name=products_details,json=productsDetails,proto3" json:"products_details,omitempty"` SettlementStatus string `protobuf:"bytes,5,opt,name=settlement_status,json=settlementStatus,proto3" json:"settlement_status,omitempty"` TotalPayment int32 `protobuf:"varint,6,opt,name=total_payment,json=totalPayment,proto3" json:"total_payment,omitempty"` AdminFee int32 `protobuf:"varint,7,opt,name=admin_fee,json=adminFee,proto3" json:"admin_fee,omitempty"` GrandTotal int32 `protobuf:"varint,8,opt,name=grand_total,json=grandTotal,proto3" json:"grand_total,omitempty"` PaymentLink string `protobuf:"bytes,9,opt,name=payment_link,json=paymentLink,proto3" json:"payment_link,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*Order) Descriptor
deprecated
func (*Order) GetAdminFee ¶
func (*Order) GetCreatedAt ¶
func (x *Order) GetCreatedAt() *timestamppb.Timestamp
func (*Order) GetCustomerId ¶
func (*Order) GetDeletedAt ¶
func (x *Order) GetDeletedAt() *timestamppb.Timestamp
func (*Order) GetGrandTotal ¶
func (*Order) GetPaymentLink ¶
func (*Order) GetProductIds ¶
func (*Order) GetProductsDetails ¶
func (x *Order) GetProductsDetails() []*ProductDetails
func (*Order) GetSettlementStatus ¶
func (*Order) GetTotalPayment ¶
func (*Order) GetUpdatedAt ¶
func (x *Order) GetUpdatedAt() *timestamppb.Timestamp
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
type OrderQueryFilter ¶
type OrderQueryFilter struct { Earliest string `protobuf:"bytes,1,opt,name=earliest,proto3" json:"earliest,omitempty"` Latest string `protobuf:"bytes,2,opt,name=latest,proto3" json:"latest,omitempty"` Exclusion string `protobuf:"bytes,3,opt,name=exclusion,proto3" json:"exclusion,omitempty"` SettlementStatus string `protobuf:"bytes,4,opt,name=settlement_status,json=settlementStatus,proto3" json:"settlement_status,omitempty"` Pagination *Pagination `protobuf:"bytes,5,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *Sorting `protobuf:"bytes,6,opt,name=sorting,proto3" json:"sorting,omitempty"` Search string `protobuf:"bytes,7,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*OrderQueryFilter) Descriptor
deprecated
func (*OrderQueryFilter) Descriptor() ([]byte, []int)
Deprecated: Use OrderQueryFilter.ProtoReflect.Descriptor instead.
func (*OrderQueryFilter) GetEarliest ¶
func (x *OrderQueryFilter) GetEarliest() string
func (*OrderQueryFilter) GetExclusion ¶
func (x *OrderQueryFilter) GetExclusion() string
func (*OrderQueryFilter) GetLatest ¶
func (x *OrderQueryFilter) GetLatest() string
func (*OrderQueryFilter) GetPagination ¶
func (x *OrderQueryFilter) GetPagination() *Pagination
func (*OrderQueryFilter) GetSearch ¶
func (x *OrderQueryFilter) GetSearch() string
func (*OrderQueryFilter) GetSettlementStatus ¶
func (x *OrderQueryFilter) GetSettlementStatus() string
func (*OrderQueryFilter) GetSorting ¶
func (x *OrderQueryFilter) GetSorting() *Sorting
func (*OrderQueryFilter) ProtoMessage ¶
func (*OrderQueryFilter) ProtoMessage()
func (*OrderQueryFilter) ProtoReflect ¶
func (x *OrderQueryFilter) ProtoReflect() protoreflect.Message
func (*OrderQueryFilter) Reset ¶
func (x *OrderQueryFilter) Reset()
func (*OrderQueryFilter) String ¶
func (x *OrderQueryFilter) String() string
type OrderServiceClient ¶
type OrderServiceClient interface { CreateOrder(ctx context.Context, in *Order, opts ...grpc.CallOption) (*Order, error) GetOrder(ctx context.Context, in *GetOrderFilter, opts ...grpc.CallOption) (*GetOrderResponse, error) GetOrders(ctx context.Context, in *GetOrdersRequest, opts ...grpc.CallOption) (*GetOrderResponse, error) UpdateOrder(ctx context.Context, in *Order, opts ...grpc.CallOption) (*Order, error) SendOrder(ctx context.Context, in *SendOrderRequest, opts ...grpc.CallOption) (*SendOrderResponse, error) }
OrderServiceClient is the client API for OrderService 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 NewOrderServiceClient ¶
func NewOrderServiceClient(cc grpc.ClientConnInterface) OrderServiceClient
type OrderServiceServer ¶
type OrderServiceServer interface { CreateOrder(context.Context, *Order) (*Order, error) GetOrder(context.Context, *GetOrderFilter) (*GetOrderResponse, error) GetOrders(context.Context, *GetOrdersRequest) (*GetOrderResponse, error) UpdateOrder(context.Context, *Order) (*Order, error) SendOrder(context.Context, *SendOrderRequest) (*SendOrderResponse, error) // contains filtered or unexported methods }
OrderServiceServer is the server API for OrderService service. All implementations must embed UnimplementedOrderServiceServer for forward compatibility
type Pagination ¶
type Pagination struct { Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*Pagination) Descriptor
deprecated
func (*Pagination) Descriptor() ([]byte, []int)
Deprecated: Use Pagination.ProtoReflect.Descriptor instead.
func (*Pagination) GetLimit ¶
func (x *Pagination) GetLimit() int32
func (*Pagination) GetOffset ¶
func (x *Pagination) GetOffset() int32
func (*Pagination) GetPage ¶
func (x *Pagination) GetPage() int32
func (*Pagination) ProtoMessage ¶
func (*Pagination) ProtoMessage()
func (*Pagination) ProtoReflect ¶
func (x *Pagination) ProtoReflect() protoreflect.Message
func (*Pagination) Reset ¶
func (x *Pagination) Reset()
func (*Pagination) String ¶
func (x *Pagination) String() string
type PaymentError ¶
type PaymentError struct { Charge string `protobuf:"bytes,1,opt,name=charge,proto3" json:"charge,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` DeclineCode string `protobuf:"bytes,3,opt,name=decline_code,json=declineCode,proto3" json:"decline_code,omitempty"` DocUrl string `protobuf:"bytes,4,opt,name=doc_url,json=docUrl,proto3" json:"doc_url,omitempty"` Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` Param string `protobuf:"bytes,6,opt,name=param,proto3" json:"param,omitempty"` PaymentMethod *PaymentMethod `protobuf:"bytes,7,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"` // contains filtered or unexported fields }
func (*PaymentError) Descriptor
deprecated
func (*PaymentError) Descriptor() ([]byte, []int)
Deprecated: Use PaymentError.ProtoReflect.Descriptor instead.
func (*PaymentError) GetCharge ¶
func (x *PaymentError) GetCharge() string
func (*PaymentError) GetCode ¶
func (x *PaymentError) GetCode() string
func (*PaymentError) GetDeclineCode ¶
func (x *PaymentError) GetDeclineCode() string
func (*PaymentError) GetDocUrl ¶
func (x *PaymentError) GetDocUrl() string
func (*PaymentError) GetMessage ¶
func (x *PaymentError) GetMessage() string
func (*PaymentError) GetParam ¶
func (x *PaymentError) GetParam() string
func (*PaymentError) GetPaymentMethod ¶
func (x *PaymentError) GetPaymentMethod() *PaymentMethod
func (*PaymentError) ProtoMessage ¶
func (*PaymentError) ProtoMessage()
func (*PaymentError) ProtoReflect ¶
func (x *PaymentError) ProtoReflect() protoreflect.Message
func (*PaymentError) Reset ¶
func (x *PaymentError) Reset()
func (*PaymentError) String ¶
func (x *PaymentError) String() string
type PaymentIntent ¶
type PaymentIntent struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Amount int64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"` AutomaticPaymentMethods *AutomaticPaymentMethods `` /* 132-byte string literal not displayed */ ClientSecret string `protobuf:"bytes,4,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` Currency string `protobuf:"bytes,5,opt,name=currency,proto3" json:"currency,omitempty"` Customer string `protobuf:"bytes,6,opt,name=customer,proto3" json:"customer,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` LatestCharge string `protobuf:"bytes,8,opt,name=latest_charge,json=latestCharge,proto3" json:"latest_charge,omitempty"` Metadata map[string]string `` /* 157-byte string literal not displayed */ NextAction *NextAction `protobuf:"bytes,10,opt,name=next_action,json=nextAction,proto3" json:"next_action,omitempty"` PaymentMethod string `protobuf:"bytes,11,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"` ReceiptEmail string `protobuf:"bytes,12,opt,name=receipt_email,json=receiptEmail,proto3" json:"receipt_email,omitempty"` SetupFutureUsage PaymentIntent_SetupFutureUsage `` /* 149-byte string literal not displayed */ Status string `protobuf:"bytes,14,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*PaymentIntent) Descriptor
deprecated
func (*PaymentIntent) Descriptor() ([]byte, []int)
Deprecated: Use PaymentIntent.ProtoReflect.Descriptor instead.
func (*PaymentIntent) GetAmount ¶
func (x *PaymentIntent) GetAmount() int64
func (*PaymentIntent) GetAutomaticPaymentMethods ¶
func (x *PaymentIntent) GetAutomaticPaymentMethods() *AutomaticPaymentMethods
func (*PaymentIntent) GetClientSecret ¶
func (x *PaymentIntent) GetClientSecret() string
func (*PaymentIntent) GetCurrency ¶
func (x *PaymentIntent) GetCurrency() string
func (*PaymentIntent) GetCustomer ¶
func (x *PaymentIntent) GetCustomer() string
func (*PaymentIntent) GetDescription ¶
func (x *PaymentIntent) GetDescription() string
func (*PaymentIntent) GetId ¶
func (x *PaymentIntent) GetId() string
func (*PaymentIntent) GetLatestCharge ¶
func (x *PaymentIntent) GetLatestCharge() string
func (*PaymentIntent) GetMetadata ¶
func (x *PaymentIntent) GetMetadata() map[string]string
func (*PaymentIntent) GetNextAction ¶
func (x *PaymentIntent) GetNextAction() *NextAction
func (*PaymentIntent) GetPaymentMethod ¶
func (x *PaymentIntent) GetPaymentMethod() string
func (*PaymentIntent) GetReceiptEmail ¶
func (x *PaymentIntent) GetReceiptEmail() string
func (*PaymentIntent) GetSetupFutureUsage ¶
func (x *PaymentIntent) GetSetupFutureUsage() PaymentIntent_SetupFutureUsage
func (*PaymentIntent) GetStatus ¶
func (x *PaymentIntent) GetStatus() string
func (*PaymentIntent) ProtoMessage ¶
func (*PaymentIntent) ProtoMessage()
func (*PaymentIntent) ProtoReflect ¶
func (x *PaymentIntent) ProtoReflect() protoreflect.Message
func (*PaymentIntent) Reset ¶
func (x *PaymentIntent) Reset()
func (*PaymentIntent) String ¶
func (x *PaymentIntent) String() string
type PaymentIntent_SetupFutureUsage ¶
type PaymentIntent_SetupFutureUsage int32
const ( PaymentIntent_SETUP_FUTURE_USAGE_UNSPECIFIED PaymentIntent_SetupFutureUsage = 0 PaymentIntent_SETUP_FUTURE_USAGE_OFF_SESSION PaymentIntent_SetupFutureUsage = 1 )
func (PaymentIntent_SetupFutureUsage) Descriptor ¶
func (PaymentIntent_SetupFutureUsage) Descriptor() protoreflect.EnumDescriptor
func (PaymentIntent_SetupFutureUsage) Enum ¶
func (x PaymentIntent_SetupFutureUsage) Enum() *PaymentIntent_SetupFutureUsage
func (PaymentIntent_SetupFutureUsage) EnumDescriptor
deprecated
func (PaymentIntent_SetupFutureUsage) EnumDescriptor() ([]byte, []int)
Deprecated: Use PaymentIntent_SetupFutureUsage.Descriptor instead.
func (PaymentIntent_SetupFutureUsage) Number ¶
func (x PaymentIntent_SetupFutureUsage) Number() protoreflect.EnumNumber
func (PaymentIntent_SetupFutureUsage) String ¶
func (x PaymentIntent_SetupFutureUsage) String() string
func (PaymentIntent_SetupFutureUsage) Type ¶
func (PaymentIntent_SetupFutureUsage) Type() protoreflect.EnumType
type PaymentMethod ¶
type PaymentMethod struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` // contains filtered or unexported fields }
func (*PaymentMethod) Descriptor
deprecated
func (*PaymentMethod) Descriptor() ([]byte, []int)
Deprecated: Use PaymentMethod.ProtoReflect.Descriptor instead.
func (*PaymentMethod) GetId ¶
func (x *PaymentMethod) GetId() string
func (*PaymentMethod) GetObject ¶
func (x *PaymentMethod) GetObject() 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
type Product ¶
type Product struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` SellerId string `protobuf:"bytes,2,opt,name=seller_id,json=sellerId,proto3" json:"seller_id,omitempty"` CategoryId string `protobuf:"bytes,3,opt,name=category_id,json=categoryId,proto3" json:"category_id,omitempty"` CategoryName string `protobuf:"bytes,4,opt,name=category_name,json=categoryName,proto3" json:"category_name,omitempty"` VariantIds []string `protobuf:"bytes,5,rep,name=variant_ids,json=variantIds,proto3" json:"variant_ids,omitempty"` Name string `protobuf:"bytes,6,opt,name=name,proto3" json:"name,omitempty"` SellerName string `protobuf:"bytes,7,opt,name=seller_name,json=sellerName,proto3" json:"seller_name,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` VisTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=vis_time,json=visTime,proto3" json:"vis_time,omitempty"` InvisTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=invis_time,json=invisTime,proto3" json:"invis_time,omitempty"` InsiderKey string `protobuf:"bytes,11,opt,name=insider_key,json=insiderKey,proto3" json:"insider_key,omitempty"` Voucher string `protobuf:"bytes,12,opt,name=voucher,proto3" json:"voucher,omitempty"` VoucherDiscount int32 `protobuf:"varint,13,opt,name=voucher_discount,json=voucherDiscount,proto3" json:"voucher_discount,omitempty"` TotalDuration int32 `protobuf:"varint,14,opt,name=total_duration,json=totalDuration,proto3" json:"total_duration,omitempty"` VariantSettings []*VariantSettings `protobuf:"bytes,15,rep,name=variant_settings,json=variantSettings,proto3" json:"variant_settings,omitempty"` IsReviewable bool `protobuf:"varint,16,opt,name=is_reviewable,json=isReviewable,proto3" json:"is_reviewable,omitempty"` IsAdminVerified string `protobuf:"bytes,17,opt,name=is_admin_verified,json=isAdminVerified,proto3" json:"is_admin_verified,omitempty"` AdminComment string `protobuf:"bytes,18,opt,name=admin_comment,json=adminComment,proto3" json:"admin_comment,omitempty"` Visibility string `protobuf:"bytes,19,opt,name=visibility,proto3" json:"visibility,omitempty"` Exclusion string `protobuf:"bytes,20,opt,name=exclusion,proto3" json:"exclusion,omitempty"` Price int32 `protobuf:"varint,21,opt,name=price,proto3" json:"price,omitempty"` PictUrl string `protobuf:"bytes,22,opt,name=pict_url,json=pictUrl,proto3" json:"pict_url,omitempty"` CertUrl string `protobuf:"bytes,23,opt,name=cert_url,json=certUrl,proto3" json:"cert_url,omitempty"` FlatPrice int32 `protobuf:"varint,24,opt,name=flat_price,json=flatPrice,proto3" json:"flat_price,omitempty"` PercentagePrice int32 `protobuf:"varint,25,opt,name=percentage_price,json=percentagePrice,proto3" json:"percentage_price,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,26,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,27,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,28,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*Product) Descriptor
deprecated
func (*Product) GetAdminComment ¶
func (*Product) GetCategoryId ¶
func (*Product) GetCategoryName ¶
func (*Product) GetCertUrl ¶
func (*Product) GetCreatedAt ¶
func (x *Product) GetCreatedAt() *timestamppb.Timestamp
func (*Product) GetDeletedAt ¶
func (x *Product) GetDeletedAt() *timestamppb.Timestamp
func (*Product) GetDescription ¶
func (*Product) GetExclusion ¶
func (*Product) GetFlatPrice ¶
func (*Product) GetInsiderKey ¶
func (*Product) GetInvisTime ¶
func (x *Product) GetInvisTime() *timestamppb.Timestamp
func (*Product) GetIsAdminVerified ¶
func (*Product) GetIsReviewable ¶
func (*Product) GetPercentagePrice ¶
func (*Product) GetPictUrl ¶
func (*Product) GetSellerId ¶
func (*Product) GetSellerName ¶
func (*Product) GetTotalDuration ¶
func (*Product) GetUpdatedAt ¶
func (x *Product) GetUpdatedAt() *timestamppb.Timestamp
func (*Product) GetVariantIds ¶
func (*Product) GetVariantSettings ¶
func (x *Product) GetVariantSettings() []*VariantSettings
func (*Product) GetVisTime ¶
func (x *Product) GetVisTime() *timestamppb.Timestamp
func (*Product) GetVisibility ¶
func (*Product) GetVoucher ¶
func (*Product) GetVoucherDiscount ¶
func (*Product) ProtoMessage ¶
func (*Product) ProtoMessage()
func (*Product) ProtoReflect ¶
func (x *Product) ProtoReflect() protoreflect.Message
type ProductDetails ¶
type ProductDetails struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"` SellerName string `protobuf:"bytes,4,opt,name=seller_name,json=sellerName,proto3" json:"seller_name,omitempty"` Voucher string `protobuf:"bytes,5,opt,name=voucher,proto3" json:"voucher,omitempty"` VoucherDiscount int32 `protobuf:"varint,13,opt,name=voucher_discount,json=voucherDiscount,proto3" json:"voucher_discount,omitempty"` Price int32 `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"` // contains filtered or unexported fields }
func (*ProductDetails) Descriptor
deprecated
func (*ProductDetails) Descriptor() ([]byte, []int)
Deprecated: Use ProductDetails.ProtoReflect.Descriptor instead.
func (*ProductDetails) GetCategory ¶
func (x *ProductDetails) GetCategory() string
func (*ProductDetails) GetId ¶
func (x *ProductDetails) GetId() string
func (*ProductDetails) GetName ¶
func (x *ProductDetails) GetName() string
func (*ProductDetails) GetPrice ¶
func (x *ProductDetails) GetPrice() int32
func (*ProductDetails) GetSellerName ¶
func (x *ProductDetails) GetSellerName() string
func (*ProductDetails) GetVoucher ¶
func (x *ProductDetails) GetVoucher() string
func (*ProductDetails) GetVoucherDiscount ¶
func (x *ProductDetails) GetVoucherDiscount() int32
func (*ProductDetails) ProtoMessage ¶
func (*ProductDetails) ProtoMessage()
func (*ProductDetails) ProtoReflect ¶
func (x *ProductDetails) ProtoReflect() protoreflect.Message
func (*ProductDetails) Reset ¶
func (x *ProductDetails) Reset()
func (*ProductDetails) String ¶
func (x *ProductDetails) String() string
type ProductQueryFilter ¶
type ProductQueryFilter struct { Earliest string `protobuf:"bytes,1,opt,name=earliest,proto3" json:"earliest,omitempty"` Latest string `protobuf:"bytes,2,opt,name=latest,proto3" json:"latest,omitempty"` Visibility string `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"` Exclusion string `protobuf:"bytes,4,opt,name=exclusion,proto3" json:"exclusion,omitempty"` IsAdminVerified string `protobuf:"bytes,5,opt,name=is_admin_verified,json=isAdminVerified,proto3" json:"is_admin_verified,omitempty"` LowerPrice string `protobuf:"bytes,6,opt,name=lower_price,json=lowerPrice,proto3" json:"lower_price,omitempty"` UpperPrice string `protobuf:"bytes,7,opt,name=upper_price,json=upperPrice,proto3" json:"upper_price,omitempty"` Categories []string `protobuf:"bytes,8,rep,name=categories,proto3" json:"categories,omitempty"` Pagination *Pagination `protobuf:"bytes,9,opt,name=pagination,proto3" json:"pagination,omitempty"` Sorting *Sorting `protobuf:"bytes,10,opt,name=sorting,proto3" json:"sorting,omitempty"` Search string `protobuf:"bytes,11,opt,name=search,proto3" json:"search,omitempty"` // contains filtered or unexported fields }
func (*ProductQueryFilter) Descriptor
deprecated
func (*ProductQueryFilter) Descriptor() ([]byte, []int)
Deprecated: Use ProductQueryFilter.ProtoReflect.Descriptor instead.
func (*ProductQueryFilter) GetCategories ¶
func (x *ProductQueryFilter) GetCategories() []string
func (*ProductQueryFilter) GetEarliest ¶
func (x *ProductQueryFilter) GetEarliest() string
func (*ProductQueryFilter) GetExclusion ¶
func (x *ProductQueryFilter) GetExclusion() string
func (*ProductQueryFilter) GetIsAdminVerified ¶
func (x *ProductQueryFilter) GetIsAdminVerified() string
func (*ProductQueryFilter) GetLatest ¶
func (x *ProductQueryFilter) GetLatest() string
func (*ProductQueryFilter) GetLowerPrice ¶
func (x *ProductQueryFilter) GetLowerPrice() string
func (*ProductQueryFilter) GetPagination ¶
func (x *ProductQueryFilter) GetPagination() *Pagination
func (*ProductQueryFilter) GetSearch ¶
func (x *ProductQueryFilter) GetSearch() string
func (*ProductQueryFilter) GetSorting ¶
func (x *ProductQueryFilter) GetSorting() *Sorting
func (*ProductQueryFilter) GetUpperPrice ¶
func (x *ProductQueryFilter) GetUpperPrice() string
func (*ProductQueryFilter) GetVisibility ¶
func (x *ProductQueryFilter) GetVisibility() string
func (*ProductQueryFilter) ProtoMessage ¶
func (*ProductQueryFilter) ProtoMessage()
func (*ProductQueryFilter) ProtoReflect ¶
func (x *ProductQueryFilter) ProtoReflect() protoreflect.Message
func (*ProductQueryFilter) Reset ¶
func (x *ProductQueryFilter) Reset()
func (*ProductQueryFilter) String ¶
func (x *ProductQueryFilter) String() string
type ProductServiceClient ¶
type ProductServiceClient interface { CreateProduct(ctx context.Context, in *Product, opts ...grpc.CallOption) (*Product, error) GetProductByID(ctx context.Context, in *GetProductFilter, opts ...grpc.CallOption) (*GetProductResponse, error) GetProducts(ctx context.Context, in *GetProductFilter, opts ...grpc.CallOption) (*GetProductResponse, error) UpdateProduct(ctx context.Context, in *Product, opts ...grpc.CallOption) (*Product, error) ApproveProduct(ctx context.Context, in *ApproveProductRequest, opts ...grpc.CallOption) (*ApproveProductResponse, error) CreateCategory(ctx context.Context, in *Category, opts ...grpc.CallOption) (*Category, error) GetCategoryByID(ctx context.Context, in *GetCategoryFilter, opts ...grpc.CallOption) (*GetCategoryResponse, error) GetCategories(ctx context.Context, in *GetCategoryFilter, opts ...grpc.CallOption) (*GetCategoryResponse, error) UpdateCategory(ctx context.Context, in *Category, opts ...grpc.CallOption) (*Category, error) DeleteCategory(ctx context.Context, in *GetCategoryFilter, opts ...grpc.CallOption) (*DeleteCategoryResponse, error) }
ProductServiceClient is the client API for ProductService 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 NewProductServiceClient ¶
func NewProductServiceClient(cc grpc.ClientConnInterface) ProductServiceClient
type ProductServiceServer ¶
type ProductServiceServer interface { CreateProduct(context.Context, *Product) (*Product, error) GetProductByID(context.Context, *GetProductFilter) (*GetProductResponse, error) GetProducts(context.Context, *GetProductFilter) (*GetProductResponse, error) UpdateProduct(context.Context, *Product) (*Product, error) ApproveProduct(context.Context, *ApproveProductRequest) (*ApproveProductResponse, error) CreateCategory(context.Context, *Category) (*Category, error) GetCategoryByID(context.Context, *GetCategoryFilter) (*GetCategoryResponse, error) GetCategories(context.Context, *GetCategoryFilter) (*GetCategoryResponse, error) UpdateCategory(context.Context, *Category) (*Category, error) DeleteCategory(context.Context, *GetCategoryFilter) (*DeleteCategoryResponse, error) // contains filtered or unexported methods }
ProductServiceServer is the server API for ProductService service. All implementations must embed UnimplementedProductServiceServer for forward compatibility
type Seller ¶
type Seller struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` Province string `protobuf:"bytes,4,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,5,opt,name=city,proto3" json:"city,omitempty"` Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,7,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"` BankAcc string `protobuf:"bytes,9,opt,name=bank_acc,json=bankAcc,proto3" json:"bank_acc,omitempty"` BankAccNum string `protobuf:"bytes,10,opt,name=bank_acc_num,json=bankAccNum,proto3" json:"bank_acc_num,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*Seller) Descriptor
deprecated
func (*Seller) GetAddress ¶
func (*Seller) GetBankAcc ¶
func (*Seller) GetBankAccNum ¶
func (*Seller) GetCreatedAt ¶
func (x *Seller) GetCreatedAt() *timestamppb.Timestamp
func (*Seller) GetDeletedAt ¶
func (x *Seller) GetDeletedAt() *timestamppb.Timestamp
func (*Seller) GetPassword ¶
func (*Seller) GetPhoneNumber ¶
func (*Seller) GetProvince ¶
func (*Seller) GetUpdatedAt ¶
func (x *Seller) GetUpdatedAt() *timestamppb.Timestamp
func (*Seller) ProtoMessage ¶
func (*Seller) ProtoMessage()
func (*Seller) ProtoReflect ¶
func (x *Seller) ProtoReflect() protoreflect.Message
type SendOrderRequest ¶
type SendOrderRequest struct { OrderId string `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"` // contains filtered or unexported fields }
func (*SendOrderRequest) Descriptor
deprecated
func (*SendOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendOrderRequest.ProtoReflect.Descriptor instead.
func (*SendOrderRequest) GetOrderId ¶
func (x *SendOrderRequest) GetOrderId() string
func (*SendOrderRequest) ProtoMessage ¶
func (*SendOrderRequest) ProtoMessage()
func (*SendOrderRequest) ProtoReflect ¶
func (x *SendOrderRequest) ProtoReflect() protoreflect.Message
func (*SendOrderRequest) Reset ¶
func (x *SendOrderRequest) Reset()
func (*SendOrderRequest) String ¶
func (x *SendOrderRequest) String() string
type SendOrderResponse ¶
type SendOrderResponse struct { PaymentLink string `protobuf:"bytes,1,opt,name=payment_link,json=paymentLink,proto3" json:"payment_link,omitempty"` // contains filtered or unexported fields }
func (*SendOrderResponse) Descriptor
deprecated
func (*SendOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendOrderResponse.ProtoReflect.Descriptor instead.
func (*SendOrderResponse) GetPaymentLink ¶
func (x *SendOrderResponse) GetPaymentLink() string
func (*SendOrderResponse) ProtoMessage ¶
func (*SendOrderResponse) ProtoMessage()
func (*SendOrderResponse) ProtoReflect ¶
func (x *SendOrderResponse) ProtoReflect() protoreflect.Message
func (*SendOrderResponse) Reset ¶
func (x *SendOrderResponse) Reset()
func (*SendOrderResponse) String ¶
func (x *SendOrderResponse) String() string
type Shipping ¶
type Shipping struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Carrier string `protobuf:"bytes,2,opt,name=carrier,proto3" json:"carrier,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Phone string `protobuf:"bytes,4,opt,name=phone,proto3" json:"phone,omitempty"` TrackingNumber string `protobuf:"bytes,5,opt,name=tracking_number,json=trackingNumber,proto3" json:"tracking_number,omitempty"` // contains filtered or unexported fields }
func (*Shipping) Descriptor
deprecated
func (*Shipping) GetAddress ¶
func (*Shipping) GetCarrier ¶
func (*Shipping) GetTrackingNumber ¶
func (*Shipping) ProtoMessage ¶
func (*Shipping) ProtoMessage()
func (*Shipping) ProtoReflect ¶
func (x *Shipping) ProtoReflect() protoreflect.Message
type Sorting ¶
type Sorting struct { OrderBy string `protobuf:"bytes,1,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` IsReversed bool `protobuf:"varint,2,opt,name=is_reversed,json=isReversed,proto3" json:"is_reversed,omitempty"` // contains filtered or unexported fields }
func (*Sorting) Descriptor
deprecated
func (*Sorting) GetIsReversed ¶
func (*Sorting) GetOrderBy ¶
func (*Sorting) ProtoMessage ¶
func (*Sorting) ProtoMessage()
func (*Sorting) ProtoReflect ¶
func (x *Sorting) ProtoReflect() protoreflect.Message
type StripePaymentIntentResponse ¶
type StripePaymentIntentResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` Amount int64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"` AmountCapturable int64 `protobuf:"varint,4,opt,name=amount_capturable,json=amountCapturable,proto3" json:"amount_capturable,omitempty"` AmountReceived int64 `protobuf:"varint,5,opt,name=amount_received,json=amountReceived,proto3" json:"amount_received,omitempty"` Currency string `protobuf:"bytes,6,opt,name=currency,proto3" json:"currency,omitempty"` Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"` ReceiptEmail string `protobuf:"bytes,8,opt,name=receipt_email,json=receiptEmail,proto3" json:"receipt_email,omitempty"` Status string `protobuf:"bytes,9,opt,name=status,proto3" json:"status,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created,proto3" json:"created,omitempty"` Updated *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated,proto3" json:"updated,omitempty"` ClientSecret string `protobuf:"bytes,12,opt,name=client_secret,json=clientSecret,proto3" json:"client_secret,omitempty"` PaymentMethod string `protobuf:"bytes,13,opt,name=payment_method,json=paymentMethod,proto3" json:"payment_method,omitempty"` ReceiptUrl string `protobuf:"bytes,14,opt,name=receipt_url,json=receiptUrl,proto3" json:"receipt_url,omitempty"` // contains filtered or unexported fields }
func (*StripePaymentIntentResponse) Descriptor
deprecated
func (*StripePaymentIntentResponse) Descriptor() ([]byte, []int)
Deprecated: Use StripePaymentIntentResponse.ProtoReflect.Descriptor instead.
func (*StripePaymentIntentResponse) GetAmount ¶
func (x *StripePaymentIntentResponse) GetAmount() int64
func (*StripePaymentIntentResponse) GetAmountCapturable ¶
func (x *StripePaymentIntentResponse) GetAmountCapturable() int64
func (*StripePaymentIntentResponse) GetAmountReceived ¶
func (x *StripePaymentIntentResponse) GetAmountReceived() int64
func (*StripePaymentIntentResponse) GetClientSecret ¶
func (x *StripePaymentIntentResponse) GetClientSecret() string
func (*StripePaymentIntentResponse) GetCreated ¶
func (x *StripePaymentIntentResponse) GetCreated() *timestamppb.Timestamp
func (*StripePaymentIntentResponse) GetCurrency ¶
func (x *StripePaymentIntentResponse) GetCurrency() string
func (*StripePaymentIntentResponse) GetDescription ¶
func (x *StripePaymentIntentResponse) GetDescription() string
func (*StripePaymentIntentResponse) GetId ¶
func (x *StripePaymentIntentResponse) GetId() string
func (*StripePaymentIntentResponse) GetObject ¶
func (x *StripePaymentIntentResponse) GetObject() string
func (*StripePaymentIntentResponse) GetPaymentMethod ¶
func (x *StripePaymentIntentResponse) GetPaymentMethod() string
func (*StripePaymentIntentResponse) GetReceiptEmail ¶
func (x *StripePaymentIntentResponse) GetReceiptEmail() string
func (*StripePaymentIntentResponse) GetReceiptUrl ¶
func (x *StripePaymentIntentResponse) GetReceiptUrl() string
func (*StripePaymentIntentResponse) GetStatus ¶
func (x *StripePaymentIntentResponse) GetStatus() string
func (*StripePaymentIntentResponse) GetUpdated ¶
func (x *StripePaymentIntentResponse) GetUpdated() *timestamppb.Timestamp
func (*StripePaymentIntentResponse) ProtoMessage ¶
func (*StripePaymentIntentResponse) ProtoMessage()
func (*StripePaymentIntentResponse) ProtoReflect ¶
func (x *StripePaymentIntentResponse) ProtoReflect() protoreflect.Message
func (*StripePaymentIntentResponse) Reset ¶
func (x *StripePaymentIntentResponse) Reset()
func (*StripePaymentIntentResponse) String ¶
func (x *StripePaymentIntentResponse) String() string
type UnimplementedOrderServiceServer ¶
type UnimplementedOrderServiceServer struct { }
UnimplementedOrderServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedOrderServiceServer) CreateOrder ¶
func (UnimplementedOrderServiceServer) GetOrder ¶
func (UnimplementedOrderServiceServer) GetOrder(context.Context, *GetOrderFilter) (*GetOrderResponse, error)
func (UnimplementedOrderServiceServer) GetOrders ¶
func (UnimplementedOrderServiceServer) GetOrders(context.Context, *GetOrdersRequest) (*GetOrderResponse, error)
func (UnimplementedOrderServiceServer) SendOrder ¶
func (UnimplementedOrderServiceServer) SendOrder(context.Context, *SendOrderRequest) (*SendOrderResponse, error)
func (UnimplementedOrderServiceServer) UpdateOrder ¶
type UnimplementedProductServiceServer ¶
type UnimplementedProductServiceServer struct { }
UnimplementedProductServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedProductServiceServer) ApproveProduct ¶
func (UnimplementedProductServiceServer) ApproveProduct(context.Context, *ApproveProductRequest) (*ApproveProductResponse, error)
func (UnimplementedProductServiceServer) CreateCategory ¶
func (UnimplementedProductServiceServer) CreateProduct ¶
func (UnimplementedProductServiceServer) DeleteCategory ¶
func (UnimplementedProductServiceServer) DeleteCategory(context.Context, *GetCategoryFilter) (*DeleteCategoryResponse, error)
func (UnimplementedProductServiceServer) GetCategories ¶
func (UnimplementedProductServiceServer) GetCategories(context.Context, *GetCategoryFilter) (*GetCategoryResponse, error)
func (UnimplementedProductServiceServer) GetCategoryByID ¶
func (UnimplementedProductServiceServer) GetCategoryByID(context.Context, *GetCategoryFilter) (*GetCategoryResponse, error)
func (UnimplementedProductServiceServer) GetProductByID ¶
func (UnimplementedProductServiceServer) GetProductByID(context.Context, *GetProductFilter) (*GetProductResponse, error)
func (UnimplementedProductServiceServer) GetProducts ¶
func (UnimplementedProductServiceServer) GetProducts(context.Context, *GetProductFilter) (*GetProductResponse, error)
func (UnimplementedProductServiceServer) UpdateCategory ¶
func (UnimplementedProductServiceServer) UpdateProduct ¶
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) CreateUser ¶
func (UnimplementedUserServiceServer) DeleteUser ¶
func (UnimplementedUserServiceServer) DeleteUser(context.Context, *GetUsersFilter) (*DeleteUserResponse, error)
func (UnimplementedUserServiceServer) GetAllUsers ¶
func (UnimplementedUserServiceServer) GetAllUsers(context.Context, *GetAllUsersRequest) (*GetUsersResponse, error)
func (UnimplementedUserServiceServer) GetUserByID ¶
func (UnimplementedUserServiceServer) GetUserByID(context.Context, *GetUsersFilter) (*GetUsersResponse, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
type UnsafeOrderServiceServer ¶
type UnsafeOrderServiceServer interface {
// contains filtered or unexported methods
}
UnsafeOrderServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to OrderServiceServer will result in compilation errors.
type UnsafeProductServiceServer ¶
type UnsafeProductServiceServer interface {
// contains filtered or unexported methods
}
UnsafeProductServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ProductServiceServer will result in compilation errors.
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type User ¶
type User struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` PhoneNumber string `protobuf:"bytes,4,opt,name=phone_number,json=phoneNumber,proto3" json:"phone_number,omitempty"` Password string `protobuf:"bytes,5,opt,name=password,proto3" json:"password,omitempty"` Sex string `protobuf:"bytes,6,opt,name=sex,proto3" json:"sex,omitempty"` UserType string `protobuf:"bytes,7,opt,name=user_type,json=userType,proto3" json:"user_type,omitempty"` Institution string `protobuf:"bytes,8,opt,name=institution,proto3" json:"institution,omitempty"` Address string `protobuf:"bytes,9,opt,name=address,proto3" json:"address,omitempty"` Province string `protobuf:"bytes,10,opt,name=province,proto3" json:"province,omitempty"` City string `protobuf:"bytes,11,opt,name=city,proto3" json:"city,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` DeletedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=deleted_at,json=deletedAt,proto3" json:"deleted_at,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAddress ¶
func (*User) GetCreatedAt ¶
func (x *User) GetCreatedAt() *timestamppb.Timestamp
func (*User) GetDeletedAt ¶
func (x *User) GetDeletedAt() *timestamppb.Timestamp
func (*User) GetInstitution ¶
func (*User) GetPassword ¶
func (*User) GetPhoneNumber ¶
func (*User) GetProvince ¶
func (*User) GetUpdatedAt ¶
func (x *User) GetUpdatedAt() *timestamppb.Timestamp
func (*User) GetUserType ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { CreateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) GetAllUsers(ctx context.Context, in *GetAllUsersRequest, opts ...grpc.CallOption) (*GetUsersResponse, error) GetUserByID(ctx context.Context, in *GetUsersFilter, opts ...grpc.CallOption) (*GetUsersResponse, error) UpdateUser(ctx context.Context, in *User, opts ...grpc.CallOption) (*User, error) DeleteUser(ctx context.Context, in *GetUsersFilter, opts ...grpc.CallOption) (*DeleteUserResponse, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { CreateUser(context.Context, *User) (*User, error) GetAllUsers(context.Context, *GetAllUsersRequest) (*GetUsersResponse, error) GetUserByID(context.Context, *GetUsersFilter) (*GetUsersResponse, error) UpdateUser(context.Context, *User) (*User, error) DeleteUser(context.Context, *GetUsersFilter) (*DeleteUserResponse, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type VariantSettings ¶
type VariantSettings struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Duration int32 `protobuf:"varint,3,opt,name=duration,proto3" json:"duration,omitempty"` TotalVariants int32 `protobuf:"varint,4,opt,name=total_variants,json=totalVariants,proto3" json:"total_variants,omitempty"` // contains filtered or unexported fields }
func (*VariantSettings) Descriptor
deprecated
func (*VariantSettings) Descriptor() ([]byte, []int)
Deprecated: Use VariantSettings.ProtoReflect.Descriptor instead.
func (*VariantSettings) GetDuration ¶
func (x *VariantSettings) GetDuration() int32
func (*VariantSettings) GetId ¶
func (x *VariantSettings) GetId() string
func (*VariantSettings) GetName ¶
func (x *VariantSettings) GetName() string
func (*VariantSettings) GetTotalVariants ¶
func (x *VariantSettings) GetTotalVariants() int32
func (*VariantSettings) ProtoMessage ¶
func (*VariantSettings) ProtoMessage()
func (*VariantSettings) ProtoReflect ¶
func (x *VariantSettings) ProtoReflect() protoreflect.Message
func (*VariantSettings) Reset ¶
func (x *VariantSettings) Reset()
func (*VariantSettings) String ¶
func (x *VariantSettings) String() string