Class: Google::Apis::ContentV2_1::OrdersCreateTestOrderRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrdersCreateTestOrderRequest

Returns a new instance of OrdersCreateTestOrderRequest.



7540
7541
7542
# File 'lib/google/apis/content_v2_1/classes.rb', line 7540

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countryString

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

Returns:

  • (String)


7525
7526
7527
# File 'lib/google/apis/content_v2_1/classes.rb', line 7525

def country
  @country
end

#template_nameString

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

Returns:

  • (String)


7533
7534
7535
# File 'lib/google/apis/content_v2_1/classes.rb', line 7533

def template_name
  @template_name
end

#test_orderGoogle::Apis::ContentV2_1::TestOrder

The test order to create. Corresponds to the JSON property testOrder



7538
7539
7540
# File 'lib/google/apis/content_v2_1/classes.rb', line 7538

def test_order
  @test_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7545
7546
7547
7548
7549
# File 'lib/google/apis/content_v2_1/classes.rb', line 7545

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