| Line 14... |
Line 14... |
| 14 |
AmazonFbaSalesSnapshot as T_AmazonFbaSalesSnapshot, SnapdealOrder as T_SnapdealOrder, \
|
14 |
AmazonFbaSalesSnapshot as T_AmazonFbaSalesSnapshot, SnapdealOrder as T_SnapdealOrder, \
|
| 15 |
FlipkartOrder as flipkartOrder, AmazonFbaOrderReturns as amazonFbaOrderReturn, \
|
15 |
FlipkartOrder as flipkartOrder, AmazonFbaOrderReturns as amazonFbaOrderReturn, \
|
| 16 |
FlipkartAdvantageOrder as flipkartAdvantageOrder, HsOrder as homeshopOrder, ReturnTransaction as RTransaction, \
|
16 |
FlipkartAdvantageOrder as flipkartAdvantageOrder, HsOrder as homeshopOrder, ReturnTransaction as RTransaction, \
|
| 17 |
ReturnOrderInfo as returnOrderInfo, ReturnTransactionStatus, ReturnTxnResolutionStatus, \
|
17 |
ReturnOrderInfo as returnOrderInfo, ReturnTransactionStatus, ReturnTxnResolutionStatus, \
|
| 18 |
ReturnPickupRequest as RPickupRequest, ReturnTxnPickupStatus, Creditor as TCreditor, \
|
18 |
ReturnPickupRequest as RPickupRequest, ReturnTxnPickupStatus, Creditor as TCreditor, \
|
| 19 |
CreditHistory as TCreditHistory, UserSanction as TUserSanction, CreditTxnType, LoanHistory as TLoanHistory
|
19 |
CreditHistory as TCreditHistory, UserSanction as TUserSanction, CreditTxnType, LoanHistory as TLoanHistory, \
|
| - |
|
20 |
PaginatedCreditHistory as TPaginatedCreditHistory, PaginatedLoanHistory as TPaginatedLoanHistory, \
|
| - |
|
21 |
PaginatedUserSanction as TPaginatedUserSanction
|
| 20 |
|
22 |
|
| 21 |
|
23 |
|
| 22 |
from shop2020.utils.Utils import to_java_date
|
24 |
from shop2020.utils.Utils import to_java_date
|
| 23 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
25 |
from shop2020.model.v1.order.impl.DataService import Alert, Transaction
|
| 24 |
import datetime
|
26 |
import datetime
|
| Line 605... |
Line 607... |
| 605 |
if loanHistory.invoiceNumber:
|
607 |
if loanHistory.invoiceNumber:
|
| 606 |
t_LoanHistory.invoiceNumber = loanHistory.invoiceNumber
|
608 |
t_LoanHistory.invoiceNumber = loanHistory.invoiceNumber
|
| 607 |
|
609 |
|
| 608 |
return t_LoanHistory
|
610 |
return t_LoanHistory
|
| 609 |
|
611 |
|
| - |
|
612 |
def to_t_PaginatedCreditHostory(hasMore, totalCount, creditHistoryList):
|
| - |
|
613 |
t_PaginatedCreditHostory = TPaginatedCreditHistory()
|
| - |
|
614 |
t_PaginatedCreditHostory.hasMore = hasMore
|
| - |
|
615 |
t_PaginatedCreditHostory.totalCount = totalCount
|
| - |
|
616 |
creditHistory = []
|
| - |
|
617 |
for credit_history in creditHistoryList:
|
| - |
|
618 |
creditHistory.append(to_t_CreditHistory(credit_history))
|
| - |
|
619 |
t_PaginatedCreditHostory.creditHistoryList = creditHistory
|
| - |
|
620 |
|
| - |
|
621 |
return t_PaginatedCreditHostory
|
| - |
|
622 |
|
| - |
|
623 |
def to_t_PaginatedLoanHistory(hasMore, totalCount, loanHistoryList):
|
| - |
|
624 |
t_PaginatedLoanHistory = TPaginatedLoanHistory()
|
| - |
|
625 |
t_PaginatedLoanHistory.hasMore = hasMore
|
| - |
|
626 |
t_PaginatedLoanHistory.totalCount = totalCount
|
| - |
|
627 |
loanHistory = []
|
| - |
|
628 |
for loan_history in loanHistoryList:
|
| - |
|
629 |
loanHistory.append(to_t_LoanHistory(loan_history))
|
| - |
|
630 |
t_PaginatedLoanHistory.loanHistoryList = loanHistory
|
| - |
|
631 |
|
| - |
|
632 |
return t_PaginatedLoanHistory
|
| - |
|
633 |
|
| - |
|
634 |
def to_t_PaginatedUserSanction(hasMore, totalCount, userSanctionList):
|
| - |
|
635 |
t_PaginatedUserSanction = TPaginatedUserSanction()
|
| - |
|
636 |
t_PaginatedUserSanction.hasMore = hasMore
|
| - |
|
637 |
t_PaginatedUserSanction.totalCount = totalCount
|
| - |
|
638 |
t_PaginatedUserSanction.userSanctions = userSanctionList
|
| - |
|
639 |
|
| - |
|
640 |
return t_PaginatedUserSanction
|
| - |
|
641 |
|