@cloudcommerce/app-paghiper 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.
@@ -1,4 +1,3 @@
1
- /// <reference types="express" />
2
1
  import type { Request, Response } from 'firebase-functions';
3
2
  declare const _default: (req: Request, res: Response) => Promise<Response<any>>;
4
3
  export default _default;
@@ -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 | undefined;
10
- payment_instructions?: string | undefined;
9
+ payment_link?: string;
10
+ payment_instructions?: string;
11
11
  intermediator?: {
12
- transaction_id?: string | undefined;
13
- transaction_code?: string | undefined;
14
- transaction_reference?: string | undefined;
12
+ transaction_id?: string;
13
+ transaction_code?: string;
14
+ transaction_reference?: string;
15
15
  payment_method?: {
16
16
  code: string;
17
- name?: string | undefined;
18
- } | undefined;
19
- buyer_id?: string | undefined;
20
- } | undefined;
17
+ name?: string;
18
+ };
19
+ buyer_id?: string;
20
+ };
21
21
  credit_card?: {
22
- holder_name?: string | undefined;
23
- avs_result_code?: string | null | undefined;
24
- cvv_result_code?: string | null | undefined;
25
- bin?: number | undefined;
26
- company?: string | undefined;
27
- last_digits?: string | undefined;
28
- token?: string | undefined;
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" | undefined;
30
- } | undefined;
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 | undefined;
33
- valid_thru?: string | undefined;
34
- text_lines?: string[] | undefined;
35
- link?: string | undefined;
36
- } | undefined;
32
+ code?: string;
33
+ valid_thru?: string;
34
+ text_lines?: string[];
35
+ link?: string;
36
+ };
37
37
  loyalty_points?: {
38
- name?: string | undefined;
38
+ name?: string;
39
39
  program_id: string;
40
40
  points_value: number;
41
- ratio?: number | undefined;
42
- } | undefined;
41
+ ratio?: number;
42
+ };
43
43
  account_deposit?: {
44
- valid_thru?: string | undefined;
45
- text_lines?: string[] | undefined;
46
- } | undefined;
47
- currency_id?: string | undefined;
48
- currency_symbol?: string | undefined;
49
- discount?: number | undefined;
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 | undefined;
54
- tax?: boolean | undefined;
55
- total?: number | undefined;
56
- } | undefined;
53
+ value?: number;
54
+ tax?: boolean;
55
+ total?: number;
56
+ };
57
57
  creditor_fees?: {
58
- installment?: number | undefined;
59
- operational?: number | undefined;
60
- intermediation?: number | undefined;
61
- other?: number | undefined;
62
- } | undefined;
58
+ installment?: number;
59
+ operational?: number;
60
+ intermediation?: number;
61
+ other?: number;
62
+ };
63
63
  status?: {
64
- updated_at?: string | undefined;
65
- current: "paid" | "pending" | "refunded" | "voided" | "under_analysis" | "authorized" | "unauthorized" | "in_dispute" | "unknown";
66
- } | undefined;
67
- flags?: string[] | undefined;
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
- }[] | undefined;
72
- notes?: string | undefined;
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 | undefined;
16
- payment_instructions?: string | undefined;
15
+ payment_link?: string;
16
+ payment_instructions?: string;
17
17
  intermediator?: {
18
- transaction_id?: string | undefined;
19
- transaction_code?: string | undefined;
20
- transaction_reference?: string | undefined;
18
+ transaction_id?: string;
19
+ transaction_code?: string;
20
+ transaction_reference?: string;
21
21
  payment_method?: {
22
22
  code: string;
23
- name?: string | undefined;
24
- } | undefined;
25
- buyer_id?: string | undefined;
26
- } | undefined;
23
+ name?: string;
24
+ };
25
+ buyer_id?: string;
26
+ };
27
27
  credit_card?: {
28
- holder_name?: string | undefined;
29
- avs_result_code?: string | null | undefined;
30
- cvv_result_code?: string | null | undefined;
31
- bin?: number | undefined;
32
- company?: string | undefined;
33
- last_digits?: string | undefined;
34
- token?: string | undefined;
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" | undefined;
36
- } | undefined;
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 | undefined;
39
- valid_thru?: string | undefined;
40
- text_lines?: string[] | undefined;
41
- link?: string | undefined;
42
- } | undefined;
38
+ code?: string;
39
+ valid_thru?: string;
40
+ text_lines?: string[];
41
+ link?: string;
42
+ };
43
43
  loyalty_points?: {
44
- name?: string | undefined;
44
+ name?: string;
45
45
  program_id: string;
46
46
  points_value: number;
47
- ratio?: number | undefined;
48
- } | undefined;
47
+ ratio?: number;
48
+ };
49
49
  account_deposit?: {
50
- valid_thru?: string | undefined;
51
- text_lines?: string[] | undefined;
52
- } | undefined;
53
- currency_id?: string | undefined;
54
- currency_symbol?: string | undefined;
55
- discount?: number | undefined;
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 | undefined;
60
- tax?: boolean | undefined;
61
- total?: number | undefined;
62
- } | undefined;
59
+ value?: number;
60
+ tax?: boolean;
61
+ total?: number;
62
+ };
63
63
  creditor_fees?: {
64
- installment?: number | undefined;
65
- operational?: number | undefined;
66
- intermediation?: number | undefined;
67
- other?: number | undefined;
68
- } | undefined;
64
+ installment?: number;
65
+ operational?: number;
66
+ intermediation?: number;
67
+ other?: number;
68
+ };
69
69
  status?: {
70
- updated_at?: string | undefined;
71
- current: "paid" | "pending" | "refunded" | "voided" | "under_analysis" | "authorized" | "unauthorized" | "in_dispute" | "unknown";
72
- } | undefined;
73
- flags?: string[] | undefined;
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
- }[] | undefined;
78
- notes?: string | undefined;
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.3",
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": {
@@ -29,12 +29,12 @@
29
29
  "axios": "^1.7.2",
30
30
  "firebase-admin": "^12.2.0",
31
31
  "firebase-functions": "^5.0.1",
32
- "@cloudcommerce/api": "2.21.3",
33
- "@cloudcommerce/firebase": "2.21.3"
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.3"
37
+ "@cloudcommerce/types": "2.21.4"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "bash ../../../scripts/build-lib.sh"