diff --git a/components/paystack/actions/charge-authorization/charge-authorization.mjs b/components/paystack/actions/charge-authorization/charge-authorization.mjs index fa550ef9d9474..0c9d61507f374 100644 --- a/components/paystack/actions/charge-authorization/charge-authorization.mjs +++ b/components/paystack/actions/charge-authorization/charge-authorization.mjs @@ -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, diff --git a/components/paystack/actions/export-transactions/export-transactions.mjs b/components/paystack/actions/export-transactions/export-transactions.mjs new file mode 100644 index 0000000000000..52084435992db --- /dev/null +++ b/components/paystack/actions/export-transactions/export-transactions.mjs @@ -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; + }, +}; diff --git a/components/paystack/actions/fetch-transaction/fetch-transaction.mjs b/components/paystack/actions/fetch-transaction/fetch-transaction.mjs index 0a16d0b0812d2..d1f01638f660a 100644 --- a/components/paystack/actions/fetch-transaction/fetch-transaction.mjs +++ b/components/paystack/actions/fetch-transaction/fetch-transaction.mjs @@ -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, diff --git a/components/paystack/actions/initialize-transaction/initialize-transaction.mjs b/components/paystack/actions/initialize-transaction/initialize-transaction.mjs index 3e0c2a6ed9819..3830509e46601 100644 --- a/components/paystack/actions/initialize-transaction/initialize-transaction.mjs +++ b/components/paystack/actions/initialize-transaction/initialize-transaction.mjs @@ -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, diff --git a/components/paystack/actions/list-transactions/list-transactions.mjs b/components/paystack/actions/list-transactions/list-transactions.mjs index d06d2a0cf163f..ad5091e451877 100644 --- a/components/paystack/actions/list-transactions/list-transactions.mjs +++ b/components/paystack/actions/list-transactions/list-transactions.mjs @@ -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, diff --git a/components/paystack/actions/verify-transaction/verify-transaction.mjs b/components/paystack/actions/verify-transaction/verify-transaction.mjs index dab38b293d3a1..3a486480c6b53 100644 --- a/components/paystack/actions/verify-transaction/verify-transaction.mjs +++ b/components/paystack/actions/verify-transaction/verify-transaction.mjs @@ -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, diff --git a/components/paystack/package.json b/components/paystack/package.json index 338ca51435613..9cda2081181fc 100644 --- a/components/paystack/package.json +++ b/components/paystack/package.json @@ -1,6 +1,6 @@ { "name": "@pipedream/paystack", - "version": "0.2.1", + "version": "0.3.0", "description": "Pipedream Paystack Components", "main": "paystack.app.mjs", "keywords": [ diff --git a/components/paystack/paystack.app.mjs b/components/paystack/paystack.app.mjs index b35caf89e0d8f..8170715c36583 100644 --- a/components/paystack/paystack.app.mjs +++ b/components/paystack/paystack.app.mjs @@ -240,6 +240,12 @@ export default { ...args, }); }, + exportTransactions(args = {}) { + return this._makeRequest({ + path: "/transaction/export", + ...args, + }); + }, async *paginate({ resourceFn, args, max, }) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 777d319172859..49796287db305 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10018,8 +10018,7 @@ importers: specifier: ^0.10.0 version: 0.10.0 - components/pdf_munk: - specifiers: {} + components/pdf_munk: {} components/pdffiller: dependencies: @@ -11686,8 +11685,7 @@ importers: specifier: ^0.10.0 version: 0.10.0 - components/rocketskip: - specifiers: {} + components/rocketskip: {} components/rockset: dependencies: @@ -12292,8 +12290,7 @@ importers: specifier: ^3.0.3 version: 3.0.3 - components/serenity_ai_hub: - specifiers: {} + components/serenity_ai_hub: {} components/serpapi: dependencies: @@ -13698,8 +13695,7 @@ importers: specifier: ^1.6.0 version: 1.6.6 - components/templatedocs: - specifiers: {} + components/templatedocs: {} components/tento8: {} @@ -14341,8 +14337,7 @@ importers: components/typebot: {} - components/typeflo: - specifiers: {} + components/typeflo: {} components/typeflowai: dependencies: