25 lines
680 B
Go
25 lines
680 B
Go
package quotation
|
|
|
|
import (
|
|
"context"
|
|
|
|
quotationv1 "github.com/tech/sendico/pkg/proto/payments/quotation/v1"
|
|
)
|
|
|
|
type quotationService struct {
|
|
svc *Service
|
|
quotationv1.UnimplementedQuotationServiceServer
|
|
}
|
|
|
|
func newQuotationService(svc *Service) *quotationService {
|
|
return "ationService{svc: svc}
|
|
}
|
|
|
|
func (s *quotationService) QuotePayment(ctx context.Context, req *quotationv1.QuotePaymentRequest) (*quotationv1.QuotePaymentResponse, error) {
|
|
return s.svc.QuotePayment(ctx, req)
|
|
}
|
|
|
|
func (s *quotationService) QuotePayments(ctx context.Context, req *quotationv1.QuotePaymentsRequest) (*quotationv1.QuotePaymentsResponse, error) {
|
|
return s.svc.QuotePayments(ctx, req)
|
|
}
|