diff --git a/clients/content/lib/google_api/content/v21/api/accounts.ex b/clients/content/lib/google_api/content/v21/api/accounts.ex index e51ed8982a..8b0bc6ffc8 100644 --- a/clients/content/lib/google_api/content/v21/api/accounts.ex +++ b/clients/content/lib/google_api/content/v21/api/accounts.ex @@ -83,7 +83,7 @@ defmodule GoogleApi.Content.V21.Api.Accounts do end @doc """ - Claims the website of a Merchant Center sub-account. + Claims the website of a Merchant Center sub-account. Merchant accounts with approved third-party CSSs aren't required to claim a website. ## Parameters diff --git a/clients/content/lib/google_api/content/v21/api/repricingrules.ex b/clients/content/lib/google_api/content/v21/api/conversionsources.ex similarity index 70% rename from clients/content/lib/google_api/content/v21/api/repricingrules.ex rename to clients/content/lib/google_api/content/v21/api/conversionsources.ex index fc82a9e365..e96cdbcefb 100644 --- a/clients/content/lib/google_api/content/v21/api/repricingrules.ex +++ b/clients/content/lib/google_api/content/v21/api/conversionsources.ex @@ -15,9 +15,9 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Api.Repricingrules do +defmodule GoogleApi.Content.V21.Api.Conversionsources do @moduledoc """ - API calls for all endpoints tagged `Repricingrules`. + API calls for all endpoints tagged `Conversionsources`. """ alias GoogleApi.Content.V21.Connection @@ -26,12 +26,12 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Creates a repricing rule for your Merchant Center account. + Creates a new conversion source. ## Parameters * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server - * `merchant_id` (*type:* `String.t`) - Required. The id of the merchant who owns the repricing rule. + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that owns the new conversion source. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -44,21 +44,20 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:ruleId` (*type:* `String.t`) - Required. The id of the rule to create. - * `:body` (*type:* `GoogleApi.Content.V21.Model.RepricingRule.t`) - + * `:body` (*type:* `GoogleApi.Content.V21.Model.ConversionSource.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Content.V21.Model.RepricingRule{}}` on success + * `{:ok, %GoogleApi.Content.V21.Model.ConversionSource{}}` on success * `{:error, info}` on failure """ - @spec content_repricingrules_create(Tesla.Env.client(), String.t(), keyword(), keyword()) :: - {:ok, GoogleApi.Content.V21.Model.RepricingRule.t()} + @spec content_conversionsources_create(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.Content.V21.Model.ConversionSource.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def content_repricingrules_create(connection, merchant_id, optional_params \\ [], opts \\ []) do + def content_conversionsources_create(connection, merchant_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ :"$.xgafv" => :query, :access_token => :query, @@ -71,14 +70,13 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :ruleId => :query, :body => :body } request = Request.new() |> Request.method(:post) - |> Request.url("/{merchantId}/repricingrules", %{ + |> Request.url("/{merchantId}/conversionsources", %{ "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -86,17 +84,17 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.RepricingRule{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.ConversionSource{}]) end @doc """ - Deletes a repricing rule in your Merchant Center account. + Archives an existing conversion source. It will be recoverable for 30 days. This archiving behavior is not typical in the Content API and unique to this service. ## Parameters * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server - * `merchant_id` (*type:* `String.t`) - Required. The id of the merchant who owns the repricing rule. - * `rule_id` (*type:* `String.t`) - Required. The id of the rule to Delete. + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that owns the new conversion source. + * `conversion_source_id` (*type:* `String.t`) - Required. The ID of the conversion source to be deleted. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -116,17 +114,17 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do * `{:ok, %{}}` on success * `{:error, info}` on failure """ - @spec content_repricingrules_delete( + @spec content_conversionsources_delete( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def content_repricingrules_delete( + def content_conversionsources_delete( connection, merchant_id, - rule_id, + conversion_source_id, optional_params \\ [], opts \\ [] ) do @@ -147,9 +145,10 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do request = Request.new() |> Request.method(:delete) - |> Request.url("/{merchantId}/repricingrules/{ruleId}", %{ + |> Request.url("/{merchantId}/conversionsources/{conversionSourceId}", %{ "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1), - "ruleId" => URI.encode(rule_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "conversionSourceId" => + URI.encode(conversion_source_id, &(URI.char_unreserved?(&1) || &1 == ?/)) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) @@ -160,13 +159,13 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do end @doc """ - Retrieves a repricing rule from your Merchant Center account. + Fetches a conversion source. ## Parameters * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server - * `merchant_id` (*type:* `String.t`) - Required. The id of the merchant who owns the repricing rule. - * `rule_id` (*type:* `String.t`) - Required. The id of the rule to retrieve. + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that owns the new conversion source. + * `conversion_source_id` (*type:* `String.t`) - Required. The REST ID of the collection. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -183,24 +182,24 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do ## Returns - * `{:ok, %GoogleApi.Content.V21.Model.RepricingRule{}}` on success + * `{:ok, %GoogleApi.Content.V21.Model.ConversionSource{}}` on success * `{:error, info}` on failure """ - @spec content_repricingrules_get( + @spec content_conversionsources_get( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Content.V21.Model.RepricingRule.t()} + {:ok, GoogleApi.Content.V21.Model.ConversionSource.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def content_repricingrules_get( + def content_conversionsources_get( connection, merchant_id, - rule_id, + conversion_source_id, optional_params \\ [], opts \\ [] ) do @@ -221,25 +220,26 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do request = Request.new() |> Request.method(:get) - |> Request.url("/{merchantId}/repricingrules/{ruleId}", %{ + |> Request.url("/{merchantId}/conversionsources/{conversionSourceId}", %{ "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1), - "ruleId" => URI.encode(rule_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "conversionSourceId" => + URI.encode(conversion_source_id, &(URI.char_unreserved?(&1) || &1 == ?/)) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.RepricingRule{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.ConversionSource{}]) end @doc """ - Lists the repricing rules in your Merchant Center account. + Retrieves the list of conversion sources the caller has access to. ## Parameters * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server - * `merchant_id` (*type:* `String.t`) - Required. The id of the merchant who owns the repricing rule. + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that owns the new conversion source. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -252,23 +252,22 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:countryCode` (*type:* `String.t`) - [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (e.g. "US"), used as a filter on repricing rules. - * `:languageCode` (*type:* `String.t`) - The two-letter ISO 639-1 language code associated with the repricing rule, used as a filter. - * `:pageSize` (*type:* `integer()`) - The maximum number of repricing rules to return. The service may return fewer than this value. If unspecified, at most 50 rules will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. - * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListRepricingRules` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListRepricingRules` must match the call that provided the page token. + * `:pageSize` (*type:* `integer()`) - The maximum number of conversion sources to return in a page. If no `page_size` is specified, `100` is used as the default value. The maximum value is `200`. Values above `200` will be coerced to `200`. Regardless of pagination, at most `200` conversion sources are returned in total. + * `:pageToken` (*type:* `String.t`) - Page token. + * `:showDeleted` (*type:* `boolean()`) - If true, also returns archived conversion sources. * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Content.V21.Model.ListRepricingRulesResponse{}}` on success + * `{:ok, %GoogleApi.Content.V21.Model.ListConversionSourcesResponse{}}` on success * `{:error, info}` on failure """ - @spec content_repricingrules_list(Tesla.Env.client(), String.t(), keyword(), keyword()) :: - {:ok, GoogleApi.Content.V21.Model.ListRepricingRulesResponse.t()} + @spec content_conversionsources_list(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.Content.V21.Model.ListConversionSourcesResponse.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def content_repricingrules_list(connection, merchant_id, optional_params \\ [], opts \\ []) do + def content_conversionsources_list(connection, merchant_id, optional_params \\ [], opts \\ []) do optional_params_config = %{ :"$.xgafv" => :query, :access_token => :query, @@ -281,16 +280,15 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :countryCode => :query, - :languageCode => :query, :pageSize => :query, - :pageToken => :query + :pageToken => :query, + :showDeleted => :query } request = Request.new() |> Request.method(:get) - |> Request.url("/{merchantId}/repricingrules", %{ + |> Request.url("/{merchantId}/conversionsources", %{ "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) @@ -299,18 +297,18 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do connection |> Connection.execute(request) |> Response.decode( - opts ++ [struct: %GoogleApi.Content.V21.Model.ListRepricingRulesResponse{}] + opts ++ [struct: %GoogleApi.Content.V21.Model.ListConversionSourcesResponse{}] ) end @doc """ - Updates a repricing rule in your Merchant Center account. All mutable fields will be overwritten in each update request. In each update, you must provide all required mutable fields, or an error will be thrown. If you do not provide an optional field in the update request, if that field currently exists, it will be deleted from the rule. + Updates information of an existing conversion source. ## Parameters * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server - * `merchant_id` (*type:* `String.t`) - Required. The id of the merchant who owns the repricing rule. - * `rule_id` (*type:* `String.t`) - Required. The id of the rule to update. + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that owns the new conversion source. + * `conversion_source_id` (*type:* `String.t`) - Required. The ID of the conversion source to be updated. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -323,29 +321,30 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:body` (*type:* `GoogleApi.Content.V21.Model.RepricingRule.t`) - + * `:updateMask` (*type:* `String.t`) - Required. List of fields being updated. + * `:body` (*type:* `GoogleApi.Content.V21.Model.ConversionSource.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Content.V21.Model.RepricingRule{}}` on success + * `{:ok, %GoogleApi.Content.V21.Model.ConversionSource{}}` on success * `{:error, info}` on failure """ - @spec content_repricingrules_patch( + @spec content_conversionsources_patch( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() ) :: - {:ok, GoogleApi.Content.V21.Model.RepricingRule.t()} + {:ok, GoogleApi.Content.V21.Model.ConversionSource.t()} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} - def content_repricingrules_patch( + def content_conversionsources_patch( connection, merchant_id, - rule_id, + conversion_source_id, optional_params \\ [], opts \\ [] ) do @@ -361,32 +360,34 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, + :updateMask => :query, :body => :body } request = Request.new() |> Request.method(:patch) - |> Request.url("/{merchantId}/repricingrules/{ruleId}", %{ + |> Request.url("/{merchantId}/conversionsources/{conversionSourceId}", %{ "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1), - "ruleId" => URI.encode(rule_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + "conversionSourceId" => + URI.encode(conversion_source_id, &(URI.char_unreserved?(&1) || &1 == ?/)) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) connection |> Connection.execute(request) - |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.RepricingRule{}]) + |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.ConversionSource{}]) end @doc """ - Lists the metrics report for a given Repricing rule. + Re-enables an archived conversion source. ## Parameters * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server - * `merchant_id` (*type:* `String.t`) - Required. Id of the merchant who owns the Repricing rule. - * `rule_id` (*type:* `String.t`) - Required. Id of the Repricing rule. + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that owns the new conversion source. + * `conversion_source_id` (*type:* `String.t`) - Required. The ID of the conversion source to be undeleted. * `optional_params` (*type:* `keyword()`) - Optional parameters * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. * `:access_token` (*type:* `String.t`) - OAuth access token. @@ -399,32 +400,25 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:endDate` (*type:* `String.t`) - Gets Repricing reports on and before this date in the merchant's timezone. You can only retrieve data up to 7 days ago (default) or earlier. Format: YYYY-MM-DD. - * `:pageSize` (*type:* `integer()`) - Maximum number of daily reports to return. Each report includes data from a single 24-hour period. The page size defaults to 50 and values above 1000 are coerced to 1000. This service may return fewer days than this value, for example, if the time between your start and end date is less than page size. - * `:pageToken` (*type:* `String.t`) - Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token. - * `:startDate` (*type:* `String.t`) - Gets Repricing reports on and after this date in the merchant's timezone, up to one year ago. Do not use a start date later than 7 days ago (default). Format: YYYY-MM-DD. + * `:body` (*type:* `GoogleApi.Content.V21.Model.UndeleteConversionSourceRequest.t`) - * `opts` (*type:* `keyword()`) - Call options ## Returns - * `{:ok, %GoogleApi.Content.V21.Model.ListRepricingRuleReportsResponse{}}` on success + * `{:ok, %{}}` on success * `{:error, info}` on failure """ - @spec content_repricingrules_repricingreports_list( + @spec content_conversionsources_undelete( Tesla.Env.client(), String.t(), String.t(), keyword(), keyword() - ) :: - {:ok, GoogleApi.Content.V21.Model.ListRepricingRuleReportsResponse.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def content_repricingrules_repricingreports_list( + ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} + def content_conversionsources_undelete( connection, merchant_id, - rule_id, + conversion_source_id, optional_params \\ [], opts \\ [] ) do @@ -440,26 +434,21 @@ defmodule GoogleApi.Content.V21.Api.Repricingrules do :quotaUser => :query, :uploadType => :query, :upload_protocol => :query, - :endDate => :query, - :pageSize => :query, - :pageToken => :query, - :startDate => :query + :body => :body } request = Request.new() - |> Request.method(:get) - |> Request.url("/{merchantId}/repricingrules/{ruleId}/repricingreports", %{ + |> Request.method(:post) + |> Request.url("/{merchantId}/conversionsources/{conversionSourceId}:undelete", %{ "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1), - "ruleId" => URI.encode(rule_id, &URI.char_unreserved?/1) + "conversionSourceId" => URI.encode(conversion_source_id, &URI.char_unreserved?/1) }) |> Request.add_optional_params(optional_params_config, optional_params) |> Request.library_version(@library_version) connection |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.Content.V21.Model.ListRepricingRuleReportsResponse{}] - ) + |> Response.decode(opts ++ [decode: false]) end end diff --git a/clients/content/lib/google_api/content/v21/api/freelistingsprogram.ex b/clients/content/lib/google_api/content/v21/api/freelistingsprogram.ex index 6f94365722..9220006119 100644 --- a/clients/content/lib/google_api/content/v21/api/freelistingsprogram.ex +++ b/clients/content/lib/google_api/content/v21/api/freelistingsprogram.ex @@ -86,7 +86,7 @@ defmodule GoogleApi.Content.V21.Api.Freelistingsprogram do end @doc """ - Requests a review of free listings in a specific region. This method is only available to selected merchants. + Requests a review of free listings in a specific region. This method deprecated. Use the `MerchantSupportService` to view product and account issues and request a review. ## Parameters @@ -152,4 +152,212 @@ defmodule GoogleApi.Content.V21.Api.Freelistingsprogram do |> Connection.execute(request) |> Response.decode(opts ++ [decode: false]) end + + @doc """ + Deletes `Checkout` settings and unenrolls merchant from `Checkout` program. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %{}}` on success + * `{:error, info}` on failure + """ + @spec content_freelistingsprogram_checkoutsettings_delete( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} + def content_freelistingsprogram_checkoutsettings_delete( + connection, + merchant_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:delete) + |> Request.url("/{merchantId}/freelistingsprogram/checkoutsettings", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [decode: false]) + end + + @doc """ + Gets Checkout settings for the given merchant. This includes information about review state, enrollment state and URL settings. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Content.V21.Model.CheckoutSettings{}}` on success + * `{:error, info}` on failure + """ + @spec content_freelistingsprogram_checkoutsettings_get( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Content.V21.Model.CheckoutSettings.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def content_freelistingsprogram_checkoutsettings_get( + connection, + merchant_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/{merchantId}/freelistingsprogram/checkoutsettings", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.CheckoutSettings{}]) + end + + @doc """ + Enrolls merchant in `Checkout` program. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Content.V21.Model.InsertCheckoutSettingsRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Content.V21.Model.CheckoutSettings{}}` on success + * `{:error, info}` on failure + """ + @spec content_freelistingsprogram_checkoutsettings_insert( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Content.V21.Model.CheckoutSettings.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def content_freelistingsprogram_checkoutsettings_insert( + connection, + merchant_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/{merchantId}/freelistingsprogram/checkoutsettings", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.CheckoutSettings{}]) + end end diff --git a/clients/content/lib/google_api/content/v21/api/liasettings.ex b/clients/content/lib/google_api/content/v21/api/liasettings.ex index c41181f04b..dad4c494f1 100644 --- a/clients/content/lib/google_api/content/v21/api/liasettings.ex +++ b/clients/content/lib/google_api/content/v21/api/liasettings.ex @@ -614,6 +614,86 @@ defmodule GoogleApi.Content.V21.Api.Liasettings do ) end + @doc """ + Sets the omnichannel experience for the specified country. Only supported for merchants whose POS data provider is trusted to enable the corresponding experience. For more context, see these help articles [about LFP](https://support.google.com/merchants/answer/7676652) and [how to get started](https://support.google.com/merchants/answer/7676578) with it. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - The ID of the managing account. If this parameter is not the same as accountId, then this account must be a multi-client account and `accountId` must be the ID of a sub-account of this account. + * `account_id` (*type:* `String.t`) - The ID of the account for which to retrieve accessible Business Profiles. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:country` (*type:* `String.t`) - The CLDR country code (for example, "US") for which the omnichannel experience is selected. + * `:lsfType` (*type:* `String.t`) - The Local Store Front (LSF) type for this country. Acceptable values are: - "`ghlsf`" (Google-Hosted Local Store Front) - "`mhlsfBasic`" (Merchant-Hosted Local Store Front Basic) - "`mhlsfFull`" (Merchant-Hosted Local Store Front Full) More details about these types can be found here. + * `:pickupTypes` (*type:* `list(String.t)`) - The Pickup types for this country. Acceptable values are: - "`pickupToday`" - "`pickupLater`" + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Content.V21.Model.LiaOmnichannelExperience{}}` on success + * `{:error, info}` on failure + """ + @spec content_liasettings_setomnichannelexperience( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Content.V21.Model.LiaOmnichannelExperience.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def content_liasettings_setomnichannelexperience( + connection, + merchant_id, + account_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :country => :query, + :lsfType => :query, + :pickupTypes => :query + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/{merchantId}/liasettings/{accountId}/setomnichannelexperience", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1), + "accountId" => URI.encode(account_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.LiaOmnichannelExperience{}]) + end + @doc """ Sets the POS data provider for the specified country. diff --git a/clients/content/lib/google_api/content/v21/api/merchantsupport.ex b/clients/content/lib/google_api/content/v21/api/merchantsupport.ex new file mode 100644 index 0000000000..0214619516 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/api/merchantsupport.ex @@ -0,0 +1,187 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Api.Merchantsupport do + @moduledoc """ + API calls for all endpoints tagged `Merchantsupport`. + """ + + alias GoogleApi.Content.V21.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Provide a list of merchant's issues with a support content and available actions. This content and actions are meant to be rendered and shown in third-party applications. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account to fetch issues for. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:languageCode` (*type:* `String.t`) - Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language code used to localize support content. If not set, the result will be in default language `en-US`. + * `:timeZone` (*type:* `String.t`) - Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in support content. For example 'America/Los_Angeles'. If not set, results will use as a default UTC. + * `:body` (*type:* `GoogleApi.Content.V21.Model.RenderAccountIssuesRequestPayload.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Content.V21.Model.RenderAccountIssuesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec content_merchantsupport_renderaccountissues( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Content.V21.Model.RenderAccountIssuesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def content_merchantsupport_renderaccountissues( + connection, + merchant_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :languageCode => :query, + :timeZone => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/{merchantId}/merchantsupport/renderaccountissues", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Content.V21.Model.RenderAccountIssuesResponse{}] + ) + end + + @doc """ + Provide a list of issues for merchant's product with a support content and available actions. This content and actions are meant to be rendered and shown in third-party applications. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that contains the product. + * `product_id` (*type:* `String.t`) - Required. The [REST_ID](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.id) of the product to fetch issues for. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:languageCode` (*type:* `String.t`) - Optional. The [IETF BCP-47](https://tools.ietf.org/html/bcp47) language code used to localize support content. If not set, the result will be in default language `en-US`. + * `:timeZone` (*type:* `String.t`) - Optional. The [IANA](https://www.iana.org/time-zones) timezone used to localize times in support content. For example 'America/Los_Angeles'. If not set, results will use as a default UTC. + * `:body` (*type:* `GoogleApi.Content.V21.Model.RenderProductIssuesRequestPayload.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Content.V21.Model.RenderProductIssuesResponse{}}` on success + * `{:error, info}` on failure + """ + @spec content_merchantsupport_renderproductissues( + Tesla.Env.client(), + String.t(), + String.t(), + keyword(), + keyword() + ) :: + {:ok, GoogleApi.Content.V21.Model.RenderProductIssuesResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def content_merchantsupport_renderproductissues( + connection, + merchant_id, + product_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :languageCode => :query, + :timeZone => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/{merchantId}/merchantsupport/renderproductissues/{productId}", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1), + "productId" => URI.encode(product_id, &(URI.char_unreserved?(&1) || &1 == ?/)) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Content.V21.Model.RenderProductIssuesResponse{}] + ) + end +end diff --git a/clients/content/lib/google_api/content/v21/api/products.ex b/clients/content/lib/google_api/content/v21/api/products.ex index 57e2aebd85..2fed14b624 100644 --- a/clients/content/lib/google_api/content/v21/api/products.ex +++ b/clients/content/lib/google_api/content/v21/api/products.ex @@ -298,7 +298,7 @@ defmodule GoogleApi.Content.V21.Api.Products do * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:maxResults` (*type:* `integer()`) - The maximum number of products to return in the response, used for paging. + * `:maxResults` (*type:* `integer()`) - The maximum number of products to return in the response, used for paging. The default value is 25. The maximum value is 250. * `:pageToken` (*type:* `String.t`) - The token returned by the previous request. * `opts` (*type:* `keyword()`) - Call options diff --git a/clients/content/lib/google_api/content/v21/api/productstatuses.ex b/clients/content/lib/google_api/content/v21/api/productstatuses.ex index 32bdbe8871..84fff04432 100644 --- a/clients/content/lib/google_api/content/v21/api/productstatuses.ex +++ b/clients/content/lib/google_api/content/v21/api/productstatuses.ex @@ -182,7 +182,7 @@ defmodule GoogleApi.Content.V21.Api.Productstatuses do * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). * `:destinations` (*type:* `list(String.t)`) - If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination. - * `:maxResults` (*type:* `integer()`) - The maximum number of product statuses to return in the response, used for paging. + * `:maxResults` (*type:* `integer()`) - The maximum number of product statuses to return in the response, used for paging. The default value is 25. The maximum value is 250. * `:pageToken` (*type:* `String.t`) - The token returned by the previous request. * `opts` (*type:* `keyword()`) - Call options @@ -229,90 +229,4 @@ defmodule GoogleApi.Content.V21.Api.Productstatuses do opts ++ [struct: %GoogleApi.Content.V21.Model.ProductstatusesListResponse{}] ) end - - @doc """ - Lists the metrics report for a given Repricing product. - - ## Parameters - - * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server - * `merchant_id` (*type:* `String.t`) - Required. Id of the merchant who owns the Repricing rule. - * `product_id` (*type:* `String.t`) - Required. Id of the Repricing product. Also known as the [REST_ID](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.id) - * `optional_params` (*type:* `keyword()`) - Optional parameters - * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. - * `:access_token` (*type:* `String.t`) - OAuth access token. - * `:alt` (*type:* `String.t`) - Data format for response. - * `:callback` (*type:* `String.t`) - JSONP - * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. - * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. - * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. - * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. - * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. - * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). - * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). - * `:endDate` (*type:* `String.t`) - Gets Repricing reports on and before this date in the merchant's timezone. You can only retrieve data up to 7 days ago (default) or earlier. Format is YYYY-MM-DD. - * `:pageSize` (*type:* `integer()`) - Maximum number of days of reports to return. There can be more than one rule report returned per day. For example, if 3 rule types got applied to the same product within a 24-hour period, then a page_size of 1 will return 3 rule reports. The page size defaults to 50 and values above 1000 are coerced to 1000. This service may return fewer days of reports than this value, for example, if the time between your start and end date is less than the page size. - * `:pageToken` (*type:* `String.t`) - Token (if provided) to retrieve the subsequent page. All other parameters must match the original call that provided the page token. - * `:ruleId` (*type:* `String.t`) - Id of the Repricing rule. If specified, only gets this rule's reports. - * `:startDate` (*type:* `String.t`) - Gets Repricing reports on and after this date in the merchant's timezone, up to one year ago. Do not use a start date later than 7 days ago (default). Format is YYYY-MM-DD. - * `opts` (*type:* `keyword()`) - Call options - - ## Returns - - * `{:ok, %GoogleApi.Content.V21.Model.ListRepricingProductReportsResponse{}}` on success - * `{:error, info}` on failure - """ - @spec content_productstatuses_repricingreports_list( - Tesla.Env.client(), - String.t(), - String.t(), - keyword(), - keyword() - ) :: - {:ok, GoogleApi.Content.V21.Model.ListRepricingProductReportsResponse.t()} - | {:ok, Tesla.Env.t()} - | {:ok, list()} - | {:error, any()} - def content_productstatuses_repricingreports_list( - connection, - merchant_id, - product_id, - optional_params \\ [], - opts \\ [] - ) do - optional_params_config = %{ - :"$.xgafv" => :query, - :access_token => :query, - :alt => :query, - :callback => :query, - :fields => :query, - :key => :query, - :oauth_token => :query, - :prettyPrint => :query, - :quotaUser => :query, - :uploadType => :query, - :upload_protocol => :query, - :endDate => :query, - :pageSize => :query, - :pageToken => :query, - :ruleId => :query, - :startDate => :query - } - - request = - Request.new() - |> Request.method(:get) - |> Request.url("/{merchantId}/productstatuses/{productId}/repricingreports", %{ - "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1), - "productId" => URI.encode(product_id, &URI.char_unreserved?/1) - }) - |> Request.add_optional_params(optional_params_config, optional_params) - |> Request.library_version(@library_version) - - connection - |> Connection.execute(request) - |> Response.decode( - opts ++ [struct: %GoogleApi.Content.V21.Model.ListRepricingProductReportsResponse{}] - ) - end end diff --git a/clients/content/lib/google_api/content/v21/api/promotions.ex b/clients/content/lib/google_api/content/v21/api/promotions.ex index 1b47d5f08b..64e0bf1994 100644 --- a/clients/content/lib/google_api/content/v21/api/promotions.ex +++ b/clients/content/lib/google_api/content/v21/api/promotions.ex @@ -148,4 +148,72 @@ defmodule GoogleApi.Content.V21.Api.Promotions do |> Connection.execute(request) |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.Promotion{}]) end + + @doc """ + List all promotions from your Merchant Center account. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that contains the collection. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:countryCode` (*type:* `String.t`) - [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (for example, "US"), used as a filter on promotions target country. + * `:languageCode` (*type:* `String.t`) - The two-letter ISO 639-1 language code associated with the promotions, used as a filter. + * `:pageSize` (*type:* `integer()`) - The maximum number of promotions to return. The service may return fewer than this value. If unspecified, at most 50 labels will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. + * `:pageToken` (*type:* `String.t`) - A page token, received from a previous `ListPromotion` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPromotion` must match the call that provided the page token. + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Content.V21.Model.ListPromotionResponse{}}` on success + * `{:error, info}` on failure + """ + @spec content_promotions_list(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.Content.V21.Model.ListPromotionResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def content_promotions_list(connection, merchant_id, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :countryCode => :query, + :languageCode => :query, + :pageSize => :query, + :pageToken => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/{merchantId}/promotions", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [struct: %GoogleApi.Content.V21.Model.ListPromotionResponse{}]) + end end diff --git a/clients/content/lib/google_api/content/v21/api/quotas.ex b/clients/content/lib/google_api/content/v21/api/quotas.ex index c812bc3772..09290e8df4 100644 --- a/clients/content/lib/google_api/content/v21/api/quotas.ex +++ b/clients/content/lib/google_api/content/v21/api/quotas.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Content.V21.Api.Quotas do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Lists the quota limit and quota usage per method for your Merchant Center account. + Lists the daily call quota and usage per method for your Merchant Center account. ## Parameters diff --git a/clients/content/lib/google_api/content/v21/api/recommendations.ex b/clients/content/lib/google_api/content/v21/api/recommendations.ex new file mode 100644 index 0000000000..a49758a41b --- /dev/null +++ b/clients/content/lib/google_api/content/v21/api/recommendations.ex @@ -0,0 +1,161 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Api.Recommendations do + @moduledoc """ + API calls for all endpoints tagged `Recommendations`. + """ + + alias GoogleApi.Content.V21.Connection + alias GoogleApi.Gax.{Request, Response} + + @library_version Mix.Project.config() |> Keyword.get(:version, "") + + @doc """ + Generates recommendations for a merchant. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account to fetch recommendations for. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:allowedTag` (*type:* `list(String.t)`) - Optional. List of allowed tags. Tags are a set of predefined strings that describe the category that individual recommendation types belong to. User can specify zero or more tags in this field to indicate what categories of recommendations they want to receive. Current list of supported tags: - TREND + * `:languageCode` (*type:* `String.t`) - Optional. Language code of the client. If not set, the result will be in default language (English). This language code affects all fields prefixed with "localized". This should be set to ISO 639-1 country code. List of currently verified supported language code: en, fr, cs, da, de, es, it, nl, no, pl, pt, pt, fi, sv, vi, tr, th, ko, zh-CN, zh-TW, ja, id, hi + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %GoogleApi.Content.V21.Model.GenerateRecommendationsResponse{}}` on success + * `{:error, info}` on failure + """ + @spec content_recommendations_generate(Tesla.Env.client(), String.t(), keyword(), keyword()) :: + {:ok, GoogleApi.Content.V21.Model.GenerateRecommendationsResponse.t()} + | {:ok, Tesla.Env.t()} + | {:ok, list()} + | {:error, any()} + def content_recommendations_generate(connection, merchant_id, optional_params \\ [], opts \\ []) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :allowedTag => :query, + :languageCode => :query + } + + request = + Request.new() + |> Request.method(:get) + |> Request.url("/{merchantId}/recommendations/generate", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode( + opts ++ [struct: %GoogleApi.Content.V21.Model.GenerateRecommendationsResponse{}] + ) + end + + @doc """ + Reports an interaction on a recommendation for a merchant. + + ## Parameters + + * `connection` (*type:* `GoogleApi.Content.V21.Connection.t`) - Connection to server + * `merchant_id` (*type:* `String.t`) - Required. The ID of the account that wants to report an interaction. + * `optional_params` (*type:* `keyword()`) - Optional parameters + * `:"$.xgafv"` (*type:* `String.t`) - V1 error format. + * `:access_token` (*type:* `String.t`) - OAuth access token. + * `:alt` (*type:* `String.t`) - Data format for response. + * `:callback` (*type:* `String.t`) - JSONP + * `:fields` (*type:* `String.t`) - Selector specifying which fields to include in a partial response. + * `:key` (*type:* `String.t`) - API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. + * `:oauth_token` (*type:* `String.t`) - OAuth 2.0 token for the current user. + * `:prettyPrint` (*type:* `boolean()`) - Returns response with indentations and line breaks. + * `:quotaUser` (*type:* `String.t`) - Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. + * `:uploadType` (*type:* `String.t`) - Legacy upload protocol for media (e.g. "media", "multipart"). + * `:upload_protocol` (*type:* `String.t`) - Upload protocol for media (e.g. "raw", "multipart"). + * `:body` (*type:* `GoogleApi.Content.V21.Model.ReportInteractionRequest.t`) - + * `opts` (*type:* `keyword()`) - Call options + + ## Returns + + * `{:ok, %{}}` on success + * `{:error, info}` on failure + """ + @spec content_recommendations_report_interaction( + Tesla.Env.client(), + String.t(), + keyword(), + keyword() + ) :: {:ok, nil} | {:ok, Tesla.Env.t()} | {:ok, list()} | {:error, any()} + def content_recommendations_report_interaction( + connection, + merchant_id, + optional_params \\ [], + opts \\ [] + ) do + optional_params_config = %{ + :"$.xgafv" => :query, + :access_token => :query, + :alt => :query, + :callback => :query, + :fields => :query, + :key => :query, + :oauth_token => :query, + :prettyPrint => :query, + :quotaUser => :query, + :uploadType => :query, + :upload_protocol => :query, + :body => :body + } + + request = + Request.new() + |> Request.method(:post) + |> Request.url("/{merchantId}/recommendations/reportInteraction", %{ + "merchantId" => URI.encode(merchant_id, &URI.char_unreserved?/1) + }) + |> Request.add_optional_params(optional_params_config, optional_params) + |> Request.library_version(@library_version) + + connection + |> Connection.execute(request) + |> Response.decode(opts ++ [decode: false]) + end +end diff --git a/clients/content/lib/google_api/content/v21/api/reports.ex b/clients/content/lib/google_api/content/v21/api/reports.ex index f49c9b8970..079a9754e4 100644 --- a/clients/content/lib/google_api/content/v21/api/reports.ex +++ b/clients/content/lib/google_api/content/v21/api/reports.ex @@ -26,7 +26,7 @@ defmodule GoogleApi.Content.V21.Api.Reports do @library_version Mix.Project.config() |> Keyword.get(:version, "") @doc """ - Retrieves merchant performance mertrics matching the search query and optionally segmented by selected dimensions. + Retrieves merchant performance metrics matching the search query and optionally segmented by selected dimensions. ## Parameters diff --git a/clients/content/lib/google_api/content/v21/api/shoppingadsprogram.ex b/clients/content/lib/google_api/content/v21/api/shoppingadsprogram.ex index 8e93da9029..3a4843cc4e 100644 --- a/clients/content/lib/google_api/content/v21/api/shoppingadsprogram.ex +++ b/clients/content/lib/google_api/content/v21/api/shoppingadsprogram.ex @@ -86,7 +86,7 @@ defmodule GoogleApi.Content.V21.Api.Shoppingadsprogram do end @doc """ - Requests a review of Shopping ads in a specific region. This method is only available to selected merchants. + Requests a review of Shopping ads in a specific region. This method deprecated. Use the `MerchantSupportService` to view product and account issues and request a review. ## Parameters diff --git a/clients/content/lib/google_api/content/v21/metadata.ex b/clients/content/lib/google_api/content/v21/metadata.ex index 92b6cab664..2c6f6b6d2f 100644 --- a/clients/content/lib/google_api/content/v21/metadata.ex +++ b/clients/content/lib/google_api/content/v21/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.Content.V21 do API client metadata for GoogleApi.Content.V21. """ - @discovery_revision "20221110" + @discovery_revision "20240310" def discovery_revision(), do: @discovery_revision end diff --git a/clients/content/lib/google_api/content/v21/model/account.ex b/clients/content/lib/google_api/content/v21/model/account.ex index 0433000705..97a5bb0b25 100644 --- a/clients/content/lib/google_api/content/v21/model/account.ex +++ b/clients/content/lib/google_api/content/v21/model/account.ex @@ -22,11 +22,13 @@ defmodule GoogleApi.Content.V21.Model.Account do ## Attributes * `accountManagement` (*type:* `String.t`, *default:* `nil`) - Output only. How the account is managed. Acceptable values are: - "`manual`" - "`automatic`" - * `adsLinks` (*type:* `list(GoogleApi.Content.V21.Model.AccountAdsLink.t)`, *default:* `nil`) - Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the AdWords API. To delete an active link, or to cancel a link request, remove it from the list. + * `adsLinks` (*type:* `list(GoogleApi.Content.V21.Model.AccountAdsLink.t)`, *default:* `nil`) - Linked Ads accounts that are active or pending approval. To create a new link request, add a new link with status `active` to the list. It will remain in a `pending` state until approved or rejected either in the Ads interface or through the Google Ads API. To delete an active link, or to cancel a link request, remove it from the list. * `adultContent` (*type:* `boolean()`, *default:* `nil`) - Indicates whether the merchant sells adult content. * `automaticImprovements` (*type:* `GoogleApi.Content.V21.Model.AccountAutomaticImprovements.t`, *default:* `nil`) - The automatic improvements of the account can be used to automatically update items, improve images and shipping. Each section inside AutomaticImprovements is updated separately. * `automaticLabelIds` (*type:* `list(String.t)`, *default:* `nil`) - Automatically created label IDs that are assigned to the account by CSS Center. + * `businessIdentity` (*type:* `GoogleApi.Content.V21.Model.AccountBusinessIdentity.t`, *default:* `nil`) - The business identity attributes can be used to self-declare attributes that let customers know more about your business. * `businessInformation` (*type:* `GoogleApi.Content.V21.Model.AccountBusinessInformation.t`, *default:* `nil`) - The business information of the account. + * `conversionSettings` (*type:* `GoogleApi.Content.V21.Model.AccountConversionSettings.t`, *default:* `nil`) - Settings for conversion tracking. * `cssId` (*type:* `String.t`, *default:* `nil`) - ID of CSS the account belongs to. * `googleMyBusinessLink` (*type:* `GoogleApi.Content.V21.Model.AccountGoogleMyBusinessLink.t`, *default:* `nil`) - The Business Profile which is linked or in the process of being linked with the Merchant Center account. * `id` (*type:* `String.t`, *default:* `nil`) - Required. 64-bit Merchant Center account ID. @@ -48,8 +50,10 @@ defmodule GoogleApi.Content.V21.Model.Account do :automaticImprovements => GoogleApi.Content.V21.Model.AccountAutomaticImprovements.t() | nil, :automaticLabelIds => list(String.t()) | nil, + :businessIdentity => GoogleApi.Content.V21.Model.AccountBusinessIdentity.t() | nil, :businessInformation => GoogleApi.Content.V21.Model.AccountBusinessInformation.t() | nil, + :conversionSettings => GoogleApi.Content.V21.Model.AccountConversionSettings.t() | nil, :cssId => String.t() | nil, :googleMyBusinessLink => GoogleApi.Content.V21.Model.AccountGoogleMyBusinessLink.t() | nil, @@ -69,7 +73,9 @@ defmodule GoogleApi.Content.V21.Model.Account do field(:adultContent) field(:automaticImprovements, as: GoogleApi.Content.V21.Model.AccountAutomaticImprovements) field(:automaticLabelIds, type: :list) + field(:businessIdentity, as: GoogleApi.Content.V21.Model.AccountBusinessIdentity) field(:businessInformation, as: GoogleApi.Content.V21.Model.AccountBusinessInformation) + field(:conversionSettings, as: GoogleApi.Content.V21.Model.AccountConversionSettings) field(:cssId) field(:googleMyBusinessLink, as: GoogleApi.Content.V21.Model.AccountGoogleMyBusinessLink) field(:id) diff --git a/clients/content/lib/google_api/content/v21/model/account_business_identity.ex b/clients/content/lib/google_api/content/v21/model/account_business_identity.ex new file mode 100644 index 0000000000..9488166464 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/account_business_identity.ex @@ -0,0 +1,61 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.AccountBusinessIdentity do + @moduledoc """ + The [business identity attributes](https://support.google.com/merchants/answer/10342414) can be used to self-declare attributes that let customers know more about your business. + + ## Attributes + + * `blackOwned` (*type:* `GoogleApi.Content.V21.Model.AccountIdentityType.t`, *default:* `nil`) - Specifies whether the business identifies itself as being black-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. + * `includeForPromotions` (*type:* `boolean()`, *default:* `nil`) - Required. By setting this field, your business may be included in promotions for all the selected attributes. If you clear this option, it won't affect your identification with any of the attributes. For this field to be set, the merchant must self identify with at least one of the `AccountIdentityType`. If none are included, the request will be considered invalid. + * `latinoOwned` (*type:* `GoogleApi.Content.V21.Model.AccountIdentityType.t`, *default:* `nil`) - Specifies whether the business identifies itself as being latino-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. + * `smallBusiness` (*type:* `GoogleApi.Content.V21.Model.AccountIdentityType.t`, *default:* `nil`) - Specifies whether the business identifies itself as a small business. This optional field is only available for merchants with a business country set to "US". It is also not allowed for marketplaces, but it is allowed to marketplace sellers. + * `veteranOwned` (*type:* `GoogleApi.Content.V21.Model.AccountIdentityType.t`, *default:* `nil`) - Specifies whether the business identifies itself as being veteran-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. + * `womenOwned` (*type:* `GoogleApi.Content.V21.Model.AccountIdentityType.t`, *default:* `nil`) - Specifies whether the business identifies itself as being women-owned. This optional field is only available for merchants with a business country set to "US". This field is not allowed for marketplaces or marketplace sellers. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :blackOwned => GoogleApi.Content.V21.Model.AccountIdentityType.t() | nil, + :includeForPromotions => boolean() | nil, + :latinoOwned => GoogleApi.Content.V21.Model.AccountIdentityType.t() | nil, + :smallBusiness => GoogleApi.Content.V21.Model.AccountIdentityType.t() | nil, + :veteranOwned => GoogleApi.Content.V21.Model.AccountIdentityType.t() | nil, + :womenOwned => GoogleApi.Content.V21.Model.AccountIdentityType.t() | nil + } + + field(:blackOwned, as: GoogleApi.Content.V21.Model.AccountIdentityType) + field(:includeForPromotions) + field(:latinoOwned, as: GoogleApi.Content.V21.Model.AccountIdentityType) + field(:smallBusiness, as: GoogleApi.Content.V21.Model.AccountIdentityType) + field(:veteranOwned, as: GoogleApi.Content.V21.Model.AccountIdentityType) + field(:womenOwned, as: GoogleApi.Content.V21.Model.AccountIdentityType) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AccountBusinessIdentity do + def decode(value, options) do + GoogleApi.Content.V21.Model.AccountBusinessIdentity.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AccountBusinessIdentity do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/account_business_information.ex b/clients/content/lib/google_api/content/v21/model/account_business_information.ex index a19d6b74d1..a32ce395d3 100644 --- a/clients/content/lib/google_api/content/v21/model/account_business_information.ex +++ b/clients/content/lib/google_api/content/v21/model/account_business_information.ex @@ -24,7 +24,7 @@ defmodule GoogleApi.Content.V21.Model.AccountBusinessInformation do * `address` (*type:* `GoogleApi.Content.V21.Model.AccountAddress.t`, *default:* `nil`) - The address of the business. Use `\\n` to add a second address line. * `customerService` (*type:* `GoogleApi.Content.V21.Model.AccountCustomerService.t`, *default:* `nil`) - The customer service information of the business. * `koreanBusinessRegistrationNumber` (*type:* `String.t`, *default:* `nil`) - The 10-digit [Korean business registration number](https://support.google.com/merchants/answer/9037766) separated with dashes in the format: XXX-XX-XXXXX. This field will only be updated if explicitly set. - * `phoneNumber` (*type:* `String.t`, *default:* `nil`) - The phone number of the business. This can only be updated if a verified phone number is not already set. To replace a verified phone number use the `Accounts.requestphoneverification` and `Accounts.verifyphonenumber`. + * `phoneNumber` (*type:* `String.t`, *default:* `nil`) - The phone number of the business in [E.164](https://en.wikipedia.org/wiki/E.164) format. This can only be updated if a verified phone number is not already set. To replace a verified phone number use the `Accounts.requestphoneverification` and `Accounts.verifyphonenumber`. * `phoneVerificationStatus` (*type:* `String.t`, *default:* `nil`) - Verification status of the phone number of the business. This status is read only and can be updated only by successful phone verification. Acceptable values are: - "`verified`" - "`unverified`" """ diff --git a/clients/content/lib/google_api/content/v21/model/account_conversion_settings.ex b/clients/content/lib/google_api/content/v21/model/account_conversion_settings.ex new file mode 100644 index 0000000000..3dd40e754f --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/account_conversion_settings.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.AccountConversionSettings do + @moduledoc """ + Settings for conversion tracking. + + ## Attributes + + * `freeListingsAutoTaggingEnabled` (*type:* `boolean()`, *default:* `nil`) - When enabled, free listing URLs have a parameter to enable conversion tracking for products owned by the current merchant account. See [auto-tagging](https://support.google.com/merchants/answer/11127659). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :freeListingsAutoTaggingEnabled => boolean() | nil + } + + field(:freeListingsAutoTaggingEnabled) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AccountConversionSettings do + def decode(value, options) do + GoogleApi.Content.V21.Model.AccountConversionSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AccountConversionSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_report_buybox_winning_rule_stats.ex b/clients/content/lib/google_api/content/v21/model/account_identity_type.ex similarity index 57% rename from clients/content/lib/google_api/content/v21/model/repricing_rule_report_buybox_winning_rule_stats.ex rename to clients/content/lib/google_api/content/v21/model/account_identity_type.ex index 397534e28e..80f251f697 100644 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_report_buybox_winning_rule_stats.ex +++ b/clients/content/lib/google_api/content/v21/model/account_identity_type.ex @@ -15,31 +15,31 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Model.RepricingRuleReportBuyboxWinningRuleStats do +defmodule GoogleApi.Content.V21.Model.AccountIdentityType do @moduledoc """ - Stats specific to buybox winning rules for rule report. + The account identity type used to specify attributes. ## Attributes - * `buyboxWonProductCount` (*type:* `integer()`, *default:* `nil`) - Number of unique products that won the buybox with this rule during this period of time. + * `selfIdentified` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates that the business identifies itself with a given identity type. Setting this field does not automatically mean eligibility for promotions. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :buyboxWonProductCount => integer() | nil + :selfIdentified => boolean() | nil } - field(:buyboxWonProductCount) + field(:selfIdentified) end -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleReportBuyboxWinningRuleStats do +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AccountIdentityType do def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleReportBuyboxWinningRuleStats.decode(value, options) + GoogleApi.Content.V21.Model.AccountIdentityType.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleReportBuyboxWinningRuleStats do +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AccountIdentityType do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/content/lib/google_api/content/v21/model/account_issue.ex b/clients/content/lib/google_api/content/v21/model/account_issue.ex new file mode 100644 index 0000000000..b7ab320148 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/account_issue.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.AccountIssue do + @moduledoc """ + An issue affecting specific merchant. + + ## Attributes + + * `actions` (*type:* `list(GoogleApi.Content.V21.Model.Action.t)`, *default:* `nil`) - A list of actionable steps that can be executed to solve the issue. An example is requesting a re-review or providing arguments when merchant disagrees with the issue. Actions that are supported in (your) third-party application can be rendered as buttons and should be available to merchant when they expand the issue. + * `impact` (*type:* `GoogleApi.Content.V21.Model.AccountIssueImpact.t`, *default:* `nil`) - Clarifies the severity of the issue. The summarizing message, if present, should be shown right under the title for each issue. It helps merchants to quickly understand the impact of the issue. The detailed breakdown helps the merchant to fully understand the impact of the issue. It can be rendered as dialog that opens when the merchant mouse over the summarized impact statement. Issues with different severity can be styled differently. They may use a different color or icon to signal the difference between `ERROR`, `WARNING` and `INFO`. + * `prerenderedContent` (*type:* `String.t`, *default:* `nil`) - Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actions => list(GoogleApi.Content.V21.Model.Action.t()) | nil, + :impact => GoogleApi.Content.V21.Model.AccountIssueImpact.t() | nil, + :prerenderedContent => String.t() | nil, + :title => String.t() | nil + } + + field(:actions, as: GoogleApi.Content.V21.Model.Action, type: :list) + field(:impact, as: GoogleApi.Content.V21.Model.AccountIssueImpact) + field(:prerenderedContent) + field(:title) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AccountIssue do + def decode(value, options) do + GoogleApi.Content.V21.Model.AccountIssue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AccountIssue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/account_issue_impact.ex b/clients/content/lib/google_api/content/v21/model/account_issue_impact.ex new file mode 100644 index 0000000000..e631cb572f --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/account_issue_impact.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.AccountIssueImpact do + @moduledoc """ + Overall impact of the issue. + + ## Attributes + + * `breakdowns` (*type:* `list(GoogleApi.Content.V21.Model.Breakdown.t)`, *default:* `nil`) - Detailed impact breakdown. Explains the types of restriction the issue has in different shopping destinations and territory. If present, it should be rendered to the merchant. Can be shown as a mouse over dropdown or a dialog. Each breakdown item represents a group of regions with the same impact details. + * `message` (*type:* `String.t`, *default:* `nil`) - Optional. Message summarizing the overall impact of the issue. If present, it should be rendered to the merchant. For example: "Disapproves 90k offers in 25 countries" + * `severity` (*type:* `String.t`, *default:* `nil`) - The severity of the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :breakdowns => list(GoogleApi.Content.V21.Model.Breakdown.t()) | nil, + :message => String.t() | nil, + :severity => String.t() | nil + } + + field(:breakdowns, as: GoogleApi.Content.V21.Model.Breakdown, type: :list) + field(:message) + field(:severity) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AccountIssueImpact do + def decode(value, options) do + GoogleApi.Content.V21.Model.AccountIssueImpact.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AccountIssueImpact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex b/clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex index b42332199b..7f31ca3ca5 100644 --- a/clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex +++ b/clients/content/lib/google_api/content/v21/model/accounts_custom_batch_request_entry_link_request.ex @@ -22,9 +22,9 @@ defmodule GoogleApi.Content.V21.Model.AccountsCustomBatchRequestEntryLinkRequest ## Attributes * `action` (*type:* `String.t`, *default:* `nil`) - Action to perform for this link. The `"request"` action is only available to select merchants. Acceptable values are: - "`approve`" - "`remove`" - "`request`" - * `linkType` (*type:* `String.t`, *default:* `nil`) - Type of the link between the two accounts. Acceptable values are: - "`channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`" + * `linkType` (*type:* `String.t`, *default:* `nil`) - Type of the link between the two accounts. Acceptable values are: - "`channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`" - "`localProductManager`" * `linkedAccountId` (*type:* `String.t`, *default:* `nil`) - The ID of the linked account. - * `services` (*type:* `list(String.t)`, *default:* `nil`) - Provided services. Acceptable values are: - "`shoppingAdsProductManagement`" - "`shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`" - "`paymentProcessing`" + * `services` (*type:* `list(String.t)`, *default:* `nil`) - Provided services. Acceptable values are: - "`shoppingAdsProductManagement`" - "`shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`" - "`paymentProcessing`" - "`localProductManagement`" """ use GoogleApi.Gax.ModelBase diff --git a/clients/content/lib/google_api/content/v21/model/action.ex b/clients/content/lib/google_api/content/v21/model/action.ex new file mode 100644 index 0000000000..c1d627c1ae --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/action.ex @@ -0,0 +1,58 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.Action do + @moduledoc """ + An actionable step that can be executed to solve the issue. + + ## Attributes + + * `builtinSimpleAction` (*type:* `GoogleApi.Content.V21.Model.BuiltInSimpleAction.t`, *default:* `nil`) - Action implemented and performed in (your) third-party application. The application should point the merchant to the place, where they can access the corresponding functionality or provide instructions, if the specific functionality is not available. + * `buttonLabel` (*type:* `String.t`, *default:* `nil`) - Label of the action button. + * `externalAction` (*type:* `GoogleApi.Content.V21.Model.ExternalAction.t`, *default:* `nil`) - Action that is implemented and performed outside of (your) third-party application. The application needs to redirect the merchant to the external location where they can perform the action. + * `isAvailable` (*type:* `boolean()`, *default:* `nil`) - Controlling whether the button is active or disabled. The value is 'false' when the action was already requested or is not available. If the action is not available then a reason will be present. If (your) third-party application shows a disabled button for action that is not available, then it should also show reasons. + * `reasons` (*type:* `list(GoogleApi.Content.V21.Model.ActionReason.t)`, *default:* `nil`) - List of reasons why the action is not available. The list of reasons is empty if the action is available. If there is only one reason, it can be displayed next to the disabled button. If there are more reasons, all of them should be displayed, for example in a pop-up dialog. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :builtinSimpleAction => GoogleApi.Content.V21.Model.BuiltInSimpleAction.t() | nil, + :buttonLabel => String.t() | nil, + :externalAction => GoogleApi.Content.V21.Model.ExternalAction.t() | nil, + :isAvailable => boolean() | nil, + :reasons => list(GoogleApi.Content.V21.Model.ActionReason.t()) | nil + } + + field(:builtinSimpleAction, as: GoogleApi.Content.V21.Model.BuiltInSimpleAction) + field(:buttonLabel) + field(:externalAction, as: GoogleApi.Content.V21.Model.ExternalAction) + field(:isAvailable) + field(:reasons, as: GoogleApi.Content.V21.Model.ActionReason, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.Action do + def decode(value, options) do + GoogleApi.Content.V21.Model.Action.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.Action do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/action_reason.ex b/clients/content/lib/google_api/content/v21/model/action_reason.ex new file mode 100644 index 0000000000..104f004a01 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/action_reason.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ActionReason do + @moduledoc """ + A single reason why the action is not available. + + ## Attributes + + * `action` (*type:* `GoogleApi.Content.V21.Model.Action.t`, *default:* `nil`) - Optional. An action that needs to be performed to solve the problem represented by this reason. This action will always be available. Should be rendered as a link or button next to the summarizing message. For example, the review may be available only once merchant configure all required attributes. In such a situation this action can be a link to the form, where they can fill the missing attribute to unblock the main action. + * `detail` (*type:* `String.t`, *default:* `nil`) - Detailed explanation of the reason. Should be displayed as a hint if present. + * `message` (*type:* `String.t`, *default:* `nil`) - Messages summarizing the reason, why the action is not available. For example: "Review requested on Jan 03. Review requests can take a few days to complete." + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :action => GoogleApi.Content.V21.Model.Action.t() | nil, + :detail => String.t() | nil, + :message => String.t() | nil + } + + field(:action, as: GoogleApi.Content.V21.Model.Action) + field(:detail) + field(:message) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ActionReason do + def decode(value, options) do + GoogleApi.Content.V21.Model.ActionReason.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ActionReason do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/alternate_dispute_resolution.ex b/clients/content/lib/google_api/content/v21/model/alternate_dispute_resolution.ex new file mode 100644 index 0000000000..8f68cf9909 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/alternate_dispute_resolution.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.AlternateDisputeResolution do + @moduledoc """ + The Alternate Dispute Resolution (ADR) that may be available to merchants in some regions. If present, the link should be shown on the same page as the list of issues. + + ## Attributes + + * `label` (*type:* `String.t`, *default:* `nil`) - The label for the alternate dispute resolution link. + * `uri` (*type:* `String.t`, *default:* `nil`) - The URL pointing to a page, where merchant can request alternative dispute resolution with an [external body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :label => String.t() | nil, + :uri => String.t() | nil + } + + field(:label) + field(:uri) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AlternateDisputeResolution do + def decode(value, options) do + GoogleApi.Content.V21.Model.AlternateDisputeResolution.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AlternateDisputeResolution do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/attribution_settings.ex b/clients/content/lib/google_api/content/v21/model/attribution_settings.ex new file mode 100644 index 0000000000..f0a3edb086 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/attribution_settings.ex @@ -0,0 +1,57 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.AttributionSettings do + @moduledoc """ + Represents attribution settings for conversion sources receiving pre-attribution data. + + ## Attributes + + * `attributionLookbackWindowInDays` (*type:* `integer()`, *default:* `nil`) - Required. Lookback windows (in days) used for attribution in this source. Supported values are 7, 30, 40. + * `attributionModel` (*type:* `String.t`, *default:* `nil`) - Required. Attribution model. + * `conversionType` (*type:* `list(GoogleApi.Content.V21.Model.AttributionSettingsConversionType.t)`, *default:* `nil`) - Immutable. Unordered list. List of different conversion types a conversion event can be classified as. A standard "purchase" type will be automatically created if this list is empty at creation time. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributionLookbackWindowInDays => integer() | nil, + :attributionModel => String.t() | nil, + :conversionType => + list(GoogleApi.Content.V21.Model.AttributionSettingsConversionType.t()) | nil + } + + field(:attributionLookbackWindowInDays) + field(:attributionModel) + + field(:conversionType, + as: GoogleApi.Content.V21.Model.AttributionSettingsConversionType, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AttributionSettings do + def decode(value, options) do + GoogleApi.Content.V21.Model.AttributionSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AttributionSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_effective_time.ex b/clients/content/lib/google_api/content/v21/model/attribution_settings_conversion_type.ex similarity index 54% rename from clients/content/lib/google_api/content/v21/model/repricing_rule_effective_time.ex rename to clients/content/lib/google_api/content/v21/model/attribution_settings_conversion_type.ex index 4abccbb65b..2d20b1bc4d 100644 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_effective_time.ex +++ b/clients/content/lib/google_api/content/v21/model/attribution_settings_conversion_type.ex @@ -15,35 +15,34 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Model.RepricingRuleEffectiveTime do +defmodule GoogleApi.Content.V21.Model.AttributionSettingsConversionType do @moduledoc """ - + Message representing a types of conversion events ## Attributes - * `fixedTimePeriods` (*type:* `list(GoogleApi.Content.V21.Model.RepricingRuleEffectiveTimeFixedTimePeriod.t)`, *default:* `nil`) - A list of fixed time periods combined with OR. The maximum number of entries is limited to 5. + * `includeInReporting` (*type:* `boolean()`, *default:* `nil`) - Output only. Option indicating if the type should be included in Merchant Center reporting. + * `name` (*type:* `String.t`, *default:* `nil`) - Output only. Conversion event name, as it'll be reported by the client. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :fixedTimePeriods => - list(GoogleApi.Content.V21.Model.RepricingRuleEffectiveTimeFixedTimePeriod.t()) | nil + :includeInReporting => boolean() | nil, + :name => String.t() | nil } - field(:fixedTimePeriods, - as: GoogleApi.Content.V21.Model.RepricingRuleEffectiveTimeFixedTimePeriod, - type: :list - ) + field(:includeInReporting) + field(:name) end -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleEffectiveTime do +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.AttributionSettingsConversionType do def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleEffectiveTime.decode(value, options) + GoogleApi.Content.V21.Model.AttributionSettingsConversionType.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleEffectiveTime do +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.AttributionSettingsConversionType do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/content/lib/google_api/content/v21/model/best_sellers.ex b/clients/content/lib/google_api/content/v21/model/best_sellers.ex index e885fdb9e8..f496a33f28 100644 --- a/clients/content/lib/google_api/content/v21/model/best_sellers.ex +++ b/clients/content/lib/google_api/content/v21/model/best_sellers.ex @@ -17,19 +17,19 @@ defmodule GoogleApi.Content.V21.Model.BestSellers do @moduledoc """ - Fields related to the [Best Sellers reports](https://support.google.com/merchants/answer/9488679). + Fields related to the [Best sellers reports](https://support.google.com/merchants/answer/9488679). ## Attributes - * `categoryId` (*type:* `String.t`, *default:* `nil`) - Google product category ID to calculate the ranking for, represented in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). - * `countryCode` (*type:* `String.t`, *default:* `nil`) - Country where the ranking is calculated. + * `categoryId` (*type:* `String.t`, *default:* `nil`) - Google product category ID to calculate the ranking for, represented in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). If a `WHERE` condition on `best_sellers.category_id` is not specified in the query, rankings for all top-level categories are returned. + * `countryCode` (*type:* `String.t`, *default:* `nil`) - Country where the ranking is calculated. A `WHERE` condition on `best_sellers.country_code` is required in the query. * `previousRank` (*type:* `String.t`, *default:* `nil`) - Popularity rank in the previous week or month. * `previousRelativeDemand` (*type:* `String.t`, *default:* `nil`) - Estimated demand in relation to the item with the highest popularity rank in the same category and country in the previous week or month. * `rank` (*type:* `String.t`, *default:* `nil`) - Popularity on Shopping ads and free listings, in the selected category and country, based on the estimated number of units sold. * `relativeDemand` (*type:* `String.t`, *default:* `nil`) - Estimated demand in relation to the item with the highest popularity rank in the same category and country. * `relativeDemandChange` (*type:* `String.t`, *default:* `nil`) - Change in the estimated demand. Whether it rose, sank or remained flat. - * `reportDate` (*type:* `GoogleApi.Content.V21.Model.Date.t`, *default:* `nil`) - Report date. The value of this field can only be one of the following: * The first day of the week (Monday) for weekly reports. * The first day of the month for monthly reports. - * `reportGranularity` (*type:* `String.t`, *default:* `nil`) - Granularity of the report. The ranking can be done over a week or a month timeframe. + * `reportDate` (*type:* `GoogleApi.Content.V21.Model.Date.t`, *default:* `nil`) - Report date. The value of this field can only be one of the following: * The first day of the week (Monday) for weekly reports. * The first day of the month for monthly reports. If a `WHERE` condition on `best_sellers.report_date` is not specified in the query, the latest available weekly or monthly report is returned. + * `reportGranularity` (*type:* `String.t`, *default:* `nil`) - Granularity of the report. The ranking can be done over a week or a month timeframe. A `WHERE` condition on `best_sellers.report_granularity` is required in the query. """ use GoogleApi.Gax.ModelBase diff --git a/clients/content/lib/google_api/content/v21/model/breakdown.ex b/clients/content/lib/google_api/content/v21/model/breakdown.ex new file mode 100644 index 0000000000..e79bd51206 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/breakdown.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.Breakdown do + @moduledoc """ + A detailed impact breakdown for a group of regions where the impact of the issue on different shopping destinations is the same. + + ## Attributes + + * `details` (*type:* `list(String.t)`, *default:* `nil`) - Human readable, localized description of issue's effect on different targets. Should be rendered as a list. For example: * "Products not showing in ads" * "Products not showing organically" + * `regions` (*type:* `list(GoogleApi.Content.V21.Model.BreakdownRegion.t)`, *default:* `nil`) - Lists of regions. Should be rendered as a title for this group of details. The full list should be shown to merchant. If the list is too long, it is recommended to make it expandable. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :details => list(String.t()) | nil, + :regions => list(GoogleApi.Content.V21.Model.BreakdownRegion.t()) | nil + } + + field(:details, type: :list) + field(:regions, as: GoogleApi.Content.V21.Model.BreakdownRegion, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.Breakdown do + def decode(value, options) do + GoogleApi.Content.V21.Model.Breakdown.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.Breakdown do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/breakdown_region.ex b/clients/content/lib/google_api/content/v21/model/breakdown_region.ex new file mode 100644 index 0000000000..53098a4a48 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/breakdown_region.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.BreakdownRegion do + @moduledoc """ + Region with code and localized name. + + ## Attributes + + * `code` (*type:* `String.t`, *default:* `nil`) - The [CLDR territory code] (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) + * `name` (*type:* `String.t`, *default:* `nil`) - The localized name of the region. For region with code='001' the value is 'All countries' or the equivalent in other languages. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => String.t() | nil, + :name => String.t() | nil + } + + field(:code) + field(:name) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.BreakdownRegion do + def decode(value, options) do + GoogleApi.Content.V21.Model.BreakdownRegion.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.BreakdownRegion do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/built_in_simple_action.ex b/clients/content/lib/google_api/content/v21/model/built_in_simple_action.ex new file mode 100644 index 0000000000..d4184979fc --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/built_in_simple_action.ex @@ -0,0 +1,53 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.BuiltInSimpleAction do + @moduledoc """ + Action that is implemented and performed in (your) third-party application. Represents various functionality that is expected to be available to merchant and will help them with resolving the issue. The application should point the merchant to the place, where they can access the corresponding functionality. If the functionality is not supported, it is recommended to explain the situation to merchant and provide them with instructions how to solve the issue. + + ## Attributes + + * `additionalContent` (*type:* `GoogleApi.Content.V21.Model.BuiltInSimpleActionAdditionalContent.t`, *default:* `nil`) - Long text from an external source that should be available to the merchant. Present when the type is `SHOW_ADDITIONAL_CONTENT`. + * `attributeCode` (*type:* `String.t`, *default:* `nil`) - The attribute that needs to be updated. Present when the type is `EDIT_ITEM_ATTRIBUTE`. This field contains a code for attribute, represented in snake_case. You can find a list of product's attributes, with their codes [here](https://support.google.com/merchants/answer/7052112). + * `type` (*type:* `String.t`, *default:* `nil`) - The type of action that represents a functionality that is expected to be available in third-party application. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalContent => + GoogleApi.Content.V21.Model.BuiltInSimpleActionAdditionalContent.t() | nil, + :attributeCode => String.t() | nil, + :type => String.t() | nil + } + + field(:additionalContent, as: GoogleApi.Content.V21.Model.BuiltInSimpleActionAdditionalContent) + field(:attributeCode) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.BuiltInSimpleAction do + def decode(value, options) do + GoogleApi.Content.V21.Model.BuiltInSimpleAction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.BuiltInSimpleAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/built_in_simple_action_additional_content.ex b/clients/content/lib/google_api/content/v21/model/built_in_simple_action_additional_content.ex new file mode 100644 index 0000000000..137f858798 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/built_in_simple_action_additional_content.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.BuiltInSimpleActionAdditionalContent do + @moduledoc """ + Long text from external source. + + ## Attributes + + * `paragraphs` (*type:* `list(String.t)`, *default:* `nil`) - Long text organized into paragraphs. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the additional content; + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :paragraphs => list(String.t()) | nil, + :title => String.t() | nil + } + + field(:paragraphs, type: :list) + field(:title) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.BuiltInSimpleActionAdditionalContent do + def decode(value, options) do + GoogleApi.Content.V21.Model.BuiltInSimpleActionAdditionalContent.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.BuiltInSimpleActionAdditionalContent do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/checkout_settings.ex b/clients/content/lib/google_api/content/v21/model/checkout_settings.ex new file mode 100644 index 0000000000..d26c431c7f --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/checkout_settings.ex @@ -0,0 +1,64 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.CheckoutSettings do + @moduledoc """ + `CheckoutSettings` for a specific merchant ID. + + ## Attributes + + * `effectiveEnrollmentState` (*type:* `String.t`, *default:* `nil`) - Output only. The effective value of enrollment state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account. + * `effectiveReviewState` (*type:* `String.t`, *default:* `nil`) - Output only. The effective value of review state for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account. + * `effectiveUriSettings` (*type:* `GoogleApi.Content.V21.Model.UrlSettings.t`, *default:* `nil`) - The effective value of `url_settings` for a given merchant ID. If account level settings are present then this value will be a copy of the account level settings. Otherwise, it will have the value of the parent account. + * `enrollmentState` (*type:* `String.t`, *default:* `nil`) - Output only. Reflects the merchant enrollment state in `Checkout` feature. + * `merchantId` (*type:* `String.t`, *default:* `nil`) - Required. The ID of the account. + * `reviewState` (*type:* `String.t`, *default:* `nil`) - Output only. Reflects the merchant review state in `Checkout` feature. This is set based on the data quality reviews of the URL provided by the merchant. A merchant with enrollment state as `ENROLLED` can be in the following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A merchant must be in an enrollment_state of `ENROLLED` before a review can begin for the merchant. + * `uriSettings` (*type:* `GoogleApi.Content.V21.Model.UrlSettings.t`, *default:* `nil`) - URL settings for cart or checkout URL. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :effectiveEnrollmentState => String.t() | nil, + :effectiveReviewState => String.t() | nil, + :effectiveUriSettings => GoogleApi.Content.V21.Model.UrlSettings.t() | nil, + :enrollmentState => String.t() | nil, + :merchantId => String.t() | nil, + :reviewState => String.t() | nil, + :uriSettings => GoogleApi.Content.V21.Model.UrlSettings.t() | nil + } + + field(:effectiveEnrollmentState) + field(:effectiveReviewState) + field(:effectiveUriSettings, as: GoogleApi.Content.V21.Model.UrlSettings) + field(:enrollmentState) + field(:merchantId) + field(:reviewState) + field(:uriSettings, as: GoogleApi.Content.V21.Model.UrlSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.CheckoutSettings do + def decode(value, options) do + GoogleApi.Content.V21.Model.CheckoutSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.CheckoutSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/cloud_export_additional_properties.ex b/clients/content/lib/google_api/content/v21/model/cloud_export_additional_properties.ex new file mode 100644 index 0000000000..2256cfc4f5 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/cloud_export_additional_properties.ex @@ -0,0 +1,67 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.CloudExportAdditionalProperties do + @moduledoc """ + Product property for the Cloud Retail API. For example, properties for a TV product could be "Screen-Resolution" or "Screen-Size". + + ## Attributes + + * `boolValue` (*type:* `boolean()`, *default:* `nil`) - Boolean value of the given property. For example for a TV product, "True" or "False" if the screen is UHD. + * `floatValue` (*type:* `list(number())`, *default:* `nil`) - Float values of the given property. For example for a TV product 1.2345. Maximum number of specified values for this field is 400. Values are stored in an arbitrary but consistent order. + * `intValue` (*type:* `list(String.t)`, *default:* `nil`) - Integer values of the given property. For example, 1080 for a screen resolution of a TV product. Maximum number of specified values for this field is 400. Values are stored in an arbitrary but consistent order. + * `maxValue` (*type:* `number()`, *default:* `nil`) - Maximum float value of the given property. For example for a TV product 100.00. + * `minValue` (*type:* `number()`, *default:* `nil`) - Minimum float value of the given property. For example for a TV product 1.00. + * `propertyName` (*type:* `String.t`, *default:* `nil`) - Name of the given property. For example, "Screen-Resolution" for a TV product. Maximum string size is 256 characters. + * `textValue` (*type:* `list(String.t)`, *default:* `nil`) - Text value of the given property. For example, "8K(UHD)" could be a text value for a TV product. Maximum number of specified values for this field is 400. Values are stored in an arbitrary but consistent order. Maximum string size is 256 characters. + * `unitCode` (*type:* `String.t`, *default:* `nil`) - Unit of the given property. For example, "Pixels" for a TV product. Maximum string size is 256 bytes. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :boolValue => boolean() | nil, + :floatValue => list(number()) | nil, + :intValue => list(String.t()) | nil, + :maxValue => number() | nil, + :minValue => number() | nil, + :propertyName => String.t() | nil, + :textValue => list(String.t()) | nil, + :unitCode => String.t() | nil + } + + field(:boolValue) + field(:floatValue, type: :list) + field(:intValue, type: :list) + field(:maxValue) + field(:minValue) + field(:propertyName) + field(:textValue, type: :list) + field(:unitCode) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.CloudExportAdditionalProperties do + def decode(value, options) do + GoogleApi.Content.V21.Model.CloudExportAdditionalProperties.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.CloudExportAdditionalProperties do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/competitive_visibility.ex b/clients/content/lib/google_api/content/v21/model/competitive_visibility.ex new file mode 100644 index 0000000000..888ccfa526 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/competitive_visibility.ex @@ -0,0 +1,82 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.CompetitiveVisibility do + @moduledoc """ + Fields related to [competitive visibility reports] (https://support.google.com/merchants/answer/11366442). + + ## Attributes + + * `adsOrganicRatio` (*type:* `float()`, *default:* `nil`) - [Ads / organic ratio] (https://support.google.com/merchants/answer/11366442#zippy=%2Cadsfree-ratio) shows how often a merchant receives impressions from Shopping ads compared to organic traffic. The number is rounded and bucketed. Available only in `CompetitiveVisibilityTopMerchantView` and `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE' clause. + * `categoryBenchmarkVisibilityTrend` (*type:* `float()`, *default:* `nil`) - Change in visibility based on impressions with respect to the start of the selected time range (or first day with non-zero impressions) for a combined set of merchants with highest visibility approximating the market. Available only in `CompetitiveVisibilityBenchmarkView`. Cannot be filtered on in the 'WHERE' clause. + * `categoryId` (*type:* `String.t`, *default:* `nil`) - Google product category ID to calculate the report for, represented in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). Required in the `SELECT` clause. A `WHERE` condition on `competitive_visibility.category_id` is required in the query. + * `countryCode` (*type:* `String.t`, *default:* `nil`) - The country where impression appeared. Required in the `SELECT` clause. A `WHERE` condition on `competitive_visibility.country_code` is required in the query. + * `date` (*type:* `GoogleApi.Content.V21.Model.Date.t`, *default:* `nil`) - Date of this row. Available only in `CompetitiveVisibilityBenchmarkView` and `CompetitiveVisibilityCompetitorView`. Required in the `SELECT` clause for `CompetitiveVisibilityMarketBenchmarkView`. + * `domain` (*type:* `String.t`, *default:* `nil`) - Domain of your competitor or your domain, if 'is_your_domain' is true. Available only in `CompetitiveVisibilityTopMerchantView` and `CompetitiveVisibilityCompetitorView`. Required in the `SELECT` clause for `CompetitiveVisibilityTopMerchantView` and `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE' clause. + * `higherPositionRate` (*type:* `float()`, *default:* `nil`) - Higher position rate shows how often a competitor’s offer got placed in a higher position on the page than your offer. Available only in `CompetitiveVisibilityTopMerchantView` and `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE' clause. + * `isYourDomain` (*type:* `boolean()`, *default:* `nil`) - True if this row contains data for your domain. Available only in `CompetitiveVisibilityTopMerchantView` and `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE' clause. + * `pageOverlapRate` (*type:* `float()`, *default:* `nil`) - Page overlap rate describes how frequently competing retailers’ offers are shown together with your offers on the same page. Available only in `CompetitiveVisibilityTopMerchantView` and `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE' clause. + * `rank` (*type:* `String.t`, *default:* `nil`) - Position of the domain in the top merchants ranking for the selected keys (`date`, `category_id`, `country_code`, `listing_type`) based on impressions. 1 is the highest. Available only in `CompetitiveVisibilityTopMerchantView` and `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE' clause. + * `relativeVisibility` (*type:* `float()`, *default:* `nil`) - Relative visibility shows how often your competitors’ offers are shown compared to your offers. In other words, this is the number of displayed impressions of a competitor retailer divided by the number of your displayed impressions during a selected time range for a selected product category and country. Available only in `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE' clause. + * `trafficSource` (*type:* `String.t`, *default:* `nil`) - Type of impression listing. Required in the `SELECT` clause. Cannot be filtered on in the 'WHERE' clause. + * `yourDomainVisibilityTrend` (*type:* `float()`, *default:* `nil`) - Change in visibility based on impressions for your domain with respect to the start of the selected time range (or first day with non-zero impressions). Available only in `CompetitiveVisibilityBenchmarkView`. Cannot be filtered on in the 'WHERE' clause. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :adsOrganicRatio => float() | nil, + :categoryBenchmarkVisibilityTrend => float() | nil, + :categoryId => String.t() | nil, + :countryCode => String.t() | nil, + :date => GoogleApi.Content.V21.Model.Date.t() | nil, + :domain => String.t() | nil, + :higherPositionRate => float() | nil, + :isYourDomain => boolean() | nil, + :pageOverlapRate => float() | nil, + :rank => String.t() | nil, + :relativeVisibility => float() | nil, + :trafficSource => String.t() | nil, + :yourDomainVisibilityTrend => float() | nil + } + + field(:adsOrganicRatio) + field(:categoryBenchmarkVisibilityTrend) + field(:categoryId) + field(:countryCode) + field(:date, as: GoogleApi.Content.V21.Model.Date) + field(:domain) + field(:higherPositionRate) + field(:isYourDomain) + field(:pageOverlapRate) + field(:rank) + field(:relativeVisibility) + field(:trafficSource) + field(:yourDomainVisibilityTrend) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.CompetitiveVisibility do + def decode(value, options) do + GoogleApi.Content.V21.Model.CompetitiveVisibility.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.CompetitiveVisibility do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/conversion_source.ex b/clients/content/lib/google_api/content/v21/model/conversion_source.ex new file mode 100644 index 0000000000..27c955c113 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/conversion_source.ex @@ -0,0 +1,59 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ConversionSource do + @moduledoc """ + Represents a conversion source owned by a Merchant account. A merchant account can have up to 200 conversion sources. + + ## Attributes + + * `conversionSourceId` (*type:* `String.t`, *default:* `nil`) - Output only. Generated by the Content API upon creation of a new `ConversionSource`. Format: [a-z]{4}:.+ The four characters before the colon represent the type of conversio source. Content after the colon represents the ID of the conversion source within that type. The ID of two different conversion sources might be the same across different types. The following type prefixes are supported: - galk: For GoogleAnalyticsLink sources. - mcdn: For MerchantCenterDestination sources. + * `expireTime` (*type:* `DateTime.t`, *default:* `nil`) - Output only. The time when an archived conversion source becomes permanently deleted and is no longer available to undelete. + * `googleAnalyticsLink` (*type:* `GoogleApi.Content.V21.Model.GoogleAnalyticsLink.t`, *default:* `nil`) - Immutable. Conversion Source of type "Link to Google Analytics Property". + * `merchantCenterDestination` (*type:* `GoogleApi.Content.V21.Model.MerchantCenterDestination.t`, *default:* `nil`) - Conversion Source of type "Merchant Center Tag Destination". + * `state` (*type:* `String.t`, *default:* `nil`) - Output only. Current state of this conversion source. Can't be edited through the API. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :conversionSourceId => String.t() | nil, + :expireTime => DateTime.t() | nil, + :googleAnalyticsLink => GoogleApi.Content.V21.Model.GoogleAnalyticsLink.t() | nil, + :merchantCenterDestination => + GoogleApi.Content.V21.Model.MerchantCenterDestination.t() | nil, + :state => String.t() | nil + } + + field(:conversionSourceId) + field(:expireTime, as: DateTime) + field(:googleAnalyticsLink, as: GoogleApi.Content.V21.Model.GoogleAnalyticsLink) + field(:merchantCenterDestination, as: GoogleApi.Content.V21.Model.MerchantCenterDestination) + field(:state) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ConversionSource do + def decode(value, options) do + GoogleApi.Content.V21.Model.ConversionSource.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ConversionSource do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/custom_attribute.ex b/clients/content/lib/google_api/content/v21/model/custom_attribute.ex index 2b788d91b8..f0895023e6 100644 --- a/clients/content/lib/google_api/content/v21/model/custom_attribute.ex +++ b/clients/content/lib/google_api/content/v21/model/custom_attribute.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Content.V21.Model.CustomAttribute do @moduledoc """ - + A message that represents custom attributes. Exactly one of `value` or `groupValues` must be provided. Maximum allowed number of characters for each custom attribute is 10240 (represents sum of characters for name and value). Maximum 2500 custom attributes can be set per merchant, with total size of 102.4kB. ## Attributes diff --git a/clients/content/lib/google_api/content/v21/model/datafeed_target.ex b/clients/content/lib/google_api/content/v21/model/datafeed_target.ex index d834315c99..4fc9c2033f 100644 --- a/clients/content/lib/google_api/content/v21/model/datafeed_target.ex +++ b/clients/content/lib/google_api/content/v21/model/datafeed_target.ex @@ -22,9 +22,9 @@ defmodule GoogleApi.Content.V21.Model.DatafeedTarget do ## Attributes * `country` (*type:* `String.t`, *default:* `nil`) - Deprecated. Use `feedLabel` instead. The country where the items in the feed will be included in the search index, represented as a CLDR territory code. - * `excludedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of destinations to exclude for this target (corresponds to cleared check boxes in Merchant Center). - * `feedLabel` (*type:* `String.t`, *default:* `nil`) - Feed label for the DatafeedTarget. Either `country` or `feedLabel` is required. If both `feedLabel` and `country` is specified, the values must match. - * `includedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. + * `excludedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from all destinations for more than 7 days are automatically deleted. + * `feedLabel` (*type:* `String.t`, *default:* `nil`) - Feed label for the DatafeedTarget. Either `country` or `feedLabel` is required. If both `feedLabel` and `country` is specified, the values must match. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). + * `includedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. * `language` (*type:* `String.t`, *default:* `nil`) - The two-letter ISO 639-1 language of the items in the feed. Must be a valid language for `targets[].country`. * `targetCountries` (*type:* `list(String.t)`, *default:* `nil`) - The countries where the items may be displayed. Represented as a CLDR territory code. Will be ignored for "product inventory" feeds. """ diff --git a/clients/content/lib/google_api/content/v21/model/delivery_time.ex b/clients/content/lib/google_api/content/v21/model/delivery_time.ex index d4f1327e92..984425d5e6 100644 --- a/clients/content/lib/google_api/content/v21/model/delivery_time.ex +++ b/clients/content/lib/google_api/content/v21/model/delivery_time.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Content.V21.Model.DeliveryTime do ## Attributes - * `cutoffTime` (*type:* `GoogleApi.Content.V21.Model.CutoffTime.t`, *default:* `nil`) - Business days cutoff time definition. If not configured the cutoff time will be defaulted to 8AM PST. + * `cutoffTime` (*type:* `GoogleApi.Content.V21.Model.CutoffTime.t`, *default:* `nil`) - Business days cutoff time definition. If not configured, the cutoff time will be defaulted to 8AM PST. If local delivery, use Service.StoreConfig.CutoffConfig. * `handlingBusinessDayConfig` (*type:* `GoogleApi.Content.V21.Model.BusinessDayConfig.t`, *default:* `nil`) - The business days during which orders can be handled. If not provided, Monday to Friday business days will be assumed. * `holidayCutoffs` (*type:* `list(GoogleApi.Content.V21.Model.HolidayCutoff.t)`, *default:* `nil`) - Holiday cutoff definitions. If configured, they specify order cutoff times for holiday-specific shipping. * `maxHandlingTimeInDays` (*type:* `integer()`, *default:* `nil`) - Maximum number of business days spent before an order is shipped. 0 means same day shipped, 1 means next day shipped. Must be greater than or equal to `minHandlingTimeInDays`. diff --git a/clients/content/lib/google_api/content/v21/model/distance.ex b/clients/content/lib/google_api/content/v21/model/distance.ex new file mode 100644 index 0000000000..367347dbc6 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/distance.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.Distance do + @moduledoc """ + Distance represented by an integer and unit. + + ## Attributes + + * `unit` (*type:* `String.t`, *default:* `nil`) - The distance unit. Acceptable values are `None`, `Miles`, and `Kilometers`. + * `value` (*type:* `String.t`, *default:* `nil`) - The distance represented as a number. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :unit => String.t() | nil, + :value => String.t() | nil + } + + field(:unit) + field(:value) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.Distance do + def decode(value, options) do + GoogleApi.Content.V21.Model.Distance.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.Distance do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_effective_time_fixed_time_period.ex b/clients/content/lib/google_api/content/v21/model/external_action.ex similarity index 52% rename from clients/content/lib/google_api/content/v21/model/repricing_rule_effective_time_fixed_time_period.ex rename to clients/content/lib/google_api/content/v21/model/external_action.ex index 3087579038..7b3aca6eb1 100644 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_effective_time_fixed_time_period.ex +++ b/clients/content/lib/google_api/content/v21/model/external_action.ex @@ -15,34 +15,34 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Model.RepricingRuleEffectiveTimeFixedTimePeriod do +defmodule GoogleApi.Content.V21.Model.ExternalAction do @moduledoc """ - Definition of a fixed time period. + Action that is implemented and performed outside of the third-party application. It should redirect the merchant to the provided URL of an external system where they can perform the action. For example to request a review in the Merchant Center. ## Attributes - * `endTime` (*type:* `DateTime.t`, *default:* `nil`) - The end time (exclusive) of the period. It can only be hour granularity. - * `startTime` (*type:* `DateTime.t`, *default:* `nil`) - The start time (inclusive) of the period. It can only be hour granularity. + * `type` (*type:* `String.t`, *default:* `nil`) - The type of external action. + * `uri` (*type:* `String.t`, *default:* `nil`) - URL to external system, for example Merchant Center, where the merchant can perform the action. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :endTime => DateTime.t() | nil, - :startTime => DateTime.t() | nil + :type => String.t() | nil, + :uri => String.t() | nil } - field(:endTime, as: DateTime) - field(:startTime, as: DateTime) + field(:type) + field(:uri) end -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleEffectiveTimeFixedTimePeriod do +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ExternalAction do def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleEffectiveTimeFixedTimePeriod.decode(value, options) + GoogleApi.Content.V21.Model.ExternalAction.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleEffectiveTimeFixedTimePeriod do +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ExternalAction do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/content/lib/google_api/content/v21/model/generate_recommendations_response.ex b/clients/content/lib/google_api/content/v21/model/generate_recommendations_response.ex new file mode 100644 index 0000000000..a7d4fdc6fb --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/generate_recommendations_response.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.GenerateRecommendationsResponse do + @moduledoc """ + Response containing generated recommendations. + + ## Attributes + + * `recommendations` (*type:* `list(GoogleApi.Content.V21.Model.Recommendation.t)`, *default:* `nil`) - Recommendations generated for a request. + * `responseToken` (*type:* `String.t`, *default:* `nil`) - Output only. Response token is a string created for each `GenerateRecommendationsResponse`. This token doesn't expire, and is globally unique. This token must be used when reporting interactions for recommendations. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :recommendations => list(GoogleApi.Content.V21.Model.Recommendation.t()) | nil, + :responseToken => String.t() | nil + } + + field(:recommendations, as: GoogleApi.Content.V21.Model.Recommendation, type: :list) + field(:responseToken) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.GenerateRecommendationsResponse do + def decode(value, options) do + GoogleApi.Content.V21.Model.GenerateRecommendationsResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.GenerateRecommendationsResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/google_analytics_link.ex b/clients/content/lib/google_api/content/v21/model/google_analytics_link.ex new file mode 100644 index 0000000000..57efd19641 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/google_analytics_link.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.GoogleAnalyticsLink do + @moduledoc """ + "Google Analytics Link" sources can be used to get conversion data from an existing Google Analytics property into the linked Merchant Center account. + + ## Attributes + + * `attributionSettings` (*type:* `GoogleApi.Content.V21.Model.AttributionSettings.t`, *default:* `nil`) - Output only. Attribution settings for the linked Google Analytics property. + * `propertyId` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. ID of the Google Analytics property the merchant is linked to. + * `propertyName` (*type:* `String.t`, *default:* `nil`) - Output only. Name of the Google Analytics property the merchant is linked to. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributionSettings => GoogleApi.Content.V21.Model.AttributionSettings.t() | nil, + :propertyId => String.t() | nil, + :propertyName => String.t() | nil + } + + field(:attributionSettings, as: GoogleApi.Content.V21.Model.AttributionSettings) + field(:propertyId) + field(:propertyName) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.GoogleAnalyticsLink do + def decode(value, options) do + GoogleApi.Content.V21.Model.GoogleAnalyticsLink.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.GoogleAnalyticsLink do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/insert_checkout_settings_request.ex b/clients/content/lib/google_api/content/v21/model/insert_checkout_settings_request.ex new file mode 100644 index 0000000000..8826f48573 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/insert_checkout_settings_request.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.InsertCheckoutSettingsRequest do + @moduledoc """ + Request message for the `InsertCheckoutSettings` method. + + ## Attributes + + * `uriSettings` (*type:* `GoogleApi.Content.V21.Model.UrlSettings.t`, *default:* `nil`) - Required. The `UrlSettings` for the request. The presence of URL settings indicates `Checkout` enrollment. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :uriSettings => GoogleApi.Content.V21.Model.UrlSettings.t() | nil + } + + field(:uriSettings, as: GoogleApi.Content.V21.Model.UrlSettings) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.InsertCheckoutSettingsRequest do + def decode(value, options) do + GoogleApi.Content.V21.Model.InsertCheckoutSettingsRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.InsertCheckoutSettingsRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/lia_country_settings.ex b/clients/content/lib/google_api/content/v21/model/lia_country_settings.ex index 7c19d2f366..11d62c5c4b 100644 --- a/clients/content/lib/google_api/content/v21/model/lia_country_settings.ex +++ b/clients/content/lib/google_api/content/v21/model/lia_country_settings.ex @@ -25,6 +25,7 @@ defmodule GoogleApi.Content.V21.Model.LiaCountrySettings do * `country` (*type:* `String.t`, *default:* `nil`) - Required. CLDR country code (for example, "US"). * `hostedLocalStorefrontActive` (*type:* `boolean()`, *default:* `nil`) - The status of the "Merchant hosted local storefront" feature. * `inventory` (*type:* `GoogleApi.Content.V21.Model.LiaInventorySettings.t`, *default:* `nil`) - LIA inventory verification settings. + * `omnichannelExperience` (*type:* `GoogleApi.Content.V21.Model.LiaOmnichannelExperience.t`, *default:* `nil`) - The omnichannel experience configured for this country. * `onDisplayToOrder` (*type:* `GoogleApi.Content.V21.Model.LiaOnDisplayToOrderSettings.t`, *default:* `nil`) - LIA "On Display To Order" settings. * `posDataProvider` (*type:* `GoogleApi.Content.V21.Model.LiaPosDataProvider.t`, *default:* `nil`) - The POS data provider linked with this country. * `storePickupActive` (*type:* `boolean()`, *default:* `nil`) - The status of the "Store pickup" feature. @@ -37,6 +38,8 @@ defmodule GoogleApi.Content.V21.Model.LiaCountrySettings do :country => String.t() | nil, :hostedLocalStorefrontActive => boolean() | nil, :inventory => GoogleApi.Content.V21.Model.LiaInventorySettings.t() | nil, + :omnichannelExperience => + GoogleApi.Content.V21.Model.LiaOmnichannelExperience.t() | nil, :onDisplayToOrder => GoogleApi.Content.V21.Model.LiaOnDisplayToOrderSettings.t() | nil, :posDataProvider => GoogleApi.Content.V21.Model.LiaPosDataProvider.t() | nil, :storePickupActive => boolean() | nil @@ -46,6 +49,7 @@ defmodule GoogleApi.Content.V21.Model.LiaCountrySettings do field(:country) field(:hostedLocalStorefrontActive) field(:inventory, as: GoogleApi.Content.V21.Model.LiaInventorySettings) + field(:omnichannelExperience, as: GoogleApi.Content.V21.Model.LiaOmnichannelExperience) field(:onDisplayToOrder, as: GoogleApi.Content.V21.Model.LiaOnDisplayToOrderSettings) field(:posDataProvider, as: GoogleApi.Content.V21.Model.LiaPosDataProvider) field(:storePickupActive) diff --git a/clients/content/lib/google_api/content/v21/model/lia_omnichannel_experience.ex b/clients/content/lib/google_api/content/v21/model/lia_omnichannel_experience.ex new file mode 100644 index 0000000000..bb584e3f3f --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/lia_omnichannel_experience.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.LiaOmnichannelExperience do + @moduledoc """ + Omnichannel experience details. + + ## Attributes + + * `country` (*type:* `String.t`, *default:* `nil`) - The CLDR country code (for example, "US"). + * `lsfType` (*type:* `String.t`, *default:* `nil`) - The Local Store Front (LSF) type for this country. Acceptable values are: - "`ghlsf`" (Google-Hosted Local Store Front) - "`mhlsfBasic`" (Merchant-Hosted Local Store Front Basic) - "`mhlsfFull`" (Merchant-Hosted Local Store Front Full) More details about these types can be found here. + * `pickupTypes` (*type:* `list(String.t)`, *default:* `nil`) - The Pickup types for this country. Acceptable values are: - "`pickupToday`" - "`pickupLater`" + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :country => String.t() | nil, + :lsfType => String.t() | nil, + :pickupTypes => list(String.t()) | nil + } + + field(:country) + field(:lsfType) + field(:pickupTypes, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.LiaOmnichannelExperience do + def decode(value, options) do + GoogleApi.Content.V21.Model.LiaOmnichannelExperience.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.LiaOmnichannelExperience do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_request_entry.ex b/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_request_entry.ex index 5faa7be7c9..9864a50fb9 100644 --- a/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_request_entry.ex +++ b/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_request_entry.ex @@ -30,6 +30,7 @@ defmodule GoogleApi.Content.V21.Model.LiasettingsCustomBatchRequestEntry do * `liaSettings` (*type:* `GoogleApi.Content.V21.Model.LiaSettings.t`, *default:* `nil`) - The account Lia settings to update. Only defined if the method is `update`. * `merchantId` (*type:* `String.t`, *default:* `nil`) - The ID of the managing account. * `method` (*type:* `String.t`, *default:* `nil`) - The method of the batch entry. Acceptable values are: - "`get`" - "`getAccessibleGmbAccounts`" - "`requestGmbAccess`" - "`requestInventoryVerification`" - "`setInventoryVerificationContact`" - "`update`" + * `omnichannelExperience` (*type:* `GoogleApi.Content.V21.Model.LiaOmnichannelExperience.t`, *default:* `nil`) - The omnichannel experience for a country. Required only for SetOmnichannelExperience. * `posDataProviderId` (*type:* `String.t`, *default:* `nil`) - The ID of POS data provider. Required only for SetPosProvider. * `posExternalAccountId` (*type:* `String.t`, *default:* `nil`) - The account ID by which this merchant is known to the POS provider. """ @@ -46,6 +47,8 @@ defmodule GoogleApi.Content.V21.Model.LiasettingsCustomBatchRequestEntry do :liaSettings => GoogleApi.Content.V21.Model.LiaSettings.t() | nil, :merchantId => String.t() | nil, :method => String.t() | nil, + :omnichannelExperience => + GoogleApi.Content.V21.Model.LiaOmnichannelExperience.t() | nil, :posDataProviderId => String.t() | nil, :posExternalAccountId => String.t() | nil } @@ -59,6 +62,7 @@ defmodule GoogleApi.Content.V21.Model.LiasettingsCustomBatchRequestEntry do field(:liaSettings, as: GoogleApi.Content.V21.Model.LiaSettings) field(:merchantId) field(:method) + field(:omnichannelExperience, as: GoogleApi.Content.V21.Model.LiaOmnichannelExperience) field(:posDataProviderId) field(:posExternalAccountId) end diff --git a/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_response_entry.ex b/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_response_entry.ex index 0eae67a63f..418ef0046c 100644 --- a/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_response_entry.ex +++ b/clients/content/lib/google_api/content/v21/model/liasettings_custom_batch_response_entry.ex @@ -26,6 +26,7 @@ defmodule GoogleApi.Content.V21.Model.LiasettingsCustomBatchResponseEntry do * `gmbAccounts` (*type:* `GoogleApi.Content.V21.Model.GmbAccounts.t`, *default:* `nil`) - The list of accessible Business Profiles. * `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string "`content#liasettingsCustomBatchResponseEntry`" * `liaSettings` (*type:* `GoogleApi.Content.V21.Model.LiaSettings.t`, *default:* `nil`) - The retrieved or updated Lia settings. + * `omnichannelExperience` (*type:* `GoogleApi.Content.V21.Model.LiaOmnichannelExperience.t`, *default:* `nil`) - The updated omnichannel experience for a country. * `posDataProviders` (*type:* `list(GoogleApi.Content.V21.Model.PosDataProviders.t)`, *default:* `nil`) - The list of POS data providers. """ @@ -37,6 +38,8 @@ defmodule GoogleApi.Content.V21.Model.LiasettingsCustomBatchResponseEntry do :gmbAccounts => GoogleApi.Content.V21.Model.GmbAccounts.t() | nil, :kind => String.t() | nil, :liaSettings => GoogleApi.Content.V21.Model.LiaSettings.t() | nil, + :omnichannelExperience => + GoogleApi.Content.V21.Model.LiaOmnichannelExperience.t() | nil, :posDataProviders => list(GoogleApi.Content.V21.Model.PosDataProviders.t()) | nil } @@ -45,6 +48,7 @@ defmodule GoogleApi.Content.V21.Model.LiasettingsCustomBatchResponseEntry do field(:gmbAccounts, as: GoogleApi.Content.V21.Model.GmbAccounts) field(:kind) field(:liaSettings, as: GoogleApi.Content.V21.Model.LiaSettings) + field(:omnichannelExperience, as: GoogleApi.Content.V21.Model.LiaOmnichannelExperience) field(:posDataProviders, as: GoogleApi.Content.V21.Model.PosDataProviders, type: :list) end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_cost_of_goods_sale_rule.ex b/clients/content/lib/google_api/content/v21/model/list_conversion_sources_response.ex similarity index 51% rename from clients/content/lib/google_api/content/v21/model/repricing_rule_cost_of_goods_sale_rule.ex rename to clients/content/lib/google_api/content/v21/model/list_conversion_sources_response.ex index 8c45899634..afbec9c394 100644 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_cost_of_goods_sale_rule.ex +++ b/clients/content/lib/google_api/content/v21/model/list_conversion_sources_response.ex @@ -15,34 +15,34 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Model.RepricingRuleCostOfGoodsSaleRule do +defmodule GoogleApi.Content.V21.Model.ListConversionSourcesResponse do @moduledoc """ - A repricing rule that changes the sale price based on cost of goods sale. + Response message for the ListConversionSources method. ## Attributes - * `percentageDelta` (*type:* `integer()`, *default:* `nil`) - The percent change against the COGS. Ex: 20 would mean to set the adjusted price 1.2X of the COGS data. - * `priceDelta` (*type:* `String.t`, *default:* `nil`) - The price delta against the COGS. E.g. 2 means $2 more of the COGS. + * `conversionSources` (*type:* `list(GoogleApi.Content.V21.Model.ConversionSource.t)`, *default:* `nil`) - List of conversion sources. + * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - Token to be used to fetch the next results page. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :percentageDelta => integer() | nil, - :priceDelta => String.t() | nil + :conversionSources => list(GoogleApi.Content.V21.Model.ConversionSource.t()) | nil, + :nextPageToken => String.t() | nil } - field(:percentageDelta) - field(:priceDelta) + field(:conversionSources, as: GoogleApi.Content.V21.Model.ConversionSource, type: :list) + field(:nextPageToken) end -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleCostOfGoodsSaleRule do +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ListConversionSourcesResponse do def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleCostOfGoodsSaleRule.decode(value, options) + GoogleApi.Content.V21.Model.ListConversionSourcesResponse.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleCostOfGoodsSaleRule do +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ListConversionSourcesResponse do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/content/lib/google_api/content/v21/model/list_repricing_rules_response.ex b/clients/content/lib/google_api/content/v21/model/list_promotion_response.ex similarity index 63% rename from clients/content/lib/google_api/content/v21/model/list_repricing_rules_response.ex rename to clients/content/lib/google_api/content/v21/model/list_promotion_response.ex index 2371fd2299..c6f2768382 100644 --- a/clients/content/lib/google_api/content/v21/model/list_repricing_rules_response.ex +++ b/clients/content/lib/google_api/content/v21/model/list_promotion_response.ex @@ -15,34 +15,34 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Model.ListRepricingRulesResponse do +defmodule GoogleApi.Content.V21.Model.ListPromotionResponse do @moduledoc """ - Response message for the `ListRepricingRules` method. + Response message for Promotions.List method. ## Attributes * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. - * `repricingRules` (*type:* `list(GoogleApi.Content.V21.Model.RepricingRule.t)`, *default:* `nil`) - The rules from the specified merchant. + * `promotions` (*type:* `list(GoogleApi.Content.V21.Model.Promotion.t)`, *default:* `nil`) - List of all available promotions for the merchant. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ :nextPageToken => String.t() | nil, - :repricingRules => list(GoogleApi.Content.V21.Model.RepricingRule.t()) | nil + :promotions => list(GoogleApi.Content.V21.Model.Promotion.t()) | nil } field(:nextPageToken) - field(:repricingRules, as: GoogleApi.Content.V21.Model.RepricingRule, type: :list) + field(:promotions, as: GoogleApi.Content.V21.Model.Promotion, type: :list) end -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ListRepricingRulesResponse do +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ListPromotionResponse do def decode(value, options) do - GoogleApi.Content.V21.Model.ListRepricingRulesResponse.decode(value, options) + GoogleApi.Content.V21.Model.ListPromotionResponse.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ListRepricingRulesResponse do +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ListPromotionResponse do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/content/lib/google_api/content/v21/model/list_repricing_product_reports_response.ex b/clients/content/lib/google_api/content/v21/model/list_repricing_product_reports_response.ex deleted file mode 100644 index 0d6098b968..0000000000 --- a/clients/content/lib/google_api/content/v21/model/list_repricing_product_reports_response.ex +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.ListRepricingProductReportsResponse do - @moduledoc """ - Response message for the ListRepricingProductReports method. - - ## Attributes - - * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token for retrieving the next page. Its absence means there is no subsequent page. - * `repricingProductReports` (*type:* `list(GoogleApi.Content.V21.Model.RepricingProductReport.t)`, *default:* `nil`) - Periodic reports for the given Repricing product. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :nextPageToken => String.t() | nil, - :repricingProductReports => - list(GoogleApi.Content.V21.Model.RepricingProductReport.t()) | nil - } - - field(:nextPageToken) - - field(:repricingProductReports, - as: GoogleApi.Content.V21.Model.RepricingProductReport, - type: :list - ) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ListRepricingProductReportsResponse do - def decode(value, options) do - GoogleApi.Content.V21.Model.ListRepricingProductReportsResponse.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ListRepricingProductReportsResponse do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/list_repricing_rule_reports_response.ex b/clients/content/lib/google_api/content/v21/model/list_repricing_rule_reports_response.ex deleted file mode 100644 index 1289e4085b..0000000000 --- a/clients/content/lib/google_api/content/v21/model/list_repricing_rule_reports_response.ex +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.ListRepricingRuleReportsResponse do - @moduledoc """ - Response message for the ListRepricingRuleReports method. - - ## Attributes - - * `nextPageToken` (*type:* `String.t`, *default:* `nil`) - A token for retrieving the next page. Its absence means there is no subsequent page. - * `repricingRuleReports` (*type:* `list(GoogleApi.Content.V21.Model.RepricingRuleReport.t)`, *default:* `nil`) - Daily reports for the given Repricing rule. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :nextPageToken => String.t() | nil, - :repricingRuleReports => list(GoogleApi.Content.V21.Model.RepricingRuleReport.t()) | nil - } - - field(:nextPageToken) - field(:repricingRuleReports, as: GoogleApi.Content.V21.Model.RepricingRuleReport, type: :list) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ListRepricingRuleReportsResponse do - def decode(value, options) do - GoogleApi.Content.V21.Model.ListRepricingRuleReportsResponse.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ListRepricingRuleReportsResponse do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/local_inventory.ex b/clients/content/lib/google_api/content/v21/model/local_inventory.ex index eb5a8da033..bd7e09afdf 100644 --- a/clients/content/lib/google_api/content/v21/model/local_inventory.ex +++ b/clients/content/lib/google_api/content/v21/model/local_inventory.ex @@ -21,17 +21,17 @@ defmodule GoogleApi.Content.V21.Model.LocalInventory do ## Attributes - * `availability` (*type:* `String.t`, *default:* `nil`) - Availability of the product. For accepted attribute values, see the local product inventory feed specification. + * `availability` (*type:* `String.t`, *default:* `nil`) - The availability of the product. For accepted attribute values, see the local product inventory feed specification. * `customAttributes` (*type:* `list(GoogleApi.Content.V21.Model.CustomAttribute.t)`, *default:* `nil`) - A list of custom (merchant-provided) attributes. Can also be used to submit any attribute of the feed specification in its generic form, for example, `{ "name": "size type", "value": "regular" }`. - * `instoreProductLocation` (*type:* `String.t`, *default:* `nil`) - In-store product location. + * `instoreProductLocation` (*type:* `String.t`, *default:* `nil`) - The in-store product location. * `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string "`content#localInventory`" - * `pickupMethod` (*type:* `String.t`, *default:* `nil`) - Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification. - * `pickupSla` (*type:* `String.t`, *default:* `nil`) - Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification. - * `price` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Price of the product. - * `quantity` (*type:* `integer()`, *default:* `nil`) - Quantity of the product. Must be nonnegative. - * `salePrice` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Sale price of the product. Mandatory if `sale_price_effective_date` is defined. + * `pickupMethod` (*type:* `String.t`, *default:* `nil`) - The supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the local product inventory feed specification. + * `pickupSla` (*type:* `String.t`, *default:* `nil`) - The expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the local product inventory feed specification. + * `price` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - The price of the product. + * `quantity` (*type:* `integer()`, *default:* `nil`) - The quantity of the product. Must be nonnegative. + * `salePrice` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - The sale price of the product. Mandatory if `sale_price_effective_date` is defined. * `salePriceEffectiveDate` (*type:* `String.t`, *default:* `nil`) - A date range represented by a pair of ISO 8601 dates separated by a space, comma, or slash. Both dates may be specified as 'null' if undecided. - * `storeCode` (*type:* `String.t`, *default:* `nil`) - Required. Store code of this local inventory resource. + * `storeCode` (*type:* `String.t`, *default:* `nil`) - Required. The store code of this local inventory resource. """ use GoogleApi.Gax.ModelBase diff --git a/clients/content/lib/google_api/content/v21/model/merchant_center_destination.ex b/clients/content/lib/google_api/content/v21/model/merchant_center_destination.ex new file mode 100644 index 0000000000..8c7fc1a29e --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/merchant_center_destination.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.MerchantCenterDestination do + @moduledoc """ + "Merchant Center Destination" sources can be used to send conversion events from a website using a Google tag directly to a Merchant Center account where the source is created. + + ## Attributes + + * `attributionSettings` (*type:* `GoogleApi.Content.V21.Model.AttributionSettings.t`, *default:* `nil`) - Required. Attribution settings being used for the Merchant Center Destination. + * `currencyCode` (*type:* `String.t`, *default:* `nil`) - Required. Three-letter currency code (ISO 4217). The currency code defines in which currency the conversions sent to this destination will be reported in Merchant Center. + * `destinationId` (*type:* `String.t`, *default:* `nil`) - Output only. Merchant Center Destination ID. + * `displayName` (*type:* `String.t`, *default:* `nil`) - Required. Merchant-specified display name for the destination. This is the name that identifies the conversion source within the Merchant Center UI. Limited to 64 characters. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :attributionSettings => GoogleApi.Content.V21.Model.AttributionSettings.t() | nil, + :currencyCode => String.t() | nil, + :destinationId => String.t() | nil, + :displayName => String.t() | nil + } + + field(:attributionSettings, as: GoogleApi.Content.V21.Model.AttributionSettings) + field(:currencyCode) + field(:destinationId) + field(:displayName) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.MerchantCenterDestination do + def decode(value, options) do + GoogleApi.Content.V21.Model.MerchantCenterDestination.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.MerchantCenterDestination do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/method_quota.ex b/clients/content/lib/google_api/content/v21/model/method_quota.ex index 7d480e444c..dc1df3cb92 100644 --- a/clients/content/lib/google_api/content/v21/model/method_quota.ex +++ b/clients/content/lib/google_api/content/v21/model/method_quota.ex @@ -21,9 +21,9 @@ defmodule GoogleApi.Content.V21.Model.MethodQuota do ## Attributes - * `method` (*type:* `String.t`, *default:* `nil`) - The method name, for example “products.list”. Method name does not contain version because quota can be shared between different API versions of the same method. - * `quotaLimit` (*type:* `String.t`, *default:* `nil`) - The current quota limit, for example the maximum number of calls for the method. - * `quotaUsage` (*type:* `String.t`, *default:* `nil`) - The current quota usage, for example the number of calls for the method. + * `method` (*type:* `String.t`, *default:* `nil`) - The method name, for example `products.list`. Method name does not contain version because quota can be shared between different API versions of the same method. + * `quotaLimit` (*type:* `String.t`, *default:* `nil`) - The current quota limit per day, meaning the maximum number of calls for the method. + * `quotaUsage` (*type:* `String.t`, *default:* `nil`) - The current quota usage, meaning the number of calls already made to the method. """ use GoogleApi.Gax.ModelBase diff --git a/clients/content/lib/google_api/content/v21/model/metrics.ex b/clients/content/lib/google_api/content/v21/model/metrics.ex index b0dd084c7c..eea6048700 100644 --- a/clients/content/lib/google_api/content/v21/model/metrics.ex +++ b/clients/content/lib/google_api/content/v21/model/metrics.ex @@ -22,24 +22,24 @@ defmodule GoogleApi.Content.V21.Model.Metrics do ## Attributes * `aos` (*type:* `float()`, *default:* `nil`) - Average order size - the average number of items in an order. **This metric cannot be segmented by product dimensions and customer_country_code.** - * `aovMicros` (*type:* `float()`, *default:* `nil`) - Average order value - the average value (total price of items) of all placed orders. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by product dimensions and customer_country_code.** + * `aovMicros` (*type:* `float()`, *default:* `nil`) - Average order value in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) - the average value (total price of items) of all placed orders. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by product dimensions and customer_country_code.** * `clicks` (*type:* `String.t`, *default:* `nil`) - Number of clicks. * `conversionRate` (*type:* `float()`, *default:* `nil`) - Number of conversions divided by the number of clicks, reported on the impression date. The metric is currently available only for the FREE_PRODUCT_LISTING program. - * `conversionValueMicros` (*type:* `String.t`, *default:* `nil`) - Value of conversions in micros attributed to the product, reported on the conversion date. The metric is currently available only for the FREE_PRODUCT_LISTING program. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. + * `conversionValueMicros` (*type:* `String.t`, *default:* `nil`) - Value of conversions in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) attributed to the product, reported on the conversion date. The metric is currently available only for the FREE_PRODUCT_LISTING program. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. * `conversions` (*type:* `float()`, *default:* `nil`) - Number of conversions attributed to the product, reported on the conversion date. Depending on the attribution model, a conversion might be distributed across multiple clicks, where each click gets its own credit assigned. This metric is a sum of all such credits. The metric is currently available only for the FREE_PRODUCT_LISTING program. * `ctr` (*type:* `float()`, *default:* `nil`) - Click-through rate - the number of clicks merchant's products receive (clicks) divided by the number of times the products are shown (impressions). * `daysToShip` (*type:* `float()`, *default:* `nil`) - Average number of days between an order being placed and the order being fully shipped, reported on the last shipment date. **This metric cannot be segmented by product dimensions and customer_country_code.** * `impressions` (*type:* `String.t`, *default:* `nil`) - Number of times merchant's products are shown. * `itemDaysToShip` (*type:* `float()`, *default:* `nil`) - Average number of days between an item being ordered and the item being **This metric cannot be segmented by customer_country_code.** * `itemFillRate` (*type:* `float()`, *default:* `nil`) - Percentage of shipped items in relation to all finalized items (shipped or rejected by the merchant; unshipped items are not taken into account), reported on the order date. Item fill rate is lowered by merchant rejections. **This metric cannot be segmented by customer_country_code.** - * `orderedItemSalesMicros` (*type:* `String.t`, *default:* `nil`) - Total price of ordered items. Excludes shipping, taxes (US only), and customer cancellations that happened within 30 minutes of placing the order. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.** + * `orderedItemSalesMicros` (*type:* `String.t`, *default:* `nil`) - Total price of ordered items in micros (1 millionth of a standard unit, 1 USD = 1000000 micros). Excludes shipping, taxes (US only), and customer cancellations that happened within 30 minutes of placing the order. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.** * `orderedItems` (*type:* `String.t`, *default:* `nil`) - Number of ordered items. Excludes customer cancellations that happened within 30 minutes of placing the order. **This metric cannot be segmented by customer_country_code.** * `orders` (*type:* `String.t`, *default:* `nil`) - Number of placed orders. Excludes customer cancellations that happened within 30 minutes of placing the order. **This metric cannot be segmented by product dimensions and customer_country_code.** * `rejectedItems` (*type:* `String.t`, *default:* `nil`) - Number of ordered items canceled by the merchant, reported on the order date. **This metric cannot be segmented by customer_country_code.** * `returnRate` (*type:* `float()`, *default:* `nil`) - Total price of returned items divided by the total price of shipped items, reported on the order date. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.** * `returnedItems` (*type:* `String.t`, *default:* `nil`) - Number of ordered items sent back for return, reported on the date when the merchant accepted the return. **This metric cannot be segmented by customer_country_code.** - * `returnsMicros` (*type:* `String.t`, *default:* `nil`) - Total price of ordered items sent back for return, reported on the date when the merchant accepted the return. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.** - * `shippedItemSalesMicros` (*type:* `String.t`, *default:* `nil`) - Total price of shipped items, reported on the order date. Excludes shipping and taxes (US only). The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.** + * `returnsMicros` (*type:* `String.t`, *default:* `nil`) - Total price of ordered items sent back for return in micros (1 millionth of a standard unit, 1 USD = 1000000 micros), reported on the date when the merchant accepted the return. The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.** + * `shippedItemSalesMicros` (*type:* `String.t`, *default:* `nil`) - Total price of shipped items in micros (1 millionth of a standard unit, 1 USD = 1000000 micros), reported on the order date. Excludes shipping and taxes (US only). The currency of the returned value is stored in the currency_code segment. If this metric is selected, 'segments.currency_code' is automatically added to the SELECT clause in the search query (unless it is explicitly selected by the user) and the currency_code segment is populated in the response. **This metric cannot be segmented by customer_country_code.** * `shippedItems` (*type:* `String.t`, *default:* `nil`) - Number of shipped items, reported on the shipment date. **This metric cannot be segmented by customer_country_code.** * `shippedOrders` (*type:* `String.t`, *default:* `nil`) - Number of fully shipped orders, reported on the last shipment date. **This metric cannot be segmented by product dimensions and customer_country_code.** * `unshippedItems` (*type:* `float()`, *default:* `nil`) - Number of ordered items not shipped up until the end of the queried day. If a multi-day period is specified in the search query, the returned value is the average number of unshipped items over the days in the queried period. **This metric cannot be segmented by customer_country_code.** diff --git a/clients/content/lib/google_api/content/v21/model/pos_inventory.ex b/clients/content/lib/google_api/content/v21/model/pos_inventory.ex index c62627b21f..275dbd4ed3 100644 --- a/clients/content/lib/google_api/content/v21/model/pos_inventory.ex +++ b/clients/content/lib/google_api/content/v21/model/pos_inventory.ex @@ -25,6 +25,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventory do * `gtin` (*type:* `String.t`, *default:* `nil`) - Global Trade Item Number. * `itemId` (*type:* `String.t`, *default:* `nil`) - Required. A unique identifier for the item. * `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string "`content#posInventory`" + * `pickupMethod` (*type:* `String.t`, *default:* `nil`) - Optional. Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). + * `pickupSla` (*type:* `String.t`, *default:* `nil`) - Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). * `price` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Required. The current price of the item. * `quantity` (*type:* `String.t`, *default:* `nil`) - Required. The available quantity of the item. * `storeCode` (*type:* `String.t`, *default:* `nil`) - Required. The identifier of the merchant's store. Either a `storeCode` inserted through the API or the code of the store in a Business Profile. @@ -39,6 +41,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventory do :gtin => String.t() | nil, :itemId => String.t() | nil, :kind => String.t() | nil, + :pickupMethod => String.t() | nil, + :pickupSla => String.t() | nil, :price => GoogleApi.Content.V21.Model.Price.t() | nil, :quantity => String.t() | nil, :storeCode => String.t() | nil, @@ -50,6 +54,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventory do field(:gtin) field(:itemId) field(:kind) + field(:pickupMethod) + field(:pickupSla) field(:price, as: GoogleApi.Content.V21.Model.Price) field(:quantity) field(:storeCode) diff --git a/clients/content/lib/google_api/content/v21/model/pos_inventory_request.ex b/clients/content/lib/google_api/content/v21/model/pos_inventory_request.ex index f4fc616ba8..da675188e7 100644 --- a/clients/content/lib/google_api/content/v21/model/pos_inventory_request.ex +++ b/clients/content/lib/google_api/content/v21/model/pos_inventory_request.ex @@ -24,6 +24,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventoryRequest do * `contentLanguage` (*type:* `String.t`, *default:* `nil`) - Required. The two-letter ISO 639-1 language code for the item. * `gtin` (*type:* `String.t`, *default:* `nil`) - Global Trade Item Number. * `itemId` (*type:* `String.t`, *default:* `nil`) - Required. A unique identifier for the item. + * `pickupMethod` (*type:* `String.t`, *default:* `nil`) - Optional. Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). + * `pickupSla` (*type:* `String.t`, *default:* `nil`) - Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). * `price` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Required. The current price of the item. * `quantity` (*type:* `String.t`, *default:* `nil`) - Required. The available quantity of the item. * `storeCode` (*type:* `String.t`, *default:* `nil`) - Required. The identifier of the merchant's store. Either a `storeCode` inserted through the API or the code of the store in a Business Profile. @@ -37,6 +39,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventoryRequest do :contentLanguage => String.t() | nil, :gtin => String.t() | nil, :itemId => String.t() | nil, + :pickupMethod => String.t() | nil, + :pickupSla => String.t() | nil, :price => GoogleApi.Content.V21.Model.Price.t() | nil, :quantity => String.t() | nil, :storeCode => String.t() | nil, @@ -47,6 +51,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventoryRequest do field(:contentLanguage) field(:gtin) field(:itemId) + field(:pickupMethod) + field(:pickupSla) field(:price, as: GoogleApi.Content.V21.Model.Price) field(:quantity) field(:storeCode) diff --git a/clients/content/lib/google_api/content/v21/model/pos_inventory_response.ex b/clients/content/lib/google_api/content/v21/model/pos_inventory_response.ex index ee66d4322e..b9bf244b17 100644 --- a/clients/content/lib/google_api/content/v21/model/pos_inventory_response.ex +++ b/clients/content/lib/google_api/content/v21/model/pos_inventory_response.ex @@ -25,6 +25,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventoryResponse do * `gtin` (*type:* `String.t`, *default:* `nil`) - Global Trade Item Number. * `itemId` (*type:* `String.t`, *default:* `nil`) - Required. A unique identifier for the item. * `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string "`content#posInventoryResponse`". + * `pickupMethod` (*type:* `String.t`, *default:* `nil`) - Optional. Supported pickup method for this offer. Unless the value is "not supported", this field must be submitted together with `pickupSla`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). + * `pickupSla` (*type:* `String.t`, *default:* `nil`) - Optional. Expected date that an order will be ready for pickup relative to the order date. Must be submitted together with `pickupMethod`. For accepted attribute values, see the [local product inventory feed specification](https://support.google.com/merchants/answer/3061342). * `price` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Required. The current price of the item. * `quantity` (*type:* `String.t`, *default:* `nil`) - Required. The available quantity of the item. * `storeCode` (*type:* `String.t`, *default:* `nil`) - Required. The identifier of the merchant's store. Either a `storeCode` inserted through the API or the code of the store in a Business Profile. @@ -39,6 +41,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventoryResponse do :gtin => String.t() | nil, :itemId => String.t() | nil, :kind => String.t() | nil, + :pickupMethod => String.t() | nil, + :pickupSla => String.t() | nil, :price => GoogleApi.Content.V21.Model.Price.t() | nil, :quantity => String.t() | nil, :storeCode => String.t() | nil, @@ -50,6 +54,8 @@ defmodule GoogleApi.Content.V21.Model.PosInventoryResponse do field(:gtin) field(:itemId) field(:kind) + field(:pickupMethod) + field(:pickupSla) field(:price, as: GoogleApi.Content.V21.Model.Price) field(:quantity) field(:storeCode) diff --git a/clients/content/lib/google_api/content/v21/model/pos_store.ex b/clients/content/lib/google_api/content/v21/model/pos_store.ex index 08faac4cdb..addca2eea8 100644 --- a/clients/content/lib/google_api/content/v21/model/pos_store.ex +++ b/clients/content/lib/google_api/content/v21/model/pos_store.ex @@ -23,6 +23,8 @@ defmodule GoogleApi.Content.V21.Model.PosStore do * `gcidCategory` (*type:* `list(String.t)`, *default:* `nil`) - The business type of the store. * `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string "`content#posStore`" + * `matchingStatus` (*type:* `String.t`, *default:* `nil`) - Output only. The matching status of POS store and Google Business Profile store. Possible values are: - "`matched`": The POS store is successfully matched with the Google Business Profile store. - "`failed`": The POS store is not matched with the Google Business Profile store. See matching_status_hint for further details. Note that there is up to 48 hours propagation delay for changes in Merchant Center (e.g. creation of new account, accounts linking) and Google Business Profile (e.g. store address update) which may affect the matching status. In such cases, after a delay call [pos.list](https://developers.google.com/shopping-content/reference/rest/v2.1/pos/list) to retrieve the updated matching status. + * `matchingStatusHint` (*type:* `String.t`, *default:* `nil`) - Output only. The hint of why the matching has failed. This is only set when matching_status=failed. Possible values are: - "`linked-store-not-found`": There aren't any Google Business Profile stores available for matching. Connect your Merchant Center account with the Google Business Profile account. Or add a new Google Business Profile store corresponding to the POS store. - "`store-match-not-found`": The provided POS store couldn't be matched to any of the connected Google Business Profile stores. Merchant Center account is connected correctly and stores are available on Google Business Profile, but POS store location address does not match with Google Business Profile stores' addresses. Update POS store address or Google Business Profile store address to match correctly. - "`store-match-unverified`": The provided POS store couldn't be matched to any of the connected Google Business Profile stores, as the matched Google Business Profile store is unverified. Go through the Google Business Profile verification process to match correctly. * `phoneNumber` (*type:* `String.t`, *default:* `nil`) - The store phone number. * `placeId` (*type:* `String.t`, *default:* `nil`) - The Google Place Id of the store location. * `storeAddress` (*type:* `String.t`, *default:* `nil`) - Required. The street address of the store. @@ -36,6 +38,8 @@ defmodule GoogleApi.Content.V21.Model.PosStore do @type t :: %__MODULE__{ :gcidCategory => list(String.t()) | nil, :kind => String.t() | nil, + :matchingStatus => String.t() | nil, + :matchingStatusHint => String.t() | nil, :phoneNumber => String.t() | nil, :placeId => String.t() | nil, :storeAddress => String.t() | nil, @@ -46,6 +50,8 @@ defmodule GoogleApi.Content.V21.Model.PosStore do field(:gcidCategory, type: :list) field(:kind) + field(:matchingStatus) + field(:matchingStatusHint) field(:phoneNumber) field(:placeId) field(:storeAddress) diff --git a/clients/content/lib/google_api/content/v21/model/price_competitiveness.ex b/clients/content/lib/google_api/content/v21/model/price_competitiveness.ex index 29212b9485..ce36f68ecd 100644 --- a/clients/content/lib/google_api/content/v21/model/price_competitiveness.ex +++ b/clients/content/lib/google_api/content/v21/model/price_competitiveness.ex @@ -17,12 +17,12 @@ defmodule GoogleApi.Content.V21.Model.PriceCompetitiveness do @moduledoc """ - Price Competitiveness fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceCompetitivenessProductView`. https://support.google.com/merchants/answer/9626903 + Price competitiveness fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceCompetitivenessProductView`. https://support.google.com/merchants/answer/9626903 ## Attributes * `benchmarkPriceCurrencyCode` (*type:* `String.t`, *default:* `nil`) - The price benchmark currency (ISO 4217 code). - * `benchmarkPriceMicros` (*type:* `String.t`, *default:* `nil`) - The latest available price benchmark in micros for the product's catalog in the benchmark country. + * `benchmarkPriceMicros` (*type:* `String.t`, *default:* `nil`) - The latest available price benchmark in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) for the product's catalog in the benchmark country. * `countryCode` (*type:* `String.t`, *default:* `nil`) - The country of the price benchmark (ISO 3166 code). """ diff --git a/clients/content/lib/google_api/content/v21/model/price_insights.ex b/clients/content/lib/google_api/content/v21/model/price_insights.ex index 0d56509e58..0e2c5e8baf 100644 --- a/clients/content/lib/google_api/content/v21/model/price_insights.ex +++ b/clients/content/lib/google_api/content/v21/model/price_insights.ex @@ -17,18 +17,18 @@ defmodule GoogleApi.Content.V21.Model.PriceInsights do @moduledoc """ - Price Insights fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceInsightsProductView`. https://support.google.com/merchants/answer/11916926 + Price insights fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceInsightsProductView`. https://support.google.com/merchants/answer/11916926 ## Attributes * `predictedClicksChangeFraction` (*type:* `float()`, *default:* `nil`) - The predicted change in clicks as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in clicks. * `predictedConversionsChangeFraction` (*type:* `float()`, *default:* `nil`) - The predicted change in conversions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in conversions). - * `predictedGrossProfitChangeFraction` (*type:* `float()`, *default:* `nil`) - The predicted change in gross profit as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in gross profit. + * `predictedGrossProfitChangeFraction` (*type:* `float()`, *default:* `nil`) - *Deprecated*: This field is no longer supported and will start returning 0. The predicted change in gross profit as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in gross profit. * `predictedImpressionsChangeFraction` (*type:* `float()`, *default:* `nil`) - The predicted change in impressions as a fraction after introducing the suggested price compared to current active price. For example, 0.05 is a 5% predicted increase in impressions. - * `predictedMonthlyGrossProfitChangeCurrencyCode` (*type:* `String.t`, *default:* `nil`) - The predicted monthly gross profit change currency (ISO 4217 code). - * `predictedMonthlyGrossProfitChangeMicros` (*type:* `String.t`, *default:* `nil`) - The predicted change in gross profit in micros after introducing the suggested price for a month compared to current active price. + * `predictedMonthlyGrossProfitChangeCurrencyCode` (*type:* `String.t`, *default:* `nil`) - *Deprecated*: This field is no longer supported and will start returning USD for all requests. The predicted monthly gross profit change currency (ISO 4217 code). + * `predictedMonthlyGrossProfitChangeMicros` (*type:* `String.t`, *default:* `nil`) - *Deprecated*: This field is no longer supported and will start returning 0. The predicted change in gross profit in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) after introducing the suggested price for a month compared to current active price. * `suggestedPriceCurrencyCode` (*type:* `String.t`, *default:* `nil`) - The suggested price currency (ISO 4217 code). - * `suggestedPriceMicros` (*type:* `String.t`, *default:* `nil`) - The latest suggested price in micros for the product. + * `suggestedPriceMicros` (*type:* `String.t`, *default:* `nil`) - The latest suggested price in micros (1 millionth of a standard unit, 1 USD = 1000000 micros) for the product. """ use GoogleApi.Gax.ModelBase diff --git a/clients/content/lib/google_api/content/v21/model/product.ex b/clients/content/lib/google_api/content/v21/model/product.ex index 3173e61fae..bfbf232fd9 100644 --- a/clients/content/lib/google_api/content/v21/model/product.ex +++ b/clients/content/lib/google_api/content/v21/model/product.ex @@ -17,7 +17,7 @@ defmodule GoogleApi.Content.V21.Model.Product do @moduledoc """ - Required product attributes are primarily defined by the products data specification. See the Products Data Specification Help Center article for information. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect. + Required product attributes are primarily defined by the product data specification. See the Product Data Specification Help Center article for information. Product data. After inserting, updating, or deleting a product, it may take several minutes before changes take effect. ## Attributes @@ -36,7 +36,7 @@ defmodule GoogleApi.Content.V21.Model.Product do * `pattern` (*type:* `String.t`, *default:* `nil`) - The item's pattern (for example, polka dots). * `mpn` (*type:* `String.t`, *default:* `nil`) - Manufacturer Part Number (MPN) of the item. * `productHeight` (*type:* `GoogleApi.Content.V21.Model.ProductDimension.t`, *default:* `nil`) - The height of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive). - * `includedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of destinations to include for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. + * `includedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this target (corresponds to checked check boxes in Merchant Center). Default destinations are always included unless provided in `excludedDestinations`. * `shippingHeight` (*type:* `GoogleApi.Content.V21.Model.ProductShippingDimension.t`, *default:* `nil`) - Height of the item for shipping. * `pickupMethod` (*type:* `String.t`, *default:* `nil`) - The pick up option for the item. Acceptable values are: - "`buy`" - "`reserve`" - "`ship to store`" - "`not supported`" * `taxes` (*type:* `list(GoogleApi.Content.V21.Model.ProductTax.t)`, *default:* `nil`) - Tax information. @@ -49,12 +49,13 @@ defmodule GoogleApi.Content.V21.Model.Product do * `description` (*type:* `String.t`, *default:* `nil`) - Description of the item. * `subscriptionCost` (*type:* `GoogleApi.Content.V21.Model.ProductSubscriptionCost.t`, *default:* `nil`) - Number of periods (months or years) and amount of payment per period for an item with an associated subscription contract. * `gtin` (*type:* `String.t`, *default:* `nil`) - Global Trade Item Number (GTIN) of the item. - * `feedLabel` (*type:* `String.t`, *default:* `nil`) - Feed label for the item. Either `targetCountry` or `feedLabel` is required. + * `feedLabel` (*type:* `String.t`, *default:* `nil`) - Feed label for the item. Either `targetCountry` or `feedLabel` is required. Must be less than or equal to 20 uppercase letters (A-Z), numbers (0-9), and dashes (-). * `displayAdsId` (*type:* `String.t`, *default:* `nil`) - An identifier for an item for dynamic remarketing campaigns. * `linkTemplate` (*type:* `String.t`, *default:* `nil`) - URL template for merchant hosted local storefront. * `displayAdsLink` (*type:* `String.t`, *default:* `nil`) - URL directly to your item's landing page for dynamic remarketing campaigns. * `loyaltyPoints` (*type:* `GoogleApi.Content.V21.Model.LoyaltyPoints.t`, *default:* `nil`) - Loyalty points that users receive after purchasing the item. Japan only. * `kind` (*type:* `String.t`, *default:* `nil`) - Identifies what kind of resource this is. Value: the fixed string "`content#product`" + * `lifestyleImageLinks` (*type:* `list(String.t)`, *default:* `nil`) - Additional URLs of lifestyle images of the item. Used to explicitly identify images that showcase your item in a real-world context. See the Help Center article for more information. * `displayAdsValue` (*type:* `float()`, *default:* `nil`) - Offer margin for dynamic remarketing campaigns. * `shippingLabel` (*type:* `String.t`, *default:* `nil`) - The shipping label of the product, used to group product in account-level shipping rules. * `sizeSystem` (*type:* `String.t`, *default:* `nil`) - System in which the size is specified. Recommended for apparel items. @@ -66,33 +67,34 @@ defmodule GoogleApi.Content.V21.Model.Product do * `costOfGoodsSold` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Cost of goods sold. Used for gross profit reporting. * `adsRedirect` (*type:* `String.t`, *default:* `nil`) - Allows advertisers to override the item URL when the product is shown within the context of Product Ads. * `shipping` (*type:* `list(GoogleApi.Content.V21.Model.ProductShipping.t)`, *default:* `nil`) - Shipping rules. - * `productTypes` (*type:* `list(String.t)`, *default:* `nil`) - Categories of the item (formatted as in products data specification). + * `productTypes` (*type:* `list(String.t)`, *default:* `nil`) - Categories of the item (formatted as in product data specification). * `productWidth` (*type:* `GoogleApi.Content.V21.Model.ProductDimension.t`, *default:* `nil`) - The width of the product in the units provided. The value must be between 0 (exclusive) and 3000 (inclusive). * `additionalImageLinks` (*type:* `list(String.t)`, *default:* `nil`) - Additional URLs of images of the item. * `transitTimeLabel` (*type:* `String.t`, *default:* `nil`) - The transit time label of the product, used to group product in account-level transit time tables. * `sizeType` (*type:* `String.t`, *default:* `nil`) - The cut of the item. Recommended for apparel items. * `mobileLink` (*type:* `String.t`, *default:* `nil`) - URL for the mobile-optimized version of your item's landing page. - * `excludedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of destinations to exclude for this target (corresponds to cleared check boxes in Merchant Center). + * `excludedDestinations` (*type:* `list(String.t)`, *default:* `nil`) - The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this target (corresponds to cleared check boxes in Merchant Center). Products that are excluded from all destinations for more than 7 days are automatically deleted. * `isBundle` (*type:* `boolean()`, *default:* `nil`) - Whether the item is a merchant-defined bundle. A bundle is a custom grouping of different products sold by a merchant for a single price. * `taxCategory` (*type:* `String.t`, *default:* `nil`) - The tax category of the product, used to configure detailed tax nexus in account-level tax settings. * `googleProductCategory` (*type:* `String.t`, *default:* `nil`) - Google's category of the item (see [Google product taxonomy](https://support.google.com/merchants/answer/1705911)). When querying products, this field will contain the user provided value. There is currently no way to get back the auto assigned google product categories through the API. * `material` (*type:* `String.t`, *default:* `nil`) - The material of which the item is made. * `condition` (*type:* `String.t`, *default:* `nil`) - Condition or state of the item. * `expirationDate` (*type:* `String.t`, *default:* `nil`) - Date on which the item should expire, as specified upon insertion, in ISO 8601 format. The actual expiration date in Google Shopping is exposed in `productstatuses` as `googleExpirationDate` and might be earlier if `expirationDate` is too far in the future. - * `salePriceEffectiveDate` (*type:* `String.t`, *default:* `nil`) - Date range during which the item is on sale (see products data specification ). + * `salePriceEffectiveDate` (*type:* `String.t`, *default:* `nil`) - Date range during which the item is on sale (see product data specification ). * `brand` (*type:* `String.t`, *default:* `nil`) - Brand of the item. * `customLabel4` (*type:* `String.t`, *default:* `nil`) - Custom label 4 for custom grouping of items in a Shopping campaign. * `pickupSla` (*type:* `String.t`, *default:* `nil`) - Item store pickup timeline. Acceptable values are: - "`same day`" - "`next day`" - "`2-day`" - "`3-day`" - "`4-day`" - "`5-day`" - "`6-day`" - "`7-day`" - "`multi-week`" * `minHandlingTime` (*type:* `String.t`, *default:* `nil`) - Minimal product handling time (in business days). * `channel` (*type:* `String.t`, *default:* `nil`) - Required. The item's channel (online or local). Acceptable values are: - "`local`" - "`online`" * `price` (*type:* `GoogleApi.Content.V21.Model.Price.t`, *default:* `nil`) - Price of the item. + * `cloudExportAdditionalProperties` (*type:* `list(GoogleApi.Content.V21.Model.CloudExportAdditionalProperties.t)`, *default:* `nil`) - Extra fields to export to the Cloud Retail program. * `minEnergyEfficiencyClass` (*type:* `String.t`, *default:* `nil`) - The energy efficiency class as defined in EU directive 2010/30/EU. * `pause` (*type:* `String.t`, *default:* `nil`) - Publication of this item should be temporarily paused. Acceptable values are: - "`ads`" * `mobileLinkTemplate` (*type:* `String.t`, *default:* `nil`) - URL template for merchant hosted local storefront optimized for mobile devices. * `imageLink` (*type:* `String.t`, *default:* `nil`) - URL of an image of the item. * `ageGroup` (*type:* `String.t`, *default:* `nil`) - Target age group of the item. * `customLabel0` (*type:* `String.t`, *default:* `nil`) - Custom label 0 for custom grouping of items in a Shopping campaign. - * `id` (*type:* `String.t`, *default:* `nil`) - The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product is of the form channel:contentLanguage: targetCountry: offerId. + * `id` (*type:* `String.t`, *default:* `nil`) - The REST ID of the product. Content API methods that operate on products take this as their `productId` parameter. The REST ID for a product has one of the 2 forms channel:contentLanguage: targetCountry: offerId or channel:contentLanguage:feedLabel: offerId. * `shippingLength` (*type:* `GoogleApi.Content.V21.Model.ProductShippingDimension.t`, *default:* `nil`) - Length of the item for shipping. * `shippingWeight` (*type:* `GoogleApi.Content.V21.Model.ProductShippingWeight.t`, *default:* `nil`) - Weight of the item for shipping. * `shoppingAdsExcludedCountries` (*type:* `list(String.t)`, *default:* `nil`) - List of country codes (ISO 3166-1 alpha-2) to exclude the offer from Shopping Ads destination. Countries from this list are removed from countries configured in MC feed settings. @@ -101,17 +103,20 @@ defmodule GoogleApi.Content.V21.Model.Product do * `sellOnGoogleQuantity` (*type:* `String.t`, *default:* `nil`) - The quantity of the product that is available for selling on Google. Supported only for online products. * `contentLanguage` (*type:* `String.t`, *default:* `nil`) - Required. The two-letter ISO 639-1 language code for the item. * `availability` (*type:* `String.t`, *default:* `nil`) - Availability status of the item. + * `certifications` (*type:* `list(GoogleApi.Content.V21.Model.ProductCertification.t)`, *default:* `nil`) - Product [certification](https://support.google.com/merchants/answer/13528839), introduced for EU energy efficiency labeling compliance using the [EU EPREL](https://eprel.ec.europa.eu/screen/home) database. * `availabilityDate` (*type:* `String.t`, *default:* `nil`) - The day a pre-ordered product becomes available for delivery, in ISO 8601 format. * `externalSellerId` (*type:* `String.t`, *default:* `nil`) - Required for multi-seller accounts. Use this attribute if you're a marketplace uploading products for various sellers to your multi-seller account. * `productDetails` (*type:* `list(GoogleApi.Content.V21.Model.ProductProductDetail.t)`, *default:* `nil`) - Technical specification or additional product details. * `canonicalLink` (*type:* `String.t`, *default:* `nil`) - URL for the canonical version of your item's landing page. + * `disclosureDate` (*type:* `String.t`, *default:* `nil`) - The date time when an offer becomes visible in search results across Google’s YouTube surfaces, in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format. See [Disclosure date](https://support.google.com/merchants/answer/13034208) for more information. * `productWeight` (*type:* `GoogleApi.Content.V21.Model.ProductWeight.t`, *default:* `nil`) - The weight of the product in the units provided. The value must be between 0 (exclusive) and 2000 (inclusive). * `title` (*type:* `String.t`, *default:* `nil`) - Title of the item. * `maxEnergyEfficiencyClass` (*type:* `String.t`, *default:* `nil`) - The energy efficiency class as defined in EU directive 2010/30/EU. + * `virtualModelLink` (*type:* `String.t`, *default:* `nil`) - URL of the 3D model of the item to provide more visuals. * `customLabel3` (*type:* `String.t`, *default:* `nil`) - Custom label 3 for custom grouping of items in a Shopping campaign. * `energyEfficiencyClass` (*type:* `String.t`, *default:* `nil`) - The energy efficiency class as defined in EU directive 2010/30/EU. * `promotionIds` (*type:* `list(String.t)`, *default:* `nil`) - The unique ID of a promotion. - * `targetCountry` (*type:* `String.t`, *default:* `nil`) - Required. The CLDR territory code for the item. + * `targetCountry` (*type:* `String.t`, *default:* `nil`) - Required. The CLDR territory code for the item's country of sale. * `source` (*type:* `String.t`, *default:* `nil`) - The source of the offer, that is, how the offer was created. Acceptable values are: - "`api`" - "`crawl`" - "`feed`" """ @@ -153,6 +158,7 @@ defmodule GoogleApi.Content.V21.Model.Product do :displayAdsLink => String.t() | nil, :loyaltyPoints => GoogleApi.Content.V21.Model.LoyaltyPoints.t() | nil, :kind => String.t() | nil, + :lifestyleImageLinks => list(String.t()) | nil, :displayAdsValue => float() | nil, :shippingLabel => String.t() | nil, :sizeSystem => String.t() | nil, @@ -184,6 +190,8 @@ defmodule GoogleApi.Content.V21.Model.Product do :minHandlingTime => String.t() | nil, :channel => String.t() | nil, :price => GoogleApi.Content.V21.Model.Price.t() | nil, + :cloudExportAdditionalProperties => + list(GoogleApi.Content.V21.Model.CloudExportAdditionalProperties.t()) | nil, :minEnergyEfficiencyClass => String.t() | nil, :pause => String.t() | nil, :mobileLinkTemplate => String.t() | nil, @@ -199,13 +207,16 @@ defmodule GoogleApi.Content.V21.Model.Product do :sellOnGoogleQuantity => String.t() | nil, :contentLanguage => String.t() | nil, :availability => String.t() | nil, + :certifications => list(GoogleApi.Content.V21.Model.ProductCertification.t()) | nil, :availabilityDate => String.t() | nil, :externalSellerId => String.t() | nil, :productDetails => list(GoogleApi.Content.V21.Model.ProductProductDetail.t()) | nil, :canonicalLink => String.t() | nil, + :disclosureDate => String.t() | nil, :productWeight => GoogleApi.Content.V21.Model.ProductWeight.t() | nil, :title => String.t() | nil, :maxEnergyEfficiencyClass => String.t() | nil, + :virtualModelLink => String.t() | nil, :customLabel3 => String.t() | nil, :energyEfficiencyClass => String.t() | nil, :promotionIds => list(String.t()) | nil, @@ -247,6 +258,7 @@ defmodule GoogleApi.Content.V21.Model.Product do field(:displayAdsLink) field(:loyaltyPoints, as: GoogleApi.Content.V21.Model.LoyaltyPoints) field(:kind) + field(:lifestyleImageLinks, type: :list) field(:displayAdsValue) field(:shippingLabel) field(:sizeSystem) @@ -278,6 +290,12 @@ defmodule GoogleApi.Content.V21.Model.Product do field(:minHandlingTime) field(:channel) field(:price, as: GoogleApi.Content.V21.Model.Price) + + field(:cloudExportAdditionalProperties, + as: GoogleApi.Content.V21.Model.CloudExportAdditionalProperties, + type: :list + ) + field(:minEnergyEfficiencyClass) field(:pause) field(:mobileLinkTemplate) @@ -293,13 +311,16 @@ defmodule GoogleApi.Content.V21.Model.Product do field(:sellOnGoogleQuantity) field(:contentLanguage) field(:availability) + field(:certifications, as: GoogleApi.Content.V21.Model.ProductCertification, type: :list) field(:availabilityDate) field(:externalSellerId) field(:productDetails, as: GoogleApi.Content.V21.Model.ProductProductDetail, type: :list) field(:canonicalLink) + field(:disclosureDate) field(:productWeight, as: GoogleApi.Content.V21.Model.ProductWeight) field(:title) field(:maxEnergyEfficiencyClass) + field(:virtualModelLink) field(:customLabel3) field(:energyEfficiencyClass) field(:promotionIds, type: :list) diff --git a/clients/content/lib/google_api/content/v21/model/product_certification.ex b/clients/content/lib/google_api/content/v21/model/product_certification.ex new file mode 100644 index 0000000000..fc56cc5781 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/product_certification.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ProductCertification do + @moduledoc """ + Product [certification](https://support.google.com/merchants/answer/13528839), introduced for EU energy efficiency labeling compliance using the [EU EPREL](https://eprel.ec.europa.eu/screen/home) database. + + ## Attributes + + * `certificationAuthority` (*type:* `String.t`, *default:* `nil`) - The certification authority, for example "European_Commission". Maximum length is 2000 characters. + * `certificationCode` (*type:* `String.t`, *default:* `nil`) - The certification code, for eaxample "123456". Maximum length is 2000 characters. + * `certificationName` (*type:* `String.t`, *default:* `nil`) - The name of the certification, for example "EPREL". Maximum length is 2000 characters. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :certificationAuthority => String.t() | nil, + :certificationCode => String.t() | nil, + :certificationName => String.t() | nil + } + + field(:certificationAuthority) + field(:certificationCode) + field(:certificationName) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ProductCertification do + def decode(value, options) do + GoogleApi.Content.V21.Model.ProductCertification.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ProductCertification do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/product_issue.ex b/clients/content/lib/google_api/content/v21/model/product_issue.ex new file mode 100644 index 0000000000..5895da0c1d --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/product_issue.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ProductIssue do + @moduledoc """ + An issue affecting specific product. + + ## Attributes + + * `actions` (*type:* `list(GoogleApi.Content.V21.Model.Action.t)`, *default:* `nil`) - A list of actionable steps that can be executed to solve the issue. An example is requesting a re-review or providing arguments when merchant disagrees with the issue. Actions that are supported in (your) third-party application can be rendered as buttons and should be available to merchant when they expand the issue. + * `impact` (*type:* `GoogleApi.Content.V21.Model.ProductIssueImpact.t`, *default:* `nil`) - Clarifies the severity of the issue. The summarizing message, if present, should be shown right under the title for each issue. It helps merchants to quickly understand the impact of the issue. The detailed breakdown helps the merchant to fully understand the impact of the issue. It can be rendered as dialog that opens when the merchant mouse over the summarized impact statement. Issues with different severity can be styled differently. They may use a different color or icon to signal the difference between `ERROR`, `WARNING` and `INFO`. + * `prerenderedContent` (*type:* `String.t`, *default:* `nil`) - Details of the issue as a pre-rendered HTML. HTML elements contain CSS classes that can be used to customize the style of the content. Always sanitize the HTML before embedding it directly to your application. The sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `issue-detail` - top level container for the detail of the issue * `callout-banners` - section of the `issue-detail` with callout banners * `callout-banner` - single callout banner, inside `callout-banners` * `callout-banner-info` - callout with important information (default) * `callout-banner-warning` - callout with a warning * `callout-banner-error` - callout informing about an error (most severe) * `issue-content` - section of the `issue-detail`, contains multiple `content-element` * `content-element` - content element such as a list, link or paragraph, inside `issue-content` * `root-causes` - unordered list with items describing root causes of the issue, inside `issue-content` * `root-causes-intro` - intro text before the `root-causes` list, inside `issue-content` * `segment` - section of the text, `span` inside paragraph * `segment-attribute` - section of the text that represents a product attribute, for example 'image\\_link' * `segment-literal` - section of the text that contains a special value, for example '0-1000 kg' * `segment-bold` - section of the text that should be rendered as bold * `segment-italic` - section of the text that should be rendered as italic * `tooltip` - used on paragraphs that should be rendered with a tooltip. A section of the text in such a paragraph will have a class `tooltip-text` and is intended to be shown in a mouse over dialog. If the style is not used, the `tooltip-text` section would be shown on a new line, after the main part of the text. * `tooltip-text` - marks a section of the text within a `tooltip`, that is intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`, that can be replaced with a tooltip icon, for example '?' or 'i'. By default, this section contains a `br` tag, that is separating the main text and the tooltip text when the style is not used. * `tooltip-style-question` - the tooltip shows helpful information, can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds additional information fitting to the context, can use the 'i' as an icon. * `content-moderation` - marks the paragraph that explains how the issue was identified. * `new-element` - Present for new elements added to the pre-rendered content in the future. To make sure that a new content element does not break your style, you can hide everything with this class. + * `title` (*type:* `String.t`, *default:* `nil`) - Title of the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :actions => list(GoogleApi.Content.V21.Model.Action.t()) | nil, + :impact => GoogleApi.Content.V21.Model.ProductIssueImpact.t() | nil, + :prerenderedContent => String.t() | nil, + :title => String.t() | nil + } + + field(:actions, as: GoogleApi.Content.V21.Model.Action, type: :list) + field(:impact, as: GoogleApi.Content.V21.Model.ProductIssueImpact) + field(:prerenderedContent) + field(:title) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ProductIssue do + def decode(value, options) do + GoogleApi.Content.V21.Model.ProductIssue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ProductIssue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/product_issue_impact.ex b/clients/content/lib/google_api/content/v21/model/product_issue_impact.ex new file mode 100644 index 0000000000..60aea8e462 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/product_issue_impact.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ProductIssueImpact do + @moduledoc """ + Overall impact of product issue. + + ## Attributes + + * `breakdowns` (*type:* `list(GoogleApi.Content.V21.Model.Breakdown.t)`, *default:* `nil`) - Detailed impact breakdown. Explains the types of restriction the issue has in different shopping destinations and territory. If present, it should be rendered to the merchant. Can be shown as a mouse over dropdown or a dialog. Each breakdown item represents a group of regions with the same impact details. + * `message` (*type:* `String.t`, *default:* `nil`) - Optional. Message summarizing the overall impact of the issue. If present, it should be rendered to the merchant. For example: "Limits visibility in France" + * `severity` (*type:* `String.t`, *default:* `nil`) - The severity of the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :breakdowns => list(GoogleApi.Content.V21.Model.Breakdown.t()) | nil, + :message => String.t() | nil, + :severity => String.t() | nil + } + + field(:breakdowns, as: GoogleApi.Content.V21.Model.Breakdown, type: :list) + field(:message) + field(:severity) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ProductIssueImpact do + def decode(value, options) do + GoogleApi.Content.V21.Model.ProductIssueImpact.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ProductIssueImpact do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/product_shipping.ex b/clients/content/lib/google_api/content/v21/model/product_shipping.ex index 476e5e89bd..327600159c 100644 --- a/clients/content/lib/google_api/content/v21/model/product_shipping.ex +++ b/clients/content/lib/google_api/content/v21/model/product_shipping.ex @@ -23,7 +23,7 @@ defmodule GoogleApi.Content.V21.Model.ProductShipping do * `country` (*type:* `String.t`, *default:* `nil`) - The CLDR territory code of the country to which an item will ship. * `locationGroupName` (*type:* `String.t`, *default:* `nil`) - The location where the shipping is applicable, represented by a location group name. - * `locationId` (*type:* `String.t`, *default:* `nil`) - The numeric ID of a location that the shipping rate applies to as defined in the AdWords API. + * `locationId` (*type:* `String.t`, *default:* `nil`) - The numeric ID of a location that the shipping rate applies to as defined in the Google Ads API. * `maxHandlingTime` (*type:* `String.t`, *default:* `nil`) - Maximum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it's received if it happens before the cut-off time. Both maxHandlingTime and maxTransitTime are required if providing shipping speeds. * `maxTransitTime` (*type:* `String.t`, *default:* `nil`) - Maximum transit time (inclusive) between when the order has shipped and when it's delivered in business days. 0 means that the order is delivered on the same day as it ships. Both maxHandlingTime and maxTransitTime are required if providing shipping speeds. * `minHandlingTime` (*type:* `String.t`, *default:* `nil`) - Minimum handling time (inclusive) between when the order is received and shipped in business days. 0 means that the order is shipped on the same day as it's received if it happens before the cut-off time. minHandlingTime can only be present together with maxHandlingTime; but it's not required if maxHandlingTime is present. diff --git a/clients/content/lib/google_api/content/v21/model/product_status_destination_status.ex b/clients/content/lib/google_api/content/v21/model/product_status_destination_status.ex index 531ba3b031..ccf49934fa 100644 --- a/clients/content/lib/google_api/content/v21/model/product_status_destination_status.ex +++ b/clients/content/lib/google_api/content/v21/model/product_status_destination_status.ex @@ -25,7 +25,7 @@ defmodule GoogleApi.Content.V21.Model.ProductStatusDestinationStatus do * `destination` (*type:* `String.t`, *default:* `nil`) - The name of the destination * `disapprovedCountries` (*type:* `list(String.t)`, *default:* `nil`) - List of country codes (ISO 3166-1 alpha-2) where the offer is disapproved. * `pendingCountries` (*type:* `list(String.t)`, *default:* `nil`) - List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval. - * `status` (*type:* `String.t`, *default:* `nil`) - Destination approval status in `targetCountry` of the offer. + * `status` (*type:* `String.t`, *default:* `nil`) - Deprecated. Destination approval status in `targetCountry` of the offer. """ use GoogleApi.Gax.ModelBase diff --git a/clients/content/lib/google_api/content/v21/model/product_tax.ex b/clients/content/lib/google_api/content/v21/model/product_tax.ex index a6e3d5af7d..397fe2ea87 100644 --- a/clients/content/lib/google_api/content/v21/model/product_tax.ex +++ b/clients/content/lib/google_api/content/v21/model/product_tax.ex @@ -22,7 +22,7 @@ defmodule GoogleApi.Content.V21.Model.ProductTax do ## Attributes * `country` (*type:* `String.t`, *default:* `nil`) - The country within which the item is taxed, specified as a CLDR territory code. - * `locationId` (*type:* `String.t`, *default:* `nil`) - The numeric ID of a location that the tax rate applies to as defined in the AdWords API. + * `locationId` (*type:* `String.t`, *default:* `nil`) - The numeric ID of a location that the tax rate applies to as defined in the Google Ads API. * `postalCode` (*type:* `String.t`, *default:* `nil`) - The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*. * `rate` (*type:* `float()`, *default:* `nil`) - The percentage of tax rate that applies to the item price. * `region` (*type:* `String.t`, *default:* `nil`) - The geographic region to which the tax rate applies. diff --git a/clients/content/lib/google_api/content/v21/model/product_view.ex b/clients/content/lib/google_api/content/v21/model/product_view.ex index 57c7b6917d..788eba302c 100644 --- a/clients/content/lib/google_api/content/v21/model/product_view.ex +++ b/clients/content/lib/google_api/content/v21/model/product_view.ex @@ -17,14 +17,21 @@ defmodule GoogleApi.Content.V21.Model.ProductView do @moduledoc """ - Product fields. Values are only set for fields requested explicitly in the request's search query. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access. + Product fields. Values are only set for fields requested explicitly in the request's search query. ## Attributes * `aggregatedDestinationStatus` (*type:* `String.t`, *default:* `nil`) - Aggregated destination status. * `availability` (*type:* `String.t`, *default:* `nil`) - Availability of the product. * `brand` (*type:* `String.t`, *default:* `nil`) - Brand of the product. + * `categoryL1` (*type:* `String.t`, *default:* `nil`) - First level of the product category in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). + * `categoryL2` (*type:* `String.t`, *default:* `nil`) - Second level of the product category in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). + * `categoryL3` (*type:* `String.t`, *default:* `nil`) - Third level of the product category in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). + * `categoryL4` (*type:* `String.t`, *default:* `nil`) - Fourth level of the product category in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). + * `categoryL5` (*type:* `String.t`, *default:* `nil`) - Fifth level of the product category in [Google's product taxonomy](https://support.google.com/merchants/answer/6324436). * `channel` (*type:* `String.t`, *default:* `nil`) - Channel of the product (online versus local). + * `clickPotential` (*type:* `String.t`, *default:* `nil`) - Estimated performance potential compared to highest performing products of the merchant. + * `clickPotentialRank` (*type:* `String.t`, *default:* `nil`) - Rank of the product based on its click potential. A product with `click_potential_rank` 1 has the highest click potential among the merchant's products that fulfill the search query conditions. * `condition` (*type:* `String.t`, *default:* `nil`) - Condition of the product. * `creationTime` (*type:* `DateTime.t`, *default:* `nil`) - The time the merchant created the product in timestamp seconds. * `currencyCode` (*type:* `String.t`, *default:* `nil`) - Product price currency code (for example, ISO 4217). Absent if product price is not available. @@ -35,7 +42,12 @@ defmodule GoogleApi.Content.V21.Model.ProductView do * `itemIssues` (*type:* `list(GoogleApi.Content.V21.Model.ProductViewItemIssue.t)`, *default:* `nil`) - List of item issues for the product. * `languageCode` (*type:* `String.t`, *default:* `nil`) - Language code of the product in BCP 47 format. * `offerId` (*type:* `String.t`, *default:* `nil`) - Merchant-provided id of the product. - * `priceMicros` (*type:* `String.t`, *default:* `nil`) - Product price specified as micros in the product currency. Absent in case the information about the price of the product is not available. + * `priceMicros` (*type:* `String.t`, *default:* `nil`) - Product price specified as micros (1 millionth of a standard unit, 1 USD = 1000000 micros) in the product currency. Absent in case the information about the price of the product is not available. + * `productTypeL1` (*type:* `String.t`, *default:* `nil`) - First level of the product type in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324436). + * `productTypeL2` (*type:* `String.t`, *default:* `nil`) - Second level of the product type in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324436). + * `productTypeL3` (*type:* `String.t`, *default:* `nil`) - Third level of the product type in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324436). + * `productTypeL4` (*type:* `String.t`, *default:* `nil`) - Fourth level of the product type in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324436). + * `productTypeL5` (*type:* `String.t`, *default:* `nil`) - Fifth level of the product type in merchant's own [product taxonomy](https://support.google.com/merchants/answer/6324436). * `shippingLabel` (*type:* `String.t`, *default:* `nil`) - The normalized shipping label specified in the feed * `title` (*type:* `String.t`, *default:* `nil`) - Title of the product. """ @@ -46,7 +58,14 @@ defmodule GoogleApi.Content.V21.Model.ProductView do :aggregatedDestinationStatus => String.t() | nil, :availability => String.t() | nil, :brand => String.t() | nil, + :categoryL1 => String.t() | nil, + :categoryL2 => String.t() | nil, + :categoryL3 => String.t() | nil, + :categoryL4 => String.t() | nil, + :categoryL5 => String.t() | nil, :channel => String.t() | nil, + :clickPotential => String.t() | nil, + :clickPotentialRank => String.t() | nil, :condition => String.t() | nil, :creationTime => DateTime.t() | nil, :currencyCode => String.t() | nil, @@ -58,6 +77,11 @@ defmodule GoogleApi.Content.V21.Model.ProductView do :languageCode => String.t() | nil, :offerId => String.t() | nil, :priceMicros => String.t() | nil, + :productTypeL1 => String.t() | nil, + :productTypeL2 => String.t() | nil, + :productTypeL3 => String.t() | nil, + :productTypeL4 => String.t() | nil, + :productTypeL5 => String.t() | nil, :shippingLabel => String.t() | nil, :title => String.t() | nil } @@ -65,7 +89,14 @@ defmodule GoogleApi.Content.V21.Model.ProductView do field(:aggregatedDestinationStatus) field(:availability) field(:brand) + field(:categoryL1) + field(:categoryL2) + field(:categoryL3) + field(:categoryL4) + field(:categoryL5) field(:channel) + field(:clickPotential) + field(:clickPotentialRank) field(:condition) field(:creationTime, as: DateTime) field(:currencyCode) @@ -77,6 +108,11 @@ defmodule GoogleApi.Content.V21.Model.ProductView do field(:languageCode) field(:offerId) field(:priceMicros) + field(:productTypeL1) + field(:productTypeL2) + field(:productTypeL3) + field(:productTypeL4) + field(:productTypeL5) field(:shippingLabel) field(:title) end diff --git a/clients/content/lib/google_api/content/v21/model/product_view_item_issue_item_issue_type.ex b/clients/content/lib/google_api/content/v21/model/product_view_item_issue_item_issue_type.ex index db3e7e9ec5..ec65027091 100644 --- a/clients/content/lib/google_api/content/v21/model/product_view_item_issue_item_issue_type.ex +++ b/clients/content/lib/google_api/content/v21/model/product_view_item_issue_item_issue_type.ex @@ -22,15 +22,18 @@ defmodule GoogleApi.Content.V21.Model.ProductViewItemIssueItemIssueType do ## Attributes * `canonicalAttribute` (*type:* `String.t`, *default:* `nil`) - Canonical attribute name for attribute-specific issues. + * `code` (*type:* `String.t`, *default:* `nil`) - Error code of the issue. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :canonicalAttribute => String.t() | nil + :canonicalAttribute => String.t() | nil, + :code => String.t() | nil } field(:canonicalAttribute) + field(:code) end defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ProductViewItemIssueItemIssueType do diff --git a/clients/content/lib/google_api/content/v21/model/promotion.ex b/clients/content/lib/google_api/content/v21/model/promotion.ex index bcbfe8a89d..5140164ba6 100644 --- a/clients/content/lib/google_api/content/v21/model/promotion.ex +++ b/clients/content/lib/google_api/content/v21/model/promotion.ex @@ -27,6 +27,7 @@ defmodule GoogleApi.Content.V21.Model.Promotion do * `freeGiftItemId` (*type:* `String.t`, *default:* `nil`) - Free gift item ID for the promotion. * `itemGroupIdExclusion` (*type:* `list(String.t)`, *default:* `nil`) - Product filter by item group ID exclusion for the promotion. * `offerType` (*type:* `String.t`, *default:* `nil`) - Required. Type of the promotion. + * `promotionStatus` (*type:* `GoogleApi.Content.V21.Model.PromotionPromotionStatus.t`, *default:* `nil`) - Output only. The current status of the promotion. * `productType` (*type:* `list(String.t)`, *default:* `nil`) - Product filter by product type for the promotion. * `itemGroupId` (*type:* `list(String.t)`, *default:* `nil`) - Product filter by item group ID for the promotion. * `productApplicability` (*type:* `String.t`, *default:* `nil`) - Required. Applicability of the promotion to either all products or only specific products. @@ -54,13 +55,13 @@ defmodule GoogleApi.Content.V21.Model.Promotion do * `brandExclusion` (*type:* `list(String.t)`, *default:* `nil`) - Product filter by brand exclusion for the promotion. * `productTypeExclusion` (*type:* `list(String.t)`, *default:* `nil`) - Product filter by product type exclusion for the promotion. * `promotionDisplayTimePeriod` (*type:* `GoogleApi.Content.V21.Model.TimePeriod.t`, *default:* `nil`) - `TimePeriod` representation of the promotion's display dates. - * `id` (*type:* `String.t`, *default:* `nil`) - Required. Output only. The REST promotion ID to uniquely identify the promotion. Content API methods that operate on promotions take this as their `promotionId` parameter. The REST ID for a promotion is of the form channel:contentLanguage:targetCountry:promotionId The `channel` field has a value of `"online"`, `"in_store"`, or `"online_in_store"`. + * `id` (*type:* `String.t`, *default:* `nil`) - Output only. The REST promotion ID to uniquely identify the promotion. Content API methods that operate on promotions take this as their `promotionId` parameter. The REST ID for a promotion is of the form channel:contentLanguage:targetCountry:promotionId The `channel` field has a value of `"online"`, `"in_store"`, or `"online_in_store"`. * `storeCode` (*type:* `list(String.t)`, *default:* `nil`) - Store codes to include for the promotion. - * `contentLanguage` (*type:* `String.t`, *default:* `nil`) - Required. The content language used as part of the unique identifier. `en` content language is available for all target countries. `fr` content language is available for `CA` and `FR` target countries, and `de` content language is available for `DE` target country. + * `contentLanguage` (*type:* `String.t`, *default:* `nil`) - Required. The content language used as part of the unique identifier. `en` content language is available for all target countries. `fr` content language is available for `CA` and `FR` target countries. `de` content language is available for `DE` target country. `nl` content language is available for `NL` target country. `it` content language is available for `IT` target country. `pt` content language is available for `BR` target country. `ja` content language is available for `JP` target country. `ko` content language is available for `KR` target country. * `limitQuantity` (*type:* `integer()`, *default:* `nil`) - Maximum purchase quantity for the promotion. * `getThisQuantityDiscounted` (*type:* `integer()`, *default:* `nil`) - The number of items discounted in the promotion. * `redemptionChannel` (*type:* `list(String.t)`, *default:* `nil`) - Required. Redemption channel for the promotion. At least one channel is required. - * `targetCountry` (*type:* `String.t`, *default:* `nil`) - Required. The target country used as part of the unique identifier. Can be `AU`, `CA`, `DE`, `FR`, `GB`, `IN` or `US`. + * `targetCountry` (*type:* `String.t`, *default:* `nil`) - Required. The target country used as part of the unique identifier. Can be `AU`, `CA`, `DE`, `FR`, `GB`, `IN`, `US`, `BR`, `ES`, `NL`, `JP`, `IT` or `KR`. """ use GoogleApi.Gax.ModelBase @@ -72,6 +73,7 @@ defmodule GoogleApi.Content.V21.Model.Promotion do :freeGiftItemId => String.t() | nil, :itemGroupIdExclusion => list(String.t()) | nil, :offerType => String.t() | nil, + :promotionStatus => GoogleApi.Content.V21.Model.PromotionPromotionStatus.t() | nil, :productType => list(String.t()) | nil, :itemGroupId => list(String.t()) | nil, :productApplicability => String.t() | nil, @@ -114,6 +116,7 @@ defmodule GoogleApi.Content.V21.Model.Promotion do field(:freeGiftItemId) field(:itemGroupIdExclusion, type: :list) field(:offerType) + field(:promotionStatus, as: GoogleApi.Content.V21.Model.PromotionPromotionStatus) field(:productType, type: :list) field(:itemGroupId, type: :list) field(:productApplicability) diff --git a/clients/content/lib/google_api/content/v21/model/promotion_promotion_status.ex b/clients/content/lib/google_api/content/v21/model/promotion_promotion_status.ex new file mode 100644 index 0000000000..737c35e9a2 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/promotion_promotion_status.ex @@ -0,0 +1,66 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.PromotionPromotionStatus do + @moduledoc """ + The status of the promotion. + + ## Attributes + + * `creationDate` (*type:* `String.t`, *default:* `nil`) - Date on which the promotion has been created in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z" + * `destinationStatuses` (*type:* `list(GoogleApi.Content.V21.Model.PromotionPromotionStatusDestinationStatus.t)`, *default:* `nil`) - The intended destinations for the promotion. + * `lastUpdateDate` (*type:* `String.t`, *default:* `nil`) - Date on which the promotion status has been last updated in [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z" + * `promotionIssue` (*type:* `list(GoogleApi.Content.V21.Model.PromotionPromotionStatusPromotionIssue.t)`, *default:* `nil`) - A list of issues associated with the promotion. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :creationDate => String.t() | nil, + :destinationStatuses => + list(GoogleApi.Content.V21.Model.PromotionPromotionStatusDestinationStatus.t()) | nil, + :lastUpdateDate => String.t() | nil, + :promotionIssue => + list(GoogleApi.Content.V21.Model.PromotionPromotionStatusPromotionIssue.t()) | nil + } + + field(:creationDate) + + field(:destinationStatuses, + as: GoogleApi.Content.V21.Model.PromotionPromotionStatusDestinationStatus, + type: :list + ) + + field(:lastUpdateDate) + + field(:promotionIssue, + as: GoogleApi.Content.V21.Model.PromotionPromotionStatusPromotionIssue, + type: :list + ) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.PromotionPromotionStatus do + def decode(value, options) do + GoogleApi.Content.V21.Model.PromotionPromotionStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.PromotionPromotionStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/promotion_promotion_status_destination_status.ex b/clients/content/lib/google_api/content/v21/model/promotion_promotion_status_destination_status.ex new file mode 100644 index 0000000000..53ddc520d2 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/promotion_promotion_status_destination_status.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.PromotionPromotionStatusDestinationStatus do + @moduledoc """ + The destination status of the promotion. + + ## Attributes + + * `destination` (*type:* `String.t`, *default:* `nil`) - The name of the destination. + * `status` (*type:* `String.t`, *default:* `nil`) - The status for the specified destination. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :destination => String.t() | nil, + :status => String.t() | nil + } + + field(:destination) + field(:status) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.PromotionPromotionStatusDestinationStatus do + def decode(value, options) do + GoogleApi.Content.V21.Model.PromotionPromotionStatusDestinationStatus.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.PromotionPromotionStatusDestinationStatus do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/promotion_promotion_status_promotion_issue.ex b/clients/content/lib/google_api/content/v21/model/promotion_promotion_status_promotion_issue.ex new file mode 100644 index 0000000000..d241a2770c --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/promotion_promotion_status_promotion_issue.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.PromotionPromotionStatusPromotionIssue do + @moduledoc """ + The issue associated with the promotion. + + ## Attributes + + * `code` (*type:* `String.t`, *default:* `nil`) - Code of the issue. + * `detail` (*type:* `String.t`, *default:* `nil`) - Explanation of the issue. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :code => String.t() | nil, + :detail => String.t() | nil + } + + field(:code) + field(:detail) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.PromotionPromotionStatusPromotionIssue do + def decode(value, options) do + GoogleApi.Content.V21.Model.PromotionPromotionStatusPromotionIssue.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.PromotionPromotionStatusPromotionIssue do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/recommendation.ex b/clients/content/lib/google_api/content/v21/model/recommendation.ex new file mode 100644 index 0000000000..0463af6922 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/recommendation.ex @@ -0,0 +1,87 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.Recommendation do + @moduledoc """ + Recommendations are suggested ways to improve your merchant account's performance. For example, to engage with a feature, or start using a new Google product. + + ## Attributes + + * `additionalCallToAction` (*type:* `list(GoogleApi.Content.V21.Model.RecommendationCallToAction.t)`, *default:* `nil`) - Output only. CTAs of this recommendation. Repeated. + * `additionalDescriptions` (*type:* `list(GoogleApi.Content.V21.Model.RecommendationDescription.t)`, *default:* `nil`) - Output only. List of additional localized descriptions for a recommendation. Localication uses the `languageCode` field in `GenerateRecommendations` requests. Not all description types are guaranteed to be present and we recommend to rely on default description. + * `creative` (*type:* `list(GoogleApi.Content.V21.Model.RecommendationCreative.t)`, *default:* `nil`) - Output only. Any creatives attached to the recommendation. Repeated. + * `defaultCallToAction` (*type:* `GoogleApi.Content.V21.Model.RecommendationCallToAction.t`, *default:* `nil`) - Optional. Default CTA of the recommendation. + * `defaultDescription` (*type:* `String.t`, *default:* `nil`) - Optional. Localized recommendation description. The localization the {@link `GenerateRecommendationsRequest.language_code`} field in {@link `GenerateRecommendationsRequest`} requests. + * `numericalImpact` (*type:* `integer()`, *default:* `nil`) - Optional. A numerical score of the impact from the recommendation's description. For example, a recommendation might suggest an upward trend in sales for a certain product. Higher number means larger impact. + * `paid` (*type:* `boolean()`, *default:* `nil`) - Optional. Indicates whether a user needs to pay when they complete the user journey suggested by the recommendation. + * `recommendationName` (*type:* `String.t`, *default:* `nil`) - Optional. Localized recommendation name. The localization uses the {@link `GenerateRecommendationsRequest.language_code`} field in {@link `GenerateRecommendationsRequest`} requests. + * `subType` (*type:* `String.t`, *default:* `nil`) - Optional. Subtype of the recommendations. Only applicable when multiple recommendations can be generated per type, and is used as an identifier of recommendation under the same recommendation type. + * `title` (*type:* `String.t`, *default:* `nil`) - Optional. Localized Recommendation Title. Localization uses the {@link `GenerateRecommendationsRequest.language_code`} field in {@link `GenerateRecommendationsRequest`} requests. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the recommendation. List of currently available recommendation types: - OPPORTUNITY_CREATE_NEW_COLLECTION - OPPORTUNITY_CREATE_EMAIL_CAMPAIGN + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :additionalCallToAction => + list(GoogleApi.Content.V21.Model.RecommendationCallToAction.t()) | nil, + :additionalDescriptions => + list(GoogleApi.Content.V21.Model.RecommendationDescription.t()) | nil, + :creative => list(GoogleApi.Content.V21.Model.RecommendationCreative.t()) | nil, + :defaultCallToAction => + GoogleApi.Content.V21.Model.RecommendationCallToAction.t() | nil, + :defaultDescription => String.t() | nil, + :numericalImpact => integer() | nil, + :paid => boolean() | nil, + :recommendationName => String.t() | nil, + :subType => String.t() | nil, + :title => String.t() | nil, + :type => String.t() | nil + } + + field(:additionalCallToAction, + as: GoogleApi.Content.V21.Model.RecommendationCallToAction, + type: :list + ) + + field(:additionalDescriptions, + as: GoogleApi.Content.V21.Model.RecommendationDescription, + type: :list + ) + + field(:creative, as: GoogleApi.Content.V21.Model.RecommendationCreative, type: :list) + field(:defaultCallToAction, as: GoogleApi.Content.V21.Model.RecommendationCallToAction) + field(:defaultDescription) + field(:numericalImpact) + field(:paid) + field(:recommendationName) + field(:subType) + field(:title) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.Recommendation do + def decode(value, options) do + GoogleApi.Content.V21.Model.Recommendation.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.Recommendation do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/recommendation_call_to_action.ex b/clients/content/lib/google_api/content/v21/model/recommendation_call_to_action.ex new file mode 100644 index 0000000000..9445b20bac --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/recommendation_call_to_action.ex @@ -0,0 +1,52 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.RecommendationCallToAction do + @moduledoc """ + Call to action (CTA) that explains how a merchant can implement this recommendation + + ## Attributes + + * `intent` (*type:* `String.t`, *default:* `nil`) - Output only. Intent of the action. This value describes the intent (for example, `OPEN_CREATE_EMAIL_CAMPAIGN_FLOW`) and can vary from recommendation to recommendation. This value can change over time for the same recommendation. Currently available intent values: - OPEN_CREATE_EMAIL_CAMPAIGN_FLOW: Opens a user journey where they can create a marketing email campaign. (No default URL) - OPEN_CREATE_COLLECTION_TAB: Opens a user journey where they can [create a collection](https://support.google.com/merchants/answer/9703228) for their Merchant account. (No default URL) + * `localizedText` (*type:* `String.t`, *default:* `nil`) - Output only. Localized text of the CTA. Optional. + * `uri` (*type:* `String.t`, *default:* `nil`) - Optional. URL of the CTA. This field will only be set for some recommendations where there is a suggested landing URL. Otherwise it will be set to an empty string. We recommend developers to use their own custom landing page according to the description of the intent field above when this uri field is empty. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :intent => String.t() | nil, + :localizedText => String.t() | nil, + :uri => String.t() | nil + } + + field(:intent) + field(:localizedText) + field(:uri) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RecommendationCallToAction do + def decode(value, options) do + GoogleApi.Content.V21.Model.RecommendationCallToAction.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RecommendationCallToAction do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/inapplicability_details.ex b/clients/content/lib/google_api/content/v21/model/recommendation_creative.ex similarity index 57% rename from clients/content/lib/google_api/content/v21/model/inapplicability_details.ex rename to clients/content/lib/google_api/content/v21/model/recommendation_creative.ex index 8261f66774..b507cb464e 100644 --- a/clients/content/lib/google_api/content/v21/model/inapplicability_details.ex +++ b/clients/content/lib/google_api/content/v21/model/recommendation_creative.ex @@ -15,34 +15,34 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Model.InapplicabilityDetails do +defmodule GoogleApi.Content.V21.Model.RecommendationCreative do @moduledoc """ - Map of inapplicability details. + Creative is a multimedia attachment to recommendation that can be used on the frontend. ## Attributes - * `inapplicableCount` (*type:* `String.t`, *default:* `nil`) - Count of this inapplicable reason code. - * `inapplicableReason` (*type:* `String.t`, *default:* `nil`) - Reason code this rule was not applicable. + * `type` (*type:* `String.t`, *default:* `nil`) - Type of the creative. + * `uri` (*type:* `String.t`, *default:* `nil`) - URL of the creative. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :inapplicableCount => String.t() | nil, - :inapplicableReason => String.t() | nil + :type => String.t() | nil, + :uri => String.t() | nil } - field(:inapplicableCount) - field(:inapplicableReason) + field(:type) + field(:uri) end -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.InapplicabilityDetails do +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RecommendationCreative do def decode(value, options) do - GoogleApi.Content.V21.Model.InapplicabilityDetails.decode(value, options) + GoogleApi.Content.V21.Model.RecommendationCreative.decode(value, options) end end -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.InapplicabilityDetails do +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RecommendationCreative do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/content/lib/google_api/content/v21/model/recommendation_description.ex b/clients/content/lib/google_api/content/v21/model/recommendation_description.ex new file mode 100644 index 0000000000..b402f690d9 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/recommendation_description.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.RecommendationDescription do + @moduledoc """ + Google-provided description for the recommendation. + + ## Attributes + + * `text` (*type:* `String.t`, *default:* `nil`) - Output only. Text of the description. + * `type` (*type:* `String.t`, *default:* `nil`) - Output only. Type of the description. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :text => String.t() | nil, + :type => String.t() | nil + } + + field(:text) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RecommendationDescription do + def decode(value, options) do + GoogleApi.Content.V21.Model.RecommendationDescription.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RecommendationDescription do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/render_account_issues_request_payload.ex b/clients/content/lib/google_api/content/v21/model/render_account_issues_request_payload.ex new file mode 100644 index 0000000000..073b74cebc --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/render_account_issues_request_payload.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.RenderAccountIssuesRequestPayload do + @moduledoc """ + The payload for configuring how the content should be rendered. + + ## Attributes + + * `contentOption` (*type:* `String.t`, *default:* `nil`) - Optional. How the detailed content should be returned. Default option is to return the content as a pre-rendered HTML text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contentOption => String.t() | nil + } + + field(:contentOption) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RenderAccountIssuesRequestPayload do + def decode(value, options) do + GoogleApi.Content.V21.Model.RenderAccountIssuesRequestPayload.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RenderAccountIssuesRequestPayload do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/render_account_issues_response.ex b/clients/content/lib/google_api/content/v21/model/render_account_issues_response.ex new file mode 100644 index 0000000000..68a560adc6 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/render_account_issues_response.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.RenderAccountIssuesResponse do + @moduledoc """ + Response containing support content and actions for listed account issues. + + ## Attributes + + * `alternateDisputeResolution` (*type:* `GoogleApi.Content.V21.Model.AlternateDisputeResolution.t`, *default:* `nil`) - The Alternate Dispute Resolution (ADR) contains a link to a page where merchant can bring their appeal to an [external body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501). If the ADR is present, it MUST be available to the merchant on the page that shows the list with their account issues. + * `issues` (*type:* `list(GoogleApi.Content.V21.Model.AccountIssue.t)`, *default:* `nil`) - List of account issues for a given account. This list can be shown with compressed, expandable items. In the compressed form, the title and impact should be shown for each issue. Once the issue is expanded, the detailed content and available actions should be rendered. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternateDisputeResolution => + GoogleApi.Content.V21.Model.AlternateDisputeResolution.t() | nil, + :issues => list(GoogleApi.Content.V21.Model.AccountIssue.t()) | nil + } + + field(:alternateDisputeResolution, as: GoogleApi.Content.V21.Model.AlternateDisputeResolution) + field(:issues, as: GoogleApi.Content.V21.Model.AccountIssue, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RenderAccountIssuesResponse do + def decode(value, options) do + GoogleApi.Content.V21.Model.RenderAccountIssuesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RenderAccountIssuesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/render_product_issues_request_payload.ex b/clients/content/lib/google_api/content/v21/model/render_product_issues_request_payload.ex new file mode 100644 index 0000000000..b1136f3773 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/render_product_issues_request_payload.ex @@ -0,0 +1,46 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.RenderProductIssuesRequestPayload do + @moduledoc """ + The payload for configuring how the content should be rendered. + + ## Attributes + + * `contentOption` (*type:* `String.t`, *default:* `nil`) - Optional. How the detailed content should be returned. Default option is to return the content as a pre-rendered HTML text. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :contentOption => String.t() | nil + } + + field(:contentOption) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RenderProductIssuesRequestPayload do + def decode(value, options) do + GoogleApi.Content.V21.Model.RenderProductIssuesRequestPayload.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RenderProductIssuesRequestPayload do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/render_product_issues_response.ex b/clients/content/lib/google_api/content/v21/model/render_product_issues_response.ex new file mode 100644 index 0000000000..51d27dfabf --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/render_product_issues_response.ex @@ -0,0 +1,50 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.RenderProductIssuesResponse do + @moduledoc """ + Response containing support content and actions for listed product issues. + + ## Attributes + + * `alternateDisputeResolution` (*type:* `GoogleApi.Content.V21.Model.AlternateDisputeResolution.t`, *default:* `nil`) - The Alternate Dispute Resolution (ADR) contains a link to a page where merchant can bring their appeal to an [external body](https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501). If present, the link should be shown on the same page as the list of issues. + * `issues` (*type:* `list(GoogleApi.Content.V21.Model.ProductIssue.t)`, *default:* `nil`) - List of issues for a given product. This list can be shown with compressed, expandable items. In the compressed form, the title and impact should be shown for each issue. Once the issue is expanded, the detailed content and available actions should be rendered. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :alternateDisputeResolution => + GoogleApi.Content.V21.Model.AlternateDisputeResolution.t() | nil, + :issues => list(GoogleApi.Content.V21.Model.ProductIssue.t()) | nil + } + + field(:alternateDisputeResolution, as: GoogleApi.Content.V21.Model.AlternateDisputeResolution) + field(:issues, as: GoogleApi.Content.V21.Model.ProductIssue, type: :list) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RenderProductIssuesResponse do + def decode(value, options) do + GoogleApi.Content.V21.Model.RenderProductIssuesResponse.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RenderProductIssuesResponse do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/report_interaction_request.ex b/clients/content/lib/google_api/content/v21/model/report_interaction_request.ex new file mode 100644 index 0000000000..91b5602425 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/report_interaction_request.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ReportInteractionRequest do + @moduledoc """ + Request to report interactions on a recommendation. + + ## Attributes + + * `interactionType` (*type:* `String.t`, *default:* `nil`) - Required. Type of the interaction that is reported, for example INTERACTION_CLICK. + * `responseToken` (*type:* `String.t`, *default:* `nil`) - Required. Token of the response when recommendation was returned. + * `subtype` (*type:* `String.t`, *default:* `nil`) - Optional. Subtype of the recommendations this interaction happened on. This field must be set only to the value that is returned by {@link `RecommendationsService.GenerateRecommendations`} call. + * `type` (*type:* `String.t`, *default:* `nil`) - Required. Type of the recommendations on which this interaction happened. This field must be set only to the value that is returned by {@link `GenerateRecommendationsResponse`} call. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :interactionType => String.t() | nil, + :responseToken => String.t() | nil, + :subtype => String.t() | nil, + :type => String.t() | nil + } + + field(:interactionType) + field(:responseToken) + field(:subtype) + field(:type) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ReportInteractionRequest do + def decode(value, options) do + GoogleApi.Content.V21.Model.ReportInteractionRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ReportInteractionRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/report_row.ex b/clients/content/lib/google_api/content/v21/model/report_row.ex index 56429def37..64aa506a87 100644 --- a/clients/content/lib/google_api/content/v21/model/report_row.ex +++ b/clients/content/lib/google_api/content/v21/model/report_row.ex @@ -21,14 +21,16 @@ defmodule GoogleApi.Content.V21.Model.ReportRow do ## Attributes - * `bestSellers` (*type:* `GoogleApi.Content.V21.Model.BestSellers.t`, *default:* `nil`) - Best Sellers fields requested by the merchant in the query. Field values are only set if the merchant queries `BestSellersProductClusterView` or `BestSellersBrandView`. + * `bestSellers` (*type:* `GoogleApi.Content.V21.Model.BestSellers.t`, *default:* `nil`) - Best sellers fields requested by the merchant in the query. Field values are only set if the merchant queries `BestSellersProductClusterView` or `BestSellersBrandView`. * `brand` (*type:* `GoogleApi.Content.V21.Model.Brand.t`, *default:* `nil`) - Brand fields requested by the merchant in the query. Field values are only set if the merchant queries `BestSellersBrandView`. + * `competitiveVisibility` (*type:* `GoogleApi.Content.V21.Model.CompetitiveVisibility.t`, *default:* `nil`) - Competitive visibility fields requested by the merchant in the query. Field values are only set if the merchant queries `CompetitiveVisibilityTopMerchantView`, `CompetitiveVisibilityBenchmarkView` or `CompetitiveVisibilityCompetitorView`. * `metrics` (*type:* `GoogleApi.Content.V21.Model.Metrics.t`, *default:* `nil`) - Metrics requested by the merchant in the query. Metric values are only set for metrics requested explicitly in the query. - * `priceCompetitiveness` (*type:* `GoogleApi.Content.V21.Model.PriceCompetitiveness.t`, *default:* `nil`) - Price Competitiveness fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceCompetitivenessProductView`. - * `priceInsights` (*type:* `GoogleApi.Content.V21.Model.PriceInsights.t`, *default:* `nil`) - Price Insights fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceInsightsProductView`. + * `priceCompetitiveness` (*type:* `GoogleApi.Content.V21.Model.PriceCompetitiveness.t`, *default:* `nil`) - Price competitiveness fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceCompetitivenessProductView`. + * `priceInsights` (*type:* `GoogleApi.Content.V21.Model.PriceInsights.t`, *default:* `nil`) - Price insights fields requested by the merchant in the query. Field values are only set if the merchant queries `PriceInsightsProductView`. * `productCluster` (*type:* `GoogleApi.Content.V21.Model.ProductCluster.t`, *default:* `nil`) - Product cluster fields requested by the merchant in the query. Field values are only set if the merchant queries `BestSellersProductClusterView`. - * `productView` (*type:* `GoogleApi.Content.V21.Model.ProductView.t`, *default:* `nil`) - Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`. Available only to selected merchants. Submit the [interest form](https://forms.gle/7Uy8htzAN8oNokz9A) to request access. + * `productView` (*type:* `GoogleApi.Content.V21.Model.ProductView.t`, *default:* `nil`) - Product fields requested by the merchant in the query. Field values are only set if the merchant queries `ProductView`. * `segments` (*type:* `GoogleApi.Content.V21.Model.Segments.t`, *default:* `nil`) - Segmentation dimensions requested by the merchant in the query. Dimension values are only set for dimensions requested explicitly in the query. + * `topicTrends` (*type:* `GoogleApi.Content.V21.Model.TopicTrends.t`, *default:* `nil`) - Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`. https://support.google.com/merchants/answer/13542370. """ use GoogleApi.Gax.ModelBase @@ -36,22 +38,26 @@ defmodule GoogleApi.Content.V21.Model.ReportRow do @type t :: %__MODULE__{ :bestSellers => GoogleApi.Content.V21.Model.BestSellers.t() | nil, :brand => GoogleApi.Content.V21.Model.Brand.t() | nil, + :competitiveVisibility => GoogleApi.Content.V21.Model.CompetitiveVisibility.t() | nil, :metrics => GoogleApi.Content.V21.Model.Metrics.t() | nil, :priceCompetitiveness => GoogleApi.Content.V21.Model.PriceCompetitiveness.t() | nil, :priceInsights => GoogleApi.Content.V21.Model.PriceInsights.t() | nil, :productCluster => GoogleApi.Content.V21.Model.ProductCluster.t() | nil, :productView => GoogleApi.Content.V21.Model.ProductView.t() | nil, - :segments => GoogleApi.Content.V21.Model.Segments.t() | nil + :segments => GoogleApi.Content.V21.Model.Segments.t() | nil, + :topicTrends => GoogleApi.Content.V21.Model.TopicTrends.t() | nil } field(:bestSellers, as: GoogleApi.Content.V21.Model.BestSellers) field(:brand, as: GoogleApi.Content.V21.Model.Brand) + field(:competitiveVisibility, as: GoogleApi.Content.V21.Model.CompetitiveVisibility) field(:metrics, as: GoogleApi.Content.V21.Model.Metrics) field(:priceCompetitiveness, as: GoogleApi.Content.V21.Model.PriceCompetitiveness) field(:priceInsights, as: GoogleApi.Content.V21.Model.PriceInsights) field(:productCluster, as: GoogleApi.Content.V21.Model.ProductCluster) field(:productView, as: GoogleApi.Content.V21.Model.ProductView) field(:segments, as: GoogleApi.Content.V21.Model.Segments) + field(:topicTrends, as: GoogleApi.Content.V21.Model.TopicTrends) end defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ReportRow do diff --git a/clients/content/lib/google_api/content/v21/model/repricing_product_report.ex b/clients/content/lib/google_api/content/v21/model/repricing_product_report.ex deleted file mode 100644 index 2768ff94bd..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_product_report.ex +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingProductReport do - @moduledoc """ - Resource that represents a daily Repricing product report. Each report contains stats for a single type of Repricing rule for a single product on a given day. If there are multiple rules of the same type for the product on that day, the report lists all the rules by rule ids, combines the stats, and paginates the results by date. To retrieve the stats of a particular rule, provide the rule_id in the request. - - ## Attributes - - * `applicationCount` (*type:* `String.t`, *default:* `nil`) - Total count of Repricer applications. This value captures how many times the rule of this type was applied to this product during this reporting period. - * `buyboxWinningProductStats` (*type:* `GoogleApi.Content.V21.Model.RepricingProductReportBuyboxWinningProductStats.t`, *default:* `nil`) - Stats specific to buybox winning rules for product report (deprecated). - * `date` (*type:* `GoogleApi.Content.V21.Model.Date.t`, *default:* `nil`) - Date of the stats in this report. The report starts and ends according to the merchant's timezone. - * `highWatermark` (*type:* `GoogleApi.Content.V21.Model.PriceAmount.t`, *default:* `nil`) - Maximum displayed price after repriced during this reporting period. - * `inapplicabilityDetails` (*type:* `list(GoogleApi.Content.V21.Model.InapplicabilityDetails.t)`, *default:* `nil`) - List of all reasons the rule did not apply to the product during the specified reporting period. - * `lowWatermark` (*type:* `GoogleApi.Content.V21.Model.PriceAmount.t`, *default:* `nil`) - Minimum displayed price after repriced during this reporting period. - * `orderItemCount` (*type:* `integer()`, *default:* `nil`) - Total unit count of impacted products ordered while the rule was active on the date of the report. This count includes all orders that were started while the rule was active, even if the rule was no longer active when the order was completed. - * `ruleIds` (*type:* `list(String.t)`, *default:* `nil`) - Ids of the Repricing rule for this report. - * `totalGmv` (*type:* `GoogleApi.Content.V21.Model.PriceAmount.t`, *default:* `nil`) - Total GMV generated by impacted products while the rule was active on the date of the report. This value includes all orders that were started while the rule was active, even if the rule was no longer active when the order was completed. - * `type` (*type:* `String.t`, *default:* `nil`) - Type of the rule. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :applicationCount => String.t() | nil, - :buyboxWinningProductStats => - GoogleApi.Content.V21.Model.RepricingProductReportBuyboxWinningProductStats.t() | nil, - :date => GoogleApi.Content.V21.Model.Date.t() | nil, - :highWatermark => GoogleApi.Content.V21.Model.PriceAmount.t() | nil, - :inapplicabilityDetails => - list(GoogleApi.Content.V21.Model.InapplicabilityDetails.t()) | nil, - :lowWatermark => GoogleApi.Content.V21.Model.PriceAmount.t() | nil, - :orderItemCount => integer() | nil, - :ruleIds => list(String.t()) | nil, - :totalGmv => GoogleApi.Content.V21.Model.PriceAmount.t() | nil, - :type => String.t() | nil - } - - field(:applicationCount) - - field(:buyboxWinningProductStats, - as: GoogleApi.Content.V21.Model.RepricingProductReportBuyboxWinningProductStats - ) - - field(:date, as: GoogleApi.Content.V21.Model.Date) - field(:highWatermark, as: GoogleApi.Content.V21.Model.PriceAmount) - - field(:inapplicabilityDetails, - as: GoogleApi.Content.V21.Model.InapplicabilityDetails, - type: :list - ) - - field(:lowWatermark, as: GoogleApi.Content.V21.Model.PriceAmount) - field(:orderItemCount) - field(:ruleIds, type: :list) - field(:totalGmv, as: GoogleApi.Content.V21.Model.PriceAmount) - field(:type) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingProductReport do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingProductReport.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingProductReport do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule.ex b/clients/content/lib/google_api/content/v21/model/repricing_rule.ex deleted file mode 100644 index 86b6efeb6b..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule.ex +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingRule do - @moduledoc """ - Represents a repricing rule. A repricing rule is used by shopping serving to adjust transactable offer prices if conditions are met. Next ID: 24 - - ## Attributes - - * `cogsBasedRule` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleCostOfGoodsSaleRule.t`, *default:* `nil`) - The rule definition for TYPE_COGS_BASED. Required when the rule type is TYPE_COGS_BASED. - * `countryCode` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (e.g. "US"). - * `effectiveTimePeriod` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleEffectiveTime.t`, *default:* `nil`) - Required. Time period when the rule should take effect. - * `eligibleOfferMatcher` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcher.t`, *default:* `nil`) - Required. Match criteria for the eligible offers. - * `languageCode` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The two-letter ISO 639-1 language code associated with the repricing rule. - * `merchantId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. Merchant that owns the repricing rule. - * `paused` (*type:* `boolean()`, *default:* `nil`) - Represents whether a rule is paused. A paused rule will behave like a non-paused rule within CRUD operations, with the major difference that a paused rule will not be evaluated and will have no effect on offers. - * `restriction` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleRestriction.t`, *default:* `nil`) - Required. Restriction of the rule appliance. - * `ruleId` (*type:* `String.t`, *default:* `nil`) - Output only. Immutable. The ID to uniquely identify each repricing rule. - * `statsBasedRule` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleStatsBasedRule.t`, *default:* `nil`) - The rule definition for TYPE_STATS_BASED. Required when the rule type is TYPE_STATS_BASED. - * `title` (*type:* `String.t`, *default:* `nil`) - The title for the rule. - * `type` (*type:* `String.t`, *default:* `nil`) - Required. Immutable. The type of the rule. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :cogsBasedRule => - GoogleApi.Content.V21.Model.RepricingRuleCostOfGoodsSaleRule.t() | nil, - :countryCode => String.t() | nil, - :effectiveTimePeriod => - GoogleApi.Content.V21.Model.RepricingRuleEffectiveTime.t() | nil, - :eligibleOfferMatcher => - GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcher.t() | nil, - :languageCode => String.t() | nil, - :merchantId => String.t() | nil, - :paused => boolean() | nil, - :restriction => GoogleApi.Content.V21.Model.RepricingRuleRestriction.t() | nil, - :ruleId => String.t() | nil, - :statsBasedRule => GoogleApi.Content.V21.Model.RepricingRuleStatsBasedRule.t() | nil, - :title => String.t() | nil, - :type => String.t() | nil - } - - field(:cogsBasedRule, as: GoogleApi.Content.V21.Model.RepricingRuleCostOfGoodsSaleRule) - field(:countryCode) - field(:effectiveTimePeriod, as: GoogleApi.Content.V21.Model.RepricingRuleEffectiveTime) - field(:eligibleOfferMatcher, as: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcher) - field(:languageCode) - field(:merchantId) - field(:paused) - field(:restriction, as: GoogleApi.Content.V21.Model.RepricingRuleRestriction) - field(:ruleId) - field(:statsBasedRule, as: GoogleApi.Content.V21.Model.RepricingRuleStatsBasedRule) - field(:title) - field(:type) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRule do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRule.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRule do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher.ex b/clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher.ex deleted file mode 100644 index b4d1f3b6b2..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher.ex +++ /dev/null @@ -1,71 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcher do - @moduledoc """ - Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but not 10 product ids and 11 brands. - - ## Attributes - - * `brandMatcher` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher.t`, *default:* `nil`) - Filter by the brand. - * `itemGroupIdMatcher` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher.t`, *default:* `nil`) - Filter by the item group id. - * `matcherOption` (*type:* `String.t`, *default:* `nil`) - Determines whether to use the custom matchers or the product feed attribute "repricing_rule_id" to specify offer-rule mapping. - * `offerIdMatcher` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher.t`, *default:* `nil`) - Filter by the offer id. - * `skipWhenOnPromotion` (*type:* `boolean()`, *default:* `nil`) - When true, the rule won't be applied to offers with active promotions. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :brandMatcher => - GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher.t() | nil, - :itemGroupIdMatcher => - GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher.t() | nil, - :matcherOption => String.t() | nil, - :offerIdMatcher => - GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher.t() | nil, - :skipWhenOnPromotion => boolean() | nil - } - - field(:brandMatcher, - as: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher - ) - - field(:itemGroupIdMatcher, - as: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher - ) - - field(:matcherOption) - - field(:offerIdMatcher, - as: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher - ) - - field(:skipWhenOnPromotion) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcher do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcher.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcher do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher_string_matcher.ex b/clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher_string_matcher.ex deleted file mode 100644 index ccee279a31..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_eligible_offer_matcher_string_matcher.ex +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher do - @moduledoc """ - Matcher by string attributes. - - ## Attributes - - * `strAttributes` (*type:* `list(String.t)`, *default:* `nil`) - String attributes, as long as such attribute of an offer is one of the string attribute values, the offer is considered as passing the matcher. The string matcher checks an offer for inclusivity in the string attributes, not equality. Only literal string matching is supported, no regex. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :strAttributes => list(String.t()) | nil - } - - field(:strAttributes, type: :list) -end - -defimpl Poison.Decoder, - for: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher.decode( - value, - options - ) - end -end - -defimpl Poison.Encoder, - for: GoogleApi.Content.V21.Model.RepricingRuleEligibleOfferMatcherStringMatcher do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_report.ex b/clients/content/lib/google_api/content/v21/model/repricing_rule_report.ex deleted file mode 100644 index ec5368cb81..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_report.ex +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingRuleReport do - @moduledoc """ - Resource that represents a daily Repricing rule report. Next ID: 11 - - ## Attributes - - * `buyboxWinningRuleStats` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleReportBuyboxWinningRuleStats.t`, *default:* `nil`) - Stats specific to buybox winning rules for rule report (deprecated). - * `date` (*type:* `GoogleApi.Content.V21.Model.Date.t`, *default:* `nil`) - Date of the stats in this report. The report starts and ends according to the merchant's timezone. - * `impactedProducts` (*type:* `list(String.t)`, *default:* `nil`) - List of product ids that are impacted by this rule during this reporting period. Out of stock products and products not searched for by customers are examples of non-impacted products. - * `inapplicabilityDetails` (*type:* `list(GoogleApi.Content.V21.Model.InapplicabilityDetails.t)`, *default:* `nil`) - List of all reasons the rule did not apply to the inapplicable products during the specified reporting period. - * `inapplicableProducts` (*type:* `list(String.t)`, *default:* `nil`) - List of product ids that are inapplicable to this rule during this reporting period. To get the inapplicable reason for a specific product, see RepricingProductReport. - * `orderItemCount` (*type:* `integer()`, *default:* `nil`) - Total unit count of impacted products ordered while the rule was active on the date of the report. This count includes all orders that were started while the rule was active, even if the rule was no longer active when the order was completed. - * `ruleId` (*type:* `String.t`, *default:* `nil`) - Id of the Repricing rule for this report. - * `totalGmv` (*type:* `GoogleApi.Content.V21.Model.PriceAmount.t`, *default:* `nil`) - Total GMV generated by impacted products while the rule was active on the date of the report. This value includes all orders that were started while the rule was active, even if the rule was no longer active when the order was completed. - * `type` (*type:* `String.t`, *default:* `nil`) - Type of the rule. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :buyboxWinningRuleStats => - GoogleApi.Content.V21.Model.RepricingRuleReportBuyboxWinningRuleStats.t() | nil, - :date => GoogleApi.Content.V21.Model.Date.t() | nil, - :impactedProducts => list(String.t()) | nil, - :inapplicabilityDetails => - list(GoogleApi.Content.V21.Model.InapplicabilityDetails.t()) | nil, - :inapplicableProducts => list(String.t()) | nil, - :orderItemCount => integer() | nil, - :ruleId => String.t() | nil, - :totalGmv => GoogleApi.Content.V21.Model.PriceAmount.t() | nil, - :type => String.t() | nil - } - - field(:buyboxWinningRuleStats, - as: GoogleApi.Content.V21.Model.RepricingRuleReportBuyboxWinningRuleStats - ) - - field(:date, as: GoogleApi.Content.V21.Model.Date) - field(:impactedProducts, type: :list) - - field(:inapplicabilityDetails, - as: GoogleApi.Content.V21.Model.InapplicabilityDetails, - type: :list - ) - - field(:inapplicableProducts, type: :list) - field(:orderItemCount) - field(:ruleId) - field(:totalGmv, as: GoogleApi.Content.V21.Model.PriceAmount) - field(:type) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleReport do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleReport.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleReport do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_restriction.ex b/clients/content/lib/google_api/content/v21/model/repricing_rule_restriction.ex deleted file mode 100644 index 3dfb36ed8f..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_restriction.ex +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingRuleRestriction do - @moduledoc """ - Definition of a rule restriction. At least one of the following needs to be true: (1) use_auto_pricing_min_price is true (2) floor.price_delta exists (3) floor.percentage_delta exists If floor.price_delta and floor.percentage_delta are both set on a rule, the highest value will be chosen by the Repricer. In other words, for a product with a price of $50, if the `floor.percentage_delta` is "-10" and the floor.price_delta is "-12", the offer price will only be lowered $5 (10% lower than the original offer price). - - ## Attributes - - * `floor` (*type:* `GoogleApi.Content.V21.Model.RepricingRuleRestrictionBoundary.t`, *default:* `nil`) - The inclusive floor lower bound. The repricing rule only applies when new price >= floor. - * `useAutoPricingMinPrice` (*type:* `boolean()`, *default:* `nil`) - If true, use the AUTO_PRICING_MIN_PRICE offer attribute as the lower bound of the rule. If use_auto_pricing_min_price is true, then only offers with `AUTO_PRICING_MIN_PRICE` existing on the offer will get Repricer treatment, even if a floor value is set on the rule. Also, if use_auto_pricing_min_price is true, the floor restriction will be ignored. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :floor => GoogleApi.Content.V21.Model.RepricingRuleRestrictionBoundary.t() | nil, - :useAutoPricingMinPrice => boolean() | nil - } - - field(:floor, as: GoogleApi.Content.V21.Model.RepricingRuleRestrictionBoundary) - field(:useAutoPricingMinPrice) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleRestriction do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleRestriction.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleRestriction do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_restriction_boundary.ex b/clients/content/lib/google_api/content/v21/model/repricing_rule_restriction_boundary.ex deleted file mode 100644 index ae332208ba..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_restriction_boundary.ex +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingRuleRestrictionBoundary do - @moduledoc """ - Definition of a boundary. - - ## Attributes - - * `percentageDelta` (*type:* `integer()`, *default:* `nil`) - The percentage delta relative to the offer selling price. This field is signed. It must be negative in floor. When it is used in floor, it should be > -100. For example, if an offer is selling at $10 and this field is -30 in floor, the repricing rule only applies if the calculated new price is >= $7. - * `priceDelta` (*type:* `String.t`, *default:* `nil`) - The price micros relative to the offer selling price. This field is signed. It must be negative in floor. For example, if an offer is selling at $10 and this field is -$2 in floor, the repricing rule only applies if the calculated new price is >= $8. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :percentageDelta => integer() | nil, - :priceDelta => String.t() | nil - } - - field(:percentageDelta) - field(:priceDelta) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleRestrictionBoundary do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleRestrictionBoundary.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleRestrictionBoundary do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_rule_stats_based_rule.ex b/clients/content/lib/google_api/content/v21/model/repricing_rule_stats_based_rule.ex deleted file mode 100644 index f77828a7f1..0000000000 --- a/clients/content/lib/google_api/content/v21/model/repricing_rule_stats_based_rule.ex +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# NOTE: This file is auto generated by the elixir code generator program. -# Do not edit this file manually. - -defmodule GoogleApi.Content.V21.Model.RepricingRuleStatsBasedRule do - @moduledoc """ - Definition of stats based rule. - - ## Attributes - - * `percentageDelta` (*type:* `integer()`, *default:* `nil`) - The percent change against the price target. Valid from 0 to 100 inclusively. - * `priceDelta` (*type:* `String.t`, *default:* `nil`) - The price delta against the above price target. A positive value means the price should be adjusted to be above statistical measure, and a negative value means below. Currency code must not be included. - """ - - use GoogleApi.Gax.ModelBase - - @type t :: %__MODULE__{ - :percentageDelta => integer() | nil, - :priceDelta => String.t() | nil - } - - field(:percentageDelta) - field(:priceDelta) -end - -defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.RepricingRuleStatsBasedRule do - def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingRuleStatsBasedRule.decode(value, options) - end -end - -defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.RepricingRuleStatsBasedRule do - def encode(value, options) do - GoogleApi.Gax.ModelBase.encode(value, options) - end -end diff --git a/clients/content/lib/google_api/content/v21/model/search_request.ex b/clients/content/lib/google_api/content/v21/model/search_request.ex index 8b10d90132..38dfca79b5 100644 --- a/clients/content/lib/google_api/content/v21/model/search_request.ex +++ b/clients/content/lib/google_api/content/v21/model/search_request.ex @@ -21,7 +21,7 @@ defmodule GoogleApi.Content.V21.Model.SearchRequest do ## Attributes - * `pageSize` (*type:* `integer()`, *default:* `nil`) - Number of ReportRows to retrieve in a single page. Defaults to the maximum of 1000. Values above 1000 are coerced to 1000. + * `pageSize` (*type:* `integer()`, *default:* `nil`) - Number of ReportRows to retrieve in a single page. Defaults to 1000. Values above 5000 are coerced to 5000. * `pageToken` (*type:* `String.t`, *default:* `nil`) - Token of the page to retrieve. If not specified, the first page of results is returned. In order to request the next page of results, the value obtained from `next_page_token` in the previous response should be used. * `query` (*type:* `String.t`, *default:* `nil`) - Required. Query that defines performance metrics to retrieve and dimensions according to which the metrics are to be segmented. For details on how to construct your query, see the [Query Language guide](https://developers.google.com/shopping-content/guides/reports/query-language/overview). """ diff --git a/clients/content/lib/google_api/content/v21/model/service.ex b/clients/content/lib/google_api/content/v21/model/service.ex index 4a9e38dbac..85a11f4c70 100644 --- a/clients/content/lib/google_api/content/v21/model/service.ex +++ b/clients/content/lib/google_api/content/v21/model/service.ex @@ -31,7 +31,8 @@ defmodule GoogleApi.Content.V21.Model.Service do * `name` (*type:* `String.t`, *default:* `nil`) - Free-form name of the service. Must be unique within target account. Required. * `pickupService` (*type:* `GoogleApi.Content.V21.Model.PickupCarrierService.t`, *default:* `nil`) - The carrier-service pair delivering items to collection points. The list of supported pickup services can be retrieved through the `getSupportedPickupServices` method. Required if and only if the service delivery type is `pickup`. * `rateGroups` (*type:* `list(GoogleApi.Content.V21.Model.RateGroup.t)`, *default:* `nil`) - Shipping rate group definitions. Only the last one is allowed to have an empty `applicableShippingLabels`, which means "everything else". The other `applicableShippingLabels` must not overlap. - * `shipmentType` (*type:* `String.t`, *default:* `nil`) - Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup`" + * `shipmentType` (*type:* `String.t`, *default:* `nil`) - Type of locations this service ships orders to. Acceptable values are: - "`delivery`" - "`pickup` (deprecated)" - "`local_delivery`" - "`collection_point`" + * `storeConfig` (*type:* `GoogleApi.Content.V21.Model.ServiceStoreConfig.t`, *default:* `nil`) - A list of stores your products are delivered from. This is only available for the local delivery shipment type. """ use GoogleApi.Gax.ModelBase @@ -47,7 +48,8 @@ defmodule GoogleApi.Content.V21.Model.Service do :name => String.t() | nil, :pickupService => GoogleApi.Content.V21.Model.PickupCarrierService.t() | nil, :rateGroups => list(GoogleApi.Content.V21.Model.RateGroup.t()) | nil, - :shipmentType => String.t() | nil + :shipmentType => String.t() | nil, + :storeConfig => GoogleApi.Content.V21.Model.ServiceStoreConfig.t() | nil } field(:active) @@ -61,6 +63,7 @@ defmodule GoogleApi.Content.V21.Model.Service do field(:pickupService, as: GoogleApi.Content.V21.Model.PickupCarrierService) field(:rateGroups, as: GoogleApi.Content.V21.Model.RateGroup, type: :list) field(:shipmentType) + field(:storeConfig, as: GoogleApi.Content.V21.Model.ServiceStoreConfig) end defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.Service do diff --git a/clients/content/lib/google_api/content/v21/model/service_store_config.ex b/clients/content/lib/google_api/content/v21/model/service_store_config.ex new file mode 100644 index 0000000000..29008732a7 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/service_store_config.ex @@ -0,0 +1,55 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ServiceStoreConfig do + @moduledoc """ + Stores that provide local delivery. Only valid with local delivery fulfillment. + + ## Attributes + + * `cutoffConfig` (*type:* `GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfig.t`, *default:* `nil`) - Time local delivery ends for the day. This can be either `local_cutoff_time` or `store_close_offset_hours`, if both are provided an error is thrown. + * `serviceRadius` (*type:* `GoogleApi.Content.V21.Model.Distance.t`, *default:* `nil`) - Maximum delivery radius. Only needed for local delivery fulfillment type. + * `storeCodes` (*type:* `list(String.t)`, *default:* `nil`) - A list of store codes that provide local delivery. If empty, then `store_service_type` must be `all_stores`, or an error is thrown. If not empty, then `store_service_type` must be `selected_stores`, or an error is thrown. + * `storeServiceType` (*type:* `String.t`, *default:* `nil`) - Indicates whether all stores listed by this merchant provide local delivery or not. Acceptable values are `all stores` and `selected stores` + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cutoffConfig => GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfig.t() | nil, + :serviceRadius => GoogleApi.Content.V21.Model.Distance.t() | nil, + :storeCodes => list(String.t()) | nil, + :storeServiceType => String.t() | nil + } + + field(:cutoffConfig, as: GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfig) + field(:serviceRadius, as: GoogleApi.Content.V21.Model.Distance) + field(:storeCodes, type: :list) + field(:storeServiceType) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ServiceStoreConfig do + def decode(value, options) do + GoogleApi.Content.V21.Model.ServiceStoreConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ServiceStoreConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/service_store_config_cutoff_config.ex b/clients/content/lib/google_api/content/v21/model/service_store_config_cutoff_config.ex new file mode 100644 index 0000000000..fc5a85aa7b --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/service_store_config_cutoff_config.ex @@ -0,0 +1,56 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfig do + @moduledoc """ + Time local delivery ends for the day based on the local timezone of the store. `local_cutoff_time` and `store_close_offset_hours` are mutually exclusive. + + ## Attributes + + * `localCutoffTime` (*type:* `GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfigLocalCutoffTime.t`, *default:* `nil`) - Time in hours and minutes in the local timezone when local delivery ends. + * `noDeliveryPostCutoff` (*type:* `boolean()`, *default:* `nil`) - Merchants can opt-out of showing n+1 day local delivery when they have a shipping service configured to n day local delivery. For example, if the shipping service defines same-day delivery, and it's past the cut-off, setting this field to `true` results in the calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the same example, setting this field to `false` results in the calculated shipping time being one day. This is only for local delivery. + * `storeCloseOffsetHours` (*type:* `String.t`, *default:* `nil`) - Represents cutoff time as the number of hours before store closing. Mutually exclusive with other fields (hour and minute). + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :localCutoffTime => + GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfigLocalCutoffTime.t() | nil, + :noDeliveryPostCutoff => boolean() | nil, + :storeCloseOffsetHours => String.t() | nil + } + + field(:localCutoffTime, + as: GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfigLocalCutoffTime + ) + + field(:noDeliveryPostCutoff) + field(:storeCloseOffsetHours) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfig do + def decode(value, options) do + GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfig.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfig do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/repricing_product_report_buybox_winning_product_stats.ex b/clients/content/lib/google_api/content/v21/model/service_store_config_cutoff_config_local_cutoff_time.ex similarity index 56% rename from clients/content/lib/google_api/content/v21/model/repricing_product_report_buybox_winning_product_stats.ex rename to clients/content/lib/google_api/content/v21/model/service_store_config_cutoff_config_local_cutoff_time.ex index 8b8a4e9290..eaf12b4995 100644 --- a/clients/content/lib/google_api/content/v21/model/repricing_product_report_buybox_winning_product_stats.ex +++ b/clients/content/lib/google_api/content/v21/model/service_store_config_cutoff_config_local_cutoff_time.ex @@ -15,28 +15,31 @@ # NOTE: This file is auto generated by the elixir code generator program. # Do not edit this file manually. -defmodule GoogleApi.Content.V21.Model.RepricingProductReportBuyboxWinningProductStats do +defmodule GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfigLocalCutoffTime do @moduledoc """ - Stats specific to buybox winning rules for product report. + Time in hours and minutes in the local timezone when local delivery ends. ## Attributes - * `buyboxWinsCount` (*type:* `integer()`, *default:* `nil`) - Number of times this product won the buybox with these rules during this time period. + * `hour` (*type:* `String.t`, *default:* `nil`) - Hour local delivery orders must be placed by to process the same day. + * `minute` (*type:* `String.t`, *default:* `nil`) - Minute local delivery orders must be placed by to process the same day. """ use GoogleApi.Gax.ModelBase @type t :: %__MODULE__{ - :buyboxWinsCount => integer() | nil + :hour => String.t() | nil, + :minute => String.t() | nil } - field(:buyboxWinsCount) + field(:hour) + field(:minute) end defimpl Poison.Decoder, - for: GoogleApi.Content.V21.Model.RepricingProductReportBuyboxWinningProductStats do + for: GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfigLocalCutoffTime do def decode(value, options) do - GoogleApi.Content.V21.Model.RepricingProductReportBuyboxWinningProductStats.decode( + GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfigLocalCutoffTime.decode( value, options ) @@ -44,7 +47,7 @@ defimpl Poison.Decoder, end defimpl Poison.Encoder, - for: GoogleApi.Content.V21.Model.RepricingProductReportBuyboxWinningProductStats do + for: GoogleApi.Content.V21.Model.ServiceStoreConfigCutoffConfigLocalCutoffTime do def encode(value, options) do GoogleApi.Gax.ModelBase.encode(value, options) end diff --git a/clients/content/lib/google_api/content/v21/model/topic_trends.ex b/clients/content/lib/google_api/content/v21/model/topic_trends.ex new file mode 100644 index 0000000000..fc0094eb0a --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/topic_trends.ex @@ -0,0 +1,70 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.TopicTrends do + @moduledoc """ + Topic trends fields requested by the merchant in the query. Field values are only set if the merchant queries `TopicTrendsView`. + + ## Attributes + + * `customerCountryCode` (*type:* `String.t`, *default:* `nil`) - Country trends are calculated for. Must be a two-letter country code (ISO 3166-1-alpha-2 code), for example, `“US”`. + * `date` (*type:* `GoogleApi.Content.V21.Model.Date.t`, *default:* `nil`) - Date the trend score was retrieved. + * `last120DaysSearchInterest` (*type:* `float()`, *default:* `nil`) - Search interest in the last 120 days, with the same normalization as search_interest. This field is only present for a past date. + * `last30DaysSearchInterest` (*type:* `float()`, *default:* `nil`) - Search interest in the last 30 days, with the same normalization as search_interest. This field is only present for a past date. + * `last7DaysSearchInterest` (*type:* `float()`, *default:* `nil`) - Search interest in the last 7 days, with the same normalization as search_interest. This field is only present for a past date. + * `last90DaysSearchInterest` (*type:* `float()`, *default:* `nil`) - Search interest in the last 90 days, with the same normalization as search_interest. This field is only present for a past date. + * `next7DaysSearchInterest` (*type:* `float()`, *default:* `nil`) - Estimated search interest in the next 7 days, with the same normalization as search_interest. This field is only present for a future date. + * `searchInterest` (*type:* `float()`, *default:* `nil`) - Daily search interest, normalized to the time and country to make comparisons easier, with 100 representing peak popularity (from 0 to 100) for the requested time period and location. + * `topic` (*type:* `String.t`, *default:* `nil`) - Google-provided topic trends are calculated for. Only top eight topics are returned. Topic is what shoppers are searching for on Google, grouped by the same concept. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :customerCountryCode => String.t() | nil, + :date => GoogleApi.Content.V21.Model.Date.t() | nil, + :last120DaysSearchInterest => float() | nil, + :last30DaysSearchInterest => float() | nil, + :last7DaysSearchInterest => float() | nil, + :last90DaysSearchInterest => float() | nil, + :next7DaysSearchInterest => float() | nil, + :searchInterest => float() | nil, + :topic => String.t() | nil + } + + field(:customerCountryCode) + field(:date, as: GoogleApi.Content.V21.Model.Date) + field(:last120DaysSearchInterest) + field(:last30DaysSearchInterest) + field(:last7DaysSearchInterest) + field(:last90DaysSearchInterest) + field(:next7DaysSearchInterest) + field(:searchInterest) + field(:topic) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.TopicTrends do + def decode(value, options) do + GoogleApi.Content.V21.Model.TopicTrends.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.TopicTrends do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/undelete_conversion_source_request.ex b/clients/content/lib/google_api/content/v21/model/undelete_conversion_source_request.ex new file mode 100644 index 0000000000..0233852cf5 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/undelete_conversion_source_request.ex @@ -0,0 +1,41 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.UndeleteConversionSourceRequest do + @moduledoc """ + Request message for the UndeleteConversionSource method. + + ## Attributes + + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{} +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.UndeleteConversionSourceRequest do + def decode(value, options) do + GoogleApi.Content.V21.Model.UndeleteConversionSourceRequest.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.UndeleteConversionSourceRequest do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end diff --git a/clients/content/lib/google_api/content/v21/model/url_settings.ex b/clients/content/lib/google_api/content/v21/model/url_settings.ex new file mode 100644 index 0000000000..4c7fb73de7 --- /dev/null +++ b/clients/content/lib/google_api/content/v21/model/url_settings.ex @@ -0,0 +1,49 @@ +# Copyright 2019 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# NOTE: This file is auto generated by the elixir code generator program. +# Do not edit this file manually. + +defmodule GoogleApi.Content.V21.Model.UrlSettings do + @moduledoc """ + Specifications related to the `Checkout` URL. The `UriTemplate` is of the form `https://www.mystore.com/checkout?item_id={id}` where `{id}` will be automatically replaced with data from the merchant account with this attribute [offer_id](https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.offer_id) + + ## Attributes + + * `cartUriTemplate` (*type:* `String.t`, *default:* `nil`) - 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. + * `checkoutUriTemplate` (*type:* `String.t`, *default:* `nil`) - URL template when the placeholders are expanded will redirect the buyer to the merchant checkout page with the item in the cart. + """ + + use GoogleApi.Gax.ModelBase + + @type t :: %__MODULE__{ + :cartUriTemplate => String.t() | nil, + :checkoutUriTemplate => String.t() | nil + } + + field(:cartUriTemplate) + field(:checkoutUriTemplate) +end + +defimpl Poison.Decoder, for: GoogleApi.Content.V21.Model.UrlSettings do + def decode(value, options) do + GoogleApi.Content.V21.Model.UrlSettings.decode(value, options) + end +end + +defimpl Poison.Encoder, for: GoogleApi.Content.V21.Model.UrlSettings do + def encode(value, options) do + GoogleApi.Gax.ModelBase.encode(value, options) + end +end