fix(paypal): sku param is optional (#1161)
'sku' needs to be made 'optional' as explained in the documented comment
This commit is contained in:
parent
6fdeeaf6f2
commit
62c7a60aee
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user