diff --git a/packages/composable-cli/src/commands/generate/d2c/d2c-command.tsx b/packages/composable-cli/src/commands/generate/d2c/d2c-command.tsx index 56a25974..b83f71ca 100644 --- a/packages/composable-cli/src/commands/generate/d2c/d2c-command.tsx +++ b/packages/composable-cli/src/commands/generate/d2c/d2c-command.tsx @@ -629,7 +629,7 @@ type PaymentTypeOptions = epPaymentsStripeAccountId: string epPaymentsStripePublishableKey: string } - | { paymentGatewayType: "None" } + | { paymentGatewayType: "Manual" } type PlpTypeOptions = | { @@ -678,8 +678,8 @@ async function schematicOptionPrompts(): Promise<{ value: "EP Payments", }, { - name: "None", - value: "None", + name: "Basic (quick start)", + value: "Manual", }, ], }, @@ -688,7 +688,7 @@ async function schematicOptionPrompts(): Promise<{ const paymentGateway = paymentGatewayType === "EP Payments" ? await epPaymentsSchematicPrompts() - : { paymentGatewayType: "None" as const } + : { paymentGatewayType: "Manual" as const } return { plp, diff --git a/packages/d2c-schematics/checkout/index.ts b/packages/d2c-schematics/checkout/index.ts index 475cda39..3fc84692 100644 --- a/packages/d2c-schematics/checkout/index.ts +++ b/packages/d2c-schematics/checkout/index.ts @@ -38,18 +38,20 @@ export default function (options: CheckoutOptions): Rule { }), move(options.path || ""), ]), - MergeStrategy.Overwrite + MergeStrategy.Overwrite, ), ]) } } function resolveGatewaySchematic( - gateway: CheckoutOptions["paymentGatewayType"] + gateway: CheckoutOptions["paymentGatewayType"], ): string { switch (gateway) { case "EP Payments": return "ep-payments-payment-gateway" + case "Manual": + return "manual-payment-gateway" case "None": return "none" default: diff --git a/packages/d2c-schematics/checkout/schema.json b/packages/d2c-schematics/checkout/schema.json index fc20395b..d6896c77 100644 --- a/packages/d2c-schematics/checkout/schema.json +++ b/packages/d2c-schematics/checkout/schema.json @@ -33,7 +33,7 @@ "paymentGatewayType": { "description": "The type of payment gateway to use for your checkout experience.", "type": "string", - "enum": ["EP Payments", "None"], + "enum": ["EP Payments", "Manual", "None"], "x-prompt": "Which payment gateway do you want to use?" }, "epccClientId": { diff --git a/packages/d2c-schematics/d2c/schema.json b/packages/d2c-schematics/d2c/schema.json index d8a95766..926f1fa0 100644 --- a/packages/d2c-schematics/d2c/schema.json +++ b/packages/d2c-schematics/d2c/schema.json @@ -84,7 +84,7 @@ "plpType": { "description": "The type of product list page to use.", "type": "string", - "enum": ["Algolia", "None"] + "enum": ["Algolia", "Manual", "None"] } }, "required": ["name", "epccClientId", "epccClientSecret", "epccEndpointUrl"]