google-shopping-merchant-accounts-v1beta 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/client.rb +757 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/credentials.rb +49 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/paths.rb +69 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/rest/client.rb +703 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/rest/service_stub.rb +329 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/rest.rb +55 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service.rb +58 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkoutsettings_pb.rb +60 -0
- data/lib/google/shopping/merchant/accounts/v1beta/checkoutsettings_services_pb.rb +56 -0
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_pb.rb +2 -2
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/client.rb +20 -4
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/client.rb +20 -4
- data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_services_pb.rb +1 -1
- data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +1 -0
- data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
- data/lib/google/shopping/merchant/accounts/v1beta.rb +1 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/checkoutsettings.rb +185 -0
- data/proto_docs/google/shopping/merchant/accounts/v1beta/online_return_policy.rb +57 -39
- metadata +12 -2
@@ -405,10 +405,10 @@ module Google
|
|
405
405
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
406
406
|
#
|
407
407
|
# @param parent [::String]
|
408
|
-
# Required. The merchant account for which
|
408
|
+
# Required. The merchant account for which the return policy will be created.
|
409
409
|
# Format: `accounts/{account}`
|
410
410
|
# @param online_return_policy [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy, ::Hash]
|
411
|
-
# Required. The return policy to create.
|
411
|
+
# Required. The return policy object to create.
|
412
412
|
#
|
413
413
|
# @yield [response, operation] Access the result along with the RPC operation
|
414
414
|
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
|
@@ -493,8 +493,24 @@ module Google
|
|
493
493
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
494
494
|
#
|
495
495
|
# @param online_return_policy [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy, ::Hash]
|
496
|
-
# Required. The return policy to update.
|
496
|
+
# Required. The online return policy to update.
|
497
|
+
# The online return policy's `name` field is used to identify the
|
498
|
+
# online return policy to be updated.
|
497
499
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
500
|
+
# Optional. List of fields being updated.
|
501
|
+
#
|
502
|
+
# The following fields are supported (in both `snake_case` and
|
503
|
+
# `lowerCamelCase`):
|
504
|
+
#
|
505
|
+
# - `accept_defective_only`
|
506
|
+
# - `accept_exchange`
|
507
|
+
# - `item_conditions`
|
508
|
+
# - `policy`
|
509
|
+
# - `process_refund_days`
|
510
|
+
# - `restocking_fee`
|
511
|
+
# - `return_methods`
|
512
|
+
# - `return_policy_uri`
|
513
|
+
# - `return_shipping_fee`
|
498
514
|
#
|
499
515
|
# @yield [response, operation] Access the result along with the RPC operation
|
500
516
|
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
|
@@ -561,7 +577,7 @@ module Google
|
|
561
577
|
end
|
562
578
|
|
563
579
|
##
|
564
|
-
# Deletes an existing return policy
|
580
|
+
# Deletes an existing return policy.
|
565
581
|
#
|
566
582
|
# @overload delete_online_return_policy(request, options = nil)
|
567
583
|
# Pass arguments to `delete_online_return_policy` via a request object, either of type
|
data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/client.rb
CHANGED
@@ -384,10 +384,10 @@ module Google
|
|
384
384
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
385
385
|
#
|
386
386
|
# @param parent [::String]
|
387
|
-
# Required. The merchant account for which
|
387
|
+
# Required. The merchant account for which the return policy will be created.
|
388
388
|
# Format: `accounts/{account}`
|
389
389
|
# @param online_return_policy [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy, ::Hash]
|
390
|
-
# Required. The return policy to create.
|
390
|
+
# Required. The return policy object to create.
|
391
391
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
392
392
|
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
|
393
393
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -465,8 +465,24 @@ module Google
|
|
465
465
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
466
466
|
#
|
467
467
|
# @param online_return_policy [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy, ::Hash]
|
468
|
-
# Required. The return policy to update.
|
468
|
+
# Required. The online return policy to update.
|
469
|
+
# The online return policy's `name` field is used to identify the
|
470
|
+
# online return policy to be updated.
|
469
471
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
472
|
+
# Optional. List of fields being updated.
|
473
|
+
#
|
474
|
+
# The following fields are supported (in both `snake_case` and
|
475
|
+
# `lowerCamelCase`):
|
476
|
+
#
|
477
|
+
# - `accept_defective_only`
|
478
|
+
# - `accept_exchange`
|
479
|
+
# - `item_conditions`
|
480
|
+
# - `policy`
|
481
|
+
# - `process_refund_days`
|
482
|
+
# - `restocking_fee`
|
483
|
+
# - `return_methods`
|
484
|
+
# - `return_policy_uri`
|
485
|
+
# - `return_shipping_fee`
|
470
486
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
471
487
|
# @yieldparam result [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
|
472
488
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -526,7 +542,7 @@ module Google
|
|
526
542
|
end
|
527
543
|
|
528
544
|
##
|
529
|
-
# Deletes an existing return policy
|
545
|
+
# Deletes an existing return policy.
|
530
546
|
#
|
531
547
|
# @overload delete_online_return_policy(request, options = nil)
|
532
548
|
# Pass arguments to `delete_online_return_policy` via a request object, either of type
|
@@ -46,7 +46,7 @@ module Google
|
|
46
46
|
rpc :CreateOnlineReturnPolicy, ::Google::Shopping::Merchant::Accounts::V1beta::CreateOnlineReturnPolicyRequest, ::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy
|
47
47
|
# Updates an existing return policy for a given merchant.
|
48
48
|
rpc :UpdateOnlineReturnPolicy, ::Google::Shopping::Merchant::Accounts::V1beta::UpdateOnlineReturnPolicyRequest, ::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy
|
49
|
-
# Deletes an existing return policy
|
49
|
+
# Deletes an existing return policy.
|
50
50
|
rpc :DeleteOnlineReturnPolicy, ::Google::Shopping::Merchant::Accounts::V1beta::DeleteOnlineReturnPolicyRequest, ::Google::Protobuf::Empty
|
51
51
|
end
|
52
52
|
|
@@ -24,6 +24,7 @@ require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service/rest
|
|
24
24
|
require "google/shopping/merchant/accounts/v1beta/automatic_improvements_service/rest"
|
25
25
|
require "google/shopping/merchant/accounts/v1beta/business_identity_service/rest"
|
26
26
|
require "google/shopping/merchant/accounts/v1beta/business_info_service/rest"
|
27
|
+
require "google/shopping/merchant/accounts/v1beta/checkout_settings_service/rest"
|
27
28
|
require "google/shopping/merchant/accounts/v1beta/email_preferences_service/rest"
|
28
29
|
require "google/shopping/merchant/accounts/v1beta/gbp_accounts_service/rest"
|
29
30
|
require "google/shopping/merchant/accounts/v1beta/homepage_service/rest"
|
@@ -24,6 +24,7 @@ require "google/shopping/merchant/accounts/v1beta/autofeed_settings_service"
|
|
24
24
|
require "google/shopping/merchant/accounts/v1beta/automatic_improvements_service"
|
25
25
|
require "google/shopping/merchant/accounts/v1beta/business_identity_service"
|
26
26
|
require "google/shopping/merchant/accounts/v1beta/business_info_service"
|
27
|
+
require "google/shopping/merchant/accounts/v1beta/checkout_settings_service"
|
27
28
|
require "google/shopping/merchant/accounts/v1beta/email_preferences_service"
|
28
29
|
require "google/shopping/merchant/accounts/v1beta/gbp_accounts_service"
|
29
30
|
require "google/shopping/merchant/accounts/v1beta/homepage_service"
|
@@ -0,0 +1,185 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Shopping
|
22
|
+
module Merchant
|
23
|
+
module Accounts
|
24
|
+
module V1beta
|
25
|
+
# Request message for `GetCheckoutSettings` method.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# Required. The name/identifier of the merchant account.
|
29
|
+
# Format: `accounts/{account}/programs/{program}/checkoutSettings`
|
30
|
+
class GetCheckoutSettingsRequest
|
31
|
+
include ::Google::Protobuf::MessageExts
|
32
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
33
|
+
end
|
34
|
+
|
35
|
+
# Request message for the `CreateCheckoutSettings` method.
|
36
|
+
# @!attribute [rw] parent
|
37
|
+
# @return [::String]
|
38
|
+
# Required. The merchant account for which the `CheckoutSettings` will be
|
39
|
+
# created.
|
40
|
+
# @!attribute [rw] checkout_settings
|
41
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettings]
|
42
|
+
# Required. The `CheckoutSettings` object to create.
|
43
|
+
class CreateCheckoutSettingsRequest
|
44
|
+
include ::Google::Protobuf::MessageExts
|
45
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
46
|
+
end
|
47
|
+
|
48
|
+
# Request message for the `UpdateCheckoutSettings` method.
|
49
|
+
# @!attribute [rw] checkout_settings
|
50
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettings]
|
51
|
+
# Required. The updated version of the `CheckoutSettings`.
|
52
|
+
# The `name` field is used to identify the `CheckoutSettings`.
|
53
|
+
# Format: `accounts/{account}/programs/{program}/checkoutSettings`
|
54
|
+
# @!attribute [rw] update_mask
|
55
|
+
# @return [::Google::Protobuf::FieldMask]
|
56
|
+
# Required. List of fields being updated.
|
57
|
+
# The following fields are supported (in both `snake_case` and
|
58
|
+
# `lowerCamelCase`):
|
59
|
+
#
|
60
|
+
# - `eligible_destinations`
|
61
|
+
# - `uri_settings`
|
62
|
+
class UpdateCheckoutSettingsRequest
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
|
67
|
+
# Request message for the `DeleteCheckoutSettings` method.
|
68
|
+
# @!attribute [rw] name
|
69
|
+
# @return [::String]
|
70
|
+
# Required. The name/identifier of the merchant account.
|
71
|
+
# Format: `accounts/{account}/programs/{program}/checkoutSettings`
|
72
|
+
class DeleteCheckoutSettingsRequest
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
|
77
|
+
# [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for
|
78
|
+
# a specific merchant.
|
79
|
+
# @!attribute [rw] name
|
80
|
+
# @return [::String]
|
81
|
+
# Identifier. The resource name of the program configuration settings.
|
82
|
+
# Format: `accounts/{account}/programs/{program}/checkoutSettings`
|
83
|
+
# @!attribute [rw] uri_settings
|
84
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::UriSettings]
|
85
|
+
# URI settings for cart or checkout URL.
|
86
|
+
# @!attribute [rw] eligible_destinations
|
87
|
+
# @return [::Array<::Google::Shopping::Type::Destination::DestinationEnum>]
|
88
|
+
# Optional. The destinations to which the checkout program applies, valid
|
89
|
+
# destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
|
90
|
+
# @!attribute [r] enrollment_state
|
91
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettings::CheckoutEnrollmentState]
|
92
|
+
# Output only. Reflects the merchant enrollment state in `Checkout` program.
|
93
|
+
# @!attribute [r] review_state
|
94
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettings::CheckoutReviewState]
|
95
|
+
# Output only. Reflects the merchant review state in `Checkout` program.
|
96
|
+
# This is set based on the data quality reviews of the URL provided by
|
97
|
+
# the merchant.
|
98
|
+
# A merchant with enrollment state
|
99
|
+
# as `ENROLLED` can be in the following review states: `IN_REVIEW`,
|
100
|
+
# `APPROVED` or `DISAPPROVED`. A merchant must be in an `enrollment_state` of
|
101
|
+
# `ENROLLED` before a review can begin for the merchant.For more details,
|
102
|
+
# check the help center doc.
|
103
|
+
# @!attribute [r] effective_uri_settings
|
104
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::UriSettings]
|
105
|
+
# Output only. The effective value of `uri_settings` for a given merchant. If
|
106
|
+
# account level settings are present then this value will be a copy of url
|
107
|
+
# settings. Otherwise, it will have the value of the parent account (for only
|
108
|
+
# marketplace sellers).
|
109
|
+
# @!attribute [r] effective_enrollment_state
|
110
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettings::CheckoutEnrollmentState]
|
111
|
+
# Output only. The effective value of enrollment_state for a given merchant
|
112
|
+
# ID. If account level settings are present then this value will be a copy of
|
113
|
+
# the account level settings. Otherwise, it will have the value of the parent
|
114
|
+
# account (for only marketplace sellers).
|
115
|
+
# @!attribute [r] effective_review_state
|
116
|
+
# @return [::Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettings::CheckoutReviewState]
|
117
|
+
# Output only. The effective value of `review_state` for a given merchant ID.
|
118
|
+
# If account level settings are present then this value will be a copy of the
|
119
|
+
# account level settings. Otherwise, it will have the value of the parent
|
120
|
+
# account (for only marketplace sellers).
|
121
|
+
class CheckoutSettings
|
122
|
+
include ::Google::Protobuf::MessageExts
|
123
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
124
|
+
|
125
|
+
# Enum indicating the enrollment state of merchant in `Checkout`
|
126
|
+
# program.
|
127
|
+
module CheckoutEnrollmentState
|
128
|
+
# Default enrollment state when enrollment state is not specified.
|
129
|
+
CHECKOUT_ENROLLMENT_STATE_UNSPECIFIED = 0
|
130
|
+
|
131
|
+
# Merchant has not enrolled into the program.
|
132
|
+
INACTIVE = 1
|
133
|
+
|
134
|
+
# Merchant has enrolled into the program by providing either an
|
135
|
+
# account level URL or checkout URLs as part of their feed.
|
136
|
+
ENROLLED = 2
|
137
|
+
|
138
|
+
# Merchant has previously enrolled but opted out of the program.
|
139
|
+
OPTED_OUT = 3
|
140
|
+
end
|
141
|
+
|
142
|
+
# Enum indicating the review state of merchant in `Checkout`
|
143
|
+
# program.
|
144
|
+
module CheckoutReviewState
|
145
|
+
# Default review state when review state is not specified.
|
146
|
+
CHECKOUT_REVIEW_STATE_UNSPECIFIED = 0
|
147
|
+
|
148
|
+
# Merchant provided URLs are being reviewed for data quality issues.
|
149
|
+
IN_REVIEW = 1
|
150
|
+
|
151
|
+
# Merchant account has been approved. Indicates the data quality checks
|
152
|
+
# have passed.
|
153
|
+
APPROVED = 2
|
154
|
+
|
155
|
+
# Merchant account has been disapproved due to data quality issues.
|
156
|
+
DISAPPROVED = 3
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
# URL settings for cart or checkout URL.
|
161
|
+
# @!attribute [rw] checkout_uri_template
|
162
|
+
# @return [::String]
|
163
|
+
# Checkout URL template. When the placeholders are expanded will redirect
|
164
|
+
# the buyer to the merchant checkout page with the item in the cart. For
|
165
|
+
# more details, check the [help center
|
166
|
+
# doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
|
167
|
+
#
|
168
|
+
# Note: The following fields are mutually exclusive: `checkout_uri_template`, `cart_uri_template`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
169
|
+
# @!attribute [rw] cart_uri_template
|
170
|
+
# @return [::String]
|
171
|
+
# Cart URL template. When the placeholders are expanded will redirect the
|
172
|
+
# buyer to the cart page on the merchant website with the selected
|
173
|
+
# item in cart. For more details, check the [help center
|
174
|
+
# doc](https://support.google.com/merchants/answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-url-formatting)
|
175
|
+
#
|
176
|
+
# Note: The following fields are mutually exclusive: `cart_uri_template`, `checkout_uri_template`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
177
|
+
class UriSettings
|
178
|
+
include ::Google::Protobuf::MessageExts
|
179
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
end
|
@@ -32,52 +32,43 @@ module Google
|
|
32
32
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
33
33
|
end
|
34
34
|
|
35
|
-
# Request message for the `ListOnlineReturnPolicies` method.
|
36
|
-
# @!attribute [rw] parent
|
37
|
-
# @return [::String]
|
38
|
-
# Required. The merchant account for which to list return policies.
|
39
|
-
# Format: `accounts/{account}`
|
40
|
-
# @!attribute [rw] page_size
|
41
|
-
# @return [::Integer]
|
42
|
-
# Optional. The maximum number of `OnlineReturnPolicy` resources to return.
|
43
|
-
# The service returns fewer than this value if the number of return policies
|
44
|
-
# for the given merchant is less that than the `pageSize`. The default value
|
45
|
-
# is 10. The maximum value is 100; If a value higher than the maximum is
|
46
|
-
# specified, then the `pageSize` will default to the maximum
|
47
|
-
# @!attribute [rw] page_token
|
48
|
-
# @return [::String]
|
49
|
-
# Optional. A page token, received from a previous `ListOnlineReturnPolicies`
|
50
|
-
# call. Provide the page token to retrieve the subsequent page.
|
51
|
-
#
|
52
|
-
# When paginating, all other parameters provided to
|
53
|
-
# `ListOnlineReturnPolicies` must match the call that provided the page
|
54
|
-
# token. The token returned as
|
55
|
-
# {::Google::Shopping::Merchant::Accounts::V1beta::ListOnlineReturnPoliciesResponse#next_page_token nextPageToken}
|
56
|
-
# in the response to the previous request.
|
57
|
-
class ListOnlineReturnPoliciesRequest
|
58
|
-
include ::Google::Protobuf::MessageExts
|
59
|
-
extend ::Google::Protobuf::MessageExts::ClassMethods
|
60
|
-
end
|
61
|
-
|
62
35
|
# Request message for the `CreateOnlineReturnPolicy` method.
|
63
36
|
# @!attribute [rw] parent
|
64
37
|
# @return [::String]
|
65
|
-
# Required. The merchant account for which
|
38
|
+
# Required. The merchant account for which the return policy will be created.
|
66
39
|
# Format: `accounts/{account}`
|
67
40
|
# @!attribute [rw] online_return_policy
|
68
41
|
# @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
|
69
|
-
# Required. The return policy to create.
|
42
|
+
# Required. The return policy object to create.
|
70
43
|
class CreateOnlineReturnPolicyRequest
|
71
44
|
include ::Google::Protobuf::MessageExts
|
72
45
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
46
|
end
|
74
47
|
|
75
|
-
# Request message for the `UpdateOnlineReturnPolicy` method.
|
48
|
+
# Request message for the `UpdateOnlineReturnPolicy` method. The method
|
49
|
+
# supports field masks and when the mask is provided, only the fields specified
|
50
|
+
# in the mask are updated.
|
76
51
|
# @!attribute [rw] online_return_policy
|
77
52
|
# @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
|
78
|
-
# Required. The return policy to update.
|
53
|
+
# Required. The online return policy to update.
|
54
|
+
# The online return policy's `name` field is used to identify the
|
55
|
+
# online return policy to be updated.
|
79
56
|
# @!attribute [rw] update_mask
|
80
57
|
# @return [::Google::Protobuf::FieldMask]
|
58
|
+
# Optional. List of fields being updated.
|
59
|
+
#
|
60
|
+
# The following fields are supported (in both `snake_case` and
|
61
|
+
# `lowerCamelCase`):
|
62
|
+
#
|
63
|
+
# - `accept_defective_only`
|
64
|
+
# - `accept_exchange`
|
65
|
+
# - `item_conditions`
|
66
|
+
# - `policy`
|
67
|
+
# - `process_refund_days`
|
68
|
+
# - `restocking_fee`
|
69
|
+
# - `return_methods`
|
70
|
+
# - `return_policy_uri`
|
71
|
+
# - `return_shipping_fee`
|
81
72
|
class UpdateOnlineReturnPolicyRequest
|
82
73
|
include ::Google::Protobuf::MessageExts
|
83
74
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -93,6 +84,33 @@ module Google
|
|
93
84
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
94
85
|
end
|
95
86
|
|
87
|
+
# Request message for the `ListOnlineReturnPolicies` method.
|
88
|
+
# @!attribute [rw] parent
|
89
|
+
# @return [::String]
|
90
|
+
# Required. The merchant account for which to list return policies.
|
91
|
+
# Format: `accounts/{account}`
|
92
|
+
# @!attribute [rw] page_size
|
93
|
+
# @return [::Integer]
|
94
|
+
# Optional. The maximum number of `OnlineReturnPolicy` resources to return.
|
95
|
+
# The service returns fewer than this value if the number of return policies
|
96
|
+
# for the given merchant is less that than the `pageSize`. The default value
|
97
|
+
# is 10. The maximum value is 100; If a value higher than the maximum is
|
98
|
+
# specified, then the `pageSize` will default to the maximum
|
99
|
+
# @!attribute [rw] page_token
|
100
|
+
# @return [::String]
|
101
|
+
# Optional. A page token, received from a previous `ListOnlineReturnPolicies`
|
102
|
+
# call. Provide the page token to retrieve the subsequent page.
|
103
|
+
#
|
104
|
+
# When paginating, all other parameters provided to
|
105
|
+
# `ListOnlineReturnPolicies` must match the call that provided the page
|
106
|
+
# token. The token returned as
|
107
|
+
# {::Google::Shopping::Merchant::Accounts::V1beta::ListOnlineReturnPoliciesResponse#next_page_token nextPageToken}
|
108
|
+
# in the response to the previous request.
|
109
|
+
class ListOnlineReturnPoliciesRequest
|
110
|
+
include ::Google::Protobuf::MessageExts
|
111
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
112
|
+
end
|
113
|
+
|
96
114
|
# Response message for the `ListOnlineReturnPolicies` method.
|
97
115
|
# @!attribute [rw] online_return_policies
|
98
116
|
# @return [::Array<::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy>]
|
@@ -160,20 +178,20 @@ module Google
|
|
160
178
|
# check for the policy. It must be a valid URL.
|
161
179
|
# @!attribute [rw] accept_defective_only
|
162
180
|
# @return [::Boolean]
|
163
|
-
# This field specifies if merchant
|
164
|
-
#
|
181
|
+
# Optional. This field specifies if merchant
|
182
|
+
# only accepts defective products for returns.
|
165
183
|
# @!attribute [rw] process_refund_days
|
166
184
|
# @return [::Integer]
|
167
|
-
# The field specifies the number of
|
168
|
-
#
|
185
|
+
# Optional. The field specifies the number of
|
186
|
+
# days it takes for merchants to process refunds.
|
169
187
|
# @!attribute [rw] accept_exchange
|
170
188
|
# @return [::Boolean]
|
171
|
-
# This field specifies if merchant
|
172
|
-
#
|
189
|
+
# Optional. This field specifies if merchant
|
190
|
+
# allows customers to exchange products.
|
173
191
|
# @!attribute [rw] return_label_source
|
174
192
|
# @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy::ReturnLabelSource]
|
175
|
-
# The field specifies the return
|
176
|
-
#
|
193
|
+
# Optional. The field specifies the return
|
194
|
+
# label source.
|
177
195
|
class OnlineReturnPolicy
|
178
196
|
include ::Google::Protobuf::MessageExts
|
179
197
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-accounts-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -149,6 +149,15 @@ files:
|
|
149
149
|
- lib/google/shopping/merchant/accounts/v1beta/businessidentity_services_pb.rb
|
150
150
|
- lib/google/shopping/merchant/accounts/v1beta/businessinfo_pb.rb
|
151
151
|
- lib/google/shopping/merchant/accounts/v1beta/businessinfo_services_pb.rb
|
152
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service.rb
|
153
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/client.rb
|
154
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/credentials.rb
|
155
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/paths.rb
|
156
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/rest.rb
|
157
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/rest/client.rb
|
158
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkout_settings_service/rest/service_stub.rb
|
159
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkoutsettings_pb.rb
|
160
|
+
- lib/google/shopping/merchant/accounts/v1beta/checkoutsettings_services_pb.rb
|
152
161
|
- lib/google/shopping/merchant/accounts/v1beta/customerservice_pb.rb
|
153
162
|
- lib/google/shopping/merchant/accounts/v1beta/email_preferences_service.rb
|
154
163
|
- lib/google/shopping/merchant/accounts/v1beta/email_preferences_service/client.rb
|
@@ -282,6 +291,7 @@ files:
|
|
282
291
|
- proto_docs/google/shopping/merchant/accounts/v1beta/automaticimprovements.rb
|
283
292
|
- proto_docs/google/shopping/merchant/accounts/v1beta/businessidentity.rb
|
284
293
|
- proto_docs/google/shopping/merchant/accounts/v1beta/businessinfo.rb
|
294
|
+
- proto_docs/google/shopping/merchant/accounts/v1beta/checkoutsettings.rb
|
285
295
|
- proto_docs/google/shopping/merchant/accounts/v1beta/customerservice.rb
|
286
296
|
- proto_docs/google/shopping/merchant/accounts/v1beta/emailpreferences.rb
|
287
297
|
- proto_docs/google/shopping/merchant/accounts/v1beta/gbpaccounts.rb
|
@@ -322,7 +332,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
322
332
|
- !ruby/object:Gem::Version
|
323
333
|
version: '0'
|
324
334
|
requirements: []
|
325
|
-
rubygems_version: 3.6.
|
335
|
+
rubygems_version: 3.6.9
|
326
336
|
specification_version: 4
|
327
337
|
summary: Programmatically manage your Merchant Center Accounts.
|
328
338
|
test_files: []
|