Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,199 changes: 2,607 additions & 2,592 deletions dist/paystack.yaml

Large diffs are not rendered by default.

22 changes: 8 additions & 14 deletions src/assets/openapi/components/schemas/PaymentRequestCreate.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
type: object
required:
- customer
- amount
properties:
customer:
description: Customer id or code
Expand Down Expand Up @@ -39,32 +40,25 @@ properties:
Indicates whether Paystack sends an email notification to customer.
Defaults to true
type: boolean
items:
type: object
draft:
description: >-
Indicate if request should be saved as draft. Defaults to false and
overrides send_notification
type: boolean
items:
type: object
has_invoice:
description: >-
Set to true to create a draft invoice (adds an auto incrementing invoice
number if none is provided)

even if there are no line_items or tax passed
number if none is provided) even if there are no line_items or tax passed
type: boolean
items:
type: object
invoice_number:
description: >-
Numeric value of invoice. Invoice will start from 1 and auto increment
from there. This field is to help

override whatever value Paystack decides. Auto increment for subsequent
invoices continue from this point.
Numeric value of invoice. Invoice will start from 1 and auto increment from there.
This field is to help override whatever value Paystack decides. Auto increment for
subsequent invoices continue from this point.
type: integer
split_code:
description: The split code of the transaction split.
type: string
example:
customer: CUS_xqp6o5oja5cackf
amount: 10000
16 changes: 5 additions & 11 deletions src/assets/openapi/components/schemas/PaymentRequestUpdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,32 +37,26 @@ properties:
Indicates whether Paystack sends an email notification to customer.
Defaults to true
type: boolean
items:
type: object
draft:
description: >-
Indicate if request should be saved as draft. Defaults to false and
overrides send_notification
type: boolean
items:
type: object
has_invoice:
description: >-
Set to true to create a draft invoice (adds an auto incrementing invoice
number if none is provided)

even if there are no line_items or tax passed
number if none is provided) even if there are no line_items or tax passed
type: boolean
items:
type: object
invoice_number:
description: >-
Numeric value of invoice. Invoice will start from 1 and auto increment
from there. This field is to help

