主权项 |
1. A method for processing one or more items identified by a buyer for purchase from a merchant, comprising:
receiving, by one or more computing devices, a description of one or more items identified by a buyer for purchase in an electronic commerce transaction, the description of the one or more items comprising tax rules applicable to each item, each item comprising a different tax rule; responsive to receiving the description, generating, by the one or more computing devices, a hierarchical data structure, based on the description of the one or more items, stored in memory and including a shopping cart object that represents an electronic shopping cart holding the one or more items and including, for each item, an item object that represents the item and stores information associated with the item, the shopping cart object at a root of the hierarchical data structure and the item object beneath the shopping cart object in the hierarchical data structure; identifying, by the one or more computing devices, one or more objects in the hierarchical data structure having a specific characteristic; including, by the one or more computing devices, in each identified object, a tag associated with the characteristic for processing the object to generate purchasing information; executing, by the one or more computing devices, a processing strategy on the hierarchical data structure to generate purchasing information describing the transaction involving the items, the generated purchasing information stored in the hierarchical data structure, wherein the purchasing information comprises tax information applicable to the transaction based on the tax rules applicable to each item from the received description of the one or more items; executing, by the one or more computing devices, a display preprocessing strategy on the hierarchical data structure to create display information describing a display of the generated purchasing information, wherein the display information comprises the tax information applicable to the transaction; and transmitting, by the one or more computing devices, the display information to the buyer for generation of the display. |