@bash-app/bash-common 29.32.0 → 29.33.0
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/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -19,7 +19,8 @@ export type ServiceCancelationPolicyMap = {
|
|
|
19
19
|
export const ServiceCancelationPolicyData: ServiceCancelationPolicyMap = {
|
|
20
20
|
[ServiceCancelationPolicyOption.None]: {
|
|
21
21
|
name: "None",
|
|
22
|
-
refundPolicy: []
|
|
22
|
+
refundPolicy: [],
|
|
23
|
+
description: "No cancelation policy."
|
|
23
24
|
},
|
|
24
25
|
[ServiceCancelationPolicyOption.VeryFlexible]: {
|
|
25
26
|
name: "Very Flexible",
|
|
@@ -94,7 +95,7 @@ function generateDescription(refundPolicy: ServiceCancelationRefundPolicy[]): st
|
|
|
94
95
|
return descriptions.join(" ");
|
|
95
96
|
}
|
|
96
97
|
|
|
97
|
-
Object.keys(ServiceCancelationPolicyData).forEach((policyKey) => {
|
|
98
|
+
Object.keys(ServiceCancelationPolicyData).filter((policyKey) => policyKey as ServiceCancelationPolicyOption != ServiceCancelationPolicyOption.None).forEach((policyKey) => {
|
|
98
99
|
const policy = ServiceCancelationPolicyData[policyKey as ServiceCancelationPolicyOption];
|
|
99
100
|
policy.description = generateDescription(policy.refundPolicy);
|
|
100
101
|
});
|