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 ))
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))
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)))
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) ))