Class: Google::Apis::ContentV2::OrdersCreateTestOrderRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ OrdersCreateTestOrderRequest

Returns a new instance of OrdersCreateTestOrderRequest



6016
6017
6018
# File 'generated/google/apis/content_v2/classes.rb', line 6016

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)


6002
6003
6004
# File 'generated/google/apis/content_v2/classes.rb', line 6002

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. Corresponds to the JSON property templateName

Returns:

  • (String)


6009
6010
6011
# File 'generated/google/apis/content_v2/classes.rb', line 6009

def template_name
  @template_name
end

#test_orderGoogle::Apis::ContentV2::TestOrder

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



6014
6015
6016
# File 'generated/google/apis/content_v2/classes.rb', line 6014

def test_order
  @test_order
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6021
6022
6023
6024
6025
# File 'generated/google/apis/content_v2/classes.rb', line 6021

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