pull/715/head
Travis Fischer 2025-05-25 23:26:21 +07:00
rodzic a620de2002
commit 94836f6765
3 zmienionych plików z 126 dodań i 1 usunięć

Wyświetl plik

@ -0,0 +1,56 @@
import { defineConfig } from '@agentic/platform-schemas'
export default defineConfig({
name: 'test-pricing-3-plans',
originUrl: 'https://httpbin.org',
pricingPlans: [
{
name: 'Free',
slug: 'free',
features: [
'Unlimited images **with watermark**',
'No backend generation',
'No custom templates`'
],
lineItems: [
{
slug: 'base',
usageType: 'licensed',
amount: 0
}
]
},
{
name: 'Starter',
slug: 'starter',
features: [
'Unlimited images **without watermark**',
'Unlimited backend generation',
'No custom templates'
],
lineItems: [
{
slug: 'base',
usageType: 'licensed',
amount: 999 // $9.99 USD
}
]
},
{
name: 'Pro',
slug: 'pro',
features: [
'Unlimited images **without watermark**',
'Unlimited backend generation',
'Unlimited custom templates'
],
lineItems: [
{
slug: 'base',
usageType: 'licensed',
amount: 2999 // $29.99 USD
}
]
}
]
})

Wyświetl plik

@ -54,6 +54,74 @@ exports[`loadAgenticConfig > basic-raw-free-ts 1`] = `
}
`;
exports[`loadAgenticConfig > pricing-3-plans 1`] = `
{
"name": "test-pricing-3-plans",
"originAdapter": {
"location": "external",
"type": "raw",
},
"originUrl": "https://httpbin.org",
"pricingIntervals": [
"month",
],
"pricingPlans": [
{
"features": [
"Unlimited images **with watermark**",
"No backend generation",
"No custom templates\`",
],
"lineItems": [
{
"amount": 0,
"slug": "base",
"usageType": "licensed",
},
],
"name": "Free",
"slug": "free",
},
{
"features": [
"Unlimited images **without watermark**",
"Unlimited backend generation",
"No custom templates",
],
"interval": "month",
"lineItems": [
{
"amount": 999,
"interval": "month",
"slug": "base",
"usageType": "licensed",
},
],
"name": "Starter",
"slug": "starter",
},
{
"features": [
"Unlimited images **without watermark**",
"Unlimited backend generation",
"Unlimited custom templates",
],
"interval": "month",
"lineItems": [
{
"amount": 2999,
"interval": "month",
"slug": "base",
"usageType": "licensed",
},
],
"name": "Pro",
"slug": "pro",
},
],
}
`;
exports[`loadAgenticConfig > pricing-freemium 1`] = `
{
"name": "test-pricing-freemium",

Wyświetl plik

@ -9,7 +9,8 @@ const fixtures = [
'basic-raw-free-ts',
'basic-raw-free-json',
'pricing-freemium',
'pricing-pay-as-you-go'
'pricing-pay-as-you-go',
'pricing-3-plans'
]
const fixturesDir = path.join(