google-apis-merchantapi_accounts_v1beta 0.4.0 → 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: 9568bc5ed2bf3228b780e868f01ff94c99ada1f9afccb484f90ee2e8d20a9ff4
4
- data.tar.gz: e51a9b7371b958d8563162d0853a93b9e70382cd8e108c1391dcef5c3a5e57c5
3
+ metadata.gz: aa0ec994d60103ff670ad0902717badc53b3c30f85d6a6da755cab9956770f6d
4
+ data.tar.gz: 4c2069aa84fae711d4e01b340a11558bcb5f43caa6391e2c22469bcbaaca14e6
5
5
  SHA512:
6
- metadata.gz: 3b556b918e6c12bb68ec42049570ff155cfa65a6c3b20d1500aaf4feeb96e29b83e6b6ea6212dbd5d83c73e707fc7f7bba2bddd0e9d469210deba5fa216f2a0b
7
- data.tar.gz: 2abacb9e345b36b8e54b23eab42ffd6a78a119c1acc2ef26d2b11b54e61bd0b83d8c9c4ee567d30e5774770160872e7c8c33e7bb785f791848489330971512aa
6
+ metadata.gz: 89fe309c72db3516fc029cd88bfefa4dc74eba17a7f249a951300ff09cfad9ba48991bd0a828c9a17e6639c60983e3b78db4b36d99642bd025c93da0080b4b1c
7
+ data.tar.gz: 960fbad862a126547383d54a026510479ccd5b99055f19a94bcefc7aa74c6e9d3143be4c4370c841d0a88926b136e2a200df100f7bf540e479146fbadc8b187b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-merchantapi_accounts_v1beta
2
2
 
3
+ ### v0.6.0 (2025-03-09)
4
+
5
+ * Regenerated from discovery document revision 20250301
6
+
7
+ ### v0.5.0 (2025-02-26)
8
+
9
+ * Regenerated from discovery document revision 20250220
10
+ * Regenerated using generator version 0.16.0
11
+
3
12
  ### v0.4.0 (2024-12-15)
4
13
 
5
14
  * Regenerated from discovery document revision 20241210
@@ -86,7 +86,7 @@ module Google
86
86
  # @return [String]
87
87
  attr_accessor :account_name
88
88
 
89
- # Whether this account contains adult content.
89
+ # Optional. Whether this account contains adult content.
90
90
  # Corresponds to the JSON property `adultContent`
91
91
  # @return [Boolean]
92
92
  attr_accessor :adult_content
@@ -223,6 +223,34 @@ module Google
223
223
  end
224
224
  end
225
225
 
226
+ # Instruction for adding a user to the account during creation.
227
+ class AddUser
228
+ include Google::Apis::Core::Hashable
229
+
230
+ # The `User` message represents a user associated with a Merchant Center account.
231
+ # It is used to manage user permissions and access rights within the account.
232
+ # For more information, see [Frequently asked questions about people and access
233
+ # levels](//support.google.com/merchants/answer/12160472).
234
+ # Corresponds to the JSON property `user`
235
+ # @return [Google::Apis::MerchantapiAccountsV1beta::User]
236
+ attr_accessor :user
237
+
238
+ # Required. The email address of the user (for example, `john.doe@gmail.com`).
239
+ # Corresponds to the JSON property `userId`
240
+ # @return [String]
241
+ attr_accessor :user_id
242
+
243
+ def initialize(**args)
244
+ update!(**args)
245
+ end
246
+
247
+ # Update properties of this object
248
+ def update!(**args)
249
+ @user = args[:user] if args.key?(:user)
250
+ @user_id = args[:user_id] if args.key?(:user_id)
251
+ end
252
+ end
253
+
226
254
  # Shipping address of the warehouse.
227
255
  class Address
228
256
  include Google::Apis::Core::Hashable
@@ -567,6 +595,12 @@ module Google
567
595
  attr_accessor :service
568
596
 
