| Line 31... |
Line 31... |
| 31 |
t_transaction.coupon_code = transaction.coupon_code
|
31 |
t_transaction.coupon_code = transaction.coupon_code
|
| 32 |
t_transaction.sessionSource = transaction.session_source
|
32 |
t_transaction.sessionSource = transaction.session_source
|
| 33 |
t_transaction.sessionStartTime = to_java_date(transaction.session_start_time)
|
33 |
t_transaction.sessionStartTime = to_java_date(transaction.session_start_time)
|
| 34 |
t_transaction.firstSource = transaction.first_source
|
34 |
t_transaction.firstSource = transaction.first_source
|
| 35 |
t_transaction.firstSourceTime = to_java_date(transaction.first_source_start_time)
|
35 |
t_transaction.firstSourceTime = to_java_date(transaction.first_source_start_time)
|
| - |
|
36 |
t_transaction.totalShippingCost = transaction.totalShippingCost
|
| 36 |
t_transaction.orders = []
|
37 |
t_transaction.orders = []
|
| 37 |
#populate orders
|
38 |
#populate orders
|
| 38 |
for order in transaction.orders:
|
39 |
for order in transaction.orders:
|
| 39 |
t_order = to_t_order(order)
|
40 |
t_order = to_t_order(order)
|
| 40 |
t_transaction.orders.append(t_order)
|
41 |
t_transaction.orders.append(t_order)
|
| Line 127... |
Line 128... |
| 127 |
t_order.dataProtectionInsurer = order.dataProtectionInsurer
|
128 |
t_order.dataProtectionInsurer = order.dataProtectionInsurer
|
| 128 |
t_order.dataProtectionAmount = order.dataProtectionAmount
|
129 |
t_order.dataProtectionAmount = order.dataProtectionAmount
|
| 129 |
t_order.taxType = order.taxType
|
130 |
t_order.taxType = order.taxType
|
| 130 |
if order.logisticsTransactionId:
|
131 |
if order.logisticsTransactionId:
|
| 131 |
t_order.logisticsTransactionId = order.logisticsTransactionId
|
132 |
t_order.logisticsTransactionId = order.logisticsTransactionId
|
| - |
|
133 |
t_order.shippingCost = order.shippingCost
|
| - |
|
134 |
t_order.codCharges = order.codCharges
|
| 132 |
return t_order
|
135 |
return t_order
|
| 133 |
|
136 |
|
| 134 |
def to_t_lineitem(lineitem):
|
137 |
def to_t_lineitem(lineitem):
|
| 135 |
t_lineitem = T_LineItem()
|
138 |
t_lineitem = T_LineItem()
|
| 136 |
t_lineitem.id = lineitem.id
|
139 |
t_lineitem.id = lineitem.id
|