Opens a pdf of a confirmation

        :param confirmation_id: the confirmation id
        :return: dict
519947
def confirmation_pdf(self, confirmation_id):
        
        return self._create_get_request(resource=CONFIRMATIONS, billomat_id=confirmation_id, command=PDF)
839647
def mark_confirmation_as_unclear(self, confirmation_id):
        
        return self._create_put_request(
            resource=CONFIRMATIONS,
            billomat_id=confirmation_id,
            command=UNCLEAR,
        )
168935
public void acceptConfirmation() {
        String action = "Clicking 'OK' on a confirmation";
        String expected = "Confirmation is present to be clicked";
        if (isNotConfirmation(action, expected)) {
            return;
        }
        accept(action, expected, "confirmation");
    }
210060
def get_page_as_pdf(self, page_id):
        
        headers = self.form_token_headers
        url = 'spaces/flyingpdf/pdfpageexport.action?pageId={pageId}'.format(pageId=page_id)
        return self.get(url, headers=headers, not_json_response=True)
755008
def get_document(self, document_id):
        
        key = 'doc.%s.%s' % (self.name, decode(document_id))
        return decode_dict(self.db.hgetall(key))
939243
def handleConfirm(page, message)
      val = @procs[:confirm].map { |handler| handler.call(page, message) }.last
      val.nil? || !!val
    end
22653
def generate_confirmation_token(self, user):
        
        data = [str(user.id), self.hash_data(user.email)]
        return self.security.confirm_serializer.dumps(data)
318085
public function actionConfirm($id) {
    $model = $this->findModel($id);
    $event = $this->getUserEvent($model);

    $this->trigger(self::EVENT_BEFORE_CONFIRM, $event);
    $model->confirm();
    $this->trigger(self::EVENT_AFTER_CONFIRM, $event);

    Yii::$app->getSession()->setFlash('success', Yii::t('users', 'User has been confirmed'));

    return $this->redirect(Url::previous('actions-redirect'));
  }
1328295
def show(self):
        """"""
        try:
            if platform.system().lower().startswith('darwin'):
                subprocess.call(['open', self.pdf])
            elif os.name == 'nt':
                os.startfile(self.pdf)
            elif os.name == 'posix':
                subprocess.call(['xdg-open', self.pdf])
            else:
                raise IOError("")
        except IOError:
            log.info("Unable to open the pdf. Try opening it manually:")
            log.info(self.pdf)
1002513
def get_invoice(invoice_id_or_number, format = :xml)
      request_params = {}
      headers        = {}

      headers.merge!("Accept" => "application/pdf") if format == :pdf

      url  = "#{@xero_url}/Invoices/#{CGI.escape(invoice_id_or_number)}"

      response = http_get(@client, url, request_params, headers)

      if format == :pdf
        Tempfile.open(invoice_id_or_number) do |f|
          f.write(response)
          f
        end
      else
        parse_response(response, {:request_params => request_params}, {:request_signature => 'GET/Invoice'})
      end
    end
710596
def get_confirmation_url(email, request, name="email_registration_confirm", **kwargs):
    
    return request.build_absolute_uri(
        reverse(name, kwargs={"code": get_confirmation_code(email, request, **kwargs)})
    )
1019786
def _verified_content_type_from_id(content_type_id):
    # type: (int) -> ContentType
    
    try:
        return ContentType(content_type_id)
    except ValueError as error:
        raise UnknownIdentityError("Unknown content type {}".format(content_type_id), error)
770170
def confirm(self, batch_id=None, filename=None):
        
        if batch_id or filename:
            export_history = self.history_model.objects.using(self.using).filter(
                Q(batch_id=batch_id) | Q(filename=filename),
                sent=True,
                confirmation_code__isnull=True,
            )
        else:
            export_history = self.history_model.objects.using(self.using).filter(
                sent=True, confirmation_code__isnull=True
            )
        if export_history.count() == 0:
            raise ConfirmationError(
                "Nothing to do. No history of sent and unconfirmed files"
            )
        else:
            confirmation_code = ConfirmationCode()
            export_history.update(
                confirmation_code=confirmation_code.identifier,
                confirmation_datetime=get_utcnow(),
            )
        return confirmation_code.identifier
442871
public function orderConfirmationAction(Request $request, $id)
    {
        $locale = $this->getLocale($request);

        $this->get('translator')->setLocale($locale);

        try {
            $orderApiEntity = $this->getOrderManager()->findByIdAndLocale($id, $locale);
            $order = $orderApiEntity->getEntity();
        } catch (OrderNotFoundException $exc) {
            throw new OrderNotFoundException($id);
        }

        $pdf = $this->getPdfManager()->createOrderConfirmation($orderApiEntity);

        $pdfName = $this->getPdfManager()->getPdfName($order);

        return new Response(
            $pdf,
            200,
            array(
                'Content-Type' => 'application/pdf',
                'Content-Disposition' => 'attachment; filename="' . $pdfName . '"'
            )
        );
    }
558697
def confirmation(self, apdu):
        """"""
        if _debug: ClientSSM._debug("confirmation %r", apdu)

        if self.state == SEGMENTED_REQUEST:
            self.segmented_request(apdu)
        elif self.state == AWAIT_CONFIRMATION:
            self.await_confirmation(apdu)
        elif self.state == SEGMENTED_CONFIRMATION:
            self.segmented_confirmation(apdu)
        else:
            raise RuntimeError("invalid state")
432753
private void confirmAndForceQuitAction(final Long actionId) {
        /* Display the confirmation */
        final ConfirmationDialog confirmDialog = new ConfirmationDialog(
                i18n.getMessage("caption.forcequit.action.confirmbox"),
                i18n.getMessage("message.forcequit.action.confirm"), i18n.getMessage(UIMessageIdProvider.BUTTON_OK),
                i18n.getMessage(UIMessageIdProvider.BUTTON_CANCEL), ok -> {
                    if (!ok) {
                        return;
                    }
                    final boolean cancelResult = forceQuitActiveAction(actionId);
                    if (cancelResult) {
                        populateAndUpdateTargetDetails(selectedTarget);
                        notification.displaySuccess(i18n.getMessage("message.forcequit.action.success"));
                    } else {
                        notification.displayValidationError(i18n.getMessage("message.forcequit.action.failed"));
                    }
                }, FontAwesome.WARNING, UIComponentIdProvider.CONFIRMATION_POPUP_ID, null);
        UI.getCurrent().addWindow(confirmDialog.getWindow());

        confirmDialog.getWindow().bringToFront();
    }
483977
def update_confirmation_comment(self, confirmation_comment_id, confirmation_comment_dict):
        
        return self._create_put_request(
            resource=CONFIRMATION_COMMENTS,
            billomat_id=confirmation_comment_id,
            send_data=confirmation_comment_dict
        )