569
597
  # Optional. Users to be added to the account.
598
+ # Corresponds to the JSON property `user`
599
+ # @return [Array<Google::Apis::MerchantapiAccountsV1beta::AddUser>]
600
+ attr_accessor :user
601
+
602
+ # Optional. Users to be added to the account. This field is deprecated and will
603
+ # not exist after the API evolves out of beta. Use the `user` field instead.
570
604
  # Corresponds to the JSON property `users`
571
605
  # @return [Array<Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest>]
572
606
  attr_accessor :users
@@ -579,6 +613,7 @@ module Google
579
613
  def update!(**args)
580
614
  @account = args[:account] if args.key?(:account)
581
615
  @service = args[:service] if args.key?(:service)
616
+ @user = args[:user] if args.key?(:user)
582
617
  @users = args[:users] if args.key?(:users)
583
618
  end
584
619
  end
@@ -1534,6 +1569,12 @@ module Google
1534
1569
  # @return [Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee]
1535
1570
  attr_accessor :return_shipping_fee
1536
1571
 
1572
+ # Optional. Overrides to the general policy for orders placed during a specific
1573
+ # set of time intervals.
1574
+ # Corresponds to the JSON property `seasonalOverrides`
1575
+ # @return [Array<Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride>]
1576
+ attr_accessor :seasonal_overrides
1577
+
1537
1578
  def initialize(**args)
1538
1579
  update!(**args)
1539
1580
  end
@@ -1553,6 +1594,7 @@ module Google
1553
1594
  @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
1554
1595
  @return_policy_uri = args[:return_policy_uri] if args.key?(:return_policy_uri)
1555
1596
  @return_shipping_fee = args[:return_shipping_fee] if args.key?(:return_shipping_fee)
1597
+ @seasonal_overrides = args[:seasonal_overrides] if args.key?(:seasonal_overrides)
1556
1598
  end
1557
1599
  end
1558
1600
 
@@ -1874,22 +1916,31 @@ module Google
1874
1916
  class ProductChange
1875
1917
  include Google::Apis::Core::Hashable
1876
1918
 
1877
- # The new value of the changed resource or attribute.
1919
+ # The new value of the changed resource or attribute. If empty, it means that
1920
+ # the product was deleted. Will have one of these values : (`approved`, `pending`
1921
+ # , `disapproved`, ``)
1878
1922
  # Corresponds to the JSON property `newValue`
1879
1923
  # @return [String]
1880
1924
  attr_accessor :new_value
1881
1925
 
1882
- # The old value of the changed resource or attribute.
1926
+ # The old value of the changed resource or attribute. If empty, it means that
1927
+ # the product was created. Will have one of these values : (`approved`, `pending`
1928
+ # , `disapproved`, ``)
1883
1929
  # Corresponds to the JSON property `oldValue`
1884
1930
  # @return [String]
1885
1931
  attr_accessor :old_value
1886
1932
 
1887
- # Countries that have the change (if applicable)
1933
+ # Countries that have the change (if applicable). Represented in the ISO 3166
1934
+ # format.
1888
1935
  # Corresponds to the JSON property `regionCode`
1889
1936
  # @return [String]
1890
1937
  attr_accessor :region_code
1891
1938
 
1892
- # Reporting contexts that have the change (if applicable)
1939
+ # Reporting contexts that have the change (if applicable). Currently this field
1940
+ # supports only (`SHOPPING_ADS`, `LOCAL_INVENTORY_ADS`, `YOUTUBE_SHOPPING`, `
1941
+ # YOUTUBE_CHECKOUT`, `YOUTUBE_AFFILIATE`) from the enum value [
1942
+ # ReportingContextEnum](/merchant/api/reference/rest/Shared.Types/
1943
+ # ReportingContextEnum)
1893
1944
  # Corresponds to the JSON property `reportingContext`
1894
1945
  # @return [String]
1895
1946
  attr_accessor :reporting_context
