google-shopping-merchant-accounts-v1beta 0.8.0 → 0.10.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.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/client.rb +581 -0
  3. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/credentials.rb +49 -0
  4. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/paths.rb +49 -0
  5. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/rest/client.rb +541 -0
  6. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/rest/service_stub.rb +206 -0
  7. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service/rest.rb +57 -0
  8. data/lib/google/shopping/merchant/accounts/v1beta/gbp_accounts_service.rb +60 -0
  9. data/lib/google/shopping/merchant/accounts/v1beta/gbpaccounts_pb.rb +56 -0
  10. data/lib/google/shopping/merchant/accounts/v1beta/gbpaccounts_services_pb.rb +52 -0
  11. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/client.rb +584 -0
  12. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/credentials.rb +49 -0
  13. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/paths.rb +71 -0
  14. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/rest/client.rb +544 -0
  15. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/rest/service_stub.rb +206 -0
  16. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service/rest.rb +56 -0
  17. data/lib/google/shopping/merchant/accounts/v1beta/lfp_providers_service.rb +59 -0
  18. data/lib/google/shopping/merchant/accounts/v1beta/lfpproviders_pb.rb +55 -0
  19. data/lib/google/shopping/merchant/accounts/v1beta/lfpproviders_services_pb.rb +51 -0
  20. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/client.rb +875 -0
  21. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/credentials.rb +49 -0
  22. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/paths.rb +66 -0
  23. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest/client.rb +814 -0
  24. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest/service_stub.rb +391 -0
  25. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service/rest.rb +57 -0
  26. data/lib/google/shopping/merchant/accounts/v1beta/omnichannel_settings_service.rb +60 -0
  27. data/lib/google/shopping/merchant/accounts/v1beta/omnichannelsettings_pb.rb +68 -0
  28. data/lib/google/shopping/merchant/accounts/v1beta/omnichannelsettings_services_pb.rb +58 -0
  29. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_pb.rb +8 -1
  30. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/client.rb +301 -4
  31. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/client.rb +280 -4
  32. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest/service_stub.rb +185 -0
  33. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service/rest.rb +1 -1
  34. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_service.rb +1 -1
  35. data/lib/google/shopping/merchant/accounts/v1beta/online_return_policy_services_pb.rb +9 -3
  36. data/lib/google/shopping/merchant/accounts/v1beta/rest.rb +3 -0
  37. data/lib/google/shopping/merchant/accounts/v1beta/version.rb +1 -1
  38. data/lib/google/shopping/merchant/accounts/v1beta.rb +3 -0
  39. data/proto_docs/google/shopping/merchant/accounts/v1beta/gbpaccounts.rb +123 -0
  40. data/proto_docs/google/shopping/merchant/accounts/v1beta/lfpproviders.rb +108 -0
  41. data/proto_docs/google/shopping/merchant/accounts/v1beta/omnichannelsettings.rb +336 -0
  42. data/proto_docs/google/shopping/merchant/accounts/v1beta/online_return_policy.rb +88 -16
  43. metadata +32 -2
@@ -8,11 +8,13 @@ require 'google/api/annotations_pb'
8
8
  require 'google/api/client_pb'
9
9
  require 'google/api/field_behavior_pb'
10
10
  require 'google/api/resource_pb'
11
+ require 'google/protobuf/empty_pb'
12
+ require 'google/protobuf/field_mask_pb'
11
13
  require 'google/shopping/type/types_pb'
12
14
  require 'google/type/date_pb'
13
15
 
14
16
 
15
- descriptor_data = "\nCgoogle/shopping/merchant/accounts/v1beta/online_return_policy.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/shopping/type/types.proto\x1a\x16google/type/date.proto\"c\n\x1cGetOnlineReturnPolicyRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-merchantapi.googleapis.com/OnlineReturnPolicy\"\x99\x01\n\x1fListOnlineReturnPoliciesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-merchantapi.googleapis.com/OnlineReturnPolicy\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n ListOnlineReturnPoliciesResponse\x12\\\n\x16online_return_policies\x18\x01 \x03(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xe1\x0f\n\x12OnlineReturnPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1d\n\x10return_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x05label\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\tcountries\x18\x04 \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12S\n\x06policy\x18\x05 \x01(\x0b\x32\x43.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy\x12n\n\x12seasonal_overrides\x18\x0e \x03(\x0b\x32M.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.SeasonalOverrideB\x03\xe0\x41\x01\x12\x62\n\x0erestocking_fee\x18\x06 \x01(\x0b\x32J.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFee\x12\x61\n\x0ereturn_methods\x18\x07 \x03(\x0e\x32I.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnMethod\x12\x63\n\x0fitem_conditions\x18\x08 \x03(\x0e\x32J.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ItemCondition\x12k\n\x13return_shipping_fee\x18\t \x01(\x0b\x32N.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee\x12\x1e\n\x11return_policy_uri\x18\n \x01(\tB\x03\xe0\x41\x02\x12\"\n\x15\x61\x63\x63\x65pt_defective_only\x18\x0b \x01(\x08H\x00\x88\x01\x01\x12 \n\x13process_refund_days\x18\x0c \x01(\x05H\x01\x88\x01\x01\x12\x1c\n\x0f\x61\x63\x63\x65pt_exchange\x18\r \x01(\x08H\x02\x88\x01\x01\x1a\xf4\x01\n\x11ReturnShippingFee\x12\x66\n\x04type\x18\x01 \x01(\x0e\x32S.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.TypeB\x03\xe0\x41\x02\x12.\n\tfixed_fee\x18\x02 \x01(\x0b\x32\x1b.google.shopping.type.Price\"G\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x1e\n\x1a\x43USTOMER_PAYING_ACTUAL_FEE\x10\x02\x1a\x62\n\rRestockingFee\x12\x30\n\tfixed_fee\x18\x01 \x01(\x0b\x32\x1b.google.shopping.type.PriceH\x00\x12\x17\n\rmicro_percent\x18\x02 \x01(\x05H\x00\x42\x06\n\x04type\x1a\xd5\x01\n\x06Policy\x12V\n\x04type\x18\x01 \x01(\x0e\x32H.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type\x12\x0c\n\x04\x64\x61ys\x18\x02 \x01(\x03\"e\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12!\n\x1dNUMBER_OF_DAYS_AFTER_DELIVERY\x10\x01\x12\x0e\n\nNO_RETURNS\x10\x02\x12\x14\n\x10LIFETIME_RETURNS\x10\x03\x1a\xd4\x01\n\x10SeasonalOverride\x12\x15\n\x0breturn_days\x18\x05 \x01(\x05H\x00\x12.\n\x11return_until_date\x18\x06 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x12\n\x05label\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\nstart_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x42\x0f\n\rreturn_window\"X\n\x0cReturnMethod\x12\x1d\n\x19RETURN_METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42Y_MAIL\x10\x01\x12\x0c\n\x08IN_STORE\x10\x02\x12\x0e\n\nAT_A_KIOSK\x10\x03\"B\n\rItemCondition\x12\x1e\n\x1aITEM_CONDITION_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x08\n\x04USED\x10\x02:\x96\x01\xea\x41\x92\x01\n-merchantapi.googleapis.com/OnlineReturnPolicy\x12\x37\x61\x63\x63ounts/{account}/onlineReturnPolicies/{return_policy}*\x14onlineReturnPolicies2\x12onlineReturnPolicyB\x18\n\x16_accept_defective_onlyB\x16\n\x14_process_refund_daysB\x12\n\x10_accept_exchange2\xce\x04\n\x19OnlineReturnPolicyService\x12\xe7\x01\n\x15GetOnlineReturnPolicy\x12\x46.google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest\x1a<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/accounts/v1beta/{name=accounts/*/onlineReturnPolicies/*}\x12\xfd\x01\n\x18ListOnlineReturnPolicies\x12I.google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest\x1aJ.google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/accounts/v1beta/{parent=accounts/*}/onlineReturnPolicies\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x99\x01\n,com.google.shopping.merchant.accounts.v1betaB\x17OnlineReturnPolicyProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
17
+ descriptor_data = "\nCgoogle/shopping/merchant/accounts/v1beta/online_return_policy.proto\x12(google.shopping.merchant.accounts.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a google/shopping/type/types.proto\x1a\x16google/type/date.proto\"c\n\x1cGetOnlineReturnPolicyRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-merchantapi.googleapis.com/OnlineReturnPolicy\"\xc9\x01\n\x1f\x43reateOnlineReturnPolicyRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-merchantapi.googleapis.com/OnlineReturnPolicy\x12_\n\x14online_return_policy\x18\x02 \x01(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyB\x03\xe0\x41\x02\"\xb8\x01\n\x1fUpdateOnlineReturnPolicyRequest\x12_\n\x14online_return_policy\x18\x01 \x01(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicyB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\"f\n\x1f\x44\x65leteOnlineReturnPolicyRequest\x12\x43\n\x04name\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\n-merchantapi.googleapis.com/OnlineReturnPolicy\"\x99\x01\n\x1fListOnlineReturnPoliciesRequest\x12\x45\n\x06parent\x18\x01 \x01(\tB5\xe0\x41\x02\xfa\x41/\x12-merchantapi.googleapis.com/OnlineReturnPolicy\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x99\x01\n ListOnlineReturnPoliciesResponse\x12\\\n\x16online_return_policies\x18\x01 \x03(\x0b\x32<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x9c\x12\n\x12OnlineReturnPolicy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x1d\n\x10return_policy_id\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x15\n\x05label\x18\x03 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12\x19\n\tcountries\x18\x04 \x03(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12X\n\x06policy\x18\x05 \x01(\x0b\x32\x43.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.PolicyB\x03\xe0\x41\x01\x12n\n\x12seasonal_overrides\x18\x0e \x03(\x0b\x32M.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.SeasonalOverrideB\x03\xe0\x41\x01\x12g\n\x0erestocking_fee\x18\x06 \x01(\x0b\x32J.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.RestockingFeeB\x03\xe0\x41\x01\x12\x66\n\x0ereturn_methods\x18\x07 \x03(\x0e\x32I.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnMethodB\x03\xe0\x41\x01\x12h\n\x0fitem_conditions\x18\x08 \x03(\x0e\x32J.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ItemConditionB\x03\xe0\x41\x01\x12p\n\x13return_shipping_fee\x18\t \x01(\x0b\x32N.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFeeB\x03\xe0\x41\x01\x12\x1e\n\x11return_policy_uri\x18\n \x01(\tB\x03\xe0\x41\x02\x12\'\n\x15\x61\x63\x63\x65pt_defective_only\x18\x0b \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12%\n\x13process_refund_days\x18\x0c \x01(\x05\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x12!\n\x0f\x61\x63\x63\x65pt_exchange\x18\r \x01(\x08\x42\x03\xe0\x41\x01H\x02\x88\x01\x01\x12u\n\x13return_label_source\x18\x0f \x01(\x0e\x32N.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnLabelSourceB\x03\xe0\x41\x01H\x03\x88\x01\x01\x1a\xf4\x01\n\x11ReturnShippingFee\x12\x66\n\x04type\x18\x01 \x01(\x0e\x32S.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnShippingFee.TypeB\x03\xe0\x41\x02\x12.\n\tfixed_fee\x18\x02 \x01(\x0b\x32\x1b.google.shopping.type.Price\"G\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x1e\n\x1a\x43USTOMER_PAYING_ACTUAL_FEE\x10\x02\x1a\x62\n\rRestockingFee\x12\x30\n\tfixed_fee\x18\x01 \x01(\x0b\x32\x1b.google.shopping.type.PriceH\x00\x12\x17\n\rmicro_percent\x18\x02 \x01(\x05H\x00\x42\x06\n\x04type\x1a\xd5\x01\n\x06Policy\x12V\n\x04type\x18\x01 \x01(\x0e\x32H.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.Policy.Type\x12\x0c\n\x04\x64\x61ys\x18\x02 \x01(\x03\"e\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12!\n\x1dNUMBER_OF_DAYS_AFTER_DELIVERY\x10\x01\x12\x0e\n\nNO_RETURNS\x10\x02\x12\x14\n\x10LIFETIME_RETURNS\x10\x03\x1a\xd4\x01\n\x10SeasonalOverride\x12\x15\n\x0breturn_days\x18\x05 \x01(\x05H\x00\x12.\n\x11return_until_date\x18\x06 \x01(\x0b\x32\x11.google.type.DateH\x00\x12\x12\n\x05label\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12*\n\nstart_date\x18\x02 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x12(\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x11.google.type.DateB\x03\xe0\x41\x02\x42\x0f\n\rreturn_window\"X\n\x0cReturnMethod\x12\x1d\n\x19RETURN_METHOD_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x42Y_MAIL\x10\x01\x12\x0c\n\x08IN_STORE\x10\x02\x12\x0e\n\nAT_A_KIOSK\x10\x03\"B\n\rItemCondition\x12\x1e\n\x1aITEM_CONDITION_UNSPECIFIED\x10\x00\x12\x07\n\x03NEW\x10\x01\x12\x08\n\x04USED\x10\x02\"\x81\x01\n\x11ReturnLabelSource\x12#\n\x1fRETURN_LABEL_SOURCE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44OWNLOAD_AND_PRINT\x10\x01\x12\x12\n\x0eIN_THE_PACKAGE\x10\x02\x12\x1b\n\x17\x43USTOMER_RESPONSIBILITY\x10\x03:\x96\x01\xea\x41\x92\x01\n-merchantapi.googleapis.com/OnlineReturnPolicy\x12\x37\x61\x63\x63ounts/{account}/onlineReturnPolicies/{return_policy}*\x14onlineReturnPolicies2\x12onlineReturnPolicyB\x18\n\x16_accept_defective_onlyB\x16\n\x14_process_refund_daysB\x12\n\x10_accept_exchangeB\x16\n\x14_return_label_source2\xf6\n\n\x19OnlineReturnPolicyService\x12\xe7\x01\n\x15GetOnlineReturnPolicy\x12\x46.google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest\x1a<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;\x12\x39/accounts/v1beta/{name=accounts/*/onlineReturnPolicies/*}\x12\xfd\x01\n\x18ListOnlineReturnPolicies\x12I.google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest\x1aJ.google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse\"J\xda\x41\x06parent\x82\xd3\xe4\x93\x02;\x12\x39/accounts/v1beta/{parent=accounts/*}/onlineReturnPolicies\x12\xa3\x02\n\x18\x43reateOnlineReturnPolicy\x12I.google.shopping.merchant.accounts.v1beta.CreateOnlineReturnPolicyRequest\x1a<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy\"~\xda\x41\x06parent\xda\x41\x1bparent,online_return_policy\x82\xd3\xe4\x93\x02Q\"9/accounts/v1beta/{parent=accounts/*}/onlineReturnPolicies:\x14online_return_policy\x12\xb5\x02\n\x18UpdateOnlineReturnPolicy\x12I.google.shopping.merchant.accounts.v1beta.UpdateOnlineReturnPolicyRequest\x1a<.google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy\"\x8f\x01\xda\x41 online_return_policy,update_mask\x82\xd3\xe4\x93\x02\x66\x32N/accounts/v1beta/{online_return_policy.name=accounts/*/onlineReturnPolicies/*}:\x14online_return_policy\x12\xc7\x01\n\x18\x44\x65leteOnlineReturnPolicy\x12I.google.shopping.merchant.accounts.v1beta.DeleteOnlineReturnPolicyRequest\x1a\x16.google.protobuf.Empty\"H\xda\x41\x04name\x82\xd3\xe4\x93\x02;*9/accounts/v1beta/{name=accounts/*/onlineReturnPolicies/*}\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x99\x01\n,com.google.shopping.merchant.accounts.v1betaB\x17OnlineReturnPolicyProtoP\x01ZNcloud.google.com/go/shopping/merchant/accounts/apiv1beta/accountspb;accountspbb\x06proto3"
16
18
 
17
19
  pool = Google::Protobuf::DescriptorPool.generated_pool
18
20
 
@@ -27,6 +29,7 @@ rescue TypeError
27
29
  file = pool.add_serialized_file(serialized)
28
30
  warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
31
  imports = [
32
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
30
33
  ["google.shopping.type.Price", "google/shopping/type/types.proto"],
31
34
  ["google.type.Date", "google/type/date.proto"],
32
35
  ]
@@ -46,6 +49,9 @@ module Google
46
49
  module Accounts
47
50
  module V1beta
48
51
  GetOnlineReturnPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.GetOnlineReturnPolicyRequest").msgclass
52
+ CreateOnlineReturnPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.CreateOnlineReturnPolicyRequest").msgclass
53
+ UpdateOnlineReturnPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.UpdateOnlineReturnPolicyRequest").msgclass
54
+ DeleteOnlineReturnPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.DeleteOnlineReturnPolicyRequest").msgclass
49
55
  ListOnlineReturnPoliciesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesRequest").msgclass
50
56
  ListOnlineReturnPoliciesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.ListOnlineReturnPoliciesResponse").msgclass
51
57
  OnlineReturnPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy").msgclass
@@ -57,6 +63,7 @@ module Google
57
63
  OnlineReturnPolicy::SeasonalOverride = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.SeasonalOverride").msgclass
