Skip to content

Commit

Permalink
publish: Merge pull request #295 from tungleduyxyz/update_subscriptio…
Browse files Browse the repository at this point in the history
…n_tags_api

generated from commit a404c08
  • Loading branch information
killbillio committed Mar 4, 2024
1 parent cbb8aa2 commit 8f0d684
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions subscription.html
Original file line number Diff line number Diff line change
Expand Up @@ -5383,9 +5383,9 @@ <h3 id='add-tags-to-subscription'>Add tags to subscription</h3>
<span class="n">subscription</span> <span class="o">=</span> <span class="no">KillBillClient</span><span class="o">::</span><span class="no">Model</span><span class="o">::</span><span class="no">Subscription</span><span class="p">.</span><span class="nf">new</span>
<span class="n">subscription</span><span class="p">.</span><span class="nf">subscription_id</span> <span class="o">=</span> <span class="s2">"92820d1c-1d4c-46eb-9010-26b0626a1927"</span>

<span class="n">tag_name</span> <span class="o">=</span> <span class="s1">'good_sub'</span>
<span class="n">tag_definition_ids</span> <span class="o">=</span> <span class="p">[</span><span class="s1">'2c1f8309-24d7-437c-971b-7e68ff2d393a'</span><span class="p">]</span>

<span class="n">subscription</span><span class="p">.</span><span class="nf">add_tag</span><span class="p">(</span><span class="n">tag_name</span><span class="p">,</span>
<span class="n">subscription</span><span class="p">.</span><span class="nf">add_tags_from_definition_ids</span><span class="p">(</span><span class="n">tag_definition_ids</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>
Expand Down Expand Up @@ -5559,9 +5559,9 @@ <h3 id='remove-tags-from-subscription'>Remove tags from subscription</h3>
<span class="n">subscription</span> <span class="o">=</span> <span class="no">KillBillClient</span><span class="o">::</span><span class="no">Model</span><span class="o">::</span><span class="no">Subscription</span><span class="p">.</span><span class="nf">new</span>
<span class="n">subscription</span><span class="p">.</span><span class="nf">subscription_id</span> <span class="o">=</span> <span class="s2">"92820d1c-1d4c-46eb-9010-26b0626a1927"</span>

<span class="n">tag_name</span> <span class="o">=</span> <span class="s1">'good_sub'</span>
<span class="n">tag_definition_ids</span> <span class="o">=</span> <span class="p">[</span><span class="s1">'2c1f8309-24d7-437c-971b-7e68ff2d393a'</span><span class="p">]</span>

<span class="n">subscription</span><span class="p">.</span><span class="nf">remove_tag</span><span class="p">(</span><span class="n">tag_name</span><span class="p">,</span>
<span class="n">subscription</span><span class="p">.</span><span class="nf">remove_tags_from_definition_ids</span><span class="p">(</span><span class="n">tag_definition_ids</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>
Expand Down

0 comments on commit 8f0d684

Please sign in to comment.