...
The first validation we need to do is to know if this feature flag has been enabled, it is responsible for enabling the service fee calculation in the user's request. If this feature flag is disabled, no fee calculation will be calculated.
Title | Description | Link |
---|---|---|
Enable Get Fees and Discount by Brand | Feature flag responsible for enabling fees calculations. | |
Tiered Delivery Fees | Feature flag responsible for controlling the values that will be used for each fee. |
enable-get-fees-and-discount-by-brand
Code Changes
The final solution was based on the following pull requests:
...
Scenarios | Description | Sum |
---|---|---|
The business want to calculate subtotal, tax and service fee | This sum will be based on the values obtained in sanity, for this, the subtotal, tax and service fee options must be activated. | Crown Coins = Subtotal + Tax + Service Fee |
The business want to calculate only subtotal and service fee | This sum will be based on the values obtained in sanity, for this, only subtotal and service fee options must be activated. | Crown Coins = Subtotal + Service Fee |
The business will include the full price | This sum will be based on the values obtained in sanity, for this, all options must be activated | Crown Coins = Subtotal + Tax + Delivery Fee + Service Fee |
The business will not include the full price | This sum will be based on the values obtained in sanity, for this, only subtotal option must be activated. | Crown Coins = Subtotal |
The business will not give crown coins | This sum is equal to 0 and will be based on the values obtained in sanity, for this all options must be deactivated | Crown Coins = 0 |
The business will include the subtotal and service fee with discount | This sum will be based on the values obtained in sanity, for this, only subtotal and service fee options must be activated. | Crown Coins = Subtotal + ( Service Fee - Service Fee Discount ) |
The business will include the subtotal and service fee with feature flag deactivated | This sum will be based on the values obtained in sanity, for this, only subtotal and service fee options must be activated. The feature flag must be turned off. | Crown Coins = Subtotal |
DMP Process
To carry out the test, you must have access to the development environment DMP so that it is possible to change the order to the dropped off status, because loyalty calculations will only be calculated after the order is delivered and confirmed by the DMP. For PLK ES you can use this link: https://euw3-dev-plk-exp-tablet.com.rbi.tools/orders-management
...