58
64
  OnlineReturnPolicy::ReturnMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnMethod").enummodule
59
65
  OnlineReturnPolicy::ItemCondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ItemCondition").enummodule
66
+ OnlineReturnPolicy::ReturnLabelSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy.ReturnLabelSource").enummodule
60
67
  end
61
68
  end
62
69
  end
@@ -32,7 +32,7 @@ module Google
32
32
  # configuration, encompassing return policies for both ads and free listings
33
33
  # ## programs. This API defines the following resource model:
34
34
  #
35
- # [OnlineReturnPolicy][google.shopping.merchant.accounts.v1.OnlineReturnPolicy]
35
+ # [OnlineReturnPolicy](/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1beta#google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy)
36
36
  #
37
37
  class Client
38
38
  # @private
@@ -194,7 +194,7 @@ module Google
194
194
  # Service calls
195
195
 
196
196
  ##
197
- # Gets an existing return policy for a given business.
197
+ # Gets an existing return policy for a given merchant.
198
198
  #
199
199
  # @overload get_online_return_policy(request, options = nil)
200
200
  # Pass arguments to `get_online_return_policy` via a request object, either of type
@@ -280,7 +280,7 @@ module Google
280
280
  end
281
281
 
282
282
  ##
283
- # Lists all existing return policies for a given business.
283
+ # Lists all existing return policies for a given merchant.
284
284
  #
285
285
  # @overload list_online_return_policies(request, options = nil)
286
286
  # Pass arguments to `list_online_return_policies` via a request object, either of type
@@ -298,7 +298,7 @@ module Google
298
298
  # the default parameter values, pass an empty Hash as a request object (see above).
299
299
  #
300
300
  # @param parent [::String]
301
- # Required. The business account for which to list return policies.
301
+ # Required. The merchant account for which to list return policies.
302
302
  # Format: `accounts/{account}`
303
303
  # @param page_size [::Integer]
304
304
  # Optional. The maximum number of `OnlineReturnPolicy` resources to return.
@@ -386,6 +386,282 @@ module Google
386
386
  raise ::Google::Cloud::Error.from_error(e)
387
387
  end
388
388
 
389
+ ##
390
+ # Creates a new return policy for a given merchant.
391
+ #
392
+ # @overload create_online_return_policy(request, options = nil)
393
+ # Pass arguments to `create_online_return_policy` via a request object, either of type
394
+ # {::Google::Shopping::Merchant::Accounts::V1beta::CreateOnlineReturnPolicyRequest} or an equivalent Hash.
395
+ #
396
+ # @param request [::Google::Shopping::Merchant::Accounts::V1beta::CreateOnlineReturnPolicyRequest, ::Hash]
397
+ # A request object representing the call parameters. Required. To specify no
398
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
399
+ # @param options [::Gapic::CallOptions, ::Hash]
400
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
401
+ #
402
+ # @overload create_online_return_policy(parent: nil, online_return_policy: nil)
403
+ # Pass arguments to `create_online_return_policy` via keyword arguments. Note that at
404
+ # least one keyword argument is required. To specify no parameters, or to keep all
405
+ # the default parameter values, pass an empty Hash as a request object (see above).
406
+ #
407
+ # @param parent [::String]
408
+ # Required. The merchant account for which the return policy will be created.
409
+ # Format: `accounts/{account}`
410
+ # @param online_return_policy [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy, ::Hash]
411
+ # Required. The return policy object to create.
412
+ #
413
+ # @yield [response, operation] Access the result along with the RPC operation
414
+ # @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
415
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
416
+ #
417
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
418
+ #
419
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
420
+ #
421
+ # @example Basic example
422
+ # require "google/shopping/merchant/accounts/v1beta"
423
+ #
424
+ # # Create a client object. The client can be reused for multiple calls.
425
+ # client = Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicyService::Client.new
426
+ #
427
+ # # Create a request. To set request fields, pass in keyword arguments.
428
+ # request = Google::Shopping::Merchant::Accounts::V1beta::CreateOnlineReturnPolicyRequest.new
429
+ #
430
+ # # Call the create_online_return_policy method.
431
+ # result = client.create_online_return_policy request
432
+ #
433
+ # # The returned object is of type Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy.
434
+ # p result
435
+ #
436
+ def create_online_return_policy request, options = nil
437
+ raise ::ArgumentError, "request must be provided" if request.nil?
438
+
439
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1beta::CreateOnlineReturnPolicyRequest
440
+
441
+ # Converts hash and nil to an options object
442
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
443
+
444
+ # Customize the options with defaults
445
+ metadata = @config.rpcs.create_online_return_policy.metadata.to_h
446
+
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
448
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
449
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
450
+ gapic_version: ::Google::Shopping::Merchant::Accounts::V1beta::VERSION
451
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
452
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
+
454
+ header_params = {}
455
+ if request.parent
456
+ header_params["parent"] = request.parent
457
+ end
458
+
459
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
460
+ metadata[:"x-goog-request-params"] ||= request_params_header
461
+
462
+ options.apply_defaults timeout: @config.rpcs.create_online_return_policy.timeout,
463
+ metadata: metadata,
464
+ retry_policy: @config.rpcs.create_online_return_policy.retry_policy
465
+
466
+ options.apply_defaults timeout: @config.timeout,
467
+ metadata: @config.metadata,
468
+ retry_policy: @config.retry_policy
469
+
470
+ @online_return_policy_service_stub.call_rpc :create_online_return_policy, request, options: options do |response, operation|
471
+ yield response, operation if block_given?
472
+ end
473
+ rescue ::GRPC::BadStatus => e
474
+ raise ::Google::Cloud::Error.from_error(e)
475
+ end
476
+
477
+ ##
478
+ # Updates an existing return policy for a given merchant.
479
+ #
480
+ # @overload update_online_return_policy(request, options = nil)
481
+ # Pass arguments to `update_online_return_policy` via a request object, either of type
482
+ # {::Google::Shopping::Merchant::Accounts::V1beta::UpdateOnlineReturnPolicyRequest} or an equivalent Hash.
483
+ #
484
+ # @param request [::Google::Shopping::Merchant::Accounts::V1beta::UpdateOnlineReturnPolicyRequest, ::Hash]
485
+ # A request object representing the call parameters. Required. To specify no
486
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
487
+ # @param options [::Gapic::CallOptions, ::Hash]
488
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
489
+ #
490
+ # @overload update_online_return_policy(online_return_policy: nil, update_mask: nil)
491
+ # Pass arguments to `update_online_return_policy` via keyword arguments. Note that at
492
+ # least one keyword argument is required. To specify no parameters, or to keep all
493
+ # the default parameter values, pass an empty Hash as a request object (see above).
494
+ #
495
+ # @param online_return_policy [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy, ::Hash]
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.
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`
514
+ #
515
+ # @yield [response, operation] Access the result along with the RPC operation
516
+ # @yieldparam response [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
517
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
518
+ #
519
+ # @return [::Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy]
520
+ #
521
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
522
+ #
523
+ # @example Basic example
524
+ # require "google/shopping/merchant/accounts/v1beta"
525
+ #
526
+ # # Create a client object. The client can be reused for multiple calls.
527
+ # client = Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicyService::Client.new
528
+ #
529
+ # # Create a request. To set request fields, pass in keyword arguments.
530
+ # request = Google::Shopping::Merchant::Accounts::V1beta::UpdateOnlineReturnPolicyRequest.new
531
+ #
532
+ # # Call the update_online_return_policy method.
533
+ # result = client.update_online_return_policy request
534
+ #
535
+ # # The returned object is of type Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicy.
536
+ # p result
537
+ #
538
+ def update_online_return_policy request, options = nil
539
+ raise ::ArgumentError, "request must be provided" if request.nil?
540
+
541
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1beta::UpdateOnlineReturnPolicyRequest
542
+
543
+ # Converts hash and nil to an options object
544
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
545
+
546
+ # Customize the options with defaults
547
+ metadata = @config.rpcs.update_online_return_policy.metadata.to_h
548
+
549
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
550
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
551
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
552
+ gapic_version: ::Google::Shopping::Merchant::Accounts::V1beta::VERSION
553
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
554
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
555
+
556
+ header_params = {}
557
+ if request.online_return_policy&.name
558
+ header_params["online_return_policy.name"] = request.online_return_policy.name
559
+ end
560
+
561
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
562
+ metadata[:"x-goog-request-params"] ||= request_params_header
563
+
564
+ options.apply_defaults timeout: @config.rpcs.update_online_return_policy.timeout,
565
+ metadata: metadata,
566
+ retry_policy: @config.rpcs.update_online_return_policy.retry_policy
567
+
568
+ options.apply_defaults timeout: @config.timeout,
569
+ metadata: @config.metadata,
570
+ retry_policy: @config.retry_policy
571
+
572
+ @online_return_policy_service_stub.call_rpc :update_online_return_policy, request, options: options do |response, operation|
573
+ yield response, operation if block_given?
574
+ end
575
+ rescue ::GRPC::BadStatus => e
576
+ raise ::Google::Cloud::Error.from_error(e)
577
+ end
578
+
579
+ ##
580
+ # Deletes an existing return policy.
581
+ #
582
+ # @overload delete_online_return_policy(request, options = nil)
583
+ # Pass arguments to `delete_online_return_policy` via a request object, either of type
584
+ # {::Google::Shopping::Merchant::Accounts::V1beta::DeleteOnlineReturnPolicyRequest} or an equivalent Hash.
585
+ #
586
+ # @param request [::Google::Shopping::Merchant::Accounts::V1beta::DeleteOnlineReturnPolicyRequest, ::Hash]
587
+ # A request object representing the call parameters. Required. To specify no
588
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
589
+ # @param options [::Gapic::CallOptions, ::Hash]
590
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
591
+ #
592
+ # @overload delete_online_return_policy(name: nil)
593
+ # Pass arguments to `delete_online_return_policy` via keyword arguments. Note that at
594
+ # least one keyword argument is required. To specify no parameters, or to keep all
595
+ # the default parameter values, pass an empty Hash as a request object (see above).
596
+ #
597
+ # @param name [::String]
598
+ # Required. The name of the return policy to delete.
599
+ # Format: `accounts/{account}/onlineReturnPolicies/{return_policy}`
600
+ #
601
+ # @yield [response, operation] Access the result along with the RPC operation
602
+ # @yieldparam response [::Google::Protobuf::Empty]
603
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
604
+ #
605
+ # @return [::Google::Protobuf::Empty]
606
+ #
607
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
608
+ #
609
+ # @example Basic example
610
+ # require "google/shopping/merchant/accounts/v1beta"
611
+ #
612
+ # # Create a client object. The client can be reused for multiple calls.
613
+ # client = Google::Shopping::Merchant::Accounts::V1beta::OnlineReturnPolicyService::Client.new
614
+ #
615
+ # # Create a request. To set request fields, pass in keyword arguments.
616
+ # request = Google::Shopping::Merchant::Accounts::V1beta::DeleteOnlineReturnPolicyRequest.new
617
+ #
618
+ # # Call the delete_online_return_policy method.
619
+ # result = client.delete_online_return_policy request
620
+ #
621
+ # # The returned object is of type Google::Protobuf::Empty.
622
+ # p result
623
+ #
624
+ def delete_online_return_policy request, options = nil
625
+ raise ::ArgumentError, "request must be provided" if request.nil?
626
+
627
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Shopping::Merchant::Accounts::V1beta::DeleteOnlineReturnPolicyRequest
628
+
629
+ # Converts hash and nil to an options object
630
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
631
+
632
+ # Customize the options with defaults
633
+ metadata = @config.rpcs.delete_online_return_policy.metadata.to_h
634
+
635
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
636
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
637
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
638
+ gapic_version: ::Google::Shopping::Merchant::Accounts::V1beta::VERSION
639
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
640
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
641
+
642
+ header_params = {}
643
+ if request.name
644
+ header_params["name"] = request.name
645
+ end
646
+
647
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
648
+ metadata[:"x-goog-request-params"] ||= request_params_header
649
+
650
+ options.apply_defaults timeout: @config.rpcs.delete_online_return_policy.timeout,
651
+ metadata: metadata,
652
+ retry_policy: @config.rpcs.delete_online_return_policy.retry_policy
653
+
654
+ options.apply_defaults timeout: @config.timeout,
655
+ metadata: @config.metadata,
656
+ retry_policy: @config.retry_policy
657
+
658
+ @online_return_policy_service_stub.call_rpc :delete_online_return_policy, request, options: options do |response, operation|
659
+ yield response, operation if block_given?
660
+ end
661
+ rescue ::GRPC::BadStatus => e
662
+ raise ::Google::Cloud::Error.from_error(e)
663
+ end
664
+
389
665
  ##
390
666
  # Configuration class for the OnlineReturnPolicyService API.
391
667
  #
@@ -562,6 +838,21 @@ module Google
562
838
  # @return [::Gapic::Config::Method]
563
839
  #
564
840
  attr_reader :list_online_return_policies
841
+ ##
842
+ # RPC-specific configuration for `create_online_return_policy`
843
+ # @return [::Gapic::Config::Method]
844
+ #
845
+ attr_reader :create_online_return_policy
846
+ ##
847
+ # RPC-specific configuration for `update_online_return_policy`
848
+ # @return [::Gapic::Config::Method]
849
+ #
850
+ attr_reader :update_online_return_policy
851
+ ##
852
+ # RPC-specific configuration for `delete_online_return_policy`
853
+ # @return [::Gapic::Config::Method]
854
+ #
855
+ attr_reader :delete_online_return_policy
565
856
 
566
857
  # @private
567
858
  def initialize parent_rpcs = nil
@@ -569,6 +860,12 @@ module Google
569
860
  @get_online_return_policy = ::Gapic::Config::Method.new get_online_return_policy_config
570
861
  list_online_return_policies_config = parent_rpcs.list_online_return_policies if parent_rpcs.respond_to? :list_online_return_policies
571
862
  @list_online_return_policies = ::Gapic::Config::Method.new list_online_return_policies_config
863
+ create_online_return_policy_config = parent_rpcs.create_online_return_policy if parent_rpcs.respond_to? :create_online_return_policy
864
+ @create_online_return_policy = ::Gapic::Config::Method.new create_online_return_policy_config
865
+ update_online_return_policy_config = parent_rpcs.update_online_return_policy if parent_rpcs.respond_to? :update_online_return_policy
866
+ @update_online_return_policy = ::Gapic::Config::Method.new update_online_return_policy_config
867
+ delete_online_return_policy_config = parent_rpcs.delete_online_return_policy if parent_rpcs.respond_to? :delete_online_return_policy
868
+ @delete_online_return_policy = ::Gapic::Config::Method.new delete_online_return_policy_config
572
869
 
573
870
  yield self if block_given?
574
871
  end