| Line 15... |
Line 15... |
| 15 |
t_transaction.createdOn = to_java_date(transaction.createdOn)
|
15 |
t_transaction.createdOn = to_java_date(transaction.createdOn)
|
| 16 |
t_transaction.transactionStatus = transaction.status
|
16 |
t_transaction.transactionStatus = transaction.status
|
| 17 |
t_transaction.statusDescription = transaction.status_message
|
17 |
t_transaction.statusDescription = transaction.status_message
|
| 18 |
t_transaction.customer_id = transaction.customer_id
|
18 |
t_transaction.customer_id = transaction.customer_id
|
| 19 |
t_transaction.shoppingCartid = transaction.shopping_cart_id
|
19 |
t_transaction.shoppingCartid = transaction.shopping_cart_id
|
| - |
|
20 |
t_transaction.coupon_code = transaction.coupon_code
|
| 20 |
t_transaction.orders = []
|
21 |
t_transaction.orders = []
|
| 21 |
#populate orders
|
22 |
#populate orders
|
| 22 |
for order in transaction.orders:
|
23 |
for order in transaction.orders:
|
| 23 |
t_order = to_t_order(order)
|
24 |
t_order = to_t_order(order)
|
| 24 |
t_transaction.orders.append(t_order)
|
25 |
t_transaction.orders.append(t_order)
|
| Line 42... |
Line 43... |
| 42 |
t_order.customer_state = order.customer_state
|
43 |
t_order.customer_state = order.customer_state
|
| 43 |
t_order.customer_email = order.customer_email
|
44 |
t_order.customer_email = order.customer_email
|
| 44 |
t_order.status = order.status
|
45 |
t_order.status = order.status
|
| 45 |
t_order.statusDescription = order.statusDescription
|
46 |
t_order.statusDescription = order.statusDescription
|
| 46 |
t_order.total_amount = order.total_amount
|
47 |
t_order.total_amount = order.total_amount
|
| 47 |
t_order.discounted_amount = order.discounted_amount
|
- |
|
| 48 |
t_order.total_weight = order.total_weight
|
48 |
t_order.total_weight = order.total_weight
|
| 49 |
t_order.created_timestamp = to_java_date(order.created_timestamp)
|
49 |
t_order.created_timestamp = to_java_date(order.created_timestamp)
|
| 50 |
t_order.invoice_number = order.invoice_number
|
50 |
t_order.invoice_number = order.invoice_number
|
| 51 |
t_order.billed_by = order.billed_by
|
51 |
t_order.billed_by = order.billed_by
|
| 52 |
t_order.accepted_timestamp = to_java_date(order.accepted_timestamp)
|
52 |
t_order.accepted_timestamp = to_java_date(order.accepted_timestamp)
|
| Line 76... |
Line 76... |
| 76 |
t_lineitem.model_name = lineitem.model_name
|
76 |
t_lineitem.model_name = lineitem.model_name
|
| 77 |
t_lineitem.extra_info = lineitem.extra_info
|
77 |
t_lineitem.extra_info = lineitem.extra_info
|
| 78 |
t_lineitem.unit_weight = lineitem.unit_weight
|
78 |
t_lineitem.unit_weight = lineitem.unit_weight
|
| 79 |
t_lineitem.unit_price = lineitem.unit_price
|
79 |
t_lineitem.unit_price = lineitem.unit_price
|
| 80 |
t_lineitem.total_price = lineitem.total_price
|
80 |
t_lineitem.total_price = lineitem.total_price
|
| 81 |
t_lineitem.discounted_price = lineitem.discounted_price
|
- |
|
| 82 |
t_lineitem.transfer_price = lineitem.transfer_price
|
81 |
t_lineitem.transfer_price = lineitem.transfer_price
|
| 83 |
t_lineitem.total_weight = lineitem.total_weight
|
82 |
t_lineitem.total_weight = lineitem.total_weight
|
| 84 |
t_lineitem.quantity = lineitem.quantity
|
83 |
t_lineitem.quantity = lineitem.quantity
|
| 85 |
return t_lineitem
|
84 |
return t_lineitem
|
| 86 |
|
85 |
|