Skip to content

Commit 3558d7c

Browse files
copy fix and update
1 parent 851fa4b commit 3558d7c

File tree

12 files changed

+22
-14
lines changed

12 files changed

+22
-14
lines changed

dist/api/charges/create/requests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ data='{
1515
]
1616
},
1717
"bank": {
18-
code: "057",
19-
account_number: "0000000000"
18+
"code": "057",
19+
"account_number": "0000000000"
2020
},
2121
"birthday": "1995-12-23"
2222
}'

dist/api/customers/create/requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"email": "zero@sum.com",
6+
"email": "customer@example.com",
77
"first_name": "Zero",
88
"last_name": "Sum",
99
"phone": "+2348123456789"

dist/api/plans/update/requests.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ const sh = `#!/bin/sh
22
url="https://api.paystack.co/plan/:id_or_code"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
5-
data='{ "name": "Monthly retainer (renamed)" }'
5+
data='{
6+
"name": "Monthly retainer (renamed)"
7+
}'
68
79
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`
810

dist/api/products/create/requests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ const sh = `#!/bin/sh
22
url="https://api.paystack.co/product"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
5-
data='{ "name": "Puff Puff",
5+
data='{
6+
"name": "Puff Puff",
67
"description": "Crispy flour ball with fluffy interior",
78
"price": "5000",
89
"currency": "NGN",

dist/api/terminal/update/requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"address": "Somewhere on earth
6+
"address": "Somewhere on earth"
77
}'
88
99
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT`

dist/api/transfers/initiate/requests.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
55
data='{
66
"source": "balance",
77
"reason": "Calm down",
8-
"amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
8+
"amount":3794800,
9+
"recipient": "RCP_gx2wn530m0i3w3m"
910
}'
1011
1112
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X POST`

src/api/charges/create/index.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ data='{
1515
]
1616
},
1717
"bank": {
18-
code: "057",
19-
account_number: "0000000000"
18+
"code": "057",
19+
"account_number": "0000000000"
2020
},
2121
"birthday": "1995-12-23"
2222
}'

src/api/customers/create/index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ url="https://api.paystack.co/customer"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"email": "zero@sum.com",
6+
"email": "customer@example.com",
77
"first_name": "Zero",
88
"last_name": "Sum",
99
"phone": "+2348123456789"

src/api/plans/update/index.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
url="https://api.paystack.co/plan/:id_or_code"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
5-
data='{ "name": "Monthly retainer (renamed)" }'
5+
data='{
6+
"name": "Monthly retainer (renamed)"
7+
}'
68

79
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT

src/api/products/create/index.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
url="https://api.paystack.co/product"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
5-
data='{ "name": "Puff Puff",
5+
data='{
6+
"name": "Puff Puff",
67
"description": "Crispy flour ball with fluffy interior",
78
"price": "5000",
89
"currency": "NGN",

src/api/terminal/update/index.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ url="https://api.paystack.co/terminal/{terminal_id}"
33
authorization="Authorization: Bearer YOUR_SECRET_KEY"
44
content_type="Content-Type: application/json"
55
data='{
6-
"address": "Somewhere on earth
6+
"address": "Somewhere on earth"
77
}'
88

99
curl "$url" -H "$authorization" -H "$content_type" -d "$data" -X PUT

src/api/transfers/initiate/index.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ content_type="Content-Type: application/json"
55
data='{
66
"source": "balance",
77
"reason": "Calm down",
8-
"amount":3794800, "recipient": "RCP_gx2wn530m0i3w3m"
8+
"amount":3794800,
9+
"recipient": "RCP_gx2wn530m0i3w3m"
910
}'
1011

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

0 commit comments

Comments
 (0)