Class: Google::Apis::ContentV2_1::UrlSettings
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::UrlSettings
- 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
Overview
Specifications related to the Checkout
URL. The UriTemplate
is of the form
https://www.mystore.com/checkout?item_id=
idwhere
id`` will be
automatically replaced with data from the merchant account with this attribute
offer_id
Instance Attribute Summary collapse
-
#cart_uri_template ⇒ String
URL template when the placeholders are expanded will redirect the buyer to the cart page on the merchant website with the selected item in cart.
-
#checkout_uri_template ⇒ String
URL template when the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UrlSettings
constructor
A new instance of UrlSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UrlSettings
Returns a new instance of UrlSettings.
14316 14317 14318 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14316 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cart_uri_template ⇒ String
URL template when the placeholders are expanded will redirect the buyer to the
cart page on the merchant website with the selected item in cart.
Corresponds to the JSON property cartUriTemplate
14308 14309 14310 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14308 def cart_uri_template @cart_uri_template end |
#checkout_uri_template ⇒ String
URL template when the placeholders are expanded will redirect the buyer to the
merchant checkout page with the item in the cart.
Corresponds to the JSON property checkoutUriTemplate
14314 14315 14316 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14314 def checkout_uri_template @checkout_uri_template end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14321 14322 14323 14324 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 14321 def update!(**args) @cart_uri_template = args[:cart_uri_template] if args.key?(:cart_uri_template) @checkout_uri_template = args[:checkout_uri_template] if args.key?(:checkout_uri_template) end |