woocommerce-paypal-payments/modules/ppcp-button/resources/js/modules/Entity/Product.js
Emili Castells Guasch 11105d913b Run eslint autofix
2024-07-12 12:58:34 +02:00

18 lines
321 B
JavaScript

class Product {
constructor( id, quantity, variations, extra ) {
this.id = id;
this.quantity = quantity;
this.variations = variations;
this.extra = extra;
}
data() {
return {
id: this.id,
quantity: this.quantity,
variations: this.variations,
extra: this.extra,
};
}
}
export default Product;