@unchainedshop/plugins 4.3.4 → 4.4.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 +137 -0
- package/lib/delivery/post.d.ts +0 -1
- package/lib/delivery/post.js +0 -1
- package/lib/delivery/send-message.d.ts +0 -1
- package/lib/delivery/send-message.js +0 -1
- package/lib/delivery/stores.d.ts +0 -1
- package/lib/delivery/stores.js +0 -1
- package/lib/enrollments/licensed.d.ts +0 -1
- package/lib/enrollments/licensed.js +0 -1
- package/lib/events/aws-eventbridge.d.ts +0 -1
- package/lib/events/aws-eventbridge.js +0 -3
- package/lib/events/node-event-emitter.d.ts +0 -1
- package/lib/events/node-event-emitter.js +0 -1
- package/lib/events/redis.d.ts +0 -1
- package/lib/events/redis.js +0 -1
- package/lib/files/gridfs/adapter.d.ts +3 -4
- package/lib/files/gridfs/adapter.js +6 -6
- package/lib/files/gridfs/handler-express.d.ts +2 -3
- package/lib/files/gridfs/handler-express.js +6 -9
- package/lib/files/gridfs/handler-fastify.d.ts +1 -2
- package/lib/files/gridfs/handler-fastify.js +6 -9
- package/lib/files/gridfs/index.d.ts +2 -3
- package/lib/files/gridfs/index.js +2 -3
- package/lib/files/gridfs/module.d.ts +0 -1
- package/lib/files/gridfs/module.js +7 -2
- package/lib/files/gridfs/sign.d.ts +0 -1
- package/lib/files/gridfs/sign.js +0 -1
- package/lib/files/minio/handler-express.d.ts +0 -1
- package/lib/files/minio/handler-express.js +0 -1
- package/lib/files/minio/handler-fastify.d.ts +1 -2
- package/lib/files/minio/handler-fastify.js +2 -1
- package/lib/files/minio/index.d.ts +1 -2
- package/lib/files/minio/index.js +1 -5
- package/lib/filters/local-search.d.ts +1 -2
- package/lib/filters/local-search.js +3 -6
- package/lib/filters/strict-equal.d.ts +0 -1
- package/lib/filters/strict-equal.js +0 -1
- package/lib/payment/apple-iap/adapter.d.ts +0 -1
- package/lib/payment/apple-iap/adapter.js +3 -5
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.d.ts +1 -2
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.js +2 -1
- package/lib/payment/apple-iap/fix-periods.d.ts +1 -2
- package/lib/payment/apple-iap/fix-periods.js +1 -1
- package/lib/payment/apple-iap/handler-express.d.ts +0 -1
- package/lib/payment/apple-iap/handler-express.js +2 -5
- package/lib/payment/apple-iap/handler-fastify.d.ts +1 -2
- package/lib/payment/apple-iap/handler-fastify.js +4 -5
- package/lib/payment/apple-iap/index.d.ts +2 -3
- package/lib/payment/apple-iap/index.js +2 -3
- package/lib/payment/apple-iap/module.d.ts +1 -2
- package/lib/payment/apple-iap/module.js +1 -2
- package/lib/payment/apple-iap/verify-receipt.d.ts +0 -1
- package/lib/payment/apple-iap/verify-receipt.js +0 -4
- package/lib/payment/braintree.d.ts +0 -1
- package/lib/payment/braintree.js +0 -5
- package/lib/payment/cryptopay/db/CryptopayTransactions.d.ts +1 -2
- package/lib/payment/cryptopay/db/CryptopayTransactions.js +2 -1
- package/lib/payment/cryptopay/denote-amount.d.ts +0 -24
- package/lib/payment/cryptopay/denote-amount.js +2 -26
- package/lib/payment/cryptopay/derive-btc-address.d.ts +0 -1
- package/lib/payment/cryptopay/derive-btc-address.js +4 -14
- package/lib/payment/cryptopay/derive-eth-address.d.ts +0 -1
- package/lib/payment/cryptopay/derive-eth-address.js +1 -3
- package/lib/payment/cryptopay/handle-webhook.d.ts +2 -3
- package/lib/payment/cryptopay/handle-webhook.js +3 -3
- package/lib/payment/cryptopay/handler-express.d.ts +0 -1
- package/lib/payment/cryptopay/handler-express.js +1 -2
- package/lib/payment/cryptopay/handler-fastify.d.ts +1 -2
- package/lib/payment/cryptopay/handler-fastify.js +2 -2
- package/lib/payment/cryptopay/index.d.ts +2 -3
- package/lib/payment/cryptopay/index.js +2 -3
- package/lib/payment/cryptopay/module.d.ts +1 -2
- package/lib/payment/cryptopay/module.js +2 -3
- package/lib/payment/cryptopay/plugin.d.ts +1 -2
- package/lib/payment/cryptopay/plugin.js +8 -37
- package/lib/payment/datatrans-v2/api/authorize.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/authorize.js +0 -2
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.js +0 -1
- package/lib/payment/datatrans-v2/api/cancel.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/cancel.js +0 -1
- package/lib/payment/datatrans-v2/api/index.d.ts +8 -9
- package/lib/payment/datatrans-v2/api/index.js +9 -10
- package/lib/payment/datatrans-v2/api/init.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/init.js +2 -4
- package/lib/payment/datatrans-v2/api/makeFetcher.d.ts +0 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.js +0 -3
- package/lib/payment/datatrans-v2/api/secureFields.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/secureFields.js +1 -3
- package/lib/payment/datatrans-v2/api/settle.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/settle.js +0 -1
- package/lib/payment/datatrans-v2/api/status.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/status.js +0 -1
- package/lib/payment/datatrans-v2/api/types.d.ts +0 -1
- package/lib/payment/datatrans-v2/api/types.js +0 -1
- package/lib/payment/datatrans-v2/api/validate.d.ts +1 -2
- package/lib/payment/datatrans-v2/api/validate.js +0 -1
- package/lib/payment/datatrans-v2/generateSignature.d.ts +0 -1
- package/lib/payment/datatrans-v2/generateSignature.js +0 -2
- package/lib/payment/datatrans-v2/getPaths.d.ts +0 -1
- package/lib/payment/datatrans-v2/getPaths.js +0 -1
- package/lib/payment/datatrans-v2/handler-express.d.ts +0 -1
- package/lib/payment/datatrans-v2/handler-express.js +1 -2
- package/lib/payment/datatrans-v2/handler-fastify.d.ts +1 -2
- package/lib/payment/datatrans-v2/handler-fastify.js +1 -2
- package/lib/payment/datatrans-v2/index.d.ts +0 -1
- package/lib/payment/datatrans-v2/index.js +3 -14
- package/lib/payment/datatrans-v2/parseRegistrationData.d.ts +4 -5
- package/lib/payment/datatrans-v2/parseRegistrationData.js +1 -2
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.d.ts +1 -2
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.js +0 -1
- package/lib/payment/datatrans-v2/splitProperties.d.ts +0 -1
- package/lib/payment/datatrans-v2/splitProperties.js +0 -2
- package/lib/payment/invoice-prepaid.d.ts +0 -1
- package/lib/payment/invoice-prepaid.js +0 -1
- package/lib/payment/invoice.d.ts +0 -1
- package/lib/payment/invoice.js +0 -1
- package/lib/payment/paypal-checkout.d.ts +0 -1
- package/lib/payment/paypal-checkout.js +0 -11
- package/lib/payment/payrexx/api/index.d.ts +15 -15
- package/lib/payment/payrexx/api/index.js +15 -27
- package/lib/payment/payrexx/api/makeFetcher.d.ts +0 -1
- package/lib/payment/payrexx/api/makeFetcher.js +0 -1
- package/lib/payment/payrexx/handler-express.d.ts +0 -1
- package/lib/payment/payrexx/handler-express.js +0 -4
- package/lib/payment/payrexx/handler-fastify.d.ts +1 -2
- package/lib/payment/payrexx/handler-fastify.js +0 -4
- package/lib/payment/payrexx/index.d.ts +0 -1
- package/lib/payment/payrexx/index.js +9 -35
- package/lib/payment/payrexx/payrexx.d.ts +0 -1
- package/lib/payment/payrexx/payrexx.js +0 -1
- package/lib/payment/postfinance-checkout/api-client.d.ts +0 -1
- package/lib/payment/postfinance-checkout/api-client.js +0 -6
- package/lib/payment/postfinance-checkout/api-types.d.ts +49 -44
- package/lib/payment/postfinance-checkout/api-types.js +43 -51
- package/lib/payment/postfinance-checkout/api.d.ts +1 -2
- package/lib/payment/postfinance-checkout/api.js +2 -3
- package/lib/payment/postfinance-checkout/handler-express.d.ts +0 -1
- package/lib/payment/postfinance-checkout/handler-express.js +1 -2
- package/lib/payment/postfinance-checkout/handler-fastify.d.ts +1 -2
- package/lib/payment/postfinance-checkout/handler-fastify.js +1 -2
- package/lib/payment/postfinance-checkout/index.d.ts +2 -3
- package/lib/payment/postfinance-checkout/index.js +7 -10
- package/lib/payment/postfinance-checkout/types.d.ts +11 -10
- package/lib/payment/postfinance-checkout/types.js +9 -12
- package/lib/payment/postfinance-checkout/utils.d.ts +2 -3
- package/lib/payment/postfinance-checkout/utils.js +1 -2
- package/lib/payment/saferpay/adapter.d.ts +1 -2
- package/lib/payment/saferpay/adapter.js +2 -5
- package/lib/payment/saferpay/api/api/SaferpayClient.d.ts +6 -7
- package/lib/payment/saferpay/api/api/SaferpayClient.js +2 -2
- package/lib/payment/saferpay/api/api/SaferpayConnection.d.ts +0 -1
- package/lib/payment/saferpay/api/api/SaferpayConnection.js +0 -1
- package/lib/payment/saferpay/api/index.d.ts +4 -5
- package/lib/payment/saferpay/api/index.js +1 -2
- package/lib/payment/saferpay/api/models/PaymentMethods.d.ts +0 -1
- package/lib/payment/saferpay/api/models/PaymentMethods.js +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageAssert.d.ts +4 -5
- package/lib/payment/saferpay/api/models/PaymentPageAssert.js +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.d.ts +4 -5
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.js +0 -1
- package/lib/payment/saferpay/api/models/Request.d.ts +0 -1
- package/lib/payment/saferpay/api/models/Request.js +0 -1
- package/lib/payment/saferpay/api/models/Response.d.ts +0 -1
- package/lib/payment/saferpay/api/models/Response.js +0 -1
- package/lib/payment/saferpay/api/models/Transaction.d.ts +0 -1
- package/lib/payment/saferpay/api/models/Transaction.js +0 -1
- package/lib/payment/saferpay/api/models/TransactionCancel.d.ts +2 -3
- package/lib/payment/saferpay/api/models/TransactionCancel.js +0 -1
- package/lib/payment/saferpay/api/models/TransactionCapture.d.ts +3 -4
- package/lib/payment/saferpay/api/models/TransactionCapture.js +0 -1
- package/lib/payment/saferpay/buildSignature.d.ts +0 -1
- package/lib/payment/saferpay/buildSignature.js +0 -1
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.d.ts +1 -2
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.js +1 -1
- package/lib/payment/saferpay/getReturnPath.d.ts +0 -1
- package/lib/payment/saferpay/getReturnPath.js +0 -1
- package/lib/payment/saferpay/handler-express.d.ts +0 -1
- package/lib/payment/saferpay/handler-express.js +1 -2
- package/lib/payment/saferpay/handler-fastify.d.ts +1 -2
- package/lib/payment/saferpay/handler-fastify.js +1 -2
- package/lib/payment/saferpay/index.d.ts +2 -3
- package/lib/payment/saferpay/index.js +2 -3
- package/lib/payment/saferpay/module.d.ts +2 -3
- package/lib/payment/saferpay/module.js +2 -2
- package/lib/payment/stripe/handler-express.d.ts +0 -1
- package/lib/payment/stripe/handler-express.js +1 -2
- package/lib/payment/stripe/handler-fastify.d.ts +1 -2
- package/lib/payment/stripe/handler-fastify.js +1 -2
- package/lib/payment/stripe/index.d.ts +0 -1
- package/lib/payment/stripe/index.js +1 -4
- package/lib/payment/stripe/stripe.d.ts +1 -2
- package/lib/payment/stripe/stripe.js +1 -2
- package/lib/presets/all-express.d.ts +1 -2
- package/lib/presets/all-express.js +9 -10
- package/lib/presets/all-fastify.d.ts +2 -3
- package/lib/presets/all-fastify.js +9 -10
- package/lib/presets/all.d.ts +23 -24
- package/lib/presets/all.js +20 -25
- package/lib/presets/base-express.d.ts +0 -1
- package/lib/presets/base-express.js +1 -2
- package/lib/presets/base-fastify.d.ts +1 -2
- package/lib/presets/base-fastify.js +1 -3
- package/lib/presets/base.d.ts +23 -24
- package/lib/presets/base.js +23 -33
- package/lib/presets/countries/ch.d.ts +2 -3
- package/lib/presets/countries/ch.js +2 -3
- package/lib/presets/crypto-express.d.ts +1 -2
- package/lib/presets/crypto-express.js +2 -3
- package/lib/presets/crypto-fastify.d.ts +1 -2
- package/lib/presets/crypto-fastify.js +2 -3
- package/lib/presets/crypto.d.ts +6 -7
- package/lib/presets/crypto.js +6 -8
- package/lib/pricing/delivery-swiss-tax.d.ts +1 -2
- package/lib/pricing/delivery-swiss-tax.js +2 -3
- package/lib/pricing/discount-100-off.d.ts +1 -2
- package/lib/pricing/discount-100-off.js +0 -4
- package/lib/pricing/discount-half-price-manual.d.ts +1 -2
- package/lib/pricing/discount-half-price-manual.js +0 -4
- package/lib/pricing/discount-half-price.d.ts +1 -2
- package/lib/pricing/discount-half-price.js +0 -4
- package/lib/pricing/free-delivery.d.ts +1 -2
- package/lib/pricing/free-delivery.js +0 -1
- package/lib/pricing/free-payment.d.ts +1 -2
- package/lib/pricing/free-payment.js +0 -1
- package/lib/pricing/order-delivery.d.ts +1 -2
- package/lib/pricing/order-delivery.js +0 -2
- package/lib/pricing/order-discount.d.ts +1 -2
- package/lib/pricing/order-discount.js +0 -4
- package/lib/pricing/order-items-discount.d.ts +0 -1
- package/lib/pricing/order-items-discount.js +0 -5
- package/lib/pricing/order-items.d.ts +0 -1
- package/lib/pricing/order-items.js +0 -2
- package/lib/pricing/order-payment.d.ts +0 -1
- package/lib/pricing/order-payment.js +0 -2
- package/lib/pricing/order-round.d.ts +1 -2
- package/lib/pricing/order-round.js +0 -6
- package/lib/pricing/product-catalog-price-options.d.ts +0 -1
- package/lib/pricing/product-catalog-price-options.js +0 -1
- package/lib/pricing/product-catalog-price.d.ts +1 -2
- package/lib/pricing/product-catalog-price.js +2 -3
- package/lib/pricing/product-discount.d.ts +0 -1
- package/lib/pricing/product-discount.js +0 -1
- package/lib/pricing/product-price-rateconversion.d.ts +1 -2
- package/lib/pricing/product-price-rateconversion.js +0 -4
- package/lib/pricing/product-round.d.ts +1 -2
- package/lib/pricing/product-round.js +0 -1
- package/lib/pricing/product-swiss-tax.d.ts +1 -2
- package/lib/pricing/product-swiss-tax.js +2 -5
- package/lib/pricing/tax/ch.d.ts +2 -3
- package/lib/pricing/tax/ch.js +0 -1
- package/lib/pricing/utils/isDeliveryAddressInCountry.d.ts +1 -2
- package/lib/pricing/utils/isDeliveryAddressInCountry.js +0 -1
- package/lib/quotations/manual.d.ts +0 -1
- package/lib/quotations/manual.js +0 -1
- package/lib/warehousing/eth-minter.d.ts +0 -1
- package/lib/warehousing/eth-minter.js +2 -11
- package/lib/warehousing/store.d.ts +0 -1
- package/lib/warehousing/store.js +0 -1
- package/lib/worker/budgetsms.d.ts +0 -1
- package/lib/worker/budgetsms.js +4 -52
- package/lib/worker/bulk-import.d.ts +1 -2
- package/lib/worker/bulk-import.js +1 -3
- package/lib/worker/bulkgate.d.ts +0 -1
- package/lib/worker/bulkgate.js +7 -20
- package/lib/worker/email.d.ts +0 -1
- package/lib/worker/email.js +0 -3
- package/lib/worker/enrollment-order-generator.d.ts +0 -1
- package/lib/worker/enrollment-order-generator.js +1 -2
- package/lib/worker/error-notifications.d.ts +1 -2
- package/lib/worker/error-notifications.js +0 -1
- package/lib/worker/export-token.d.ts +1 -2
- package/lib/worker/export-token.js +1 -2
- package/lib/worker/external.d.ts +1 -2
- package/lib/worker/external.js +0 -1
- package/lib/worker/heartbeat.d.ts +0 -1
- package/lib/worker/heartbeat.js +0 -1
- package/lib/worker/http-request.d.ts +1 -2
- package/lib/worker/http-request.js +0 -3
- package/lib/worker/message.d.ts +2 -3
- package/lib/worker/message.js +2 -3
- package/lib/worker/push-notification.d.ts +0 -1
- package/lib/worker/push-notification.js +0 -1
- package/lib/worker/twilio.d.ts +0 -1
- package/lib/worker/twilio.js +1 -2
- package/lib/worker/update-coinbase-rates.d.ts +0 -1
- package/lib/worker/update-coinbase-rates.js +1 -3
- package/lib/worker/update-ecb-rates.d.ts +0 -1
- package/lib/worker/update-ecb-rates.js +0 -3
- package/lib/worker/update-token-ownership.d.ts +1 -2
- package/lib/worker/update-token-ownership.js +0 -1
- package/lib/worker/zombie-killer.d.ts +1 -2
- package/lib/worker/zombie-killer.js +0 -7
- package/package.json +20 -19
- package/lib/delivery/post.d.ts.map +0 -1
- package/lib/delivery/post.js.map +0 -1
- package/lib/delivery/send-message.d.ts.map +0 -1
- package/lib/delivery/send-message.js.map +0 -1
- package/lib/delivery/stores.d.ts.map +0 -1
- package/lib/delivery/stores.js.map +0 -1
- package/lib/enrollments/licensed.d.ts.map +0 -1
- package/lib/enrollments/licensed.js.map +0 -1
- package/lib/events/aws-eventbridge.d.ts.map +0 -1
- package/lib/events/aws-eventbridge.js.map +0 -1
- package/lib/events/node-event-emitter.d.ts.map +0 -1
- package/lib/events/node-event-emitter.js.map +0 -1
- package/lib/events/redis.d.ts.map +0 -1
- package/lib/events/redis.js.map +0 -1
- package/lib/files/gridfs/adapter.d.ts.map +0 -1
- package/lib/files/gridfs/adapter.js.map +0 -1
- package/lib/files/gridfs/handler-express.d.ts.map +0 -1
- package/lib/files/gridfs/handler-express.js.map +0 -1
- package/lib/files/gridfs/handler-fastify.d.ts.map +0 -1
- package/lib/files/gridfs/handler-fastify.js.map +0 -1
- package/lib/files/gridfs/index.d.ts.map +0 -1
- package/lib/files/gridfs/index.js.map +0 -1
- package/lib/files/gridfs/module.d.ts.map +0 -1
- package/lib/files/gridfs/module.js.map +0 -1
- package/lib/files/gridfs/sign.d.ts.map +0 -1
- package/lib/files/gridfs/sign.js.map +0 -1
- package/lib/files/minio/handler-express.d.ts.map +0 -1
- package/lib/files/minio/handler-express.js.map +0 -1
- package/lib/files/minio/handler-fastify.d.ts.map +0 -1
- package/lib/files/minio/handler-fastify.js.map +0 -1
- package/lib/files/minio/index.d.ts.map +0 -1
- package/lib/files/minio/index.js.map +0 -1
- package/lib/filters/local-search.d.ts.map +0 -1
- package/lib/filters/local-search.js.map +0 -1
- package/lib/filters/strict-equal.d.ts.map +0 -1
- package/lib/filters/strict-equal.js.map +0 -1
- package/lib/payment/apple-iap/adapter.d.ts.map +0 -1
- package/lib/payment/apple-iap/adapter.js.map +0 -1
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.d.ts.map +0 -1
- package/lib/payment/apple-iap/db/AppleTransactionsCollection.js.map +0 -1
- package/lib/payment/apple-iap/fix-periods.d.ts.map +0 -1
- package/lib/payment/apple-iap/fix-periods.js.map +0 -1
- package/lib/payment/apple-iap/handler-express.d.ts.map +0 -1
- package/lib/payment/apple-iap/handler-express.js.map +0 -1
- package/lib/payment/apple-iap/handler-fastify.d.ts.map +0 -1
- package/lib/payment/apple-iap/handler-fastify.js.map +0 -1
- package/lib/payment/apple-iap/index.d.ts.map +0 -1
- package/lib/payment/apple-iap/index.js.map +0 -1
- package/lib/payment/apple-iap/module.d.ts.map +0 -1
- package/lib/payment/apple-iap/module.js.map +0 -1
- package/lib/payment/apple-iap/verify-receipt.d.ts.map +0 -1
- package/lib/payment/apple-iap/verify-receipt.js.map +0 -1
- package/lib/payment/braintree.d.ts.map +0 -1
- package/lib/payment/braintree.js.map +0 -1
- package/lib/payment/cryptopay/db/CryptopayTransactions.d.ts.map +0 -1
- package/lib/payment/cryptopay/db/CryptopayTransactions.js.map +0 -1
- package/lib/payment/cryptopay/denote-amount.d.ts.map +0 -1
- package/lib/payment/cryptopay/denote-amount.js.map +0 -1
- package/lib/payment/cryptopay/derive-btc-address.d.ts.map +0 -1
- package/lib/payment/cryptopay/derive-btc-address.js.map +0 -1
- package/lib/payment/cryptopay/derive-eth-address.d.ts.map +0 -1
- package/lib/payment/cryptopay/derive-eth-address.js.map +0 -1
- package/lib/payment/cryptopay/handle-webhook.d.ts.map +0 -1
- package/lib/payment/cryptopay/handle-webhook.js.map +0 -1
- package/lib/payment/cryptopay/handler-express.d.ts.map +0 -1
- package/lib/payment/cryptopay/handler-express.js.map +0 -1
- package/lib/payment/cryptopay/handler-fastify.d.ts.map +0 -1
- package/lib/payment/cryptopay/handler-fastify.js.map +0 -1
- package/lib/payment/cryptopay/index.d.ts.map +0 -1
- package/lib/payment/cryptopay/index.js.map +0 -1
- package/lib/payment/cryptopay/module.d.ts.map +0 -1
- package/lib/payment/cryptopay/module.js.map +0 -1
- package/lib/payment/cryptopay/plugin.d.ts.map +0 -1
- package/lib/payment/cryptopay/plugin.js.map +0 -1
- package/lib/payment/datatrans-v2/api/authorize.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/authorize.js.map +0 -1
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/authorizeAuthenticated.js.map +0 -1
- package/lib/payment/datatrans-v2/api/cancel.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/cancel.js.map +0 -1
- package/lib/payment/datatrans-v2/api/index.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/index.js.map +0 -1
- package/lib/payment/datatrans-v2/api/init.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/init.js.map +0 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/makeFetcher.js.map +0 -1
- package/lib/payment/datatrans-v2/api/secureFields.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/secureFields.js.map +0 -1
- package/lib/payment/datatrans-v2/api/settle.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/settle.js.map +0 -1
- package/lib/payment/datatrans-v2/api/status.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/status.js.map +0 -1
- package/lib/payment/datatrans-v2/api/types.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/types.js.map +0 -1
- package/lib/payment/datatrans-v2/api/validate.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/api/validate.js.map +0 -1
- package/lib/payment/datatrans-v2/generateSignature.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/generateSignature.js.map +0 -1
- package/lib/payment/datatrans-v2/getPaths.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/getPaths.js.map +0 -1
- package/lib/payment/datatrans-v2/handler-express.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/handler-express.js.map +0 -1
- package/lib/payment/datatrans-v2/handler-fastify.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/handler-fastify.js.map +0 -1
- package/lib/payment/datatrans-v2/index.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/index.js.map +0 -1
- package/lib/payment/datatrans-v2/parseRegistrationData.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/parseRegistrationData.js.map +0 -1
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/roundedAmountFromOrder.js.map +0 -1
- package/lib/payment/datatrans-v2/splitProperties.d.ts.map +0 -1
- package/lib/payment/datatrans-v2/splitProperties.js.map +0 -1
- package/lib/payment/invoice-prepaid.d.ts.map +0 -1
- package/lib/payment/invoice-prepaid.js.map +0 -1
- package/lib/payment/invoice.d.ts.map +0 -1
- package/lib/payment/invoice.js.map +0 -1
- package/lib/payment/paypal-checkout.d.ts.map +0 -1
- package/lib/payment/paypal-checkout.js.map +0 -1
- package/lib/payment/payrexx/api/index.d.ts.map +0 -1
- package/lib/payment/payrexx/api/index.js.map +0 -1
- package/lib/payment/payrexx/api/makeFetcher.d.ts.map +0 -1
- package/lib/payment/payrexx/api/makeFetcher.js.map +0 -1
- package/lib/payment/payrexx/handler-express.d.ts.map +0 -1
- package/lib/payment/payrexx/handler-express.js.map +0 -1
- package/lib/payment/payrexx/handler-fastify.d.ts.map +0 -1
- package/lib/payment/payrexx/handler-fastify.js.map +0 -1
- package/lib/payment/payrexx/index.d.ts.map +0 -1
- package/lib/payment/payrexx/index.js.map +0 -1
- package/lib/payment/payrexx/payrexx.d.ts.map +0 -1
- package/lib/payment/payrexx/payrexx.js.map +0 -1
- package/lib/payment/postfinance-checkout/api-client.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/api-client.js.map +0 -1
- package/lib/payment/postfinance-checkout/api-types.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/api-types.js.map +0 -1
- package/lib/payment/postfinance-checkout/api.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/api.js.map +0 -1
- package/lib/payment/postfinance-checkout/handler-express.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/handler-express.js.map +0 -1
- package/lib/payment/postfinance-checkout/handler-fastify.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/handler-fastify.js.map +0 -1
- package/lib/payment/postfinance-checkout/index.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/index.js.map +0 -1
- package/lib/payment/postfinance-checkout/types.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/types.js.map +0 -1
- package/lib/payment/postfinance-checkout/utils.d.ts.map +0 -1
- package/lib/payment/postfinance-checkout/utils.js.map +0 -1
- package/lib/payment/saferpay/adapter.d.ts.map +0 -1
- package/lib/payment/saferpay/adapter.js.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayClient.d.ts.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayClient.js.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayConnection.d.ts.map +0 -1
- package/lib/payment/saferpay/api/api/SaferpayConnection.js.map +0 -1
- package/lib/payment/saferpay/api/index.d.ts.map +0 -1
- package/lib/payment/saferpay/api/index.js.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentMethods.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentMethods.js.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageAssert.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageAssert.js.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/PaymentPageInitialize.js.map +0 -1
- package/lib/payment/saferpay/api/models/Request.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/Request.js.map +0 -1
- package/lib/payment/saferpay/api/models/Response.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/Response.js.map +0 -1
- package/lib/payment/saferpay/api/models/Transaction.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/Transaction.js.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCancel.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCancel.js.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCapture.d.ts.map +0 -1
- package/lib/payment/saferpay/api/models/TransactionCapture.js.map +0 -1
- package/lib/payment/saferpay/buildSignature.d.ts.map +0 -1
- package/lib/payment/saferpay/buildSignature.js.map +0 -1
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.d.ts.map +0 -1
- package/lib/payment/saferpay/db/SaferpayTransactionsCollection.js.map +0 -1
- package/lib/payment/saferpay/getReturnPath.d.ts.map +0 -1
- package/lib/payment/saferpay/getReturnPath.js.map +0 -1
- package/lib/payment/saferpay/handler-express.d.ts.map +0 -1
- package/lib/payment/saferpay/handler-express.js.map +0 -1
- package/lib/payment/saferpay/handler-fastify.d.ts.map +0 -1
- package/lib/payment/saferpay/handler-fastify.js.map +0 -1
- package/lib/payment/saferpay/index.d.ts.map +0 -1
- package/lib/payment/saferpay/index.js.map +0 -1
- package/lib/payment/saferpay/module.d.ts.map +0 -1
- package/lib/payment/saferpay/module.js.map +0 -1
- package/lib/payment/stripe/handler-express.d.ts.map +0 -1
- package/lib/payment/stripe/handler-express.js.map +0 -1
- package/lib/payment/stripe/handler-fastify.d.ts.map +0 -1
- package/lib/payment/stripe/handler-fastify.js.map +0 -1
- package/lib/payment/stripe/index.d.ts.map +0 -1
- package/lib/payment/stripe/index.js.map +0 -1
- package/lib/payment/stripe/stripe.d.ts.map +0 -1
- package/lib/payment/stripe/stripe.js.map +0 -1
- package/lib/presets/all-express.d.ts.map +0 -1
- package/lib/presets/all-express.js.map +0 -1
- package/lib/presets/all-fastify.d.ts.map +0 -1
- package/lib/presets/all-fastify.js.map +0 -1
- package/lib/presets/all.d.ts.map +0 -1
- package/lib/presets/all.js.map +0 -1
- package/lib/presets/base-express.d.ts.map +0 -1
- package/lib/presets/base-express.js.map +0 -1
- package/lib/presets/base-fastify.d.ts.map +0 -1
- package/lib/presets/base-fastify.js.map +0 -1
- package/lib/presets/base.d.ts.map +0 -1
- package/lib/presets/base.js.map +0 -1
- package/lib/presets/countries/ch.d.ts.map +0 -1
- package/lib/presets/countries/ch.js.map +0 -1
- package/lib/presets/crypto-express.d.ts.map +0 -1
- package/lib/presets/crypto-express.js.map +0 -1
- package/lib/presets/crypto-fastify.d.ts.map +0 -1
- package/lib/presets/crypto-fastify.js.map +0 -1
- package/lib/presets/crypto.d.ts.map +0 -1
- package/lib/presets/crypto.js.map +0 -1
- package/lib/pricing/delivery-swiss-tax.d.ts.map +0 -1
- package/lib/pricing/delivery-swiss-tax.js.map +0 -1
- package/lib/pricing/discount-100-off.d.ts.map +0 -1
- package/lib/pricing/discount-100-off.js.map +0 -1
- package/lib/pricing/discount-half-price-manual.d.ts.map +0 -1
- package/lib/pricing/discount-half-price-manual.js.map +0 -1
- package/lib/pricing/discount-half-price.d.ts.map +0 -1
- package/lib/pricing/discount-half-price.js.map +0 -1
- package/lib/pricing/free-delivery.d.ts.map +0 -1
- package/lib/pricing/free-delivery.js.map +0 -1
- package/lib/pricing/free-payment.d.ts.map +0 -1
- package/lib/pricing/free-payment.js.map +0 -1
- package/lib/pricing/order-delivery.d.ts.map +0 -1
- package/lib/pricing/order-delivery.js.map +0 -1
- package/lib/pricing/order-discount.d.ts.map +0 -1
- package/lib/pricing/order-discount.js.map +0 -1
- package/lib/pricing/order-items-discount.d.ts.map +0 -1
- package/lib/pricing/order-items-discount.js.map +0 -1
- package/lib/pricing/order-items.d.ts.map +0 -1
- package/lib/pricing/order-items.js.map +0 -1
- package/lib/pricing/order-payment.d.ts.map +0 -1
- package/lib/pricing/order-payment.js.map +0 -1
- package/lib/pricing/order-round.d.ts.map +0 -1
- package/lib/pricing/order-round.js.map +0 -1
- package/lib/pricing/product-catalog-price-options.d.ts.map +0 -1
- package/lib/pricing/product-catalog-price-options.js.map +0 -1
- package/lib/pricing/product-catalog-price.d.ts.map +0 -1
- package/lib/pricing/product-catalog-price.js.map +0 -1
- package/lib/pricing/product-discount.d.ts.map +0 -1
- package/lib/pricing/product-discount.js.map +0 -1
- package/lib/pricing/product-price-rateconversion.d.ts.map +0 -1
- package/lib/pricing/product-price-rateconversion.js.map +0 -1
- package/lib/pricing/product-round.d.ts.map +0 -1
- package/lib/pricing/product-round.js.map +0 -1
- package/lib/pricing/product-swiss-tax.d.ts.map +0 -1
- package/lib/pricing/product-swiss-tax.js.map +0 -1
- package/lib/pricing/tax/ch.d.ts.map +0 -1
- package/lib/pricing/tax/ch.js.map +0 -1
- package/lib/pricing/utils/isDeliveryAddressInCountry.d.ts.map +0 -1
- package/lib/pricing/utils/isDeliveryAddressInCountry.js.map +0 -1
- package/lib/quotations/manual.d.ts.map +0 -1
- package/lib/quotations/manual.js.map +0 -1
- package/lib/warehousing/eth-minter.d.ts.map +0 -1
- package/lib/warehousing/eth-minter.js.map +0 -1
- package/lib/warehousing/store.d.ts.map +0 -1
- package/lib/warehousing/store.js.map +0 -1
- package/lib/worker/budgetsms.d.ts.map +0 -1
- package/lib/worker/budgetsms.js.map +0 -1
- package/lib/worker/bulk-import.d.ts.map +0 -1
- package/lib/worker/bulk-import.js.map +0 -1
- package/lib/worker/bulkgate.d.ts.map +0 -1
- package/lib/worker/bulkgate.js.map +0 -1
- package/lib/worker/email.d.ts.map +0 -1
- package/lib/worker/email.js.map +0 -1
- package/lib/worker/enrollment-order-generator.d.ts.map +0 -1
- package/lib/worker/enrollment-order-generator.js.map +0 -1
- package/lib/worker/error-notifications.d.ts.map +0 -1
- package/lib/worker/error-notifications.js.map +0 -1
- package/lib/worker/export-token.d.ts.map +0 -1
- package/lib/worker/export-token.js.map +0 -1
- package/lib/worker/external.d.ts.map +0 -1
- package/lib/worker/external.js.map +0 -1
- package/lib/worker/heartbeat.d.ts.map +0 -1
- package/lib/worker/heartbeat.js.map +0 -1
- package/lib/worker/http-request.d.ts.map +0 -1
- package/lib/worker/http-request.js.map +0 -1
- package/lib/worker/message.d.ts.map +0 -1
- package/lib/worker/message.js.map +0 -1
- package/lib/worker/push-notification.d.ts.map +0 -1
- package/lib/worker/push-notification.js.map +0 -1
- package/lib/worker/twilio.d.ts.map +0 -1
- package/lib/worker/twilio.js.map +0 -1
- package/lib/worker/update-coinbase-rates.d.ts.map +0 -1
- package/lib/worker/update-coinbase-rates.js.map +0 -1
- package/lib/worker/update-ecb-rates.d.ts.map +0 -1
- package/lib/worker/update-ecb-rates.js.map +0 -1
- package/lib/worker/update-token-ownership.d.ts.map +0 -1
- package/lib/worker/update-token-ownership.js.map +0 -1
- package/lib/worker/zombie-killer.d.ts.map +0 -1
- package/lib/worker/zombie-killer.js.map +0 -1
- package/readme.md +0 -5
- package/src/delivery/post.ts +0 -30
- package/src/delivery/send-message.ts +0 -50
- package/src/delivery/stores.ts +0 -53
- package/src/enrollments/licensed.ts +0 -61
- package/src/events/aws-eventbridge.ts +0 -45
- package/src/events/node-event-emitter.ts +0 -18
- package/src/events/redis.ts +0 -34
- package/src/files/gridfs/adapter.ts +0 -176
- package/src/files/gridfs/handler-express.ts +0 -145
- package/src/files/gridfs/handler-fastify.ts +0 -177
- package/src/files/gridfs/index.ts +0 -6
- package/src/files/gridfs/module.ts +0 -44
- package/src/files/gridfs/sign.ts +0 -28
- package/src/files/minio/handler-express.ts +0 -35
- package/src/files/minio/handler-fastify.ts +0 -44
- package/src/files/minio/index.ts +0 -232
- package/src/filters/local-search.ts +0 -101
- package/src/filters/strict-equal.ts +0 -30
- package/src/payment/apple-iap/adapter.ts +0 -153
- package/src/payment/apple-iap/db/AppleTransactionsCollection.ts +0 -14
- package/src/payment/apple-iap/fix-periods.ts +0 -31
- package/src/payment/apple-iap/handler-express.ts +0 -140
- package/src/payment/apple-iap/handler-fastify.ts +0 -147
- package/src/payment/apple-iap/index.ts +0 -6
- package/src/payment/apple-iap/module.ts +0 -34
- package/src/payment/apple-iap/verify-receipt.ts +0 -27
- package/src/payment/braintree.ts +0 -167
- package/src/payment/cryptopay/db/CryptopayTransactions.ts +0 -16
- package/src/payment/cryptopay/denote-amount.test.ts +0 -28
- package/src/payment/cryptopay/denote-amount.ts +0 -29
- package/src/payment/cryptopay/derive-btc-address.test.ts +0 -22
- package/src/payment/cryptopay/derive-btc-address.ts +0 -46
- package/src/payment/cryptopay/derive-eth-address.test.ts +0 -22
- package/src/payment/cryptopay/derive-eth-address.ts +0 -40
- package/src/payment/cryptopay/handle-webhook.ts +0 -103
- package/src/payment/cryptopay/handler-express.ts +0 -21
- package/src/payment/cryptopay/handler-fastify.ts +0 -24
- package/src/payment/cryptopay/index.ts +0 -7
- package/src/payment/cryptopay/module.ts +0 -138
- package/src/payment/cryptopay/plugin.ts +0 -282
- package/src/payment/cryptopay/readme.md +0 -23
- package/src/payment/datatrans-v2/api/authorize.ts +0 -17
- package/src/payment/datatrans-v2/api/authorizeAuthenticated.ts +0 -20
- package/src/payment/datatrans-v2/api/cancel.ts +0 -13
- package/src/payment/datatrans-v2/api/index.ts +0 -24
- package/src/payment/datatrans-v2/api/init.ts +0 -43
- package/src/payment/datatrans-v2/api/makeFetcher.ts +0 -52
- package/src/payment/datatrans-v2/api/secureFields.ts +0 -19
- package/src/payment/datatrans-v2/api/settle.ts +0 -13
- package/src/payment/datatrans-v2/api/status.ts +0 -8
- package/src/payment/datatrans-v2/api/types.ts +0 -378
- package/src/payment/datatrans-v2/api/validate.ts +0 -13
- package/src/payment/datatrans-v2/generateSignature.test.ts +0 -18
- package/src/payment/datatrans-v2/generateSignature.ts +0 -36
- package/src/payment/datatrans-v2/getPaths.ts +0 -25
- package/src/payment/datatrans-v2/handler-express.ts +0 -91
- package/src/payment/datatrans-v2/handler-fastify.ts +0 -97
- package/src/payment/datatrans-v2/index.ts +0 -524
- package/src/payment/datatrans-v2/parseRegistrationData.ts +0 -34
- package/src/payment/datatrans-v2/roundedAmountFromOrder.ts +0 -16
- package/src/payment/datatrans-v2/splitProperties.ts +0 -58
- package/src/payment/invoice-prepaid.ts +0 -40
- package/src/payment/invoice.ts +0 -36
- package/src/payment/paypal-checkout.ts +0 -127
- package/src/payment/payrexx/api/index.ts +0 -84
- package/src/payment/payrexx/api/makeFetcher.ts +0 -83
- package/src/payment/payrexx/handler-express.ts +0 -93
- package/src/payment/payrexx/handler-fastify.ts +0 -105
- package/src/payment/payrexx/index.ts +0 -248
- package/src/payment/payrexx/payrexx.ts +0 -65
- package/src/payment/payrexx/readme.md +0 -4
- package/src/payment/postfinance-checkout/api-client.ts +0 -111
- package/src/payment/postfinance-checkout/api-types.ts +0 -111
- package/src/payment/postfinance-checkout/api.ts +0 -114
- package/src/payment/postfinance-checkout/handler-express.ts +0 -44
- package/src/payment/postfinance-checkout/handler-fastify.ts +0 -53
- package/src/payment/postfinance-checkout/index.ts +0 -271
- package/src/payment/postfinance-checkout/types.ts +0 -27
- package/src/payment/postfinance-checkout/utils.ts +0 -39
- package/src/payment/saferpay/adapter.ts +0 -273
- package/src/payment/saferpay/api/api/SaferpayClient.ts +0 -79
- package/src/payment/saferpay/api/api/SaferpayConnection.ts +0 -36
- package/src/payment/saferpay/api/index.ts +0 -8
- package/src/payment/saferpay/api/models/PaymentMethods.ts +0 -26
- package/src/payment/saferpay/api/models/PaymentPageAssert.ts +0 -75
- package/src/payment/saferpay/api/models/PaymentPageInitialize.ts +0 -58
- package/src/payment/saferpay/api/models/Request.ts +0 -14
- package/src/payment/saferpay/api/models/Response.ts +0 -9
- package/src/payment/saferpay/api/models/Transaction.ts +0 -6
- package/src/payment/saferpay/api/models/TransactionCancel.ts +0 -15
- package/src/payment/saferpay/api/models/TransactionCapture.ts +0 -20
- package/src/payment/saferpay/buildSignature.ts +0 -9
- package/src/payment/saferpay/db/SaferpayTransactionsCollection.ts +0 -13
- package/src/payment/saferpay/getReturnPath.ts +0 -10
- package/src/payment/saferpay/handler-express.ts +0 -71
- package/src/payment/saferpay/handler-fastify.ts +0 -80
- package/src/payment/saferpay/index.ts +0 -6
- package/src/payment/saferpay/module.ts +0 -41
- package/src/payment/stripe/handler-express.ts +0 -135
- package/src/payment/stripe/handler-fastify.ts +0 -151
- package/src/payment/stripe/index.ts +0 -163
- package/src/payment/stripe/readme.md +0 -12
- package/src/payment/stripe/stripe.ts +0 -137
- package/src/presets/all-express.ts +0 -51
- package/src/presets/all-fastify.ts +0 -72
- package/src/presets/all.ts +0 -37
- package/src/presets/base-express.ts +0 -7
- package/src/presets/base-fastify.ts +0 -20
- package/src/presets/base.ts +0 -42
- package/src/presets/countries/ch.ts +0 -2
- package/src/presets/crypto-express.ts +0 -12
- package/src/presets/crypto-fastify.ts +0 -15
- package/src/presets/crypto.ts +0 -11
- package/src/pricing/delivery-swiss-tax.ts +0 -78
- package/src/pricing/discount-100-off.test.ts +0 -41
- package/src/pricing/discount-100-off.ts +0 -48
- package/src/pricing/discount-half-price-manual.test.ts +0 -52
- package/src/pricing/discount-half-price-manual.ts +0 -47
- package/src/pricing/discount-half-price.test.ts +0 -52
- package/src/pricing/discount-half-price.ts +0 -50
- package/src/pricing/free-delivery.test.ts +0 -10
- package/src/pricing/free-delivery.ts +0 -36
- package/src/pricing/free-payment.ts +0 -37
- package/src/pricing/licenced-enrollment.test.ts +0 -38
- package/src/pricing/order-delivery.test.ts +0 -9
- package/src/pricing/order-delivery.ts +0 -47
- package/src/pricing/order-discount.test.ts +0 -10
- package/src/pricing/order-discount.ts +0 -123
- package/src/pricing/order-items-discount.ts +0 -86
- package/src/pricing/order-items.ts +0 -61
- package/src/pricing/order-payment.ts +0 -48
- package/src/pricing/order-round.ts +0 -174
- package/src/pricing/plugins-index.test.ts +0 -5
- package/src/pricing/product-catalog-price-options.ts +0 -67
- package/src/pricing/product-catalog-price.ts +0 -71
- package/src/pricing/product-discount.ts +0 -97
- package/src/pricing/product-price-rateconversion.ts +0 -74
- package/src/pricing/product-round.ts +0 -66
- package/src/pricing/product-swiss-tax.ts +0 -102
- package/src/pricing/tax/ch.test.ts +0 -20
- package/src/pricing/tax/ch.ts +0 -65
- package/src/pricing/utils/isDeliveryAddressInCountry.test.ts +0 -106
- package/src/pricing/utils/isDeliveryAddressInCountry.ts +0 -26
- package/src/quotations/manual.ts +0 -26
- package/src/warehousing/eth-minter.ts +0 -167
- package/src/warehousing/store.ts +0 -45
- package/src/worker/budgetsms.ts +0 -268
- package/src/worker/bulk-import.ts +0 -77
- package/src/worker/bulkgate.ts +0 -138
- package/src/worker/email.ts +0 -165
- package/src/worker/enrollment-order-generator.ts +0 -94
- package/src/worker/error-notifications.ts +0 -83
- package/src/worker/export-token.ts +0 -32
- package/src/worker/external.ts +0 -17
- package/src/worker/heartbeat.ts +0 -37
- package/src/worker/http-request.ts +0 -71
- package/src/worker/message.ts +0 -56
- package/src/worker/push-notification.ts +0 -121
- package/src/worker/twilio.ts +0 -78
- package/src/worker/update-coinbase-rates.ts +0 -76
- package/src/worker/update-ecb-rates.ts +0 -115
- package/src/worker/update-token-ownership.ts +0 -70
- package/src/worker/zombie-killer.ts +0 -139
- package/tests/mock/datatrans/v1/secure-fields.json +0 -4
- package/tests/mock/datatrans/v1/transactions/authorize.json +0 -48
- package/tests/mock/datatrans/v1/transactions/card_check_authorized.json +0 -47
- package/tests/mock/datatrans/v1/transactions/payment_alias_authorized/settle.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_alias_authorized.json +0 -48
- package/tests/mock/datatrans/v1/transactions/payment_authorized/cancel.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_authorized/settle.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_authorized.json +0 -48
- package/tests/mock/datatrans/v1/transactions/payment_authorized_low_amount/cancel.json +0 -1
- package/tests/mock/datatrans/v1/transactions/payment_authorized_low_amount.json +0 -48
- package/tests/mock/datatrans/v1/transactions/validate.json +0 -1
- package/tests/mock/datatrans/v1/transactions.json +0 -4
- package/tests/mock/payrexx/Gateway/1000001.json +0 -106
- package/tests/mock/payrexx/Gateway.json +0 -24
- package/tests/mock/payrexx/transaction_example1.json +0 -65
- package/tests/mock/payrexx/transaction_example2.json +0 -65
- package/tests/mock/payrexx/transaction_example3.json +0 -94
- package/tsconfig.json +0 -9
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export { SaferpayClient } from './api/SaferpayClient.
|
|
2
|
-
export type { PaymentPageInitializeInput, PaymentPageInitializeResponse, } from './models/PaymentPageInitialize.
|
|
3
|
-
export type { PaymentPageAssertInput, PaymentPageAssertResponse } from './models/PaymentPageAssert.
|
|
4
|
-
export type { TransactionCancelInput, TransactionCancelResponse } from './models/TransactionCancel.
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { SaferpayClient } from './api/SaferpayClient.ts';
|
|
2
|
+
export type { PaymentPageInitializeInput, PaymentPageInitializeResponse, } from './models/PaymentPageInitialize.ts';
|
|
3
|
+
export type { PaymentPageAssertInput, PaymentPageAssertResponse } from './models/PaymentPageAssert.ts';
|
|
4
|
+
export type { TransactionCancelInput, TransactionCancelResponse } from './models/TransactionCancel.ts';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { SaferpayClient } from
|
|
2
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { SaferpayClient } from "./api/SaferpayClient.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
1
|
export type PaymentMethods = 'ALIPAY' | 'AMEX' | 'BANCONTACT' | 'BONUS' | 'DINERS' | 'DIRECTDEBIT' | 'EPRZELEWY' | 'EPS' | 'GIROPAY' | 'IDEAL' | 'INVOICE' | 'JCB' | 'KLARNA' | 'MAESTRO' | 'MASTERCARD' | 'MYONE' | 'PAYPAL' | 'PAYDIREKT' | 'POSTCARD' | 'POSTFINANCE' | 'SOFORT' | 'TWINT' | 'UNIONPAY' | 'VISA' | 'WLCRYPTOPAYMENTS';
|
|
2
|
-
//# sourceMappingURL=PaymentMethods.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Response } from './Response.
|
|
2
|
-
import { Request } from './Request.
|
|
3
|
-
import { TransactionAmount, TransactionStatus } from './Transaction.
|
|
4
|
-
import { PaymentMethods } from './PaymentMethods.
|
|
1
|
+
import type { Response } from './Response.ts';
|
|
2
|
+
import type { Request } from './Request.ts';
|
|
3
|
+
import type { TransactionAmount, TransactionStatus } from './Transaction.ts';
|
|
4
|
+
import type { PaymentMethods } from './PaymentMethods.ts';
|
|
5
5
|
export interface PaymentPageAssertInput extends Request {
|
|
6
6
|
Token: string;
|
|
7
7
|
}
|
|
@@ -71,4 +71,3 @@ export interface PaymentPageAssertResponse extends Response {
|
|
|
71
71
|
Result?: 'APPROVED' | 'MANUAL_REVIEW';
|
|
72
72
|
};
|
|
73
73
|
}
|
|
74
|
-
//# sourceMappingURL=PaymentPageAssert.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PaymentMethods } from './PaymentMethods.
|
|
2
|
-
import { Request } from './Request.
|
|
3
|
-
import { Response } from './Response.
|
|
4
|
-
import { TransactionAmount } from './Transaction.
|
|
1
|
+
import type { PaymentMethods } from './PaymentMethods.ts';
|
|
2
|
+
import type { Request } from './Request.ts';
|
|
3
|
+
import type { Response } from './Response.ts';
|
|
4
|
+
import type { TransactionAmount } from './Transaction.ts';
|
|
5
5
|
export interface PaymentPageInitializeInput extends Request {
|
|
6
6
|
ConfigSet?: string;
|
|
7
7
|
TerminalId: string;
|
|
@@ -54,4 +54,3 @@ export interface PaymentPageInitializeResponse extends Response {
|
|
|
54
54
|
Expiration: string;
|
|
55
55
|
RedirectUrl: string;
|
|
56
56
|
}
|
|
57
|
-
//# sourceMappingURL=PaymentPageInitialize.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Response } from './Response.
|
|
2
|
-
import { Request } from './Request.
|
|
1
|
+
import type { Response } from './Response.ts';
|
|
2
|
+
import type { Request } from './Request.ts';
|
|
3
3
|
export interface TransactionCancelInput extends Request {
|
|
4
4
|
TransactionReference: {
|
|
5
5
|
TransactionId: string;
|
|
@@ -11,4 +11,3 @@ export interface TransactionCancelResponse extends Response {
|
|
|
11
11
|
OrderId?: string;
|
|
12
12
|
Date: string;
|
|
13
13
|
}
|
|
14
|
-
//# sourceMappingURL=TransactionCancel.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Response } from './Response.
|
|
2
|
-
import { Request } from './Request.
|
|
3
|
-
import { TransactionAmount } from './Transaction.
|
|
1
|
+
import type { Response } from './Response.ts';
|
|
2
|
+
import type { Request } from './Request.ts';
|
|
3
|
+
import type { TransactionAmount } from './Transaction.ts';
|
|
4
4
|
export interface TransactionCaptureInput extends Request {
|
|
5
5
|
TransactionReference: {
|
|
6
6
|
TransactionId: string;
|
|
@@ -16,4 +16,3 @@ export interface TransactionCaptureResponse extends Response {
|
|
|
16
16
|
Date: string;
|
|
17
17
|
Invoice?: any;
|
|
18
18
|
}
|
|
19
|
-
//# sourceMappingURL=TransactionCapture.d.ts.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { mongodb } from '@unchainedshop/mongodb';
|
|
2
|
-
import { TimestampFields } from '@unchainedshop/mongodb';
|
|
2
|
+
import type { TimestampFields } from '@unchainedshop/mongodb';
|
|
3
3
|
export type SaferpayTransaction = {
|
|
4
4
|
orderPaymentId: any;
|
|
5
5
|
token?: string;
|
|
6
6
|
} & TimestampFields;
|
|
7
7
|
export declare const SaferpayTransactionsCollection: (db: mongodb.Db) => Promise<mongodb.Collection<SaferpayTransaction>>;
|
|
8
|
-
//# sourceMappingURL=SaferpayTransactionsCollection.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { mongodb } from '@unchainedshop/mongodb';
|
|
1
2
|
export const SaferpayTransactionsCollection = async (db) => {
|
|
2
3
|
const SaferpayTransactions = db.collection('payment_saferpay_transactions');
|
|
3
4
|
return SaferpayTransactions;
|
|
4
5
|
};
|
|
5
|
-
//# sourceMappingURL=SaferpayTransactionsCollection.js.map
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
const { ROOT_URL, SAFERPAY_WEBHOOK_PATH = '/payment/saferpay/webhook', SAFERPAY_RETURN_PATH = '/saferpay/return', } = process.env;
|
|
2
2
|
export const webhookPath = (orderPaymentId) => `${ROOT_URL}${SAFERPAY_WEBHOOK_PATH}?orderPaymentId=${orderPaymentId}`;
|
|
3
3
|
export default () => `${ROOT_URL}${SAFERPAY_RETURN_PATH}`;
|
|
4
|
-
//# sourceMappingURL=getReturnPath.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from '@unchainedshop/logger';
|
|
2
|
-
import { buildSignature } from
|
|
2
|
+
import { buildSignature } from "./buildSignature.js";
|
|
3
3
|
const logger = createLogger('unchained:saferpay:handler');
|
|
4
4
|
export const saferpayHandler = async (request, response) => {
|
|
5
5
|
const resolvedContext = request.unchainedContext;
|
|
@@ -56,4 +56,3 @@ export const saferpayHandler = async (request, response) => {
|
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=handler-express.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from '@unchainedshop/logger';
|
|
2
|
-
import { buildSignature } from
|
|
2
|
+
import { buildSignature } from "./buildSignature.js";
|
|
3
3
|
const logger = createLogger('unchained:saferpay:handler');
|
|
4
4
|
export const saferpayHandler = async (request, reply) => {
|
|
5
5
|
const resolvedContext = request.unchainedContext;
|
|
@@ -59,4 +59,3 @@ export const saferpayHandler = async (request, reply) => {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
|
-
//# sourceMappingURL=handler-fastify.js.map
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export * from './adapter.
|
|
2
|
-
import saferpayTransactionsModule, { type SaferpayTransactionsModule } from './module.
|
|
1
|
+
export * from './adapter.ts';
|
|
2
|
+
import saferpayTransactionsModule, { type SaferpayTransactionsModule } from './module.ts';
|
|
3
3
|
export type { SaferpayTransactionsModule };
|
|
4
4
|
export default saferpayTransactionsModule;
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,7 +2,7 @@ import { mongodb } from '@unchainedshop/mongodb';
|
|
|
2
2
|
declare const configureSaferpayTransactionsModule: ({ db }: {
|
|
3
3
|
db: mongodb.Db;
|
|
4
4
|
}) => Promise<{
|
|
5
|
-
findTransactionById: (_id: mongodb.ObjectId) => Promise<mongodb.WithId<import("./db/SaferpayTransactionsCollection.
|
|
5
|
+
findTransactionById: (_id: mongodb.ObjectId) => Promise<mongodb.WithId<import("./db/SaferpayTransactionsCollection.ts").SaferpayTransaction> | null>;
|
|
6
6
|
createTransaction: (orderPaymentId: any) => Promise<mongodb.BSON.ObjectId>;
|
|
7
7
|
setToken: (_id: mongodb.ObjectId, token: string) => Promise<void>;
|
|
8
8
|
}>;
|
|
@@ -11,7 +11,7 @@ declare const _default: {
|
|
|
11
11
|
configure: ({ db }: {
|
|
12
12
|
db: mongodb.Db;
|
|
13
13
|
}) => Promise<{
|
|
14
|
-
findTransactionById: (_id: mongodb.ObjectId) => Promise<mongodb.WithId<import("./db/SaferpayTransactionsCollection.
|
|
14
|
+
findTransactionById: (_id: mongodb.ObjectId) => Promise<mongodb.WithId<import("./db/SaferpayTransactionsCollection.ts").SaferpayTransaction> | null>;
|
|
15
15
|
createTransaction: (orderPaymentId: any) => Promise<mongodb.BSON.ObjectId>;
|
|
16
16
|
setToken: (_id: mongodb.ObjectId, token: string) => Promise<void>;
|
|
17
17
|
}>;
|
|
@@ -21,4 +21,3 @@ export default _default;
|
|
|
21
21
|
export interface SaferpayTransactionsModule {
|
|
22
22
|
saferpayTransactions: Awaited<ReturnType<typeof configureSaferpayTransactionsModule>>;
|
|
23
23
|
}
|
|
24
|
-
//# sourceMappingURL=module.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { mongodb } from '@unchainedshop/mongodb';
|
|
2
|
+
import { SaferpayTransactionsCollection } from "./db/SaferpayTransactionsCollection.js";
|
|
2
3
|
const configureSaferpayTransactionsModule = async ({ db }) => {
|
|
3
4
|
const SaferpayTransactions = await SaferpayTransactionsCollection(db);
|
|
4
5
|
return {
|
|
@@ -26,4 +27,3 @@ export default {
|
|
|
26
27
|
configure: configureSaferpayTransactionsModule,
|
|
27
28
|
},
|
|
28
29
|
};
|
|
29
|
-
//# sourceMappingURL=module.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from '@unchainedshop/logger';
|
|
2
|
-
import { stripe } from
|
|
2
|
+
import { stripe } from "./stripe.js";
|
|
3
3
|
const logger = createLogger('unchained:stripe:handler');
|
|
4
4
|
export const WebhookEventTypes = {
|
|
5
5
|
PAYMENT_INTENT_SUCCEEDED: 'payment_intent.succeeded',
|
|
@@ -119,4 +119,3 @@ export const stripeHandler = async (request, response) => {
|
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
|
-
//# sourceMappingURL=handler-express.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { RouteHandlerMethod } from 'fastify';
|
|
1
|
+
import type { RouteHandlerMethod } from 'fastify';
|
|
2
2
|
export declare const WebhookEventTypes: {
|
|
3
3
|
PAYMENT_INTENT_SUCCEEDED: string;
|
|
4
4
|
SETUP_INTENT_SUCCEEDED: string;
|
|
5
5
|
};
|
|
6
6
|
export declare const stripeHandler: RouteHandlerMethod;
|
|
7
|
-
//# sourceMappingURL=handler-fastify.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from '@unchainedshop/logger';
|
|
2
|
-
import { stripe } from
|
|
2
|
+
import { stripe } from "./stripe.js";
|
|
3
3
|
const logger = createLogger('unchained:stripe:handler');
|
|
4
4
|
export const WebhookEventTypes = {
|
|
5
5
|
PAYMENT_INTENT_SUCCEEDED: 'payment_intent.succeeded',
|
|
@@ -129,4 +129,3 @@ export const stripeHandler = async (req, reply) => {
|
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
-
//# sourceMappingURL=handler-fastify.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLogger } from '@unchainedshop/logger';
|
|
2
|
-
import { stripe, createOrderPaymentIntent, createRegistrationIntent } from
|
|
2
|
+
import { stripe, createOrderPaymentIntent, createRegistrationIntent } from "./stripe.js";
|
|
3
3
|
import { OrderPricingSheet, PaymentAdapter, PaymentDirector, PaymentError, } from '@unchainedshop/core';
|
|
4
4
|
const logger = createLogger('unchained:stripe');
|
|
5
5
|
const Stripe = {
|
|
@@ -54,7 +54,6 @@ const Stripe = {
|
|
|
54
54
|
return {
|
|
55
55
|
token: setupIntent.payment_method,
|
|
56
56
|
customer: setupIntent.customer,
|
|
57
|
-
// payment_method_options: setupIntent.payment_method_options,
|
|
58
57
|
payment_method_types: setupIntent.payment_method_types,
|
|
59
58
|
usage: setupIntent.usage,
|
|
60
59
|
};
|
|
@@ -99,7 +98,6 @@ const Stripe = {
|
|
|
99
98
|
confirm: true,
|
|
100
99
|
payment_method: paymentCredentials.token,
|
|
101
100
|
payment_method_types: paymentCredentials.meta?.payment_method_types,
|
|
102
|
-
// payment_method_options: paymentCredentials.meta?.payment_method_options, // eslint-disable-line
|
|
103
101
|
});
|
|
104
102
|
const { currencyCode, amount } = pricing.total({ useNetPrice: false });
|
|
105
103
|
if (paymentIntentObject.currency !== currencyCode.toLowerCase() ||
|
|
@@ -122,4 +120,3 @@ const Stripe = {
|
|
|
122
120
|
},
|
|
123
121
|
};
|
|
124
122
|
PaymentDirector.registerAdapter(Stripe);
|
|
125
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Stripe } from 'stripe';
|
|
2
2
|
import type { IOrderPricingSheet } from '@unchainedshop/core';
|
|
3
|
-
import { Order, OrderPayment } from '@unchainedshop/core-orders';
|
|
3
|
+
import type { Order, OrderPayment } from '@unchainedshop/core-orders';
|
|
4
4
|
export declare let stripe: Stripe;
|
|
5
5
|
export declare const upsertCustomer: ({ userId, name, email }: {
|
|
6
6
|
userId: any;
|
|
@@ -23,4 +23,3 @@ export declare const createOrderPaymentIntent: ({ userId, name, email, order, or
|
|
|
23
23
|
pricing: IOrderPricingSheet;
|
|
24
24
|
descriptorPrefix?: string;
|
|
25
25
|
}, options?: Record<string, any>) => Promise<Stripe.Response<Stripe.PaymentIntent>>;
|
|
26
|
-
//# sourceMappingURL=stripe.d.ts.map
|
|
@@ -71,7 +71,7 @@ export const createOrderPaymentIntent = async ({ userId, name, email, order, ord
|
|
|
71
71
|
currency: currencyCode.toLowerCase(),
|
|
72
72
|
description,
|
|
73
73
|
statement_descriptor_suffix: `${order._id.substring(0, 4)}..${order._id.substring(order._id.length - 4)}`,
|
|
74
|
-
setup_future_usage: 'off_session',
|
|
74
|
+
setup_future_usage: 'off_session',
|
|
75
75
|
customer,
|
|
76
76
|
receipt_email: order.contact?.emailAddress,
|
|
77
77
|
metadata: {
|
|
@@ -84,4 +84,3 @@ export const createOrderPaymentIntent = async ({ userId, name, email, order, ord
|
|
|
84
84
|
});
|
|
85
85
|
return paymentIntent;
|
|
86
86
|
};
|
|
87
|
-
//# sourceMappingURL=stripe.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import { UnchainedCore } from '@unchainedshop/core';
|
|
2
|
+
import type { UnchainedCore } from '@unchainedshop/core';
|
|
3
3
|
declare const _default: (app: express.Express, { unchainedAPI }: {
|
|
4
4
|
unchainedAPI: UnchainedCore;
|
|
5
5
|
}) => void;
|
|
6
6
|
export default _default;
|
|
7
|
-
//# sourceMappingURL=all-express.d.ts.map
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import express from 'express';
|
|
2
|
-
import connectCryptoToExpress from
|
|
3
|
-
import connectBaseToExpress from
|
|
4
|
-
import { datatransHandler } from
|
|
5
|
-
import { stripeHandler } from
|
|
6
|
-
import { postfinanceCheckoutHandler } from
|
|
7
|
-
import { appleIAPHandler } from
|
|
8
|
-
import { payrexxHandler } from
|
|
9
|
-
import { saferpayHandler } from
|
|
10
|
-
import { configureGenerateOrderAutoscheduling } from
|
|
2
|
+
import connectCryptoToExpress from "./crypto-express.js";
|
|
3
|
+
import connectBaseToExpress from "./base-express.js";
|
|
4
|
+
import { datatransHandler } from "../payment/datatrans-v2/handler-express.js";
|
|
5
|
+
import { stripeHandler } from "../payment/stripe/handler-express.js";
|
|
6
|
+
import { postfinanceCheckoutHandler } from "../payment/postfinance-checkout/handler-express.js";
|
|
7
|
+
import { appleIAPHandler } from "../payment/apple-iap/handler-express.js";
|
|
8
|
+
import { payrexxHandler } from "../payment/payrexx/handler-express.js";
|
|
9
|
+
import { saferpayHandler } from "../payment/saferpay/handler-express.js";
|
|
10
|
+
import { configureGenerateOrderAutoscheduling } from "../worker/enrollment-order-generator.js";
|
|
11
11
|
const { STRIPE_WEBHOOK_PATH = '/payment/stripe', PAYREXX_WEBHOOK_PATH = '/payment/payrexx', PFCHECKOUT_WEBHOOK_PATH = '/payment/postfinance-checkout', DATATRANS_WEBHOOK_PATH = '/payment/datatrans/webhook', APPLE_IAP_WEBHOOK_PATH = '/payment/apple-iap', SAFERPAY_WEBHOOK_PATH = '/payment/saferpay/webhook', } = process.env;
|
|
12
12
|
export default (app, { unchainedAPI }) => {
|
|
13
13
|
connectBaseToExpress(app);
|
|
@@ -24,4 +24,3 @@ export default (app, { unchainedAPI }) => {
|
|
|
24
24
|
app.use(SAFERPAY_WEBHOOK_PATH, saferpayHandler);
|
|
25
25
|
configureGenerateOrderAutoscheduling();
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=all-express.js.map
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { UnchainedCore } from '@unchainedshop/core';
|
|
2
|
-
import { FastifyInstance } from 'fastify';
|
|
1
|
+
import type { UnchainedCore } from '@unchainedshop/core';
|
|
2
|
+
import type { FastifyInstance } from 'fastify';
|
|
3
3
|
declare const _default: (fastify: FastifyInstance, { unchainedAPI }: {
|
|
4
4
|
unchainedAPI: UnchainedCore;
|
|
5
5
|
}) => void;
|
|
6
6
|
export default _default;
|
|
7
|
-
//# sourceMappingURL=all-fastify.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import connectCryptoToFastify from
|
|
2
|
-
import connectBaseToFastify from
|
|
3
|
-
import { stripeHandler } from
|
|
4
|
-
import { postfinanceCheckoutHandler } from
|
|
5
|
-
import { datatransHandler } from
|
|
6
|
-
import { appleIAPHandler } from
|
|
7
|
-
import { payrexxHandler } from
|
|
8
|
-
import { saferpayHandler } from
|
|
9
|
-
import { configureGenerateOrderAutoscheduling } from
|
|
1
|
+
import connectCryptoToFastify from "./crypto-fastify.js";
|
|
2
|
+
import connectBaseToFastify from "./base-fastify.js";
|
|
3
|
+
import { stripeHandler } from "../payment/stripe/handler-fastify.js";
|
|
4
|
+
import { postfinanceCheckoutHandler } from "../payment/postfinance-checkout/handler-fastify.js";
|
|
5
|
+
import { datatransHandler } from "../payment/datatrans-v2/handler-fastify.js";
|
|
6
|
+
import { appleIAPHandler } from "../payment/apple-iap/handler-fastify.js";
|
|
7
|
+
import { payrexxHandler } from "../payment/payrexx/handler-fastify.js";
|
|
8
|
+
import { saferpayHandler } from "../payment/saferpay/handler-fastify.js";
|
|
9
|
+
import { configureGenerateOrderAutoscheduling } from "../worker/enrollment-order-generator.js";
|
|
10
10
|
const { STRIPE_WEBHOOK_PATH = '/payment/stripe', PAYREXX_WEBHOOK_PATH = '/payment/payrexx', PFCHECKOUT_WEBHOOK_PATH = '/payment/postfinance-checkout', DATATRANS_WEBHOOK_PATH = '/payment/datatrans/webhook', APPLE_IAP_WEBHOOK_PATH = '/payment/apple-iap', SAFERPAY_WEBHOOK_PATH = '/payment/saferpay/webhook', } = process.env;
|
|
11
11
|
export default (fastify, { unchainedAPI }) => {
|
|
12
12
|
connectBaseToFastify(fastify);
|
|
@@ -47,4 +47,3 @@ export default (fastify, { unchainedAPI }) => {
|
|
|
47
47
|
});
|
|
48
48
|
configureGenerateOrderAutoscheduling();
|
|
49
49
|
};
|
|
50
|
-
//# sourceMappingURL=all-fastify.js.map
|
package/lib/presets/all.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import './countries/ch.
|
|
2
|
-
import '../delivery/send-message.
|
|
3
|
-
import '../delivery/stores.
|
|
4
|
-
import '../payment/invoice-prepaid.
|
|
5
|
-
import '../payment/paypal-checkout.
|
|
6
|
-
import '../payment/stripe/index.
|
|
7
|
-
import '../payment/postfinance-checkout/index.
|
|
8
|
-
import '../payment/datatrans-v2/index.
|
|
9
|
-
import '../payment/payrexx/index.
|
|
10
|
-
import '../filters/strict-equal.
|
|
11
|
-
import '../filters/local-search.
|
|
12
|
-
import '../worker/twilio.
|
|
13
|
-
import '../worker/bulkgate.
|
|
14
|
-
import '../worker/budgetsms.
|
|
15
|
-
import '../worker/push-notification.
|
|
16
|
-
import '../worker/enrollment-order-generator.
|
|
1
|
+
import './countries/ch.ts';
|
|
2
|
+
import '../delivery/send-message.ts';
|
|
3
|
+
import '../delivery/stores.ts';
|
|
4
|
+
import '../payment/invoice-prepaid.ts';
|
|
5
|
+
import '../payment/paypal-checkout.ts';
|
|
6
|
+
import '../payment/stripe/index.ts';
|
|
7
|
+
import '../payment/postfinance-checkout/index.ts';
|
|
8
|
+
import '../payment/datatrans-v2/index.ts';
|
|
9
|
+
import '../payment/payrexx/index.ts';
|
|
10
|
+
import '../filters/strict-equal.ts';
|
|
11
|
+
import '../filters/local-search.ts';
|
|
12
|
+
import '../worker/twilio.ts';
|
|
13
|
+
import '../worker/bulkgate.ts';
|
|
14
|
+
import '../worker/budgetsms.ts';
|
|
15
|
+
import '../worker/push-notification.ts';
|
|
16
|
+
import '../worker/enrollment-order-generator.ts';
|
|
17
17
|
declare const modules: {
|
|
18
18
|
saferpayTransactions: {
|
|
19
19
|
configure: ({ db }: {
|
|
20
20
|
db: import("mongodb").Db;
|
|
21
21
|
}) => Promise<{
|
|
22
|
-
findTransactionById: (_id: import("bson").ObjectId) => Promise<import("mongodb").WithId<import("../payment/saferpay/db/SaferpayTransactionsCollection.
|
|
22
|
+
findTransactionById: (_id: import("bson").ObjectId) => Promise<import("mongodb").WithId<import("../payment/saferpay/db/SaferpayTransactionsCollection.ts").SaferpayTransaction> | null>;
|
|
23
23
|
createTransaction: (orderPaymentId: any) => Promise<import("bson").ObjectId>;
|
|
24
24
|
setToken: (_id: import("bson").ObjectId, token: string) => Promise<void>;
|
|
25
25
|
}>;
|
|
@@ -28,15 +28,15 @@ declare const modules: {
|
|
|
28
28
|
configure: ({ db }: {
|
|
29
29
|
db: any;
|
|
30
30
|
}) => Promise<{
|
|
31
|
-
findTransactionById: (transactionIdentifier: string) => Promise<import("../payment/apple-iap/db/AppleTransactionsCollection.
|
|
32
|
-
createTransaction: (doc: Omit<import("../payment/apple-iap/db/AppleTransactionsCollection.
|
|
31
|
+
findTransactionById: (transactionIdentifier: string) => Promise<import("../payment/apple-iap/db/AppleTransactionsCollection.ts").AppleTransaction | null>;
|
|
32
|
+
createTransaction: (doc: Omit<import("../payment/apple-iap/db/AppleTransactionsCollection.ts").AppleTransaction, "_id" | "created"> & Pick<Partial<import("../payment/apple-iap/db/AppleTransactionsCollection.ts").AppleTransaction>, "_id" | "created">) => Promise<string>;
|
|
33
33
|
}>;
|
|
34
34
|
};
|
|
35
35
|
cryptopay: {
|
|
36
36
|
configure: ({ db }: {
|
|
37
37
|
db: any;
|
|
38
38
|
}) => {
|
|
39
|
-
getWalletAddress: (address: string, contract?: string) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.
|
|
39
|
+
getWalletAddress: (address: string, contract?: string) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction | null>;
|
|
40
40
|
updateMostRecentBlock: (currencyCode: string, blockHeight: number) => Promise<void>;
|
|
41
41
|
updateWalletAddress: ({ address, blockHeight, amount, contract, currencyCode, decimals, }: {
|
|
42
42
|
address: string;
|
|
@@ -45,15 +45,15 @@ declare const modules: {
|
|
|
45
45
|
contract?: string;
|
|
46
46
|
currencyCode: string;
|
|
47
47
|
decimals: number;
|
|
48
|
-
}) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.
|
|
48
|
+
}) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction>;
|
|
49
49
|
mapOrderPaymentToWalletAddress: ({ address, contract, currencyCode, orderPaymentId, }: {
|
|
50
50
|
address: string;
|
|
51
51
|
contract?: string;
|
|
52
52
|
currencyCode: string;
|
|
53
53
|
orderPaymentId: string;
|
|
54
|
-
}) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.
|
|
54
|
+
}) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction>;
|
|
55
55
|
getNextDerivationNumber: (currencyCode: string) => Promise<number>;
|
|
56
|
-
getWalletAddressesByOrderPaymentId: (orderPaymentId: string) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.
|
|
56
|
+
getWalletAddressesByOrderPaymentId: (orderPaymentId: string) => Promise<import("../payment/cryptopay/db/CryptopayTransactions.ts").CryptopayTransaction[]>;
|
|
57
57
|
};
|
|
58
58
|
};
|
|
59
59
|
gridfsFileUploads: {
|
|
@@ -68,4 +68,3 @@ declare const modules: {
|
|
|
68
68
|
};
|
|
69
69
|
};
|
|
70
70
|
export default modules;
|
|
71
|
-
//# sourceMappingURL=all.d.ts.map
|
package/lib/presets/all.js
CHANGED
|
@@ -1,27 +1,23 @@
|
|
|
1
|
-
import baseModules from
|
|
2
|
-
import
|
|
3
|
-
import cryptoModules from
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
import
|
|
21
|
-
import '../worker/bulkgate.js';
|
|
22
|
-
import '../worker/budgetsms.js';
|
|
23
|
-
import '../worker/push-notification.js';
|
|
24
|
-
import '../worker/enrollment-order-generator.js';
|
|
1
|
+
import baseModules from "./base.js";
|
|
2
|
+
import "./countries/ch.js";
|
|
3
|
+
import cryptoModules from "./crypto.js";
|
|
4
|
+
import "../delivery/send-message.js";
|
|
5
|
+
import "../delivery/stores.js";
|
|
6
|
+
import "../payment/invoice-prepaid.js";
|
|
7
|
+
import "../payment/paypal-checkout.js";
|
|
8
|
+
import appleTransactionsModules from "../payment/apple-iap/index.js";
|
|
9
|
+
import saferpayTransactionsModules from "../payment/saferpay/index.js";
|
|
10
|
+
import "../payment/stripe/index.js";
|
|
11
|
+
import "../payment/postfinance-checkout/index.js";
|
|
12
|
+
import "../payment/datatrans-v2/index.js";
|
|
13
|
+
import "../payment/payrexx/index.js";
|
|
14
|
+
import "../filters/strict-equal.js";
|
|
15
|
+
import "../filters/local-search.js";
|
|
16
|
+
import "../worker/twilio.js";
|
|
17
|
+
import "../worker/bulkgate.js";
|
|
18
|
+
import "../worker/budgetsms.js";
|
|
19
|
+
import "../worker/push-notification.js";
|
|
20
|
+
import "../worker/enrollment-order-generator.js";
|
|
25
21
|
const modules = {
|
|
26
22
|
...baseModules,
|
|
27
23
|
...cryptoModules,
|
|
@@ -29,4 +25,3 @@ const modules = {
|
|
|
29
25
|
...saferpayTransactionsModules,
|
|
30
26
|
};
|
|
31
27
|
export default modules;
|
|
32
|
-
//# sourceMappingURL=all.js.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import handler from
|
|
1
|
+
import handler from "../files/gridfs/handler-express.js";
|
|
2
2
|
const { GRIDFS_PUT_SERVER_PATH = '/gridfs' } = process.env;
|
|
3
3
|
export default (app) => {
|
|
4
4
|
app.use(GRIDFS_PUT_SERVER_PATH, handler);
|
|
5
5
|
};
|
|
6
|
-
//# sourceMappingURL=base-express.js.map
|