override whatever value Paystack decides. Auto increment for subsequent
invoices continue from this point.
from there. This field is to help override whatever value Paystack decides.
Auto increment for subsequent invoices continue from this point.
type: integer
split_code:
description: The split code of the transaction split.
type: string
example:
amount: 15000
38 changes: 19 additions & 19 deletions src/assets/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ tags:
A collection of endpoints gaining insights into the amount on an
integration
x-product-name: Balance
- name: Payment Request
description: |
A collection of endpoints for managing invoices for the payment of goods
and services
x-product-name: Payment Requests
- name: Product
description: |
A collection of endpoints for creating and managing inventories
Expand All @@ -106,11 +111,6 @@ tags:
A collection of endpoints for creating and managing links for the
collection of payment for products
x-product-name: Payment Pages
- name: Payment Request
description: |
A collection of endpoints for managing invoices for the payment of goods
and services
x-product-name: Payment Requests
- name: Settlement
description: |
A collection of endpoints for gaining insights into payouts
Expand Down Expand Up @@ -302,6 +302,20 @@ paths:
$ref: paths/balance.yaml
/balance/ledger:
$ref: paths/balance_ledger.yaml
/paymentrequest:
$ref: paths/paymentrequest.yaml
/paymentrequest/{id}:
$ref: paths/paymentrequest_{id}.yaml
/paymentrequest/verify/{id}:
$ref: paths/paymentrequest_verify_{id}.yaml
/paymentrequest/notify/{id}:
$ref: paths/paymentrequest_notify_{id}.yaml
/paymentrequest/totals:
$ref: paths/paymentrequest_totals.yaml
/paymentrequest/finalize/{id}:
$ref: paths/paymentrequest_finalize_{id}.yaml
/paymentrequest/archive/{id}:
$ref: paths/paymentrequest_archive_{id}.yaml
/product:
$ref: paths/product.yaml
/product/{id}:
Expand Down Expand Up @@ -336,20 +350,6 @@ paths:
$ref: paths/page_check_slug_availability_{slug}.yaml
/page/{id}/product:
$ref: paths/page_{id}_product.yaml
/paymentrequest:
$ref: paths/paymentrequest.yaml
/paymentrequest/{id}:
$ref: paths/paymentrequest_{id}.yaml
/paymentrequest/verify/{id}:
$ref: paths/paymentrequest_verify_{id}.yaml
/paymentrequest/notify/{id}:
$ref: paths/paymentrequest_notify_{id}.yaml
/paymentrequest/totals:
$ref: paths/paymentrequest_totals.yaml
/paymentrequest/finalize/{id}:
$ref: paths/paymentrequest_finalize_{id}.yaml
/paymentrequest/archive/{id}:
$ref: paths/paymentrequest_archive_{id}.yaml
/settlement:
$ref: paths/settlement.yaml
/settlement/{id}/transaction:
Expand Down
8 changes: 8 additions & 0 deletions src/assets/openapi/paths/paymentrequest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ post:
tags:
- Payment Request
summary: Create Payment Request
description: Create a new payment request by issuing an invoice to a customer
operationId: paymentRequest_create
requestBody:
content:
Expand All @@ -22,6 +23,7 @@ get:
tags:
- Payment Request
summary: List Payment Request
description: List all previously created payment requests to your customers
operationId: paymentRequest_list
parameters:
- in: query
Expand All @@ -43,6 +45,12 @@ get:
name: status
schema:
type: string
enum:
- draft
- pending
- success
- failed
example: success
description: Invoice status to filter
- in: query
name: currency
Expand Down
7 changes: 6 additions & 1 deletion src/assets/openapi/paths/paymentrequest_archive_{id}.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
parameters:
- name: id
description: The unique identifier of a previously created payment request
in: path
required: true
schema:
type: string
type: integer
example: 18823736
post:
tags:
- Payment Request
summary: Archive Payment Request
description: |
Archive a payment request to clean up your records. An archived payment request cannot be verified and will not
be returned when listing all previously created payment requests.
operationId: paymentRequest_archive
responses:
'200':
Expand Down
5 changes: 4 additions & 1 deletion src/assets/openapi/paths/paymentrequest_finalize_{id}.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
- name: id
description: The unique identifier of a draft payment request
in: path
required: true
schema:
type: string
type: integer
example: 18823736
post:
tags:
- Payment Request
summary: Finalize Payment Request
description: Finalise the creation of a draft payment request for a customer
operationId: paymentRequest_finalize
responses:
'200':
Expand Down
5 changes: 4 additions & 1 deletion src/assets/openapi/paths/paymentrequest_notify_{id}.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
- name: id
description: The unique identifier of a previously created payment request
in: path
required: true
schema:
type: string
type: integer
example: 18823736
post:
tags:
- Payment Request
summary: Send Notification
description: Trigger an email reminder to a customer for a previously created payment request
operationId: paymentRequest_notify
responses:
'200':
Expand Down
1 change: 1 addition & 0 deletions src/assets/openapi/paths/paymentrequest_totals.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ get:
tags:
- Payment Request
summary: Payment Request Total
description: Get the metric of all pending and successful payment requests
operationId: paymentRequest_totals
responses:
'200':
Expand Down
5 changes: 4 additions & 1 deletion src/assets/openapi/paths/paymentrequest_verify_{id}.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
- name: id
description: The unique identifier of a previously created payment request
in: path
required: true
schema:
type: string
type: integer
example: 18823736
get:
tags:
- Payment Request
summary: Verify Payment Request
description: Verify the status of a previously created payment request
operationId: paymentRequest_verify
responses:
'200':
Expand Down
6 changes: 5 additions & 1 deletion src/assets/openapi/paths/paymentrequest_{id}.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
- name: id
description: The unique identifier of a previously created payment request
in: path
required: true
schema:
type: string
type: integer
example: 18823736
get:
tags:
- Payment Request
summary: Fetch Payment Request
description: Fetch a previously created payment request
operationId: paymentRequest_fetch
responses:
'200':
Expand All @@ -22,6 +25,7 @@ put:
tags:
- Payment Request
summary: Update Payment Request
description: Update a previously created payment request
operationId: paymentRequest_update
requestBody:
content:
Expand Down
Loading