Skip to content

Many numerical values are stored as strings #112

Description

@oobayly

Properties that contain number, such as GoCardless.Resources.TaxRate.Percentage or GoCardless.Resources.PayoutItem.Amount are presented as strings. This makes very little sense as they're numbers, and raises a few questions:

  1. Can they be null or an empty string, or are they guaranteed to be parsed safely?
  2. What locale do we parse them in?
  3. Are we guaranteed that the decimal separator is always .,
  4. Are we guaranteed that there will never be a decimal separator.

It seems a bizarre decision to make, especially as other properties are integers, eg. GoCardless.Resources.Payout.Amount, etc.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions