Example #1
0
 def deliver_order(self, order_id,
                   carrier = None, tracking_number = None,
                   send_email = None):
     tracking = None
     if carrier or tracking_number:
         tracking = gmodel.tracking_data_t(carrier         = carrier,
                                           tracking_number = tracking_number)
     self.send_message(gmodel.deliver_order_t(
         google_order_number = order_id,
         tracking_data = tracking,
         send_email = send_email or None
         ))
Example #2
0
 def deliver_order(self,
                   order_id,
                   carrier=None,
                   tracking_number=None,
                   send_email=None):
     tracking = None
     if carrier or tracking_number:
         tracking = gmodel.tracking_data_t(carrier=carrier,
                                           tracking_number=tracking_number)
     self.send_message(
         gmodel.deliver_order_t(google_order_number=order_id,
                                tracking_data=tracking,
                                send_email=send_email or None))
Example #3
0
 def add_tracking_data(self, order_id, carrier, tracking_number):
     self.send_message(
         gmodel.add_tracking_data_t(google_order_number=order_id,
                                    tracking_data=gmodel.tracking_data_t(
                                        carrier=carrier,
                                        tracking_number=tracking_number)))
Example #4
0
 def add_tracking_data(self, order_id, carrier, tracking_number):
     self.send_message(gmodel.add_tracking_data_t(
         google_order_number = order_id,
         tracking_data = gmodel.tracking_data_t(carrier         = carrier,
                                                tracking_number = tracking_number)
         ))