Commits

Nick Meharry committed e77624e

Amazon wants the shipping and taxes info namespaced under Charges for the SetContractCharges API.

Comments (0)

Files changed (2)

     'SetContractCharges': {
         'params': {
             'PurchaseContractId': True,
-            'Tax.Amount': True,
-            'Tax.CurrencyCode': True,
-            'Shipping.Amount': True,
-            'Shipping.CurrencyCode': True,
+            'Charges.Tax.Amount': True,
+            'Charges.Tax.CurrencyCode': True,
+            'Charges.Shipping.Amount': True,
+            'Charges.Shipping.CurrencyCode': True,
         },
     },
     'CompletePurchaseContract': {
         try:
             params = {
                 'PurchaseContractId': self.id,
-                'Tax.Amount': str(self.order.tax),
-                'Tax.CurrencyCode': 'USD',
-                'Shipping.Amount': str(self.order.shipping),
-                'Shipping.CurrencyCode': 'USD',
+                'Charges.Tax.Amount': str(self.order.tax),
+                'Charges.Tax.CurrencyCode': 'USD',
+                'Charges.Shipping.Amount': str(self.order.shipping),
+                'Charges.Shipping.CurrencyCode': 'USD',
             }
             make_request('POST', 'SetContractCharges', params, self.settings)
             order_ids, request_id = make_request(