@pinelab/vendure-plugin-qls-fulfillment 1.0.0-beta.12 → 1.0.0-beta.13
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.
package/dist/custom-fields.d.ts
CHANGED
|
@@ -3,6 +3,10 @@ declare module '@vendure/core' {
|
|
|
3
3
|
interface CustomProductVariantFields {
|
|
4
4
|
qlsProductId?: string;
|
|
5
5
|
}
|
|
6
|
+
interface CustomOrderFields {
|
|
7
|
+
qlsServicePointId?: string;
|
|
8
|
+
qlsServicePointDetails?: string;
|
|
9
|
+
}
|
|
6
10
|
}
|
|
7
11
|
export declare const variantCustomFields: CustomFieldConfig[];
|
|
8
12
|
export declare const orderCustomFields: CustomFieldConfig[];
|
|
@@ -115,12 +115,12 @@ let QlsOrderService = class QlsOrderService {
|
|
|
115
115
|
const qlsOrder = {
|
|
116
116
|
customer_reference: order.code,
|
|
117
117
|
processable: new Date().toISOString(), // Processable starting now
|
|
118
|
-
servicepoint_code:
|
|
118
|
+
servicepoint_code: order.customFields?.qlsServicePointId,
|
|
119
119
|
delivery_options: additionalOrderFields?.delivery_options ?? [],
|
|
120
120
|
total_price: order.totalWithTax,
|
|
121
121
|
receiver_contact: {
|
|
122
122
|
name: order.shippingAddress.fullName || customerName,
|
|
123
|
-
companyname: order.shippingAddress.company,
|
|
123
|
+
companyname: order.shippingAddress.company ?? customerName,
|
|
124
124
|
street: order.shippingAddress.streetLine1,
|
|
125
125
|
housenumber: order.shippingAddress.streetLine2,
|
|
126
126
|
postalcode: order.shippingAddress.postalCode,
|