Class: Rev::OrderRequest
- Inherits:
-
ApiSerializable
- Object
- ApiSerializable
- Rev::OrderRequest
- Defined in:
- lib/rev-api/models/order_request.rb
Instance Attribute Summary collapse
-
#caption_options ⇒ Object
readonly
see CaptionOptions.
-
#client_ref ⇒ Object
readonly
a reference number for the order meaningful for the client (optional).
-
#non_standard_tat_guarantee ⇒ Object
readonly
a boolean flag specifying whether normal turnaround time is not required, defaults to false (optional).
-
#notification ⇒ Object
readonly
see Notification.
-
#payment ⇒ Object
readonly
see Payment.
-
#transcription_options ⇒ Object
readonly
see TranscriptionOptions.
Class Method Summary collapse
-
.new_with_payment(payment, fields = {}) ⇒ Object
deprecated
Deprecated.
payment always defaults to :account_balance
Instance Method Summary collapse
-
#initialize(fields = {}) ⇒ OrderRequest
constructor
A new instance of OrderRequest.
Methods inherited from ApiSerializable
Constructor Details
#initialize(fields = {}) ⇒ OrderRequest
Returns a new instance of OrderRequest.
44 45 46 47 48 |
# File 'lib/rev-api/models/order_request.rb', line 44 def initialize(fields = {}) fields = { :non_standard_tat_guarantee => false }.merge(fields) @payment = Rev::Payment.with_account_balance super fields end |
Instance Attribute Details
#caption_options ⇒ Object (readonly)
see CaptionOptions
23 24 25 |
# File 'lib/rev-api/models/order_request.rb', line 23 def @caption_options end |
#client_ref ⇒ Object (readonly)
a reference number for the order meaningful for the client (optional)
29 30 31 |
# File 'lib/rev-api/models/order_request.rb', line 29 def client_ref @client_ref end |
#non_standard_tat_guarantee ⇒ Object (readonly)
a boolean flag specifying whether normal turnaround time is not required, defaults to false (optional)
32 33 34 |
# File 'lib/rev-api/models/order_request.rb', line 32 def non_standard_tat_guarantee @non_standard_tat_guarantee end |
#notification ⇒ Object (readonly)
see Notification
26 27 28 |
# File 'lib/rev-api/models/order_request.rb', line 26 def notification @notification end |
#payment ⇒ Object (readonly)
see Payment
17 18 19 |
# File 'lib/rev-api/models/order_request.rb', line 17 def payment @payment end |
#transcription_options ⇒ Object (readonly)
20 21 22 |
# File 'lib/rev-api/models/order_request.rb', line 20 def @transcription_options end |
Class Method Details
.new_with_payment(payment, fields = {}) ⇒ Object
Deprecated.
payment always defaults to :account_balance
37 38 39 40 41 |
# File 'lib/rev-api/models/order_request.rb', line 37 def self.new_with_payment(payment, fields = {}) fields = { :non_standard_tat_guarantee => false }.merge(fields) super fields @payment = payment end |