google-api-client 0.19.3 → 0.19.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +39 -0
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +212 -0
- data/generated/google/apis/analytics_v3/representations.rb +77 -0
- data/generated/google/apis/analytics_v3/service.rb +35 -0
- data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
- data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +2 -2
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -98
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -46
- data/generated/google/apis/androidenterprise_v1/service.rb +0 -229
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +28 -49
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/service.rb +12 -3
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +12 -14
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +10 -3
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +0 -69
- data/generated/google/apis/cloudkms_v1/representations.rb +0 -20
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +37 -20
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -1
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +161 -13
- data/generated/google/apis/compute_alpha/representations.rb +55 -1
- data/generated/google/apis/compute_alpha/service.rb +3 -4
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +102 -12
- data/generated/google/apis/compute_beta/representations.rb +14 -1
- data/generated/google/apis/compute_beta/service.rb +102 -4
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +12 -5
- data/generated/google/apis/compute_v1/representations.rb +1 -0
- data/generated/google/apis/compute_v1/service.rb +3 -4
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +10 -2
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +10 -2
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +428 -0
- data/generated/google/apis/content_v2/representations.rb +169 -0
- data/generated/google/apis/content_v2/service.rb +128 -1
- data/generated/google/apis/content_v2sandbox.rb +1 -1
- data/generated/google/apis/content_v2sandbox/classes.rb +428 -0
- data/generated/google/apis/content_v2sandbox/representations.rb +169 -0
- data/generated/google/apis/content_v2sandbox/service.rb +127 -0
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +3 -2
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +6 -3
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1/classes.rb +3 -3
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +9 -0
- data/generated/google/apis/logging_v2/representations.rb +1 -0
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +9 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +0 -136
- data/generated/google/apis/ml_v1/representations.rb +0 -33
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +6 -6
- data/generated/google/apis/monitoring_v3/service.rb +2 -2
- data/generated/google/apis/oslogin_v1.rb +1 -1
- data/generated/google/apis/oslogin_v1/classes.rb +1 -9
- data/generated/google/apis/oslogin_v1/representations.rb +0 -1
- data/generated/google/apis/oslogin_v1alpha.rb +1 -1
- data/generated/google/apis/oslogin_v1alpha/classes.rb +2 -9
- data/generated/google/apis/oslogin_v1alpha/representations.rb +0 -1
- data/generated/google/apis/oslogin_v1beta.rb +1 -1
- data/generated/google/apis/oslogin_v1beta/classes.rb +1 -9
- data/generated/google/apis/oslogin_v1beta/representations.rb +0 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/service.rb +5 -2
- data/generated/google/apis/script_v1.rb +2 -2
- data/generated/google/apis/script_v1/service.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +1 -0
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +1 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +0 -146
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -34
- data/generated/google/apis/serviceuser_v1.rb +1 -1
- data/generated/google/apis/serviceuser_v1/classes.rb +0 -10
- data/generated/google/apis/serviceuser_v1/representations.rb +0 -1
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +0 -65
- data/generated/google/apis/speech_v1/representations.rb +0 -40
- data/generated/google/apis/speech_v1/service.rb +0 -122
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +0 -44
- data/generated/google/apis/speech_v1beta1/representations.rb +0 -27
- data/generated/google/apis/speech_v1beta1/service.rb +0 -119
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/lib/google/apis/version.rb +1 -1
- metadata +2 -2
@@ -592,18 +592,36 @@ module Google
|
|
592
592
|
include Google::Apis::Core::JsonObjectSupport
|
593
593
|
end
|
594
594
|
|
595
|
+
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
596
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
|
+
|
598
|
+
include Google::Apis::Core::JsonObjectSupport
|
599
|
+
end
|
600
|
+
|
595
601
|
class OrdersCustomBatchRequestEntryRefund
|
596
602
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
597
603
|
|
598
604
|
include Google::Apis::Core::JsonObjectSupport
|
599
605
|
end
|
600
606
|
|
607
|
+
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
|
+
|
610
|
+
include Google::Apis::Core::JsonObjectSupport
|
611
|
+
end
|
612
|
+
|
601
613
|
class OrdersCustomBatchRequestEntryReturnLineItem
|
602
614
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
603
615
|
|
604
616
|
include Google::Apis::Core::JsonObjectSupport
|
605
617
|
end
|
606
618
|
|
619
|
+
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
620
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
621
|
+
|
622
|
+
include Google::Apis::Core::JsonObjectSupport
|
623
|
+
end
|
624
|
+
|
607
625
|
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
608
626
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
627
|
|
@@ -658,6 +676,18 @@ module Google
|
|
658
676
|
include Google::Apis::Core::JsonObjectSupport
|
659
677
|
end
|
660
678
|
|
679
|
+
class OrdersInStoreRefundLineItemRequest
|
680
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
681
|
+
|
682
|
+
include Google::Apis::Core::JsonObjectSupport
|
683
|
+
end
|
684
|
+
|
685
|
+
class OrdersInStoreRefundLineItemResponse
|
686
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
687
|
+
|
688
|
+
include Google::Apis::Core::JsonObjectSupport
|
689
|
+
end
|
690
|
+
|
661
691
|
class OrdersListResponse
|
662
692
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
663
693
|
|
@@ -676,6 +706,18 @@ module Google
|
|
676
706
|
include Google::Apis::Core::JsonObjectSupport
|
677
707
|
end
|
678
708
|
|
709
|
+
class OrdersRejectReturnLineItemRequest
|
710
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
711
|
+
|
712
|
+
include Google::Apis::Core::JsonObjectSupport
|
713
|
+
end
|
714
|
+
|
715
|
+
class OrdersRejectReturnLineItemResponse
|
716
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
717
|
+
|
718
|
+
include Google::Apis::Core::JsonObjectSupport
|
719
|
+
end
|
720
|
+
|
679
721
|
class OrdersReturnLineItemRequest
|
680
722
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
681
723
|
|
@@ -688,6 +730,18 @@ module Google
|
|
688
730
|
include Google::Apis::Core::JsonObjectSupport
|
689
731
|
end
|
690
732
|
|
733
|
+
class OrdersReturnRefundLineItemRequest
|
734
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
735
|
+
|
736
|
+
include Google::Apis::Core::JsonObjectSupport
|
737
|
+
end
|
738
|
+
|
739
|
+
class OrdersReturnRefundLineItemResponse
|
740
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
741
|
+
|
742
|
+
include Google::Apis::Core::JsonObjectSupport
|
743
|
+
end
|
744
|
+
|
691
745
|
class OrdersSetLineItemMetadataRequest
|
692
746
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
693
747
|
|
@@ -2056,6 +2110,8 @@ module Google
|
|
2056
2110
|
|
2057
2111
|
property :cancel_line_item, as: 'cancelLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryCancelLineItem::Representation
|
2058
2112
|
|
2113
|
+
property :in_store_refund_line_item, as: 'inStoreRefundLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryInStoreRefundLineItem::Representation
|
2114
|
+
|
2059
2115
|
property :merchant_id, :numeric_string => true, as: 'merchantId'
|
2060
2116
|
property :merchant_order_id, as: 'merchantOrderId'
|
2061
2117
|
property :method_prop, as: 'method'
|
@@ -2063,8 +2119,12 @@ module Google
|
|
2063
2119
|
property :order_id, as: 'orderId'
|
2064
2120
|
property :refund, as: 'refund', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRefund::Representation
|
2065
2121
|
|
2122
|
+
property :reject_return_line_item, as: 'rejectReturnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryRejectReturnLineItem::Representation
|
2123
|
+
|
2066
2124
|
property :return_line_item, as: 'returnLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnLineItem::Representation
|
2067
2125
|
|
2126
|
+
property :return_refund_line_item, as: 'returnRefundLineItem', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryReturnRefundLineItem::Representation
|
2127
|
+
|
2068
2128
|
property :set_line_item_metadata, as: 'setLineItemMetadata', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntrySetLineItemMetadata::Representation
|
2069
2129
|
|
2070
2130
|
property :ship_line_items, as: 'shipLineItems', class: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems, decorator: Google::Apis::ContentV2::OrdersCustomBatchRequestEntryShipLineItems::Representation
|
@@ -2101,6 +2161,21 @@ module Google
|
|
2101
2161
|
end
|
2102
2162
|
end
|
2103
2163
|
|
2164
|
+
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
2165
|
+
# @private
|
2166
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2167
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2168
|
+
|
2169
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2170
|
+
|
2171
|
+
property :line_item_id, as: 'lineItemId'
|
2172
|
+
property :product_id, as: 'productId'
|
2173
|
+
property :quantity, as: 'quantity'
|
2174
|
+
property :reason, as: 'reason'
|
2175
|
+
property :reason_text, as: 'reasonText'
|
2176
|
+
end
|
2177
|
+
end
|
2178
|
+
|
2104
2179
|
class OrdersCustomBatchRequestEntryRefund
|
2105
2180
|
# @private
|
2106
2181
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2115,6 +2190,17 @@ module Google
|
|
2115
2190
|
end
|
2116
2191
|
end
|
2117
2192
|
|
2193
|
+
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
2194
|
+
# @private
|
2195
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2196
|
+
property :line_item_id, as: 'lineItemId'
|
2197
|
+
property :product_id, as: 'productId'
|
2198
|
+
property :quantity, as: 'quantity'
|
2199
|
+
property :reason, as: 'reason'
|
2200
|
+
property :reason_text, as: 'reasonText'
|
2201
|
+
end
|
2202
|
+
end
|
2203
|
+
|
2118
2204
|
class OrdersCustomBatchRequestEntryReturnLineItem
|
2119
2205
|
# @private
|
2120
2206
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2126,6 +2212,21 @@ module Google
|
|
2126
2212
|
end
|
2127
2213
|
end
|
2128
2214
|
|
2215
|
+
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
2216
|
+
# @private
|
2217
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2218
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2219
|
+
|
2220
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2221
|
+
|
2222
|
+
property :line_item_id, as: 'lineItemId'
|
2223
|
+
property :product_id, as: 'productId'
|
2224
|
+
property :quantity, as: 'quantity'
|
2225
|
+
property :reason, as: 'reason'
|
2226
|
+
property :reason_text, as: 'reasonText'
|
2227
|
+
end
|
2228
|
+
end
|
2229
|
+
|
2129
2230
|
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
2130
2231
|
# @private
|
2131
2232
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2218,6 +2319,30 @@ module Google
|
|
2218
2319
|
end
|
2219
2320
|
end
|
2220
2321
|
|
2322
|
+
class OrdersInStoreRefundLineItemRequest
|
2323
|
+
# @private
|
2324
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2325
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2326
|
+
|
2327
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2328
|
+
|
2329
|
+
property :line_item_id, as: 'lineItemId'
|
2330
|
+
property :operation_id, as: 'operationId'
|
2331
|
+
property :product_id, as: 'productId'
|
2332
|
+
property :quantity, as: 'quantity'
|
2333
|
+
property :reason, as: 'reason'
|
2334
|
+
property :reason_text, as: 'reasonText'
|
2335
|
+
end
|
2336
|
+
end
|
2337
|
+
|
2338
|
+
class OrdersInStoreRefundLineItemResponse
|
2339
|
+
# @private
|
2340
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2341
|
+
property :execution_status, as: 'executionStatus'
|
2342
|
+
property :kind, as: 'kind'
|
2343
|
+
end
|
2344
|
+
end
|
2345
|
+
|
2221
2346
|
class OrdersListResponse
|
2222
2347
|
# @private
|
2223
2348
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2251,6 +2376,26 @@ module Google
|
|
2251
2376
|
end
|
2252
2377
|
end
|
2253
2378
|
|
2379
|
+
class OrdersRejectReturnLineItemRequest
|
2380
|
+
# @private
|
2381
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2382
|
+
property :line_item_id, as: 'lineItemId'
|
2383
|
+
property :operation_id, as: 'operationId'
|
2384
|
+
property :product_id, as: 'productId'
|
2385
|
+
property :quantity, as: 'quantity'
|
2386
|
+
property :reason, as: 'reason'
|
2387
|
+
property :reason_text, as: 'reasonText'
|
2388
|
+
end
|
2389
|
+
end
|
2390
|
+
|
2391
|
+
class OrdersRejectReturnLineItemResponse
|
2392
|
+
# @private
|
2393
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2394
|
+
property :execution_status, as: 'executionStatus'
|
2395
|
+
property :kind, as: 'kind'
|
2396
|
+
end
|
2397
|
+
end
|
2398
|
+
|
2254
2399
|
class OrdersReturnLineItemRequest
|
2255
2400
|
# @private
|
2256
2401
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2271,6 +2416,30 @@ module Google
|
|
2271
2416
|
end
|
2272
2417
|
end
|
2273
2418
|
|
2419
|
+
class OrdersReturnRefundLineItemRequest
|
2420
|
+
# @private
|
2421
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2422
|
+
property :amount_pretax, as: 'amountPretax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2423
|
+
|
2424
|
+
property :amount_tax, as: 'amountTax', class: Google::Apis::ContentV2::Price, decorator: Google::Apis::ContentV2::Price::Representation
|
2425
|
+
|
2426
|
+
property :line_item_id, as: 'lineItemId'
|
2427
|
+
property :operation_id, as: 'operationId'
|
2428
|
+
property :product_id, as: 'productId'
|
2429
|
+
property :quantity, as: 'quantity'
|
2430
|
+
property :reason, as: 'reason'
|
2431
|
+
property :reason_text, as: 'reasonText'
|
2432
|
+
end
|
2433
|
+
end
|
2434
|
+
|
2435
|
+
class OrdersReturnRefundLineItemResponse
|
2436
|
+
# @private
|
2437
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2438
|
+
property :execution_status, as: 'executionStatus'
|
2439
|
+
property :kind, as: 'kind'
|
2440
|
+
end
|
2441
|
+
end
|
2442
|
+
|
2274
2443
|
class OrdersSetLineItemMetadataRequest
|
2275
2444
|
# @private
|
2276
2445
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -914,7 +914,7 @@ module Google
|
|
914
914
|
execute_or_queue_command(command, &block)
|
915
915
|
end
|
916
916
|
|
917
|
-
# Lists the datafeeds in your Merchant Center account.
|
917
|
+
# Lists the configurations for datafeeds in your Merchant Center account.
|
918
918
|
# @param [Fixnum] merchant_id
|
919
919
|
# The ID of the account that manages the datafeeds. This account cannot be a
|
920
920
|
# multi-client account.
|
@@ -1621,6 +1621,48 @@ module Google
|
|
1621
1621
|
execute_or_queue_command(command, &block)
|
1622
1622
|
end
|
1623
1623
|
|
1624
|
+
# Notifies that item return and refund was handled directly in store.
|
1625
|
+
# @param [Fixnum] merchant_id
|
1626
|
+
# The ID of the account that manages the order. This cannot be a multi-client
|
1627
|
+
# account.
|
1628
|
+
# @param [String] order_id
|
1629
|
+
# The ID of the order.
|
1630
|
+
# @param [Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest] orders_in_store_refund_line_item_request_object
|
1631
|
+
# @param [String] fields
|
1632
|
+
# Selector specifying which fields to include in a partial response.
|
1633
|
+
# @param [String] quota_user
|
1634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1636
|
+
# Overrides userIp if both are provided.
|
1637
|
+
# @param [String] user_ip
|
1638
|
+
# IP address of the site where the request originates. Use this if you want to
|
1639
|
+
# enforce per-user limits.
|
1640
|
+
# @param [Google::Apis::RequestOptions] options
|
1641
|
+
# Request-specific options
|
1642
|
+
#
|
1643
|
+
# @yield [result, err] Result & error if block supplied
|
1644
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse] parsed result object
|
1645
|
+
# @yieldparam err [StandardError] error object if request failed
|
1646
|
+
#
|
1647
|
+
# @return [Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse]
|
1648
|
+
#
|
1649
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1650
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1651
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1652
|
+
def instorerefundlineitem_order(merchant_id, order_id, orders_in_store_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1653
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/inStoreRefundLineItem', options)
|
1654
|
+
command.request_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemRequest::Representation
|
1655
|
+
command.request_object = orders_in_store_refund_line_item_request_object
|
1656
|
+
command.response_representation = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse::Representation
|
1657
|
+
command.response_class = Google::Apis::ContentV2::OrdersInStoreRefundLineItemResponse
|
1658
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1659
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1660
|
+
command.query['fields'] = fields unless fields.nil?
|
1661
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1662
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1663
|
+
execute_or_queue_command(command, &block)
|
1664
|
+
end
|
1665
|
+
|
1624
1666
|
# Lists the orders in your Merchant Center account.
|
1625
1667
|
# @param [Fixnum] merchant_id
|
1626
1668
|
# The ID of the account that manages the order. This cannot be a multi-client
|
@@ -1737,6 +1779,48 @@ module Google
|
|
1737
1779
|
execute_or_queue_command(command, &block)
|
1738
1780
|
end
|
1739
1781
|
|
1782
|
+
# Rejects return on an line item.
|
1783
|
+
# @param [Fixnum] merchant_id
|
1784
|
+
# The ID of the account that manages the order. This cannot be a multi-client
|
1785
|
+
# account.
|
1786
|
+
# @param [String] order_id
|
1787
|
+
# The ID of the order.
|
1788
|
+
# @param [Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest] orders_reject_return_line_item_request_object
|
1789
|
+
# @param [String] fields
|
1790
|
+
# Selector specifying which fields to include in a partial response.
|
1791
|
+
# @param [String] quota_user
|
1792
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1793
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1794
|
+
# Overrides userIp if both are provided.
|
1795
|
+
# @param [String] user_ip
|
1796
|
+
# IP address of the site where the request originates. Use this if you want to
|
1797
|
+
# enforce per-user limits.
|
1798
|
+
# @param [Google::Apis::RequestOptions] options
|
1799
|
+
# Request-specific options
|
1800
|
+
#
|
1801
|
+
# @yield [result, err] Result & error if block supplied
|
1802
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse] parsed result object
|
1803
|
+
# @yieldparam err [StandardError] error object if request failed
|
1804
|
+
#
|
1805
|
+
# @return [Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse]
|
1806
|
+
#
|
1807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1810
|
+
def rejectreturnlineitem_order(merchant_id, order_id, orders_reject_return_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1811
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/rejectReturnLineItem', options)
|
1812
|
+
command.request_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemRequest::Representation
|
1813
|
+
command.request_object = orders_reject_return_line_item_request_object
|
1814
|
+
command.response_representation = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse::Representation
|
1815
|
+
command.response_class = Google::Apis::ContentV2::OrdersRejectReturnLineItemResponse
|
1816
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1817
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1818
|
+
command.query['fields'] = fields unless fields.nil?
|
1819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1820
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1821
|
+
execute_or_queue_command(command, &block)
|
1822
|
+
end
|
1823
|
+
|
1740
1824
|
# Returns a line item.
|
1741
1825
|
# @param [Fixnum] merchant_id
|
1742
1826
|
# The ID of the account that manages the order. This cannot be a multi-client
|
@@ -1779,6 +1863,49 @@ module Google
|
|
1779
1863
|
execute_or_queue_command(command, &block)
|
1780
1864
|
end
|
1781
1865
|
|
1866
|
+
# Returns and refunds a line item. Note that this method can only be called on
|
1867
|
+
# fully shipped orders.
|
1868
|
+
# @param [Fixnum] merchant_id
|
1869
|
+
# The ID of the account that manages the order. This cannot be a multi-client
|
1870
|
+
# account.
|
1871
|
+
# @param [String] order_id
|
1872
|
+
# The ID of the order.
|
1873
|
+
# @param [Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest] orders_return_refund_line_item_request_object
|
1874
|
+
# @param [String] fields
|
1875
|
+
# Selector specifying which fields to include in a partial response.
|
1876
|
+
# @param [String] quota_user
|
1877
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1878
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1879
|
+
# Overrides userIp if both are provided.
|
1880
|
+
# @param [String] user_ip
|
1881
|
+
# IP address of the site where the request originates. Use this if you want to
|
1882
|
+
# enforce per-user limits.
|
1883
|
+
# @param [Google::Apis::RequestOptions] options
|
1884
|
+
# Request-specific options
|
1885
|
+
#
|
1886
|
+
# @yield [result, err] Result & error if block supplied
|
1887
|
+
# @yieldparam result [Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse] parsed result object
|
1888
|
+
# @yieldparam err [StandardError] error object if request failed
|
1889
|
+
#
|
1890
|
+
# @return [Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse]
|
1891
|
+
#
|
1892
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1893
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1894
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1895
|
+
def returnrefundlineitem_order(merchant_id, order_id, orders_return_refund_line_item_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1896
|
+
command = make_simple_command(:post, '{merchantId}/orders/{orderId}/returnRefundLineItem', options)
|
1897
|
+
command.request_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemRequest::Representation
|
1898
|
+
command.request_object = orders_return_refund_line_item_request_object
|
1899
|
+
command.response_representation = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse::Representation
|
1900
|
+
command.response_class = Google::Apis::ContentV2::OrdersReturnRefundLineItemResponse
|
1901
|
+
command.params['merchantId'] = merchant_id unless merchant_id.nil?
|
1902
|
+
command.params['orderId'] = order_id unless order_id.nil?
|
1903
|
+
command.query['fields'] = fields unless fields.nil?
|
1904
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1905
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1906
|
+
execute_or_queue_command(command, &block)
|
1907
|
+
end
|
1908
|
+
|
1782
1909
|
# Sets (overrides) merchant provided annotations on the line item.
|
1783
1910
|
# @param [Fixnum] merchant_id
|
1784
1911
|
# The ID of the account that manages the order. This cannot be a multi-client
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://developers.google.com/shopping-content
|
27
27
|
module ContentV2sandbox
|
28
28
|
VERSION = 'V2sandbox'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20180111'
|
30
30
|
|
31
31
|
# Manage your product listings and accounts for Google Shopping
|
32
32
|
AUTH_CONTENT = 'https://www.googleapis.com/auth/content'
|
@@ -1426,6 +1426,11 @@ module Google
|
|
1426
1426
|
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryCancelLineItem]
|
1427
1427
|
attr_accessor :cancel_line_item
|
1428
1428
|
|
1429
|
+
# Required for inStoreReturnLineItem method.
|
1430
|
+
# Corresponds to the JSON property `inStoreRefundLineItem`
|
1431
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryInStoreRefundLineItem]
|
1432
|
+
attr_accessor :in_store_refund_line_item
|
1433
|
+
|
1429
1434
|
# The ID of the managing account.
|
1430
1435
|
# Corresponds to the JSON property `merchantId`
|
1431
1436
|
# @return [Fixnum]
|
@@ -1458,11 +1463,21 @@ module Google
|
|
1458
1463
|
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRefund]
|
1459
1464
|
attr_accessor :refund
|
1460
1465
|
|
1466
|
+
# Required for rejectReturnLineItem method.
|
1467
|
+
# Corresponds to the JSON property `rejectReturnLineItem`
|
1468
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryRejectReturnLineItem]
|
1469
|
+
attr_accessor :reject_return_line_item
|
1470
|
+
|
1461
1471
|
# Required for returnLineItem method.
|
1462
1472
|
# Corresponds to the JSON property `returnLineItem`
|
1463
1473
|
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnLineItem]
|
1464
1474
|
attr_accessor :return_line_item
|
1465
1475
|
|
1476
|
+
# Required for returnRefundLineItem method.
|
1477
|
+
# Corresponds to the JSON property `returnRefundLineItem`
|
1478
|
+
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntryReturnRefundLineItem]
|
1479
|
+
attr_accessor :return_refund_line_item
|
1480
|
+
|
1466
1481
|
# Required for setLineItemMetadata method.
|
1467
1482
|
# Corresponds to the JSON property `setLineItemMetadata`
|
1468
1483
|
# @return [Google::Apis::ContentV2sandbox::OrdersCustomBatchRequestEntrySetLineItemMetadata]
|
@@ -1492,13 +1507,16 @@ module Google
|
|
1492
1507
|
@batch_id = args[:batch_id] if args.key?(:batch_id)
|
1493
1508
|
@cancel = args[:cancel] if args.key?(:cancel)
|
1494
1509
|
@cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item)
|
1510
|
+
@in_store_refund_line_item = args[:in_store_refund_line_item] if args.key?(:in_store_refund_line_item)
|
1495
1511
|
@merchant_id = args[:merchant_id] if args.key?(:merchant_id)
|
1496
1512
|
@merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id)
|
1497
1513
|
@method_prop = args[:method_prop] if args.key?(:method_prop)
|
1498
1514
|
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
1499
1515
|
@order_id = args[:order_id] if args.key?(:order_id)
|
1500
1516
|
@refund = args[:refund] if args.key?(:refund)
|
1517
|
+
@reject_return_line_item = args[:reject_return_line_item] if args.key?(:reject_return_line_item)
|
1501
1518
|
@return_line_item = args[:return_line_item] if args.key?(:return_line_item)
|
1519
|
+
@return_refund_line_item = args[:return_refund_line_item] if args.key?(:return_refund_line_item)
|
1502
1520
|
@set_line_item_metadata = args[:set_line_item_metadata] if args.key?(:set_line_item_metadata)
|
1503
1521
|
@ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items)
|
1504
1522
|
@update_line_item_shipping_details = args[:update_line_item_shipping_details] if args.key?(:update_line_item_shipping_details)
|
@@ -1597,6 +1615,62 @@ module Google
|
|
1597
1615
|
end
|
1598
1616
|
end
|
1599
1617
|
|
1618
|
+
#
|
1619
|
+
class OrdersCustomBatchRequestEntryInStoreRefundLineItem
|
1620
|
+
include Google::Apis::Core::Hashable
|
1621
|
+
|
1622
|
+
# The amount that is refunded. Required.
|
1623
|
+
# Corresponds to the JSON property `amountPretax`
|
1624
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1625
|
+
attr_accessor :amount_pretax
|
1626
|
+
|
1627
|
+
# Tax amount that correspond to refund amount in amountPretax. Required.
|
1628
|
+
# Corresponds to the JSON property `amountTax`
|
1629
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1630
|
+
attr_accessor :amount_tax
|
1631
|
+
|
1632
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
1633
|
+
# Corresponds to the JSON property `lineItemId`
|
1634
|
+
# @return [String]
|
1635
|
+
attr_accessor :line_item_id
|
1636
|
+
|
1637
|
+
# The ID of the product to return. This is the REST ID used in the products
|
1638
|
+
# service. Either lineItemId or productId is required.
|
1639
|
+
# Corresponds to the JSON property `productId`
|
1640
|
+
# @return [String]
|
1641
|
+
attr_accessor :product_id
|
1642
|
+
|
1643
|
+
# The quantity to return and refund.
|
1644
|
+
# Corresponds to the JSON property `quantity`
|
1645
|
+
# @return [Fixnum]
|
1646
|
+
attr_accessor :quantity
|
1647
|
+
|
1648
|
+
# The reason for the return.
|
1649
|
+
# Corresponds to the JSON property `reason`
|
1650
|
+
# @return [String]
|
1651
|
+
attr_accessor :reason
|
1652
|
+
|
1653
|
+
# The explanation of the reason.
|
1654
|
+
# Corresponds to the JSON property `reasonText`
|
1655
|
+
# @return [String]
|
1656
|
+
attr_accessor :reason_text
|
1657
|
+
|
1658
|
+
def initialize(**args)
|
1659
|
+
update!(**args)
|
1660
|
+
end
|
1661
|
+
|
1662
|
+
# Update properties of this object
|
1663
|
+
def update!(**args)
|
1664
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
1665
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
1666
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1667
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1668
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1669
|
+
@reason = args[:reason] if args.key?(:reason)
|
1670
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1671
|
+
end
|
1672
|
+
end
|
1673
|
+
|
1600
1674
|
#
|
1601
1675
|
class OrdersCustomBatchRequestEntryRefund
|
1602
1676
|
include Google::Apis::Core::Hashable
|
@@ -1641,6 +1715,50 @@ module Google
|
|
1641
1715
|
end
|
1642
1716
|
end
|
1643
1717
|
|
1718
|
+
#
|
1719
|
+
class OrdersCustomBatchRequestEntryRejectReturnLineItem
|
1720
|
+
include Google::Apis::Core::Hashable
|
1721
|
+
|
1722
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
1723
|
+
# Corresponds to the JSON property `lineItemId`
|
1724
|
+
# @return [String]
|
1725
|
+
attr_accessor :line_item_id
|
1726
|
+
|
1727
|
+
# The ID of the product to return. This is the REST ID used in the products
|
1728
|
+
# service. Either lineItemId or productId is required.
|
1729
|
+
# Corresponds to the JSON property `productId`
|
1730
|
+
# @return [String]
|
1731
|
+
attr_accessor :product_id
|
1732
|
+
|
1733
|
+
# The quantity to return and refund.
|
1734
|
+
# Corresponds to the JSON property `quantity`
|
1735
|
+
# @return [Fixnum]
|
1736
|
+
attr_accessor :quantity
|
1737
|
+
|
1738
|
+
# The reason for the return.
|
1739
|
+
# Corresponds to the JSON property `reason`
|
1740
|
+
# @return [String]
|
1741
|
+
attr_accessor :reason
|
1742
|
+
|
1743
|
+
# The explanation of the reason.
|
1744
|
+
# Corresponds to the JSON property `reasonText`
|
1745
|
+
# @return [String]
|
1746
|
+
attr_accessor :reason_text
|
1747
|
+
|
1748
|
+
def initialize(**args)
|
1749
|
+
update!(**args)
|
1750
|
+
end
|
1751
|
+
|
1752
|
+
# Update properties of this object
|
1753
|
+
def update!(**args)
|
1754
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1755
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1756
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1757
|
+
@reason = args[:reason] if args.key?(:reason)
|
1758
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1759
|
+
end
|
1760
|
+
end
|
1761
|
+
|
1644
1762
|
#
|
1645
1763
|
class OrdersCustomBatchRequestEntryReturnLineItem
|
1646
1764
|
include Google::Apis::Core::Hashable
|
@@ -1685,6 +1803,63 @@ module Google
|
|
1685
1803
|
end
|
1686
1804
|
end
|
1687
1805
|
|
1806
|
+
#
|
1807
|
+
class OrdersCustomBatchRequestEntryReturnRefundLineItem
|
1808
|
+
include Google::Apis::Core::Hashable
|
1809
|
+
|
1810
|
+
# The amount that is refunded. Optional, but if filled then both amountPretax
|
1811
|
+
# and amountTax must be set.
|
1812
|
+
# Corresponds to the JSON property `amountPretax`
|
1813
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1814
|
+
attr_accessor :amount_pretax
|
1815
|
+
|
1816
|
+
# Tax amount that correspond to refund amount in amountPretax.
|
1817
|
+
# Corresponds to the JSON property `amountTax`
|
1818
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
1819
|
+
attr_accessor :amount_tax
|
1820
|
+
|
1821
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
1822
|
+
# Corresponds to the JSON property `lineItemId`
|
1823
|
+
# @return [String]
|
1824
|
+
attr_accessor :line_item_id
|
1825
|
+
|
1826
|
+
# The ID of the product to return. This is the REST ID used in the products
|
1827
|
+
# service. Either lineItemId or productId is required.
|
1828
|
+
# Corresponds to the JSON property `productId`
|
1829
|
+
# @return [String]
|
1830
|
+
attr_accessor :product_id
|
1831
|
+
|
1832
|
+
# The quantity to return and refund.
|
1833
|
+
# Corresponds to the JSON property `quantity`
|
1834
|
+
# @return [Fixnum]
|
1835
|
+
attr_accessor :quantity
|
1836
|
+
|
1837
|
+
# The reason for the return.
|
1838
|
+
# Corresponds to the JSON property `reason`
|
1839
|
+
# @return [String]
|
1840
|
+
attr_accessor :reason
|
1841
|
+
|
1842
|
+
# The explanation of the reason.
|
1843
|
+
# Corresponds to the JSON property `reasonText`
|
1844
|
+
# @return [String]
|
1845
|
+
attr_accessor :reason_text
|
1846
|
+
|
1847
|
+
def initialize(**args)
|
1848
|
+
update!(**args)
|
1849
|
+
end
|
1850
|
+
|
1851
|
+
# Update properties of this object
|
1852
|
+
def update!(**args)
|
1853
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
1854
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
1855
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
1856
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
1857
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
1858
|
+
@reason = args[:reason] if args.key?(:reason)
|
1859
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
1860
|
+
end
|
1861
|
+
end
|
1862
|
+
|
1688
1863
|
#
|
1689
1864
|
class OrdersCustomBatchRequestEntrySetLineItemMetadata
|
1690
1865
|
include Google::Apis::Core::Hashable
|
@@ -1999,6 +2174,94 @@ module Google
|
|
1999
2174
|
end
|
2000
2175
|
end
|
2001
2176
|
|
2177
|
+
#
|
2178
|
+
class OrdersInStoreRefundLineItemRequest
|
2179
|
+
include Google::Apis::Core::Hashable
|
2180
|
+
|
2181
|
+
# The amount that is refunded. Required.
|
2182
|
+
# Corresponds to the JSON property `amountPretax`
|
2183
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2184
|
+
attr_accessor :amount_pretax
|
2185
|
+
|
2186
|
+
# Tax amount that correspond to refund amount in amountPretax. Required.
|
2187
|
+
# Corresponds to the JSON property `amountTax`
|
2188
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2189
|
+
attr_accessor :amount_tax
|
2190
|
+
|
2191
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
2192
|
+
# Corresponds to the JSON property `lineItemId`
|
2193
|
+
# @return [String]
|
2194
|
+
attr_accessor :line_item_id
|
2195
|
+
|
2196
|
+
# The ID of the operation. Unique across all operations for a given order.
|
2197
|
+
# Corresponds to the JSON property `operationId`
|
2198
|
+
# @return [String]
|
2199
|
+
attr_accessor :operation_id
|
2200
|
+
|
2201
|
+
# The ID of the product to return. This is the REST ID used in the products
|
2202
|
+
# service. Either lineItemId or productId is required.
|
2203
|
+
# Corresponds to the JSON property `productId`
|
2204
|
+
# @return [String]
|
2205
|
+
attr_accessor :product_id
|
2206
|
+
|
2207
|
+
# The quantity to return and refund.
|
2208
|
+
# Corresponds to the JSON property `quantity`
|
2209
|
+
# @return [Fixnum]
|
2210
|
+
attr_accessor :quantity
|
2211
|
+
|
2212
|
+
# The reason for the return.
|
2213
|
+
# Corresponds to the JSON property `reason`
|
2214
|
+
# @return [String]
|
2215
|
+
attr_accessor :reason
|
2216
|
+
|
2217
|
+
# The explanation of the reason.
|
2218
|
+
# Corresponds to the JSON property `reasonText`
|
2219
|
+
# @return [String]
|
2220
|
+
attr_accessor :reason_text
|
2221
|
+
|
2222
|
+
def initialize(**args)
|
2223
|
+
update!(**args)
|
2224
|
+
end
|
2225
|
+
|
2226
|
+
# Update properties of this object
|
2227
|
+
def update!(**args)
|
2228
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
2229
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
2230
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
2231
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2232
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
2233
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
2234
|
+
@reason = args[:reason] if args.key?(:reason)
|
2235
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
2236
|
+
end
|
2237
|
+
end
|
2238
|
+
|
2239
|
+
#
|
2240
|
+
class OrdersInStoreRefundLineItemResponse
|
2241
|
+
include Google::Apis::Core::Hashable
|
2242
|
+
|
2243
|
+
# The status of the execution.
|
2244
|
+
# Corresponds to the JSON property `executionStatus`
|
2245
|
+
# @return [String]
|
2246
|
+
attr_accessor :execution_status
|
2247
|
+
|
2248
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2249
|
+
# ordersInStoreRefundLineItemResponse".
|
2250
|
+
# Corresponds to the JSON property `kind`
|
2251
|
+
# @return [String]
|
2252
|
+
attr_accessor :kind
|
2253
|
+
|
2254
|
+
def initialize(**args)
|
2255
|
+
update!(**args)
|
2256
|
+
end
|
2257
|
+
|
2258
|
+
# Update properties of this object
|
2259
|
+
def update!(**args)
|
2260
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
2261
|
+
@kind = args[:kind] if args.key?(:kind)
|
2262
|
+
end
|
2263
|
+
end
|
2264
|
+
|
2002
2265
|
#
|
2003
2266
|
class OrdersListResponse
|
2004
2267
|
include Google::Apis::Core::Hashable
|
@@ -2107,6 +2370,82 @@ module Google
|
|
2107
2370
|
end
|
2108
2371
|
end
|
2109
2372
|
|
2373
|
+
#
|
2374
|
+
class OrdersRejectReturnLineItemRequest
|
2375
|
+
include Google::Apis::Core::Hashable
|
2376
|
+
|
2377
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
2378
|
+
# Corresponds to the JSON property `lineItemId`
|
2379
|
+
# @return [String]
|
2380
|
+
attr_accessor :line_item_id
|
2381
|
+
|
2382
|
+
# The ID of the operation. Unique across all operations for a given order.
|
2383
|
+
# Corresponds to the JSON property `operationId`
|
2384
|
+
# @return [String]
|
2385
|
+
attr_accessor :operation_id
|
2386
|
+
|
2387
|
+
# The ID of the product to return. This is the REST ID used in the products
|
2388
|
+
# service. Either lineItemId or productId is required.
|
2389
|
+
# Corresponds to the JSON property `productId`
|
2390
|
+
# @return [String]
|
2391
|
+
attr_accessor :product_id
|
2392
|
+
|
2393
|
+
# The quantity to return and refund.
|
2394
|
+
# Corresponds to the JSON property `quantity`
|
2395
|
+
# @return [Fixnum]
|
2396
|
+
attr_accessor :quantity
|
2397
|
+
|
2398
|
+
# The reason for the return.
|
2399
|
+
# Corresponds to the JSON property `reason`
|
2400
|
+
# @return [String]
|
2401
|
+
attr_accessor :reason
|
2402
|
+
|
2403
|
+
# The explanation of the reason.
|
2404
|
+
# Corresponds to the JSON property `reasonText`
|
2405
|
+
# @return [String]
|
2406
|
+
attr_accessor :reason_text
|
2407
|
+
|
2408
|
+
def initialize(**args)
|
2409
|
+
update!(**args)
|
2410
|
+
end
|
2411
|
+
|
2412
|
+
# Update properties of this object
|
2413
|
+
def update!(**args)
|
2414
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
2415
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2416
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
2417
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
2418
|
+
@reason = args[:reason] if args.key?(:reason)
|
2419
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
2420
|
+
end
|
2421
|
+
end
|
2422
|
+
|
2423
|
+
#
|
2424
|
+
class OrdersRejectReturnLineItemResponse
|
2425
|
+
include Google::Apis::Core::Hashable
|
2426
|
+
|
2427
|
+
# The status of the execution.
|
2428
|
+
# Corresponds to the JSON property `executionStatus`
|
2429
|
+
# @return [String]
|
2430
|
+
attr_accessor :execution_status
|
2431
|
+
|
2432
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2433
|
+
# ordersRejectReturnLineItemResponse".
|
2434
|
+
# Corresponds to the JSON property `kind`
|
2435
|
+
# @return [String]
|
2436
|
+
attr_accessor :kind
|
2437
|
+
|
2438
|
+
def initialize(**args)
|
2439
|
+
update!(**args)
|
2440
|
+
end
|
2441
|
+
|
2442
|
+
# Update properties of this object
|
2443
|
+
def update!(**args)
|
2444
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
2445
|
+
@kind = args[:kind] if args.key?(:kind)
|
2446
|
+
end
|
2447
|
+
end
|
2448
|
+
|
2110
2449
|
#
|
2111
2450
|
class OrdersReturnLineItemRequest
|
2112
2451
|
include Google::Apis::Core::Hashable
|
@@ -2183,6 +2522,95 @@ module Google
|
|
2183
2522
|
end
|
2184
2523
|
end
|
2185
2524
|
|
2525
|
+
#
|
2526
|
+
class OrdersReturnRefundLineItemRequest
|
2527
|
+
include Google::Apis::Core::Hashable
|
2528
|
+
|
2529
|
+
# The amount that is refunded. Optional, but if filled then both amountPretax
|
2530
|
+
# and amountTax must be set.
|
2531
|
+
# Corresponds to the JSON property `amountPretax`
|
2532
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2533
|
+
attr_accessor :amount_pretax
|
2534
|
+
|
2535
|
+
# Tax amount that correspond to refund amount in amountPretax.
|
2536
|
+
# Corresponds to the JSON property `amountTax`
|
2537
|
+
# @return [Google::Apis::ContentV2sandbox::Price]
|
2538
|
+
attr_accessor :amount_tax
|
2539
|
+
|
2540
|
+
# The ID of the line item to return. Either lineItemId or productId is required.
|
2541
|
+
# Corresponds to the JSON property `lineItemId`
|
2542
|
+
# @return [String]
|
2543
|
+
attr_accessor :line_item_id
|
2544
|
+
|
2545
|
+
# The ID of the operation. Unique across all operations for a given order.
|
2546
|
+
# Corresponds to the JSON property `operationId`
|
2547
|
+
# @return [String]
|
2548
|
+
attr_accessor :operation_id
|
2549
|
+
|
2550
|
+
# The ID of the product to return. This is the REST ID used in the products
|
2551
|
+
# service. Either lineItemId or productId is required.
|
2552
|
+
# Corresponds to the JSON property `productId`
|
2553
|
+
# @return [String]
|
2554
|
+
attr_accessor :product_id
|
2555
|
+
|
2556
|
+
# The quantity to return and refund.
|
2557
|
+
# Corresponds to the JSON property `quantity`
|
2558
|
+
# @return [Fixnum]
|
2559
|
+
attr_accessor :quantity
|
2560
|
+
|
2561
|
+
# The reason for the return.
|
2562
|
+
# Corresponds to the JSON property `reason`
|
2563
|
+
# @return [String]
|
2564
|
+
attr_accessor :reason
|
2565
|
+
|
2566
|
+
# The explanation of the reason.
|
2567
|
+
# Corresponds to the JSON property `reasonText`
|
2568
|
+
# @return [String]
|
2569
|
+
attr_accessor :reason_text
|
2570
|
+
|
2571
|
+
def initialize(**args)
|
2572
|
+
update!(**args)
|
2573
|
+
end
|
2574
|
+
|
2575
|
+
# Update properties of this object
|
2576
|
+
def update!(**args)
|
2577
|
+
@amount_pretax = args[:amount_pretax] if args.key?(:amount_pretax)
|
2578
|
+
@amount_tax = args[:amount_tax] if args.key?(:amount_tax)
|
2579
|
+
@line_item_id = args[:line_item_id] if args.key?(:line_item_id)
|
2580
|
+
@operation_id = args[:operation_id] if args.key?(:operation_id)
|
2581
|
+
@product_id = args[:product_id] if args.key?(:product_id)
|
2582
|
+
@quantity = args[:quantity] if args.key?(:quantity)
|
2583
|
+
@reason = args[:reason] if args.key?(:reason)
|
2584
|
+
@reason_text = args[:reason_text] if args.key?(:reason_text)
|
2585
|
+
end
|
2586
|
+
end
|
2587
|
+
|
2588
|
+
#
|
2589
|
+
class OrdersReturnRefundLineItemResponse
|
2590
|
+
include Google::Apis::Core::Hashable
|
2591
|
+
|
2592
|
+
# The status of the execution.
|
2593
|
+
# Corresponds to the JSON property `executionStatus`
|
2594
|
+
# @return [String]
|
2595
|
+
attr_accessor :execution_status
|
2596
|
+
|
2597
|
+
# Identifies what kind of resource this is. Value: the fixed string "content#
|
2598
|
+
# ordersReturnRefundLineItemResponse".
|
2599
|
+
# Corresponds to the JSON property `kind`
|
2600
|
+
# @return [String]
|
2601
|
+
attr_accessor :kind
|
2602
|
+
|
2603
|
+
def initialize(**args)
|
2604
|
+
update!(**args)
|
2605
|
+
end
|
2606
|
+
|
2607
|
+
# Update properties of this object
|
2608
|
+
def update!(**args)
|
2609
|
+
@execution_status = args[:execution_status] if args.key?(:execution_status)
|
2610
|
+
@kind = args[:kind] if args.key?(:kind)
|
2611
|
+
end
|
2612
|
+
end
|
2613
|
+
|
2186
2614
|
#
|
2187
2615
|
class OrdersSetLineItemMetadataRequest
|
2188
2616
|
include Google::Apis::Core::Hashable
|