google-apis-merchantapi_accounts_v1beta 0.16.0 → 0.17.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: cb4ab3616df3e97f8bc39ed0bf54896972b8d578aca21d935469190b2b27dfe9
4
- data.tar.gz: e49f7d1de7279958007e0b86cd83b81ddba31e921554ccf0cf5d7d3a3ed9622c
3
+ metadata.gz: 85ed895c20124b840e23e363906b043bfbbe02260ac4826dd257651ed2390d67
4
+ data.tar.gz: 6d2f63f30a5bd92b1311f7da13e3f4bbf6c81750cd690b02ce0e12ff61ab3739
5
5
  SHA512:
6
- metadata.gz: c23a0e104d69d1b3f817a0e6cd57a66389079ca50cc12bffb21fc8acec1ac7733b89de1eca1f213ea1d84ba8b4338867a48027913460194edeadc91069d7d2d4
7
- data.tar.gz: 6bbb2a3075dc903216faf9c233019712417314158939aeb323eced1fbce0630ef3284e58e5674f5b23653721cb40085278bd3ebc0b3a5fc152389d260d44f9dd
6
+ metadata.gz: aa49005b03477e0375c0c6fe67d06c4de58a0b5853e03f4c4d0861c00e998cb811614dcbb6fd360c909d3bc1e5d82b98cb1d1f972e2c601fdf5986d7ea847f3a
7
+ data.tar.gz: b12de1bbb6d3da47b8891a6cbe33ba46d1caeb181c1be6c17fd9799332715b11dda09b06da04a5de484f95099174a5435876df375956af84dad9474c6e930584
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-merchantapi_accounts_v1beta
2
2
 
3
+ ### v0.17.0 (2025-07-06)
4
+
5
+ * Regenerated from discovery document revision 20250628
6
+
3
7
  ### v0.16.0 (2025-06-29)
4
8
 
5
9
  * Regenerated from discovery document revision 20250621
@@ -990,6 +990,81 @@ module Google
990
990
  end
991
991
  end
992
992
 
993
+ # [CheckoutSettings](https://support.google.com/merchants/answer/13945960) for a
994
+ # specific merchant.
995
+ class CheckoutSettings
996
+ include Google::Apis::Core::Hashable
997
+
998
+ # Output only. The effective value of enrollment_state for a given merchant ID.
999
+ # If account level settings are present then this value will be a copy of the
1000
+ # account level settings. Otherwise, it will have the value of the parent
1001
+ # account (for only marketplace sellers).
1002
+ # Corresponds to the JSON property `effectiveEnrollmentState`
1003
+ # @return [String]
1004
+ attr_accessor :effective_enrollment_state
1005
+
1006
+ # Output only. The effective value of `review_state` for a given merchant ID. If
1007
+ # account level settings are present then this value will be a copy of the
1008
+ # account level settings. Otherwise, it will have the value of the parent
1009
+ # account (for only marketplace sellers).
1010
+ # Corresponds to the JSON property `effectiveReviewState`
1011
+ # @return [String]
1012
+ attr_accessor :effective_review_state
1013
+
1014
+ # URL settings for cart or checkout URL.
1015
+ # Corresponds to the JSON property `effectiveUriSettings`
1016
+ # @return [Google::Apis::MerchantapiAccountsV1beta::UriSettings]
1017
+ attr_accessor :effective_uri_settings
1018
+
1019
+ # Optional. The destinations to which the checkout program applies, valid
1020
+ # destination values are `SHOPPING_ADS`, `FREE_LISTINGS`
1021
+ # Corresponds to the JSON property `eligibleDestinations`
1022
+ # @return [Array<String>]
1023
+ attr_accessor :eligible_destinations
1024
+
1025
+ # Output only. Reflects the merchant enrollment state in `Checkout` program.
1026
+ # Corresponds to the JSON property `enrollmentState`
1027
+ # @return [String]
1028
+ attr_accessor :enrollment_state
1029
+
1030
+ # Identifier. The resource name of the program configuration settings. Format: `
1031
+ # accounts/`account`/programs/`program`/checkoutSettings`
1032
+ # Corresponds to the JSON property `name`
1033
+ # @return [String]
1034
+ attr_accessor :name
1035
+
1036
+ # Output only. Reflects the merchant review state in `Checkout` program. This is
1037
+ # set based on the data quality reviews of the URL provided by the merchant. A
1038
+ # merchant with enrollment state as `ENROLLED` can be in the following review
1039
+ # states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A merchant must be in an `
1040
+ # enrollment_state` of `ENROLLED` before a review can begin for the merchant.For
1041
+ # more details, check the help center doc.
1042
+ # Corresponds to the JSON property `reviewState`
1043
+ # @return [String]
1044
+ attr_accessor :review_state
1045
+
1046
+ # URL settings for cart or checkout URL.
1047
+ # Corresponds to the JSON property `uriSettings`
1048
+ # @return [Google::Apis::MerchantapiAccountsV1beta::UriSettings]
1049
+ attr_accessor :uri_settings
1050
+
1051
+ def initialize(**args)
1052
+ update!(**args)
1053
+ end
1054
+
1055
+ # Update properties of this object
1056
+ def update!(**args)
1057
+ @effective_enrollment_state = args[:effective_enrollment_state] if args.key?(:effective_enrollment_state)
1058
+ @effective_review_state = args[:effective_review_state] if args.key?(:effective_review_state)
1059
+ @effective_uri_settings = args[:effective_uri_settings] if args.key?(:effective_uri_settings)
1060
+ @eligible_destinations = args[:eligible_destinations] if args.key?(:eligible_destinations)
1061
+ @enrollment_state = args[:enrollment_state] if args.key?(:enrollment_state)
1062
+ @name = args[:name] if args.key?(:name)
1063
+ @review_state = args[:review_state] if args.key?(:review_state)
1064
+ @uri_settings = args[:uri_settings] if args.key?(:uri_settings)
1065
+ end
1066
+ end
1067
+
993
1068
  # Request message for the `ClaimHomepage` method.
