Skip to content

Commit 6674015

Browse files
feat: Add new method signature parent,online_return_policy to CreateOnlineReturnPolicy (#30431)
docs: Minor updates
1 parent 58ddd92 commit 6674015

5 files changed

Lines changed: 100 additions & 50 deletions

File tree

google-shopping-merchant-accounts-v1beta/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_pb.rb

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google-shopping-merchant-accounts-v1beta/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/client.rb

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,10 @@ def list_online_return_policies request, options = nil
405405
# the default parameter values, pass an empty Hash as a request object (see above).
406406
#
407407
# @param parent [::String]
408-
# Required. The merchant account for which to create a return policy.
408+
# Required. The merchant account for which the return policy will be created.
409409
# Format: `accounts/{account}`
410410
# @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.
412412
#
413413
# @yield [response, operation] Access the result along with the RPC operation
414414
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
@@ -493,8 +493,24 @@ def create_online_return_policy request, options = nil
493493
# the default parameter values, pass an empty Hash as a request object (see above).
494494
#
495495
# @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.
497499
# @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`
498514
#
499515
# @yield [response, operation] Access the result along with the RPC operation
500516
# @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
@@ -561,7 +577,7 @@ def update_online_return_policy request, options = nil
561577
end
562578

563579
##
564-
# Deletes an existing return policy for a given merchant.
580+
# Deletes an existing return policy.
565581
#
566582
# @overload delete_online_return_policy(request, options = nil)
567583
# Pass arguments to `delete_online_return_policy` via a request object, either of type

0 commit comments

Comments
 (0)