From 62c7a60aeea7e4d577af40cf1164aa3e00e9859b Mon Sep 17 00:00:00 2001 From: gujiman Date: Fri, 10 Mar 2017 08:56:02 +0000 Subject: [PATCH] fix(paypal): sku param is optional (#1161) 'sku' needs to be made 'optional' as explained in the documented comment --- src/plugins/pay-pal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/pay-pal.ts b/src/plugins/pay-pal.ts index 53b610f7..ef043f1f 100644 --- a/src/plugins/pay-pal.ts +++ b/src/plugins/pay-pal.ts @@ -220,7 +220,7 @@ export class PayPalItem { * @param {String} currency: ISO standard currency code. * @param {String} sku: The stock keeping unit for this item. 50 characters max (optional) */ - constructor(name: string, quantity: number, price: string, currency: string, sku: string) { + constructor(name: string, quantity: number, price: string, currency: string, sku?: string) { this.name = name; this.quantity = quantity; this.price = price; @@ -246,7 +246,7 @@ export class PayPalItem { /** * The stock keeping unit for this item. 50 characters max (optional) */ - sku: string; + sku?: string; } /**