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