@cloudcommerce/app-custom-payment 2.21.3 → 2.21.5

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" | "pending" | "under_analysis" | "authorized" | "unauthorized" | "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
  }>;
72
72
  export default _default;
@@ -4,69 +4,69 @@ export declare const createTransaction: (modBody: 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" | "pending" | "under_analysis" | "authorized" | "unauthorized" | "in_dispute" | "refunded" | "voided" | "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
  }>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cloudcommerce/app-custom-payment",
3
3
  "type": "module",
4
- "version": "2.21.3",
4
+ "version": "2.21.5",
5
5
  "description": "e-com.plus Cloud Commerce app for simple custom payment methods",
6
6
  "main": "lib/index.js",
7
7
  "files": [
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "homepage": "https://github.com/ecomplus/cloud-commerce/tree/main/packages/apps/custom-payment#readme",
24
24
  "dependencies": {
25
- "@cloudcommerce/api": "2.21.3"
25
+ "@cloudcommerce/api": "2.21.5"
26
26
  },
27
27
  "devDependencies": {
28
- "@cloudcommerce/types": "2.21.3"
28
+ "@cloudcommerce/types": "2.21.5"
29
29
  },
30
30
  "scripts": {
31
31
  "build": "bash ../../../scripts/build-lib.sh"