@dascompany/product 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,9 +31,9 @@ export default class ClientAccountReader {
|
|
|
31
31
|
createdAt: client.created_at,
|
|
32
32
|
activated: client.activated,
|
|
33
33
|
deleted: client.deleted,
|
|
34
|
-
|
|
34
|
+
personalDataId: client.contact_details_id,
|
|
35
35
|
deliveryDetailsId: client.delivery_details_id,
|
|
36
|
-
|
|
36
|
+
companyDetailsId: client.invoice_details_id,
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -6,7 +6,7 @@ export default class ClientAccountRepo {
|
|
|
6
6
|
return this.createCilentAccountFromRow(accountData);
|
|
7
7
|
}
|
|
8
8
|
static createCilentAccountFromRow(accountData) {
|
|
9
|
-
const client = new Client(accountData.email, accountData.activated, accountData.deleted, accountData.
|
|
9
|
+
const client = new Client(accountData.email, accountData.activated, accountData.deleted, accountData.personal_data_id, accountData.delivery_details_id, accountData.company_details_id, accountData.created_at);
|
|
10
10
|
client.setId(accountData.id);
|
|
11
11
|
return client;
|
|
12
12
|
}
|