@@ -1929,8 +1980,13 @@ module Google
1929
1980
  # @return [Array<Google::Apis::MerchantapiAccountsV1beta::ProductChange>]
1930
1981
  attr_accessor :changes
1931
1982
 
1932
- # The product expiration time. This field will not bet set if the notification
1933
- # is sent for a product deletion event.
1983
+ # The time at which the event was generated.
1984
+ # Corresponds to the JSON property `eventTime`
1985
+ # @return [String]
1986
+ attr_accessor :event_time
1987
+
1988
+ # Optional. The product expiration time. This field will not bet set if the
1989
+ # notification is sent for a product deletion event.
1934
1990
  # Corresponds to the JSON property `expirationTime`
1935
1991
  # @return [String]
1936
1992
  attr_accessor :expiration_time
@@ -1941,8 +1997,7 @@ module Google
1941
1997
  # @return [String]
1942
1998
  attr_accessor :managing_account
1943
1999
 
1944
- # The product name. Format: ``product.name=accounts/`account`/products/`product``
1945
- # `
2000
+ # The product name. Format: `accounts/`account`/products/`product``
1946
2001
  # Corresponds to the JSON property `resource`
1947
2002
  # @return [String]
1948
2003
  attr_accessor :resource
@@ -1966,6 +2021,7 @@ module Google
1966
2021
  @account = args[:account] if args.key?(:account)
1967
2022
  @attribute = args[:attribute] if args.key?(:attribute)
1968
2023
  @changes = args[:changes] if args.key?(:changes)
2024
+ @event_time = args[:event_time] if args.key?(:event_time)
1969
2025
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1970
2026
  @managing_account = args[:managing_account] if args.key?(:managing_account)
1971
2027
  @resource = args[:resource] if args.key?(:resource)
@@ -1979,7 +2035,9 @@ module Google
1979
2035
  # example of this is the [Free product listings](https://support.google.com/
1980
2036
  # merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU)
1981
2037
  # program, which enables products from a merchant's store to be shown across
1982
- # Google for free.
2038
+ # Google for free. The following list is the available set of program resource
2039
+ # IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-
2040
+ # shopping-checkout`
1983
2041
  class Program
1984
2042
  include Google::Apis::Core::Hashable
1985
2043
 
@@ -2283,6 +2341,76 @@ module Google
2283
2341
  end
2284
2342
  end
2285
2343
 
2344
+ #
2345
+ class SeasonalOverride
2346
+ include Google::Apis::Core::Hashable
2347
+
2348
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2349
+ # day and time zone are either specified elsewhere or are insignificant. The
2350
+ # date is relative to the Gregorian Calendar. This can represent one of the
2351
+ # following: * A full date, with non-zero year, month, and day values. * A month
2352
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2353
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2354
+ # example, a credit card expiration date). Related types: * google.type.
2355
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2356
+ # Corresponds to the JSON property `begin`
2357
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2358
+ attr_accessor :begin
2359
+
2360
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2361
+ # day and time zone are either specified elsewhere or are insignificant. The
2362
+ # date is relative to the Gregorian Calendar. This can represent one of the
2363
+ # following: * A full date, with non-zero year, month, and day values. * A month
2364
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2365
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2366
+ # example, a credit card expiration date). Related types: * google.type.
2367
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2368
+ # Corresponds to the JSON property `end`
2369
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2370
+ attr_accessor :end
2371
+
2372
+ # Required. Display name of this seasonal override in Merchant Center.
2373
+ # Corresponds to the JSON property `label`
2374
+ # @return [String]
2375
+ attr_accessor :label
2376
+
2377
+ # The available policies.
2378
+ # Corresponds to the JSON property `policy`
2379
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Policy]
2380
+ attr_accessor :policy
2381
+
2382
+ # Number of days (from the delivery date) that the product can be returned.
2383
+ # Corresponds to the JSON property `returnDays`
2384
+ # @return [Fixnum]
2385
+ attr_accessor :return_days
2386
+
2387
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2388
+ # day and time zone are either specified elsewhere or are insignificant. The
2389
+ # date is relative to the Gregorian Calendar. This can represent one of the
2390
+ # following: * A full date, with non-zero year, month, and day values. * A month
2391
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2392
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2393
+ # example, a credit card expiration date). Related types: * google.type.
2394
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2395
+ # Corresponds to the JSON property `returnUntilDate`
2396
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2397
+ attr_accessor :return_until_date
2398
+
2399
+ def initialize(**args)
2400
+ update!(**args)
2401
+ end
2402
+
2403
+ # Update properties of this object
2404
+ def update!(**args)
2405
+ @begin = args[:begin] if args.key?(:begin)
2406
+ @end = args[:end] if args.key?(:end)
2407
+ @label = args[:label] if args.key?(:label)
2408
+ @policy = args[:policy] if args.key?(:policy)
2409
+ @return_days = args[:return_days] if args.key?(:return_days)
2410
+ @return_until_date = args[:return_until_date] if args.key?(:return_until_date)
2411
+ end
2412
+ end
2413
+
2286
2414
  # Shipping service.
