woocommerce-paypal-payments/tests/integration/PHPUnit/Fixtures/DiscountPresets.php
2025-06-26 10:37:27 +02:00

26 lines
657 B
PHP

<?php
declare(strict_types=1);
namespace WooCommerce\PayPalCommerce\Tests\Integration\Fixtures;
class DiscountPresets
{
public static function get(): array
{
return [
'percentage_10' => [
'coupon_code' => 'TEST10PERCENT',
'type' => 'percent',
'amount' => '10'
],
'fixed_5' => [
'coupon_code' => 'TEST5FIXED',
'type' => 'fixed_cart',
'amount' => '5.00'
],
'manual_discount' => [
'fee' => ['name' => 'Test Discount', 'amount' => 3.50]
],
];
}
}