@easypayment/medusa-paypal 0.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/.medusa/server/src/admin/index.js +2127 -0
- package/.medusa/server/src/admin/index.mjs +2128 -0
- package/.medusa/server/src/api/admin/payment-collections/[id]/payment-sessions/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/payment-collections/[id]/payment-sessions/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/payment-collections/[id]/payment-sessions/route.js +25 -0
- package/.medusa/server/src/api/admin/payment-collections/[id]/payment-sessions/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/audit-logs/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/audit-logs/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/audit-logs/route.js +12 -0
- package/.medusa/server/src/api/admin/paypal/audit-logs/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disconnect/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/disconnect/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disconnect/route.js +9 -0
- package/.medusa/server/src/api/admin/paypal/disconnect/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disputes/[id]/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/disputes/[id]/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disputes/[id]/route.js +17 -0
- package/.medusa/server/src/api/admin/paypal/disputes/[id]/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disputes/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/disputes/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disputes/route.js +27 -0
- package/.medusa/server/src/api/admin/paypal/disputes/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disputes/summary/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/disputes/summary/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/disputes/summary/route.js +17 -0
- package/.medusa/server/src/api/admin/paypal/disputes/summary/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/environment/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/paypal/environment/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/environment/route.js +23 -0
- package/.medusa/server/src/api/admin/paypal/environment/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/onboard-complete/route.d.ts +8 -0
- package/.medusa/server/src/api/admin/paypal/onboard-complete/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/onboard-complete/route.js +41 -0
- package/.medusa/server/src/api/admin/paypal/onboard-complete/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-link/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-link/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-link/route.js +35 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-link/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-status/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-status/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-status/route.js +20 -0
- package/.medusa/server/src/api/admin/paypal/onboarding-status/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/reconciliation-status/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/reconciliation-status/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/reconciliation-status/route.js +8 -0
- package/.medusa/server/src/api/admin/paypal/reconciliation-status/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/rotate-credentials/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/rotate-credentials/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/rotate-credentials/route.js +9 -0
- package/.medusa/server/src/api/admin/paypal/rotate-credentials/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/save-credentials/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/save-credentials/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/save-credentials/route.js +13 -0
- package/.medusa/server/src/api/admin/paypal/save-credentials/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/settings/route.d.ts +4 -0
- package/.medusa/server/src/api/admin/paypal/settings/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/settings/route.js +14 -0
- package/.medusa/server/src/api/admin/paypal/settings/route.js.map +1 -0
- package/.medusa/server/src/api/admin/paypal/status/route.d.ts +3 -0
- package/.medusa/server/src/api/admin/paypal/status/route.d.ts.map +1 -0
- package/.medusa/server/src/api/admin/paypal/status/route.js +11 -0
- package/.medusa/server/src/api/admin/paypal/status/route.js.map +1 -0
- package/.medusa/server/src/api/store/payment-collections/[id]/payment-sessions/route.d.ts +3 -0
- package/.medusa/server/src/api/store/payment-collections/[id]/payment-sessions/route.d.ts.map +1 -0
- package/.medusa/server/src/api/store/payment-collections/[id]/payment-sessions/route.js +43 -0
- package/.medusa/server/src/api/store/payment-collections/[id]/payment-sessions/route.js.map +1 -0
- package/.medusa/server/src/api/store/paypal/capture-order/route.d.ts +3 -0
- package/.medusa/server/src/api/store/paypal/capture-order/route.d.ts.map +1 -0
- package/.medusa/server/src/api/store/paypal/capture-order/route.js +215 -0
- package/.medusa/server/src/api/store/paypal/capture-order/route.js.map +1 -0
- package/.medusa/server/src/api/store/paypal/config/route.d.ts +3 -0
- package/.medusa/server/src/api/store/paypal/config/route.d.ts.map +1 -0
- package/.medusa/server/src/api/store/paypal/config/route.js +45 -0
- package/.medusa/server/src/api/store/paypal/config/route.js.map +1 -0
- package/.medusa/server/src/api/store/paypal/create-order/route.d.ts +3 -0
- package/.medusa/server/src/api/store/paypal/create-order/route.d.ts.map +1 -0
- package/.medusa/server/src/api/store/paypal/create-order/route.js +305 -0
- package/.medusa/server/src/api/store/paypal/create-order/route.js.map +1 -0
- package/.medusa/server/src/api/store/paypal/disputes/route.d.ts +3 -0
- package/.medusa/server/src/api/store/paypal/disputes/route.d.ts.map +1 -0
- package/.medusa/server/src/api/store/paypal/disputes/route.js +46 -0
- package/.medusa/server/src/api/store/paypal/disputes/route.js.map +1 -0
- package/.medusa/server/src/api/store/paypal/settings/route.d.ts +3 -0
- package/.medusa/server/src/api/store/paypal/settings/route.d.ts.map +1 -0
- package/.medusa/server/src/api/store/paypal/settings/route.js +14 -0
- package/.medusa/server/src/api/store/paypal/settings/route.js.map +1 -0
- package/.medusa/server/src/api/store/paypal/webhook/route.d.ts +3 -0
- package/.medusa/server/src/api/store/paypal/webhook/route.d.ts.map +1 -0
- package/.medusa/server/src/api/store/paypal/webhook/route.js +203 -0
- package/.medusa/server/src/api/store/paypal/webhook/route.js.map +1 -0
- package/.medusa/server/src/jobs/paypal-reconcile.d.ts +7 -0
- package/.medusa/server/src/jobs/paypal-reconcile.d.ts.map +1 -0
- package/.medusa/server/src/jobs/paypal-reconcile.js +131 -0
- package/.medusa/server/src/jobs/paypal-reconcile.js.map +1 -0
- package/.medusa/server/src/jobs/paypal-webhook-retry.d.ts +7 -0
- package/.medusa/server/src/jobs/paypal-webhook-retry.d.ts.map +1 -0
- package/.medusa/server/src/jobs/paypal-webhook-retry.js +78 -0
- package/.medusa/server/src/jobs/paypal-webhook-retry.js.map +1 -0
- package/.medusa/server/src/modules/paypal/clients/paypal-seller.client.d.ts +14 -0
- package/.medusa/server/src/modules/paypal/clients/paypal-seller.client.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/clients/paypal-seller.client.js +65 -0
- package/.medusa/server/src/modules/paypal/clients/paypal-seller.client.js.map +1 -0
- package/.medusa/server/src/modules/paypal/index.d.ts +92 -0
- package/.medusa/server/src/modules/paypal/index.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/index.js +13 -0
- package/.medusa/server/src/modules/paypal/index.js.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260115120000_create_paypal_connection.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/migrations/20260115120000_create_paypal_connection.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260115120000_create_paypal_connection.js +36 -0
- package/.medusa/server/src/modules/paypal/migrations/20260115120000_create_paypal_connection.js.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260123090000_create_paypal_settings.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/migrations/20260123090000_create_paypal_settings.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260123090000_create_paypal_settings.js +25 -0
- package/.medusa/server/src/modules/paypal/migrations/20260123090000_create_paypal_settings.js.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260201090000_create_paypal_webhook_event.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/migrations/20260201090000_create_paypal_webhook_event.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260201090000_create_paypal_webhook_event.js +32 -0
- package/.medusa/server/src/modules/paypal/migrations/20260201090000_create_paypal_webhook_event.js.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260301090000_create_paypal_audit_log.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/migrations/20260301090000_create_paypal_audit_log.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260301090000_create_paypal_audit_log.js +29 -0
- package/.medusa/server/src/modules/paypal/migrations/20260301090000_create_paypal_audit_log.js.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260401090000_create_paypal_metric.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/migrations/20260401090000_create_paypal_metric.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260401090000_create_paypal_metric.js +30 -0
- package/.medusa/server/src/modules/paypal/migrations/20260401090000_create_paypal_metric.js.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260501090000_create_paypal_dispute.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/migrations/20260501090000_create_paypal_dispute.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260501090000_create_paypal_dispute.js +43 -0
- package/.medusa/server/src/modules/paypal/migrations/20260501090000_create_paypal_dispute.js.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260701090000_add_paypal_webhook_event_processing.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/migrations/20260701090000_add_paypal_webhook_event_processing.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/migrations/20260701090000_add_paypal_webhook_event_processing.js +34 -0
- package/.medusa/server/src/modules/paypal/migrations/20260701090000_add_paypal_webhook_event_processing.js.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_audit_log.d.ts +7 -0
- package/.medusa/server/src/modules/paypal/models/paypal_audit_log.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_audit_log.js +10 -0
- package/.medusa/server/src/modules/paypal/models/paypal_audit_log.js.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_connection.d.ts +14 -0
- package/.medusa/server/src/modules/paypal/models/paypal_connection.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_connection.js +17 -0
- package/.medusa/server/src/modules/paypal/models/paypal_connection.js.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_dispute.d.ts +16 -0
- package/.medusa/server/src/modules/paypal/models/paypal_dispute.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_dispute.js +19 -0
- package/.medusa/server/src/modules/paypal/models/paypal_dispute.js.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_metric.d.ts +7 -0
- package/.medusa/server/src/modules/paypal/models/paypal_metric.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_metric.js +10 -0
- package/.medusa/server/src/modules/paypal/models/paypal_metric.js.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_settings.d.ts +6 -0
- package/.medusa/server/src/modules/paypal/models/paypal_settings.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_settings.js +9 -0
- package/.medusa/server/src/modules/paypal/models/paypal_settings.js.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_webhook_event.d.ts +17 -0
- package/.medusa/server/src/modules/paypal/models/paypal_webhook_event.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/models/paypal_webhook_event.js +20 -0
- package/.medusa/server/src/modules/paypal/models/paypal_webhook_event.js.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/card-service.d.ts +35 -0
- package/.medusa/server/src/modules/paypal/payment-provider/card-service.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/card-service.js +569 -0
- package/.medusa/server/src/modules/paypal/payment-provider/card-service.js.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/index.d.ts +10 -0
- package/.medusa/server/src/modules/paypal/payment-provider/index.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/index.js +22 -0
- package/.medusa/server/src/modules/paypal/payment-provider/index.js.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/service.d.ts +44 -0
- package/.medusa/server/src/modules/paypal/payment-provider/service.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/service.js +825 -0
- package/.medusa/server/src/modules/paypal/payment-provider/service.js.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/webhook-utils.d.ts +3 -0
- package/.medusa/server/src/modules/paypal/payment-provider/webhook-utils.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/payment-provider/webhook-utils.js +74 -0
- package/.medusa/server/src/modules/paypal/payment-provider/webhook-utils.js.map +1 -0
- package/.medusa/server/src/modules/paypal/service.d.ts +362 -0
- package/.medusa/server/src/modules/paypal/service.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/service.js +1180 -0
- package/.medusa/server/src/modules/paypal/service.js.map +1 -0
- package/.medusa/server/src/modules/paypal/types/config.d.ts +14 -0
- package/.medusa/server/src/modules/paypal/types/config.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/types/config.js +33 -0
- package/.medusa/server/src/modules/paypal/types/config.js.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/amounts.d.ts +3 -0
- package/.medusa/server/src/modules/paypal/utils/amounts.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/amounts.js +40 -0
- package/.medusa/server/src/modules/paypal/utils/amounts.js.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/crypto.d.ts +4 -0
- package/.medusa/server/src/modules/paypal/utils/crypto.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/crypto.js +47 -0
- package/.medusa/server/src/modules/paypal/utils/crypto.js.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/currencies.d.ts +19 -0
- package/.medusa/server/src/modules/paypal/utils/currencies.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/currencies.js +69 -0
- package/.medusa/server/src/modules/paypal/utils/currencies.js.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/provider-ids.d.ts +9 -0
- package/.medusa/server/src/modules/paypal/utils/provider-ids.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/utils/provider-ids.js +50 -0
- package/.medusa/server/src/modules/paypal/utils/provider-ids.js.map +1 -0
- package/.medusa/server/src/modules/paypal/webhook-processor.d.ts +38 -0
- package/.medusa/server/src/modules/paypal/webhook-processor.d.ts.map +1 -0
- package/.medusa/server/src/modules/paypal/webhook-processor.js +265 -0
- package/.medusa/server/src/modules/paypal/webhook-processor.js.map +1 -0
- package/LICENSE +21 -0
- package/README.md +67 -0
- package/package.json +61 -0
- package/postcss.config.cjs +3 -0
- package/src/admin/index.ts +7 -0
- package/src/admin/routes/settings/paypal/_components/Tabs.tsx +55 -0
- package/src/admin/routes/settings/paypal/_components/Toast.tsx +51 -0
- package/src/admin/routes/settings/paypal/additional-settings/page.tsx +346 -0
- package/src/admin/routes/settings/paypal/advanced-card-payments/page.tsx +381 -0
- package/src/admin/routes/settings/paypal/apple-pay/page.tsx +5 -0
- package/src/admin/routes/settings/paypal/audit-logs/page.tsx +131 -0
- package/src/admin/routes/settings/paypal/connection/page.tsx +750 -0
- package/src/admin/routes/settings/paypal/disputes/page.tsx +259 -0
- package/src/admin/routes/settings/paypal/google-pay/page.tsx +5 -0
- package/src/admin/routes/settings/paypal/page.tsx +16 -0
- package/src/admin/routes/settings/paypal/pay-later-messaging/page.tsx +5 -0
- package/src/admin/routes/settings/paypal/paypal-settings/page.tsx +557 -0
- package/src/admin/routes/settings/paypal/reconciliation-status/page.tsx +165 -0
- package/src/api/admin/payment-collections/[id]/payment-sessions/route.ts +32 -0
- package/src/api/admin/paypal/audit-logs/route.ts +13 -0
- package/src/api/admin/paypal/disconnect/route.ts +8 -0
- package/src/api/admin/paypal/disputes/[id]/route.ts +19 -0
- package/src/api/admin/paypal/disputes/route.ts +30 -0
- package/src/api/admin/paypal/disputes/summary/route.ts +18 -0
- package/src/api/admin/paypal/environment/route.ts +25 -0
- package/src/api/admin/paypal/onboard-complete/route.ts +44 -0
- package/src/api/admin/paypal/onboarding-link/route.ts +45 -0
- package/src/api/admin/paypal/onboarding-status/route.ts +18 -0
- package/src/api/admin/paypal/reconciliation-status/route.ts +7 -0
- package/src/api/admin/paypal/rotate-credentials/route.ts +8 -0
- package/src/api/admin/paypal/save-credentials/route.ts +14 -0
- package/src/api/admin/paypal/settings/route.ts +14 -0
- package/src/api/admin/paypal/status/route.ts +12 -0
- package/src/api/store/payment-collections/[id]/payment-sessions/route.ts +51 -0
- package/src/api/store/paypal/capture-order/route.ts +270 -0
- package/src/api/store/paypal/config/route.ts +59 -0
- package/src/api/store/paypal/create-order/route.ts +374 -0
- package/src/api/store/paypal/disputes/route.ts +67 -0
- package/src/api/store/paypal/settings/route.ts +12 -0
- package/src/api/store/paypal/webhook/route.ts +247 -0
- package/src/jobs/paypal-reconcile.ts +135 -0
- package/src/jobs/paypal-webhook-retry.ts +86 -0
- package/src/modules/paypal/clients/paypal-seller.client.ts +59 -0
- package/src/modules/paypal/index.ts +8 -0
- package/src/modules/paypal/migrations/20260115120000_create_paypal_connection.ts +33 -0
- package/src/modules/paypal/migrations/20260123090000_create_paypal_settings.ts +22 -0
- package/src/modules/paypal/migrations/20260201090000_create_paypal_webhook_event.ts +29 -0
- package/src/modules/paypal/migrations/20260301090000_create_paypal_audit_log.ts +26 -0
- package/src/modules/paypal/migrations/20260401090000_create_paypal_metric.ts +27 -0
- package/src/modules/paypal/migrations/20260501090000_create_paypal_dispute.ts +40 -0
- package/src/modules/paypal/migrations/20260701090000_add_paypal_webhook_event_processing.ts +31 -0
- package/src/modules/paypal/models/paypal_audit_log.ts +9 -0
- package/src/modules/paypal/models/paypal_connection.ts +21 -0
- package/src/modules/paypal/models/paypal_dispute.ts +18 -0
- package/src/modules/paypal/models/paypal_metric.ts +9 -0
- package/src/modules/paypal/models/paypal_settings.ts +8 -0
- package/src/modules/paypal/models/paypal_webhook_event.ts +19 -0
- package/src/modules/paypal/payment-provider/README.md +22 -0
- package/src/modules/paypal/payment-provider/card-service.ts +710 -0
- package/src/modules/paypal/payment-provider/index.ts +19 -0
- package/src/modules/paypal/payment-provider/service.ts +1035 -0
- package/src/modules/paypal/payment-provider/webhook-utils.ts +88 -0
- package/src/modules/paypal/service.ts +1422 -0
- package/src/modules/paypal/types/config.ts +47 -0
- package/src/modules/paypal/utils/amounts.ts +41 -0
- package/src/modules/paypal/utils/crypto.ts +51 -0
- package/src/modules/paypal/utils/currencies.ts +84 -0
- package/src/modules/paypal/utils/provider-ids.ts +53 -0
- package/src/modules/paypal/webhook-processor.ts +313 -0
- package/tsconfig.json +31 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../../../../src/modules/paypal/payment-provider/service.ts"],"names":[],"mappings":";;;AAAA,qDAAmE;AACnE,mCAAmC;AAyBnC,8CAAwD;AACxD,oDAG4B;AAG5B,mDAA+D;AAI/D,MAAM,sBAAsB,GAA2B;IACrD,gBAAgB,EAAE,QAAQ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,aAAa,CAAC,eAAe,EAAE;gBACxC,QAAQ,EAAE,OAAO;gBACjB,UAAU,EAAE,SAAS;gBACrB,QAAQ,EAAE,OAAO;gBACjB,OAAO,EAAE,KAAK,EAAE,OAAO;aACxB,CAAC,CAAA;YACF,MAAM,KAAK,CAAA;QACb,CAAC;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,MAA0B;QAE1B,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAA;IACrB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAC3B,OAA0C;QAE1C,OAAO,IAAA,6CAA6B,EAAC,OAAO,CAAC,CAAA;IAC/C,CAAC;;AAIM,sDAAqB;AAD9B,kBAAe,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/modules/paypal/payment-provider/webhook-utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAwDlC,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,sBAAsB,CAAC,SAAS,CAAC,GACzC,mBAAmB,CA0BrB"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPayPalWebhookActionAndData = getPayPalWebhookActionAndData;
|
|
4
|
+
const EVENT_ACTIONS = {
|
|
5
|
+
"CHECKOUT.ORDER.CREATED": "pending",
|
|
6
|
+
"CHECKOUT.ORDER.SAVED": "pending",
|
|
7
|
+
"CHECKOUT.ORDER.APPROVED": "authorized",
|
|
8
|
+
"CHECKOUT.ORDER.PAYER_ACTION_REQUIRED": "pending",
|
|
9
|
+
"CHECKOUT.ORDER.CANCELLED": "canceled",
|
|
10
|
+
"CHECKOUT.ORDER.EXPIRED": "failed",
|
|
11
|
+
"CHECKOUT.ORDER.VOIDED": "canceled",
|
|
12
|
+
"CHECKOUT.ORDER.COMPLETED": "captured",
|
|
13
|
+
"PAYMENT.AUTHORIZATION.CREATED": "authorized",
|
|
14
|
+
"PAYMENT.AUTHORIZATION.DENIED": "failed",
|
|
15
|
+
"PAYMENT.AUTHORIZATION.EXPIRED": "failed",
|
|
16
|
+
"PAYMENT.AUTHORIZATION.PENDING": "pending",
|
|
17
|
+
"PAYMENT.AUTHORIZATION.VOIDED": "canceled",
|
|
18
|
+
"PAYMENT.CAPTURE.COMPLETED": "captured",
|
|
19
|
+
"PAYMENT.CAPTURE.DENIED": "failed",
|
|
20
|
+
"PAYMENT.CAPTURE.PENDING": "pending",
|
|
21
|
+
"PAYMENT.CAPTURE.REFUNDED": "canceled",
|
|
22
|
+
"PAYMENT.CAPTURE.REVERSED": "canceled",
|
|
23
|
+
"PAYMENT.REFUND.COMPLETED": "canceled",
|
|
24
|
+
"PAYMENT.REFUND.DENIED": "failed",
|
|
25
|
+
};
|
|
26
|
+
function resolveSessionId(resource) {
|
|
27
|
+
return (resource?.custom_id ||
|
|
28
|
+
resource?.purchase_units?.[0]?.custom_id ||
|
|
29
|
+
resource?.purchase_units?.[0]?.payments?.captures?.[0]?.custom_id ||
|
|
30
|
+
resource?.purchase_units?.[0]?.payments?.authorizations?.[0]?.custom_id ||
|
|
31
|
+
resource?.purchase_units?.[0]?.payments?.refunds?.[0]?.custom_id);
|
|
32
|
+
}
|
|
33
|
+
function resolveAmount(resource) {
|
|
34
|
+
const amount = resource?.amount ||
|
|
35
|
+
resource?.purchase_units?.[0]?.amount ||
|
|
36
|
+
resource?.purchase_units?.[0]?.payments?.captures?.[0]?.amount ||
|
|
37
|
+
resource?.purchase_units?.[0]?.payments?.authorizations?.[0]?.amount ||
|
|
38
|
+
resource?.purchase_units?.[0]?.payments?.refunds?.[0]?.amount ||
|
|
39
|
+
resource?.seller_receivable_breakdown?.gross_amount;
|
|
40
|
+
const value = amount?.value ?? amount?.amount?.value;
|
|
41
|
+
if (value === undefined || value === null) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
const parsed = Number(value);
|
|
45
|
+
return Number.isFinite(parsed) ? parsed : undefined;
|
|
46
|
+
}
|
|
47
|
+
function resolveEventType(payload) {
|
|
48
|
+
const raw = payload;
|
|
49
|
+
return raw?.event_type || raw?.eventType;
|
|
50
|
+
}
|
|
51
|
+
function getPayPalWebhookActionAndData(payload) {
|
|
52
|
+
const eventType = resolveEventType(payload);
|
|
53
|
+
if (!eventType) {
|
|
54
|
+
return { action: "not_supported" };
|
|
55
|
+
}
|
|
56
|
+
const action = EVENT_ACTIONS[eventType];
|
|
57
|
+
if (!action) {
|
|
58
|
+
return { action: "not_supported" };
|
|
59
|
+
}
|
|
60
|
+
const resource = payload?.resource;
|
|
61
|
+
const sessionId = resolveSessionId(resource);
|
|
62
|
+
const amount = resolveAmount(resource);
|
|
63
|
+
if (!sessionId || amount === undefined) {
|
|
64
|
+
return { action: "not_supported" };
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
action,
|
|
68
|
+
data: {
|
|
69
|
+
session_id: sessionId,
|
|
70
|
+
amount,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=webhook-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-utils.js","sourceRoot":"","sources":["../../../../../../src/modules/paypal/payment-provider/webhook-utils.ts"],"names":[],"mappings":";;AA2DA,sEA4BC;AAlFD,MAAM,aAAa,GAAkD;IACnE,wBAAwB,EAAE,SAAS;IACnC,sBAAsB,EAAE,SAAS;IACjC,yBAAyB,EAAE,YAAY;IACvC,sCAAsC,EAAE,SAAS;IACjD,0BAA0B,EAAE,UAAU;IACtC,wBAAwB,EAAE,QAAQ;IAClC,uBAAuB,EAAE,UAAU;IACnC,0BAA0B,EAAE,UAAU;IACtC,+BAA+B,EAAE,YAAY;IAC7C,8BAA8B,EAAE,QAAQ;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SAAS;YACrB,MAAM;SACP;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
type Environment = "sandbox" | "live";
|
|
2
|
+
type Status = "disconnected" | "pending" | "pending_credentials" | "connected" | "revoked";
|
|
3
|
+
declare const PayPalModuleService_base: import("@medusajs/framework/utils").MedusaServiceReturnType<import("@medusajs/framework/utils").ModelConfigurationsToConfigTemplate<{
|
|
4
|
+
readonly PayPalAuditLog: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
5
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
6
|
+
event_type: import("@medusajs/framework/utils").TextProperty;
|
|
7
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
8
|
+
}>, "paypal_audit_log">;
|
|
9
|
+
readonly PayPalConnection: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
10
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
11
|
+
environment: import("@medusajs/framework/utils").TextProperty;
|
|
12
|
+
status: import("@medusajs/framework/utils").TextProperty;
|
|
13
|
+
shared_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
14
|
+
auth_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
15
|
+
seller_client_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
16
|
+
seller_client_secret: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
17
|
+
app_access_token: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
18
|
+
app_access_token_expires_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
19
|
+
metadata: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
20
|
+
}>, "paypal_connection">;
|
|
21
|
+
readonly PayPalDispute: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
22
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
23
|
+
dispute_id: import("@medusajs/framework/utils").TextProperty;
|
|
24
|
+
status: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
25
|
+
reason: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
26
|
+
stage: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
27
|
+
amount: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
28
|
+
currency_code: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
29
|
+
transaction_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
30
|
+
seller_transaction_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
31
|
+
order_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
32
|
+
cart_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
33
|
+
payload: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
34
|
+
}>, "paypal_dispute">;
|
|
35
|
+
readonly PayPalMetric: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
36
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
37
|
+
name: import("@medusajs/framework/utils").TextProperty;
|
|
38
|
+
data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
39
|
+
}>, "paypal_metric">;
|
|
40
|
+
readonly PayPalSettings: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
41
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
42
|
+
data: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
43
|
+
}>, "paypal_settings">;
|
|
44
|
+
readonly PayPalWebhookEvent: import("@medusajs/framework/utils").DmlEntity<import("@medusajs/framework/utils").DMLEntitySchemaBuilder<{
|
|
45
|
+
id: import("@medusajs/framework/utils").PrimaryKeyModifier<string, import("@medusajs/framework/utils").IdProperty>;
|
|
46
|
+
event_id: import("@medusajs/framework/utils").TextProperty;
|
|
47
|
+
event_type: import("@medusajs/framework/utils").TextProperty;
|
|
48
|
+
event_version: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
49
|
+
transmission_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
50
|
+
transmission_time: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
51
|
+
status: import("@medusajs/framework/utils").TextProperty;
|
|
52
|
+
attempt_count: import("@medusajs/framework/utils").NumberProperty;
|
|
53
|
+
next_retry_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
54
|
+
processed_at: import("@medusajs/framework/utils").NullableModifier<Date, import("@medusajs/framework/utils").DateTimeProperty>;
|
|
55
|
+
last_error: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
56
|
+
resource_id: import("@medusajs/framework/utils").NullableModifier<string, import("@medusajs/framework/utils").TextProperty>;
|
|
57
|
+
payload: import("@medusajs/framework/utils").NullableModifier<Record<string, unknown>, import("@medusajs/framework/utils").JSONProperty>;
|
|
58
|
+
}>, "paypal_webhook_event">;
|
|
59
|
+
}>>;
|
|
60
|
+
declare class PayPalModuleService extends PayPalModuleService_base {
|
|
61
|
+
protected cfg: import("./types/config").PayPalModuleConfig;
|
|
62
|
+
private getSettingsData;
|
|
63
|
+
private ensureSettingsDefaults;
|
|
64
|
+
getApiDetails(): Promise<{
|
|
65
|
+
onboarding: Record<string, any>;
|
|
66
|
+
apiDetails: Record<string, any>;
|
|
67
|
+
}>;
|
|
68
|
+
getLoggingPreference(): Promise<boolean>;
|
|
69
|
+
private getAlertWebhookUrls;
|
|
70
|
+
private getEncryptionKey;
|
|
71
|
+
private getDecryptionKeys;
|
|
72
|
+
private decryptSecretWithKeys;
|
|
73
|
+
private maybeEncryptSecret;
|
|
74
|
+
private maybeDecryptSecret;
|
|
75
|
+
private getPartnerMerchantId;
|
|
76
|
+
/**
|
|
77
|
+
* We keep a single row in DB and store the currently selected environment there.
|
|
78
|
+
* If no row exists yet, default to sandbox.
|
|
79
|
+
*/
|
|
80
|
+
private getCurrentRow;
|
|
81
|
+
private getCurrentEnvironment;
|
|
82
|
+
private getEnvCreds;
|
|
83
|
+
private getMerchantId;
|
|
84
|
+
private fetchMerchantIntegrationDetails;
|
|
85
|
+
private syncRowFieldsFromMetadata;
|
|
86
|
+
/**
|
|
87
|
+
* Set environment based on admin UI selection (WooCommerce-style).
|
|
88
|
+
* Switching environment clears stored credentials and requires re-onboarding.
|
|
89
|
+
*/
|
|
90
|
+
setEnvironment(env: Environment): Promise<any>;
|
|
91
|
+
/**
|
|
92
|
+
* ✅ WooCommerce-style signup link generation (your service returns PayPal partner-referrals JSON)
|
|
93
|
+
*
|
|
94
|
+
* - POST to your PHP service (WPG_ONBOARDING_URL)
|
|
95
|
+
* - Content-Type: application/x-www-form-urlencoded
|
|
96
|
+
* - fields: email, sandbox, return_url, return_url_description, products[], partner_merchant_id
|
|
97
|
+
*
|
|
98
|
+
* Response formats supported:
|
|
99
|
+
* 1) PayPal partner-referrals JSON: { links: [ { rel: "action_url", href: "..." }, ... ] }
|
|
100
|
+
* 2) Custom JSON: { onboarding_url: "..." }
|
|
101
|
+
* 3) Plain URL string
|
|
102
|
+
*/
|
|
103
|
+
createOnboardingLink(input?: {
|
|
104
|
+
email?: string;
|
|
105
|
+
products?: string[];
|
|
106
|
+
}): Promise<{
|
|
107
|
+
onboarding_url: string;
|
|
108
|
+
return_url: string;
|
|
109
|
+
}>;
|
|
110
|
+
startOnboarding(): Promise<void>;
|
|
111
|
+
saveOnboardCallback(input: {
|
|
112
|
+
authCode: string;
|
|
113
|
+
sharedId: string;
|
|
114
|
+
}): Promise<{
|
|
115
|
+
id: string;
|
|
116
|
+
environment: string;
|
|
117
|
+
status: string;
|
|
118
|
+
shared_id: string;
|
|
119
|
+
auth_code: string;
|
|
120
|
+
seller_client_id: string;
|
|
121
|
+
seller_client_secret: string;
|
|
122
|
+
app_access_token: string;
|
|
123
|
+
app_access_token_expires_at: Date;
|
|
124
|
+
metadata: Record<string, unknown>;
|
|
125
|
+
created_at: Date;
|
|
126
|
+
updated_at: Date;
|
|
127
|
+
deleted_at: Date;
|
|
128
|
+
}>;
|
|
129
|
+
/**
|
|
130
|
+
* Exchange authCode/sharedId for seller API credentials (server-side) and save in DB.
|
|
131
|
+
*
|
|
132
|
+
* This calls an optional exchange service you control:
|
|
133
|
+
* PAYPAL_EXCHANGE_SERVICE_URL or PAYPAL_PARTNER_EXCHANGE_URL
|
|
134
|
+
*
|
|
135
|
+
* Expected JSON response:
|
|
136
|
+
* { clientId: string, clientSecret: string, merchantId?: string }
|
|
137
|
+
*/
|
|
138
|
+
exchangeAndSaveSellerCredentials(input: {
|
|
139
|
+
authCode: string;
|
|
140
|
+
sharedId: string;
|
|
141
|
+
env?: "sandbox" | "live";
|
|
142
|
+
}): Promise<void>;
|
|
143
|
+
saveSellerCredentials(input: {
|
|
144
|
+
clientId: string;
|
|
145
|
+
clientSecret: string;
|
|
146
|
+
}): Promise<{
|
|
147
|
+
id: string;
|
|
148
|
+
environment: string;
|
|
149
|
+
status: string;
|
|
150
|
+
shared_id: string;
|
|
151
|
+
auth_code: string;
|
|
152
|
+
seller_client_id: string;
|
|
153
|
+
seller_client_secret: string;
|
|
154
|
+
app_access_token: string;
|
|
155
|
+
app_access_token_expires_at: Date;
|
|
156
|
+
metadata: Record<string, unknown>;
|
|
157
|
+
created_at: Date;
|
|
158
|
+
updated_at: Date;
|
|
159
|
+
deleted_at: Date;
|
|
160
|
+
}>;
|
|
161
|
+
private resolveWebhookUrl;
|
|
162
|
+
private isLocalWebhookUrl;
|
|
163
|
+
private ensureWebhookRegistration;
|
|
164
|
+
private maskValue;
|
|
165
|
+
rotateCredentialEncryptionKey(): Promise<{
|
|
166
|
+
rotated: number;
|
|
167
|
+
}>;
|
|
168
|
+
getStatus(envOverride?: Environment): Promise<{
|
|
169
|
+
environment: Environment;
|
|
170
|
+
status: Status;
|
|
171
|
+
seller_client_id_present: boolean;
|
|
172
|
+
shared_id?: undefined;
|
|
173
|
+
auth_code?: undefined;
|
|
174
|
+
seller_client_id_masked?: undefined;
|
|
175
|
+
seller_client_secret_masked?: undefined;
|
|
176
|
+
seller_email?: undefined;
|
|
177
|
+
updated_at?: undefined;
|
|
178
|
+
} | {
|
|
179
|
+
environment: Environment;
|
|
180
|
+
status: Status;
|
|
181
|
+
shared_id: any;
|
|
182
|
+
auth_code: string;
|
|
183
|
+
seller_client_id_present: boolean;
|
|
184
|
+
seller_client_id_masked: string;
|
|
185
|
+
seller_client_secret_masked: string;
|
|
186
|
+
seller_email: string;
|
|
187
|
+
updated_at: any;
|
|
188
|
+
}>;
|
|
189
|
+
disconnect(): Promise<void>;
|
|
190
|
+
getAppAccessToken(): Promise<string>;
|
|
191
|
+
/**
|
|
192
|
+
* Generate a client token for PayPal JS SDK (required for CardFields/PaymentFields).
|
|
193
|
+
* This token is short-lived and safe to send to the browser.
|
|
194
|
+
*
|
|
195
|
+
* PayPal endpoint: POST /v1/identity/generate-token
|
|
196
|
+
*/
|
|
197
|
+
generateClientToken(opts?: {
|
|
198
|
+
locale?: string;
|
|
199
|
+
}): Promise<string>;
|
|
200
|
+
/**
|
|
201
|
+
* GLOBAL PayPal settings (single row)
|
|
202
|
+
*/
|
|
203
|
+
getSettings(): Promise<{
|
|
204
|
+
data: Record<string, any>;
|
|
205
|
+
}>;
|
|
206
|
+
saveSettings(patch: Record<string, any>): Promise<{
|
|
207
|
+
data: Record<string, any>;
|
|
208
|
+
}>;
|
|
209
|
+
/**
|
|
210
|
+
* Active credentials based on selected environment in the single connection row.
|
|
211
|
+
*/
|
|
212
|
+
getActiveCredentials(): Promise<{
|
|
213
|
+
environment: Environment;
|
|
214
|
+
client_id: string;
|
|
215
|
+
client_secret: string;
|
|
216
|
+
merchant_id: string;
|
|
217
|
+
}>;
|
|
218
|
+
getOrderDetails(orderId: string): Promise<any>;
|
|
219
|
+
createWebhookEventRecord(input: {
|
|
220
|
+
event_id: string;
|
|
221
|
+
event_type: string;
|
|
222
|
+
resource_id?: string | null;
|
|
223
|
+
payload?: Record<string, unknown>;
|
|
224
|
+
event_version?: string | null;
|
|
225
|
+
transmission_id?: string | null;
|
|
226
|
+
transmission_time?: Date | null;
|
|
227
|
+
status?: string;
|
|
228
|
+
attempt_count?: number;
|
|
229
|
+
}): Promise<{
|
|
230
|
+
created: boolean;
|
|
231
|
+
event: {
|
|
232
|
+
id: string;
|
|
233
|
+
event_id: string;
|
|
234
|
+
event_type: string;
|
|
235
|
+
event_version: string;
|
|
236
|
+
transmission_id: string;
|
|
237
|
+
transmission_time: Date;
|
|
238
|
+
status: string;
|
|
239
|
+
attempt_count: number;
|
|
240
|
+
next_retry_at: Date;
|
|
241
|
+
processed_at: Date;
|
|
242
|
+
last_error: string;
|
|
243
|
+
resource_id: string;
|
|
244
|
+
payload: Record<string, unknown>;
|
|
245
|
+
created_at: Date;
|
|
246
|
+
updated_at: Date;
|
|
247
|
+
deleted_at: Date;
|
|
248
|
+
};
|
|
249
|
+
}>;
|
|
250
|
+
updateWebhookEventRecord(input: {
|
|
251
|
+
id: string;
|
|
252
|
+
status?: string;
|
|
253
|
+
attempt_count?: number;
|
|
254
|
+
next_retry_at?: Date | null;
|
|
255
|
+
processed_at?: Date | null;
|
|
256
|
+
last_error?: string | null;
|
|
257
|
+
resource_id?: string | null;
|
|
258
|
+
}): Promise<{
|
|
259
|
+
id: string;
|
|
260
|
+
event_id: string;
|
|
261
|
+
event_type: string;
|
|
262
|
+
event_version: string;
|
|
263
|
+
transmission_id: string;
|
|
264
|
+
transmission_time: Date;
|
|
265
|
+
status: string;
|
|
266
|
+
attempt_count: number;
|
|
267
|
+
next_retry_at: Date;
|
|
268
|
+
processed_at: Date;
|
|
269
|
+
last_error: string;
|
|
270
|
+
resource_id: string;
|
|
271
|
+
payload: Record<string, unknown>;
|
|
272
|
+
created_at: Date;
|
|
273
|
+
updated_at: Date;
|
|
274
|
+
deleted_at: Date;
|
|
275
|
+
}>;
|
|
276
|
+
upsertDispute(input: {
|
|
277
|
+
dispute_id: string;
|
|
278
|
+
status?: string | null;
|
|
279
|
+
reason?: string | null;
|
|
280
|
+
stage?: string | null;
|
|
281
|
+
amount?: string | null;
|
|
282
|
+
currency_code?: string | null;
|
|
283
|
+
transaction_id?: string | null;
|
|
284
|
+
seller_transaction_id?: string | null;
|
|
285
|
+
order_id?: string | null;
|
|
286
|
+
cart_id?: string | null;
|
|
287
|
+
payload?: Record<string, unknown>;
|
|
288
|
+
}): Promise<{
|
|
289
|
+
id: string;
|
|
290
|
+
dispute_id: string;
|
|
291
|
+
status: string;
|
|
292
|
+
reason: string;
|
|
293
|
+
stage: string;
|
|
294
|
+
amount: string;
|
|
295
|
+
currency_code: string;
|
|
296
|
+
transaction_id: string;
|
|
297
|
+
seller_transaction_id: string;
|
|
298
|
+
order_id: string;
|
|
299
|
+
cart_id: string;
|
|
300
|
+
payload: Record<string, unknown>;
|
|
301
|
+
created_at: Date;
|
|
302
|
+
updated_at: Date;
|
|
303
|
+
deleted_at: Date;
|
|
304
|
+
}>;
|
|
305
|
+
recordAuditEvent(eventType: string, metadata?: Record<string, unknown>): Promise<{
|
|
306
|
+
id: string;
|
|
307
|
+
event_type: string;
|
|
308
|
+
metadata: Record<string, unknown>;
|
|
309
|
+
created_at: Date;
|
|
310
|
+
updated_at: Date;
|
|
311
|
+
deleted_at: Date;
|
|
312
|
+
}>;
|
|
313
|
+
getAuditLogs(limit?: number): Promise<{
|
|
314
|
+
id: any;
|
|
315
|
+
event_type: any;
|
|
316
|
+
metadata: Record<string, unknown>;
|
|
317
|
+
created_at: any;
|
|
318
|
+
}[]>;
|
|
319
|
+
private sanitizeAuditMetadata;
|
|
320
|
+
recordMetric(name: string, metadata?: Record<string, unknown>): Promise<{
|
|
321
|
+
id: string;
|
|
322
|
+
name: string;
|
|
323
|
+
data: Record<string, unknown>;
|
|
324
|
+
created_at: Date;
|
|
325
|
+
updated_at: Date;
|
|
326
|
+
deleted_at: Date;
|
|
327
|
+
}>;
|
|
328
|
+
recordPaymentLog(eventType: string, metadata?: Record<string, unknown>): Promise<{
|
|
329
|
+
id: string;
|
|
330
|
+
event_type: string;
|
|
331
|
+
metadata: Record<string, unknown>;
|
|
332
|
+
created_at: Date;
|
|
333
|
+
updated_at: Date;
|
|
334
|
+
deleted_at: Date;
|
|
335
|
+
}>;
|
|
336
|
+
updateReconciliationStatus(input: {
|
|
337
|
+
status: "success" | "failed";
|
|
338
|
+
sessions_checked?: number;
|
|
339
|
+
sessions_updated?: number;
|
|
340
|
+
drift_count?: number;
|
|
341
|
+
error_message?: string | null;
|
|
342
|
+
last_drift_at?: string | null;
|
|
343
|
+
last_drift_order_id?: string | null;
|
|
344
|
+
}): Promise<{
|
|
345
|
+
id: string;
|
|
346
|
+
name: string;
|
|
347
|
+
data: Record<string, unknown>;
|
|
348
|
+
created_at: Date;
|
|
349
|
+
updated_at: Date;
|
|
350
|
+
deleted_at: Date;
|
|
351
|
+
}>;
|
|
352
|
+
getReconciliationStatus(): Promise<{
|
|
353
|
+
status: Record<string, any>;
|
|
354
|
+
}>;
|
|
355
|
+
sendAlert(input: {
|
|
356
|
+
type: string;
|
|
357
|
+
message: string;
|
|
358
|
+
metadata?: Record<string, unknown>;
|
|
359
|
+
}): Promise<void>;
|
|
360
|
+
}
|
|
361
|
+
export default PayPalModuleService;
|
|
362
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../src/modules/paypal/service.ts"],"names":[],"mappings":"AAWA,KAAK,WAAW,GAAG,SAAS,GAAG,MAAM,CAAA;AAErC,KAAK,MAAM,GACP,cAAc,GACd,SAAS,GACT,qBAAqB,GACrB,WAAW,GACX,SAAS,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,cAAM,mBAAoB,SAAQ,wBAOhC;IACA,SAAS,CAAC,GAAG,8CAAoB;YAEnB,eAAe;YAKf,sBAAsB;IA0D9B,aAAa;;;;IAQb,oBAAoB;IAS1B,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,iBAAiB;IAOzB,OAAO,CAAC,qBAAqB;IAe7B,OAAO,CAAC,kBAAkB;IAQ1B,OAAO,CAAC,kBAAkB;YAmBZ,oBAAoB;IAKlC;;;OAGG;YACW,aAAa;YAKb,qBAAqB;IAUnC,OAAO,CAAC,WAAW;IAanB,OAAO,CAAC,aAAa;YAMP,+BAA+B;YAuC/B,yBAAyB;IAcvC;;;OAGG;IAEG,cAAc,CAAC,GAAG,EAAE,WAAW;IAkDrC;;;;;;;;;;;OAWG;IACG,oBAAoB,CAAC,KAAK,C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