Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

paypal-rest-api

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypal-rest-api - npm Package Compare versions

Comparing version 0.0.47 to 0.0.48

3

lib/webhookEvent/mocks.d.ts

@@ -9,2 +9,3 @@ export declare const mockInvoiceWebhookHeaders: {

export declare const mockInvoiceWebhookId = "1X200851AC360471T";
export declare const mockInvoiceWebhookEvent = "{\"id\":\"WH-7DY07755ND361601N-9HP8009531439713D\",\"event_version\":\"1.0\",\"create_time\":\"2017-09-07T17:06:15.389Z\",\"resource_type\":\"invoices\",\"event_type\":\"INVOICING.INVOICE.CREATED\",\"summary\":\"An invoice has been created\",\"resource\":{\"invoice\":{\"id\":\"INV2-9BTP-HZQP-2P35-KZ92\",\"number\":\"test0042\",\"template_id\":\"TEMP-5ML62849WY523084R\",\"status\":\"DRAFT\",\"merchant_info\":{\"business_name\":\"testy\"},\"invoice_date\":\"2017-09-07 PDT\",\"tax_calculated_after_discount\":false,\"tax_inclusive\":false,\"total_amount\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"metadata\":{\"created_date\":\"2017-09-07 10:05:49 PDT\"},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92\",\"method\":\"DELETE\"}]}},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D/resend\",\"rel\":\"resend\",\"method\":\"POST\"}]}";
export declare const mockInvoiceWebhookEventString = "{\"id\":\"WH-7DY07755ND361601N-9HP8009531439713D\",\"event_version\":\"1.0\",\"create_time\":\"2017-09-07T17:06:15.389Z\",\"resource_type\":\"invoices\",\"event_type\":\"INVOICING.INVOICE.CREATED\",\"summary\":\"An invoice has been created\",\"resource\":{\"invoice\":{\"id\":\"INV2-9BTP-HZQP-2P35-KZ92\",\"number\":\"test0042\",\"template_id\":\"TEMP-5ML62849WY523084R\",\"status\":\"DRAFT\",\"merchant_info\":{\"business_name\":\"testy\"},\"invoice_date\":\"2017-09-07 PDT\",\"tax_calculated_after_discount\":false,\"tax_inclusive\":false,\"total_amount\":{\"currency\":\"USD\",\"value\":\"0.00\"},\"metadata\":{\"created_date\":\"2017-09-07 10:05:49 PDT\"},\"links\":[{\"rel\":\"self\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92\",\"method\":\"GET\"},{\"rel\":\"send\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/send\",\"method\":\"POST\"},{\"rel\":\"update\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/update\",\"method\":\"PUT\"},{\"rel\":\"delete\",\"href\":\"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92\",\"method\":\"DELETE\"}]}},\"links\":[{\"href\":\"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D\",\"rel\":\"self\",\"method\":\"GET\"},{\"href\":\"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D/resend\",\"rel\":\"resend\",\"method\":\"POST\"}]}";
export declare const mockInvoiceWebhookEvent: any;

@@ -11,2 +11,3 @@ "use strict";

exports.mockInvoiceWebhookId = "1X200851AC360471T";
exports.mockInvoiceWebhookEvent = '{"id":"WH-7DY07755ND361601N-9HP8009531439713D","event_version":"1.0","create_time":"2017-09-07T17:06:15.389Z","resource_type":"invoices","event_type":"INVOICING.INVOICE.CREATED","summary":"An invoice has been created","resource":{"invoice":{"id":"INV2-9BTP-HZQP-2P35-KZ92","number":"test0042","template_id":"TEMP-5ML62849WY523084R","status":"DRAFT","merchant_info":{"business_name":"testy"},"invoice_date":"2017-09-07 PDT","tax_calculated_after_discount":false,"tax_inclusive":false,"total_amount":{"currency":"USD","value":"0.00"},"metadata":{"created_date":"2017-09-07 10:05:49 PDT"},"links":[{"rel":"self","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92","method":"GET"},{"rel":"send","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/send","method":"POST"},{"rel":"update","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/update","method":"PUT"},{"rel":"delete","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92","method":"DELETE"}]}},"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D/resend","rel":"resend","method":"POST"}]}';
exports.mockInvoiceWebhookEventString = '{"id":"WH-7DY07755ND361601N-9HP8009531439713D","event_version":"1.0","create_time":"2017-09-07T17:06:15.389Z","resource_type":"invoices","event_type":"INVOICING.INVOICE.CREATED","summary":"An invoice has been created","resource":{"invoice":{"id":"INV2-9BTP-HZQP-2P35-KZ92","number":"test0042","template_id":"TEMP-5ML62849WY523084R","status":"DRAFT","merchant_info":{"business_name":"testy"},"invoice_date":"2017-09-07 PDT","tax_calculated_after_discount":false,"tax_inclusive":false,"total_amount":{"currency":"USD","value":"0.00"},"metadata":{"created_date":"2017-09-07 10:05:49 PDT"},"links":[{"rel":"self","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92","method":"GET"},{"rel":"send","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/send","method":"POST"},{"rel":"update","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92/update","method":"PUT"},{"rel":"delete","href":"https://api.sandbox.paypal.com/v1/invoicing/invoices/INV2-9BTP-HZQP-2P35-KZ92","method":"DELETE"}]}},"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-7DY07755ND361601N-9HP8009531439713D/resend","rel":"resend","method":"POST"}]}';
exports.mockInvoiceWebhookEvent = JSON.parse(exports.mockInvoiceWebhookEventString);
{
"name": "paypal-rest-api",
"version": "0.0.47",
"version": "0.0.48",
"description": "A typescript module for integrating with PayPal REST APIs.",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc