# Weekly content subscription — $1.99 USDC every 7 days.
#
# Run locally:
#   pay --sandbox server start weekly.yml
#
# Activate from another terminal:
#   pay --sandbox curl http://127.0.0.1:1402/api/v1/daily-brief

name: weekly-daily-brief
subdomain: weekly-daily-brief
title: 'Weekly Daily Brief'
description: 'Lower-priced, higher-cadence subscription — $1.99 USDC every week.'
category: data
version: v1

routing:
  type: respond
  # type: proxy
  # url: https://api.example.com/

operator:
  currencies:
    usd: ['USDC']
  network: localnet
  fee_payer: true

endpoints:
  - method: GET
    path: 'api/v1/daily-brief'
    resource: 'daily-brief'
    description: 'Daily market brief — weekly subscription.'
    subscription:
      period: '1w'
      price_usd: 1.99
      currency: USDC
