Add unit tests for EconomicCustomerModel parsing and validation

This commit is contained in:
Jeppe Bundgaard
2026-04-21 15:07:41 +02:00
parent 7d450e285e
commit 0b18433fdf
11 changed files with 1070 additions and 26 deletions
@@ -414,6 +414,17 @@ CREATE TABLE IF NOT EXISTS `stripe_module_orders` (
`updated_at` DATETIME NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
SQL,
'stripe_module_customers' => <<<'SQL'
CREATE TABLE IF NOT EXISTS `stripe_module_customers` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`email` VARCHAR(255) NOT NULL,
`customer_id` VARCHAR(255) NOT NULL,
`created_at` DATETIME NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `uniq_stripe_module_customers_email` (`email`),
KEY `idx_stripe_module_customers_customer_id` (`customer_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
SQL,
'stripe_payment_intents' => <<<'SQL'
CREATE TABLE IF NOT EXISTS `stripe_payment_intents` (