Skip to content

Commit

Permalink
fix(paypal): sku param is optional (#1161)
Browse files Browse the repository at this point in the history
'sku' needs to be made 'optional' as explained in the documented comment
  • Loading branch information
gujiman authored and ihadeed committed Mar 10, 2017
1 parent 6fdeeaf commit 62c7a60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/pay-pal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -246,7 +246,7 @@ export class PayPalItem {
/**
* The stock keeping unit for this item. 50 characters max (optional)
*/
sku: string;
sku?: string;
}

/**
Expand Down

0 comments on commit 62c7a60

Please sign in to comment.