Skip to content

Commit

Permalink
Merge pull request #67 from Open-Data-Product-Initiative/pricing-as-code
Browse files Browse the repository at this point in the history
updated pricing as code draft examples
  • Loading branch information
kyyberi authored Sep 9, 2024
2 parents 7040527 + c5046c0 commit 5395f6b
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions source/examples/Pricing/pricing-neutral.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

pricingPlans:
declarative:
en:
- name: Premium subscription 1 month
priceCurrency: EUR
price: 50
billingDuration: month
unit: recurring
maxTransactionQuantity: 200000
offering:
- High Quality Pets data
- High amount of transactions
- Billed monthly
executable:
- name: Premium subscription 1 year
type: Stripe
reference: urls to Stripe docs
create:
spec:
- cmd: stripe products create \
params: '--name="Premium subscription 1 year"'
- cmd: stripe prices create \
params: '--currency=eur --unit-amount=50 -d "recurring[interval]"=month -d "product_data[name]"="Premium subscription 1 year"'
read:
spec:
- cmd: stripe products get \
params: '--name="Premium subscription 1 year"'
update:
spec:
- cmd: stripe products update \
params: '--name="Premium subscription 1 year"'
delete:
spec:
- cmd: stripe products delete \
params: '--name="Premium subscription 1 year"'





2 changes: 1 addition & 1 deletion source/examples/Pricing/pricing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pricingPlans:
- name: Premium subscription 1 year
type: Stripe
# On Stripe to get started with Payment Links, create a product, then use that product to create a price.
reference: https://prometheus.io/docs/prometheus/latest/querying/basics/
reference: urls to Stripe docs

# CREATE: Here we want to provide YAML or alike as code in order to create the product in Stripe
# Stripe supports standard pricing (charging the same price for each unit—either
Expand Down

0 comments on commit 5395f6b

Please sign in to comment.