Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage API #14

Open
vody opened this issue Apr 1, 2021 · 0 comments
Open

Usage API #14

vody opened this issue Apr 1, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@vody
Copy link
Collaborator

vody commented Apr 1, 2021

As a publisher, I want to be able to use a usage based pricing models "Metered" (https://stripe.com/docs/billing/subscriptions/metered) so that will allow me to enable "pay just for used" for my customers
image

Feature: Usage API
  As a publisher, I want to be able to use a usage based pricing models so that will allow me to enable "pay just for used" for my customers 

  Scenario: Report usage
    Given product installed into environment which use a metered pricing
    When product application use a Usage API to increment a usage
    Then reported usage is recorded in Stripe against customer product subscription

  Scenario: Report usage for non-metered pricing product
    Given product installed into environment which not use a metered pricing
    When product application use a Usage API to increment a usage
    Then system will not failed, but return a response to application that this will not be done

  Scenario: Delayed usage report
    Given product installed into environment which use a metered pricing
    When product application use a Usage API to increment a usage and identified that this should be done not in a user real time
    Then reported usage will be recorded in Stripe against customer product subscription not in a user runtime (in background or on signout)

AB#7762

@vody vody added the enhancement New feature or request label Apr 1, 2021
@vody vody self-assigned this Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant