Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
gray-adeyi committed Dec 25, 2022
2 parents 0812ac2 + 3d824e3 commit afb9a19
Show file tree
Hide file tree
Showing 87 changed files with 33,012 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs.old/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ your python project. for example
from pypaystack2.api import Miscellaneous # assumes you have installed pypaystack2
from pypaystack2.utils import Country
miscellaneous_wrapper = Miscellaneous() # assumes that your paystack auth key is in
# your enviromental variables i.e PAYSTACK_AUTHORIZATION_KEY=your_key otherwise instatiate
# your environmental variables i.e PAYSTACK_AUTHORIZATION_KEY=your_key otherwise instantiate
# the Miscellaneous API wrapper as it is done below.
# miscellaneous_wrapper = Miscellaneous(auth_key=your_paystack_auth_key)
response = miscellaneous_wrapper.get_banks(country=Country.NIGERIA,use_cursor=False) # Requires internet connection.
Expand Down Expand Up @@ -69,7 +69,7 @@ in the ``Invoice`` wrapper. Say you wanted to create an invoice by sending a
from pypaystack2.api import Invoice
invoice_wrapper = Invoice()
response = invoice_wrapper.create(custmer="CUS_xwaj0txjryg393b",amount=1000) # Creates an invoice with a charge of ₦100
response = invoice_wrapper.create(customer="CUS_xwaj0txjryg393b",amount=1000) # Creates an invoice with a charge of ₦100
From here you can check out the tutorials section to get more examples and get familiar or surf the
documentation for wrappers and methods you'll need for your next project. Hurray!
Expand All @@ -78,8 +78,10 @@ documentation for wrappers and methods you'll need for your next project. Hurray
:maxdepth: 2
:caption: Contents:

paystack-client-turorial
modules



Indices and tables
==================
Expand Down
4 changes: 4 additions & 0 deletions docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 899fb1875e8697de7c43f9de5f1f8a8d
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added docs/.nojekyll
Empty file.
122 changes: 122 additions & 0 deletions docs/_modules/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &mdash; pypaystack2 1.0.0 documentation</title>
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
<script src="../_static/jquery.js"></script>
<script src="../_static/underscore.js"></script>
<script src="../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../_static/doctools.js"></script>
<script src="../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../index.html" class="icon icon-home"> pypaystack2
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../paystack-client-turorial.html">Tutorial 1</a></li>
<li class="toctree-l1"><a class="reference internal" href="../modules.html">pypaystack2</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../index.html">pypaystack2</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../index.html" class="icon icon-home"></a> &raquo;</li>
<li>Overview: module code</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>All modules for which code is available</h1>
<ul><li><a href="pypaystack2/api/apple_pay.html">pypaystack2.api.apple_pay</a></li>
<li><a href="pypaystack2/api/bulk_charges.html">pypaystack2.api.bulk_charges</a></li>
<li><a href="pypaystack2/api/charge.html">pypaystack2.api.charge</a></li>
<li><a href="pypaystack2/api/control_panel.html">pypaystack2.api.control_panel</a></li>
<li><a href="pypaystack2/api/customers.html">pypaystack2.api.customers</a></li>
<li><a href="pypaystack2/api/dedicated_accounts.html">pypaystack2.api.dedicated_accounts</a></li>
<li><a href="pypaystack2/api/disputes.html">pypaystack2.api.disputes</a></li>
<li><a href="pypaystack2/api/invoices.html">pypaystack2.api.invoices</a></li>
<li><a href="pypaystack2/api/miscellaneous.html">pypaystack2.api.miscellaneous</a></li>
<li><a href="pypaystack2/api/payment_pages.html">pypaystack2.api.payment_pages</a></li>
<li><a href="pypaystack2/api/plans.html">pypaystack2.api.plans</a></li>
<li><a href="pypaystack2/api/products.html">pypaystack2.api.products</a></li>
<li><a href="pypaystack2/api/refunds.html">pypaystack2.api.refunds</a></li>
<li><a href="pypaystack2/api/settlements.html">pypaystack2.api.settlements</a></li>
<li><a href="pypaystack2/api/splits.html">pypaystack2.api.splits</a></li>
<li><a href="pypaystack2/api/subaccounts.html">pypaystack2.api.subaccounts</a></li>
<li><a href="pypaystack2/api/subscriptions.html">pypaystack2.api.subscriptions</a></li>
<li><a href="pypaystack2/api/transactions.html">pypaystack2.api.transactions</a></li>
<li><a href="pypaystack2/api/transfer_recipients.html">pypaystack2.api.transfer_recipients</a></li>
<li><a href="pypaystack2/api/transfers.html">pypaystack2.api.transfers</a></li>
<li><a href="pypaystack2/api/transfers_control.html">pypaystack2.api.transfers_control</a></li>
<li><a href="pypaystack2/api/verification.html">pypaystack2.api.verification</a></li>
<li><a href="pypaystack2/baseapi.html">pypaystack2.baseapi</a></li>
<li><a href="pypaystack2/errors.html">pypaystack2.errors</a></li>
<li><a href="pypaystack2/utils.html">pypaystack2.utils</a></li>
</ul>

