@pliancy/salesforce-cpq-sdk 1.11.0 → 1.12.0
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.
|
@@ -6,7 +6,6 @@ export declare class Orders {
|
|
|
6
6
|
private readonly items;
|
|
7
7
|
constructor(connection: Connection);
|
|
8
8
|
getByStartDateForAccount(accountId: string, startDate: string, status: OrderStatus): Promise<FullOrder[]>;
|
|
9
|
-
getById(id: string): Promise<Order | null>;
|
|
10
9
|
getDraftByQuoteId(id: string): Promise<Order | null>;
|
|
11
10
|
activate(orderId: string): Promise<SaveResult>;
|
|
12
11
|
}
|
|
@@ -20,15 +20,6 @@ class Orders {
|
|
|
20
20
|
}
|
|
21
21
|
return orders;
|
|
22
22
|
}
|
|
23
|
-
async getById(id) {
|
|
24
|
-
const order = (await this.client.findOne({
|
|
25
|
-
Id: id,
|
|
26
|
-
}));
|
|
27
|
-
if (!order)
|
|
28
|
-
return null;
|
|
29
|
-
order.lineItems = await this.items.getByOrderId(order.Id);
|
|
30
|
-
return order;
|
|
31
|
-
}
|
|
32
23
|
async getDraftByQuoteId(id) {
|
|
33
24
|
const order = (await this.client.findOne({
|
|
34
25
|
SBQQ__Quote__c: id,
|