tickera-angular-components 0.0.1-dev.172 → 0.0.1-dev.173

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/index.d.ts CHANGED
@@ -1525,7 +1525,8 @@ interface HallFloorOption {
1525
1525
  declare enum SelectedDiscountCardType {
1526
1526
  COUPON = "COUPON",
1527
1527
  CORPORATE_BOND = "CORPORATE_BOND",
1528
- GIFT_BOND = "GIFT_BOND"
1528
+ GIFT_BOND = "GIFT_BOND",
1529
+ VIP = "VIP"
1529
1530
  }
1530
1531
 
1531
1532
  interface SelectedDiscountCard {
@@ -1533,6 +1534,11 @@ interface SelectedDiscountCard {
1533
1534
  type: SelectedDiscountCardType;
1534
1535
  value: number;
1535
1536
  discountType: 'percentage' | 'fixed';
1537
+ /**
1538
+ * Si el descuento seleccionado exonera la tarifa de servicio (hoy solo
1539
+ * aplica a Tarjeta VIP, según `VipCategorySnapshot.service_fee_exempt`).
1540
+ */
1541
+ serviceFeeExempt?: boolean;
1536
1542
  }
1537
1543
 
1538
1544
  /** Forma compacta de un ticket recibida por SSE (ver
@@ -2424,11 +2430,13 @@ declare class TicketSelectionDiscountService {
2424
2430
  private _corporateBondCode;
2425
2431
  private _giftBond;
2426
2432
  private _giftBondCode;
2433
+ private _vipCard;
2427
2434
  readonly coupon: Signal<Coupon | null>;
2428
2435
  readonly corporateBond: Signal<CorporateBond | null>;
2429
2436
  readonly corporateBondCode: Signal<string | null>;
2430
2437
  readonly giftBond: Signal<GiftBondPurchase | null>;
2431
2438
  readonly giftBondCode: Signal<string | null>;
2439
+ readonly vipCard: Signal<VipCard | null>;
2432
2440
  readonly selectedDiscount: Signal<SelectedDiscountCard | null>;
2433
2441
  readonly selectedDiscountType: Signal<SelectedDiscountCardType | undefined>;
2434
2442
  readonly selectedDiscountValue: Signal<number | undefined>;
@@ -2437,6 +2445,13 @@ declare class TicketSelectionDiscountService {
2437
2445
  setCorporateBondCode(code: string | null): void;
2438
2446
  setGiftBond(giftBond: GiftBondPurchase | null): void;
2439
2447
  setGiftBondCode(code: string | null): void;
2448
+ /**
2449
+ * Saldo VIP como método de pago (VIP-HU-04). Solo debe contar como
2450
+ * descuento "seleccionado" mientras el cliente efectivamente eligió
2451
+ * pagar con su saldo VIP, no solo por tener una tarjeta activa —
2452
+ * llamar con `null` en cuanto deje de ser el método de pago elegido.
2453
+ */
2454
+ setVipCard(card: VipCard | null): void;
2440
2455
  clearSelection(): void;
2441
2456
  static ɵfac: i0.ɵɵFactoryDeclaration<TicketSelectionDiscountService, never>;
2442
2457
  static ɵprov: i0.ɵɵInjectableDeclaration<TicketSelectionDiscountService>;
@@ -4118,6 +4133,13 @@ declare class ConfirmationOrderModalComponent {
4118
4133
  get coupon(): tickera_angular_components.Coupon | null;
4119
4134
  get corporateBond(): tickera_angular_components.CorporateBond | null;
4120
4135
  get giftBond(): tickera_angular_components.GiftBondPurchase | null;
4136
+ get vipCard(): tickera_angular_components.VipCard | null;
4137
+ /**
4138
+ * A diferencia de coupon/corporateBond/giftBond (que aquí muestran su
4139
+ * valor crudo sin pasar por `discountAmount()`), para VIP sí se calcula
4140
+ * el monto real en pesos, ya que el descuento es un porcentaje.
4141
+ */
4142
+ get vipDiscountAmount(): number;
4121
4143
  onClose(): void;
4122
4144
  confirmOrder(): void;
4123
4145
  static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationOrderModalComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tickera-angular-components",
3
- "version": "0.0.1-dev.172",
3
+ "version": "0.0.1-dev.173",
4
4
  "description": "Angular 20 standalone component library for Tickera backoffice system",
5
5
  "license": "MIT",
6
6
  "repository": {