Class: C2eCore::Drops::PromoCodeClaimedDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/promo_code_claimed_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ PromoCodeClaimedDrop

Returns a new instance of PromoCodeClaimedDrop.

Instance Method Details

#company_branchCompanyBranchDrop

Returns - company branch which given this promo code as drop object.

Returns:

#descriptionString

Returns - Description of rule which generated this promo code.

Returns:

  • (String)
    • Description of rule which generated this promo code.

#is_promo_codeBoolean

Returns - Return true when promo code is promo code type.

Returns:

  • (Boolean)
    • Return true when promo code is promo code type.

#is_voucherBoolean

Returns - Return true when promo code is voucher type.

Returns:

  • (Boolean)
    • Return true when promo code is voucher type.

#promo_codeString

Returns - Value of promo code that customer is allowed to use. E.g.: desata_zdarma.

Returns:

  • (String)
    • Value of promo code that customer is allowed to use. E.g.: desata_zdarma

#sms_descriptionString

Returns - Short version of description of rule which generated this promo code for SMS.

Returns:

  • (String)
    • Short version of description of rule which generated this promo code for SMS.

#unsubscribe_urlString

Returns - URL for unsubscribing from marketing actions.

Returns:

  • (String)
    • URL for unsubscribing from marketing actions.

#valid_untilDateTime

Returns - Datetime object containing validity of promo code usage. E.g.: “26. 7. 2023, 13:00”.

Returns:

  • (DateTime)
    • Datetime object containing validity of promo code usage. E.g.: “26. 7. 2023, 13:00”

#voucher_discountFloat

Returns - Price of current recipe converted into order’s currency. E.g.: 78.

Returns:

  • (Float)
    • Price of current recipe converted into order’s currency. E.g.: 78