google-shopping-merchant-accounts 0.4.1 → 0.5.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: affaa2d20ea7529e6ef8e83978549638b66b18e7d54c92638bfe22dd61899204
|
4
|
+
data.tar.gz: 897ec2b9f0682c6eaa3cc8ef07adf0aee63697e105b1459a59c71201cb1ac186
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abf859f5104ec6ef3955c444e16e3bd46acdcc231dffaebc7e881b0d947daed765687efb7577933a3a8c13d3022dfc8adc9694afb23b47dfd3b2ef0e1666b590
|
7
|
+
data.tar.gz: a93cf1c53f97b66dddc92e276058f73260d5beac34823226e64423207639f06b7aa821238bf12017f3c71a37b2625e0a10e81eee9f7ecf3d2e3579222112f189
|
@@ -669,6 +669,79 @@ module Google
|
|
669
669
|
false
|
670
670
|
end
|
671
671
|
|
672
|
+
##
|
673
|
+
# Create a new client object for GbpAccountsService.
|
674
|
+
#
|
675
|
+
# By default, this returns an instance of
|
676
|
+
# [Google::Shopping::Merchant::Accounts::V1beta::GbpAccountsService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/GbpAccountsService/Client)
|
677
|
+
# for a gRPC client for version V1beta of the API.
|
678
|
+
# However, you can specify a different API version by passing it in the
|
679
|
+
# `version` parameter. If the GbpAccountsService service is
|
680
|
+
# supported by that API version, and the corresponding gem is available, the
|
681
|
+
# appropriate versioned client will be returned.
|
682
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
683
|
+
# the `transport` parameter.
|
684
|
+
#
|
685
|
+
# Raises an exception if the currently installed versioned client gem for the
|
686
|
+
# given API version does not support the given transport of the GbpAccountsService service.
|
687
|
+
# You can determine whether the method will succeed by calling
|
688
|
+
# {Google::Shopping::Merchant::Accounts.gbp_accounts_service_available?}.
|
689
|
+
#
|
690
|
+
# ## About GbpAccountsService
|
691
|
+
#
|
692
|
+
# The service facilitates the management of a merchant's Google Business
|
693
|
+
# Profile (GBP) account settings. This API defines the following resource
|
694
|
+
# model:
|
695
|
+
# - [GbpAccount][google.shopping.merchant.accounts.v1.GbpAccount]
|
696
|
+
#
|
697
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
698
|
+
# Defaults to `:v1beta`.
|
699
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
700
|
+
# @return [::Object] A client object for the specified version.
|
701
|
+
#
|
702
|
+
def self.gbp_accounts_service version: :v1beta, transport: :grpc, &block
|
703
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
704
|
+
|
705
|
+
package_name = Google::Shopping::Merchant::Accounts
|
706
|
+
.constants
|
707
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
708
|
+
.first
|
709
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:GbpAccountsService)
|
710
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
711
|
+
service_module.const_get(:Client).new(&block)
|
712
|
+
end
|
713
|
+
|
714
|
+
##
|
715
|
+
# Determines whether the GbpAccountsService service is supported by the current client.
|
716
|
+
# If true, you can retrieve a client object by calling {Google::Shopping::Merchant::Accounts.gbp_accounts_service}.
|
717
|
+
# If false, that method will raise an exception. This could happen if the given
|
718
|
+
# API version does not exist or does not support the GbpAccountsService service,
|
719
|
+
# or if the versioned client gem needs an update to support the GbpAccountsService service.
|
720
|
+
#
|
721
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
722
|
+
# Defaults to `:v1beta`.
|
723
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
724
|
+
# @return [boolean] Whether the service is available.
|
725
|
+
#
|
726
|
+
def self.gbp_accounts_service_available? version: :v1beta, transport: :grpc
|
727
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
728
|
+
package_name = Google::Shopping::Merchant::Accounts
|
729
|
+
.constants
|
730
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
731
|
+
.first
|
732
|
+
return false unless package_name
|
733
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get package_name
|
734
|
+
return false unless service_module.const_defined? :GbpAccountsService
|
735
|
+
service_module = service_module.const_get :GbpAccountsService
|
736
|
+
if transport == :rest
|
737
|
+
return false unless service_module.const_defined? :Rest
|
738
|
+
service_module = service_module.const_get :Rest
|
739
|
+
end
|
740
|
+
service_module.const_defined? :Client
|
741
|
+
rescue ::LoadError
|
742
|
+
false
|
743
|
+
end
|
744
|
+
|
672
745
|
##
|
673
746
|
# Create a new client object for HomepageService.
|
674
747
|
#
|
@@ -739,6 +812,151 @@ module Google
|
|
739
812
|
false
|
740
813
|
end
|
741
814
|
|
815
|
+
##
|
816
|
+
# Create a new client object for LfpProvidersService.
|
817
|
+
#
|
818
|
+
# By default, this returns an instance of
|
819
|
+
# [Google::Shopping::Merchant::Accounts::V1beta::LfpProvidersService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/LfpProvidersService/Client)
|
820
|
+
# for a gRPC client for version V1beta of the API.
|
821
|
+
# However, you can specify a different API version by passing it in the
|
822
|
+
# `version` parameter. If the LfpProvidersService service is
|
823
|
+
# supported by that API version, and the corresponding gem is available, the
|
824
|
+
# appropriate versioned client will be returned.
|
825
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
826
|
+
# the `transport` parameter.
|
827
|
+
#
|
828
|
+
# Raises an exception if the currently installed versioned client gem for the
|
829
|
+
# given API version does not support the given transport of the LfpProvidersService service.
|
830
|
+
# You can determine whether the method will succeed by calling
|
831
|
+
# {Google::Shopping::Merchant::Accounts.lfp_providers_service_available?}.
|
832
|
+
#
|
833
|
+
# ## About LfpProvidersService
|
834
|
+
#
|
835
|
+
# The service facilitates the management of a merchant's LFP provider settings.
|
836
|
+
# This API defines the following resource model:
|
837
|
+
# - [LfpProvider][google.shopping.merchant.accounts.v1.LfpProvider]
|
838
|
+
#
|
839
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
840
|
+
# Defaults to `:v1beta`.
|
841
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
842
|
+
# @return [::Object] A client object for the specified version.
|
843
|
+
#
|
844
|
+
def self.lfp_providers_service version: :v1beta, transport: :grpc, &block
|
845
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
846
|
+
|
847
|
+
package_name = Google::Shopping::Merchant::Accounts
|
848
|
+
.constants
|
849
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
850
|
+
.first
|
851
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:LfpProvidersService)
|
852
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
853
|
+
service_module.const_get(:Client).new(&block)
|
854
|
+
end
|
855
|
+
|
856
|
+
##
|
857
|
+
# Determines whether the LfpProvidersService service is supported by the current client.
|
858
|
+
# If true, you can retrieve a client object by calling {Google::Shopping::Merchant::Accounts.lfp_providers_service}.
|
859
|
+
# If false, that method will raise an exception. This could happen if the given
|
860
|
+
# API version does not exist or does not support the LfpProvidersService service,
|
861
|
+
# or if the versioned client gem needs an update to support the LfpProvidersService service.
|
862
|
+
#
|
863
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
864
|
+
# Defaults to `:v1beta`.
|
865
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
866
|
+
# @return [boolean] Whether the service is available.
|
867
|
+
#
|
868
|
+
def self.lfp_providers_service_available? version: :v1beta, transport: :grpc
|
869
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
870
|
+
package_name = Google::Shopping::Merchant::Accounts
|
871
|
+
.constants
|
872
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
873
|
+
.first
|
874
|
+
return false unless package_name
|
875
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get package_name
|
876
|
+
return false unless service_module.const_defined? :LfpProvidersService
|
877
|
+
service_module = service_module.const_get :LfpProvidersService
|
878
|
+
if transport == :rest
|
879
|
+
return false unless service_module.const_defined? :Rest
|
880
|
+
service_module = service_module.const_get :Rest
|
881
|
+
end
|
882
|
+
service_module.const_defined? :Client
|
883
|
+
rescue ::LoadError
|
884
|
+
false
|
885
|
+
end
|
886
|
+
|
887
|
+
##
|
888
|
+
# Create a new client object for OmnichannelSettingsService.
|
889
|
+
#
|
890
|
+
# By default, this returns an instance of
|
891
|
+
# [Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSettingsService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/OmnichannelSettingsService/Client)
|
892
|
+
# for a gRPC client for version V1beta of the API.
|
893
|
+
# However, you can specify a different API version by passing it in the
|
894
|
+
# `version` parameter. If the OmnichannelSettingsService service is
|
895
|
+
# supported by that API version, and the corresponding gem is available, the
|
896
|
+
# appropriate versioned client will be returned.
|
897
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
898
|
+
# the `transport` parameter.
|
899
|
+
#
|
900
|
+
# Raises an exception if the currently installed versioned client gem for the
|
901
|
+
# given API version does not support the given transport of the OmnichannelSettingsService service.
|
902
|
+
# You can determine whether the method will succeed by calling
|
903
|
+
# {Google::Shopping::Merchant::Accounts.omnichannel_settings_service_available?}.
|
904
|
+
#
|
905
|
+
# ## About OmnichannelSettingsService
|
906
|
+
#
|
907
|
+
# The service facilitates the management of a merchant's omnichannel settings.
|
908
|
+
# ## This API defines the following resource model:
|
909
|
+
#
|
910
|
+
# [OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting]
|
911
|
+
#
|
912
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
913
|
+
# Defaults to `:v1beta`.
|
914
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
915
|
+
# @return [::Object] A client object for the specified version.
|
916
|
+
#
|
917
|
+
def self.omnichannel_settings_service version: :v1beta, transport: :grpc, &block
|
918
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
919
|
+
|
920
|
+
package_name = Google::Shopping::Merchant::Accounts
|
921
|
+
.constants
|
922
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
923
|
+
.first
|
924
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:OmnichannelSettingsService)
|
925
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
926
|
+
service_module.const_get(:Client).new(&block)
|
927
|
+
end
|
928
|
+
|
929
|
+
##
|
930
|
+
# Determines whether the OmnichannelSettingsService service is supported by the current client.
|
931
|
+
# If true, you can retrieve a client object by calling {Google::Shopping::Merchant::Accounts.omnichannel_settings_service}.
|
932
|
+
# If false, that method will raise an exception. This could happen if the given
|
933
|
+
# API version does not exist or does not support the OmnichannelSettingsService service,
|
934
|
+
# or if the versioned client gem needs an update to support the OmnichannelSettingsService service.
|
935
|
+
#
|
936
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
937
|
+
# Defaults to `:v1beta`.
|
938
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
939
|
+
# @return [boolean] Whether the service is available.
|
940
|
+
#
|
941
|
+
def self.omnichannel_settings_service_available? version: :v1beta, transport: :grpc
|
942
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
943
|
+
package_name = Google::Shopping::Merchant::Accounts
|
944
|
+
.constants
|
945
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
946
|
+
.first
|
947
|
+
return false unless package_name
|
948
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get package_name
|
949
|
+
return false unless service_module.const_defined? :OmnichannelSettingsService
|
950
|
+
service_module = service_module.const_get :OmnichannelSettingsService
|
951
|
+
if transport == :rest
|
952
|
+
return false unless service_module.const_defined? :Rest
|
953
|
+
service_module = service_module.const_get :Rest
|
954
|
+
end
|
955
|
+
service_module.const_defined? :Client
|
956
|
+
rescue ::LoadError
|
957
|
+
false
|
958
|
+
end
|
959
|
+
|
742
960
|
##
|
743
961
|
# Create a new client object for OnlineReturnPolicyService.
|
744
962
|
#
|
@@ -763,7 +981,7 @@ module Google
|
|
763
981
|
# configuration, encompassing return policies for both ads and free listings
|
764
982
|
# ## programs. This API defines the following resource model:
|
765
983
|
#
|
766
|
-
# [OnlineReturnPolicy]
|
984
|
+
# [OnlineReturnPolicy](/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1beta#google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy)
|
767
985
|
#
|
768
986
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
769
987
|
# Defaults to `:v1beta`.
|