getlago / lago-go-client

Lago Go Client
MIT License
21 stars 19 forks source link

ChargeModel: Missing Volume Type #111

Closed Nico-VanHaaster closed 1 year ago

Nico-VanHaaster commented 1 year ago

The API spec calls for a ChargeModel of "volumme" however the ChargeModel type does not have a valid "Volume" type.

Although "volume" is a valid ChargeModel value (as the type is a string) it would be nice it was referenced by an enum value.

Code Link: https://github.com/getlago/lago-go-client/blob/20f7c3140791dd566ea74125386d57f808983150/charge.go#L9-L16

vincent-pochet commented 1 year ago

Hi @Nico-VanHaaster,

Thank you for reporting this issue.

Indeed, the volume charge model is missing in the current list. I've opened a fix, it will probably be part of the next release.