Details
Description
Steps:
1. Create a merchant
2. Deploy an order through deployment API or UI
3.Check the status of budget accrual status in the DB
Actual Result:
Budget Accrual status in the smb.orders is paused.
mysql> SELECT budgetAccrualStatus,merchant_id,state FROM smb.orders WHERE orders.merchant_id LIKE '%662014ac-ff61-4a53-8cf4-c67f0d6c0bb5%';
------------------------------------------------------------------
budgetAccrualStatus | merchant_id | state |
------------------------------------------------------------------
PAUSED | 662014ac-ff61-4a53-8cf4-c67f0d6c0bb5 | PROCESSED |
------------------------------------------------------------------
1 row in set (0.00 sec)
mysql> SELECT * FROM `st-tracker`.admaxCampaignBudgetAccrualStatus WHERE admaxCampaignID IN (SELECT id FROM `st-tracker`.admaxCampaigns WHERE accountID IN (SELECT id FROM tsacommon.accounts WHERE description LIKE '%662014ac-ff61-4a53-8cf4-c67f0d6c0bb5%'));
------------------------------------------
id | admaxCampaignID | startDate | endDate | status |
------------------------------------------
49 | 36 | 2016-02-02 | NULL | paused |
------------------------------------------
1 row in set (0.00 sec)
Expected :
Budget Accrual status should be Active on deployment through API or UI