Skip to content

Latest commit

 

History

History
40 lines (24 loc) · 1.76 KB

EarningRuleExpirationRules.md

File metadata and controls

40 lines (24 loc) · 1.76 KB

EarningRuleExpirationRules

Defines the loyalty point expiration rule. This expiration rule applies only to this earning rule and supersedes expiration_rules defined in the voucher.loyalty_card object.

Properties

Name Type Description
periodType PeriodTypeEnum Type of period. Can be set for `MONTH` or `FIXED_DAY_OF_YEAR`. `MONTH` requires the `period_value` field. `FIXED_DAY_OF_YEAR` requires the `fixed_month` and `fixed_day` fields.
periodValue Integer Value of the period. Required for the `period_type: MONTH`.
roundingType RoundingTypeEnum Type of rounding of the expiration period. Optional for the `period_type: MONTH`.
roundingValue Integer Value of rounding of the expiration period. Required for the `rounding_type`.
fixedMonth Integer Determines the month when the points expire; `1` is January, `2` is February, and so on. Required for the `period_type: FIXED_DAY_OF_YEAR`.
fixedDay Integer Determines the day of the month when the points expire. Required for the `period_type: FIXED_DAY_OF_YEAR`.

Enum: PeriodTypeEnum

Name Value
FIXED_DAY_OF_YEAR "FIXED_DAY_OF_YEAR"
MONTH "MONTH"

Enum: RoundingTypeEnum

Name Value
END_OF_MONTH "END_OF_MONTH"
END_OF_QUARTER "END_OF_QUARTER"
END_OF_HALF_YEAR "END_OF_HALF_YEAR"
END_OF_YEAR "END_OF_YEAR"
PARTICULAR_MONTH "PARTICULAR_MONTH"