Comments (1)
Hi @circus-miguel! Thanks for reaching out, and apologies for the late reply!
It took me some time to figure this out, but here are my findings: According to some direct calls to the API we should be able to create both CentPrecision and HighPrecision money objects. the Money struct in this case should operate as the base money object, where the others extend from.
By default the API will use CentPrecision, so that is why you are seeing the above results, but it should allow for HighPrecision too, which the SDK currently doesnt
This is however an issue with the RAML API specs from which we generate our SDK. There it only defines Money as input.
We have raised the issue with Commercetools to see if there is a fix possible here, but we will not diverge from the api reference, so for now consider it working as intended!
from commercetools-go-sdk.
Related Issues (20)
- Responses swallowed when there's an unmarshaling error HOT 1
- State Role "Return" needed to be added to StateRoleEnum HOT 2
- The SDK doesn't support multiple Expand for Query
- `QueryInput` doesn't support `WithTotal` flag HOT 1
- add more topics/tags for better search this SDK HOT 1
- State Transitions empty/not set value is not respected due to omitempty annotation HOT 10
- Release 0.3.1 or 0.3.2? HOT 2
- Introduce new version numbering HOT 1
- A Bug or an outdated README HOT 1
- Outdated README published HOT 2
- Research https://pkg.go.dev/golang.org/x/exp/cmd/gorelease
- SDK swallows error on broken order JSON HOT 2
- Bug handling errors or outdated README HOT 3
- Update to go 1.21 and regenerate code
- Add support for Advanced Product Search HOT 1
- Panic when initializing the client without transport HOT 1
- PredicateVar doesn't support slices HOT 6
- CommerceTools API spec updated (bugfix), need a new release
- Regression: 404 responses are not handled again HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commercetools-go-sdk.