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