Class: Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest
- Defined in:
- generated/google/apis/content_v2_1/classes.rb,
generated/google/apis/content_v2_1/representations.rb,
generated/google/apis/content_v2_1/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_1::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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ OrdersCreateTestOrderRequest
Returns a new instance of OrdersCreateTestOrderRequest
5278 5279 5280 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5278 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
5264 5265 5266 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5264 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.
Corresponds to the JSON property templateName
5271 5272 5273 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5271 def template_name @template_name end |
#test_order ⇒ Google::Apis::ContentV2_1::TestOrder
The test order to create.
Corresponds to the JSON property testOrder
5276 5277 5278 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5276 def test_order @test_order end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5283 5284 5285 5286 5287 |
# File 'generated/google/apis/content_v2_1/classes.rb', line 5283 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 |