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.



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

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"]
        @use_case = payload["use_case"]
        @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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

def address
  @address
end

Parameters:

  • : (name)

    [String] The name of the sender. Required for WhatsApp senders and must follow Meta's display name guidelines.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

def terms_of_service_url
  @terms_of_service_url
end

#use_caseObject

Parameters:

  • : (name)

    [String] The name of the sender. Required for WhatsApp senders and must follow Meta's display name guidelines.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

def use_case
  @use_case
end

#verticalObject

Parameters:

  • : (name)

    [String] The name of the sender. Required for WhatsApp senders and must follow Meta's display name guidelines.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

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.

  • : (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.

  • : (use_case)

    [String] The messaging use case type for the RCS sender. Allowed values are PROMOTIONAL, TRANSACTIONAL, OTP, MULTI_USE. Defaults to MULTI_USE if not provided. Cannot be modified after launch.

  • : (vertical)

    [String] The vertical of the sender. Allowed values are: - Alcohol - Automotive - Beauty, Spa and Salon - Clothing and Apparel - Education - Entertainment - Event Planning and Service - Finance and Banking - Food and Grocery - Hotel and Lodging - Matrimony Service - Medical and Health - Non-profit - Online Gambling - OTC Drugs - Other - Physical Gambling - Professional Services - Public Service - Restaurant - Shopping and Retail - Travel and Transportation

  • : (websites)

    [Hash] The websites of the sender.

  • : (emails)

    [Hash] The emails of the sender.

  • : (phone_numbers)

    [Hash] The phone numbers of the sender.



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

def websites
  @websites
end

Instance Method Details

#to_json(options = {}) ⇒ Object



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

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,
        "use_case": @use_case,
        "vertical": @vertical,
        "websites": @websites,
        "emails": @emails,
        "phone_numbers": @phone_numbers,
}.to_json(options)
end