Skip to content

Commit

Permalink
publish: Merge pull request #300 from tungleduyxyz/update_generate_in…
Browse files Browse the repository at this point in the history
…voice_dry_run

generated from commit 1811846
  • Loading branch information
killbillio committed Mar 10, 2024
1 parent e294ae3 commit 4d9dbb5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -4461,12 +4461,20 @@ <h3 id='generate-a-dry-run-invoice'>Generate a dry run invoice</h3>
<span class="c1"># to see what is the next invoice that the system will generate for this account </span>
<span class="c1"># </span>
<span class="n">account_id</span> <span class="o">=</span> <span class="s2">"5527abbc-d83d-447f-bf3d-ab9542ea631e"</span>
<span class="n">user</span> <span class="o">=</span> <span class="kp">nil</span>
<span class="n">reason</span> <span class="o">=</span> <span class="kp">nil</span>
<span class="n">comment</span> <span class="o">=</span> <span class="kp">nil</span>
<span class="n">target_date</span> <span class="o">=</span> <span class="kp">nil</span>
<span class="n">upcoming_invoice_target_date</span> <span class="o">=</span> <span class="kp">true</span>
<span class="n">plugin_properties</span> <span class="o">=</span> <span class="p">[</span><span class="s2">"key%3Dvalue"</span><span class="p">]</span>

<span class="no">KillBillClient</span><span class="o">::</span><span class="no">Model</span><span class="o">::</span><span class="no">Invoice</span><span class="p">.</span><span class="nf">trigger_invoice_dry_run</span><span class="p">(</span><span class="n">account_id</span><span class="p">,</span>
<span class="n">target_date</span><span class="p">,</span>
<span class="n">upcoming_invoice_target_date</span><span class="p">,</span>
<span class="n">upcoming_invoice_target_date</span><span class="p">,</span>
<span class="n">plugin_properties</span><span class="p">,</span>
<span class="n">user</span><span class="p">,</span>
<span class="n">reason</span><span class="p">,</span>
<span class="n">comment</span><span class="p">,</span>
<span class="n">options</span><span class="p">)</span>
</code></pre></div><div class="highlight"><pre class="highlight python tab-python"><code><span class="c1">#
# This case is when you create a dry-run invoice with UPCOMING_INVOICE,
Expand Down

0 comments on commit 4d9dbb5

Please sign in to comment.