hapi-paypal
Advanced tools
Comparing version 0.0.40 to 0.0.41
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package