google-apis-merchantapi_accounts_v1beta 0.4.0 → 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: 9568bc5ed2bf3228b780e868f01ff94c99ada1f9afccb484f90ee2e8d20a9ff4
4
- data.tar.gz: e51a9b7371b958d8563162d0853a93b9e70382cd8e108c1391dcef5c3a5e57c5
3
+ metadata.gz: e7b5d1f0824deb1069f510d8b251be9505149303320b61e387886eeb333378d9
4
+ data.tar.gz: 95062555310c64afd53e54cae85bd90690ce119d00be5744ced83550d193d75f
5
5
  SHA512:
6
- metadata.gz: 3b556b918e6c12bb68ec42049570ff155cfa65a6c3b20d1500aaf4feeb96e29b83e6b6ea6212dbd5d83c73e707fc7f7bba2bddd0e9d469210deba5fa216f2a0b
7
- data.tar.gz: 2abacb9e345b36b8e54b23eab42ffd6a78a119c1acc2ef26d2b11b54e61bd0b83d8c9c4ee567d30e5774770160872e7c8c33e7bb785f791848489330971512aa
6
+ metadata.gz: 1150f65dffb58f0d02b62df635daf5c99e0098470544eddc6054aa65b322f48f43fa0be7f8d4340dfaa79a85d4d02d7dcbe481c30e0f5a6d7982aa8a1c3b3a66
7
+ data.tar.gz: 9b0851e7a8db3873bf835d4f9a521b29669a44c7b1715309c99cff9a056c79d48e78be1402540e8dbece56085507360aaa16f3ced92dee1439c66ca6c351e558
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-merchantapi_accounts_v1beta
2
2
 
3
+ ### v0.5.0 (2025-02-26)
4
+
5
+ * Regenerated from discovery document revision 20250220
6
+ * Regenerated using generator version 0.16.0
7
+
3
8
  ### v0.4.0 (2024-12-15)
4
9
 
5
10
  * 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
 
@@ -1929,6 +1971,11 @@ module Google
1929
1971
  # @return [Array<Google::Apis::MerchantapiAccountsV1beta::ProductChange>]
1930
1972
  attr_accessor :changes
1931
1973
 
1974
+ # The time at which the event was generated.
1975
+ # Corresponds to the JSON property `eventTime`
1976
+ # @return [String]
1977
+ attr_accessor :event_time
1978
+
1932
1979
  # The product expiration time. This field will not bet set if the notification
1933
1980
  # is sent for a product deletion event.
1934
1981
  # Corresponds to the JSON property `expirationTime`
@@ -1966,6 +2013,7 @@ module Google
1966
2013
  @account = args[:account] if args.key?(:account)
1967
2014
  @attribute = args[:attribute] if args.key?(:attribute)
1968
2015
  @changes = args[:changes] if args.key?(:changes)
2016
+ @event_time = args[:event_time] if args.key?(:event_time)
1969
2017
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1970
2018
  @managing_account = args[:managing_account] if args.key?(:managing_account)
1971
2019
  @resource = args[:resource] if args.key?(:resource)
@@ -1979,7 +2027,9 @@ module Google
1979
2027
  # example of this is the [Free product listings](https://support.google.com/
1980
2028
  # merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU)
1981
2029
  # program, which enables products from a merchant's store to be shown across
1982
- # Google for free.
2030
+ # Google for free. The following list is the available set of program resource
2031
+ # IDs accessible through the API: * `free-listings` * `shopping-ads` * `youtube-
2032
+ # shopping-checkout`
1983
2033
  class Program
1984
2034
  include Google::Apis::Core::Hashable
1985
2035
 
@@ -2283,6 +2333,76 @@ module Google
2283
2333
  end
2284
2334
  end
2285
2335
 
2336
+ #
2337
+ class SeasonalOverride
2338
+ include Google::Apis::Core::Hashable
2339
+
2340
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2341
+ # day and time zone are either specified elsewhere or are insignificant. The
2342
+ # date is relative to the Gregorian Calendar. This can represent one of the
2343
+ # following: * A full date, with non-zero year, month, and day values. * A month
2344
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2345
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2346
+ # example, a credit card expiration date). Related types: * google.type.
2347
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2348
+ # Corresponds to the JSON property `begin`
2349
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2350
+ attr_accessor :begin
2351
+
2352
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2353
+ # day and time zone are either specified elsewhere or are insignificant. The
2354
+ # date is relative to the Gregorian Calendar. This can represent one of the
2355
+ # following: * A full date, with non-zero year, month, and day values. * A month
2356
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2357
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2358
+ # example, a credit card expiration date). Related types: * google.type.
2359
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2360
+ # Corresponds to the JSON property `end`
2361
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2362
+ attr_accessor :end
2363
+
2364
+ # Required. Display name of this seasonal override in Merchant Center.
2365
+ # Corresponds to the JSON property `label`
2366
+ # @return [String]
2367
+ attr_accessor :label
2368
+
2369
+ # The available policies.
2370
+ # Corresponds to the JSON property `policy`
2371
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Policy]
2372
+ attr_accessor :policy
2373
+
2374
+ # Number of days (from the delivery date) that the product can be returned.
2375
+ # Corresponds to the JSON property `returnDays`
2376
+ # @return [Fixnum]
2377
+ attr_accessor :return_days
2378
+
2379
+ # Represents a whole or partial calendar date, such as a birthday. The time of
2380
+ # day and time zone are either specified elsewhere or are insignificant. The
2381
+ # date is relative to the Gregorian Calendar. This can represent one of the
2382
+ # following: * A full date, with non-zero year, month, and day values. * A month
2383
+ # and day, with a zero year (for example, an anniversary). * A year on its own,
2384
+ # with a zero month and a zero day. * A year and month, with a zero day (for
2385
+ # example, a credit card expiration date). Related types: * google.type.
2386
+ # TimeOfDay * google.type.DateTime * google.protobuf.Timestamp
2387
+ # Corresponds to the JSON property `returnUntilDate`
2388
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Date]
2389
+ attr_accessor :return_until_date
2390
+
2391
+ def initialize(**args)
2392
+ update!(**args)
2393
+ end
2394
+
2395
+ # Update properties of this object
2396
+ def update!(**args)
2397
+ @begin = args[:begin] if args.key?(:begin)
2398
+ @end = args[:end] if args.key?(:end)
2399
+ @label = args[:label] if args.key?(:label)
2400
+ @policy = args[:policy] if args.key?(:policy)
2401
+ @return_days = args[:return_days] if args.key?(:return_days)
2402
+ @return_until_date = args[:return_until_date] if args.key?(:return_until_date)
2403
+ end
2404
+ end
2405
+
2286
2406
  # Shipping service.
2287
2407
  class Service
2288
2408
  include Google::Apis::Core::Hashable
@@ -2815,7 +2935,7 @@ module Google
2815
2935
  class User
2816
2936
  include Google::Apis::Core::Hashable
2817
2937
 
2818
- # Optional. The [access rights](https://support.google.com/merchants/answer/
2938
+ # Required. The [access rights](https://support.google.com/merchants/answer/
2819
2939
  # 12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
2820
2940
  # Corresponds to the JSON property `accessRights`
2821
2941
  # @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.5.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 = "20250220"
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.5.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-02 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.5.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: []