google-apis-content_v2_1 0.20.0 → 0.21.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: 19484cee813b1205651ac86690176d4aa51ad77808047b41827bb4b522e93973
4
- data.tar.gz: bc28c660a782b1b67b91bdf8ffb6c02a5639e3b9b9146c47bdef48c79fc5c030
3
+ metadata.gz: 6234741381717aa5f8b25da6ad7947105b3bc2c4a25a569e7e6ae29bf13d57a3
4
+ data.tar.gz: c7245d4d2d9d8a9232a5b0dc49413a8aa023e5e46edeb0518cf530febc80e1f4
5
5
  SHA512:
6
- metadata.gz: ad6f5b49b2ec68a3fb46dff853fa8ae1a3d545309e996f03749841bde342af2e1e2d75025d09eca9528784e7b83605b1dc528cce564f7342bc76607da72f6d9c
7
- data.tar.gz: 8c508016219ba11611cac5704c4cd46c5084205fc27c193e5b224534d08507ccc33577c384d0ccf721c03a3bb09e6ae7019e867029fb1207f4ecf1d18c02c29d
6
+ metadata.gz: 21a2194481ecdca3c07280a39d59f83ab7c11f7e79d3e3e80ce1e7de005c6ca2bd52e5e8b3d35be2b92e472755dbf35f9c17ad1bbd827f4ab75ae5ffb372add4
7
+ data.tar.gz: ac12528e7f443675232618e29152c577d04b93bb2a598939f7d1cdfe8dfa0ce4c2b0664a4960271319bf7512a6e19a23fd5bc488ffd3d87b8938c5301959efb7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-content_v2_1
2
2
 
3
+ ### v0.21.0 (2021-09-15)
4
+
5
+ * Regenerated from discovery document revision 20210911
6
+
3
7
  ### v0.20.0 (2021-09-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20210827
@@ -235,6 +235,13 @@ module Google
235
235
  # @return [Google::Apis::ContentV2_1::AccountCustomerService]
236
236
  attr_accessor :customer_service
237
237
 
238
+ # The 10-digit [Korean business registration number](https://support.google.com/
239
+ # merchants/answer/9037766) separated with dashes in the format: XXX-XX-XXXXX.
240
+ # This field will only be updated if explicitly set.
241
+ # Corresponds to the JSON property `koreanBusinessRegistrationNumber`
242
+ # @return [String]
243
+ attr_accessor :korean_business_registration_number
244
+
238
245
  # The phone number of the business.
239
246
  # Corresponds to the JSON property `phoneNumber`
240
247
  # @return [String]
@@ -248,6 +255,7 @@ module Google
248
255
  def update!(**args)
249
256
  @address = args[:address] if args.key?(:address)
250
257
  @customer_service = args[:customer_service] if args.key?(:customer_service)
258
+ @korean_business_registration_number = args[:korean_business_registration_number] if args.key?(:korean_business_registration_number)
251
259
  @phone_number = args[:phone_number] if args.key?(:phone_number)
252
260
  end
253
261
  end
@@ -1671,17 +1679,58 @@ module Google
1671
1679
  class BuyOnGoogleProgramStatus
1672
1680
  include Google::Apis::Core::Hashable
1673
1681
 
1682
+ # The business models in which merchant participates.
1683
+ # Corresponds to the JSON property `businessModel`
1684
+ # @return [Array<String>]
1685
+ attr_accessor :business_model
1686
+
1674
1687
  # The customer service pending email. After verification this field becomes
1675
1688
  # empty.
1676
1689
  # Corresponds to the JSON property `customerServicePendingEmail`
1677
1690
  # @return [String]
1678
1691
  attr_accessor :customer_service_pending_email
1679
1692
 
1693
+ # The pending phone number specified for BuyOnGoogle program. It might be
1694
+ # different than account level phone number. In order to update this field the
1695
+ # customer_service_pending_phone_region_code must also be set. After
1696
+ # verification this field becomes empty.
1697
+ # Corresponds to the JSON property `customerServicePendingPhoneNumber`
1698
+ # @return [String]
1699
+ attr_accessor :customer_service_pending_phone_number
1700
+
1701
+ # Two letter country code for the pending phone number, for example `CA` for
1702
+ # Canadian numbers. See the [ISO 3166-1 alpha-2](https://wikipedia.org/wiki/
1703
+ # ISO_3166-1_alpha-2#Officially_assigned_code_elements) officially assigned
1704
+ # codes. In order to update this field the customer_service_pending_phone_number
1705
+ # must also be set. After verification this field becomes empty.
1706
+ # Corresponds to the JSON property `customerServicePendingPhoneRegionCode`
1707
+ # @return [String]
1708
+ attr_accessor :customer_service_pending_phone_region_code
1709
+
1680
1710
  # Output only. The customer service verified email.
1681
1711
  # Corresponds to the JSON property `customerServiceVerifiedEmail`
1682
1712
  # @return [String]
1683
1713
  attr_accessor :customer_service_verified_email
1684
1714
 
1715
+ # Output only. The verified phone number specified for BuyOnGoogle program. It
1716
+ # might be different than account level phone number.
1717
+ # Corresponds to the JSON property `customerServiceVerifiedPhoneNumber`
1718
+ # @return [String]
1719
+ attr_accessor :customer_service_verified_phone_number
1720
+
1721
+ # Output only. Two letter country code for the verified phone number, for
1722
+ # example `CA` for Canadian numbers. See the [ISO 3166-1 alpha-2](https://
1723
+ # wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
1724
+ # officially assigned codes.
1725
+ # Corresponds to the JSON property `customerServiceVerifiedPhoneRegionCode`
1726
+ # @return [String]
1727
+ attr_accessor :customer_service_verified_phone_region_code
1728
+
1729
+ # The channels through which the merchant is selling.
1730
+ # Corresponds to the JSON property `onlineSalesChannel`
1731
+ # @return [String]
1732
+ attr_accessor :online_sales_channel
1733
+
1685
1734
  # Output only. The current participation stage for the program.
1686
1735
  # Corresponds to the JSON property `participationStage`
1687
1736
  # @return [String]
@@ -1693,8 +1742,14 @@ module Google
1693
1742
 
1694
1743
  # Update properties of this object
1695
1744
  def update!(**args)
1745
+ @business_model = args[:business_model] if args.key?(:business_model)
1696
1746
  @customer_service_pending_email = args[:customer_service_pending_email] if args.key?(:customer_service_pending_email)
1747
+ @customer_service_pending_phone_number = args[:customer_service_pending_phone_number] if args.key?(:customer_service_pending_phone_number)
1748
+ @customer_service_pending_phone_region_code = args[:customer_service_pending_phone_region_code] if args.key?(:customer_service_pending_phone_region_code)
1697
1749
  @customer_service_verified_email = args[:customer_service_verified_email] if args.key?(:customer_service_verified_email)
1750
+ @customer_service_verified_phone_number = args[:customer_service_verified_phone_number] if args.key?(:customer_service_verified_phone_number)
1751
+ @customer_service_verified_phone_region_code = args[:customer_service_verified_phone_region_code] if args.key?(:customer_service_verified_phone_region_code)
1752
+ @online_sales_channel = args[:online_sales_channel] if args.key?(:online_sales_channel)
1698
1753
  @participation_stage = args[:participation_stage] if args.key?(:participation_stage)
1699
1754
  end
1700
1755
  end
@@ -15671,7 +15726,8 @@ module Google
15671
15726
  class VerifyPhoneNumberResponse
15672
15727
  include Google::Apis::Core::Hashable
15673
15728
 
15674
- # Verified phone number if verification is successful.
15729
+ # Verified phone number if verification is successful. This phone number can
15730
+ # only be replaced by another verified phone number.
15675
15731
  # Corresponds to the JSON property `verifiedPhoneNumber`
