google-api-client 0.9.pre3 → 0.9.pre4
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/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
|
@@ -23,10 +23,10 @@ module Google
|
|
|
23
23
|
# Manage product items, inventory, and Merchant Center accounts for Google
|
|
24
24
|
# Shopping.
|
|
25
25
|
#
|
|
26
|
-
# @see https://developers.google.com/shopping-content
|
|
26
|
+
# @see https://developers.google.com/shopping-content
|
|
27
27
|
module ContentV2
|
|
28
28
|
VERSION = 'V2'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20151211'
|
|
30
30
|
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
|
@@ -1509,7 +1509,8 @@ module Google
|
|
|
1509
1509
|
# @return [String]
|
|
1510
1510
|
attr_accessor :attribute_language
|
|
1511
1511
|
|
|
1512
|
-
# The two-letter ISO 639-1 language of the items in the feed.
|
|
1512
|
+
# The two-letter ISO 639-1 language of the items in the feed. Must be a valid
|
|
1513
|
+
# language for targetCountry.
|
|
1513
1514
|
# Corresponds to the JSON property `contentLanguage`
|
|
1514
1515
|
# @return [String]
|
|
1515
1516
|
attr_accessor :content_language
|
|
@@ -2171,6 +2172,31 @@ module Google
|
|
|
2171
2172
|
end
|
|
2172
2173
|
end
|
|
2173
2174
|
|
|
2175
|
+
#
|
|
2176
|
+
class Installment
|
|
2177
|
+
include Google::Apis::Core::Hashable
|
|
2178
|
+
|
|
2179
|
+
# The amount the buyer has to pay per month.
|
|
2180
|
+
# Corresponds to the JSON property `amount`
|
|
2181
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
2182
|
+
attr_accessor :amount
|
|
2183
|
+
|
|
2184
|
+
# The number of installments the buyer has to pay.
|
|
2185
|
+
# Corresponds to the JSON property `months`
|
|
2186
|
+
# @return [String]
|
|
2187
|
+
attr_accessor :months
|
|
2188
|
+
|
|
2189
|
+
def initialize(**args)
|
|
2190
|
+
update!(**args)
|
|
2191
|
+
end
|
|
2192
|
+
|
|
2193
|
+
# Update properties of this object
|
|
2194
|
+
def update!(**args)
|
|
2195
|
+
@amount = args[:amount] unless args[:amount].nil?
|
|
2196
|
+
@months = args[:months] unless args[:months].nil?
|
|
2197
|
+
end
|
|
2198
|
+
end
|
|
2199
|
+
|
|
2174
2200
|
#
|
|
2175
2201
|
class Inventory
|
|
2176
2202
|
include Google::Apis::Core::Hashable
|
|
@@ -2180,12 +2206,22 @@ module Google
|
|
|
2180
2206
|
# @return [String]
|
|
2181
2207
|
attr_accessor :availability
|
|
2182
2208
|
|
|
2209
|
+
# Number and amount of installments to pay for an item. Brazil only.
|
|
2210
|
+
# Corresponds to the JSON property `installment`
|
|
2211
|
+
# @return [Google::Apis::ContentV2::Installment]
|
|
2212
|
+
attr_accessor :installment
|
|
2213
|
+
|
|
2183
2214
|
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
2184
2215
|
# inventory".
|
|
2185
2216
|
# Corresponds to the JSON property `kind`
|
|
2186
2217
|
# @return [String]
|
|
2187
2218
|
attr_accessor :kind
|
|
2188
2219
|
|
|
2220
|
+
# Loyalty points that users receive after purchasing the item. Japan only.
|
|
2221
|
+
# Corresponds to the JSON property `loyaltyPoints`
|
|
2222
|
+
# @return [Google::Apis::ContentV2::LoyaltyPoints]
|
|
2223
|
+
attr_accessor :loyalty_points
|
|
2224
|
+
|
|
2189
2225
|
# The price of the product.
|
|
2190
2226
|
# Corresponds to the JSON property `price`
|
|
2191
2227
|
# @return [Google::Apis::ContentV2::Price]
|
|
@@ -2222,7 +2258,9 @@ module Google
|
|
|
2222
2258
|
# Update properties of this object
|
|
2223
2259
|
def update!(**args)
|
|
2224
2260
|
@availability = args[:availability] unless args[:availability].nil?
|
|
2261
|
+
@installment = args[:installment] unless args[:installment].nil?
|
|
2225
2262
|
@kind = args[:kind] unless args[:kind].nil?
|
|
2263
|
+
@loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil?
|
|
2226
2264
|
@price = args[:price] unless args[:price].nil?
|
|
2227
2265
|
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
2228
2266
|
@sale_price = args[:sale_price] unless args[:sale_price].nil?
|
|
@@ -2361,6 +2399,16 @@ module Google
|
|
|
2361
2399
|
# @return [String]
|
|
2362
2400
|
attr_accessor :availability
|
|
2363
2401
|
|
|
2402
|
+
# Number and amount of installments to pay for an item. Brazil only.
|
|
2403
|
+
# Corresponds to the JSON property `installment`
|
|
2404
|
+
# @return [Google::Apis::ContentV2::Installment]
|
|
2405
|
+
attr_accessor :installment
|
|
2406
|
+
|
|
2407
|
+
# Loyalty points that users receive after purchasing the item. Japan only.
|
|
2408
|
+
# Corresponds to the JSON property `loyaltyPoints`
|
|
2409
|
+
# @return [Google::Apis::ContentV2::LoyaltyPoints]
|
|
2410
|
+
attr_accessor :loyalty_points
|
|
2411
|
+
|
|
2364
2412
|
# The price of the product.
|
|
2365
2413
|
# Corresponds to the JSON property `price`
|
|
2366
2414
|
# @return [Google::Apis::ContentV2::Price]
|
|
@@ -2396,24 +2444,1918 @@ module Google
|
|
|
2396
2444
|
|
|
2397
2445
|
# Update properties of this object
|
|
2398
2446
|
def update!(**args)
|
|
2399
|
-
@availability = args[:availability] unless args[:availability].nil?
|
|
2400
|
-
@
|
|
2401
|
-
@
|
|
2402
|
-
@
|
|
2403
|
-
@
|
|
2404
|
-
@
|
|
2447
|
+
@availability = args[:availability] unless args[:availability].nil?
|
|
2448
|
+
@installment = args[:installment] unless args[:installment].nil?
|
|
2449
|
+
@loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil?
|
|
2450
|
+
@price = args[:price] unless args[:price].nil?
|
|
2451
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
2452
|
+
@sale_price = args[:sale_price] unless args[:sale_price].nil?
|
|
2453
|
+
@sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil?
|
|
2454
|
+
@sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil?
|
|
2455
|
+
end
|
|
2456
|
+
end
|
|
2457
|
+
|
|
2458
|
+
#
|
|
2459
|
+
class SetInventoryResponse
|
|
2460
|
+
include Google::Apis::Core::Hashable
|
|
2461
|
+
|
|
2462
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
2463
|
+
# inventorySetResponse".
|
|
2464
|
+
# Corresponds to the JSON property `kind`
|
|
2465
|
+
# @return [String]
|
|
2466
|
+
attr_accessor :kind
|
|
2467
|
+
|
|
2468
|
+
def initialize(**args)
|
|
2469
|
+
update!(**args)
|
|
2470
|
+
end
|
|
2471
|
+
|
|
2472
|
+
# Update properties of this object
|
|
2473
|
+
def update!(**args)
|
|
2474
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2475
|
+
end
|
|
2476
|
+
end
|
|
2477
|
+
|
|
2478
|
+
#
|
|
2479
|
+
class LoyaltyPoints
|
|
2480
|
+
include Google::Apis::Core::Hashable
|
|
2481
|
+
|
|
2482
|
+
# Name of loyalty points program. It is recommended to limit the name to 12 full-
|
|
2483
|
+
# width characters or 24 Roman characters.
|
|
2484
|
+
# Corresponds to the JSON property `name`
|
|
2485
|
+
# @return [String]
|
|
2486
|
+
attr_accessor :name
|
|
2487
|
+
|
|
2488
|
+
# The retailer's loyalty points in absolute value.
|
|
2489
|
+
# Corresponds to the JSON property `pointsValue`
|
|
2490
|
+
# @return [String]
|
|
2491
|
+
attr_accessor :points_value
|
|
2492
|
+
|
|
2493
|
+
# The ratio of a point when converted to currency. Google assumes currency based
|
|
2494
|
+
# on Merchant Center settings. If ratio is left out, it defaults to 1.0.
|
|
2495
|
+
# Corresponds to the JSON property `ratio`
|
|
2496
|
+
# @return [Float]
|
|
2497
|
+
attr_accessor :ratio
|
|
2498
|
+
|
|
2499
|
+
def initialize(**args)
|
|
2500
|
+
update!(**args)
|
|
2501
|
+
end
|
|
2502
|
+
|
|
2503
|
+
# Update properties of this object
|
|
2504
|
+
def update!(**args)
|
|
2505
|
+
@name = args[:name] unless args[:name].nil?
|
|
2506
|
+
@points_value = args[:points_value] unless args[:points_value].nil?
|
|
2507
|
+
@ratio = args[:ratio] unless args[:ratio].nil?
|
|
2508
|
+
end
|
|
2509
|
+
end
|
|
2510
|
+
|
|
2511
|
+
#
|
|
2512
|
+
class Order
|
|
2513
|
+
include Google::Apis::Core::Hashable
|
|
2514
|
+
|
|
2515
|
+
# Whether the order was acknowledged.
|
|
2516
|
+
# Corresponds to the JSON property `acknowledged`
|
|
2517
|
+
# @return [Boolean]
|
|
2518
|
+
attr_accessor :acknowledged
|
|
2519
|
+
alias_method :acknowledged?, :acknowledged
|
|
2520
|
+
|
|
2521
|
+
# The details of the customer who placed the order.
|
|
2522
|
+
# Corresponds to the JSON property `customer`
|
|
2523
|
+
# @return [Google::Apis::ContentV2::OrderCustomer]
|
|
2524
|
+
attr_accessor :customer
|
|
2525
|
+
|
|
2526
|
+
# The details for the delivery.
|
|
2527
|
+
# Corresponds to the JSON property `deliveryDetails`
|
|
2528
|
+
# @return [Google::Apis::ContentV2::OrderDeliveryDetails]
|
|
2529
|
+
attr_accessor :delivery_details
|
|
2530
|
+
|
|
2531
|
+
# The REST id of the order. Globally unique.
|
|
2532
|
+
# Corresponds to the JSON property `id`
|
|
2533
|
+
# @return [String]
|
|
2534
|
+
attr_accessor :id
|
|
2535
|
+
|
|
2536
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
2537
|
+
# order".
|
|
2538
|
+
# Corresponds to the JSON property `kind`
|
|
2539
|
+
# @return [String]
|
|
2540
|
+
attr_accessor :kind
|
|
2541
|
+
|
|
2542
|
+
# Line items that are ordered.
|
|
2543
|
+
# Corresponds to the JSON property `lineItems`
|
|
2544
|
+
# @return [Array<Google::Apis::ContentV2::OrderLineItem>]
|
|
2545
|
+
attr_accessor :line_items
|
|
2546
|
+
|
|
2547
|
+
#
|
|
2548
|
+
# Corresponds to the JSON property `merchantId`
|
|
2549
|
+
# @return [String]
|
|
2550
|
+
attr_accessor :merchant_id
|
|
2551
|
+
|
|
2552
|
+
# Merchant-provided id of the order.
|
|
2553
|
+
# Corresponds to the JSON property `merchantOrderId`
|
|
2554
|
+
# @return [String]
|
|
2555
|
+
attr_accessor :merchant_order_id
|
|
2556
|
+
|
|
2557
|
+
# The net amount for the order. For example, if an order was originally for a
|
|
2558
|
+
# grand total of $100 and a refund was issued for $20, the net amount will be $
|
|
2559
|
+
# 80.
|
|
2560
|
+
# Corresponds to the JSON property `netAmount`
|
|
2561
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
2562
|
+
attr_accessor :net_amount
|
|
2563
|
+
|
|
2564
|
+
# The details of the payment method.
|
|
2565
|
+
# Corresponds to the JSON property `paymentMethod`
|
|
2566
|
+
# @return [Google::Apis::ContentV2::OrderPaymentMethod]
|
|
2567
|
+
attr_accessor :payment_method
|
|
2568
|
+
|
|
2569
|
+
# The status of the payment.
|
|
2570
|
+
# Corresponds to the JSON property `paymentStatus`
|
|
2571
|
+
# @return [String]
|
|
2572
|
+
attr_accessor :payment_status
|
|
2573
|
+
|
|
2574
|
+
# The date when the order was placed, in ISO 8601 format.
|
|
2575
|
+
# Corresponds to the JSON property `placedDate`
|
|
2576
|
+
# @return [String]
|
|
2577
|
+
attr_accessor :placed_date
|
|
2578
|
+
|
|
2579
|
+
# Refunds for the order.
|
|
2580
|
+
# Corresponds to the JSON property `refunds`
|
|
2581
|
+
# @return [Array<Google::Apis::ContentV2::OrderRefund>]
|
|
2582
|
+
attr_accessor :refunds
|
|
2583
|
+
|
|
2584
|
+
# Shipments of the order.
|
|
2585
|
+
# Corresponds to the JSON property `shipments`
|
|
2586
|
+
# @return [Array<Google::Apis::ContentV2::OrderShipment>]
|
|
2587
|
+
attr_accessor :shipments
|
|
2588
|
+
|
|
2589
|
+
# The total cost of shipping for all items.
|
|
2590
|
+
# Corresponds to the JSON property `shippingCost`
|
|
2591
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
2592
|
+
attr_accessor :shipping_cost
|
|
2593
|
+
|
|
2594
|
+
# The tax for the total shipping cost.
|
|
2595
|
+
# Corresponds to the JSON property `shippingCostTax`
|
|
2596
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
2597
|
+
attr_accessor :shipping_cost_tax
|
|
2598
|
+
|
|
2599
|
+
# The requested shipping option.
|
|
2600
|
+
# Corresponds to the JSON property `shippingOption`
|
|
2601
|
+
# @return [String]
|
|
2602
|
+
attr_accessor :shipping_option
|
|
2603
|
+
|
|
2604
|
+
# The status of the order.
|
|
2605
|
+
# Corresponds to the JSON property `status`
|
|
2606
|
+
# @return [String]
|
|
2607
|
+
attr_accessor :status
|
|
2608
|
+
|
|
2609
|
+
def initialize(**args)
|
|
2610
|
+
update!(**args)
|
|
2611
|
+
end
|
|
2612
|
+
|
|
2613
|
+
# Update properties of this object
|
|
2614
|
+
def update!(**args)
|
|
2615
|
+
@acknowledged = args[:acknowledged] unless args[:acknowledged].nil?
|
|
2616
|
+
@customer = args[:customer] unless args[:customer].nil?
|
|
2617
|
+
@delivery_details = args[:delivery_details] unless args[:delivery_details].nil?
|
|
2618
|
+
@id = args[:id] unless args[:id].nil?
|
|
2619
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2620
|
+
@line_items = args[:line_items] unless args[:line_items].nil?
|
|
2621
|
+
@merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
|
|
2622
|
+
@merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil?
|
|
2623
|
+
@net_amount = args[:net_amount] unless args[:net_amount].nil?
|
|
2624
|
+
@payment_method = args[:payment_method] unless args[:payment_method].nil?
|
|
2625
|
+
@payment_status = args[:payment_status] unless args[:payment_status].nil?
|
|
2626
|
+
@placed_date = args[:placed_date] unless args[:placed_date].nil?
|
|
2627
|
+
@refunds = args[:refunds] unless args[:refunds].nil?
|
|
2628
|
+
@shipments = args[:shipments] unless args[:shipments].nil?
|
|
2629
|
+
@shipping_cost = args[:shipping_cost] unless args[:shipping_cost].nil?
|
|
2630
|
+
@shipping_cost_tax = args[:shipping_cost_tax] unless args[:shipping_cost_tax].nil?
|
|
2631
|
+
@shipping_option = args[:shipping_option] unless args[:shipping_option].nil?
|
|
2632
|
+
@status = args[:status] unless args[:status].nil?
|
|
2633
|
+
end
|
|
2634
|
+
end
|
|
2635
|
+
|
|
2636
|
+
#
|
|
2637
|
+
class OrderAddress
|
|
2638
|
+
include Google::Apis::Core::Hashable
|
|
2639
|
+
|
|
2640
|
+
# CLDR country code (e.g. "US").
|
|
2641
|
+
# Corresponds to the JSON property `country`
|
|
2642
|
+
# @return [String]
|
|
2643
|
+
attr_accessor :country
|
|
2644
|
+
|
|
2645
|
+
# Strings representing the lines of the printed label for mailing the order, for
|
|
2646
|
+
# example:
|
|
2647
|
+
# John Smith
|
|
2648
|
+
# 1600 Amphitheatre Parkway
|
|
2649
|
+
# Mountain View, CA, 94043
|
|
2650
|
+
# United States
|
|
2651
|
+
# Corresponds to the JSON property `fullAddress`
|
|
2652
|
+
# @return [Array<String>]
|
|
2653
|
+
attr_accessor :full_address
|
|
2654
|
+
|
|
2655
|
+
# Whether the address is a post office box.
|
|
2656
|
+
# Corresponds to the JSON property `isPostOfficeBox`
|
|
2657
|
+
# @return [Boolean]
|
|
2658
|
+
attr_accessor :is_post_office_box
|
|
2659
|
+
alias_method :is_post_office_box?, :is_post_office_box
|
|
2660
|
+
|
|
2661
|
+
# City, town or commune. May also include dependent localities or sublocalities (
|
|
2662
|
+
# e.g. neighborhoods or suburbs).
|
|
2663
|
+
# Corresponds to the JSON property `locality`
|
|
2664
|
+
# @return [String]
|
|
2665
|
+
attr_accessor :locality
|
|
2666
|
+
|
|
2667
|
+
# Postal Code or ZIP (e.g. "94043").
|
|
2668
|
+
# Corresponds to the JSON property `postalCode`
|
|
2669
|
+
# @return [String]
|
|
2670
|
+
attr_accessor :postal_code
|
|
2671
|
+
|
|
2672
|
+
# Name of the recipient.
|
|
2673
|
+
# Corresponds to the JSON property `recipientName`
|
|
2674
|
+
# @return [String]
|
|
2675
|
+
attr_accessor :recipient_name
|
|
2676
|
+
|
|
2677
|
+
# Top-level administrative subdivision of the country (e.g. "CA").
|
|
2678
|
+
# Corresponds to the JSON property `region`
|
|
2679
|
+
# @return [String]
|
|
2680
|
+
attr_accessor :region
|
|
2681
|
+
|
|
2682
|
+
# Street-level part of the address.
|
|
2683
|
+
# Corresponds to the JSON property `streetAddress`
|
|
2684
|
+
# @return [Array<String>]
|
|
2685
|
+
attr_accessor :street_address
|
|
2686
|
+
|
|
2687
|
+
def initialize(**args)
|
|
2688
|
+
update!(**args)
|
|
2689
|
+
end
|
|
2690
|
+
|
|
2691
|
+
# Update properties of this object
|
|
2692
|
+
def update!(**args)
|
|
2693
|
+
@country = args[:country] unless args[:country].nil?
|
|
2694
|
+
@full_address = args[:full_address] unless args[:full_address].nil?
|
|
2695
|
+
@is_post_office_box = args[:is_post_office_box] unless args[:is_post_office_box].nil?
|
|
2696
|
+
@locality = args[:locality] unless args[:locality].nil?
|
|
2697
|
+
@postal_code = args[:postal_code] unless args[:postal_code].nil?
|
|
2698
|
+
@recipient_name = args[:recipient_name] unless args[:recipient_name].nil?
|
|
2699
|
+
@region = args[:region] unless args[:region].nil?
|
|
2700
|
+
@street_address = args[:street_address] unless args[:street_address].nil?
|
|
2701
|
+
end
|
|
2702
|
+
end
|
|
2703
|
+
|
|
2704
|
+
#
|
|
2705
|
+
class OrderCancellation
|
|
2706
|
+
include Google::Apis::Core::Hashable
|
|
2707
|
+
|
|
2708
|
+
# The actor that created the cancellation.
|
|
2709
|
+
# Corresponds to the JSON property `actor`
|
|
2710
|
+
# @return [String]
|
|
2711
|
+
attr_accessor :actor
|
|
2712
|
+
|
|
2713
|
+
# Date on which the cancellation has been created, in ISO 8601 format.
|
|
2714
|
+
# Corresponds to the JSON property `creationDate`
|
|
2715
|
+
# @return [String]
|
|
2716
|
+
attr_accessor :creation_date
|
|
2717
|
+
|
|
2718
|
+
# The quantity that was canceled.
|
|
2719
|
+
# Corresponds to the JSON property `quantity`
|
|
2720
|
+
# @return [Fixnum]
|
|
2721
|
+
attr_accessor :quantity
|
|
2722
|
+
|
|
2723
|
+
# The reason for the cancellation.
|
|
2724
|
+
# Corresponds to the JSON property `reason`
|
|
2725
|
+
# @return [String]
|
|
2726
|
+
attr_accessor :reason
|
|
2727
|
+
|
|
2728
|
+
# The explanation of the reason.
|
|
2729
|
+
# Corresponds to the JSON property `reasonText`
|
|
2730
|
+
# @return [String]
|
|
2731
|
+
attr_accessor :reason_text
|
|
2732
|
+
|
|
2733
|
+
def initialize(**args)
|
|
2734
|
+
update!(**args)
|
|
2735
|
+
end
|
|
2736
|
+
|
|
2737
|
+
# Update properties of this object
|
|
2738
|
+
def update!(**args)
|
|
2739
|
+
@actor = args[:actor] unless args[:actor].nil?
|
|
2740
|
+
@creation_date = args[:creation_date] unless args[:creation_date].nil?
|
|
2741
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
2742
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
2743
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
2744
|
+
end
|
|
2745
|
+
end
|
|
2746
|
+
|
|
2747
|
+
#
|
|
2748
|
+
class OrderCustomer
|
|
2749
|
+
include Google::Apis::Core::Hashable
|
|
2750
|
+
|
|
2751
|
+
# Email address of the customer.
|
|
2752
|
+
# Corresponds to the JSON property `email`
|
|
2753
|
+
# @return [String]
|
|
2754
|
+
attr_accessor :email
|
|
2755
|
+
|
|
2756
|
+
# If set, this indicates the user had a choice to opt in or out of providing
|
|
2757
|
+
# marketing rights to the merchant. If unset, this indicates the user has
|
|
2758
|
+
# already made this choice in a previous purchase, and was thus not shown the
|
|
2759
|
+
# marketing right opt in/out checkbox during the Purchases on Google checkout
|
|
2760
|
+
# flow.
|
|
2761
|
+
# Corresponds to the JSON property `explicitMarketingPreference`
|
|
2762
|
+
# @return [Boolean]
|
|
2763
|
+
attr_accessor :explicit_marketing_preference
|
|
2764
|
+
alias_method :explicit_marketing_preference?, :explicit_marketing_preference
|
|
2765
|
+
|
|
2766
|
+
# Full name of the customer.
|
|
2767
|
+
# Corresponds to the JSON property `fullName`
|
|
2768
|
+
# @return [String]
|
|
2769
|
+
attr_accessor :full_name
|
|
2770
|
+
|
|
2771
|
+
def initialize(**args)
|
|
2772
|
+
update!(**args)
|
|
2773
|
+
end
|
|
2774
|
+
|
|
2775
|
+
# Update properties of this object
|
|
2776
|
+
def update!(**args)
|
|
2777
|
+
@email = args[:email] unless args[:email].nil?
|
|
2778
|
+
@explicit_marketing_preference = args[:explicit_marketing_preference] unless args[:explicit_marketing_preference].nil?
|
|
2779
|
+
@full_name = args[:full_name] unless args[:full_name].nil?
|
|
2780
|
+
end
|
|
2781
|
+
end
|
|
2782
|
+
|
|
2783
|
+
#
|
|
2784
|
+
class OrderDeliveryDetails
|
|
2785
|
+
include Google::Apis::Core::Hashable
|
|
2786
|
+
|
|
2787
|
+
# The delivery address
|
|
2788
|
+
# Corresponds to the JSON property `address`
|
|
2789
|
+
# @return [Google::Apis::ContentV2::OrderAddress]
|
|
2790
|
+
attr_accessor :address
|
|
2791
|
+
|
|
2792
|
+
# The phone number of the person receiving the delivery.
|
|
2793
|
+
# Corresponds to the JSON property `phoneNumber`
|
|
2794
|
+
# @return [String]
|
|
2795
|
+
attr_accessor :phone_number
|
|
2796
|
+
|
|
2797
|
+
def initialize(**args)
|
|
2798
|
+
update!(**args)
|
|
2799
|
+
end
|
|
2800
|
+
|
|
2801
|
+
# Update properties of this object
|
|
2802
|
+
def update!(**args)
|
|
2803
|
+
@address = args[:address] unless args[:address].nil?
|
|
2804
|
+
@phone_number = args[:phone_number] unless args[:phone_number].nil?
|
|
2805
|
+
end
|
|
2806
|
+
end
|
|
2807
|
+
|
|
2808
|
+
#
|
|
2809
|
+
class OrderLineItem
|
|
2810
|
+
include Google::Apis::Core::Hashable
|
|
2811
|
+
|
|
2812
|
+
# Cancellations of the line item.
|
|
2813
|
+
# Corresponds to the JSON property `cancellations`
|
|
2814
|
+
# @return [Array<Google::Apis::ContentV2::OrderCancellation>]
|
|
2815
|
+
attr_accessor :cancellations
|
|
2816
|
+
|
|
2817
|
+
# The id of the line item.
|
|
2818
|
+
# Corresponds to the JSON property `id`
|
|
2819
|
+
# @return [String]
|
|
2820
|
+
attr_accessor :id
|
|
2821
|
+
|
|
2822
|
+
# Total price for the line item. For example, if two items for $10 are purchased,
|
|
2823
|
+
# the total price will be $20.
|
|
2824
|
+
# Corresponds to the JSON property `price`
|
|
2825
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
2826
|
+
attr_accessor :price
|
|
2827
|
+
|
|
2828
|
+
# Product data from the time of the order placement.
|
|
2829
|
+
# Corresponds to the JSON property `product`
|
|
2830
|
+
# @return [Google::Apis::ContentV2::OrderLineItemProduct]
|
|
2831
|
+
attr_accessor :product
|
|
2832
|
+
|
|
2833
|
+
# Number of items canceled.
|
|
2834
|
+
# Corresponds to the JSON property `quantityCanceled`
|
|
2835
|
+
# @return [Fixnum]
|
|
2836
|
+
attr_accessor :quantity_canceled
|
|
2837
|
+
|
|
2838
|
+
# Number of items delivered.
|
|
2839
|
+
# Corresponds to the JSON property `quantityDelivered`
|
|
2840
|
+
# @return [Fixnum]
|
|
2841
|
+
attr_accessor :quantity_delivered
|
|
2842
|
+
|
|
2843
|
+
# Number of items ordered.
|
|
2844
|
+
# Corresponds to the JSON property `quantityOrdered`
|
|
2845
|
+
# @return [Fixnum]
|
|
2846
|
+
attr_accessor :quantity_ordered
|
|
2847
|
+
|
|
2848
|
+
# Number of items pending.
|
|
2849
|
+
# Corresponds to the JSON property `quantityPending`
|
|
2850
|
+
# @return [Fixnum]
|
|
2851
|
+
attr_accessor :quantity_pending
|
|
2852
|
+
|
|
2853
|
+
# Number of items returned.
|
|
2854
|
+
# Corresponds to the JSON property `quantityReturned`
|
|
2855
|
+
# @return [Fixnum]
|
|
2856
|
+
attr_accessor :quantity_returned
|
|
2857
|
+
|
|
2858
|
+
# Number of items shipped.
|
|
2859
|
+
# Corresponds to the JSON property `quantityShipped`
|
|
2860
|
+
# @return [Fixnum]
|
|
2861
|
+
attr_accessor :quantity_shipped
|
|
2862
|
+
|
|
2863
|
+
# Details of the return policy for the line item.
|
|
2864
|
+
# Corresponds to the JSON property `returnInfo`
|
|
2865
|
+
# @return [Google::Apis::ContentV2::OrderLineItemReturnInfo]
|
|
2866
|
+
attr_accessor :return_info
|
|
2867
|
+
|
|
2868
|
+
# Returns of the line item.
|
|
2869
|
+
# Corresponds to the JSON property `returns`
|
|
2870
|
+
# @return [Array<Google::Apis::ContentV2::OrderReturn>]
|
|
2871
|
+
attr_accessor :returns
|
|
2872
|
+
|
|
2873
|
+
# Details of the requested shipping for the line item.
|
|
2874
|
+
# Corresponds to the JSON property `shippingDetails`
|
|
2875
|
+
# @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]
|
|
2876
|
+
attr_accessor :shipping_details
|
|
2877
|
+
|
|
2878
|
+
# Total tax amount for the line item. For example, if two items are purchased,
|
|
2879
|
+
# and each have a cost tax of $2, the total tax amount will be $4.
|
|
2880
|
+
# Corresponds to the JSON property `tax`
|
|
2881
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
2882
|
+
attr_accessor :tax
|
|
2883
|
+
|
|
2884
|
+
def initialize(**args)
|
|
2885
|
+
update!(**args)
|
|
2886
|
+
end
|
|
2887
|
+
|
|
2888
|
+
# Update properties of this object
|
|
2889
|
+
def update!(**args)
|
|
2890
|
+
@cancellations = args[:cancellations] unless args[:cancellations].nil?
|
|
2891
|
+
@id = args[:id] unless args[:id].nil?
|
|
2892
|
+
@price = args[:price] unless args[:price].nil?
|
|
2893
|
+
@product = args[:product] unless args[:product].nil?
|
|
2894
|
+
@quantity_canceled = args[:quantity_canceled] unless args[:quantity_canceled].nil?
|
|
2895
|
+
@quantity_delivered = args[:quantity_delivered] unless args[:quantity_delivered].nil?
|
|
2896
|
+
@quantity_ordered = args[:quantity_ordered] unless args[:quantity_ordered].nil?
|
|
2897
|
+
@quantity_pending = args[:quantity_pending] unless args[:quantity_pending].nil?
|
|
2898
|
+
@quantity_returned = args[:quantity_returned] unless args[:quantity_returned].nil?
|
|
2899
|
+
@quantity_shipped = args[:quantity_shipped] unless args[:quantity_shipped].nil?
|
|
2900
|
+
@return_info = args[:return_info] unless args[:return_info].nil?
|
|
2901
|
+
@returns = args[:returns] unless args[:returns].nil?
|
|
2902
|
+
@shipping_details = args[:shipping_details] unless args[:shipping_details].nil?
|
|
2903
|
+
@tax = args[:tax] unless args[:tax].nil?
|
|
2904
|
+
end
|
|
2905
|
+
end
|
|
2906
|
+
|
|
2907
|
+
#
|
|
2908
|
+
class OrderLineItemProduct
|
|
2909
|
+
include Google::Apis::Core::Hashable
|
|
2910
|
+
|
|
2911
|
+
# Brand of the item.
|
|
2912
|
+
# Corresponds to the JSON property `brand`
|
|
2913
|
+
# @return [String]
|
|
2914
|
+
attr_accessor :brand
|
|
2915
|
+
|
|
2916
|
+
# The item's channel (online or local).
|
|
2917
|
+
# Corresponds to the JSON property `channel`
|
|
2918
|
+
# @return [String]
|
|
2919
|
+
attr_accessor :channel
|
|
2920
|
+
|
|
2921
|
+
# Condition or state of the item.
|
|
2922
|
+
# Corresponds to the JSON property `condition`
|
|
2923
|
+
# @return [String]
|
|
2924
|
+
attr_accessor :condition
|
|
2925
|
+
|
|
2926
|
+
# The two-letter ISO 639-1 language code for the item.
|
|
2927
|
+
# Corresponds to the JSON property `contentLanguage`
|
|
2928
|
+
# @return [String]
|
|
2929
|
+
attr_accessor :content_language
|
|
2930
|
+
|
|
2931
|
+
# Global Trade Item Number (GTIN) of the item.
|
|
2932
|
+
# Corresponds to the JSON property `gtin`
|
|
2933
|
+
# @return [String]
|
|
2934
|
+
attr_accessor :gtin
|
|
2935
|
+
|
|
2936
|
+
# The REST id of the product.
|
|
2937
|
+
# Corresponds to the JSON property `id`
|
|
2938
|
+
# @return [String]
|
|
2939
|
+
attr_accessor :id
|
|
2940
|
+
|
|
2941
|
+
# URL of an image of the item.
|
|
2942
|
+
# Corresponds to the JSON property `imageLink`
|
|
2943
|
+
# @return [String]
|
|
2944
|
+
attr_accessor :image_link
|
|
2945
|
+
|
|
2946
|
+
# Shared identifier for all variants of the same product.
|
|
2947
|
+
# Corresponds to the JSON property `itemGroupId`
|
|
2948
|
+
# @return [String]
|
|
2949
|
+
attr_accessor :item_group_id
|
|
2950
|
+
|
|
2951
|
+
# Manufacturer Part Number (MPN) of the item.
|
|
2952
|
+
# Corresponds to the JSON property `mpn`
|
|
2953
|
+
# @return [String]
|
|
2954
|
+
attr_accessor :mpn
|
|
2955
|
+
|
|
2956
|
+
# An identifier of the item.
|
|
2957
|
+
# Corresponds to the JSON property `offerId`
|
|
2958
|
+
# @return [String]
|
|
2959
|
+
attr_accessor :offer_id
|
|
2960
|
+
|
|
2961
|
+
# Price of the item.
|
|
2962
|
+
# Corresponds to the JSON property `price`
|
|
2963
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
2964
|
+
attr_accessor :price
|
|
2965
|
+
|
|
2966
|
+
# URL to the cached image shown to the user when order was placed.
|
|
2967
|
+
# Corresponds to the JSON property `shownImage`
|
|
2968
|
+
# @return [String]
|
|
2969
|
+
attr_accessor :shown_image
|
|
2970
|
+
|
|
2971
|
+
# The CLDR territory code of the target country of the product.
|
|
2972
|
+
# Corresponds to the JSON property `targetCountry`
|
|
2973
|
+
# @return [String]
|
|
2974
|
+
attr_accessor :target_country
|
|
2975
|
+
|
|
2976
|
+
# The title of the product.
|
|
2977
|
+
# Corresponds to the JSON property `title`
|
|
2978
|
+
# @return [String]
|
|
2979
|
+
attr_accessor :title
|
|
2980
|
+
|
|
2981
|
+
# Variant attributes for the item. These are dimensions of the product, such as
|
|
2982
|
+
# color, gender, material, pattern, and size. You can find a comprehensive list
|
|
2983
|
+
# of variant attributes here.
|
|
2984
|
+
# Corresponds to the JSON property `variantAttributes`
|
|
2985
|
+
# @return [Array<Google::Apis::ContentV2::OrderLineItemProductVariantAttribute>]
|
|
2986
|
+
attr_accessor :variant_attributes
|
|
2987
|
+
|
|
2988
|
+
def initialize(**args)
|
|
2989
|
+
update!(**args)
|
|
2990
|
+
end
|
|
2991
|
+
|
|
2992
|
+
# Update properties of this object
|
|
2993
|
+
def update!(**args)
|
|
2994
|
+
@brand = args[:brand] unless args[:brand].nil?
|
|
2995
|
+
@channel = args[:channel] unless args[:channel].nil?
|
|
2996
|
+
@condition = args[:condition] unless args[:condition].nil?
|
|
2997
|
+
@content_language = args[:content_language] unless args[:content_language].nil?
|
|
2998
|
+
@gtin = args[:gtin] unless args[:gtin].nil?
|
|
2999
|
+
@id = args[:id] unless args[:id].nil?
|
|
3000
|
+
@image_link = args[:image_link] unless args[:image_link].nil?
|
|
3001
|
+
@item_group_id = args[:item_group_id] unless args[:item_group_id].nil?
|
|
3002
|
+
@mpn = args[:mpn] unless args[:mpn].nil?
|
|
3003
|
+
@offer_id = args[:offer_id] unless args[:offer_id].nil?
|
|
3004
|
+
@price = args[:price] unless args[:price].nil?
|
|
3005
|
+
@shown_image = args[:shown_image] unless args[:shown_image].nil?
|
|
3006
|
+
@target_country = args[:target_country] unless args[:target_country].nil?
|
|
3007
|
+
@title = args[:title] unless args[:title].nil?
|
|
3008
|
+
@variant_attributes = args[:variant_attributes] unless args[:variant_attributes].nil?
|
|
3009
|
+
end
|
|
3010
|
+
end
|
|
3011
|
+
|
|
3012
|
+
#
|
|
3013
|
+
class OrderLineItemProductVariantAttribute
|
|
3014
|
+
include Google::Apis::Core::Hashable
|
|
3015
|
+
|
|
3016
|
+
# The dimension of the variant.
|
|
3017
|
+
# Corresponds to the JSON property `dimension`
|
|
3018
|
+
# @return [String]
|
|
3019
|
+
attr_accessor :dimension
|
|
3020
|
+
|
|
3021
|
+
# The value for the dimension.
|
|
3022
|
+
# Corresponds to the JSON property `value`
|
|
3023
|
+
# @return [String]
|
|
3024
|
+
attr_accessor :value
|
|
3025
|
+
|
|
3026
|
+
def initialize(**args)
|
|
3027
|
+
update!(**args)
|
|
3028
|
+
end
|
|
3029
|
+
|
|
3030
|
+
# Update properties of this object
|
|
3031
|
+
def update!(**args)
|
|
3032
|
+
@dimension = args[:dimension] unless args[:dimension].nil?
|
|
3033
|
+
@value = args[:value] unless args[:value].nil?
|
|
3034
|
+
end
|
|
3035
|
+
end
|
|
3036
|
+
|
|
3037
|
+
#
|
|
3038
|
+
class OrderLineItemReturnInfo
|
|
3039
|
+
include Google::Apis::Core::Hashable
|
|
3040
|
+
|
|
3041
|
+
# How many days later the item can be returned.
|
|
3042
|
+
# Corresponds to the JSON property `daysToReturn`
|
|
3043
|
+
# @return [Fixnum]
|
|
3044
|
+
attr_accessor :days_to_return
|
|
3045
|
+
|
|
3046
|
+
# Whether the item is returnable.
|
|
3047
|
+
# Corresponds to the JSON property `isReturnable`
|
|
3048
|
+
# @return [Boolean]
|
|
3049
|
+
attr_accessor :is_returnable
|
|
3050
|
+
alias_method :is_returnable?, :is_returnable
|
|
3051
|
+
|
|
3052
|
+
# URL of the item return policy.
|
|
3053
|
+
# Corresponds to the JSON property `policyUrl`
|
|
3054
|
+
# @return [String]
|
|
3055
|
+
attr_accessor :policy_url
|
|
3056
|
+
|
|
3057
|
+
def initialize(**args)
|
|
3058
|
+
update!(**args)
|
|
3059
|
+
end
|
|
3060
|
+
|
|
3061
|
+
# Update properties of this object
|
|
3062
|
+
def update!(**args)
|
|
3063
|
+
@days_to_return = args[:days_to_return] unless args[:days_to_return].nil?
|
|
3064
|
+
@is_returnable = args[:is_returnable] unless args[:is_returnable].nil?
|
|
3065
|
+
@policy_url = args[:policy_url] unless args[:policy_url].nil?
|
|
3066
|
+
end
|
|
3067
|
+
end
|
|
3068
|
+
|
|
3069
|
+
#
|
|
3070
|
+
class OrderLineItemShippingDetails
|
|
3071
|
+
include Google::Apis::Core::Hashable
|
|
3072
|
+
|
|
3073
|
+
# The delivery by date, in ISO 8601 format.
|
|
3074
|
+
# Corresponds to the JSON property `deliverByDate`
|
|
3075
|
+
# @return [String]
|
|
3076
|
+
attr_accessor :deliver_by_date
|
|
3077
|
+
|
|
3078
|
+
# Details of the shipping method.
|
|
3079
|
+
# Corresponds to the JSON property `method`
|
|
3080
|
+
# @return [Google::Apis::ContentV2::OrderLineItemShippingDetailsMethod]
|
|
3081
|
+
attr_accessor :method_prop
|
|
3082
|
+
|
|
3083
|
+
# The ship by date, in ISO 8601 format.
|
|
3084
|
+
# Corresponds to the JSON property `shipByDate`
|
|
3085
|
+
# @return [String]
|
|
3086
|
+
attr_accessor :ship_by_date
|
|
3087
|
+
|
|
3088
|
+
def initialize(**args)
|
|
3089
|
+
update!(**args)
|
|
3090
|
+
end
|
|
3091
|
+
|
|
3092
|
+
# Update properties of this object
|
|
3093
|
+
def update!(**args)
|
|
3094
|
+
@deliver_by_date = args[:deliver_by_date] unless args[:deliver_by_date].nil?
|
|
3095
|
+
@method_prop = args[:method_prop] unless args[:method_prop].nil?
|
|
3096
|
+
@ship_by_date = args[:ship_by_date] unless args[:ship_by_date].nil?
|
|
3097
|
+
end
|
|
3098
|
+
end
|
|
3099
|
+
|
|
3100
|
+
#
|
|
3101
|
+
class OrderLineItemShippingDetailsMethod
|
|
3102
|
+
include Google::Apis::Core::Hashable
|
|
3103
|
+
|
|
3104
|
+
# The carrier for the shipping. Optional.
|
|
3105
|
+
# Corresponds to the JSON property `carrier`
|
|
3106
|
+
# @return [String]
|
|
3107
|
+
attr_accessor :carrier
|
|
3108
|
+
|
|
3109
|
+
# Maximum transit time.
|
|
3110
|
+
# Corresponds to the JSON property `maxDaysInTransit`
|
|
3111
|
+
# @return [Fixnum]
|
|
3112
|
+
attr_accessor :max_days_in_transit
|
|
3113
|
+
|
|
3114
|
+
# The name of the shipping method.
|
|
3115
|
+
# Corresponds to the JSON property `methodName`
|
|
3116
|
+
# @return [String]
|
|
3117
|
+
attr_accessor :method_name
|
|
3118
|
+
|
|
3119
|
+
# Minimum transit time.
|
|
3120
|
+
# Corresponds to the JSON property `minDaysInTransit`
|
|
3121
|
+
# @return [Fixnum]
|
|
3122
|
+
attr_accessor :min_days_in_transit
|
|
3123
|
+
|
|
3124
|
+
def initialize(**args)
|
|
3125
|
+
update!(**args)
|
|
3126
|
+
end
|
|
3127
|
+
|
|
3128
|
+
# Update properties of this object
|
|
3129
|
+
def update!(**args)
|
|
3130
|
+
@carrier = args[:carrier] unless args[:carrier].nil?
|
|
3131
|
+
@max_days_in_transit = args[:max_days_in_transit] unless args[:max_days_in_transit].nil?
|
|
3132
|
+
@method_name = args[:method_name] unless args[:method_name].nil?
|
|
3133
|
+
@min_days_in_transit = args[:min_days_in_transit] unless args[:min_days_in_transit].nil?
|
|
3134
|
+
end
|
|
3135
|
+
end
|
|
3136
|
+
|
|
3137
|
+
#
|
|
3138
|
+
class OrderPaymentMethod
|
|
3139
|
+
include Google::Apis::Core::Hashable
|
|
3140
|
+
|
|
3141
|
+
# The billing address.
|
|
3142
|
+
# Corresponds to the JSON property `billingAddress`
|
|
3143
|
+
# @return [Google::Apis::ContentV2::OrderAddress]
|
|
3144
|
+
attr_accessor :billing_address
|
|
3145
|
+
|
|
3146
|
+
# The card expiration month (January = 1, February = 2 etc.).
|
|
3147
|
+
# Corresponds to the JSON property `expirationMonth`
|
|
3148
|
+
# @return [Fixnum]
|
|
3149
|
+
attr_accessor :expiration_month
|
|
3150
|
+
|
|
3151
|
+
# The card expiration year (4-digit, e.g. 2015).
|
|
3152
|
+
# Corresponds to the JSON property `expirationYear`
|
|
3153
|
+
# @return [Fixnum]
|
|
3154
|
+
attr_accessor :expiration_year
|
|
3155
|
+
|
|
3156
|
+
# The last four digits of the card number.
|
|
3157
|
+
# Corresponds to the JSON property `lastFourDigits`
|
|
3158
|
+
# @return [String]
|
|
3159
|
+
attr_accessor :last_four_digits
|
|
3160
|
+
|
|
3161
|
+
# The billing phone number.
|
|
3162
|
+
# Corresponds to the JSON property `phoneNumber`
|
|
3163
|
+
# @return [String]
|
|
3164
|
+
attr_accessor :phone_number
|
|
3165
|
+
|
|
3166
|
+
# The type of instrument (VISA, Mastercard, etc).
|
|
3167
|
+
# Corresponds to the JSON property `type`
|
|
3168
|
+
# @return [String]
|
|
3169
|
+
attr_accessor :type
|
|
3170
|
+
|
|
3171
|
+
def initialize(**args)
|
|
3172
|
+
update!(**args)
|
|
3173
|
+
end
|
|
3174
|
+
|
|
3175
|
+
# Update properties of this object
|
|
3176
|
+
def update!(**args)
|
|
3177
|
+
@billing_address = args[:billing_address] unless args[:billing_address].nil?
|
|
3178
|
+
@expiration_month = args[:expiration_month] unless args[:expiration_month].nil?
|
|
3179
|
+
@expiration_year = args[:expiration_year] unless args[:expiration_year].nil?
|
|
3180
|
+
@last_four_digits = args[:last_four_digits] unless args[:last_four_digits].nil?
|
|
3181
|
+
@phone_number = args[:phone_number] unless args[:phone_number].nil?
|
|
3182
|
+
@type = args[:type] unless args[:type].nil?
|
|
3183
|
+
end
|
|
3184
|
+
end
|
|
3185
|
+
|
|
3186
|
+
#
|
|
3187
|
+
class OrderRefund
|
|
3188
|
+
include Google::Apis::Core::Hashable
|
|
3189
|
+
|
|
3190
|
+
# The actor that created the refund.
|
|
3191
|
+
# Corresponds to the JSON property `actor`
|
|
3192
|
+
# @return [String]
|
|
3193
|
+
attr_accessor :actor
|
|
3194
|
+
|
|
3195
|
+
# The amount that is refunded.
|
|
3196
|
+
# Corresponds to the JSON property `amount`
|
|
3197
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
3198
|
+
attr_accessor :amount
|
|
3199
|
+
|
|
3200
|
+
# Date on which the item has been created, in ISO 8601 format.
|
|
3201
|
+
# Corresponds to the JSON property `creationDate`
|
|
3202
|
+
# @return [String]
|
|
3203
|
+
attr_accessor :creation_date
|
|
3204
|
+
|
|
3205
|
+
# The reason for the refund.
|
|
3206
|
+
# Corresponds to the JSON property `reason`
|
|
3207
|
+
# @return [String]
|
|
3208
|
+
attr_accessor :reason
|
|
3209
|
+
|
|
3210
|
+
# The explanation of the reason.
|
|
3211
|
+
# Corresponds to the JSON property `reasonText`
|
|
3212
|
+
# @return [String]
|
|
3213
|
+
attr_accessor :reason_text
|
|
3214
|
+
|
|
3215
|
+
def initialize(**args)
|
|
3216
|
+
update!(**args)
|
|
3217
|
+
end
|
|
3218
|
+
|
|
3219
|
+
# Update properties of this object
|
|
3220
|
+
def update!(**args)
|
|
3221
|
+
@actor = args[:actor] unless args[:actor].nil?
|
|
3222
|
+
@amount = args[:amount] unless args[:amount].nil?
|
|
3223
|
+
@creation_date = args[:creation_date] unless args[:creation_date].nil?
|
|
3224
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3225
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3226
|
+
end
|
|
3227
|
+
end
|
|
3228
|
+
|
|
3229
|
+
#
|
|
3230
|
+
class OrderReturn
|
|
3231
|
+
include Google::Apis::Core::Hashable
|
|
3232
|
+
|
|
3233
|
+
# The actor that created the refund.
|
|
3234
|
+
# Corresponds to the JSON property `actor`
|
|
3235
|
+
# @return [String]
|
|
3236
|
+
attr_accessor :actor
|
|
3237
|
+
|
|
3238
|
+
# Date on which the item has been created, in ISO 8601 format.
|
|
3239
|
+
# Corresponds to the JSON property `creationDate`
|
|
3240
|
+
# @return [String]
|
|
3241
|
+
attr_accessor :creation_date
|
|
3242
|
+
|
|
3243
|
+
# Quantity that is returned.
|
|
3244
|
+
# Corresponds to the JSON property `quantity`
|
|
3245
|
+
# @return [Fixnum]
|
|
3246
|
+
attr_accessor :quantity
|
|
3247
|
+
|
|
3248
|
+
# The reason for the return.
|
|
3249
|
+
# Corresponds to the JSON property `reason`
|
|
3250
|
+
# @return [String]
|
|
3251
|
+
attr_accessor :reason
|
|
3252
|
+
|
|
3253
|
+
# The explanation of the reason.
|
|
3254
|
+
# Corresponds to the JSON property `reasonText`
|
|
3255
|
+
# @return [String]
|
|
3256
|
+
attr_accessor :reason_text
|
|
3257
|
+
|
|
3258
|
+
def initialize(**args)
|
|
3259
|
+
update!(**args)
|
|
3260
|
+
end
|
|
3261
|
+
|
|
3262
|
+
# Update properties of this object
|
|
3263
|
+
def update!(**args)
|
|
3264
|
+
@actor = args[:actor] unless args[:actor].nil?
|
|
3265
|
+
@creation_date = args[:creation_date] unless args[:creation_date].nil?
|
|
3266
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
3267
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3268
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3269
|
+
end
|
|
3270
|
+
end
|
|
3271
|
+
|
|
3272
|
+
#
|
|
3273
|
+
class OrderShipment
|
|
3274
|
+
include Google::Apis::Core::Hashable
|
|
3275
|
+
|
|
3276
|
+
# The carrier handling the shipment.
|
|
3277
|
+
# Corresponds to the JSON property `carrier`
|
|
3278
|
+
# @return [String]
|
|
3279
|
+
attr_accessor :carrier
|
|
3280
|
+
|
|
3281
|
+
# Date on which the shipment has been created, in ISO 8601 format.
|
|
3282
|
+
# Corresponds to the JSON property `creationDate`
|
|
3283
|
+
# @return [String]
|
|
3284
|
+
attr_accessor :creation_date
|
|
3285
|
+
|
|
3286
|
+
# Date on which the shipment has been delivered, in ISO 8601 format. Present
|
|
3287
|
+
# only if status is delievered
|
|
3288
|
+
# Corresponds to the JSON property `deliveryDate`
|
|
3289
|
+
# @return [String]
|
|
3290
|
+
attr_accessor :delivery_date
|
|
3291
|
+
|
|
3292
|
+
# The id of the shipment.
|
|
3293
|
+
# Corresponds to the JSON property `id`
|
|
3294
|
+
# @return [String]
|
|
3295
|
+
attr_accessor :id
|
|
3296
|
+
|
|
3297
|
+
# The line items that are shipped.
|
|
3298
|
+
# Corresponds to the JSON property `lineItems`
|
|
3299
|
+
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
|
|
3300
|
+
attr_accessor :line_items
|
|
3301
|
+
|
|
3302
|
+
# The status of the shipment.
|
|
3303
|
+
# Corresponds to the JSON property `status`
|
|
3304
|
+
# @return [String]
|
|
3305
|
+
attr_accessor :status
|
|
3306
|
+
|
|
3307
|
+
# The tracking id for the shipment.
|
|
3308
|
+
# Corresponds to the JSON property `trackingId`
|
|
3309
|
+
# @return [String]
|
|
3310
|
+
attr_accessor :tracking_id
|
|
3311
|
+
|
|
3312
|
+
def initialize(**args)
|
|
3313
|
+
update!(**args)
|
|
3314
|
+
end
|
|
3315
|
+
|
|
3316
|
+
# Update properties of this object
|
|
3317
|
+
def update!(**args)
|
|
3318
|
+
@carrier = args[:carrier] unless args[:carrier].nil?
|
|
3319
|
+
@creation_date = args[:creation_date] unless args[:creation_date].nil?
|
|
3320
|
+
@delivery_date = args[:delivery_date] unless args[:delivery_date].nil?
|
|
3321
|
+
@id = args[:id] unless args[:id].nil?
|
|
3322
|
+
@line_items = args[:line_items] unless args[:line_items].nil?
|
|
3323
|
+
@status = args[:status] unless args[:status].nil?
|
|
3324
|
+
@tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
|
|
3325
|
+
end
|
|
3326
|
+
end
|
|
3327
|
+
|
|
3328
|
+
#
|
|
3329
|
+
class OrderShipmentLineItemShipment
|
|
3330
|
+
include Google::Apis::Core::Hashable
|
|
3331
|
+
|
|
3332
|
+
# The id of the line item that is shipped.
|
|
3333
|
+
# Corresponds to the JSON property `lineItemId`
|
|
3334
|
+
# @return [String]
|
|
3335
|
+
attr_accessor :line_item_id
|
|
3336
|
+
|
|
3337
|
+
# The quantity that is shipped.
|
|
3338
|
+
# Corresponds to the JSON property `quantity`
|
|
3339
|
+
# @return [Fixnum]
|
|
3340
|
+
attr_accessor :quantity
|
|
3341
|
+
|
|
3342
|
+
def initialize(**args)
|
|
3343
|
+
update!(**args)
|
|
3344
|
+
end
|
|
3345
|
+
|
|
3346
|
+
# Update properties of this object
|
|
3347
|
+
def update!(**args)
|
|
3348
|
+
@line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
|
|
3349
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
3350
|
+
end
|
|
3351
|
+
end
|
|
3352
|
+
|
|
3353
|
+
#
|
|
3354
|
+
class OrdersAcknowledgeRequest
|
|
3355
|
+
include Google::Apis::Core::Hashable
|
|
3356
|
+
|
|
3357
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
3358
|
+
# Corresponds to the JSON property `operationId`
|
|
3359
|
+
# @return [String]
|
|
3360
|
+
attr_accessor :operation_id
|
|
3361
|
+
|
|
3362
|
+
def initialize(**args)
|
|
3363
|
+
update!(**args)
|
|
3364
|
+
end
|
|
3365
|
+
|
|
3366
|
+
# Update properties of this object
|
|
3367
|
+
def update!(**args)
|
|
3368
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
3369
|
+
end
|
|
3370
|
+
end
|
|
3371
|
+
|
|
3372
|
+
#
|
|
3373
|
+
class OrdersAcknowledgeResponse
|
|
3374
|
+
include Google::Apis::Core::Hashable
|
|
3375
|
+
|
|
3376
|
+
# The status of the execution.
|
|
3377
|
+
# Corresponds to the JSON property `executionStatus`
|
|
3378
|
+
# @return [String]
|
|
3379
|
+
attr_accessor :execution_status
|
|
3380
|
+
|
|
3381
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
3382
|
+
# ordersAcknowledgeResponse".
|
|
3383
|
+
# Corresponds to the JSON property `kind`
|
|
3384
|
+
# @return [String]
|
|
3385
|
+
attr_accessor :kind
|
|
3386
|
+
|
|
3387
|
+
def initialize(**args)
|
|
3388
|
+
update!(**args)
|
|
3389
|
+
end
|
|
3390
|
+
|
|
3391
|
+
# Update properties of this object
|
|
3392
|
+
def update!(**args)
|
|
3393
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
3394
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3395
|
+
end
|
|
3396
|
+
end
|
|
3397
|
+
|
|
3398
|
+
#
|
|
3399
|
+
class OrdersAdvanceTestOrderResponse
|
|
3400
|
+
include Google::Apis::Core::Hashable
|
|
3401
|
+
|
|
3402
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
3403
|
+
# ordersAdvanceTestOrderResponse".
|
|
3404
|
+
# Corresponds to the JSON property `kind`
|
|
3405
|
+
# @return [String]
|
|
3406
|
+
attr_accessor :kind
|
|
3407
|
+
|
|
3408
|
+
def initialize(**args)
|
|
3409
|
+
update!(**args)
|
|
3410
|
+
end
|
|
3411
|
+
|
|
3412
|
+
# Update properties of this object
|
|
3413
|
+
def update!(**args)
|
|
3414
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3415
|
+
end
|
|
3416
|
+
end
|
|
3417
|
+
|
|
3418
|
+
#
|
|
3419
|
+
class OrdersCancelLineItemRequest
|
|
3420
|
+
include Google::Apis::Core::Hashable
|
|
3421
|
+
|
|
3422
|
+
# Amount to refund for the cancelation. Optional. If not set, Google will
|
|
3423
|
+
# calculate the default based on the price and tax of the items involved. The
|
|
3424
|
+
# amount must not be larger than the net amount left on the order.
|
|
3425
|
+
# Corresponds to the JSON property `amount`
|
|
3426
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
3427
|
+
attr_accessor :amount
|
|
3428
|
+
|
|
3429
|
+
# The ID of the line item to cancel.
|
|
3430
|
+
# Corresponds to the JSON property `lineItemId`
|
|
3431
|
+
# @return [String]
|
|
3432
|
+
attr_accessor :line_item_id
|
|
3433
|
+
|
|
3434
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
3435
|
+
# Corresponds to the JSON property `operationId`
|
|
3436
|
+
# @return [String]
|
|
3437
|
+
attr_accessor :operation_id
|
|
3438
|
+
|
|
3439
|
+
# The quantity to cancel.
|
|
3440
|
+
# Corresponds to the JSON property `quantity`
|
|
3441
|
+
# @return [Fixnum]
|
|
3442
|
+
attr_accessor :quantity
|
|
3443
|
+
|
|
3444
|
+
# The reason for the cancellation.
|
|
3445
|
+
# Corresponds to the JSON property `reason`
|
|
3446
|
+
# @return [String]
|
|
3447
|
+
attr_accessor :reason
|
|
3448
|
+
|
|
3449
|
+
# The explanation of the reason.
|
|
3450
|
+
# Corresponds to the JSON property `reasonText`
|
|
3451
|
+
# @return [String]
|
|
3452
|
+
attr_accessor :reason_text
|
|
3453
|
+
|
|
3454
|
+
def initialize(**args)
|
|
3455
|
+
update!(**args)
|
|
3456
|
+
end
|
|
3457
|
+
|
|
3458
|
+
# Update properties of this object
|
|
3459
|
+
def update!(**args)
|
|
3460
|
+
@amount = args[:amount] unless args[:amount].nil?
|
|
3461
|
+
@line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
|
|
3462
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
3463
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
3464
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3465
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3466
|
+
end
|
|
3467
|
+
end
|
|
3468
|
+
|
|
3469
|
+
#
|
|
3470
|
+
class OrdersCancelLineItemResponse
|
|
3471
|
+
include Google::Apis::Core::Hashable
|
|
3472
|
+
|
|
3473
|
+
# The status of the execution.
|
|
3474
|
+
# Corresponds to the JSON property `executionStatus`
|
|
3475
|
+
# @return [String]
|
|
3476
|
+
attr_accessor :execution_status
|
|
3477
|
+
|
|
3478
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
3479
|
+
# ordersCancelLineItemResponse".
|
|
3480
|
+
# Corresponds to the JSON property `kind`
|
|
3481
|
+
# @return [String]
|
|
3482
|
+
attr_accessor :kind
|
|
3483
|
+
|
|
3484
|
+
def initialize(**args)
|
|
3485
|
+
update!(**args)
|
|
3486
|
+
end
|
|
3487
|
+
|
|
3488
|
+
# Update properties of this object
|
|
3489
|
+
def update!(**args)
|
|
3490
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
3491
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3492
|
+
end
|
|
3493
|
+
end
|
|
3494
|
+
|
|
3495
|
+
#
|
|
3496
|
+
class OrdersCancelRequest
|
|
3497
|
+
include Google::Apis::Core::Hashable
|
|
3498
|
+
|
|
3499
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
3500
|
+
# Corresponds to the JSON property `operationId`
|
|
3501
|
+
# @return [String]
|
|
3502
|
+
attr_accessor :operation_id
|
|
3503
|
+
|
|
3504
|
+
# The reason for the cancellation.
|
|
3505
|
+
# Corresponds to the JSON property `reason`
|
|
3506
|
+
# @return [String]
|
|
3507
|
+
attr_accessor :reason
|
|
3508
|
+
|
|
3509
|
+
# The explanation of the reason.
|
|
3510
|
+
# Corresponds to the JSON property `reasonText`
|
|
3511
|
+
# @return [String]
|
|
3512
|
+
attr_accessor :reason_text
|
|
3513
|
+
|
|
3514
|
+
def initialize(**args)
|
|
3515
|
+
update!(**args)
|
|
3516
|
+
end
|
|
3517
|
+
|
|
3518
|
+
# Update properties of this object
|
|
3519
|
+
def update!(**args)
|
|
3520
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
3521
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3522
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3523
|
+
end
|
|
3524
|
+
end
|
|
3525
|
+
|
|
3526
|
+
#
|
|
3527
|
+
class OrdersCancelResponse
|
|
3528
|
+
include Google::Apis::Core::Hashable
|
|
3529
|
+
|
|
3530
|
+
# The status of the execution.
|
|
3531
|
+
# Corresponds to the JSON property `executionStatus`
|
|
3532
|
+
# @return [String]
|
|
3533
|
+
attr_accessor :execution_status
|
|
3534
|
+
|
|
3535
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
3536
|
+
# ordersCancelResponse".
|
|
3537
|
+
# Corresponds to the JSON property `kind`
|
|
3538
|
+
# @return [String]
|
|
3539
|
+
attr_accessor :kind
|
|
3540
|
+
|
|
3541
|
+
def initialize(**args)
|
|
3542
|
+
update!(**args)
|
|
3543
|
+
end
|
|
3544
|
+
|
|
3545
|
+
# Update properties of this object
|
|
3546
|
+
def update!(**args)
|
|
3547
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
3548
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3549
|
+
end
|
|
3550
|
+
end
|
|
3551
|
+
|
|
3552
|
+
#
|
|
3553
|
+
class OrdersCreateTestOrderRequest
|
|
3554
|
+
include Google::Apis::Core::Hashable
|
|
3555
|
+
|
|
3556
|
+
# The test order template to use. Specify as an alternative to testOrder as a
|
|
3557
|
+
# shortcut for retrieving a template and then creating an order using that
|
|
3558
|
+
# template.
|
|
3559
|
+
# Corresponds to the JSON property `templateName`
|
|
3560
|
+
# @return [String]
|
|
3561
|
+
attr_accessor :template_name
|
|
3562
|
+
|
|
3563
|
+
# The test order to create.
|
|
3564
|
+
# Corresponds to the JSON property `testOrder`
|
|
3565
|
+
# @return [Google::Apis::ContentV2::TestOrder]
|
|
3566
|
+
attr_accessor :test_order
|
|
3567
|
+
|
|
3568
|
+
def initialize(**args)
|
|
3569
|
+
update!(**args)
|
|
3570
|
+
end
|
|
3571
|
+
|
|
3572
|
+
# Update properties of this object
|
|
3573
|
+
def update!(**args)
|
|
3574
|
+
@template_name = args[:template_name] unless args[:template_name].nil?
|
|
3575
|
+
@test_order = args[:test_order] unless args[:test_order].nil?
|
|
3576
|
+
end
|
|
3577
|
+
end
|
|
3578
|
+
|
|
3579
|
+
#
|
|
3580
|
+
class OrdersCreateTestOrderResponse
|
|
3581
|
+
include Google::Apis::Core::Hashable
|
|
3582
|
+
|
|
3583
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
3584
|
+
# ordersCreateTestOrderResponse".
|
|
3585
|
+
# Corresponds to the JSON property `kind`
|
|
3586
|
+
# @return [String]
|
|
3587
|
+
attr_accessor :kind
|
|
3588
|
+
|
|
3589
|
+
# The ID of the newly created test order.
|
|
3590
|
+
# Corresponds to the JSON property `orderId`
|
|
3591
|
+
# @return [String]
|
|
3592
|
+
attr_accessor :order_id
|
|
3593
|
+
|
|
3594
|
+
def initialize(**args)
|
|
3595
|
+
update!(**args)
|
|
3596
|
+
end
|
|
3597
|
+
|
|
3598
|
+
# Update properties of this object
|
|
3599
|
+
def update!(**args)
|
|
3600
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3601
|
+
@order_id = args[:order_id] unless args[:order_id].nil?
|
|
3602
|
+
end
|
|
3603
|
+
end
|
|
3604
|
+
|
|
3605
|
+
#
|
|
3606
|
+
class OrdersCustomBatchRequest
|
|
3607
|
+
include Google::Apis::Core::Hashable
|
|
3608
|
+
|
|
3609
|
+
# The request entries to be processed in the batch.
|
|
3610
|
+
# Corresponds to the JSON property `entries`
|
|
3611
|
+
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchRequestEntry>]
|
|
3612
|
+
attr_accessor :entries
|
|
3613
|
+
|
|
3614
|
+
def initialize(**args)
|
|
3615
|
+
update!(**args)
|
|
3616
|
+
end
|
|
3617
|
+
|
|
3618
|
+
# Update properties of this object
|
|
3619
|
+
def update!(**args)
|
|
3620
|
+
@entries = args[:entries] unless args[:entries].nil?
|
|
3621
|
+
end
|
|
3622
|
+
end
|
|
3623
|
+
|
|
3624
|
+
#
|
|
3625
|
+
class OrdersCustomBatchRequestEntry
|
|
3626
|
+
include Google::Apis::Core::Hashable
|
|
3627
|
+
|
|
3628
|
+
# An entry ID, unique within the batch request.
|
|
3629
|
+
# Corresponds to the JSON property `batchId`
|
|
3630
|
+
# @return [Fixnum]
|
|
3631
|
+
attr_accessor :batch_id
|
|
3632
|
+
|
|
3633
|
+
# Required for cancel method.
|
|
3634
|
+
# Corresponds to the JSON property `cancel`
|
|
3635
|
+
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancel]
|
|
3636
|
+
attr_accessor :cancel
|
|
3637
|
+
|
|
3638
|
+
# Required for cancelLineItem method.
|
|
3639
|
+
# Corresponds to the JSON property `cancelLineItem`
|
|
3640
|
+
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem]
|
|
3641
|
+
attr_accessor :cancel_line_item
|
|
3642
|
+
|
|
3643
|
+
# The ID of the managing account.
|
|
3644
|
+
# Corresponds to the JSON property `merchantId`
|
|
3645
|
+
# @return [String]
|
|
3646
|
+
attr_accessor :merchant_id
|
|
3647
|
+
|
|
3648
|
+
# The merchant order id. Required for updateMerchantOrderId and
|
|
3649
|
+
# getByMerchantOrderId methods.
|
|
3650
|
+
# Corresponds to the JSON property `merchantOrderId`
|
|
3651
|
+
# @return [String]
|
|
3652
|
+
attr_accessor :merchant_order_id
|
|
3653
|
+
|
|
3654
|
+
# The method to apply.
|
|
3655
|
+
# Corresponds to the JSON property `method`
|
|
3656
|
+
# @return [String]
|
|
3657
|
+
attr_accessor :method_prop
|
|
3658
|
+
|
|
3659
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
3660
|
+
# Required for all methods beside get and getByMerchantOrderId.
|
|
3661
|
+
# Corresponds to the JSON property `operationId`
|
|
3662
|
+
# @return [String]
|
|
3663
|
+
attr_accessor :operation_id
|
|
3664
|
+
|
|
3665
|
+
# The ID of the order. Required for all methods beside getByMerchantOrderId.
|
|
3666
|
+
# Corresponds to the JSON property `orderId`
|
|
3667
|
+
# @return [String]
|
|
3668
|
+
attr_accessor :order_id
|
|
3669
|
+
|
|
3670
|
+
# Required for refund method.
|
|
3671
|
+
# Corresponds to the JSON property `refund`
|
|
3672
|
+
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund]
|
|
3673
|
+
attr_accessor :refund
|
|
3674
|
+
|
|
3675
|
+
# Required for returnLineItem method.
|
|
3676
|
+
# Corresponds to the JSON property `returnLineItem`
|
|
3677
|
+
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem]
|
|
3678
|
+
attr_accessor :return_line_item
|
|
3679
|
+
|
|
3680
|
+
# Required for shipLineItems method.
|
|
3681
|
+
# Corresponds to the JSON property `shipLineItems`
|
|
3682
|
+
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems]
|
|
3683
|
+
attr_accessor :ship_line_items
|
|
3684
|
+
|
|
3685
|
+
# Required for updateShipment method.
|
|
3686
|
+
# Corresponds to the JSON property `updateShipment`
|
|
3687
|
+
# @return [Google::Apis::ContentV2::OrdersCustomBatchRequestEntryUpdateShipment]
|
|
3688
|
+
attr_accessor :update_shipment
|
|
3689
|
+
|
|
3690
|
+
def initialize(**args)
|
|
3691
|
+
update!(**args)
|
|
3692
|
+
end
|
|
3693
|
+
|
|
3694
|
+
# Update properties of this object
|
|
3695
|
+
def update!(**args)
|
|
3696
|
+
@batch_id = args[:batch_id] unless args[:batch_id].nil?
|
|
3697
|
+
@cancel = args[:cancel] unless args[:cancel].nil?
|
|
3698
|
+
@cancel_line_item = args[:cancel_line_item] unless args[:cancel_line_item].nil?
|
|
3699
|
+
@merchant_id = args[:merchant_id] unless args[:merchant_id].nil?
|
|
3700
|
+
@merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil?
|
|
3701
|
+
@method_prop = args[:method_prop] unless args[:method_prop].nil?
|
|
3702
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
3703
|
+
@order_id = args[:order_id] unless args[:order_id].nil?
|
|
3704
|
+
@refund = args[:refund] unless args[:refund].nil?
|
|
3705
|
+
@return_line_item = args[:return_line_item] unless args[:return_line_item].nil?
|
|
3706
|
+
@ship_line_items = args[:ship_line_items] unless args[:ship_line_items].nil?
|
|
3707
|
+
@update_shipment = args[:update_shipment] unless args[:update_shipment].nil?
|
|
3708
|
+
end
|
|
3709
|
+
end
|
|
3710
|
+
|
|
3711
|
+
#
|
|
3712
|
+
class OrdersCustomBatchRequestEntryCancel
|
|
3713
|
+
include Google::Apis::Core::Hashable
|
|
3714
|
+
|
|
3715
|
+
# The reason for the cancellation.
|
|
3716
|
+
# Corresponds to the JSON property `reason`
|
|
3717
|
+
# @return [String]
|
|
3718
|
+
attr_accessor :reason
|
|
3719
|
+
|
|
3720
|
+
# The explanation of the reason.
|
|
3721
|
+
# Corresponds to the JSON property `reasonText`
|
|
3722
|
+
# @return [String]
|
|
3723
|
+
attr_accessor :reason_text
|
|
3724
|
+
|
|
3725
|
+
def initialize(**args)
|
|
3726
|
+
update!(**args)
|
|
3727
|
+
end
|
|
3728
|
+
|
|
3729
|
+
# Update properties of this object
|
|
3730
|
+
def update!(**args)
|
|
3731
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3732
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3733
|
+
end
|
|
3734
|
+
end
|
|
3735
|
+
|
|
3736
|
+
#
|
|
3737
|
+
class OrdersCustomBatchRequestEntryCancelLineItem
|
|
3738
|
+
include Google::Apis::Core::Hashable
|
|
3739
|
+
|
|
3740
|
+
# Amount to refund for the cancelation. Optional. If not set, Google will
|
|
3741
|
+
# calculate the default based on the price and tax of the items involved. The
|
|
3742
|
+
# amount must not be larger than the net amount left on the order.
|
|
3743
|
+
# Corresponds to the JSON property `amount`
|
|
3744
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
3745
|
+
attr_accessor :amount
|
|
3746
|
+
|
|
3747
|
+
# The ID of the line item to cancel.
|
|
3748
|
+
# Corresponds to the JSON property `lineItemId`
|
|
3749
|
+
# @return [String]
|
|
3750
|
+
attr_accessor :line_item_id
|
|
3751
|
+
|
|
3752
|
+
# The quantity to cancel.
|
|
3753
|
+
# Corresponds to the JSON property `quantity`
|
|
3754
|
+
# @return [Fixnum]
|
|
3755
|
+
attr_accessor :quantity
|
|
3756
|
+
|
|
3757
|
+
# The reason for the cancellation.
|
|
3758
|
+
# Corresponds to the JSON property `reason`
|
|
3759
|
+
# @return [String]
|
|
3760
|
+
attr_accessor :reason
|
|
3761
|
+
|
|
3762
|
+
# The explanation of the reason.
|
|
3763
|
+
# Corresponds to the JSON property `reasonText`
|
|
3764
|
+
# @return [String]
|
|
3765
|
+
attr_accessor :reason_text
|
|
3766
|
+
|
|
3767
|
+
def initialize(**args)
|
|
3768
|
+
update!(**args)
|
|
3769
|
+
end
|
|
3770
|
+
|
|
3771
|
+
# Update properties of this object
|
|
3772
|
+
def update!(**args)
|
|
3773
|
+
@amount = args[:amount] unless args[:amount].nil?
|
|
3774
|
+
@line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
|
|
3775
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
3776
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3777
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3778
|
+
end
|
|
3779
|
+
end
|
|
3780
|
+
|
|
3781
|
+
#
|
|
3782
|
+
class OrdersCustomBatchRequestEntryRefund
|
|
3783
|
+
include Google::Apis::Core::Hashable
|
|
3784
|
+
|
|
3785
|
+
# The amount that is refunded.
|
|
3786
|
+
# Corresponds to the JSON property `amount`
|
|
3787
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
3788
|
+
attr_accessor :amount
|
|
3789
|
+
|
|
3790
|
+
# The reason for the refund.
|
|
3791
|
+
# Corresponds to the JSON property `reason`
|
|
3792
|
+
# @return [String]
|
|
3793
|
+
attr_accessor :reason
|
|
3794
|
+
|
|
3795
|
+
# The explanation of the reason.
|
|
3796
|
+
# Corresponds to the JSON property `reasonText`
|
|
3797
|
+
# @return [String]
|
|
3798
|
+
attr_accessor :reason_text
|
|
3799
|
+
|
|
3800
|
+
def initialize(**args)
|
|
3801
|
+
update!(**args)
|
|
3802
|
+
end
|
|
3803
|
+
|
|
3804
|
+
# Update properties of this object
|
|
3805
|
+
def update!(**args)
|
|
3806
|
+
@amount = args[:amount] unless args[:amount].nil?
|
|
3807
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3808
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3809
|
+
end
|
|
3810
|
+
end
|
|
3811
|
+
|
|
3812
|
+
#
|
|
3813
|
+
class OrdersCustomBatchRequestEntryReturnLineItem
|
|
3814
|
+
include Google::Apis::Core::Hashable
|
|
3815
|
+
|
|
3816
|
+
# The ID of the line item to return.
|
|
3817
|
+
# Corresponds to the JSON property `lineItemId`
|
|
3818
|
+
# @return [String]
|
|
3819
|
+
attr_accessor :line_item_id
|
|
3820
|
+
|
|
3821
|
+
# The quantity to return.
|
|
3822
|
+
# Corresponds to the JSON property `quantity`
|
|
3823
|
+
# @return [Fixnum]
|
|
3824
|
+
attr_accessor :quantity
|
|
3825
|
+
|
|
3826
|
+
# The reason for the return.
|
|
3827
|
+
# Corresponds to the JSON property `reason`
|
|
3828
|
+
# @return [String]
|
|
3829
|
+
attr_accessor :reason
|
|
3830
|
+
|
|
3831
|
+
# The explanation of the reason.
|
|
3832
|
+
# Corresponds to the JSON property `reasonText`
|
|
3833
|
+
# @return [String]
|
|
3834
|
+
attr_accessor :reason_text
|
|
3835
|
+
|
|
3836
|
+
def initialize(**args)
|
|
3837
|
+
update!(**args)
|
|
3838
|
+
end
|
|
3839
|
+
|
|
3840
|
+
# Update properties of this object
|
|
3841
|
+
def update!(**args)
|
|
3842
|
+
@line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
|
|
3843
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
3844
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
3845
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
3846
|
+
end
|
|
3847
|
+
end
|
|
3848
|
+
|
|
3849
|
+
#
|
|
3850
|
+
class OrdersCustomBatchRequestEntryShipLineItems
|
|
3851
|
+
include Google::Apis::Core::Hashable
|
|
3852
|
+
|
|
3853
|
+
# The carrier handling the shipment.
|
|
3854
|
+
# Corresponds to the JSON property `carrier`
|
|
3855
|
+
# @return [String]
|
|
3856
|
+
attr_accessor :carrier
|
|
3857
|
+
|
|
3858
|
+
# Line items to ship.
|
|
3859
|
+
# Corresponds to the JSON property `lineItems`
|
|
3860
|
+
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
|
|
3861
|
+
attr_accessor :line_items
|
|
3862
|
+
|
|
3863
|
+
# The ID of the shipment.
|
|
3864
|
+
# Corresponds to the JSON property `shipmentId`
|
|
3865
|
+
# @return [String]
|
|
3866
|
+
attr_accessor :shipment_id
|
|
3867
|
+
|
|
3868
|
+
# The tracking id for the shipment.
|
|
3869
|
+
# Corresponds to the JSON property `trackingId`
|
|
3870
|
+
# @return [String]
|
|
3871
|
+
attr_accessor :tracking_id
|
|
3872
|
+
|
|
3873
|
+
def initialize(**args)
|
|
3874
|
+
update!(**args)
|
|
3875
|
+
end
|
|
3876
|
+
|
|
3877
|
+
# Update properties of this object
|
|
3878
|
+
def update!(**args)
|
|
3879
|
+
@carrier = args[:carrier] unless args[:carrier].nil?
|
|
3880
|
+
@line_items = args[:line_items] unless args[:line_items].nil?
|
|
3881
|
+
@shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
|
|
3882
|
+
@tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
|
|
3883
|
+
end
|
|
3884
|
+
end
|
|
3885
|
+
|
|
3886
|
+
#
|
|
3887
|
+
class OrdersCustomBatchRequestEntryUpdateShipment
|
|
3888
|
+
include Google::Apis::Core::Hashable
|
|
3889
|
+
|
|
3890
|
+
# The carrier handling the shipment. Not updated if missing.
|
|
3891
|
+
# Corresponds to the JSON property `carrier`
|
|
3892
|
+
# @return [String]
|
|
3893
|
+
attr_accessor :carrier
|
|
3894
|
+
|
|
3895
|
+
# The ID of the shipment.
|
|
3896
|
+
# Corresponds to the JSON property `shipmentId`
|
|
3897
|
+
# @return [String]
|
|
3898
|
+
attr_accessor :shipment_id
|
|
3899
|
+
|
|
3900
|
+
# New status for the shipment. Not updated if missing.
|
|
3901
|
+
# Corresponds to the JSON property `status`
|
|
3902
|
+
# @return [String]
|
|
3903
|
+
attr_accessor :status
|
|
3904
|
+
|
|
3905
|
+
# The tracking id for the shipment. Not updated if missing.
|
|
3906
|
+
# Corresponds to the JSON property `trackingId`
|
|
3907
|
+
# @return [String]
|
|
3908
|
+
attr_accessor :tracking_id
|
|
3909
|
+
|
|
3910
|
+
def initialize(**args)
|
|
3911
|
+
update!(**args)
|
|
3912
|
+
end
|
|
3913
|
+
|
|
3914
|
+
# Update properties of this object
|
|
3915
|
+
def update!(**args)
|
|
3916
|
+
@carrier = args[:carrier] unless args[:carrier].nil?
|
|
3917
|
+
@shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
|
|
3918
|
+
@status = args[:status] unless args[:status].nil?
|
|
3919
|
+
@tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
|
|
3920
|
+
end
|
|
3921
|
+
end
|
|
3922
|
+
|
|
3923
|
+
#
|
|
3924
|
+
class OrdersCustomBatchResponse
|
|
3925
|
+
include Google::Apis::Core::Hashable
|
|
3926
|
+
|
|
3927
|
+
# The result of the execution of the batch requests.
|
|
3928
|
+
# Corresponds to the JSON property `entries`
|
|
3929
|
+
# @return [Array<Google::Apis::ContentV2::OrdersCustomBatchResponseEntry>]
|
|
3930
|
+
attr_accessor :entries
|
|
3931
|
+
|
|
3932
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
3933
|
+
# ordersCustomBatchResponse".
|
|
3934
|
+
# Corresponds to the JSON property `kind`
|
|
3935
|
+
# @return [String]
|
|
3936
|
+
attr_accessor :kind
|
|
3937
|
+
|
|
3938
|
+
def initialize(**args)
|
|
3939
|
+
update!(**args)
|
|
3940
|
+
end
|
|
3941
|
+
|
|
3942
|
+
# Update properties of this object
|
|
3943
|
+
def update!(**args)
|
|
3944
|
+
@entries = args[:entries] unless args[:entries].nil?
|
|
3945
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3946
|
+
end
|
|
3947
|
+
end
|
|
3948
|
+
|
|
3949
|
+
#
|
|
3950
|
+
class OrdersCustomBatchResponseEntry
|
|
3951
|
+
include Google::Apis::Core::Hashable
|
|
3952
|
+
|
|
3953
|
+
# The ID of the request entry this entry responds to.
|
|
3954
|
+
# Corresponds to the JSON property `batchId`
|
|
3955
|
+
# @return [Fixnum]
|
|
3956
|
+
attr_accessor :batch_id
|
|
3957
|
+
|
|
3958
|
+
# A list of errors returned by a failed batch entry.
|
|
3959
|
+
# Corresponds to the JSON property `errors`
|
|
3960
|
+
# @return [Google::Apis::ContentV2::Errors]
|
|
3961
|
+
attr_accessor :errors
|
|
3962
|
+
|
|
3963
|
+
# The status of the execution. Only defined if the method is not get or
|
|
3964
|
+
# getByMerchantOrderId and if the request was successful.
|
|
3965
|
+
# Corresponds to the JSON property `executionStatus`
|
|
3966
|
+
# @return [String]
|
|
3967
|
+
attr_accessor :execution_status
|
|
3968
|
+
|
|
3969
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
3970
|
+
# ordersCustomBatchResponseEntry".
|
|
3971
|
+
# Corresponds to the JSON property `kind`
|
|
3972
|
+
# @return [String]
|
|
3973
|
+
attr_accessor :kind
|
|
3974
|
+
|
|
3975
|
+
# The retrieved order. Only defined if the method is get and if the request was
|
|
3976
|
+
# successful.
|
|
3977
|
+
# Corresponds to the JSON property `order`
|
|
3978
|
+
# @return [Google::Apis::ContentV2::Order]
|
|
3979
|
+
attr_accessor :order
|
|
3980
|
+
|
|
3981
|
+
def initialize(**args)
|
|
3982
|
+
update!(**args)
|
|
3983
|
+
end
|
|
3984
|
+
|
|
3985
|
+
# Update properties of this object
|
|
3986
|
+
def update!(**args)
|
|
3987
|
+
@batch_id = args[:batch_id] unless args[:batch_id].nil?
|
|
3988
|
+
@errors = args[:errors] unless args[:errors].nil?
|
|
3989
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
3990
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3991
|
+
@order = args[:order] unless args[:order].nil?
|
|
3992
|
+
end
|
|
3993
|
+
end
|
|
3994
|
+
|
|
3995
|
+
#
|
|
3996
|
+
class OrdersGetByMerchantOrderIdResponse
|
|
3997
|
+
include Google::Apis::Core::Hashable
|
|
3998
|
+
|
|
3999
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4000
|
+
# ordersGetByMerchantOrderIdResponse".
|
|
4001
|
+
# Corresponds to the JSON property `kind`
|
|
4002
|
+
# @return [String]
|
|
4003
|
+
attr_accessor :kind
|
|
4004
|
+
|
|
4005
|
+
# The requested order.
|
|
4006
|
+
# Corresponds to the JSON property `order`
|
|
4007
|
+
# @return [Google::Apis::ContentV2::Order]
|
|
4008
|
+
attr_accessor :order
|
|
4009
|
+
|
|
4010
|
+
def initialize(**args)
|
|
4011
|
+
update!(**args)
|
|
4012
|
+
end
|
|
4013
|
+
|
|
4014
|
+
# Update properties of this object
|
|
4015
|
+
def update!(**args)
|
|
4016
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
4017
|
+
@order = args[:order] unless args[:order].nil?
|
|
4018
|
+
end
|
|
4019
|
+
end
|
|
4020
|
+
|
|
4021
|
+
#
|
|
4022
|
+
class OrdersGetTestOrderTemplateResponse
|
|
4023
|
+
include Google::Apis::Core::Hashable
|
|
4024
|
+
|
|
4025
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4026
|
+
# ordersGetTestOrderTemplateResponse".
|
|
4027
|
+
# Corresponds to the JSON property `kind`
|
|
4028
|
+
# @return [String]
|
|
4029
|
+
attr_accessor :kind
|
|
4030
|
+
|
|
4031
|
+
# The requested test order template.
|
|
4032
|
+
# Corresponds to the JSON property `template`
|
|
4033
|
+
# @return [Google::Apis::ContentV2::TestOrder]
|
|
4034
|
+
attr_accessor :template
|
|
4035
|
+
|
|
4036
|
+
def initialize(**args)
|
|
4037
|
+
update!(**args)
|
|
4038
|
+
end
|
|
4039
|
+
|
|
4040
|
+
# Update properties of this object
|
|
4041
|
+
def update!(**args)
|
|
4042
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
4043
|
+
@template = args[:template] unless args[:template].nil?
|
|
4044
|
+
end
|
|
4045
|
+
end
|
|
4046
|
+
|
|
4047
|
+
#
|
|
4048
|
+
class OrdersListResponse
|
|
4049
|
+
include Google::Apis::Core::Hashable
|
|
4050
|
+
|
|
4051
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4052
|
+
# ordersListResponse".
|
|
4053
|
+
# Corresponds to the JSON property `kind`
|
|
4054
|
+
# @return [String]
|
|
4055
|
+
attr_accessor :kind
|
|
4056
|
+
|
|
4057
|
+
# The token for the retrieval of the next page of orders.
|
|
4058
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
4059
|
+
# @return [String]
|
|
4060
|
+
attr_accessor :next_page_token
|
|
4061
|
+
|
|
4062
|
+
#
|
|
4063
|
+
# Corresponds to the JSON property `resources`
|
|
4064
|
+
# @return [Array<Google::Apis::ContentV2::Order>]
|
|
4065
|
+
attr_accessor :resources
|
|
4066
|
+
|
|
4067
|
+
def initialize(**args)
|
|
4068
|
+
update!(**args)
|
|
4069
|
+
end
|
|
4070
|
+
|
|
4071
|
+
# Update properties of this object
|
|
4072
|
+
def update!(**args)
|
|
4073
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
4074
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
4075
|
+
@resources = args[:resources] unless args[:resources].nil?
|
|
4076
|
+
end
|
|
4077
|
+
end
|
|
4078
|
+
|
|
4079
|
+
#
|
|
4080
|
+
class OrdersRefundRequest
|
|
4081
|
+
include Google::Apis::Core::Hashable
|
|
4082
|
+
|
|
4083
|
+
# The amount that is refunded.
|
|
4084
|
+
# Corresponds to the JSON property `amount`
|
|
4085
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
4086
|
+
attr_accessor :amount
|
|
4087
|
+
|
|
4088
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
4089
|
+
# Corresponds to the JSON property `operationId`
|
|
4090
|
+
# @return [String]
|
|
4091
|
+
attr_accessor :operation_id
|
|
4092
|
+
|
|
4093
|
+
# The reason for the refund.
|
|
4094
|
+
# Corresponds to the JSON property `reason`
|
|
4095
|
+
# @return [String]
|
|
4096
|
+
attr_accessor :reason
|
|
4097
|
+
|
|
4098
|
+
# The explanation of the reason.
|
|
4099
|
+
# Corresponds to the JSON property `reasonText`
|
|
4100
|
+
# @return [String]
|
|
4101
|
+
attr_accessor :reason_text
|
|
4102
|
+
|
|
4103
|
+
def initialize(**args)
|
|
4104
|
+
update!(**args)
|
|
4105
|
+
end
|
|
4106
|
+
|
|
4107
|
+
# Update properties of this object
|
|
4108
|
+
def update!(**args)
|
|
4109
|
+
@amount = args[:amount] unless args[:amount].nil?
|
|
4110
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
4111
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
4112
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
4113
|
+
end
|
|
4114
|
+
end
|
|
4115
|
+
|
|
4116
|
+
#
|
|
4117
|
+
class OrdersRefundResponse
|
|
4118
|
+
include Google::Apis::Core::Hashable
|
|
4119
|
+
|
|
4120
|
+
# The status of the execution.
|
|
4121
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4122
|
+
# @return [String]
|
|
4123
|
+
attr_accessor :execution_status
|
|
4124
|
+
|
|
4125
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4126
|
+
# ordersRefundResponse".
|
|
4127
|
+
# Corresponds to the JSON property `kind`
|
|
4128
|
+
# @return [String]
|
|
4129
|
+
attr_accessor :kind
|
|
4130
|
+
|
|
4131
|
+
def initialize(**args)
|
|
4132
|
+
update!(**args)
|
|
4133
|
+
end
|
|
4134
|
+
|
|
4135
|
+
# Update properties of this object
|
|
4136
|
+
def update!(**args)
|
|
4137
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
4138
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
4139
|
+
end
|
|
4140
|
+
end
|
|
4141
|
+
|
|
4142
|
+
#
|
|
4143
|
+
class OrdersReturnLineItemRequest
|
|
4144
|
+
include Google::Apis::Core::Hashable
|
|
4145
|
+
|
|
4146
|
+
# The ID of the line item to return.
|
|
4147
|
+
# Corresponds to the JSON property `lineItemId`
|
|
4148
|
+
# @return [String]
|
|
4149
|
+
attr_accessor :line_item_id
|
|
4150
|
+
|
|
4151
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
4152
|
+
# Corresponds to the JSON property `operationId`
|
|
4153
|
+
# @return [String]
|
|
4154
|
+
attr_accessor :operation_id
|
|
4155
|
+
|
|
4156
|
+
# The quantity to return.
|
|
4157
|
+
# Corresponds to the JSON property `quantity`
|
|
4158
|
+
# @return [Fixnum]
|
|
4159
|
+
attr_accessor :quantity
|
|
4160
|
+
|
|
4161
|
+
# The reason for the return.
|
|
4162
|
+
# Corresponds to the JSON property `reason`
|
|
4163
|
+
# @return [String]
|
|
4164
|
+
attr_accessor :reason
|
|
4165
|
+
|
|
4166
|
+
# The explanation of the reason.
|
|
4167
|
+
# Corresponds to the JSON property `reasonText`
|
|
4168
|
+
# @return [String]
|
|
4169
|
+
attr_accessor :reason_text
|
|
4170
|
+
|
|
4171
|
+
def initialize(**args)
|
|
4172
|
+
update!(**args)
|
|
4173
|
+
end
|
|
4174
|
+
|
|
4175
|
+
# Update properties of this object
|
|
4176
|
+
def update!(**args)
|
|
4177
|
+
@line_item_id = args[:line_item_id] unless args[:line_item_id].nil?
|
|
4178
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
4179
|
+
@quantity = args[:quantity] unless args[:quantity].nil?
|
|
4180
|
+
@reason = args[:reason] unless args[:reason].nil?
|
|
4181
|
+
@reason_text = args[:reason_text] unless args[:reason_text].nil?
|
|
4182
|
+
end
|
|
4183
|
+
end
|
|
4184
|
+
|
|
4185
|
+
#
|
|
4186
|
+
class OrdersReturnLineItemResponse
|
|
4187
|
+
include Google::Apis::Core::Hashable
|
|
4188
|
+
|
|
4189
|
+
# The status of the execution.
|
|
4190
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4191
|
+
# @return [String]
|
|
4192
|
+
attr_accessor :execution_status
|
|
4193
|
+
|
|
4194
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4195
|
+
# ordersReturnLineItemResponse".
|
|
4196
|
+
# Corresponds to the JSON property `kind`
|
|
4197
|
+
# @return [String]
|
|
4198
|
+
attr_accessor :kind
|
|
4199
|
+
|
|
4200
|
+
def initialize(**args)
|
|
4201
|
+
update!(**args)
|
|
4202
|
+
end
|
|
4203
|
+
|
|
4204
|
+
# Update properties of this object
|
|
4205
|
+
def update!(**args)
|
|
4206
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
4207
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
4208
|
+
end
|
|
4209
|
+
end
|
|
4210
|
+
|
|
4211
|
+
#
|
|
4212
|
+
class OrdersShipLineItemsRequest
|
|
4213
|
+
include Google::Apis::Core::Hashable
|
|
4214
|
+
|
|
4215
|
+
# The carrier handling the shipment.
|
|
4216
|
+
# Corresponds to the JSON property `carrier`
|
|
4217
|
+
# @return [String]
|
|
4218
|
+
attr_accessor :carrier
|
|
4219
|
+
|
|
4220
|
+
# Line items to ship.
|
|
4221
|
+
# Corresponds to the JSON property `lineItems`
|
|
4222
|
+
# @return [Array<Google::Apis::ContentV2::OrderShipmentLineItemShipment>]
|
|
4223
|
+
attr_accessor :line_items
|
|
4224
|
+
|
|
4225
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
4226
|
+
# Corresponds to the JSON property `operationId`
|
|
4227
|
+
# @return [String]
|
|
4228
|
+
attr_accessor :operation_id
|
|
4229
|
+
|
|
4230
|
+
# The ID of the shipment.
|
|
4231
|
+
# Corresponds to the JSON property `shipmentId`
|
|
4232
|
+
# @return [String]
|
|
4233
|
+
attr_accessor :shipment_id
|
|
4234
|
+
|
|
4235
|
+
# The tracking id for the shipment.
|
|
4236
|
+
# Corresponds to the JSON property `trackingId`
|
|
4237
|
+
# @return [String]
|
|
4238
|
+
attr_accessor :tracking_id
|
|
4239
|
+
|
|
4240
|
+
def initialize(**args)
|
|
4241
|
+
update!(**args)
|
|
4242
|
+
end
|
|
4243
|
+
|
|
4244
|
+
# Update properties of this object
|
|
4245
|
+
def update!(**args)
|
|
4246
|
+
@carrier = args[:carrier] unless args[:carrier].nil?
|
|
4247
|
+
@line_items = args[:line_items] unless args[:line_items].nil?
|
|
4248
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
4249
|
+
@shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
|
|
4250
|
+
@tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
|
|
4251
|
+
end
|
|
4252
|
+
end
|
|
4253
|
+
|
|
4254
|
+
#
|
|
4255
|
+
class OrdersShipLineItemsResponse
|
|
4256
|
+
include Google::Apis::Core::Hashable
|
|
4257
|
+
|
|
4258
|
+
# The status of the execution.
|
|
4259
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4260
|
+
# @return [String]
|
|
4261
|
+
attr_accessor :execution_status
|
|
4262
|
+
|
|
4263
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4264
|
+
# ordersShipLineItemsResponse".
|
|
4265
|
+
# Corresponds to the JSON property `kind`
|
|
4266
|
+
# @return [String]
|
|
4267
|
+
attr_accessor :kind
|
|
4268
|
+
|
|
4269
|
+
def initialize(**args)
|
|
4270
|
+
update!(**args)
|
|
4271
|
+
end
|
|
4272
|
+
|
|
4273
|
+
# Update properties of this object
|
|
4274
|
+
def update!(**args)
|
|
4275
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
4276
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
4277
|
+
end
|
|
4278
|
+
end
|
|
4279
|
+
|
|
4280
|
+
#
|
|
4281
|
+
class OrdersUpdateMerchantOrderIdRequest
|
|
4282
|
+
include Google::Apis::Core::Hashable
|
|
4283
|
+
|
|
4284
|
+
# The merchant order id to be assigned to the order. Must be unique per merchant.
|
|
4285
|
+
# Corresponds to the JSON property `merchantOrderId`
|
|
4286
|
+
# @return [String]
|
|
4287
|
+
attr_accessor :merchant_order_id
|
|
4288
|
+
|
|
4289
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
4290
|
+
# Corresponds to the JSON property `operationId`
|
|
4291
|
+
# @return [String]
|
|
4292
|
+
attr_accessor :operation_id
|
|
4293
|
+
|
|
4294
|
+
def initialize(**args)
|
|
4295
|
+
update!(**args)
|
|
4296
|
+
end
|
|
4297
|
+
|
|
4298
|
+
# Update properties of this object
|
|
4299
|
+
def update!(**args)
|
|
4300
|
+
@merchant_order_id = args[:merchant_order_id] unless args[:merchant_order_id].nil?
|
|
4301
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
4302
|
+
end
|
|
4303
|
+
end
|
|
4304
|
+
|
|
4305
|
+
#
|
|
4306
|
+
class OrdersUpdateMerchantOrderIdResponse
|
|
4307
|
+
include Google::Apis::Core::Hashable
|
|
4308
|
+
|
|
4309
|
+
# The status of the execution.
|
|
4310
|
+
# Corresponds to the JSON property `executionStatus`
|
|
4311
|
+
# @return [String]
|
|
4312
|
+
attr_accessor :execution_status
|
|
4313
|
+
|
|
4314
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4315
|
+
# ordersUpdateMerchantOrderIdResponse".
|
|
4316
|
+
# Corresponds to the JSON property `kind`
|
|
4317
|
+
# @return [String]
|
|
4318
|
+
attr_accessor :kind
|
|
4319
|
+
|
|
4320
|
+
def initialize(**args)
|
|
4321
|
+
update!(**args)
|
|
4322
|
+
end
|
|
4323
|
+
|
|
4324
|
+
# Update properties of this object
|
|
4325
|
+
def update!(**args)
|
|
4326
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
4327
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2405
4328
|
end
|
|
2406
4329
|
end
|
|
2407
4330
|
|
|
2408
4331
|
#
|
|
2409
|
-
class
|
|
4332
|
+
class OrdersUpdateShipmentRequest
|
|
2410
4333
|
include Google::Apis::Core::Hashable
|
|
2411
4334
|
|
|
2412
|
-
#
|
|
2413
|
-
#
|
|
2414
|
-
# Corresponds to the JSON property `kind`
|
|
4335
|
+
# The carrier handling the shipment. Not updated if missing.
|
|
4336
|
+
# Corresponds to the JSON property `carrier`
|
|
2415
4337
|
# @return [String]
|
|
2416
|
-
attr_accessor :
|
|
4338
|
+
attr_accessor :carrier
|
|
4339
|
+
|
|
4340
|
+
# The ID of the operation. Unique across all operations for a given order.
|
|
4341
|
+
# Corresponds to the JSON property `operationId`
|
|
4342
|
+
# @return [String]
|
|
4343
|
+
attr_accessor :operation_id
|
|
4344
|
+
|
|
4345
|
+
# The ID of the shipment.
|
|
4346
|
+
# Corresponds to the JSON property `shipmentId`
|
|
4347
|
+
# @return [String]
|
|
4348
|
+
attr_accessor :shipment_id
|
|
4349
|
+
|
|
4350
|
+
# New status for the shipment. Not updated if missing.
|
|
4351
|
+
# Corresponds to the JSON property `status`
|
|
4352
|
+
# @return [String]
|
|
4353
|
+
attr_accessor :status
|
|
4354
|
+
|
|
4355
|
+
# The tracking id for the shipment. Not updated if missing.
|
|
4356
|
+
# Corresponds to the JSON property `trackingId`
|
|
4357
|
+
# @return [String]
|
|
4358
|
+
attr_accessor :tracking_id
|
|
2417
4359
|
|
|
2418
4360
|
def initialize(**args)
|
|
2419
4361
|
update!(**args)
|
|
@@ -2421,30 +4363,28 @@ module Google
|
|
|
2421
4363
|
|
|
2422
4364
|
# Update properties of this object
|
|
2423
4365
|
def update!(**args)
|
|
2424
|
-
@
|
|
4366
|
+
@carrier = args[:carrier] unless args[:carrier].nil?
|
|
4367
|
+
@operation_id = args[:operation_id] unless args[:operation_id].nil?
|
|
4368
|
+
@shipment_id = args[:shipment_id] unless args[:shipment_id].nil?
|
|
4369
|
+
@status = args[:status] unless args[:status].nil?
|
|
4370
|
+
@tracking_id = args[:tracking_id] unless args[:tracking_id].nil?
|
|
2425
4371
|
end
|
|
2426
4372
|
end
|
|
2427
4373
|
|
|
2428
4374
|
#
|
|
2429
|
-
class
|
|
4375
|
+
class OrdersUpdateShipmentResponse
|
|
2430
4376
|
include Google::Apis::Core::Hashable
|
|
2431
4377
|
|
|
2432
|
-
#
|
|
2433
|
-
#
|
|
2434
|
-
# Corresponds to the JSON property `name`
|
|
4378
|
+
# The status of the execution.
|
|
4379
|
+
# Corresponds to the JSON property `executionStatus`
|
|
2435
4380
|
# @return [String]
|
|
2436
|
-
attr_accessor :
|
|
4381
|
+
attr_accessor :execution_status
|
|
2437
4382
|
|
|
2438
|
-
#
|
|
2439
|
-
#
|
|
4383
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
4384
|
+
# ordersUpdateShipmentResponse".
|
|
4385
|
+
# Corresponds to the JSON property `kind`
|
|
2440
4386
|
# @return [String]
|
|
2441
|
-
attr_accessor :
|
|
2442
|
-
|
|
2443
|
-
# The ratio of a point when converted to currency. Google assumes currency based
|
|
2444
|
-
# on Merchant Center settings. If ratio is left out, it defaults to 1.0.
|
|
2445
|
-
# Corresponds to the JSON property `ratio`
|
|
2446
|
-
# @return [Float]
|
|
2447
|
-
attr_accessor :ratio
|
|
4387
|
+
attr_accessor :kind
|
|
2448
4388
|
|
|
2449
4389
|
def initialize(**args)
|
|
2450
4390
|
update!(**args)
|
|
@@ -2452,9 +4392,8 @@ module Google
|
|
|
2452
4392
|
|
|
2453
4393
|
# Update properties of this object
|
|
2454
4394
|
def update!(**args)
|
|
2455
|
-
@
|
|
2456
|
-
@
|
|
2457
|
-
@ratio = args[:ratio] unless args[:ratio].nil?
|
|
4395
|
+
@execution_status = args[:execution_status] unless args[:execution_status].nil?
|
|
4396
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2458
4397
|
end
|
|
2459
4398
|
end
|
|
2460
4399
|
|
|
@@ -2681,7 +4620,7 @@ module Google
|
|
|
2681
4620
|
|
|
2682
4621
|
# Number and amount of installments to pay for an item. Brazil only.
|
|
2683
4622
|
# Corresponds to the JSON property `installment`
|
|
2684
|
-
# @return [Google::Apis::ContentV2::
|
|
4623
|
+
# @return [Google::Apis::ContentV2::Installment]
|
|
2685
4624
|
attr_accessor :installment
|
|
2686
4625
|
|
|
2687
4626
|
# Whether the item is a merchant-defined bundle. A bundle is a custom grouping
|
|
@@ -2768,6 +4707,11 @@ module Google
|
|
|
2768
4707
|
# @return [String]
|
|
2769
4708
|
attr_accessor :sale_price_effective_date
|
|
2770
4709
|
|
|
4710
|
+
# The quantity of the product that is reserved for sell-on-google ads.
|
|
4711
|
+
# Corresponds to the JSON property `sellOnGoogleQuantity`
|
|
4712
|
+
# @return [String]
|
|
4713
|
+
attr_accessor :sell_on_google_quantity
|
|
4714
|
+
|
|
2771
4715
|
# Shipping rules.
|
|
2772
4716
|
# Corresponds to the JSON property `shipping`
|
|
2773
4717
|
# @return [Array<Google::Apis::ContentV2::ProductShipping>]
|
|
@@ -2908,6 +4852,7 @@ module Google
|
|
|
2908
4852
|
@product_type = args[:product_type] unless args[:product_type].nil?
|
|
2909
4853
|
@sale_price = args[:sale_price] unless args[:sale_price].nil?
|
|
2910
4854
|
@sale_price_effective_date = args[:sale_price_effective_date] unless args[:sale_price_effective_date].nil?
|
|
4855
|
+
@sell_on_google_quantity = args[:sell_on_google_quantity] unless args[:sell_on_google_quantity].nil?
|
|
2911
4856
|
@shipping = args[:shipping] unless args[:shipping].nil?
|
|
2912
4857
|
@shipping_height = args[:shipping_height] unless args[:shipping_height].nil?
|
|
2913
4858
|
@shipping_label = args[:shipping_label] unless args[:shipping_label].nil?
|
|
@@ -3047,31 +4992,6 @@ module Google
|
|
|
3047
4992
|
end
|
|
3048
4993
|
end
|
|
3049
4994
|
|
|
3050
|
-
#
|
|
3051
|
-
class ProductInstallment
|
|
3052
|
-
include Google::Apis::Core::Hashable
|
|
3053
|
-
|
|
3054
|
-
# The amount the buyer has to pay per month.
|
|
3055
|
-
# Corresponds to the JSON property `amount`
|
|
3056
|
-
# @return [Google::Apis::ContentV2::Price]
|
|
3057
|
-
attr_accessor :amount
|
|
3058
|
-
|
|
3059
|
-
# The number of installments the buyer has to pay.
|
|
3060
|
-
# Corresponds to the JSON property `months`
|
|
3061
|
-
# @return [String]
|
|
3062
|
-
attr_accessor :months
|
|
3063
|
-
|
|
3064
|
-
def initialize(**args)
|
|
3065
|
-
update!(**args)
|
|
3066
|
-
end
|
|
3067
|
-
|
|
3068
|
-
# Update properties of this object
|
|
3069
|
-
def update!(**args)
|
|
3070
|
-
@amount = args[:amount] unless args[:amount].nil?
|
|
3071
|
-
@months = args[:months] unless args[:months].nil?
|
|
3072
|
-
end
|
|
3073
|
-
end
|
|
3074
|
-
|
|
3075
4995
|
#
|
|
3076
4996
|
class ProductShipping
|
|
3077
4997
|
include Google::Apis::Core::Hashable
|
|
@@ -3761,6 +5681,282 @@ module Google
|
|
|
3761
5681
|
end
|
|
3762
5682
|
end
|
|
3763
5683
|
|
|
5684
|
+
#
|
|
5685
|
+
class TestOrder
|
|
5686
|
+
include Google::Apis::Core::Hashable
|
|
5687
|
+
|
|
5688
|
+
# The details of the customer who placed the order.
|
|
5689
|
+
# Corresponds to the JSON property `customer`
|
|
5690
|
+
# @return [Google::Apis::ContentV2::TestOrderCustomer]
|
|
5691
|
+
attr_accessor :customer
|
|
5692
|
+
|
|
5693
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
|
5694
|
+
# testOrder".
|
|
5695
|
+
# Corresponds to the JSON property `kind`
|
|
5696
|
+
# @return [String]
|
|
5697
|
+
attr_accessor :kind
|
|
5698
|
+
|
|
5699
|
+
# Line items that are ordered. At least one line item must be provided.
|
|
5700
|
+
# Corresponds to the JSON property `lineItems`
|
|
5701
|
+
# @return [Array<Google::Apis::ContentV2::TestOrderLineItem>]
|
|
5702
|
+
attr_accessor :line_items
|
|
5703
|
+
|
|
5704
|
+
# The details of the payment method.
|
|
5705
|
+
# Corresponds to the JSON property `paymentMethod`
|
|
5706
|
+
# @return [Google::Apis::ContentV2::TestOrderPaymentMethod]
|
|
5707
|
+
attr_accessor :payment_method
|
|
5708
|
+
|
|
5709
|
+
# Identifier of one of the predefined delivery addresses for the delivery.
|
|
5710
|
+
# Corresponds to the JSON property `predefinedDeliveryAddress`
|
|
5711
|
+
# @return [String]
|
|
5712
|
+
attr_accessor :predefined_delivery_address
|
|
5713
|
+
|
|
5714
|
+
# The total cost of shipping for all items.
|
|
5715
|
+
# Corresponds to the JSON property `shippingCost`
|
|
5716
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
5717
|
+
attr_accessor :shipping_cost
|
|
5718
|
+
|
|
5719
|
+
# The tax for the total shipping cost.
|
|
5720
|
+
# Corresponds to the JSON property `shippingCostTax`
|
|
5721
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
5722
|
+
attr_accessor :shipping_cost_tax
|
|
5723
|
+
|
|
5724
|
+
# The requested shipping option.
|
|
5725
|
+
# Corresponds to the JSON property `shippingOption`
|
|
5726
|
+
# @return [String]
|
|
5727
|
+
attr_accessor :shipping_option
|
|
5728
|
+
|
|
5729
|
+
def initialize(**args)
|
|
5730
|
+
update!(**args)
|
|
5731
|
+
end
|
|
5732
|
+
|
|
5733
|
+
# Update properties of this object
|
|
5734
|
+
def update!(**args)
|
|
5735
|
+
@customer = args[:customer] unless args[:customer].nil?
|
|
5736
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
5737
|
+
@line_items = args[:line_items] unless args[:line_items].nil?
|
|
5738
|
+
@payment_method = args[:payment_method] unless args[:payment_method].nil?
|
|
5739
|
+
@predefined_delivery_address = args[:predefined_delivery_address] unless args[:predefined_delivery_address].nil?
|
|
5740
|
+
@shipping_cost = args[:shipping_cost] unless args[:shipping_cost].nil?
|
|
5741
|
+
@shipping_cost_tax = args[:shipping_cost_tax] unless args[:shipping_cost_tax].nil?
|
|
5742
|
+
@shipping_option = args[:shipping_option] unless args[:shipping_option].nil?
|
|
5743
|
+
end
|
|
5744
|
+
end
|
|
5745
|
+
|
|
5746
|
+
#
|
|
5747
|
+
class TestOrderCustomer
|
|
5748
|
+
include Google::Apis::Core::Hashable
|
|
5749
|
+
|
|
5750
|
+
# Email address of the customer.
|
|
5751
|
+
# Corresponds to the JSON property `email`
|
|
5752
|
+
# @return [String]
|
|
5753
|
+
attr_accessor :email
|
|
5754
|
+
|
|
5755
|
+
# If set, this indicates the user had a choice to opt in or out of providing
|
|
5756
|
+
# marketing rights to the merchant. If unset, this indicates the user has
|
|
5757
|
+
# already made this choice in a previous purchase, and was thus not shown the
|
|
5758
|
+
# marketing right opt in/out checkbox during the Purchases on Google checkout
|
|
5759
|
+
# flow. Optional.
|
|
5760
|
+
# Corresponds to the JSON property `explicitMarketingPreference`
|
|
5761
|
+
# @return [Boolean]
|
|
5762
|
+
attr_accessor :explicit_marketing_preference
|
|
5763
|
+
alias_method :explicit_marketing_preference?, :explicit_marketing_preference
|
|
5764
|
+
|
|
5765
|
+
# Full name of the customer.
|
|
5766
|
+
# Corresponds to the JSON property `fullName`
|
|
5767
|
+
# @return [String]
|
|
5768
|
+
attr_accessor :full_name
|
|
5769
|
+
|
|
5770
|
+
def initialize(**args)
|
|
5771
|
+
update!(**args)
|
|
5772
|
+
end
|
|
5773
|
+
|
|
5774
|
+
# Update properties of this object
|
|
5775
|
+
def update!(**args)
|
|
5776
|
+
@email = args[:email] unless args[:email].nil?
|
|
5777
|
+
@explicit_marketing_preference = args[:explicit_marketing_preference] unless args[:explicit_marketing_preference].nil?
|
|
5778
|
+
@full_name = args[:full_name] unless args[:full_name].nil?
|
|
5779
|
+
end
|
|
5780
|
+
end
|
|
5781
|
+
|
|
5782
|
+
#
|
|
5783
|
+
class TestOrderLineItem
|
|
5784
|
+
include Google::Apis::Core::Hashable
|
|
5785
|
+
|
|
5786
|
+
# Product data from the time of the order placement.
|
|
5787
|
+
# Corresponds to the JSON property `product`
|
|
5788
|
+
# @return [Google::Apis::ContentV2::TestOrderLineItemProduct]
|
|
5789
|
+
attr_accessor :product
|
|
5790
|
+
|
|
5791
|
+
# Number of items ordered.
|
|
5792
|
+
# Corresponds to the JSON property `quantityOrdered`
|
|
5793
|
+
# @return [Fixnum]
|
|
5794
|
+
attr_accessor :quantity_ordered
|
|
5795
|
+
|
|
5796
|
+
# Details of the return policy for the line item.
|
|
5797
|
+
# Corresponds to the JSON property `returnInfo`
|
|
5798
|
+
# @return [Google::Apis::ContentV2::OrderLineItemReturnInfo]
|
|
5799
|
+
attr_accessor :return_info
|
|
5800
|
+
|
|
5801
|
+
# Details of the requested shipping for the line item.
|
|
5802
|
+
# Corresponds to the JSON property `shippingDetails`
|
|
5803
|
+
# @return [Google::Apis::ContentV2::OrderLineItemShippingDetails]
|
|
5804
|
+
attr_accessor :shipping_details
|
|
5805
|
+
|
|
5806
|
+
# Unit tax for the line item.
|
|
5807
|
+
# Corresponds to the JSON property `unitTax`
|
|
5808
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
5809
|
+
attr_accessor :unit_tax
|
|
5810
|
+
|
|
5811
|
+
def initialize(**args)
|
|
5812
|
+
update!(**args)
|
|
5813
|
+
end
|
|
5814
|
+
|
|
5815
|
+
# Update properties of this object
|
|
5816
|
+
def update!(**args)
|
|
5817
|
+
@product = args[:product] unless args[:product].nil?
|
|
5818
|
+
@quantity_ordered = args[:quantity_ordered] unless args[:quantity_ordered].nil?
|
|
5819
|
+
@return_info = args[:return_info] unless args[:return_info].nil?
|
|
5820
|
+
@shipping_details = args[:shipping_details] unless args[:shipping_details].nil?
|
|
5821
|
+
@unit_tax = args[:unit_tax] unless args[:unit_tax].nil?
|
|
5822
|
+
end
|
|
5823
|
+
end
|
|
5824
|
+
|
|
5825
|
+
#
|
|
5826
|
+
class TestOrderLineItemProduct
|
|
5827
|
+
include Google::Apis::Core::Hashable
|
|
5828
|
+
|
|
5829
|
+
# Brand of the item.
|
|
5830
|
+
# Corresponds to the JSON property `brand`
|
|
5831
|
+
# @return [String]
|
|
5832
|
+
attr_accessor :brand
|
|
5833
|
+
|
|
5834
|
+
# The item's channel.
|
|
5835
|
+
# Corresponds to the JSON property `channel`
|
|
5836
|
+
# @return [String]
|
|
5837
|
+
attr_accessor :channel
|
|
5838
|
+
|
|
5839
|
+
# Condition or state of the item.
|
|
5840
|
+
# Corresponds to the JSON property `condition`
|
|
5841
|
+
# @return [String]
|
|
5842
|
+
attr_accessor :condition
|
|
5843
|
+
|
|
5844
|
+
# The two-letter ISO 639-1 language code for the item.
|
|
5845
|
+
# Corresponds to the JSON property `contentLanguage`
|
|
5846
|
+
# @return [String]
|
|
5847
|
+
attr_accessor :content_language
|
|
5848
|
+
|
|
5849
|
+
# Global Trade Item Number (GTIN) of the item. Optional.
|
|
5850
|
+
# Corresponds to the JSON property `gtin`
|
|
5851
|
+
# @return [String]
|
|
5852
|
+
attr_accessor :gtin
|
|
5853
|
+
|
|
5854
|
+
# URL of an image of the item.
|
|
5855
|
+
# Corresponds to the JSON property `imageLink`
|
|
5856
|
+
# @return [String]
|
|
5857
|
+
attr_accessor :image_link
|
|
5858
|
+
|
|
5859
|
+
# Shared identifier for all variants of the same product. Optional.
|
|
5860
|
+
# Corresponds to the JSON property `itemGroupId`
|
|
5861
|
+
# @return [String]
|
|
5862
|
+
attr_accessor :item_group_id
|
|
5863
|
+
|
|
5864
|
+
# Manufacturer Part Number (MPN) of the item. Optional.
|
|
5865
|
+
# Corresponds to the JSON property `mpn`
|
|
5866
|
+
# @return [String]
|
|
5867
|
+
attr_accessor :mpn
|
|
5868
|
+
|
|
5869
|
+
# An identifier of the item.
|
|
5870
|
+
# Corresponds to the JSON property `offerId`
|
|
5871
|
+
# @return [String]
|
|
5872
|
+
attr_accessor :offer_id
|
|
5873
|
+
|
|
5874
|
+
# The price for the product.
|
|
5875
|
+
# Corresponds to the JSON property `price`
|
|
5876
|
+
# @return [Google::Apis::ContentV2::Price]
|
|
5877
|
+
attr_accessor :price
|
|
5878
|
+
|
|
5879
|
+
# The CLDR territory code of the target country of the product.
|
|
5880
|
+
# Corresponds to the JSON property `targetCountry`
|
|
5881
|
+
# @return [String]
|
|
5882
|
+
attr_accessor :target_country
|
|
5883
|
+
|
|
5884
|
+
# The title of the product.
|
|
5885
|
+
# Corresponds to the JSON property `title`
|
|
5886
|
+
# @return [String]
|
|
5887
|
+
attr_accessor :title
|
|
5888
|
+
|
|
5889
|
+
# Variant attributes for the item. Optional.
|
|
5890
|
+
# Corresponds to the JSON property `variantAttributes`
|
|
5891
|
+
# @return [Array<Google::Apis::ContentV2::OrderLineItemProductVariantAttribute>]
|
|
5892
|
+
attr_accessor :variant_attributes
|
|
5893
|
+
|
|
5894
|
+
def initialize(**args)
|
|
5895
|
+
update!(**args)
|
|
5896
|
+
end
|
|
5897
|
+
|
|
5898
|
+
# Update properties of this object
|
|
5899
|
+
def update!(**args)
|
|
5900
|
+
@brand = args[:brand] unless args[:brand].nil?
|
|
5901
|
+
@channel = args[:channel] unless args[:channel].nil?
|
|
5902
|
+
@condition = args[:condition] unless args[:condition].nil?
|
|
5903
|
+
@content_language = args[:content_language] unless args[:content_language].nil?
|
|
5904
|
+
@gtin = args[:gtin] unless args[:gtin].nil?
|
|
5905
|
+
@image_link = args[:image_link] unless args[:image_link].nil?
|
|
5906
|
+
@item_group_id = args[:item_group_id] unless args[:item_group_id].nil?
|
|
5907
|
+
@mpn = args[:mpn] unless args[:mpn].nil?
|
|
5908
|
+
@offer_id = args[:offer_id] unless args[:offer_id].nil?
|
|
5909
|
+
@price = args[:price] unless args[:price].nil?
|
|
5910
|
+
@target_country = args[:target_country] unless args[:target_country].nil?
|
|
5911
|
+
@title = args[:title] unless args[:title].nil?
|
|
5912
|
+
@variant_attributes = args[:variant_attributes] unless args[:variant_attributes].nil?
|
|
5913
|
+
end
|
|
5914
|
+
end
|
|
5915
|
+
|
|
5916
|
+
#
|
|
5917
|
+
class TestOrderPaymentMethod
|
|
5918
|
+
include Google::Apis::Core::Hashable
|
|
5919
|
+
|
|
5920
|
+
# The card expiration month (January = 1, February = 2 etc.).
|
|
5921
|
+
# Corresponds to the JSON property `expirationMonth`
|
|
5922
|
+
# @return [Fixnum]
|
|
5923
|
+
attr_accessor :expiration_month
|
|
5924
|
+
|
|
5925
|
+
# The card expiration year (4-digit, e.g. 2015).
|
|
5926
|
+
# Corresponds to the JSON property `expirationYear`
|
|
5927
|
+
# @return [Fixnum]
|
|
5928
|
+
attr_accessor :expiration_year
|
|
5929
|
+
|
|
5930
|
+
# The last four digits of the card number.
|
|
5931
|
+
# Corresponds to the JSON property `lastFourDigits`
|
|
5932
|
+
# @return [String]
|
|
5933
|
+
attr_accessor :last_four_digits
|
|
5934
|
+
|
|
5935
|
+
# The billing address.
|
|
5936
|
+
# Corresponds to the JSON property `predefinedBillingAddress`
|
|
5937
|
+
# @return [String]
|
|
5938
|
+
attr_accessor :predefined_billing_address
|
|
5939
|
+
|
|
5940
|
+
# The type of instrument. Note that real orders might have different values than
|
|
5941
|
+
# the four values accepted by createTestOrder.
|
|
5942
|
+
# Corresponds to the JSON property `type`
|
|
5943
|
+
# @return [String]
|
|
5944
|
+
attr_accessor :type
|
|
5945
|
+
|
|
5946
|
+
def initialize(**args)
|
|
5947
|
+
update!(**args)
|
|
5948
|
+
end
|
|
5949
|
+
|
|
5950
|
+
# Update properties of this object
|
|
5951
|
+
def update!(**args)
|
|
5952
|
+
@expiration_month = args[:expiration_month] unless args[:expiration_month].nil?
|
|
5953
|
+
@expiration_year = args[:expiration_year] unless args[:expiration_year].nil?
|
|
5954
|
+
@last_four_digits = args[:last_four_digits] unless args[:last_four_digits].nil?
|
|
5955
|
+
@predefined_billing_address = args[:predefined_billing_address] unless args[:predefined_billing_address].nil?
|
|
5956
|
+
@type = args[:type] unless args[:type].nil?
|
|
5957
|
+
end
|
|
5958
|
+
end
|
|
5959
|
+
|
|
3764
5960
|
#
|
|
3765
5961
|
class Weight
|
|
3766
5962
|
include Google::Apis::Core::Hashable
|