univapay-node 4.0.13 → 4.0.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.
@@ -167,6 +167,10 @@ export interface SecurityConfiguration {
167
167
  };
168
168
  refundPercentLimit?: number;
169
169
  minRefundThreshold?: number;
170
+ cardChargeCooldown?: string;
171
+ subscriptionCooldown?: string;
172
+ idempotentCardChargeCooldown?: string;
173
+ idempotentSubscriptionCooldown?: string;
170
174
  }
171
175
  export interface UserTransactionsConfiguration {
172
176
  enabled?: boolean;
@@ -27,6 +27,12 @@ export interface PlatformUserDefaults {
27
27
  taggedPlatformCredentialsEnabled: boolean;
28
28
  minRefundThreshold: number;
29
29
  subscriptionPlanConfiguration: SubscriptionPlanConfiguration;
30
+ securityConfiguration?: {
31
+ cardChargeCooldown?: string;
32
+ subscriptionCooldown?: string;
33
+ idempotentCardChargeCooldown?: string;
34
+ idempotentSubscriptionCooldown?: string;
35
+ };
30
36
  }
31
37
  export interface PlatformPaymentDefaults {
32
38
  cardsEnabled: boolean;
@@ -167,6 +167,10 @@ export interface SecurityConfiguration {
167
167
  };
168
168
  refundPercentLimit?: number;
169
169
  minRefundThreshold?: number;
170
+ cardChargeCooldown?: string;
171
+ subscriptionCooldown?: string;
172
+ idempotentCardChargeCooldown?: string;
173
+ idempotentSubscriptionCooldown?: string;
170
174
  }
171
175
  export interface UserTransactionsConfiguration {
172
176
  enabled?: boolean;
@@ -27,6 +27,12 @@ export interface PlatformUserDefaults {
27
27
  taggedPlatformCredentialsEnabled: boolean;
28
28
  minRefundThreshold: number;
29
29
  subscriptionPlanConfiguration: SubscriptionPlanConfiguration;
30
+ securityConfiguration?: {
31
+ cardChargeCooldown?: string;
32
+ subscriptionCooldown?: string;
33
+ idempotentCardChargeCooldown?: string;
34
+ idempotentSubscriptionCooldown?: string;
35
+ };
30
36
  }
31
37
  export interface PlatformPaymentDefaults {
32
38
  cardsEnabled: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "univapay-node",
3
- "version": "4.0.13",
3
+ "version": "4.0.14",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -39,23 +39,23 @@
39
39
  ],
40
40
  "devDependencies": {
41
41
  "@types/chai": "^4.3.6",
42
- "@types/chai-arrays": "^2.0.0",
42
+ "@types/chai-arrays": "^2.0.1",
43
43
  "@types/chai-as-promised": "^7.1.6",
44
- "@types/fetch-mock": "^7.3.5",
44
+ "@types/fetch-mock": "^7.3.6",
45
45
  "@types/jsonwebtoken": "^9.0.3",
46
- "@types/mocha": "^10.0.1",
47
- "@types/node": "^20.6.2",
46
+ "@types/mocha": "^10.0.2",
47
+ "@types/node": "^20.6.5",
48
48
  "@types/sinon": "^10.0.16",
49
- "@types/sinon-chai": "^3.2.9",
49
+ "@types/sinon-chai": "^3.2.10",
50
50
  "@types/uuid": "^9.0.3",
51
- "@typescript-eslint/eslint-plugin": "^6.7.2",
52
- "@typescript-eslint/parser": "^6.7.2",
51
+ "@typescript-eslint/eslint-plugin": "^6.7.4",
52
+ "@typescript-eslint/parser": "^6.7.4",
53
53
  "c8": "^8.0.1",
54
54
  "chai": "^4.3.8",
55
55
  "chai-arrays": "^2.2.0",
56
56
  "chai-as-promised": "^7.1.1",
57
57
  "cross-fetch": "^4.0.0",
58
- "eslint": "^8.49.0",
58
+ "eslint": "^8.50.0",
59
59
  "eslint-config-prettier": "^9.0.0",
60
60
  "eslint-plugin-prettier": "^5.0.0",
61
61
  "eslint-plugin-simple-import-sort": "^10.0.0",