Skip to content

Invalid case for Expiration Interval Unit #62

@eugenequilter

Description

@eugenequilter

When attempting to readSubscription when the assigned Product does not have a trial set the value for a Product's expiration_interval_unit is an empty string. The empty string is not supported by the ExpirationIntervalUnit enum, and an exception is thrown.

Adding a case:
public const EMPTY = ''

then appending the case to _ALL_VALUES at least let's the subscription load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions