Class: Google::Apis::ContentV2::OrdersCreateTestOrderRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2::OrdersCreateTestOrderRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2/classes.rb,
lib/google/apis/content_v2/representations.rb,
lib/google/apis/content_v2/representations.rb
Instance Attribute Summary collapse
-
#country ⇒ String
The CLDR territory code of the country of the test order to create.
-
#template_name ⇒ String
The test order template to use.
-
#test_order ⇒ Google::Apis::ContentV2::TestOrder
The test order to create.
Instance Method Summary collapse
-
#initialize(**args) ⇒ OrdersCreateTestOrderRequest
constructor
A new instance of OrdersCreateTestOrderRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ OrdersCreateTestOrderRequest
Returns a new instance of OrdersCreateTestOrderRequest.
5829 5830 5831 |
# File 'lib/google/apis/content_v2/classes.rb', line 5829 def initialize(**args) update!(**args) end |
Instance Attribute Details
#country ⇒ String
The CLDR territory code of the country of the test order to create. Affects
the currency and addresses of orders created via template_name
, or the
addresses of orders created via test_order
. Acceptable values are: - "US
" -
"FR
" Defaults to US
.
Corresponds to the JSON property country
5814 5815 5816 |
# File 'lib/google/apis/content_v2/classes.rb', line 5814 def country @country end |
#template_name ⇒ String
The test order template to use. Specify as an alternative to testOrder
as a
shortcut for retrieving a template and then creating an order using that
template. Acceptable values are: - "template1
" - "template1a
" - "
template1b
" - "template2
" - "template3
"
Corresponds to the JSON property templateName
5822 5823 5824 |
# File 'lib/google/apis/content_v2/classes.rb', line 5822 def template_name @template_name end |
#test_order ⇒ Google::Apis::ContentV2::TestOrder
The test order to create.
Corresponds to the JSON property testOrder
5827 5828 5829 |
# File 'lib/google/apis/content_v2/classes.rb', line 5827 def test_order @test_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5834 5835 5836 5837 5838 |
# File 'lib/google/apis/content_v2/classes.rb', line 5834 def update!(**args) @country = args[:country] if args.key?(:country) @template_name = args[:template_name] if args.key?(:template_name) @test_order = args[:test_order] if args.key?(:test_order) end |