connect-sdk-nodejs 3.18.0 → 4.1.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 +27 -3
- package/lib/captures/get.d.ts +3 -0
- package/lib/captures/get.js +17 -0
- package/lib/captures/get.js.map +1 -0
- package/lib/captures/index.d.ts +3 -0
- package/lib/captures/index.js +13 -0
- package/lib/captures/index.js.map +1 -0
- package/lib/captures/refund.d.ts +4 -0
- package/lib/captures/refund.js +30 -0
- package/lib/captures/refund.js.map +1 -0
- package/lib/disputes/cancel.d.ts +3 -0
- package/lib/disputes/cancel.js +17 -0
- package/lib/disputes/cancel.js.map +1 -0
- package/lib/disputes/get.d.ts +3 -0
- package/lib/disputes/get.js +17 -0
- package/lib/disputes/get.js.map +1 -0
- package/lib/disputes/index.d.ts +3 -0
- package/lib/disputes/index.js +17 -0
- package/lib/disputes/index.js.map +1 -0
- package/lib/disputes/submit.d.ts +3 -0
- package/lib/disputes/submit.js +17 -0
- package/lib/disputes/submit.js.map +1 -0
- package/lib/disputes/uploadFile.d.ts +4 -0
- package/lib/disputes/uploadFile.js +17 -0
- package/lib/disputes/uploadFile.js.map +1 -0
- package/lib/files/getFile.d.ts +3 -0
- package/lib/files/getFile.js +17 -0
- package/lib/files/getFile.js.map +1 -0
- package/lib/files/index.d.ts +3 -0
- package/lib/files/index.js +11 -0
- package/lib/files/index.js.map +1 -0
- package/lib/hostedcheckouts/create.d.ts +4 -0
- package/lib/hostedcheckouts/create.js +30 -0
- package/lib/hostedcheckouts/create.js.map +1 -0
- package/lib/hostedcheckouts/get.d.ts +3 -0
- package/lib/hostedcheckouts/get.js +17 -0
- package/lib/hostedcheckouts/get.js.map +1 -0
- package/lib/hostedcheckouts/index.d.ts +3 -0
- package/lib/hostedcheckouts/index.js +15 -0
- package/lib/hostedcheckouts/index.js.map +1 -0
- package/lib/hostedcheckouts/remove.d.ts +3 -0
- package/lib/hostedcheckouts/remove.js +17 -0
- package/lib/hostedcheckouts/remove.js.map +1 -0
- package/lib/hostedmandatemanagements/create.d.ts +4 -0
- package/lib/hostedmandatemanagements/create.js +30 -0
- package/lib/hostedmandatemanagements/create.js.map +1 -0
- package/lib/hostedmandatemanagements/get.d.ts +3 -0
- package/lib/hostedmandatemanagements/get.js +17 -0
- package/lib/hostedmandatemanagements/get.js.map +1 -0
- package/lib/hostedmandatemanagements/index.d.ts +3 -0
- package/lib/hostedmandatemanagements/index.js +13 -0
- package/lib/hostedmandatemanagements/index.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +85 -0
- package/lib/index.js.map +1 -0
- package/lib/mandates/block.d.ts +3 -0
- package/lib/mandates/block.js +17 -0
- package/lib/mandates/block.js.map +1 -0
- package/lib/mandates/create.d.ts +4 -0
- package/lib/mandates/create.js +30 -0
- package/lib/mandates/create.js.map +1 -0
- package/lib/mandates/createWithMandateReference.d.ts +4 -0
- package/lib/mandates/createWithMandateReference.js +30 -0
- package/lib/mandates/createWithMandateReference.js.map +1 -0
- package/lib/mandates/get.d.ts +3 -0
- package/lib/mandates/get.js +17 -0
- package/lib/mandates/get.js.map +1 -0
- package/lib/mandates/index.d.ts +3 -0
- package/lib/mandates/index.js +21 -0
- package/lib/mandates/index.js.map +1 -0
- package/lib/mandates/revoke.d.ts +3 -0
- package/lib/mandates/revoke.js +17 -0
- package/lib/mandates/revoke.js.map +1 -0
- package/lib/mandates/unblock.d.ts +3 -0
- package/lib/mandates/unblock.js +17 -0
- package/lib/mandates/unblock.js.map +1 -0
- package/lib/model/captures/index.d.ts +18 -0
- package/lib/model/captures/index.js +3 -0
- package/lib/model/captures/index.js.map +1 -0
- package/lib/model/disputes/index.d.ts +34 -0
- package/lib/model/disputes/index.js +3 -0
- package/lib/model/disputes/index.js.map +1 -0
- package/lib/model/domain/capture/definitions/index.d.ts +25 -0
- package/lib/model/domain/capture/definitions/index.js +3 -0
- package/lib/model/domain/capture/definitions/index.js.map +1 -0
- package/lib/model/domain/capture/index.d.ts +6 -0
- package/lib/model/domain/capture/index.js +3 -0
- package/lib/model/domain/capture/index.js.map +1 -0
- package/lib/model/domain/definitions/index.d.ts +311 -0
- package/lib/model/domain/definitions/index.js +3 -0
- package/lib/model/domain/definitions/index.js.map +1 -0
- package/lib/model/domain/dispute/definitions/index.d.ts +38 -0
- package/lib/model/domain/dispute/definitions/index.js +3 -0
- package/lib/model/domain/dispute/definitions/index.js.map +1 -0
- package/lib/model/domain/dispute/index.d.ts +18 -0
- package/lib/model/domain/dispute/index.js +3 -0
- package/lib/model/domain/dispute/index.js.map +1 -0
- package/lib/model/domain/errors/definitions/index.d.ts +9 -0
- package/{captures → lib/model/domain/errors/definitions}/index.js +2 -6
- package/lib/model/domain/errors/definitions/index.js.map +1 -0
- package/lib/model/domain/errors/index.d.ts +5 -0
- package/lib/model/domain/errors/index.js +3 -0
- package/lib/model/domain/errors/index.js.map +1 -0
- package/lib/model/domain/file/definitions/index.d.ts +6 -0
- package/{sessions → lib/model/domain/file/definitions}/index.js +2 -6
- package/lib/model/domain/file/definitions/index.js.map +1 -0
- package/lib/model/domain/hostedcheckout/definitions/index.d.ts +50 -0
- package/lib/model/domain/hostedcheckout/definitions/index.js +3 -0
- package/lib/model/domain/hostedcheckout/definitions/index.js.map +1 -0
- package/lib/model/domain/hostedcheckout/index.d.ts +27 -0
- package/lib/model/domain/hostedcheckout/index.js +3 -0
- package/lib/model/domain/hostedcheckout/index.js.map +1 -0
- package/lib/model/domain/hostedmandatemanagement/definitions/index.d.ts +15 -0
- package/lib/model/domain/hostedmandatemanagement/definitions/index.js +3 -0
- package/lib/model/domain/hostedmandatemanagement/definitions/index.js.map +1 -0
- package/lib/model/domain/hostedmandatemanagement/index.d.ts +15 -0
- package/lib/model/domain/hostedmandatemanagement/index.js +3 -0
- package/lib/model/domain/hostedmandatemanagement/index.js.map +1 -0
- package/lib/model/domain/mandates/definitions/index.d.ts +52 -0
- package/lib/model/domain/mandates/definitions/index.js +3 -0
- package/lib/model/domain/mandates/definitions/index.js.map +1 -0
- package/lib/model/domain/mandates/index.d.ts +10 -0
- package/lib/model/domain/mandates/index.js +3 -0
- package/lib/model/domain/mandates/index.js.map +1 -0
- package/lib/model/domain/metadata/index.d.ts +6 -0
- package/lib/model/domain/metadata/index.js +3 -0
- package/lib/model/domain/metadata/index.js.map +1 -0
- package/lib/model/domain/payment/definitions/index.d.ts +858 -0
- package/lib/model/domain/payment/definitions/index.js +3 -0
- package/lib/model/domain/payment/definitions/index.js.map +1 -0
- package/lib/model/domain/payment/index.d.ts +77 -0
- package/lib/model/domain/payment/index.js +3 -0
- package/lib/model/domain/payment/index.js.map +1 -0
- package/lib/model/domain/payout/definitions/index.d.ts +48 -0
- package/lib/model/domain/payout/definitions/index.js +3 -0
- package/lib/model/domain/payout/definitions/index.js.map +1 -0
- package/lib/model/domain/payout/index.d.ts +56 -0
- package/lib/model/domain/payout/index.js +3 -0
- package/lib/model/domain/payout/index.js.map +1 -0
- package/lib/model/domain/product/definitions/index.d.ts +164 -0
- package/lib/model/domain/product/definitions/index.js +3 -0
- package/lib/model/domain/product/definitions/index.js.map +1 -0
- package/lib/model/domain/product/index.d.ts +47 -0
- package/lib/model/domain/product/index.js +3 -0
- package/lib/model/domain/product/index.js.map +1 -0
- package/lib/model/domain/refund/definitions/index.d.ts +26 -0
- package/lib/model/domain/refund/definitions/index.js +3 -0
- package/lib/model/domain/refund/definitions/index.js.map +1 -0
- package/lib/model/domain/refund/index.d.ts +29 -0
- package/lib/model/domain/refund/index.js +3 -0
- package/lib/model/domain/refund/index.js.map +1 -0
- package/lib/model/domain/riskassessments/definitions/index.d.ts +52 -0
- package/lib/model/domain/riskassessments/definitions/index.js +3 -0
- package/lib/model/domain/riskassessments/definitions/index.js.map +1 -0
- package/lib/model/domain/riskassessments/index.d.ts +12 -0
- package/lib/model/domain/riskassessments/index.js +3 -0
- package/lib/model/domain/riskassessments/index.js.map +1 -0
- package/lib/model/domain/services/definitions/index.d.ts +33 -0
- package/lib/model/domain/services/definitions/index.js +3 -0
- package/lib/model/domain/services/definitions/index.js.map +1 -0
- package/lib/model/domain/services/index.d.ts +35 -0
- package/lib/model/domain/services/index.js +3 -0
- package/lib/model/domain/services/index.js.map +1 -0
- package/lib/model/domain/sessions/definitions/index.d.ts +5 -0
- package/lib/model/domain/sessions/definitions/index.js +3 -0
- package/lib/model/domain/sessions/definitions/index.js.map +1 -0
- package/lib/model/domain/sessions/index.d.ts +13 -0
- package/lib/model/domain/sessions/index.js +3 -0
- package/lib/model/domain/sessions/index.js.map +1 -0
- package/lib/model/domain/token/definitions/index.d.ts +102 -0
- package/lib/model/domain/token/definitions/index.js +3 -0
- package/lib/model/domain/token/definitions/index.js.map +1 -0
- package/lib/model/domain/token/index.d.ts +32 -0
- package/lib/model/domain/token/index.js +3 -0
- package/lib/model/domain/token/index.js.map +1 -0
- package/lib/model/domain/webhooks/index.d.ts +17 -0
- package/lib/model/domain/webhooks/index.js +3 -0
- package/lib/model/domain/webhooks/index.js.map +1 -0
- package/lib/model/files/index.d.ts +10 -0
- package/lib/model/files/index.js +3 -0
- package/lib/model/files/index.js.map +1 -0
- package/lib/model/hostedcheckouts/index.d.ts +25 -0
- package/lib/model/hostedcheckouts/index.js +3 -0
- package/lib/model/hostedcheckouts/index.js.map +1 -0
- package/lib/model/hostedmandatemanagements/index.d.ts +18 -0
- package/lib/model/hostedmandatemanagements/index.js +3 -0
- package/lib/model/hostedmandatemanagements/index.js.map +1 -0
- package/lib/model/index.d.ts +38 -0
- package/lib/model/index.js +14 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/mandates/index.d.ts +46 -0
- package/lib/model/mandates/index.js +3 -0
- package/lib/model/mandates/index.js.map +1 -0
- package/lib/model/payments/index.d.ts +132 -0
- package/lib/model/payments/index.js +3 -0
- package/lib/model/payments/index.js.map +1 -0
- package/lib/model/payouts/index.d.ts +52 -0
- package/lib/model/payouts/index.js +3 -0
- package/lib/model/payouts/index.js.map +1 -0
- package/lib/model/productgroups/index.d.ts +41 -0
- package/lib/model/productgroups/index.js +3 -0
- package/lib/model/productgroups/index.js.map +1 -0
- package/lib/model/products/index.d.ts +80 -0
- package/lib/model/products/index.js +3 -0
- package/lib/model/products/index.js.map +1 -0
- package/lib/model/refunds/index.d.ts +46 -0
- package/lib/model/refunds/index.js +3 -0
- package/lib/model/refunds/index.js.map +1 -0
- package/lib/model/riskassessments/index.d.ts +18 -0
- package/lib/model/riskassessments/index.js +3 -0
- package/lib/model/riskassessments/index.js.map +1 -0
- package/lib/model/services/index.d.ts +55 -0
- package/lib/model/services/index.js +3 -0
- package/lib/model/services/index.js.map +1 -0
- package/lib/model/sessions/index.d.ts +11 -0
- package/lib/model/sessions/index.js +3 -0
- package/lib/model/sessions/index.js.map +1 -0
- package/lib/model/tokens/index.d.ts +42 -0
- package/lib/model/tokens/index.js +3 -0
- package/lib/model/tokens/index.js.map +1 -0
- package/lib/model/types.d.ts +98 -0
- package/lib/model/types.js +3 -0
- package/lib/model/types.js.map +1 -0
- package/lib/model/webhooks/index.d.ts +36 -0
- package/lib/model/webhooks/index.js +25 -0
- package/lib/model/webhooks/index.js.map +1 -0
- package/lib/payments/approve.d.ts +4 -0
- package/lib/payments/approve.js +30 -0
- package/lib/payments/approve.js.map +1 -0
- package/lib/payments/cancel.d.ts +3 -0
- package/lib/payments/cancel.js +17 -0
- package/lib/payments/cancel.js.map +1 -0
- package/lib/payments/cancelapproval.d.ts +3 -0
- package/lib/payments/cancelapproval.js +17 -0
- package/lib/payments/cancelapproval.js.map +1 -0
- package/lib/payments/capture.d.ts +4 -0
- package/lib/payments/capture.js +30 -0
- package/lib/payments/capture.js.map +1 -0
- package/lib/payments/captures.d.ts +3 -0
- package/lib/payments/captures.js +17 -0
- package/lib/payments/captures.js.map +1 -0
- package/lib/payments/complete.d.ts +4 -0
- package/lib/payments/complete.js +30 -0
- package/lib/payments/complete.js.map +1 -0
- package/lib/payments/create.d.ts +4 -0
- package/lib/payments/create.js +30 -0
- package/lib/payments/create.js.map +1 -0
- package/lib/payments/devicefingerprint.d.ts +3 -0
- package/lib/payments/devicefingerprint.js +17 -0
- package/lib/payments/devicefingerprint.js.map +1 -0
- package/lib/payments/dispute.d.ts +4 -0
- package/lib/payments/dispute.js +30 -0
- package/lib/payments/dispute.js.map +1 -0
- package/lib/payments/disputes.d.ts +3 -0
- package/lib/payments/disputes.js +17 -0
- package/lib/payments/disputes.js.map +1 -0
- package/lib/payments/find.d.ts +4 -0
- package/lib/payments/find.js +17 -0
- package/lib/payments/find.js.map +1 -0
- package/lib/payments/get.d.ts +3 -0
- package/lib/payments/get.js +17 -0
- package/lib/payments/get.js.map +1 -0
- package/lib/payments/index.d.ts +3 -0
- package/lib/payments/index.js +43 -0
- package/lib/payments/index.js.map +1 -0
- package/lib/payments/processchallenged.d.ts +3 -0
- package/lib/payments/processchallenged.js +17 -0
- package/lib/payments/processchallenged.js.map +1 -0
- package/lib/payments/refund.d.ts +4 -0
- package/lib/payments/refund.js +30 -0
- package/lib/payments/refund.js.map +1 -0
- package/lib/payments/refunds.d.ts +3 -0
- package/lib/payments/refunds.js +17 -0
- package/lib/payments/refunds.js.map +1 -0
- package/lib/payments/thirdPartyStatus.d.ts +3 -0
- package/lib/payments/thirdPartyStatus.js +17 -0
- package/lib/payments/thirdPartyStatus.js.map +1 -0
- package/lib/payments/tokenize.d.ts +4 -0
- package/lib/payments/tokenize.js +30 -0
- package/lib/payments/tokenize.js.map +1 -0
- package/lib/payouts/approve.d.ts +4 -0
- package/lib/payouts/approve.js +30 -0
- package/lib/payouts/approve.js.map +1 -0
- package/lib/payouts/cancel.d.ts +3 -0
- package/lib/payouts/cancel.js +17 -0
- package/lib/payouts/cancel.js.map +1 -0
- package/lib/payouts/cancelapproval.d.ts +3 -0
- package/lib/payouts/cancelapproval.js +17 -0
- package/lib/payouts/cancelapproval.js.map +1 -0
- package/lib/payouts/create.d.ts +4 -0
- package/lib/payouts/create.js +30 -0
- package/lib/payouts/create.js.map +1 -0
- package/lib/payouts/find.d.ts +4 -0
- package/lib/payouts/find.js +17 -0
- package/lib/payouts/find.js.map +1 -0
- package/lib/payouts/get.d.ts +3 -0
- package/lib/payouts/get.js +17 -0
- package/lib/payouts/get.js.map +1 -0
- package/lib/payouts/index.d.ts +3 -0
- package/lib/payouts/index.js +21 -0
- package/lib/payouts/index.js.map +1 -0
- package/lib/productgroups/deviceFingerprint.d.ts +4 -0
- package/lib/productgroups/deviceFingerprint.js +30 -0
- package/lib/productgroups/deviceFingerprint.js.map +1 -0
- package/lib/productgroups/find.d.ts +4 -0
- package/lib/productgroups/find.js +17 -0
- package/lib/productgroups/find.js.map +1 -0
- package/lib/productgroups/get.d.ts +4 -0
- package/lib/productgroups/get.js +17 -0
- package/lib/productgroups/get.js.map +1 -0
- package/lib/productgroups/index.d.ts +3 -0
- package/lib/productgroups/index.js +15 -0
- package/lib/productgroups/index.js.map +1 -0
- package/lib/products/customerDetails.d.ts +4 -0
- package/lib/products/customerDetails.js +30 -0
- package/lib/products/customerDetails.js.map +1 -0
- package/lib/products/deviceFingerprint.d.ts +4 -0
- package/lib/products/deviceFingerprint.js +30 -0
- package/lib/products/deviceFingerprint.js.map +1 -0
- package/lib/products/directory.d.ts +4 -0
- package/lib/products/directory.js +17 -0
- package/lib/products/directory.js.map +1 -0
- package/lib/products/find.d.ts +4 -0
- package/lib/products/find.js +17 -0
- package/lib/products/find.js.map +1 -0
- package/lib/products/get.d.ts +4 -0
- package/lib/products/get.js +17 -0
- package/lib/products/get.js.map +1 -0
- package/lib/products/index.d.ts +3 -0
- package/lib/products/index.js +23 -0
- package/lib/products/index.js.map +1 -0
- package/lib/products/networks.d.ts +4 -0
- package/lib/products/networks.js +17 -0
- package/lib/products/networks.js.map +1 -0
- package/lib/products/sessions.d.ts +4 -0
- package/lib/products/sessions.js +30 -0
- package/lib/products/sessions.js.map +1 -0
- package/lib/refunds/approve.d.ts +4 -0
- package/lib/refunds/approve.js +30 -0
- package/lib/refunds/approve.js.map +1 -0
- package/lib/refunds/cancel.d.ts +3 -0
- package/lib/refunds/cancel.js +17 -0
- package/lib/refunds/cancel.js.map +1 -0
- package/lib/refunds/cancelapproval.d.ts +3 -0
- package/lib/refunds/cancelapproval.js +17 -0
- package/lib/refunds/cancelapproval.js.map +1 -0
- package/lib/refunds/find.d.ts +4 -0
- package/lib/refunds/find.js +17 -0
- package/lib/refunds/find.js.map +1 -0
- package/lib/refunds/get.d.ts +3 -0
- package/lib/refunds/get.js +17 -0
- package/lib/refunds/get.js.map +1 -0
- package/lib/refunds/index.d.ts +3 -0
- package/lib/refunds/index.js +19 -0
- package/lib/refunds/index.js.map +1 -0
- package/lib/riskassessments/bankaccounts.d.ts +4 -0
- package/lib/riskassessments/bankaccounts.js +30 -0
- package/lib/riskassessments/bankaccounts.js.map +1 -0
- package/lib/riskassessments/cards.d.ts +4 -0
- package/lib/riskassessments/cards.js +30 -0
- package/lib/riskassessments/cards.js.map +1 -0
- package/lib/riskassessments/index.d.ts +3 -0
- package/lib/riskassessments/index.js +13 -0
- package/lib/riskassessments/index.js.map +1 -0
- package/lib/services/bankaccount.d.ts +4 -0
- package/lib/services/bankaccount.js +30 -0
- package/lib/services/bankaccount.js.map +1 -0
- package/lib/services/convertAmount.d.ts +4 -0
- package/lib/services/convertAmount.js +17 -0
- package/lib/services/convertAmount.js.map +1 -0
- package/lib/services/getIINdetails.d.ts +4 -0
- package/lib/services/getIINdetails.js +30 -0
- package/lib/services/getIINdetails.js.map +1 -0
- package/lib/services/index.d.ts +3 -0
- package/lib/services/index.js +21 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/privacypolicy.d.ts +4 -0
- package/lib/services/privacypolicy.js +17 -0
- package/lib/services/privacypolicy.js.map +1 -0
- package/lib/services/settlementdetails.d.ts +3 -0
- package/lib/services/settlementdetails.js +17 -0
- package/lib/services/settlementdetails.js.map +1 -0
- package/lib/services/testconnection.d.ts +3 -0
- package/lib/services/testconnection.js +17 -0
- package/lib/services/testconnection.js.map +1 -0
- package/lib/sessions/create.d.ts +4 -0
- package/lib/sessions/create.js +30 -0
- package/lib/sessions/create.js.map +1 -0
- package/lib/sessions/index.d.ts +3 -0
- package/lib/sessions/index.js +11 -0
- package/lib/sessions/index.js.map +1 -0
- package/lib/tokens/approvesepadirectdebit.d.ts +4 -0
- package/lib/tokens/approvesepadirectdebit.js +30 -0
- package/lib/tokens/approvesepadirectdebit.js.map +1 -0
- package/lib/tokens/create.d.ts +4 -0
- package/lib/tokens/create.js +30 -0
- package/lib/tokens/create.js.map +1 -0
- package/lib/tokens/get.d.ts +3 -0
- package/lib/tokens/get.js +17 -0
- package/lib/tokens/get.js.map +1 -0
- package/lib/tokens/index.d.ts +3 -0
- package/lib/tokens/index.js +19 -0
- package/lib/tokens/index.js.map +1 -0
- package/lib/tokens/remove.d.ts +4 -0
- package/lib/tokens/remove.js +17 -0
- package/lib/tokens/remove.js.map +1 -0
- package/lib/tokens/update.d.ts +4 -0
- package/lib/tokens/update.js +30 -0
- package/lib/tokens/update.js.map +1 -0
- package/lib/utils/communicator.d.ts +3 -0
- package/lib/utils/communicator.js +127 -0
- package/lib/utils/communicator.js.map +1 -0
- package/lib/utils/connection.d.ts +5 -0
- package/lib/utils/connection.js +114 -0
- package/lib/utils/connection.js.map +1 -0
- package/lib/utils/context.d.ts +3 -0
- package/lib/utils/context.js +113 -0
- package/lib/utils/context.js.map +1 -0
- package/lib/utils/headers.d.ts +9 -0
- package/lib/utils/headers.js +66 -0
- package/lib/utils/headers.js.map +1 -0
- package/lib/utils/obfuscate.d.ts +2 -0
- package/lib/utils/obfuscate.js +102 -0
- package/lib/utils/obfuscate.js.map +1 -0
- package/lib/utils/versions.d.ts +1 -0
- package/lib/utils/versions.js +9 -0
- package/lib/utils/versions.js.map +1 -0
- package/lib/webhooks/index.d.ts +3 -0
- package/lib/webhooks/index.js +129 -0
- package/lib/webhooks/index.js.map +1 -0
- package/package.json +91 -12
- package/schemas/hostedcheckout/CreateHostedCheckoutRequest.json +3 -0
- package/schemas/payment/CompletePaymentRequest.json +3 -0
- package/schemas/payment/CreatePaymentRequest.json +42 -0
- package/schemas/payout/CreatePayoutRequest.json +3 -0
- package/schemas/riskassessments/RiskAssessmentCard.json +3 -0
- package/captures/get.js +0 -18
- package/disputes/cancel.js +0 -18
- package/disputes/get.js +0 -18
- package/disputes/index.js +0 -17
- package/disputes/submit.js +0 -18
- package/disputes/uploadFile.js +0 -18
- package/files/getFile.js +0 -18
- package/files/index.js +0 -11
- package/hostedcheckouts/create.js +0 -30
- package/hostedcheckouts/get.js +0 -18
- package/hostedcheckouts/index.js +0 -13
- package/hostedmandatemanagements/create.js +0 -30
- package/hostedmandatemanagements/get.js +0 -18
- package/hostedmandatemanagements/index.js +0 -13
- package/index.js +0 -107
- package/mandates/block.js +0 -18
- package/mandates/create.js +0 -30
- package/mandates/createWithMandateReference.js +0 -30
- package/mandates/get.js +0 -18
- package/mandates/index.js +0 -21
- package/mandates/revoke.js +0 -18
- package/mandates/unblock.js +0 -18
- package/payments/approve.js +0 -30
- package/payments/cancel.js +0 -18
- package/payments/cancelapproval.js +0 -18
- package/payments/capture.js +0 -30
- package/payments/captures.js +0 -18
- package/payments/complete.js +0 -30
- package/payments/create.js +0 -30
- package/payments/devicefingerprint.js +0 -18
- package/payments/dispute.js +0 -30
- package/payments/disputes.js +0 -18
- package/payments/find.js +0 -18
- package/payments/get.js +0 -18
- package/payments/index.js +0 -43
- package/payments/processchallenged.js +0 -18
- package/payments/refund.js +0 -30
- package/payments/refunds.js +0 -18
- package/payments/thirdPartyStatus.js +0 -18
- package/payments/tokenize.js +0 -30
- package/payouts/approve.js +0 -30
- package/payouts/cancel.js +0 -18
- package/payouts/cancelapproval.js +0 -18
- package/payouts/create.js +0 -30
- package/payouts/find.js +0 -18
- package/payouts/get.js +0 -18
- package/payouts/index.js +0 -21
- package/productgroups/deviceFingerprint.js +0 -30
- package/productgroups/find.js +0 -18
- package/productgroups/get.js +0 -18
- package/productgroups/index.js +0 -15
- package/products/customerDetails.js +0 -30
- package/products/deviceFingerprint.js +0 -30
- package/products/directory.js +0 -18
- package/products/find.js +0 -18
- package/products/get.js +0 -18
- package/products/index.js +0 -23
- package/products/networks.js +0 -18
- package/products/sessions.js +0 -30
- package/refunds/approve.js +0 -30
- package/refunds/cancel.js +0 -18
- package/refunds/cancelapproval.js +0 -18
- package/refunds/find.js +0 -18
- package/refunds/get.js +0 -18
- package/refunds/index.js +0 -19
- package/riskassessments/bankaccounts.js +0 -30
- package/riskassessments/cards.js +0 -30
- package/riskassessments/index.js +0 -13
- package/services/bankaccount.js +0 -30
- package/services/convertAmount.js +0 -18
- package/services/getIINdetails.js +0 -30
- package/services/index.js +0 -19
- package/services/privacypolicy.js +0 -18
- package/services/testconnection.js +0 -18
- package/sessions/create.js +0 -30
- package/tokens/approvesepadirectdebit.js +0 -30
- package/tokens/create.js +0 -30
- package/tokens/get.js +0 -18
- package/tokens/index.js +0 -19
- package/tokens/remove.js +0 -18
- package/tokens/update.js +0 -30
- package/utils/communicator.js +0 -129
- package/utils/connection.js +0 -117
- package/utils/context.js +0 -102
- package/utils/headers.js +0 -77
- package/utils/obfuscate.js +0 -101
- package/webhooks/index.js +0 -133
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ApprovePayoutRequest, CreatePayoutRequest } from "../domain/payout";
|
|
2
|
+
import { PaymentContext, SdkCallback } from "../types";
|
|
3
|
+
export interface PayoutsClient {
|
|
4
|
+
/**
|
|
5
|
+
* Resource /{merchantId}/payouts - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/payouts/create.html">Create payout</a>
|
|
6
|
+
* @param cb The callback for the response.
|
|
7
|
+
* If the call was successfull, the response body type will be {@link PayoutResponse}.
|
|
8
|
+
* If the call was not successful, the response body type will be one of {@link PayoutErrorResponse} or {@link ErrorResponse}.
|
|
9
|
+
*/
|
|
10
|
+
create(merchantId: string, postData: CreatePayoutRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
11
|
+
/**
|
|
12
|
+
* Resource /{merchantId}/payouts - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/payouts/find.html">Find payouts</a>
|
|
13
|
+
* @param cb The callback for the response.
|
|
14
|
+
* If the call was successfull, the response body type will be {@link FindPayoutsResponse}.
|
|
15
|
+
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
16
|
+
*/
|
|
17
|
+
find(merchantId: string, paymentContext: FindPayoutsParams, cb: SdkCallback): void;
|
|
18
|
+
/**
|
|
19
|
+
* Resource /{merchantId}/payouts/{payoutId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/payouts/get.html">Get payout</a>
|
|
20
|
+
* @param cb The callback for the response.
|
|
21
|
+
* If the call was successfull, the response body type will be {@link PayoutResponse}.
|
|
22
|
+
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
23
|
+
*/
|
|
24
|
+
get(merchantId: string, payoutId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
25
|
+
/**
|
|
26
|
+
* Resource /{merchantId}/payouts/{payoutId}/approve - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/payouts/approve.html">Approve payout</a>
|
|
27
|
+
* @param cb The callback for the response.
|
|
28
|
+
* If the call was successfull, the response body type will be {@link PayoutResponse}.
|
|
29
|
+
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
30
|
+
*/
|
|
31
|
+
approve(merchantId: string, payoutId: string, postData: ApprovePayoutRequest, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
32
|
+
/**
|
|
33
|
+
* Resource /{merchantId}/payouts/{payoutId}/cancel - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/payouts/cancel.html">Cancel payout</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
|
+
cancel(merchantId: string, payoutId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
39
|
+
/**
|
|
40
|
+
* Resource /{merchantId}/payouts/{payoutId}/cancelapproval - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/payouts/cancelapproval.html">Undo approve payout</a>
|
|
41
|
+
* @param cb The callback for the response.
|
|
42
|
+
* If the call was successfull, the response body type will be null.
|
|
43
|
+
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
44
|
+
*/
|
|
45
|
+
cancelapproval(merchantId: string, payoutId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
46
|
+
}
|
|
47
|
+
export interface FindPayoutsParams extends PaymentContext {
|
|
48
|
+
merchantReference?: string;
|
|
49
|
+
merchantOrderId?: number;
|
|
50
|
+
offset?: number;
|
|
51
|
+
limit?: number;
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/payouts/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
hide?: string[];
|
|
33
|
+
}
|
|
34
|
+
export interface GetProductgroupParams extends PaymentContext {
|
|
35
|
+
countryCode?: string;
|
|
36
|
+
currencyCode?: string;
|
|
37
|
+
locale?: string;
|
|
38
|
+
amount?: number;
|
|
39
|
+
isRecurring?: boolean;
|
|
40
|
+
hide?: string[];
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/productgroups/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
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
|
+
hide?: string[];
|
|
61
|
+
}
|
|
62
|
+
export interface GetProductParams extends PaymentContext {
|
|
63
|
+
countryCode?: string;
|
|
64
|
+
currencyCode?: string;
|
|
65
|
+
locale?: string;
|
|
66
|
+
amount?: number;
|
|
67
|
+
isRecurring?: boolean;
|
|
68
|
+
hide?: string[];
|
|
69
|
+
forceBasicFlow?: boolean;
|
|
70
|
+
}
|
|
71
|
+
export interface DirectoryParams extends PaymentContext {
|
|
72
|
+
countryCode?: string;
|
|
73
|
+
currencyCode?: string;
|
|
74
|
+
}
|
|
75
|
+
export interface NetworksParams extends PaymentContext {
|
|
76
|
+
countryCode?: string;
|
|
77
|
+
currencyCode?: string;
|
|
78
|
+
amount?: number;
|
|
79
|
+
isRecurring?: boolean;
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/products/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/refunds/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/riskassessments/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
* Resource /{merchantId}/services/settlementdetails/{paymentId} - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/nodejs/services/settlementdetails.html">Get Settlement details</a>
|
|
41
|
+
* @param cb The callback for the response.
|
|
42
|
+
* If the call was successfull, the response body type will be {@link SettlementDetails}.
|
|
43
|
+
* If the call was not successful, the response body type will be {@link ErrorResponse}.
|
|
44
|
+
*/
|
|
45
|
+
settlementdetails(merchantId: string, paymentId: string, paymentContext: PaymentContext | null, cb: SdkCallback): void;
|
|
46
|
+
}
|
|
47
|
+
export interface ConvertAmountParams extends PaymentContext {
|
|
48
|
+
source?: string;
|
|
49
|
+
target?: string;
|
|
50
|
+
amount?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface PrivacypolicyParams extends PaymentContext {
|
|
53
|
+
locale?: string;
|
|
54
|
+
paymentProductId?: number;
|
|
55
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/services/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/sessions/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/tokens/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import http = require("http");
|
|
3
|
+
import https = require("https");
|
|
4
|
+
import { Readable } from "stream";
|
|
5
|
+
import { ShoppingCartExtension } from "./domain/metadata";
|
|
6
|
+
export declare type CommunicatorLogger = {
|
|
7
|
+
[level in LogLevel]: (message: any) => void;
|
|
8
|
+
};
|
|
9
|
+
export declare type ConnectionCallback = (e: Error | null, res: http.IncomingMessage | null) => void;
|
|
10
|
+
export interface Context {
|
|
11
|
+
host: string;
|
|
12
|
+
scheme?: "http" | "https";
|
|
13
|
+
port?: number;
|
|
14
|
+
enableLogging?: boolean;
|
|
15
|
+
logger?: CommunicatorLogger;
|
|
16
|
+
apiKeyId: string;
|
|
17
|
+
secretApiKey: string;
|
|
18
|
+
integrator: string;
|
|
19
|
+
shoppingCartExtension?: ShoppingCartExtension;
|
|
20
|
+
httpOptions?: https.RequestOptions;
|
|
21
|
+
}
|
|
22
|
+
export interface FileMetaData {
|
|
23
|
+
contentType: string | null;
|
|
24
|
+
contentLength: string | number | null;
|
|
25
|
+
filename: string | null;
|
|
26
|
+
}
|
|
27
|
+
export interface Header {
|
|
28
|
+
key: string;
|
|
29
|
+
value: string;
|
|
30
|
+
}
|
|
31
|
+
export interface IdemPotence {
|
|
32
|
+
key: string;
|
|
33
|
+
}
|
|
34
|
+
export interface JsonRequest extends SdkRequest {
|
|
35
|
+
body?: object | null;
|
|
36
|
+
}
|
|
37
|
+
export declare type Logger = (level: LogLevel, message: any) => void;
|
|
38
|
+
export declare type LogLevel = "info" | "warn" | "error";
|
|
39
|
+
export interface MultipartFormDataObject {
|
|
40
|
+
[key: string]: string | UploadableFile | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface MultipartFormDataRequest extends SdkRequest {
|
|
43
|
+
body: MultipartFormDataObject;
|
|
44
|
+
}
|
|
45
|
+
export interface PaymentContext {
|
|
46
|
+
extraHeaders?: Header[];
|
|
47
|
+
idemPotence?: IdemPotence;
|
|
48
|
+
}
|
|
49
|
+
export declare type SdkCallback = (error: SdkResponseError | null, result: SdkResponse | null) => void;
|
|
50
|
+
export interface SdkContext {
|
|
51
|
+
setContext(context: Context): void;
|
|
52
|
+
getContext(): Context;
|
|
53
|
+
getSignature(method: string, contentType: string, date: string, gcsHeaders: Header[], path: string): string;
|
|
54
|
+
setLogger(logger: Logger): void;
|
|
55
|
+
getLogger(): Logger;
|
|
56
|
+
setEnableLogging(isLoggingEnabled: boolean): void;
|
|
57
|
+
setIdempotenceRequestTimestamp(ts?: string | number): void;
|
|
58
|
+
getIdempotenceRequestTimestamp(): string | number | undefined;
|
|
59
|
+
setIntegrator(integrator: string): void;
|
|
60
|
+
getIntegrator(): string;
|
|
61
|
+
setShoppingCartExtension(shoppingCartExtension?: ShoppingCartExtension): void;
|
|
62
|
+
getShoppingCartExtension(): ShoppingCartExtension | undefined;
|
|
63
|
+
isLoggingEnabled(): boolean;
|
|
64
|
+
}
|
|
65
|
+
export interface SdkRequest {
|
|
66
|
+
method: string;
|
|
67
|
+
modulePath: string;
|
|
68
|
+
paymentContext?: PaymentContext | null;
|
|
69
|
+
cb: SdkCallback;
|
|
70
|
+
}
|
|
71
|
+
export interface SdkResponse {
|
|
72
|
+
status: number;
|
|
73
|
+
/**
|
|
74
|
+
* The response body. One of:
|
|
75
|
+
* <ul>
|
|
76
|
+
* <li>A call-specific object for successful JSON responses</li>
|
|
77
|
+
* <li>A readable stream for sucessful file downloads</li>
|
|
78
|
+
* <li><code>null</code> for 204 responses</li>
|
|
79
|
+
* <li>A {@link PaymentErrorResponse}, {@link PayoutErrorResponse}, {@link RefundErrorResponse} or {@link ErrorResponse} if an error occurs</li>
|
|
80
|
+
* </ul>
|
|
81
|
+
*/
|
|
82
|
+
body: any;
|
|
83
|
+
isSuccess: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* For successful file downloads only, meta data about the file.
|
|
86
|
+
*/
|
|
87
|
+
file?: FileMetaData;
|
|
88
|
+
}
|
|
89
|
+
export interface SdkResponseError extends Error {
|
|
90
|
+
status?: number;
|
|
91
|
+
body?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface UploadableFile {
|
|
94
|
+
fileName: string;
|
|
95
|
+
contentType: string;
|
|
96
|
+
content: Readable | Buffer | string;
|
|
97
|
+
contentLength?: number;
|
|
98
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/model/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { WebhooksEvent } from "../domain/webhooks";
|
|
3
|
+
export declare class ApiVersionMismatchError extends Error {
|
|
4
|
+
readonly eventApiVersion: string;
|
|
5
|
+
readonly sdkApiVersion: string;
|
|
6
|
+
constructor(message: string, eventApiVersion: string, sdkApiVersion: string);
|
|
7
|
+
name: string;
|
|
8
|
+
}
|
|
9
|
+
export interface InMemorySecretKeyStore extends SecretKeyStore {
|
|
10
|
+
storeSecretKey(keyId: string, secretKey: string): void;
|
|
11
|
+
removeSecretKey(keyId: string): void;
|
|
12
|
+
clear(): void;
|
|
13
|
+
}
|
|
14
|
+
export declare type RequestHeaders = {
|
|
15
|
+
[header: string]: string | string[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare type SecretKeyCallback = (e: Error | null, secretKey: string | null) => void;
|
|
18
|
+
export declare class SecretKeyNotAvailableError extends Error {
|
|
19
|
+
readonly keyId: string;
|
|
20
|
+
constructor(message: string, keyId: string);
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
export interface SecretKeyStore {
|
|
24
|
+
getSecretKey(keyId: string, cb: SecretKeyCallback): void;
|
|
25
|
+
}
|
|
26
|
+
export declare type UnmarshalCallback = (e: Error | null, event: WebhooksEvent | null) => void;
|
|
27
|
+
export declare type ValidateCallback = (e: Error | null) => void;
|
|
28
|
+
export interface WebhooksContext {
|
|
29
|
+
getSecretKey(keyId: string, cb: SecretKeyCallback): void;
|
|
30
|
+
}
|
|
31
|
+
export interface WebhooksHelper {
|
|
32
|
+
init(context: WebhooksContext): WebhooksHelper;
|
|
33
|
+
validate(body: string | Buffer, requestHeaders: RequestHeaders, cb: ValidateCallback): void;
|
|
34
|
+
unmarshal(body: string | Buffer, requestHeaders: RequestHeaders, cb: UnmarshalCallback): void;
|
|
35
|
+
readonly inMemorySecretKeyStore: InMemorySecretKeyStore;
|
|
36
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecretKeyNotAvailableError = exports.ApiVersionMismatchError = void 0;
|
|
4
|
+
class ApiVersionMismatchError extends Error {
|
|
5
|
+
constructor(message, eventApiVersion, sdkApiVersion) {
|
|
6
|
+
super(message);
|
|
7
|
+
this.eventApiVersion = eventApiVersion;
|
|
8
|
+
this.sdkApiVersion = sdkApiVersion;
|
|
9
|
+
this.name = "ApiVersionMismatchError";
|
|
10
|
+
// see https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
11
|
+
Object.setPrototypeOf(this, ApiVersionMismatchError.prototype);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.ApiVersionMismatchError = ApiVersionMismatchError;
|
|
15
|
+
class SecretKeyNotAvailableError extends Error {
|
|
16
|
+
constructor(message, keyId) {
|
|
17
|
+
super(message);
|
|
18
|
+
this.keyId = keyId;
|
|
19
|
+
this.name = "SecretKeyNotAvailableError";
|
|
20
|
+
// see https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
|
|
21
|
+
Object.setPrototypeOf(this, SecretKeyNotAvailableError.prototype);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.SecretKeyNotAvailableError = SecretKeyNotAvailableError;
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/model/webhooks/index.ts"],"names":[],"mappings":";;;AAEA,MAAa,uBAAwB,SAAQ,KAAK;IAChD,YAAmB,OAAe,EAAkB,eAAuB,EAAkB,aAAqB;QAChH,KAAK,CAAC,OAAO,CAAC,CAAC;QADmC,oBAAe,GAAf,eAAe,CAAQ;QAAkB,kBAAa,GAAb,aAAa,CAAQ;QAKlH,SAAI,GAAG,yBAAyB,CAAC;QAH/B,mJAAmJ;QACnJ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAC;IACjE,CAAC;CAEF;AAPD,0DAOC;AAYD,MAAa,0BAA2B,SAAQ,KAAK;IACnD,YAAmB,OAAe,EAAkB,KAAa;QAC/D,KAAK,CAAC,OAAO,CAAC,CAAC;QADmC,UAAK,GAAL,KAAK,CAAQ;QAKjE,SAAI,GAAG,4BAA4B,CAAC;QAHlC,mJAAmJ;QACnJ,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACpE,CAAC;CAEF;AAPD,gEAOC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
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;
|