kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
pull/715/head
rodzic
a620de2002
commit
94836f6765
|
@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
})
|
|
@ -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",
|
||||
|
|
|
@ -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(
|
||||
|
|
Ładowanie…
Reference in New Issue