@actschurch/ccms-sdk 0.0.13 → 0.0.14
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/models/orders/ModelView/OrderCreateModel.d.ts +15 -15
- package/dist/models/orders/ModelView/OrderFilterModel.d.ts +3 -3
- package/dist/models/orders/ModelView/OrderNotificationModelView.d.ts +3 -3
- package/dist/models/orders/OrderLineVariant.d.ts +3 -3
- package/dist/models/orders/ShopOrder.d.ts +8 -8
- package/dist/services/orders/OrderService.js +4 -4
- package/package.json +1 -1
|
@@ -9,10 +9,10 @@ export interface OrderCreateModel {
|
|
|
9
9
|
lastName?: string;
|
|
10
10
|
email?: string;
|
|
11
11
|
cellphone?: string;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
locationID: number;
|
|
13
|
+
eventID?: number;
|
|
14
14
|
orderDate?: Date | string;
|
|
15
|
-
|
|
15
|
+
statusID?: number;
|
|
16
16
|
isProcessed?: boolean;
|
|
17
17
|
note?: string;
|
|
18
18
|
lines?: OrderLineCreateModel[];
|
|
@@ -23,27 +23,27 @@ export interface OrderCreateModel {
|
|
|
23
23
|
* Model for creating a new order line
|
|
24
24
|
*/
|
|
25
25
|
export interface OrderLineCreateModel {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
orderID: number;
|
|
27
|
+
productID: number;
|
|
28
28
|
productCode?: string;
|
|
29
29
|
productDescription?: string;
|
|
30
30
|
quantity: number;
|
|
31
31
|
unitPrice: number;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
colorID: number;
|
|
33
|
+
sizeID: number;
|
|
34
|
+
locationID: number;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* OrderPaymentCreateModel
|
|
38
38
|
* Model for creating a new order payment
|
|
39
39
|
*/
|
|
40
40
|
export interface OrderPaymentCreateModel {
|
|
41
|
-
|
|
41
|
+
orderID: number;
|
|
42
42
|
amount: number;
|
|
43
43
|
paymentReference?: string;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
44
|
+
statusID: number;
|
|
45
|
+
typeID: number;
|
|
46
|
+
transactionID?: string;
|
|
47
47
|
grossAmount?: number;
|
|
48
48
|
netAmount?: number;
|
|
49
49
|
unitPrice?: number;
|
|
@@ -59,10 +59,10 @@ export interface OrderUpdateModel {
|
|
|
59
59
|
lastName?: string;
|
|
60
60
|
email?: string;
|
|
61
61
|
cellphone?: string;
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
locationID?: number;
|
|
63
|
+
eventID?: number;
|
|
64
64
|
orderDate?: Date | string;
|
|
65
|
-
|
|
65
|
+
statusID?: number;
|
|
66
66
|
isProcessed?: boolean;
|
|
67
67
|
note?: string;
|
|
68
68
|
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Filter model for searching and filtering orders
|
|
4
4
|
*/
|
|
5
5
|
export interface OrderFilterModel {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
statusID?: number;
|
|
7
|
+
locationID?: number;
|
|
8
|
+
eventID?: number;
|
|
9
9
|
dateFrom?: Date | string;
|
|
10
10
|
dateTo?: Date | string;
|
|
11
11
|
isProcessed?: boolean;
|
|
@@ -5,7 +5,7 @@ import { OrderNotificationType } from '../OrderNotification';
|
|
|
5
5
|
*/
|
|
6
6
|
export interface OrderNotificationModelView {
|
|
7
7
|
id: number;
|
|
8
|
-
|
|
8
|
+
orderID: number;
|
|
9
9
|
orderReference?: string | null;
|
|
10
10
|
orderStatusName?: string | null;
|
|
11
11
|
orderStatusColor?: string | null;
|
|
@@ -29,7 +29,7 @@ export interface OrderNotificationModelView {
|
|
|
29
29
|
*/
|
|
30
30
|
export interface CreateOrderNotificationModel {
|
|
31
31
|
notificationType: OrderNotificationType;
|
|
32
|
-
|
|
32
|
+
orderID: number;
|
|
33
33
|
transactionID?: string | null;
|
|
34
34
|
referenceNo?: string | null;
|
|
35
35
|
customerName?: string | null;
|
|
@@ -52,7 +52,7 @@ export interface UpdateOrderNotificationModel {
|
|
|
52
52
|
* Filter model for querying order notifications.
|
|
53
53
|
*/
|
|
54
54
|
export interface OrderNotificationFilterModel {
|
|
55
|
-
|
|
55
|
+
orderID?: number | null;
|
|
56
56
|
notificationType?: OrderNotificationType | null;
|
|
57
57
|
isProcessed?: boolean | null;
|
|
58
58
|
notificationCategory?: string | null;
|
|
@@ -20,9 +20,9 @@ export interface OrderLineVariant {
|
|
|
20
20
|
* Request model for creating an order line variant
|
|
21
21
|
*/
|
|
22
22
|
export interface CreateOrderLineVariantRequest {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
lineID: number;
|
|
24
|
+
variantID?: number | null;
|
|
25
|
+
variantCategoryID?: number | null;
|
|
26
26
|
categoryName: string;
|
|
27
27
|
name: string;
|
|
28
28
|
additionalPrice: number;
|
|
@@ -21,13 +21,13 @@ export interface ShopPlaceOrderRequest {
|
|
|
21
21
|
* Request model for an order line in a shop order
|
|
22
22
|
*/
|
|
23
23
|
export interface ShopOrderLineRequest {
|
|
24
|
-
|
|
24
|
+
productID: number;
|
|
25
25
|
productCode?: string | null;
|
|
26
26
|
productDescription?: string | null;
|
|
27
27
|
quantity: number;
|
|
28
28
|
unitPrice: number;
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
vendorID?: number | null;
|
|
30
|
+
variantID?: number | null;
|
|
31
31
|
variantName?: string | null;
|
|
32
32
|
variantValue?: string | null;
|
|
33
33
|
basePrice?: number | null;
|
|
@@ -39,7 +39,7 @@ export interface ShopOrderLineRequest {
|
|
|
39
39
|
* Request model for a variant in a shop order line
|
|
40
40
|
*/
|
|
41
41
|
export interface ShopOrderLineVariantRequest {
|
|
42
|
-
|
|
42
|
+
variantID?: number | null;
|
|
43
43
|
variantCategoryId?: number | null;
|
|
44
44
|
categoryName: string;
|
|
45
45
|
name: string;
|
|
@@ -50,8 +50,8 @@ export interface ShopOrderLineVariantRequest {
|
|
|
50
50
|
* Request model for an add-on in a shop order line
|
|
51
51
|
*/
|
|
52
52
|
export interface ShopOrderLineAddOnRequest {
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
addOnID: number;
|
|
54
|
+
addOnCategoryID?: number | null;
|
|
55
55
|
name: string;
|
|
56
56
|
additionalPrice: number;
|
|
57
57
|
quantity: number;
|
|
@@ -62,8 +62,8 @@ export interface ShopOrderLineAddOnRequest {
|
|
|
62
62
|
export interface ShopOrderPaymentRequest {
|
|
63
63
|
amount: number;
|
|
64
64
|
paymentReference?: string | null;
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
statusID: number;
|
|
66
|
+
typeID: number;
|
|
67
67
|
transactionId?: string | null;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
@@ -45,10 +45,10 @@ export class OrderService extends CrudService {
|
|
|
45
45
|
*/
|
|
46
46
|
getFilteredRaw(filter) {
|
|
47
47
|
const params = new URLSearchParams();
|
|
48
|
-
if (filter.
|
|
49
|
-
params.append('statusId', String(filter.
|
|
50
|
-
if (filter.
|
|
51
|
-
params.append('locationId', String(filter.
|
|
48
|
+
if (filter.statusID !== undefined)
|
|
49
|
+
params.append('statusId', String(filter.statusID));
|
|
50
|
+
if (filter.locationID !== undefined)
|
|
51
|
+
params.append('locationId', String(filter.locationID));
|
|
52
52
|
if (filter.isProcessed !== undefined)
|
|
53
53
|
params.append('isProcessed', String(filter.isProcessed));
|
|
54
54
|
if (filter.referenceNo)
|