View Source Glific.Providers.GupshupEnterprise.Template (Glific v5.1.6)

Module for handling template operations specific to Gupshup

Link to this section Summary

Functions

Bulk apply templates from CSV when BSP is GupshupEnterprise

Delete template from the gupshup

Import pre approved templates when BSP is GupshupEnterprise

Submitting HSM template for approval

Updating HSM templates for an organization

Link to this section Functions

Link to this function

bulk_apply_templates(organization_id, data)

View Source
@spec bulk_apply_templates(non_neg_integer(), String.t()) :: {:ok, any()}

Bulk apply templates from CSV when BSP is GupshupEnterprise

@spec delete(non_neg_integer(), map()) :: {:ok, any()} | {:error, any()}

Delete template from the gupshup

Link to this function

import_templates(organization_id, data)

View Source
@spec import_templates(non_neg_integer(), String.t()) :: {:ok, any()}

Import pre approved templates when BSP is GupshupEnterprise

Link to this function

submit_for_approval(attrs)

View Source
@spec submit_for_approval(map()) ::
  {:ok, Glific.Templates.SessionTemplate.t()} | {:error, any()}

Submitting HSM template for approval

Link to this function

update_hsm_templates(organization_id)

View Source
@spec update_hsm_templates(non_neg_integer()) :: :ok | {:error, String.t()}

Updating HSM templates for an organization