Skip to content

Commit 643f137

Browse files
Merge pull request #90 from emperorsixpacks/main1
Main1
2 parents bcc5554 + 3d70920 commit 643f137

File tree

13 files changed

+97
-97
lines changed

13 files changed

+97
-97
lines changed

docs/bulk_charge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ response = BulkCharge.fetch_bulk_batch(
5555
```
5656

5757
*Arguments*
58-
- `id_or_code`: An ID or code for the transfer whose details you want to retrieve.
58+
- `id_or_code`: An ID or code for the transfer whose details you want to retrieve details.
5959

6060
*Returns*
6161

docs/charge.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Charge
22
--------------------
3-
#### `Charge.start_charge(**kwargs)` - Start a Charge
3+
#### `Charge.start_charge(**kwargs)` - Start a charge
44

55
*Usage*
66

@@ -37,7 +37,7 @@ response = Charge.start_charge(
3737

3838
JSON data from Paystack API.
3939

40-
#### `Charge.submit_pin(**kwargs)` - Submit PIN to continue a charge.
40+
#### `Charge.submit_pin(**kwargs)` - Submit PIN to continue the charge.
4141

4242
*Usage*
4343

@@ -59,7 +59,7 @@ response = Charge.submit_pin(
5959
JSON data from Paystack API.
6060

6161

62-
#### `Charge.submit_otp(**kwargs)` - Submit OTP to complete a charge.
62+
#### `Charge.submit_otp(**kwargs)` - Submit OTP to complete the charge.
6363

6464
*Usage*
6565

@@ -81,7 +81,7 @@ response = Charge.submit_otp(
8181
JSON data from Paystack API.
8282

8383

84-
#### `Charge.submit_phone(**kwargs)` - Submit Phone when requested.
84+
#### `Charge.submit_phone(**kwargs)` - Submit phone when requested.
8585

8686
*Usage*
8787

@@ -101,7 +101,7 @@ response = Charge.submit_phone(
101101

102102
JSON data from Paystack API.
103103

104-
#### `Charge.submit_birthday(**kwargs)` - Submit Birthday when requested.
104+
#### `Charge.submit_birthday(**kwargs)` - Submit birthday when requested.
105105

106106
*Usage*
107107

docs/customers.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ response = Customer.get(customer_id=24)
3535

3636
JSON data from paystack API.
3737

38-
##### `Customer.list(perPage=50, page=6)` - List paystack customers
38+
##### `Customer.list(perPage=50, page=6)` - List Paystack customers
3939

4040
```python
4141
from paystackapi.customer import Customer
@@ -45,7 +45,7 @@ response = Customer.list(perPage=50, page=6)
4545
*Arguments*
4646

4747
- `perPage`: Specify how many records you want to retrieve per page.
48-
If not specify we use a default value of 50. (Integer)
48+
If not specified we use a default value of 50. (Integer)
4949

5050
- `page`: Specify exactly what page you want to retrieve.
5151
defaults to 1 if not present(Integer)
@@ -60,7 +60,7 @@ response = Customer.list(perPage=50, page=6)
6060

6161
JSON data from paystack API.
6262

63-
##### `Customer.update(customer_id, first_name=None, last_name=None, email=None, phone=None)` - Update paystack customer data by id.
63+
##### `Customer.update(customer_id, first_name=None, last_name=None, email=None, phone=None)` - Update paystack customer data by ID.
6464

6565
```python
6666
from paystackapi.customer import Customer
@@ -70,12 +70,12 @@ response = Customer.update(customer_id=24, first_name=None,
7070
```
7171

7272
*Arguments*
73-
- `customer_id`: paystack customer id.
73+
- `customer_id`: paystack customer ID.
7474
- `first_name`: customer's first name(optional).
7575
- `last_name`: customer's last name(optional).
7676
- `email`: customer's email address(optional).
7777
- `phone`: customer's phone number(optional).
7878

7979
*Returns*
8080

81-
JSON data from paystack API.
81+
JSON data from the Paystack API.

docs/invoices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ response = Invoice.view(
6464
```
6565

6666
*Arguments*
67-
- `invoice_id_or_code`: invoice ID or Code (string)
67+
- `invoice_id_or_code`: invoice ID or code (string)
6868

6969
*Returns*
7070

docs/payment_page.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ response = Page.fetch(id_or_slug="5nApBwZkvY")
5252

5353
JSON data from Paystack API.
5454

55-
#### `Page.update(id_or_slug)` - Update a Page by id_or_slug
55+
#### `Page.update(id_or_slug)` - Update a Page by ID or slug
5656

5757
*Usage*
5858

@@ -62,14 +62,14 @@ response = Page.update(id_or_slug="5nApBwZkvY", **kwargs)
6262
```
6363

6464
*Arguments*
65-
- `id_or_slug`: id or slug
65+
- `id_or_slug`: ID or slug
6666
- `**kwargs`
6767

6868
*Returns*
6969

7070
JSON data from Paystack API.
7171

72-
#### `Page.is_slug_available(id_or_slug)` - Check Slug Availability
72+
#### `Page.is_slug_available(id_or_slug)` - Check Slug availability
7373

7474
*Usage*
7575

@@ -79,7 +79,7 @@ response = Page.is_slug_available(slug="new_or_existing_slug")
7979
```
8080

8181
*Arguments*
82-
- `slug`: URL slug to be confirmed
82+
- `slug`: URL slug to be checked
8383

8484
*Returns*
8585

@@ -99,8 +99,8 @@ response = Page.add_products(
9999

100100
*Arguments*
101101

102-
- `payment_page_id`: Id of the payment page (Integer)
103-
- `product`: Ids of all the products i.e. [473, 292]
102+
- `payment_page_id`: ID of the payment page (Integer)
103+
- `product`: IDs of all the products i.e. [473, 292]
104104

105105
*Returns*
106106

docs/plans.md

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ from paystackapi.plan import Plan
77
response = Plan.create(name='value', description='value',
88
amount=amount, interval='value',
99
send_invoices='value',
10-
send_sms='value',
11-
hosted_page='value',
12-
hosted_page_url='value',
13-
hosted_page_summary='value',
14-
currency='value')
10+
send_sms=True,
11+
hosted_page=False,
12+
hosted_page_url=None,
13+
hosted_page_summary=None,
14+
currency='NGN')
1515
```
1616

1717
*Arguments*
1818

19-
- `name`: plan's name.
20-
- `description`: description of the plan.
21-
- `amount`: amount for the plan in kobo
22-
- `interval`: plan's interval(daily...etc)
23-
- `send_invoices`: boolean
24-
- `send_sms`: (optional)
25-
- `hosted_page`: (optional)
19+
- `name`: plan name.
20+
- `description`: plan description.
21+
- `amount`: plan amount in kobo.
22+
- `interval`: plan interval (daily...etc)
23+
- `send_invoices`: Boolean
24+
- `send_sms`: Boolean (optional)
25+
- `hosted_page`: Boolean (optional)
2626
- `hosted_page_url`: url of hosted page (optional)
2727
- `hosted_page_summary`: summary of the hosted page
28-
- `currency`: plans currency (NGN)
28+
- `currency`: plan currency (NGN)
2929

3030
*Returns*
3131

@@ -67,24 +67,23 @@ JSON data from paystack API.
6767
from paystackapi.plan import Plan
6868
response = Plan.update(plan_id=23, name=None, description=None,
6969
amount=None, interval=None,
70-
send_invoices=None, send_sms=None,
70+
send_invoices=None, send_sms=True,
7171
hosted_page=None, hosted_page_url=None,
72-
hosted_page_summary=None, currency=None)
72+
hosted_page_summary=None, currency=NGN)
7373
```
7474

7575
*Arguments*
7676

77-
- `plan_id`: plan identity number.
78-
- `name`: name of plan
79-
- `description`: plan description(optional)
80-
- `amount`: plan amount in Kobo
81-
- `interval`: plan interval9(monthly, yearly, quarterly...etc)
82-
- `send_invoice`: (optional)
83-
- `send_sms`: (optional)
84-
- `hosted_page`: (optional)
85-
- `hosted_page_url`: (optional)
86-
- `hosted_page_summary`: (optional)
87-
- `currency`: Naira in kobo(NGN)
77+
- `name`: plan name.
78+
- `description`: plan description.
79+
- `amount`: plan amount in kobo.
80+
- `interval`: plan interval (daily...etc)
81+
- `send_invoices`: Boolean
82+
- `send_sms`: Boolean (optional)
83+
- `hosted_page`: Boolean (optional)
84+
- `hosted_page_url`: url of hosted page (optional)
85+
- `hosted_page_summary`: summary of the hosted page
86+
- `currency`: plan currency (NGN)
8887

8988
*Returns*
9089

docs/product.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
Product
22
-------
3-
#### `Product.create(**kwargs)` - Create a Product
3+
#### `Product.create(**kwargs)` - Create a product
44

55
*Usage*
66

77
```python
88
from paystackapi.product import Product
9-
response = Product.create(name="Product pypaystack test",
10-
description="my test description",
9+
response = Product.create(name="Product PyPaystack test",
10+
description="Description of the product",
1111
price=500000, currency="NGN", **kwargs)
1212
```
1313

@@ -16,15 +16,15 @@ response = Product.create(name="Product pypaystack test",
1616
- `name`: Name of the product
1717
- `description`: Description of product
1818
- `price`: Price of the product, in kobo(Integer)
19-
- `currency`: Currency in which amount should be charged
19+
- `currency`: Currency in which the amount should be charged
2020
- **kwargs
2121

2222
*Returns*
2323

2424
JSON data from Paystack API.
2525

2626

27-
#### `Product.list()` - list created Products
27+
#### `Product.list()` - List created products
2828

2929
*Usage*
3030

@@ -42,7 +42,7 @@ No argument required.
4242
JSON data from Paystack API.
4343

4444

45-
#### `Product.fetch(product_id)` - fetch created Products by id
45+
#### `Product.fetch(product_id)` - Fetch created Products by ID
4646

4747
*Usage*
4848

@@ -53,14 +53,14 @@ response = Product.fetch(product_id=5499)
5353

5454
*Arguments*
5555

56-
- `product_id`: Product id(integer).
56+
- `product_id`: Product ID (integer).
5757

5858
*Returns*
5959

6060
JSON data from Paystack API.
6161

6262

63-
#### `Product.update(product_id, **kwargs)` - update a created Product by id
63+
#### `Product.update(product_id, **kwargs)` - Update a created product by ID
6464

6565
*Usage*
6666

@@ -75,7 +75,7 @@ response = Product.update(product_id=5499, **kwargs)
7575
- `name`: Name of the product
7676
- `description`: Description of product
7777
- `price`: Price of the product, in kobo(Integer)
78-
- `currency`: Currency in which amount should be charged
78+
- `currency`: Currency in which the amount should be charged
7979
- `**kwargs`
8080

8181
*Returns*

docs/refunds.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Refunds
22
-------
3-
#### `Refund.create(**kwargs)` - This creates a refund which is then processed by the Paystack team
3+
#### `Refund.create(**kwargs)` - Create a refund, which is then processed by the Paystack team.
44

55
```python
66
from paystackapi.refund import Refund
@@ -9,32 +9,33 @@ response = Refund.create(**kwargs)
99
```
1010
*Arguments*
1111
- `transaction`: Transaction reference or id
12-
- `amount`: How much in kobo to be refunded to the customer - Optional
13-
- `currency`: Three-letter ISO currency - Optional
14-
- `customer_note`: Customer reason - Optional
15-
- `merchant_note`: Merchant reason - Optional
12+
- `amount`: Amount in kobo to be refunded to the customer (optional).
13+
- `currency`: Three-letter ISO currency (Optional)
14+
- `customer_note`: Customer reason
15+
(Optional)
16+
- `merchant_note`: Merchant reason (Optional)
1617

1718
*Returns*
1819

1920
JSON data from paystack API.
2021

2122

22-
#### `Refund.list(**kwargs)` - Get a list of refunds
23+
#### `Refund.list(**kwargs)` - Get a list of refunds.
2324

2425
```python
2526
from paystackapi.refund import Refund
2627
response = Refund.list(**kwargs)
2728

2829
```
2930
*Arguments*
30-
- `reference`: Identifier for transaction to be refunded - Optional
31-
- `currency`: Three-letter ISO currency - Optional
31+
- `reference`: Identifier for transaction to be refunded (Optional)
32+
- `currency`: Three-letter ISO currency - (Optional)
3233

3334
*Returns*
3435

3536
JSON data from paystack API.
3637

37-
#### `Refund.fetch(refund_id)` - Get a refund by its id
38+
#### `Refund.fetch(refund_id)` - Get a refund by its ID
3839

3940
```python
4041
from paystackapi.refund import Refund

docs/sub_account.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SubAccount
22
-------
3-
#### `SubAccount.create(**kwargs)` - Create a SubAccount
3+
#### `SubAccount.create(**kwargs)` - Create a subaccount
44

55
*Usage*
66

@@ -38,7 +38,7 @@ response = SubAccount.list(perPage=3, page=1)
3838
*Arguments*
3939

4040
- `perPage`: Records you want to retrieve per page (Integer)
41-
- `page`: What page you want to retrieve (Integer)
41+
- `page`: What page you want to retrieve? (Integer)
4242
- `**kwargs`
4343

4444
*Returns*
@@ -52,12 +52,12 @@ JSON data from Paystack API.
5252

5353
```python
5454
from paystackapi.subaccount import SubAccount
55-
response = SubAccount.fetch(id_or_slug="some_slug_like_subaccount_code_or_id)
55+
response = SubAccount.fetch(id_or_slug="some_slug_like_subaccount_code_or_id")
5656
```
5757

5858
*Arguments*
5959

60-
- `id_or_slug`: ID or Subaccount_Code
60+
- `id_or_slug`: ID or subaccount code
6161

6262
*Returns*
6363

@@ -71,7 +71,7 @@ JSON data from Paystack API.
7171
```python
7272
from paystackapi.subaccount import SubAccount
7373
response = SubAccount.update(
74-
id_or_slug="some_slug_like_subaccount_code_or_id),
74+
id_or_slug="some_slug_like_subaccount_code_or_id",
7575
**kwargs
7676
)
7777
```

0 commit comments

Comments
 (0)