flexprice / flexprice/go-sdk

WalletsAPI.CustomersIdWalletsGet(context, id).Execute() function returning error

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## Problem Summery
`WalletsAPI.CustomersIdWalletsGet(context, id).Execute()` function returning error:
```
json: cannot unmarshal string into Go struct field DtoWalletResponse.balance of type float32
```

## Root Cause
api json response returning string value, but struct data type in float32, conversion not applied properly

Contributor guide

Open the contributing guide

Research direction

Start by locating WalletsAPI.CustomersIdWalletsGet(context, id).Execute() and the DtoWalletResponse.balance field. Trace how the API response is unmarshaled, then verify that a string balance no longer causes the reported error and that the wallet request completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.