| Line 6... |
Line 6... |
| 6 |
from shop2020.clients.InventoryClient import InventoryClient
|
6 |
from shop2020.clients.InventoryClient import InventoryClient
|
| 7 |
from shop2020.thriftpy.model.v1.user.ttypes import PromotionException
|
7 |
from shop2020.thriftpy.model.v1.user.ttypes import PromotionException
|
| 8 |
from shop2020.model.v1.user.impl import Dataservice
|
8 |
from shop2020.model.v1.user.impl import Dataservice
|
| 9 |
from shop2020.model.v1.user.impl.Dataservice import Promotion, Coupon, PromotionTracker
|
9 |
from shop2020.model.v1.user.impl.Dataservice import Promotion, Coupon, PromotionTracker
|
| 10 |
from shop2020.utils.Utils import to_py_date
|
10 |
from shop2020.utils.Utils import to_py_date
|
| 11 |
from shop2020.model.v1.user.promotionrules import rule_for_5perc_discount_on_5k_purchase
|
11 |
from shop2020.model.v1.user.promotionrules import rule_for_5perc_discount_on_5k_purchase, rule_500_off_on_MI310
|
| 12 |
|
12 |
|
| 13 |
from elixir import session
|
13 |
from elixir import session
|
| 14 |
import datetime
|
14 |
import datetime
|
| 15 |
|
15 |
|
| 16 |
def initialize(dbname = 'user'):
|
16 |
def initialize(dbname = 'user'):
|