diff --git a/dist/api/charges/create/requests.js b/dist/api/charges/create/requests.js index 4dfba57..20afcd2 100644 --- a/dist/api/charges/create/requests.js +++ b/dist/api/charges/create/requests.js @@ -15,8 +15,8 @@ data='{ ] }, "bank": { - code: "057", - account_number: "0000000000" + "code": "057", + "account_number": "0000000000" }, "birthday": "1995-12-23" }' diff --git a/dist/api/customers/create/requests.js b/dist/api/customers/create/requests.js index 58960ed..a38ad09 100644 --- a/dist/api/customers/create/requests.js +++ b/dist/api/customers/create/requests.js @@ -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" diff --git a/dist/api/plans/update/requests.js b/dist/api/plans/update/requests.js index b3cb68e..7c11a35 100644 --- a/dist/api/plans/update/requests.js +++ b/dist/api/plans/update/requests.js @@ -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` diff --git a/dist/api/products/create/requests.js b/dist/api/products/create/requests.js index fa7e63f..74db5ff 100644 --- a/dist/api/products/create/requests.js +++ b/dist/api/products/create/requests.js @@ -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", diff --git a/dist/api/terminal/update/requests.js b/dist/api/terminal/update/requests.js index 2170832..74c6ccc 100644 --- a/dist/api/terminal/update/requests.js +++ b/dist/api/terminal/update/requests.js @@ -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` diff --git a/dist/api/transfers/initiate/requests.js b/dist/api/transfers/initiate/requests.js index bbe4561..02248e7 100644 --- a/dist/api/transfers/initiate/requests.js +++ b/dist/api/transfers/initiate/requests.js @@ -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` diff --git a/src/api/charges/create/index.sh b/src/api/charges/create/index.sh index f412e7e..d68592a 100644 --- a/src/api/charges/create/index.sh +++ b/src/api/charges/create/index.sh @@ -15,8 +15,8 @@ data='{ ] }, "bank": { - code: "057", - account_number: "0000000000" + "code": "057", + "account_number": "0000000000" }, "birthday": "1995-12-23" }' diff --git a/src/api/customers/create/index.sh b/src/api/customers/create/index.sh index 436776d..0932a90 100644 --- a/src/api/customers/create/index.sh +++ b/src/api/customers/create/index.sh @@ -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" diff --git a/src/api/plans/update/index.sh b/src/api/plans/update/index.sh index ec3cd33..8a022f4 100644 --- a/src/api/plans/update/index.sh +++ b/src/api/plans/update/index.sh @@ -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 \ No newline at end of file diff --git a/src/api/products/create/index.sh b/src/api/products/create/index.sh index b1dcc14..fa26365 100644 --- a/src/api/products/create/index.sh +++ b/src/api/products/create/index.sh @@ -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", diff --git a/src/api/terminal/update/index.sh b/src/api/terminal/update/index.sh index e371cb8..bff434b 100644 --- a/src/api/terminal/update/index.sh +++ b/src/api/terminal/update/index.sh @@ -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 \ No newline at end of file diff --git a/src/api/transfers/initiate/index.sh b/src/api/transfers/initiate/index.sh index 39d2d82..260dfac 100644 --- a/src/api/transfers/initiate/index.sh +++ b/src/api/transfers/initiate/index.sh @@ -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 \ No newline at end of file