Add payout req parsing

This commit is contained in:
2026-03-14 17:52:10 +03:00
parent 17bd6114b7
commit 35f6dc6ca0
4 changed files with 36 additions and 10 deletions

View File

@@ -60,10 +60,12 @@ func (y *yookassaService) OAuth2(ctx context.Context, operationName gen.Operatio
}
// CreatePayout implements [Service].
func (y *yookassaService) CreatePayout(req models.PayoutReq, userSession *orm.User, opts ...Optional) {
func (y *yookassaService) CreatePayout(req models.PayoutReq, userSession *orm.User, opts ...Optional) error {
params := y.getParams(opts...)
y.payClient.PayoutsPost(params.ctx, &gen.PayoutRequest{}, gen.PayoutsPostParams{})
return nil
}
// GetConfig implements [Service].