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

hapi-paypal

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-paypal - npm Package Compare versions

Comparing version 0.0.40 to 0.0.41

2

lib/joi/common.js

@@ -15,3 +15,3 @@ "use strict";

postal_code: joi.string().trim().empty("").required(),
state: joi.string().trim().empty("").allow(abbrs).required(),
state: joi.string().trim().empty("").valid(abbrs).required(),
});

@@ -18,0 +18,0 @@ exports.paypalPhoneSchema = joi.object().keys({

@@ -12,3 +12,3 @@ "use strict";

tax: common.paypalTaxSchema.optional(),
unit_of_measure: joi.string().trim().empty("").allow(["QUANTITY", "HOURS", "AMOUNT"]).optional(),
unit_of_measure: joi.string().trim().empty("").valid(["QUANTITY", "HOURS", "AMOUNT"]).optional(),
unit_price: common.paypalCurrencySchema.required(),

@@ -18,3 +18,3 @@ });

due_date: joi.date().empty("").optional(),
term_type: joi.string().trim().empty("").allow([
term_type: joi.string().trim().empty("").valid([
"DUE_ON_RECEIPT",

@@ -21,0 +21,0 @@ "DUE_ON_DATE_SPECIFIED",

@@ -58,6 +58,6 @@ "use strict";

payer: joi.object().keys({
payment_method: joi.string().allow("paypal").default("paypal"),
payment_method: joi.string().valid("paypal").default("paypal"),
}).optional(),
payment_options: joi.object().keys({
allowed_payment_method: joi.string().trim().empty("").allow(["UNRESTRICTED", "INSTANT_FUNDING_SOURCE", "IMMEDIATE_PAY"]).required(),
allowed_payment_method: joi.string().trim().empty("").valid(["UNRESTRICTED", "INSTANT_FUNDING_SOURCE", "IMMEDIATE_PAY"]).required(),
}).optional(),

@@ -70,6 +70,6 @@ purchase_order: joi.string().trim().empty("").max(127).optional(),

experience_profile_id: joi.string().trim().empty("").optional(),
intent: joi.date().empty("").allow(["sale", "authorize", "order"]).required(),
intent: joi.date().empty("").valid(["sale", "authorize", "order"]).required(),
note_to_payer: joi.string().trim().empty("").max(165).optional(),
payer: joi.object().keys({
payment_method: joi.string().allow("paypal").default("paypal"),
payment_method: joi.string().valid("paypal").default("paypal"),
}).required(),

@@ -76,0 +76,0 @@ redirect_urls: joi.object().keys({

{
"name": "hapi-paypal",
"version": "0.0.40",
"version": "0.0.41",
"description": "A hapi plugin to interface with PayPal Rest API's and webhooks.",

@@ -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