Documentation
¶
Index ¶
- Variables
- func FormPaginateRequest(req *utils_v1.PaginateRequest) *utils_v1.PaginateRequest
- type AppleStoreService
- type InvoiceService
- func (s *InvoiceService) GetInvoice(ctx context.Context, req *v1.GetInvoiceRequest) (*v1.InvoiceReply, error)
- func (s *InvoiceService) GetInvoicePDF(ctx context.Context, req *v1.GetInvoiceReceiptRequest) (*v1.InvoicePDFReply, error)
- func (s *InvoiceService) GetInvoiceReceipt(ctx context.Context, req *v1.GetInvoiceReceiptRequest) (*v1.InvoiceReceiptReply, error)
- func (s *InvoiceService) ListInvoices(ctx context.Context, req *v1.ListInvoicesRequest) (*v1.ListInvoicesReply, error)
- type ItemService
- func (s *ItemService) CreateItem(ctx context.Context, req *v1.CreateItemRequest) (*v1.ItemReply, error)
- func (s *ItemService) DeleteItem(ctx context.Context, req *v1.ItemRequest) (*utils_v1.EmptyReply, error)
- func (s *ItemService) GetItem(ctx context.Context, req *v1.ItemRequest) (*v1.ItemReply, error)
- func (s *ItemService) ListItems(ctx context.Context, req *v1.ListItemsRequest) (*v1.ListItemsReply, error)
- func (s *ItemService) UpdateItem(ctx context.Context, req *v1.UpdateItemRequest) (*v1.ItemReply, error)
- type PaymentsService
- func (s *PaymentsService) CancelSubscription(ctx context.Context, req *v1.CancelSubscriptionRequest) (*utils_v1.EmptyReply, error)
- func (s *PaymentsService) CheckWebhook(ctx context.Context, req *v1.WebhookPayload) (*v1.WebhookResponse, error)
- func (s *PaymentsService) Complete3DS(ctx context.Context, req *v1.Complete3DSRequest) (*v1.Complete3DSResponse, error)
- func (s *PaymentsService) CreatePayment(ctx context.Context, req *v1.CreatePaymentRequest) (*v1.CreatePaymentResponse, error)
- func (s *PaymentsService) GetPaymentStatus(ctx context.Context, req *v1.GetPaymentStatusRequest) (*v1.GetPaymentStatusResponse, error)
- func (s *PaymentsService) PaymentCallback(ctx context.Context, req *v1.PaymentCallbackRequest) (*utils_v1.EmptyReply, error)
- func (s *PaymentsService) PaymentWebhook(ctx context.Context, req *v1.WebhookPayload) (*v1.WebhookResponse, error)
- func (s *PaymentsService) RecurrentWebhook(ctx context.Context, req *v1.WebhookPayload) (*v1.WebhookResponse, error)
- type ProductService
- func (s *ProductService) CreateProduct(ctx context.Context, req *v1.CreateProductRequest) (*v1.ProductReply, error)
- func (s *ProductService) DeleteProduct(ctx context.Context, req *v1.DeleteProductRequest) (*utils_v1.EmptyReply, error)
- func (s *ProductService) GetProduct(ctx context.Context, req *v1.GetProductRequest) (*v1.ProductReply, error)
- func (s *ProductService) ListProducts(ctx context.Context, req *v1.ListProductsRequest) (*v1.ListProductsReply, error)
- func (s *ProductService) UpdateProduct(ctx context.Context, req *v1.UpdateProductRequest) (*v1.ProductReply, error)
- type SubscriptionService
- func (s *SubscriptionService) GetSubscription(ctx context.Context, req *v1.GetSubscriptionRequest) (*v1.SubscriptionReply, error)
- func (s *SubscriptionService) GetSubscriptionStatus(ctx context.Context, req *v1.GetSubscriptionStatusRequest) (*v1.SubscriptionStatusReply, error)
- func (s *SubscriptionService) ListSubscriptions(ctx context.Context, req *v1.ListSubscriptionsRequest) (*v1.ListSubscriptionsReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewItemService, NewProductService, NewInvoiceService, NewSubscriptionService, NewAppleStoreService, NewPaymentsService, )
ProviderSet is service providers.
Functions ¶
func FormPaginateRequest ¶
func FormPaginateRequest(req *utils_v1.PaginateRequest) *utils_v1.PaginateRequest
Types ¶
type AppleStoreService ¶
type AppleStoreService struct {
v1.UnimplementedAppleStoreServer
// contains filtered or unexported fields
}
func NewAppleStoreService ¶
func NewAppleStoreService(uc *biz.AppleStoreUsecase) *AppleStoreService
func (*AppleStoreService) ProcessServerNotification ¶
func (s *AppleStoreService) ProcessServerNotification( ctx context.Context, req *v1.ProcessServerNotificationRequest, ) (*utils_v1.EmptyReply, error)
type InvoiceService ¶
type InvoiceService struct {
v1.UnimplementedInvoicesServer
// contains filtered or unexported fields
}
func NewInvoiceService ¶
func NewInvoiceService(uc *biz.InvoicesUseCase) *InvoiceService
func (*InvoiceService) GetInvoice ¶
func (s *InvoiceService) GetInvoice(ctx context.Context, req *v1.GetInvoiceRequest) (*v1.InvoiceReply, error)
func (*InvoiceService) GetInvoicePDF ¶
func (s *InvoiceService) GetInvoicePDF(ctx context.Context, req *v1.GetInvoiceReceiptRequest) (*v1.InvoicePDFReply, error)
func (*InvoiceService) GetInvoiceReceipt ¶
func (s *InvoiceService) GetInvoiceReceipt(ctx context.Context, req *v1.GetInvoiceReceiptRequest) (*v1.InvoiceReceiptReply, error)
func (*InvoiceService) ListInvoices ¶
func (s *InvoiceService) ListInvoices(ctx context.Context, req *v1.ListInvoicesRequest) (*v1.ListInvoicesReply, error)
type ItemService ¶
type ItemService struct {
v1.UnimplementedItemsServer
// contains filtered or unexported fields
}
func NewItemService ¶
func NewItemService(uc *biz.ItemUseCase) *ItemService
func (*ItemService) CreateItem ¶
func (s *ItemService) CreateItem(ctx context.Context, req *v1.CreateItemRequest) (*v1.ItemReply, error)
func (*ItemService) DeleteItem ¶
func (s *ItemService) DeleteItem(ctx context.Context, req *v1.ItemRequest) (*utils_v1.EmptyReply, error)
func (*ItemService) GetItem ¶
func (s *ItemService) GetItem(ctx context.Context, req *v1.ItemRequest) (*v1.ItemReply, error)
func (*ItemService) ListItems ¶
func (s *ItemService) ListItems(ctx context.Context, req *v1.ListItemsRequest) (*v1.ListItemsReply, error)
func (*ItemService) UpdateItem ¶
func (s *ItemService) UpdateItem(ctx context.Context, req *v1.UpdateItemRequest) (*v1.ItemReply, error)
type PaymentsService ¶
type PaymentsService struct {
v1.UnimplementedPaymentsServer
// contains filtered or unexported fields
}
func NewPaymentsService ¶
func NewPaymentsService( uc *biz.PaymentUseCase, ) *PaymentsService
func (*PaymentsService) CancelSubscription ¶
func (s *PaymentsService) CancelSubscription( ctx context.Context, req *v1.CancelSubscriptionRequest, ) (*utils_v1.EmptyReply, error)
func (*PaymentsService) CheckWebhook ¶
func (s *PaymentsService) CheckWebhook(ctx context.Context, req *v1.WebhookPayload) (*v1.WebhookResponse, error)
func (*PaymentsService) Complete3DS ¶
func (s *PaymentsService) Complete3DS(ctx context.Context, req *v1.Complete3DSRequest) ( *v1.Complete3DSResponse, error, )
func (*PaymentsService) CreatePayment ¶
func (s *PaymentsService) CreatePayment(ctx context.Context, req *v1.CreatePaymentRequest) ( *v1.CreatePaymentResponse, error, )
func (*PaymentsService) GetPaymentStatus ¶
func (s *PaymentsService) GetPaymentStatus(ctx context.Context, req *v1.GetPaymentStatusRequest) (*v1.GetPaymentStatusResponse, error)
func (*PaymentsService) PaymentCallback ¶
func (s *PaymentsService) PaymentCallback( ctx context.Context, req *v1.PaymentCallbackRequest, ) (*utils_v1.EmptyReply, error)
PaymentCallback handles legacy OVP callbacks (no-op).
func (*PaymentsService) PaymentWebhook ¶
func (s *PaymentsService) PaymentWebhook(ctx context.Context, req *v1.WebhookPayload) (*v1.WebhookResponse, error)
func (*PaymentsService) RecurrentWebhook ¶
func (s *PaymentsService) RecurrentWebhook(ctx context.Context, req *v1.WebhookPayload) (*v1.WebhookResponse, error)
type ProductService ¶
type ProductService struct {
v1.UnimplementedProductsServer
// contains filtered or unexported fields
}
func NewProductService ¶
func NewProductService(uc *biz.ProductUseCase) *ProductService
func (*ProductService) CreateProduct ¶
func (s *ProductService) CreateProduct(ctx context.Context, req *v1.CreateProductRequest) (*v1.ProductReply, error)
func (*ProductService) DeleteProduct ¶
func (s *ProductService) DeleteProduct(ctx context.Context, req *v1.DeleteProductRequest) ( *utils_v1.EmptyReply, error, )
func (*ProductService) GetProduct ¶
func (s *ProductService) GetProduct(ctx context.Context, req *v1.GetProductRequest) (*v1.ProductReply, error)
func (*ProductService) ListProducts ¶
func (s *ProductService) ListProducts(ctx context.Context, req *v1.ListProductsRequest) (*v1.ListProductsReply, error)
func (*ProductService) UpdateProduct ¶
func (s *ProductService) UpdateProduct(ctx context.Context, req *v1.UpdateProductRequest) (*v1.ProductReply, error)
type SubscriptionService ¶
type SubscriptionService struct {
v1.UnimplementedSubscriptionsServer
// contains filtered or unexported fields
}
func NewSubscriptionService ¶
func NewSubscriptionService(uc *biz.SubscriptionsUseCase) *SubscriptionService
func (*SubscriptionService) GetSubscription ¶
func (s *SubscriptionService) GetSubscription(ctx context.Context, req *v1.GetSubscriptionRequest) ( *v1.SubscriptionReply, error, )
func (*SubscriptionService) GetSubscriptionStatus ¶
func (s *SubscriptionService) GetSubscriptionStatus(ctx context.Context, req *v1.GetSubscriptionStatusRequest) ( *v1.SubscriptionStatusReply, error, )
func (*SubscriptionService) ListSubscriptions ¶
func (s *SubscriptionService) ListSubscriptions( ctx context.Context, req *v1.ListSubscriptionsRequest, ) (*v1.ListSubscriptionsReply, error)
Click to show internal directories.
Click to hide internal directories.