Skip to content

Commit

Permalink
feat(content): update the api
Browse files Browse the repository at this point in the history
#### content:v2.1

The following keys were added:
- resources.customers.methods.create (Total Keys: 12)
- schemas.CloudExportAdditionalProperties (Total Keys: 17)
- schemas.Customer (Total Keys: 7)
- schemas.Distance (Total Keys: 5)
- schemas.Product.properties.cloudExportAdditionalProperties (Total Keys: 2)
- schemas.Product.properties.disclosureDate.type (Total Keys: 1)
- schemas.ProductViewItemIssueItemIssueType.properties.code.type (Total Keys: 1)
- schemas.Service.properties.storeConfig.$ref (Total Keys: 1)
- schemas.ServiceStoreConfig (Total Keys: 18)
  • Loading branch information
yoshi-automation committed May 24, 2023
1 parent 985124a commit 137047f
Show file tree
Hide file tree
Showing 9 changed files with 609 additions and 24 deletions.
121 changes: 121 additions & 0 deletions docs/dyn/content_v2_1.customers.html
@@ -0,0 +1,121 @@
<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}

body {
font-size: 13px;
padding: 1em;
}

h1 {
font-size: 26px;
margin-bottom: 1em;
}

h2 {
font-size: 24px;
margin-bottom: 1em;
}

h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}

pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
margin-top: 0.5em;
}

h1, h2, h3, p {
font-family: Arial, sans serif;
}

h1, h2, h3 {
border-bottom: solid #CCC 1px;
}

.toc_element {
margin-top: 0.5em;
}

.firstline {
margin-left: 2 em;
}

.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}

.details {
font-weight: bold;
font-size: 14px;
}

</style>

<h1><a href="content_v2_1.html">Content API for Shopping</a> . <a href="content_v2_1.customers.html">customers</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#create">create(merchantId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Allows uploading one customer information entry. Adding a customer with loyalty data enables the customer to see personalized loyalty annotations on search. Uploading a previously existing customer will overwrite the old entry.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>

<div class="method">
<code class="details" id="create">create(merchantId, body=None, x__xgafv=None)</code>
<pre>Allows uploading one customer information entry. Adding a customer with loyalty data enables the customer to see personalized loyalty annotations on search. Uploading a previously existing customer will overwrite the old entry.

Args:
merchantId: string, Required. The ID of the account that owns the customer information. (required)
body: object, The request body.
The object takes the form of:

{ # The object representing a customer to update data for. Includes a customer identifier (such as email address) and any associated metadata to add. LoyaltyData triggers adding customer data for the purpose of loyalty personalization.
&quot;emailAddress&quot;: &quot;A String&quot;, # The customer&#x27;s email address. No extra string processing needed.
&quot;loyaltyData&quot;: { # The loyalty data of the customer. # Loyalty data associated with the customer.
&quot;loyaltyTier&quot;: &quot;A String&quot;, # The tier information for the given user. Can be an empty string.
},
}

x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format

Returns:
An object of the form:

{ # The object representing a customer to update data for. Includes a customer identifier (such as email address) and any associated metadata to add. LoyaltyData triggers adding customer data for the purpose of loyalty personalization.
&quot;emailAddress&quot;: &quot;A String&quot;, # The customer&#x27;s email address. No extra string processing needed.
&quot;loyaltyData&quot;: { # The loyalty data of the customer. # Loyalty data associated with the customer.
&quot;loyaltyTier&quot;: &quot;A String&quot;, # The tier information for the given user. Can be an empty string.
},
}</pre>
</div>

</body></html>
5 changes: 5 additions & 0 deletions docs/dyn/content_v2_1.html
Expand Up @@ -114,6 +114,11 @@ <h2>Instance Methods</h2>
</p>
<p class="firstline">Returns the csses Resource.</p>

<p class="toc_element">
<code><a href="content_v2_1.customers.html">customers()</a></code>
</p>
<p class="firstline">Returns the customers Resource.</p>

<p class="toc_element">
<code><a href="content_v2_1.datafeeds.html">datafeeds()</a></code>
</p>
Expand Down
152 changes: 152 additions & 0 deletions docs/dyn/content_v2_1.products.html

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/dyn/content_v2_1.productstatuses.html
Expand Up @@ -161,7 +161,7 @@ <h3>Method Details</h3>
&quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
&quot;A String&quot;,
],
&quot;status&quot;: &quot;A String&quot;, # Destination approval status in `targetCountry` of the offer.
&quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
},
],
&quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
Expand Down Expand Up @@ -222,7 +222,7 @@ <h3>Method Details</h3>
&quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
&quot;A String&quot;,
],
&quot;status&quot;: &quot;A String&quot;, # Destination approval status in `targetCountry` of the offer.
&quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
},
],
&quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
Expand Down Expand Up @@ -284,7 +284,7 @@ <h3>Method Details</h3>
&quot;pendingCountries&quot;: [ # List of country codes (ISO 3166-1 alpha-2) where the offer is pending approval.
&quot;A String&quot;,
],
&quot;status&quot;: &quot;A String&quot;, # Destination approval status in `targetCountry` of the offer.
&quot;status&quot;: &quot;A String&quot;, # Deprecated. Destination approval status in `targetCountry` of the offer.
},
],
&quot;googleExpirationDate&quot;: &quot;A String&quot;, # Date on which the item expires in Google Shopping, in ISO 8601 format.
Expand Down
2 changes: 1 addition & 1 deletion docs/dyn/content_v2_1.quotas.html
Expand Up @@ -107,7 +107,7 @@ <h3>Method Details</h3>

{ # Response message for the ListMethodQuotas method.
&quot;methodQuotas&quot;: [ # The current quota usage and limits per each method.
{ # The quota information per method in the Content API. Includes only methods with current usage greater than zero for your account.
{ # The quota information per method in the Content API.
&quot;method&quot;: &quot;A String&quot;, # 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.
&quot;quotaLimit&quot;: &quot;A String&quot;, # The current quota limit per day, meaning the maximum number of calls for the method.
&quot;quotaUsage&quot;: &quot;A String&quot;, # The current quota usage, meaning the number of calls already made to the method.
Expand Down
2 changes: 1 addition & 1 deletion docs/dyn/content_v2_1.recommendations.html
Expand Up @@ -95,7 +95,7 @@ <h3>Method Details</h3>

Args:
merchantId: string, Required. The ID of the account to fetch recommendations for. (required)
allowedTag: string, Optional. List of allowed tags. Tags are a set of predefined strings that describe the category that individual recommendation types. User can specify zero or more tags in this field to indicate what group of recommendations they want to receive. Current list of supported tags: - TREND (repeated)
allowedTag: string, 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 (repeated)
languageCode: string, 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 &quot;localized&quot;. 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
x__xgafv: string, V1 error format.
Allowed values
Expand Down
1 change: 1 addition & 0 deletions docs/dyn/content_v2_1.reports.html
Expand Up @@ -215,6 +215,7 @@ <h3>Method Details</h3>
{ # Item issue associated with the product.
&quot;issueType&quot;: { # Type of the item issue. # Item issue type.
&quot;canonicalAttribute&quot;: &quot;A String&quot;, # Canonical attribute name for attribute-specific issues.
&quot;code&quot;: &quot;A String&quot;, # Error code of the issue.
},
&quot;resolution&quot;: &quot;A String&quot;, # Item issue resolution.
&quot;severity&quot;: { # Severity of an issue per destination in a region, and aggregated severity. # Item issue severity.
Expand Down

0 comments on commit 137047f

Please sign in to comment.