diff --git a/README.md b/README.md index 033dcc8..2d259ff 100644 --- a/README.md +++ b/README.md @@ -81,9 +81,9 @@ Example `test_fixtures.json`: "quantity": 1 }, "valid_discount_code": "PROMO10", - "expected_discount_reduction": 1.0, + "expected_discount_percentage": 10.0, "valid_discount_code_2": "PROMO20", - "expected_discount_reduction_2": 1.8, + "expected_discount_percentage_2": 20.0, "valid_fixed_discount_code": "FIXED5", "expected_fixed_discount_reduction": 5.0, "known_customer": { @@ -120,8 +120,8 @@ Example `test_fixtures.json`: - `valid_item`: The SKU and expected price (in major units, e.g., `10.00`) of the item used in tests. - **Discounts Configuration**: - - `valid_discount_code` & `expected_discount_reduction`: **Required** for basic discount flow tests. The code must be valid on your server, and the reduction is the expected amount in major units. - - `valid_discount_code_2` & `expected_discount_reduction_2`: **Optional**. Used for testing multiple discount codes applied sequentially. If your server does not support multiple discounts or you don't configure this, the corresponding test will be skipped. + - `valid_discount_code` & `expected_discount_percentage`: **Required** for basic discount flow tests. The code must be valid on your server, and the percentage is expressed as a number from 0 to 100. + - `valid_discount_code_2` & `expected_discount_percentage_2`: **Optional**. Used for testing multiple discount codes applied sequentially. If your server does not support multiple discounts or you don't configure this, the corresponding test will be skipped. - `valid_fixed_discount_code` & `expected_fixed_discount_reduction`: **Optional**. Used for testing fixed-amount discounts. If your server only supports percentage discounts or you don't configure this, the test will be skipped. - **Fulfillment Configuration**: - `known_customer`: **Optional**. A buyer your server recognizes by email and stores addresses for, with the stored address contents (response-schema field names). Used by the stored-address injection, selection, and reuse tests; each skips if this is not configured. Address ids are read from your server's responses, so only the contents must match.