15676
15732
  # @return [String]
15677
15733
  attr_accessor :verified_phone_number
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ContentV2_1
18
18
  # Version of the google-apis-content_v2_1 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210827"
25
+ REVISION = "20210911"
26
26
  end
27
27
  end
28
28
  end
@@ -2354,6 +2354,7 @@ module Google
2354
2354
 
2355
2355
  property :customer_service, as: 'customerService', class: Google::Apis::ContentV2_1::AccountCustomerService, decorator: Google::Apis::ContentV2_1::AccountCustomerService::Representation
2356
2356
 
2357
+ property :korean_business_registration_number, as: 'koreanBusinessRegistrationNumber'
2357
2358
  property :phone_number, as: 'phoneNumber'
2358
2359
  end
2359
2360
  end
@@ -2770,8 +2771,14 @@ module Google
2770
2771
  class BuyOnGoogleProgramStatus
2771
2772
  # @private
2772
2773
  class Representation < Google::Apis::Core::JsonRepresentation
2774
+ collection :business_model, as: 'businessModel'
2773
2775
  property :customer_service_pending_email, as: 'customerServicePendingEmail'
2776
+ property :customer_service_pending_phone_number, as: 'customerServicePendingPhoneNumber'
2777
+ property :customer_service_pending_phone_region_code, as: 'customerServicePendingPhoneRegionCode'
2774
2778
  property :customer_service_verified_email, as: 'customerServiceVerifiedEmail'
2779
+ property :customer_service_verified_phone_number, as: 'customerServiceVerifiedPhoneNumber'
2780
+ property :customer_service_verified_phone_region_code, as: 'customerServiceVerifiedPhoneRegionCode'
2781
+ property :online_sales_channel, as: 'onlineSalesChannel'
2775
2782
  property :participation_stage, as: 'participationStage'
2776
2783
  end
2777
2784
  end
@@ -497,7 +497,10 @@ module Google
497
497
  execute_or_queue_command(command, &block)
498
498
  end
499
499
 
500
- # Validates verification code to verify phone number for the account.
500
+ # Validates verification code to verify phone number for the account. If
501
+ # successful this will overwrite the value of `accounts.businessinformation.
502
+ # phoneNumber`. Only verified phone number will replace an existing verified
503
+ # phone number.
501
504
  # @param [Fixnum] merchant_id
502
505
  # Required. The ID of the managing account. If this parameter is not the same as
503
506
  # accountId, then this account must be a multi-client account and accountId must
@@ -1105,8 +1108,8 @@ module Google
1105
1108
  # @param [Fixnum] merchant_id
1106
1109
  # Required. The ID of the account.
1107
1110
  # @param [String] region_code
1108
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1109
- # ISO_3166-1_alpha-2). Currently only US is available.
1111
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1112
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1110
1113
  # @param [Google::Apis::ContentV2_1::ActivateBuyOnGoogleProgramRequest] activate_buy_on_google_program_request_object
1111
1114
  # @param [String] fields
1112
1115
  # Selector specifying which fields to include in a partial response.
@@ -1140,8 +1143,8 @@ module Google
1140
1143
  # @param [Fixnum] merchant_id
1141
1144
  # Required. The ID of the account.
1142
1145
  # @param [String] region_code
1143
- # The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1144
- # ISO_3166-1_alpha-2). Currently only US is available.
1146
+ # Required. The Program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1147
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1145
1148
  # @param [String] fields
1146
1149
  # Selector specifying which fields to include in a partial response.
1147
1150
  # @param [String] quota_user
@@ -1179,8 +1182,8 @@ module Google
1179
1182
  # @param [Fixnum] merchant_id
1180
1183
  # Required. The ID of the account.
1181
1184
  # @param [String] region_code
1182
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1183
- # ISO_3166-1_alpha-2). Currently only US is available.
1185
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1186
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1184
1187
  # @param [Google::Apis::ContentV2_1::OnboardBuyOnGoogleProgramRequest] onboard_buy_on_google_program_request_object
1185
1188
  # @param [String] fields
1186
1189
  # Selector specifying which fields to include in a partial response.
@@ -1210,13 +1213,55 @@ module Google
1210
1213
  execute_or_queue_command(command, &block)
1211
1214
  end
1212
1215
 
1216
+ # Updates the status of the BoG program for your Merchant Center account.
1217
+ # @param [Fixnum] merchant_id
1218
+ # Required. The ID of the account.
1219
+ # @param [String] region_code
1220
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1221
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1222
+ # @param [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] buy_on_google_program_status_object
1223
+ # @param [String] update_mask
1224
+ # The list of fields to update. If the update mask is not provided, then all the
1225
+ # fields set in buyOnGoogleProgramStatus will be updated. Clearing fields is
1226
+ # only possible if update mask is provided.
1227
+ # @param [String] fields
1228
+ # Selector specifying which fields to include in a partial response.
1229
+ # @param [String] quota_user
1230
+ # Available to use for quota purposes for server-side applications. Can be any
1231
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1232
+ # @param [Google::Apis::RequestOptions] options
1233
+ # Request-specific options
1234
+ #
1235
+ # @yield [result, err] Result & error if block supplied
1236
+ # @yieldparam result [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus] parsed result object
1237
+ # @yieldparam err [StandardError] error object if request failed
1238
+ #
1239
+ # @return [Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus]
1240
+ #
1241
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1242
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1243
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1244
+ def patch_buyongoogleprogram(merchant_id, region_code, buy_on_google_program_status_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1245
+ command = make_simple_command(:patch, '{merchantId}/buyongoogleprograms/{regionCode}', options)
1246
+ command.request_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1247
+ command.request_object = buy_on_google_program_status_object
1248
+ command.response_representation = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus::Representation
1249
+ command.response_class = Google::Apis::ContentV2_1::BuyOnGoogleProgramStatus
1250
+ command.params['merchantId'] = merchant_id unless merchant_id.nil?
1251
+ command.params['regionCode'] = region_code unless region_code.nil?
1252
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1253
+ command.query['fields'] = fields unless fields.nil?
1254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1255
+ execute_or_queue_command(command, &block)
1256
+ end
1257
+
1213
1258
  # Pauses the BoG program in your Merchant Center account. Important: This method
1214
1259
  # is only whitelisted for selected merchants.
1215
1260
  # @param [Fixnum] merchant_id
1216
1261
  # Required. The ID of the account.
1217
1262
  # @param [String] region_code
1218
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1219
- # ISO_3166-1_alpha-2). Currently only US is available.
1263
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1264
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1220
1265
  # @param [Google::Apis::ContentV2_1::PauseBuyOnGoogleProgramRequest] pause_buy_on_google_program_request_object
1221
1266
  # @param [String] fields
1222
1267
  # Selector specifying which fields to include in a partial response.
@@ -1252,8 +1297,8 @@ module Google
1252
1297
  # @param [Fixnum] merchant_id
1253
1298
  # Required. The ID of the account.
1254
1299
  # @param [String] region_code
1255
- # The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/
1256
- # ISO_3166-1_alpha-2). Currently only US is available.
1300
+ # Required. The program region code [ISO 3166-1 alpha-2](https://en.wikipedia.
1301
+ # org/wiki/ISO_3166-1_alpha-2). Currently only US is available.
1257
1302
  # @param [Google::Apis::ContentV2_1::RequestReviewBuyOnGoogleProgramRequest] request_review_buy_on_google_program_request_object
1258
1303
  # @param [String] fields
1259
1304
  # Selector specifying which fields to include in a partial response.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-content_v2_1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.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: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-content_v2_1
63
63
  post_install_message:
64
64
  rdoc_options: []