trex-model 1.5.3__tar.gz → 1.5.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of trex-model might be problematic. Click here for more details.
- {trex-model-1.5.3 → trex-model-1.5.5}/PKG-INFO +1 -1
- {trex-model-1.5.3 → trex-model-1.5.5}/setup.py +1 -1
- {trex-model-1.5.3 → trex-model-1.5.5}/trex_model.egg-info/PKG-INFO +1 -1
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/customer_model_helpers.py +3 -1
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/redeem_models.py +2 -2
- {trex-model-1.5.3 → trex-model-1.5.5}/LICENSE +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/MANIFEST.in +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/README.md +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/setup.cfg +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trex_model.egg-info/SOURCES.txt +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trex_model.egg-info/dependency_links.txt +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trex_model.egg-info/requires.txt +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trex_model.egg-info/top_level.txt +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/__init__.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/conf.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/__init__.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/__init__.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/admin_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/analytic_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/app_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/coporate_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/customer_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/fb_subsriber_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/import_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/inventory_model.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/loyalty_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/lucky_draw_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/marketing_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/membership_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/merchant_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/message_model_helper.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/message_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/model_decorators.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/ndb_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/pos_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/prepaid_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/product_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/program_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/rating_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/recruit_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/redemption_catalogue_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/referral_program_model.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/reward_model_helpers.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/reward_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/spending_base_program_model.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/system_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/task_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/test_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/transaction_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/user_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/voucher_models.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/merchant_helpers.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/model_decorator.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/prepaid_helpers.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/pos_conf.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/program_conf.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/utils/__init__.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/utils/gcloud/__init__.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/utils/gcloud/datastore_util.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/utils/model/__init__.py +0 -0
- {trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/utils/model/model_util.py +0 -0
|
@@ -195,7 +195,8 @@ def update_customer_entiteld_voucher_summary_with_new_voucher_info(customer_enti
|
|
|
195
195
|
if voucher_summary:
|
|
196
196
|
logger.debug('Found voucher summary, thus going to add new redeem info')
|
|
197
197
|
customer_entitled_voucher_summary[merchant_voucher_key]['redeem_info_list'].extend(redeem_info_list)
|
|
198
|
-
customer_entitled_voucher_summary[merchant_voucher_key]['
|
|
198
|
+
customer_entitled_voucher_summary[merchant_voucher_key]['count'] = len(customer_entitled_voucher_summary[merchant_voucher_key]['redeem_info_list'])
|
|
199
|
+
customer_entitled_voucher_summary[merchant_voucher_key]['amount'] = len(customer_entitled_voucher_summary[merchant_voucher_key]['redeem_info_list'])
|
|
199
200
|
|
|
200
201
|
else:
|
|
201
202
|
logger.debug('Not found voucher summary, thus going to create it')
|
|
@@ -261,6 +262,7 @@ def update_customer_entiteld_voucher_summary_after_removed_voucher(customer_enti
|
|
|
261
262
|
else:
|
|
262
263
|
customer_entitled_voucher_summary[merchant_voucher_key]['redeem_info_list'] = new_redeem_info_list
|
|
263
264
|
customer_entitled_voucher_summary[merchant_voucher_key]['count'] = len(new_redeem_info_list)
|
|
265
|
+
customer_entitled_voucher_summary[merchant_voucher_key]['amount'] = len(new_redeem_info_list)
|
|
264
266
|
|
|
265
267
|
return customer_entitled_voucher_summary
|
|
266
268
|
|
|
@@ -365,7 +365,7 @@ class CustomerRedemption(BaseNModel, DictModel):
|
|
|
365
365
|
redeemed_summary = {
|
|
366
366
|
reward_format : {
|
|
367
367
|
|
|
368
|
-
'amount' : redeemed_amount,
|
|
368
|
+
'amount' : float(redeemed_amount),
|
|
369
369
|
'customer_point_rewards' : redeemed_reward_details_list
|
|
370
370
|
}
|
|
371
371
|
}
|
|
@@ -448,7 +448,7 @@ class CustomerRedemption(BaseNModel, DictModel):
|
|
|
448
448
|
redeemed_summary = {
|
|
449
449
|
program_conf.REWARD_FORMAT_PREPAID: {
|
|
450
450
|
|
|
451
|
-
'amount' : redeemed_amount,
|
|
451
|
+
'amount' : float(redeemed_amount),
|
|
452
452
|
'customer_prepaid_rewards' : redeemed_reward_details_list
|
|
453
453
|
}
|
|
454
454
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/redemption_catalogue_models.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{trex-model-1.5.3 → trex-model-1.5.5}/trexmodel/models/datastore/spending_base_program_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|