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
70 changes: 55 additions & 15 deletions dist/paystack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3714,6 +3714,7 @@
tags:
- Storefront
summary: Create Storefront
description: Create a digital shop to manage and display your products
operationId: storefront_create
requestBody:
content:
Expand All @@ -3734,23 +3735,29 @@
tags:
- Storefront
summary: List Storefronts
description: List the storefronts you previously created
operationId: storefront_list
parameters:
- name: perPage
in: query
- in: query
name: perPage
description: Number of records to fetch per request
schema:
type: integer
- name: page
in: query
default: 50
- in: query
name: page
description: The offset to retrieve data from
schema:
type: integer
default: 1
- name: status
in: query
schema:
type: string
enum:
- active
- inactive
example: active
responses:
'200':
$ref: '#/components/responses/StorefrontListSuccess'
Expand All @@ -3763,14 +3770,17 @@
/storefront/{id}:
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
type: integer
example: 1559046
get:
tags:
- Storefront
summary: Fetch Storefront
description: Get the details of a previously created Storefront
operationId: storefront_fetch
responses:
'200':
Expand All @@ -3785,6 +3795,7 @@
tags:
- Storefront
summary: Update Storefront
description: Update the details of a previously created Storefront
operationId: storefront_update
requestBody:
content:
Expand All @@ -3807,6 +3818,7 @@
tags:
- Storefront
summary: Delete Storefront
description: Delete a previously created Storefront
operationId: storefront_delete
responses:
'200':
Expand All @@ -3820,14 +3832,17 @@
/storefront/verify/{slug}:
parameters:
- name: slug
description: The custom slug to check
in: path
required: true
schema:
type: string
example: struct_and_faces
get:
tags:
- Storefront
summary: Verify Storefront Slug
description: Verify the availability of a slug before using it for your Storefront
operationId: storefront_verifySlug
responses:
'200':
Expand All @@ -3847,11 +3862,12 @@
operationId: storefront_fetchOrders
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
example: Z0R4orOU
type: integer
example: 1559046
responses:
'200':
$ref: '#/components/responses/Ok'
Expand All @@ -3862,14 +3878,17 @@
/storefront/{id}/product:
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
type: integer
example: 1559046
post:
tags:
- Storefront
summary: Add Products to Storefront
description: Add previously created products to a Storefront
operationId: storefront_addProducts
requestBody:
content:
Expand All @@ -3891,7 +3910,8 @@
get:
tags:
- Storefront
summary: List Products in Storefront
summary: List Storefront Products
description: List the products in a Storefront
operationId: storefront_listProducts
responses:
'200':
Expand All @@ -3905,14 +3925,17 @@
/storefront/{id}/publish:
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
type: integer
example: 1559046
post:
tags:
- Storefront
summary: Publish Storefront
description: Make your Storefront publicly available
operationId: storefront_publish
responses:
'200':
Expand All @@ -3926,14 +3949,17 @@
/storefront/{id}/duplicate:
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
type: integer
example: 1559046
post:
tags:
- Storefront
summary: Duplicate Storefront
description: Duplicate a previously created Storefront
operationId: storefront_duplicate
responses:
'200':
Expand All @@ -3945,7 +3971,7 @@
default:
description: Server error
/order:
post:

Check warning on line 3974 in dist/paystack.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
tags:
- Order
summary: Create Order
Expand All @@ -3965,7 +3991,7 @@
$ref: '#/components/responses/Unauthorized'
default:
description: Server error
get:

Check warning on line 3994 in dist/paystack.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
tags:
- Order
summary: List Orders
Expand Down Expand Up @@ -4009,7 +4035,7 @@
required: true
schema:
type: string
get:

Check warning on line 4038 in dist/paystack.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
tags:
- Order
summary: Fetch Order
Expand All @@ -4030,7 +4056,7 @@
required: true
schema:
type: string
get:

Check warning on line 4059 in dist/paystack.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
tags:
- Order
summary: Fetch Products Order
Expand All @@ -4051,7 +4077,7 @@
required: true
schema:
type: string
get:

Check warning on line 4080 in dist/paystack.yaml

View workflow job for this annotation

GitHub Actions / Lint (pull_request)

operation-description

