Kaizen
Browse modulesPricingpricing/sharedSchemas and constants

Variable: AdjustmentAction

const AdjustmentAction: ZodDiscriminatedUnion<[ZodObject<{
  adjustmentKind: ZodDefault<ZodEnum<{
     fee: "fee";
     platform_fee: "platform_fee";
     tax: "tax";
  }>>;
  glCode: ZodOptional<ZodString>;
  label: ZodString;
  method: ZodEnum<{
     flat: "flat";
     percentage: "percentage";
  }>;
  responsibleParty: ZodOptional<ZodEnum<{
     platform: "platform";
     processor: "processor";
     tax_authority: "tax_authority";
     tenant: "tenant";
  }>>;
  scaling: ZodDefault<ZodEnum<{
     once: "once";
     per_unit: "per_unit";
  }>>;
  type: ZodLiteral<"FEE">;
  value: ZodNumber;
}, $strip>, ZodObject<{
  adjustmentKind: ZodDefault<ZodLiteral<"discount">>;
  glCode: ZodOptional<ZodString>;
  label: ZodString;
  method: ZodEnum<{
     flat: "flat";
     percentage: "percentage";
  }>;
  responsibleParty: ZodOptional<ZodEnum<{
     platform: "platform";
     processor: "processor";
     tax_authority: "tax_authority";
     tenant: "tenant";
  }>>;
  scaling: ZodDefault<ZodEnum<{
     once: "once";
     per_unit: "per_unit";
  }>>;
  type: ZodLiteral<"DISCOUNT">;
  value: ZodNumber;
}, $strip>], "type">;

Defined in: shared/pricing/types/actions.ts:253

Discriminated union of the adjustment-phase actions (FEE | DISCOUNT). Used by PricingDomainConfig as the allowed actions[] shape inside the compounding / non_compounding / post phase branches.