@cloudcommerce/app-loyalty-points 2.21.3 → 2.21.4
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/lib/loyalty-create-transaction.d.ts +47 -47
- package/lib/loyalty-points.d.ts +47 -47
- package/package.json +5 -5
|
@@ -3,70 +3,70 @@ declare const _default: (appData: AppModuleBody) => Promise<{
|
|
|
3
3
|
status: number;
|
|
4
4
|
redirect_to_payment: boolean;
|
|
5
5
|
transaction: {
|
|
6
|
-
payment_link?: string
|
|
7
|
-
payment_instructions?: string
|
|
6
|
+
payment_link?: string;
|
|
7
|
+
payment_instructions?: string;
|
|
8
8
|
intermediator?: {
|
|
9
|
-
transaction_id?: string
|
|
10
|
-
transaction_code?: string
|
|
11
|
-
transaction_reference?: string
|
|
9
|
+
transaction_id?: string;
|
|
10
|
+
transaction_code?: string;
|
|
11
|
+
transaction_reference?: string;
|
|
12
12
|
payment_method?: {
|
|
13
13
|
code: string;
|
|
14
|
-
name?: string
|
|
15
|
-
}
|
|
16
|
-
buyer_id?: string
|
|
17
|
-
}
|
|
14
|
+
name?: string;
|
|
15
|
+
};
|
|
16
|
+
buyer_id?: string;
|
|
17
|
+
};
|
|
18
18
|
credit_card?: {
|
|
19
|
-
holder_name?: string
|
|
20
|
-
avs_result_code?: string | null
|
|
21
|
-
cvv_result_code?: string | null
|
|
22
|
-
bin?: number
|
|
23
|
-
company?: string
|
|
24
|
-
last_digits?: string
|
|
25
|
-
token?: string
|
|
26
|
-
error_code?: "incorrect_number" | "invalid_number" | "invalid_expiry_date" | "invalid_cvc" | "expired_card" | "incorrect_cvc" | "incorrect_zip" | "incorrect_address" | "card_declined" | "processing_error" | "call_issuer" | "pick_up_card"
|
|
27
|
-
}
|
|
19
|
+
holder_name?: string;
|
|
20
|
+
avs_result_code?: string | null;
|
|
21
|
+
cvv_result_code?: string | null;
|
|
22
|
+
bin?: number;
|
|
23
|
+
company?: string;
|
|
24
|
+
last_digits?: string;
|
|
25
|
+
token?: string;
|
|
26
|
+
error_code?: "incorrect_number" | "invalid_number" | "invalid_expiry_date" | "invalid_cvc" | "expired_card" | "incorrect_cvc" | "incorrect_zip" | "incorrect_address" | "card_declined" | "processing_error" | "call_issuer" | "pick_up_card";
|
|
27
|
+
};
|
|
28
28
|
banking_billet?: {
|
|
29
|
-
code?: string
|
|
30
|
-
valid_thru?: string
|
|
31
|
-
text_lines?: string[]
|
|
32
|
-
link?: string
|
|
33
|
-
}
|
|
29
|
+
code?: string;
|
|
30
|
+
valid_thru?: string;
|
|
31
|
+
text_lines?: string[];
|
|
32
|
+
link?: string;
|
|
33
|
+
};
|
|
34
34
|
loyalty_points?: {
|
|
35
|
-
name?: string
|
|
35
|
+
name?: string;
|
|
36
36
|
program_id: string;
|
|
37
37
|
points_value: number;
|
|
38
|
-
ratio?: number
|
|
39
|
-
}
|
|
38
|
+
ratio?: number;
|
|
39
|
+
};
|
|
40
40
|
account_deposit?: {
|
|
41
|
-
valid_thru?: string
|
|
42
|
-
text_lines?: string[]
|
|
43
|
-
}
|
|
44
|
-
currency_id?: string
|
|
45
|
-
currency_symbol?: string
|
|
46
|
-
discount?: number
|
|
41
|
+
valid_thru?: string;
|
|
42
|
+
text_lines?: string[];
|
|
43
|
+
};
|
|
44
|
+
currency_id?: string;
|
|
45
|
+
currency_symbol?: string;
|
|
46
|
+
discount?: number;
|
|
47
47
|
amount: number;
|
|
48
48
|
installments?: {
|
|
49
49
|
number: number;
|
|
50
|
-
value?: number
|
|
51
|
-
tax?: boolean
|
|
52
|
-
total?: number
|
|
53
|
-
}
|
|
50
|
+
value?: number;
|
|
51
|
+
tax?: boolean;
|
|
52
|
+
total?: number;
|
|
53
|
+
};
|
|
54
54
|
creditor_fees?: {
|
|
55
|
-
installment?: number
|
|
56
|
-
operational?: number
|
|
57
|
-
intermediation?: number
|
|
58
|
-
other?: number
|
|
59
|
-
}
|
|
55
|
+
installment?: number;
|
|
56
|
+
operational?: number;
|
|
57
|
+
intermediation?: number;
|
|
58
|
+
other?: number;
|
|
59
|
+
};
|
|
60
60
|
status?: {
|
|
61
|
-
updated_at?: string
|
|
62
|
-
current: "
|
|
63
|
-
}
|
|
64
|
-
flags?: string[]
|
|
61
|
+
updated_at?: string;
|
|
62
|
+
current: "pending" | "under_analysis" | "authorized" | "unauthorized" | "paid" | "in_dispute" | "refunded" | "voided" | "unknown";
|
|
63
|
+
};
|
|
64
|
+
flags?: string[];
|
|
65
65
|
custom_fields?: {
|
|
66
66
|
field: string;
|
|
67
67
|
value: string;
|
|
68
|
-
}[]
|
|
69
|
-
notes?: string
|
|
68
|
+
}[];
|
|
69
|
+
notes?: string;
|
|
70
70
|
};
|
|
71
71
|
error?: undefined;
|
|
72
72
|
message?: undefined;
|
package/lib/loyalty-points.d.ts
CHANGED
|
@@ -5,70 +5,70 @@ export declare const createTransaction: (modBody: AppModuleBody) => Promise<{
|
|
|
5
5
|
status: number;
|
|
6
6
|
redirect_to_payment: boolean;
|
|
7
7
|
transaction: {
|
|
8
|
-
payment_link?: string
|
|
9
|
-
payment_instructions?: string
|
|
8
|
+
payment_link?: string;
|
|
9
|
+
payment_instructions?: string;
|
|
10
10
|
intermediator?: {
|
|
11
|
-
transaction_id?: string
|
|
12
|
-
transaction_code?: string
|
|
13
|
-
transaction_reference?: string
|
|
11
|
+
transaction_id?: string;
|
|
12
|
+
transaction_code?: string;
|
|
13
|
+
transaction_reference?: string;
|
|
14
14
|
payment_method?: {
|
|
15
15
|
code: string;
|
|
16
|
-
name?: string
|
|
17
|
-
}
|
|
18
|
-
buyer_id?: string
|
|
19
|
-
}
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
buyer_id?: string;
|
|
19
|
+
};
|
|
20
20
|
credit_card?: {
|
|
21
|
-
holder_name?: string
|
|
22
|
-
avs_result_code?: string | null
|
|
23
|
-
cvv_result_code?: string | null
|
|
24
|
-
bin?: number
|
|
25
|
-
company?: string
|
|
26
|
-
last_digits?: string
|
|
27
|
-
token?: string
|
|
28
|
-
error_code?: "incorrect_number" | "invalid_number" | "invalid_expiry_date" | "invalid_cvc" | "expired_card" | "incorrect_cvc" | "incorrect_zip" | "incorrect_address" | "card_declined" | "processing_error" | "call_issuer" | "pick_up_card"
|
|
29
|
-
}
|
|
21
|
+
holder_name?: string;
|
|
22
|
+
avs_result_code?: string | null;
|
|
23
|
+
cvv_result_code?: string | null;
|
|
24
|
+
bin?: number;
|
|
25
|
+
company?: string;
|
|
26
|
+
last_digits?: string;
|
|
27
|
+
token?: string;
|
|
28
|
+
error_code?: "incorrect_number" | "invalid_number" | "invalid_expiry_date" | "invalid_cvc" | "expired_card" | "incorrect_cvc" | "incorrect_zip" | "incorrect_address" | "card_declined" | "processing_error" | "call_issuer" | "pick_up_card";
|
|
29
|
+
};
|
|
30
30
|
banking_billet?: {
|
|
31
|
-
code?: string
|
|
32
|
-
valid_thru?: string
|
|
33
|
-
text_lines?: string[]
|
|
34
|
-
link?: string
|
|
35
|
-
}
|
|
31
|
+
code?: string;
|
|
32
|
+
valid_thru?: string;
|
|
33
|
+
text_lines?: string[];
|
|
34
|
+
link?: string;
|
|
35
|
+
};
|
|
36
36
|
loyalty_points?: {
|
|
37
|
-
name?: string
|
|
37
|
+
name?: string;
|
|
38
38
|
program_id: string;
|
|
39
39
|
points_value: number;
|
|
40
|
-
ratio?: number
|
|
41
|
-
}
|
|
40
|
+
ratio?: number;
|
|
41
|
+
};
|
|
42
42
|
account_deposit?: {
|
|
43
|
-
valid_thru?: string
|
|
44
|
-
text_lines?: string[]
|
|
45
|
-
}
|
|
46
|
-
currency_id?: string
|
|
47
|
-
currency_symbol?: string
|
|
48
|
-
discount?: number
|
|
43
|
+
valid_thru?: string;
|
|
44
|
+
text_lines?: string[];
|
|
45
|
+
};
|
|
46
|
+
currency_id?: string;
|
|
47
|
+
currency_symbol?: string;
|
|
48
|
+
discount?: number;
|
|
49
49
|
amount: number;
|
|
50
50
|
installments?: {
|
|
51
51
|
number: number;
|
|
52
|
-
value?: number
|
|
53
|
-
tax?: boolean
|
|
54
|
-
total?: number
|
|
55
|
-
}
|
|
52
|
+
value?: number;
|
|
53
|
+
tax?: boolean;
|
|
54
|
+
total?: number;
|
|
55
|
+
};
|
|
56
56
|
creditor_fees?: {
|
|
57
|
-
installment?: number
|
|
58
|
-
operational?: number
|
|
59
|
-
intermediation?: number
|
|
60
|
-
other?: number
|
|
61
|
-
}
|
|
57
|
+
installment?: number;
|
|
58
|
+
operational?: number;
|
|
59
|
+
intermediation?: number;
|
|
60
|
+
other?: number;
|
|
61
|
+
};
|
|
62
62
|
status?: {
|
|
63
|
-
updated_at?: string
|
|
64
|
-
current: "
|
|
65
|
-
}
|
|
66
|
-
flags?: string[]
|
|
63
|
+
updated_at?: string;
|
|
64
|
+
current: "pending" | "under_analysis" | "authorized" | "unauthorized" | "paid" | "in_dispute" | "refunded" | "voided" | "unknown";
|
|
65
|
+
};
|
|
66
|
+
flags?: string[];
|
|
67
67
|
custom_fields?: {
|
|
68
68
|
field: string;
|
|
69
69
|
value: string;
|
|
70
|
-
}[]
|
|
71
|
-
notes?: string
|
|
70
|
+
}[];
|
|
71
|
+
notes?: string;
|
|
72
72
|
};
|
|
73
73
|
error?: undefined;
|
|
74
74
|
message?: undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudcommerce/app-loyalty-points",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.21.
|
|
4
|
+
"version": "2.21.4",
|
|
5
5
|
"description": "e-com.plus Cloud Commerce app to handle simple loyalty points programs",
|
|
6
6
|
"main": "lib/loyalty-points.js",
|
|
7
7
|
"files": [
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/apps/loyalty-points#readme",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ecomplus/utils": "1.5.0-rc.6",
|
|
30
|
-
"@cloudcommerce/api": "2.21.
|
|
31
|
-
"@cloudcommerce/firebase": "2.21.
|
|
30
|
+
"@cloudcommerce/api": "2.21.4",
|
|
31
|
+
"@cloudcommerce/firebase": "2.21.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@cloudcommerce/test-base": "2.21.
|
|
35
|
-
"@cloudcommerce/types": "2.21.
|
|
34
|
+
"@cloudcommerce/test-base": "2.21.4",
|
|
35
|
+
"@cloudcommerce/types": "2.21.4"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "bash ../../../scripts/build-lib.sh",
|