Skip to content

AppStoreApi.GetSubscriptionAsync() does not support SIMPLE Product.Type #559

Open
@alvaromarithompson

Description

@alvaromarithompson

SDK you're using (please complete the following information):

  • Version 9.0.0

Describe the bug
When a subscription on the App Store contains a product whose pricing type is "Simple", retrieving any subscription that contains a product with "SIMPLE" pricing on it throws an exception on deserialization.

To Reproduce
Steps to reproduce the behavior:

  1. Create a pricing plan that contains "Simple" pricing on it.
  2. Subscribe to that plan via the App Store / Testing pages
  3. Programmatically call AppStoreApi.GetSubscriptionAsync().
  4. An exception is thrown:
Xero.NetStandard.OAuth2.Client.ApiException: 'Error converting value "SIMPLE" to type 'Xero.NetStandard.OAuth2.Model.Appstore.Product+TypeEnum'. Path 'plans[1].subscriptionItems[1].product.type', line 1, position 1536.'

Expected behavior
The subscription should be returned containing the relevant subscription item that has product of type SIMPLE

Screenshots
App Store pricing type:
image

Lack of definition of type "SIMPLE" in `Product.TypeEnum":
image

Additional context
The lack of Product.TypeEnum.SIMPLE can be seen at

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