diff --git a/source/examples/Pricing/pricing.yml b/source/examples/Pricing/pricing.yml new file mode 100644 index 0000000..3966eeb --- /dev/null +++ b/source/examples/Pricing/pricing.yml @@ -0,0 +1,58 @@ +pricingPlans: + declarative: + en: + - name: Premium subscription 1 month + priceCurrency: EUR + price: 50.00 + 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 + # 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/ + + # 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 + # one time or recurring) and Customer chooses price (letting your customer specify + # the price). It doesn’t support advanced options like package pricing, graduated + # pricing, or volume pricing. Additionally, Customer choose prices currently doesn’t + # support recurring payments or donations. https://docs.stripe.com/payment-links/api + + create: + spec: |- + stripe products create \ + --name="Premium subscription 1 year" + + stripe prices create \ + --currency=eur \ + --unit-amount=50 \ + -d "recurring[interval]"=month \ + -d "product_data[name]"="Premium subscription 1 year" + + # MODIFY: Here we want to provide YAML or alike as code in order to modify the product in Stripe + + update: + spec: |- + - update the product + - update the price + + # RETIRE: Here we want to provide YAML or alike as code in order to retire the product in Stripe + + retire: + spec: |- + - retire the product + + # PURCHASE: Here we want to generate active link or other information + # to ignite the purchase on Stripe + + purchase: + spec: |- + - generate or get the link in order to provide method for client to ignite purchase process + +