Class: C2eCore::Drops::InvoicePromoDrop

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

Instance Method Summary collapse

Constructor Details

#initialize(invoice_promo) ⇒ InvoicePromoDrop

Returns a new instance of InvoicePromoDrop.

Instance Method Details

#descriptionString?

  • Description in the Order Language or CompanyBranch’s default language. null is

returned when description is not configured.

Returns:

  • (String, nil)
    • Description in the Order Language or CompanyBranch’s default language. null is

    returned when description is not configured.

#qr_codeString?

Returns - QR code as a data URL, e.g.: "data:image/png;base64,iVBO...", with a width of 400px. null is returned when QR code link is not configured.

Returns:

  • (String, nil)
    • QR code as a data URL, e.g.: "data:image/png;base64,iVBO...", with a width of

    400px. null is returned when QR code link is not configured.