Skip to content

Commit

Permalink
Add some helpers and fix types to some real world examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tamtamchik committed Mar 24, 2021
1 parent 519ddfe commit 02e5065
Show file tree
Hide file tree
Showing 22 changed files with 652 additions and 179 deletions.
2 changes: 1 addition & 1 deletion docs/assets/js/search.js

Large diffs are not rendered by default.

22 changes: 17 additions & 5 deletions docs/enums/expirationintent.html
Original file line number Diff line number Diff line change
Expand Up @@ -2772,6 +2772,18 @@
<li class=" tsd-kind-type-alias">
<a href="../modules.html#verifyreceiptresponsebody" class="tsd-kind-icon">Verify<wbr>Receipt<wbr>Response<wbr>Body</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#getlatestreceiptinfo" class="tsd-kind-icon">get<wbr>Latest<wbr>Receipt<wbr>Info</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#getpendingrenewalinfo" class="tsd-kind-icon">get<wbr>Pending<wbr>Renewal<wbr>Info</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#iserror" class="tsd-kind-icon">is<wbr>Error</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#issuccess" class="tsd-kind-icon">is<wbr>Success</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#verifyreceipt" class="tsd-kind-icon">verify<wbr>Receipt</a>
</li>
Expand Down Expand Up @@ -2816,7 +2828,7 @@ <h3>BILLING_<wbr>ERROR</h3>
<div class="tsd-signature tsd-kind-icon">BILLING_<wbr>ERROR<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;2&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ExpirationIntent.ts#L15">ExpirationIntent.ts:15</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ExpirationIntent.ts#L15">ExpirationIntent.ts:15</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2831,7 +2843,7 @@ <h3>CUSTOMER_<wbr>CANCELED</h3>
<div class="tsd-signature tsd-kind-icon">CUSTOMER_<wbr>CANCELED<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;1&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ExpirationIntent.ts#L10">ExpirationIntent.ts:10</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ExpirationIntent.ts#L10">ExpirationIntent.ts:10</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2846,7 +2858,7 @@ <h3>CUSTOMER_<wbr>DENIED_<wbr>PRICE_<wbr>INCREASE</h3>
<div class="tsd-signature tsd-kind-icon">CUSTOMER_<wbr>DENIED_<wbr>PRICE_<wbr>INCREASE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;3&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ExpirationIntent.ts#L20">ExpirationIntent.ts:20</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ExpirationIntent.ts#L20">ExpirationIntent.ts:20</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2861,7 +2873,7 @@ <h3>PRODUCT_<wbr>NOT_<wbr>AVAILABLE</h3>
<div class="tsd-signature tsd-kind-icon">PRODUCT_<wbr>NOT_<wbr>AVAILABLE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;4&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ExpirationIntent.ts#L25">ExpirationIntent.ts:25</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ExpirationIntent.ts#L25">ExpirationIntent.ts:25</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2876,7 +2888,7 @@ <h3>UNKNOWN</h3>
<div class="tsd-signature tsd-kind-icon">UNKNOWN<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;5&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ExpirationIntent.ts#L30">ExpirationIntent.ts:30</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ExpirationIntent.ts#L30">ExpirationIntent.ts:30</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
36 changes: 24 additions & 12 deletions docs/enums/servernotificationtype.html
Original file line number Diff line number Diff line change
Expand Up @@ -2793,6 +2793,18 @@
<li class=" tsd-kind-type-alias">
<a href="../modules.html#verifyreceiptresponsebody" class="tsd-kind-icon">Verify<wbr>Receipt<wbr>Response<wbr>Body</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#getlatestreceiptinfo" class="tsd-kind-icon">get<wbr>Latest<wbr>Receipt<wbr>Info</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#getpendingrenewalinfo" class="tsd-kind-icon">get<wbr>Pending<wbr>Renewal<wbr>Info</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#iserror" class="tsd-kind-icon">is<wbr>Error</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#issuccess" class="tsd-kind-icon">is<wbr>Success</a>
</li>
<li class=" tsd-kind-function">
<a href="../modules.html#verifyreceipt" class="tsd-kind-icon">verify<wbr>Receipt</a>
</li>
Expand Down Expand Up @@ -2844,7 +2856,7 @@ <h3>CANCEL</h3>
<div class="tsd-signature tsd-kind-icon">CANCEL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;CANCEL&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L11">ServerNotificationType.ts:11</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L11">ServerNotificationType.ts:11</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2860,7 +2872,7 @@ <h3>DID_<wbr>CHANGE_<wbr>RENEWAL_<wbr>PREF</h3>
<div class="tsd-signature tsd-kind-icon">DID_<wbr>CHANGE_<wbr>RENEWAL_<wbr>PREF<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;DID_CHANGE_RENEWAL_PREF&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L17">ServerNotificationType.ts:17</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L17">ServerNotificationType.ts:17</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2876,7 +2888,7 @@ <h3>DID_<wbr>CHANGE_<wbr>RENEWAL_<wbr>STATUS</h3>
<div class="tsd-signature tsd-kind-icon">DID_<wbr>CHANGE_<wbr>RENEWAL_<wbr>STATUS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;DID_CHANGE_RENEWAL_STATUS&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L24">ServerNotificationType.ts:24</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L24">ServerNotificationType.ts:24</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2893,7 +2905,7 @@ <h3>DID_<wbr>FAIL_<wbr>TO_<wbr>RENEW</h3>
<div class="tsd-signature tsd-kind-icon">DID_<wbr>FAIL_<wbr>TO_<wbr>RENEW<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;DID_FAIL_TO_RENEW&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L32">ServerNotificationType.ts:32</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L32">ServerNotificationType.ts:32</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2911,7 +2923,7 @@ <h3>DID_<wbr>RECOVER</h3>
<div class="tsd-signature tsd-kind-icon">DID_<wbr>RECOVER<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;DID_RECOVER&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L38">ServerNotificationType.ts:38</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L38">ServerNotificationType.ts:38</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2927,7 +2939,7 @@ <h3>DID_<wbr>RENEW</h3>
<div class="tsd-signature tsd-kind-icon">DID_<wbr>RENEW<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;DID_RENEW&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L43">ServerNotificationType.ts:43</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L43">ServerNotificationType.ts:43</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2942,7 +2954,7 @@ <h3>INITIAL_<wbr>BUY</h3>
<div class="tsd-signature tsd-kind-icon">INITIAL_<wbr>BUY<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;INITIAL_BUY&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L50">ServerNotificationType.ts:50</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L50">ServerNotificationType.ts:50</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2959,7 +2971,7 @@ <h3>INTERACTIVE_<wbr>RENEWAL</h3>
<div class="tsd-signature tsd-kind-icon">INTERACTIVE_<wbr>RENEWAL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;INTERACTIVE_RENEWAL&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L56">ServerNotificationType.ts:56</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L56">ServerNotificationType.ts:56</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2975,7 +2987,7 @@ <h3>PRICE_<wbr>INCREASE_<wbr>CONSENT</h3>
<div class="tsd-signature tsd-kind-icon">PRICE_<wbr>INCREASE_<wbr>CONSENT<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;PRICE_INCREASE_CONSENT&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L66">ServerNotificationType.ts:66</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L66">ServerNotificationType.ts:66</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -2995,7 +3007,7 @@ <h3>REFUND</h3>
<div class="tsd-signature tsd-kind-icon">REFUND<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;REFUND&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L75">ServerNotificationType.ts:75</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L75">ServerNotificationType.ts:75</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3014,7 +3026,7 @@ <h3>RENEWAL</h3>
<div class="tsd-signature tsd-kind-icon">RENEWAL<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;RENEWAL&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L92">ServerNotificationType.ts:92</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L92">ServerNotificationType.ts:92</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -3038,7 +3050,7 @@ <h3>REVOKE</h3>
<div class="tsd-signature tsd-kind-icon">REVOKE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol"> = &quot;REVOKE&quot;</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/c530991/src/ServerNotificationType.ts#L83">ServerNotificationType.ts:83</a></li>
<li>Defined in <a href="https://github.com/tamtamchik/apple-iap-tools/blob/519ddfe/src/ServerNotificationType.ts#L83">ServerNotificationType.ts:83</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit 02e5065

Please sign in to comment.