Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 54e2633

Browse files
committedMar 25, 2025
feat(merchantapi): update the api
#### merchantapi:products_v1beta The following keys were added: - resources.accounts.resources.productInputs.methods.patch (Total Keys: 17)
1 parent 7e80d5a commit 54e2633

5 files changed

+704
-36
lines changed
 

‎docs/dyn/merchantapi_accounts_v1beta.accounts.businessInfo.html

+21-21
Large diffs are not rendered by default.

‎docs/dyn/merchantapi_accounts_v1beta.accounts.onlineReturnPolicies.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ <h3>Method Details</h3>
117117
],
118118
&quot;label&quot;: &quot;A String&quot;, # Required. Immutable. This field represents the unique user-defined label of the return policy. It is important to note that the same label cannot be used in different return policies for the same country. Unless a product specifies a specific label attribute, policies will be automatically labeled as &#x27;default&#x27;. To assign a custom return policy to certain product groups, follow the instructions provided in the [Return policy label] (https://support.google.com/merchants/answer/9445425). The label can contain up to 50 characters.
119119
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the `OnlineReturnPolicy` resource. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}`
120-
&quot;policy&quot;: { # The available policies. # The return policy.
120+
&quot;policy&quot;: { # The available policies. # Optional. The return policy.
121121
&quot;days&quot;: &quot;A String&quot;, # The number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for `NUMBER_OF_DAYS_AFTER_DELIVERY` returns.
122122
&quot;type&quot;: &quot;A String&quot;, # Policy type.
123123
},
124124
&quot;processRefundDays&quot;: 42, # The field specifies the number of days it takes for merchants to process refunds, field is optional.
125-
&quot;restockingFee&quot;: { # The restocking fee. This can be a flat fee or a micro percent. # The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
125+
&quot;restockingFee&quot;: { # The restocking fee. This can be a flat fee or a micro percent. # Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
126126
&quot;fixedFee&quot;: { # The price represented as a number and currency. # Fixed restocking fee.
127127
&quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
128128
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).
@@ -195,12 +195,12 @@ <h3>Method Details</h3>
195195
],
196196
&quot;label&quot;: &quot;A String&quot;, # Required. Immutable. This field represents the unique user-defined label of the return policy. It is important to note that the same label cannot be used in different return policies for the same country. Unless a product specifies a specific label attribute, policies will be automatically labeled as &#x27;default&#x27;. To assign a custom return policy to certain product groups, follow the instructions provided in the [Return policy label] (https://support.google.com/merchants/answer/9445425). The label can contain up to 50 characters.
197197
&quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the `OnlineReturnPolicy` resource. Format: `accounts/{account}/onlineReturnPolicies/{return_policy}`
198-
&quot;policy&quot;: { # The available policies. # The return policy.
198+
&quot;policy&quot;: { # The available policies. # Optional. The return policy.
199199
&quot;days&quot;: &quot;A String&quot;, # The number of days items can be returned after delivery, where one day is defined as 24 hours after the delivery timestamp. Required for `NUMBER_OF_DAYS_AFTER_DELIVERY` returns.
200200
&quot;type&quot;: &quot;A String&quot;, # Policy type.
201201
},
202202
&quot;processRefundDays&quot;: 42, # The field specifies the number of days it takes for merchants to process refunds, field is optional.
203-
&quot;restockingFee&quot;: { # The restocking fee. This can be a flat fee or a micro percent. # The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
203+
&quot;restockingFee&quot;: { # The restocking fee. This can be a flat fee or a micro percent. # Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set.
204204
&quot;fixedFee&quot;: { # The price represented as a number and currency. # Fixed restocking fee.
205205
&quot;amountMicros&quot;: &quot;A String&quot;, # The price represented as a number in micros (1 million micros is an equivalent to one&#x27;s currency standard unit, for example, 1 USD = 1000000 micros).
206206
&quot;currencyCode&quot;: &quot;A String&quot;, # The currency of the price using three-letter acronyms according to [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217).

‎docs/dyn/merchantapi_products_v1beta.accounts.productInputs.html

+629
Large diffs are not rendered by default.

‎googleapiclient/discovery_cache/documents/merchantapi.accounts_v1beta.json

+10-10
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@
14761476
}
14771477
}
14781478
},
1479-
"revision": "20250311",
1479+
"revision": "20250319",
14801480
"rootUrl": "https://merchantapi.googleapis.com/",
14811481
"schemas": {
14821482
"Accepted": {
@@ -2651,7 +2651,7 @@ false
26512651
},
26522652
"policy": {
26532653
"$ref": "Policy",
2654-
"description": "The return policy."
2654+
"description": "Optional. The return policy."
26552655
},
26562656
"processRefundDays": {
26572657
"description": "The field specifies the number of days it takes for merchants to process refunds, field is optional.",
@@ -2660,7 +2660,7 @@ false
26602660
},
26612661
"restockingFee": {
26622662
"$ref": "RestockingFee",
2663-
"description": "The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set."
2663+
"description": "Optional. The restocking fee that applies to all return reason categories. This would be treated as a free restocking fee if the value is not set."
26642664
},
26652665
"returnMethods": {
26662666
"description": "Optional. The return methods of how customers can return an item. This value is required to not be empty unless the type of return policy is noReturns.",
@@ -2752,34 +2752,34 @@ false
27522752
"type": "object"
27532753
},
27542754
"PostalAddress": {
2755-
"description": "Represents a postal address. For example for postal delivery or payments addresses. Given a postal address, a postal service can deliver items to a premise, P.O. Box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input / editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput) - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478",
2755+
"description": "Represents a postal address (for example, for postal delivery or payments addresses). Given a postal address, a postal service can deliver items to a premise, P.O. box or similar. It is not intended to model geographical locations (roads, towns, mountains). In typical usage, an address would be created by user input or from importing existing data, depending on the type of process. Advice on address input or editing: - Use an internationalization-ready address widget such as https://github.com/google/libaddressinput. - Users should not be presented with UI elements for input or editing of fields outside countries where that field is used. For more guidance on how to use this schema, see: https://support.google.com/business/answer/6397478.",
27562756
"id": "PostalAddress",
27572757
"properties": {
27582758
"addressLines": {
2759-
"description": "Unstructured address lines describing the lower levels of an address. Because values in address_lines do not have type information and may sometimes contain multiple values in a single field (For example \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country/region of the address. In places where this can vary (For example Japan), address_language is used to make it explicit (For example \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). This way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a region_code with all remaining information placed in the address_lines. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a region_code and address_lines, and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).",
2759+
"description": "Unstructured address lines describing the lower levels of an address. Because values in `address_lines` do not have type information and may sometimes contain multiple values in a single field (for example, \"Austin, TX\"), it is important that the line order is clear. The order of address lines should be \"envelope order\" for the country or region of the address. In places where this can vary (for example, Japan), `address_language` is used to make it explicit (for example, \"ja\" for large-to-small ordering and \"ja-Latn\" or \"en\" for small-to-large). In this way, the most specific line of an address can be selected based on the language. The minimum permitted structural representation of an address consists of a `region_code` with all remaining information placed in the `address_lines`. It would be possible to format such an address very approximately without geocoding, but no semantic reasoning could be made about any of the address components until it was at least partially resolved. Creating an address only containing a `region_code` and `address_lines` and then geocoding is the recommended way to handle completely unstructured addresses (as opposed to guessing which parts of the address should be localities or administrative areas).",
27602760
"items": {
27612761
"type": "string"
27622762
},
27632763
"type": "array"
27642764
},
27652765
"administrativeArea": {
2766-
"description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. Specifically, for Spain this is the province and not the autonomous community (For example \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. For example in Switzerland this should be left unpopulated.",
2766+
"description": "Optional. Highest administrative subdivision which is used for postal addresses of a country or region. For example, this can be a state, a province, an oblast, or a prefecture. For Spain, this is the province and not the autonomous community (for example, \"Barcelona\" and not \"Catalonia\"). Many countries don't use an administrative area in postal addresses. For example, in Switzerland, this should be left unpopulated.",
27672767
"type": "string"
27682768
},
27692769
"languageCode": {
27702770
"description": "Optional. BCP-47 language code of the contents of this address (if known). This is often the UI language of the input form or is expected to match one of the languages used in the address' country/region, or their transliterated equivalents. This can affect formatting in certain countries, but is not critical to the correctness of the data and will never affect any validation or other non-formatting related operations. If this value is not known, it should be omitted (rather than specifying a possibly incorrect default). Examples: \"zh-Hant\", \"ja\", \"ja-Latn\", \"en\".",
27712771
"type": "string"
27722772
},
27732773
"locality": {
2774-
"description": "Optional. Generally refers to the city/town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave locality empty and use address_lines.",
2774+
"description": "Optional. Generally refers to the city or town portion of the address. Examples: US city, IT comune, UK post town. In regions of the world where localities are not well defined or do not fit into this structure well, leave `locality` empty and use `address_lines`.",
27752775
"type": "string"
27762776
},
27772777
"organization": {
27782778
"description": "Optional. The name of the organization at the address.",
27792779
"type": "string"
27802780
},
27812781
"postalCode": {
2782-
"description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (For example state/zip validation in the U.S.A.).",
2782+
"description": "Optional. Postal code of the address. Not all countries use or require postal codes to be present, but where they are used, they may trigger additional validation with other parts of the address (for example, state or zip code validation in the United States).",
27832783
"type": "string"
27842784
},
27852785
"recipients": {
@@ -2799,11 +2799,11 @@ false
27992799
"type": "integer"
28002800
},
28012801
"sortingCode": {
2802-
"description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (For example \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (For example C\u00f4te d'Ivoire).",
2802+
"description": "Optional. Additional, country-specific, sorting code. This is not used in most regions. Where it is used, the value is either a string like \"CEDEX\", optionally followed by a number (for example, \"CEDEX 7\"), or just a number alone, representing the \"sector code\" (Jamaica), \"delivery area indicator\" (Malawi) or \"post office indicator\" (C\u00f4te d'Ivoire).",
28032803
"type": "string"
28042804
},
28052805
"sublocality": {
2806-
"description": "Optional. Sublocality of the address. For example, this can be neighborhoods, boroughs, districts.",
2806+
"description": "Optional. Sublocality of the address. For example, this can be a neighborhood, borough, or district.",
28072807
"type": "string"
28082808
}
28092809
},

‎googleapiclient/discovery_cache/documents/merchantapi.products_v1beta.json

+40-1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,45 @@
171171
"scopes": [
172172
"https://www.googleapis.com/auth/content"
173173
]
174+
},
175+
"patch": {
176+
"description": "Updates the existing product input in your Merchant Center account. After inserting, updating, or deleting a product input, it may take several minutes before the processed product can be retrieved.",
177+
"flatPath": "products/v1beta/accounts/{accountsId}/productInputs/{productInputsId}",
178+
"httpMethod": "PATCH",
179+
"id": "merchantapi.accounts.productInputs.patch",
180+
"parameterOrder": [
181+
"name"
182+
],
183+
"parameters": {
184+
"dataSource": {
185+
"description": "Required. The primary or supplemental product data source where `data_source` name identifies the product input to be updated. Only API data sources are supported. Format: `accounts/{account}/dataSources/{datasource}`.",
186+
"location": "query",
187+
"type": "string"
188+
},
189+
"name": {
190+
"description": "Identifier. The name of the product input. Format: `\"{productinput.name=accounts/{account}/productInputs/{productinput}}\"` where the last section `productinput` consists of 4 parts: channel~content_language~feed_label~offer_id example for product input name is \"accounts/123/productInputs/online~en~US~sku123\"",
191+
"location": "path",
192+
"pattern": "^accounts/[^/]+/productInputs/[^/]+$",
193+
"required": true,
194+
"type": "string"
195+
},
196+
"updateMask": {
197+
"description": "Optional. The list of product attributes to be updated. If the update mask is omitted, then it is treated as implied field mask equivalent to all fields that are populated (have a non-empty value). Attributes specified in the update mask without a value specified in the body will be deleted from the product. Update mask can only be specified for top level fields in attributes and custom attributes. To specify the update mask for custom attributes you need to add the `custom_attribute.` prefix. Providing special \"*\" value for full product replacement is not supported.",
198+
"format": "google-fieldmask",
199+
"location": "query",
200+
"type": "string"
201+
}
202+
},
203+
"path": "products/v1beta/{+name}",
204+
"request": {
205+
"$ref": "ProductInput"
206+
},
207+
"response": {
208+
"$ref": "ProductInput"
209+
},
210+
"scopes": [
211+
"https://www.googleapis.com/auth/content"
212+
]
174213
}
175214
}
176215
},
@@ -242,7 +281,7 @@
242281
}
243282
}
244283
},
245-
"revision": "20250311",
284+
"revision": "20250317",
246285
"rootUrl": "https://merchantapi.googleapis.com/",
247286
"schemas": {
248287
"Attributes": {

0 commit comments

Comments
 (0)
Please sign in to comment.