<s> from . . base import ShopifyResource <EOL> from shopify import mixins <EOL> from . transaction import Transaction <EOL> class Order ( ShopifyResource , mixins . Metafields , mixins . Events ) : <EOL> def close ( self ) : <EOL> self . _load_attributes_from_response ( self . post ( "<STR_LIT>" ) ) <EOL> def open ( self ) : <EOL> self . _load_attributes_from_response ( self . post ( "<STR_LIT>" ) ) <EOL> def cancel ( self , ** kwargs ) : <EOL> self . _load_attributes_from_response ( self . post ( "<STR_LIT>" , ** kwargs ) ) <EOL> def transactions ( self ) : <EOL> return Transaction . find ( order_id = self . id ) <EOL> def capture ( self , amount = "<STR_LIT>" ) : <EOL> return Transaction . create ( { "<STR_LIT>" : amount , "<STR_LIT>" : "<STR_LIT>" , "<STR_LIT>" : self . id } ) </s>
