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 a7b6ea8

Browse files
committedMar 4, 2025
feat(merchantapi): update the api
#### merchantapi:accounts_v1beta The following keys were added: - schemas.SeasonalOverride.properties.policy.deprecated (Total Keys: 1) - schemas.SeasonalOverride.properties.returnDays (Total Keys: 2) - schemas.SeasonalOverride.properties.returnUntilDate.$ref (Total Keys: 1)
1 parent 27c2bcb commit a7b6ea8

File tree

2 files changed

+28
-7
lines changed

2 files changed

+28
-7
lines changed
 

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

+16-4
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ <h3>Method Details</h3>
142142
&quot;type&quot;: &quot;A String&quot;, # Required. Type of return shipping fee.
143143
},
144144
&quot;seasonalOverrides&quot;: [ # Optional. Overrides to the general policy for orders placed during a specific set of time intervals.
145-
{ # Next: 5
145+
{
146146
&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.
147147
&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.
148148
&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,10 +154,16 @@ <h3>Method Details</h3>
154154
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
155155
},
156156
&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.
157+
&quot;policy&quot;: { # The available policies. # The return policy for the given date range.
158158
&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.
159159
&quot;type&quot;: &quot;A String&quot;, # Policy type.
160160
},
161+
&quot;returnDays&quot;: 42, # Number of days (from the delivery date) that the product can be returned.
162+
&quot;returnUntilDate&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 # Fixed end date until which the product can be returned.
163+
&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.
164+
&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.
165+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
166+
},
161167
},
162168
],
163169
}</pre>
@@ -218,7 +224,7 @@ <h3>Method Details</h3>
218224
&quot;type&quot;: &quot;A String&quot;, # Required. Type of return shipping fee.
219225
},
220226
&quot;seasonalOverrides&quot;: [ # Optional. Overrides to the general policy for orders placed during a specific set of time intervals.
221-
{ # Next: 5
227+
{
222228
&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.
223229
&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.
224230
&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,10 +236,16 @@ <h3>Method Details</h3>
230236
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
231237
},
232238
&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.
239+
&quot;policy&quot;: { # The available policies. # The return policy for the given date range.
234240
&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.
235241
&quot;type&quot;: &quot;A String&quot;, # Policy type.
236242
},
243+
&quot;returnDays&quot;: 42, # Number of days (from the delivery date) that the product can be returned.
244+
&quot;returnUntilDate&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 # Fixed end date until which the product can be returned.
245+
&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.
246+
&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.
247+
&quot;year&quot;: 42, # Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.
248+
},
237249
},
238250
],
239251
},

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

+12-3
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@
14171417
}
14181418
}
14191419
},
1420-
"revision": "20250219",
1420+
"revision": "20250220",
14211421
"rootUrl": "https://merchantapi.googleapis.com/",
14221422
"schemas": {
14231423
"Accepted": {
@@ -3052,7 +3052,6 @@ false
30523052
"type": "object"
30533053
},
30543054
"SeasonalOverride": {
3055-
"description": "Next: 5",
30563055
"id": "SeasonalOverride",
30573056
"properties": {
30583057
"begin": {
@@ -3069,7 +3068,17 @@ false
30693068
},
30703069
"policy": {
30713070
"$ref": "Policy",
3072-
"description": "Required. The return policy for the given date range."
3071+
"deprecated": true,
3072+
"description": "The return policy for the given date range."
3073+
},
3074+
"returnDays": {
3075+
"description": "Number of days (from the delivery date) that the product can be returned.",
3076+
"format": "int32",
3077+
"type": "integer"
3078+
},
3079+
"returnUntilDate": {
3080+
"$ref": "Date",
3081+
"description": "Fixed end date until which the product can be returned."
30733082
}
30743083
},
30753084
"type": "object"

0 commit comments

Comments
 (0)
Please sign in to comment.