Class: C2eCore::Drops::PromoCodeClaimedDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/promo_code_claimed_drop.rb
Instance Method Summary collapse
-
#company_branch ⇒ CompanyBranchDrop
-
company branch which given this promo code as drop object.
-
-
#description ⇒ String
-
Description of rule which generated this promo code.
-
-
#initialize(args) ⇒ PromoCodeClaimedDrop
constructor
A new instance of PromoCodeClaimedDrop.
-
#is_promo_code ⇒ Boolean
-
Return true when promo code is promo code type.
-
-
#is_voucher ⇒ Boolean
-
Return true when promo code is voucher type.
-
-
#promo_code ⇒ String
-
Value of promo code that customer is allowed to use.
-
-
#sms_description ⇒ String
-
Short version of description of rule which generated this promo code for SMS.
-
-
#unsubscribe_url ⇒ String
-
URL for unsubscribing from marketing actions.
-
-
#valid_until ⇒ DateTime
-
Datetime object containing validity of promo code usage.
-
-
#voucher_discount ⇒ Float
-
Price of current recipe converted into order’s currency.
-
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.
#description ⇒ String
Returns - Description of rule which generated this promo code.
#is_promo_code ⇒ Boolean
Returns - Return true when promo code is promo code type.
#is_voucher ⇒ Boolean
Returns - 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.
#sms_description ⇒ String
Returns - Short version of description of rule which generated this promo code for SMS.
#unsubscribe_url ⇒ String
Returns - 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”.
#voucher_discount ⇒ Float
Returns - Price of current recipe converted into order’s currency. E.g.: 78.