google-apis-content_v2 0.14.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 +4 -4
- data/CHANGELOG.md +13 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/content_v2/classes.rb +30 -413
- data/lib/google/apis/content_v2/gem_version.rb +3 -3
- data/lib/google/apis/content_v2/representations.rb +5 -155
- data/lib/google/apis/content_v2/service.rb +0 -80
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f19b9d698ef386084134bf7335251e468de9cf1804523944181c7f69aecc116
|
4
|
+
data.tar.gz: cdb38db9f0b7e875a6fc4e9c6af509d99c7534869147d6eb1fe684c3b6bddeb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a217ef86a5fc5c0625cce4ef0bb6f29985e2d0d68adcf730088302be268522f187bd649c60f76a3b555d33584dfe1eacf64e1f091ece27152daca2aca6ddd6e3
|
7
|
+
data.tar.gz: 80cf3fb0326b530ba62c9bdf67186603480d5c43d9012fdfaefaecf1aa5f50ecfed92c20a1269b299b2994e8535efaeae21399e3d120964e0db7935248d89e95
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-content_v2
|
2
2
|
|
3
|
+
### v0.17.0 (2022-03-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220317
|
6
|
+
* Regenerated using generator version 0.4.1
|
7
|
+
|
8
|
+
### v0.16.0 (2022-01-11)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20220105
|
11
|
+
|
12
|
+
### v0.15.0 (2021-12-16)
|
13
|
+
|
14
|
+
* Unspecified changes
|
15
|
+
|
3
16
|
### v0.14.0 (2021-10-20)
|
4
17
|
|
5
18
|
* Unspecified changes
|
data/OVERVIEW.md
CHANGED
@@ -51,7 +51,7 @@ require "google/apis/content_v2"
|
|
51
51
|
client = Google::Apis::ContentV2::ShoppingContentService.new
|
52
52
|
|
53
53
|
# Authenticate calls
|
54
|
-
client.
|
54
|
+
client.authorization = # ... use the googleauth gem to create credentials
|
55
55
|
```
|
56
56
|
|
57
57
|
See the class reference docs for information on the methods you can call from a client.
|
@@ -2960,419 +2960,6 @@ module Google
|
|
2960
2960
|
end
|
2961
2961
|
end
|
2962
2962
|
|
2963
|
-
#
|
2964
|
-
class Inventory
|
2965
|
-
include Google::Apis::Core::Hashable
|
2966
|
-
|
2967
|
-
# The availability of the product. Acceptable values are: - "`in stock`" - "`out
|
2968
|
-
# of stock`" - "`preorder`"
|
2969
|
-
# Corresponds to the JSON property `availability`
|
2970
|
-
# @return [String]
|
2971
|
-
attr_accessor :availability
|
2972
|
-
|
2973
|
-
# Custom label 0 for custom grouping of items in a Shopping campaign. Only
|
2974
|
-
# supported for online products.
|
2975
|
-
# Corresponds to the JSON property `customLabel0`
|
2976
|
-
# @return [String]
|
2977
|
-
attr_accessor :custom_label0
|
2978
|
-
|
2979
|
-
# Custom label 1 for custom grouping of items in a Shopping campaign. Only
|
2980
|
-
# supported for online products.
|
2981
|
-
# Corresponds to the JSON property `customLabel1`
|
2982
|
-
# @return [String]
|
2983
|
-
attr_accessor :custom_label1
|
2984
|
-
|
2985
|
-
# Custom label 2 for custom grouping of items in a Shopping campaign. Only
|
2986
|
-
# supported for online products.
|
2987
|
-
# Corresponds to the JSON property `customLabel2`
|
2988
|
-
# @return [String]
|
2989
|
-
attr_accessor :custom_label2
|
2990
|
-
|
2991
|
-
# Custom label 3 for custom grouping of items in a Shopping campaign. Only
|
2992
|
-
# supported for online products.
|
2993
|
-
# Corresponds to the JSON property `customLabel3`
|
2994
|
-
# @return [String]
|
2995
|
-
attr_accessor :custom_label3
|
2996
|
-
|
2997
|
-
# Custom label 3 for custom grouping of items in a Shopping campaign. Only
|
2998
|
-
# supported for online products.
|
2999
|
-
# Corresponds to the JSON property `customLabel4`
|
3000
|
-
# @return [String]
|
3001
|
-
attr_accessor :custom_label4
|
3002
|
-
|
3003
|
-
# Number and amount of installments to pay for an item. Brazil only.
|
3004
|
-
# Corresponds to the JSON property `installment`
|
3005
|
-
# @return [Google::Apis::ContentV2::Installment]
|
3006
|
-
attr_accessor :installment
|
3007
|
-
|
3008
|
-
# The instore product location. Supported only for local products.
|
3009
|
-
# Corresponds to the JSON property `instoreProductLocation`
|
3010
|
-
# @return [String]
|
3011
|
-
attr_accessor :instore_product_location
|
3012
|
-
|
3013
|
-
# Identifies what kind of resource this is. Value: the fixed string "`content#
|
3014
|
-
# inventory`"
|
3015
|
-
# Corresponds to the JSON property `kind`
|
3016
|
-
# @return [String]
|
3017
|
-
attr_accessor :kind
|
3018
|
-
|
3019
|
-
# Loyalty points that users receive after purchasing the item. Japan only.
|
3020
|
-
# Corresponds to the JSON property `loyaltyPoints`
|
3021
|
-
# @return [Google::Apis::ContentV2::LoyaltyPoints]
|
3022
|
-
attr_accessor :loyalty_points
|
3023
|
-
|
3024
|
-
# Store pickup information. Only supported for local inventory. Not setting `
|
3025
|
-
# pickup` means "don't update" while setting it to the empty value (```` in JSON)
|
3026
|
-
# means "delete". Otherwise, `pickupMethod` and `pickupSla` must be set
|
3027
|
-
# together, unless `pickupMethod` is "not supported".
|
3028
|
-
# Corresponds to the JSON property `pickup`
|
3029
|
-
# @return [Google::Apis::ContentV2::InventoryPickup]
|
3030
|
-
attr_accessor :pickup
|
3031
|
-
|
3032
|
-
# The price of the product.
|
3033
|
-
# Corresponds to the JSON property `price`
|
3034
|
-
# @return [Google::Apis::ContentV2::Price]
|
3035
|
-
attr_accessor :price
|
3036
|
-
|
3037
|
-
# The quantity of the product. Must be equal to or greater than zero. Supported
|
3038
|
-
# only for local products.
|
3039
|
-
# Corresponds to the JSON property `quantity`
|
3040
|
-
# @return [Fixnum]
|
3041
|
-
attr_accessor :quantity
|
3042
|
-
|
3043
|
-
# The sale price of the product. Mandatory if `sale_price_effective_date` is
|
3044
|
-
# defined.
|
3045
|
-
# Corresponds to the JSON property `salePrice`
|
3046
|
-
# @return [Google::Apis::ContentV2::Price]
|
3047
|
-
attr_accessor :sale_price
|
3048
|
-
|
3049
|
-
# A date range represented by a pair of ISO 8601 dates separated by a space,
|
3050
|
-
# comma, or slash. Both dates might be specified as 'null' if undecided.
|
3051
|
-
# Corresponds to the JSON property `salePriceEffectiveDate`
|
3052
|
-
# @return [String]
|
3053
|
-
attr_accessor :sale_price_effective_date
|
3054
|
-
|
3055
|
-
# The quantity of the product that is available for selling on Google. Supported
|
3056
|
-
# only for online products.
|
3057
|
-
# Corresponds to the JSON property `sellOnGoogleQuantity`
|
3058
|
-
# @return [Fixnum]
|
3059
|
-
attr_accessor :sell_on_google_quantity
|
3060
|
-
|
3061
|
-
def initialize(**args)
|
3062
|
-
update!(**args)
|
3063
|
-
end
|
3064
|
-
|
3065
|
-
# Update properties of this object
|
3066
|
-
def update!(**args)
|
3067
|
-
@availability = args[:availability] if args.key?(:availability)
|
3068
|
-
@custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
|
3069
|
-
@custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
|
3070
|
-
@custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
|
3071
|
-
@custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
|
3072
|
-
@custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
|
3073
|
-
@installment = args[:installment] if args.key?(:installment)
|
3074
|
-
@instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location)
|
3075
|
-
@kind = args[:kind] if args.key?(:kind)
|
3076
|
-
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
|
3077
|
-
@pickup = args[:pickup] if args.key?(:pickup)
|
3078
|
-
@price = args[:price] if args.key?(:price)
|
3079
|
-
@quantity = args[:quantity] if args.key?(:quantity)
|
3080
|
-
@sale_price = args[:sale_price] if args.key?(:sale_price)
|
3081
|
-
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
|
3082
|
-
@sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
|
3083
|
-
end
|
3084
|
-
end
|
3085
|
-
|
3086
|
-
#
|
3087
|
-
class BatchInventoryRequest
|
3088
|
-
include Google::Apis::Core::Hashable
|
3089
|
-
|
3090
|
-
# The request entries to be processed in the batch.
|
3091
|
-
# Corresponds to the JSON property `entries`
|
3092
|
-
# @return [Array<Google::Apis::ContentV2::InventoryBatchRequestEntry>]
|
3093
|
-
attr_accessor :entries
|
3094
|
-
|
3095
|
-
def initialize(**args)
|
3096
|
-
update!(**args)
|
3097
|
-
end
|
3098
|
-
|
3099
|
-
# Update properties of this object
|
3100
|
-
def update!(**args)
|
3101
|
-
@entries = args[:entries] if args.key?(:entries)
|
3102
|
-
end
|
3103
|
-
end
|
3104
|
-
|
3105
|
-
# A batch entry encoding a single non-batch inventory request.
|
3106
|
-
class InventoryBatchRequestEntry
|
3107
|
-
include Google::Apis::Core::Hashable
|
3108
|
-
|
3109
|
-
# An entry ID, unique within the batch request.
|
3110
|
-
# Corresponds to the JSON property `batchId`
|
3111
|
-
# @return [Fixnum]
|
3112
|
-
attr_accessor :batch_id
|
3113
|
-
|
3114
|
-
# Price and availability of the product.
|
3115
|
-
# Corresponds to the JSON property `inventory`
|
3116
|
-
# @return [Google::Apis::ContentV2::Inventory]
|
3117
|
-
attr_accessor :inventory
|
3118
|
-
|
3119
|
-
# The ID of the managing account.
|
3120
|
-
# Corresponds to the JSON property `merchantId`
|
3121
|
-
# @return [Fixnum]
|
3122
|
-
attr_accessor :merchant_id
|
3123
|
-
|
3124
|
-
# The ID of the product for which to update price and availability.
|
3125
|
-
# Corresponds to the JSON property `productId`
|
3126
|
-
# @return [String]
|
3127
|
-
attr_accessor :product_id
|
3128
|
-
|
3129
|
-
# The code of the store for which to update price and availability. Use `online`
|
3130
|
-
# to update price and availability of an online product.
|
3131
|
-
# Corresponds to the JSON property `storeCode`
|
3132
|
-
# @return [String]
|
3133
|
-
attr_accessor :store_code
|
3134
|
-
|
3135
|
-
def initialize(**args)
|
3136
|
-
update!(**args)
|
3137
|
-
end
|
3138
|
-
|
3139
|
-
# Update properties of this object
|
3140
|
-
def update!(**args)
|
3141
|
-
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
3142
|
-
@inventory = args[:inventory] if args.key?(:inventory)
|
3143
|
-
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
3144
|
-
@product_id = args[:product_id] if args.key?(:product_id)
|
3145
|
-
@store_code = args[:store_code] if args.key?(:store_code)
|
3146
|
-
end
|
3147
|
-
end
|
3148
|
-
|
3149
|
-
#
|
3150
|
-
class BatchInventoryResponse
|
3151
|
-
include Google::Apis::Core::Hashable
|
3152
|
-
|
3153
|
-
# The result of the execution of the batch requests.
|
3154
|
-
# Corresponds to the JSON property `entries`
|
3155
|
-
# @return [Array<Google::Apis::ContentV2::InventoryBatchResponseEntry>]
|
3156
|
-
attr_accessor :entries
|
3157
|
-
|
3158
|
-
# Identifies what kind of resource this is. Value: the fixed string "content#
|
3159
|
-
# inventoryCustomBatchResponse".
|
3160
|
-
# Corresponds to the JSON property `kind`
|
3161
|
-
# @return [String]
|
3162
|
-
attr_accessor :kind
|
3163
|
-
|
3164
|
-
def initialize(**args)
|
3165
|
-
update!(**args)
|
3166
|
-
end
|
3167
|
-
|
3168
|
-
# Update properties of this object
|
3169
|
-
def update!(**args)
|
3170
|
-
@entries = args[:entries] if args.key?(:entries)
|
3171
|
-
@kind = args[:kind] if args.key?(:kind)
|
3172
|
-
end
|
3173
|
-
end
|
3174
|
-
|
3175
|
-
# A batch entry encoding a single non-batch inventory response.
|
3176
|
-
class InventoryBatchResponseEntry
|
3177
|
-
include Google::Apis::Core::Hashable
|
3178
|
-
|
3179
|
-
# The ID of the request entry this entry responds to.
|
3180
|
-
# Corresponds to the JSON property `batchId`
|
3181
|
-
# @return [Fixnum]
|
3182
|
-
attr_accessor :batch_id
|
3183
|
-
|
3184
|
-
# A list of errors returned by a failed batch entry.
|
3185
|
-
# Corresponds to the JSON property `errors`
|
3186
|
-
# @return [Google::Apis::ContentV2::Errors]
|
3187
|
-
attr_accessor :errors
|
3188
|
-
|
3189
|
-
# Identifies what kind of resource this is. Value: the fixed string "`content#
|
3190
|
-
# inventoryCustomBatchResponseEntry`"
|
3191
|
-
# Corresponds to the JSON property `kind`
|
3192
|
-
# @return [String]
|
3193
|
-
attr_accessor :kind
|
3194
|
-
|
3195
|
-
def initialize(**args)
|
3196
|
-
update!(**args)
|
3197
|
-
end
|
3198
|
-
|
3199
|
-
# Update properties of this object
|
3200
|
-
def update!(**args)
|
3201
|
-
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
3202
|
-
@errors = args[:errors] if args.key?(:errors)
|
3203
|
-
@kind = args[:kind] if args.key?(:kind)
|
3204
|
-
end
|
3205
|
-
end
|
3206
|
-
|
3207
|
-
#
|
3208
|
-
class InventoryPickup
|
3209
|
-
include Google::Apis::Core::Hashable
|
3210
|
-
|
3211
|
-
# Whether store pickup is available for this offer and whether the pickup option
|
3212
|
-
# should be shown as buy, reserve, or not supported. Only supported for local
|
3213
|
-
# inventory. Unless the value is "not supported", must be submitted together
|
3214
|
-
# with `pickupSla`. Acceptable values are: - "`buy`" - "`not supported`" - "`
|
3215
|
-
# reserve`" - "`ship to store`"
|
3216
|
-
# Corresponds to the JSON property `pickupMethod`
|
3217
|
-
# @return [String]
|
3218
|
-
attr_accessor :pickup_method
|
3219
|
-
|
3220
|
-
# The expected date that an order will be ready for pickup, relative to when the
|
3221
|
-
# order is placed. Only supported for local inventory. Must be submitted
|
3222
|
-
# together with `pickupMethod`. Acceptable values are: - "`five day`" - "`four
|
3223
|
-
# day`" - "`multi day`" - "`multi week`" - "`next day`" - "`same day`" - "`seven
|
3224
|
-
# day`" - "`six day`" - "`three day`" - "`two day`"
|
3225
|
-
# Corresponds to the JSON property `pickupSla`
|
3226
|
-
# @return [String]
|
3227
|
-
attr_accessor :pickup_sla
|
3228
|
-
|
3229
|
-
def initialize(**args)
|
3230
|
-
update!(**args)
|
3231
|
-
end
|
3232
|
-
|
3233
|
-
# Update properties of this object
|
3234
|
-
def update!(**args)
|
3235
|
-
@pickup_method = args[:pickup_method] if args.key?(:pickup_method)
|
3236
|
-
@pickup_sla = args[:pickup_sla] if args.key?(:pickup_sla)
|
3237
|
-
end
|
3238
|
-
end
|
3239
|
-
|
3240
|
-
#
|
3241
|
-
class SetInventoryRequest
|
3242
|
-
include Google::Apis::Core::Hashable
|
3243
|
-
|
3244
|
-
# The availability of the product. Acceptable values are: - "`in stock`" - "`out
|
3245
|
-
# of stock`" - "`preorder`"
|
3246
|
-
# Corresponds to the JSON property `availability`
|
3247
|
-
# @return [String]
|
3248
|
-
attr_accessor :availability
|
3249
|
-
|
3250
|
-
# Custom label 0 for custom grouping of items in a Shopping campaign. Only
|
3251
|
-
# supported for online products.
|
3252
|
-
# Corresponds to the JSON property `customLabel0`
|
3253
|
-
# @return [String]
|
3254
|
-
attr_accessor :custom_label0
|
3255
|
-
|
3256
|
-
# Custom label 1 for custom grouping of items in a Shopping campaign. Only
|
3257
|
-
# supported for online products.
|
3258
|
-
# Corresponds to the JSON property `customLabel1`
|
3259
|
-
# @return [String]
|
3260
|
-
attr_accessor :custom_label1
|
3261
|
-
|
3262
|
-
# Custom label 2 for custom grouping of items in a Shopping campaign. Only
|
3263
|
-
# supported for online products.
|
3264
|
-
# Corresponds to the JSON property `customLabel2`
|
3265
|
-
# @return [String]
|
3266
|
-
attr_accessor :custom_label2
|
3267
|
-
|
3268
|
-
# Custom label 3 for custom grouping of items in a Shopping campaign. Only
|
3269
|
-
# supported for online products.
|
3270
|
-
# Corresponds to the JSON property `customLabel3`
|
3271
|
-
# @return [String]
|
3272
|
-
attr_accessor :custom_label3
|
3273
|
-
|
3274
|
-
# Custom label 3 for custom grouping of items in a Shopping campaign. Only
|
3275
|
-
# supported for online products.
|
3276
|
-
# Corresponds to the JSON property `customLabel4`
|
3277
|
-
# @return [String]
|
3278
|
-
attr_accessor :custom_label4
|
3279
|
-
|
3280
|
-
# Number and amount of installments to pay for an item. Brazil only.
|
3281
|
-
# Corresponds to the JSON property `installment`
|
3282
|
-
# @return [Google::Apis::ContentV2::Installment]
|
3283
|
-
attr_accessor :installment
|
3284
|
-
|
3285
|
-
# The instore product location. Supported only for local products.
|
3286
|
-
# Corresponds to the JSON property `instoreProductLocation`
|
3287
|
-
# @return [String]
|
3288
|
-
attr_accessor :instore_product_location
|
3289
|
-
|
3290
|
-
# Loyalty points that users receive after purchasing the item. Japan only.
|
3291
|
-
# Corresponds to the JSON property `loyaltyPoints`
|
3292
|
-
# @return [Google::Apis::ContentV2::LoyaltyPoints]
|
3293
|
-
attr_accessor :loyalty_points
|
3294
|
-
|
3295
|
-
# Store pickup information. Only supported for local inventory. Not setting `
|
3296
|
-
# pickup` means "don't update" while setting it to the empty value (```` in JSON)
|
3297
|
-
# means "delete". Otherwise, `pickupMethod` and `pickupSla` must be set
|
3298
|
-
# together, unless `pickupMethod` is "not supported".
|
3299
|
-
# Corresponds to the JSON property `pickup`
|
3300
|
-
# @return [Google::Apis::ContentV2::InventoryPickup]
|
3301
|
-
attr_accessor :pickup
|
3302
|
-
|
3303
|
-
# The price of the product.
|
3304
|
-
# Corresponds to the JSON property `price`
|
3305
|
-
# @return [Google::Apis::ContentV2::Price]
|
3306
|
-
attr_accessor :price
|
3307
|
-
|
3308
|
-
# The quantity of the product. Must be equal to or greater than zero. Supported
|
3309
|
-
# only for local products.
|
3310
|
-
# Corresponds to the JSON property `quantity`
|
3311
|
-
# @return [Fixnum]
|
3312
|
-
attr_accessor :quantity
|
3313
|
-
|
3314
|
-
# The sale price of the product. Mandatory if `sale_price_effective_date` is
|
3315
|
-
# defined.
|
3316
|
-
# Corresponds to the JSON property `salePrice`
|
3317
|
-
# @return [Google::Apis::ContentV2::Price]
|
3318
|
-
attr_accessor :sale_price
|
3319
|
-
|
3320
|
-
# A date range represented by a pair of ISO 8601 dates separated by a space,
|
3321
|
-
# comma, or slash. Both dates might be specified as 'null' if undecided.
|
3322
|
-
# Corresponds to the JSON property `salePriceEffectiveDate`
|
3323
|
-
# @return [String]
|
3324
|
-
attr_accessor :sale_price_effective_date
|
3325
|
-
|
3326
|
-
# The quantity of the product that is available for selling on Google. Supported
|
3327
|
-
# only for online products.
|
3328
|
-
# Corresponds to the JSON property `sellOnGoogleQuantity`
|
3329
|
-
# @return [Fixnum]
|
3330
|
-
attr_accessor :sell_on_google_quantity
|
3331
|
-
|
3332
|
-
def initialize(**args)
|
3333
|
-
update!(**args)
|
3334
|
-
end
|
3335
|
-
|
3336
|
-
# Update properties of this object
|
3337
|
-
def update!(**args)
|
3338
|
-
@availability = args[:availability] if args.key?(:availability)
|
3339
|
-
@custom_label0 = args[:custom_label0] if args.key?(:custom_label0)
|
3340
|
-
@custom_label1 = args[:custom_label1] if args.key?(:custom_label1)
|
3341
|
-
@custom_label2 = args[:custom_label2] if args.key?(:custom_label2)
|
3342
|
-
@custom_label3 = args[:custom_label3] if args.key?(:custom_label3)
|
3343
|
-
@custom_label4 = args[:custom_label4] if args.key?(:custom_label4)
|
3344
|
-
@installment = args[:installment] if args.key?(:installment)
|
3345
|
-
@instore_product_location = args[:instore_product_location] if args.key?(:instore_product_location)
|
3346
|
-
@loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points)
|
3347
|
-
@pickup = args[:pickup] if args.key?(:pickup)
|
3348
|
-
@price = args[:price] if args.key?(:price)
|
3349
|
-
@quantity = args[:quantity] if args.key?(:quantity)
|
3350
|
-
@sale_price = args[:sale_price] if args.key?(:sale_price)
|
3351
|
-
@sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date)
|
3352
|
-
@sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity)
|
3353
|
-
end
|
3354
|
-
end
|
3355
|
-
|
3356
|
-
#
|
3357
|
-
class SetInventoryResponse
|
3358
|
-
include Google::Apis::Core::Hashable
|
3359
|
-
|
3360
|
-
# Identifies what kind of resource this is. Value: the fixed string "content#
|
3361
|
-
# inventorySetResponse".
|
3362
|
-
# Corresponds to the JSON property `kind`
|
3363
|
-
# @return [String]
|
3364
|
-
attr_accessor :kind
|
3365
|
-
|
3366
|
-
def initialize(**args)
|
3367
|
-
update!(**args)
|
3368
|
-
end
|
3369
|
-
|
3370
|
-
# Update properties of this object
|
3371
|
-
def update!(**args)
|
3372
|
-
@kind = args[:kind] if args.key?(:kind)
|
3373
|
-
end
|
3374
|
-
end
|
3375
|
-
|
3376
2963
|
#
|
3377
2964
|
class InvoiceSummary
|
3378
2965
|
include Google::Apis::Core::Hashable
|
@@ -8737,12 +8324,27 @@ module Google
|
|
8737
8324
|
class PosStore
|
8738
8325
|
include Google::Apis::Core::Hashable
|
8739
8326
|
|
8327
|
+
# The business type of the store.
|
8328
|
+
# Corresponds to the JSON property `gcidCategory`
|
8329
|
+
# @return [Array<String>]
|
8330
|
+
attr_accessor :gcid_category
|
8331
|
+
|
8740
8332
|
# Identifies what kind of resource this is. Value: the fixed string "`content#
|
8741
8333
|
# posStore`"
|
8742
8334
|
# Corresponds to the JSON property `kind`
|
8743
8335
|
# @return [String]
|
8744
8336
|
attr_accessor :kind
|
8745
8337
|
|
8338
|
+
# The store phone number.
|
8339
|
+
# Corresponds to the JSON property `phoneNumber`
|
8340
|
+
# @return [String]
|
8341
|
+
attr_accessor :phone_number
|
8342
|
+
|
8343
|
+
# The Google Place Id of the store location.
|
8344
|
+
# Corresponds to the JSON property `placeId`
|
8345
|
+
# @return [String]
|
8346
|
+
attr_accessor :place_id
|
8347
|
+
|
8746
8348
|
# Required. The street address of the store.
|
8747
8349
|
# Corresponds to the JSON property `storeAddress`
|
8748
8350
|
# @return [String]
|
@@ -8753,15 +8355,30 @@ module Google
|
|
8753
8355
|
# @return [String]
|
8754
8356
|
attr_accessor :store_code
|
8755
8357
|
|
8358
|
+
# The merchant or store name.
|
8359
|
+
# Corresponds to the JSON property `storeName`
|
8360
|
+
# @return [String]
|
8361
|
+
attr_accessor :store_name
|
8362
|
+
|
8363
|
+
# The website url for the store or merchant.
|
8364
|
+
# Corresponds to the JSON property `websiteUrl`
|
8365
|
+
# @return [String]
|
8366
|
+
attr_accessor :website_url
|
8367
|
+
|
8756
8368
|
def initialize(**args)
|
8757
8369
|
update!(**args)
|
8758
8370
|
end
|
8759
8371
|
|
8760
8372
|
# Update properties of this object
|
8761
8373
|
def update!(**args)
|
8374
|
+
@gcid_category = args[:gcid_category] if args.key?(:gcid_category)
|
8762
8375
|
@kind = args[:kind] if args.key?(:kind)
|
8376
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
8377
|
+
@place_id = args[:place_id] if args.key?(:place_id)
|
8763
8378
|
@store_address = args[:store_address] if args.key?(:store_address)
|
8764
8379
|
@store_code = args[:store_code] if args.key?(:store_code)
|
8380
|
+
@store_name = args[:store_name] if args.key?(:store_name)
|
8381
|
+
@website_url = args[:website_url] if args.key?(:website_url)
|
8765
8382
|
end
|
8766
8383
|
end
|
8767
8384
|
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module ContentV2
|
18
18
|
# Version of the google-apis-content_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.17.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220317"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -466,54 +466,6 @@ module Google
|
|
466
466
|
include Google::Apis::Core::JsonObjectSupport
|
467
467
|
end
|
468
468
|
|
469
|
-
class Inventory
|
470
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
-
|
472
|
-
include Google::Apis::Core::JsonObjectSupport
|
473
|
-
end
|
474
|
-
|
475
|
-
class BatchInventoryRequest
|
476
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
477
|
-
|
478
|
-
include Google::Apis::Core::JsonObjectSupport
|
479
|
-
end
|
480
|
-
|
481
|
-
class InventoryBatchRequestEntry
|
482
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
|
-
|
484
|
-
include Google::Apis::Core::JsonObjectSupport
|
485
|
-
end
|
486
|
-
|
487
|
-
class BatchInventoryResponse
|
488
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
489
|
-
|
490
|
-
include Google::Apis::Core::JsonObjectSupport
|
491
|
-
end
|
492
|
-
|
493
|
-
class InventoryBatchResponseEntry
|
494
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
-
|
496
|
-
include Google::Apis::Core::JsonObjectSupport
|
497
|
-
end
|
498
|
-
|
499
|
-
class InventoryPickup
|
500
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
501
|
-
|
502
|
-
include Google::Apis::Core::JsonObjectSupport
|
503
|
-
end
|
504
|
-
|
505
|
-
class SetInventoryRequest
|
506
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
507
|
-
|
508
|
-
include Google::Apis::Core::JsonObjectSupport
|
509
|
-
end
|
510
|
-
|
511
|
-
class SetInventoryResponse
|
512
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
|
-
|
514
|
-
include Google::Apis::Core::JsonObjectSupport
|
515
|
-
end
|
516
|
-
|
517
469
|
class InvoiceSummary
|
518
470
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
519
471
|
|
@@ -2470,113 +2422,6 @@ module Google
|
|
2470
2422
|
end
|
2471
2423
|
end
|
2472
2424
|
|
2473
|
-
class Inventory
|
2474
|
-
# @private
|
2475
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2476
|
-
property :availability, as: 'availability'
|
2477
|
-
property :custom_label0, as: 'customLabel0'
|
2478
|
-
property :custom_label1, as: 'customLabel1'
|
2479
|
-
property :custom_label2, as: 'customLabel2'
|
2480
|
-
property :custom_label3, as: 'customLabel3'
|
2481
|
-
property :custom_label4, as: 'customLabel4'
|
2482
|
-
property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation
|
2483
|
-
|
2484
|
-
property :instore_product_location, as: 'instoreProductLocation'
|
2485
|
-
property :kind, as: 'kind'
|
2486
|
-
property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
|
2487
|
-
|
2488
|
-
property :pickup, as: 'pickup', class: Google::Apis::ContentV2::InventoryPickup, decorator: Google::Apis::ContentV2::InventoryPickup::Representation
|
2489
|
-
|
2490
|
-
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2491
|
-
|
2492
|
-
property :quantity, as: 'quantity'
|
2493
|
-
property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2494
|
-
|
2495
|
-
property :sale_price_effective_date, as: 'salePriceEffectiveDate'
|
2496
|
-
property :sell_on_google_quantity, as: 'sellOnGoogleQuantity'
|
2497
|
-
end
|
2498
|
-
end
|
2499
|
-
|
2500
|
-
class BatchInventoryRequest
|
2501
|
-
# @private
|
2502
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2503
|
-
collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryBatchRequestEntry, decorator: Google::Apis::ContentV2::InventoryBatchRequestEntry::Representation
|
2504
|
-
|
2505
|
-
end
|
2506
|
-
end
|
2507
|
-
|
2508
|
-
class InventoryBatchRequestEntry
|
2509
|
-
# @private
|
2510
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2511
|
-
property :batch_id, as: 'batchId'
|
2512
|
-
property :inventory, as: 'inventory', class: Google::Apis::ContentV2::Inventory, decorator: Google::Apis::ContentV2::Inventory::Representation
|
2513
|
-
|
2514
|
-
property :merchant_id, :numeric_string => true, as: 'merchantId'
|
2515
|
-
property :product_id, as: 'productId'
|
2516
|
-
property :store_code, as: 'storeCode'
|
2517
|
-
end
|
2518
|
-
end
|
2519
|
-
|
2520
|
-
class BatchInventoryResponse
|
2521
|
-
# @private
|
2522
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2523
|
-
collection :entries, as: 'entries', class: Google::Apis::ContentV2::InventoryBatchResponseEntry, decorator: Google::Apis::ContentV2::InventoryBatchResponseEntry::Representation
|
2524
|
-
|
2525
|
-
property :kind, as: 'kind'
|
2526
|
-
end
|
2527
|
-
end
|
2528
|
-
|
2529
|
-
class InventoryBatchResponseEntry
|
2530
|
-
# @private
|
2531
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2532
|
-
property :batch_id, as: 'batchId'
|
2533
|
-
property :errors, as: 'errors', class: Google::Apis::ContentV2::Errors, decorator: Google::Apis::ContentV2::Errors::Representation
|
2534
|
-
|
2535
|
-
property :kind, as: 'kind'
|
2536
|
-
end
|
2537
|
-
end
|
2538
|
-
|
2539
|
-
class InventoryPickup
|
2540
|
-
# @private
|
2541
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2542
|
-
property :pickup_method, as: 'pickupMethod'
|
2543
|
-
property :pickup_sla, as: 'pickupSla'
|
2544
|
-
end
|
2545
|
-
end
|
2546
|
-
|
2547
|
-
class SetInventoryRequest
|
2548
|
-
# @private
|
2549
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2550
|
-
property :availability, as: 'availability'
|
2551
|
-
property :custom_label0, as: 'customLabel0'
|
2552
|
-
property :custom_label1, as: 'customLabel1'
|
2553
|
-
property :custom_label2, as: 'customLabel2'
|
2554
|
-
property :custom_label3, as: 'customLabel3'
|
2555
|
-
property :custom_label4, as: 'customLabel4'
|
2556
|
-
property :installment, as: 'installment', class: Google::Apis::ContentV2::Installment, decorator: Google::Apis::ContentV2::Installment::Representation
|
2557
|
-
|
2558
|
-
property :instore_product_location, as: 'instoreProductLocation'
|
2559
|
-
property :loyalty_points, as: 'loyaltyPoints', class: Google::Apis::ContentV2::LoyaltyPoints, decorator: Google::Apis::ContentV2::LoyaltyPoints::Representation
|
2560
|
-
|
2561
|
-
property :pickup, as: 'pickup', class: Google::Apis::ContentV2::InventoryPickup, decorator: Google::Apis::ContentV2::InventoryPickup::Representation
|
2562
|
-
|
2563
|
-
property :price, as: 'price', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2564
|
-
|
2565
|
-
property :quantity, as: 'quantity'
|
2566
|
-
property :sale_price, as: 'salePrice', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2567
|
-
|
2568
|
-
property :sale_price_effective_date, as: 'salePriceEffectiveDate'
|
2569
|
-
property :sell_on_google_quantity, as: 'sellOnGoogleQuantity'
|
2570
|
-
end
|
2571
|
-
end
|
2572
|
-
|
2573
|
-
class SetInventoryResponse
|
2574
|
-
# @private
|
2575
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
2576
|
-
property :kind, as: 'kind'
|
2577
|
-
end
|
2578
|
-
end
|
2579
|
-
|
2580
2425
|
class InvoiceSummary
|
2581
2426
|
# @private
|
2582
2427
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -4034,9 +3879,14 @@ module Google
|
|
4034
3879
|
class PosStore
|
4035
3880
|
# @private
|
4036
3881
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3882
|
+
collection :gcid_category, as: 'gcidCategory'
|
4037
3883
|
property :kind, as: 'kind'
|
3884
|
+
property :phone_number, as: 'phoneNumber'
|
3885
|
+
property :place_id, as: 'placeId'
|
4038
3886
|
property :store_address, as: 'storeAddress'
|
4039
3887
|
property :store_code, as: 'storeCode'
|
3888
|
+
property :store_name, as: 'storeName'
|
3889
|
+
property :website_url, as: 'websiteUrl'
|
4040
3890
|
end
|
4041
3891
|
end
|
4042
3892
|
|
@@ -1014,86 +1014,6 @@ module Google
|
|
1014
1014
|
execute_or_queue_command(command, &block)
|
1015
1015
|
end
|
1016
1016
|
|
1017
|
-
# Updates price and availability for multiple products or stores in a single
|
1018
|
-
# request. This operation does not update the expiration date of the products.
|
1019
|
-
# @param [Google::Apis::ContentV2::BatchInventoryRequest] batch_inventory_request_object
|
1020
|
-
# @param [Boolean] dry_run
|
1021
|
-
# Flag to simulate a request like in a live environment. If set to true, dry-run
|
1022
|
-
# mode checks the validity of the request and returns errors (if any).
|
1023
|
-
# @param [String] fields
|
1024
|
-
# Selector specifying which fields to include in a partial response.
|
1025
|
-
# @param [String] quota_user
|
1026
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1027
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1028
|
-
# @param [Google::Apis::RequestOptions] options
|
1029
|
-
# Request-specific options
|
1030
|
-
#
|
1031
|
-
# @yield [result, err] Result & error if block supplied
|
1032
|
-
# @yieldparam result [Google::Apis::ContentV2::BatchInventoryResponse] parsed result object
|
1033
|
-
# @yieldparam err [StandardError] error object if request failed
|
1034
|
-
#
|
1035
|
-
# @return [Google::Apis::ContentV2::BatchInventoryResponse]
|
1036
|
-
#
|
1037
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1038
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1039
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1040
|
-
def batch_inventory(batch_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1041
|
-
command = make_simple_command(:post, 'inventory/batch', options)
|
1042
|
-
command.request_representation = Google::Apis::ContentV2::BatchInventoryRequest::Representation
|
1043
|
-
command.request_object = batch_inventory_request_object
|
1044
|
-
command.response_representation = Google::Apis::ContentV2::BatchInventoryResponse::Representation
|
1045
|
-
command.response_class = Google::Apis::ContentV2::BatchInventoryResponse
|
1046
|
-
command.query['dryRun'] = dry_run unless dry_run.nil?
|
1047
|
-
command.query['fields'] = fields unless fields.nil?
|
1048
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1049
|
-
execute_or_queue_command(command, &block)
|
1050
|
-
end
|
1051
|
-
|
1052
|
-
# Updates price and availability of a product in your Merchant Center account.
|
1053
|
-
# @param [Fixnum] merchant_id
|
1054
|
-
# The ID of the account that contains the product. This account cannot be a
|
1055
|
-
# multi-client account.
|
1056
|
-
# @param [String] store_code
|
1057
|
-
# The code of the store for which to update price and availability. Use `online`
|
1058
|
-
# to update price and availability of an online product.
|
1059
|
-
# @param [String] product_id
|
1060
|
-
# The REST ID of the product for which to update price and availability.
|
1061
|
-
# @param [Google::Apis::ContentV2::SetInventoryRequest] set_inventory_request_object
|
1062
|
-
# @param [Boolean] dry_run
|
1063
|
-
# Flag to simulate a request like in a live environment. If set to true, dry-run
|
1064
|
-
# mode checks the validity of the request and returns errors (if any).
|
1065
|
-
# @param [String] fields
|
1066
|
-
# Selector specifying which fields to include in a partial response.
|
1067
|
-
# @param [String] quota_user
|
1068
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1069
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1070
|
-
# @param [Google::Apis::RequestOptions] options
|
1071
|
-
# Request-specific options
|
1072
|
-
#
|
1073
|
-
# @yield [result, err] Result & error if block supplied
|
1074
|
-
# @yieldparam result [Google::Apis::ContentV2::SetInventoryResponse] parsed result object
|
1075
|
-
# @yieldparam err [StandardError] error object if request failed
|
1076
|
-
#
|
1077
|
-
# @return [Google::Apis::ContentV2::SetInventoryResponse]
|
1078
|
-
#
|
1079
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1080
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1081
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1082
|
-
def set_inventory(merchant_id, store_code, product_id, set_inventory_request_object = nil, dry_run: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1083
|
-
command = make_simple_command(:post, '{merchantId}/inventory/{storeCode}/products/{productId}', options)
|
1084
|
-
command.request_representation = Google::Apis::ContentV2::SetInventoryRequest::Representation
|
1085
|
-
command.request_object = set_inventory_request_object
|
1086
|
-
command.response_representation = Google::Apis::ContentV2::SetInventoryResponse::Representation
|
1087
|
-
command.response_class = Google::Apis::ContentV2::SetInventoryResponse
|
1088
|
-
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1089
|
-
command.params['storeCode'] = store_code unless store_code.nil?
|
1090
|
-
command.params['productId'] = product_id unless product_id.nil?
|
1091
|
-
command.query['dryRun'] = dry_run unless dry_run.nil?
|
1092
|
-
command.query['fields'] = fields unless fields.nil?
|
1093
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1094
|
-
execute_or_queue_command(command, &block)
|
1095
|
-
end
|
1096
|
-
|
1097
1017
|
# Retrieves and/or updates the LIA settings of multiple accounts in a single
|
1098
1018
|
# request.
|
1099
1019
|
# @param [Google::Apis::ContentV2::LiasettingsCustomBatchRequest] liasettings_custom_batch_request_object
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-content_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.17.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:
|
11
|
+
date: 2022-03-28 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/main/generated/google-apis-content_v2/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-content_v2/v0.17.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-content_v2
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.5
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Content API for Shopping V2
|