@cloudcommerce/app-loyalty-points 2.21.2 → 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.
@@ -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 | undefined;
7
- payment_instructions?: string | undefined;
6
+ payment_link?: string;
7
+ payment_instructions?: string;
8
8
  intermediator?: {
9
- transaction_id?: string | undefined;
10
- transaction_code?: string | undefined;
11
- transaction_reference?: string | undefined;
9
+ transaction_id?: string;
10
+ transaction_code?: string;
11
+ transaction_reference?: string;
12
12
  payment_method?: {
13
13
  code: string;
14
- name?: string | undefined;
15
- } | undefined;
16
- buyer_id?: string | undefined;
17
- } | undefined;
14
+ name?: string;
15
+ };
16
+ buyer_id?: string;
17
+ };
18
18
  credit_card?: {
19
- holder_name?: string | undefined;
20
- avs_result_code?: string | null | undefined;
21
- cvv_result_code?: string | null | undefined;
22
- bin?: number | undefined;
23
- company?: string | undefined;
24
- last_digits?: string | undefined;
25
- token?: string | undefined;
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" | undefined;
27
- } | undefined;
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 | undefined;
30
- valid_thru?: string | undefined;
31
- text_lines?: string[] | undefined;
32
- link?: string | undefined;
33
- } | undefined;
29
+ code?: string;
30
+ valid_thru?: string;
31
+ text_lines?: string[];
32
+ link?: string;
33
+ };
34
34
  loyalty_points?: {
35
- name?: string | undefined;
35
+ name?: string;
36
36
  program_id: string;
37
37
  points_value: number;
38
- ratio?: number | undefined;
39
- } | undefined;
38
+ ratio?: number;
39
+ };
40
40
  account_deposit?: {
41
- valid_thru?: string | undefined;
42
- text_lines?: string[] | undefined;
43
- } | undefined;
44
- currency_id?: string | undefined;
45
- currency_symbol?: string | undefined;
46
- discount?: number | undefined;
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 | undefined;
51
- tax?: boolean | undefined;
52
- total?: number | undefined;
53
- } | undefined;
50
+ value?: number;
51
+ tax?: boolean;
52
+ total?: number;
53
+ };
54
54
  creditor_fees?: {
55
- installment?: number | undefined;
56
- operational?: number | undefined;
57
- intermediation?: number | undefined;
58
- other?: number | undefined;
59
- } | undefined;
55
+ installment?: number;
56
+ operational?: number;
57
+ intermediation?: number;
58
+ other?: number;
59
+ };
60
60
  status?: {
61
- updated_at?: string | undefined;
62
- current: "paid" | "authorized" | "unauthorized" | "pending" | "under_analysis" | "in_dispute" | "refunded" | "voided" | "unknown";
63
- } | undefined;
64
- flags?: string[] | undefined;
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
- }[] | undefined;
69
- notes?: string | undefined;
68
+ }[];
69
+ notes?: string;
70
70
  };
71
71
  error?: undefined;
72
72
  message?: undefined;
@@ -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 | undefined;
9
- payment_instructions?: string | undefined;
8
+ payment_link?: string;
9
+ payment_instructions?: string;
10
10
  intermediator?: {
11
- transaction_id?: string | undefined;
12
- transaction_code?: string | undefined;
13
- transaction_reference?: string | undefined;
11
+ transaction_id?: string;
12
+ transaction_code?: string;
13
+ transaction_reference?: string;
14
14
  payment_method?: {
15
15
  code: string;
16
- name?: string | undefined;
17
- } | undefined;
18
- buyer_id?: string | undefined;
19
- } | undefined;
16
+ name?: string;
17
+ };
18
+ buyer_id?: string;
19
+ };
20
20
  credit_card?: {
21
- holder_name?: string | undefined;
22
- avs_result_code?: string | null | undefined;
23
- cvv_result_code?: string | null | undefined;
24
- bin?: number | undefined;
25
- company?: string | undefined;
26
- last_digits?: string | undefined;
27
- token?: string | undefined;
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" | undefined;
29
- } | undefined;
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 | undefined;
32
- valid_thru?: string | undefined;
33
- text_lines?: string[] | undefined;
34
- link?: string | undefined;
35
- } | undefined;
31
+ code?: string;
32
+ valid_thru?: string;
33
+ text_lines?: string[];
34
+ link?: string;
35
+ };
36
36
  loyalty_points?: {
37
- name?: string | undefined;
37
+ name?: string;
38
38
  program_id: string;
39
39
  points_value: number;
40
- ratio?: number | undefined;
41
- } | undefined;
40
+ ratio?: number;
41
+ };
42
42
  account_deposit?: {
43
- valid_thru?: string | undefined;
44
- text_lines?: string[] | undefined;
45
- } | undefined;
46
- currency_id?: string | undefined;
47
- currency_symbol?: string | undefined;
48
- discount?: number | undefined;
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 | undefined;
53
- tax?: boolean | undefined;
54
- total?: number | undefined;
55
- } | undefined;
52
+ value?: number;
53
+ tax?: boolean;
54
+ total?: number;
55
+ };
56
56
  creditor_fees?: {
57
- installment?: number | undefined;
58
- operational?: number | undefined;
59
- intermediation?: number | undefined;
60
- other?: number | undefined;
61
- } | undefined;
57
+ installment?: number;
58
+ operational?: number;
59
+ intermediation?: number;
60
+ other?: number;
61
+ };
62
62
  status?: {
63
- updated_at?: string | undefined;
64
- current: "paid" | "authorized" | "unauthorized" | "pending" | "under_analysis" | "in_dispute" | "refunded" | "voided" | "unknown";
65
- } | undefined;
66
- flags?: string[] | undefined;
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
- }[] | undefined;
71
- notes?: string | undefined;
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.2",
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.2",
31
- "@cloudcommerce/firebase": "2.21.2"
30
+ "@cloudcommerce/api": "2.21.4",
31
+ "@cloudcommerce/firebase": "2.21.4"
32
32
  },
33
33
  "devDependencies": {
34
- "@cloudcommerce/test-base": "2.21.2",
35
- "@cloudcommerce/types": "2.21.2"
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",