connect-sdk-nodejs 4.19.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/lib/client.d.ts +3 -0
- package/lib/client.js +12 -0
- package/lib/client.js.map +1 -0
- package/lib/index.d.ts +17 -3
- package/lib/index.js +24 -90
- package/lib/index.js.map +1 -1
- package/lib/model/client.d.ts +6 -0
- package/lib/model/client.js +3 -0
- package/lib/model/client.js.map +1 -0
- package/lib/model/{tokens → domain}/index.js.map +1 -1
- package/lib/model/index.d.ts +1 -40
- package/lib/model/index.js +6 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/types.d.ts +53 -40
- package/lib/model/types.js +12 -0
- package/lib/model/types.js.map +1 -1
- package/lib/model/webhooks/index.d.ts +4 -8
- package/lib/model/webhooks/index.js +5 -1
- package/lib/model/webhooks/index.js.map +1 -1
- package/lib/model/webhooks/types.d.ts +3 -6
- package/lib/model/webhooks/types.js.map +1 -1
- package/lib/utils/authentication.d.ts +8 -0
- package/lib/utils/authentication.js +42 -0
- package/lib/utils/authentication.js.map +1 -0
- package/lib/utils/communicator.d.ts +3 -3
- package/lib/utils/communicator.js +149 -102
- package/lib/utils/communicator.js.map +1 -1
- package/lib/utils/connection.d.ts +5 -2
- package/lib/utils/connection.js +14 -9
- package/lib/utils/connection.js.map +1 -1
- package/lib/utils/context.d.ts +2 -3
- package/lib/utils/context.js +51 -89
- package/lib/utils/context.js.map +1 -1
- package/lib/utils/headers.js +4 -6
- package/lib/utils/headers.js.map +1 -1
- package/lib/utils/obfuscate.d.ts +1 -1
- package/lib/utils/obfuscate.js +3 -9
- package/lib/utils/obfuscate.js.map +1 -1
- package/lib/v1/captures/get.d.ts +3 -0
- package/lib/v1/captures/get.js +20 -0
- package/lib/v1/captures/get.js.map +1 -0
- package/lib/v1/captures/index.d.ts +3 -0
- package/lib/v1/captures/index.js +17 -0
- package/lib/v1/captures/index.js.map +1 -0
- package/lib/v1/captures/refund.d.ts +3 -0
- package/lib/v1/captures/refund.js +32 -0
- package/lib/v1/captures/refund.js.map +1 -0
- package/lib/v1/disputes/cancel.d.ts +3 -0
- package/lib/v1/disputes/cancel.js +20 -0
- package/lib/v1/disputes/cancel.js.map +1 -0
- package/lib/v1/disputes/get.d.ts +3 -0
- package/lib/v1/disputes/get.js +20 -0
- package/lib/v1/disputes/get.js.map +1 -0
- package/lib/v1/disputes/index.d.ts +3 -0
- package/lib/v1/disputes/index.js +21 -0
- package/lib/v1/disputes/index.js.map +1 -0
- package/lib/v1/disputes/submit.d.ts +3 -0
- package/lib/v1/disputes/submit.js +20 -0
- package/lib/v1/disputes/submit.js.map +1 -0
- package/lib/v1/disputes/uploadFile.d.ts +4 -0
- package/lib/v1/disputes/uploadFile.js +20 -0
- package/lib/v1/disputes/uploadFile.js.map +1 -0
- package/lib/v1/files/getFile.d.ts +3 -0
- package/lib/v1/files/getFile.js +21 -0
- package/lib/v1/files/getFile.js.map +1 -0
- package/lib/v1/files/index.d.ts +3 -0
- package/lib/v1/files/index.js +15 -0
- package/lib/v1/files/index.js.map +1 -0
- package/lib/v1/hostedcheckouts/create.d.ts +3 -0
- package/lib/v1/hostedcheckouts/create.js +32 -0
- package/lib/v1/hostedcheckouts/create.js.map +1 -0
- package/lib/v1/hostedcheckouts/get.d.ts +3 -0
- package/lib/v1/hostedcheckouts/get.js +20 -0
- package/lib/v1/hostedcheckouts/get.js.map +1 -0
- package/lib/v1/hostedcheckouts/index.d.ts +3 -0
- package/lib/v1/hostedcheckouts/index.js +19 -0
- package/lib/v1/hostedcheckouts/index.js.map +1 -0
- package/lib/v1/hostedcheckouts/remove.d.ts +3 -0
- package/lib/v1/hostedcheckouts/remove.js +20 -0
- package/lib/v1/hostedcheckouts/remove.js.map +1 -0
- package/lib/v1/hostedmandatemanagements/create.d.ts +3 -0
- package/lib/v1/hostedmandatemanagements/create.js +32 -0
- package/lib/v1/hostedmandatemanagements/create.js.map +1 -0
- package/lib/v1/hostedmandatemanagements/get.d.ts +3 -0
- package/lib/v1/hostedmandatemanagements/get.js +20 -0
- package/lib/v1/hostedmandatemanagements/get.js.map +1 -0
- package/lib/v1/hostedmandatemanagements/index.d.ts +3 -0
- package/lib/v1/hostedmandatemanagements/index.js +17 -0
- package/lib/v1/hostedmandatemanagements/index.js.map +1 -0
- package/lib/v1/index.d.ts +3 -0
- package/lib/v1/index.js +41 -0
- package/lib/v1/index.js.map +1 -0
- package/lib/v1/installments/getInstallmentsInfo.d.ts +3 -0
- package/lib/v1/installments/getInstallmentsInfo.js +32 -0
- package/lib/v1/installments/getInstallmentsInfo.js.map +1 -0
- package/lib/v1/installments/index.d.ts +3 -0
- package/lib/v1/installments/index.js +15 -0
- package/lib/v1/installments/index.js.map +1 -0
- package/lib/v1/mandates/block.d.ts +3 -0
- package/lib/v1/mandates/block.js +20 -0
- package/lib/v1/mandates/block.js.map +1 -0
- package/lib/v1/mandates/create.d.ts +3 -0
- package/lib/v1/mandates/create.js +32 -0
- package/lib/v1/mandates/create.js.map +1 -0
- package/lib/v1/mandates/createWithMandateReference.d.ts +3 -0
- package/lib/v1/mandates/createWithMandateReference.js +32 -0
- package/lib/v1/mandates/createWithMandateReference.js.map +1 -0
- package/lib/v1/mandates/get.d.ts +3 -0
- package/lib/v1/mandates/get.js +20 -0
- package/lib/v1/mandates/get.js.map +1 -0
- package/lib/v1/mandates/index.d.ts +3 -0
- package/lib/v1/mandates/index.js +25 -0
- package/lib/v1/mandates/index.js.map +1 -0
- package/lib/v1/mandates/revoke.d.ts +3 -0
- package/lib/v1/mandates/revoke.js +20 -0
- package/lib/v1/mandates/revoke.js.map +1 -0
- package/lib/v1/mandates/unblock.d.ts +3 -0
- package/lib/v1/mandates/unblock.js +20 -0
- package/lib/v1/mandates/unblock.js.map +1 -0
- package/lib/v1/model/captures/index.d.ts +12 -0
- package/lib/v1/model/captures/index.js.map +1 -0
- package/lib/v1/model/disputes/index.d.ts +23 -0
- package/lib/v1/model/disputes/index.js.map +1 -0
- package/lib/v1/model/domain/index.d.ts +2242 -0
- package/lib/{model/domain/errors/definitions → v1/model/domain}/index.js +1 -1
- package/lib/v1/model/domain/index.js.map +1 -0
- package/lib/v1/model/files/index.d.ts +8 -0
- package/lib/{model/disputes → v1/model/files}/index.js.map +1 -1
- package/lib/v1/model/hostedcheckouts/index.d.ts +16 -0
- package/lib/v1/model/hostedcheckouts/index.js.map +1 -0
- package/lib/v1/model/hostedmandatemanagements/index.d.ts +12 -0
- package/lib/v1/model/hostedmandatemanagements/index.js.map +1 -0
- package/lib/v1/model/index.d.ts +34 -0
- package/lib/{model/files → v1/model}/index.js.map +1 -1
- package/lib/v1/model/installments/index.d.ts +8 -0
- package/lib/v1/model/installments/index.js.map +1 -0
- package/lib/v1/model/mandates/index.d.ts +28 -0
- package/lib/v1/model/mandates/index.js.map +1 -0
- package/lib/v1/model/payments/index.d.ts +79 -0
- package/lib/v1/model/payments/index.js.map +1 -0
- package/lib/v1/model/payouts/index.d.ts +34 -0
- package/lib/{model/captures → v1/model/payouts}/index.js.map +1 -1
- package/lib/v1/model/productgroups/index.d.ts +34 -0
- package/lib/v1/model/productgroups/index.js.map +1 -0
- package/lib/v1/model/products/index.d.ts +61 -0
- package/lib/v1/model/products/index.js.map +1 -0
- package/lib/v1/model/refunds/index.d.ts +31 -0
- package/lib/v1/model/refunds/index.js.map +1 -0
- package/lib/v1/model/riskassessments/index.d.ts +12 -0
- package/lib/v1/model/riskassessments/index.js.map +1 -0
- package/lib/v1/model/services/index.d.ts +33 -0
- package/lib/v1/model/services/index.js.map +1 -0
- package/lib/v1/model/sessions/index.d.ts +8 -0
- package/lib/v1/model/sessions/index.js.map +1 -0
- package/lib/v1/model/tokens/index.d.ts +27 -0
- package/lib/{model/installments → v1/model/tokens}/index.js.map +1 -1
- package/lib/v1/model/webhooks/index.d.ts +9 -0
- package/lib/v1/model/webhooks/index.js.map +1 -0
- package/lib/v1/payments/approve.d.ts +3 -0
- package/lib/v1/payments/approve.js +32 -0
- package/lib/v1/payments/approve.js.map +1 -0
- package/lib/v1/payments/cancel.d.ts +3 -0
- package/lib/v1/payments/cancel.js +20 -0
- package/lib/v1/payments/cancel.js.map +1 -0
- package/lib/v1/payments/cancelapproval.d.ts +3 -0
- package/lib/v1/payments/cancelapproval.js +20 -0
- package/lib/v1/payments/cancelapproval.js.map +1 -0
- package/lib/v1/payments/capture.d.ts +3 -0
- package/lib/v1/payments/capture.js +32 -0
- package/lib/v1/payments/capture.js.map +1 -0
- package/lib/v1/payments/captures.d.ts +3 -0
- package/lib/v1/payments/captures.js +20 -0
- package/lib/v1/payments/captures.js.map +1 -0
- package/lib/v1/payments/complete.d.ts +3 -0
- package/lib/v1/payments/complete.js +32 -0
- package/lib/v1/payments/complete.js.map +1 -0
- package/lib/v1/payments/create.d.ts +3 -0
- package/lib/v1/payments/create.js +32 -0
- package/lib/v1/payments/create.js.map +1 -0
- package/lib/v1/payments/devicefingerprint.d.ts +3 -0
- package/lib/v1/payments/devicefingerprint.js +20 -0
- package/lib/v1/payments/devicefingerprint.js.map +1 -0
- package/lib/v1/payments/dispute.d.ts +3 -0
- package/lib/v1/payments/dispute.js +32 -0
- package/lib/v1/payments/dispute.js.map +1 -0
- package/lib/v1/payments/disputes.d.ts +3 -0
- package/lib/v1/payments/disputes.js +20 -0
- package/lib/v1/payments/disputes.js.map +1 -0
- package/lib/v1/payments/find.d.ts +4 -0
- package/lib/v1/payments/find.js +20 -0
- package/lib/v1/payments/find.js.map +1 -0
- package/lib/v1/payments/get.d.ts +3 -0
- package/lib/v1/payments/get.js +20 -0
- package/lib/v1/payments/get.js.map +1 -0
- package/lib/v1/payments/index.d.ts +3 -0
- package/lib/v1/payments/index.js +47 -0
- package/lib/v1/payments/index.js.map +1 -0
- package/lib/v1/payments/processchallenged.d.ts +3 -0
- package/lib/v1/payments/processchallenged.js +20 -0
- package/lib/v1/payments/processchallenged.js.map +1 -0
- package/lib/v1/payments/refund.d.ts +3 -0
- package/lib/v1/payments/refund.js +32 -0
- package/lib/v1/payments/refund.js.map +1 -0
- package/lib/v1/payments/refunds.d.ts +3 -0
- package/lib/v1/payments/refunds.js +20 -0
- package/lib/v1/payments/refunds.js.map +1 -0
- package/lib/v1/payments/thirdPartyStatus.d.ts +3 -0
- package/lib/v1/payments/thirdPartyStatus.js +20 -0
- package/lib/v1/payments/thirdPartyStatus.js.map +1 -0
- package/lib/v1/payments/tokenize.d.ts +3 -0
- package/lib/v1/payments/tokenize.js +32 -0
- package/lib/v1/payments/tokenize.js.map +1 -0
- package/lib/v1/payouts/approve.d.ts +3 -0
- package/lib/v1/payouts/approve.js +32 -0
- package/lib/v1/payouts/approve.js.map +1 -0
- package/lib/v1/payouts/cancel.d.ts +3 -0
- package/lib/v1/payouts/cancel.js +20 -0
- package/lib/v1/payouts/cancel.js.map +1 -0
- package/lib/v1/payouts/cancelapproval.d.ts +3 -0
- package/lib/v1/payouts/cancelapproval.js +20 -0
- package/lib/v1/payouts/cancelapproval.js.map +1 -0
- package/lib/v1/payouts/create.d.ts +3 -0
- package/lib/v1/payouts/create.js +32 -0
- package/lib/v1/payouts/create.js.map +1 -0
- package/lib/v1/payouts/find.d.ts +4 -0
- package/lib/v1/payouts/find.js +20 -0
- package/lib/v1/payouts/find.js.map +1 -0
- package/lib/v1/payouts/get.d.ts +3 -0
- package/lib/v1/payouts/get.js +20 -0
- package/lib/v1/payouts/get.js.map +1 -0
- package/lib/v1/payouts/index.d.ts +3 -0
- package/lib/v1/payouts/index.js +25 -0
- package/lib/v1/payouts/index.js.map +1 -0
- package/lib/v1/productgroups/deviceFingerprint.d.ts +3 -0
- package/lib/v1/productgroups/deviceFingerprint.js +32 -0
- package/lib/v1/productgroups/deviceFingerprint.js.map +1 -0
- package/lib/v1/productgroups/find.d.ts +4 -0
- package/lib/v1/productgroups/find.js +20 -0
- package/lib/v1/productgroups/find.js.map +1 -0
- package/lib/v1/productgroups/get.d.ts +4 -0
- package/lib/v1/productgroups/get.js +20 -0
- package/lib/v1/productgroups/get.js.map +1 -0
- package/lib/v1/productgroups/index.d.ts +3 -0
- package/lib/v1/productgroups/index.js +19 -0
- package/lib/v1/productgroups/index.js.map +1 -0
- package/lib/v1/products/customerDetails.d.ts +3 -0
- package/lib/v1/products/customerDetails.js +32 -0
- package/lib/v1/products/customerDetails.js.map +1 -0
- package/lib/v1/products/deviceFingerprint.d.ts +3 -0
- package/lib/v1/products/deviceFingerprint.js +32 -0
- package/lib/v1/products/deviceFingerprint.js.map +1 -0
- package/lib/v1/products/directory.d.ts +4 -0
- package/lib/v1/products/directory.js +20 -0
- package/lib/v1/products/directory.js.map +1 -0
- package/lib/v1/products/find.d.ts +4 -0
- package/lib/v1/products/find.js +20 -0
- package/lib/v1/products/find.js.map +1 -0
- package/lib/v1/products/get.d.ts +4 -0
- package/lib/v1/products/get.js +20 -0
- package/lib/v1/products/get.js.map +1 -0
- package/lib/v1/products/index.d.ts +3 -0
- package/lib/v1/products/index.js +27 -0
- package/lib/v1/products/index.js.map +1 -0
- package/lib/v1/products/networks.d.ts +4 -0
- package/lib/v1/products/networks.js +20 -0
- package/lib/v1/products/networks.js.map +1 -0
- package/lib/v1/products/sessions.d.ts +3 -0
- package/lib/v1/products/sessions.js +32 -0
- package/lib/v1/products/sessions.js.map +1 -0
- package/lib/v1/refunds/approve.d.ts +3 -0
- package/lib/v1/refunds/approve.js +32 -0
- package/lib/v1/refunds/approve.js.map +1 -0
- package/lib/v1/refunds/cancel.d.ts +3 -0
- package/lib/v1/refunds/cancel.js +20 -0
- package/lib/v1/refunds/cancel.js.map +1 -0
- package/lib/v1/refunds/cancelapproval.d.ts +3 -0
- package/lib/v1/refunds/cancelapproval.js +20 -0
- package/lib/v1/refunds/cancelapproval.js.map +1 -0
- package/lib/v1/refunds/find.d.ts +4 -0
- package/lib/v1/refunds/find.js +20 -0
- package/lib/v1/refunds/find.js.map +1 -0
- package/lib/v1/refunds/get.d.ts +3 -0
- package/lib/v1/refunds/get.js +20 -0
- package/lib/v1/refunds/get.js.map +1 -0
- package/lib/v1/refunds/index.d.ts +3 -0
- package/lib/v1/refunds/index.js +23 -0
- package/lib/v1/refunds/index.js.map +1 -0
- package/lib/v1/riskassessments/bankaccounts.d.ts +3 -0
- package/lib/v1/riskassessments/bankaccounts.js +32 -0
- package/lib/v1/riskassessments/bankaccounts.js.map +1 -0
- package/lib/v1/riskassessments/cards.d.ts +3 -0
- package/lib/v1/riskassessments/cards.js +32 -0
- package/lib/v1/riskassessments/cards.js.map +1 -0
- package/lib/v1/riskassessments/index.d.ts +3 -0
- package/lib/v1/riskassessments/index.js +17 -0
- package/lib/v1/riskassessments/index.js.map +1 -0
- package/lib/v1/services/bankaccount.d.ts +3 -0
- package/lib/v1/services/bankaccount.js +32 -0
- package/lib/v1/services/bankaccount.js.map +1 -0
- package/lib/v1/services/convertAmount.d.ts +4 -0
- package/lib/v1/services/convertAmount.js +20 -0
- package/lib/v1/services/convertAmount.js.map +1 -0
- package/lib/v1/services/getIINdetails.d.ts +3 -0
- package/lib/v1/services/getIINdetails.js +32 -0
- package/lib/v1/services/getIINdetails.js.map +1 -0
- package/lib/v1/services/index.d.ts +3 -0
- package/lib/v1/services/index.js +23 -0
- package/lib/v1/services/index.js.map +1 -0
- package/lib/v1/services/privacypolicy.d.ts +4 -0
- package/lib/v1/services/privacypolicy.js +20 -0
- package/lib/v1/services/privacypolicy.js.map +1 -0
- package/lib/v1/services/testconnection.d.ts +3 -0
- package/lib/v1/services/testconnection.js +20 -0
- package/lib/v1/services/testconnection.js.map +1 -0
- package/lib/v1/sessions/create.d.ts +3 -0
- package/lib/v1/sessions/create.js +32 -0
- package/lib/v1/sessions/create.js.map +1 -0
- package/lib/v1/sessions/index.d.ts +3 -0
- package/lib/v1/sessions/index.js +15 -0
- package/lib/v1/sessions/index.js.map +1 -0
- package/lib/v1/tokens/approvesepadirectdebit.d.ts +3 -0
- package/lib/v1/tokens/approvesepadirectdebit.js +32 -0
- package/lib/v1/tokens/approvesepadirectdebit.js.map +1 -0
- package/lib/v1/tokens/create.d.ts +3 -0
- package/lib/v1/tokens/create.js +32 -0
- package/lib/v1/tokens/create.js.map +1 -0
- package/lib/v1/tokens/get.d.ts +3 -0
- package/lib/v1/tokens/get.js +20 -0
- package/lib/v1/tokens/get.js.map +1 -0
- package/lib/v1/tokens/index.d.ts +3 -0
- package/lib/v1/tokens/index.js +23 -0
- package/lib/v1/tokens/index.js.map +1 -0
- package/lib/v1/tokens/remove.d.ts +4 -0
- package/lib/v1/tokens/remove.js +20 -0
- package/lib/v1/tokens/remove.js.map +1 -0
- package/lib/v1/tokens/update.d.ts +3 -0
- package/lib/v1/tokens/update.js +32 -0
- package/lib/v1/tokens/update.js.map +1 -0
- package/lib/v1/webhooks/index.d.ts +2 -0
- package/lib/v1/webhooks/index.js +44 -0
- package/lib/v1/webhooks/index.js.map +1 -0
- package/lib/webhooks/index.d.ts +3 -3
- package/lib/webhooks/index.js +30 -64
- package/lib/webhooks/index.js.map +1 -1
- package/lib/webhooks/validation.d.ts +2 -3
- package/lib/webhooks/validation.js +30 -39
- package/lib/webhooks/validation.js.map +1 -1
- package/package.json +29 -29
- package/lib/captures/get.d.ts +0 -3
- package/lib/captures/get.js +0 -17
- package/lib/captures/get.js.map +0 -1
- package/lib/captures/index.d.ts +0 -3
- package/lib/captures/index.js +0 -13
- package/lib/captures/index.js.map +0 -1
- package/lib/captures/refund.d.ts +0 -4
- package/lib/captures/refund.js +0 -30
- package/lib/captures/refund.js.map +0 -1
- package/lib/disputes/cancel.d.ts +0 -3
- package/lib/disputes/cancel.js +0 -17
- package/lib/disputes/cancel.js.map +0 -1
- package/lib/disputes/get.d.ts +0 -3
- package/lib/disputes/get.js +0 -17
- package/lib/disputes/get.js.map +0 -1
- package/lib/disputes/index.d.ts +0 -3
- package/lib/disputes/index.js +0 -17
- package/lib/disputes/index.js.map +0 -1
- package/lib/disputes/submit.d.ts +0 -3
- package/lib/disputes/submit.js +0 -17
- package/lib/disputes/submit.js.map +0 -1
- package/lib/disputes/uploadFile.d.ts +0 -4
- package/lib/disputes/uploadFile.js +0 -17
- package/lib/disputes/uploadFile.js.map +0 -1
- package/lib/files/getFile.d.ts +0 -3
- package/lib/files/getFile.js +0 -17
- package/lib/files/getFile.js.map +0 -1
- package/lib/files/index.d.ts +0 -3
- package/lib/files/index.js +0 -11
- package/lib/files/index.js.map +0 -1
- package/lib/hostedcheckouts/create.d.ts +0 -4
- package/lib/hostedcheckouts/create.js +0 -30
- package/lib/hostedcheckouts/create.js.map +0 -1
- package/lib/hostedcheckouts/get.d.ts +0 -3
- package/lib/hostedcheckouts/get.js +0 -17
- package/lib/hostedcheckouts/get.js.map +0 -1
- package/lib/hostedcheckouts/index.d.ts +0 -3
- package/lib/hostedcheckouts/index.js +0 -15
- package/lib/hostedcheckouts/index.js.map +0 -1
- package/lib/hostedcheckouts/remove.d.ts +0 -3
- package/lib/hostedcheckouts/remove.js +0 -17
- package/lib/hostedcheckouts/remove.js.map +0 -1
- package/lib/hostedmandatemanagements/create.d.ts +0 -4
- package/lib/hostedmandatemanagements/create.js +0 -30
- package/lib/hostedmandatemanagements/create.js.map +0 -1
- package/lib/hostedmandatemanagements/get.d.ts +0 -3
- package/lib/hostedmandatemanagements/get.js +0 -17
- package/lib/hostedmandatemanagements/get.js.map +0 -1
- package/lib/hostedmandatemanagements/index.d.ts +0 -3
- package/lib/hostedmandatemanagements/index.js +0 -13
- package/lib/hostedmandatemanagements/index.js.map +0 -1
- package/lib/installments/getInstallmentsInfo.d.ts +0 -4
- package/lib/installments/getInstallmentsInfo.js +0 -30
- package/lib/installments/getInstallmentsInfo.js.map +0 -1
- package/lib/installments/index.d.ts +0 -3
- package/lib/installments/index.js +0 -11
- package/lib/installments/index.js.map +0 -1
- package/lib/mandates/block.d.ts +0 -3
- package/lib/mandates/block.js +0 -17
- package/lib/mandates/block.js.map +0 -1
- package/lib/mandates/create.d.ts +0 -4
- package/lib/mandates/create.js +0 -30
- package/lib/mandates/create.js.map +0 -1
- package/lib/mandates/createWithMandateReference.d.ts +0 -4
- package/lib/mandates/createWithMandateReference.js +0 -30
- package/lib/mandates/createWithMandateReference.js.map +0 -1
- package/lib/mandates/get.d.ts +0 -3
- package/lib/mandates/get.js +0 -17
- package/lib/mandates/get.js.map +0 -1
- package/lib/mandates/index.d.ts +0 -3
- package/lib/mandates/index.js +0 -21
- package/lib/mandates/index.js.map +0 -1
- package/lib/mandates/revoke.d.ts +0 -3
- package/lib/mandates/revoke.js +0 -17
- package/lib/mandates/revoke.js.map +0 -1
- package/lib/mandates/unblock.d.ts +0 -3
- package/lib/mandates/unblock.js +0 -17
- package/lib/mandates/unblock.js.map +0 -1
- package/lib/model/captures/index.d.ts +0 -18
- package/lib/model/disputes/index.d.ts +0 -34
- package/lib/model/domain/capture/definitions/index.d.ts +0 -27
- package/lib/model/domain/capture/definitions/index.js.map +0 -1
- package/lib/model/domain/capture/index.d.ts +0 -6
- package/lib/model/domain/capture/index.js.map +0 -1
- package/lib/model/domain/definitions/index.d.ts +0 -320
- package/lib/model/domain/definitions/index.js.map +0 -1
- package/lib/model/domain/dispute/definitions/index.d.ts +0 -38
- package/lib/model/domain/dispute/definitions/index.js.map +0 -1
- package/lib/model/domain/dispute/index.d.ts +0 -18
- package/lib/model/domain/dispute/index.js.map +0 -1
- package/lib/model/domain/errors/definitions/index.d.ts +0 -9
- package/lib/model/domain/errors/definitions/index.js.map +0 -1
- package/lib/model/domain/errors/index.d.ts +0 -5
- package/lib/model/domain/errors/index.js.map +0 -1
- package/lib/model/domain/file/definitions/index.d.ts +0 -6
- package/lib/model/domain/file/definitions/index.js +0 -7
- package/lib/model/domain/file/definitions/index.js.map +0 -1
- package/lib/model/domain/hostedcheckout/definitions/index.d.ts +0 -71
- package/lib/model/domain/hostedcheckout/definitions/index.js.map +0 -1
- package/lib/model/domain/hostedcheckout/index.d.ts +0 -27
- package/lib/model/domain/hostedcheckout/index.js.map +0 -1
- package/lib/model/domain/hostedmandatemanagement/definitions/index.d.ts +0 -15
- package/lib/model/domain/hostedmandatemanagement/definitions/index.js.map +0 -1
- package/lib/model/domain/hostedmandatemanagement/index.d.ts +0 -15
- package/lib/model/domain/hostedmandatemanagement/index.js.map +0 -1
- package/lib/model/domain/installments/definitions/index.d.ts +0 -11
- package/lib/model/domain/installments/definitions/index.js.map +0 -1
- package/lib/model/domain/installments/index.d.ts +0 -11
- package/lib/model/domain/installments/index.js.map +0 -1
- package/lib/model/domain/mandates/definitions/index.d.ts +0 -52
- package/lib/model/domain/mandates/definitions/index.js.map +0 -1
- package/lib/model/domain/mandates/index.d.ts +0 -10
- package/lib/model/domain/mandates/index.js.map +0 -1
- package/lib/model/domain/metadata/index.js.map +0 -1
- package/lib/model/domain/payment/definitions/index.d.ts +0 -910
- package/lib/model/domain/payment/definitions/index.js.map +0 -1
- package/lib/model/domain/payment/index.d.ts +0 -77
- package/lib/model/domain/payment/index.js.map +0 -1
- package/lib/model/domain/payout/definitions/index.d.ts +0 -51
- package/lib/model/domain/payout/definitions/index.js +0 -3
- package/lib/model/domain/payout/definitions/index.js.map +0 -1
- package/lib/model/domain/payout/index.d.ts +0 -57
- package/lib/model/domain/payout/index.js +0 -3
- package/lib/model/domain/payout/index.js.map +0 -1
- package/lib/model/domain/product/definitions/index.d.ts +0 -166
- package/lib/model/domain/product/definitions/index.js +0 -3
- package/lib/model/domain/product/definitions/index.js.map +0 -1
- package/lib/model/domain/product/index.d.ts +0 -47
- package/lib/model/domain/product/index.js +0 -3
- package/lib/model/domain/product/index.js.map +0 -1
- package/lib/model/domain/refund/definitions/index.d.ts +0 -26
- package/lib/model/domain/refund/definitions/index.js +0 -3
- package/lib/model/domain/refund/definitions/index.js.map +0 -1
- package/lib/model/domain/refund/index.d.ts +0 -29
- package/lib/model/domain/refund/index.js +0 -3
- package/lib/model/domain/refund/index.js.map +0 -1
- package/lib/model/domain/riskassessments/definitions/index.d.ts +0 -52
- package/lib/model/domain/riskassessments/definitions/index.js +0 -3
- package/lib/model/domain/riskassessments/definitions/index.js.map +0 -1
- package/lib/model/domain/riskassessments/index.d.ts +0 -12
- package/lib/model/domain/riskassessments/index.js +0 -3
- package/lib/model/domain/riskassessments/index.js.map +0 -1
- package/lib/model/domain/services/definitions/index.d.ts +0 -33
- package/lib/model/domain/services/definitions/index.js +0 -3
- package/lib/model/domain/services/definitions/index.js.map +0 -1
- package/lib/model/domain/services/index.d.ts +0 -29
- package/lib/model/domain/services/index.js +0 -3
- package/lib/model/domain/services/index.js.map +0 -1
- package/lib/model/domain/sessions/definitions/index.d.ts +0 -5
- package/lib/model/domain/sessions/definitions/index.js +0 -3
- package/lib/model/domain/sessions/definitions/index.js.map +0 -1
- package/lib/model/domain/sessions/index.d.ts +0 -13
- package/lib/model/domain/sessions/index.js +0 -3
- package/lib/model/domain/sessions/index.js.map +0 -1
- package/lib/model/domain/token/definitions/index.d.ts +0 -102
- package/lib/model/domain/token/definitions/index.js +0 -3
- package/lib/model/domain/token/definitions/index.js.map +0 -1
- package/lib/model/domain/token/index.d.ts +0 -32
- package/lib/model/domain/token/index.js +0 -3
- package/lib/model/domain/token/index.js.map +0 -1
- package/lib/model/domain/webhooks/index.d.ts +0 -17
- package/lib/model/domain/webhooks/index.js +0 -3
- package/lib/model/domain/webhooks/index.js.map +0 -1
- package/lib/model/files/index.d.ts +0 -10
- package/lib/model/files/index.js +0 -3
- package/lib/model/hostedcheckouts/index.d.ts +0 -25
- package/lib/model/hostedcheckouts/index.js +0 -3
- package/lib/model/hostedcheckouts/index.js.map +0 -1
- package/lib/model/hostedmandatemanagements/index.d.ts +0 -18
- package/lib/model/hostedmandatemanagements/index.js +0 -3
- package/lib/model/hostedmandatemanagements/index.js.map +0 -1
- package/lib/model/installments/index.d.ts +0 -11
- package/lib/model/installments/index.js +0 -3
- package/lib/model/mandates/index.d.ts +0 -46
- package/lib/model/mandates/index.js +0 -3
- package/lib/model/mandates/index.js.map +0 -1
- package/lib/model/payments/index.d.ts +0 -132
- package/lib/model/payments/index.js +0 -3
- package/lib/model/payments/index.js.map +0 -1
- package/lib/model/payouts/index.d.ts +0 -52
- package/lib/model/payouts/index.js +0 -3
- package/lib/model/payouts/index.js.map +0 -1
- package/lib/model/productgroups/index.d.ts +0 -43
- package/lib/model/productgroups/index.js +0 -3
- package/lib/model/productgroups/index.js.map +0 -1
- package/lib/model/products/index.d.ts +0 -82
- package/lib/model/products/index.js +0 -3
- package/lib/model/products/index.js.map +0 -1
- package/lib/model/refunds/index.d.ts +0 -46
- package/lib/model/refunds/index.js +0 -3
- package/lib/model/refunds/index.js.map +0 -1
- package/lib/model/riskassessments/index.d.ts +0 -18
- package/lib/model/riskassessments/index.js +0 -3
- package/lib/model/riskassessments/index.js.map +0 -1
- package/lib/model/services/index.d.ts +0 -48
- package/lib/model/services/index.js +0 -3
- package/lib/model/services/index.js.map +0 -1
- package/lib/model/sessions/index.d.ts +0 -11
- package/lib/model/sessions/index.js +0 -3
- package/lib/model/sessions/index.js.map +0 -1
- package/lib/model/tokens/index.d.ts +0 -42
- package/lib/model/tokens/index.js +0 -3
- package/lib/payments/approve.d.ts +0 -4
- package/lib/payments/approve.js +0 -30
- package/lib/payments/approve.js.map +0 -1
- package/lib/payments/cancel.d.ts +0 -3
- package/lib/payments/cancel.js +0 -17
- package/lib/payments/cancel.js.map +0 -1
- package/lib/payments/cancelapproval.d.ts +0 -3
- package/lib/payments/cancelapproval.js +0 -17
- package/lib/payments/cancelapproval.js.map +0 -1
- package/lib/payments/capture.d.ts +0 -4
- package/lib/payments/capture.js +0 -30
- package/lib/payments/capture.js.map +0 -1
- package/lib/payments/captures.d.ts +0 -3
- package/lib/payments/captures.js +0 -17
- package/lib/payments/captures.js.map +0 -1
- package/lib/payments/complete.d.ts +0 -4
- package/lib/payments/complete.js +0 -30
- package/lib/payments/complete.js.map +0 -1
- package/lib/payments/create.d.ts +0 -4
- package/lib/payments/create.js +0 -30
- package/lib/payments/create.js.map +0 -1
- package/lib/payments/devicefingerprint.d.ts +0 -3
- package/lib/payments/devicefingerprint.js +0 -17
- package/lib/payments/devicefingerprint.js.map +0 -1
- package/lib/payments/dispute.d.ts +0 -4
- package/lib/payments/dispute.js +0 -30
- package/lib/payments/dispute.js.map +0 -1
- package/lib/payments/disputes.d.ts +0 -3
- package/lib/payments/disputes.js +0 -17
- package/lib/payments/disputes.js.map +0 -1
- package/lib/payments/find.d.ts +0 -4
- package/lib/payments/find.js +0 -17
- package/lib/payments/find.js.map +0 -1
- package/lib/payments/get.d.ts +0 -3
- package/lib/payments/get.js +0 -17
- package/lib/payments/get.js.map +0 -1
- package/lib/payments/index.d.ts +0 -3
- package/lib/payments/index.js +0 -43
- package/lib/payments/index.js.map +0 -1
- package/lib/payments/processchallenged.d.ts +0 -3
- package/lib/payments/processchallenged.js +0 -17
- package/lib/payments/processchallenged.js.map +0 -1
- package/lib/payments/refund.d.ts +0 -4
- package/lib/payments/refund.js +0 -30
- package/lib/payments/refund.js.map +0 -1
- package/lib/payments/refunds.d.ts +0 -3
- package/lib/payments/refunds.js +0 -17
- package/lib/payments/refunds.js.map +0 -1
- package/lib/payments/thirdPartyStatus.d.ts +0 -3
- package/lib/payments/thirdPartyStatus.js +0 -17
- package/lib/payments/thirdPartyStatus.js.map +0 -1
- package/lib/payments/tokenize.d.ts +0 -4
- package/lib/payments/tokenize.js +0 -30
- package/lib/payments/tokenize.js.map +0 -1
- package/lib/payouts/approve.d.ts +0 -4
- package/lib/payouts/approve.js +0 -30
- package/lib/payouts/approve.js.map +0 -1
- package/lib/payouts/cancel.d.ts +0 -3
- package/lib/payouts/cancel.js +0 -17
- package/lib/payouts/cancel.js.map +0 -1
- package/lib/payouts/cancelapproval.d.ts +0 -3
- package/lib/payouts/cancelapproval.js +0 -17
- package/lib/payouts/cancelapproval.js.map +0 -1
- package/lib/payouts/create.d.ts +0 -4
- package/lib/payouts/create.js +0 -30
- package/lib/payouts/create.js.map +0 -1
- package/lib/payouts/find.d.ts +0 -4
- package/lib/payouts/find.js +0 -17
- package/lib/payouts/find.js.map +0 -1
- package/lib/payouts/get.d.ts +0 -3
- package/lib/payouts/get.js +0 -17
- package/lib/payouts/get.js.map +0 -1
- package/lib/payouts/index.d.ts +0 -3
- package/lib/payouts/index.js +0 -21
- package/lib/payouts/index.js.map +0 -1
- package/lib/productgroups/deviceFingerprint.d.ts +0 -4
- package/lib/productgroups/deviceFingerprint.js +0 -30
- package/lib/productgroups/deviceFingerprint.js.map +0 -1
- package/lib/productgroups/find.d.ts +0 -4
- package/lib/productgroups/find.js +0 -17
- package/lib/productgroups/find.js.map +0 -1
- package/lib/productgroups/get.d.ts +0 -4
- package/lib/productgroups/get.js +0 -17
- package/lib/productgroups/get.js.map +0 -1
- package/lib/productgroups/index.d.ts +0 -3
- package/lib/productgroups/index.js +0 -15
- package/lib/productgroups/index.js.map +0 -1
- package/lib/products/customerDetails.d.ts +0 -4
- package/lib/products/customerDetails.js +0 -30
- package/lib/products/customerDetails.js.map +0 -1
- package/lib/products/deviceFingerprint.d.ts +0 -4
- package/lib/products/deviceFingerprint.js +0 -30
- package/lib/products/deviceFingerprint.js.map +0 -1
- package/lib/products/directory.d.ts +0 -4
- package/lib/products/directory.js +0 -17
- package/lib/products/directory.js.map +0 -1
- package/lib/products/find.d.ts +0 -4
- package/lib/products/find.js +0 -17
- package/lib/products/find.js.map +0 -1
- package/lib/products/get.d.ts +0 -4
- package/lib/products/get.js +0 -17
- package/lib/products/get.js.map +0 -1
- package/lib/products/index.d.ts +0 -3
- package/lib/products/index.js +0 -23
- package/lib/products/index.js.map +0 -1
- package/lib/products/networks.d.ts +0 -4
- package/lib/products/networks.js +0 -17
- package/lib/products/networks.js.map +0 -1
- package/lib/products/sessions.d.ts +0 -4
- package/lib/products/sessions.js +0 -30
- package/lib/products/sessions.js.map +0 -1
- package/lib/refunds/approve.d.ts +0 -4
- package/lib/refunds/approve.js +0 -30
- package/lib/refunds/approve.js.map +0 -1
- package/lib/refunds/cancel.d.ts +0 -3
- package/lib/refunds/cancel.js +0 -17
- package/lib/refunds/cancel.js.map +0 -1
- package/lib/refunds/cancelapproval.d.ts +0 -3
- package/lib/refunds/cancelapproval.js +0 -17
- package/lib/refunds/cancelapproval.js.map +0 -1
- package/lib/refunds/find.d.ts +0 -4
- package/lib/refunds/find.js +0 -17
- package/lib/refunds/find.js.map +0 -1
- package/lib/refunds/get.d.ts +0 -3
- package/lib/refunds/get.js +0 -17
- package/lib/refunds/get.js.map +0 -1
- package/lib/refunds/index.d.ts +0 -3
- package/lib/refunds/index.js +0 -19
- package/lib/refunds/index.js.map +0 -1
- package/lib/riskassessments/bankaccounts.d.ts +0 -4
- package/lib/riskassessments/bankaccounts.js +0 -30
- package/lib/riskassessments/bankaccounts.js.map +0 -1
- package/lib/riskassessments/cards.d.ts +0 -4
- package/lib/riskassessments/cards.js +0 -30
- package/lib/riskassessments/cards.js.map +0 -1
- package/lib/riskassessments/index.d.ts +0 -3
- package/lib/riskassessments/index.js +0 -13
- package/lib/riskassessments/index.js.map +0 -1
- package/lib/services/bankaccount.d.ts +0 -4
- package/lib/services/bankaccount.js +0 -30
- package/lib/services/bankaccount.js.map +0 -1
- package/lib/services/convertAmount.d.ts +0 -4
- package/lib/services/convertAmount.js +0 -17
- package/lib/services/convertAmount.js.map +0 -1
- package/lib/services/getIINdetails.d.ts +0 -4
- package/lib/services/getIINdetails.js +0 -30
- package/lib/services/getIINdetails.js.map +0 -1
- package/lib/services/index.d.ts +0 -3
- package/lib/services/index.js +0 -19
- package/lib/services/index.js.map +0 -1
- package/lib/services/privacypolicy.d.ts +0 -4
- package/lib/services/privacypolicy.js +0 -17
- package/lib/services/privacypolicy.js.map +0 -1
- package/lib/services/testconnection.d.ts +0 -3
- package/lib/services/testconnection.js +0 -17
- package/lib/services/testconnection.js.map +0 -1
- package/lib/sessions/create.d.ts +0 -4
- package/lib/sessions/create.js +0 -30
- package/lib/sessions/create.js.map +0 -1
- package/lib/sessions/index.d.ts +0 -3
- package/lib/sessions/index.js +0 -11
- package/lib/sessions/index.js.map +0 -1
- package/lib/tokens/approvesepadirectdebit.d.ts +0 -4
- package/lib/tokens/approvesepadirectdebit.js +0 -30
- package/lib/tokens/approvesepadirectdebit.js.map +0 -1
- package/lib/tokens/create.d.ts +0 -4
- package/lib/tokens/create.js +0 -30
- package/lib/tokens/create.js.map +0 -1
- package/lib/tokens/get.d.ts +0 -3
- package/lib/tokens/get.js +0 -17
- package/lib/tokens/get.js.map +0 -1
- package/lib/tokens/index.d.ts +0 -3
- package/lib/tokens/index.js +0 -19
- package/lib/tokens/index.js.map +0 -1
- package/lib/tokens/remove.d.ts +0 -4
- package/lib/tokens/remove.js +0 -17
- package/lib/tokens/remove.js.map +0 -1
- package/lib/tokens/update.d.ts +0 -4
- package/lib/tokens/update.js +0 -30
- package/lib/tokens/update.js.map +0 -1
- package/lib/utils/versions.d.ts +0 -1
- package/lib/utils/versions.js +0 -9
- package/lib/utils/versions.js.map +0 -1
- /package/lib/model/domain/{metadata/index.d.ts → index.d.ts} +0 -0
- /package/lib/model/{captures → domain}/index.js +0 -0
- /package/lib/{model/disputes → v1/model/captures}/index.js +0 -0
- /package/lib/{model/domain/capture/definitions → v1/model/disputes}/index.js +0 -0
- /package/lib/{model/domain/capture → v1/model/files}/index.js +0 -0
- /package/lib/{model/domain/definitions → v1/model/hostedcheckouts}/index.js +0 -0
- /package/lib/{model/domain/dispute/definitions → v1/model/hostedmandatemanagements}/index.js +0 -0
- /package/lib/{model/domain/dispute → v1/model}/index.js +0 -0
- /package/lib/{model/domain/errors → v1/model/installments}/index.js +0 -0
- /package/lib/{model/domain/hostedcheckout/definitions → v1/model/mandates}/index.js +0 -0
- /package/lib/{model/domain/hostedcheckout → v1/model/payments}/index.js +0 -0
- /package/lib/{model/domain/hostedmandatemanagement/definitions → v1/model/payouts}/index.js +0 -0
- /package/lib/{model/domain/hostedmandatemanagement → v1/model/productgroups}/index.js +0 -0
- /package/lib/{model/domain/installments/definitions → v1/model/products}/index.js +0 -0
- /package/lib/{model/domain/installments → v1/model/refunds}/index.js +0 -0
- /package/lib/{model/domain/mandates/definitions → v1/model/riskassessments}/index.js +0 -0
- /package/lib/{model/domain/mandates → v1/model/services}/index.js +0 -0
- /package/lib/{model/domain/metadata → v1/model/sessions}/index.js +0 -0
- /package/lib/{model/domain/payment/definitions → v1/model/tokens}/index.js +0 -0
- /package/lib/{model/domain/payment → v1/model/webhooks}/index.js +0 -0
- /package/schemas/{payment → v1}/ApprovePaymentRequest.json +0 -0
- /package/schemas/{payout → v1}/ApprovePayoutRequest.json +0 -0
- /package/schemas/{refund → v1}/ApproveRefundRequest.json +0 -0
- /package/schemas/{token → v1}/ApproveTokenRequest.json +0 -0
- /package/schemas/{services → v1}/BankDetailsRequest.json +0 -0
- /package/schemas/{payment → v1}/CapturePaymentRequest.json +0 -0
- /package/schemas/{payment → v1}/CompletePaymentRequest.json +0 -0
- /package/schemas/{dispute → v1}/CreateDisputeRequest.json +0 -0
- /package/schemas/{hostedcheckout → v1}/CreateHostedCheckoutRequest.json +0 -0
- /package/schemas/{hostedmandatemanagement → v1}/CreateHostedMandateManagementRequest.json +0 -0
- /package/schemas/{mandates → v1}/CreateMandateRequest.json +0 -0
- /package/schemas/{product → v1}/CreatePaymentProductSessionRequest.json +0 -0
- /package/schemas/{payment → v1}/CreatePaymentRequest.json +0 -0
- /package/schemas/{payout → v1}/CreatePayoutRequest.json +0 -0
- /package/schemas/{token → v1}/CreateTokenRequest.json +0 -0
- /package/schemas/{product → v1}/DeviceFingerprintRequest.json +0 -0
- /package/schemas/{product → v1}/GetCustomerDetailsRequest.json +0 -0
- /package/schemas/{services → v1}/GetIINDetailsRequest.json +0 -0
- /package/schemas/{installments → v1}/GetInstallmentRequest.json +0 -0
- /package/schemas/{refund → v1}/RefundRequest.json +0 -0
- /package/schemas/{riskassessments → v1}/RiskAssessmentBankAccount.json +0 -0
- /package/schemas/{riskassessments → v1}/RiskAssessmentCard.json +0 -0
- /package/schemas/{sessions → v1}/SessionRequest.json +0 -0
- /package/schemas/{payment → v1}/TokenizePaymentRequest.json +0 -0
- /package/schemas/{token → v1}/UpdateTokenRequest.json +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { DeviceFingerprintRequest } from "../domain/product";
|
|
2
|
-
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
-
export interface ProductgroupsClient {
|
|
4
|
-
/**
|
|
5
|
-
* Resource /{merchantId}/productgroups - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/productgroups/find.html">Get payment product groups</a>
|
|
6
|
-
* @param cb The callback for the response.
|
|
7
|
-
* If the call was successfull, the response body type will be {@link PaymentProductGroups}.
|
|
8
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
9
|
-
*/
|
|
10
|
-
find(merchantId: string, paymentContext: FindProductgroupsParams, cb: SdkCallback): void;
|
|
11
|
-
/**
|
|
12
|
-
* Resource /{merchantId}/productgroups/{paymentProductGroupId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/productgroups/get.html">Get payment product group</a>
|
|
13
|
-
* @param cb The callback for the response.
|
|
14
|
-
* If the call was successfull, the response body type will be {@link PaymentProductGroupResponse}.
|
|
15
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
16
|
-
*/
|
|
17
|
-
get(merchantId: string, paymentProductGroupId: string, paymentContext: GetProductgroupParams, cb: SdkCallback): void;
|
|
18
|
-
/**
|
|
19
|
-
* Resource /{merchantId}/productgroups/{paymentProductGroupId}/deviceFingerprint - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/productgroups/deviceFingerprint.html">Get device fingerprint</a>
|
|
20
|
-
* @param cb The callback for the response.
|
|
21
|
-
* If the call was successfull, the response body type will be {@link DeviceFingerprintResponse}.
|
|
22
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
23
|
-
*/
|
|
24
|
-
deviceFingerprint(merchantId: string, paymentProductGroupId: string, postData: DeviceFingerprintRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
25
|
-
}
|
|
26
|
-
export interface FindProductgroupsParams extends PaymentContext {
|
|
27
|
-
countryCode?: string;
|
|
28
|
-
currencyCode?: string;
|
|
29
|
-
locale?: string;
|
|
30
|
-
amount?: number;
|
|
31
|
-
isRecurring?: boolean;
|
|
32
|
-
isInstallments?: boolean;
|
|
33
|
-
hide?: string[];
|
|
34
|
-
}
|
|
35
|
-
export interface GetProductgroupParams extends PaymentContext {
|
|
36
|
-
countryCode?: string;
|
|
37
|
-
currencyCode?: string;
|
|
38
|
-
locale?: string;
|
|
39
|
-
amount?: number;
|
|
40
|
-
isRecurring?: boolean;
|
|
41
|
-
isInstallments?: boolean;
|
|
42
|
-
hide?: string[];
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/productgroups/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { CreatePaymentProductSessionRequest, DeviceFingerprintRequest, GetCustomerDetailsRequest } from "../domain/product";
|
|
2
|
-
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
-
export interface ProductsClient {
|
|
4
|
-
/**
|
|
5
|
-
* Resource /{merchantId}/products - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/products/find.html">Get payment products</a>
|
|
6
|
-
* @param cb The callback for the response.
|
|
7
|
-
* If the call was successfull, the response body type will be {@link PaymentProducts}.
|
|
8
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
9
|
-
*/
|
|
10
|
-
find(merchantId: string, paymentContext: FindProductsParams, cb: SdkCallback): void;
|
|
11
|
-
/**
|
|
12
|
-
* Resource /{merchantId}/products/{paymentProductId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/products/get.html">Get payment product</a>
|
|
13
|
-
* @param cb The callback for the response.
|
|
14
|
-
* If the call was successfull, the response body type will be {@link PaymentProductResponse}.
|
|
15
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
16
|
-
*/
|
|
17
|
-
get(merchantId: string, paymentProductId: number, paymentContext: GetProductParams, cb: SdkCallback): void;
|
|
18
|
-
/**
|
|
19
|
-
* Resource /{merchantId}/products/{paymentProductId}/directory - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/products/directory.html">Get payment product directory</a>
|
|
20
|
-
* @param cb The callback for the response.
|
|
21
|
-
* If the call was successfull, the response body type will be {@link Directory}.
|
|
22
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
23
|
-
*/
|
|
24
|
-
directory(merchantId: string, paymentProductId: number, paymentContext: DirectoryParams, cb: SdkCallback): void;
|
|
25
|
-
/**
|
|
26
|
-
* Resource /{merchantId}/products/{paymentProductId}/customerDetails - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/products/customerDetails.html">Get customer details</a>
|
|
27
|
-
* @param cb The callback for the response.
|
|
28
|
-
* If the call was successfull, the response body type will be {@link GetCustomerDetailsResponse}.
|
|
29
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
30
|
-
*/
|
|
31
|
-
customerDetails(merchantId: string, paymentProductId: number, postData: GetCustomerDetailsRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
32
|
-
/**
|
|
33
|
-
* Resource /{merchantId}/products/{paymentProductId}/deviceFingerprint - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/products/deviceFingerprint.html">Get device fingerprint</a>
|
|
34
|
-
* @param cb The callback for the response.
|
|
35
|
-
* If the call was successfull, the response body type will be {@link DeviceFingerprintResponse}.
|
|
36
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
37
|
-
*/
|
|
38
|
-
deviceFingerprint(merchantId: string, paymentProductId: number, postData: DeviceFingerprintRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
39
|
-
/**
|
|
40
|
-
* Resource /{merchantId}/products/{paymentProductId}/networks - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/products/networks.html">Get payment product networks</a>
|
|
41
|
-
* @param cb The callback for the response.
|
|
42
|
-
* If the call was successfull, the response body type will be {@link PaymentProductNetworksResponse}.
|
|
43
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
44
|
-
*/
|
|
45
|
-
networks(merchantId: string, paymentProductId: number, paymentContext: NetworksParams, cb: SdkCallback): void;
|
|
46
|
-
/**
|
|
47
|
-
* Resource /{merchantId}/products/{paymentProductId}/sessions - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/products/sessions.html">Create session for payment product</a>
|
|
48
|
-
* @param cb The callback for the response.
|
|
49
|
-
* If the call was successfull, the response body type will be {@link CreatePaymentProductSessionResponse}.
|
|
50
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
51
|
-
*/
|
|
52
|
-
sessions(merchantId: string, paymentProductId: number, postData: CreatePaymentProductSessionRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
53
|
-
}
|
|
54
|
-
export interface FindProductsParams extends PaymentContext {
|
|
55
|
-
countryCode?: string;
|
|
56
|
-
currencyCode?: string;
|
|
57
|
-
locale?: string;
|
|
58
|
-
amount?: number;
|
|
59
|
-
isRecurring?: boolean;
|
|
60
|
-
isInstallments?: boolean;
|
|
61
|
-
hide?: string[];
|
|
62
|
-
}
|
|
63
|
-
export interface GetProductParams extends PaymentContext {
|
|
64
|
-
countryCode?: string;
|
|
65
|
-
currencyCode?: string;
|
|
66
|
-
locale?: string;
|
|
67
|
-
amount?: number;
|
|
68
|
-
isRecurring?: boolean;
|
|
69
|
-
isInstallments?: boolean;
|
|
70
|
-
hide?: string[];
|
|
71
|
-
forceBasicFlow?: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface DirectoryParams extends PaymentContext {
|
|
74
|
-
countryCode?: string;
|
|
75
|
-
currencyCode?: string;
|
|
76
|
-
}
|
|
77
|
-
export interface NetworksParams extends PaymentContext {
|
|
78
|
-
countryCode?: string;
|
|
79
|
-
currencyCode?: string;
|
|
80
|
-
amount?: number;
|
|
81
|
-
isRecurring?: boolean;
|
|
82
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/products/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ApproveRefundRequest } from "../domain/refund";
|
|
2
|
-
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
-
export interface RefundsClient {
|
|
4
|
-
/**
|
|
5
|
-
* Resource /{merchantId}/refunds - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/refunds/find.html">Find refunds</a>
|
|
6
|
-
* @param cb The callback for the response.
|
|
7
|
-
* If the call was successfull, the response body type will be {@link FindRefundsResponse}.
|
|
8
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
9
|
-
*/
|
|
10
|
-
find(merchantId: string, paymentContext: FindRefundsParams, cb: SdkCallback): void;
|
|
11
|
-
/**
|
|
12
|
-
* Resource /{merchantId}/refunds/{refundId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/refunds/get.html">Get refund</a>
|
|
13
|
-
* @param cb The callback for the response.
|
|
14
|
-
* If the call was successfull, the response body type will be {@link RefundResponse}.
|
|
15
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
16
|
-
*/
|
|
17
|
-
get(merchantId: string, refundId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
18
|
-
/**
|
|
19
|
-
* Resource /{merchantId}/refunds/{refundId}/approve - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/refunds/approve.html">Approve refund</a>
|
|
20
|
-
* @param cb The callback for the response.
|
|
21
|
-
* If the call was successfull, the response body type will be null.
|
|
22
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
23
|
-
*/
|
|
24
|
-
approve(merchantId: string, refundId: string, postData: ApproveRefundRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
25
|
-
/**
|
|
26
|
-
* Resource /{merchantId}/refunds/{refundId}/cancel - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/refunds/cancel.html">Cancel refund</a>
|
|
27
|
-
* @param cb The callback for the response.
|
|
28
|
-
* If the call was successfull, the response body type will be null.
|
|
29
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
30
|
-
*/
|
|
31
|
-
cancel(merchantId: string, refundId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
32
|
-
/**
|
|
33
|
-
* Resource /{merchantId}/refunds/{refundId}/cancelapproval - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/refunds/cancelapproval.html">Undo approve refund</a>
|
|
34
|
-
* @param cb The callback for the response.
|
|
35
|
-
* If the call was successfull, the response body type will be null.
|
|
36
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
37
|
-
*/
|
|
38
|
-
cancelapproval(merchantId: string, refundId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
39
|
-
}
|
|
40
|
-
export interface FindRefundsParams extends PaymentContext {
|
|
41
|
-
hostedCheckoutId?: string;
|
|
42
|
-
merchantReference?: string;
|
|
43
|
-
merchantOrderId?: number;
|
|
44
|
-
offset?: number;
|
|
45
|
-
limit?: number;
|
|
46
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/refunds/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { RiskAssessmentBankAccount, RiskAssessmentCard } from "../domain/riskassessments";
|
|
2
|
-
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
-
export interface RiskassessmentsClient {
|
|
4
|
-
/**
|
|
5
|
-
* Resource /{merchantId}/riskassessments/bankaccounts - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/riskassessments/bankaccounts.html">Risk-assess bankaccount</a>
|
|
6
|
-
* @param cb The callback for the response.
|
|
7
|
-
* If the call was successfull, the response body type will be {@link RiskAssessmentResponse}.
|
|
8
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
9
|
-
*/
|
|
10
|
-
bankaccounts(merchantId: string, postData: RiskAssessmentBankAccount, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
11
|
-
/**
|
|
12
|
-
* Resource /{merchantId}/riskassessments/cards - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/riskassessments/cards.html">Risk-assess card</a>
|
|
13
|
-
* @param cb The callback for the response.
|
|
14
|
-
* If the call was successfull, the response body type will be {@link RiskAssessmentResponse}.
|
|
15
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
16
|
-
*/
|
|
17
|
-
cards(merchantId: string, postData: RiskAssessmentCard, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/riskassessments/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { BankDetailsRequest, GetIINDetailsRequest } from "../domain/services";
|
|
2
|
-
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
-
export interface ServicesClient {
|
|
4
|
-
/**
|
|
5
|
-
* Resource /{merchantId}/services/convert/amount - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/services/convertAmount.html">Convert amount</a>
|
|
6
|
-
* @param cb The callback for the response.
|
|
7
|
-
* If the call was successfull, the response body type will be {@link ConvertAmount}.
|
|
8
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
9
|
-
*/
|
|
10
|
-
convertAmount(merchantId: string, paymentContext: ConvertAmountParams, cb: SdkCallback): void;
|
|
11
|
-
/**
|
|
12
|
-
* Resource /{merchantId}/services/convert/bankaccount - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/services/bankaccount.html">Convert bankaccount</a>
|
|
13
|
-
* @param cb The callback for the response.
|
|
14
|
-
* If the call was successfull, the response body type will be {@link BankDetailsResponse}.
|
|
15
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
16
|
-
*/
|
|
17
|
-
bankaccount(merchantId: string, postData: BankDetailsRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
18
|
-
/**
|
|
19
|
-
* Resource /{merchantId}/services/getIINdetails - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/services/getIINdetails.html">Get IIN details</a>
|
|
20
|
-
* @param cb The callback for the response.
|
|
21
|
-
* If the call was successfull, the response body type will be {@link GetIINDetailsResponse}.
|
|
22
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
23
|
-
*/
|
|
24
|
-
getIINdetails(merchantId: string, postData: GetIINDetailsRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
25
|
-
/**
|
|
26
|
-
* Resource /{merchantId}/services/privacypolicy - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/services/privacypolicy.html">Get privacy policy</a>
|
|
27
|
-
* @param cb The callback for the response.
|
|
28
|
-
* If the call was successfull, the response body type will be {@link GetPrivacyPolicyResponse}.
|
|
29
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
30
|
-
*/
|
|
31
|
-
privacypolicy(merchantId: string, paymentContext: PrivacypolicyParams, cb: SdkCallback): void;
|
|
32
|
-
/**
|
|
33
|
-
* Resource /{merchantId}/services/testconnection - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/services/testconnection.html">Test connection</a>
|
|
34
|
-
* @param cb The callback for the response.
|
|
35
|
-
* If the call was successfull, the response body type will be {@link TestConnection}.
|
|
36
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
37
|
-
*/
|
|
38
|
-
testconnection(merchantId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
39
|
-
}
|
|
40
|
-
export interface ConvertAmountParams extends PaymentContext {
|
|
41
|
-
source?: string;
|
|
42
|
-
target?: string;
|
|
43
|
-
amount?: number;
|
|
44
|
-
}
|
|
45
|
-
export interface PrivacypolicyParams extends PaymentContext {
|
|
46
|
-
locale?: string;
|
|
47
|
-
paymentProductId?: number;
|
|
48
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/services/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SessionRequest } from "../domain/sessions";
|
|
2
|
-
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
-
export interface SessionsClient {
|
|
4
|
-
/**
|
|
5
|
-
* Resource /{merchantId}/sessions - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/sessions/create.html">Create session</a>
|
|
6
|
-
* @param cb The callback for the response.
|
|
7
|
-
* If the call was successfull, the response body type will be {@link SessionResponse}.
|
|
8
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
9
|
-
*/
|
|
10
|
-
create(merchantId: string, postData: SessionRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
11
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/sessions/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { ApproveTokenRequest, CreateTokenRequest, UpdateTokenRequest } from "../domain/token";
|
|
2
|
-
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
-
export interface TokensClient {
|
|
4
|
-
/**
|
|
5
|
-
* Resource /{merchantId}/tokens - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/tokens/create.html">Create token</a>
|
|
6
|
-
* @param cb The callback for the response.
|
|
7
|
-
* If the call was successfull, the response body type will be {@link CreateTokenResponse}.
|
|
8
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
9
|
-
*/
|
|
10
|
-
create(merchantId: string, postData: CreateTokenRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
11
|
-
/**
|
|
12
|
-
* Resource /{merchantId}/tokens/{tokenId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/tokens/get.html">Get token</a>
|
|
13
|
-
* @param cb The callback for the response.
|
|
14
|
-
* If the call was successfull, the response body type will be {@link TokenResponse}.
|
|
15
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
16
|
-
*/
|
|
17
|
-
get(merchantId: string, tokenId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
18
|
-
/**
|
|
19
|
-
* Resource /{merchantId}/tokens/{tokenId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/tokens/update.html">Update token</a>
|
|
20
|
-
* @param cb The callback for the response.
|
|
21
|
-
* If the call was successfull, the response body type will be null.
|
|
22
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
23
|
-
*/
|
|
24
|
-
update(merchantId: string, tokenId: string, postData: UpdateTokenRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
25
|
-
/**
|
|
26
|
-
* Resource /{merchantId}/tokens/{tokenId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/tokens/delete.html">Delete token</a>
|
|
27
|
-
* @param cb The callback for the response.
|
|
28
|
-
* If the call was successfull, the response body type will be null.
|
|
29
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
30
|
-
*/
|
|
31
|
-
remove(merchantId: string, tokenId: string, paymentContext: DeleteTokenParams, cb: SdkCallback): void;
|
|
32
|
-
/**
|
|
33
|
-
* Resource /{merchantId}/tokens/{tokenId}/approvesepadirectdebit - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/tokens/approvesepadirectdebit.html">Approve SEPA DD mandate</a>
|
|
34
|
-
* @param cb The callback for the response.
|
|
35
|
-
* If the call was successfull, the response body type will be null.
|
|
36
|
-
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
37
|
-
*/
|
|
38
|
-
approvesepadirectdebit(merchantId: string, tokenId: string, postData: ApproveTokenRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
39
|
-
}
|
|
40
|
-
export interface DeleteTokenParams extends PaymentContext {
|
|
41
|
-
mandateCancelDate?: string;
|
|
42
|
-
}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PaymentContext, SdkCallback } from "../model";
|
|
2
|
-
import { ApprovePaymentRequest } from "../model/domain/payment";
|
|
3
|
-
declare const approvePayment: (merchantId: string, paymentId: string, postData: ApprovePaymentRequest, paymentContext: PaymentContext | null, cb: SdkCallback) => void;
|
|
4
|
-
export = approvePayment;
|
package/lib/payments/approve.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file was auto-generated from the API references found at
|
|
4
|
-
* https://epayments-api.developer-ingenico.com/
|
|
5
|
-
*/
|
|
6
|
-
const jsonschema_1 = require("jsonschema");
|
|
7
|
-
const communicator = require("../utils/communicator");
|
|
8
|
-
const sdkcontext = require("../utils/context");
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
10
|
-
const requestSchema = require("../../schemas/payment/ApprovePaymentRequest.json");
|
|
11
|
-
const approvePayment = function (merchantId, paymentId, postData, paymentContext, cb) {
|
|
12
|
-
// validate postData
|
|
13
|
-
const isValidRequest = jsonschema_1.validate(postData, requestSchema);
|
|
14
|
-
if (!isValidRequest.valid) {
|
|
15
|
-
const logger = sdkcontext.getLogger();
|
|
16
|
-
if (sdkcontext.isLoggingEnabled()) {
|
|
17
|
-
logger("error", isValidRequest.errors);
|
|
18
|
-
}
|
|
19
|
-
throw new Error(isValidRequest.errors.toString());
|
|
20
|
-
}
|
|
21
|
-
communicator.json({
|
|
22
|
-
method: "POST",
|
|
23
|
-
modulePath: "/v1/" + merchantId + "/payments/" + paymentId + "/approve",
|
|
24
|
-
body: postData,
|
|
25
|
-
paymentContext: paymentContext,
|
|
26
|
-
cb: cb
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
module.exports = approvePayment;
|
|
30
|
-
//# sourceMappingURL=approve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"approve.js","sourceRoot":"","sources":["../../src/payments/approve.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,2CAAsC;AACtC,sDAAuD;AACvD,+CAAgD;AAIhD,8DAA8D;AAC9D,MAAM,aAAa,GAAG,OAAO,CAAC,kDAAkD,CAAC,CAAC;AAElF,MAAM,cAAc,GAAG,UAAS,UAAkB,EAAE,SAAiB,EAAE,QAA+B,EAAE,cAAqC,EAAE,EAAe;IAC5J,oBAAoB;IACpB,MAAM,cAAc,GAAG,qBAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACzD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE;QACzB,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,UAAU,CAAC,gBAAgB,EAAE,EAAE;YACjC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;SACxC;QACD,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;KACnD;IACD,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU;QACvE,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,cAAc,CAAC"}
|
package/lib/payments/cancel.d.ts
DELETED
package/lib/payments/cancel.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file was auto-generated from the API references found at
|
|
4
|
-
* https://epayments-api.developer-ingenico.com/
|
|
5
|
-
*/
|
|
6
|
-
const communicator = require("../utils/communicator");
|
|
7
|
-
const cancelPayment = function (merchantId, paymentId, paymentContext, cb) {
|
|
8
|
-
communicator.json({
|
|
9
|
-
method: "POST",
|
|
10
|
-
modulePath: "/v1/" + merchantId + "/payments/" + paymentId + "/cancel",
|
|
11
|
-
body: null,
|
|
12
|
-
paymentContext: paymentContext,
|
|
13
|
-
cb: cb
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
module.exports = cancelPayment;
|
|
17
|
-
//# sourceMappingURL=cancel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancel.js","sourceRoot":"","sources":["../../src/payments/cancel.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,sDAAuD;AAGvD,MAAM,aAAa,GAAG,UAAS,UAAkB,EAAE,SAAiB,EAAE,cAAqC,EAAE,EAAe;IAC1H,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,SAAS;QACtE,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,aAAa,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file was auto-generated from the API references found at
|
|
4
|
-
* https://epayments-api.developer-ingenico.com/
|
|
5
|
-
*/
|
|
6
|
-
const communicator = require("../utils/communicator");
|
|
7
|
-
const cancelApprovalPayment = function (merchantId, paymentId, paymentContext, cb) {
|
|
8
|
-
communicator.json({
|
|
9
|
-
method: "POST",
|
|
10
|
-
modulePath: "/v1/" + merchantId + "/payments/" + paymentId + "/cancelapproval",
|
|
11
|
-
body: null,
|
|
12
|
-
paymentContext: paymentContext,
|
|
13
|
-
cb: cb
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
module.exports = cancelApprovalPayment;
|
|
17
|
-
//# sourceMappingURL=cancelapproval.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancelapproval.js","sourceRoot":"","sources":["../../src/payments/cancelapproval.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,sDAAuD;AAGvD,MAAM,qBAAqB,GAAG,UAAS,UAAkB,EAAE,SAAiB,EAAE,cAAqC,EAAE,EAAe;IAClI,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,iBAAiB;QAC9E,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,qBAAqB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PaymentContext, SdkCallback } from "../model";
|
|
2
|
-
import { CapturePaymentRequest } from "../model/domain/payment";
|
|
3
|
-
declare const capturePayment: (merchantId: string, paymentId: string, postData: CapturePaymentRequest, paymentContext: PaymentContext | null, cb: SdkCallback) => void;
|
|
4
|
-
export = capturePayment;
|
package/lib/payments/capture.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file was auto-generated from the API references found at
|
|
4
|
-
* https://epayments-api.developer-ingenico.com/
|
|
5
|
-
*/
|
|
6
|
-
const jsonschema_1 = require("jsonschema");
|
|
7
|
-
const communicator = require("../utils/communicator");
|
|
8
|
-
const sdkcontext = require("../utils/context");
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
10
|
-
const requestSchema = require("../../schemas/payment/CapturePaymentRequest.json");
|
|
11
|
-
const capturePayment = function (merchantId, paymentId, postData, paymentContext, cb) {
|
|
12
|
-
// validate postData
|
|
13
|
-
const isValidRequest = jsonschema_1.validate(postData, requestSchema);
|
|
14
|
-
if (!isValidRequest.valid) {
|
|
15
|
-
const logger = sdkcontext.getLogger();
|
|
16
|
-
if (sdkcontext.isLoggingEnabled()) {
|
|
17
|
-
logger("error", isValidRequest.errors);
|
|
18
|
-
}
|
|
19
|
-
throw new Error(isValidRequest.errors.toString());
|
|
20
|
-
}
|
|
21
|
-
communicator.json({
|
|
22
|
-
method: "POST",
|
|
23
|
-
modulePath: "/v1/" + merchantId + "/payments/" + paymentId + "/capture",
|
|
24
|
-
body: postData,
|
|
25
|
-
paymentContext: paymentContext,
|
|
26
|
-
cb: cb
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
module.exports = capturePayment;
|
|
30
|
-
//# sourceMappingURL=capture.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"capture.js","sourceRoot":"","sources":["../../src/payments/capture.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,2CAAsC;AACtC,sDAAuD;AACvD,+CAAgD;AAIhD,8DAA8D;AAC9D,MAAM,aAAa,GAAG,OAAO,CAAC,kDAAkD,CAAC,CAAC;AAElF,MAAM,cAAc,GAAG,UAAS,UAAkB,EAAE,SAAiB,EAAE,QAA+B,EAAE,cAAqC,EAAE,EAAe;IAC5J,oBAAoB;IACpB,MAAM,cAAc,GAAG,qBAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACzD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE;QACzB,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,UAAU,CAAC,gBAAgB,EAAE,EAAE;YACjC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;SACxC;QACD,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;KACnD;IACD,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,UAAU;QACvE,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,cAAc,CAAC"}
|
package/lib/payments/captures.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file was auto-generated from the API references found at
|
|
4
|
-
* https://epayments-api.developer-ingenico.com/
|
|
5
|
-
*/
|
|
6
|
-
const communicator = require("../utils/communicator");
|
|
7
|
-
const getPaymentCaptures = function (merchantId, paymentId, paymentContext, cb) {
|
|
8
|
-
communicator.json({
|
|
9
|
-
method: "GET",
|
|
10
|
-
modulePath: "/v1/" + merchantId + "/payments/" + paymentId + "/captures",
|
|
11
|
-
body: null,
|
|
12
|
-
paymentContext: paymentContext,
|
|
13
|
-
cb: cb
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
module.exports = getPaymentCaptures;
|
|
17
|
-
//# sourceMappingURL=captures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"captures.js","sourceRoot":"","sources":["../../src/payments/captures.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,sDAAuD;AAGvD,MAAM,kBAAkB,GAAG,UAAS,UAAkB,EAAE,SAAiB,EAAE,cAAqC,EAAE,EAAe;IAC/H,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,KAAK;QACb,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW;QACxE,IAAI,EAAE,IAAI;QACV,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,kBAAkB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PaymentContext, SdkCallback } from "../model";
|
|
2
|
-
import { CompletePaymentRequest } from "../model/domain/payment";
|
|
3
|
-
declare const completePayment: (merchantId: string, paymentId: string, postData: CompletePaymentRequest, paymentContext: PaymentContext | null, cb: SdkCallback) => void;
|
|
4
|
-
export = completePayment;
|
package/lib/payments/complete.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file was auto-generated from the API references found at
|
|
4
|
-
* https://epayments-api.developer-ingenico.com/
|
|
5
|
-
*/
|
|
6
|
-
const jsonschema_1 = require("jsonschema");
|
|
7
|
-
const communicator = require("../utils/communicator");
|
|
8
|
-
const sdkcontext = require("../utils/context");
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
10
|
-
const requestSchema = require("../../schemas/payment/CompletePaymentRequest.json");
|
|
11
|
-
const completePayment = function (merchantId, paymentId, postData, paymentContext, cb) {
|
|
12
|
-
// validate postData
|
|
13
|
-
const isValidRequest = jsonschema_1.validate(postData, requestSchema);
|
|
14
|
-
if (!isValidRequest.valid) {
|
|
15
|
-
const logger = sdkcontext.getLogger();
|
|
16
|
-
if (sdkcontext.isLoggingEnabled()) {
|
|
17
|
-
logger("error", isValidRequest.errors);
|
|
18
|
-
}
|
|
19
|
-
throw new Error(isValidRequest.errors.toString());
|
|
20
|
-
}
|
|
21
|
-
communicator.json({
|
|
22
|
-
method: "POST",
|
|
23
|
-
modulePath: "/v1/" + merchantId + "/payments/" + paymentId + "/complete",
|
|
24
|
-
body: postData,
|
|
25
|
-
paymentContext: paymentContext,
|
|
26
|
-
cb: cb
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
module.exports = completePayment;
|
|
30
|
-
//# sourceMappingURL=complete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"complete.js","sourceRoot":"","sources":["../../src/payments/complete.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,2CAAsC;AACtC,sDAAuD;AACvD,+CAAgD;AAIhD,8DAA8D;AAC9D,MAAM,aAAa,GAAG,OAAO,CAAC,mDAAmD,CAAC,CAAC;AAEnF,MAAM,eAAe,GAAG,UAAS,UAAkB,EAAE,SAAiB,EAAE,QAAgC,EAAE,cAAqC,EAAE,EAAe;IAC9J,oBAAoB;IACpB,MAAM,cAAc,GAAG,qBAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACzD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE;QACzB,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,UAAU,CAAC,gBAAgB,EAAE,EAAE;YACjC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;SACxC;QACD,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;KACnD;IACD,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW;QACxE,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,eAAe,CAAC"}
|
package/lib/payments/create.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { PaymentContext, SdkCallback } from "../model";
|
|
2
|
-
import { CreatePaymentRequest } from "../model/domain/payment";
|
|
3
|
-
declare const createPayment: (merchantId: string, postData: CreatePaymentRequest, paymentContext: PaymentContext | null, cb: SdkCallback) => void;
|
|
4
|
-
export = createPayment;
|
package/lib/payments/create.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* This file was auto-generated from the API references found at
|
|
4
|
-
* https://epayments-api.developer-ingenico.com/
|
|
5
|
-
*/
|
|
6
|
-
const jsonschema_1 = require("jsonschema");
|
|
7
|
-
const communicator = require("../utils/communicator");
|
|
8
|
-
const sdkcontext = require("../utils/context");
|
|
9
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
10
|
-
const requestSchema = require("../../schemas/payment/CreatePaymentRequest.json");
|
|
11
|
-
const createPayment = function (merchantId, postData, paymentContext, cb) {
|
|
12
|
-
// validate postData
|
|
13
|
-
const isValidRequest = jsonschema_1.validate(postData, requestSchema);
|
|
14
|
-
if (!isValidRequest.valid) {
|
|
15
|
-
const logger = sdkcontext.getLogger();
|
|
16
|
-
if (sdkcontext.isLoggingEnabled()) {
|
|
17
|
-
logger("error", isValidRequest.errors);
|
|
18
|
-
}
|
|
19
|
-
throw new Error(isValidRequest.errors.toString());
|
|
20
|
-
}
|
|
21
|
-
communicator.json({
|
|
22
|
-
method: "POST",
|
|
23
|
-
modulePath: "/v1/" + merchantId + "/payments",
|
|
24
|
-
body: postData,
|
|
25
|
-
paymentContext: paymentContext,
|
|
26
|
-
cb: cb
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
module.exports = createPayment;
|
|
30
|
-
//# sourceMappingURL=create.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../src/payments/create.ts"],"names":[],"mappings":";AAAA;;;GAGG;AACH,2CAAsC;AACtC,sDAAuD;AACvD,+CAAgD;AAIhD,8DAA8D;AAC9D,MAAM,aAAa,GAAG,OAAO,CAAC,iDAAiD,CAAC,CAAC;AAEjF,MAAM,aAAa,GAAG,UAAS,UAAkB,EAAE,QAA8B,EAAE,cAAqC,EAAE,EAAe;IACvI,oBAAoB;IACpB,MAAM,cAAc,GAAG,qBAAQ,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;IACzD,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE;QACzB,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,EAAE,CAAC;QACtC,IAAI,UAAU,CAAC,gBAAgB,EAAE,EAAE;YACjC,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;SACxC;QACD,MAAM,IAAI,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;KACnD;IACD,YAAY,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,WAAW;QAC7C,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE,cAAc;QAC9B,EAAE,EAAE,EAAE;KACP,CAAC,CAAC;AACL,CAAC,CAAC;AACF,iBAAS,aAAa,CAAC"}
|