google-apis-merchantapi_accounts_v1beta 0.3.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: dbdc69d85bd922a489e89efbba8e3106be94269ef1aed246d85b94a035a6ee8b
4
- data.tar.gz: f203ea12135962470751c05c4ae3f661e92a057bbe2b42f326cc1bca0fff88f3
3
+ metadata.gz: e7b5d1f0824deb1069f510d8b251be9505149303320b61e387886eeb333378d9
4
+ data.tar.gz: 95062555310c64afd53e54cae85bd90690ce119d00be5744ced83550d193d75f
5
5
  SHA512:
6
- metadata.gz: 415670f24fb6e30c49fb77e64322b8bc4beb95ff71d30e426228e61d17da5336b6545dc7ce09ff52b6b5d684d08daf104231440db9ac4c8059fdcdb782bc5cd2
7
- data.tar.gz: f74a565f95a95cdf9c06486268a65dd22dcb6222e52cd65881f3efb748a8a50903678c0fe481418274b1ab6c978520db9719c0dbce13a025bcddc0a7e444a644
6
+ metadata.gz: 1150f65dffb58f0d02b62df635daf5c99e0098470544eddc6054aa65b322f48f43fa0be7f8d4340dfaa79a85d4d02d7dcbe481c30e0f5a6d7982aa8a1c3b3a66
7
+ data.tar.gz: 9b0851e7a8db3873bf835d4f9a521b29669a44c7b1715309c99cff9a056c79d48e78be1402540e8dbece56085507360aaa16f3ced92dee1439c66ca6c351e558
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
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
+
8
+ ### v0.4.0 (2024-12-15)
9
+
10
+ * Regenerated from discovery document revision 20241210
11
+
3
12
  ### v0.3.0 (2024-12-02)
4
13
 
5
14
  * Regenerated from discovery document revision 20241124
@@ -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
@@ -205,7 +205,9 @@ module Google
205
205
  # @return [Google::Apis::MerchantapiAccountsV1beta::AccountAggregation]
206
206
  attr_accessor :account_aggregation
207
207
 
208
- # Required. The provider of the service. Format: `accounts/`account``
208
+ # Required. The provider of the service. Either the reference to an account such
209
+ # as `providers/123` or a well-known service provider (one of `providers/
210
+ # GOOGLE_ADS` or `providers/GOOGLE_BUSINESS_PROFILE`).
209
211
  # Corresponds to the JSON property `provider`
210
212
  # @return [String]
211
213
  attr_accessor :provider
@@ -221,6 +223,34 @@ module Google
221
223
  end
222
224
  end
223
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
+
224
254
  # Shipping address of the warehouse.
225
255
  class Address
226
256
  include Google::Apis::Core::Hashable
@@ -565,6 +595,12 @@ module Google
565
595
  attr_accessor :service
566
596
 
567
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.
568
604
  # Corresponds to the JSON property `users`
569
605
  # @return [Array<Google::Apis::MerchantapiAccountsV1beta::CreateUserRequest>]
570
606
  attr_accessor :users
@@ -577,6 +613,7 @@ module Google
577
613
  def update!(**args)
578
614
  @account = args[:account] if args.key?(:account)
579
615
  @service = args[:service] if args.key?(:service)
616
+ @user = args[:user] if args.key?(:user)
580
617
  @users = args[:users] if args.key?(:users)
581
618
  end
582
619
  end
@@ -1532,6 +1569,12 @@ module Google
1532
1569
  # @return [Google::Apis::MerchantapiAccountsV1beta::ReturnShippingFee]
1533
1570
  attr_accessor :return_shipping_fee
1534
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
+
1535
1578
  def initialize(**args)
1536
1579
  update!(**args)
1537
1580
  end
@@ -1551,6 +1594,7 @@ module Google
1551
1594
  @return_policy_id = args[:return_policy_id] if args.key?(:return_policy_id)
1552
1595
  @return_policy_uri = args[:return_policy_uri] if args.key?(:return_policy_uri)
1553
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)
1554
1598
  end
1555
1599
  end
1556
1600
 
@@ -1927,6 +1971,11 @@ module Google
1927
1971
  # @return [Array<Google::Apis::MerchantapiAccountsV1beta::ProductChange>]
1928
1972
  attr_accessor :changes
1929
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
+
1930
1979
  # The product expiration time. This field will not bet set if the notification
1931
1980
  # is sent for a product deletion event.
1932
1981
  # Corresponds to the JSON property `expirationTime`
@@ -1964,6 +2013,7 @@ module Google
1964
2013
  @account = args[:account] if args.key?(:account)
1965
2014
  @attribute = args[:attribute] if args.key?(:attribute)
1966
2015
  @changes = args[:changes] if args.key?(:changes)
2016
+ @event_time = args[:event_time] if args.key?(:event_time)
1967
2017
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1968
2018
  @managing_account = args[:managing_account] if args.key?(:managing_account)
1969
2019
  @resource = args[:resource] if args.key?(:resource)
@@ -1977,7 +2027,9 @@ module Google
1977
2027
  # example of this is the [Free product listings](https://support.google.com/
1978
2028
  # merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU)
1979
2029
  # program, which enables products from a merchant's store to be shown across
1980
- # 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`
1981
2033
  class Program
1982
2034
  include Google::Apis::Core::Hashable
1983
2035
 
@@ -2281,6 +2333,76 @@ module Google
2281
2333
  end
2282
2334
  end
2283
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
+
2284
2406
  # Shipping service.
2285
2407
  class Service
2286
2408
  include Google::Apis::Core::Hashable
@@ -2813,7 +2935,7 @@ module Google
2813
2935
  class User
2814
2936
  include Google::Apis::Core::Hashable
2815
2937
 
2816
- # Optional. The [access rights](https://support.google.com/merchants/answer/
2938
+ # Required. The [access rights](https://support.google.com/merchants/answer/
2817
2939
  # 12160472?sjid=6789834943175119429-EU#accesstypes) the user has.
2818
2940
  # Corresponds to the JSON property `accessRights`
2819
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.3.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 = "20241124"
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.3.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-04 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.3.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.22
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: []