pds-dev-kit-web 2.2.203 → 2.2.204
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.
|
@@ -30,7 +30,7 @@ exports.DEFAULT_CURRENCY_PRICE_POLICIES = (_a = {},
|
|
|
30
30
|
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.USD],
|
|
31
31
|
minPayment: { amount: 5, currency: types_1.CurrencyCode.USD },
|
|
32
32
|
maxPayment: { amount: 10000.0, currency: types_1.CurrencyCode.USD },
|
|
33
|
-
paymentUnit:
|
|
33
|
+
paymentUnit: 0.01
|
|
34
34
|
},
|
|
35
35
|
_a[types_1.CurrencyCode.JPY] = {
|
|
36
36
|
currency: types_1.CURRENCY_MAP[types_1.CurrencyCode.JPY],
|
|
@@ -51,6 +51,7 @@ var react_i18next_1 = require("react-i18next");
|
|
|
51
51
|
var types_1 = require("../../../common/types");
|
|
52
52
|
var clickTypeSystemUICssGenerator_1 = __importDefault(require("../../../common/utils/SystemUIPositionGenerator/clickTypeSystemUICssGenerator"));
|
|
53
53
|
var pricing_1 = require("../../../core/pricing");
|
|
54
|
+
var policy_1 = require("../../../core/pricing/policy");
|
|
54
55
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
55
56
|
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
56
57
|
var hybrid_1 = require("../../../hybrid");
|
|
@@ -87,7 +88,7 @@ function PriceTextField(_a) {
|
|
|
87
88
|
validationConfig.validate = {};
|
|
88
89
|
// Min validation (기본값: KRW 300, USD 5)
|
|
89
90
|
validationConfig.validate.min = function (value) {
|
|
90
|
-
var minAmount = baseCurrency
|
|
91
|
+
var minAmount = Number(policy_1.DEFAULT_CURRENCY_PRICE_POLICIES[baseCurrency].minPayment.amount);
|
|
91
92
|
return pricing_1.PricingService.validate.min(value, {
|
|
92
93
|
minAmount: minAmount,
|
|
93
94
|
currency: baseCurrency
|
|
@@ -95,7 +96,7 @@ function PriceTextField(_a) {
|
|
|
95
96
|
};
|
|
96
97
|
// Max validation (기본값: KRW 10,000,000, USD 10,000)
|
|
97
98
|
validationConfig.validate.max = function (value) {
|
|
98
|
-
var maxAmount = baseCurrency
|
|
99
|
+
var maxAmount = Number(policy_1.DEFAULT_CURRENCY_PRICE_POLICIES[baseCurrency].maxPayment.amount);
|
|
99
100
|
return pricing_1.PricingService.validate.max(value, {
|
|
100
101
|
maxAmount: maxAmount,
|
|
101
102
|
currency: baseCurrency
|
|
@@ -104,7 +105,7 @@ function PriceTextField(_a) {
|
|
|
104
105
|
// Format validation (기본값: KRW 100, USD 1)
|
|
105
106
|
validationConfig.validate.format = function (value) {
|
|
106
107
|
return pricing_1.PricingService.validate.format(value, {
|
|
107
|
-
paymentUnit: baseCurrency
|
|
108
|
+
paymentUnit: policy_1.DEFAULT_CURRENCY_PRICE_POLICIES[baseCurrency].paymentUnit,
|
|
108
109
|
currency: baseCurrency
|
|
109
110
|
});
|
|
110
111
|
};
|
|
@@ -51,6 +51,7 @@ var react_i18next_1 = require("react-i18next");
|
|
|
51
51
|
var types_1 = require("../../../common/types");
|
|
52
52
|
var clickTypeSystemUICssGenerator_1 = __importDefault(require("../../../common/utils/SystemUIPositionGenerator/clickTypeSystemUICssGenerator"));
|
|
53
53
|
var pricing_1 = require("../../../core/pricing");
|
|
54
|
+
var policy_1 = require("../../../core/pricing/policy");
|
|
54
55
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
55
56
|
var transitionStyle_1 = require("../../../common/styles/movement/transitionStyle");
|
|
56
57
|
var hybrid_1 = require("../../../hybrid");
|
|
@@ -87,7 +88,7 @@ function PriceTextField(_a) {
|
|
|
87
88
|
validationConfig.validate = {};
|
|
88
89
|
// Min validation (기본값: KRW 300, USD 5)
|
|
89
90
|
validationConfig.validate.min = function (value) {
|
|
90
|
-
var minAmount = baseCurrency
|
|
91
|
+
var minAmount = Number(policy_1.DEFAULT_CURRENCY_PRICE_POLICIES[baseCurrency].minPayment.amount);
|
|
91
92
|
return pricing_1.PricingService.validate.min(value, {
|
|
92
93
|
minAmount: minAmount,
|
|
93
94
|
currency: baseCurrency
|
|
@@ -95,7 +96,7 @@ function PriceTextField(_a) {
|
|
|
95
96
|
};
|
|
96
97
|
// Max validation (기본값: KRW 10,000,000, USD 10,000)
|
|
97
98
|
validationConfig.validate.max = function (value) {
|
|
98
|
-
var maxAmount = baseCurrency
|
|
99
|
+
var maxAmount = Number(policy_1.DEFAULT_CURRENCY_PRICE_POLICIES[baseCurrency].maxPayment.amount);
|
|
99
100
|
return pricing_1.PricingService.validate.max(value, {
|
|
100
101
|
maxAmount: maxAmount,
|
|
101
102
|
currency: baseCurrency
|
|
@@ -104,7 +105,7 @@ function PriceTextField(_a) {
|
|
|
104
105
|
// Format validation (기본값: KRW 100, USD 1)
|
|
105
106
|
validationConfig.validate.format = function (value) {
|
|
106
107
|
return pricing_1.PricingService.validate.format(value, {
|
|
107
|
-
paymentUnit: baseCurrency
|
|
108
|
+
paymentUnit: policy_1.DEFAULT_CURRENCY_PRICE_POLICIES[baseCurrency].paymentUnit,
|
|
108
109
|
currency: baseCurrency
|
|
109
110
|
});
|
|
110
111
|
};
|
package/package.json
CHANGED
package/release-note.md
CHANGED