{% extends "passerelle/manage/service_view.html" %}
{% load i18n passerelle %}

{% block description %}
{% endblock %}

{% block endpoints %}
<ul>
<li>{% trans 'Get invoice history list:' %}
  {% url 'stub-invoices-invoices-history' slug=object.slug as invoices_history_url %}
  <a href="{{ invoices_history_url }}">{{ site_base_uri }}{{ invoices_history_url }}?NameID=...</a>
</li>
<li>{% trans 'Get invoice list:' %}
  {% url 'stub-invoices-invoices' slug=object.slug as invoices_url %}
  <a href="{{ invoices_url }}">{{ site_base_uri }}{{ invoices_url }}?NameID=...</a>
</li>
<li>{% trans 'Show invoice details:' %}
  {% url 'stub-invoices-invoice' slug=object.slug invoice_id='20150916' as invoice_details_url %}
  <a href="{{ invoice_details_url }}">{{ site_base_uri }}{{ invoice_details_url }}</a>
  <em>20150916</em> {% trans 'is invoice identifier' %}
</li>
<li>{% trans 'Get invoice pdf:' %}
  {% url 'stub-invoices-invoice-pdf' slug=object.slug invoice_id='20150916' as invoice_download_url %}
  <a href="{{ invoice_download_url }}">{{ site_base_uri }}{{ invoice_download_url }}</a>
</li>
<li>{% trans 'Pay invoice:' %}
  {% url 'stub-invoices-invoice-payment' slug=object.slug invoice_id='20150808' as payment_url %}
  <a href="{{ payment_url }}">{{ site_base_uri }}{{ payment_url }}?NameID=...</a>
</li>
</ul>
{% endblock %}

{% block security %}
<p>
{% trans 'Access is limited to the following API users:' %}
</p>
{% access_rights_table resource=object permission='can_access' %}
{% endblock %}
