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

paypal-v2-sdk

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paypal-v2-sdk - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

package.json

@@ -6,3 +6,3 @@ {

"name": "paypal-v2-sdk",
"version": "1.2.2",
"version": "1.2.3",
"description": "Unofficial promise-based PayPal API v2 SDK for node.js",

@@ -9,0 +9,0 @@ "main": "index.js",

@@ -15,3 +15,3 @@ const PayPalClass = require("../../PayPal");

* @param {String} id
* @returns
* @returns {String}
*/

@@ -26,2 +26,3 @@ async get(id) {

* @param {Object} query
* @returns {String}
*/

@@ -38,3 +39,3 @@ async list(query) {

* @param {Object|JSON} json
* @returns
* @returns {String}
*/

@@ -51,3 +52,3 @@ async create(json) {

* @param {String} id
* @returns
* @returns {Boolean}
*/

@@ -66,3 +67,3 @@ async delete(id) {

* @param {Object} query
* @returns
* @returns {Boolean}
*/

@@ -83,2 +84,3 @@ async cancel(id, query) {

* @param {Object} query
* @returns {String}
*/

@@ -99,2 +101,3 @@ async generateQrCode(id, query) {

* @param {Object} query
* @returns {String}
*/

@@ -115,3 +118,3 @@ async recordPayment(id, query) {

* @param {Object} query
* @returns
* @returns {String}
*/

@@ -128,2 +131,8 @@ async recordRefund(id, query) {

/**
*
* @param {String} invoiceId
* @param {String} transactionId
* @returns {Boolean}
*/
async deleteExternalPayment(invoiceId, transactionId) {

@@ -134,5 +143,11 @@ const response = await this.PayPal.delete(

);
return response.status === 204 ? true : false;
return response.status === 204;
}
/**
*
* @param {String} invoiceId
* @param {String} transactionId
* @returns {Boolean}
*/
async deleteExternalRefund(invoiceId, transactionId) {

@@ -150,2 +165,3 @@ const response = await this.PayPal.delete(

* @param {Object} query
* @returns {Boolean}
*/

@@ -162,2 +178,8 @@ async sendReminder(id, query) {

/**
*
* @param {String} id
* @param {Object} query
* @returns {Boolean}
*/
async send(id, query) {

@@ -173,2 +195,7 @@ const response = await this.PayPal.post(

/**
*
* @param {Object} query
* @returns {String}
*/
async find(query) {

@@ -175,0 +202,0 @@ const response = await this.PayPal.post("/v2/invoicing/search-invoices", {

@@ -54,3 +54,3 @@ const PayPalClass = require("../../PayPal");

* @param {String} date
* @returns
* @returns {Metadata}
*/

@@ -57,0 +57,0 @@ setLastUpdateTime(date) {

@@ -18,2 +18,3 @@ const PayPalClass = require("../../PayPal");

const NotificationQuery = require("../Queries/NotificationQuery");
const SendInvoiceResponse = require("../Responses/SendInvoice");

@@ -46,3 +47,3 @@ class Invoice {

const deleted = await this.PayPal.invoices.invoices.delete(this.id);
const deleted = await this.PayPal.Handler.invoices.delete(this.id);

@@ -58,3 +59,3 @@ return deleted;

async cancel(body) {
const cancelled = await this.PayPal.invoices.invoices.cancel(this.id, body);
const cancelled = await this.PayPal.Handler.invoices.cancel(this.id, body);

@@ -70,3 +71,3 @@ return cancelled;

async generateQrCode(body) {
const qrCode = await this.PayPal.invoices.invoices.generateQrCode(
const qrCode = await this.PayPal.Handler.invoices.generateQrCode(
this.id,

@@ -84,3 +85,3 @@ body

async recordPayment(body) {
const response = await this.PayPal.invoices.invoices.recordPayment(
const response = await this.PayPal.Handler.invoices.recordPayment(
this.id,

@@ -94,6 +95,7 @@ body

*
* @param {Promise<NotificationQuery>} body
* @param {NotificationQuery} body
* @returns {Promise<Boolean>}
*/
async sendReminder(body) {
const response = await this.PayPal.invoices.invoices.sendReminder(
const response = await this.PayPal.Handler.invoices.sendReminder(
this.id,

@@ -108,6 +110,6 @@ body

* @param {Promise<Boolean>} body
* @returns
* @returns {Promise<SendInvoiceResponse>}
*/
async send(body) {
const response = await this.PayPal.invoices.invoices.send(this.id, body);
const response = await this.PayPal.Handler.invoices.send(this.id, body);
return response;

@@ -114,0 +116,0 @@ }

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