Skip to content

Commit

Permalink
Merge pull request boto#867 from disruptek/mws_order_parsing
Browse files Browse the repository at this point in the history
fix parsing of monetary amounts in Orders API
  • Loading branch information
garnaat committed Jul 23, 2012
2 parents 7522ebe + e749c76 commit d26279b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions boto/mws/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,12 +582,12 @@ class GetProductCategoriesForASINResult(GetProductCategoriesResult):


class Order(ResponseElement):
OrderTotal = Element(ComplexAmount)
OrderTotal = Element(ComplexMoney)
ShippingAddress = Element()
PaymentExecutionDetail = Element(\
PaymentExecutionDetailItem=ElementList(\
PaymentExecutionDetailItem=Element(\
Payment=Element(ComplexAmount)
Payment=Element(ComplexMoney)
)
)
)
Expand All @@ -606,17 +606,17 @@ class GetOrderResult(ListOrdersResult):


class OrderItem(ResponseElement):
ItemPrice = Element(ComplexAmount)
ShippingPrice = Element(ComplexAmount)
GiftWrapPrice = Element(ComplexAmount)
ItemTax = Element(ComplexAmount)
ShippingTax = Element(ComplexAmount)
GiftWrapTax = Element(ComplexAmount)
ShippingDiscount = Element(ComplexAmount)
PromotionDiscount = Element(ComplexAmount)
ItemPrice = Element(ComplexMoney)
ShippingPrice = Element(ComplexMoney)
GiftWrapPrice = Element(ComplexMoney)
ItemTax = Element(ComplexMoney)
ShippingTax = Element(ComplexMoney)
GiftWrapTax = Element(ComplexMoney)
ShippingDiscount = Element(ComplexMoney)
PromotionDiscount = Element(ComplexMoney)
PromotionIds = SimpleList()
CODFee = Element(ComplexAmount)
CODFeeDiscount = Element(ComplexAmount)
CODFee = Element(ComplexMoney)
CODFeeDiscount = Element(ComplexMoney)


class ListOrderItemsResult(ResponseElement):
Expand Down

0 comments on commit d26279b

Please sign in to comment.