lib/gateway/requests/send_message_request.rb in gateway-sdk-1.0.3 vs lib/gateway/requests/send_message_request.rb in gateway-sdk-1.0.4
- old
+ new
@@ -9,17 +9,18 @@
TRANSPORT_WA = 'whatsapp' # transport whatsapp
TRANSPORT_VIBER = 'viber' # transport viber
TRANSPORT_TG = 'telegram' # transport telegram
TRANSPORT_SMS = 'modem' # transport modem
TRANSPORT_FACEBOOK = 'facebook' # transport facebook
+ TRANSPORT_EXTERNAL = 'external' # transport external
attr_accessor :phone, :devicePhone, :body, :image, :transport, :plannedDate
#
# Possible transports
#
def self.possible_transports
- [TRANSPORT_WA, TRANSPORT_VIBER, TRANSPORT_TG, TRANSPORT_SMS, TRANSPORT_FACEBOOK]
+ [TRANSPORT_WA, TRANSPORT_VIBER, TRANSPORT_TG, TRANSPORT_SMS, TRANSPORT_FACEBOOK, TRANSPORT_EXTERNAL]
end
def transport=(transport)
unless self.class.possible_transports.include? transport
raise Gateway::ArgumentError.new("transport #{transport} is not supported, use: #{self.class.possible_transports.join(', ')}")
\ No newline at end of file