</div>
</div>
<footer>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2022, Gbenga Adeyi &lt;coyotedevmail@gmail.com&gt;.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
162 changes: 162 additions & 0 deletions docs/_modules/pypaystack2/api/apple_pay.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,162 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>pypaystack2.api.apple_pay &mdash; pypaystack2 1.0.0 documentation</title>
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
<script src="../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script data-url_root="../../../" id="documentation_options" src="../../../_static/documentation_options.js"></script>
<script src="../../../_static/jquery.js"></script>
<script src="../../../_static/underscore.js"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js"></script>
<script src="../../../_static/doctools.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >
<a href="../../../index.html" class="icon icon-home"> pypaystack2
</a>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<p class="caption" role="heading"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../modules.html">pypaystack2</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../paystack-client-turorial.html">Paystack Command line Client</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../index.html">pypaystack2</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home"></a> &raquo;</li>
<li><a href="../../index.html">Module code</a> &raquo;</li>
<li>pypaystack2.api.apple_pay</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for pypaystack2.api.apple_pay</h1><div class="highlight"><pre>
<span></span><span class="kn">from</span> <span class="nn">..baseapi</span> <span class="kn">import</span> <span class="n">BaseAPI</span><span class="p">,</span> <span class="n">Response</span>


<div class="viewcode-block" id="ApplePay"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay">[docs]</a><span class="k">class</span> <span class="nc">ApplePay</span><span class="p">(</span><span class="n">BaseAPI</span><span class="p">):</span>
<span class="sd">&quot;&quot;&quot;Provides a wrapper for paystack Apple Pay API</span>

<span class="sd"> The Apple Pay API allows you register your application&#39;s top-level domain or subdomain.</span>
<span class="sd"> https://paystack.com/docs/api/#apple-pay</span>
<span class="sd"> &quot;&quot;&quot;</span>

<div class="viewcode-block" id="ApplePay.register_domain"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay.register_domain">[docs]</a> <span class="k">def</span> <span class="nf">register_domain</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">domain_name</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Response</span><span class="p">:</span>
<span class="sd">&quot;&quot;&quot;Register a top-level domain or subdomain</span>
<span class="sd"> for your Apple Pay integration.</span>

<span class="sd"> Parameters</span>
<span class="sd"> ----------</span>
<span class="sd"> domain_name: str</span>
<span class="sd"> Domain name to be registered</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> Response</span>
<span class="sd"> A named tuple containing the response gotten from paystack&#39;s server.</span>

<span class="sd"> Note</span>
<span class="sd"> ----</span>
<span class="sd"> This method can only be called with one domain or subdomain at a time.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_url</span><span class="p">(</span><span class="s2">&quot;/apple-pay/domain&quot;</span><span class="p">)</span>
<span class="n">payload</span> <span class="o">=</span> <span class="p">{</span>
<span class="s2">&quot;domainName&quot;</span><span class="p">:</span> <span class="n">domain_name</span><span class="p">,</span>
<span class="p">}</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_handle_request</span><span class="p">(</span><span class="s2">&quot;POST&quot;</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">payload</span><span class="p">)</span></div>

<div class="viewcode-block" id="ApplePay.get_domains"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay.get_domains">[docs]</a> <span class="k">def</span> <span class="nf">get_domains</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Response</span><span class="p">:</span>
<span class="sd">&quot;&quot;&quot;Fetches all registered domains on your integration.</span>
<span class="sd"> Returns an empty array if no domains have been added.</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> Response</span>
<span class="sd"> A named tuple containing the response gotten from paystack&#39;s server.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_url</span><span class="p">(</span><span class="s2">&quot;/apple-pay/domain&quot;</span><span class="p">)</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_handle_request</span><span class="p">(</span><span class="s2">&quot;GET&quot;</span><span class="p">,</span> <span class="n">url</span><span class="p">)</span></div>

<div class="viewcode-block" id="ApplePay.unregister_domain"><a class="viewcode-back" href="../../../pypaystack2.api.html#pypaystack2.api.apple_pay.ApplePay.unregister_domain">[docs]</a> <span class="k">def</span> <span class="nf">unregister_domain</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">domain_name</span><span class="p">:</span> <span class="nb">str</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Response</span><span class="p">:</span>
<span class="sd">&quot;&quot;&quot;Unregister a top-level domain or</span>
<span class="sd"> subdomain previously used for your</span>
<span class="sd"> Apple Pay integration.</span>

<span class="sd"> Returns</span>
<span class="sd"> -------</span>
<span class="sd"> Response</span>
<span class="sd"> A named tuple containing the response gotten from paystack&#39;s server.</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">url</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">_url</span><span class="p">(</span><span class="s2">&quot;/apple-pay/domain&quot;</span><span class="p">)</span>
<span class="n">payload</span> <span class="o">=</span> <span class="p">{</span>
<span class="s2">&quot;domainName&quot;</span><span class="p">:</span> <span class="n">domain_name</span><span class="p">,</span>
<span class="p">}</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_handle_request</span><span class="p">(</span><span class="s2">&quot;DELETE&quot;</span><span class="p">,</span> <span class="n">url</span><span class="p">,</span> <span class="n">payload</span><span class="p">)</span></div></div>
</pre></div>

</div>
</div>
<footer>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2022, Gbenga Adeyi &lt;coyotedevmail@gmail.com&gt;.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit afb9a19

Please sign in to comment.