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