Skip to content

Commit 8d8c2e2

Browse files
chore: update DVA examples and descriptions
1 parent ef89553 commit 8d8c2e2

15 files changed

Lines changed: 142 additions & 41 deletions

dist/paystack.yaml

Lines changed: 71 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ paths:
14421442
description: The ID of the customer to initialize the direct debit for
14431443
schema:
14441444
type: integer
1445-
example: 463433
1445+
example: 297346561
14461446
post:
14471447
tags:
14481448
- Customer
@@ -1478,7 +1478,7 @@ paths:
14781478
description: The customer ID attached to the authorization
14791479
schema:
14801480
type: integer
1481-
example: 463433
1481+
example: 297346561
14821482
requestBody:
14831483
content:
14841484
application/json:
@@ -1508,7 +1508,7 @@ paths:
15081508
description: The customer ID for the authorizations to fetch
15091509
schema:
15101510
type: integer
1511-
example: 463433
1511+
example: 297346561
15121512
responses:
15131513
'200':
15141514
$ref: '#/components/responses/CustomerFetchMandateAuthorizationsSuccess'
@@ -1576,6 +1576,7 @@ paths:
15761576
- Dedicated Virtual Account
15771577
summary: Create Dedicated Account
15781578
operationId: dedicatedAccount_create
1579+
description: Create a dedicated virtual account for an existing customer
15791580
requestBody:
15801581
content:
15811582
application/json:
@@ -1600,39 +1601,52 @@ paths:
16001601
- Dedicated Virtual Account
16011602
summary: List Dedicated Accounts
16021603
operationId: dedicatedAccount_list
1604+
description: List dedicated virtual accounts available on your integration.
16031605
parameters:
1604-
- name: account_number
1606+
- name: active
16051607
in: query
1608+
description: Status of the dedicated virtual account
16061609
schema:
1607-
type: string
1610+
type: boolean
1611+
example: true
16081612
- name: customer
16091613
in: query
1614+
description: The customer's ID
16101615
schema:
1611-
type: string
1612-
- name: active
1613-
in: query
1614-
schema:
1615-
type: boolean
1616+
type: integer
1617+
example: 297346561
16161618
- name: currency
16171619
in: query
1620+
description: The currency of the dedicated virtual account
16181621
schema:
16191622
type: string
1623+
enum:
1624+
- NGN
1625+
- GHS
16201626
- name: provider_slug
16211627
in: query
1628+
description: The bank's slug in lowercase, without spaces
16221629
schema:
16231630
type: string
1631+
example: titan-paystack
16241632
- name: bank_id
16251633
in: query
1634+
description: The bank's ID
16261635
schema:
16271636
type: string
1637+
example: '035'
16281638
- name: perPage
16291639
in: query
1640+
description: The number of records to fetch per request
16301641
schema:
1631-
type: string
1642+
type: integer
1643+
default: 50
16321644
- name: page
16331645
in: query
1646+
description: The offset to retrieve data from
16341647
schema:
1635-
type: string
1648+
type: integer
1649+
default: 1
16361650
responses:
16371651
'200':
16381652
description: ''
@@ -1652,6 +1666,7 @@ paths:
16521666
- Dedicated Virtual Account
16531667
summary: Assign Dedicated Account
16541668
operationId: dedicatedAccount_assign
1669+
description: With this endpoint, you can create a customer, validate the customer, and assign a DVA to the customer.
16551670
requestBody:
16561671
content:
16571672
application/json:
@@ -1667,18 +1682,20 @@ paths:
16671682
$ref: '#/components/responses/Unauthorized'
16681683
default:
16691684
description: Server error
1670-
/dedicated_account/{account_id}:
1685+
/dedicated_account/{id}:
16711686
parameters:
1672-
- name: account_id
1687+
- name: id
16731688
in: path
16741689
required: true
1690+
description: ID of dedicated virtual account
16751691
schema:
16761692
type: string
16771693
get:
16781694
tags:
16791695
- Dedicated Virtual Account
16801696
summary: Fetch Dedicated Account
16811697
operationId: dedicatedAccount_fetch
1698+
description: Get details of a dedicated virtual account on your integration.
16821699
responses:
16831700
'200':
16841701
description: ''
@@ -1697,6 +1714,7 @@ paths:
16971714
- Dedicated Virtual Account
16981715
summary: Deactivate Dedicated Account
16991716
operationId: dedicatedAccount_deactivate
1717+
description: Deactivate a dedicated virtual account on your integration.
17001718
responses:
17011719
'200':
17021720
description: ''
@@ -1717,21 +1735,25 @@ paths:
17171735
in: query
17181736
schema:
17191737
type: string
1738+
example: '0033322211'
17201739
- name: provider_slug
1721-
description: The bank's slug in lowercase, without spaces e.g. `wema-bank`
1740+
description: The bank's slug in lowercase, without spaces.
17221741
in: query
17231742
schema:
17241743
type: string
1744+
example: titan-paystack
17251745
- name: date
1726-
description: The day the transfer was made in `YYYY-MM-DD` format
1746+
description: The day the transfer was made
17271747
in: query
17281748
schema:
17291749
type: string
1750+
format: date-time
17301751
get:
17311752
tags:
17321753
- Dedicated Virtual Account
17331754
summary: Requery Dedicated Account
17341755
operationId: dedicatedAccount_requery
1756+
description: Requery Dedicated Virtual Account for new transactions
17351757
responses:
17361758
'200':
17371759
$ref: '#/components/responses/Ok'
@@ -1747,6 +1769,7 @@ paths:
17471769
- Dedicated Virtual Account
17481770
summary: Split Dedicated Account Transaction
17491771
operationId: dedicatedAccount_addSplit
1772+
description: Split a dedicated virtual account transaction with one or more accounts
17501773
requestBody:
17511774
content:
17521775
application/json:
@@ -1767,14 +1790,15 @@ paths:
17671790
- Dedicated Virtual Account
17681791
summary: Remove Split from Dedicated Account
17691792
operationId: dedicatedAccount_removeSplit
1793+
description: If you've previously set up split payment for transactions on a dedicated virtual account, you can remove it with this endpoint
17701794
requestBody:
17711795
content:
17721796
application/json:
17731797
schema:
1774-
$ref: '#/components/schemas/DedicatedVirtualAccountSplit'
1798+
$ref: '#/components/schemas/DedicatedVirtualAccountRemoveSplit'
17751799
application/x-www-form-urlencoded:
17761800
schema:
1777-
$ref: '#/components/schemas/DedicatedVirtualAccountSplit'
1801+
$ref: '#/components/schemas/DedicatedVirtualAccountRemoveSplit'
17781802
responses:
17791803
'200':
17801804
$ref: '#/components/responses/Ok'
@@ -1790,6 +1814,7 @@ paths:
17901814
- Dedicated Virtual Account
17911815
summary: Fetch Bank Providers
17921816
operationId: dedicatedAccount_availableProviders
1817+
description: Get available bank providers for a dedicated virtual account
17931818
responses:
17941819
'200':
17951820
$ref: '#/components/responses/Ok'
@@ -8296,7 +8321,7 @@ components:
82968321
- customer
82978322
properties:
82988323
customer:
8299-
description: Customer ID or code
8324+
description: The code for the previously created customer
83008325
type: string
83018326
preferred_bank:
83028327
description: The bank slug for preferred bank. To get a list of available banks, use the List Providers endpoint
@@ -8307,6 +8332,9 @@ components:
83078332
split_code:
83088333
description: Split code consisting of the lists of accounts you want to split the transaction with
83098334
type: string
8335+
example:
8336+
customer: CUS_bo732eugpb2qrg6
8337+
preferred_bank: titan-paystack
83108338
DedicatedNubanCreateResponse:
83118339
type: object
83128340
properties:
@@ -8450,8 +8478,11 @@ components:
84508478
use the List Banks endpoint, passing `pay_with_bank_transfer=true` query parameter
84518479
type: string
84528480
country:
8453-
description: Currently accepts NG only
8481+
description: The two letter code country
84548482
type: string
8483+
enum:
8484+
- NG
8485+
- GH
84558486
account_number:
84568487
description: Customer's account number
84578488
type: string
@@ -8467,6 +8498,13 @@ components:
84678498
split_code:
84688499
description: Split code consisting of the lists of accounts you want to split the transaction with
84698500
type: string
8501+
example:
8502+
email: salmon.orange@email.com
8503+
first_name: Salmon
8504+
last_name: Orange
8505+
phone: '+2348100000000'
8506+
preferred_bank: titan-paystack
8507+
country: NG
84708508
DedicatedNubanFetchResponse:
84718509
type: object
84728510
properties:
@@ -8646,6 +8684,19 @@ components:
86468684
split_code:
86478685
description: Split code consisting of the lists of accounts you want to split the transaction with
86488686
type: string
8687+
example:
8688+
account_number: '0033322211'
8689+
split_code: SPL_e7jnRLtzla
8690+
DedicatedVirtualAccountRemoveSplit:
8691+
type: object
8692+
required:
8693+
- account_number
8694+
properties:
8695+
account_number:
8696+
description: Valid Dedicated virtual account
8697+
type: string
8698+
example:
8699+
account_number: '0033322211'
86498700
ApplePayParam:
86508701
type: object
86518702
required:

src/assets/openapi/components/schemas/DedicatedVirtualAccountAssign.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,11 @@ properties:
2727
parameter
2828
type: string
2929
country:
30-
description: Currently accepts NG only
30+
description: The two letter code country
3131
type: string
32+
enum:
33+
- NG
34+
- GH
3235
account_number:
3336
description: Customer's account number
3437
type: string
@@ -46,3 +49,10 @@ properties:
4649
Split code consisting of the lists of accounts you want to split the
4750
transaction with
4851
type: string
52+
example:
53+
email: salmon.orange@email.com
54+
first_name: Salmon
55+
last_name: Orange
56+
phone: "+2348100000000"
57+
preferred_bank: "titan-paystack"
58+
country: NG

src/assets/openapi/components/schemas/DedicatedVirtualAccountCreate.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ required:
33
- customer
44
properties:
55
customer:
6-
description: Customer ID or code
6+
description: The code for the previously created customer
77
type: string
88
preferred_bank:
99
description: >-
@@ -18,3 +18,6 @@ properties:
1818
Split code consisting of the lists of accounts you want to split the
1919
transaction with
2020
type: string
21+
example:
22+
customer: "CUS_bo732eugpb2qrg6"
23+
preferred_bank: "titan-paystack"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
type: object
2+
required:
3+
- account_number
4+
properties:
5+
account_number:
6+
description: Valid Dedicated virtual account
7+
type: string
8+
example:
9+
account_number: "0033322211"

src/assets/openapi/components/schemas/DedicatedVirtualAccountSplit.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ properties:
1313
Split code consisting of the lists of accounts you want to split the
1414
transaction with
1515
type: string
16+
example:
17+
account_number: "0033322211"
18+
split_code: "SPL_e7jnRLtzla"

src/assets/openapi/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ paths:
218218
$ref: paths/dedicated_account.yaml
219219
/dedicated_account/assign:
220220
$ref: paths/dedicated_account_assign.yaml
221-
/dedicated_account/{account_id}:
222-
$ref: paths/dedicated_account_{account_id}.yaml
221+
/dedicated_account/{id}:
222+
$ref: paths/dedicated_account_{id}.yaml
223223
/dedicated_account/requery:
224224
$ref: paths/dedicated_account_requery.yaml
225225
/dedicated_account/split:

src/assets/openapi/paths/customer_{id}_directdebit-activation-charge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ put:
1313
description: The customer ID attached to the authorization
1414
schema:
1515
type: integer
16-
example: 463433
16+
example: 297346561
1717
requestBody:
1818
content:
1919
application/json:

src/assets/openapi/paths/customer_{id}_directdebit-mandate-authorizations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ get:
1111
description: The customer ID for the authorizations to fetch
1212
schema:
1313
type: integer
14-
example: 463433
14+
example: 297346561
1515
responses:
1616
'200':
1717
$ref: ../components/responses/CustomerFetchMandateAuthorizationsSuccess.yaml

src/assets/openapi/paths/customer_{id}_initialize-direct-debit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ parameters:
55
description: The ID of the customer to initialize the direct debit for
66
schema:
77
type: integer
8-
example: 463433
8+
example: 297346561
99
post:
1010
tags:
1111
- Customer

0 commit comments

Comments
 (0)