google-apis-content_v2_1 0.21.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/content_v2_1/classes.rb +238 -14
- data/lib/google/apis/content_v2_1/gem_version.rb +2 -2
- data/lib/google/apis/content_v2_1/representations.rb +77 -0
- data/lib/google/apis/content_v2_1/service.rb +39 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7809653730f655594b522bc0e2c1f8fb8e23a1cfeae599c01086feb9a28b0e91
|
4
|
+
data.tar.gz: a2f83532b456319d48b8163e03f054cac1007a4acdaff58cc7a4d266e5365c5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85143f49bf9ffe86f18eac60cfa18dcaa1e8914d5bc8d469f2e796bae15f263653b9001c4dec65197b5661aef44db636e55f8904a5e57e44e822d80c7e31f202
|
7
|
+
data.tar.gz: 07f98fbc638b49946f06c5ced3d3b120c474f163d80c03bb3306f6d1cca31dd0e348fdb78082a1fa40e17679b361251d4128b8bca899d7b75bacaf1a7e04824e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-content_v2_1
|
2
2
|
|
3
|
+
### v0.25.0 (2021-10-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211021
|
6
|
+
|
7
|
+
### v0.24.0 (2021-10-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211007
|
10
|
+
|
11
|
+
### v0.23.0 (2021-09-28)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210924
|
14
|
+
|
15
|
+
### v0.22.0 (2021-09-22)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210917
|
18
|
+
|
3
19
|
### v0.21.0 (2021-09-15)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210911
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Content service in particular.)
|
67
67
|
|
@@ -242,11 +242,20 @@ module Google
|
|
242
242
|
# @return [String]
|
243
243
|
attr_accessor :korean_business_registration_number
|
244
244
|
|
245
|
-
# The phone number of the business.
|
245
|
+
# The phone number of the business. This can only be updated if a verified phone
|
246
|
+
# number is not already set. To replace a verified phone number use the `
|
247
|
+
# Accounts.requestphoneverification` and `Accounts.verifyphonenumber`.
|
246
248
|
# Corresponds to the JSON property `phoneNumber`
|
247
249
|
# @return [String]
|
248
250
|
attr_accessor :phone_number
|
249
251
|
|
252
|
+
# Verification status of the phone number of the business. This status is read
|
253
|
+
# only and can be updated only by successful phone verification. Acceptable
|
254
|
+
# values are: - "`verified`" - "`unverified`"
|
255
|
+
# Corresponds to the JSON property `phoneVerificationStatus`
|
256
|
+
# @return [String]
|
257
|
+
attr_accessor :phone_verification_status
|
258
|
+
|
250
259
|
def initialize(**args)
|
251
260
|
update!(**args)
|
252
261
|
end
|
@@ -257,6 +266,7 @@ module Google
|
|
257
266
|
@customer_service = args[:customer_service] if args.key?(:customer_service)
|
258
267
|
@korean_business_registration_number = args[:korean_business_registration_number] if args.key?(:korean_business_registration_number)
|
259
268
|
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
269
|
+
@phone_verification_status = args[:phone_verification_status] if args.key?(:phone_verification_status)
|
260
270
|
end
|
261
271
|
end
|
262
272
|
|
@@ -1146,6 +1156,11 @@ module Google
|
|
1146
1156
|
# @return [String]
|
1147
1157
|
attr_accessor :action
|
1148
1158
|
|
1159
|
+
# Additional information required for E_COMMERCE_PLATFORM link type.
|
1160
|
+
# Corresponds to the JSON property `eCommercePlatformLinkInfo`
|
1161
|
+
# @return [Google::Apis::ContentV2_1::ECommercePlatformLinkInfo]
|
1162
|
+
attr_accessor :e_commerce_platform_link_info
|
1163
|
+
|
1149
1164
|
# Type of the link between the two accounts. Acceptable values are: - "`
|
1150
1165
|
# channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`"
|
1151
1166
|
# Corresponds to the JSON property `linkType`
|
@@ -1176,6 +1191,7 @@ module Google
|
|
1176
1191
|
# Update properties of this object
|
1177
1192
|
def update!(**args)
|
1178
1193
|
@action = args[:action] if args.key?(:action)
|
1194
|
+
@e_commerce_platform_link_info = args[:e_commerce_platform_link_info] if args.key?(:e_commerce_platform_link_info)
|
1179
1195
|
@link_type = args[:link_type] if args.key?(:link_type)
|
1180
1196
|
@linked_account_id = args[:linked_account_id] if args.key?(:linked_account_id)
|
1181
1197
|
@payment_service_provider_link_info = args[:payment_service_provider_link_info] if args.key?(:payment_service_provider_link_info)
|
@@ -1630,6 +1646,52 @@ module Google
|
|
1630
1646
|
end
|
1631
1647
|
end
|
1632
1648
|
|
1649
|
+
#
|
1650
|
+
class Address
|
1651
|
+
include Google::Apis::Core::Hashable
|
1652
|
+
|
1653
|
+
# Required. Top-level administrative subdivision of the country. For example, a
|
1654
|
+
# state like California ("CA") or a province like Quebec ("QC").
|
1655
|
+
# Corresponds to the JSON property `administrativeArea`
|
1656
|
+
# @return [String]
|
1657
|
+
attr_accessor :administrative_area
|
1658
|
+
|
1659
|
+
# Required. City, town or commune. May also include dependent localities or
|
1660
|
+
# sublocalities (e.g. neighborhoods or suburbs).
|
1661
|
+
# Corresponds to the JSON property `city`
|
1662
|
+
# @return [String]
|
1663
|
+
attr_accessor :city
|
1664
|
+
|
1665
|
+
# Required. [CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/
|
1666
|
+
# common/main/en.xml) (e.g. "US").
|
1667
|
+
# Corresponds to the JSON property `country`
|
1668
|
+
# @return [String]
|
1669
|
+
attr_accessor :country
|
1670
|
+
|
1671
|
+
# Required. Postal code or ZIP (e.g. "94043").
|
1672
|
+
# Corresponds to the JSON property `postalCode`
|
1673
|
+
# @return [String]
|
1674
|
+
attr_accessor :postal_code
|
1675
|
+
|
1676
|
+
# Street-level part of the address.
|
1677
|
+
# Corresponds to the JSON property `streetAddress`
|
1678
|
+
# @return [String]
|
1679
|
+
attr_accessor :street_address
|
1680
|
+
|
1681
|
+
def initialize(**args)
|
1682
|
+
update!(**args)
|
1683
|
+
end
|
1684
|
+
|
1685
|
+
# Update properties of this object
|
1686
|
+
def update!(**args)
|
1687
|
+
@administrative_area = args[:administrative_area] if args.key?(:administrative_area)
|
1688
|
+
@city = args[:city] if args.key?(:city)
|
1689
|
+
@country = args[:country] if args.key?(:country)
|
1690
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
1691
|
+
@street_address = args[:street_address] if args.key?(:street_address)
|
1692
|
+
end
|
1693
|
+
end
|
1694
|
+
|
1633
1695
|
#
|
1634
1696
|
class Amount
|
1635
1697
|
include Google::Apis::Core::Hashable
|
@@ -3238,6 +3300,25 @@ module Google
|
|
3238
3300
|
end
|
3239
3301
|
end
|
3240
3302
|
|
3303
|
+
# Additional information required for E_COMMERCE_PLATFORM link type.
|
3304
|
+
class ECommercePlatformLinkInfo
|
3305
|
+
include Google::Apis::Core::Hashable
|
3306
|
+
|
3307
|
+
# The id used by the third party service provider to identify the merchant.
|
3308
|
+
# Corresponds to the JSON property `externalAccountId`
|
3309
|
+
# @return [String]
|
3310
|
+
attr_accessor :external_account_id
|
3311
|
+
|
3312
|
+
def initialize(**args)
|
3313
|
+
update!(**args)
|
3314
|
+
end
|
3315
|
+
|
3316
|
+
# Update properties of this object
|
3317
|
+
def update!(**args)
|
3318
|
+
@external_account_id = args[:external_account_id] if args.key?(:external_account_id)
|
3319
|
+
end
|
3320
|
+
end
|
3321
|
+
|
3241
3322
|
# An error returned by the API.
|
3242
3323
|
class Error
|
3243
3324
|
include Google::Apis::Core::Hashable
|
@@ -4617,7 +4698,7 @@ module Google
|
|
4617
4698
|
|
4618
4699
|
# Supported pickup method for this offer. Unless the value is "not supported",
|
4619
4700
|
# this field must be submitted together with `pickupSla`. For accepted attribute
|
4620
|
-
# values, see the local product inventory feed
|
4701
|
+
# values, see the local product inventory feed specification.
|
4621
4702
|
# Corresponds to the JSON property `pickupMethod`
|
4622
4703
|
# @return [String]
|
4623
4704
|
attr_accessor :pickup_method
|
@@ -5553,7 +5634,7 @@ module Google
|
|
5553
5634
|
# "`noInventory`" - "`orderTimeout`" - "`other`" - "`paymentAbuse`" - "`
|
5554
5635
|
# paymentDeclined`" - "`priceError`" - "`returnRefundAbuse`" - "`
|
5555
5636
|
# shippingPriceError`" - "`taxError`" - "`undeliverableShippingAddress`" - "`
|
5556
|
-
# unsupportedPoBoxAddress`"
|
5637
|
+
# unsupportedPoBoxAddress`" - "`failedToCaptureFunds`"
|
5557
5638
|
# Corresponds to the JSON property `reason`
|
5558
5639
|
# @return [String]
|
5559
5640
|
attr_accessor :reason
|
@@ -6871,6 +6952,11 @@ module Google
|
|
6871
6952
|
class OrderTrackingSignalLineItemDetails
|
6872
6953
|
include Google::Apis::Core::Hashable
|
6873
6954
|
|
6955
|
+
# Brand of the product.
|
6956
|
+
# Corresponds to the JSON property `brand`
|
6957
|
+
# @return [String]
|
6958
|
+
attr_accessor :brand
|
6959
|
+
|
6874
6960
|
# The Global Trade Item Number.
|
6875
6961
|
# Corresponds to the JSON property `gtin`
|
6876
6962
|
# @return [String]
|
@@ -6886,28 +6972,54 @@ module Google
|
|
6886
6972
|
# @return [String]
|
6887
6973
|
attr_accessor :mpn
|
6888
6974
|
|
6975
|
+
# Plain text description of this product (deprecated: Please use product_title
|
6976
|
+
# instead).
|
6977
|
+
# Corresponds to the JSON property `productDescription`
|
6978
|
+
# @return [String]
|
6979
|
+
attr_accessor :product_description
|
6980
|
+
|
6889
6981
|
# Required. The Content API REST ID of the product, in the form channel:
|
6890
6982
|
# contentLanguage:targetCountry:offerId.
|
6891
6983
|
# Corresponds to the JSON property `productId`
|
6892
6984
|
# @return [String]
|
6893
6985
|
attr_accessor :product_id
|
6894
6986
|
|
6987
|
+
# Plain text title of this product.
|
6988
|
+
# Corresponds to the JSON property `productTitle`
|
6989
|
+
# @return [String]
|
6990
|
+
attr_accessor :product_title
|
6991
|
+
|
6895
6992
|
# Required. The quantity of the line item in the order.
|
6896
6993
|
# Corresponds to the JSON property `quantity`
|
6897
6994
|
# @return [Fixnum]
|
6898
6995
|
attr_accessor :quantity
|
6899
6996
|
|
6997
|
+
# Merchant SKU for this item (deprecated).
|
6998
|
+
# Corresponds to the JSON property `sku`
|
6999
|
+
# @return [String]
|
7000
|
+
attr_accessor :sku
|
7001
|
+
|
7002
|
+
# Universal product code for this item (deprecated: Please use GTIN instead).
|
7003
|
+
# Corresponds to the JSON property `upc`
|
7004
|
+
# @return [String]
|
7005
|
+
attr_accessor :upc
|
7006
|
+
|
6900
7007
|
def initialize(**args)
|
6901
7008
|
update!(**args)
|
6902
7009
|
end
|
6903
7010
|
|
6904
7011
|
# Update properties of this object
|
6905
7012
|
def update!(**args)
|
7013
|
+
@brand = args[:brand] if args.key?(:brand)
|
6906
7014
|
@gtin = args[:gtin] if args.key?(:gtin)
|
6907
7015
|
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
6908
7016
|
@mpn = args[:mpn] if args.key?(:mpn)
|
7017
|
+
@product_description = args[:product_description] if args.key?(:product_description)
|
6909
7018
|
@product_id = args[:product_id] if args.key?(:product_id)
|
7019
|
+
@product_title = args[:product_title] if args.key?(:product_title)
|
6910
7020
|
@quantity = args[:quantity] if args.key?(:quantity)
|
7021
|
+
@sku = args[:sku] if args.key?(:sku)
|
7022
|
+
@upc = args[:upc] if args.key?(:upc)
|
6911
7023
|
end
|
6912
7024
|
end
|
6913
7025
|
|
@@ -7841,7 +7953,8 @@ module Google
|
|
7841
7953
|
# The reason for the cancellation. Acceptable values are: - "`
|
7842
7954
|
# customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" -
|
7843
7955
|
# "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`
|
7844
|
-
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`"
|
7956
|
+
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "
|
7957
|
+
# `failedToCaptureFunds`"
|
7845
7958
|
# Corresponds to the JSON property `reason`
|
7846
7959
|
# @return [String]
|
7847
7960
|
attr_accessor :reason
|
@@ -7905,7 +8018,8 @@ module Google
|
|
7905
8018
|
# The reason for the cancellation. Acceptable values are: - "`
|
7906
8019
|
# customerInitiatedCancel`" - "`invalidCoupon`" - "`malformedShippingAddress`" -
|
7907
8020
|
# "`noInventory`" - "`other`" - "`priceError`" - "`shippingPriceError`" - "`
|
7908
|
-
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`"
|
8021
|
+
# taxError`" - "`undeliverableShippingAddress`" - "`unsupportedPoBoxAddress`" - "
|
8022
|
+
# `failedToCaptureFunds`"
|
7909
8023
|
# Corresponds to the JSON property `reason`
|
7910
8024
|
# @return [String]
|
7911
8025
|
attr_accessor :reason
|
@@ -11563,9 +11677,14 @@ module Google
|
|
11563
11677
|
end
|
11564
11678
|
end
|
11565
11679
|
|
11566
|
-
#
|
11567
|
-
#
|
11568
|
-
#
|
11680
|
+
# The Promotions feature is currently in alpha and is not yet publicly
|
11681
|
+
# available via Content API for Shopping. This documentation is provided for
|
11682
|
+
# reference only may be subject to change. Represents a promotion. See the
|
11683
|
+
# following articles for more details. * [Promotions feed specification](https://
|
11684
|
+
# support.google.com/merchants/answer/2906014) * [Local promotions feed
|
11685
|
+
# specification](https://support.google.com/merchants/answer/10146130) * [
|
11686
|
+
# Promotions on Buy on Google product data specification](https://support.google.
|
11687
|
+
# com/merchants/answer/9173673)
|
11569
11688
|
class Promotion
|
11570
11689
|
include Google::Apis::Core::Hashable
|
11571
11690
|
|
@@ -11616,7 +11735,9 @@ module Google
|
|
11616
11735
|
|
11617
11736
|
# Required. Output only. The REST promotion id to uniquely identify the
|
11618
11737
|
# promotion. Content API methods that operate on promotions take this as their
|
11619
|
-
# promotionId parameter.
|
11738
|
+
# promotionId parameter. The REST ID for a promotion is of the form channel:
|
11739
|
+
# contentLanguage:targetCountry:promotionId The channel field will have a value
|
11740
|
+
# of "online", "in_store", or "online_in_store".
|
11620
11741
|
# Corresponds to the JSON property `id`
|
11621
11742
|
# @return [String]
|
11622
11743
|
attr_accessor :id
|
@@ -11697,6 +11818,16 @@ module Google
|
|
11697
11818
|
# @return [String]
|
11698
11819
|
attr_accessor :product_applicability
|
11699
11820
|
|
11821
|
+
# Product filter by product type for the promotion.
|
11822
|
+
# Corresponds to the JSON property `productType`
|
11823
|
+
# @return [Array<String>]
|
11824
|
+
attr_accessor :product_type
|
11825
|
+
|
11826
|
+
# Product filter by product type exclusion for the promotion.
|
11827
|
+
# Corresponds to the JSON property `productTypeExclusion`
|
11828
|
+
# @return [Array<String>]
|
11829
|
+
attr_accessor :product_type_exclusion
|
11830
|
+
|
11700
11831
|
# Destination ID for the promotion.
|
11701
11832
|
# Corresponds to the JSON property `promotionDestinationIds`
|
11702
11833
|
# @return [Array<String>]
|
@@ -11764,6 +11895,8 @@ module Google
|
|
11764
11895
|
@order_limit = args[:order_limit] if args.key?(:order_limit)
|
11765
11896
|
@percent_off = args[:percent_off] if args.key?(:percent_off)
|
11766
11897
|
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
|
11898
|
+
@product_type = args[:product_type] if args.key?(:product_type)
|
11899
|
+
@product_type_exclusion = args[:product_type_exclusion] if args.key?(:product_type_exclusion)
|
11767
11900
|
@promotion_destination_ids = args[:promotion_destination_ids] if args.key?(:promotion_destination_ids)
|
11768
11901
|
@promotion_display_dates = args[:promotion_display_dates] if args.key?(:promotion_display_dates)
|
11769
11902
|
@promotion_effective_dates = args[:promotion_effective_dates] if args.key?(:promotion_effective_dates)
|
@@ -14674,6 +14807,11 @@ module Google
|
|
14674
14807
|
# @return [Array<Google::Apis::ContentV2_1::Service>]
|
14675
14808
|
attr_accessor :services
|
14676
14809
|
|
14810
|
+
# Optional. A list of warehouses which can be referred to in `services`.
|
14811
|
+
# Corresponds to the JSON property `warehouses`
|
14812
|
+
# @return [Array<Google::Apis::ContentV2_1::Warehouse>]
|
14813
|
+
attr_accessor :warehouses
|
14814
|
+
|
14677
14815
|
def initialize(**args)
|
14678
14816
|
update!(**args)
|
14679
14817
|
end
|
@@ -14683,6 +14821,7 @@ module Google
|
|
14683
14821
|
@account_id = args[:account_id] if args.key?(:account_id)
|
14684
14822
|
@postal_code_groups = args[:postal_code_groups] if args.key?(:postal_code_groups)
|
14685
14823
|
@services = args[:services] if args.key?(:services)
|
14824
|
+
@warehouses = args[:warehouses] if args.key?(:warehouses)
|
14686
14825
|
end
|
14687
14826
|
end
|
14688
14827
|
|
@@ -15742,6 +15881,54 @@ module Google
|
|
15742
15881
|
end
|
15743
15882
|
end
|
15744
15883
|
|
15884
|
+
# A fulfillment warehouse, which stores and handles inventory.
|
15885
|
+
class Warehouse
|
15886
|
+
include Google::Apis::Core::Hashable
|
15887
|
+
|
15888
|
+
# Business days of the warehouse. If not set, will be Monday to Friday by
|
15889
|
+
# default.
|
15890
|
+
# Corresponds to the JSON property `businessDayConfig`
|
15891
|
+
# @return [Google::Apis::ContentV2_1::BusinessDayConfig]
|
15892
|
+
attr_accessor :business_day_config
|
15893
|
+
|
15894
|
+
# Required. The latest time of day that an order can be accepted and begin
|
15895
|
+
# processing. Later orders will be processed in the next day. The time is based
|
15896
|
+
# on the warehouse postal code.
|
15897
|
+
# Corresponds to the JSON property `cutoffTime`
|
15898
|
+
# @return [Google::Apis::ContentV2_1::WarehouseCutoffTime]
|
15899
|
+
attr_accessor :cutoff_time
|
15900
|
+
|
15901
|
+
# Required. The number of days it takes for this warehouse to pack up and ship
|
15902
|
+
# an item. This is on the warehouse level, but can be overridden on the offer
|
15903
|
+
# level based on the attributes of an item.
|
15904
|
+
# Corresponds to the JSON property `handlingDays`
|
15905
|
+
# @return [Fixnum]
|
15906
|
+
attr_accessor :handling_days
|
15907
|
+
|
15908
|
+
# Required. The name of the warehouse. Must be unique within account.
|
15909
|
+
# Corresponds to the JSON property `name`
|
15910
|
+
# @return [String]
|
15911
|
+
attr_accessor :name
|
15912
|
+
|
15913
|
+
# Required. Shipping address of the warehouse.
|
15914
|
+
# Corresponds to the JSON property `shippingAddress`
|
15915
|
+
# @return [Google::Apis::ContentV2_1::Address]
|
15916
|
+
attr_accessor :shipping_address
|
15917
|
+
|
15918
|
+
def initialize(**args)
|
15919
|
+
update!(**args)
|
15920
|
+
end
|
15921
|
+
|
15922
|
+
# Update properties of this object
|
15923
|
+
def update!(**args)
|
15924
|
+
@business_day_config = args[:business_day_config] if args.key?(:business_day_config)
|
15925
|
+
@cutoff_time = args[:cutoff_time] if args.key?(:cutoff_time)
|
15926
|
+
@handling_days = args[:handling_days] if args.key?(:handling_days)
|
15927
|
+
@name = args[:name] if args.key?(:name)
|
15928
|
+
@shipping_address = args[:shipping_address] if args.key?(:shipping_address)
|
15929
|
+
end
|
15930
|
+
end
|
15931
|
+
|
15745
15932
|
#
|
15746
15933
|
class WarehouseBasedDeliveryTime
|
15747
15934
|
include Google::Apis::Core::Hashable
|
@@ -15760,23 +15947,23 @@ module Google
|
|
15760
15947
|
# @return [String]
|
15761
15948
|
attr_accessor :carrier_service
|
15762
15949
|
|
15763
|
-
#
|
15950
|
+
# Shipping origin's state.
|
15764
15951
|
# Corresponds to the JSON property `originAdministrativeArea`
|
15765
15952
|
# @return [String]
|
15766
15953
|
attr_accessor :origin_administrative_area
|
15767
15954
|
|
15768
|
-
#
|
15955
|
+
# Shipping origin's city.
|
15769
15956
|
# Corresponds to the JSON property `originCity`
|
15770
15957
|
# @return [String]
|
15771
15958
|
attr_accessor :origin_city
|
15772
15959
|
|
15773
|
-
#
|
15774
|
-
#
|
15960
|
+
# Shipping origin's country represented as a [CLDR territory code](http://www.
|
15961
|
+
# unicode.org/repos/cldr/tags/latest/common/main/en.xml).
|
15775
15962
|
# Corresponds to the JSON property `originCountry`
|
15776
15963
|
# @return [String]
|
15777
15964
|
attr_accessor :origin_country
|
15778
15965
|
|
15779
|
-
#
|
15966
|
+
# Shipping origin.
|
15780
15967
|
# Corresponds to the JSON property `originPostalCode`
|
15781
15968
|
# @return [String]
|
15782
15969
|
attr_accessor :origin_postal_code
|
@@ -15786,6 +15973,13 @@ module Google
|
|
15786
15973
|
# @return [String]
|
15787
15974
|
attr_accessor :origin_street_address
|
15788
15975
|
|
15976
|
+
# The name of the warehouse. Warehouse name need to be matched with name. If
|
15977
|
+
# warehouseName is set, the below fields will be ignored. The warehouse info
|
15978
|
+
# will be read from warehouse.
|
15979
|
+
# Corresponds to the JSON property `warehouseName`
|
15980
|
+
# @return [String]
|
15981
|
+
attr_accessor :warehouse_name
|
15982
|
+
|
15789
15983
|
def initialize(**args)
|
15790
15984
|
update!(**args)
|
15791
15985
|
end
|
@@ -15799,6 +15993,36 @@ module Google
|
|
15799
15993
|
@origin_country = args[:origin_country] if args.key?(:origin_country)
|
15800
15994
|
@origin_postal_code = args[:origin_postal_code] if args.key?(:origin_postal_code)
|
15801
15995
|
@origin_street_address = args[:origin_street_address] if args.key?(:origin_street_address)
|
15996
|
+
@warehouse_name = args[:warehouse_name] if args.key?(:warehouse_name)
|
15997
|
+
end
|
15998
|
+
end
|
15999
|
+
|
16000
|
+
#
|
16001
|
+
class WarehouseCutoffTime
|
16002
|
+
include Google::Apis::Core::Hashable
|
16003
|
+
|
16004
|
+
# Required. Hour (24-hour clock) of the cutoff time until which an order has to
|
16005
|
+
# be placed to be processed in the same day by the warehouse. Hour is based on
|
16006
|
+
# the timezone of warehouse.
|
16007
|
+
# Corresponds to the JSON property `hour`
|
16008
|
+
# @return [Fixnum]
|
16009
|
+
attr_accessor :hour
|
16010
|
+
|
16011
|
+
# Required. Minute of the cutoff time until which an order has to be placed to
|
16012
|
+
# be processed in the same day by the warehouse. Minute is based on the timezone
|
16013
|
+
# of warehouse.
|
16014
|
+
# Corresponds to the JSON property `minute`
|
16015
|
+
# @return [Fixnum]
|
16016
|
+
attr_accessor :minute
|
16017
|
+
|
16018
|
+
def initialize(**args)
|
16019
|
+
update!(**args)
|
16020
|
+
end
|
16021
|
+
|
16022
|
+
# Update properties of this object
|
16023
|
+
def update!(**args)
|
16024
|
+
@hour = args[:hour] if args.key?(:hour)
|
16025
|
+
@minute = args[:minute] if args.key?(:minute)
|
15802
16026
|
end
|
15803
16027
|
end
|
15804
16028
|
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.25.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 = "
|
25
|
+
REVISION = "20211021"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -280,6 +280,12 @@ module Google
|
|
280
280
|
include Google::Apis::Core::JsonObjectSupport
|
281
281
|
end
|
282
282
|
|
283
|
+
class Address
|
284
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
|
+
|
286
|
+
include Google::Apis::Core::JsonObjectSupport
|
287
|
+
end
|
288
|
+
|
283
289
|
class Amount
|
284
290
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
285
291
|
|
@@ -502,6 +508,12 @@ module Google
|
|
502
508
|
include Google::Apis::Core::JsonObjectSupport
|
503
509
|
end
|
504
510
|
|
511
|
+
class ECommercePlatformLinkInfo
|
512
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
+
|
514
|
+
include Google::Apis::Core::JsonObjectSupport
|
515
|
+
end
|
516
|
+
|
505
517
|
class Error
|
506
518
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
519
|
|
@@ -2290,12 +2302,24 @@ module Google
|
|
2290
2302
|
include Google::Apis::Core::JsonObjectSupport
|
2291
2303
|
end
|
2292
2304
|
|
2305
|
+
class Warehouse
|
2306
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2307
|
+
|
2308
|
+
include Google::Apis::Core::JsonObjectSupport
|
2309
|
+
end
|
2310
|
+
|
2293
2311
|
class WarehouseBasedDeliveryTime
|
2294
2312
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2295
2313
|
|
2296
2314
|
include Google::Apis::Core::JsonObjectSupport
|
2297
2315
|
end
|
2298
2316
|
|
2317
|
+
class WarehouseCutoffTime
|
2318
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2319
|
+
|
2320
|
+
include Google::Apis::Core::JsonObjectSupport
|
2321
|
+
end
|
2322
|
+
|
2299
2323
|
class Weight
|
2300
2324
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2301
2325
|
|
@@ -2356,6 +2380,7 @@ module Google
|
|
2356
2380
|
|
2357
2381
|
property :korean_business_registration_number, as: 'koreanBusinessRegistrationNumber'
|
2358
2382
|
property :phone_number, as: 'phoneNumber'
|
2383
|
+
property :phone_verification_status, as: 'phoneVerificationStatus'
|
2359
2384
|
end
|
2360
2385
|
end
|
2361
2386
|
|
@@ -2596,6 +2621,8 @@ module Google
|
|
2596
2621
|
# @private
|
2597
2622
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2598
2623
|
property :action, as: 'action'
|
2624
|
+
property :e_commerce_platform_link_info, as: 'eCommercePlatformLinkInfo', class: Google::Apis::ContentV2_1::ECommercePlatformLinkInfo, decorator: Google::Apis::ContentV2_1::ECommercePlatformLinkInfo::Representation
|
2625
|
+
|
2599
2626
|
property :link_type, as: 'linkType'
|
2600
2627
|
property :linked_account_id, as: 'linkedAccountId'
|
2601
2628
|
property :payment_service_provider_link_info, as: 'paymentServiceProviderLinkInfo', class: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo, decorator: Google::Apis::ContentV2_1::PaymentServiceProviderLinkInfo::Representation
|
@@ -2751,6 +2778,17 @@ module Google
|
|
2751
2778
|
end
|
2752
2779
|
end
|
2753
2780
|
|
2781
|
+
class Address
|
2782
|
+
# @private
|
2783
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2784
|
+
property :administrative_area, as: 'administrativeArea'
|
2785
|
+
property :city, as: 'city'
|
2786
|
+
property :country, as: 'country'
|
2787
|
+
property :postal_code, as: 'postalCode'
|
2788
|
+
property :street_address, as: 'streetAddress'
|
2789
|
+
end
|
2790
|
+
end
|
2791
|
+
|
2754
2792
|
class Amount
|
2755
2793
|
# @private
|
2756
2794
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3166,6 +3204,13 @@ module Google
|
|
3166
3204
|
end
|
3167
3205
|
end
|
3168
3206
|
|
3207
|
+
class ECommercePlatformLinkInfo
|
3208
|
+
# @private
|
3209
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3210
|
+
property :external_account_id, as: 'externalAccountId'
|
3211
|
+
end
|
3212
|
+
end
|
3213
|
+
|
3169
3214
|
class Error
|
3170
3215
|
# @private
|
3171
3216
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4157,11 +4202,16 @@ module Google
|
|
4157
4202
|
class OrderTrackingSignalLineItemDetails
|
4158
4203
|
# @private
|
4159
4204
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4205
|
+
property :brand, as: 'brand'
|
4160
4206
|
property :gtin, as: 'gtin'
|
4161
4207
|
property :line_item_id, as: 'lineItemId'
|
4162
4208
|
property :mpn, as: 'mpn'
|
4209
|
+
property :product_description, as: 'productDescription'
|
4163
4210
|
property :product_id, as: 'productId'
|
4211
|
+
property :product_title, as: 'productTitle'
|
4164
4212
|
property :quantity, :numeric_string => true, as: 'quantity'
|
4213
|
+
property :sku, as: 'sku'
|
4214
|
+
property :upc, as: 'upc'
|
4165
4215
|
end
|
4166
4216
|
end
|
4167
4217
|
|
@@ -5431,6 +5481,8 @@ module Google
|
|
5431
5481
|
property :order_limit, as: 'orderLimit'
|
5432
5482
|
property :percent_off, as: 'percentOff'
|
5433
5483
|
property :product_applicability, as: 'productApplicability'
|
5484
|
+
collection :product_type, as: 'productType'
|
5485
|
+
collection :product_type_exclusion, as: 'productTypeExclusion'
|
5434
5486
|
collection :promotion_destination_ids, as: 'promotionDestinationIds'
|
5435
5487
|
property :promotion_display_dates, as: 'promotionDisplayDates'
|
5436
5488
|
property :promotion_effective_dates, as: 'promotionEffectiveDates'
|
@@ -6227,6 +6279,8 @@ module Google
|
|
6227
6279
|
|
6228
6280
|
collection :services, as: 'services', class: Google::Apis::ContentV2_1::Service, decorator: Google::Apis::ContentV2_1::Service::Representation
|
6229
6281
|
|
6282
|
+
collection :warehouses, as: 'warehouses', class: Google::Apis::ContentV2_1::Warehouse, decorator: Google::Apis::ContentV2_1::Warehouse::Representation
|
6283
|
+
|
6230
6284
|
end
|
6231
6285
|
end
|
6232
6286
|
|
@@ -6538,6 +6592,20 @@ module Google
|
|
6538
6592
|
end
|
6539
6593
|
end
|
6540
6594
|
|
6595
|
+
class Warehouse
|
6596
|
+
# @private
|
6597
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6598
|
+
property :business_day_config, as: 'businessDayConfig', class: Google::Apis::ContentV2_1::BusinessDayConfig, decorator: Google::Apis::ContentV2_1::BusinessDayConfig::Representation
|
6599
|
+
|
6600
|
+
property :cutoff_time, as: 'cutoffTime', class: Google::Apis::ContentV2_1::WarehouseCutoffTime, decorator: Google::Apis::ContentV2_1::WarehouseCutoffTime::Representation
|
6601
|
+
|
6602
|
+
property :handling_days, :numeric_string => true, as: 'handlingDays'
|
6603
|
+
property :name, as: 'name'
|
6604
|
+
property :shipping_address, as: 'shippingAddress', class: Google::Apis::ContentV2_1::Address, decorator: Google::Apis::ContentV2_1::Address::Representation
|
6605
|
+
|
6606
|
+
end
|
6607
|
+
end
|
6608
|
+
|
6541
6609
|
class WarehouseBasedDeliveryTime
|
6542
6610
|
# @private
|
6543
6611
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6548,6 +6616,15 @@ module Google
|
|
6548
6616
|
property :origin_country, as: 'originCountry'
|
6549
6617
|
property :origin_postal_code, as: 'originPostalCode'
|
6550
6618
|
property :origin_street_address, as: 'originStreetAddress'
|
6619
|
+
property :warehouse_name, as: 'warehouseName'
|
6620
|
+
end
|
6621
|
+
end
|
6622
|
+
|
6623
|
+
class WarehouseCutoffTime
|
6624
|
+
# @private
|
6625
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6626
|
+
property :hour, as: 'hour'
|
6627
|
+
property :minute, as: 'minute'
|
6551
6628
|
end
|
6552
6629
|
end
|
6553
6630
|
|
@@ -3147,7 +3147,12 @@ module Google
|
|
3147
3147
|
# the payment processsor. If this method succeeds, the merchant is guaranteed to
|
3148
3148
|
# receive funds for the order after shipment. If the request fails, it can be
|
3149
3149
|
# retried or the order may be cancelled. This method cannot be called after the
|
3150
|
-
# entire order is already shipped.
|
3150
|
+
# entire order is already shipped. A rejected error code is returned when the
|
3151
|
+
# payment service provider has declined the charge. This indicates a problem
|
3152
|
+
# between the PSP and either the merchant's or customer's account. Sometimes
|
3153
|
+
# this error will be resolved by the customer. We recommend retrying these
|
3154
|
+
# errors once per day or cancelling the order with reason `failedToCaptureFunds`
|
3155
|
+
# if the items cannot be held.
|
3151
3156
|
# @param [Fixnum] merchant_id
|
3152
3157
|
# Required. The ID of the account that manages the order. This cannot be a multi-
|
3153
3158
|
# client account.
|
@@ -4512,6 +4517,39 @@ module Google
|
|
4512
4517
|
execute_or_queue_command(command, &block)
|
4513
4518
|
end
|
4514
4519
|
|
4520
|
+
# Retrieves a promotion from your Merchant Center account.
|
4521
|
+
# @param [Fixnum] merchant_id
|
4522
|
+
# Required. The ID of the account that contains the collection.
|
4523
|
+
# @param [String] id
|
4524
|
+
# Required. REST ID of the promotion to retrieve.
|
4525
|
+
# @param [String] fields
|
4526
|
+
# Selector specifying which fields to include in a partial response.
|
4527
|
+
# @param [String] quota_user
|
4528
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4529
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4530
|
+
# @param [Google::Apis::RequestOptions] options
|
4531
|
+
# Request-specific options
|
4532
|
+
#
|
4533
|
+
# @yield [result, err] Result & error if block supplied
|
4534
|
+
# @yieldparam result [Google::Apis::ContentV2_1::Promotion] parsed result object
|
4535
|
+
# @yieldparam err [StandardError] error object if request failed
|
4536
|
+
#
|
4537
|
+
# @return [Google::Apis::ContentV2_1::Promotion]
|
4538
|
+
#
|
4539
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4540
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4541
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4542
|
+
def get_promotion(merchant_id, id, fields: nil, quota_user: nil, options: nil, &block)
|
4543
|
+
command = make_simple_command(:get, '{merchantId}/promotions/{id}', options)
|
4544
|
+
command.response_representation = Google::Apis::ContentV2_1::Promotion::Representation
|
4545
|
+
command.response_class = Google::Apis::ContentV2_1::Promotion
|
4546
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
4547
|
+
command.params['id'] = id unless id.nil?
|
4548
|
+
command.query['fields'] = fields unless fields.nil?
|
4549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4550
|
+
execute_or_queue_command(command, &block)
|
4551
|
+
end
|
4552
|
+
|
4515
4553
|
# Retrieves a Merchant Center account's pubsub notification settings.
|
4516
4554
|
# @param [Fixnum] merchant_id
|
4517
4555
|
# The ID of the account for which to get pubsub notification settings.
|
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.
|
4
|
+
version: 0.25.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-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2_1/v0.25.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2_1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|