994
1069
  class ClaimHomepageRequest
995
1070
  include Google::Apis::Core::Hashable
@@ -4116,6 +4191,39 @@ module Google
4116
4191
  end
4117
4192
  end
4118
4193
 
4194
+ # URL settings for cart or checkout URL.
4195
+ class UriSettings
4196
+ include Google::Apis::Core::Hashable
4197
+
4198
+ # Cart URL template. When the placeholders are expanded will redirect the buyer
4199
+ # to the cart page on the merchant website with the selected item in cart. For
4200
+ # more details, check the [help center doc](https://support.google.com/merchants/
4201
+ # answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-
4202
+ # url-formatting)
4203
+ # Corresponds to the JSON property `cartUriTemplate`
4204
+ # @return [String]
4205
+ attr_accessor :cart_uri_template
4206
+
4207
+ # Checkout URL template. When the placeholders are expanded will redirect the
4208
+ # buyer to the merchant checkout page with the item in the cart. For more
4209
+ # details, check the [help center doc](https://support.google.com/merchants/
4210
+ # answer/13945960#method1&zippy=%2Cproduct-level-url-formatting%2Caccount-level-
4211
+ # url-formatting)
4212
+ # Corresponds to the JSON property `checkoutUriTemplate`
4213
+ # @return [String]
4214
+ attr_accessor :checkout_uri_template
4215
+
4216
+ def initialize(**args)
4217
+ update!(**args)
4218
+ end
4219
+
4220
+ # Update properties of this object
4221
+ def update!(**args)
4222
+ @cart_uri_template = args[:cart_uri_template] if args.key?(:cart_uri_template)
4223
+ @checkout_uri_template = args[:checkout_uri_template] if args.key?(:checkout_uri_template)
4224
+ end
4225
+ end
4226
+
4119
4227
  # The `User` message represents a user associated with a Merchant Center account.
4120
4228
  # It is used to manage user permissions and access rights within the account.
4121
4229
  # For more information, see [Frequently asked questions about people and access
@@ -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.16.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20250621"
25
+ REVISION = "20250628"
26
26
  end
27
27
  end
28
28
  end
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class CheckoutSettings
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class ClaimHomepageRequest
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -688,6 +694,12 @@ module Google
688
694
  include Google::Apis::Core::JsonObjectSupport
689
695
  end
690
696
 
697
+ class UriSettings
698
+ class Representation < Google::Apis::Core::JsonRepresentation; end
699
+
700
+ include Google::Apis::Core::JsonObjectSupport
701
+ end
702
+
691
703
  class User
692
704
  class Representation < Google::Apis::Core::JsonRepresentation; end
693
705
 
@@ -966,6 +978,22 @@ module Google
966
978
  end
967
979
  end
968
980
 
981
+ class CheckoutSettings
982
+ # @private
983
+ class Representation < Google::Apis::Core::JsonRepresentation
984
+ property :effective_enrollment_state, as: 'effectiveEnrollmentState'
985
+ property :effective_review_state, as: 'effectiveReviewState'
986
+ property :effective_uri_settings, as: 'effectiveUriSettings', class: Google::Apis::MerchantapiAccountsV1beta::UriSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::UriSettings::Representation
987
+
988
+ collection :eligible_destinations, as: 'eligibleDestinations'
989
+ property :enrollment_state, as: 'enrollmentState'
990
+ property :name, as: 'name'
991
+ property :review_state, as: 'reviewState'
992
+ property :uri_settings, as: 'uriSettings', class: Google::Apis::MerchantapiAccountsV1beta::UriSettings, decorator: Google::Apis::MerchantapiAccountsV1beta::UriSettings::Representation
993
+
994
+ end
995
+ end
996
+
969
997
  class ClaimHomepageRequest
970
998
  # @private
971
999
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1821,6 +1849,14 @@ module Google
1821
1849
  end
1822
1850
  end
1823
1851
 
1852
+ class UriSettings
1853
+ # @private
1854
+ class Representation < Google::Apis::Core::JsonRepresentation
1855
+ property :cart_uri_template, as: 'cartUriTemplate'
1856
+ property :checkout_uri_template, as: 'checkoutUriTemplate'
1857
+ end
1858
+ end
1859
+
1824
1860
  class User
1825
1861
  # @private
1826
1862
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1510,6 +1510,142 @@ module Google
1510
1510
  execute_or_queue_command(command, &block)
1511
1511
  end
1512
1512
 
