univapay-node 3.0.15 → 3.0.17

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.
@@ -77,33 +77,41 @@ export declare type BankTransferConfiguration = PaymentTypeConfiguration & {
77
77
  */
78
78
  maximumExtensionPeriod: string;
79
79
  /**
80
- * Whether to enable automatic extension when a charge expires
80
+ * Boolean when a charge should be auto-extended after expiration
81
81
  */
82
82
  automaticExtensionEnabled: boolean;
83
83
  /**
84
- * Notification when the bank account has been assigned to the transaction token
84
+ * 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
+ */
86
+ remindNotificationPeriod?: string;
87
+ /**
88
+ * Boolean when a charge request should be notified
85
89
  */
86
90
  chargeRequestNotificationEnabled: boolean;
87
91
  /**
88
- * Notification when the deposit was received for the transaction token
92
+ * Boolean when a deposit reception should be notified
89
93
  */
90
94
  depositReceivedNotificationEnabled: boolean;
91
95
  /**
92
- * Notification when the deposit was received for the transaction token was insufficient for the oldest charge
96
+ * Boolean when a deposit bellow the transaction value should be notified
93
97
  */
94
98
  depositInsufficientNotificationEnabled: boolean;
95
99
  /**
96
- * Notification when the deposit was received for the transaction token exceeded the requested amount for the oldest charge
100
+ * Boolean when a deposit exceeding the transaction value should be notified
97
101
  */
98
102
  depositExceededNotificationEnabled: boolean;
99
103
  /**
100
- * Whether to enable notification when a charge expiry is extended
104
+ * Boolean when a charge extension should be notified
101
105
  */
102
106
  extensionNotificationEnabled: boolean;
103
107
  /**
104
- * 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
108
+ * Boolean when a charge expiration should be notified
105
109
  */
106
- remindNotificationPeriod?: string;
110
+ chargeExpiredNotificationEnabled?: boolean;
111
+ /**
112
+ * Boolean when a charge cancel should be notified
113
+ */
114
+ chargeRequestCanceledNotificationEnabled?: boolean;
107
115
  };
108
116
  export interface InstallmentsConfiguration {
109
117
  enabled?: boolean;
@@ -77,33 +77,41 @@ export declare type BankTransferConfiguration = PaymentTypeConfiguration & {
77
77
  */
78
78
  maximumExtensionPeriod: string;
79
79
  /**
80
- * Whether to enable automatic extension when a charge expires
80
+ * Boolean when a charge should be auto-extended after expiration
81
81
  */
82
82
  automaticExtensionEnabled: boolean;
83
83
  /**
84
- * Notification when the bank account has been assigned to the transaction token
84
+ * 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
+ */
86
+ remindNotificationPeriod?: string;
87
+ /**
88
+ * Boolean when a charge request should be notified
85
89
  */
86
90
  chargeRequestNotificationEnabled: boolean;
87
91
  /**
88
- * Notification when the deposit was received for the transaction token
92
+ * Boolean when a deposit reception should be notified
89
93
  */
90
94
  depositReceivedNotificationEnabled: boolean;
91
95
  /**
92
- * Notification when the deposit was received for the transaction token was insufficient for the oldest charge
96
+ * Boolean when a deposit bellow the transaction value should be notified
93
97
  */
94
98
  depositInsufficientNotificationEnabled: boolean;
95
99
  /**
96
- * Notification when the deposit was received for the transaction token exceeded the requested amount for the oldest charge
100
+ * Boolean when a deposit exceeding the transaction value should be notified
97
101
  */
98
102
  depositExceededNotificationEnabled: boolean;
99
103
  /**
100
- * Whether to enable notification when a charge expiry is extended
104
+ * Boolean when a charge extension should be notified
101
105
  */
102
106
  extensionNotificationEnabled: boolean;
103
107
  /**
104
- * 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
108
+ * Boolean when a charge expiration should be notified
105
109
  */
106
- remindNotificationPeriod?: string;
110
+ chargeExpiredNotificationEnabled?: boolean;
111
+ /**
112
+ * Boolean when a charge cancel should be notified
113
+ */
114
+ chargeRequestCanceledNotificationEnabled?: boolean;
107
115
  };
108
116
  export interface InstallmentsConfiguration {
109
117
  enabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "univapay-node",
3
- "version": "3.0.15",
3
+ "version": "3.0.17",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,24 +38,24 @@
38
38
  "module"
39
39
  ],
40
40
  "devDependencies": {
41
- "@types/chai": "4.3.1",
41
+ "@types/chai": "4.3.3",
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
45
  "@types/jsonwebtoken": "8.5.8",
46
46
  "@types/mocha": "9.1.1",
47
- "@types/node": "18.6.3",
47
+ "@types/node": "18.7.6",
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.32.0",
52
- "@typescript-eslint/parser": "5.32.0",
51
+ "@typescript-eslint/eslint-plugin": "5.33.1",
52
+ "@typescript-eslint/parser": "5.33.1",
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.21.0",
58
+ "eslint": "8.22.0",
59
59
  "eslint-config-prettier": "8.5.0",
60
60
  "eslint-plugin-prettier": "4.2.1",
61
61
  "eslint-plugin-simple-import-sort": "7.0.0",