Skip to content

Add AmoreStore target to fetch products including prices#4

Open
lucasfischer wants to merge 6 commits into
mainfrom
feat/AmoreStore
Open

Add AmoreStore target to fetch products including prices#4
lucasfischer wants to merge 6 commits into
mainfrom
feat/AmoreStore

Conversation

@lucasfischer
Copy link
Copy Markdown
Contributor

Introduces AmoreStore, a new library target for fetching the products and prices configured for an Amore-licensed app, so apps can build paywalls and product pickers that link out to a checkout.

It includes:

  • AmoreStore: A client with products() async throws(StoreError) -> [Product] to fetch products
  • Models: Product (id, name, license duration, device limit, optional Price, checkoutURL), Price (minor-unit amount, currency, optional recurring interval, with decimalAmount/displayPrice formatting), and RecurringInterval (day/week/month/year).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant