Skip to content

Commit

Permalink
copy fix and update
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Paystack committed Nov 19, 2024
1 parent 851fa4b commit ab03773
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 14 deletions.
4 changes: 2 additions & 2 deletions dist/api/charges/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ data='{
]
},
"bank": {
code: "057",
account_number: "0000000000"
"code": "057",
"account_number": "0000000000"
},
"birthday": "1995-12-23"
}'
Expand Down
2 changes: 1 addition & 1 deletion dist/api/customers/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"email": "zero@sum.com",
"email": "customer@example.com",
"first_name": "Zero",
"last_name": "Sum",
"phone": "+2348123456789"
Expand Down
4 changes: 3 additions & 1 deletion dist/api/plans/update/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ const sh = `#!/bin/sh
url="https://api.paystack.co/plan/:id_or_code"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Monthly retainer (renamed)" }'
data='{
"name": "Monthly retainer (renamed)"
}'
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`

Expand Down
3 changes: 2 additions & 1 deletion dist/api/products/create/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const sh = `#!/bin/sh
url="https://api.paystack.co/product"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Puff Puff",
data='{
"name": "Puff Puff",
"description": "Crispy flour ball with fluffy interior",
"price": "5000",
"currency": "NGN",
Expand Down
2 changes: 1 addition & 1 deletion dist/api/terminal/update/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"address": "Somewhere on earth
"address": "Somewhere on earth"
}'
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`
Expand Down
3 changes: 2 additions & 1 deletion dist/api/transfers/initiate/requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
data='{
"source": "balance",
"reason": "Calm down",
"amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
"amount":3794800,
"recipient": "RCP_gx2wn530m0i3w3m"
}'
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`
Expand Down
4 changes: 2 additions & 2 deletions src/api/charges/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ data='{
]
},
"bank": {
code: "057",
account_number: "0000000000"
"code": "057",
"account_number": "0000000000"
},
"birthday": "1995-12-23"
}'
Expand Down
2 changes: 1 addition & 1 deletion src/api/customers/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"email": "zero@sum.com",
"email": "customer@example.com",
"first_name": "Zero",
"last_name": "Sum",
"phone": "+2348123456789"
Expand Down
4 changes: 3 additions & 1 deletion src/api/plans/update/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
url="https://api.paystack.co/plan/:id_or_code"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Monthly retainer (renamed)" }'
data='{
"name": "Monthly retainer (renamed)"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT
3 changes: 2 additions & 1 deletion src/api/products/create/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
url="https://api.paystack.co/product"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{ "name": "Puff Puff",
data='{
"name": "Puff Puff",
"description": "Crispy flour ball with fluffy interior",
"price": "5000",
"currency": "NGN",
Expand Down
2 changes: 1 addition & 1 deletion src/api/terminal/update/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
authorization="Authorization: Bearer YOUR_SECRET_KEY"
content_type="Content-Type: application/json"
data='{
"address": "Somewhere on earth
"address": "Somewhere on earth"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT
3 changes: 2 additions & 1 deletion src/api/transfers/initiate/index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
data='{
"source": "balance",
"reason": "Calm down",
"amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
"amount":3794800,
"recipient": "RCP_gx2wn530m0i3w3m"
}'

curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST

0 comments on commit ab03773

Please # to comment.