v0.7.0: public domain types in rudder, hide OpenAPI names from callers
CI / build (push) Successful in 51s
CI / build (push) Successful in 51s
This commit is contained in:
+4
-8
@@ -1,10 +1,6 @@
|
||||
package rudder
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"hub.rudder.build/rudder/rudder-go-sdk/models"
|
||||
)
|
||||
import "context"
|
||||
|
||||
type PlayerWalletHandle struct {
|
||||
playerID string
|
||||
@@ -18,10 +14,10 @@ type AdjustPlayerWalletParameters struct {
|
||||
Reason string
|
||||
}
|
||||
|
||||
func (h *PlayerWalletHandle) Adjust(ctx context.Context, parameters AdjustPlayerWalletParameters) (*models.WalletDetails, error) {
|
||||
func (h *PlayerWalletHandle) Adjust(ctx context.Context, parameters AdjustPlayerWalletParameters) (*WalletBalance, error) {
|
||||
wallets, err := h.wallet.Adjust(ctx, AdjustWalletParameters{
|
||||
IdempotencyKey: parameters.IdempotencyKey,
|
||||
Items: []models.BatchAdjustPlayerWalletsItem{{
|
||||
Items: []WalletAdjustment{{
|
||||
PlayerID: h.playerID,
|
||||
CurrencyCode: parameters.CurrencyCode,
|
||||
Amount: parameters.Amount,
|
||||
@@ -34,6 +30,6 @@ func (h *PlayerWalletHandle) Adjust(ctx context.Context, parameters AdjustPlayer
|
||||
return &wallets[0], nil
|
||||
}
|
||||
|
||||
func (h *PlayerWalletHandle) History(ctx context.Context, parameters WalletHistoryParameters) (*models.GetWalletHistoryResponse, error) {
|
||||
func (h *PlayerWalletHandle) History(ctx context.Context, parameters WalletHistoryParameters) (*WalletHistory, error) {
|
||||
return h.wallet.History(ctx, h.playerID, parameters)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user