univapay-node 3.0.17 → 3.0.19
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/dist/cjs/resources/Products.d.ts +7 -0
- package/dist/cjs/resources/Products.js.map +1 -1
- package/dist/cjs/resources/common/Configuration.d.ts +5 -1
- package/dist/esm/resources/Products.d.ts +7 -0
- package/dist/esm/resources/Products.js.map +1 -1
- package/dist/esm/resources/common/Configuration.d.ts +5 -1
- package/package.json +10 -10
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { AuthParams, SendData } from "../api/RestAPI.js";
|
|
5
5
|
import { CRUDResource } from "./CRUDResource.js";
|
|
6
|
+
import { SubscriptionPeriod } from "./Subscriptions.js";
|
|
6
7
|
import { TransactionTokenType } from "./TransactionTokens.js";
|
|
7
8
|
export declare type ProductItem = {
|
|
8
9
|
id: string;
|
|
@@ -16,6 +17,12 @@ export declare type ProductItem = {
|
|
|
16
17
|
tokenType: TransactionTokenType;
|
|
17
18
|
description?: string | null;
|
|
18
19
|
shippingFees?: number | null;
|
|
20
|
+
installmentCycles?: number;
|
|
21
|
+
subscriptionPeriod?: SubscriptionPeriod;
|
|
22
|
+
subscriptionInitialAmount?: number;
|
|
23
|
+
subscriptionStartDayOfMonth?: number;
|
|
24
|
+
subscriptionStartInMonths?: number;
|
|
25
|
+
subscriptionStartIn?: string;
|
|
19
26
|
createdOn: string;
|
|
20
27
|
updatedOn: string;
|
|
21
28
|
active: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Products.js","sourceRoot":"","sources":["../../../src/resources/Products.ts"],"names":[],"mappings":";;;AAKA,uDAAiD;
|
|
1
|
+
{"version":3,"file":"Products.js","sourceRoot":"","sources":["../../../src/resources/Products.ts"],"names":[],"mappings":";;;AAKA,uDAAiD;AAiCjD,MAAa,QAAS,SAAQ,8BAAY;IAItC,GAAG,CAAC,EAAU,EAAE,IAAqB,EAAE,IAAiB;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;;AAPL,4BAQC;AAPU,kBAAS,GAAG,oBAAoB,CAAC"}
|
|
@@ -80,10 +80,14 @@ export declare type BankTransferConfiguration = PaymentTypeConfiguration & {
|
|
|
80
80
|
* Boolean when a charge should be auto-extended after expiration
|
|
81
81
|
*/
|
|
82
82
|
automaticExtensionEnabled: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Boolean when a reminder email should be sent
|
|
85
|
+
*/
|
|
86
|
+
remindNotificationEnabled: boolean;
|
|
83
87
|
/**
|
|
84
88
|
* Period (e.g P1DT9H) How long before the charge expiry to send to the customer the charge expiry reminder email template. If none, no reminder is sent
|
|
85
89
|
*/
|
|
86
|
-
remindNotificationPeriod
|
|
90
|
+
remindNotificationPeriod: string;
|
|
87
91
|
/**
|
|
88
92
|
* Boolean when a charge request should be notified
|
|
89
93
|
*/
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { AuthParams, SendData } from "../api/RestAPI.js";
|
|
5
5
|
import { CRUDResource } from "./CRUDResource.js";
|
|
6
|
+
import { SubscriptionPeriod } from "./Subscriptions.js";
|
|
6
7
|
import { TransactionTokenType } from "./TransactionTokens.js";
|
|
7
8
|
export declare type ProductItem = {
|
|
8
9
|
id: string;
|
|
@@ -16,6 +17,12 @@ export declare type ProductItem = {
|
|
|
16
17
|
tokenType: TransactionTokenType;
|
|
17
18
|
description?: string | null;
|
|
18
19
|
shippingFees?: number | null;
|
|
20
|
+
installmentCycles?: number;
|
|
21
|
+
subscriptionPeriod?: SubscriptionPeriod;
|
|
22
|
+
subscriptionInitialAmount?: number;
|
|
23
|
+
subscriptionStartDayOfMonth?: number;
|
|
24
|
+
subscriptionStartInMonths?: number;
|
|
25
|
+
subscriptionStartIn?: string;
|
|
19
26
|
createdOn: string;
|
|
20
27
|
updatedOn: string;
|
|
21
28
|
active: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Products.js","sourceRoot":"","sources":["../../../src/resources/Products.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"Products.js","sourceRoot":"","sources":["../../../src/resources/Products.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAiCjD,MAAM,OAAO,QAAS,SAAQ,YAAY;IAItC,GAAG,CAAC,EAAU,EAAE,IAAqB,EAAE,IAAiB;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;;AANM,kBAAS,GAAG,oBAAoB,CAAC"}
|
|
@@ -80,10 +80,14 @@ export declare type BankTransferConfiguration = PaymentTypeConfiguration & {
|
|
|
80
80
|
* Boolean when a charge should be auto-extended after expiration
|
|
81
81
|
*/
|
|
82
82
|
automaticExtensionEnabled: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Boolean when a reminder email should be sent
|
|
85
|
+
*/
|
|
86
|
+
remindNotificationEnabled: boolean;
|
|
83
87
|
/**
|
|
84
88
|
* Period (e.g P1DT9H) How long before the charge expiry to send to the customer the charge expiry reminder email template. If none, no reminder is sent
|
|
85
89
|
*/
|
|
86
|
-
remindNotificationPeriod
|
|
90
|
+
remindNotificationPeriod: string;
|
|
87
91
|
/**
|
|
88
92
|
* Boolean when a charge request should be notified
|
|
89
93
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "univapay-node",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.19",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,23 +42,23 @@
|
|
|
42
42
|
"@types/chai-arrays": "2.0.0",
|
|
43
43
|
"@types/chai-as-promised": "7.1.5",
|
|
44
44
|
"@types/fetch-mock": "7.3.5",
|
|
45
|
-
"@types/jsonwebtoken": "8.5.
|
|
45
|
+
"@types/jsonwebtoken": "8.5.9",
|
|
46
46
|
"@types/mocha": "9.1.1",
|
|
47
|
-
"@types/node": "18.7.
|
|
47
|
+
"@types/node": "18.7.18",
|
|
48
48
|
"@types/sinon": "10.0.13",
|
|
49
49
|
"@types/sinon-chai": "3.2.8",
|
|
50
50
|
"@types/uuid": "8.3.4",
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
52
|
-
"@typescript-eslint/parser": "5.
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "5.38.0",
|
|
52
|
+
"@typescript-eslint/parser": "5.38.0",
|
|
53
53
|
"c8": "^7.12.0",
|
|
54
54
|
"chai": "4.3.6",
|
|
55
55
|
"chai-arrays": "2.2.0",
|
|
56
56
|
"chai-as-promised": "7.1.1",
|
|
57
57
|
"cross-fetch": "3.1.5",
|
|
58
|
-
"eslint": "8.
|
|
58
|
+
"eslint": "8.23.1",
|
|
59
59
|
"eslint-config-prettier": "8.5.0",
|
|
60
60
|
"eslint-plugin-prettier": "4.2.1",
|
|
61
|
-
"eslint-plugin-simple-import-sort": "
|
|
61
|
+
"eslint-plugin-simple-import-sort": "8.0.0",
|
|
62
62
|
"fetch-mock": "9.11.0",
|
|
63
63
|
"husky": "8.0.1",
|
|
64
64
|
"isomorphic-form-data": "2.0.0",
|
|
@@ -73,10 +73,10 @@
|
|
|
73
73
|
"sinon": "14.0.0",
|
|
74
74
|
"sinon-chai": "3.7.0",
|
|
75
75
|
"ts-node": "10.9.1",
|
|
76
|
-
"typedoc": "0.23.
|
|
76
|
+
"typedoc": "0.23.15",
|
|
77
77
|
"typedoc-plugin-internal-external": "2.2.0",
|
|
78
|
-
"typescript": "4.
|
|
79
|
-
"uuid": "
|
|
78
|
+
"typescript": "4.8.3",
|
|
79
|
+
"uuid": "9.0.0"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@apimatic/json-bigint": "^1.2.0",
|