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.34 to 0.0.35

6

lib/joi/common.js

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

city: joi.string().required(),
country_code: joi.string().empty("").max(2).required(),
country_code: joi.string().empty("").max(2).default("US"),
line1: joi.string().empty("").required(),

@@ -19,7 +19,7 @@ line2: joi.string().empty("").optional(),

exports.paypalPhoneSchema = joi.object().keys({
country_code: joi.string().regex(/^[0-9]{1,3}?$/),
country_code: joi.string().regex(/^[0-9]{1,3}?$/).default("1"),
national_number: joi.string().regex(/^[0-9]{1,14}?$/),
});
exports.paypalCurrencySchema = joi.object().keys({
currency: joi.string().max(3).required(),
currency: joi.string().max(3).default("USD"),
value: joi.string().required(),

@@ -26,0 +26,0 @@ });

@@ -9,10 +9,10 @@ "use strict";

discount: common.paypalCostSchema.optional(),
name: joi.string().max(200).required(),
name: joi.string().max(200).default("Item Name"),
quantity: joi.number().greater(-10000).less(10000).required(),
tax: common.paypalTaxSchema.optional(),
unit_of_measure: joi.string().allow(["QUANTITY", "HOURS", "AMOUNT"]),
unit_of_measure: joi.string().allow(["QUANTITY", "HOURS", "AMOUNT"]).optional(),
unit_price: common.paypalCurrencySchema.required(),
});
exports.paypalInvoiceTermSchema = joi.object().min(1).keys({
due_date: joi.date(),
due_date: joi.date().optional(),
term_type: joi.string().allow([

@@ -28,3 +28,3 @@ "DUE_ON_RECEIPT",

"NO_DUE_DATE"
]),
]).optional(),
});

@@ -62,3 +62,3 @@ exports.paypalInvoiceSchema = joi.object().keys({

note: joi.string().max(4000).optional(),
number: joi.string().required(),
number: joi.string().optional(),
payment_term: exports.paypalInvoiceTermSchema.required(),

@@ -68,3 +68,3 @@ reference: joi.string().max(60).optional(),

address: common.paypalAddressSchema.optional(),
business_name: joi.string().max(100).required(),
business_name: joi.string().max(100).optional(),
first_name: joi.string().max(256).optional(),

@@ -71,0 +71,0 @@ last_name: joi.string().max(256).optional(),

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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