google-shopping-merchant-accounts 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5655f6afa1645feae472b634c8f10d17f34aed945587213ebb5f21ee9b0029ac
4
- data.tar.gz: 50edcc4e7defef5af8033ad6e8629da9e3f962da240642adeff83b0b71447d46
3
+ metadata.gz: dad646f7c9e0010cbfca48f41495ac5e77e646b3da56766c224b19d972428688
4
+ data.tar.gz: 9210c031b0a38e07d763a55a587d658008c6fe38d80db2af216f877637b14631
5
5
  SHA512:
6
- metadata.gz: f7647e7493062ac671f2944177b3002be977a6f5d5b2e33795bd41b2629a5957268056bb05ed54a89b5d631afc7669f2a97ef094a38fbc9ecd9256e8e4c69ee0
7
- data.tar.gz: 7a54afd791ce9baee2adeaa1b43e1be013bf0a3e9b165fc06b881825286ea0ad676bf71bc5aafde8dd54fb07c3afe2706c940d2d76c1d4a955c336fcaa4ca579
6
+ metadata.gz: 8fd0aea4ddebc43d102828fc8b280e17d23ed3c08113c4491b4bfc29601659230763bf12f563328c9a893963343fcdb7ac9b264086029496f0834b57dd8352c4
7
+ data.tar.gz: 3f173a3da96febc399782430210576cce3cf319c8601be6404b631524a2ffe8cf0f2e24e89b568386c62392281f230cdaf5ab253936fab7d3ecf69124c816c71
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Ruby Client for the Merchant API
2
2
 
3
- Programmatically manage your Merchant Center accounts.
3
+ Programmatically manage your Merchant Center Accounts.
4
4
 
5
- Programmatically manage your Merchant Center accounts.
5
+ Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables you to programmatically manage your accounts. Conversions Sub-API: Enables you to programmatically manage your conversion sources for a merchant account. Datasources Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API: This bundle enables you to programmatically manage your local and regional inventories. Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically manage your notification subscriptions. Products Sub-API: This bundle enables you to programmatically manage your products. Promotions Sub-API: This bundle enables you to programmatically manage your promotions for products. Quota Sub-API: This bundle enables you to list your quotas for all APIs you are using. Reports Sub-API: This bundle enables you to programmatically retrieve reports and insights about products, their performance and their competitive environment.
6
6
 
7
7
  Actual client classes for the various versions of this API are defined in
8
8
  _versioned_ client gems, with names of the form `google-shopping-merchant-accounts-v*`.
@@ -21,7 +21,7 @@ module Google
21
21
  module Shopping
22
22
  module Merchant
23
23
  module Accounts
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -168,6 +168,41 @@ module Google
168
168
  service_module.const_get(:Client).new(&block)
169
169
  end
170
170
 
171
+ ##
172
+ # Create a new client object for AutofeedSettingsService.
173
+ #
174
+ # By default, this returns an instance of
175
+ # [Google::Shopping::Merchant::Accounts::V1beta::AutofeedSettingsService::Client](https://rubydoc.info/gems/google-shopping-merchant-accounts-v1beta/Google/Shopping/Merchant/Accounts/V1beta/AutofeedSettingsService/Client)
176
+ # for a gRPC client for version V1beta of the API.
177
+ # However, you can specify a different API version by passing it in the
178
+ # `version` parameter. If the AutofeedSettingsService service is
179
+ # supported by that API version, and the corresponding gem is available, the
180
+ # appropriate versioned client will be returned.
181
+ # You can also specify a different transport by passing `:rest` or `:grpc` in
182
+ # the `transport` parameter.
183
+ #
184
+ # ## About AutofeedSettingsService
185
+ #
186
+ # Service to support
187
+ # [autofeed](https://support.google.com/merchants/answer/7538732) setting.
188
+ #
189
+ # @param version [::String, ::Symbol] The API version to connect to. Optional.
190
+ # Defaults to `:v1beta`.
191
+ # @param transport [:grpc, :rest] The transport to use. Defaults to `:grpc`.
192
+ # @return [::Object] A client object for the specified version.
193
+ #
194
+ def self.autofeed_settings_service version: :v1beta, transport: :grpc, &block
195
+ require "google/shopping/merchant/accounts/#{version.to_s.downcase}"
196
+
197
+ package_name = Google::Shopping::Merchant::Accounts
198
+ .constants
199
+ .select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
200
+ .first
201
+ service_module = Google::Shopping::Merchant::Accounts.const_get(package_name).const_get(:AutofeedSettingsService)
202
+ service_module = service_module.const_get(:Rest) if transport == :rest
203
+ service_module.const_get(:Client).new(&block)
204
+ end
205
+
171
206
  ##
172
207
  # Create a new client object for BusinessIdentityService.
173
208
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-merchant-accounts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-10 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core
@@ -30,7 +30,7 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '0.0'
33
+ version: '0.2'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
36
  version: 2.a
@@ -40,11 +40,23 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: '0.0'
43
+ version: '0.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
46
  version: 2.a
47
- description: Programmatically manage your Merchant Center accounts.
47
+ description: 'Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables
48
+ you to programmatically manage your accounts. Conversions Sub-API: Enables you to
49
+ programmatically manage your conversion sources for a merchant account. Datasources
50
+ Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API:
51
+ This bundle enables you to programmatically manage your local and regional inventories.
52
+ Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local
53
+ inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically
54
+ manage your notification subscriptions. Products Sub-API: This bundle enables you
55
+ to programmatically manage your products. Promotions Sub-API: This bundle enables
56
+ you to programmatically manage your promotions for products. Quota Sub-API: This
57
+ bundle enables you to list your quotas for all APIs you are using. Reports Sub-API:
58
+ This bundle enables you to programmatically retrieve reports and insights about
59
+ products, their performance and their competitive environment.'
48
60
  email: googleapis-packages@google.com
49
61
  executables: []
50
62
  extensions: []
@@ -79,5 +91,5 @@ requirements: []
79
91
  rubygems_version: 3.5.6
80
92
  signing_key:
81
93
  specification_version: 4
82
- summary: Programmatically manage your Merchant Center accounts.
94
+ summary: Programmatically manage your Merchant Center Accounts.
83
95
  test_files: []