Operation "description" must be present and non-empty string.
tags:
- Order
summary: Validate pay for me order
Expand Down Expand Up @@ -14482,16 +14508,24 @@
type: string
slug:
description: |
A unique identifier to access your store. Once the storefront is created, it can be accessed from
https://paystack.shop/your-slug
A unique identifier to access your store. Once the storefront is created, it can be accessed from https://paystack.shop/your-slug
type: string
currency:
description: |
Currency for prices of products in your storefront. Allowed values are: `NGN`, `GHS`, `KES`, `ZAR` or `USD`
description: Currency for prices of products in your storefront.
type: string
enum:
- GHS
- KES
- NGN
- USD
- ZAR
description:
description: The description of the storefront
type: string
example:
name: Obi and Sons
slug: obi_and_sons
currency: NGN
StorefrontContactsArray:
type: object
properties:
Expand Down Expand Up @@ -14718,6 +14752,8 @@
description:
description: The description of the storefront
type: string
example:
description: Import and Export
StorefrontUpdateResponse:
type: object
properties:
Expand Down Expand Up @@ -14748,6 +14784,10 @@
type: array
items:
type: integer
example:
products:
- 2196244
- 2179824
OrderItemsArray:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ properties:
type: array
items:
type: integer
example:
products:
- 2196244
- 2179824
15 changes: 11 additions & 4 deletions src/assets/openapi/components/schemas/StorefrontCreate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,21 @@ properties:
description: >
A unique identifier to access your store. Once the storefront is created,
it can be accessed from

https://paystack.shop/your-slug
type: string
currency:
description: >
Currency for prices of products in your storefront. Allowed values are:
`NGN`, `GHS`, `KES`, `ZAR` or `USD`
description: Currency for prices of products in your storefront.
type: string
enum:
- GHS
- KES
- NGN
- USD
- ZAR
description:
description: The description of the storefront
type: string
example:
name: Obi and Sons
slug: 'obi_and_sons'
currency: NGN
2 changes: 2 additions & 0 deletions src/assets/openapi/components/schemas/StorefrontUpdate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ properties:
description:
description: The description of the storefront
type: string
example:
description: Import and Export
15 changes: 11 additions & 4 deletions src/assets/openapi/paths/storefront.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ post:
tags:
- Storefront
summary: Create Storefront
description: Create a digital shop to manage and display your products
operationId: storefront_create
requestBody:
content:
Expand All @@ -22,23 +23,29 @@ get:
tags:
- Storefront
summary: List Storefronts
description: List the storefronts you previously created
operationId: storefront_list
parameters:
- name: perPage
in: query
- in: query
name: perPage
description: Number of records to fetch per request
schema:
type: integer
- name: page
in: query
default: 50
- in: query
name: page
description: The offset to retrieve data from
schema:
type: integer
default: 1
- name: status
in: query
schema:
type: string
enum:
- active
- inactive
example: active
responses:
'200':
$ref: ../components/responses/StorefrontListSuccess.yaml
Expand Down
3 changes: 3 additions & 0 deletions src/assets/openapi/paths/storefront_verify_{slug}.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
- name: slug
description: The custom slug to check
in: path
required: true
schema:
type: string
example: struct_and_faces
get:
tags:
- Storefront
summary: Verify Storefront Slug
description: Verify the availability of a slug before using it for your Storefront
operationId: storefront_verifySlug
responses:
'200':
Expand Down
7 changes: 6 additions & 1 deletion src/assets/openapi/paths/storefront_{id}.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
type: integer
example: 1559046
get:
tags:
- Storefront
summary: Fetch Storefront
description: Get the details of a previously created Storefront
operationId: storefront_fetch
responses:
'200':
Expand All @@ -22,6 +25,7 @@ put:
tags:
- Storefront
summary: Update Storefront
description: Update the details of a previously created Storefront
operationId: storefront_update
requestBody:
content:
Expand All @@ -44,6 +48,7 @@ delete:
tags:
- Storefront
summary: Delete Storefront
description: Delete a previously created Storefront
operationId: storefront_delete
responses:
'200':
Expand Down
5 changes: 4 additions & 1 deletion src/assets/openapi/paths/storefront_{id}_duplicate.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
type: integer
example: 1559046
post:
tags:
- Storefront
summary: Duplicate Storefront
description: Duplicate a previously created Storefront
operationId: storefront_duplicate
responses:
'200':
Expand Down
5 changes: 3 additions & 2 deletions src/assets/openapi/paths/storefront_{id}_order.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ get:
operationId: storefront_fetchOrders
parameters:
- name: id
description: The unique identifier of the Storefront
in: path
required: true
schema:
type: string
example: Z0R4orOU
type: integer
example: 1559046
responses:
'200':
$ref: ../components/responses/Ok.yaml
Expand Down
Loading
Loading