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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user