paystack-ruby 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.standard.yml +3 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE.txt +21 -0
- data/README.md +153 -0
- data/Rakefile +8 -0
- data/docs/apple_pay.md +60 -0
- data/docs/balance.md +39 -0
- data/docs/bank.md +77 -0
- data/docs/bulk_charge.md +110 -0
- data/docs/charge.md +124 -0
- data/docs/customer.md +253 -0
- data/docs/dedicated_virtual_account.md +171 -0
- data/docs/direct_debit.md +44 -0
- data/docs/dispute.md +175 -0
- data/docs/integration.md +36 -0
- data/docs/miscellaneous.md +52 -0
- data/docs/order.md +101 -0
- data/docs/page.md +138 -0
- data/docs/payment_request.md +182 -0
- data/docs/plan.md +99 -0
- data/docs/product.md +114 -0
- data/docs/refund.md +87 -0
- data/docs/settlement.md +43 -0
- data/docs/split.md +140 -0
- data/docs/storefront.md +205 -0
- data/docs/subaccount.md +99 -0
- data/docs/subscription.md +132 -0
- data/docs/terminal.md +156 -0
- data/docs/transaction.md +206 -0
- data/docs/transfer.md +183 -0
- data/docs/transfer_recipient.md +124 -0
- data/docs/virtual_terminal.md +188 -0
- data/lib/paystack/base_resource.rb +13 -0
- data/lib/paystack/client.rb +146 -0
- data/lib/paystack/errors.rb +20 -0
- data/lib/paystack/resources/apple_pay.rb +31 -0
- data/lib/paystack/resources/balance.rb +24 -0
- data/lib/paystack/resources/bank.rb +31 -0
- data/lib/paystack/resources/bulk_charge.rb +52 -0
- data/lib/paystack/resources/charge.rb +59 -0
- data/lib/paystack/resources/customer.rb +94 -0
- data/lib/paystack/resources/dedicated_virtual_account.rb +73 -0
- data/lib/paystack/resources/direct_debit.rb +24 -0
- data/lib/paystack/resources/dispute.rb +66 -0
- data/lib/paystack/resources/integration.rb +24 -0
- data/lib/paystack/resources/miscellaneous.rb +31 -0
- data/lib/paystack/resources/order.rb +45 -0
- data/lib/paystack/resources/page.rb +52 -0
- data/lib/paystack/resources/payment_request.rb +73 -0
- data/lib/paystack/resources/plan.rb +38 -0
- data/lib/paystack/resources/product.rb +45 -0
- data/lib/paystack/resources/refund.rb +38 -0
- data/lib/paystack/resources/settlement.rb +24 -0
- data/lib/paystack/resources/split.rb +52 -0
- data/lib/paystack/resources/storefront.rb +87 -0
- data/lib/paystack/resources/subaccount.rb +38 -0
- data/lib/paystack/resources/subscription.rb +59 -0
- data/lib/paystack/resources/terminal.rb +66 -0
- data/lib/paystack/resources/transaction.rb +75 -0
- data/lib/paystack/resources/transfer.rb +87 -0
- data/lib/paystack/resources/transfer_recipient.rb +52 -0
- data/lib/paystack/resources/virtual_terminal.rb +73 -0
- data/lib/paystack/response.rb +40 -0
- data/lib/paystack/transport.rb +64 -0
- data/lib/paystack/version.rb +6 -0
- data/lib/paystack.rb +40 -0
- data/sig/paystack/ruby.rbs +6 -0
- metadata +110 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 20dd26b874ff452a577606c377865c231718eed6eb4b79fc7aa0baae84756384
|
|
4
|
+
data.tar.gz: d9fbffe98368c82182dbe69dcd1219ecf48b7767346688edb06e03477a852cd2
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: e486673d6965ce49c39a76f8f04d3900b436ab14a64856909be06580963dfb619b7a036ea1efcd5b799ec134aec7551006a4fe6ccff3a751995f4e8f8393871d
|
|
7
|
+
data.tar.gz: f3c628cc339cd55e06e90423ab4d00fcde5c05817e56e7aa92e50b30f5699a898b7f9328d3ed8f608674e9d100f9b6640328438b5d2356859b2bb16dfa3dcc71
|
data/.standard.yml
ADDED
data/CHANGELOG.md
ADDED
data/CODE_OF_CONDUCT.md
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
|
2
|
+
|
|
3
|
+
## Our Pledge
|
|
4
|
+
|
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our
|
|
6
|
+
community a harassment-free experience for everyone, regardless of age, body
|
|
7
|
+
size, visible or invisible disability, ethnicity, sex characteristics, gender
|
|
8
|
+
identity and expression, level of experience, education, socio-economic status,
|
|
9
|
+
nationality, personal appearance, race, caste, color, religion, or sexual
|
|
10
|
+
identity and orientation.
|
|
11
|
+
|
|
12
|
+
We pledge to act and interact in ways that contribute to an open, welcoming,
|
|
13
|
+
diverse, inclusive, and healthy community.
|
|
14
|
+
|
|
15
|
+
## Our Standards
|
|
16
|
+
|
|
17
|
+
Examples of behavior that contributes to a positive environment for our
|
|
18
|
+
community include:
|
|
19
|
+
|
|
20
|
+
* Demonstrating empathy and kindness toward other people
|
|
21
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
|
22
|
+
* Giving and gracefully accepting constructive feedback
|
|
23
|
+
* Accepting responsibility and apologizing to those affected by our mistakes,
|
|
24
|
+
and learning from the experience
|
|
25
|
+
* Focusing on what is best not just for us as individuals, but for the overall
|
|
26
|
+
community
|
|
27
|
+
|
|
28
|
+
Examples of unacceptable behavior include:
|
|
29
|
+
|
|
30
|
+
* The use of sexualized language or imagery, and sexual attention or advances of
|
|
31
|
+
any kind
|
|
32
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
|
33
|
+
* Public or private harassment
|
|
34
|
+
* Publishing others' private information, such as a physical or email address,
|
|
35
|
+
without their explicit permission
|
|
36
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
|
37
|
+
professional setting
|
|
38
|
+
|
|
39
|
+
## Enforcement Responsibilities
|
|
40
|
+
|
|
41
|
+
Community leaders are responsible for clarifying and enforcing our standards of
|
|
42
|
+
acceptable behavior and will take appropriate and fair corrective action in
|
|
43
|
+
response to any behavior that they deem inappropriate, threatening, offensive,
|
|
44
|
+
or harmful.
|
|
45
|
+
|
|
46
|
+
Community leaders have the right and responsibility to remove, edit, or reject
|
|
47
|
+
comments, commits, code, wiki edits, issues, and other contributions that are
|
|
48
|
+
not aligned to this Code of Conduct, and will communicate reasons for moderation
|
|
49
|
+
decisions when appropriate.
|
|
50
|
+
|
|
51
|
+
## Scope
|
|
52
|
+
|
|
53
|
+
This Code of Conduct applies within all community spaces, and also applies when
|
|
54
|
+
an individual is officially representing the community in public spaces.
|
|
55
|
+
Examples of representing our community include using an official email address,
|
|
56
|
+
posting via an official social media account, or acting as an appointed
|
|
57
|
+
representative at an online or offline event.
|
|
58
|
+
|
|
59
|
+
## Enforcement
|
|
60
|
+
|
|
61
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
62
|
+
reported to the community leaders responsible for enforcement at
|
|
63
|
+
[INSERT CONTACT METHOD].
|
|
64
|
+
All complaints will be reviewed and investigated promptly and fairly.
|
|
65
|
+
|
|
66
|
+
All community leaders are obligated to respect the privacy and security of the
|
|
67
|
+
reporter of any incident.
|
|
68
|
+
|
|
69
|
+
## Enforcement Guidelines
|
|
70
|
+
|
|
71
|
+
Community leaders will follow these Community Impact Guidelines in determining
|
|
72
|
+
the consequences for any action they deem in violation of this Code of Conduct:
|
|
73
|
+
|
|
74
|
+
### 1. Correction
|
|
75
|
+
|
|
76
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed
|
|
77
|
+
unprofessional or unwelcome in the community.
|
|
78
|
+
|
|
79
|
+
**Consequence**: A private, written warning from community leaders, providing
|
|
80
|
+
clarity around the nature of the violation and an explanation of why the
|
|
81
|
+
behavior was inappropriate. A public apology may be requested.
|
|
82
|
+
|
|
83
|
+
### 2. Warning
|
|
84
|
+
|
|
85
|
+
**Community Impact**: A violation through a single incident or series of
|
|
86
|
+
actions.
|
|
87
|
+
|
|
88
|
+
**Consequence**: A warning with consequences for continued behavior. No
|
|
89
|
+
interaction with the people involved, including unsolicited interaction with
|
|
90
|
+
those enforcing the Code of Conduct, for a specified period of time. This
|
|
91
|
+
includes avoiding interactions in community spaces as well as external channels
|
|
92
|
+
like social media. Violating these terms may lead to a temporary or permanent
|
|
93
|
+
ban.
|
|
94
|
+
|
|
95
|
+
### 3. Temporary Ban
|
|
96
|
+
|
|
97
|
+
**Community Impact**: A serious violation of community standards, including
|
|
98
|
+
sustained inappropriate behavior.
|
|
99
|
+
|
|
100
|
+
**Consequence**: A temporary ban from any sort of interaction or public
|
|
101
|
+
communication with the community for a specified period of time. No public or
|
|
102
|
+
private interaction with the people involved, including unsolicited interaction
|
|
103
|
+
with those enforcing the Code of Conduct, is allowed during this period.
|
|
104
|
+
Violating these terms may lead to a permanent ban.
|
|
105
|
+
|
|
106
|
+
### 4. Permanent Ban
|
|
107
|
+
|
|
108
|
+
**Community Impact**: Demonstrating a pattern of violation of community
|
|
109
|
+
standards, including sustained inappropriate behavior, harassment of an
|
|
110
|
+
individual, or aggression toward or disparagement of classes of individuals.
|
|
111
|
+
|
|
112
|
+
**Consequence**: A permanent ban from any sort of public interaction within the
|
|
113
|
+
community.
|
|
114
|
+
|
|
115
|
+
## Attribution
|
|
116
|
+
|
|
117
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
|
118
|
+
version 2.1, available at
|
|
119
|
+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
|
|
120
|
+
|
|
121
|
+
Community Impact Guidelines were inspired by
|
|
122
|
+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
|
|
123
|
+
|
|
124
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
|
125
|
+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
|
|
126
|
+
[https://www.contributor-covenant.org/translations][translations].
|
|
127
|
+
|
|
128
|
+
[homepage]: https://www.contributor-covenant.org
|
|
129
|
+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
|
|
130
|
+
[Mozilla CoC]: https://github.com/mozilla/diversity
|
|
131
|
+
[FAQ]: https://www.contributor-covenant.org/faq
|
|
132
|
+
[translations]: https://www.contributor-covenant.org/translations
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 andrew-paystack
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
# Paystack Ruby SDK
|
|
2
|
+
|
|
3
|
+
> The official Ruby SDK for the Paystack API — generated from the Paystack OpenAPI specification.
|
|
4
|
+
|
|
5
|
+
[](https://opensource.org/licenses/MIT)
|
|
6
|
+
[](https://www.ruby-lang.org)
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Requirements
|
|
11
|
+
|
|
12
|
+
- **Ruby 3.1 or later**
|
|
13
|
+
- Standard library HTTP stack (`net/http`) — no extra runtime HTTP dependency
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
Add this line to your application's Gemfile:
|
|
20
|
+
|
|
21
|
+
```ruby
|
|
22
|
+
gem "paystack-ruby"
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then execute:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
bundle install
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Or install directly:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
gem install paystack-ruby
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Quick Start
|
|
40
|
+
|
|
41
|
+
```ruby
|
|
42
|
+
require "paystack"
|
|
43
|
+
|
|
44
|
+
paystack = Paystack::Client.new(ENV.fetch("PAYSTACK_SECRET_KEY"))
|
|
45
|
+
|
|
46
|
+
result = paystack.transaction.initialize(
|
|
47
|
+
{
|
|
48
|
+
email: "customer@example.com",
|
|
49
|
+
amount: 100_000 # kobo
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
puts result.data[:authorization_url]
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Configuration
|
|
59
|
+
|
|
60
|
+
Initialize `Paystack::Client` with your secret key:
|
|
61
|
+
|
|
62
|
+
```ruby
|
|
63
|
+
paystack = Paystack::Client.new("sk_live_xxxxxxxxxxxx")
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
| Option | Type | Required | Default |
|
|
67
|
+
|---|---|---|---|
|
|
68
|
+
| `api_key` | `String` | ✅ | — |
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## Response Shape
|
|
73
|
+
|
|
74
|
+
All resource methods return a `Paystack::Response` object exposing:
|
|
75
|
+
|
|
76
|
+
```ruby
|
|
77
|
+
response.http_status # Integer
|
|
78
|
+
response.status # Boolean
|
|
79
|
+
response.message # String
|
|
80
|
+
response.data # Hash / Array / nil
|
|
81
|
+
response.meta # Hash / nil
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Error Handling
|
|
87
|
+
|
|
88
|
+
API failures raise typed exceptions:
|
|
89
|
+
|
|
90
|
+
```ruby
|
|
91
|
+
begin
|
|
92
|
+
paystack.transaction.initialize({ email: "customer@example.com", amount: 100_000 })
|
|
93
|
+
rescue Paystack::AuthenticationError,
|
|
94
|
+
Paystack::ValidationError,
|
|
95
|
+
Paystack::NotFoundError,
|
|
96
|
+
Paystack::RateLimitError,
|
|
97
|
+
Paystack::ServerError => e
|
|
98
|
+
puts e.message
|
|
99
|
+
puts e.http_status
|
|
100
|
+
end
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
105
|
+
## API Reference
|
|
106
|
+
|
|
107
|
+
The SDK exposes one method per API resource on the `Paystack::Client` instance.
|
|
108
|
+
|
|
109
|
+
| Resource | Property | Description | Methods |
|
|
110
|
+
|---|---|---|---|
|
|
111
|
+
| [ApplePay](./docs/apple_pay.md) | `paystack.apple_pay` | A collection of endpoints for managing application's top-level domain or subdomain accepting payment via Apple Pay | 3 |
|
|
112
|
+
| [Balance](./docs/balance.md) | `paystack.balance` | A collection of endpoints gaining insights into the amount on an integration | 2 |
|
|
113
|
+
| [Bank](./docs/bank.md) | `paystack.bank` | A collection of endpoints for managing bank details | 3 |
|
|
114
|
+
| [BulkCharge](./docs/bulk_charge.md) | `paystack.bulk_charge` | A collection of endpoints for creating and managing multiple recurring payments | 6 |
|
|
115
|
+
| [Charge](./docs/charge.md) | `paystack.charge` | A collection of endpoints for configuring and managing the payment channels when initiating a payment | 7 |
|
|
116
|
+
| [Customer](./docs/customer.md) | `paystack.customer` | A collection of endpoints for creating and managing customers on an integration | 12 |
|
|
117
|
+
| [DedicatedVirtualAccount](./docs/dedicated_virtual_account.md) | `paystack.dedicated_virtual_account` | A collection of endpoints for creating and managing payment accounts for customers | 9 |
|
|
118
|
+
| [DirectDebit](./docs/direct_debit.md) | `paystack.direct_debit` | A collection of endpoints for managing Direct Debit | 2 |
|
|
119
|
+
| [Dispute](./docs/dispute.md) | `paystack.dispute` | A collection of endpoints for managing transactions complaint made by customers | 8 |
|
|
120
|
+
| [Integration](./docs/integration.md) | `paystack.integration` | A collection of endpoints for managing some settings on an integration | 2 |
|
|
121
|
+
| [Miscellaneous](./docs/miscellaneous.md) | `paystack.miscellaneous` | A collection of endpoints that provides utility functions | 3 |
|
|
122
|
+
| [Order](./docs/order.md) | `paystack.order` | A collection of endpoints for creating and managing orders | 5 |
|
|
123
|
+
| [Page](./docs/page.md) | `paystack.page` | A collection of endpoints for creating and managing links for the collection of payment for products | 6 |
|
|
124
|
+
| [PaymentRequest](./docs/payment_request.md) | `paystack.payment_request` | A collection of endpoints for managing invoices for the payment of goods and services | 9 |
|
|
125
|
+
| [Plan](./docs/plan.md) | `paystack.plan` | A collection of endpoints for creating and managing recurring payment configuration | 4 |
|
|
126
|
+
| [Product](./docs/product.md) | `paystack.product` | A collection of endpoints for creating and managing inventories | 5 |
|
|
127
|
+
| [Refund](./docs/refund.md) | `paystack.refund` | A collection of endpoints for creating and managing transaction reimbursement | 4 |
|
|
128
|
+
| [Settlement](./docs/settlement.md) | `paystack.settlement` | A collection of endpoints for gaining insights into payouts | 2 |
|
|
129
|
+
| [Split](./docs/split.md) | `paystack.split` | A collection of endpoints for spliting a transaction and managing the splits | 6 |
|
|
130
|
+
| [Storefront](./docs/storefront.md) | `paystack.storefront` | A collection of endpoints for creating and managing storefronts | 11 |
|
|
131
|
+
| [Subaccount](./docs/subaccount.md) | `paystack.subaccount` | A collection of endpoints for creating and managing accounts for sharing a transaction with | 4 |
|
|
132
|
+
| [Subscription](./docs/subscription.md) | `paystack.subscription` | A collection of endpoints for creating and managing recurring payments | 7 |
|
|
133
|
+
| [Terminal](./docs/terminal.md) | `paystack.terminal` | A collection of endpoints for building delightful in-person payment experiences | 8 |
|
|
134
|
+
| [Transaction](./docs/transaction.md) | `paystack.transaction` | A collection of endpoints for managing payments | 9 |
|
|
135
|
+
| [Transfer](./docs/transfer.md) | `paystack.transfer` | A collection of endpoints for automating sending money to beneficiaries | 11 |
|
|
136
|
+
| [TransferRecipient](./docs/transfer_recipient.md) | `paystack.transfer_recipient` | A collection of endpoints for creating and managing beneficiaries that you send money to | 6 |
|
|
137
|
+
| [VirtualTerminal](./docs/virtual_terminal.md) | `paystack.virtual_terminal` | A collection of endpoints for building in-person payments without a physical terminal | 9 |
|
|
138
|
+
|
|
139
|
+
Detailed method-level documentation for each resource is available in [`docs/`](./docs/).
|
|
140
|
+
|
|
141
|
+
---
|
|
142
|
+
|
|
143
|
+
## Contributing
|
|
144
|
+
|
|
145
|
+
> ⚠️ **This SDK is auto-generated** from the Paystack OpenAPI specification. Regenerate instead of manually editing generated files.
|
|
146
|
+
|
|
147
|
+
To request endpoint/schema changes, open an issue or pull request against the [Paystack OpenAPI specification](https://github.com/PaystackOSS/openapi).
|
|
148
|
+
|
|
149
|
+
---
|
|
150
|
+
|
|
151
|
+
## License
|
|
152
|
+
|
|
153
|
+
MIT © Paystack
|
data/Rakefile
ADDED
data/docs/apple_pay.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# ApplePay
|
|
2
|
+
|
|
3
|
+
A collection of endpoints for managing application's top-level domain or subdomain accepting payment via Apple Pay
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
| Method | HTTP | Path | Summary |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| `list_domain` | `GET` | `/apple-pay/domain` | List Domains |
|
|
10
|
+
| `register_domain` | `POST` | `/apple-pay/domain` | Register Domain |
|
|
11
|
+
| `unregister_domain` | `DELETE` | `/apple-pay/domain` | Unregister Domain |
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## `list_domain`
|
|
16
|
+
|
|
17
|
+
**HTTP:** `GET`
|
|
18
|
+
**Path:** `/apple-pay/domain`
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
paystack.apple_pay.list_domain({ ... })
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Query Fields
|
|
25
|
+
|
|
26
|
+
| Name | Required |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `use_cursor` | false |
|
|
29
|
+
| `next` | false |
|
|
30
|
+
| `previous` | false |
|
|
31
|
+
|
|
32
|
+
## `register_domain`
|
|
33
|
+
|
|
34
|
+
**HTTP:** `POST`
|
|
35
|
+
**Path:** `/apple-pay/domain`
|
|
36
|
+
|
|
37
|
+
```ruby
|
|
38
|
+
paystack.apple_pay.register_domain({ ... })
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Body Fields
|
|
42
|
+
|
|
43
|
+
| Name | Required |
|
|
44
|
+
|---|---|
|
|
45
|
+
| `domainName` | true |
|
|
46
|
+
|
|
47
|
+
## `unregister_domain`
|
|
48
|
+
|
|
49
|
+
**HTTP:** `DELETE`
|
|
50
|
+
**Path:** `/apple-pay/domain`
|
|
51
|
+
|
|
52
|
+
```ruby
|
|
53
|
+
paystack.apple_pay.unregister_domain({ ... })
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Body Fields
|
|
57
|
+
|
|
58
|
+
| Name | Required |
|
|
59
|
+
|---|---|
|
|
60
|
+
| `domainName` | true |
|
data/docs/balance.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Balance
|
|
2
|
+
|
|
3
|
+
A collection of endpoints gaining insights into the amount on an integration
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
| Method | HTTP | Path | Summary |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| `fetch` | `GET` | `/balance` | Fetch Balance |
|
|
10
|
+
| `ledger` | `GET` | `/balance/ledger` | Balance Ledger |
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## `fetch`
|
|
15
|
+
|
|
16
|
+
**HTTP:** `GET`
|
|
17
|
+
**Path:** `/balance`
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
paystack.balance.fetch
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## `ledger`
|
|
24
|
+
|
|
25
|
+
**HTTP:** `GET`
|
|
26
|
+
**Path:** `/balance/ledger`
|
|
27
|
+
|
|
28
|
+
```ruby
|
|
29
|
+
paystack.balance.ledger({ ... })
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Query Fields
|
|
33
|
+
|
|
34
|
+
| Name | Required |
|
|
35
|
+
|---|---|
|
|
36
|
+
| `perPage` | false |
|
|
37
|
+
| `page` | false |
|
|
38
|
+
| `from` | false |
|
|
39
|
+
| `to` | false |
|
data/docs/bank.md
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# Bank
|
|
2
|
+
|
|
3
|
+
A collection of endpoints for managing bank details
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
| Method | HTTP | Path | Summary |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| `list` | `GET` | `/bank` | List Banks |
|
|
10
|
+
| `resolve_account_number` | `GET` | `/bank/resolve` | Resolve Account Number |
|
|
11
|
+
| `validate_account_number` | `POST` | `/bank/validate` | Validate Bank Account |
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## `list`
|
|
16
|
+
|
|
17
|
+
**HTTP:** `GET`
|
|
18
|
+
**Path:** `/bank`
|
|
19
|
+
|
|
20
|
+
```ruby
|
|
21
|
+
paystack.bank.list({ ... })
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Query Fields
|
|
25
|
+
|
|
26
|
+
| Name | Required |
|
|
27
|
+
|---|---|
|
|
28
|
+
| `country` | false |
|
|
29
|
+
| `currency` | false |
|
|
30
|
+
| `use_cursor` | false |
|
|
31
|
+
| `perPage` | false |
|
|
32
|
+
| `page` | false |
|
|
33
|
+
| `next` | false |
|
|
34
|
+
| `previous` | false |
|
|
35
|
+
| `pay_with_bank_transfer` | false |
|
|
36
|
+
| `pay_with_bank` | false |
|
|
37
|
+
| `enabled_for_verification` | false |
|
|
38
|
+
| `gateway` | false |
|
|
39
|
+
| `type` | false |
|
|
40
|
+
| `include_nip_sort_code` | false |
|
|
41
|
+
|
|
42
|
+
## `resolve_account_number`
|
|
43
|
+
|
|
44
|
+
**HTTP:** `GET`
|
|
45
|
+
**Path:** `/bank/resolve`
|
|
46
|
+
|
|
47
|
+
```ruby
|
|
48
|
+
paystack.bank.resolve_account_number({ ... })
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### Query Fields
|
|
52
|
+
|
|
53
|
+
| Name | Required |
|
|
54
|
+
|---|---|
|
|
55
|
+
| `account_number` | false |
|
|
56
|
+
| `bank_code` | false |
|
|
57
|
+
|
|
58
|
+
## `validate_account_number`
|
|
59
|
+
|
|
60
|
+
**HTTP:** `POST`
|
|
61
|
+
**Path:** `/bank/validate`
|
|
62
|
+
|
|
63
|
+
```ruby
|
|
64
|
+
paystack.bank.validate_account_number({ ... })
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Body Fields
|
|
68
|
+
|
|
69
|
+
| Name | Required |
|
|
70
|
+
|---|---|
|
|
71
|
+
| `account_name` | true |
|
|
72
|
+
| `account_number` | true |
|
|
73
|
+
| `account_type` | true |
|
|
74
|
+
| `bank_code` | true |
|
|
75
|
+
| `country_code` | true |
|
|
76
|
+
| `document_type` | true |
|
|
77
|
+
| `document_number` | false |
|
data/docs/bulk_charge.md
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
# BulkCharge
|
|
2
|
+
|
|
3
|
+
A collection of endpoints for creating and managing multiple recurring payments
|
|
4
|
+
|
|
5
|
+
## Methods
|
|
6
|
+
|
|
7
|
+
| Method | HTTP | Path | Summary |
|
|
8
|
+
|---|---|---|---|
|
|
9
|
+
| `charges` | `GET` | `/bulkcharge/{code}/charges` | List Charges in a Batch |
|
|
10
|
+
| `fetch` | `GET` | `/bulkcharge/{code}` | Fetch Bulk Charge Batch |
|
|
11
|
+
| `initiate` | `POST` | `/bulkcharge` | Initiate Bulk Charge |
|
|
12
|
+
| `list` | `GET` | `/bulkcharge` | List Bulk Charge Batches |
|
|
13
|
+
| `pause` | `GET` | `/bulkcharge/pause/{code}` | Pause Bulk Charge Batch |
|
|
14
|
+
| `resume` | `GET` | `/bulkcharge/resume/{code}` | Resume Bulk Charge Batch |
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## `charges`
|
|
19
|
+
|
|
20
|
+
**HTTP:** `GET`
|
|
21
|
+
**Path:** `/bulkcharge/{code}/charges`
|
|
22
|
+
|
|
23
|
+
```ruby
|
|
24
|
+
paystack.bulk_charge.charges(code, { ... })
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Path Parameters
|
|
28
|
+
|
|
29
|
+
| Name | Required |
|
|
30
|
+
|---|---|
|
|
31
|
+
| `code` | true |
|
|
32
|
+
|
|
33
|
+
### Query Fields
|
|
34
|
+
|
|
35
|
+
| Name | Required |
|
|
36
|
+
|---|---|
|
|
37
|
+
| `perPage` | false |
|
|
38
|
+
| `page` | false |
|
|
39
|
+
| `status` | false |
|
|
40
|
+
|
|
41
|
+
## `fetch`
|
|
42
|
+
|
|
43
|
+
**HTTP:** `GET`
|
|
44
|
+
**Path:** `/bulkcharge/{code}`
|
|
45
|
+
|
|
46
|
+
```ruby
|
|
47
|
+
paystack.bulk_charge.fetch(code)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Path Parameters
|
|
51
|
+
|
|
52
|
+
| Name | Required |
|
|
53
|
+
|---|---|
|
|
54
|
+
| `code` | true |
|
|
55
|
+
|
|
56
|
+
## `initiate`
|
|
57
|
+
|
|
58
|
+
**HTTP:** `POST`
|
|
59
|
+
**Path:** `/bulkcharge`
|
|
60
|
+
|
|
61
|
+
```ruby
|
|
62
|
+
paystack.bulk_charge.initiate({ ... })
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## `list`
|
|
66
|
+
|
|
67
|
+
**HTTP:** `GET`
|
|
68
|
+
**Path:** `/bulkcharge`
|
|
69
|
+
|
|
70
|
+
```ruby
|
|
71
|
+
paystack.bulk_charge.list({ ... })
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Query Fields
|
|
75
|
+
|
|
76
|
+
| Name | Required |
|
|
77
|
+
|---|---|
|
|
78
|
+
| `perPage` | false |
|
|
79
|
+
| `page` | false |
|
|
80
|
+
| `status` | false |
|
|
81
|
+
|
|
82
|
+
## `pause`
|
|
83
|
+
|
|
84
|
+
**HTTP:** `GET`
|
|
85
|
+
**Path:** `/bulkcharge/pause/{code}`
|
|
86
|
+
|
|
87
|
+
```ruby
|
|
88
|
+
paystack.bulk_charge.pause(code)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Path Parameters
|
|
92
|
+
|
|
93
|
+
| Name | Required |
|
|
94
|
+
|---|---|
|
|
95
|
+
| `code` | true |
|
|
96
|
+
|
|
97
|
+
## `resume`
|
|
98
|
+
|
|
99
|
+
**HTTP:** `GET`
|
|
100
|
+
**Path:** `/bulkcharge/resume/{code}`
|
|
101
|
+
|
|
102
|
+
```ruby
|
|
103
|
+
paystack.bulk_charge.resume(code)
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
### Path Parameters
|
|
107
|
+
|
|
108
|
+
| Name | Required |
|
|
109
|
+
|---|---|
|
|
110
|
+
| `code` | true |
|