@globalpayments/js 4.1.11 → 4.1.14
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.
- package/README.md +1 -1
- package/config/rollup.js +2 -0
- package/package.json +5 -6
- package/types/common/constants.d.ts +2 -0
- package/types/common/enums.d.ts +41 -3
- package/types/credit-card/index.d.ts +1 -1
- package/types/internal/built-in-validations/field-validator.d.ts +4 -0
- package/types/internal/built-in-validations/helpers.d.ts +1 -0
- package/types/internal/built-in-validations/messages.d.ts +21 -0
- package/types/internal/gateways/gp-api/get-express-pay-base-url.d.ts +2 -0
- package/types/internal/gateways/index.d.ts +1 -0
- package/types/internal/lib/bank-selection/helpers.d.ts +6 -0
- package/types/internal/lib/card.d.ts +42 -2
- package/types/internal/lib/enums.d.ts +15 -2
- package/types/internal/lib/styles/bank-selection/common.d.ts +1 -1
- package/types/internal/lib/styles/built-in-validations/common.d.ts +2 -2
- package/types/internal/lib/styles/built-in-validations/gp-default.d.ts +4 -9
- package/types/internal/lib/styles/default.d.ts +40 -2
- package/types/internal/lib/styles/gp-default.d.ts +159 -19
- package/types/internal/lib/styles/gp-default2.d.ts +1776 -0
- package/types/internal/lib/styles/order-information/common.d.ts +1 -1
- package/types/internal/lib/styles/payment-methods/common.d.ts +32 -0
- package/types/internal/lib/styles/payment-methods/open-banking.d.ts +32 -0
- package/types/internal/lib/styles/simple.d.ts +0 -2
- package/types/internal/lib/styles/themes/brand-themes/base/base-theme.d.ts +153 -23
- package/types/internal/lib/translations/cs.d.ts +16 -0
- package/types/internal/lib/translations/de.d.ts +20 -0
- package/types/internal/lib/translations/el.d.ts +20 -0
- package/types/internal/lib/translations/en.d.ts +20 -0
- package/types/internal/lib/translations/es.d.ts +20 -0
- package/types/internal/lib/translations/et.d.ts +20 -0
- package/types/internal/lib/translations/fr.d.ts +20 -0
- package/types/internal/lib/translations/ga.d.ts +20 -0
- package/types/internal/lib/translations/hr.d.ts +20 -0
- package/types/internal/lib/translations/hu.d.ts +20 -0
- package/types/internal/lib/translations/it.d.ts +20 -0
- package/types/internal/lib/translations/ja.d.ts +20 -0
- package/types/internal/lib/translations/lv.d.ts +20 -0
- package/types/internal/lib/translations/mt.d.ts +20 -0
- package/types/internal/lib/translations/nl.d.ts +20 -0
- package/types/internal/lib/translations/pl.d.ts +20 -0
- package/types/internal/lib/translations/pt.d.ts +20 -0
- package/types/internal/lib/translations/ro.d.ts +20 -0
- package/types/internal/lib/translations/ru.d.ts +20 -0
- package/types/internal/lib/translations/sk.d.ts +20 -0
- package/types/internal/lib/translations/sl.d.ts +20 -0
- package/types/internal/lib/translations/sv.d.ts +20 -0
- package/types/internal/lib/translations/tr.d.ts +20 -0
- package/types/internal/lib/translations/uk.d.ts +20 -0
- package/types/internal/lib/translations/vi.d.ts +20 -0
- package/types/internal/lib/translations/zh.d.ts +20 -0
- package/types/lib/version.d.ts +1 -1
- package/types/tools/configure.d.ts +10 -0
- package/types/ui/form/index.d.ts +2033 -83
- package/types/ui/iframe-field/action-enable-submit-button.d.ts +1 -0
- package/types/ui/iframe-field/action-show-validation.d.ts +1 -1
- package/types/ui/iframe-field/action-validate-value.d.ts +1 -1
- package/types/ui/iframe-field/index.d.ts +4 -2
- package/types/ui/iframe-field/payment-methods/action-add.d.ts +1 -1
|
@@ -4,6 +4,26 @@ declare const lv: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const mt: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const nl: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const en: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const pt: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const ro: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const ru: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const sk: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const sl: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const sv: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const tr: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const uk: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const vi: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-cvv": string;
|
|
6
6
|
"card-holder-name": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
|
@@ -4,6 +4,26 @@ declare const zh: {
|
|
|
4
4
|
"card-expiration": string;
|
|
5
5
|
"card-holder-name": string;
|
|
6
6
|
"card-number": string;
|
|
7
|
+
"email-id": string;
|
|
8
|
+
"phone-number": string;
|
|
9
|
+
"billing-address": string;
|
|
10
|
+
country: string;
|
|
11
|
+
"shipping-address-country": string;
|
|
12
|
+
"shipping-address": string;
|
|
13
|
+
"shipping-name": string;
|
|
14
|
+
"country-code": string;
|
|
15
|
+
"billing-city": string;
|
|
16
|
+
"shipping-city": string;
|
|
17
|
+
"billing-state": string;
|
|
18
|
+
"shipping-state": string;
|
|
19
|
+
"billing-apt": string;
|
|
20
|
+
"shipping-apt": string;
|
|
21
|
+
"billing-postal-code": string;
|
|
22
|
+
"shipping-postal-code": string;
|
|
23
|
+
"apt-suite": string;
|
|
24
|
+
city: string;
|
|
25
|
+
state: string;
|
|
26
|
+
"postal-code": string;
|
|
7
27
|
submit: string;
|
|
8
28
|
};
|
|
9
29
|
values: {
|
package/types/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "4.1.
|
|
1
|
+
declare const _default: "4.1.14";
|
|
2
2
|
export default _default;
|
|
@@ -17,6 +17,7 @@ export interface IConfiguration extends IDictionary {
|
|
|
17
17
|
surcharge?: boolean;
|
|
18
18
|
};
|
|
19
19
|
merchantId?: string;
|
|
20
|
+
merchantManagementAccountId?: string;
|
|
20
21
|
account?: string;
|
|
21
22
|
hash?: (data: IDictionary) => Promise<IDictionary>;
|
|
22
23
|
customerExists?: boolean;
|
|
@@ -25,6 +26,8 @@ export interface IConfiguration extends IDictionary {
|
|
|
25
26
|
env?: string;
|
|
26
27
|
serviceURL?: string;
|
|
27
28
|
allowedCardTypes?: string[];
|
|
29
|
+
useNetworkToken?: boolean;
|
|
30
|
+
disablePayButton?: boolean;
|
|
28
31
|
apms?: {
|
|
29
32
|
allowedCardNetworks?: string[];
|
|
30
33
|
nonCardPayments?: IApmConfiguration;
|
|
@@ -105,6 +108,13 @@ export interface IConfiguration extends IDictionary {
|
|
|
105
108
|
orderReference: string;
|
|
106
109
|
currencyCode: string;
|
|
107
110
|
};
|
|
111
|
+
expressPay?: {
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
paymentUri: string;
|
|
114
|
+
cancelUri: string;
|
|
115
|
+
isShippingRequired?: boolean;
|
|
116
|
+
payButtonLabel?: string;
|
|
117
|
+
};
|
|
108
118
|
}
|
|
109
119
|
declare const _default: (options: IConfiguration) => void;
|
|
110
120
|
/**
|