google-shopping-merchant-accounts 0.4.1 → 0.6.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: 16cc5aea6ec9245ed9bca8ad4e06cd3c180097e2595ac05d1857c0a4dd38d540
|
4
|
+
data.tar.gz: dee8156f1c24aae2f8191146e5a6575f3585c894231fbe5464a108808c6e8ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce02c8d9876f21b3bd3909f5400889526ab7eebf85e9d9b4513761d7f708d22b47313907061875bfcf6f0869a1d477cfa32d409808f9aaa2f3d48d27092bb6d6
|
7
|
+
data.tar.gz: e3ce1f9c1d3bf0a80b665374c2652122731ad4f48ebec1a284af593d28d2cbc6ceddd97b8c95f726a9b008b885fa9628c2aa43f3414337b9d334c63d23b03ac0
|
@@ -596,6 +596,77 @@ module Google
|
|
596
596
|
false
|
597
597
|
end
|
598
598
|
|
599
|
+
##
|
600
|
+
# Create a new client object for CheckoutSettingsService.
|
601
|
+
#
|
602
|
+
# By default, this returns an instance of
|
603
|
+
# [Google::Shopping::Merchant::Accounts::V1beta::CheckoutSettingsService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/CheckoutSettingsService/Client)
|
604
|
+
# for a gRPC client for version V1beta of the API.
|
605
|
+
# However, you can specify a different API version by passing it in the
|
606
|
+
# `version` parameter. If the CheckoutSettingsService service is
|
607
|
+
# supported by that API version, and the corresponding gem is available, the
|
608
|
+
# appropriate versioned client will be returned.
|
609
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
610
|
+
# the `transport` parameter.
|
611
|
+
#
|
612
|
+
# Raises an exception if the currently installed versioned client gem for the
|
613
|
+
# given API version does not support the given transport of the CheckoutSettingsService service.
|
614
|
+
# You can determine whether the method will succeed by calling
|
615
|
+
# {Google::Shopping::Merchant::Accounts.checkout_settings_service_available?}.
|
616
|
+
#
|
617
|
+
# ## About CheckoutSettingsService
|
618
|
+
#
|
619
|
+
# Service for supporting [checkout
|
620
|
+
# settings](https://support.google.com/merchants/answer/13945960).
|
621
|
+
#
|
622
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
623
|
+
# Defaults to `:v1beta`.
|
624
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
625
|
+
# @return [::Object] A client object for the specified version.
|
626
|
+
#
|
627
|
+
def self.checkout_settings_service version: :v1beta, transport: :grpc, &block
|
628
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
629
|
+
|
630
|
+
package_name = Google::Shopping::Merchant::Accounts
|
631
|
+
.constants
|
632
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
633
|
+
.first
|
634
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:CheckoutSettingsService)
|
635
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
636
|
+
service_module.const_get(:Client).new(&block)
|
637
|
+
end
|
638
|
+
|
639
|
+
##
|
640
|
+
# Determines whether the CheckoutSettingsService service is supported by the current client.
|
641
|
+
# If true, you can retrieve a client object by calling {Google::Shopping::Merchant::Accounts.checkout_settings_service}.
|
642
|
+
# If false, that method will raise an exception. This could happen if the given
|
643
|
+
# API version does not exist or does not support the CheckoutSettingsService service,
|
644
|
+
# or if the versioned client gem needs an update to support the CheckoutSettingsService service.
|
645
|
+
#
|
646
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
647
|
+
# Defaults to `:v1beta`.
|
648
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
649
|
+
# @return [boolean] Whether the service is available.
|
650
|
+
#
|
651
|
+
def self.checkout_settings_service_available? version: :v1beta, transport: :grpc
|
652
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
653
|
+
package_name = Google::Shopping::Merchant::Accounts
|
654
|
+
.constants
|
655
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
656
|
+
.first
|
657
|
+
return false unless package_name
|
658
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get package_name
|
659
|
+
return false unless service_module.const_defined? :CheckoutSettingsService
|
660
|
+
service_module = service_module.const_get :CheckoutSettingsService
|
661
|
+
if transport == :rest
|
662
|
+
return false unless service_module.const_defined? :Rest
|
663
|
+
service_module = service_module.const_get :Rest
|
664
|
+
end
|
665
|
+
service_module.const_defined? :Client
|
666
|
+
rescue ::LoadError
|
667
|
+
false
|
668
|
+
end
|
669
|
+
|
599
670
|
##
|
600
671
|
# Create a new client object for EmailPreferencesService.
|
601
672
|
#
|
@@ -669,6 +740,79 @@ module Google
|
|
669
740
|
false
|
670
741
|
end
|
671
742
|
|
743
|
+
##
|
744
|
+
# Create a new client object for GbpAccountsService.
|
745
|
+
#
|
746
|
+
# By default, this returns an instance of
|
747
|
+
# [Google::Shopping::Merchant::Accounts::V1beta::GbpAccountsService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/GbpAccountsService/Client)
|
748
|
+
# for a gRPC client for version V1beta of the API.
|
749
|
+
# However, you can specify a different API version by passing it in the
|
750
|
+
# `version` parameter. If the GbpAccountsService service is
|
751
|
+
# supported by that API version, and the corresponding gem is available, the
|
752
|
+
# appropriate versioned client will be returned.
|
753
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
754
|
+
# the `transport` parameter.
|
755
|
+
#
|
756
|
+
# Raises an exception if the currently installed versioned client gem for the
|
757
|
+
# given API version does not support the given transport of the GbpAccountsService service.
|
758
|
+
# You can determine whether the method will succeed by calling
|
759
|
+
# {Google::Shopping::Merchant::Accounts.gbp_accounts_service_available?}.
|
760
|
+
#
|
761
|
+
# ## About GbpAccountsService
|
762
|
+
#
|
763
|
+
# The service facilitates the management of a merchant's Google Business
|
764
|
+
# Profile (GBP) account settings. This API defines the following resource
|
765
|
+
# model:
|
766
|
+
# - [GbpAccount][google.shopping.merchant.accounts.v1.GbpAccount]
|
767
|
+
#
|
768
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
769
|
+
# Defaults to `:v1beta`.
|
770
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
771
|
+
# @return [::Object] A client object for the specified version.
|
772
|
+
#
|
773
|
+
def self.gbp_accounts_service version: :v1beta, transport: :grpc, &block
|
774
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
775
|
+
|
776
|
+
package_name = Google::Shopping::Merchant::Accounts
|
777
|
+
.constants
|
778
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
779
|
+
.first
|
780
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:GbpAccountsService)
|
781
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
782
|
+
service_module.const_get(:Client).new(&block)
|
783
|
+
end
|
784
|
+
|
785
|
+
##
|
786
|
+
# Determines whether the GbpAccountsService service is supported by the current client.
|
787
|
+
# If true, you can retrieve a client object by calling {Google::Shopping::Merchant::Accounts.gbp_accounts_service}.
|
788
|
+
# If false, that method will raise an exception. This could happen if the given
|
789
|
+
# API version does not exist or does not support the GbpAccountsService service,
|
790
|
+
# or if the versioned client gem needs an update to support the GbpAccountsService service.
|
791
|
+
#
|
792
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
793
|
+
# Defaults to `:v1beta`.
|
794
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
795
|
+
# @return [boolean] Whether the service is available.
|
796
|
+
#
|
797
|
+
def self.gbp_accounts_service_available? version: :v1beta, transport: :grpc
|
798
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
799
|
+
package_name = Google::Shopping::Merchant::Accounts
|
800
|
+
.constants
|
801
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
802
|
+
.first
|
803
|
+
return false unless package_name
|
804
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get package_name
|
805
|
+
return false unless service_module.const_defined? :GbpAccountsService
|
806
|
+
service_module = service_module.const_get :GbpAccountsService
|
807
|
+
if transport == :rest
|
808
|
+
return false unless service_module.const_defined? :Rest
|
809
|
+
service_module = service_module.const_get :Rest
|
810
|
+
end
|
811
|
+
service_module.const_defined? :Client
|
812
|
+
rescue ::LoadError
|
813
|
+
false
|
814
|
+
end
|
815
|
+
|
672
816
|
##
|
673
817
|
# Create a new client object for HomepageService.
|
674
818
|
#
|
@@ -739,6 +883,151 @@ module Google
|
|
739
883
|
false
|
740
884
|
end
|
741
885
|
|
886
|
+
##
|
887
|
+
# Create a new client object for LfpProvidersService.
|
888
|
+
#
|
889
|
+
# By default, this returns an instance of
|
890
|
+
# [Google::Shopping::Merchant::Accounts::V1beta::LfpProvidersService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/LfpProvidersService/Client)
|
891
|
+
# for a gRPC client for version V1beta of the API.
|
892
|
+
# However, you can specify a different API version by passing it in the
|
893
|
+
# `version` parameter. If the LfpProvidersService service is
|
894
|
+
# supported by that API version, and the corresponding gem is available, the
|
895
|
+
# appropriate versioned client will be returned.
|
896
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
897
|
+
# the `transport` parameter.
|
898
|
+
#
|
899
|
+
# Raises an exception if the currently installed versioned client gem for the
|
900
|
+
# given API version does not support the given transport of the LfpProvidersService service.
|
901
|
+
# You can determine whether the method will succeed by calling
|
902
|
+
# {Google::Shopping::Merchant::Accounts.lfp_providers_service_available?}.
|
903
|
+
#
|
904
|
+
# ## About LfpProvidersService
|
905
|
+
#
|
906
|
+
# The service facilitates the management of a merchant's LFP provider settings.
|
907
|
+
# This API defines the following resource model:
|
908
|
+
# - [LfpProvider][google.shopping.merchant.accounts.v1.LfpProvider]
|
909
|
+
#
|
910
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
911
|
+
# Defaults to `:v1beta`.
|
912
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
913
|
+
# @return [::Object] A client object for the specified version.
|
914
|
+
#
|
915
|
+
def self.lfp_providers_service version: :v1beta, transport: :grpc, &block
|
916
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
917
|
+
|
918
|
+
package_name = Google::Shopping::Merchant::Accounts
|
919
|
+
.constants
|
920
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
921
|
+
.first
|
922
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:LfpProvidersService)
|
923
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
924
|
+
service_module.const_get(:Client).new(&block)
|
925
|
+
end
|
926
|
+
|
927
|
+
##
|
928
|
+
# Determines whether the LfpProvidersService service is supported by the current client.
|
929
|
+
# If true, you can retrieve a client object by calling {Google::Shopping::Merchant::Accounts.lfp_providers_service}.
|
930
|
+
# If false, that method will raise an exception. This could happen if the given
|
931
|
+
# API version does not exist or does not support the LfpProvidersService service,
|
932
|
+
# or if the versioned client gem needs an update to support the LfpProvidersService service.
|
933
|
+
#
|
934
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
935
|
+
# Defaults to `:v1beta`.
|
936
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
937
|
+
# @return [boolean] Whether the service is available.
|
938
|
+
#
|
939
|
+
def self.lfp_providers_service_available? version: :v1beta, transport: :grpc
|
940
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
941
|
+
package_name = Google::Shopping::Merchant::Accounts
|
942
|
+
.constants
|
943
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
944
|
+
.first
|
945
|
+
return false unless package_name
|
946
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get package_name
|
947
|
+
return false unless service_module.const_defined? :LfpProvidersService
|
948
|
+
service_module = service_module.const_get :LfpProvidersService
|
949
|
+
if transport == :rest
|
950
|
+
return false unless service_module.const_defined? :Rest
|
951
|
+
service_module = service_module.const_get :Rest
|
952
|
+
end
|
953
|
+
service_module.const_defined? :Client
|
954
|
+
rescue ::LoadError
|
955
|
+
false
|
956
|
+
end
|
957
|
+
|
958
|
+
##
|
959
|
+
# Create a new client object for OmnichannelSettingsService.
|
960
|
+
#
|
961
|
+
# By default, this returns an instance of
|
962
|
+
# [Google::Shopping::Merchant::Accounts::V1beta::OmnichannelSettingsService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/OmnichannelSettingsService/Client)
|
963
|
+
# for a gRPC client for version V1beta of the API.
|
964
|
+
# However, you can specify a different API version by passing it in the
|
965
|
+
# `version` parameter. If the OmnichannelSettingsService service is
|
966
|
+
# supported by that API version, and the corresponding gem is available, the
|
967
|
+
# appropriate versioned client will be returned.
|
968
|
+
# You can also specify a different transport by passing `:rest` or `:grpc` in
|
969
|
+
# the `transport` parameter.
|
970
|
+
#
|
971
|
+
# Raises an exception if the currently installed versioned client gem for the
|
972
|
+
# given API version does not support the given transport of the OmnichannelSettingsService service.
|
973
|
+
# You can determine whether the method will succeed by calling
|
974
|
+
# {Google::Shopping::Merchant::Accounts.omnichannel_settings_service_available?}.
|
975
|
+
#
|
976
|
+
# ## About OmnichannelSettingsService
|
977
|
+
#
|
978
|
+
# The service facilitates the management of a merchant's omnichannel settings.
|
979
|
+
# ## This API defines the following resource model:
|
980
|
+
#
|
981
|
+
# [OmnichannelSetting][google.shopping.merchant.accounts.v1.OmnichannelSetting]
|
982
|
+
#
|
983
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
984
|
+
# Defaults to `:v1beta`.
|
985
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
986
|
+
# @return [::Object] A client object for the specified version.
|
987
|
+
#
|
988
|
+
def self.omnichannel_settings_service version: :v1beta, transport: :grpc, &block
|
989
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
990
|
+
|
991
|
+
package_name = Google::Shopping::Merchant::Accounts
|
992
|
+
.constants
|
993
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
994
|
+
.first
|
995
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:OmnichannelSettingsService)
|
996
|
+
service_module = service_module.const_get(:Rest) if transport == :rest
|
997
|
+
service_module.const_get(:Client).new(&block)
|
998
|
+
end
|
999
|
+
|
1000
|
+
##
|
1001
|
+
# Determines whether the OmnichannelSettingsService service is supported by the current client.
|
1002
|
+
# If true, you can retrieve a client object by calling {Google::Shopping::Merchant::Accounts.omnichannel_settings_service}.
|
1003
|
+
# If false, that method will raise an exception. This could happen if the given
|
1004
|
+
# API version does not exist or does not support the OmnichannelSettingsService service,
|
1005
|
+
# or if the versioned client gem needs an update to support the OmnichannelSettingsService service.
|
1006
|
+
#
|
1007
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
1008
|
+
# Defaults to `:v1beta`.
|
1009
|
+
# @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
|
1010
|
+
# @return [boolean] Whether the service is available.
|
1011
|
+
#
|
1012
|
+
def self.omnichannel_settings_service_available? version: :v1beta, transport: :grpc
|
1013
|
+
require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
|
1014
|
+
package_name = Google::Shopping::Merchant::Accounts
|
1015
|
+
.constants
|
1016
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
1017
|
+
.first
|
1018
|
+
return false unless package_name
|
1019
|
+
service_module = Google::Shopping::Merchant::Accounts.const_get package_name
|
1020
|
+
return false unless service_module.const_defined? :OmnichannelSettingsService
|
1021
|
+
service_module = service_module.const_get :OmnichannelSettingsService
|
1022
|
+
if transport == :rest
|
1023
|
+
return false unless service_module.const_defined? :Rest
|
1024
|
+
service_module = service_module.const_get :Rest
|
1025
|
+
end
|
1026
|
+
service_module.const_defined? :Client
|
1027
|
+
rescue ::LoadError
|
1028
|
+
false
|
1029
|
+
end
|
1030
|
+
|
742
1031
|
##
|
743
1032
|
# Create a new client object for OnlineReturnPolicyService.
|
744
1033
|
#
|
@@ -763,7 +1052,7 @@ module Google
|
|
763
1052
|
# configuration, encompassing return policies for both ads and free listings
|
764
1053
|
# ## programs. This API defines the following resource model:
|
765
1054
|
#
|
766
|
-
# [OnlineReturnPolicy]
|
1055
|
+
# [OnlineReturnPolicy](/merchant/api/reference/rpc/google.shopping.merchant.accounts.v1beta#google.shopping.merchant.accounts.v1beta.OnlineReturnPolicy)
|
767
1056
|
#
|
768
1057
|
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
769
1058
|
# Defaults to `:v1beta`.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-shopping-merchant-accounts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
requirements: []
|
89
|
-
rubygems_version: 3.6.
|
89
|
+
rubygems_version: 3.6.9
|
90
90
|
specification_version: 4
|
91
91
|
summary: Programmatically manage your Merchant Center Accounts.
|
92
92
|
test_files: []
|