1513
+ # Creates `CheckoutSettings` for the given merchant.
1514
+ # @param [String] parent
1515
+ # Required. The merchant account for which the `CheckoutSettings` will be
1516
+ # created.
1517
+ # @param [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] checkout_settings_object
1518
+ # @param [String] fields
1519
+ # Selector specifying which fields to include in a partial response.
1520
+ # @param [String] quota_user
1521
+ # Available to use for quota purposes for server-side applications. Can be any
1522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1523
+ # @param [Google::Apis::RequestOptions] options
1524
+ # Request-specific options
1525
+ #
1526
+ # @yield [result, err] Result & error if block supplied
1527
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] parsed result object
1528
+ # @yieldparam err [StandardError] error object if request failed
1529
+ #
1530
+ # @return [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings]
1531
+ #
1532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1535
+ def create_account_program_checkout_setting(parent, checkout_settings_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1536
+ command = make_simple_command(:post, 'accounts/v1beta/{+parent}/checkoutSettings', options)
1537
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
1538
+ command.request_object = checkout_settings_object
1539
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
1540
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings
1541
+ command.params['parent'] = parent unless parent.nil?
1542
+ command.query['fields'] = fields unless fields.nil?
1543
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1544
+ execute_or_queue_command(command, &block)
1545
+ end
1546
+
1547
+ # Deletes `CheckoutSettings` and unenrolls merchant from `Checkout` program.
1548
+ # @param [String] name
1549
+ # Required. The name/identifier of the merchant account. Format: `accounts/`
1550
+ # account`/programs/`program`/checkoutSettings`
1551
+ # @param [String] fields
1552
+ # Selector specifying which fields to include in a partial response.
1553
+ # @param [String] quota_user
1554
+ # Available to use for quota purposes for server-side applications. Can be any
1555
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1556
+ # @param [Google::Apis::RequestOptions] options
1557
+ # Request-specific options
1558
+ #
1559
+ # @yield [result, err] Result & error if block supplied
1560
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::Empty] parsed result object
1561
+ # @yieldparam err [StandardError] error object if request failed
1562
+ #
1563
+ # @return [Google::Apis::MerchantapiAccountsV1beta::Empty]
1564
+ #
1565
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1566
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1567
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1568
+ def delete_account_program_checkout_setting_checkout_settings(name, fields: nil, quota_user: nil, options: nil, &block)
1569
+ command = make_simple_command(:delete, 'accounts/v1beta/{+name}', options)
1570
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::Empty::Representation
1571
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::Empty
1572
+ command.params['name'] = name unless name.nil?
1573
+ command.query['fields'] = fields unless fields.nil?
1574
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1575
+ execute_or_queue_command(command, &block)
1576
+ end
1577
+
1578
+ # Gets `CheckoutSettings` for the given merchant. This includes information
1579
+ # about review state, enrollment state and URL settings.
1580
+ # @param [String] name
1581
+ # Required. The name/identifier of the merchant account. Format: `accounts/`
1582
+ # account`/programs/`program`/checkoutSettings`
1583
+ # @param [String] fields
1584
+ # Selector specifying which fields to include in a partial response.
1585
+ # @param [String] quota_user
1586
+ # Available to use for quota purposes for server-side applications. Can be any
1587
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1588
+ # @param [Google::Apis::RequestOptions] options
1589
+ # Request-specific options
1590
+ #
1591
+ # @yield [result, err] Result & error if block supplied
1592
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] parsed result object
1593
+ # @yieldparam err [StandardError] error object if request failed
1594
+ #
1595
+ # @return [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings]
1596
+ #
1597
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1598
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1599
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1600
+ def get_account_program_checkout_setting_checkout_settings(name, fields: nil, quota_user: nil, options: nil, &block)
1601
+ command = make_simple_command(:get, 'accounts/v1beta/{+name}', options)
1602
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
1603
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings
1604
+ command.params['name'] = name unless name.nil?
1605
+ command.query['fields'] = fields unless fields.nil?
1606
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1607
+ execute_or_queue_command(command, &block)
1608
+ end
1609
+
1610
+ # Updates `CheckoutSettings` for the given merchant.
1611
+ # @param [String] name
1612
+ # Identifier. The resource name of the program configuration settings. Format: `
1613
+ # accounts/`account`/programs/`program`/checkoutSettings`
1614
+ # @param [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] checkout_settings_object
1615
+ # @param [String] update_mask
1616
+ # Required. List of fields being updated. The following fields are supported (in
1617
+ # both `snake_case` and `lowerCamelCase`): - `eligible_destinations` - `
1618
+ # uri_settings`
1619
+ # @param [String] fields
1620
+ # Selector specifying which fields to include in a partial response.
1621
+ # @param [String] quota_user
1622
+ # Available to use for quota purposes for server-side applications. Can be any
1623
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1624
+ # @param [Google::Apis::RequestOptions] options
1625
+ # Request-specific options
1626
+ #
1627
+ # @yield [result, err] Result & error if block supplied
1628
+ # @yieldparam result [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings] parsed result object
1629
+ # @yieldparam err [StandardError] error object if request failed
1630
+ #
1631
+ # @return [Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings]
1632
+ #
1633
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1634
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1635
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1636
+ def update_account_program_checkout_setting_checkout_settings(name, checkout_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1637
+ command = make_simple_command(:patch, 'accounts/v1beta/{+name}', options)
1638
+ command.request_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
1639
+ command.request_object = checkout_settings_object
1640
+ command.response_representation = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings::Representation
1641
+ command.response_class = Google::Apis::MerchantapiAccountsV1beta::CheckoutSettings
1642
+ command.params['name'] = name unless name.nil?
1643
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1644
+ command.query['fields'] = fields unless fields.nil?
1645
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1646
+ execute_or_queue_command(command, &block)
1647
+ end
1648
+
1513
1649
  # Creates a region definition in your Merchant Center account. Executing this
1514
1650
  # method requires admin access.
1515
1651
  # @param [String] parent
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-merchantapi_accounts_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.16.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-merchantapi_accounts_v1beta/v0.17.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-merchantapi_accounts_v1beta
62
62
  rdoc_options: []
63
63
  require_paths: