wsp-ms-core 1.0.80 → 1.0.82
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/index.cjs +24 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +24 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -174,6 +174,9 @@ var _DateTime = class _DateTime extends ValueObject {
|
|
|
174
174
|
getWeekdayName(locale = "en") {
|
|
175
175
|
return this._dt.setLocale(locale).toFormat("cccc");
|
|
176
176
|
}
|
|
177
|
+
getDayName(locale = "en") {
|
|
178
|
+
return this._dt.setLocale(locale).toFormat("EEEE");
|
|
179
|
+
}
|
|
177
180
|
format(format) {
|
|
178
181
|
if (!_DateTime.FORMATS.hasOwnProperty(format)) {
|
|
179
182
|
throw new Error(`Invalid format: ${format}`);
|
|
@@ -362,6 +365,27 @@ var _PaymentGateway = class _PaymentGateway extends ValueObject {
|
|
|
362
365
|
isExternal() {
|
|
363
366
|
return _PaymentGateway.EXTERNALS.includes(this.value);
|
|
364
367
|
}
|
|
368
|
+
get isMercadoPago() {
|
|
369
|
+
return this.equals(_PaymentGateway.MERCADOPAGO);
|
|
370
|
+
}
|
|
371
|
+
get isHandy() {
|
|
372
|
+
return this.equals(_PaymentGateway.HANDY);
|
|
373
|
+
}
|
|
374
|
+
get isWonaDebit() {
|
|
375
|
+
return this.equals(_PaymentGateway.WONA_DEBIT);
|
|
376
|
+
}
|
|
377
|
+
get isWonaCard() {
|
|
378
|
+
return this.equals(_PaymentGateway.WONA_CARD);
|
|
379
|
+
}
|
|
380
|
+
get isWonaCash() {
|
|
381
|
+
return this.equals(_PaymentGateway.WONA_CASH);
|
|
382
|
+
}
|
|
383
|
+
get isWonaTransfer() {
|
|
384
|
+
return this.equals(_PaymentGateway.WONA_TRANSFER);
|
|
385
|
+
}
|
|
386
|
+
get isWonaMercadoPago() {
|
|
387
|
+
return this.equals(_PaymentGateway.WONA_MERCADOPAGO);
|
|
388
|
+
}
|
|
365
389
|
toPrimitives() {
|
|
366
390
|
return { value: this.value };
|
|
367
391
|
}
|