google-api-client 0.13.2 → 0.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +149 -0
- data/bin/generate-api +6 -2
- data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
- data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
- data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
- data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
- data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
- data/generated/google/apis/adexchangeseller_v1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
- data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
- data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
- data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
- data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
- data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
- data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
- data/generated/google/apis/adexperiencereport_v1.rb +35 -0
- data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
- data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
- data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
- data/generated/google/apis/admin_directory_v1/service.rb +39 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v2_4.rb +37 -0
- data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
- data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
- data/generated/google/apis/analytics_v2_4/service.rb +345 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +15 -2
- data/generated/google/apis/analytics_v3/representations.rb +3 -0
- data/generated/google/apis/analyticsreporting_v4.rb +4 -4
- data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
- data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
- data/generated/google/apis/androidmanagement_v1.rb +35 -0
- data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
- data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
- data/generated/google/apis/androidpublisher_v1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
- data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
- data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
- data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
- data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
- data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
- data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
- data/generated/google/apis/appengine_v1.rb +4 -4
- data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
- data/generated/google/apis/appengine_v1/representations.rb +351 -335
- data/generated/google/apis/appengine_v1/service.rb +255 -239
- data/generated/google/apis/appengine_v1alpha.rb +41 -0
- data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
- data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
- data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
- data/generated/google/apis/appengine_v1beta.rb +41 -0
- data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
- data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
- data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
- data/generated/google/apis/appengine_v1beta4.rb +41 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
- data/generated/google/apis/appengine_v1beta5.rb +41 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +106 -18
- data/generated/google/apis/bigquery_v2/representations.rb +15 -0
- data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
- data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
- data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
- data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
- data/generated/google/apis/blogger_v2.rb +34 -0
- data/generated/google/apis/blogger_v2/classes.rb +947 -0
- data/generated/google/apis/blogger_v2/representations.rb +465 -0
- data/generated/google/apis/blogger_v2/service.rb +424 -0
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +4 -207
- data/generated/google/apis/calendar_v3/representations.rb +0 -97
- data/generated/google/apis/calendar_v3/service.rb +8 -4
- data/generated/google/apis/classroom_v1.rb +27 -27
- data/generated/google/apis/classroom_v1/classes.rb +1037 -926
- data/generated/google/apis/classroom_v1/representations.rb +294 -244
- data/generated/google/apis/classroom_v1/service.rb +1114 -1109
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
- data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
- data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
- data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
- data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
- data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
- data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
- data/generated/google/apis/cloudfunctions_v1.rb +4 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
- data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
- data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
- data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
- data/generated/google/apis/cloudkms_v1/service.rb +320 -320
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
- data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
- data/generated/google/apis/cloudtrace_v1.rb +5 -5
- data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
- data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
- data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
- data/generated/google/apis/cloudtrace_v2.rb +43 -0
- data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
- data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
- data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
- data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
- data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
- data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
- data/generated/google/apis/compute_alpha.rb +49 -0
- data/generated/google/apis/compute_alpha/classes.rb +23796 -0
- data/generated/google/apis/compute_alpha/representations.rb +9391 -0
- data/generated/google/apis/compute_alpha/service.rb +24188 -0
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1597 -235
- data/generated/google/apis/compute_beta/representations.rb +477 -0
- data/generated/google/apis/compute_beta/service.rb +2875 -1677
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +319 -197
- data/generated/google/apis/compute_v1/representations.rb +51 -0
- data/generated/google/apis/compute_v1/service.rb +2057 -172
- data/generated/google/apis/consumersurveys_v2.rb +40 -0
- data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
- data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
- data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +1072 -936
- data/generated/google/apis/container_v1/representations.rb +266 -202
- data/generated/google/apis/container_v1/service.rb +243 -243
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
- data/generated/google/apis/container_v1beta1/representations.rb +662 -0
- data/generated/google/apis/container_v1beta1/service.rb +1875 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +72 -3
- data/generated/google/apis/content_v2/representations.rb +23 -0
- data/generated/google/apis/content_v2/service.rb +23 -18
- data/generated/google/apis/content_v2sandbox.rb +35 -0
- data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
- data/generated/google/apis/content_v2sandbox/service.rb +709 -0
- data/generated/google/apis/dataflow_v1b3.rb +5 -5
- data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
- data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
- data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
- data/generated/google/apis/dataproc_v1/representations.rb +227 -227
- data/generated/google/apis/dataproc_v1/service.rb +254 -254
- data/generated/google/apis/dataproc_v1beta2.rb +34 -0
- data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +1311 -773
- data/generated/google/apis/datastore_v1/representations.rb +351 -148
- data/generated/google/apis/datastore_v1/service.rb +206 -55
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
- data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
- data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
- data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
- data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
- data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
- data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
- data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
- data/generated/google/apis/dfareporting_v2_7.rb +1 -1
- data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
- data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8.rb +1 -1
- data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
- data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
- data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
- data/generated/google/apis/dlp_v2beta1.rb +36 -0
- data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
- data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
- data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
- data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
- data/generated/google/apis/firebaserules_v1/service.rb +113 -113
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/classes.rb +1 -1
- data/generated/google/apis/fusiontables_v1.rb +37 -0
- data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
- data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
- data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +8 -8
- data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
- data/generated/google/apis/genomics_v1/representations.rb +482 -482
- data/generated/google/apis/genomics_v1/service.rb +966 -966
- data/generated/google/apis/genomics_v1alpha2.rb +40 -0
- data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
- data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
- data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +664 -395
- data/generated/google/apis/iam_v1/representations.rb +194 -81
- data/generated/google/apis/iam_v1/service.rb +657 -92
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +8 -8
- data/generated/google/apis/language_v1.rb +4 -1
- data/generated/google/apis/language_v1/classes.rb +393 -393
- data/generated/google/apis/language_v1/representations.rb +95 -95
- data/generated/google/apis/language_v1/service.rb +42 -42
- data/generated/google/apis/language_v1beta1.rb +4 -1
- data/generated/google/apis/language_v1beta1/classes.rb +457 -457
- data/generated/google/apis/language_v1beta1/representations.rb +114 -114
- data/generated/google/apis/language_v1beta1/service.rb +48 -48
- data/generated/google/apis/language_v1beta2.rb +39 -0
- data/generated/google/apis/language_v1beta2/classes.rb +824 -0
- data/generated/google/apis/language_v1beta2/representations.rb +373 -0
- data/generated/google/apis/language_v1beta2/service.rb +217 -0
- data/generated/google/apis/logging_v2.rb +9 -9
- data/generated/google/apis/logging_v2/classes.rb +840 -834
- data/generated/google/apis/logging_v2/representations.rb +168 -167
- data/generated/google/apis/logging_v2/service.rb +667 -463
- data/generated/google/apis/logging_v2beta1.rb +9 -9
- data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
- data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
- data/generated/google/apis/logging_v2beta1/service.rb +253 -255
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
- data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
- data/generated/google/apis/manufacturers_v1/service.rb +8 -7
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1487 -1676
- data/generated/google/apis/ml_v1/representations.rb +229 -299
- data/generated/google/apis/ml_v1/service.rb +359 -253
- data/generated/google/apis/ml_v1beta1.rb +34 -0
- data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
- data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
- data/generated/google/apis/ml_v1beta1/service.rb +975 -0
- data/generated/google/apis/monitoring_v3.rb +6 -6
- data/generated/google/apis/monitoring_v3/classes.rb +834 -834
- data/generated/google/apis/monitoring_v3/representations.rb +168 -168
- data/generated/google/apis/monitoring_v3/service.rb +330 -330
- data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
- data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
- data/generated/google/apis/mybusiness_v3/service.rb +241 -241
- data/generated/google/apis/oauth2_v1.rb +43 -0
- data/generated/google/apis/oauth2_v1/classes.rb +321 -0
- data/generated/google/apis/oauth2_v1/representations.rb +135 -0
- data/generated/google/apis/oauth2_v1/service.rb +337 -0
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha.rb +37 -0
- data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
- data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
- data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
- data/generated/google/apis/pagespeedonline_v1.rb +32 -0
- data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
- data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
- data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +1512 -1512
- data/generated/google/apis/partners_v2/representations.rb +368 -368
- data/generated/google/apis/partners_v2/service.rb +596 -596
- data/generated/google/apis/people_v1.rb +15 -15
- data/generated/google/apis/people_v1/classes.rb +1384 -1383
- data/generated/google/apis/people_v1/representations.rb +311 -311
- data/generated/google/apis/people_v1/service.rb +208 -202
- data/generated/google/apis/playcustomapp_v1.rb +34 -0
- data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
- data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
- data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
- data/generated/google/apis/playmoviespartner_v1.rb +34 -0
- data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
- data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
- data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/prediction_v1_2.rb +44 -0
- data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
- data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
- data/generated/google/apis/prediction_v1_2/service.rb +287 -0
- data/generated/google/apis/prediction_v1_3.rb +44 -0
- data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
- data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
- data/generated/google/apis/prediction_v1_3/service.rb +284 -0
- data/generated/google/apis/prediction_v1_4.rb +44 -0
- data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
- data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
- data/generated/google/apis/prediction_v1_4/service.rb +284 -0
- data/generated/google/apis/prediction_v1_5.rb +44 -0
- data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
- data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
- data/generated/google/apis/prediction_v1_5/service.rb +357 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +352 -352
- data/generated/google/apis/pubsub_v1/representations.rb +77 -77
- data/generated/google/apis/pubsub_v1/service.rb +346 -346
- data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
- data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
- data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
- data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
- data/generated/google/apis/pubsub_v1beta2.rb +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
- data/generated/google/apis/replicapool_v1beta1.rb +50 -0
- data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
- data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
- data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
- data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
- data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
- data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
- data/generated/google/apis/runtimeconfig_v1.rb +4 -4
- data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
- data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
- data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
- data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
- data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
- data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
- data/generated/google/apis/safebrowsing_v4.rb +32 -0
- data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
- data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
- data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
- data/generated/google/apis/script_v1.rb +19 -19
- data/generated/google/apis/script_v1/classes.rb +99 -157
- data/generated/google/apis/script_v1/representations.rb +17 -47
- data/generated/google/apis/script_v1/service.rb +12 -12
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/servicecontrol_v1.rb +4 -4
- data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
- data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
- data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
- data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
- data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
- data/generated/google/apis/serviceuser_v1.rb +5 -5
- data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
- data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
- data/generated/google/apis/serviceuser_v1/service.rb +43 -43
- data/generated/google/apis/sheets_v4.rb +7 -7
- data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
- data/generated/google/apis/sheets_v4/representations.rb +931 -930
- data/generated/google/apis/sheets_v4/service.rb +244 -244
- data/generated/google/apis/slides_v1.rb +10 -10
- data/generated/google/apis/slides_v1/classes.rb +2915 -2915
- data/generated/google/apis/slides_v1/representations.rb +698 -698
- data/generated/google/apis/slides_v1/service.rb +35 -35
- data/generated/google/apis/sourcerepo_v1.rb +3 -3
- data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
- data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
- data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
- data/generated/google/apis/spanner_v1.rb +4 -4
- data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
- data/generated/google/apis/spanner_v1/representations.rb +338 -323
- data/generated/google/apis/spanner_v1/service.rb +689 -689
- data/generated/google/apis/spectrum_v1explorer.rb +31 -0
- data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
- data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
- data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
- data/generated/google/apis/speech_v1.rb +34 -0
- data/generated/google/apis/speech_v1/classes.rb +572 -0
- data/generated/google/apis/speech_v1/representations.rb +236 -0
- data/generated/google/apis/speech_v1/service.rb +277 -0
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
- data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
- data/generated/google/apis/speech_v1beta1/service.rb +46 -46
- data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
- data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
- data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +7 -6
- data/generated/google/apis/storage_v1/service.rb +51 -29
- data/generated/google/apis/storage_v1beta1.rb +40 -0
- data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
- data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
- data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
- data/generated/google/apis/storage_v1beta2.rb +40 -0
- data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
- data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
- data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
- data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
- data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
- data/generated/google/apis/streetviewpublish_v1.rb +36 -0
- data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
- data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
- data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
- data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
- data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
- data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
- data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
- data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
- data/generated/google/apis/translate_v2/classes.rb +111 -111
- data/generated/google/apis/translate_v2/representations.rb +49 -49
- data/generated/google/apis/translate_v2/service.rb +94 -94
- data/generated/google/apis/vault_v1.rb +31 -0
- data/generated/google/apis/vault_v1/classes.rb +554 -0
- data/generated/google/apis/vault_v1/representations.rb +318 -0
- data/generated/google/apis/vault_v1/service.rb +677 -0
- data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
- data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
- data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
- data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
- data/generated/google/apis/vision_v1.rb +4 -4
- data/generated/google/apis/vision_v1/classes.rb +1176 -1178
- data/generated/google/apis/vision_v1/representations.rb +235 -235
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
- data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
- data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
- data/lib/google/apis/version.rb +1 -1
- metadata +246 -2
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20170803'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -165,6 +165,11 @@ module Google
|
|
165
165
|
# @return [String]
|
166
166
|
attr_accessor :account_id
|
167
167
|
|
168
|
+
# A list of account level issues.
|
169
|
+
# Corresponds to the JSON property `accountLevelIssues`
|
170
|
+
# @return [Array<Google::Apis::ContentV2::AccountStatusAccountLevelIssue>]
|
171
|
+
attr_accessor :account_level_issues
|
172
|
+
|
168
173
|
# A list of data quality issues.
|
169
174
|
# Corresponds to the JSON property `dataQualityIssues`
|
170
175
|
# @return [Array<Google::Apis::ContentV2::AccountStatusDataQualityIssue>]
|
@@ -189,12 +194,56 @@ module Google
|
|
189
194
|
# Update properties of this object
|
190
195
|
def update!(**args)
|
191
196
|
@account_id = args[:account_id] if args.key?(:account_id)
|
197
|
+
@account_level_issues = args[:account_level_issues] if args.key?(:account_level_issues)
|
192
198
|
@data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues)
|
193
199
|
@kind = args[:kind] if args.key?(:kind)
|
194
200
|
@website_claimed = args[:website_claimed] if args.key?(:website_claimed)
|
195
201
|
end
|
196
202
|
end
|
197
203
|
|
204
|
+
#
|
205
|
+
class AccountStatusAccountLevelIssue
|
206
|
+
include Google::Apis::Core::Hashable
|
207
|
+
|
208
|
+
# Country for which this issue is reported.
|
209
|
+
# Corresponds to the JSON property `country`
|
210
|
+
# @return [String]
|
211
|
+
attr_accessor :country
|
212
|
+
|
213
|
+
# Additional details about the issue.
|
214
|
+
# Corresponds to the JSON property `detail`
|
215
|
+
# @return [String]
|
216
|
+
attr_accessor :detail
|
217
|
+
|
218
|
+
# Issue identifier.
|
219
|
+
# Corresponds to the JSON property `id`
|
220
|
+
# @return [String]
|
221
|
+
attr_accessor :id
|
222
|
+
|
223
|
+
# Severity of the issue.
|
224
|
+
# Corresponds to the JSON property `severity`
|
225
|
+
# @return [String]
|
226
|
+
attr_accessor :severity
|
227
|
+
|
228
|
+
# Short description of the issue.
|
229
|
+
# Corresponds to the JSON property `title`
|
230
|
+
# @return [String]
|
231
|
+
attr_accessor :title
|
232
|
+
|
233
|
+
def initialize(**args)
|
234
|
+
update!(**args)
|
235
|
+
end
|
236
|
+
|
237
|
+
# Update properties of this object
|
238
|
+
def update!(**args)
|
239
|
+
@country = args[:country] if args.key?(:country)
|
240
|
+
@detail = args[:detail] if args.key?(:detail)
|
241
|
+
@id = args[:id] if args.key?(:id)
|
242
|
+
@severity = args[:severity] if args.key?(:severity)
|
243
|
+
@title = args[:title] if args.key?(:title)
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
198
247
|
#
|
199
248
|
class AccountStatusDataQualityIssue
|
200
249
|
include Google::Apis::Core::Hashable
|
@@ -1149,6 +1198,12 @@ module Google
|
|
1149
1198
|
# @return [String]
|
1150
1199
|
attr_accessor :password
|
1151
1200
|
|
1201
|
+
# Whether the scheduled fetch is paused or not.
|
1202
|
+
# Corresponds to the JSON property `paused`
|
1203
|
+
# @return [Boolean]
|
1204
|
+
attr_accessor :paused
|
1205
|
+
alias_method :paused?, :paused
|
1206
|
+
|
1152
1207
|
# Time zone used for schedule. UTC by default. E.g., "America/Los_Angeles".
|
1153
1208
|
# Corresponds to the JSON property `timeZone`
|
1154
1209
|
# @return [String]
|
@@ -1175,6 +1230,7 @@ module Google
|
|
1175
1230
|
@hour = args[:hour] if args.key?(:hour)
|
1176
1231
|
@minute_of_hour = args[:minute_of_hour] if args.key?(:minute_of_hour)
|
1177
1232
|
@password = args[:password] if args.key?(:password)
|
1233
|
+
@paused = args[:paused] if args.key?(:paused)
|
1178
1234
|
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
1179
1235
|
@username = args[:username] if args.key?(:username)
|
1180
1236
|
@weekday = args[:weekday] if args.key?(:weekday)
|
@@ -2269,7 +2325,7 @@ module Google
|
|
2269
2325
|
attr_accessor :placed_date
|
2270
2326
|
|
2271
2327
|
# The details of the merchant provided promotions applied to the order. More
|
2272
|
-
# details about the program are
|
2328
|
+
# details about the program are here.
|
2273
2329
|
# Corresponds to the JSON property `promotions`
|
2274
2330
|
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
|
2275
2331
|
attr_accessor :promotions
|
@@ -4927,7 +4983,7 @@ module Google
|
|
4927
4983
|
# @return [Google::Apis::ContentV2::Price]
|
4928
4984
|
attr_accessor :price
|
4929
4985
|
|
4930
|
-
# The geographic region to which a shipping rate applies
|
4986
|
+
# The geographic region to which a shipping rate applies.
|
4931
4987
|
# Corresponds to the JSON property `region`
|
4932
4988
|
# @return [String]
|
4933
4989
|
attr_accessor :region
|
@@ -5047,6 +5103,11 @@ module Google
|
|
5047
5103
|
# @return [String]
|
5048
5104
|
attr_accessor :link
|
5049
5105
|
|
5106
|
+
# Product data.
|
5107
|
+
# Corresponds to the JSON property `product`
|
5108
|
+
# @return [Google::Apis::ContentV2::Product]
|
5109
|
+
attr_accessor :product
|
5110
|
+
|
5050
5111
|
# The id of the product for which status is reported.
|
5051
5112
|
# Corresponds to the JSON property `productId`
|
5052
5113
|
# @return [String]
|
@@ -5070,6 +5131,7 @@ module Google
|
|
5070
5131
|
@kind = args[:kind] if args.key?(:kind)
|
5071
5132
|
@last_update_date = args[:last_update_date] if args.key?(:last_update_date)
|
5072
5133
|
@link = args[:link] if args.key?(:link)
|
5134
|
+
@product = args[:product] if args.key?(:product)
|
5073
5135
|
@product_id = args[:product_id] if args.key?(:product_id)
|
5074
5136
|
@title = args[:title] if args.key?(:title)
|
5075
5137
|
end
|
@@ -5458,6 +5520,12 @@ module Google
|
|
5458
5520
|
# @return [Fixnum]
|
5459
5521
|
attr_accessor :batch_id
|
5460
5522
|
|
5523
|
+
#
|
5524
|
+
# Corresponds to the JSON property `includeAttributes`
|
5525
|
+
# @return [Boolean]
|
5526
|
+
attr_accessor :include_attributes
|
5527
|
+
alias_method :include_attributes?, :include_attributes
|
5528
|
+
|
5461
5529
|
# The ID of the managing account.
|
5462
5530
|
# Corresponds to the JSON property `merchantId`
|
5463
5531
|
# @return [Fixnum]
|
@@ -5480,6 +5548,7 @@ module Google
|
|
5480
5548
|
# Update properties of this object
|
5481
5549
|
def update!(**args)
|
5482
5550
|
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
5551
|
+
@include_attributes = args[:include_attributes] if args.key?(:include_attributes)
|
5483
5552
|
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
5484
5553
|
@request_method = args[:request_method] if args.key?(:request_method)
|
5485
5554
|
@product_id = args[:product_id] if args.key?(:product_id)
|
@@ -5995,7 +6064,7 @@ module Google
|
|
5995
6064
|
attr_accessor :predefined_delivery_address
|
5996
6065
|
|
5997
6066
|
# The details of the merchant provided promotions applied to the order. More
|
5998
|
-
# details about the program are
|
6067
|
+
# details about the program are here.
|
5999
6068
|
# Corresponds to the JSON property `promotions`
|
6000
6069
|
# @return [Array<Google::Apis::ContentV2::OrderPromotion>]
|
6001
6070
|
attr_accessor :promotions
|
@@ -46,6 +46,12 @@ module Google
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
+
class AccountStatusAccountLevelIssue
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
|
52
|
+
include Google::Apis::Core::JsonObjectSupport
|
53
|
+
end
|
54
|
+
|
49
55
|
class AccountStatusDataQualityIssue
|
50
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
57
|
|
@@ -983,6 +989,8 @@ module Google
|
|
983
989
|
# @private
|
984
990
|
class Representation < Google::Apis::Core::JsonRepresentation
|
985
991
|
property :account_id, as: 'accountId'
|
992
|
+
collection :account_level_issues, as: 'accountLevelIssues', class: Google::Apis::ContentV2::AccountStatusAccountLevelIssue, decorator: Google::Apis::ContentV2::AccountStatusAccountLevelIssue::Representation
|
993
|
+
|
986
994
|
collection :data_quality_issues, as: 'dataQualityIssues', class: Google::Apis::ContentV2::AccountStatusDataQualityIssue, decorator: Google::Apis::ContentV2::AccountStatusDataQualityIssue::Representation
|
987
995
|
|
988
996
|
property :kind, as: 'kind'
|
@@ -990,6 +998,17 @@ module Google
|
|
990
998
|
end
|
991
999
|
end
|
992
1000
|
|
1001
|
+
class AccountStatusAccountLevelIssue
|
1002
|
+
# @private
|
1003
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1004
|
+
property :country, as: 'country'
|
1005
|
+
property :detail, as: 'detail'
|
1006
|
+
property :id, as: 'id'
|
1007
|
+
property :severity, as: 'severity'
|
1008
|
+
property :title, as: 'title'
|
1009
|
+
end
|
1010
|
+
end
|
1011
|
+
|
993
1012
|
class AccountStatusDataQualityIssue
|
994
1013
|
# @private
|
995
1014
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1263,6 +1282,7 @@ module Google
|
|
1263
1282
|
property :hour, as: 'hour'
|
1264
1283
|
property :minute_of_hour, as: 'minuteOfHour'
|
1265
1284
|
property :password, as: 'password'
|
1285
|
+
property :paused, as: 'paused'
|
1266
1286
|
property :time_zone, as: 'timeZone'
|
1267
1287
|
property :username, as: 'username'
|
1268
1288
|
property :weekday, as: 'weekday'
|
@@ -2338,6 +2358,8 @@ module Google
|
|
2338
2358
|
property :kind, as: 'kind'
|
2339
2359
|
property :last_update_date, as: 'lastUpdateDate'
|
2340
2360
|
property :link, as: 'link'
|
2361
|
+
property :product, as: 'product', class: Google::Apis::ContentV2::Product, decorator: Google::Apis::ContentV2::Product::Representation
|
2362
|
+
|
2341
2363
|
property :product_id, as: 'productId'
|
2342
2364
|
property :title, as: 'title'
|
2343
2365
|
end
|
@@ -2457,6 +2479,7 @@ module Google
|
|
2457
2479
|
# @private
|
2458
2480
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2459
2481
|
property :batch_id, as: 'batchId'
|
2482
|
+
property :include_attributes, as: 'includeAttributes'
|
2460
2483
|
property :merchant_id, :numeric_string => true, as: 'merchantId'
|
2461
2484
|
property :request_method, as: 'method'
|
2462
2485
|
property :product_id, as: 'productId'
|
@@ -88,8 +88,8 @@ module Google
|
|
88
88
|
|
89
89
|
# Claims the website of a Merchant Center sub-account. This method can only be
|
90
90
|
# called for accounts to which the managing account has access: either the
|
91
|
-
# managing account itself
|
92
|
-
# client account.
|
91
|
+
# managing account itself for any Merchant Center account, or any sub-account
|
92
|
+
# when the managing account is a multi-client account.
|
93
93
|
# @param [Fixnum] merchant_id
|
94
94
|
# The ID of the managing account.
|
95
95
|
# @param [Fixnum] account_id
|
@@ -212,7 +212,8 @@ module Google
|
|
212
212
|
|
213
213
|
# Retrieves a Merchant Center account. This method can only be called for
|
214
214
|
# accounts to which the managing account has access: either the managing account
|
215
|
-
# itself
|
215
|
+
# itself for any Merchant Center account, or any sub-account when the managing
|
216
|
+
# account is a multi-client account.
|
216
217
|
# @param [Fixnum] merchant_id
|
217
218
|
# The ID of the managing account.
|
218
219
|
# @param [Fixnum] account_id
|
@@ -336,8 +337,8 @@ module Google
|
|
336
337
|
|
337
338
|
# Updates a Merchant Center account. This method can only be called for accounts
|
338
339
|
# to which the managing account has access: either the managing account itself
|
339
|
-
#
|
340
|
-
# supports patch semantics.
|
340
|
+
# for any Merchant Center account, or any sub-account when the managing account
|
341
|
+
# is a multi-client account. This method supports patch semantics.
|
341
342
|
# @param [Fixnum] merchant_id
|
342
343
|
# The ID of the managing account.
|
343
344
|
# @param [Fixnum] account_id
|
@@ -383,7 +384,8 @@ module Google
|
|
383
384
|
|
384
385
|
# Updates a Merchant Center account. This method can only be called for accounts
|
385
386
|
# to which the managing account has access: either the managing account itself
|
386
|
-
# or sub-
|
387
|
+
# for any Merchant Center account, or any sub-account when the managing account
|
388
|
+
# is a multi-client account.
|
387
389
|
# @param [Fixnum] merchant_id
|
388
390
|
# The ID of the managing account.
|
389
391
|
# @param [Fixnum] account_id
|
@@ -464,8 +466,8 @@ module Google
|
|
464
466
|
|
465
467
|
# Retrieves the status of a Merchant Center account. This method can only be
|
466
468
|
# called for accounts to which the managing account has access: either the
|
467
|
-
# managing account itself
|
468
|
-
# client account.
|
469
|
+
# managing account itself for any Merchant Center account, or any sub-account
|
470
|
+
# when the managing account is a multi-client account.
|
469
471
|
# @param [Fixnum] merchant_id
|
470
472
|
# The ID of the managing account.
|
471
473
|
# @param [Fixnum] account_id
|
@@ -586,7 +588,8 @@ module Google
|
|
586
588
|
|
587
589
|
# Retrieves the tax settings of the account. This method can only be called for
|
588
590
|
# accounts to which the managing account has access: either the managing account
|
589
|
-
# itself
|
591
|
+
# itself for any Merchant Center account, or any sub-account when the managing
|
592
|
+
# account is a multi-client account.
|
590
593
|
# @param [Fixnum] merchant_id
|
591
594
|
# The ID of the managing account.
|
592
595
|
# @param [Fixnum] account_id
|
@@ -668,8 +671,8 @@ module Google
|
|
668
671
|
|
669
672
|
# Updates the tax settings of the account. This method can only be called for
|
670
673
|
# accounts to which the managing account has access: either the managing account
|
671
|
-
# itself
|
672
|
-
# method supports patch semantics.
|
674
|
+
# itself for any Merchant Center account, or any sub-account when the managing
|
675
|
+
# account is a multi-client account. This method supports patch semantics.
|
673
676
|
# @param [Fixnum] merchant_id
|
674
677
|
# The ID of the managing account.
|
675
678
|
# @param [Fixnum] account_id
|
@@ -715,7 +718,8 @@ module Google
|
|
715
718
|
|
716
719
|
# Updates the tax settings of the account. This method can only be called for
|
717
720
|
# accounts to which the managing account has access: either the managing account
|
718
|
-
# itself
|
721
|
+
# itself for any Merchant Center account, or any sub-account when the managing
|
722
|
+
# account is a multi-client account.
|
719
723
|
# @param [Fixnum] merchant_id
|
720
724
|
# The ID of the managing account.
|
721
725
|
# @param [Fixnum] account_id
|
@@ -2271,8 +2275,8 @@ module Google
|
|
2271
2275
|
|
2272
2276
|
# Retrieves the shipping settings of the account. This method can only be called
|
2273
2277
|
# for accounts to which the managing account has access: either the managing
|
2274
|
-
# account itself
|
2275
|
-
# account.
|
2278
|
+
# account itself for any Merchant Center account, or any sub-account when the
|
2279
|
+
# managing account is a multi-client account.
|
2276
2280
|
# @param [Fixnum] merchant_id
|
2277
2281
|
# The ID of the managing account.
|
2278
2282
|
# @param [Fixnum] account_id
|
@@ -2390,8 +2394,9 @@ module Google
|
|
2390
2394
|
|
2391
2395
|
# Updates the shipping settings of the account. This method can only be called
|
2392
2396
|
# for accounts to which the managing account has access: either the managing
|
2393
|
-
# account itself
|
2394
|
-
# account. This method supports patch
|
2397
|
+
# account itself for any Merchant Center account, or any sub-account when the
|
2398
|
+
# managing account is a multi-client account. This method supports patch
|
2399
|
+
# semantics.
|
2395
2400
|
# @param [Fixnum] merchant_id
|
2396
2401
|
# The ID of the managing account.
|
2397
2402
|
# @param [Fixnum] account_id
|
@@ -2437,8 +2442,8 @@ module Google
|
|
2437
2442
|
|
2438
2443
|
# Updates the shipping settings of the account. This method can only be called
|
2439
2444
|
# for accounts to which the managing account has access: either the managing
|
2440
|
-
# account itself
|
2441
|
-
# account.
|
2445
|
+
# account itself for any Merchant Center account, or any sub-account when the
|
2446
|
+
# managing account is a multi-client account.
|
2442
2447
|
# @param [Fixnum] merchant_id
|
2443
2448
|
# The ID of the managing account.
|
2444
2449
|
# @param [Fixnum] account_id
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/content_v2sandbox/service.rb'
|
16
|
+
require 'google/apis/content_v2sandbox/classes.rb'
|
17
|
+
require 'google/apis/content_v2sandbox/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Content API for Shopping
|
22
|
+
#
|
23
|
+
# Manages product items, inventory, and Merchant Center accounts for Google
|
24
|
+
# Shopping.
|
25
|
+
#
|
26
|
+
# @see https://developers.google.com/shopping-content
|
27
|
+
module ContentV2sandbox
|
28
|
+
VERSION = 'V2sandbox'
|
29
|
+
REVISION = '20170725'
|
30
|
+
|
31
|
+
# Manage your product listings and accounts for Google Shopping
|
32
|
+
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,2406 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ContentV2sandbox
|
24
|
+
|
25
|
+
# An error returned by the API.
|
26
|
+
class Error
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# The domain of the error.
|
30
|
+
# Corresponds to the JSON property `domain`
|
31
|
+
# @return [String]
|
32
|
+
attr_accessor :domain
|
33
|
+
|
34
|
+
# A description of the error.
|
35
|
+
# Corresponds to the JSON property `message`
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :message
|
38
|
+
|
39
|
+
# The error code.
|
40
|
+
# Corresponds to the JSON property `reason`
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :reason
|
43
|
+
|
44
|
+
def initialize(**args)
|
45
|
+
update!(**args)
|
46
|
+
end
|
47
|
+
|
48
|
+
# Update properties of this object
|
49
|
+
def update!(**args)
|
50
|
+
@domain = args[:domain] if args.key?(:domain)
|
51
|
+
@message = args[:message] if args.key?(:message)
|
52
|
+
@reason = args[:reason] if args.key?(:reason)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# A list of errors returned by a failed batch entry.
|
57
|
+
class Errors
|
58
|
+
include Google::Apis::Core::Hashable
|
59
|
+
|
60
|
+
# The HTTP status of the first error in errors.
|
61
|
+
# Corresponds to the JSON property `code`
|
62
|
+
# @return [Fixnum]
|
63
|
+
attr_accessor :code
|
64
|
+
|
65
|
+
# A list of errors.
|
66
|
+
# Corresponds to the JSON property `errors`
|
67
|
+
# @return [Array<Google::Apis::ContentV2sandbox::Error>]
|
68
|
+
attr_accessor :errors
|
69
|
+
|
70
|
+
# The message of the first error in errors.
|
71
|
+
# Corresponds to the JSON property `message`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :message
|
74
|
+
|
75
|
+
def initialize(**args)
|
76
|
+
update!(**args)
|
77
|
+
end
|
78
|
+
|
79
|
+
# Update properties of this object
|
80
|
+
def update!(**args)
|
81
|
+
@code = args[:code] if args.key?(:code)
|
82
|
+
@errors = args[:errors] if args.key?(:errors)
|
83
|
+
@message = args[:message] if args.key?(:message)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
#
|
88
|
+
class Order
|
89
|
+
include Google::Apis::Core::Hashable
|
90
|
+
|
91
|
+
# Whether the order was acknowledged.
|
92
|
+
# Corresponds to the JSON property `acknowledged`
|
93
|
+
# @return [Boolean]
|
94
|
+
attr_accessor :acknowledged
|
95
|
+
alias_method :acknowledged?, :acknowledged
|
96
|
+
|
97
|
+
# The channel type of the order: "purchaseOnGoogle" or "googleExpress".
|
98
|
+
# Corresponds to the JSON property `channelType`
|
99
|
+
# @return [String]
|
100
|
+
attr_accessor :channel_type
|
101
|
+
|
102
|
+
# The details of the customer who placed the order.
|
103
|
+
# Corresponds to the JSON property `customer`
|
104
|
+
# @return [Google::Apis::ContentV2sandbox::OrderCustomer]
|
105
|
+
attr_accessor :customer
|
106
|
+
|
107
|
+
# The details for the delivery.
|
108
|
+
# Corresponds to the JSON property `deliveryDetails`
|
109
|
+
# @return [Google::Apis::ContentV2sandbox::OrderDeliveryDetails]
|
110
|
+
attr_accessor :delivery_details
|
111
|
+
|
112
|
+
# The REST id of the order. Globally unique.
|
113
|
+
# Corresponds to the JSON property `id`
|
114
|
+
# @return [String]
|
115
|
+
attr_accessor :id
|
116
|
+
|
117
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
118
|
+
# order".
|
119
|
+
# Corresponds to the JSON property `kind`
|
120
|
+
# @return [String]
|
121
|
+
attr_accessor :kind
|
122
|
+
|
123
|
+
# Line items that are ordered.
|
124
|
+
# Corresponds to the JSON property `lineItems`
|
125
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderLineItem>]
|
126
|
+
attr_accessor :line_items
|
127
|
+
|
128
|
+
#
|
129
|
+
# Corresponds to the JSON property `merchantId`
|
130
|
+
# @return [Fixnum]
|
131
|
+
attr_accessor :merchant_id
|
132
|
+
|
133
|
+
# Merchant-provided id of the order.
|
134
|
+
# Corresponds to the JSON property `merchantOrderId`
|
135
|
+
# @return [String]
|
136
|
+
attr_accessor :merchant_order_id
|
137
|
+
|
138
|
+
# The net amount for the order. For example, if an order was originally for a
|
139
|
+
# grand total of $100 and a refund was issued for $20, the net amount will be $
|
140
|
+
# 80.
|
141
|
+
# Corresponds to the JSON property `netAmount`
|
142
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
143
|
+
attr_accessor :net_amount
|
144
|
+
|
145
|
+
# The details of the payment method.
|
146
|
+
# Corresponds to the JSON property `paymentMethod`
|
147
|
+
# @return [Google::Apis::ContentV2sandbox::OrderPaymentMethod]
|
148
|
+
attr_accessor :payment_method
|
149
|
+
|
150
|
+
# The status of the payment.
|
151
|
+
# Corresponds to the JSON property `paymentStatus`
|
152
|
+
# @return [String]
|
153
|
+
attr_accessor :payment_status
|
154
|
+
|
155
|
+
# The date when the order was placed, in ISO 8601 format.
|
156
|
+
# Corresponds to the JSON property `placedDate`
|
157
|
+
# @return [String]
|
158
|
+
attr_accessor :placed_date
|
159
|
+
|
160
|
+
# The details of the merchant provided promotions applied to the order. More
|
161
|
+
# details about the program are here.
|
162
|
+
# Corresponds to the JSON property `promotions`
|
163
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderPromotion>]
|
164
|
+
attr_accessor :promotions
|
165
|
+
|
166
|
+
# Refunds for the order.
|
167
|
+
# Corresponds to the JSON property `refunds`
|
168
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderRefund>]
|
169
|
+
attr_accessor :refunds
|
170
|
+
|
171
|
+
# Shipments of the order.
|
172
|
+
# Corresponds to the JSON property `shipments`
|
173
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderShipment>]
|
174
|
+
attr_accessor :shipments
|
175
|
+
|
176
|
+
# The total cost of shipping for all items.
|
177
|
+
# Corresponds to the JSON property `shippingCost`
|
178
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
179
|
+
attr_accessor :shipping_cost
|
180
|
+
|
181
|
+
# The tax for the total shipping cost.
|
182
|
+
# Corresponds to the JSON property `shippingCostTax`
|
183
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
184
|
+
attr_accessor :shipping_cost_tax
|
185
|
+
|
186
|
+
# The requested shipping option.
|
187
|
+
# Corresponds to the JSON property `shippingOption`
|
188
|
+
# @return [String]
|
189
|
+
attr_accessor :shipping_option
|
190
|
+
|
191
|
+
# The status of the order.
|
192
|
+
# Corresponds to the JSON property `status`
|
193
|
+
# @return [String]
|
194
|
+
attr_accessor :status
|
195
|
+
|
196
|
+
def initialize(**args)
|
197
|
+
update!(**args)
|
198
|
+
end
|
199
|
+
|
200
|
+
# Update properties of this object
|
201
|
+
def update!(**args)
|
202
|
+
@acknowledged = args[:acknowledged] if args.key?(:acknowledged)
|
203
|
+
@channel_type = args[:channel_type] if args.key?(:channel_type)
|
204
|
+
@customer = args[:customer] if args.key?(:customer)
|
205
|
+
@delivery_details = args[:delivery_details] if args.key?(:delivery_details)
|
206
|
+
@id = args[:id] if args.key?(:id)
|
207
|
+
@kind = args[:kind] if args.key?(:kind)
|
208
|
+
@line_items = args[:line_items] if args.key?(:line_items)
|
209
|
+
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
210
|
+
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
211
|
+
@net_amount = args[:net_amount] if args.key?(:net_amount)
|
212
|
+
@payment_method = args[:payment_method] if args.key?(:payment_method)
|
213
|
+
@payment_status = args[:payment_status] if args.key?(:payment_status)
|
214
|
+
@placed_date = args[:placed_date] if args.key?(:placed_date)
|
215
|
+
@promotions = args[:promotions] if args.key?(:promotions)
|
216
|
+
@refunds = args[:refunds] if args.key?(:refunds)
|
217
|
+
@shipments = args[:shipments] if args.key?(:shipments)
|
218
|
+
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
|
219
|
+
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
|
220
|
+
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
|
221
|
+
@status = args[:status] if args.key?(:status)
|
222
|
+
end
|
223
|
+
end
|
224
|
+
|
225
|
+
#
|
226
|
+
class OrderAddress
|
227
|
+
include Google::Apis::Core::Hashable
|
228
|
+
|
229
|
+
# CLDR country code (e.g. "US").
|
230
|
+
# Corresponds to the JSON property `country`
|
231
|
+
# @return [String]
|
232
|
+
attr_accessor :country
|
233
|
+
|
234
|
+
# Strings representing the lines of the printed label for mailing the order, for
|
235
|
+
# example:
|
236
|
+
# John Smith
|
237
|
+
# 1600 Amphitheatre Parkway
|
238
|
+
# Mountain View, CA, 94043
|
239
|
+
# United States
|
240
|
+
# Corresponds to the JSON property `fullAddress`
|
241
|
+
# @return [Array<String>]
|
242
|
+
attr_accessor :full_address
|
243
|
+
|
244
|
+
# Whether the address is a post office box.
|
245
|
+
# Corresponds to the JSON property `isPostOfficeBox`
|
246
|
+
# @return [Boolean]
|
247
|
+
attr_accessor :is_post_office_box
|
248
|
+
alias_method :is_post_office_box?, :is_post_office_box
|
249
|
+
|
250
|
+
# City, town or commune. May also include dependent localities or sublocalities (
|
251
|
+
# e.g. neighborhoods or suburbs).
|
252
|
+
# Corresponds to the JSON property `locality`
|
253
|
+
# @return [String]
|
254
|
+
attr_accessor :locality
|
255
|
+
|
256
|
+
# Postal Code or ZIP (e.g. "94043").
|
257
|
+
# Corresponds to the JSON property `postalCode`
|
258
|
+
# @return [String]
|
259
|
+
attr_accessor :postal_code
|
260
|
+
|
261
|
+
# Name of the recipient.
|
262
|
+
# Corresponds to the JSON property `recipientName`
|
263
|
+
# @return [String]
|
264
|
+
attr_accessor :recipient_name
|
265
|
+
|
266
|
+
# Top-level administrative subdivision of the country (e.g. "CA").
|
267
|
+
# Corresponds to the JSON property `region`
|
268
|
+
# @return [String]
|
269
|
+
attr_accessor :region
|
270
|
+
|
271
|
+
# Street-level part of the address.
|
272
|
+
# Corresponds to the JSON property `streetAddress`
|
273
|
+
# @return [Array<String>]
|
274
|
+
attr_accessor :street_address
|
275
|
+
|
276
|
+
def initialize(**args)
|
277
|
+
update!(**args)
|
278
|
+
end
|
279
|
+
|
280
|
+
# Update properties of this object
|
281
|
+
def update!(**args)
|
282
|
+
@country = args[:country] if args.key?(:country)
|
283
|
+
@full_address = args[:full_address] if args.key?(:full_address)
|
284
|
+
@is_post_office_box = args[:is_post_office_box] if args.key?(:is_post_office_box)
|
285
|
+
@locality = args[:locality] if args.key?(:locality)
|
286
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
287
|
+
@recipient_name = args[:recipient_name] if args.key?(:recipient_name)
|
288
|
+
@region = args[:region] if args.key?(:region)
|
289
|
+
@street_address = args[:street_address] if args.key?(:street_address)
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
#
|
294
|
+
class OrderCancellation
|
295
|
+
include Google::Apis::Core::Hashable
|
296
|
+
|
297
|
+
# The actor that created the cancellation.
|
298
|
+
# Corresponds to the JSON property `actor`
|
299
|
+
# @return [String]
|
300
|
+
attr_accessor :actor
|
301
|
+
|
302
|
+
# Date on which the cancellation has been created, in ISO 8601 format.
|
303
|
+
# Corresponds to the JSON property `creationDate`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :creation_date
|
306
|
+
|
307
|
+
# The quantity that was canceled.
|
308
|
+
# Corresponds to the JSON property `quantity`
|
309
|
+
# @return [Fixnum]
|
310
|
+
attr_accessor :quantity
|
311
|
+
|
312
|
+
# The reason for the cancellation. Orders that are cancelled with a noInventory
|
313
|
+
# reason will lead to the removal of the product from POG until you make an
|
314
|
+
# update to that product. This will not affect your Shopping ads.
|
315
|
+
# Corresponds to the JSON property `reason`
|
316
|
+
# @return [String]
|
317
|
+
attr_accessor :reason
|
318
|
+
|
319
|
+
# The explanation of the reason.
|
320
|
+
# Corresponds to the JSON property `reasonText`
|
321
|
+
# @return [String]
|
322
|
+
attr_accessor :reason_text
|
323
|
+
|
324
|
+
def initialize(**args)
|
325
|
+
update!(**args)
|
326
|
+
end
|
327
|
+
|
328
|
+
# Update properties of this object
|
329
|
+
def update!(**args)
|
330
|
+
@actor = args[:actor] if args.key?(:actor)
|
331
|
+
@creation_date = args[:creation_date] if args.key?(:creation_date)
|
332
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
333
|
+
@reason = args[:reason] if args.key?(:reason)
|
334
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
338
|
+
#
|
339
|
+
class OrderCustomer
|
340
|
+
include Google::Apis::Core::Hashable
|
341
|
+
|
342
|
+
# Email address of the customer.
|
343
|
+
# Corresponds to the JSON property `email`
|
344
|
+
# @return [String]
|
345
|
+
attr_accessor :email
|
346
|
+
|
347
|
+
# If set, this indicates the user explicitly chose to opt in or out of providing
|
348
|
+
# marketing rights to the merchant. If unset, this indicates the user has
|
349
|
+
# already made this choice in a previous purchase, and was thus not shown the
|
350
|
+
# marketing right opt in/out checkbox during the checkout flow.
|
351
|
+
# Corresponds to the JSON property `explicitMarketingPreference`
|
352
|
+
# @return [Boolean]
|
353
|
+
attr_accessor :explicit_marketing_preference
|
354
|
+
alias_method :explicit_marketing_preference?, :explicit_marketing_preference
|
355
|
+
|
356
|
+
# Full name of the customer.
|
357
|
+
# Corresponds to the JSON property `fullName`
|
358
|
+
# @return [String]
|
359
|
+
attr_accessor :full_name
|
360
|
+
|
361
|
+
def initialize(**args)
|
362
|
+
update!(**args)
|
363
|
+
end
|
364
|
+
|
365
|
+
# Update properties of this object
|
366
|
+
def update!(**args)
|
367
|
+
@email = args[:email] if args.key?(:email)
|
368
|
+
@explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
|
369
|
+
@full_name = args[:full_name] if args.key?(:full_name)
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
#
|
374
|
+
class OrderDeliveryDetails
|
375
|
+
include Google::Apis::Core::Hashable
|
376
|
+
|
377
|
+
# The delivery address
|
378
|
+
# Corresponds to the JSON property `address`
|
379
|
+
# @return [Google::Apis::ContentV2sandbox::OrderAddress]
|
380
|
+
attr_accessor :address
|
381
|
+
|
382
|
+
# The phone number of the person receiving the delivery.
|
383
|
+
# Corresponds to the JSON property `phoneNumber`
|
384
|
+
# @return [String]
|
385
|
+
attr_accessor :phone_number
|
386
|
+
|
387
|
+
def initialize(**args)
|
388
|
+
update!(**args)
|
389
|
+
end
|
390
|
+
|
391
|
+
# Update properties of this object
|
392
|
+
def update!(**args)
|
393
|
+
@address = args[:address] if args.key?(:address)
|
394
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
#
|
399
|
+
class OrderLineItem
|
400
|
+
include Google::Apis::Core::Hashable
|
401
|
+
|
402
|
+
# Cancellations of the line item.
|
403
|
+
# Corresponds to the JSON property `cancellations`
|
404
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderCancellation>]
|
405
|
+
attr_accessor :cancellations
|
406
|
+
|
407
|
+
# The id of the line item.
|
408
|
+
# Corresponds to the JSON property `id`
|
409
|
+
# @return [String]
|
410
|
+
attr_accessor :id
|
411
|
+
|
412
|
+
# Total price for the line item. For example, if two items for $10 are purchased,
|
413
|
+
# the total price will be $20.
|
414
|
+
# Corresponds to the JSON property `price`
|
415
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
416
|
+
attr_accessor :price
|
417
|
+
|
418
|
+
# Product data from the time of the order placement.
|
419
|
+
# Corresponds to the JSON property `product`
|
420
|
+
# @return [Google::Apis::ContentV2sandbox::OrderLineItemProduct]
|
421
|
+
attr_accessor :product
|
422
|
+
|
423
|
+
# Number of items canceled.
|
424
|
+
# Corresponds to the JSON property `quantityCanceled`
|
425
|
+
# @return [Fixnum]
|
426
|
+
attr_accessor :quantity_canceled
|
427
|
+
|
428
|
+
# Number of items delivered.
|
429
|
+
# Corresponds to the JSON property `quantityDelivered`
|
430
|
+
# @return [Fixnum]
|
431
|
+
attr_accessor :quantity_delivered
|
432
|
+
|
433
|
+
# Number of items ordered.
|
434
|
+
# Corresponds to the JSON property `quantityOrdered`
|
435
|
+
# @return [Fixnum]
|
436
|
+
attr_accessor :quantity_ordered
|
437
|
+
|
438
|
+
# Number of items pending.
|
439
|
+
# Corresponds to the JSON property `quantityPending`
|
440
|
+
# @return [Fixnum]
|
441
|
+
attr_accessor :quantity_pending
|
442
|
+
|
443
|
+
# Number of items returned.
|
444
|
+
# Corresponds to the JSON property `quantityReturned`
|
445
|
+
# @return [Fixnum]
|
446
|
+
attr_accessor :quantity_returned
|
447
|
+
|
448
|
+
# Number of items shipped.
|
449
|
+
# Corresponds to the JSON property `quantityShipped`
|
450
|
+
# @return [Fixnum]
|
451
|
+
attr_accessor :quantity_shipped
|
452
|
+
|
453
|
+
# Details of the return policy for the line item.
|
454
|
+
# Corresponds to the JSON property `returnInfo`
|
455
|
+
# @return [Google::Apis::ContentV2sandbox::OrderLineItemReturnInfo]
|
456
|
+
attr_accessor :return_info
|
457
|
+
|
458
|
+
# Returns of the line item.
|
459
|
+
# Corresponds to the JSON property `returns`
|
460
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderReturn>]
|
461
|
+
attr_accessor :returns
|
462
|
+
|
463
|
+
# Details of the requested shipping for the line item.
|
464
|
+
# Corresponds to the JSON property `shippingDetails`
|
465
|
+
# @return [Google::Apis::ContentV2sandbox::OrderLineItemShippingDetails]
|
466
|
+
attr_accessor :shipping_details
|
467
|
+
|
468
|
+
# Total tax amount for the line item. For example, if two items are purchased,
|
469
|
+
# and each have a cost tax of $2, the total tax amount will be $4.
|
470
|
+
# Corresponds to the JSON property `tax`
|
471
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
472
|
+
attr_accessor :tax
|
473
|
+
|
474
|
+
def initialize(**args)
|
475
|
+
update!(**args)
|
476
|
+
end
|
477
|
+
|
478
|
+
# Update properties of this object
|
479
|
+
def update!(**args)
|
480
|
+
@cancellations = args[:cancellations] if args.key?(:cancellations)
|
481
|
+
@id = args[:id] if args.key?(:id)
|
482
|
+
@price = args[:price] if args.key?(:price)
|
483
|
+
@product = args[:product] if args.key?(:product)
|
484
|
+
@quantity_canceled = args[:quantity_canceled] if args.key?(:quantity_canceled)
|
485
|
+
@quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered)
|
486
|
+
@quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered)
|
487
|
+
@quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending)
|
488
|
+
@quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned)
|
489
|
+
@quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped)
|
490
|
+
@return_info = args[:return_info] if args.key?(:return_info)
|
491
|
+
@returns = args[:returns] if args.key?(:returns)
|
492
|
+
@shipping_details = args[:shipping_details] if args.key?(:shipping_details)
|
493
|
+
@tax = args[:tax] if args.key?(:tax)
|
494
|
+
end
|
495
|
+
end
|
496
|
+
|
497
|
+
#
|
498
|
+
class OrderLineItemProduct
|
499
|
+
include Google::Apis::Core::Hashable
|
500
|
+
|
501
|
+
# Brand of the item.
|
502
|
+
# Corresponds to the JSON property `brand`
|
503
|
+
# @return [String]
|
504
|
+
attr_accessor :brand
|
505
|
+
|
506
|
+
# The item's channel (online or local).
|
507
|
+
# Corresponds to the JSON property `channel`
|
508
|
+
# @return [String]
|
509
|
+
attr_accessor :channel
|
510
|
+
|
511
|
+
# Condition or state of the item.
|
512
|
+
# Corresponds to the JSON property `condition`
|
513
|
+
# @return [String]
|
514
|
+
attr_accessor :condition
|
515
|
+
|
516
|
+
# The two-letter ISO 639-1 language code for the item.
|
517
|
+
# Corresponds to the JSON property `contentLanguage`
|
518
|
+
# @return [String]
|
519
|
+
attr_accessor :content_language
|
520
|
+
|
521
|
+
# Global Trade Item Number (GTIN) of the item.
|
522
|
+
# Corresponds to the JSON property `gtin`
|
523
|
+
# @return [String]
|
524
|
+
attr_accessor :gtin
|
525
|
+
|
526
|
+
# The REST id of the product.
|
527
|
+
# Corresponds to the JSON property `id`
|
528
|
+
# @return [String]
|
529
|
+
attr_accessor :id
|
530
|
+
|
531
|
+
# URL of an image of the item.
|
532
|
+
# Corresponds to the JSON property `imageLink`
|
533
|
+
# @return [String]
|
534
|
+
attr_accessor :image_link
|
535
|
+
|
536
|
+
# Shared identifier for all variants of the same product.
|
537
|
+
# Corresponds to the JSON property `itemGroupId`
|
538
|
+
# @return [String]
|
539
|
+
attr_accessor :item_group_id
|
540
|
+
|
541
|
+
# Manufacturer Part Number (MPN) of the item.
|
542
|
+
# Corresponds to the JSON property `mpn`
|
543
|
+
# @return [String]
|
544
|
+
attr_accessor :mpn
|
545
|
+
|
546
|
+
# An identifier of the item.
|
547
|
+
# Corresponds to the JSON property `offerId`
|
548
|
+
# @return [String]
|
549
|
+
attr_accessor :offer_id
|
550
|
+
|
551
|
+
# Price of the item.
|
552
|
+
# Corresponds to the JSON property `price`
|
553
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
554
|
+
attr_accessor :price
|
555
|
+
|
556
|
+
# URL to the cached image shown to the user when order was placed.
|
557
|
+
# Corresponds to the JSON property `shownImage`
|
558
|
+
# @return [String]
|
559
|
+
attr_accessor :shown_image
|
560
|
+
|
561
|
+
# The CLDR territory code of the target country of the product.
|
562
|
+
# Corresponds to the JSON property `targetCountry`
|
563
|
+
# @return [String]
|
564
|
+
attr_accessor :target_country
|
565
|
+
|
566
|
+
# The title of the product.
|
567
|
+
# Corresponds to the JSON property `title`
|
568
|
+
# @return [String]
|
569
|
+
attr_accessor :title
|
570
|
+
|
571
|
+
# Variant attributes for the item. These are dimensions of the product, such as
|
572
|
+
# color, gender, material, pattern, and size. You can find a comprehensive list
|
573
|
+
# of variant attributes here.
|
574
|
+
# Corresponds to the JSON property `variantAttributes`
|
575
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderLineItemProductVariantAttribute>]
|
576
|
+
attr_accessor :variant_attributes
|
577
|
+
|
578
|
+
def initialize(**args)
|
579
|
+
update!(**args)
|
580
|
+
end
|
581
|
+
|
582
|
+
# Update properties of this object
|
583
|
+
def update!(**args)
|
584
|
+
@brand = args[:brand] if args.key?(:brand)
|
585
|
+
@channel = args[:channel] if args.key?(:channel)
|
586
|
+
@condition = args[:condition] if args.key?(:condition)
|
587
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
588
|
+
@gtin = args[:gtin] if args.key?(:gtin)
|
589
|
+
@id = args[:id] if args.key?(:id)
|
590
|
+
@image_link = args[:image_link] if args.key?(:image_link)
|
591
|
+
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
|
592
|
+
@mpn = args[:mpn] if args.key?(:mpn)
|
593
|
+
@offer_id = args[:offer_id] if args.key?(:offer_id)
|
594
|
+
@price = args[:price] if args.key?(:price)
|
595
|
+
@shown_image = args[:shown_image] if args.key?(:shown_image)
|
596
|
+
@target_country = args[:target_country] if args.key?(:target_country)
|
597
|
+
@title = args[:title] if args.key?(:title)
|
598
|
+
@variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
|
599
|
+
end
|
600
|
+
end
|
601
|
+
|
602
|
+
#
|
603
|
+
class OrderLineItemProductVariantAttribute
|
604
|
+
include Google::Apis::Core::Hashable
|
605
|
+
|
606
|
+
# The dimension of the variant.
|
607
|
+
# Corresponds to the JSON property `dimension`
|
608
|
+
# @return [String]
|
609
|
+
attr_accessor :dimension
|
610
|
+
|
611
|
+
# The value for the dimension.
|
612
|
+
# Corresponds to the JSON property `value`
|
613
|
+
# @return [String]
|
614
|
+
attr_accessor :value
|
615
|
+
|
616
|
+
def initialize(**args)
|
617
|
+
update!(**args)
|
618
|
+
end
|
619
|
+
|
620
|
+
# Update properties of this object
|
621
|
+
def update!(**args)
|
622
|
+
@dimension = args[:dimension] if args.key?(:dimension)
|
623
|
+
@value = args[:value] if args.key?(:value)
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
#
|
628
|
+
class OrderLineItemReturnInfo
|
629
|
+
include Google::Apis::Core::Hashable
|
630
|
+
|
631
|
+
# How many days later the item can be returned.
|
632
|
+
# Corresponds to the JSON property `daysToReturn`
|
633
|
+
# @return [Fixnum]
|
634
|
+
attr_accessor :days_to_return
|
635
|
+
|
636
|
+
# Whether the item is returnable.
|
637
|
+
# Corresponds to the JSON property `isReturnable`
|
638
|
+
# @return [Boolean]
|
639
|
+
attr_accessor :is_returnable
|
640
|
+
alias_method :is_returnable?, :is_returnable
|
641
|
+
|
642
|
+
# URL of the item return policy.
|
643
|
+
# Corresponds to the JSON property `policyUrl`
|
644
|
+
# @return [String]
|
645
|
+
attr_accessor :policy_url
|
646
|
+
|
647
|
+
def initialize(**args)
|
648
|
+
update!(**args)
|
649
|
+
end
|
650
|
+
|
651
|
+
# Update properties of this object
|
652
|
+
def update!(**args)
|
653
|
+
@days_to_return = args[:days_to_return] if args.key?(:days_to_return)
|
654
|
+
@is_returnable = args[:is_returnable] if args.key?(:is_returnable)
|
655
|
+
@policy_url = args[:policy_url] if args.key?(:policy_url)
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
659
|
+
#
|
660
|
+
class OrderLineItemShippingDetails
|
661
|
+
include Google::Apis::Core::Hashable
|
662
|
+
|
663
|
+
# The delivery by date, in ISO 8601 format.
|
664
|
+
# Corresponds to the JSON property `deliverByDate`
|
665
|
+
# @return [String]
|
666
|
+
attr_accessor :deliver_by_date
|
667
|
+
|
668
|
+
# Details of the shipping method.
|
669
|
+
# Corresponds to the JSON property `method`
|
670
|
+
# @return [Google::Apis::ContentV2sandbox::OrderLineItemShippingDetailsMethod]
|
671
|
+
attr_accessor :method_prop
|
672
|
+
|
673
|
+
# The ship by date, in ISO 8601 format.
|
674
|
+
# Corresponds to the JSON property `shipByDate`
|
675
|
+
# @return [String]
|
676
|
+
attr_accessor :ship_by_date
|
677
|
+
|
678
|
+
def initialize(**args)
|
679
|
+
update!(**args)
|
680
|
+
end
|
681
|
+
|
682
|
+
# Update properties of this object
|
683
|
+
def update!(**args)
|
684
|
+
@deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date)
|
685
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
686
|
+
@ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date)
|
687
|
+
end
|
688
|
+
end
|
689
|
+
|
690
|
+
#
|
691
|
+
class OrderLineItemShippingDetailsMethod
|
692
|
+
include Google::Apis::Core::Hashable
|
693
|
+
|
694
|
+
# The carrier for the shipping. Optional.
|
695
|
+
# Corresponds to the JSON property `carrier`
|
696
|
+
# @return [String]
|
697
|
+
attr_accessor :carrier
|
698
|
+
|
699
|
+
# Maximum transit time.
|
700
|
+
# Corresponds to the JSON property `maxDaysInTransit`
|
701
|
+
# @return [Fixnum]
|
702
|
+
attr_accessor :max_days_in_transit
|
703
|
+
|
704
|
+
# The name of the shipping method.
|
705
|
+
# Corresponds to the JSON property `methodName`
|
706
|
+
# @return [String]
|
707
|
+
attr_accessor :method_name
|
708
|
+
|
709
|
+
# Minimum transit time.
|
710
|
+
# Corresponds to the JSON property `minDaysInTransit`
|
711
|
+
# @return [Fixnum]
|
712
|
+
attr_accessor :min_days_in_transit
|
713
|
+
|
714
|
+
def initialize(**args)
|
715
|
+
update!(**args)
|
716
|
+
end
|
717
|
+
|
718
|
+
# Update properties of this object
|
719
|
+
def update!(**args)
|
720
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
721
|
+
@max_days_in_transit = args[:max_days_in_transit] if args.key?(:max_days_in_transit)
|
722
|
+
@method_name = args[:method_name] if args.key?(:method_name)
|
723
|
+
@min_days_in_transit = args[:min_days_in_transit] if args.key?(:min_days_in_transit)
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
#
|
728
|
+
class OrderPaymentMethod
|
729
|
+
include Google::Apis::Core::Hashable
|
730
|
+
|
731
|
+
# The billing address.
|
732
|
+
# Corresponds to the JSON property `billingAddress`
|
733
|
+
# @return [Google::Apis::ContentV2sandbox::OrderAddress]
|
734
|
+
attr_accessor :billing_address
|
735
|
+
|
736
|
+
# The card expiration month (January = 1, February = 2 etc.).
|
737
|
+
# Corresponds to the JSON property `expirationMonth`
|
738
|
+
# @return [Fixnum]
|
739
|
+
attr_accessor :expiration_month
|
740
|
+
|
741
|
+
# The card expiration year (4-digit, e.g. 2015).
|
742
|
+
# Corresponds to the JSON property `expirationYear`
|
743
|
+
# @return [Fixnum]
|
744
|
+
attr_accessor :expiration_year
|
745
|
+
|
746
|
+
# The last four digits of the card number.
|
747
|
+
# Corresponds to the JSON property `lastFourDigits`
|
748
|
+
# @return [String]
|
749
|
+
attr_accessor :last_four_digits
|
750
|
+
|
751
|
+
# The billing phone number.
|
752
|
+
# Corresponds to the JSON property `phoneNumber`
|
753
|
+
# @return [String]
|
754
|
+
attr_accessor :phone_number
|
755
|
+
|
756
|
+
# The type of instrument (VISA, Mastercard, etc).
|
757
|
+
# Corresponds to the JSON property `type`
|
758
|
+
# @return [String]
|
759
|
+
attr_accessor :type
|
760
|
+
|
761
|
+
def initialize(**args)
|
762
|
+
update!(**args)
|
763
|
+
end
|
764
|
+
|
765
|
+
# Update properties of this object
|
766
|
+
def update!(**args)
|
767
|
+
@billing_address = args[:billing_address] if args.key?(:billing_address)
|
768
|
+
@expiration_month = args[:expiration_month] if args.key?(:expiration_month)
|
769
|
+
@expiration_year = args[:expiration_year] if args.key?(:expiration_year)
|
770
|
+
@last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits)
|
771
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
772
|
+
@type = args[:type] if args.key?(:type)
|
773
|
+
end
|
774
|
+
end
|
775
|
+
|
776
|
+
#
|
777
|
+
class OrderPromotion
|
778
|
+
include Google::Apis::Core::Hashable
|
779
|
+
|
780
|
+
#
|
781
|
+
# Corresponds to the JSON property `benefits`
|
782
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderPromotionBenefit>]
|
783
|
+
attr_accessor :benefits
|
784
|
+
|
785
|
+
# The date and time frame when the promotion is active and ready for validation
|
786
|
+
# review. Note that the promotion live time may be delayed for a few hours due
|
787
|
+
# to the validation review.
|
788
|
+
# Start date and end date are separated by a forward slash (/). The start date
|
789
|
+
# is specified by the format (YYYY-MM-DD), followed by the letter ?T?, the time
|
790
|
+
# of the day when the sale starts (in Greenwich Mean Time, GMT), followed by an
|
791
|
+
# expression of the time zone for the sale. The end date is in the same format.
|
792
|
+
# Corresponds to the JSON property `effectiveDates`
|
793
|
+
# @return [String]
|
794
|
+
attr_accessor :effective_dates
|
795
|
+
|
796
|
+
# Optional. The text code that corresponds to the promotion when applied on the
|
797
|
+
# retailer?s website.
|
798
|
+
# Corresponds to the JSON property `genericRedemptionCode`
|
799
|
+
# @return [String]
|
800
|
+
attr_accessor :generic_redemption_code
|
801
|
+
|
802
|
+
# The unique ID of the promotion.
|
803
|
+
# Corresponds to the JSON property `id`
|
804
|
+
# @return [String]
|
805
|
+
attr_accessor :id
|
806
|
+
|
807
|
+
# The full title of the promotion.
|
808
|
+
# Corresponds to the JSON property `longTitle`
|
809
|
+
# @return [String]
|
810
|
+
attr_accessor :long_title
|
811
|
+
|
812
|
+
# Whether the promotion is applicable to all products or only specific products.
|
813
|
+
# Corresponds to the JSON property `productApplicability`
|
814
|
+
# @return [String]
|
815
|
+
attr_accessor :product_applicability
|
816
|
+
|
817
|
+
# Indicates that the promotion is valid online.
|
818
|
+
# Corresponds to the JSON property `redemptionChannel`
|
819
|
+
# @return [String]
|
820
|
+
attr_accessor :redemption_channel
|
821
|
+
|
822
|
+
def initialize(**args)
|
823
|
+
update!(**args)
|
824
|
+
end
|
825
|
+
|
826
|
+
# Update properties of this object
|
827
|
+
def update!(**args)
|
828
|
+
@benefits = args[:benefits] if args.key?(:benefits)
|
829
|
+
@effective_dates = args[:effective_dates] if args.key?(:effective_dates)
|
830
|
+
@generic_redemption_code = args[:generic_redemption_code] if args.key?(:generic_redemption_code)
|
831
|
+
@id = args[:id] if args.key?(:id)
|
832
|
+
@long_title = args[:long_title] if args.key?(:long_title)
|
833
|
+
@product_applicability = args[:product_applicability] if args.key?(:product_applicability)
|
834
|
+
@redemption_channel = args[:redemption_channel] if args.key?(:redemption_channel)
|
835
|
+
end
|
836
|
+
end
|
837
|
+
|
838
|
+
#
|
839
|
+
class OrderPromotionBenefit
|
840
|
+
include Google::Apis::Core::Hashable
|
841
|
+
|
842
|
+
# The discount in the order price when the promotion is applied.
|
843
|
+
# Corresponds to the JSON property `discount`
|
844
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
845
|
+
attr_accessor :discount
|
846
|
+
|
847
|
+
# The OfferId(s) that were purchased in this order and map to this specific
|
848
|
+
# benefit of the promotion.
|
849
|
+
# Corresponds to the JSON property `offerIds`
|
850
|
+
# @return [Array<String>]
|
851
|
+
attr_accessor :offer_ids
|
852
|
+
|
853
|
+
# Further describes the benefit of the promotion. Note that we will expand on
|
854
|
+
# this enumeration as we support new promotion sub-types.
|
855
|
+
# Corresponds to the JSON property `subType`
|
856
|
+
# @return [String]
|
857
|
+
attr_accessor :sub_type
|
858
|
+
|
859
|
+
# The impact on tax when the promotion is applied.
|
860
|
+
# Corresponds to the JSON property `taxImpact`
|
861
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
862
|
+
attr_accessor :tax_impact
|
863
|
+
|
864
|
+
# Describes whether the promotion applies to products (e.g. 20% off) or to
|
865
|
+
# shipping (e.g. Free Shipping).
|
866
|
+
# Corresponds to the JSON property `type`
|
867
|
+
# @return [String]
|
868
|
+
attr_accessor :type
|
869
|
+
|
870
|
+
def initialize(**args)
|
871
|
+
update!(**args)
|
872
|
+
end
|
873
|
+
|
874
|
+
# Update properties of this object
|
875
|
+
def update!(**args)
|
876
|
+
@discount = args[:discount] if args.key?(:discount)
|
877
|
+
@offer_ids = args[:offer_ids] if args.key?(:offer_ids)
|
878
|
+
@sub_type = args[:sub_type] if args.key?(:sub_type)
|
879
|
+
@tax_impact = args[:tax_impact] if args.key?(:tax_impact)
|
880
|
+
@type = args[:type] if args.key?(:type)
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
884
|
+
#
|
885
|
+
class OrderRefund
|
886
|
+
include Google::Apis::Core::Hashable
|
887
|
+
|
888
|
+
# The actor that created the refund.
|
889
|
+
# Corresponds to the JSON property `actor`
|
890
|
+
# @return [String]
|
891
|
+
attr_accessor :actor
|
892
|
+
|
893
|
+
# The amount that is refunded.
|
894
|
+
# Corresponds to the JSON property `amount`
|
895
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
896
|
+
attr_accessor :amount
|
897
|
+
|
898
|
+
# Date on which the item has been created, in ISO 8601 format.
|
899
|
+
# Corresponds to the JSON property `creationDate`
|
900
|
+
# @return [String]
|
901
|
+
attr_accessor :creation_date
|
902
|
+
|
903
|
+
# The reason for the refund.
|
904
|
+
# Corresponds to the JSON property `reason`
|
905
|
+
# @return [String]
|
906
|
+
attr_accessor :reason
|
907
|
+
|
908
|
+
# The explanation of the reason.
|
909
|
+
# Corresponds to the JSON property `reasonText`
|
910
|
+
# @return [String]
|
911
|
+
attr_accessor :reason_text
|
912
|
+
|
913
|
+
def initialize(**args)
|
914
|
+
update!(**args)
|
915
|
+
end
|
916
|
+
|
917
|
+
# Update properties of this object
|
918
|
+
def update!(**args)
|
919
|
+
@actor = args[:actor] if args.key?(:actor)
|
920
|
+
@amount = args[:amount] if args.key?(:amount)
|
921
|
+
@creation_date = args[:creation_date] if args.key?(:creation_date)
|
922
|
+
@reason = args[:reason] if args.key?(:reason)
|
923
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
924
|
+
end
|
925
|
+
end
|
926
|
+
|
927
|
+
#
|
928
|
+
class OrderReturn
|
929
|
+
include Google::Apis::Core::Hashable
|
930
|
+
|
931
|
+
# The actor that created the refund.
|
932
|
+
# Corresponds to the JSON property `actor`
|
933
|
+
# @return [String]
|
934
|
+
attr_accessor :actor
|
935
|
+
|
936
|
+
# Date on which the item has been created, in ISO 8601 format.
|
937
|
+
# Corresponds to the JSON property `creationDate`
|
938
|
+
# @return [String]
|
939
|
+
attr_accessor :creation_date
|
940
|
+
|
941
|
+
# Quantity that is returned.
|
942
|
+
# Corresponds to the JSON property `quantity`
|
943
|
+
# @return [Fixnum]
|
944
|
+
attr_accessor :quantity
|
945
|
+
|
946
|
+
# The reason for the return.
|
947
|
+
# Corresponds to the JSON property `reason`
|
948
|
+
# @return [String]
|
949
|
+
attr_accessor :reason
|
950
|
+
|
951
|
+
# The explanation of the reason.
|
952
|
+
# Corresponds to the JSON property `reasonText`
|
953
|
+
# @return [String]
|
954
|
+
attr_accessor :reason_text
|
955
|
+
|
956
|
+
def initialize(**args)
|
957
|
+
update!(**args)
|
958
|
+
end
|
959
|
+
|
960
|
+
# Update properties of this object
|
961
|
+
def update!(**args)
|
962
|
+
@actor = args[:actor] if args.key?(:actor)
|
963
|
+
@creation_date = args[:creation_date] if args.key?(:creation_date)
|
964
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
965
|
+
@reason = args[:reason] if args.key?(:reason)
|
966
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
967
|
+
end
|
968
|
+
end
|
969
|
+
|
970
|
+
#
|
971
|
+
class OrderShipment
|
972
|
+
include Google::Apis::Core::Hashable
|
973
|
+
|
974
|
+
# The carrier handling the shipment.
|
975
|
+
# Corresponds to the JSON property `carrier`
|
976
|
+
# @return [String]
|
977
|
+
attr_accessor :carrier
|
978
|
+
|
979
|
+
# Date on which the shipment has been created, in ISO 8601 format.
|
980
|
+
# Corresponds to the JSON property `creationDate`
|
981
|
+
# @return [String]
|
982
|
+
attr_accessor :creation_date
|
983
|
+
|
984
|
+
# Date on which the shipment has been delivered, in ISO 8601 format. Present
|
985
|
+
# only if status is delievered
|
986
|
+
# Corresponds to the JSON property `deliveryDate`
|
987
|
+
# @return [String]
|
988
|
+
attr_accessor :delivery_date
|
989
|
+
|
990
|
+
# The id of the shipment.
|
991
|
+
# Corresponds to the JSON property `id`
|
992
|
+
# @return [String]
|
993
|
+
attr_accessor :id
|
994
|
+
|
995
|
+
# The line items that are shipped.
|
996
|
+
# Corresponds to the JSON property `lineItems`
|
997
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>]
|
998
|
+
attr_accessor :line_items
|
999
|
+
|
1000
|
+
# The status of the shipment.
|
1001
|
+
# Corresponds to the JSON property `status`
|
1002
|
+
# @return [String]
|
1003
|
+
attr_accessor :status
|
1004
|
+
|
1005
|
+
# The tracking id for the shipment.
|
1006
|
+
# Corresponds to the JSON property `trackingId`
|
1007
|
+
# @return [String]
|
1008
|
+
attr_accessor :tracking_id
|
1009
|
+
|
1010
|
+
def initialize(**args)
|
1011
|
+
update!(**args)
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# Update properties of this object
|
1015
|
+
def update!(**args)
|
1016
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
1017
|
+
@creation_date = args[:creation_date] if args.key?(:creation_date)
|
1018
|
+
@delivery_date = args[:delivery_date] if args.key?(:delivery_date)
|
1019
|
+
@id = args[:id] if args.key?(:id)
|
1020
|
+
@line_items = args[:line_items] if args.key?(:line_items)
|
1021
|
+
@status = args[:status] if args.key?(:status)
|
1022
|
+
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
1023
|
+
end
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
#
|
1027
|
+
class OrderShipmentLineItemShipment
|
1028
|
+
include Google::Apis::Core::Hashable
|
1029
|
+
|
1030
|
+
# The id of the line item that is shipped.
|
1031
|
+
# Corresponds to the JSON property `lineItemId`
|
1032
|
+
# @return [String]
|
1033
|
+
attr_accessor :line_item_id
|
1034
|
+
|
1035
|
+
# The quantity that is shipped.
|
1036
|
+
# Corresponds to the JSON property `quantity`
|
1037
|
+
# @return [Fixnum]
|
1038
|
+
attr_accessor :quantity
|
1039
|
+
|
1040
|
+
def initialize(**args)
|
1041
|
+
update!(**args)
|
1042
|
+
end
|
1043
|
+
|
1044
|
+
# Update properties of this object
|
1045
|
+
def update!(**args)
|
1046
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1047
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1048
|
+
end
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
#
|
1052
|
+
class OrdersAcknowledgeRequest
|
1053
|
+
include Google::Apis::Core::Hashable
|
1054
|
+
|
1055
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1056
|
+
# Corresponds to the JSON property `operationId`
|
1057
|
+
# @return [String]
|
1058
|
+
attr_accessor :operation_id
|
1059
|
+
|
1060
|
+
def initialize(**args)
|
1061
|
+
update!(**args)
|
1062
|
+
end
|
1063
|
+
|
1064
|
+
# Update properties of this object
|
1065
|
+
def update!(**args)
|
1066
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1067
|
+
end
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
#
|
1071
|
+
class OrdersAcknowledgeResponse
|
1072
|
+
include Google::Apis::Core::Hashable
|
1073
|
+
|
1074
|
+
# The status of the execution.
|
1075
|
+
# Corresponds to the JSON property `executionStatus`
|
1076
|
+
# @return [String]
|
1077
|
+
attr_accessor :execution_status
|
1078
|
+
|
1079
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1080
|
+
# ordersAcknowledgeResponse".
|
1081
|
+
# Corresponds to the JSON property `kind`
|
1082
|
+
# @return [String]
|
1083
|
+
attr_accessor :kind
|
1084
|
+
|
1085
|
+
def initialize(**args)
|
1086
|
+
update!(**args)
|
1087
|
+
end
|
1088
|
+
|
1089
|
+
# Update properties of this object
|
1090
|
+
def update!(**args)
|
1091
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1092
|
+
@kind = args[:kind] if args.key?(:kind)
|
1093
|
+
end
|
1094
|
+
end
|
1095
|
+
|
1096
|
+
#
|
1097
|
+
class OrdersAdvanceTestOrderResponse
|
1098
|
+
include Google::Apis::Core::Hashable
|
1099
|
+
|
1100
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1101
|
+
# ordersAdvanceTestOrderResponse".
|
1102
|
+
# Corresponds to the JSON property `kind`
|
1103
|
+
# @return [String]
|
1104
|
+
attr_accessor :kind
|
1105
|
+
|
1106
|
+
def initialize(**args)
|
1107
|
+
update!(**args)
|
1108
|
+
end
|
1109
|
+
|
1110
|
+
# Update properties of this object
|
1111
|
+
def update!(**args)
|
1112
|
+
@kind = args[:kind] if args.key?(:kind)
|
1113
|
+
end
|
1114
|
+
end
|
1115
|
+
|
1116
|
+
#
|
1117
|
+
class OrdersCancelLineItemRequest
|
1118
|
+
include Google::Apis::Core::Hashable
|
1119
|
+
|
1120
|
+
# Amount to refund for the cancelation. Optional. If not set, Google will
|
1121
|
+
# calculate the default based on the price and tax of the items involved. The
|
1122
|
+
# amount must not be larger than the net amount left on the order.
|
1123
|
+
# Corresponds to the JSON property `amount`
|
1124
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1125
|
+
attr_accessor :amount
|
1126
|
+
|
1127
|
+
# The ID of the line item to cancel.
|
1128
|
+
# Corresponds to the JSON property `lineItemId`
|
1129
|
+
# @return [String]
|
1130
|
+
attr_accessor :line_item_id
|
1131
|
+
|
1132
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1133
|
+
# Corresponds to the JSON property `operationId`
|
1134
|
+
# @return [String]
|
1135
|
+
attr_accessor :operation_id
|
1136
|
+
|
1137
|
+
# The quantity to cancel.
|
1138
|
+
# Corresponds to the JSON property `quantity`
|
1139
|
+
# @return [Fixnum]
|
1140
|
+
attr_accessor :quantity
|
1141
|
+
|
1142
|
+
# The reason for the cancellation.
|
1143
|
+
# Corresponds to the JSON property `reason`
|
1144
|
+
# @return [String]
|
1145
|
+
attr_accessor :reason
|
1146
|
+
|
1147
|
+
# The explanation of the reason.
|
1148
|
+
# Corresponds to the JSON property `reasonText`
|
1149
|
+
# @return [String]
|
1150
|
+
attr_accessor :reason_text
|
1151
|
+
|
1152
|
+
def initialize(**args)
|
1153
|
+
update!(**args)
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
# Update properties of this object
|
1157
|
+
def update!(**args)
|
1158
|
+
@amount = args[:amount] if args.key?(:amount)
|
1159
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1160
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1161
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1162
|
+
@reason = args[:reason] if args.key?(:reason)
|
1163
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1164
|
+
end
|
1165
|
+
end
|
1166
|
+
|
1167
|
+
#
|
1168
|
+
class OrdersCancelLineItemResponse
|
1169
|
+
include Google::Apis::Core::Hashable
|
1170
|
+
|
1171
|
+
# The status of the execution.
|
1172
|
+
# Corresponds to the JSON property `executionStatus`
|
1173
|
+
# @return [String]
|
1174
|
+
attr_accessor :execution_status
|
1175
|
+
|
1176
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1177
|
+
# ordersCancelLineItemResponse".
|
1178
|
+
# Corresponds to the JSON property `kind`
|
1179
|
+
# @return [String]
|
1180
|
+
attr_accessor :kind
|
1181
|
+
|
1182
|
+
def initialize(**args)
|
1183
|
+
update!(**args)
|
1184
|
+
end
|
1185
|
+
|
1186
|
+
# Update properties of this object
|
1187
|
+
def update!(**args)
|
1188
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1189
|
+
@kind = args[:kind] if args.key?(:kind)
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
|
1193
|
+
#
|
1194
|
+
class OrdersCancelRequest
|
1195
|
+
include Google::Apis::Core::Hashable
|
1196
|
+
|
1197
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1198
|
+
# Corresponds to the JSON property `operationId`
|
1199
|
+
# @return [String]
|
1200
|
+
attr_accessor :operation_id
|
1201
|
+
|
1202
|
+
# The reason for the cancellation.
|
1203
|
+
# Corresponds to the JSON property `reason`
|
1204
|
+
# @return [String]
|
1205
|
+
attr_accessor :reason
|
1206
|
+
|
1207
|
+
# The explanation of the reason.
|
1208
|
+
# Corresponds to the JSON property `reasonText`
|
1209
|
+
# @return [String]
|
1210
|
+
attr_accessor :reason_text
|
1211
|
+
|
1212
|
+
def initialize(**args)
|
1213
|
+
update!(**args)
|
1214
|
+
end
|
1215
|
+
|
1216
|
+
# Update properties of this object
|
1217
|
+
def update!(**args)
|
1218
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1219
|
+
@reason = args[:reason] if args.key?(:reason)
|
1220
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1221
|
+
end
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
#
|
1225
|
+
class OrdersCancelResponse
|
1226
|
+
include Google::Apis::Core::Hashable
|
1227
|
+
|
1228
|
+
# The status of the execution.
|
1229
|
+
# Corresponds to the JSON property `executionStatus`
|
1230
|
+
# @return [String]
|
1231
|
+
attr_accessor :execution_status
|
1232
|
+
|
1233
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1234
|
+
# ordersCancelResponse".
|
1235
|
+
# Corresponds to the JSON property `kind`
|
1236
|
+
# @return [String]
|
1237
|
+
attr_accessor :kind
|
1238
|
+
|
1239
|
+
def initialize(**args)
|
1240
|
+
update!(**args)
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
# Update properties of this object
|
1244
|
+
def update!(**args)
|
1245
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1246
|
+
@kind = args[:kind] if args.key?(:kind)
|
1247
|
+
end
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
#
|
1251
|
+
class OrdersCreateTestOrderRequest
|
1252
|
+
include Google::Apis::Core::Hashable
|
1253
|
+
|
1254
|
+
# The test order template to use. Specify as an alternative to testOrder as a
|
1255
|
+
# shortcut for retrieving a template and then creating an order using that
|
1256
|
+
# template.
|
1257
|
+
# Corresponds to the JSON property `templateName`
|
1258
|
+
# @return [String]
|
1259
|
+
attr_accessor :template_name
|
1260
|
+
|
1261
|
+
# The test order to create.
|
1262
|
+
# Corresponds to the JSON property `testOrder`
|
1263
|
+
# @return [Google::Apis::ContentV2sandbox::TestOrder]
|
1264
|
+
attr_accessor :test_order
|
1265
|
+
|
1266
|
+
def initialize(**args)
|
1267
|
+
update!(**args)
|
1268
|
+
end
|
1269
|
+
|
1270
|
+
# Update properties of this object
|
1271
|
+
def update!(**args)
|
1272
|
+
@template_name = args[:template_name] if args.key?(:template_name)
|
1273
|
+
@test_order = args[:test_order] if args.key?(:test_order)
|
1274
|
+
end
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
#
|
1278
|
+
class OrdersCreateTestOrderResponse
|
1279
|
+
include Google::Apis::Core::Hashable
|
1280
|
+
|
1281
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1282
|
+
# ordersCreateTestOrderResponse".
|
1283
|
+
# Corresponds to the JSON property `kind`
|
1284
|
+
# @return [String]
|
1285
|
+
attr_accessor :kind
|
1286
|
+
|
1287
|
+
# The ID of the newly created test order.
|
1288
|
+
# Corresponds to the JSON property `orderId`
|
1289
|
+
# @return [String]
|
1290
|
+
attr_accessor :order_id
|
1291
|
+
|
1292
|
+
def initialize(**args)
|
1293
|
+
update!(**args)
|
1294
|
+
end
|
1295
|
+
|
1296
|
+
# Update properties of this object
|
1297
|
+
def update!(**args)
|
1298
|
+
@kind = args[:kind] if args.key?(:kind)
|
1299
|
+
@order_id = args[:order_id] if args.key?(:order_id)
|
1300
|
+
end
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
#
|
1304
|
+
class OrdersCustomBatchRequest
|
1305
|
+
include Google::Apis::Core::Hashable
|
1306
|
+
|
1307
|
+
# The request entries to be processed in the batch.
|
1308
|
+
# Corresponds to the JSON property `entries`
|
1309
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntry>]
|
1310
|
+
attr_accessor :entries
|
1311
|
+
|
1312
|
+
def initialize(**args)
|
1313
|
+
update!(**args)
|
1314
|
+
end
|
1315
|
+
|
1316
|
+
# Update properties of this object
|
1317
|
+
def update!(**args)
|
1318
|
+
@entries = args[:entries] if args.key?(:entries)
|
1319
|
+
end
|
1320
|
+
end
|
1321
|
+
|
1322
|
+
#
|
1323
|
+
class OrdersCustomBatchRequestEntry
|
1324
|
+
include Google::Apis::Core::Hashable
|
1325
|
+
|
1326
|
+
# An entry ID, unique within the batch request.
|
1327
|
+
# Corresponds to the JSON property `batchId`
|
1328
|
+
# @return [Fixnum]
|
1329
|
+
attr_accessor :batch_id
|
1330
|
+
|
1331
|
+
# Required for cancel method.
|
1332
|
+
# Corresponds to the JSON property `cancel`
|
1333
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancel]
|
1334
|
+
attr_accessor :cancel
|
1335
|
+
|
1336
|
+
# Required for cancelLineItem method.
|
1337
|
+
# Corresponds to the JSON property `cancelLineItem`
|
1338
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem]
|
1339
|
+
attr_accessor :cancel_line_item
|
1340
|
+
|
1341
|
+
# The ID of the managing account.
|
1342
|
+
# Corresponds to the JSON property `merchantId`
|
1343
|
+
# @return [Fixnum]
|
1344
|
+
attr_accessor :merchant_id
|
1345
|
+
|
1346
|
+
# The merchant order id. Required for updateMerchantOrderId and
|
1347
|
+
# getByMerchantOrderId methods.
|
1348
|
+
# Corresponds to the JSON property `merchantOrderId`
|
1349
|
+
# @return [String]
|
1350
|
+
attr_accessor :merchant_order_id
|
1351
|
+
|
1352
|
+
# The method to apply.
|
1353
|
+
# Corresponds to the JSON property `method`
|
1354
|
+
# @return [String]
|
1355
|
+
attr_accessor :method_prop
|
1356
|
+
|
1357
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1358
|
+
# Required for all methods beside get and getByMerchantOrderId.
|
1359
|
+
# Corresponds to the JSON property `operationId`
|
1360
|
+
# @return [String]
|
1361
|
+
attr_accessor :operation_id
|
1362
|
+
|
1363
|
+
# The ID of the order. Required for all methods beside getByMerchantOrderId.
|
1364
|
+
# Corresponds to the JSON property `orderId`
|
1365
|
+
# @return [String]
|
1366
|
+
attr_accessor :order_id
|
1367
|
+
|
1368
|
+
# Required for refund method.
|
1369
|
+
# Corresponds to the JSON property `refund`
|
1370
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund]
|
1371
|
+
attr_accessor :refund
|
1372
|
+
|
1373
|
+
# Required for returnLineItem method.
|
1374
|
+
# Corresponds to the JSON property `returnLineItem`
|
1375
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem]
|
1376
|
+
attr_accessor :return_line_item
|
1377
|
+
|
1378
|
+
# Required for shipLineItems method.
|
1379
|
+
# Corresponds to the JSON property `shipLineItems`
|
1380
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryShipLineItems]
|
1381
|
+
attr_accessor :ship_line_items
|
1382
|
+
|
1383
|
+
# Required for updateShipment method.
|
1384
|
+
# Corresponds to the JSON property `updateShipment`
|
1385
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryUpdateShipment]
|
1386
|
+
attr_accessor :update_shipment
|
1387
|
+
|
1388
|
+
def initialize(**args)
|
1389
|
+
update!(**args)
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
# Update properties of this object
|
1393
|
+
def update!(**args)
|
1394
|
+
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
1395
|
+
@cancel = args[:cancel] if args.key?(:cancel)
|
1396
|
+
@cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item)
|
1397
|
+
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
1398
|
+
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
1399
|
+
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
1400
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1401
|
+
@order_id = args[:order_id] if args.key?(:order_id)
|
1402
|
+
@refund = args[:refund] if args.key?(:refund)
|
1403
|
+
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
|
1404
|
+
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
|
1405
|
+
@update_shipment = args[:update_shipment] if args.key?(:update_shipment)
|
1406
|
+
end
|
1407
|
+
end
|
1408
|
+
|
1409
|
+
#
|
1410
|
+
class OrdersCustomBatchRequestEntryCancel
|
1411
|
+
include Google::Apis::Core::Hashable
|
1412
|
+
|
1413
|
+
# The reason for the cancellation.
|
1414
|
+
# Corresponds to the JSON property `reason`
|
1415
|
+
# @return [String]
|
1416
|
+
attr_accessor :reason
|
1417
|
+
|
1418
|
+
# The explanation of the reason.
|
1419
|
+
# Corresponds to the JSON property `reasonText`
|
1420
|
+
# @return [String]
|
1421
|
+
attr_accessor :reason_text
|
1422
|
+
|
1423
|
+
def initialize(**args)
|
1424
|
+
update!(**args)
|
1425
|
+
end
|
1426
|
+
|
1427
|
+
# Update properties of this object
|
1428
|
+
def update!(**args)
|
1429
|
+
@reason = args[:reason] if args.key?(:reason)
|
1430
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
#
|
1435
|
+
class OrdersCustomBatchRequestEntryCancelLineItem
|
1436
|
+
include Google::Apis::Core::Hashable
|
1437
|
+
|
1438
|
+
# Amount to refund for the cancelation. Optional. If not set, Google will
|
1439
|
+
# calculate the default based on the price and tax of the items involved. The
|
1440
|
+
# amount must not be larger than the net amount left on the order.
|
1441
|
+
# Corresponds to the JSON property `amount`
|
1442
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1443
|
+
attr_accessor :amount
|
1444
|
+
|
1445
|
+
# The ID of the line item to cancel.
|
1446
|
+
# Corresponds to the JSON property `lineItemId`
|
1447
|
+
# @return [String]
|
1448
|
+
attr_accessor :line_item_id
|
1449
|
+
|
1450
|
+
# The quantity to cancel.
|
1451
|
+
# Corresponds to the JSON property `quantity`
|
1452
|
+
# @return [Fixnum]
|
1453
|
+
attr_accessor :quantity
|
1454
|
+
|
1455
|
+
# The reason for the cancellation.
|
1456
|
+
# Corresponds to the JSON property `reason`
|
1457
|
+
# @return [String]
|
1458
|
+
attr_accessor :reason
|
1459
|
+
|
1460
|
+
# The explanation of the reason.
|
1461
|
+
# Corresponds to the JSON property `reasonText`
|
1462
|
+
# @return [String]
|
1463
|
+
attr_accessor :reason_text
|
1464
|
+
|
1465
|
+
def initialize(**args)
|
1466
|
+
update!(**args)
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
# Update properties of this object
|
1470
|
+
def update!(**args)
|
1471
|
+
@amount = args[:amount] if args.key?(:amount)
|
1472
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1473
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1474
|
+
@reason = args[:reason] if args.key?(:reason)
|
1475
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1476
|
+
end
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
#
|
1480
|
+
class OrdersCustomBatchRequestEntryRefund
|
1481
|
+
include Google::Apis::Core::Hashable
|
1482
|
+
|
1483
|
+
# The amount that is refunded.
|
1484
|
+
# Corresponds to the JSON property `amount`
|
1485
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1486
|
+
attr_accessor :amount
|
1487
|
+
|
1488
|
+
# The reason for the refund.
|
1489
|
+
# Corresponds to the JSON property `reason`
|
1490
|
+
# @return [String]
|
1491
|
+
attr_accessor :reason
|
1492
|
+
|
1493
|
+
# The explanation of the reason.
|
1494
|
+
# Corresponds to the JSON property `reasonText`
|
1495
|
+
# @return [String]
|
1496
|
+
attr_accessor :reason_text
|
1497
|
+
|
1498
|
+
def initialize(**args)
|
1499
|
+
update!(**args)
|
1500
|
+
end
|
1501
|
+
|
1502
|
+
# Update properties of this object
|
1503
|
+
def update!(**args)
|
1504
|
+
@amount = args[:amount] if args.key?(:amount)
|
1505
|
+
@reason = args[:reason] if args.key?(:reason)
|
1506
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1507
|
+
end
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
#
|
1511
|
+
class OrdersCustomBatchRequestEntryReturnLineItem
|
1512
|
+
include Google::Apis::Core::Hashable
|
1513
|
+
|
1514
|
+
# The ID of the line item to return.
|
1515
|
+
# Corresponds to the JSON property `lineItemId`
|
1516
|
+
# @return [String]
|
1517
|
+
attr_accessor :line_item_id
|
1518
|
+
|
1519
|
+
# The quantity to return.
|
1520
|
+
# Corresponds to the JSON property `quantity`
|
1521
|
+
# @return [Fixnum]
|
1522
|
+
attr_accessor :quantity
|
1523
|
+
|
1524
|
+
# The reason for the return.
|
1525
|
+
# Corresponds to the JSON property `reason`
|
1526
|
+
# @return [String]
|
1527
|
+
attr_accessor :reason
|
1528
|
+
|
1529
|
+
# The explanation of the reason.
|
1530
|
+
# Corresponds to the JSON property `reasonText`
|
1531
|
+
# @return [String]
|
1532
|
+
attr_accessor :reason_text
|
1533
|
+
|
1534
|
+
def initialize(**args)
|
1535
|
+
update!(**args)
|
1536
|
+
end
|
1537
|
+
|
1538
|
+
# Update properties of this object
|
1539
|
+
def update!(**args)
|
1540
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1541
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1542
|
+
@reason = args[:reason] if args.key?(:reason)
|
1543
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1544
|
+
end
|
1545
|
+
end
|
1546
|
+
|
1547
|
+
#
|
1548
|
+
class OrdersCustomBatchRequestEntryShipLineItems
|
1549
|
+
include Google::Apis::Core::Hashable
|
1550
|
+
|
1551
|
+
# The carrier handling the shipment.
|
1552
|
+
# Corresponds to the JSON property `carrier`
|
1553
|
+
# @return [String]
|
1554
|
+
attr_accessor :carrier
|
1555
|
+
|
1556
|
+
# Line items to ship.
|
1557
|
+
# Corresponds to the JSON property `lineItems`
|
1558
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>]
|
1559
|
+
attr_accessor :line_items
|
1560
|
+
|
1561
|
+
# The ID of the shipment.
|
1562
|
+
# Corresponds to the JSON property `shipmentId`
|
1563
|
+
# @return [String]
|
1564
|
+
attr_accessor :shipment_id
|
1565
|
+
|
1566
|
+
# The tracking id for the shipment.
|
1567
|
+
# Corresponds to the JSON property `trackingId`
|
1568
|
+
# @return [String]
|
1569
|
+
attr_accessor :tracking_id
|
1570
|
+
|
1571
|
+
def initialize(**args)
|
1572
|
+
update!(**args)
|
1573
|
+
end
|
1574
|
+
|
1575
|
+
# Update properties of this object
|
1576
|
+
def update!(**args)
|
1577
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
1578
|
+
@line_items = args[:line_items] if args.key?(:line_items)
|
1579
|
+
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
|
1580
|
+
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
1581
|
+
end
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
#
|
1585
|
+
class OrdersCustomBatchRequestEntryUpdateShipment
|
1586
|
+
include Google::Apis::Core::Hashable
|
1587
|
+
|
1588
|
+
# The carrier handling the shipment. Not updated if missing.
|
1589
|
+
# Corresponds to the JSON property `carrier`
|
1590
|
+
# @return [String]
|
1591
|
+
attr_accessor :carrier
|
1592
|
+
|
1593
|
+
# The ID of the shipment.
|
1594
|
+
# Corresponds to the JSON property `shipmentId`
|
1595
|
+
# @return [String]
|
1596
|
+
attr_accessor :shipment_id
|
1597
|
+
|
1598
|
+
# New status for the shipment. Not updated if missing.
|
1599
|
+
# Corresponds to the JSON property `status`
|
1600
|
+
# @return [String]
|
1601
|
+
attr_accessor :status
|
1602
|
+
|
1603
|
+
# The tracking id for the shipment. Not updated if missing.
|
1604
|
+
# Corresponds to the JSON property `trackingId`
|
1605
|
+
# @return [String]
|
1606
|
+
attr_accessor :tracking_id
|
1607
|
+
|
1608
|
+
def initialize(**args)
|
1609
|
+
update!(**args)
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
# Update properties of this object
|
1613
|
+
def update!(**args)
|
1614
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
1615
|
+
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
|
1616
|
+
@status = args[:status] if args.key?(:status)
|
1617
|
+
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
1618
|
+
end
|
1619
|
+
end
|
1620
|
+
|
1621
|
+
#
|
1622
|
+
class OrdersCustomBatchResponse
|
1623
|
+
include Google::Apis::Core::Hashable
|
1624
|
+
|
1625
|
+
# The result of the execution of the batch requests.
|
1626
|
+
# Corresponds to the JSON property `entries`
|
1627
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrdersCustomBatchResponseEntry>]
|
1628
|
+
attr_accessor :entries
|
1629
|
+
|
1630
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1631
|
+
# ordersCustomBatchResponse".
|
1632
|
+
# Corresponds to the JSON property `kind`
|
1633
|
+
# @return [String]
|
1634
|
+
attr_accessor :kind
|
1635
|
+
|
1636
|
+
def initialize(**args)
|
1637
|
+
update!(**args)
|
1638
|
+
end
|
1639
|
+
|
1640
|
+
# Update properties of this object
|
1641
|
+
def update!(**args)
|
1642
|
+
@entries = args[:entries] if args.key?(:entries)
|
1643
|
+
@kind = args[:kind] if args.key?(:kind)
|
1644
|
+
end
|
1645
|
+
end
|
1646
|
+
|
1647
|
+
#
|
1648
|
+
class OrdersCustomBatchResponseEntry
|
1649
|
+
include Google::Apis::Core::Hashable
|
1650
|
+
|
1651
|
+
# The ID of the request entry this entry responds to.
|
1652
|
+
# Corresponds to the JSON property `batchId`
|
1653
|
+
# @return [Fixnum]
|
1654
|
+
attr_accessor :batch_id
|
1655
|
+
|
1656
|
+
# A list of errors returned by a failed batch entry.
|
1657
|
+
# Corresponds to the JSON property `errors`
|
1658
|
+
# @return [Google::Apis::ContentV2sandbox::Errors]
|
1659
|
+
attr_accessor :errors
|
1660
|
+
|
1661
|
+
# The status of the execution. Only defined if the method is not get or
|
1662
|
+
# getByMerchantOrderId and if the request was successful.
|
1663
|
+
# Corresponds to the JSON property `executionStatus`
|
1664
|
+
# @return [String]
|
1665
|
+
attr_accessor :execution_status
|
1666
|
+
|
1667
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1668
|
+
# ordersCustomBatchResponseEntry".
|
1669
|
+
# Corresponds to the JSON property `kind`
|
1670
|
+
# @return [String]
|
1671
|
+
attr_accessor :kind
|
1672
|
+
|
1673
|
+
# The retrieved order. Only defined if the method is get and if the request was
|
1674
|
+
# successful.
|
1675
|
+
# Corresponds to the JSON property `order`
|
1676
|
+
# @return [Google::Apis::ContentV2sandbox::Order]
|
1677
|
+
attr_accessor :order
|
1678
|
+
|
1679
|
+
def initialize(**args)
|
1680
|
+
update!(**args)
|
1681
|
+
end
|
1682
|
+
|
1683
|
+
# Update properties of this object
|
1684
|
+
def update!(**args)
|
1685
|
+
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
1686
|
+
@errors = args[:errors] if args.key?(:errors)
|
1687
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1688
|
+
@kind = args[:kind] if args.key?(:kind)
|
1689
|
+
@order = args[:order] if args.key?(:order)
|
1690
|
+
end
|
1691
|
+
end
|
1692
|
+
|
1693
|
+
#
|
1694
|
+
class OrdersGetByMerchantOrderIdResponse
|
1695
|
+
include Google::Apis::Core::Hashable
|
1696
|
+
|
1697
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1698
|
+
# ordersGetByMerchantOrderIdResponse".
|
1699
|
+
# Corresponds to the JSON property `kind`
|
1700
|
+
# @return [String]
|
1701
|
+
attr_accessor :kind
|
1702
|
+
|
1703
|
+
# The requested order.
|
1704
|
+
# Corresponds to the JSON property `order`
|
1705
|
+
# @return [Google::Apis::ContentV2sandbox::Order]
|
1706
|
+
attr_accessor :order
|
1707
|
+
|
1708
|
+
def initialize(**args)
|
1709
|
+
update!(**args)
|
1710
|
+
end
|
1711
|
+
|
1712
|
+
# Update properties of this object
|
1713
|
+
def update!(**args)
|
1714
|
+
@kind = args[:kind] if args.key?(:kind)
|
1715
|
+
@order = args[:order] if args.key?(:order)
|
1716
|
+
end
|
1717
|
+
end
|
1718
|
+
|
1719
|
+
#
|
1720
|
+
class OrdersGetTestOrderTemplateResponse
|
1721
|
+
include Google::Apis::Core::Hashable
|
1722
|
+
|
1723
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1724
|
+
# ordersGetTestOrderTemplateResponse".
|
1725
|
+
# Corresponds to the JSON property `kind`
|
1726
|
+
# @return [String]
|
1727
|
+
attr_accessor :kind
|
1728
|
+
|
1729
|
+
# The requested test order template.
|
1730
|
+
# Corresponds to the JSON property `template`
|
1731
|
+
# @return [Google::Apis::ContentV2sandbox::TestOrder]
|
1732
|
+
attr_accessor :template
|
1733
|
+
|
1734
|
+
def initialize(**args)
|
1735
|
+
update!(**args)
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
# Update properties of this object
|
1739
|
+
def update!(**args)
|
1740
|
+
@kind = args[:kind] if args.key?(:kind)
|
1741
|
+
@template = args[:template] if args.key?(:template)
|
1742
|
+
end
|
1743
|
+
end
|
1744
|
+
|
1745
|
+
#
|
1746
|
+
class OrdersListResponse
|
1747
|
+
include Google::Apis::Core::Hashable
|
1748
|
+
|
1749
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1750
|
+
# ordersListResponse".
|
1751
|
+
# Corresponds to the JSON property `kind`
|
1752
|
+
# @return [String]
|
1753
|
+
attr_accessor :kind
|
1754
|
+
|
1755
|
+
# The token for the retrieval of the next page of orders.
|
1756
|
+
# Corresponds to the JSON property `nextPageToken`
|
1757
|
+
# @return [String]
|
1758
|
+
attr_accessor :next_page_token
|
1759
|
+
|
1760
|
+
#
|
1761
|
+
# Corresponds to the JSON property `resources`
|
1762
|
+
# @return [Array<Google::Apis::ContentV2sandbox::Order>]
|
1763
|
+
attr_accessor :resources
|
1764
|
+
|
1765
|
+
def initialize(**args)
|
1766
|
+
update!(**args)
|
1767
|
+
end
|
1768
|
+
|
1769
|
+
# Update properties of this object
|
1770
|
+
def update!(**args)
|
1771
|
+
@kind = args[:kind] if args.key?(:kind)
|
1772
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1773
|
+
@resources = args[:resources] if args.key?(:resources)
|
1774
|
+
end
|
1775
|
+
end
|
1776
|
+
|
1777
|
+
#
|
1778
|
+
class OrdersRefundRequest
|
1779
|
+
include Google::Apis::Core::Hashable
|
1780
|
+
|
1781
|
+
# The amount that is refunded.
|
1782
|
+
# Corresponds to the JSON property `amount`
|
1783
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1784
|
+
attr_accessor :amount
|
1785
|
+
|
1786
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1787
|
+
# Corresponds to the JSON property `operationId`
|
1788
|
+
# @return [String]
|
1789
|
+
attr_accessor :operation_id
|
1790
|
+
|
1791
|
+
# The reason for the refund.
|
1792
|
+
# Corresponds to the JSON property `reason`
|
1793
|
+
# @return [String]
|
1794
|
+
attr_accessor :reason
|
1795
|
+
|
1796
|
+
# The explanation of the reason.
|
1797
|
+
# Corresponds to the JSON property `reasonText`
|
1798
|
+
# @return [String]
|
1799
|
+
attr_accessor :reason_text
|
1800
|
+
|
1801
|
+
def initialize(**args)
|
1802
|
+
update!(**args)
|
1803
|
+
end
|
1804
|
+
|
1805
|
+
# Update properties of this object
|
1806
|
+
def update!(**args)
|
1807
|
+
@amount = args[:amount] if args.key?(:amount)
|
1808
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1809
|
+
@reason = args[:reason] if args.key?(:reason)
|
1810
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1811
|
+
end
|
1812
|
+
end
|
1813
|
+
|
1814
|
+
#
|
1815
|
+
class OrdersRefundResponse
|
1816
|
+
include Google::Apis::Core::Hashable
|
1817
|
+
|
1818
|
+
# The status of the execution.
|
1819
|
+
# Corresponds to the JSON property `executionStatus`
|
1820
|
+
# @return [String]
|
1821
|
+
attr_accessor :execution_status
|
1822
|
+
|
1823
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1824
|
+
# ordersRefundResponse".
|
1825
|
+
# Corresponds to the JSON property `kind`
|
1826
|
+
# @return [String]
|
1827
|
+
attr_accessor :kind
|
1828
|
+
|
1829
|
+
def initialize(**args)
|
1830
|
+
update!(**args)
|
1831
|
+
end
|
1832
|
+
|
1833
|
+
# Update properties of this object
|
1834
|
+
def update!(**args)
|
1835
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1836
|
+
@kind = args[:kind] if args.key?(:kind)
|
1837
|
+
end
|
1838
|
+
end
|
1839
|
+
|
1840
|
+
#
|
1841
|
+
class OrdersReturnLineItemRequest
|
1842
|
+
include Google::Apis::Core::Hashable
|
1843
|
+
|
1844
|
+
# The ID of the line item to return.
|
1845
|
+
# Corresponds to the JSON property `lineItemId`
|
1846
|
+
# @return [String]
|
1847
|
+
attr_accessor :line_item_id
|
1848
|
+
|
1849
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1850
|
+
# Corresponds to the JSON property `operationId`
|
1851
|
+
# @return [String]
|
1852
|
+
attr_accessor :operation_id
|
1853
|
+
|
1854
|
+
# The quantity to return.
|
1855
|
+
# Corresponds to the JSON property `quantity`
|
1856
|
+
# @return [Fixnum]
|
1857
|
+
attr_accessor :quantity
|
1858
|
+
|
1859
|
+
# The reason for the return.
|
1860
|
+
# Corresponds to the JSON property `reason`
|
1861
|
+
# @return [String]
|
1862
|
+
attr_accessor :reason
|
1863
|
+
|
1864
|
+
# The explanation of the reason.
|
1865
|
+
# Corresponds to the JSON property `reasonText`
|
1866
|
+
# @return [String]
|
1867
|
+
attr_accessor :reason_text
|
1868
|
+
|
1869
|
+
def initialize(**args)
|
1870
|
+
update!(**args)
|
1871
|
+
end
|
1872
|
+
|
1873
|
+
# Update properties of this object
|
1874
|
+
def update!(**args)
|
1875
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1876
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1877
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1878
|
+
@reason = args[:reason] if args.key?(:reason)
|
1879
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1880
|
+
end
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
#
|
1884
|
+
class OrdersReturnLineItemResponse
|
1885
|
+
include Google::Apis::Core::Hashable
|
1886
|
+
|
1887
|
+
# The status of the execution.
|
1888
|
+
# Corresponds to the JSON property `executionStatus`
|
1889
|
+
# @return [String]
|
1890
|
+
attr_accessor :execution_status
|
1891
|
+
|
1892
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1893
|
+
# ordersReturnLineItemResponse".
|
1894
|
+
# Corresponds to the JSON property `kind`
|
1895
|
+
# @return [String]
|
1896
|
+
attr_accessor :kind
|
1897
|
+
|
1898
|
+
def initialize(**args)
|
1899
|
+
update!(**args)
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
# Update properties of this object
|
1903
|
+
def update!(**args)
|
1904
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1905
|
+
@kind = args[:kind] if args.key?(:kind)
|
1906
|
+
end
|
1907
|
+
end
|
1908
|
+
|
1909
|
+
#
|
1910
|
+
class OrdersShipLineItemsRequest
|
1911
|
+
include Google::Apis::Core::Hashable
|
1912
|
+
|
1913
|
+
# The carrier handling the shipment.
|
1914
|
+
# Corresponds to the JSON property `carrier`
|
1915
|
+
# @return [String]
|
1916
|
+
attr_accessor :carrier
|
1917
|
+
|
1918
|
+
# Line items to ship.
|
1919
|
+
# Corresponds to the JSON property `lineItems`
|
1920
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderShipmentLineItemShipment>]
|
1921
|
+
attr_accessor :line_items
|
1922
|
+
|
1923
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1924
|
+
# Corresponds to the JSON property `operationId`
|
1925
|
+
# @return [String]
|
1926
|
+
attr_accessor :operation_id
|
1927
|
+
|
1928
|
+
# The ID of the shipment.
|
1929
|
+
# Corresponds to the JSON property `shipmentId`
|
1930
|
+
# @return [String]
|
1931
|
+
attr_accessor :shipment_id
|
1932
|
+
|
1933
|
+
# The tracking id for the shipment.
|
1934
|
+
# Corresponds to the JSON property `trackingId`
|
1935
|
+
# @return [String]
|
1936
|
+
attr_accessor :tracking_id
|
1937
|
+
|
1938
|
+
def initialize(**args)
|
1939
|
+
update!(**args)
|
1940
|
+
end
|
1941
|
+
|
1942
|
+
# Update properties of this object
|
1943
|
+
def update!(**args)
|
1944
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
1945
|
+
@line_items = args[:line_items] if args.key?(:line_items)
|
1946
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1947
|
+
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
|
1948
|
+
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
1949
|
+
end
|
1950
|
+
end
|
1951
|
+
|
1952
|
+
#
|
1953
|
+
class OrdersShipLineItemsResponse
|
1954
|
+
include Google::Apis::Core::Hashable
|
1955
|
+
|
1956
|
+
# The status of the execution.
|
1957
|
+
# Corresponds to the JSON property `executionStatus`
|
1958
|
+
# @return [String]
|
1959
|
+
attr_accessor :execution_status
|
1960
|
+
|
1961
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
1962
|
+
# ordersShipLineItemsResponse".
|
1963
|
+
# Corresponds to the JSON property `kind`
|
1964
|
+
# @return [String]
|
1965
|
+
attr_accessor :kind
|
1966
|
+
|
1967
|
+
def initialize(**args)
|
1968
|
+
update!(**args)
|
1969
|
+
end
|
1970
|
+
|
1971
|
+
# Update properties of this object
|
1972
|
+
def update!(**args)
|
1973
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
1974
|
+
@kind = args[:kind] if args.key?(:kind)
|
1975
|
+
end
|
1976
|
+
end
|
1977
|
+
|
1978
|
+
#
|
1979
|
+
class OrdersUpdateMerchantOrderIdRequest
|
1980
|
+
include Google::Apis::Core::Hashable
|
1981
|
+
|
1982
|
+
# The merchant order id to be assigned to the order. Must be unique per merchant.
|
1983
|
+
# Corresponds to the JSON property `merchantOrderId`
|
1984
|
+
# @return [String]
|
1985
|
+
attr_accessor :merchant_order_id
|
1986
|
+
|
1987
|
+
# The ID of the operation. Unique across all operations for a given order.
|
1988
|
+
# Corresponds to the JSON property `operationId`
|
1989
|
+
# @return [String]
|
1990
|
+
attr_accessor :operation_id
|
1991
|
+
|
1992
|
+
def initialize(**args)
|
1993
|
+
update!(**args)
|
1994
|
+
end
|
1995
|
+
|
1996
|
+
# Update properties of this object
|
1997
|
+
def update!(**args)
|
1998
|
+
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
1999
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2000
|
+
end
|
2001
|
+
end
|
2002
|
+
|
2003
|
+
#
|
2004
|
+
class OrdersUpdateMerchantOrderIdResponse
|
2005
|
+
include Google::Apis::Core::Hashable
|
2006
|
+
|
2007
|
+
# The status of the execution.
|
2008
|
+
# Corresponds to the JSON property `executionStatus`
|
2009
|
+
# @return [String]
|
2010
|
+
attr_accessor :execution_status
|
2011
|
+
|
2012
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2013
|
+
# ordersUpdateMerchantOrderIdResponse".
|
2014
|
+
# Corresponds to the JSON property `kind`
|
2015
|
+
# @return [String]
|
2016
|
+
attr_accessor :kind
|
2017
|
+
|
2018
|
+
def initialize(**args)
|
2019
|
+
update!(**args)
|
2020
|
+
end
|
2021
|
+
|
2022
|
+
# Update properties of this object
|
2023
|
+
def update!(**args)
|
2024
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
2025
|
+
@kind = args[:kind] if args.key?(:kind)
|
2026
|
+
end
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
#
|
2030
|
+
class OrdersUpdateShipmentRequest
|
2031
|
+
include Google::Apis::Core::Hashable
|
2032
|
+
|
2033
|
+
# The carrier handling the shipment. Not updated if missing.
|
2034
|
+
# Corresponds to the JSON property `carrier`
|
2035
|
+
# @return [String]
|
2036
|
+
attr_accessor :carrier
|
2037
|
+
|
2038
|
+
# The ID of the operation. Unique across all operations for a given order.
|
2039
|
+
# Corresponds to the JSON property `operationId`
|
2040
|
+
# @return [String]
|
2041
|
+
attr_accessor :operation_id
|
2042
|
+
|
2043
|
+
# The ID of the shipment.
|
2044
|
+
# Corresponds to the JSON property `shipmentId`
|
2045
|
+
# @return [String]
|
2046
|
+
attr_accessor :shipment_id
|
2047
|
+
|
2048
|
+
# New status for the shipment. Not updated if missing.
|
2049
|
+
# Corresponds to the JSON property `status`
|
2050
|
+
# @return [String]
|
2051
|
+
attr_accessor :status
|
2052
|
+
|
2053
|
+
# The tracking id for the shipment. Not updated if missing.
|
2054
|
+
# Corresponds to the JSON property `trackingId`
|
2055
|
+
# @return [String]
|
2056
|
+
attr_accessor :tracking_id
|
2057
|
+
|
2058
|
+
def initialize(**args)
|
2059
|
+
update!(**args)
|
2060
|
+
end
|
2061
|
+
|
2062
|
+
# Update properties of this object
|
2063
|
+
def update!(**args)
|
2064
|
+
@carrier = args[:carrier] if args.key?(:carrier)
|
2065
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2066
|
+
@shipment_id = args[:shipment_id] if args.key?(:shipment_id)
|
2067
|
+
@status = args[:status] if args.key?(:status)
|
2068
|
+
@tracking_id = args[:tracking_id] if args.key?(:tracking_id)
|
2069
|
+
end
|
2070
|
+
end
|
2071
|
+
|
2072
|
+
#
|
2073
|
+
class OrdersUpdateShipmentResponse
|
2074
|
+
include Google::Apis::Core::Hashable
|
2075
|
+
|
2076
|
+
# The status of the execution.
|
2077
|
+
# Corresponds to the JSON property `executionStatus`
|
2078
|
+
# @return [String]
|
2079
|
+
attr_accessor :execution_status
|
2080
|
+
|
2081
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2082
|
+
# ordersUpdateShipmentResponse".
|
2083
|
+
# Corresponds to the JSON property `kind`
|
2084
|
+
# @return [String]
|
2085
|
+
attr_accessor :kind
|
2086
|
+
|
2087
|
+
def initialize(**args)
|
2088
|
+
update!(**args)
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
# Update properties of this object
|
2092
|
+
def update!(**args)
|
2093
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
2094
|
+
@kind = args[:kind] if args.key?(:kind)
|
2095
|
+
end
|
2096
|
+
end
|
2097
|
+
|
2098
|
+
#
|
2099
|
+
class Price
|
2100
|
+
include Google::Apis::Core::Hashable
|
2101
|
+
|
2102
|
+
# The currency of the price.
|
2103
|
+
# Corresponds to the JSON property `currency`
|
2104
|
+
# @return [String]
|
2105
|
+
attr_accessor :currency
|
2106
|
+
|
2107
|
+
# The price represented as a number.
|
2108
|
+
# Corresponds to the JSON property `value`
|
2109
|
+
# @return [String]
|
2110
|
+
attr_accessor :value
|
2111
|
+
|
2112
|
+
def initialize(**args)
|
2113
|
+
update!(**args)
|
2114
|
+
end
|
2115
|
+
|
2116
|
+
# Update properties of this object
|
2117
|
+
def update!(**args)
|
2118
|
+
@currency = args[:currency] if args.key?(:currency)
|
2119
|
+
@value = args[:value] if args.key?(:value)
|
2120
|
+
end
|
2121
|
+
end
|
2122
|
+
|
2123
|
+
#
|
2124
|
+
class TestOrder
|
2125
|
+
include Google::Apis::Core::Hashable
|
2126
|
+
|
2127
|
+
# The details of the customer who placed the order.
|
2128
|
+
# Corresponds to the JSON property `customer`
|
2129
|
+
# @return [Google::Apis::ContentV2sandbox::TestOrderCustomer]
|
2130
|
+
attr_accessor :customer
|
2131
|
+
|
2132
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2133
|
+
# testOrder".
|
2134
|
+
# Corresponds to the JSON property `kind`
|
2135
|
+
# @return [String]
|
2136
|
+
attr_accessor :kind
|
2137
|
+
|
2138
|
+
# Line items that are ordered. At least one line item must be provided.
|
2139
|
+
# Corresponds to the JSON property `lineItems`
|
2140
|
+
# @return [Array<Google::Apis::ContentV2sandbox::TestOrderLineItem>]
|
2141
|
+
attr_accessor :line_items
|
2142
|
+
|
2143
|
+
# The details of the payment method.
|
2144
|
+
# Corresponds to the JSON property `paymentMethod`
|
2145
|
+
# @return [Google::Apis::ContentV2sandbox::TestOrderPaymentMethod]
|
2146
|
+
attr_accessor :payment_method
|
2147
|
+
|
2148
|
+
# Identifier of one of the predefined delivery addresses for the delivery.
|
2149
|
+
# Corresponds to the JSON property `predefinedDeliveryAddress`
|
2150
|
+
# @return [String]
|
2151
|
+
attr_accessor :predefined_delivery_address
|
2152
|
+
|
2153
|
+
# The details of the merchant provided promotions applied to the order. More
|
2154
|
+
# details about the program are here.
|
2155
|
+
# Corresponds to the JSON property `promotions`
|
2156
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderPromotion>]
|
2157
|
+
attr_accessor :promotions
|
2158
|
+
|
2159
|
+
# The total cost of shipping for all items.
|
2160
|
+
# Corresponds to the JSON property `shippingCost`
|
2161
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2162
|
+
attr_accessor :shipping_cost
|
2163
|
+
|
2164
|
+
# The tax for the total shipping cost.
|
2165
|
+
# Corresponds to the JSON property `shippingCostTax`
|
2166
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2167
|
+
attr_accessor :shipping_cost_tax
|
2168
|
+
|
2169
|
+
# The requested shipping option.
|
2170
|
+
# Corresponds to the JSON property `shippingOption`
|
2171
|
+
# @return [String]
|
2172
|
+
attr_accessor :shipping_option
|
2173
|
+
|
2174
|
+
def initialize(**args)
|
2175
|
+
update!(**args)
|
2176
|
+
end
|
2177
|
+
|
2178
|
+
# Update properties of this object
|
2179
|
+
def update!(**args)
|
2180
|
+
@customer = args[:customer] if args.key?(:customer)
|
2181
|
+
@kind = args[:kind] if args.key?(:kind)
|
2182
|
+
@line_items = args[:line_items] if args.key?(:line_items)
|
2183
|
+
@payment_method = args[:payment_method] if args.key?(:payment_method)
|
2184
|
+
@predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address)
|
2185
|
+
@promotions = args[:promotions] if args.key?(:promotions)
|
2186
|
+
@shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost)
|
2187
|
+
@shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax)
|
2188
|
+
@shipping_option = args[:shipping_option] if args.key?(:shipping_option)
|
2189
|
+
end
|
2190
|
+
end
|
2191
|
+
|
2192
|
+
#
|
2193
|
+
class TestOrderCustomer
|
2194
|
+
include Google::Apis::Core::Hashable
|
2195
|
+
|
2196
|
+
# Email address of the customer.
|
2197
|
+
# Corresponds to the JSON property `email`
|
2198
|
+
# @return [String]
|
2199
|
+
attr_accessor :email
|
2200
|
+
|
2201
|
+
# If set, this indicates the user explicitly chose to opt in or out of providing
|
2202
|
+
# marketing rights to the merchant. If unset, this indicates the user has
|
2203
|
+
# already made this choice in a previous purchase, and was thus not shown the
|
2204
|
+
# marketing right opt in/out checkbox during the checkout flow. Optional.
|
2205
|
+
# Corresponds to the JSON property `explicitMarketingPreference`
|
2206
|
+
# @return [Boolean]
|
2207
|
+
attr_accessor :explicit_marketing_preference
|
2208
|
+
alias_method :explicit_marketing_preference?, :explicit_marketing_preference
|
2209
|
+
|
2210
|
+
# Full name of the customer.
|
2211
|
+
# Corresponds to the JSON property `fullName`
|
2212
|
+
# @return [String]
|
2213
|
+
attr_accessor :full_name
|
2214
|
+
|
2215
|
+
def initialize(**args)
|
2216
|
+
update!(**args)
|
2217
|
+
end
|
2218
|
+
|
2219
|
+
# Update properties of this object
|
2220
|
+
def update!(**args)
|
2221
|
+
@email = args[:email] if args.key?(:email)
|
2222
|
+
@explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference)
|
2223
|
+
@full_name = args[:full_name] if args.key?(:full_name)
|
2224
|
+
end
|
2225
|
+
end
|
2226
|
+
|
2227
|
+
#
|
2228
|
+
class TestOrderLineItem
|
2229
|
+
include Google::Apis::Core::Hashable
|
2230
|
+
|
2231
|
+
# Product data from the time of the order placement.
|
2232
|
+
# Corresponds to the JSON property `product`
|
2233
|
+
# @return [Google::Apis::ContentV2sandbox::TestOrderLineItemProduct]
|
2234
|
+
attr_accessor :product
|
2235
|
+
|
2236
|
+
# Number of items ordered.
|
2237
|
+
# Corresponds to the JSON property `quantityOrdered`
|
2238
|
+
# @return [Fixnum]
|
2239
|
+
attr_accessor :quantity_ordered
|
2240
|
+
|
2241
|
+
# Details of the return policy for the line item.
|
2242
|
+
# Corresponds to the JSON property `returnInfo`
|
2243
|
+
# @return [Google::Apis::ContentV2sandbox::OrderLineItemReturnInfo]
|
2244
|
+
attr_accessor :return_info
|
2245
|
+
|
2246
|
+
# Details of the requested shipping for the line item.
|
2247
|
+
# Corresponds to the JSON property `shippingDetails`
|
2248
|
+
# @return [Google::Apis::ContentV2sandbox::OrderLineItemShippingDetails]
|
2249
|
+
attr_accessor :shipping_details
|
2250
|
+
|
2251
|
+
# Unit tax for the line item.
|
2252
|
+
# Corresponds to the JSON property `unitTax`
|
2253
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2254
|
+
attr_accessor :unit_tax
|
2255
|
+
|
2256
|
+
def initialize(**args)
|
2257
|
+
update!(**args)
|
2258
|
+
end
|
2259
|
+
|
2260
|
+
# Update properties of this object
|
2261
|
+
def update!(**args)
|
2262
|
+
@product = args[:product] if args.key?(:product)
|
2263
|
+
@quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered)
|
2264
|
+
@return_info = args[:return_info] if args.key?(:return_info)
|
2265
|
+
@shipping_details = args[:shipping_details] if args.key?(:shipping_details)
|
2266
|
+
@unit_tax = args[:unit_tax] if args.key?(:unit_tax)
|
2267
|
+
end
|
2268
|
+
end
|
2269
|
+
|
2270
|
+
#
|
2271
|
+
class TestOrderLineItemProduct
|
2272
|
+
include Google::Apis::Core::Hashable
|
2273
|
+
|
2274
|
+
# Brand of the item.
|
2275
|
+
# Corresponds to the JSON property `brand`
|
2276
|
+
# @return [String]
|
2277
|
+
attr_accessor :brand
|
2278
|
+
|
2279
|
+
# The item's channel.
|
2280
|
+
# Corresponds to the JSON property `channel`
|
2281
|
+
# @return [String]
|
2282
|
+
attr_accessor :channel
|
2283
|
+
|
2284
|
+
# Condition or state of the item.
|
2285
|
+
# Corresponds to the JSON property `condition`
|
2286
|
+
# @return [String]
|
2287
|
+
attr_accessor :condition
|
2288
|
+
|
2289
|
+
# The two-letter ISO 639-1 language code for the item.
|
2290
|
+
# Corresponds to the JSON property `contentLanguage`
|
2291
|
+
# @return [String]
|
2292
|
+
attr_accessor :content_language
|
2293
|
+
|
2294
|
+
# Global Trade Item Number (GTIN) of the item. Optional.
|
2295
|
+
# Corresponds to the JSON property `gtin`
|
2296
|
+
# @return [String]
|
2297
|
+
attr_accessor :gtin
|
2298
|
+
|
2299
|
+
# URL of an image of the item.
|
2300
|
+
# Corresponds to the JSON property `imageLink`
|
2301
|
+
# @return [String]
|
2302
|
+
attr_accessor :image_link
|
2303
|
+
|
2304
|
+
# Shared identifier for all variants of the same product. Optional.
|
2305
|
+
# Corresponds to the JSON property `itemGroupId`
|
2306
|
+
# @return [String]
|
2307
|
+
attr_accessor :item_group_id
|
2308
|
+
|
2309
|
+
# Manufacturer Part Number (MPN) of the item. Optional.
|
2310
|
+
# Corresponds to the JSON property `mpn`
|
2311
|
+
# @return [String]
|
2312
|
+
attr_accessor :mpn
|
2313
|
+
|
2314
|
+
# An identifier of the item.
|
2315
|
+
# Corresponds to the JSON property `offerId`
|
2316
|
+
# @return [String]
|
2317
|
+
attr_accessor :offer_id
|
2318
|
+
|
2319
|
+
# The price for the product.
|
2320
|
+
# Corresponds to the JSON property `price`
|
2321
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2322
|
+
attr_accessor :price
|
2323
|
+
|
2324
|
+
# The CLDR territory code of the target country of the product.
|
2325
|
+
# Corresponds to the JSON property `targetCountry`
|
2326
|
+
# @return [String]
|
2327
|
+
attr_accessor :target_country
|
2328
|
+
|
2329
|
+
# The title of the product.
|
2330
|
+
# Corresponds to the JSON property `title`
|
2331
|
+
# @return [String]
|
2332
|
+
attr_accessor :title
|
2333
|
+
|
2334
|
+
# Variant attributes for the item. Optional.
|
2335
|
+
# Corresponds to the JSON property `variantAttributes`
|
2336
|
+
# @return [Array<Google::Apis::ContentV2sandbox::OrderLineItemProductVariantAttribute>]
|
2337
|
+
attr_accessor :variant_attributes
|
2338
|
+
|
2339
|
+
def initialize(**args)
|
2340
|
+
update!(**args)
|
2341
|
+
end
|
2342
|
+
|
2343
|
+
# Update properties of this object
|
2344
|
+
def update!(**args)
|
2345
|
+
@brand = args[:brand] if args.key?(:brand)
|
2346
|
+
@channel = args[:channel] if args.key?(:channel)
|
2347
|
+
@condition = args[:condition] if args.key?(:condition)
|
2348
|
+
@content_language = args[:content_language] if args.key?(:content_language)
|
2349
|
+
@gtin = args[:gtin] if args.key?(:gtin)
|
2350
|
+
@image_link = args[:image_link] if args.key?(:image_link)
|
2351
|
+
@item_group_id = args[:item_group_id] if args.key?(:item_group_id)
|
2352
|
+
@mpn = args[:mpn] if args.key?(:mpn)
|
2353
|
+
@offer_id = args[:offer_id] if args.key?(:offer_id)
|
2354
|
+
@price = args[:price] if args.key?(:price)
|
2355
|
+
@target_country = args[:target_country] if args.key?(:target_country)
|
2356
|
+
@title = args[:title] if args.key?(:title)
|
2357
|
+
@variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes)
|
2358
|
+
end
|
2359
|
+
end
|
2360
|
+
|
2361
|
+
#
|
2362
|
+
class TestOrderPaymentMethod
|
2363
|
+
include Google::Apis::Core::Hashable
|
2364
|
+
|
2365
|
+
# The card expiration month (January = 1, February = 2 etc.).
|
2366
|
+
# Corresponds to the JSON property `expirationMonth`
|
2367
|
+
# @return [Fixnum]
|
2368
|
+
attr_accessor :expiration_month
|
2369
|
+
|
2370
|
+
# The card expiration year (4-digit, e.g. 2015).
|
2371
|
+
# Corresponds to the JSON property `expirationYear`
|
2372
|
+
# @return [Fixnum]
|
2373
|
+
attr_accessor :expiration_year
|
2374
|
+
|
2375
|
+
# The last four digits of the card number.
|
2376
|
+
# Corresponds to the JSON property `lastFourDigits`
|
2377
|
+
# @return [String]
|
2378
|
+
attr_accessor :last_four_digits
|
2379
|
+
|
2380
|
+
# The billing address.
|
2381
|
+
# Corresponds to the JSON property `predefinedBillingAddress`
|
2382
|
+
# @return [String]
|
2383
|
+
attr_accessor :predefined_billing_address
|
2384
|
+
|
2385
|
+
# The type of instrument. Note that real orders might have different values than
|
2386
|
+
# the four values accepted by createTestOrder.
|
2387
|
+
# Corresponds to the JSON property `type`
|
2388
|
+
# @return [String]
|
2389
|
+
attr_accessor :type
|
2390
|
+
|
2391
|
+
def initialize(**args)
|
2392
|
+
update!(**args)
|
2393
|
+
end
|
2394
|
+
|
2395
|
+
# Update properties of this object
|
2396
|
+
def update!(**args)
|
2397
|
+
@expiration_month = args[:expiration_month] if args.key?(:expiration_month)
|
2398
|
+
@expiration_year = args[:expiration_year] if args.key?(:expiration_year)
|
2399
|
+
@last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits)
|
2400
|
+
@predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address)
|
2401
|
+
@type = args[:type] if args.key?(:type)
|
2402
|
+
end
|
2403
|
+
end
|
2404
|
+
end
|
2405
|
+
end
|
2406
|
+
end
|