2287
2415
  class Service
2288
2416
  include Google::Apis::Core::Hashable
@@ -2815,7 +2943,7 @@ module Google
2815
2943
  class User
2816
2944
  include Google::Apis::Core::Hashable
2817
2945
 
2818
- # Optional. The [access rights](https://support.google.com/merchants/answer/
2946
+ # Required. The [access rights](https://support.google.com/merchants/answer/
2819
2947
  # 12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
2820
2948
  # Corresponds to the JSON property `accessRights`
2821
2949
  # @return [Array<String>]
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module MerchantapiAccountsV1beta
18
18
  # Version of the google-apis-merchantapi_accounts_v1beta gem
19
- GEM_VERSION = "0.4.0"
19
+ GEM_VERSION = "0.6.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.15.1"
22
+ GENERATOR_VERSION = "0.16.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20241210"
25
+ REVISION = "20250301"
26
26
  end
27
27
  end
28
28
  end
@@ -52,6 +52,12 @@ module Google
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
+ class AddUser
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
55
61
  class Address
56
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
63
 
@@ -376,6 +382,12 @@ module Google
376
382
  include Google::Apis::Core::JsonObjectSupport
377
383
  end
378
384
 
385
+ class SeasonalOverride
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
379
391
  class Service
380
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
381
393
 
@@ -542,6 +554,15 @@ module Google
542
554
  end
543
555
  end
544
556
 
557
+ class AddUser
558
+ # @private
559
+ class Representation < Google::Apis::Core::JsonRepresentation
560
+ property :user, as: 'user', class: Google::Apis::MerchantapiAccountsV1beta::User, decorator: Google::Apis::MerchantapiAccountsV1beta::User::Representation
561
+
562
+ property :user_id, as: 'userId'
563
+ end
564
+ end
565
+
545
566
  class Address
546
567
  # @private
547
568
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -629,6 +650,8 @@ module Google
629
650
 
630
651
  collection :service, as: 'service', class: Google::Apis::MerchantapiAccountsV1beta::AddAccountService, decorator: Google::Apis::MerchantapiAccountsV1beta::AddAccountService::Representation
631
652
 
653
+ collection :user, as: 'user', class: Google::Apis::MerchantapiAccountsV1beta::AddUser, decorator: Google::Apis::MerchantapiAccountsV1beta::AddUser::Representation
654
+
632
655
  collection :users, as: 'users', class: Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest, decorator: Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest::Representation
633
656
 
634
657
  end
@@ -911,6 +934,8 @@ module Google
911
934
  property :return_policy_uri, as: 'returnPolicyUri'
912
935
  property :return_shipping_fee, as: 'returnShippingFee', class: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee, decorator: Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee::Representation
913
936
 
