lib/rev-api/models/order_request.rb in rev-api-2.0.2 vs lib/rev-api/models/order_request.rb in rev-api-2.0.3
- old
+ new
@@ -66,11 +66,10 @@
CC_ON_FILE_ID = 1
# @param type [String] payment method
def initialize(type)
- warn "[DEPRECATION] `Payment` option is now optional, since it will always default to AccountBalance"
@type = type
end
class << self
def with_account_balance()
@@ -155,12 +154,17 @@
# All supported output file formats
OUTPUT_FILE_FORMATS = {
:subrip => 'SubRip',
:scc => 'Scc',
+ :mcc => 'Mcc',
:ttml => 'Ttml',
- :qttext => 'QTtext'
+ :qttext => 'QTtext',
+ :transcript => 'Transcript',
+ :webvtt => 'WebVtt',
+ :dfxp => 'Dfxp',
+ :cheetahcap => 'CheetahCap'
}
def initialize(inputs, info = {})
super(inputs, info)
raise(ArgumentError, "invalid format(s)") unless validate_output_formats(info[:output_file_formats])
@@ -209,9 +213,9 @@
# @param level [String] Optional, specifies which notifications are sent:
# - :detailed - a notification is sent whenever the order is in a new status or has a new comment
# - :final_only - (the default), notification is sent only when the order is complete
def initialize(url, level = nil)
@url = url
- @level = level ? level : LEVEL[:final_only]
+ @level = level ? level : LEVELS[:final_only]
end
end
end