v0.7.0: public domain types in rudder, hide OpenAPI names from callers
CI / build (push) Successful in 51s

This commit is contained in:
edmand46
2026-08-27 16:10:27 +03:00
parent 2619291b20
commit 989bd7646c
14 changed files with 150 additions and 122 deletions
+4 -4
View File
@@ -15,10 +15,10 @@ type WalletService struct {
type AdjustWalletParameters struct {
IdempotencyKey string
Items []models.BatchAdjustPlayerWalletsItem
Items []WalletAdjustment
}
func (s *WalletService) Adjust(ctx context.Context, parameters AdjustWalletParameters) ([]models.WalletDetails, error) {
func (s *WalletService) Adjust(ctx context.Context, parameters AdjustWalletParameters) ([]WalletBalance, error) {
body := models.BatchAdjustPlayerWalletsRequest{
IdempotencyKey: parameters.IdempotencyKey,
Items: parameters.Items,
@@ -37,7 +37,7 @@ type WalletHistoryParameters struct {
Cursor *string
}
func (s *WalletService) History(ctx context.Context, playerID string, parameters WalletHistoryParameters) (*models.GetWalletHistoryResponse, error) {
func (s *WalletService) History(ctx context.Context, playerID string, parameters WalletHistoryParameters) (*WalletHistory, error) {
query := url.Values{}
if parameters.Currency != nil {
query.Set("currency", *parameters.Currency)
@@ -49,7 +49,7 @@ func (s *WalletService) History(ctx context.Context, playerID string, parameters
query.Set("cursor", *parameters.Cursor)
}
var response models.GetWalletHistoryResponse
var response WalletHistory
if err := s.transport.do(ctx, http.MethodGet, "/players/"+url.PathEscape(playerID)+"/wallet/history", query, nil, &response); err != nil {
return nil, err
}