Class: Twilio::REST::Messaging::V2::ChannelsSenderList::MessagingV2ChannelsSenderProfile

Inherits:
Object
  • Object
show all
Defined in:
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb,
lib/twilio-ruby/rest/messaging/v2/channels_sender.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ MessagingV2ChannelsSenderProfile

Returns a new instance of MessagingV2ChannelsSenderProfile.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 37

def initialize(payload)
        @name = payload["name"]
        @about = payload["about"]
        @address = payload["address"]
        @description = payload["description"]
        @logo_url = payload["logo_url"]
        @banner_url = payload["banner_url"]
        @privacy_url = payload["privacy_url"]
        @terms_of_service_url = payload["terms_of_service_url"]
        @accent_color = payload["accent_color"]
        @vertical = payload["vertical"]
        @websites = payload["websites"]
        @emails = payload["emails"]
        @phone_numbers = payload["phone_numbers"]
end

Instance Attribute Details

#aboutObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def about
  @about
end

#accent_colorObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def accent_color
  @accent_color
end

#addressObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def address
  @address
end

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def banner_url
  @banner_url
end

#descriptionObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def description
  @description
end

#emailsObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def emails
  @emails
end

#logo_urlObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def logo_url
  @logo_url
end

#nameObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def name
  @name
end

#phone_numbersObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def phone_numbers
  @phone_numbers
end

#privacy_urlObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def privacy_url
  @privacy_url
end

#terms_of_service_urlObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def terms_of_service_url
  @terms_of_service_url
end

#verticalObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def vertical
  @vertical
end

#websitesObject

Parameters:

  • : (name)
    String

    The name of the sender. Required for WhatsApp senders and must follow [Meta’s display name guidelines](www.facebook.com/business/help/757569725593362).

  • : (about)
    String

    The profile about text for the sender.

  • : (address)
    String

    The address of the sender.

  • : (description)
    String

    The description of the sender.

  • : (logo_url)
    String

    The logo URL of the sender.

  • : (banner_url)
    String

    The banner URL of the sender.

  • : (privacy_url)
    String

    The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.

  • : (terms_of_service_url)
    String

    The terms of service URL of the sender.

  • : (accent_color)
    String

    The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.

  • : (vertical)
    String

    The vertical of the sender. Allowed values are: - ‘Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`

  • : (websites)
    Hash

    The websites of the sender.

  • : (emails)
    Hash

    The emails of the sender.

  • : (phone_numbers)
    Hash

    The phone numbers of the sender.



36
37
38
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 36

def websites
  @websites
end

Instance Method Details

#to_json(options = {}) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/twilio-ruby/rest/messaging/v2/channels_sender.rb', line 52

def to_json(options = {})
{
        "name": @name,
        "about": @about,
        "address": @address,
        "description": @description,
        "logo_url": @logo_url,
        "banner_url": @banner_url,
        "privacy_url": @privacy_url,
        "terms_of_service_url": @terms_of_service_url,
        "accent_color": @accent_color,
        "vertical": @vertical,
        "websites": @websites,
        "emails": @emails,
        "phone_numbers": @phone_numbers,
}.to_json(options)
end