Skip to content

Commit c66e25f

Browse files
feat(merchantapi): update the api
#### merchantapi:accounts_v1beta The following keys were added: - schemas.OnlineReturnPolicy.properties.seasonalOverrides (Total Keys: 2) - schemas.SeasonalOverride (Total Keys: 6)
1 parent da21dd8 commit c66e25f

File tree

3 files changed

+71
-3
lines changed

3 files changed

+71
-3
lines changed

docs/dyn/merchantapi_accounts_v1beta.accounts.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ <h3>Method Details</h3>
198198
&quot;users&quot;: [ # Optional. Users to be added to the account.
199199
{ # Request message for the `CreateUser` method.
200200
&quot;parent&quot;: &quot;A String&quot;, # Required. The resource name of the account for which a user will be created. Format: `accounts/{account}`
201-
&quot;user&quot;: { # The `User` message represents a user associated with a Merchant Center account. It is used to manage user permissions and access rights within the account. For more information, see [Frequently asked questions about people and access levels](//support.google.com/merchants/answer/12160472). # Required. The user to create.
201+
&quot;user&quot;: { # The `User` message represents a user associated with a Merchant Center account. It is used to manage user permissions and access rights within the account. For more information, see [Frequently asked questions about people and access levels](//support.google.com/merchants/answer/12160472). # Optional. The user to create.
202202
&quot;accessRights&quot;: [ # Optional. The [access rights](https://support.google.com/merchants/answer/12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
203203
&quot;A String&quot;,
204204
],

docs/dyn/merchantapi_accounts_v1beta.accounts.onlineReturnPolicies.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,25 @@ <h3>Method Details</h3>
141141
},
142142
&quot;type&quot;: &quot;A String&quot;, # Required. Type of return shipping fee.
143143
},
144+
&quot;seasonalOverrides&quot;: [ # Optional. Overrides to the general policy for orders placed during a specific set of time intervals.
145+
{ # Next: 5
146+
&quot;begin&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. Defines the date range when this seasonal override applies. Both begin and end are inclusive and should be in date decimal format, example 20250115. The dates of the seasonal overrides should not overlap.
147+
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
148+
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
149+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
150+
},
151+
&quot;end&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. seasonal override end date (inclusive).
152+
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
153+
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
154+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
155+
},
156+
&quot;label&quot;: &quot;A String&quot;, # Required. Display name of this seasonal override in Merchant Center.
157+
&quot;policy&quot;: { # The available policies. # Required. The return policy for the given date range.
158+
&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.
159+
&quot;type&quot;: &quot;A String&quot;, # Policy type.
160+
},
161+
},
162+
],
144163
}</pre>
145164
</div>
146165

@@ -198,6 +217,25 @@ <h3>Method Details</h3>
198217
},
199218
&quot;type&quot;: &quot;A String&quot;, # Required. Type of return shipping fee.
200219
},
220+
&quot;seasonalOverrides&quot;: [ # Optional. Overrides to the general policy for orders placed during a specific set of time intervals.
221+
{ # Next: 5
222+
&quot;begin&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. Defines the date range when this seasonal override applies. Both begin and end are inclusive and should be in date decimal format, example 20250115. The dates of the seasonal overrides should not overlap.
223+
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
224+
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
225+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
226+
},
227+
&quot;end&quot;: { # Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: * A full date, with non-zero year, month, and day values. * A month and day, with a zero year (for example, an anniversary). * A year on its own, with a zero month and a zero day. * A year and month, with a zero day (for example, a credit card expiration date). Related types: * google.type.TimeOfDay * google.type.DateTime * google.protobuf.Timestamp # Required. seasonal override end date (inclusive).
228+
&quot;day&quot;: 42, # Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn&#x27;t significant.
229+
&quot;month&quot;: 42, # Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.
230+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
231+
},
232+
&quot;label&quot;: &quot;A String&quot;, # Required. Display name of this seasonal override in Merchant Center.
233+
&quot;policy&quot;: { # The available policies. # Required. The return policy for the given date range.
234+
&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.
235+
&quot;type&quot;: &quot;A String&quot;, # Policy type.
236+
},
237+
},
238+
],
201239
},
202240
],
203241
}</pre>

googleapiclient/discovery_cache/documents/merchantapi.accounts_v1beta.json

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@
14171417
}
14181418
}
14191419
},
1420-
"revision": "20241210",
1420+
"revision": "20250115",
14211421
"rootUrl": "https://merchantapi.googleapis.com/",
14221422
"schemas": {
14231423
"Accepted": {
@@ -1790,7 +1790,7 @@
17901790
},
17911791
"user": {
17921792
"$ref": "User",
1793-
"description": "Required. The user to create."
1793+
"description": "Optional. The user to create."
17941794
},
17951795
"userId": {
17961796
"description": "Required. The email address of the user (for example, `[email protected]`).",
@@ -2493,6 +2493,13 @@ false
24932493
"returnShippingFee": {
24942494
"$ref": "ReturnShippingFee",
24952495
"description": "The return shipping fee. Should be set only when customer need to download and print the return label."
2496+
},
2497+
"seasonalOverrides": {
2498+
"description": "Optional. Overrides to the general policy for orders placed during a specific set of time intervals.",
2499+
"items": {
2500+
"$ref": "SeasonalOverride"
2501+
},
2502+
"type": "array"
24962503
}
24972504
},
24982505
"type": "object"
@@ -3010,6 +3017,29 @@ false
30103017
},
30113018
"type": "object"
30123019
},
3020+
"SeasonalOverride": {
3021+
"description": "Next: 5",
3022+
"id": "SeasonalOverride",
3023+
"properties": {
3024+
"begin": {
3025+
"$ref": "Date",
3026+
"description": "Required. Defines the date range when this seasonal override applies. Both begin and end are inclusive and should be in date decimal format, example 20250115. The dates of the seasonal overrides should not overlap."
3027+
},
3028+
"end": {
3029+
"$ref": "Date",
3030+
"description": "Required. seasonal override end date (inclusive)."
3031+
},
3032+
"label": {
3033+
"description": "Required. Display name of this seasonal override in Merchant Center.",
3034+
"type": "string"
3035+
},
3036+
"policy": {
3037+
"$ref": "Policy",
3038+
"description": "Required. The return policy for the given date range."
3039+
}
3040+
},
3041+
"type": "object"
3042+
},
30133043
"Service": {
30143044
"description": "Shipping service.",
30153045
"id": "Service",

0 commit comments

Comments
 (0)