You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PaymentService returns string instead of ENUM #118
we talked about this on a call already, but I still wanted to make sure this doesn't get lost:
When fetching prices on the /prices page of our website, I use PaymentService.getDefaultPrices() to retrieve a PaymentServiceGetDefaultPricesResponse type. This type seems to return a class that contains an array of Price classes:
* @generated from field: api.v1.ProductType product_type = 5;
*/
productType=ProductType.UNSPECIFIED;
In my case, fetching from the API doesn't return the ENUM member but the metadata from the enum:
{"name": "ip","unitAmountDecimal": 0.016203704,"currency": "eur","unitLabel": "minute","productType": "PRODUCT_TYPE_NETWORK",// <-- THIS seems to be the Enum.metadata.name instead of the enum member itself?"description": "Connect to the internet with ephemeral or static public facing IPv4 addresses."}
Activity