Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
// File generated from our OpenAPI spec
|
|
import { StripeResource } from '../StripeResource.js';
|
|
const stripeMethod = StripeResource.method;
|
|
export const Products = StripeResource.extend({
|
|
create: stripeMethod({ method: 'POST', fullPath: '/v1/products' }),
|
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/products/{id}' }),
|
|
update: stripeMethod({ method: 'POST', fullPath: '/v1/products/{id}' }),
|
|
list: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/products',
|
|
methodType: 'list',
|
|
}),
|
|
del: stripeMethod({ method: 'DELETE', fullPath: '/v1/products/{id}' }),
|
|
createFeature: stripeMethod({
|
|
method: 'POST',
|
|
fullPath: '/v1/products/{product}/features',
|
|
}),
|
|
deleteFeature: stripeMethod({
|
|
method: 'DELETE',
|
|
fullPath: '/v1/products/{product}/features/{id}',
|
|
}),
|
|
listFeatures: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/products/{product}/features',
|
|
methodType: 'list',
|
|
}),
|
|
retrieveFeature: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/products/{product}/features/{id}',
|
|
}),
|
|
search: stripeMethod({
|
|
method: 'GET',
|
|
fullPath: '/v1/products/search',
|
|
methodType: 'search',
|
|
}),
|
|
});
|