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
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "paystack-charge-authorization",
name: "Charge Authorization",
description: "Charge a reusable authorization. [See the documentation](https://paystack.com/docs/api/transaction/#charge-authorization)",
version: "0.0.2",
version: "0.0.3",
type: "action",
props: {
paystack,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import paystack from "../../paystack.app.mjs";

export default {
key: "paystack-export-transactions",
name: "Export Transactions",
description: "Export transactions from Paystack. See the documentation (https://paystack.com/docs/api/transaction/#export)",
version: "0.0.1",
type: "action",
props: {
paystack,
from: {
propDefinition: [
paystack,
"from",
],
optional: true,
},
to: {
propDefinition: [
paystack,
"to",
],
optional: true,
},
status: {
propDefinition: [
paystack,
"status",
],
optional: true,
},
},
async run({ $ }) {
const params = {
from: this.from,
to: this.to,
status: this.status,
};

const response = await this.paystack.exportTransactions({
$,
params,
});

$.export("$summary", "Successfully requested transaction export");
return response;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "paystack-fetch-transaction",
name: "Fetch Transaction",
description: "Fetch a single transaction. [See the documentation](https://paystack.com/docs/api/transaction/#fetch)",
version: "0.0.3",
version: "0.0.4",
type: "action",
props: {
paystack,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "paystack-initialize-transaction",
name: "Initialize Transaction",
description: "Initializes a new transaction on Paystack. [See the documentation](https://paystack.com/docs/api/transaction/#initialize)",
version: "0.1.1",
version: "0.1.2",
type: "action",
props: {
paystack,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "paystack-list-transactions",
name: "List Transactions",
description: "List transactions carried out on your integration. [See the documentation](https://paystack.com/docs/api/transaction/#list)",
version: "0.0.3",
version: "0.0.4",
type: "action",
props: {
paystack,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default {
key: "paystack-verify-transaction",
name: "Verify Transaction",
description: "Confirm the status of a transaction. [See the documentation](https://paystack.com/docs/api/transaction/#verify)",
version: "0.0.3",
version: "0.0.4",
type: "action",
props: {
paystack,
Expand Down
2 changes: 1 addition & 1 deletion components/paystack/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/paystack",
"version": "0.2.1",
"version": "0.3.0",
"description": "Pipedream Paystack Components",
"main": "paystack.app.mjs",
"keywords": [
Expand Down
6 changes: 6 additions & 0 deletions components/paystack/paystack.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,12 @@ export default {
...args,
});
},
exportTransactions(args = {}) {
return this._makeRequest({
path: "/transaction/export",
...args,
});
},
async *paginate({
resourceFn, args, max,
}) {
Expand Down
15 changes: 5 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading