mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 04:58:28 +08:00
18 lines
321 B
JavaScript
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;
|