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_branch ⇒ CompanyBranchDrop

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

Returns:

#description ⇒ String

Returns - Description of rule which generated this promo code.

Returns:

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

#is_promo_code ⇒ Boolean

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

Returns:

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

#is_voucher ⇒ Boolean

Returns - Return true when promo code is voucher type.

Returns:

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

#promo_code ⇒ String

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_description ⇒ String

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_url ⇒ String

Returns - URL for unsubscribing from marketing actions.

Returns:

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

#valid_until ⇒ DateTime

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_discount ⇒ Float

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