937
+ collection :seasonal_overrides, as: 'seasonalOverrides', class: Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride, decorator: Google::Apis::MerchantapiAccountsV1beta::SeasonalOverride::Representation
938
+
914
939
  end
915
940
  end
916
941
 
@@ -991,6 +1016,7 @@ module Google
991
1016
  property :attribute, as: 'attribute'
992
1017
  collection :changes, as: 'changes', class: Google::Apis::MerchantapiAccountsV1beta::ProductChange, decorator: Google::Apis::MerchantapiAccountsV1beta::ProductChange::Representation
993
1018
 
1019
+ property :event_time, as: 'eventTime'
994
1020
  property :expiration_time, as: 'expirationTime'
995
1021
  property :managing_account, as: 'managingAccount'
996
1022
  property :resource, as: 'resource'
@@ -1084,6 +1110,22 @@ module Google
1084
1110
  end
1085
1111
  end
1086
1112
 
1113
+ class SeasonalOverride
1114
+ # @private
1115
+ class Representation < Google::Apis::Core::JsonRepresentation
1116
+ property :begin, as: 'begin', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1117
+
1118
+ property :end, as: 'end', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1119
+
1120
+ property :label, as: 'label'
1121
+ property :policy, as: 'policy', class: Google::Apis::MerchantapiAccountsV1beta::Policy, decorator: Google::Apis::MerchantapiAccountsV1beta::Policy::Representation
1122
+
1123
+ property :return_days, as: 'returnDays'
1124
+ property :return_until_date, as: 'returnUntilDate', class: Google::Apis::MerchantapiAccountsV1beta::Date, decorator: Google::Apis::MerchantapiAccountsV1beta::Date::Representation
1125
+
1126
+ end
1127
+ end
1128
+
1087
1129
  class Service
1088
1130
  # @private
1089
1131
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -156,11 +156,18 @@ module Google
156
156
  # the request such as page size or filters. This is not just listing the sub-
157
157
  # accounts of an MCA, but all accounts the calling user has access to including
158
158
  # other MCAs, linked accounts, standalone accounts and so on. If no filter is
159
- # provided, then it returns accounts the user is directly added to.
159
+ # provided, then it returns all the accounts the user has access to. This method
160
+ # is eventually consistent, meaning changes such as creating, updating an
161
+ # account or a change of relationships between accounts may not show up in the
162
+ # results immediately. Instead, these changes propagate over a short period,
163
+ # after which the updated information can match the associated predicates. That
164
+ # means, that searching by account name might not return a recently changed
165
+ # account even though it satisfies the predicate.
160
166
  # @param [String] filter
161
- # Optional. Returns only accounts that match the [filter](/merchant/api/guides/
162
- # accounts/filter). For more details, see the [filter syntax reference](/
163
- # merchant/api/guides/accounts/filter-syntax).
167
+ # Optional. Returns only accounts that match the [filter](https://developers.
168
+ # google.com/merchant/api/guides/accounts/filter). For more details, see the [
169
+ # filter syntax reference](https://developers.google.com/merchant/api/guides/
170
+ # accounts/filter-syntax).
164
171
  # @param [Fixnum] page_size
165
172
  # Optional. The maximum number of accounts to return. The service may return
166
173
  # fewer than this value. If unspecified, at most 250 accounts are returned. The
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_accounts_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-15 00:00:00.000000000 Z
10
+ date: 2025-03-09 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: google-apis-core
@@ -58,9 +57,8 @@ licenses:
58
57
  metadata:
59
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.4.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.6.0
62
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta
63
- post_install_message:
64
62
  rdoc_options: []
65
63
  require_paths:
66
64
  - lib
@@ -75,8 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
73
  - !ruby/object:Gem::Version
76
74
  version: '0'
77
75
  requirements: []
78
- rubygems_version: 3.5.23
79
- signing_key:
76
+ rubygems_version: 3.6.5
80
77
  specification_version: 4
81
78
  summary: Simple REST client for Merchant API AccountsV1beta
82
79
  test_files: []