コード例 #1
0
 def get_account_allocations(self):
     allocation_data = self.checkout_session._get('accounts', 'allocations',
                                                  '{}')
     return Allocations.deserialize(allocation_data)
コード例 #2
0
 def test_deserialize(self):
     obj = Allocations.deserialize('{"C": "10.00", "D": "12.00"}')
     items = list(obj.items())
     self.assertCountEqual(items, [('C', D('10.00')), ('D', D('12.00'))])
コード例 #3
0
 def test_deserialize(self):
     obj = Allocations.deserialize('{"C": "10.00", "D": "12.00"}')
     items = list(obj.items())
     self.assertCountEqual(items, [('C', D('10.00')), ('D', D('12.00'))])
コード例 #4
0
 def get_account_allocations(self):
     allocation_data = self.checkout_session._get('accounts', 'allocations', '{}')
     return Allocations.deserialize(allocation_data)
コード例 #5
0
 def get_account_allocations(self):
     allocation_data = self.checkout_session._get("accounts", "allocations",
                                                  "{}")
     return Allocations.deserialize(allocation_data)