1// Copyright 2019 Google LLC.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5// Code generated file. DO NOT EDIT.
6
7// Package content provides access to the Content API for Shopping.
8//
9// For product documentation, see: https://developers.google.com/shopping-content
10//
11// Creating a client
12//
13// Usage example:
14//
15//   import "google.golang.org/api/content/v2sandbox"
16//   ...
17//   ctx := context.Background()
18//   contentService, err := content.NewService(ctx)
19//
20// In this example, Google Application Default Credentials are used for authentication.
21//
22// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
23//
24// Other authentication options
25//
26// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
27//
28//   contentService, err := content.NewService(ctx, option.WithAPIKey("AIza..."))
29//
30// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
31//
32//   config := &oauth2.Config{...}
33//   // ...
34//   token, err := config.Exchange(ctx, ...)
35//   contentService, err := content.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
36//
37// See https://godoc.org/google.golang.org/api/option/ for details on options.
38package content // import "google.golang.org/api/content/v2sandbox"
39
40import (
41	"bytes"
42	"context"
43	"encoding/json"
44	"errors"
45	"fmt"
46	"io"
47	"net/http"
48	"net/url"
49	"strconv"
50	"strings"
51
52	gensupport "google.golang.org/api/gensupport"
53	googleapi "google.golang.org/api/googleapi"
54	option "google.golang.org/api/option"
55	htransport "google.golang.org/api/transport/http"
56)
57
58// Always reference these packages, just in case the auto-generated code
59// below doesn't.
60var _ = bytes.NewBuffer
61var _ = strconv.Itoa
62var _ = fmt.Sprintf
63var _ = json.NewDecoder
64var _ = io.Copy
65var _ = url.Parse
66var _ = gensupport.MarshalJSON
67var _ = googleapi.Version
68var _ = errors.New
69var _ = strings.Replace
70var _ = context.Canceled
71
72const apiId = "content:v2sandbox"
73const apiName = "content"
74const apiVersion = "v2sandbox"
75const basePath = "https://www.googleapis.com/content/v2sandbox/"
76
77// OAuth2 scopes used by this API.
78const (
79	// Manage your product listings and accounts for Google Shopping
80	ContentScope = "https://www.googleapis.com/auth/content"
81)
82
83// NewService creates a new APIService.
84func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
85	scopesOption := option.WithScopes(
86		"https://www.googleapis.com/auth/content",
87	)
88	// NOTE: prepend, so we don't override user-specified scopes.
89	opts = append([]option.ClientOption{scopesOption}, opts...)
90	client, endpoint, err := htransport.NewClient(ctx, opts...)
91	if err != nil {
92		return nil, err
93	}
94	s, err := New(client)
95	if err != nil {
96		return nil, err
97	}
98	if endpoint != "" {
99		s.BasePath = endpoint
100	}
101	return s, nil
102}
103
104// New creates a new APIService. It uses the provided http.Client for requests.
105//
106// Deprecated: please use NewService instead.
107// To provide a custom HTTP client, use option.WithHTTPClient.
108// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
109func New(client *http.Client) (*APIService, error) {
110	if client == nil {
111		return nil, errors.New("client is nil")
112	}
113	s := &APIService{client: client, BasePath: basePath}
114	s.Orderinvoices = NewOrderinvoicesService(s)
115	s.Orderpayments = NewOrderpaymentsService(s)
116	s.Orderreturns = NewOrderreturnsService(s)
117	s.Orders = NewOrdersService(s)
118	return s, nil
119}
120
121type APIService struct {
122	client    *http.Client
123	BasePath  string // API endpoint base URL
124	UserAgent string // optional additional User-Agent fragment
125
126	Orderinvoices *OrderinvoicesService
127
128	Orderpayments *OrderpaymentsService
129
130	Orderreturns *OrderreturnsService
131
132	Orders *OrdersService
133}
134
135func (s *APIService) userAgent() string {
136	if s.UserAgent == "" {
137		return googleapi.UserAgent
138	}
139	return googleapi.UserAgent + " " + s.UserAgent
140}
141
142func NewOrderinvoicesService(s *APIService) *OrderinvoicesService {
143	rs := &OrderinvoicesService{s: s}
144	return rs
145}
146
147type OrderinvoicesService struct {
148	s *APIService
149}
150
151func NewOrderpaymentsService(s *APIService) *OrderpaymentsService {
152	rs := &OrderpaymentsService{s: s}
153	return rs
154}
155
156type OrderpaymentsService struct {
157	s *APIService
158}
159
160func NewOrderreturnsService(s *APIService) *OrderreturnsService {
161	rs := &OrderreturnsService{s: s}
162	return rs
163}
164
165type OrderreturnsService struct {
166	s *APIService
167}
168
169func NewOrdersService(s *APIService) *OrdersService {
170	rs := &OrdersService{s: s}
171	return rs
172}
173
174type OrdersService struct {
175	s *APIService
176}
177
178type Amount struct {
179	// Pretax: [required] Value before taxes.
180	Pretax *Price `json:"pretax,omitempty"`
181
182	// Tax: [required] Tax value.
183	Tax *Price `json:"tax,omitempty"`
184
185	// ForceSendFields is a list of field names (e.g. "Pretax") to
186	// unconditionally include in API requests. By default, fields with
187	// empty values are omitted from API requests. However, any non-pointer,
188	// non-interface field appearing in ForceSendFields will be sent to the
189	// server regardless of whether the field is empty or not. This may be
190	// used to include empty fields in Patch requests.
191	ForceSendFields []string `json:"-"`
192
193	// NullFields is a list of field names (e.g. "Pretax") to include in API
194	// requests with the JSON null value. By default, fields with empty
195	// values are omitted from API requests. However, any field with an
196	// empty value appearing in NullFields will be sent to the server as
197	// null. It is an error if a field in this list has a non-empty value.
198	// This may be used to include null fields in Patch requests.
199	NullFields []string `json:"-"`
200}
201
202func (s *Amount) MarshalJSON() ([]byte, error) {
203	type NoMethod Amount
204	raw := NoMethod(*s)
205	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
206}
207
208type CustomerReturnReason struct {
209	Description string `json:"description,omitempty"`
210
211	ReasonCode string `json:"reasonCode,omitempty"`
212
213	// ForceSendFields is a list of field names (e.g. "Description") to
214	// unconditionally include in API requests. By default, fields with
215	// empty values are omitted from API requests. However, any non-pointer,
216	// non-interface field appearing in ForceSendFields will be sent to the
217	// server regardless of whether the field is empty or not. This may be
218	// used to include empty fields in Patch requests.
219	ForceSendFields []string `json:"-"`
220
221	// NullFields is a list of field names (e.g. "Description") to include
222	// in API requests with the JSON null value. By default, fields with
223	// empty values are omitted from API requests. However, any field with
224	// an empty value appearing in NullFields will be sent to the server as
225	// null. It is an error if a field in this list has a non-empty value.
226	// This may be used to include null fields in Patch requests.
227	NullFields []string `json:"-"`
228}
229
230func (s *CustomerReturnReason) MarshalJSON() ([]byte, error) {
231	type NoMethod CustomerReturnReason
232	raw := NoMethod(*s)
233	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
234}
235
236// Error: An error returned by the API.
237type Error struct {
238	// Domain: The domain of the error.
239	Domain string `json:"domain,omitempty"`
240
241	// Message: A description of the error.
242	Message string `json:"message,omitempty"`
243
244	// Reason: The error code.
245	Reason string `json:"reason,omitempty"`
246
247	// ForceSendFields is a list of field names (e.g. "Domain") to
248	// unconditionally include in API requests. By default, fields with
249	// empty values are omitted from API requests. However, any non-pointer,
250	// non-interface field appearing in ForceSendFields will be sent to the
251	// server regardless of whether the field is empty or not. This may be
252	// used to include empty fields in Patch requests.
253	ForceSendFields []string `json:"-"`
254
255	// NullFields is a list of field names (e.g. "Domain") to include in API
256	// requests with the JSON null value. By default, fields with empty
257	// values are omitted from API requests. However, any field with an
258	// empty value appearing in NullFields will be sent to the server as
259	// null. It is an error if a field in this list has a non-empty value.
260	// This may be used to include null fields in Patch requests.
261	NullFields []string `json:"-"`
262}
263
264func (s *Error) MarshalJSON() ([]byte, error) {
265	type NoMethod Error
266	raw := NoMethod(*s)
267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
268}
269
270// Errors: A list of errors returned by a failed batch entry.
271type Errors struct {
272	// Code: The HTTP status of the first error in errors.
273	Code int64 `json:"code,omitempty"`
274
275	// Errors: A list of errors.
276	Errors []*Error `json:"errors,omitempty"`
277
278	// Message: The message of the first error in errors.
279	Message string `json:"message,omitempty"`
280
281	// ForceSendFields is a list of field names (e.g. "Code") to
282	// unconditionally include in API requests. By default, fields with
283	// empty values are omitted from API requests. However, any non-pointer,
284	// non-interface field appearing in ForceSendFields will be sent to the
285	// server regardless of whether the field is empty or not. This may be
286	// used to include empty fields in Patch requests.
287	ForceSendFields []string `json:"-"`
288
289	// NullFields is a list of field names (e.g. "Code") to include in API
290	// requests with the JSON null value. By default, fields with empty
291	// values are omitted from API requests. However, any field with an
292	// empty value appearing in NullFields will be sent to the server as
293	// null. It is an error if a field in this list has a non-empty value.
294	// This may be used to include null fields in Patch requests.
295	NullFields []string `json:"-"`
296}
297
298func (s *Errors) MarshalJSON() ([]byte, error) {
299	type NoMethod Errors
300	raw := NoMethod(*s)
301	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
302}
303
304type InvoiceSummary struct {
305	// AdditionalChargeSummaries: Summary of the total amounts of the
306	// additional charges.
307	AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"`
308
309	// CustomerBalance: [required] Customer balance on this invoice. A
310	// negative amount means the customer is paying, a positive one means
311	// the customer is receiving money. Note: the sum of merchant_balance,
312	// customer_balance and google_balance must always be zero.
313	//
314	// Furthermore the absolute value of this amount is expected to be equal
315	// to the sum of product amount and additional charges, minus
316	// promotions.
317	CustomerBalance *Amount `json:"customerBalance,omitempty"`
318
319	// GoogleBalance: [required] Google balance on this invoice. A negative
320	// amount means Google is paying, a positive one means Google is
321	// receiving money. Note: the sum of merchant_balance, customer_balance
322	// and google_balance must always be zero.
323	GoogleBalance *Amount `json:"googleBalance,omitempty"`
324
325	// MerchantBalance: [required] Merchant balance on this invoice. A
326	// negative amount means the merchant is paying, a positive one means
327	// the merchant is receiving money. Note: the sum of merchant_balance,
328	// customer_balance and google_balance must always be zero.
329	MerchantBalance *Amount `json:"merchantBalance,omitempty"`
330
331	// ProductTotal: [required] Total price for the product.
332	ProductTotal *Amount `json:"productTotal,omitempty"`
333
334	// PromotionSummaries: Summary for each promotion.
335	PromotionSummaries []*Promotion `json:"promotionSummaries,omitempty"`
336
337	// ForceSendFields is a list of field names (e.g.
338	// "AdditionalChargeSummaries") to unconditionally include in API
339	// requests. By default, fields with empty values are omitted from API
340	// requests. However, any non-pointer, non-interface field appearing in
341	// ForceSendFields will be sent to the server regardless of whether the
342	// field is empty or not. This may be used to include empty fields in
343	// Patch requests.
344	ForceSendFields []string `json:"-"`
345
346	// NullFields is a list of field names (e.g.
347	// "AdditionalChargeSummaries") to include in API requests with the JSON
348	// null value. By default, fields with empty values are omitted from API
349	// requests. However, any field with an empty value appearing in
350	// NullFields will be sent to the server as null. It is an error if a
351	// field in this list has a non-empty value. This may be used to include
352	// null fields in Patch requests.
353	NullFields []string `json:"-"`
354}
355
356func (s *InvoiceSummary) MarshalJSON() ([]byte, error) {
357	type NoMethod InvoiceSummary
358	raw := NoMethod(*s)
359	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
360}
361
362type InvoiceSummaryAdditionalChargeSummary struct {
363	// TotalAmount: [required] Total additional charge for this type.
364	TotalAmount *Amount `json:"totalAmount,omitempty"`
365
366	// Type: [required] Type of the additional charge.
367	Type string `json:"type,omitempty"`
368
369	// ForceSendFields is a list of field names (e.g. "TotalAmount") to
370	// unconditionally include in API requests. By default, fields with
371	// empty values are omitted from API requests. However, any non-pointer,
372	// non-interface field appearing in ForceSendFields will be sent to the
373	// server regardless of whether the field is empty or not. This may be
374	// used to include empty fields in Patch requests.
375	ForceSendFields []string `json:"-"`
376
377	// NullFields is a list of field names (e.g. "TotalAmount") to include
378	// in API requests with the JSON null value. By default, fields with
379	// empty values are omitted from API requests. However, any field with
380	// an empty value appearing in NullFields will be sent to the server as
381	// null. It is an error if a field in this list has a non-empty value.
382	// This may be used to include null fields in Patch requests.
383	NullFields []string `json:"-"`
384}
385
386func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) {
387	type NoMethod InvoiceSummaryAdditionalChargeSummary
388	raw := NoMethod(*s)
389	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
390}
391
392type MerchantOrderReturn struct {
393	CreationDate string `json:"creationDate,omitempty"`
394
395	MerchantOrderId string `json:"merchantOrderId,omitempty"`
396
397	OrderId string `json:"orderId,omitempty"`
398
399	OrderReturnId string `json:"orderReturnId,omitempty"`
400
401	ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"`
402
403	ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"`
404
405	// ServerResponse contains the HTTP response code and headers from the
406	// server.
407	googleapi.ServerResponse `json:"-"`
408
409	// ForceSendFields is a list of field names (e.g. "CreationDate") to
410	// unconditionally include in API requests. By default, fields with
411	// empty values are omitted from API requests. However, any non-pointer,
412	// non-interface field appearing in ForceSendFields will be sent to the
413	// server regardless of whether the field is empty or not. This may be
414	// used to include empty fields in Patch requests.
415	ForceSendFields []string `json:"-"`
416
417	// NullFields is a list of field names (e.g. "CreationDate") to include
418	// in API requests with the JSON null value. By default, fields with
419	// empty values are omitted from API requests. However, any field with
420	// an empty value appearing in NullFields will be sent to the server as
421	// null. It is an error if a field in this list has a non-empty value.
422	// This may be used to include null fields in Patch requests.
423	NullFields []string `json:"-"`
424}
425
426func (s *MerchantOrderReturn) MarshalJSON() ([]byte, error) {
427	type NoMethod MerchantOrderReturn
428	raw := NoMethod(*s)
429	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
430}
431
432type MerchantOrderReturnItem struct {
433	CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"`
434
435	ItemId string `json:"itemId,omitempty"`
436
437	MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"`
438
439	Product *OrderLineItemProduct `json:"product,omitempty"`
440
441	ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"`
442
443	State string `json:"state,omitempty"`
444
445	// ForceSendFields is a list of field names (e.g.
446	// "CustomerReturnReason") to unconditionally include in API requests.
447	// By default, fields with empty values are omitted from API requests.
448	// However, any non-pointer, non-interface field appearing in
449	// ForceSendFields will be sent to the server regardless of whether the
450	// field is empty or not. This may be used to include empty fields in
451	// Patch requests.
452	ForceSendFields []string `json:"-"`
453
454	// NullFields is a list of field names (e.g. "CustomerReturnReason") to
455	// include in API requests with the JSON null value. By default, fields
456	// with empty values are omitted from API requests. However, any field
457	// with an empty value appearing in NullFields will be sent to the
458	// server as null. It is an error if a field in this list has a
459	// non-empty value. This may be used to include null fields in Patch
460	// requests.
461	NullFields []string `json:"-"`
462}
463
464func (s *MerchantOrderReturnItem) MarshalJSON() ([]byte, error) {
465	type NoMethod MerchantOrderReturnItem
466	raw := NoMethod(*s)
467	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
468}
469
470type Order struct {
471	// Acknowledged: Whether the order was acknowledged.
472	Acknowledged bool `json:"acknowledged,omitempty"`
473
474	// ChannelType: The channel type of the order: "purchaseOnGoogle" or
475	// "googleExpress".
476	ChannelType string `json:"channelType,omitempty"`
477
478	// Customer: The details of the customer who placed the order.
479	Customer *OrderCustomer `json:"customer,omitempty"`
480
481	// DeliveryDetails: The details for the delivery.
482	DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"`
483
484	// Id: The REST id of the order. Globally unique.
485	Id string `json:"id,omitempty"`
486
487	// Kind: Identifies what kind of resource this is. Value: the fixed
488	// string "content#order".
489	Kind string `json:"kind,omitempty"`
490
491	// LineItems: Line items that are ordered.
492	LineItems []*OrderLineItem `json:"lineItems,omitempty"`
493
494	MerchantId uint64 `json:"merchantId,omitempty,string"`
495
496	// MerchantOrderId: Merchant-provided id of the order.
497	MerchantOrderId string `json:"merchantOrderId,omitempty"`
498
499	// NetAmount: The net amount for the order. For example, if an order was
500	// originally for a grand total of $100 and a refund was issued for $20,
501	// the net amount will be $80.
502	NetAmount *Price `json:"netAmount,omitempty"`
503
504	// PaymentMethod: The details of the payment method.
505	PaymentMethod *OrderPaymentMethod `json:"paymentMethod,omitempty"`
506
507	// PaymentStatus: The status of the payment.
508	PaymentStatus string `json:"paymentStatus,omitempty"`
509
510	// PlacedDate: The date when the order was placed, in ISO 8601 format.
511	PlacedDate string `json:"placedDate,omitempty"`
512
513	// Promotions: Deprecated. The details of the merchant provided
514	// promotions applied to the order. More details about the program are
515	// here.
516	Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"`
517
518	// Refunds: Refunds for the order.
519	Refunds []*OrderRefund `json:"refunds,omitempty"`
520
521	// Shipments: Shipments of the order.
522	Shipments []*OrderShipment `json:"shipments,omitempty"`
523
524	// ShippingCost: The total cost of shipping for all items.
525	ShippingCost *Price `json:"shippingCost,omitempty"`
526
527	// ShippingCostTax: The tax for the total shipping cost.
528	ShippingCostTax *Price `json:"shippingCostTax,omitempty"`
529
530	// ShippingOption: The requested shipping option.
531	ShippingOption string `json:"shippingOption,omitempty"`
532
533	// Status: The status of the order.
534	Status string `json:"status,omitempty"`
535
536	// ServerResponse contains the HTTP response code and headers from the
537	// server.
538	googleapi.ServerResponse `json:"-"`
539
540	// ForceSendFields is a list of field names (e.g. "Acknowledged") to
541	// unconditionally include in API requests. By default, fields with
542	// empty values are omitted from API requests. However, any non-pointer,
543	// non-interface field appearing in ForceSendFields will be sent to the
544	// server regardless of whether the field is empty or not. This may be
545	// used to include empty fields in Patch requests.
546	ForceSendFields []string `json:"-"`
547
548	// NullFields is a list of field names (e.g. "Acknowledged") to include
549	// in API requests with the JSON null value. By default, fields with
550	// empty values are omitted from API requests. However, any field with
551	// an empty value appearing in NullFields will be sent to the server as
552	// null. It is an error if a field in this list has a non-empty value.
553	// This may be used to include null fields in Patch requests.
554	NullFields []string `json:"-"`
555}
556
557func (s *Order) MarshalJSON() ([]byte, error) {
558	type NoMethod Order
559	raw := NoMethod(*s)
560	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
561}
562
563type OrderAddress struct {
564	// Country: CLDR country code (e.g. "US").
565	Country string `json:"country,omitempty"`
566
567	// FullAddress: Strings representing the lines of the printed label for
568	// mailing the order, for example:
569	// John Smith
570	// 1600 Amphitheatre Parkway
571	// Mountain View, CA, 94043
572	// United States
573	FullAddress []string `json:"fullAddress,omitempty"`
574
575	// IsPostOfficeBox: Whether the address is a post office box.
576	IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"`
577
578	// Locality: City, town or commune. May also include dependent
579	// localities or sublocalities (e.g. neighborhoods or suburbs).
580	Locality string `json:"locality,omitempty"`
581
582	// PostalCode: Postal Code or ZIP (e.g. "94043").
583	PostalCode string `json:"postalCode,omitempty"`
584
585	// RecipientName: Name of the recipient.
586	RecipientName string `json:"recipientName,omitempty"`
587
588	// Region: Top-level administrative subdivision of the country. For
589	// example, a state like California ("CA") or a province like Quebec
590	// ("QC").
591	Region string `json:"region,omitempty"`
592
593	// StreetAddress: Street-level part of the address.
594	StreetAddress []string `json:"streetAddress,omitempty"`
595
596	// ForceSendFields is a list of field names (e.g. "Country") to
597	// unconditionally include in API requests. By default, fields with
598	// empty values are omitted from API requests. However, any non-pointer,
599	// non-interface field appearing in ForceSendFields will be sent to the
600	// server regardless of whether the field is empty or not. This may be
601	// used to include empty fields in Patch requests.
602	ForceSendFields []string `json:"-"`
603
604	// NullFields is a list of field names (e.g. "Country") to include in
605	// API requests with the JSON null value. By default, fields with empty
606	// values are omitted from API requests. However, any field with an
607	// empty value appearing in NullFields will be sent to the server as
608	// null. It is an error if a field in this list has a non-empty value.
609	// This may be used to include null fields in Patch requests.
610	NullFields []string `json:"-"`
611}
612
613func (s *OrderAddress) MarshalJSON() ([]byte, error) {
614	type NoMethod OrderAddress
615	raw := NoMethod(*s)
616	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
617}
618
619type OrderCancellation struct {
620	// Actor: The actor that created the cancellation.
621	Actor string `json:"actor,omitempty"`
622
623	// CreationDate: Date on which the cancellation has been created, in ISO
624	// 8601 format.
625	CreationDate string `json:"creationDate,omitempty"`
626
627	// Quantity: The quantity that was canceled.
628	Quantity int64 `json:"quantity,omitempty"`
629
630	// Reason: The reason for the cancellation. Orders that are cancelled
631	// with a noInventory reason will lead to the removal of the product
632	// from Shopping Actions until you make an update to that product. This
633	// will not affect your Shopping ads.
634	Reason string `json:"reason,omitempty"`
635
636	// ReasonText: The explanation of the reason.
637	ReasonText string `json:"reasonText,omitempty"`
638
639	// ForceSendFields is a list of field names (e.g. "Actor") to
640	// unconditionally include in API requests. By default, fields with
641	// empty values are omitted from API requests. However, any non-pointer,
642	// non-interface field appearing in ForceSendFields will be sent to the
643	// server regardless of whether the field is empty or not. This may be
644	// used to include empty fields in Patch requests.
645	ForceSendFields []string `json:"-"`
646
647	// NullFields is a list of field names (e.g. "Actor") to include in API
648	// requests with the JSON null value. By default, fields with empty
649	// values are omitted from API requests. However, any field with an
650	// empty value appearing in NullFields will be sent to the server as
651	// null. It is an error if a field in this list has a non-empty value.
652	// This may be used to include null fields in Patch requests.
653	NullFields []string `json:"-"`
654}
655
656func (s *OrderCancellation) MarshalJSON() ([]byte, error) {
657	type NoMethod OrderCancellation
658	raw := NoMethod(*s)
659	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
660}
661
662type OrderCustomer struct {
663	// Email: Deprecated.
664	Email string `json:"email,omitempty"`
665
666	// ExplicitMarketingPreference: Deprecated. Please use
667	// marketingRightsInfo instead.
668	ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
669
670	// FullName: Full name of the customer.
671	FullName string `json:"fullName,omitempty"`
672
673	// MarketingRightsInfo: Customer's marketing preferences.
674	MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
675
676	// ForceSendFields is a list of field names (e.g. "Email") to
677	// unconditionally include in API requests. By default, fields with
678	// empty values are omitted from API requests. However, any non-pointer,
679	// non-interface field appearing in ForceSendFields will be sent to the
680	// server regardless of whether the field is empty or not. This may be
681	// used to include empty fields in Patch requests.
682	ForceSendFields []string `json:"-"`
683
684	// NullFields is a list of field names (e.g. "Email") to include in API
685	// requests with the JSON null value. By default, fields with empty
686	// values are omitted from API requests. However, any field with an
687	// empty value appearing in NullFields will be sent to the server as
688	// null. It is an error if a field in this list has a non-empty value.
689	// This may be used to include null fields in Patch requests.
690	NullFields []string `json:"-"`
691}
692
693func (s *OrderCustomer) MarshalJSON() ([]byte, error) {
694	type NoMethod OrderCustomer
695	raw := NoMethod(*s)
696	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
697}
698
699type OrderCustomerMarketingRightsInfo struct {
700	// ExplicitMarketingPreference: Last known user selection regarding
701	// marketing preferences. In certain cases this selection might not be
702	// known, so this field would be empty.
703	ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
704
705	// LastUpdatedTimestamp: Timestamp when last time marketing preference
706	// was updated. Could be empty, if user wasn't offered a selection yet.
707	LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
708
709	// MarketingEmailAddress: Email address that can be used for marketing
710	// purposes. This field is only filled when explicitMarketingPreference
711	// is equal to 'granted'.
712	MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`
713
714	// ForceSendFields is a list of field names (e.g.
715	// "ExplicitMarketingPreference") to unconditionally include in API
716	// requests. By default, fields with empty values are omitted from API
717	// requests. However, any non-pointer, non-interface field appearing in
718	// ForceSendFields will be sent to the server regardless of whether the
719	// field is empty or not. This may be used to include empty fields in
720	// Patch requests.
721	ForceSendFields []string `json:"-"`
722
723	// NullFields is a list of field names (e.g.
724	// "ExplicitMarketingPreference") to include in API requests with the
725	// JSON null value. By default, fields with empty values are omitted
726	// from API requests. However, any field with an empty value appearing
727	// in NullFields will be sent to the server as null. It is an error if a
728	// field in this list has a non-empty value. This may be used to include
729	// null fields in Patch requests.
730	NullFields []string `json:"-"`
731}
732
733func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
734	type NoMethod OrderCustomerMarketingRightsInfo
735	raw := NoMethod(*s)
736	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
737}
738
739type OrderDeliveryDetails struct {
740	// Address: The delivery address
741	Address *OrderAddress `json:"address,omitempty"`
742
743	// PhoneNumber: The phone number of the person receiving the delivery.
744	PhoneNumber string `json:"phoneNumber,omitempty"`
745
746	// ForceSendFields is a list of field names (e.g. "Address") to
747	// unconditionally include in API requests. By default, fields with
748	// empty values are omitted from API requests. However, any non-pointer,
749	// non-interface field appearing in ForceSendFields will be sent to the
750	// server regardless of whether the field is empty or not. This may be
751	// used to include empty fields in Patch requests.
752	ForceSendFields []string `json:"-"`
753
754	// NullFields is a list of field names (e.g. "Address") to include in
755	// API requests with the JSON null value. By default, fields with empty
756	// values are omitted from API requests. However, any field with an
757	// empty value appearing in NullFields will be sent to the server as
758	// null. It is an error if a field in this list has a non-empty value.
759	// This may be used to include null fields in Patch requests.
760	NullFields []string `json:"-"`
761}
762
763func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error) {
764	type NoMethod OrderDeliveryDetails
765	raw := NoMethod(*s)
766	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
767}
768
769type OrderLegacyPromotion struct {
770	Benefits []*OrderLegacyPromotionBenefit `json:"benefits,omitempty"`
771
772	// EffectiveDates: The date and time frame when the promotion is active
773	// and ready for validation review. Note that the promotion live time
774	// may be delayed for a few hours due to the validation review.
775	// Start date and end date are separated by a forward slash (/). The
776	// start date is specified by the format (YYYY-MM-DD), followed by the
777	// letter ?T?, the time of the day when the sale starts (in Greenwich
778	// Mean Time, GMT), followed by an expression of the time zone for the
779	// sale. The end date is in the same format.
780	EffectiveDates string `json:"effectiveDates,omitempty"`
781
782	// GenericRedemptionCode: Optional. The text code that corresponds to
783	// the promotion when applied on the retailer?s website.
784	GenericRedemptionCode string `json:"genericRedemptionCode,omitempty"`
785
786	// Id: The unique ID of the promotion.
787	Id string `json:"id,omitempty"`
788
789	// LongTitle: The full title of the promotion.
790	LongTitle string `json:"longTitle,omitempty"`
791
792	// ProductApplicability: Whether the promotion is applicable to all
793	// products or only specific products.
794	ProductApplicability string `json:"productApplicability,omitempty"`
795
796	// RedemptionChannel: Indicates that the promotion is valid online.
797	RedemptionChannel string `json:"redemptionChannel,omitempty"`
798
799	// ForceSendFields is a list of field names (e.g. "Benefits") to
800	// unconditionally include in API requests. By default, fields with
801	// empty values are omitted from API requests. However, any non-pointer,
802	// non-interface field appearing in ForceSendFields will be sent to the
803	// server regardless of whether the field is empty or not. This may be
804	// used to include empty fields in Patch requests.
805	ForceSendFields []string `json:"-"`
806
807	// NullFields is a list of field names (e.g. "Benefits") to include in
808	// API requests with the JSON null value. By default, fields with empty
809	// values are omitted from API requests. However, any field with an
810	// empty value appearing in NullFields will be sent to the server as
811	// null. It is an error if a field in this list has a non-empty value.
812	// This may be used to include null fields in Patch requests.
813	NullFields []string `json:"-"`
814}
815
816func (s *OrderLegacyPromotion) MarshalJSON() ([]byte, error) {
817	type NoMethod OrderLegacyPromotion
818	raw := NoMethod(*s)
819	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
820}
821
822type OrderLegacyPromotionBenefit struct {
823	// Discount: The discount in the order price when the promotion is
824	// applied.
825	Discount *Price `json:"discount,omitempty"`
826
827	// OfferIds: The OfferId(s) that were purchased in this order and map to
828	// this specific benefit of the promotion.
829	OfferIds []string `json:"offerIds,omitempty"`
830
831	// SubType: Further describes the benefit of the promotion. Note that we
832	// will expand on this enumeration as we support new promotion
833	// sub-types.
834	SubType string `json:"subType,omitempty"`
835
836	// TaxImpact: The impact on tax when the promotion is applied.
837	TaxImpact *Price `json:"taxImpact,omitempty"`
838
839	// Type: Describes whether the promotion applies to products (e.g. 20%
840	// off) or to shipping (e.g. Free Shipping).
841	Type string `json:"type,omitempty"`
842
843	// ForceSendFields is a list of field names (e.g. "Discount") to
844	// unconditionally include in API requests. By default, fields with
845	// empty values are omitted from API requests. However, any non-pointer,
846	// non-interface field appearing in ForceSendFields will be sent to the
847	// server regardless of whether the field is empty or not. This may be
848	// used to include empty fields in Patch requests.
849	ForceSendFields []string `json:"-"`
850
851	// NullFields is a list of field names (e.g. "Discount") to include in
852	// API requests with the JSON null value. By default, fields with empty
853	// values are omitted from API requests. However, any field with an
854	// empty value appearing in NullFields will be sent to the server as
855	// null. It is an error if a field in this list has a non-empty value.
856	// This may be used to include null fields in Patch requests.
857	NullFields []string `json:"-"`
858}
859
860func (s *OrderLegacyPromotionBenefit) MarshalJSON() ([]byte, error) {
861	type NoMethod OrderLegacyPromotionBenefit
862	raw := NoMethod(*s)
863	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
864}
865
866type OrderLineItem struct {
867	// Annotations: Annotations that are attached to the line item.
868	Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`
869
870	// Cancellations: Cancellations of the line item.
871	Cancellations []*OrderCancellation `json:"cancellations,omitempty"`
872
873	// Id: The id of the line item.
874	Id string `json:"id,omitempty"`
875
876	// Price: Total price for the line item. For example, if two items for
877	// $10 are purchased, the total price will be $20.
878	Price *Price `json:"price,omitempty"`
879
880	// Product: Product data from the time of the order placement.
881	Product *OrderLineItemProduct `json:"product,omitempty"`
882
883	// QuantityCanceled: Number of items canceled.
884	QuantityCanceled int64 `json:"quantityCanceled,omitempty"`
885
886	// QuantityDelivered: Number of items delivered.
887	QuantityDelivered int64 `json:"quantityDelivered,omitempty"`
888
889	// QuantityOrdered: Number of items ordered.
890	QuantityOrdered int64 `json:"quantityOrdered,omitempty"`
891
892	// QuantityPending: Number of items pending.
893	QuantityPending int64 `json:"quantityPending,omitempty"`
894
895	// QuantityReturned: Number of items returned.
896	QuantityReturned int64 `json:"quantityReturned,omitempty"`
897
898	// QuantityShipped: Number of items shipped.
899	QuantityShipped int64 `json:"quantityShipped,omitempty"`
900
901	// ReturnInfo: Details of the return policy for the line item.
902	ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`
903
904	// Returns: Returns of the line item.
905	Returns []*OrderReturn `json:"returns,omitempty"`
906
907	// ShippingDetails: Details of the requested shipping for the line item.
908	ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`
909
910	// Tax: Total tax amount for the line item. For example, if two items
911	// are purchased, and each have a cost tax of $2, the total tax amount
912	// will be $4.
913	Tax *Price `json:"tax,omitempty"`
914
915	// ForceSendFields is a list of field names (e.g. "Annotations") to
916	// unconditionally include in API requests. By default, fields with
917	// empty values are omitted from API requests. However, any non-pointer,
918	// non-interface field appearing in ForceSendFields will be sent to the
919	// server regardless of whether the field is empty or not. This may be
920	// used to include empty fields in Patch requests.
921	ForceSendFields []string `json:"-"`
922
923	// NullFields is a list of field names (e.g. "Annotations") to include
924	// in API requests with the JSON null value. By default, fields with
925	// empty values are omitted from API requests. However, any field with
926	// an empty value appearing in NullFields will be sent to the server as
927	// null. It is an error if a field in this list has a non-empty value.
928	// This may be used to include null fields in Patch requests.
929	NullFields []string `json:"-"`
930}
931
932func (s *OrderLineItem) MarshalJSON() ([]byte, error) {
933	type NoMethod OrderLineItem
934	raw := NoMethod(*s)
935	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
936}
937
938type OrderLineItemProduct struct {
939	// Brand: Brand of the item.
940	Brand string `json:"brand,omitempty"`
941
942	// Channel: The item's channel (online or local).
943	Channel string `json:"channel,omitempty"`
944
945	// Condition: Condition or state of the item.
946	Condition string `json:"condition,omitempty"`
947
948	// ContentLanguage: The two-letter ISO 639-1 language code for the item.
949	ContentLanguage string `json:"contentLanguage,omitempty"`
950
951	// Gtin: Global Trade Item Number (GTIN) of the item.
952	Gtin string `json:"gtin,omitempty"`
953
954	// Id: The REST id of the product.
955	Id string `json:"id,omitempty"`
956
957	// ImageLink: URL of an image of the item.
958	ImageLink string `json:"imageLink,omitempty"`
959
960	// ItemGroupId: Shared identifier for all variants of the same product.
961	ItemGroupId string `json:"itemGroupId,omitempty"`
962
963	// Mpn: Manufacturer Part Number (MPN) of the item.
964	Mpn string `json:"mpn,omitempty"`
965
966	// OfferId: An identifier of the item.
967	OfferId string `json:"offerId,omitempty"`
968
969	// Price: Price of the item.
970	Price *Price `json:"price,omitempty"`
971
972	// ShownImage: URL to the cached image shown to the user when order was
973	// placed.
974	ShownImage string `json:"shownImage,omitempty"`
975
976	// TargetCountry: The CLDR territory code of the target country of the
977	// product.
978	TargetCountry string `json:"targetCountry,omitempty"`
979
980	// Title: The title of the product.
981	Title string `json:"title,omitempty"`
982
983	// VariantAttributes: Variant attributes for the item. These are
984	// dimensions of the product, such as color, gender, material, pattern,
985	// and size. You can find a comprehensive list of variant attributes
986	// here.
987	VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`
988
989	// ForceSendFields is a list of field names (e.g. "Brand") to
990	// unconditionally include in API requests. By default, fields with
991	// empty values are omitted from API requests. However, any non-pointer,
992	// non-interface field appearing in ForceSendFields will be sent to the
993	// server regardless of whether the field is empty or not. This may be
994	// used to include empty fields in Patch requests.
995	ForceSendFields []string `json:"-"`
996
997	// NullFields is a list of field names (e.g. "Brand") to include in API
998	// requests with the JSON null value. By default, fields with empty
999	// values are omitted from API requests. However, any field with an
1000	// empty value appearing in NullFields will be sent to the server as
1001	// null. It is an error if a field in this list has a non-empty value.
1002	// This may be used to include null fields in Patch requests.
1003	NullFields []string `json:"-"`
1004}
1005
1006func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error) {
1007	type NoMethod OrderLineItemProduct
1008	raw := NoMethod(*s)
1009	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1010}
1011
1012type OrderLineItemProductVariantAttribute struct {
1013	// Dimension: The dimension of the variant.
1014	Dimension string `json:"dimension,omitempty"`
1015
1016	// Value: The value for the dimension.
1017	Value string `json:"value,omitempty"`
1018
1019	// ForceSendFields is a list of field names (e.g. "Dimension") to
1020	// unconditionally include in API requests. By default, fields with
1021	// empty values are omitted from API requests. However, any non-pointer,
1022	// non-interface field appearing in ForceSendFields will be sent to the
1023	// server regardless of whether the field is empty or not. This may be
1024	// used to include empty fields in Patch requests.
1025	ForceSendFields []string `json:"-"`
1026
1027	// NullFields is a list of field names (e.g. "Dimension") to include in
1028	// API requests with the JSON null value. By default, fields with empty
1029	// values are omitted from API requests. However, any field with an
1030	// empty value appearing in NullFields will be sent to the server as
1031	// null. It is an error if a field in this list has a non-empty value.
1032	// This may be used to include null fields in Patch requests.
1033	NullFields []string `json:"-"`
1034}
1035
1036func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error) {
1037	type NoMethod OrderLineItemProductVariantAttribute
1038	raw := NoMethod(*s)
1039	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1040}
1041
1042type OrderLineItemReturnInfo struct {
1043	// DaysToReturn: How many days later the item can be returned.
1044	DaysToReturn int64 `json:"daysToReturn,omitempty"`
1045
1046	// IsReturnable: Whether the item is returnable.
1047	IsReturnable bool `json:"isReturnable,omitempty"`
1048
1049	// PolicyUrl: URL of the item return policy.
1050	PolicyUrl string `json:"policyUrl,omitempty"`
1051
1052	// ForceSendFields is a list of field names (e.g. "DaysToReturn") to
1053	// unconditionally include in API requests. By default, fields with
1054	// empty values are omitted from API requests. However, any non-pointer,
1055	// non-interface field appearing in ForceSendFields will be sent to the
1056	// server regardless of whether the field is empty or not. This may be
1057	// used to include empty fields in Patch requests.
1058	ForceSendFields []string `json:"-"`
1059
1060	// NullFields is a list of field names (e.g. "DaysToReturn") to include
1061	// in API requests with the JSON null value. By default, fields with
1062	// empty values are omitted from API requests. However, any field with
1063	// an empty value appearing in NullFields will be sent to the server as
1064	// null. It is an error if a field in this list has a non-empty value.
1065	// This may be used to include null fields in Patch requests.
1066	NullFields []string `json:"-"`
1067}
1068
1069func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error) {
1070	type NoMethod OrderLineItemReturnInfo
1071	raw := NoMethod(*s)
1072	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1073}
1074
1075type OrderLineItemShippingDetails struct {
1076	// DeliverByDate: The delivery by date, in ISO 8601 format.
1077	DeliverByDate string `json:"deliverByDate,omitempty"`
1078
1079	// Method: Details of the shipping method.
1080	Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"`
1081
1082	// ShipByDate: The ship by date, in ISO 8601 format.
1083	ShipByDate string `json:"shipByDate,omitempty"`
1084
1085	// ForceSendFields is a list of field names (e.g. "DeliverByDate") to
1086	// unconditionally include in API requests. By default, fields with
1087	// empty values are omitted from API requests. However, any non-pointer,
1088	// non-interface field appearing in ForceSendFields will be sent to the
1089	// server regardless of whether the field is empty or not. This may be
1090	// used to include empty fields in Patch requests.
1091	ForceSendFields []string `json:"-"`
1092
1093	// NullFields is a list of field names (e.g. "DeliverByDate") to include
1094	// in API requests with the JSON null value. By default, fields with
1095	// empty values are omitted from API requests. However, any field with
1096	// an empty value appearing in NullFields will be sent to the server as
1097	// null. It is an error if a field in this list has a non-empty value.
1098	// This may be used to include null fields in Patch requests.
1099	NullFields []string `json:"-"`
1100}
1101
1102func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) {
1103	type NoMethod OrderLineItemShippingDetails
1104	raw := NoMethod(*s)
1105	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1106}
1107
1108type OrderLineItemShippingDetailsMethod struct {
1109	// Carrier: The carrier for the shipping. Optional. See
1110	// shipments[].carrier for a list of acceptable values.
1111	Carrier string `json:"carrier,omitempty"`
1112
1113	// MaxDaysInTransit: Maximum transit time.
1114	MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"`
1115
1116	// MethodName: The name of the shipping method.
1117	MethodName string `json:"methodName,omitempty"`
1118
1119	// MinDaysInTransit: Minimum transit time.
1120	MinDaysInTransit int64 `json:"minDaysInTransit,omitempty"`
1121
1122	// ForceSendFields is a list of field names (e.g. "Carrier") to
1123	// unconditionally include in API requests. By default, fields with
1124	// empty values are omitted from API requests. However, any non-pointer,
1125	// non-interface field appearing in ForceSendFields will be sent to the
1126	// server regardless of whether the field is empty or not. This may be
1127	// used to include empty fields in Patch requests.
1128	ForceSendFields []string `json:"-"`
1129
1130	// NullFields is a list of field names (e.g. "Carrier") to include in
1131	// API requests with the JSON null value. By default, fields with empty
1132	// values are omitted from API requests. However, any field with an
1133	// empty value appearing in NullFields will be sent to the server as
1134	// null. It is an error if a field in this list has a non-empty value.
1135	// This may be used to include null fields in Patch requests.
1136	NullFields []string `json:"-"`
1137}
1138
1139func (s *OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error) {
1140	type NoMethod OrderLineItemShippingDetailsMethod
1141	raw := NoMethod(*s)
1142	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1143}
1144
1145type OrderMerchantProvidedAnnotation struct {
1146	// Key: Key for additional merchant provided (as key-value pairs)
1147	// annotation about the line item.
1148	Key string `json:"key,omitempty"`
1149
1150	// Value: Value for additional merchant provided (as key-value pairs)
1151	// annotation about the line item.
1152	Value string `json:"value,omitempty"`
1153
1154	// ForceSendFields is a list of field names (e.g. "Key") to
1155	// unconditionally include in API requests. By default, fields with
1156	// empty values are omitted from API requests. However, any non-pointer,
1157	// non-interface field appearing in ForceSendFields will be sent to the
1158	// server regardless of whether the field is empty or not. This may be
1159	// used to include empty fields in Patch requests.
1160	ForceSendFields []string `json:"-"`
1161
1162	// NullFields is a list of field names (e.g. "Key") to include in API
1163	// requests with the JSON null value. By default, fields with empty
1164	// values are omitted from API requests. However, any field with an
1165	// empty value appearing in NullFields will be sent to the server as
1166	// null. It is an error if a field in this list has a non-empty value.
1167	// This may be used to include null fields in Patch requests.
1168	NullFields []string `json:"-"`
1169}
1170
1171func (s *OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error) {
1172	type NoMethod OrderMerchantProvidedAnnotation
1173	raw := NoMethod(*s)
1174	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1175}
1176
1177type OrderPaymentMethod struct {
1178	// BillingAddress: The billing address.
1179	BillingAddress *OrderAddress `json:"billingAddress,omitempty"`
1180
1181	// ExpirationMonth: The card expiration month (January = 1, February = 2
1182	// etc.).
1183	ExpirationMonth int64 `json:"expirationMonth,omitempty"`
1184
1185	// ExpirationYear: The card expiration year (4-digit, e.g. 2015).
1186	ExpirationYear int64 `json:"expirationYear,omitempty"`
1187
1188	// LastFourDigits: The last four digits of the card number.
1189	LastFourDigits string `json:"lastFourDigits,omitempty"`
1190
1191	// PhoneNumber: The billing phone number.
1192	PhoneNumber string `json:"phoneNumber,omitempty"`
1193
1194	// Type: The type of instrument.
1195	//
1196	// Acceptable values are:
1197	// - "AMEX"
1198	// - "DISCOVER"
1199	// - "JCB"
1200	// - "MASTERCARD"
1201	// - "UNIONPAY"
1202	// - "VISA"
1203	// - ""
1204	Type string `json:"type,omitempty"`
1205
1206	// ForceSendFields is a list of field names (e.g. "BillingAddress") to
1207	// unconditionally include in API requests. By default, fields with
1208	// empty values are omitted from API requests. However, any non-pointer,
1209	// non-interface field appearing in ForceSendFields will be sent to the
1210	// server regardless of whether the field is empty or not. This may be
1211	// used to include empty fields in Patch requests.
1212	ForceSendFields []string `json:"-"`
1213
1214	// NullFields is a list of field names (e.g. "BillingAddress") to
1215	// include in API requests with the JSON null value. By default, fields
1216	// with empty values are omitted from API requests. However, any field
1217	// with an empty value appearing in NullFields will be sent to the
1218	// server as null. It is an error if a field in this list has a
1219	// non-empty value. This may be used to include null fields in Patch
1220	// requests.
1221	NullFields []string `json:"-"`
1222}
1223
1224func (s *OrderPaymentMethod) MarshalJSON() ([]byte, error) {
1225	type NoMethod OrderPaymentMethod
1226	raw := NoMethod(*s)
1227	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1228}
1229
1230type OrderRefund struct {
1231	// Actor: The actor that created the refund.
1232	Actor string `json:"actor,omitempty"`
1233
1234	// Amount: The amount that is refunded.
1235	Amount *Price `json:"amount,omitempty"`
1236
1237	// CreationDate: Date on which the item has been created, in ISO 8601
1238	// format.
1239	CreationDate string `json:"creationDate,omitempty"`
1240
1241	// Reason: The reason for the refund.
1242	Reason string `json:"reason,omitempty"`
1243
1244	// ReasonText: The explanation of the reason.
1245	ReasonText string `json:"reasonText,omitempty"`
1246
1247	// ForceSendFields is a list of field names (e.g. "Actor") to
1248	// unconditionally include in API requests. By default, fields with
1249	// empty values are omitted from API requests. However, any non-pointer,
1250	// non-interface field appearing in ForceSendFields will be sent to the
1251	// server regardless of whether the field is empty or not. This may be
1252	// used to include empty fields in Patch requests.
1253	ForceSendFields []string `json:"-"`
1254
1255	// NullFields is a list of field names (e.g. "Actor") to include in API
1256	// requests with the JSON null value. By default, fields with empty
1257	// values are omitted from API requests. However, any field with an
1258	// empty value appearing in NullFields will be sent to the server as
1259	// null. It is an error if a field in this list has a non-empty value.
1260	// This may be used to include null fields in Patch requests.
1261	NullFields []string `json:"-"`
1262}
1263
1264func (s *OrderRefund) MarshalJSON() ([]byte, error) {
1265	type NoMethod OrderRefund
1266	raw := NoMethod(*s)
1267	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1268}
1269
1270type OrderReturn struct {
1271	// Actor: The actor that created the refund.
1272	Actor string `json:"actor,omitempty"`
1273
1274	// CreationDate: Date on which the item has been created, in ISO 8601
1275	// format.
1276	CreationDate string `json:"creationDate,omitempty"`
1277
1278	// Quantity: Quantity that is returned.
1279	Quantity int64 `json:"quantity,omitempty"`
1280
1281	// Reason: The reason for the return.
1282	Reason string `json:"reason,omitempty"`
1283
1284	// ReasonText: The explanation of the reason.
1285	ReasonText string `json:"reasonText,omitempty"`
1286
1287	// ForceSendFields is a list of field names (e.g. "Actor") to
1288	// unconditionally include in API requests. By default, fields with
1289	// empty values are omitted from API requests. However, any non-pointer,
1290	// non-interface field appearing in ForceSendFields will be sent to the
1291	// server regardless of whether the field is empty or not. This may be
1292	// used to include empty fields in Patch requests.
1293	ForceSendFields []string `json:"-"`
1294
1295	// NullFields is a list of field names (e.g. "Actor") to include in API
1296	// requests with the JSON null value. By default, fields with empty
1297	// values are omitted from API requests. However, any field with an
1298	// empty value appearing in NullFields will be sent to the server as
1299	// null. It is an error if a field in this list has a non-empty value.
1300	// This may be used to include null fields in Patch requests.
1301	NullFields []string `json:"-"`
1302}
1303
1304func (s *OrderReturn) MarshalJSON() ([]byte, error) {
1305	type NoMethod OrderReturn
1306	raw := NoMethod(*s)
1307	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1308}
1309
1310type OrderShipment struct {
1311	// Carrier: The carrier handling the shipment.
1312	//
1313	// Acceptable values are:
1314	// - "gsx"
1315	// - "ups"
1316	// - "usps"
1317	// - "fedex"
1318	// - "dhl"
1319	// - "ecourier"
1320	// - "cxt"
1321	// - "google"
1322	// - "ontrac"
1323	// - "emsy"
1324	// - "ont"
1325	// - "deliv"
1326	// - "dynamex"
1327	// - "lasership"
1328	// - "mpx"
1329	// - "uds"
1330	Carrier string `json:"carrier,omitempty"`
1331
1332	// CreationDate: Date on which the shipment has been created, in ISO
1333	// 8601 format.
1334	CreationDate string `json:"creationDate,omitempty"`
1335
1336	// DeliveryDate: Date on which the shipment has been delivered, in ISO
1337	// 8601 format. Present only if status is delivered
1338	DeliveryDate string `json:"deliveryDate,omitempty"`
1339
1340	// Id: The id of the shipment.
1341	Id string `json:"id,omitempty"`
1342
1343	// LineItems: The line items that are shipped.
1344	LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
1345
1346	// Status: The status of the shipment.
1347	Status string `json:"status,omitempty"`
1348
1349	// TrackingId: The tracking id for the shipment.
1350	TrackingId string `json:"trackingId,omitempty"`
1351
1352	// ForceSendFields is a list of field names (e.g. "Carrier") to
1353	// unconditionally include in API requests. By default, fields with
1354	// empty values are omitted from API requests. However, any non-pointer,
1355	// non-interface field appearing in ForceSendFields will be sent to the
1356	// server regardless of whether the field is empty or not. This may be
1357	// used to include empty fields in Patch requests.
1358	ForceSendFields []string `json:"-"`
1359
1360	// NullFields is a list of field names (e.g. "Carrier") to include in
1361	// API requests with the JSON null value. By default, fields with empty
1362	// values are omitted from API requests. However, any field with an
1363	// empty value appearing in NullFields will be sent to the server as
1364	// null. It is an error if a field in this list has a non-empty value.
1365	// This may be used to include null fields in Patch requests.
1366	NullFields []string `json:"-"`
1367}
1368
1369func (s *OrderShipment) MarshalJSON() ([]byte, error) {
1370	type NoMethod OrderShipment
1371	raw := NoMethod(*s)
1372	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1373}
1374
1375type OrderShipmentLineItemShipment struct {
1376	// LineItemId: The id of the line item that is shipped. Either
1377	// lineItemId or productId is required.
1378	LineItemId string `json:"lineItemId,omitempty"`
1379
1380	// ProductId: The ID of the product to ship. This is the REST ID used in
1381	// the products service. Either lineItemId or productId is required.
1382	ProductId string `json:"productId,omitempty"`
1383
1384	// Quantity: The quantity that is shipped.
1385	Quantity int64 `json:"quantity,omitempty"`
1386
1387	// ForceSendFields is a list of field names (e.g. "LineItemId") to
1388	// unconditionally include in API requests. By default, fields with
1389	// empty values are omitted from API requests. However, any non-pointer,
1390	// non-interface field appearing in ForceSendFields will be sent to the
1391	// server regardless of whether the field is empty or not. This may be
1392	// used to include empty fields in Patch requests.
1393	ForceSendFields []string `json:"-"`
1394
1395	// NullFields is a list of field names (e.g. "LineItemId") to include in
1396	// API requests with the JSON null value. By default, fields with empty
1397	// values are omitted from API requests. However, any field with an
1398	// empty value appearing in NullFields will be sent to the server as
1399	// null. It is an error if a field in this list has a non-empty value.
1400	// This may be used to include null fields in Patch requests.
1401	NullFields []string `json:"-"`
1402}
1403
1404func (s *OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error) {
1405	type NoMethod OrderShipmentLineItemShipment
1406	raw := NoMethod(*s)
1407	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1408}
1409
1410type OrderinvoicesCreateChargeInvoiceRequest struct {
1411	// InvoiceId: [required] The ID of the invoice.
1412	InvoiceId string `json:"invoiceId,omitempty"`
1413
1414	// InvoiceSummary: [required] Invoice summary.
1415	InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`
1416
1417	// LineItemInvoices: [required] Invoice details per line item.
1418	LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`
1419
1420	// OperationId: [required] The ID of the operation, unique across all
1421	// operations for a given order.
1422	OperationId string `json:"operationId,omitempty"`
1423
1424	// ShipmentGroupId: [required] ID of the shipment group.
1425	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
1426
1427	// ForceSendFields is a list of field names (e.g. "InvoiceId") to
1428	// unconditionally include in API requests. By default, fields with
1429	// empty values are omitted from API requests. However, any non-pointer,
1430	// non-interface field appearing in ForceSendFields will be sent to the
1431	// server regardless of whether the field is empty or not. This may be
1432	// used to include empty fields in Patch requests.
1433	ForceSendFields []string `json:"-"`
1434
1435	// NullFields is a list of field names (e.g. "InvoiceId") to include in
1436	// API requests with the JSON null value. By default, fields with empty
1437	// values are omitted from API requests. However, any field with an
1438	// empty value appearing in NullFields will be sent to the server as
1439	// null. It is an error if a field in this list has a non-empty value.
1440	// This may be used to include null fields in Patch requests.
1441	NullFields []string `json:"-"`
1442}
1443
1444func (s *OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) {
1445	type NoMethod OrderinvoicesCreateChargeInvoiceRequest
1446	raw := NoMethod(*s)
1447	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1448}
1449
1450type OrderinvoicesCreateChargeInvoiceResponse struct {
1451	// ExecutionStatus: The status of the execution.
1452	ExecutionStatus string `json:"executionStatus,omitempty"`
1453
1454	// Kind: Identifies what kind of resource this is. Value: the fixed
1455	// string "content#orderinvoicesCreateChargeInvoiceResponse".
1456	Kind string `json:"kind,omitempty"`
1457
1458	// ServerResponse contains the HTTP response code and headers from the
1459	// server.
1460	googleapi.ServerResponse `json:"-"`
1461
1462	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
1463	// unconditionally include in API requests. By default, fields with
1464	// empty values are omitted from API requests. However, any non-pointer,
1465	// non-interface field appearing in ForceSendFields will be sent to the
1466	// server regardless of whether the field is empty or not. This may be
1467	// used to include empty fields in Patch requests.
1468	ForceSendFields []string `json:"-"`
1469
1470	// NullFields is a list of field names (e.g. "ExecutionStatus") to
1471	// include in API requests with the JSON null value. By default, fields
1472	// with empty values are omitted from API requests. However, any field
1473	// with an empty value appearing in NullFields will be sent to the
1474	// server as null. It is an error if a field in this list has a
1475	// non-empty value. This may be used to include null fields in Patch
1476	// requests.
1477	NullFields []string `json:"-"`
1478}
1479
1480func (s *OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error) {
1481	type NoMethod OrderinvoicesCreateChargeInvoiceResponse
1482	raw := NoMethod(*s)
1483	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1484}
1485
1486type OrderinvoicesCreateRefundInvoiceRequest struct {
1487	// InvoiceId: [required] The ID of the invoice.
1488	InvoiceId string `json:"invoiceId,omitempty"`
1489
1490	// OperationId: [required] The ID of the operation, unique across all
1491	// operations for a given order.
1492	OperationId string `json:"operationId,omitempty"`
1493
1494	// RefundOnlyOption: Option to create a refund-only invoice. Exactly one
1495	// of refundOnlyOption or returnOption must be provided.
1496	RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"`
1497
1498	// ReturnOption: Option to create an invoice for a refund and mark all
1499	// items within the invoice as returned. Exactly one of refundOnlyOption
1500	// or returnOption must be provided.
1501	ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"`
1502
1503	// ShipmentInvoices: Invoice details for different shipment groups.
1504	ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"`
1505
1506	// ForceSendFields is a list of field names (e.g. "InvoiceId") to
1507	// unconditionally include in API requests. By default, fields with
1508	// empty values are omitted from API requests. However, any non-pointer,
1509	// non-interface field appearing in ForceSendFields will be sent to the
1510	// server regardless of whether the field is empty or not. This may be
1511	// used to include empty fields in Patch requests.
1512	ForceSendFields []string `json:"-"`
1513
1514	// NullFields is a list of field names (e.g. "InvoiceId") to include in
1515	// API requests with the JSON null value. By default, fields with empty
1516	// values are omitted from API requests. However, any field with an
1517	// empty value appearing in NullFields will be sent to the server as
1518	// null. It is an error if a field in this list has a non-empty value.
1519	// This may be used to include null fields in Patch requests.
1520	NullFields []string `json:"-"`
1521}
1522
1523func (s *OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) {
1524	type NoMethod OrderinvoicesCreateRefundInvoiceRequest
1525	raw := NoMethod(*s)
1526	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1527}
1528
1529type OrderinvoicesCreateRefundInvoiceResponse struct {
1530	// ExecutionStatus: The status of the execution.
1531	ExecutionStatus string `json:"executionStatus,omitempty"`
1532
1533	// Kind: Identifies what kind of resource this is. Value: the fixed
1534	// string "content#orderinvoicesCreateRefundInvoiceResponse".
1535	Kind string `json:"kind,omitempty"`
1536
1537	// ServerResponse contains the HTTP response code and headers from the
1538	// server.
1539	googleapi.ServerResponse `json:"-"`
1540
1541	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
1542	// unconditionally include in API requests. By default, fields with
1543	// empty values are omitted from API requests. However, any non-pointer,
1544	// non-interface field appearing in ForceSendFields will be sent to the
1545	// server regardless of whether the field is empty or not. This may be
1546	// used to include empty fields in Patch requests.
1547	ForceSendFields []string `json:"-"`
1548
1549	// NullFields is a list of field names (e.g. "ExecutionStatus") to
1550	// include in API requests with the JSON null value. By default, fields
1551	// with empty values are omitted from API requests. However, any field
1552	// with an empty value appearing in NullFields will be sent to the
1553	// server as null. It is an error if a field in this list has a
1554	// non-empty value. This may be used to include null fields in Patch
1555	// requests.
1556	NullFields []string `json:"-"`
1557}
1558
1559func (s *OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error) {
1560	type NoMethod OrderinvoicesCreateRefundInvoiceResponse
1561	raw := NoMethod(*s)
1562	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1563}
1564
1565type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct {
1566	// Description: Optional description of the refund reason.
1567	Description string `json:"description,omitempty"`
1568
1569	// Reason: [required] Reason for the refund.
1570	Reason string `json:"reason,omitempty"`
1571
1572	// ForceSendFields is a list of field names (e.g. "Description") to
1573	// unconditionally include in API requests. By default, fields with
1574	// empty values are omitted from API requests. However, any non-pointer,
1575	// non-interface field appearing in ForceSendFields will be sent to the
1576	// server regardless of whether the field is empty or not. This may be
1577	// used to include empty fields in Patch requests.
1578	ForceSendFields []string `json:"-"`
1579
1580	// NullFields is a list of field names (e.g. "Description") to include
1581	// in API requests with the JSON null value. By default, fields with
1582	// empty values are omitted from API requests. However, any field with
1583	// an empty value appearing in NullFields will be sent to the server as
1584	// null. It is an error if a field in this list has a non-empty value.
1585	// This may be used to include null fields in Patch requests.
1586	NullFields []string `json:"-"`
1587}
1588
1589func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error) {
1590	type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
1591	raw := NoMethod(*s)
1592	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1593}
1594
1595type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct {
1596	// Description: Optional description of the return reason.
1597	Description string `json:"description,omitempty"`
1598
1599	// Reason: [required] Reason for the return.
1600	Reason string `json:"reason,omitempty"`
1601
1602	// ForceSendFields is a list of field names (e.g. "Description") to
1603	// unconditionally include in API requests. By default, fields with
1604	// empty values are omitted from API requests. However, any non-pointer,
1605	// non-interface field appearing in ForceSendFields will be sent to the
1606	// server regardless of whether the field is empty or not. This may be
1607	// used to include empty fields in Patch requests.
1608	ForceSendFields []string `json:"-"`
1609
1610	// NullFields is a list of field names (e.g. "Description") to include
1611	// in API requests with the JSON null value. By default, fields with
1612	// empty values are omitted from API requests. However, any field with
1613	// an empty value appearing in NullFields will be sent to the server as
1614	// null. It is an error if a field in this list has a non-empty value.
1615	// This may be used to include null fields in Patch requests.
1616	NullFields []string `json:"-"`
1617}
1618
1619func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error) {
1620	type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
1621	raw := NoMethod(*s)
1622	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1623}
1624
1625type OrderpaymentsNotifyAuthApprovedRequest struct {
1626	AuthAmountPretax *Price `json:"authAmountPretax,omitempty"`
1627
1628	AuthAmountTax *Price `json:"authAmountTax,omitempty"`
1629
1630	// ForceSendFields is a list of field names (e.g. "AuthAmountPretax") to
1631	// unconditionally include in API requests. By default, fields with
1632	// empty values are omitted from API requests. However, any non-pointer,
1633	// non-interface field appearing in ForceSendFields will be sent to the
1634	// server regardless of whether the field is empty or not. This may be
1635	// used to include empty fields in Patch requests.
1636	ForceSendFields []string `json:"-"`
1637
1638	// NullFields is a list of field names (e.g. "AuthAmountPretax") to
1639	// include in API requests with the JSON null value. By default, fields
1640	// with empty values are omitted from API requests. However, any field
1641	// with an empty value appearing in NullFields will be sent to the
1642	// server as null. It is an error if a field in this list has a
1643	// non-empty value. This may be used to include null fields in Patch
1644	// requests.
1645	NullFields []string `json:"-"`
1646}
1647
1648func (s *OrderpaymentsNotifyAuthApprovedRequest) MarshalJSON() ([]byte, error) {
1649	type NoMethod OrderpaymentsNotifyAuthApprovedRequest
1650	raw := NoMethod(*s)
1651	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1652}
1653
1654type OrderpaymentsNotifyAuthApprovedResponse struct {
1655	// ExecutionStatus: The status of the execution.
1656	ExecutionStatus string `json:"executionStatus,omitempty"`
1657
1658	// Kind: Identifies what kind of resource this is. Value: the fixed
1659	// string "content#orderpaymentsNotifyAuthApprovedResponse".
1660	Kind string `json:"kind,omitempty"`
1661
1662	// ServerResponse contains the HTTP response code and headers from the
1663	// server.
1664	googleapi.ServerResponse `json:"-"`
1665
1666	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
1667	// unconditionally include in API requests. By default, fields with
1668	// empty values are omitted from API requests. However, any non-pointer,
1669	// non-interface field appearing in ForceSendFields will be sent to the
1670	// server regardless of whether the field is empty or not. This may be
1671	// used to include empty fields in Patch requests.
1672	ForceSendFields []string `json:"-"`
1673
1674	// NullFields is a list of field names (e.g. "ExecutionStatus") to
1675	// include in API requests with the JSON null value. By default, fields
1676	// with empty values are omitted from API requests. However, any field
1677	// with an empty value appearing in NullFields will be sent to the
1678	// server as null. It is an error if a field in this list has a
1679	// non-empty value. This may be used to include null fields in Patch
1680	// requests.
1681	NullFields []string `json:"-"`
1682}
1683
1684func (s *OrderpaymentsNotifyAuthApprovedResponse) MarshalJSON() ([]byte, error) {
1685	type NoMethod OrderpaymentsNotifyAuthApprovedResponse
1686	raw := NoMethod(*s)
1687	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1688}
1689
1690type OrderpaymentsNotifyAuthDeclinedRequest struct {
1691	// DeclineReason: Reason why payment authorization was declined.
1692	DeclineReason string `json:"declineReason,omitempty"`
1693
1694	// ForceSendFields is a list of field names (e.g. "DeclineReason") to
1695	// unconditionally include in API requests. By default, fields with
1696	// empty values are omitted from API requests. However, any non-pointer,
1697	// non-interface field appearing in ForceSendFields will be sent to the
1698	// server regardless of whether the field is empty or not. This may be
1699	// used to include empty fields in Patch requests.
1700	ForceSendFields []string `json:"-"`
1701
1702	// NullFields is a list of field names (e.g. "DeclineReason") to include
1703	// in API requests with the JSON null value. By default, fields with
1704	// empty values are omitted from API requests. However, any field with
1705	// an empty value appearing in NullFields will be sent to the server as
1706	// null. It is an error if a field in this list has a non-empty value.
1707	// This may be used to include null fields in Patch requests.
1708	NullFields []string `json:"-"`
1709}
1710
1711func (s *OrderpaymentsNotifyAuthDeclinedRequest) MarshalJSON() ([]byte, error) {
1712	type NoMethod OrderpaymentsNotifyAuthDeclinedRequest
1713	raw := NoMethod(*s)
1714	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1715}
1716
1717type OrderpaymentsNotifyAuthDeclinedResponse struct {
1718	// ExecutionStatus: The status of the execution.
1719	ExecutionStatus string `json:"executionStatus,omitempty"`
1720
1721	// Kind: Identifies what kind of resource this is. Value: the fixed
1722	// string "content#orderpaymentsNotifyAuthDeclinedResponse".
1723	Kind string `json:"kind,omitempty"`
1724
1725	// ServerResponse contains the HTTP response code and headers from the
1726	// server.
1727	googleapi.ServerResponse `json:"-"`
1728
1729	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
1730	// unconditionally include in API requests. By default, fields with
1731	// empty values are omitted from API requests. However, any non-pointer,
1732	// non-interface field appearing in ForceSendFields will be sent to the
1733	// server regardless of whether the field is empty or not. This may be
1734	// used to include empty fields in Patch requests.
1735	ForceSendFields []string `json:"-"`
1736
1737	// NullFields is a list of field names (e.g. "ExecutionStatus") to
1738	// include in API requests with the JSON null value. By default, fields
1739	// with empty values are omitted from API requests. However, any field
1740	// with an empty value appearing in NullFields will be sent to the
1741	// server as null. It is an error if a field in this list has a
1742	// non-empty value. This may be used to include null fields in Patch
1743	// requests.
1744	NullFields []string `json:"-"`
1745}
1746
1747func (s *OrderpaymentsNotifyAuthDeclinedResponse) MarshalJSON() ([]byte, error) {
1748	type NoMethod OrderpaymentsNotifyAuthDeclinedResponse
1749	raw := NoMethod(*s)
1750	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1751}
1752
1753type OrderpaymentsNotifyChargeRequest struct {
1754	// ChargeState: Whether charge was successful.
1755	ChargeState string `json:"chargeState,omitempty"`
1756
1757	// InvoiceId: Deprecated. Please use invoiceIds instead.
1758	InvoiceId string `json:"invoiceId,omitempty"`
1759
1760	// InvoiceIds: Invoice IDs from the orderinvoices service that
1761	// correspond to the charge.
1762	InvoiceIds []string `json:"invoiceIds,omitempty"`
1763
1764	// ForceSendFields is a list of field names (e.g. "ChargeState") to
1765	// unconditionally include in API requests. By default, fields with
1766	// empty values are omitted from API requests. However, any non-pointer,
1767	// non-interface field appearing in ForceSendFields will be sent to the
1768	// server regardless of whether the field is empty or not. This may be
1769	// used to include empty fields in Patch requests.
1770	ForceSendFields []string `json:"-"`
1771
1772	// NullFields is a list of field names (e.g. "ChargeState") to include
1773	// in API requests with the JSON null value. By default, fields with
1774	// empty values are omitted from API requests. However, any field with
1775	// an empty value appearing in NullFields will be sent to the server as
1776	// null. It is an error if a field in this list has a non-empty value.
1777	// This may be used to include null fields in Patch requests.
1778	NullFields []string `json:"-"`
1779}
1780
1781func (s *OrderpaymentsNotifyChargeRequest) MarshalJSON() ([]byte, error) {
1782	type NoMethod OrderpaymentsNotifyChargeRequest
1783	raw := NoMethod(*s)
1784	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1785}
1786
1787type OrderpaymentsNotifyChargeResponse struct {
1788	// ExecutionStatus: The status of the execution.
1789	ExecutionStatus string `json:"executionStatus,omitempty"`
1790
1791	// Kind: Identifies what kind of resource this is. Value: the fixed
1792	// string "content#orderpaymentsNotifyChargeResponse".
1793	Kind string `json:"kind,omitempty"`
1794
1795	// ServerResponse contains the HTTP response code and headers from the
1796	// server.
1797	googleapi.ServerResponse `json:"-"`
1798
1799	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
1800	// unconditionally include in API requests. By default, fields with
1801	// empty values are omitted from API requests. However, any non-pointer,
1802	// non-interface field appearing in ForceSendFields will be sent to the
1803	// server regardless of whether the field is empty or not. This may be
1804	// used to include empty fields in Patch requests.
1805	ForceSendFields []string `json:"-"`
1806
1807	// NullFields is a list of field names (e.g. "ExecutionStatus") to
1808	// include in API requests with the JSON null value. By default, fields
1809	// with empty values are omitted from API requests. However, any field
1810	// with an empty value appearing in NullFields will be sent to the
1811	// server as null. It is an error if a field in this list has a
1812	// non-empty value. This may be used to include null fields in Patch
1813	// requests.
1814	NullFields []string `json:"-"`
1815}
1816
1817func (s *OrderpaymentsNotifyChargeResponse) MarshalJSON() ([]byte, error) {
1818	type NoMethod OrderpaymentsNotifyChargeResponse
1819	raw := NoMethod(*s)
1820	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1821}
1822
1823type OrderpaymentsNotifyRefundRequest struct {
1824	// InvoiceId: Deprecated. Please use invoiceIds instead.
1825	InvoiceId string `json:"invoiceId,omitempty"`
1826
1827	// InvoiceIds: Invoice IDs from the orderinvoices service that
1828	// correspond to the refund.
1829	InvoiceIds []string `json:"invoiceIds,omitempty"`
1830
1831	// RefundState: Whether refund was successful.
1832	RefundState string `json:"refundState,omitempty"`
1833
1834	// ForceSendFields is a list of field names (e.g. "InvoiceId") to
1835	// unconditionally include in API requests. By default, fields with
1836	// empty values are omitted from API requests. However, any non-pointer,
1837	// non-interface field appearing in ForceSendFields will be sent to the
1838	// server regardless of whether the field is empty or not. This may be
1839	// used to include empty fields in Patch requests.
1840	ForceSendFields []string `json:"-"`
1841
1842	// NullFields is a list of field names (e.g. "InvoiceId") to include in
1843	// API requests with the JSON null value. By default, fields with empty
1844	// values are omitted from API requests. However, any field with an
1845	// empty value appearing in NullFields will be sent to the server as
1846	// null. It is an error if a field in this list has a non-empty value.
1847	// This may be used to include null fields in Patch requests.
1848	NullFields []string `json:"-"`
1849}
1850
1851func (s *OrderpaymentsNotifyRefundRequest) MarshalJSON() ([]byte, error) {
1852	type NoMethod OrderpaymentsNotifyRefundRequest
1853	raw := NoMethod(*s)
1854	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1855}
1856
1857type OrderpaymentsNotifyRefundResponse struct {
1858	// ExecutionStatus: The status of the execution.
1859	ExecutionStatus string `json:"executionStatus,omitempty"`
1860
1861	// Kind: Identifies what kind of resource this is. Value: the fixed
1862	// string "content#orderpaymentsNotifyRefundResponse".
1863	Kind string `json:"kind,omitempty"`
1864
1865	// ServerResponse contains the HTTP response code and headers from the
1866	// server.
1867	googleapi.ServerResponse `json:"-"`
1868
1869	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
1870	// unconditionally include in API requests. By default, fields with
1871	// empty values are omitted from API requests. However, any non-pointer,
1872	// non-interface field appearing in ForceSendFields will be sent to the
1873	// server regardless of whether the field is empty or not. This may be
1874	// used to include empty fields in Patch requests.
1875	ForceSendFields []string `json:"-"`
1876
1877	// NullFields is a list of field names (e.g. "ExecutionStatus") to
1878	// include in API requests with the JSON null value. By default, fields
1879	// with empty values are omitted from API requests. However, any field
1880	// with an empty value appearing in NullFields will be sent to the
1881	// server as null. It is an error if a field in this list has a
1882	// non-empty value. This may be used to include null fields in Patch
1883	// requests.
1884	NullFields []string `json:"-"`
1885}
1886
1887func (s *OrderpaymentsNotifyRefundResponse) MarshalJSON() ([]byte, error) {
1888	type NoMethod OrderpaymentsNotifyRefundResponse
1889	raw := NoMethod(*s)
1890	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1891}
1892
1893type OrderreturnsListResponse struct {
1894	// Kind: Identifies what kind of resource this is. Value: the fixed
1895	// string "content#orderreturnsListResponse".
1896	Kind string `json:"kind,omitempty"`
1897
1898	// NextPageToken: The token for the retrieval of the next page of
1899	// returns.
1900	NextPageToken string `json:"nextPageToken,omitempty"`
1901
1902	Resources []*MerchantOrderReturn `json:"resources,omitempty"`
1903
1904	// ServerResponse contains the HTTP response code and headers from the
1905	// server.
1906	googleapi.ServerResponse `json:"-"`
1907
1908	// ForceSendFields is a list of field names (e.g. "Kind") to
1909	// unconditionally include in API requests. By default, fields with
1910	// empty values are omitted from API requests. However, any non-pointer,
1911	// non-interface field appearing in ForceSendFields will be sent to the
1912	// server regardless of whether the field is empty or not. This may be
1913	// used to include empty fields in Patch requests.
1914	ForceSendFields []string `json:"-"`
1915
1916	// NullFields is a list of field names (e.g. "Kind") to include in API
1917	// requests with the JSON null value. By default, fields with empty
1918	// values are omitted from API requests. However, any field with an
1919	// empty value appearing in NullFields will be sent to the server as
1920	// null. It is an error if a field in this list has a non-empty value.
1921	// This may be used to include null fields in Patch requests.
1922	NullFields []string `json:"-"`
1923}
1924
1925func (s *OrderreturnsListResponse) MarshalJSON() ([]byte, error) {
1926	type NoMethod OrderreturnsListResponse
1927	raw := NoMethod(*s)
1928	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1929}
1930
1931type OrdersAcknowledgeRequest struct {
1932	// OperationId: The ID of the operation. Unique across all operations
1933	// for a given order.
1934	OperationId string `json:"operationId,omitempty"`
1935
1936	// ForceSendFields is a list of field names (e.g. "OperationId") to
1937	// unconditionally include in API requests. By default, fields with
1938	// empty values are omitted from API requests. However, any non-pointer,
1939	// non-interface field appearing in ForceSendFields will be sent to the
1940	// server regardless of whether the field is empty or not. This may be
1941	// used to include empty fields in Patch requests.
1942	ForceSendFields []string `json:"-"`
1943
1944	// NullFields is a list of field names (e.g. "OperationId") to include
1945	// in API requests with the JSON null value. By default, fields with
1946	// empty values are omitted from API requests. However, any field with
1947	// an empty value appearing in NullFields will be sent to the server as
1948	// null. It is an error if a field in this list has a non-empty value.
1949	// This may be used to include null fields in Patch requests.
1950	NullFields []string `json:"-"`
1951}
1952
1953func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) {
1954	type NoMethod OrdersAcknowledgeRequest
1955	raw := NoMethod(*s)
1956	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1957}
1958
1959type OrdersAcknowledgeResponse struct {
1960	// ExecutionStatus: The status of the execution.
1961	ExecutionStatus string `json:"executionStatus,omitempty"`
1962
1963	// Kind: Identifies what kind of resource this is. Value: the fixed
1964	// string "content#ordersAcknowledgeResponse".
1965	Kind string `json:"kind,omitempty"`
1966
1967	// ServerResponse contains the HTTP response code and headers from the
1968	// server.
1969	googleapi.ServerResponse `json:"-"`
1970
1971	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
1972	// unconditionally include in API requests. By default, fields with
1973	// empty values are omitted from API requests. However, any non-pointer,
1974	// non-interface field appearing in ForceSendFields will be sent to the
1975	// server regardless of whether the field is empty or not. This may be
1976	// used to include empty fields in Patch requests.
1977	ForceSendFields []string `json:"-"`
1978
1979	// NullFields is a list of field names (e.g. "ExecutionStatus") to
1980	// include in API requests with the JSON null value. By default, fields
1981	// with empty values are omitted from API requests. However, any field
1982	// with an empty value appearing in NullFields will be sent to the
1983	// server as null. It is an error if a field in this list has a
1984	// non-empty value. This may be used to include null fields in Patch
1985	// requests.
1986	NullFields []string `json:"-"`
1987}
1988
1989func (s *OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error) {
1990	type NoMethod OrdersAcknowledgeResponse
1991	raw := NoMethod(*s)
1992	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
1993}
1994
1995type OrdersAdvanceTestOrderResponse struct {
1996	// Kind: Identifies what kind of resource this is. Value: the fixed
1997	// string "content#ordersAdvanceTestOrderResponse".
1998	Kind string `json:"kind,omitempty"`
1999
2000	// ServerResponse contains the HTTP response code and headers from the
2001	// server.
2002	googleapi.ServerResponse `json:"-"`
2003
2004	// ForceSendFields is a list of field names (e.g. "Kind") to
2005	// unconditionally include in API requests. By default, fields with
2006	// empty values are omitted from API requests. However, any non-pointer,
2007	// non-interface field appearing in ForceSendFields will be sent to the
2008	// server regardless of whether the field is empty or not. This may be
2009	// used to include empty fields in Patch requests.
2010	ForceSendFields []string `json:"-"`
2011
2012	// NullFields is a list of field names (e.g. "Kind") to include in API
2013	// requests with the JSON null value. By default, fields with empty
2014	// values are omitted from API requests. However, any field with an
2015	// empty value appearing in NullFields will be sent to the server as
2016	// null. It is an error if a field in this list has a non-empty value.
2017	// This may be used to include null fields in Patch requests.
2018	NullFields []string `json:"-"`
2019}
2020
2021func (s *OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error) {
2022	type NoMethod OrdersAdvanceTestOrderResponse
2023	raw := NoMethod(*s)
2024	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2025}
2026
2027type OrdersCancelLineItemRequest struct {
2028	// Amount: Deprecated. Please use amountPretax and amountTax instead.
2029	Amount *Price `json:"amount,omitempty"`
2030
2031	// AmountPretax: Amount to refund for the cancelation. Optional. If not
2032	// set, Google will calculate the default based on the price and tax of
2033	// the items involved. The amount must not be larger than the net amount
2034	// left on the order.
2035	AmountPretax *Price `json:"amountPretax,omitempty"`
2036
2037	// AmountTax: Tax amount that correspond to cancellation amount in
2038	// amountPretax.
2039	AmountTax *Price `json:"amountTax,omitempty"`
2040
2041	// LineItemId: The ID of the line item to cancel. Either lineItemId or
2042	// productId is required.
2043	LineItemId string `json:"lineItemId,omitempty"`
2044
2045	// OperationId: The ID of the operation. Unique across all operations
2046	// for a given order.
2047	OperationId string `json:"operationId,omitempty"`
2048
2049	// ProductId: The ID of the product to cancel. This is the REST ID used
2050	// in the products service. Either lineItemId or productId is required.
2051	ProductId string `json:"productId,omitempty"`
2052
2053	// Quantity: The quantity to cancel.
2054	Quantity int64 `json:"quantity,omitempty"`
2055
2056	// Reason: The reason for the cancellation.
2057	Reason string `json:"reason,omitempty"`
2058
2059	// ReasonText: The explanation of the reason.
2060	ReasonText string `json:"reasonText,omitempty"`
2061
2062	// ForceSendFields is a list of field names (e.g. "Amount") to
2063	// unconditionally include in API requests. By default, fields with
2064	// empty values are omitted from API requests. However, any non-pointer,
2065	// non-interface field appearing in ForceSendFields will be sent to the
2066	// server regardless of whether the field is empty or not. This may be
2067	// used to include empty fields in Patch requests.
2068	ForceSendFields []string `json:"-"`
2069
2070	// NullFields is a list of field names (e.g. "Amount") to include in API
2071	// requests with the JSON null value. By default, fields with empty
2072	// values are omitted from API requests. However, any field with an
2073	// empty value appearing in NullFields will be sent to the server as
2074	// null. It is an error if a field in this list has a non-empty value.
2075	// This may be used to include null fields in Patch requests.
2076	NullFields []string `json:"-"`
2077}
2078
2079func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) {
2080	type NoMethod OrdersCancelLineItemRequest
2081	raw := NoMethod(*s)
2082	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2083}
2084
2085type OrdersCancelLineItemResponse struct {
2086	// ExecutionStatus: The status of the execution.
2087	ExecutionStatus string `json:"executionStatus,omitempty"`
2088
2089	// Kind: Identifies what kind of resource this is. Value: the fixed
2090	// string "content#ordersCancelLineItemResponse".
2091	Kind string `json:"kind,omitempty"`
2092
2093	// ServerResponse contains the HTTP response code and headers from the
2094	// server.
2095	googleapi.ServerResponse `json:"-"`
2096
2097	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
2098	// unconditionally include in API requests. By default, fields with
2099	// empty values are omitted from API requests. However, any non-pointer,
2100	// non-interface field appearing in ForceSendFields will be sent to the
2101	// server regardless of whether the field is empty or not. This may be
2102	// used to include empty fields in Patch requests.
2103	ForceSendFields []string `json:"-"`
2104
2105	// NullFields is a list of field names (e.g. "ExecutionStatus") to
2106	// include in API requests with the JSON null value. By default, fields
2107	// with empty values are omitted from API requests. However, any field
2108	// with an empty value appearing in NullFields will be sent to the
2109	// server as null. It is an error if a field in this list has a
2110	// non-empty value. This may be used to include null fields in Patch
2111	// requests.
2112	NullFields []string `json:"-"`
2113}
2114
2115func (s *OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error) {
2116	type NoMethod OrdersCancelLineItemResponse
2117	raw := NoMethod(*s)
2118	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2119}
2120
2121type OrdersCancelRequest struct {
2122	// OperationId: The ID of the operation. Unique across all operations
2123	// for a given order.
2124	OperationId string `json:"operationId,omitempty"`
2125
2126	// Reason: The reason for the cancellation.
2127	Reason string `json:"reason,omitempty"`
2128
2129	// ReasonText: The explanation of the reason.
2130	ReasonText string `json:"reasonText,omitempty"`
2131
2132	// ForceSendFields is a list of field names (e.g. "OperationId") to
2133	// unconditionally include in API requests. By default, fields with
2134	// empty values are omitted from API requests. However, any non-pointer,
2135	// non-interface field appearing in ForceSendFields will be sent to the
2136	// server regardless of whether the field is empty or not. This may be
2137	// used to include empty fields in Patch requests.
2138	ForceSendFields []string `json:"-"`
2139
2140	// NullFields is a list of field names (e.g. "OperationId") to include
2141	// in API requests with the JSON null value. By default, fields with
2142	// empty values are omitted from API requests. However, any field with
2143	// an empty value appearing in NullFields will be sent to the server as
2144	// null. It is an error if a field in this list has a non-empty value.
2145	// This may be used to include null fields in Patch requests.
2146	NullFields []string `json:"-"`
2147}
2148
2149func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error) {
2150	type NoMethod OrdersCancelRequest
2151	raw := NoMethod(*s)
2152	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2153}
2154
2155type OrdersCancelResponse struct {
2156	// ExecutionStatus: The status of the execution.
2157	ExecutionStatus string `json:"executionStatus,omitempty"`
2158
2159	// Kind: Identifies what kind of resource this is. Value: the fixed
2160	// string "content#ordersCancelResponse".
2161	Kind string `json:"kind,omitempty"`
2162
2163	// ServerResponse contains the HTTP response code and headers from the
2164	// server.
2165	googleapi.ServerResponse `json:"-"`
2166
2167	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
2168	// unconditionally include in API requests. By default, fields with
2169	// empty values are omitted from API requests. However, any non-pointer,
2170	// non-interface field appearing in ForceSendFields will be sent to the
2171	// server regardless of whether the field is empty or not. This may be
2172	// used to include empty fields in Patch requests.
2173	ForceSendFields []string `json:"-"`
2174
2175	// NullFields is a list of field names (e.g. "ExecutionStatus") to
2176	// include in API requests with the JSON null value. By default, fields
2177	// with empty values are omitted from API requests. However, any field
2178	// with an empty value appearing in NullFields will be sent to the
2179	// server as null. It is an error if a field in this list has a
2180	// non-empty value. This may be used to include null fields in Patch
2181	// requests.
2182	NullFields []string `json:"-"`
2183}
2184
2185func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error) {
2186	type NoMethod OrdersCancelResponse
2187	raw := NoMethod(*s)
2188	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2189}
2190
2191type OrdersCancelTestOrderByCustomerRequest struct {
2192	// Reason: The reason for the cancellation.
2193	Reason string `json:"reason,omitempty"`
2194
2195	// ForceSendFields is a list of field names (e.g. "Reason") to
2196	// unconditionally include in API requests. By default, fields with
2197	// empty values are omitted from API requests. However, any non-pointer,
2198	// non-interface field appearing in ForceSendFields will be sent to the
2199	// server regardless of whether the field is empty or not. This may be
2200	// used to include empty fields in Patch requests.
2201	ForceSendFields []string `json:"-"`
2202
2203	// NullFields is a list of field names (e.g. "Reason") to include in API
2204	// requests with the JSON null value. By default, fields with empty
2205	// values are omitted from API requests. However, any field with an
2206	// empty value appearing in NullFields will be sent to the server as
2207	// null. It is an error if a field in this list has a non-empty value.
2208	// This may be used to include null fields in Patch requests.
2209	NullFields []string `json:"-"`
2210}
2211
2212func (s *OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error) {
2213	type NoMethod OrdersCancelTestOrderByCustomerRequest
2214	raw := NoMethod(*s)
2215	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2216}
2217
2218type OrdersCancelTestOrderByCustomerResponse struct {
2219	// Kind: Identifies what kind of resource this is. Value: the fixed
2220	// string "content#ordersCancelTestOrderByCustomerResponse".
2221	Kind string `json:"kind,omitempty"`
2222
2223	// ServerResponse contains the HTTP response code and headers from the
2224	// server.
2225	googleapi.ServerResponse `json:"-"`
2226
2227	// ForceSendFields is a list of field names (e.g. "Kind") to
2228	// unconditionally include in API requests. By default, fields with
2229	// empty values are omitted from API requests. However, any non-pointer,
2230	// non-interface field appearing in ForceSendFields will be sent to the
2231	// server regardless of whether the field is empty or not. This may be
2232	// used to include empty fields in Patch requests.
2233	ForceSendFields []string `json:"-"`
2234
2235	// NullFields is a list of field names (e.g. "Kind") to include in API
2236	// requests with the JSON null value. By default, fields with empty
2237	// values are omitted from API requests. However, any field with an
2238	// empty value appearing in NullFields will be sent to the server as
2239	// null. It is an error if a field in this list has a non-empty value.
2240	// This may be used to include null fields in Patch requests.
2241	NullFields []string `json:"-"`
2242}
2243
2244func (s *OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) {
2245	type NoMethod OrdersCancelTestOrderByCustomerResponse
2246	raw := NoMethod(*s)
2247	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2248}
2249
2250type OrdersCreateTestOrderRequest struct {
2251	// Country: The  CLDR territory code of the country of the test order to
2252	// create. Affects the currency and addresses of orders created via
2253	// template_name, or the addresses of orders created via
2254	// test_order.
2255	//
2256	// Acceptable values are:
2257	// - "US"
2258	// - "FR"  Defaults to US.
2259	Country string `json:"country,omitempty"`
2260
2261	// TemplateName: The test order template to use. Specify as an
2262	// alternative to testOrder as a shortcut for retrieving a template and
2263	// then creating an order using that template.
2264	TemplateName string `json:"templateName,omitempty"`
2265
2266	// TestOrder: The test order to create.
2267	TestOrder *TestOrder `json:"testOrder,omitempty"`
2268
2269	// ForceSendFields is a list of field names (e.g. "Country") to
2270	// unconditionally include in API requests. By default, fields with
2271	// empty values are omitted from API requests. However, any non-pointer,
2272	// non-interface field appearing in ForceSendFields will be sent to the
2273	// server regardless of whether the field is empty or not. This may be
2274	// used to include empty fields in Patch requests.
2275	ForceSendFields []string `json:"-"`
2276
2277	// NullFields is a list of field names (e.g. "Country") to include in
2278	// API requests with the JSON null value. By default, fields with empty
2279	// values are omitted from API requests. However, any field with an
2280	// empty value appearing in NullFields will be sent to the server as
2281	// null. It is an error if a field in this list has a non-empty value.
2282	// This may be used to include null fields in Patch requests.
2283	NullFields []string `json:"-"`
2284}
2285
2286func (s *OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error) {
2287	type NoMethod OrdersCreateTestOrderRequest
2288	raw := NoMethod(*s)
2289	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2290}
2291
2292type OrdersCreateTestOrderResponse struct {
2293	// Kind: Identifies what kind of resource this is. Value: the fixed
2294	// string "content#ordersCreateTestOrderResponse".
2295	Kind string `json:"kind,omitempty"`
2296
2297	// OrderId: The ID of the newly created test order.
2298	OrderId string `json:"orderId,omitempty"`
2299
2300	// ServerResponse contains the HTTP response code and headers from the
2301	// server.
2302	googleapi.ServerResponse `json:"-"`
2303
2304	// ForceSendFields is a list of field names (e.g. "Kind") to
2305	// unconditionally include in API requests. By default, fields with
2306	// empty values are omitted from API requests. However, any non-pointer,
2307	// non-interface field appearing in ForceSendFields will be sent to the
2308	// server regardless of whether the field is empty or not. This may be
2309	// used to include empty fields in Patch requests.
2310	ForceSendFields []string `json:"-"`
2311
2312	// NullFields is a list of field names (e.g. "Kind") to include in API
2313	// requests with the JSON null value. By default, fields with empty
2314	// values are omitted from API requests. However, any field with an
2315	// empty value appearing in NullFields will be sent to the server as
2316	// null. It is an error if a field in this list has a non-empty value.
2317	// This may be used to include null fields in Patch requests.
2318	NullFields []string `json:"-"`
2319}
2320
2321func (s *OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error) {
2322	type NoMethod OrdersCreateTestOrderResponse
2323	raw := NoMethod(*s)
2324	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2325}
2326
2327type OrdersCreateTestReturnRequest struct {
2328	// Items: Returned items.
2329	Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"`
2330
2331	// ForceSendFields is a list of field names (e.g. "Items") to
2332	// unconditionally include in API requests. By default, fields with
2333	// empty values are omitted from API requests. However, any non-pointer,
2334	// non-interface field appearing in ForceSendFields will be sent to the
2335	// server regardless of whether the field is empty or not. This may be
2336	// used to include empty fields in Patch requests.
2337	ForceSendFields []string `json:"-"`
2338
2339	// NullFields is a list of field names (e.g. "Items") to include in API
2340	// requests with the JSON null value. By default, fields with empty
2341	// values are omitted from API requests. However, any field with an
2342	// empty value appearing in NullFields will be sent to the server as
2343	// null. It is an error if a field in this list has a non-empty value.
2344	// This may be used to include null fields in Patch requests.
2345	NullFields []string `json:"-"`
2346}
2347
2348func (s *OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error) {
2349	type NoMethod OrdersCreateTestReturnRequest
2350	raw := NoMethod(*s)
2351	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2352}
2353
2354type OrdersCreateTestReturnResponse struct {
2355	// Kind: Identifies what kind of resource this is. Value: the fixed
2356	// string "content#ordersCreateTestReturnResponse".
2357	Kind string `json:"kind,omitempty"`
2358
2359	// ReturnId: The ID of the newly created test order return.
2360	ReturnId string `json:"returnId,omitempty"`
2361
2362	// ServerResponse contains the HTTP response code and headers from the
2363	// server.
2364	googleapi.ServerResponse `json:"-"`
2365
2366	// ForceSendFields is a list of field names (e.g. "Kind") to
2367	// unconditionally include in API requests. By default, fields with
2368	// empty values are omitted from API requests. However, any non-pointer,
2369	// non-interface field appearing in ForceSendFields will be sent to the
2370	// server regardless of whether the field is empty or not. This may be
2371	// used to include empty fields in Patch requests.
2372	ForceSendFields []string `json:"-"`
2373
2374	// NullFields is a list of field names (e.g. "Kind") to include in API
2375	// requests with the JSON null value. By default, fields with empty
2376	// values are omitted from API requests. However, any field with an
2377	// empty value appearing in NullFields will be sent to the server as
2378	// null. It is an error if a field in this list has a non-empty value.
2379	// This may be used to include null fields in Patch requests.
2380	NullFields []string `json:"-"`
2381}
2382
2383func (s *OrdersCreateTestReturnResponse) MarshalJSON() ([]byte, error) {
2384	type NoMethod OrdersCreateTestReturnResponse
2385	raw := NoMethod(*s)
2386	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2387}
2388
2389type OrdersCustomBatchRequest struct {
2390	// Entries: The request entries to be processed in the batch.
2391	Entries []*OrdersCustomBatchRequestEntry `json:"entries,omitempty"`
2392
2393	// ForceSendFields is a list of field names (e.g. "Entries") to
2394	// unconditionally include in API requests. By default, fields with
2395	// empty values are omitted from API requests. However, any non-pointer,
2396	// non-interface field appearing in ForceSendFields will be sent to the
2397	// server regardless of whether the field is empty or not. This may be
2398	// used to include empty fields in Patch requests.
2399	ForceSendFields []string `json:"-"`
2400
2401	// NullFields is a list of field names (e.g. "Entries") to include in
2402	// API requests with the JSON null value. By default, fields with empty
2403	// values are omitted from API requests. However, any field with an
2404	// empty value appearing in NullFields will be sent to the server as
2405	// null. It is an error if a field in this list has a non-empty value.
2406	// This may be used to include null fields in Patch requests.
2407	NullFields []string `json:"-"`
2408}
2409
2410func (s *OrdersCustomBatchRequest) MarshalJSON() ([]byte, error) {
2411	type NoMethod OrdersCustomBatchRequest
2412	raw := NoMethod(*s)
2413	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2414}
2415
2416type OrdersCustomBatchRequestEntry struct {
2417	// BatchId: An entry ID, unique within the batch request.
2418	BatchId int64 `json:"batchId,omitempty"`
2419
2420	// Cancel: Required for cancel method.
2421	Cancel *OrdersCustomBatchRequestEntryCancel `json:"cancel,omitempty"`
2422
2423	// CancelLineItem: Required for cancelLineItem method.
2424	CancelLineItem *OrdersCustomBatchRequestEntryCancelLineItem `json:"cancelLineItem,omitempty"`
2425
2426	// InStoreRefundLineItem: Required for inStoreReturnLineItem method.
2427	InStoreRefundLineItem *OrdersCustomBatchRequestEntryInStoreRefundLineItem `json:"inStoreRefundLineItem,omitempty"`
2428
2429	// MerchantId: The ID of the managing account.
2430	MerchantId uint64 `json:"merchantId,omitempty,string"`
2431
2432	// MerchantOrderId: The merchant order id. Required for
2433	// updateMerchantOrderId and getByMerchantOrderId methods.
2434	MerchantOrderId string `json:"merchantOrderId,omitempty"`
2435
2436	// Method: The method to apply.
2437	Method string `json:"method,omitempty"`
2438
2439	// OperationId: The ID of the operation. Unique across all operations
2440	// for a given order. Required for all methods beside get and
2441	// getByMerchantOrderId.
2442	OperationId string `json:"operationId,omitempty"`
2443
2444	// OrderId: The ID of the order. Required for all methods beside
2445	// getByMerchantOrderId.
2446	OrderId string `json:"orderId,omitempty"`
2447
2448	// Refund: Required for refund method.
2449	Refund *OrdersCustomBatchRequestEntryRefund `json:"refund,omitempty"`
2450
2451	// RejectReturnLineItem: Required for rejectReturnLineItem method.
2452	RejectReturnLineItem *OrdersCustomBatchRequestEntryRejectReturnLineItem `json:"rejectReturnLineItem,omitempty"`
2453
2454	// ReturnLineItem: Required for returnLineItem method.
2455	ReturnLineItem *OrdersCustomBatchRequestEntryReturnLineItem `json:"returnLineItem,omitempty"`
2456
2457	// ReturnRefundLineItem: Required for returnRefundLineItem method.
2458	ReturnRefundLineItem *OrdersCustomBatchRequestEntryReturnRefundLineItem `json:"returnRefundLineItem,omitempty"`
2459
2460	// SetLineItemMetadata: Required for setLineItemMetadata method.
2461	SetLineItemMetadata *OrdersCustomBatchRequestEntrySetLineItemMetadata `json:"setLineItemMetadata,omitempty"`
2462
2463	// ShipLineItems: Required for shipLineItems method.
2464	ShipLineItems *OrdersCustomBatchRequestEntryShipLineItems `json:"shipLineItems,omitempty"`
2465
2466	// UpdateLineItemShippingDetails: Required for
2467	// updateLineItemShippingDate method.
2468	UpdateLineItemShippingDetails *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails `json:"updateLineItemShippingDetails,omitempty"`
2469
2470	// UpdateShipment: Required for updateShipment method.
2471	UpdateShipment *OrdersCustomBatchRequestEntryUpdateShipment `json:"updateShipment,omitempty"`
2472
2473	// ForceSendFields is a list of field names (e.g. "BatchId") to
2474	// unconditionally include in API requests. By default, fields with
2475	// empty values are omitted from API requests. However, any non-pointer,
2476	// non-interface field appearing in ForceSendFields will be sent to the
2477	// server regardless of whether the field is empty or not. This may be
2478	// used to include empty fields in Patch requests.
2479	ForceSendFields []string `json:"-"`
2480
2481	// NullFields is a list of field names (e.g. "BatchId") to include in
2482	// API requests with the JSON null value. By default, fields with empty
2483	// values are omitted from API requests. However, any field with an
2484	// empty value appearing in NullFields will be sent to the server as
2485	// null. It is an error if a field in this list has a non-empty value.
2486	// This may be used to include null fields in Patch requests.
2487	NullFields []string `json:"-"`
2488}
2489
2490func (s *OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
2491	type NoMethod OrdersCustomBatchRequestEntry
2492	raw := NoMethod(*s)
2493	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2494}
2495
2496type OrdersCustomBatchRequestEntryCancel struct {
2497	// Reason: The reason for the cancellation.
2498	Reason string `json:"reason,omitempty"`
2499
2500	// ReasonText: The explanation of the reason.
2501	ReasonText string `json:"reasonText,omitempty"`
2502
2503	// ForceSendFields is a list of field names (e.g. "Reason") to
2504	// unconditionally include in API requests. By default, fields with
2505	// empty values are omitted from API requests. However, any non-pointer,
2506	// non-interface field appearing in ForceSendFields will be sent to the
2507	// server regardless of whether the field is empty or not. This may be
2508	// used to include empty fields in Patch requests.
2509	ForceSendFields []string `json:"-"`
2510
2511	// NullFields is a list of field names (e.g. "Reason") to include in API
2512	// requests with the JSON null value. By default, fields with empty
2513	// values are omitted from API requests. However, any field with an
2514	// empty value appearing in NullFields will be sent to the server as
2515	// null. It is an error if a field in this list has a non-empty value.
2516	// This may be used to include null fields in Patch requests.
2517	NullFields []string `json:"-"`
2518}
2519
2520func (s *OrdersCustomBatchRequestEntryCancel) MarshalJSON() ([]byte, error) {
2521	type NoMethod OrdersCustomBatchRequestEntryCancel
2522	raw := NoMethod(*s)
2523	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2524}
2525
2526type OrdersCustomBatchRequestEntryCancelLineItem struct {
2527	// Amount: Deprecated. Please use amountPretax and amountTax instead.
2528	Amount *Price `json:"amount,omitempty"`
2529
2530	// AmountPretax: Amount to refund for the cancelation. Optional. If not
2531	// set, Google will calculate the default based on the price and tax of
2532	// the items involved. The amount must not be larger than the net amount
2533	// left on the order.
2534	AmountPretax *Price `json:"amountPretax,omitempty"`
2535
2536	// AmountTax: Tax amount that correspond to cancellation amount in
2537	// amountPretax.
2538	AmountTax *Price `json:"amountTax,omitempty"`
2539
2540	// LineItemId: The ID of the line item to cancel. Either lineItemId or
2541	// productId is required.
2542	LineItemId string `json:"lineItemId,omitempty"`
2543
2544	// ProductId: The ID of the product to cancel. This is the REST ID used
2545	// in the products service. Either lineItemId or productId is required.
2546	ProductId string `json:"productId,omitempty"`
2547
2548	// Quantity: The quantity to cancel.
2549	Quantity int64 `json:"quantity,omitempty"`
2550
2551	// Reason: The reason for the cancellation.
2552	Reason string `json:"reason,omitempty"`
2553
2554	// ReasonText: The explanation of the reason.
2555	ReasonText string `json:"reasonText,omitempty"`
2556
2557	// ForceSendFields is a list of field names (e.g. "Amount") to
2558	// unconditionally include in API requests. By default, fields with
2559	// empty values are omitted from API requests. However, any non-pointer,
2560	// non-interface field appearing in ForceSendFields will be sent to the
2561	// server regardless of whether the field is empty or not. This may be
2562	// used to include empty fields in Patch requests.
2563	ForceSendFields []string `json:"-"`
2564
2565	// NullFields is a list of field names (e.g. "Amount") to include in API
2566	// requests with the JSON null value. By default, fields with empty
2567	// values are omitted from API requests. However, any field with an
2568	// empty value appearing in NullFields will be sent to the server as
2569	// null. It is an error if a field in this list has a non-empty value.
2570	// This may be used to include null fields in Patch requests.
2571	NullFields []string `json:"-"`
2572}
2573
2574func (s *OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON() ([]byte, error) {
2575	type NoMethod OrdersCustomBatchRequestEntryCancelLineItem
2576	raw := NoMethod(*s)
2577	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2578}
2579
2580type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct {
2581	// LineItemId: The ID of the line item to return.
2582	LineItemId string `json:"lineItemId,omitempty"`
2583
2584	// Quantity: Quantity that is returned.
2585	Quantity int64 `json:"quantity,omitempty"`
2586
2587	// ForceSendFields is a list of field names (e.g. "LineItemId") to
2588	// unconditionally include in API requests. By default, fields with
2589	// empty values are omitted from API requests. However, any non-pointer,
2590	// non-interface field appearing in ForceSendFields will be sent to the
2591	// server regardless of whether the field is empty or not. This may be
2592	// used to include empty fields in Patch requests.
2593	ForceSendFields []string `json:"-"`
2594
2595	// NullFields is a list of field names (e.g. "LineItemId") to include in
2596	// API requests with the JSON null value. By default, fields with empty
2597	// values are omitted from API requests. However, any field with an
2598	// empty value appearing in NullFields will be sent to the server as
2599	// null. It is an error if a field in this list has a non-empty value.
2600	// This may be used to include null fields in Patch requests.
2601	NullFields []string `json:"-"`
2602}
2603
2604func (s *OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error) {
2605	type NoMethod OrdersCustomBatchRequestEntryCreateTestReturnReturnItem
2606	raw := NoMethod(*s)
2607	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2608}
2609
2610type OrdersCustomBatchRequestEntryInStoreRefundLineItem struct {
2611	// AmountPretax: The amount that is refunded. Required.
2612	AmountPretax *Price `json:"amountPretax,omitempty"`
2613
2614	// AmountTax: Tax amount that correspond to refund amount in
2615	// amountPretax. Required.
2616	AmountTax *Price `json:"amountTax,omitempty"`
2617
2618	// LineItemId: The ID of the line item to return. Either lineItemId or
2619	// productId is required.
2620	LineItemId string `json:"lineItemId,omitempty"`
2621
2622	// ProductId: The ID of the product to return. This is the REST ID used
2623	// in the products service. Either lineItemId or productId is required.
2624	ProductId string `json:"productId,omitempty"`
2625
2626	// Quantity: The quantity to return and refund.
2627	Quantity int64 `json:"quantity,omitempty"`
2628
2629	// Reason: The reason for the return.
2630	Reason string `json:"reason,omitempty"`
2631
2632	// ReasonText: The explanation of the reason.
2633	ReasonText string `json:"reasonText,omitempty"`
2634
2635	// ForceSendFields is a list of field names (e.g. "AmountPretax") to
2636	// unconditionally include in API requests. By default, fields with
2637	// empty values are omitted from API requests. However, any non-pointer,
2638	// non-interface field appearing in ForceSendFields will be sent to the
2639	// server regardless of whether the field is empty or not. This may be
2640	// used to include empty fields in Patch requests.
2641	ForceSendFields []string `json:"-"`
2642
2643	// NullFields is a list of field names (e.g. "AmountPretax") to include
2644	// in API requests with the JSON null value. By default, fields with
2645	// empty values are omitted from API requests. However, any field with
2646	// an empty value appearing in NullFields will be sent to the server as
2647	// null. It is an error if a field in this list has a non-empty value.
2648	// This may be used to include null fields in Patch requests.
2649	NullFields []string `json:"-"`
2650}
2651
2652func (s *OrdersCustomBatchRequestEntryInStoreRefundLineItem) MarshalJSON() ([]byte, error) {
2653	type NoMethod OrdersCustomBatchRequestEntryInStoreRefundLineItem
2654	raw := NoMethod(*s)
2655	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2656}
2657
2658type OrdersCustomBatchRequestEntryRefund struct {
2659	// Amount: Deprecated. Please use amountPretax and amountTax instead.
2660	Amount *Price `json:"amount,omitempty"`
2661
2662	// AmountPretax: The amount that is refunded. Either amount or
2663	// amountPretax and amountTax should be filled.
2664	AmountPretax *Price `json:"amountPretax,omitempty"`
2665
2666	// AmountTax: Tax amount that correspond to refund amount in
2667	// amountPretax.
2668	AmountTax *Price `json:"amountTax,omitempty"`
2669
2670	// Reason: The reason for the refund.
2671	Reason string `json:"reason,omitempty"`
2672
2673	// ReasonText: The explanation of the reason.
2674	ReasonText string `json:"reasonText,omitempty"`
2675
2676	// ForceSendFields is a list of field names (e.g. "Amount") to
2677	// unconditionally include in API requests. By default, fields with
2678	// empty values are omitted from API requests. However, any non-pointer,
2679	// non-interface field appearing in ForceSendFields will be sent to the
2680	// server regardless of whether the field is empty or not. This may be
2681	// used to include empty fields in Patch requests.
2682	ForceSendFields []string `json:"-"`
2683
2684	// NullFields is a list of field names (e.g. "Amount") to include in API
2685	// requests with the JSON null value. By default, fields with empty
2686	// values are omitted from API requests. However, any field with an
2687	// empty value appearing in NullFields will be sent to the server as
2688	// null. It is an error if a field in this list has a non-empty value.
2689	// This may be used to include null fields in Patch requests.
2690	NullFields []string `json:"-"`
2691}
2692
2693func (s *OrdersCustomBatchRequestEntryRefund) MarshalJSON() ([]byte, error) {
2694	type NoMethod OrdersCustomBatchRequestEntryRefund
2695	raw := NoMethod(*s)
2696	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2697}
2698
2699type OrdersCustomBatchRequestEntryRejectReturnLineItem struct {
2700	// LineItemId: The ID of the line item to return. Either lineItemId or
2701	// productId is required.
2702	LineItemId string `json:"lineItemId,omitempty"`
2703
2704	// ProductId: The ID of the product to return. This is the REST ID used
2705	// in the products service. Either lineItemId or productId is required.
2706	ProductId string `json:"productId,omitempty"`
2707
2708	// Quantity: The quantity to return and refund.
2709	Quantity int64 `json:"quantity,omitempty"`
2710
2711	// Reason: The reason for the return.
2712	Reason string `json:"reason,omitempty"`
2713
2714	// ReasonText: The explanation of the reason.
2715	ReasonText string `json:"reasonText,omitempty"`
2716
2717	// ForceSendFields is a list of field names (e.g. "LineItemId") to
2718	// unconditionally include in API requests. By default, fields with
2719	// empty values are omitted from API requests. However, any non-pointer,
2720	// non-interface field appearing in ForceSendFields will be sent to the
2721	// server regardless of whether the field is empty or not. This may be
2722	// used to include empty fields in Patch requests.
2723	ForceSendFields []string `json:"-"`
2724
2725	// NullFields is a list of field names (e.g. "LineItemId") to include in
2726	// API requests with the JSON null value. By default, fields with empty
2727	// values are omitted from API requests. However, any field with an
2728	// empty value appearing in NullFields will be sent to the server as
2729	// null. It is an error if a field in this list has a non-empty value.
2730	// This may be used to include null fields in Patch requests.
2731	NullFields []string `json:"-"`
2732}
2733
2734func (s *OrdersCustomBatchRequestEntryRejectReturnLineItem) MarshalJSON() ([]byte, error) {
2735	type NoMethod OrdersCustomBatchRequestEntryRejectReturnLineItem
2736	raw := NoMethod(*s)
2737	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2738}
2739
2740type OrdersCustomBatchRequestEntryReturnLineItem struct {
2741	// LineItemId: The ID of the line item to return. Either lineItemId or
2742	// productId is required.
2743	LineItemId string `json:"lineItemId,omitempty"`
2744
2745	// ProductId: The ID of the product to return. This is the REST ID used
2746	// in the products service. Either lineItemId or productId is required.
2747	ProductId string `json:"productId,omitempty"`
2748
2749	// Quantity: The quantity to return.
2750	Quantity int64 `json:"quantity,omitempty"`
2751
2752	// Reason: The reason for the return.
2753	Reason string `json:"reason,omitempty"`
2754
2755	// ReasonText: The explanation of the reason.
2756	ReasonText string `json:"reasonText,omitempty"`
2757
2758	// ForceSendFields is a list of field names (e.g. "LineItemId") to
2759	// unconditionally include in API requests. By default, fields with
2760	// empty values are omitted from API requests. However, any non-pointer,
2761	// non-interface field appearing in ForceSendFields will be sent to the
2762	// server regardless of whether the field is empty or not. This may be
2763	// used to include empty fields in Patch requests.
2764	ForceSendFields []string `json:"-"`
2765
2766	// NullFields is a list of field names (e.g. "LineItemId") to include in
2767	// API requests with the JSON null value. By default, fields with empty
2768	// values are omitted from API requests. However, any field with an
2769	// empty value appearing in NullFields will be sent to the server as
2770	// null. It is an error if a field in this list has a non-empty value.
2771	// This may be used to include null fields in Patch requests.
2772	NullFields []string `json:"-"`
2773}
2774
2775func (s *OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, error) {
2776	type NoMethod OrdersCustomBatchRequestEntryReturnLineItem
2777	raw := NoMethod(*s)
2778	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2779}
2780
2781type OrdersCustomBatchRequestEntryReturnRefundLineItem struct {
2782	// AmountPretax: The amount that is refunded. If omitted, refundless
2783	// return is assumed (same as calling returnLineItem method). Optional,
2784	// but if filled then both amountPretax and amountTax must be set.
2785	AmountPretax *Price `json:"amountPretax,omitempty"`
2786
2787	// AmountTax: Tax amount that correspond to refund amount in
2788	// amountPretax.
2789	AmountTax *Price `json:"amountTax,omitempty"`
2790
2791	// LineItemId: The ID of the line item to return. Either lineItemId or
2792	// productId is required.
2793	LineItemId string `json:"lineItemId,omitempty"`
2794
2795	// ProductId: The ID of the product to return. This is the REST ID used
2796	// in the products service. Either lineItemId or productId is required.
2797	ProductId string `json:"productId,omitempty"`
2798
2799	// Quantity: The quantity to return and refund.
2800	Quantity int64 `json:"quantity,omitempty"`
2801
2802	// Reason: The reason for the return.
2803	Reason string `json:"reason,omitempty"`
2804
2805	// ReasonText: The explanation of the reason.
2806	ReasonText string `json:"reasonText,omitempty"`
2807
2808	// ForceSendFields is a list of field names (e.g. "AmountPretax") to
2809	// unconditionally include in API requests. By default, fields with
2810	// empty values are omitted from API requests. However, any non-pointer,
2811	// non-interface field appearing in ForceSendFields will be sent to the
2812	// server regardless of whether the field is empty or not. This may be
2813	// used to include empty fields in Patch requests.
2814	ForceSendFields []string `json:"-"`
2815
2816	// NullFields is a list of field names (e.g. "AmountPretax") to include
2817	// in API requests with the JSON null value. By default, fields with
2818	// empty values are omitted from API requests. However, any field with
2819	// an empty value appearing in NullFields will be sent to the server as
2820	// null. It is an error if a field in this list has a non-empty value.
2821	// This may be used to include null fields in Patch requests.
2822	NullFields []string `json:"-"`
2823}
2824
2825func (s *OrdersCustomBatchRequestEntryReturnRefundLineItem) MarshalJSON() ([]byte, error) {
2826	type NoMethod OrdersCustomBatchRequestEntryReturnRefundLineItem
2827	raw := NoMethod(*s)
2828	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2829}
2830
2831type OrdersCustomBatchRequestEntrySetLineItemMetadata struct {
2832	Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`
2833
2834	// LineItemId: The ID of the line item to set metadata. Either
2835	// lineItemId or productId is required.
2836	LineItemId string `json:"lineItemId,omitempty"`
2837
2838	// ProductId: The ID of the product to set metadata. This is the REST ID
2839	// used in the products service. Either lineItemId or productId is
2840	// required.
2841	ProductId string `json:"productId,omitempty"`
2842
2843	// ForceSendFields is a list of field names (e.g. "Annotations") to
2844	// unconditionally include in API requests. By default, fields with
2845	// empty values are omitted from API requests. However, any non-pointer,
2846	// non-interface field appearing in ForceSendFields will be sent to the
2847	// server regardless of whether the field is empty or not. This may be
2848	// used to include empty fields in Patch requests.
2849	ForceSendFields []string `json:"-"`
2850
2851	// NullFields is a list of field names (e.g. "Annotations") to include
2852	// in API requests with the JSON null value. By default, fields with
2853	// empty values are omitted from API requests. However, any field with
2854	// an empty value appearing in NullFields will be sent to the server as
2855	// null. It is an error if a field in this list has a non-empty value.
2856	// This may be used to include null fields in Patch requests.
2857	NullFields []string `json:"-"`
2858}
2859
2860func (s *OrdersCustomBatchRequestEntrySetLineItemMetadata) MarshalJSON() ([]byte, error) {
2861	type NoMethod OrdersCustomBatchRequestEntrySetLineItemMetadata
2862	raw := NoMethod(*s)
2863	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2864}
2865
2866type OrdersCustomBatchRequestEntryShipLineItems struct {
2867	// Carrier: Deprecated. Please use shipmentInfo instead. The carrier
2868	// handling the shipment. See shipments[].carrier in the  Orders
2869	// resource representation for a list of acceptable values.
2870	Carrier string `json:"carrier,omitempty"`
2871
2872	// LineItems: Line items to ship.
2873	LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
2874
2875	// ShipmentGroupId: ID of the shipment group. Required for orders that
2876	// use the orderinvoices service.
2877	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
2878
2879	// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
2880	// the shipment.
2881	ShipmentId string `json:"shipmentId,omitempty"`
2882
2883	// ShipmentInfos: Shipment information. This field is repeated because a
2884	// single line item can be shipped in several packages (and have several
2885	// tracking IDs).
2886	ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
2887
2888	// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
2889	// id for the shipment.
2890	TrackingId string `json:"trackingId,omitempty"`
2891
2892	// ForceSendFields is a list of field names (e.g. "Carrier") to
2893	// unconditionally include in API requests. By default, fields with
2894	// empty values are omitted from API requests. However, any non-pointer,
2895	// non-interface field appearing in ForceSendFields will be sent to the
2896	// server regardless of whether the field is empty or not. This may be
2897	// used to include empty fields in Patch requests.
2898	ForceSendFields []string `json:"-"`
2899
2900	// NullFields is a list of field names (e.g. "Carrier") to include in
2901	// API requests with the JSON null value. By default, fields with empty
2902	// values are omitted from API requests. However, any field with an
2903	// empty value appearing in NullFields will be sent to the server as
2904	// null. It is an error if a field in this list has a non-empty value.
2905	// This may be used to include null fields in Patch requests.
2906	NullFields []string `json:"-"`
2907}
2908
2909func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, error) {
2910	type NoMethod OrdersCustomBatchRequestEntryShipLineItems
2911	raw := NoMethod(*s)
2912	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2913}
2914
2915type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct {
2916	// Carrier: The carrier handling the shipment. See shipments[].carrier
2917	// in the  Orders resource representation for a list of acceptable
2918	// values.
2919	Carrier string `json:"carrier,omitempty"`
2920
2921	// ShipmentId: The ID of the shipment.
2922	ShipmentId string `json:"shipmentId,omitempty"`
2923
2924	// TrackingId: The tracking id for the shipment.
2925	TrackingId string `json:"trackingId,omitempty"`
2926
2927	// ForceSendFields is a list of field names (e.g. "Carrier") to
2928	// unconditionally include in API requests. By default, fields with
2929	// empty values are omitted from API requests. However, any non-pointer,
2930	// non-interface field appearing in ForceSendFields will be sent to the
2931	// server regardless of whether the field is empty or not. This may be
2932	// used to include empty fields in Patch requests.
2933	ForceSendFields []string `json:"-"`
2934
2935	// NullFields is a list of field names (e.g. "Carrier") to include in
2936	// API requests with the JSON null value. By default, fields with empty
2937	// values are omitted from API requests. However, any field with an
2938	// empty value appearing in NullFields will be sent to the server as
2939	// null. It is an error if a field in this list has a non-empty value.
2940	// This may be used to include null fields in Patch requests.
2941	NullFields []string `json:"-"`
2942}
2943
2944func (s *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) {
2945	type NoMethod OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
2946	raw := NoMethod(*s)
2947	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2948}
2949
2950type OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails struct {
2951	// DeliverByDate: Updated delivery by date, in ISO 8601 format. If not
2952	// specified only ship by date is updated.
2953	DeliverByDate string `json:"deliverByDate,omitempty"`
2954
2955	// LineItemId: The ID of the line item to set metadata. Either
2956	// lineItemId or productId is required.
2957	LineItemId string `json:"lineItemId,omitempty"`
2958
2959	// ProductId: The ID of the product to set metadata. This is the REST ID
2960	// used in the products service. Either lineItemId or productId is
2961	// required.
2962	ProductId string `json:"productId,omitempty"`
2963
2964	// ShipByDate: Updated ship by date, in ISO 8601 format. If not
2965	// specified only deliver by date is updated.
2966	ShipByDate string `json:"shipByDate,omitempty"`
2967
2968	// ForceSendFields is a list of field names (e.g. "DeliverByDate") to
2969	// unconditionally include in API requests. By default, fields with
2970	// empty values are omitted from API requests. However, any non-pointer,
2971	// non-interface field appearing in ForceSendFields will be sent to the
2972	// server regardless of whether the field is empty or not. This may be
2973	// used to include empty fields in Patch requests.
2974	ForceSendFields []string `json:"-"`
2975
2976	// NullFields is a list of field names (e.g. "DeliverByDate") to include
2977	// in API requests with the JSON null value. By default, fields with
2978	// empty values are omitted from API requests. However, any field with
2979	// an empty value appearing in NullFields will be sent to the server as
2980	// null. It is an error if a field in this list has a non-empty value.
2981	// This may be used to include null fields in Patch requests.
2982	NullFields []string `json:"-"`
2983}
2984
2985func (s *OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails) MarshalJSON() ([]byte, error) {
2986	type NoMethod OrdersCustomBatchRequestEntryUpdateLineItemShippingDetails
2987	raw := NoMethod(*s)
2988	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
2989}
2990
2991type OrdersCustomBatchRequestEntryUpdateShipment struct {
2992	// Carrier: The carrier handling the shipment. Not updated if missing.
2993	// See shipments[].carrier in the  Orders resource representation for a
2994	// list of acceptable values.
2995	Carrier string `json:"carrier,omitempty"`
2996
2997	// DeliveryDate: Date on which the shipment has been delivered, in ISO
2998	// 8601 format. Optional and can be provided only if status is
2999	// delivered.
3000	DeliveryDate string `json:"deliveryDate,omitempty"`
3001
3002	// ShipmentId: The ID of the shipment.
3003	ShipmentId string `json:"shipmentId,omitempty"`
3004
3005	// Status: New status for the shipment. Not updated if missing.
3006	Status string `json:"status,omitempty"`
3007
3008	// TrackingId: The tracking id for the shipment. Not updated if missing.
3009	TrackingId string `json:"trackingId,omitempty"`
3010
3011	// ForceSendFields is a list of field names (e.g. "Carrier") to
3012	// unconditionally include in API requests. By default, fields with
3013	// empty values are omitted from API requests. However, any non-pointer,
3014	// non-interface field appearing in ForceSendFields will be sent to the
3015	// server regardless of whether the field is empty or not. This may be
3016	// used to include empty fields in Patch requests.
3017	ForceSendFields []string `json:"-"`
3018
3019	// NullFields is a list of field names (e.g. "Carrier") to include in
3020	// API requests with the JSON null value. By default, fields with empty
3021	// values are omitted from API requests. However, any field with an
3022	// empty value appearing in NullFields will be sent to the server as
3023	// null. It is an error if a field in this list has a non-empty value.
3024	// This may be used to include null fields in Patch requests.
3025	NullFields []string `json:"-"`
3026}
3027
3028func (s *OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON() ([]byte, error) {
3029	type NoMethod OrdersCustomBatchRequestEntryUpdateShipment
3030	raw := NoMethod(*s)
3031	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3032}
3033
3034type OrdersCustomBatchResponse struct {
3035	// Entries: The result of the execution of the batch requests.
3036	Entries []*OrdersCustomBatchResponseEntry `json:"entries,omitempty"`
3037
3038	// Kind: Identifies what kind of resource this is. Value: the fixed
3039	// string "content#ordersCustomBatchResponse".
3040	Kind string `json:"kind,omitempty"`
3041
3042	// ServerResponse contains the HTTP response code and headers from the
3043	// server.
3044	googleapi.ServerResponse `json:"-"`
3045
3046	// ForceSendFields is a list of field names (e.g. "Entries") to
3047	// unconditionally include in API requests. By default, fields with
3048	// empty values are omitted from API requests. However, any non-pointer,
3049	// non-interface field appearing in ForceSendFields will be sent to the
3050	// server regardless of whether the field is empty or not. This may be
3051	// used to include empty fields in Patch requests.
3052	ForceSendFields []string `json:"-"`
3053
3054	// NullFields is a list of field names (e.g. "Entries") to include in
3055	// API requests with the JSON null value. By default, fields with empty
3056	// values are omitted from API requests. However, any field with an
3057	// empty value appearing in NullFields will be sent to the server as
3058	// null. It is an error if a field in this list has a non-empty value.
3059	// This may be used to include null fields in Patch requests.
3060	NullFields []string `json:"-"`
3061}
3062
3063func (s *OrdersCustomBatchResponse) MarshalJSON() ([]byte, error) {
3064	type NoMethod OrdersCustomBatchResponse
3065	raw := NoMethod(*s)
3066	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3067}
3068
3069type OrdersCustomBatchResponseEntry struct {
3070	// BatchId: The ID of the request entry this entry responds to.
3071	BatchId int64 `json:"batchId,omitempty"`
3072
3073	// Errors: A list of errors defined if and only if the request failed.
3074	Errors *Errors `json:"errors,omitempty"`
3075
3076	// ExecutionStatus: The status of the execution. Only defined if
3077	// - the request was successful; and
3078	// - the method is not get, getByMerchantOrderId, or one of the test
3079	// methods.
3080	ExecutionStatus string `json:"executionStatus,omitempty"`
3081
3082	// Kind: Identifies what kind of resource this is. Value: the fixed
3083	// string "content#ordersCustomBatchResponseEntry".
3084	Kind string `json:"kind,omitempty"`
3085
3086	// Order: The retrieved order. Only defined if the method is get and if
3087	// the request was successful.
3088	Order *Order `json:"order,omitempty"`
3089
3090	// ForceSendFields is a list of field names (e.g. "BatchId") to
3091	// unconditionally include in API requests. By default, fields with
3092	// empty values are omitted from API requests. However, any non-pointer,
3093	// non-interface field appearing in ForceSendFields will be sent to the
3094	// server regardless of whether the field is empty or not. This may be
3095	// used to include empty fields in Patch requests.
3096	ForceSendFields []string `json:"-"`
3097
3098	// NullFields is a list of field names (e.g. "BatchId") to include in
3099	// API requests with the JSON null value. By default, fields with empty
3100	// values are omitted from API requests. However, any field with an
3101	// empty value appearing in NullFields will be sent to the server as
3102	// null. It is an error if a field in this list has a non-empty value.
3103	// This may be used to include null fields in Patch requests.
3104	NullFields []string `json:"-"`
3105}
3106
3107func (s *OrdersCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
3108	type NoMethod OrdersCustomBatchResponseEntry
3109	raw := NoMethod(*s)
3110	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3111}
3112
3113type OrdersGetByMerchantOrderIdResponse struct {
3114	// Kind: Identifies what kind of resource this is. Value: the fixed
3115	// string "content#ordersGetByMerchantOrderIdResponse".
3116	Kind string `json:"kind,omitempty"`
3117
3118	// Order: The requested order.
3119	Order *Order `json:"order,omitempty"`
3120
3121	// ServerResponse contains the HTTP response code and headers from the
3122	// server.
3123	googleapi.ServerResponse `json:"-"`
3124
3125	// ForceSendFields is a list of field names (e.g. "Kind") to
3126	// unconditionally include in API requests. By default, fields with
3127	// empty values are omitted from API requests. However, any non-pointer,
3128	// non-interface field appearing in ForceSendFields will be sent to the
3129	// server regardless of whether the field is empty or not. This may be
3130	// used to include empty fields in Patch requests.
3131	ForceSendFields []string `json:"-"`
3132
3133	// NullFields is a list of field names (e.g. "Kind") to include in API
3134	// requests with the JSON null value. By default, fields with empty
3135	// values are omitted from API requests. However, any field with an
3136	// empty value appearing in NullFields will be sent to the server as
3137	// null. It is an error if a field in this list has a non-empty value.
3138	// This may be used to include null fields in Patch requests.
3139	NullFields []string `json:"-"`
3140}
3141
3142func (s *OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
3143	type NoMethod OrdersGetByMerchantOrderIdResponse
3144	raw := NoMethod(*s)
3145	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3146}
3147
3148type OrdersGetTestOrderTemplateResponse struct {
3149	// Kind: Identifies what kind of resource this is. Value: the fixed
3150	// string "content#ordersGetTestOrderTemplateResponse".
3151	Kind string `json:"kind,omitempty"`
3152
3153	// Template: The requested test order template.
3154	Template *TestOrder `json:"template,omitempty"`
3155
3156	// ServerResponse contains the HTTP response code and headers from the
3157	// server.
3158	googleapi.ServerResponse `json:"-"`
3159
3160	// ForceSendFields is a list of field names (e.g. "Kind") to
3161	// unconditionally include in API requests. By default, fields with
3162	// empty values are omitted from API requests. However, any non-pointer,
3163	// non-interface field appearing in ForceSendFields will be sent to the
3164	// server regardless of whether the field is empty or not. This may be
3165	// used to include empty fields in Patch requests.
3166	ForceSendFields []string `json:"-"`
3167
3168	// NullFields is a list of field names (e.g. "Kind") to include in API
3169	// requests with the JSON null value. By default, fields with empty
3170	// values are omitted from API requests. However, any field with an
3171	// empty value appearing in NullFields will be sent to the server as
3172	// null. It is an error if a field in this list has a non-empty value.
3173	// This may be used to include null fields in Patch requests.
3174	NullFields []string `json:"-"`
3175}
3176
3177func (s *OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error) {
3178	type NoMethod OrdersGetTestOrderTemplateResponse
3179	raw := NoMethod(*s)
3180	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3181}
3182
3183type OrdersInStoreRefundLineItemRequest struct {
3184	// AmountPretax: The amount that is refunded. Required.
3185	AmountPretax *Price `json:"amountPretax,omitempty"`
3186
3187	// AmountTax: Tax amount that correspond to refund amount in
3188	// amountPretax. Required.
3189	AmountTax *Price `json:"amountTax,omitempty"`
3190
3191	// LineItemId: The ID of the line item to return. Either lineItemId or
3192	// productId is required.
3193	LineItemId string `json:"lineItemId,omitempty"`
3194
3195	// OperationId: The ID of the operation. Unique across all operations
3196	// for a given order.
3197	OperationId string `json:"operationId,omitempty"`
3198
3199	// ProductId: The ID of the product to return. This is the REST ID used
3200	// in the products service. Either lineItemId or productId is required.
3201	ProductId string `json:"productId,omitempty"`
3202
3203	// Quantity: The quantity to return and refund.
3204	Quantity int64 `json:"quantity,omitempty"`
3205
3206	// Reason: The reason for the return.
3207	Reason string `json:"reason,omitempty"`
3208
3209	// ReasonText: The explanation of the reason.
3210	ReasonText string `json:"reasonText,omitempty"`
3211
3212	// ForceSendFields is a list of field names (e.g. "AmountPretax") to
3213	// unconditionally include in API requests. By default, fields with
3214	// empty values are omitted from API requests. However, any non-pointer,
3215	// non-interface field appearing in ForceSendFields will be sent to the
3216	// server regardless of whether the field is empty or not. This may be
3217	// used to include empty fields in Patch requests.
3218	ForceSendFields []string `json:"-"`
3219
3220	// NullFields is a list of field names (e.g. "AmountPretax") to include
3221	// in API requests with the JSON null value. By default, fields with
3222	// empty values are omitted from API requests. However, any field with
3223	// an empty value appearing in NullFields will be sent to the server as
3224	// null. It is an error if a field in this list has a non-empty value.
3225	// This may be used to include null fields in Patch requests.
3226	NullFields []string `json:"-"`
3227}
3228
3229func (s *OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) {
3230	type NoMethod OrdersInStoreRefundLineItemRequest
3231	raw := NoMethod(*s)
3232	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3233}
3234
3235type OrdersInStoreRefundLineItemResponse struct {
3236	// ExecutionStatus: The status of the execution.
3237	ExecutionStatus string `json:"executionStatus,omitempty"`
3238
3239	// Kind: Identifies what kind of resource this is. Value: the fixed
3240	// string "content#ordersInStoreRefundLineItemResponse".
3241	Kind string `json:"kind,omitempty"`
3242
3243	// ServerResponse contains the HTTP response code and headers from the
3244	// server.
3245	googleapi.ServerResponse `json:"-"`
3246
3247	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3248	// unconditionally include in API requests. By default, fields with
3249	// empty values are omitted from API requests. However, any non-pointer,
3250	// non-interface field appearing in ForceSendFields will be sent to the
3251	// server regardless of whether the field is empty or not. This may be
3252	// used to include empty fields in Patch requests.
3253	ForceSendFields []string `json:"-"`
3254
3255	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3256	// include in API requests with the JSON null value. By default, fields
3257	// with empty values are omitted from API requests. However, any field
3258	// with an empty value appearing in NullFields will be sent to the
3259	// server as null. It is an error if a field in this list has a
3260	// non-empty value. This may be used to include null fields in Patch
3261	// requests.
3262	NullFields []string `json:"-"`
3263}
3264
3265func (s *OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error) {
3266	type NoMethod OrdersInStoreRefundLineItemResponse
3267	raw := NoMethod(*s)
3268	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3269}
3270
3271type OrdersListResponse struct {
3272	// Kind: Identifies what kind of resource this is. Value: the fixed
3273	// string "content#ordersListResponse".
3274	Kind string `json:"kind,omitempty"`
3275
3276	// NextPageToken: The token for the retrieval of the next page of
3277	// orders.
3278	NextPageToken string `json:"nextPageToken,omitempty"`
3279
3280	Resources []*Order `json:"resources,omitempty"`
3281
3282	// ServerResponse contains the HTTP response code and headers from the
3283	// server.
3284	googleapi.ServerResponse `json:"-"`
3285
3286	// ForceSendFields is a list of field names (e.g. "Kind") to
3287	// unconditionally include in API requests. By default, fields with
3288	// empty values are omitted from API requests. However, any non-pointer,
3289	// non-interface field appearing in ForceSendFields will be sent to the
3290	// server regardless of whether the field is empty or not. This may be
3291	// used to include empty fields in Patch requests.
3292	ForceSendFields []string `json:"-"`
3293
3294	// NullFields is a list of field names (e.g. "Kind") to include in API
3295	// requests with the JSON null value. By default, fields with empty
3296	// values are omitted from API requests. However, any field with an
3297	// empty value appearing in NullFields will be sent to the server as
3298	// null. It is an error if a field in this list has a non-empty value.
3299	// This may be used to include null fields in Patch requests.
3300	NullFields []string `json:"-"`
3301}
3302
3303func (s *OrdersListResponse) MarshalJSON() ([]byte, error) {
3304	type NoMethod OrdersListResponse
3305	raw := NoMethod(*s)
3306	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3307}
3308
3309type OrdersRefundRequest struct {
3310	// Amount: Deprecated. Please use amountPretax and amountTax instead.
3311	Amount *Price `json:"amount,omitempty"`
3312
3313	// AmountPretax: The amount that is refunded. Either amount or
3314	// amountPretax and amountTax should be filled.
3315	AmountPretax *Price `json:"amountPretax,omitempty"`
3316
3317	// AmountTax: Tax amount that correspond to refund amount in
3318	// amountPretax.
3319	AmountTax *Price `json:"amountTax,omitempty"`
3320
3321	// OperationId: The ID of the operation. Unique across all operations
3322	// for a given order.
3323	OperationId string `json:"operationId,omitempty"`
3324
3325	// Reason: The reason for the refund.
3326	Reason string `json:"reason,omitempty"`
3327
3328	// ReasonText: The explanation of the reason.
3329	ReasonText string `json:"reasonText,omitempty"`
3330
3331	// ForceSendFields is a list of field names (e.g. "Amount") to
3332	// unconditionally include in API requests. By default, fields with
3333	// empty values are omitted from API requests. However, any non-pointer,
3334	// non-interface field appearing in ForceSendFields will be sent to the
3335	// server regardless of whether the field is empty or not. This may be
3336	// used to include empty fields in Patch requests.
3337	ForceSendFields []string `json:"-"`
3338
3339	// NullFields is a list of field names (e.g. "Amount") to include in API
3340	// requests with the JSON null value. By default, fields with empty
3341	// values are omitted from API requests. However, any field with an
3342	// empty value appearing in NullFields will be sent to the server as
3343	// null. It is an error if a field in this list has a non-empty value.
3344	// This may be used to include null fields in Patch requests.
3345	NullFields []string `json:"-"`
3346}
3347
3348func (s *OrdersRefundRequest) MarshalJSON() ([]byte, error) {
3349	type NoMethod OrdersRefundRequest
3350	raw := NoMethod(*s)
3351	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3352}
3353
3354type OrdersRefundResponse struct {
3355	// ExecutionStatus: The status of the execution.
3356	ExecutionStatus string `json:"executionStatus,omitempty"`
3357
3358	// Kind: Identifies what kind of resource this is. Value: the fixed
3359	// string "content#ordersRefundResponse".
3360	Kind string `json:"kind,omitempty"`
3361
3362	// ServerResponse contains the HTTP response code and headers from the
3363	// server.
3364	googleapi.ServerResponse `json:"-"`
3365
3366	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3367	// unconditionally include in API requests. By default, fields with
3368	// empty values are omitted from API requests. However, any non-pointer,
3369	// non-interface field appearing in ForceSendFields will be sent to the
3370	// server regardless of whether the field is empty or not. This may be
3371	// used to include empty fields in Patch requests.
3372	ForceSendFields []string `json:"-"`
3373
3374	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3375	// include in API requests with the JSON null value. By default, fields
3376	// with empty values are omitted from API requests. However, any field
3377	// with an empty value appearing in NullFields will be sent to the
3378	// server as null. It is an error if a field in this list has a
3379	// non-empty value. This may be used to include null fields in Patch
3380	// requests.
3381	NullFields []string `json:"-"`
3382}
3383
3384func (s *OrdersRefundResponse) MarshalJSON() ([]byte, error) {
3385	type NoMethod OrdersRefundResponse
3386	raw := NoMethod(*s)
3387	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3388}
3389
3390type OrdersRejectReturnLineItemRequest struct {
3391	// LineItemId: The ID of the line item to return. Either lineItemId or
3392	// productId is required.
3393	LineItemId string `json:"lineItemId,omitempty"`
3394
3395	// OperationId: The ID of the operation. Unique across all operations
3396	// for a given order.
3397	OperationId string `json:"operationId,omitempty"`
3398
3399	// ProductId: The ID of the product to return. This is the REST ID used
3400	// in the products service. Either lineItemId or productId is required.
3401	ProductId string `json:"productId,omitempty"`
3402
3403	// Quantity: The quantity to return and refund.
3404	Quantity int64 `json:"quantity,omitempty"`
3405
3406	// Reason: The reason for the return.
3407	Reason string `json:"reason,omitempty"`
3408
3409	// ReasonText: The explanation of the reason.
3410	ReasonText string `json:"reasonText,omitempty"`
3411
3412	// ForceSendFields is a list of field names (e.g. "LineItemId") to
3413	// unconditionally include in API requests. By default, fields with
3414	// empty values are omitted from API requests. However, any non-pointer,
3415	// non-interface field appearing in ForceSendFields will be sent to the
3416	// server regardless of whether the field is empty or not. This may be
3417	// used to include empty fields in Patch requests.
3418	ForceSendFields []string `json:"-"`
3419
3420	// NullFields is a list of field names (e.g. "LineItemId") to include in
3421	// API requests with the JSON null value. By default, fields with empty
3422	// values are omitted from API requests. However, any field with an
3423	// empty value appearing in NullFields will be sent to the server as
3424	// null. It is an error if a field in this list has a non-empty value.
3425	// This may be used to include null fields in Patch requests.
3426	NullFields []string `json:"-"`
3427}
3428
3429func (s *OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) {
3430	type NoMethod OrdersRejectReturnLineItemRequest
3431	raw := NoMethod(*s)
3432	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3433}
3434
3435type OrdersRejectReturnLineItemResponse struct {
3436	// ExecutionStatus: The status of the execution.
3437	ExecutionStatus string `json:"executionStatus,omitempty"`
3438
3439	// Kind: Identifies what kind of resource this is. Value: the fixed
3440	// string "content#ordersRejectReturnLineItemResponse".
3441	Kind string `json:"kind,omitempty"`
3442
3443	// ServerResponse contains the HTTP response code and headers from the
3444	// server.
3445	googleapi.ServerResponse `json:"-"`
3446
3447	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3448	// unconditionally include in API requests. By default, fields with
3449	// empty values are omitted from API requests. However, any non-pointer,
3450	// non-interface field appearing in ForceSendFields will be sent to the
3451	// server regardless of whether the field is empty or not. This may be
3452	// used to include empty fields in Patch requests.
3453	ForceSendFields []string `json:"-"`
3454
3455	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3456	// include in API requests with the JSON null value. By default, fields
3457	// with empty values are omitted from API requests. However, any field
3458	// with an empty value appearing in NullFields will be sent to the
3459	// server as null. It is an error if a field in this list has a
3460	// non-empty value. This may be used to include null fields in Patch
3461	// requests.
3462	NullFields []string `json:"-"`
3463}
3464
3465func (s *OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error) {
3466	type NoMethod OrdersRejectReturnLineItemResponse
3467	raw := NoMethod(*s)
3468	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3469}
3470
3471type OrdersReturnLineItemRequest struct {
3472	// LineItemId: The ID of the line item to return. Either lineItemId or
3473	// productId is required.
3474	LineItemId string `json:"lineItemId,omitempty"`
3475
3476	// OperationId: The ID of the operation. Unique across all operations
3477	// for a given order.
3478	OperationId string `json:"operationId,omitempty"`
3479
3480	// ProductId: The ID of the product to return. This is the REST ID used
3481	// in the products service. Either lineItemId or productId is required.
3482	ProductId string `json:"productId,omitempty"`
3483
3484	// Quantity: The quantity to return.
3485	Quantity int64 `json:"quantity,omitempty"`
3486
3487	// Reason: The reason for the return.
3488	Reason string `json:"reason,omitempty"`
3489
3490	// ReasonText: The explanation of the reason.
3491	ReasonText string `json:"reasonText,omitempty"`
3492
3493	// ForceSendFields is a list of field names (e.g. "LineItemId") to
3494	// unconditionally include in API requests. By default, fields with
3495	// empty values are omitted from API requests. However, any non-pointer,
3496	// non-interface field appearing in ForceSendFields will be sent to the
3497	// server regardless of whether the field is empty or not. This may be
3498	// used to include empty fields in Patch requests.
3499	ForceSendFields []string `json:"-"`
3500
3501	// NullFields is a list of field names (e.g. "LineItemId") to include in
3502	// API requests with the JSON null value. By default, fields with empty
3503	// values are omitted from API requests. However, any field with an
3504	// empty value appearing in NullFields will be sent to the server as
3505	// null. It is an error if a field in this list has a non-empty value.
3506	// This may be used to include null fields in Patch requests.
3507	NullFields []string `json:"-"`
3508}
3509
3510func (s *OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error) {
3511	type NoMethod OrdersReturnLineItemRequest
3512	raw := NoMethod(*s)
3513	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3514}
3515
3516type OrdersReturnLineItemResponse struct {
3517	// ExecutionStatus: The status of the execution.
3518	ExecutionStatus string `json:"executionStatus,omitempty"`
3519
3520	// Kind: Identifies what kind of resource this is. Value: the fixed
3521	// string "content#ordersReturnLineItemResponse".
3522	Kind string `json:"kind,omitempty"`
3523
3524	// ServerResponse contains the HTTP response code and headers from the
3525	// server.
3526	googleapi.ServerResponse `json:"-"`
3527
3528	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3529	// unconditionally include in API requests. By default, fields with
3530	// empty values are omitted from API requests. However, any non-pointer,
3531	// non-interface field appearing in ForceSendFields will be sent to the
3532	// server regardless of whether the field is empty or not. This may be
3533	// used to include empty fields in Patch requests.
3534	ForceSendFields []string `json:"-"`
3535
3536	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3537	// include in API requests with the JSON null value. By default, fields
3538	// with empty values are omitted from API requests. However, any field
3539	// with an empty value appearing in NullFields will be sent to the
3540	// server as null. It is an error if a field in this list has a
3541	// non-empty value. This may be used to include null fields in Patch
3542	// requests.
3543	NullFields []string `json:"-"`
3544}
3545
3546func (s *OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error) {
3547	type NoMethod OrdersReturnLineItemResponse
3548	raw := NoMethod(*s)
3549	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3550}
3551
3552type OrdersReturnRefundLineItemRequest struct {
3553	// AmountPretax: The amount that is refunded. If omitted, refundless
3554	// return is assumed (same as calling returnLineItem method). Optional,
3555	// but if filled then both amountPretax and amountTax must be set.
3556	AmountPretax *Price `json:"amountPretax,omitempty"`
3557
3558	// AmountTax: Tax amount that correspond to refund amount in
3559	// amountPretax.
3560	AmountTax *Price `json:"amountTax,omitempty"`
3561
3562	// LineItemId: The ID of the line item to return. Either lineItemId or
3563	// productId is required.
3564	LineItemId string `json:"lineItemId,omitempty"`
3565
3566	// OperationId: The ID of the operation. Unique across all operations
3567	// for a given order.
3568	OperationId string `json:"operationId,omitempty"`
3569
3570	// ProductId: The ID of the product to return. This is the REST ID used
3571	// in the products service. Either lineItemId or productId is required.
3572	ProductId string `json:"productId,omitempty"`
3573
3574	// Quantity: The quantity to return and refund.
3575	Quantity int64 `json:"quantity,omitempty"`
3576
3577	// Reason: The reason for the return.
3578	Reason string `json:"reason,omitempty"`
3579
3580	// ReasonText: The explanation of the reason.
3581	ReasonText string `json:"reasonText,omitempty"`
3582
3583	// ForceSendFields is a list of field names (e.g. "AmountPretax") to
3584	// unconditionally include in API requests. By default, fields with
3585	// empty values are omitted from API requests. However, any non-pointer,
3586	// non-interface field appearing in ForceSendFields will be sent to the
3587	// server regardless of whether the field is empty or not. This may be
3588	// used to include empty fields in Patch requests.
3589	ForceSendFields []string `json:"-"`
3590
3591	// NullFields is a list of field names (e.g. "AmountPretax") to include
3592	// in API requests with the JSON null value. By default, fields with
3593	// empty values are omitted from API requests. However, any field with
3594	// an empty value appearing in NullFields will be sent to the server as
3595	// null. It is an error if a field in this list has a non-empty value.
3596	// This may be used to include null fields in Patch requests.
3597	NullFields []string `json:"-"`
3598}
3599
3600func (s *OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) {
3601	type NoMethod OrdersReturnRefundLineItemRequest
3602	raw := NoMethod(*s)
3603	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3604}
3605
3606type OrdersReturnRefundLineItemResponse struct {
3607	// ExecutionStatus: The status of the execution.
3608	ExecutionStatus string `json:"executionStatus,omitempty"`
3609
3610	// Kind: Identifies what kind of resource this is. Value: the fixed
3611	// string "content#ordersReturnRefundLineItemResponse".
3612	Kind string `json:"kind,omitempty"`
3613
3614	// ServerResponse contains the HTTP response code and headers from the
3615	// server.
3616	googleapi.ServerResponse `json:"-"`
3617
3618	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3619	// unconditionally include in API requests. By default, fields with
3620	// empty values are omitted from API requests. However, any non-pointer,
3621	// non-interface field appearing in ForceSendFields will be sent to the
3622	// server regardless of whether the field is empty or not. This may be
3623	// used to include empty fields in Patch requests.
3624	ForceSendFields []string `json:"-"`
3625
3626	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3627	// include in API requests with the JSON null value. By default, fields
3628	// with empty values are omitted from API requests. However, any field
3629	// with an empty value appearing in NullFields will be sent to the
3630	// server as null. It is an error if a field in this list has a
3631	// non-empty value. This may be used to include null fields in Patch
3632	// requests.
3633	NullFields []string `json:"-"`
3634}
3635
3636func (s *OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error) {
3637	type NoMethod OrdersReturnRefundLineItemResponse
3638	raw := NoMethod(*s)
3639	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3640}
3641
3642type OrdersSetLineItemMetadataRequest struct {
3643	Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`
3644
3645	// LineItemId: The ID of the line item to set metadata. Either
3646	// lineItemId or productId is required.
3647	LineItemId string `json:"lineItemId,omitempty"`
3648
3649	// OperationId: The ID of the operation. Unique across all operations
3650	// for a given order.
3651	OperationId string `json:"operationId,omitempty"`
3652
3653	// ProductId: The ID of the product to set metadata. This is the REST ID
3654	// used in the products service. Either lineItemId or productId is
3655	// required.
3656	ProductId string `json:"productId,omitempty"`
3657
3658	// ForceSendFields is a list of field names (e.g. "Annotations") to
3659	// unconditionally include in API requests. By default, fields with
3660	// empty values are omitted from API requests. However, any non-pointer,
3661	// non-interface field appearing in ForceSendFields will be sent to the
3662	// server regardless of whether the field is empty or not. This may be
3663	// used to include empty fields in Patch requests.
3664	ForceSendFields []string `json:"-"`
3665
3666	// NullFields is a list of field names (e.g. "Annotations") to include
3667	// in API requests with the JSON null value. By default, fields with
3668	// empty values are omitted from API requests. However, any field with
3669	// an empty value appearing in NullFields will be sent to the server as
3670	// null. It is an error if a field in this list has a non-empty value.
3671	// This may be used to include null fields in Patch requests.
3672	NullFields []string `json:"-"`
3673}
3674
3675func (s *OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) {
3676	type NoMethod OrdersSetLineItemMetadataRequest
3677	raw := NoMethod(*s)
3678	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3679}
3680
3681type OrdersSetLineItemMetadataResponse struct {
3682	// ExecutionStatus: The status of the execution.
3683	ExecutionStatus string `json:"executionStatus,omitempty"`
3684
3685	// Kind: Identifies what kind of resource this is. Value: the fixed
3686	// string "content#ordersSetLineItemMetadataResponse".
3687	Kind string `json:"kind,omitempty"`
3688
3689	// ServerResponse contains the HTTP response code and headers from the
3690	// server.
3691	googleapi.ServerResponse `json:"-"`
3692
3693	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3694	// unconditionally include in API requests. By default, fields with
3695	// empty values are omitted from API requests. However, any non-pointer,
3696	// non-interface field appearing in ForceSendFields will be sent to the
3697	// server regardless of whether the field is empty or not. This may be
3698	// used to include empty fields in Patch requests.
3699	ForceSendFields []string `json:"-"`
3700
3701	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3702	// include in API requests with the JSON null value. By default, fields
3703	// with empty values are omitted from API requests. However, any field
3704	// with an empty value appearing in NullFields will be sent to the
3705	// server as null. It is an error if a field in this list has a
3706	// non-empty value. This may be used to include null fields in Patch
3707	// requests.
3708	NullFields []string `json:"-"`
3709}
3710
3711func (s *OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) {
3712	type NoMethod OrdersSetLineItemMetadataResponse
3713	raw := NoMethod(*s)
3714	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3715}
3716
3717type OrdersShipLineItemsRequest struct {
3718	// Carrier: Deprecated. Please use shipmentInfo instead. The carrier
3719	// handling the shipment. See shipments[].carrier in the  Orders
3720	// resource representation for a list of acceptable values.
3721	Carrier string `json:"carrier,omitempty"`
3722
3723	// LineItems: Line items to ship.
3724	LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
3725
3726	// OperationId: The ID of the operation. Unique across all operations
3727	// for a given order.
3728	OperationId string `json:"operationId,omitempty"`
3729
3730	// ShipmentGroupId: ID of the shipment group. Required for orders that
3731	// use the orderinvoices service.
3732	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
3733
3734	// ShipmentId: Deprecated. Please use shipmentInfo instead. The ID of
3735	// the shipment.
3736	ShipmentId string `json:"shipmentId,omitempty"`
3737
3738	// ShipmentInfos: Shipment information. This field is repeated because a
3739	// single line item can be shipped in several packages (and have several
3740	// tracking IDs).
3741	ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
3742
3743	// TrackingId: Deprecated. Please use shipmentInfo instead. The tracking
3744	// id for the shipment.
3745	TrackingId string `json:"trackingId,omitempty"`
3746
3747	// ForceSendFields is a list of field names (e.g. "Carrier") to
3748	// unconditionally include in API requests. By default, fields with
3749	// empty values are omitted from API requests. However, any non-pointer,
3750	// non-interface field appearing in ForceSendFields will be sent to the
3751	// server regardless of whether the field is empty or not. This may be
3752	// used to include empty fields in Patch requests.
3753	ForceSendFields []string `json:"-"`
3754
3755	// NullFields is a list of field names (e.g. "Carrier") to include in
3756	// API requests with the JSON null value. By default, fields with empty
3757	// values are omitted from API requests. However, any field with an
3758	// empty value appearing in NullFields will be sent to the server as
3759	// null. It is an error if a field in this list has a non-empty value.
3760	// This may be used to include null fields in Patch requests.
3761	NullFields []string `json:"-"`
3762}
3763
3764func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) {
3765	type NoMethod OrdersShipLineItemsRequest
3766	raw := NoMethod(*s)
3767	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3768}
3769
3770type OrdersShipLineItemsResponse struct {
3771	// ExecutionStatus: The status of the execution.
3772	ExecutionStatus string `json:"executionStatus,omitempty"`
3773
3774	// Kind: Identifies what kind of resource this is. Value: the fixed
3775	// string "content#ordersShipLineItemsResponse".
3776	Kind string `json:"kind,omitempty"`
3777
3778	// ServerResponse contains the HTTP response code and headers from the
3779	// server.
3780	googleapi.ServerResponse `json:"-"`
3781
3782	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3783	// unconditionally include in API requests. By default, fields with
3784	// empty values are omitted from API requests. However, any non-pointer,
3785	// non-interface field appearing in ForceSendFields will be sent to the
3786	// server regardless of whether the field is empty or not. This may be
3787	// used to include empty fields in Patch requests.
3788	ForceSendFields []string `json:"-"`
3789
3790	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3791	// include in API requests with the JSON null value. By default, fields
3792	// with empty values are omitted from API requests. However, any field
3793	// with an empty value appearing in NullFields will be sent to the
3794	// server as null. It is an error if a field in this list has a
3795	// non-empty value. This may be used to include null fields in Patch
3796	// requests.
3797	NullFields []string `json:"-"`
3798}
3799
3800func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) {
3801	type NoMethod OrdersShipLineItemsResponse
3802	raw := NoMethod(*s)
3803	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3804}
3805
3806type OrdersUpdateLineItemShippingDetailsRequest struct {
3807	// DeliverByDate: Updated delivery by date, in ISO 8601 format. If not
3808	// specified only ship by date is updated.
3809	DeliverByDate string `json:"deliverByDate,omitempty"`
3810
3811	// LineItemId: The ID of the line item to set metadata. Either
3812	// lineItemId or productId is required.
3813	LineItemId string `json:"lineItemId,omitempty"`
3814
3815	// OperationId: The ID of the operation. Unique across all operations
3816	// for a given order.
3817	OperationId string `json:"operationId,omitempty"`
3818
3819	// ProductId: The ID of the product to set metadata. This is the REST ID
3820	// used in the products service. Either lineItemId or productId is
3821	// required.
3822	ProductId string `json:"productId,omitempty"`
3823
3824	// ShipByDate: Updated ship by date, in ISO 8601 format. If not
3825	// specified only deliver by date is updated.
3826	ShipByDate string `json:"shipByDate,omitempty"`
3827
3828	// ForceSendFields is a list of field names (e.g. "DeliverByDate") to
3829	// unconditionally include in API requests. By default, fields with
3830	// empty values are omitted from API requests. However, any non-pointer,
3831	// non-interface field appearing in ForceSendFields will be sent to the
3832	// server regardless of whether the field is empty or not. This may be
3833	// used to include empty fields in Patch requests.
3834	ForceSendFields []string `json:"-"`
3835
3836	// NullFields is a list of field names (e.g. "DeliverByDate") to include
3837	// in API requests with the JSON null value. By default, fields with
3838	// empty values are omitted from API requests. However, any field with
3839	// an empty value appearing in NullFields will be sent to the server as
3840	// null. It is an error if a field in this list has a non-empty value.
3841	// This may be used to include null fields in Patch requests.
3842	NullFields []string `json:"-"`
3843}
3844
3845func (s *OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error) {
3846	type NoMethod OrdersUpdateLineItemShippingDetailsRequest
3847	raw := NoMethod(*s)
3848	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3849}
3850
3851type OrdersUpdateLineItemShippingDetailsResponse struct {
3852	// ExecutionStatus: The status of the execution.
3853	ExecutionStatus string `json:"executionStatus,omitempty"`
3854
3855	// Kind: Identifies what kind of resource this is. Value: the fixed
3856	// string "content#ordersUpdateLineItemShippingDetailsResponse".
3857	Kind string `json:"kind,omitempty"`
3858
3859	// ServerResponse contains the HTTP response code and headers from the
3860	// server.
3861	googleapi.ServerResponse `json:"-"`
3862
3863	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3864	// unconditionally include in API requests. By default, fields with
3865	// empty values are omitted from API requests. However, any non-pointer,
3866	// non-interface field appearing in ForceSendFields will be sent to the
3867	// server regardless of whether the field is empty or not. This may be
3868	// used to include empty fields in Patch requests.
3869	ForceSendFields []string `json:"-"`
3870
3871	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3872	// include in API requests with the JSON null value. By default, fields
3873	// with empty values are omitted from API requests. However, any field
3874	// with an empty value appearing in NullFields will be sent to the
3875	// server as null. It is an error if a field in this list has a
3876	// non-empty value. This may be used to include null fields in Patch
3877	// requests.
3878	NullFields []string `json:"-"`
3879}
3880
3881func (s *OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error) {
3882	type NoMethod OrdersUpdateLineItemShippingDetailsResponse
3883	raw := NoMethod(*s)
3884	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3885}
3886
3887type OrdersUpdateMerchantOrderIdRequest struct {
3888	// MerchantOrderId: The merchant order id to be assigned to the order.
3889	// Must be unique per merchant.
3890	MerchantOrderId string `json:"merchantOrderId,omitempty"`
3891
3892	// OperationId: The ID of the operation. Unique across all operations
3893	// for a given order.
3894	OperationId string `json:"operationId,omitempty"`
3895
3896	// ForceSendFields is a list of field names (e.g. "MerchantOrderId") to
3897	// unconditionally include in API requests. By default, fields with
3898	// empty values are omitted from API requests. However, any non-pointer,
3899	// non-interface field appearing in ForceSendFields will be sent to the
3900	// server regardless of whether the field is empty or not. This may be
3901	// used to include empty fields in Patch requests.
3902	ForceSendFields []string `json:"-"`
3903
3904	// NullFields is a list of field names (e.g. "MerchantOrderId") to
3905	// include in API requests with the JSON null value. By default, fields
3906	// with empty values are omitted from API requests. However, any field
3907	// with an empty value appearing in NullFields will be sent to the
3908	// server as null. It is an error if a field in this list has a
3909	// non-empty value. This may be used to include null fields in Patch
3910	// requests.
3911	NullFields []string `json:"-"`
3912}
3913
3914func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) {
3915	type NoMethod OrdersUpdateMerchantOrderIdRequest
3916	raw := NoMethod(*s)
3917	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3918}
3919
3920type OrdersUpdateMerchantOrderIdResponse struct {
3921	// ExecutionStatus: The status of the execution.
3922	ExecutionStatus string `json:"executionStatus,omitempty"`
3923
3924	// Kind: Identifies what kind of resource this is. Value: the fixed
3925	// string "content#ordersUpdateMerchantOrderIdResponse".
3926	Kind string `json:"kind,omitempty"`
3927
3928	// ServerResponse contains the HTTP response code and headers from the
3929	// server.
3930	googleapi.ServerResponse `json:"-"`
3931
3932	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
3933	// unconditionally include in API requests. By default, fields with
3934	// empty values are omitted from API requests. However, any non-pointer,
3935	// non-interface field appearing in ForceSendFields will be sent to the
3936	// server regardless of whether the field is empty or not. This may be
3937	// used to include empty fields in Patch requests.
3938	ForceSendFields []string `json:"-"`
3939
3940	// NullFields is a list of field names (e.g. "ExecutionStatus") to
3941	// include in API requests with the JSON null value. By default, fields
3942	// with empty values are omitted from API requests. However, any field
3943	// with an empty value appearing in NullFields will be sent to the
3944	// server as null. It is an error if a field in this list has a
3945	// non-empty value. This may be used to include null fields in Patch
3946	// requests.
3947	NullFields []string `json:"-"`
3948}
3949
3950func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
3951	type NoMethod OrdersUpdateMerchantOrderIdResponse
3952	raw := NoMethod(*s)
3953	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
3954}
3955
3956type OrdersUpdateShipmentRequest struct {
3957	// Carrier: The carrier handling the shipment. Not updated if missing.
3958	// See shipments[].carrier in the  Orders resource representation for a
3959	// list of acceptable values.
3960	Carrier string `json:"carrier,omitempty"`
3961
3962	// DeliveryDate: Date on which the shipment has been delivered, in ISO
3963	// 8601 format. Optional and can be provided only if status is
3964	// delivered.
3965	DeliveryDate string `json:"deliveryDate,omitempty"`
3966
3967	// OperationId: The ID of the operation. Unique across all operations
3968	// for a given order.
3969	OperationId string `json:"operationId,omitempty"`
3970
3971	// ShipmentId: The ID of the shipment.
3972	ShipmentId string `json:"shipmentId,omitempty"`
3973
3974	// Status: New status for the shipment. Not updated if missing.
3975	Status string `json:"status,omitempty"`
3976
3977	// TrackingId: The tracking id for the shipment. Not updated if missing.
3978	TrackingId string `json:"trackingId,omitempty"`
3979
3980	// ForceSendFields is a list of field names (e.g. "Carrier") to
3981	// unconditionally include in API requests. By default, fields with
3982	// empty values are omitted from API requests. However, any non-pointer,
3983	// non-interface field appearing in ForceSendFields will be sent to the
3984	// server regardless of whether the field is empty or not. This may be
3985	// used to include empty fields in Patch requests.
3986	ForceSendFields []string `json:"-"`
3987
3988	// NullFields is a list of field names (e.g. "Carrier") to include in
3989	// API requests with the JSON null value. By default, fields with empty
3990	// values are omitted from API requests. However, any field with an
3991	// empty value appearing in NullFields will be sent to the server as
3992	// null. It is an error if a field in this list has a non-empty value.
3993	// This may be used to include null fields in Patch requests.
3994	NullFields []string `json:"-"`
3995}
3996
3997func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) {
3998	type NoMethod OrdersUpdateShipmentRequest
3999	raw := NoMethod(*s)
4000	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4001}
4002
4003type OrdersUpdateShipmentResponse struct {
4004	// ExecutionStatus: The status of the execution.
4005	ExecutionStatus string `json:"executionStatus,omitempty"`
4006
4007	// Kind: Identifies what kind of resource this is. Value: the fixed
4008	// string "content#ordersUpdateShipmentResponse".
4009	Kind string `json:"kind,omitempty"`
4010
4011	// ServerResponse contains the HTTP response code and headers from the
4012	// server.
4013	googleapi.ServerResponse `json:"-"`
4014
4015	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
4016	// unconditionally include in API requests. By default, fields with
4017	// empty values are omitted from API requests. However, any non-pointer,
4018	// non-interface field appearing in ForceSendFields will be sent to the
4019	// server regardless of whether the field is empty or not. This may be
4020	// used to include empty fields in Patch requests.
4021	ForceSendFields []string `json:"-"`
4022
4023	// NullFields is a list of field names (e.g. "ExecutionStatus") to
4024	// include in API requests with the JSON null value. By default, fields
4025	// with empty values are omitted from API requests. However, any field
4026	// with an empty value appearing in NullFields will be sent to the
4027	// server as null. It is an error if a field in this list has a
4028	// non-empty value. This may be used to include null fields in Patch
4029	// requests.
4030	NullFields []string `json:"-"`
4031}
4032
4033func (s *OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error) {
4034	type NoMethod OrdersUpdateShipmentResponse
4035	raw := NoMethod(*s)
4036	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4037}
4038
4039type Price struct {
4040	// Currency: The currency of the price.
4041	Currency string `json:"currency,omitempty"`
4042
4043	// Value: The price represented as a number.
4044	Value string `json:"value,omitempty"`
4045
4046	// ForceSendFields is a list of field names (e.g. "Currency") to
4047	// unconditionally include in API requests. By default, fields with
4048	// empty values are omitted from API requests. However, any non-pointer,
4049	// non-interface field appearing in ForceSendFields will be sent to the
4050	// server regardless of whether the field is empty or not. This may be
4051	// used to include empty fields in Patch requests.
4052	ForceSendFields []string `json:"-"`
4053
4054	// NullFields is a list of field names (e.g. "Currency") to include in
4055	// API requests with the JSON null value. By default, fields with empty
4056	// values are omitted from API requests. However, any field with an
4057	// empty value appearing in NullFields will be sent to the server as
4058	// null. It is an error if a field in this list has a non-empty value.
4059	// This may be used to include null fields in Patch requests.
4060	NullFields []string `json:"-"`
4061}
4062
4063func (s *Price) MarshalJSON() ([]byte, error) {
4064	type NoMethod Price
4065	raw := NoMethod(*s)
4066	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4067}
4068
4069type Promotion struct {
4070	// PromotionAmount: [required] Amount of the promotion. The values here
4071	// are the promotion applied to the unit price pretax and to the total
4072	// of the tax amounts.
4073	PromotionAmount *Amount `json:"promotionAmount,omitempty"`
4074
4075	// PromotionId: [required] ID of the promotion.
4076	PromotionId string `json:"promotionId,omitempty"`
4077
4078	// ForceSendFields is a list of field names (e.g. "PromotionAmount") to
4079	// unconditionally include in API requests. By default, fields with
4080	// empty values are omitted from API requests. However, any non-pointer,
4081	// non-interface field appearing in ForceSendFields will be sent to the
4082	// server regardless of whether the field is empty or not. This may be
4083	// used to include empty fields in Patch requests.
4084	ForceSendFields []string `json:"-"`
4085
4086	// NullFields is a list of field names (e.g. "PromotionAmount") to
4087	// include in API requests with the JSON null value. By default, fields
4088	// with empty values are omitted from API requests. However, any field
4089	// with an empty value appearing in NullFields will be sent to the
4090	// server as null. It is an error if a field in this list has a
4091	// non-empty value. This may be used to include null fields in Patch
4092	// requests.
4093	NullFields []string `json:"-"`
4094}
4095
4096func (s *Promotion) MarshalJSON() ([]byte, error) {
4097	type NoMethod Promotion
4098	raw := NoMethod(*s)
4099	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4100}
4101
4102type RefundReason struct {
4103	Description string `json:"description,omitempty"`
4104
4105	ReasonCode string `json:"reasonCode,omitempty"`
4106
4107	// ForceSendFields is a list of field names (e.g. "Description") to
4108	// unconditionally include in API requests. By default, fields with
4109	// empty values are omitted from API requests. However, any non-pointer,
4110	// non-interface field appearing in ForceSendFields will be sent to the
4111	// server regardless of whether the field is empty or not. This may be
4112	// used to include empty fields in Patch requests.
4113	ForceSendFields []string `json:"-"`
4114
4115	// NullFields is a list of field names (e.g. "Description") to include
4116	// in API requests with the JSON null value. By default, fields with
4117	// empty values are omitted from API requests. However, any field with
4118	// an empty value appearing in NullFields will be sent to the server as
4119	// null. It is an error if a field in this list has a non-empty value.
4120	// This may be used to include null fields in Patch requests.
4121	NullFields []string `json:"-"`
4122}
4123
4124func (s *RefundReason) MarshalJSON() ([]byte, error) {
4125	type NoMethod RefundReason
4126	raw := NoMethod(*s)
4127	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4128}
4129
4130type ReturnShipment struct {
4131	CreationDate string `json:"creationDate,omitempty"`
4132
4133	ReturnMethodType string `json:"returnMethodType,omitempty"`
4134
4135	ShipmentId string `json:"shipmentId,omitempty"`
4136
4137	ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"`
4138
4139	// ForceSendFields is a list of field names (e.g. "CreationDate") to
4140	// unconditionally include in API requests. By default, fields with
4141	// empty values are omitted from API requests. However, any non-pointer,
4142	// non-interface field appearing in ForceSendFields will be sent to the
4143	// server regardless of whether the field is empty or not. This may be
4144	// used to include empty fields in Patch requests.
4145	ForceSendFields []string `json:"-"`
4146
4147	// NullFields is a list of field names (e.g. "CreationDate") to include
4148	// in API requests with the JSON null value. By default, fields with
4149	// empty values are omitted from API requests. However, any field with
4150	// an empty value appearing in NullFields will be sent to the server as
4151	// null. It is an error if a field in this list has a non-empty value.
4152	// This may be used to include null fields in Patch requests.
4153	NullFields []string `json:"-"`
4154}
4155
4156func (s *ReturnShipment) MarshalJSON() ([]byte, error) {
4157	type NoMethod ReturnShipment
4158	raw := NoMethod(*s)
4159	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4160}
4161
4162type ShipmentInvoice struct {
4163	// InvoiceSummary: [required] Invoice summary.
4164	InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`
4165
4166	// LineItemInvoices: [required] Invoice details per line item.
4167	LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`
4168
4169	// ShipmentGroupId: [required] ID of the shipment group.
4170	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
4171
4172	// ForceSendFields is a list of field names (e.g. "InvoiceSummary") to
4173	// unconditionally include in API requests. By default, fields with
4174	// empty values are omitted from API requests. However, any non-pointer,
4175	// non-interface field appearing in ForceSendFields will be sent to the
4176	// server regardless of whether the field is empty or not. This may be
4177	// used to include empty fields in Patch requests.
4178	ForceSendFields []string `json:"-"`
4179
4180	// NullFields is a list of field names (e.g. "InvoiceSummary") to
4181	// include in API requests with the JSON null value. By default, fields
4182	// with empty values are omitted from API requests. However, any field
4183	// with an empty value appearing in NullFields will be sent to the
4184	// server as null. It is an error if a field in this list has a
4185	// non-empty value. This may be used to include null fields in Patch
4186	// requests.
4187	NullFields []string `json:"-"`
4188}
4189
4190func (s *ShipmentInvoice) MarshalJSON() ([]byte, error) {
4191	type NoMethod ShipmentInvoice
4192	raw := NoMethod(*s)
4193	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4194}
4195
4196type ShipmentInvoiceLineItemInvoice struct {
4197	// LineItemId: ID of the line item. Either lineItemId or productId must
4198	// be set.
4199	LineItemId string `json:"lineItemId,omitempty"`
4200
4201	// ProductId: ID of the product. This is the REST ID used in the
4202	// products service. Either lineItemId or productId must be set.
4203	ProductId string `json:"productId,omitempty"`
4204
4205	// ShipmentUnitIds: [required] Unit IDs to define specific units within
4206	// the line item.
4207	ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"`
4208
4209	// UnitInvoice: [required] Invoice details for a single unit.
4210	UnitInvoice *UnitInvoice `json:"unitInvoice,omitempty"`
4211
4212	// ForceSendFields is a list of field names (e.g. "LineItemId") to
4213	// unconditionally include in API requests. By default, fields with
4214	// empty values are omitted from API requests. However, any non-pointer,
4215	// non-interface field appearing in ForceSendFields will be sent to the
4216	// server regardless of whether the field is empty or not. This may be
4217	// used to include empty fields in Patch requests.
4218	ForceSendFields []string `json:"-"`
4219
4220	// NullFields is a list of field names (e.g. "LineItemId") to include in
4221	// API requests with the JSON null value. By default, fields with empty
4222	// values are omitted from API requests. However, any field with an
4223	// empty value appearing in NullFields will be sent to the server as
4224	// null. It is an error if a field in this list has a non-empty value.
4225	// This may be used to include null fields in Patch requests.
4226	NullFields []string `json:"-"`
4227}
4228
4229func (s *ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) {
4230	type NoMethod ShipmentInvoiceLineItemInvoice
4231	raw := NoMethod(*s)
4232	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4233}
4234
4235type ShipmentTrackingInfo struct {
4236	Carrier string `json:"carrier,omitempty"`
4237
4238	TrackingNumber string `json:"trackingNumber,omitempty"`
4239
4240	// ForceSendFields is a list of field names (e.g. "Carrier") to
4241	// unconditionally include in API requests. By default, fields with
4242	// empty values are omitted from API requests. However, any non-pointer,
4243	// non-interface field appearing in ForceSendFields will be sent to the
4244	// server regardless of whether the field is empty or not. This may be
4245	// used to include empty fields in Patch requests.
4246	ForceSendFields []string `json:"-"`
4247
4248	// NullFields is a list of field names (e.g. "Carrier") to include in
4249	// API requests with the JSON null value. By default, fields with empty
4250	// values are omitted from API requests. However, any field with an
4251	// empty value appearing in NullFields will be sent to the server as
4252	// null. It is an error if a field in this list has a non-empty value.
4253	// This may be used to include null fields in Patch requests.
4254	NullFields []string `json:"-"`
4255}
4256
4257func (s *ShipmentTrackingInfo) MarshalJSON() ([]byte, error) {
4258	type NoMethod ShipmentTrackingInfo
4259	raw := NoMethod(*s)
4260	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4261}
4262
4263type TestOrder struct {
4264	// Customer: The details of the customer who placed the order.
4265	Customer *TestOrderCustomer `json:"customer,omitempty"`
4266
4267	// EnableOrderinvoices: Whether the orderinvoices service should support
4268	// this order.
4269	EnableOrderinvoices bool `json:"enableOrderinvoices,omitempty"`
4270
4271	// Kind: Identifies what kind of resource this is. Value: the fixed
4272	// string "content#testOrder".
4273	Kind string `json:"kind,omitempty"`
4274
4275	// LineItems: Line items that are ordered. At least one line item must
4276	// be provided.
4277	LineItems []*TestOrderLineItem `json:"lineItems,omitempty"`
4278
4279	// NotificationMode: Determines if test order must be pulled by merchant
4280	// or pushed to merchant via push integration.
4281	NotificationMode string `json:"notificationMode,omitempty"`
4282
4283	// PaymentMethod: The details of the payment method.
4284	PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"`
4285
4286	// PredefinedDeliveryAddress: Identifier of one of the predefined
4287	// delivery addresses for the delivery.
4288	PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"`
4289
4290	// Promotions: Deprecated. The details of the merchant provided
4291	// promotions applied to the order. More details about the program are
4292	// here.
4293	Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"`
4294
4295	// ShippingCost: The total cost of shipping for all items.
4296	ShippingCost *Price `json:"shippingCost,omitempty"`
4297
4298	// ShippingCostTax: The tax for the total shipping cost.
4299	ShippingCostTax *Price `json:"shippingCostTax,omitempty"`
4300
4301	// ShippingOption: The requested shipping option.
4302	ShippingOption string `json:"shippingOption,omitempty"`
4303
4304	// ForceSendFields is a list of field names (e.g. "Customer") to
4305	// unconditionally include in API requests. By default, fields with
4306	// empty values are omitted from API requests. However, any non-pointer,
4307	// non-interface field appearing in ForceSendFields will be sent to the
4308	// server regardless of whether the field is empty or not. This may be
4309	// used to include empty fields in Patch requests.
4310	ForceSendFields []string `json:"-"`
4311
4312	// NullFields is a list of field names (e.g. "Customer") to include in
4313	// API requests with the JSON null value. By default, fields with empty
4314	// values are omitted from API requests. However, any field with an
4315	// empty value appearing in NullFields will be sent to the server as
4316	// null. It is an error if a field in this list has a non-empty value.
4317	// This may be used to include null fields in Patch requests.
4318	NullFields []string `json:"-"`
4319}
4320
4321func (s *TestOrder) MarshalJSON() ([]byte, error) {
4322	type NoMethod TestOrder
4323	raw := NoMethod(*s)
4324	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4325}
4326
4327type TestOrderCustomer struct {
4328	// Email: Deprecated.
4329	Email string `json:"email,omitempty"`
4330
4331	// ExplicitMarketingPreference: Deprecated. Please use
4332	// marketingRightsInfo instead.
4333	ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`
4334
4335	// FullName: Full name of the customer.
4336	FullName string `json:"fullName,omitempty"`
4337
4338	// MarketingRightsInfo: Customer's marketing preferences.
4339	MarketingRightsInfo *TestOrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
4340
4341	// ForceSendFields is a list of field names (e.g. "Email") to
4342	// unconditionally include in API requests. By default, fields with
4343	// empty values are omitted from API requests. However, any non-pointer,
4344	// non-interface field appearing in ForceSendFields will be sent to the
4345	// server regardless of whether the field is empty or not. This may be
4346	// used to include empty fields in Patch requests.
4347	ForceSendFields []string `json:"-"`
4348
4349	// NullFields is a list of field names (e.g. "Email") to include in API
4350	// requests with the JSON null value. By default, fields with empty
4351	// values are omitted from API requests. However, any field with an
4352	// empty value appearing in NullFields will be sent to the server as
4353	// null. It is an error if a field in this list has a non-empty value.
4354	// This may be used to include null fields in Patch requests.
4355	NullFields []string `json:"-"`
4356}
4357
4358func (s *TestOrderCustomer) MarshalJSON() ([]byte, error) {
4359	type NoMethod TestOrderCustomer
4360	raw := NoMethod(*s)
4361	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4362}
4363
4364type TestOrderCustomerMarketingRightsInfo struct {
4365	// ExplicitMarketingPreference: Last know user use selection regards
4366	// marketing preferences. In certain cases selection might not be known,
4367	// so this field would be empty.
4368	ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
4369
4370	// LastUpdatedTimestamp: Timestamp when last time marketing preference
4371	// was updated. Could be empty, if user wasn't offered a selection yet.
4372	LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
4373
4374	// ForceSendFields is a list of field names (e.g.
4375	// "ExplicitMarketingPreference") to unconditionally include in API
4376	// requests. By default, fields with empty values are omitted from API
4377	// requests. However, any non-pointer, non-interface field appearing in
4378	// ForceSendFields will be sent to the server regardless of whether the
4379	// field is empty or not. This may be used to include empty fields in
4380	// Patch requests.
4381	ForceSendFields []string `json:"-"`
4382
4383	// NullFields is a list of field names (e.g.
4384	// "ExplicitMarketingPreference") to include in API requests with the
4385	// JSON null value. By default, fields with empty values are omitted
4386	// from API requests. However, any field with an empty value appearing
4387	// in NullFields will be sent to the server as null. It is an error if a
4388	// field in this list has a non-empty value. This may be used to include
4389	// null fields in Patch requests.
4390	NullFields []string `json:"-"`
4391}
4392
4393func (s *TestOrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
4394	type NoMethod TestOrderCustomerMarketingRightsInfo
4395	raw := NoMethod(*s)
4396	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4397}
4398
4399type TestOrderLineItem struct {
4400	// Product: Product data from the time of the order placement.
4401	Product *TestOrderLineItemProduct `json:"product,omitempty"`
4402
4403	// QuantityOrdered: Number of items ordered.
4404	QuantityOrdered int64 `json:"quantityOrdered,omitempty"`
4405
4406	// ReturnInfo: Details of the return policy for the line item.
4407	ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`
4408
4409	// ShippingDetails: Details of the requested shipping for the line item.
4410	ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`
4411
4412	// UnitTax: Unit tax for the line item.
4413	UnitTax *Price `json:"unitTax,omitempty"`
4414
4415	// ForceSendFields is a list of field names (e.g. "Product") to
4416	// unconditionally include in API requests. By default, fields with
4417	// empty values are omitted from API requests. However, any non-pointer,
4418	// non-interface field appearing in ForceSendFields will be sent to the
4419	// server regardless of whether the field is empty or not. This may be
4420	// used to include empty fields in Patch requests.
4421	ForceSendFields []string `json:"-"`
4422
4423	// NullFields is a list of field names (e.g. "Product") to include in
4424	// API requests with the JSON null value. By default, fields with empty
4425	// values are omitted from API requests. However, any field with an
4426	// empty value appearing in NullFields will be sent to the server as
4427	// null. It is an error if a field in this list has a non-empty value.
4428	// This may be used to include null fields in Patch requests.
4429	NullFields []string `json:"-"`
4430}
4431
4432func (s *TestOrderLineItem) MarshalJSON() ([]byte, error) {
4433	type NoMethod TestOrderLineItem
4434	raw := NoMethod(*s)
4435	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4436}
4437
4438type TestOrderLineItemProduct struct {
4439	// Brand: Brand of the item.
4440	Brand string `json:"brand,omitempty"`
4441
4442	// Channel: The item's channel.
4443	Channel string `json:"channel,omitempty"`
4444
4445	// Condition: Condition or state of the item.
4446	Condition string `json:"condition,omitempty"`
4447
4448	// ContentLanguage: The two-letter ISO 639-1 language code for the item.
4449	ContentLanguage string `json:"contentLanguage,omitempty"`
4450
4451	// Gtin: Global Trade Item Number (GTIN) of the item. Optional.
4452	Gtin string `json:"gtin,omitempty"`
4453
4454	// ImageLink: URL of an image of the item.
4455	ImageLink string `json:"imageLink,omitempty"`
4456
4457	// ItemGroupId: Shared identifier for all variants of the same product.
4458	// Optional.
4459	ItemGroupId string `json:"itemGroupId,omitempty"`
4460
4461	// Mpn: Manufacturer Part Number (MPN) of the item. Optional.
4462	Mpn string `json:"mpn,omitempty"`
4463
4464	// OfferId: An identifier of the item.
4465	OfferId string `json:"offerId,omitempty"`
4466
4467	// Price: The price for the product.
4468	Price *Price `json:"price,omitempty"`
4469
4470	// TargetCountry: The CLDR territory code of the target country of the
4471	// product.
4472	TargetCountry string `json:"targetCountry,omitempty"`
4473
4474	// Title: The title of the product.
4475	Title string `json:"title,omitempty"`
4476
4477	// VariantAttributes: Variant attributes for the item. Optional.
4478	VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`
4479
4480	// ForceSendFields is a list of field names (e.g. "Brand") to
4481	// unconditionally include in API requests. By default, fields with
4482	// empty values are omitted from API requests. However, any non-pointer,
4483	// non-interface field appearing in ForceSendFields will be sent to the
4484	// server regardless of whether the field is empty or not. This may be
4485	// used to include empty fields in Patch requests.
4486	ForceSendFields []string `json:"-"`
4487
4488	// NullFields is a list of field names (e.g. "Brand") to include in API
4489	// requests with the JSON null value. By default, fields with empty
4490	// values are omitted from API requests. However, any field with an
4491	// empty value appearing in NullFields will be sent to the server as
4492	// null. It is an error if a field in this list has a non-empty value.
4493	// This may be used to include null fields in Patch requests.
4494	NullFields []string `json:"-"`
4495}
4496
4497func (s *TestOrderLineItemProduct) MarshalJSON() ([]byte, error) {
4498	type NoMethod TestOrderLineItemProduct
4499	raw := NoMethod(*s)
4500	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4501}
4502
4503type TestOrderPaymentMethod struct {
4504	// ExpirationMonth: The card expiration month (January = 1, February = 2
4505	// etc.).
4506	ExpirationMonth int64 `json:"expirationMonth,omitempty"`
4507
4508	// ExpirationYear: The card expiration year (4-digit, e.g. 2015).
4509	ExpirationYear int64 `json:"expirationYear,omitempty"`
4510
4511	// LastFourDigits: The last four digits of the card number.
4512	LastFourDigits string `json:"lastFourDigits,omitempty"`
4513
4514	// PredefinedBillingAddress: The billing address.
4515	PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"`
4516
4517	// Type: The type of instrument. Note that real orders might have
4518	// different values than the four values accepted by createTestOrder.
4519	Type string `json:"type,omitempty"`
4520
4521	// ForceSendFields is a list of field names (e.g. "ExpirationMonth") to
4522	// unconditionally include in API requests. By default, fields with
4523	// empty values are omitted from API requests. However, any non-pointer,
4524	// non-interface field appearing in ForceSendFields will be sent to the
4525	// server regardless of whether the field is empty or not. This may be
4526	// used to include empty fields in Patch requests.
4527	ForceSendFields []string `json:"-"`
4528
4529	// NullFields is a list of field names (e.g. "ExpirationMonth") to
4530	// include in API requests with the JSON null value. By default, fields
4531	// with empty values are omitted from API requests. However, any field
4532	// with an empty value appearing in NullFields will be sent to the
4533	// server as null. It is an error if a field in this list has a
4534	// non-empty value. This may be used to include null fields in Patch
4535	// requests.
4536	NullFields []string `json:"-"`
4537}
4538
4539func (s *TestOrderPaymentMethod) MarshalJSON() ([]byte, error) {
4540	type NoMethod TestOrderPaymentMethod
4541	raw := NoMethod(*s)
4542	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4543}
4544
4545type UnitInvoice struct {
4546	// AdditionalCharges: Additional charges for a unit, e.g. shipping
4547	// costs.
4548	AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"`
4549
4550	// Promotions: Promotions applied to a unit.
4551	Promotions []*Promotion `json:"promotions,omitempty"`
4552
4553	// UnitPricePretax: [required] Price of the unit, before applying taxes.
4554	UnitPricePretax *Price `json:"unitPricePretax,omitempty"`
4555
4556	// UnitPriceTaxes: Tax amounts to apply to the unit price.
4557	UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"`
4558
4559	// ForceSendFields is a list of field names (e.g. "AdditionalCharges")
4560	// to unconditionally include in API requests. By default, fields with
4561	// empty values are omitted from API requests. However, any non-pointer,
4562	// non-interface field appearing in ForceSendFields will be sent to the
4563	// server regardless of whether the field is empty or not. This may be
4564	// used to include empty fields in Patch requests.
4565	ForceSendFields []string `json:"-"`
4566
4567	// NullFields is a list of field names (e.g. "AdditionalCharges") to
4568	// include in API requests with the JSON null value. By default, fields
4569	// with empty values are omitted from API requests. However, any field
4570	// with an empty value appearing in NullFields will be sent to the
4571	// server as null. It is an error if a field in this list has a
4572	// non-empty value. This may be used to include null fields in Patch
4573	// requests.
4574	NullFields []string `json:"-"`
4575}
4576
4577func (s *UnitInvoice) MarshalJSON() ([]byte, error) {
4578	type NoMethod UnitInvoice
4579	raw := NoMethod(*s)
4580	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4581}
4582
4583type UnitInvoiceAdditionalCharge struct {
4584	// AdditionalChargeAmount: [required] Amount of the additional charge.
4585	AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"`
4586
4587	// AdditionalChargePromotions: Promotions applied to the additional
4588	// charge.
4589	AdditionalChargePromotions []*Promotion `json:"additionalChargePromotions,omitempty"`
4590
4591	// Type: [required] Type of the additional charge.
4592	Type string `json:"type,omitempty"`
4593
4594	// ForceSendFields is a list of field names (e.g.
4595	// "AdditionalChargeAmount") to unconditionally include in API requests.
4596	// By default, fields with empty values are omitted from API requests.
4597	// However, any non-pointer, non-interface field appearing in
4598	// ForceSendFields will be sent to the server regardless of whether the
4599	// field is empty or not. This may be used to include empty fields in
4600	// Patch requests.
4601	ForceSendFields []string `json:"-"`
4602
4603	// NullFields is a list of field names (e.g. "AdditionalChargeAmount")
4604	// to include in API requests with the JSON null value. By default,
4605	// fields with empty values are omitted from API requests. However, any
4606	// field with an empty value appearing in NullFields will be sent to the
4607	// server as null. It is an error if a field in this list has a
4608	// non-empty value. This may be used to include null fields in Patch
4609	// requests.
4610	NullFields []string `json:"-"`
4611}
4612
4613func (s *UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error) {
4614	type NoMethod UnitInvoiceAdditionalCharge
4615	raw := NoMethod(*s)
4616	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4617}
4618
4619type UnitInvoiceTaxLine struct {
4620	// TaxAmount: [required] Tax amount for the tax type.
4621	TaxAmount *Price `json:"taxAmount,omitempty"`
4622
4623	// TaxName: Optional name of the tax type. This should only be provided
4624	// if taxType is otherFeeTax.
4625	TaxName string `json:"taxName,omitempty"`
4626
4627	// TaxType: [required] Type of the tax.
4628	TaxType string `json:"taxType,omitempty"`
4629
4630	// ForceSendFields is a list of field names (e.g. "TaxAmount") to
4631	// unconditionally include in API requests. By default, fields with
4632	// empty values are omitted from API requests. However, any non-pointer,
4633	// non-interface field appearing in ForceSendFields will be sent to the
4634	// server regardless of whether the field is empty or not. This may be
4635	// used to include empty fields in Patch requests.
4636	ForceSendFields []string `json:"-"`
4637
4638	// NullFields is a list of field names (e.g. "TaxAmount") to include in
4639	// API requests with the JSON null value. By default, fields with empty
4640	// values are omitted from API requests. However, any field with an
4641	// empty value appearing in NullFields will be sent to the server as
4642	// null. It is an error if a field in this list has a non-empty value.
4643	// This may be used to include null fields in Patch requests.
4644	NullFields []string `json:"-"`
4645}
4646
4647func (s *UnitInvoiceTaxLine) MarshalJSON() ([]byte, error) {
4648	type NoMethod UnitInvoiceTaxLine
4649	raw := NoMethod(*s)
4650	return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
4651}
4652
4653// method id "content.orderinvoices.createchargeinvoice":
4654
4655type OrderinvoicesCreatechargeinvoiceCall struct {
4656	s                                       *APIService
4657	merchantId                              uint64
4658	orderId                                 string
4659	orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest
4660	urlParams_                              gensupport.URLParams
4661	ctx_                                    context.Context
4662	header_                                 http.Header
4663}
4664
4665// Createchargeinvoice: Creates a charge invoice for a shipment group,
4666// and triggers a charge capture for non-facilitated payment orders.
4667func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId string, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall {
4668	c := &OrderinvoicesCreatechargeinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4669	c.merchantId = merchantId
4670	c.orderId = orderId
4671	c.orderinvoicescreatechargeinvoicerequest = orderinvoicescreatechargeinvoicerequest
4672	return c
4673}
4674
4675// Fields allows partial responses to be retrieved. See
4676// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4677// for more information.
4678func (c *OrderinvoicesCreatechargeinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreatechargeinvoiceCall {
4679	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4680	return c
4681}
4682
4683// Context sets the context to be used in this call's Do method. Any
4684// pending HTTP request will be aborted if the provided context is
4685// canceled.
4686func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall {
4687	c.ctx_ = ctx
4688	return c
4689}
4690
4691// Header returns an http.Header that can be modified by the caller to
4692// add HTTP headers to the request.
4693func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header {
4694	if c.header_ == nil {
4695		c.header_ = make(http.Header)
4696	}
4697	return c.header_
4698}
4699
4700func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Response, error) {
4701	reqHeaders := make(http.Header)
4702	for k, v := range c.header_ {
4703		reqHeaders[k] = v
4704	}
4705	reqHeaders.Set("User-Agent", c.s.userAgent())
4706	var body io.Reader = nil
4707	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreatechargeinvoicerequest)
4708	if err != nil {
4709		return nil, err
4710	}
4711	reqHeaders.Set("Content-Type", "application/json")
4712	c.urlParams_.Set("alt", alt)
4713	c.urlParams_.Set("prettyPrint", "false")
4714	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createChargeInvoice")
4715	urls += "?" + c.urlParams_.Encode()
4716	req, err := http.NewRequest("POST", urls, body)
4717	if err != nil {
4718		return nil, err
4719	}
4720	req.Header = reqHeaders
4721	googleapi.Expand(req.URL, map[string]string{
4722		"merchantId": strconv.FormatUint(c.merchantId, 10),
4723		"orderId":    c.orderId,
4724	})
4725	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4726}
4727
4728// Do executes the "content.orderinvoices.createchargeinvoice" call.
4729// Exactly one of *OrderinvoicesCreateChargeInvoiceResponse or error
4730// will be non-nil. Any non-2xx status code is an error. Response
4731// headers are in either
4732// *OrderinvoicesCreateChargeInvoiceResponse.ServerResponse.Header or
4733// (if a response was returned at all) in
4734// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
4735// whether the returned error was because http.StatusNotModified was
4736// returned.
4737func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error) {
4738	gensupport.SetOptions(c.urlParams_, opts...)
4739	res, err := c.doRequest("json")
4740	if res != nil && res.StatusCode == http.StatusNotModified {
4741		if res.Body != nil {
4742			res.Body.Close()
4743		}
4744		return nil, &googleapi.Error{
4745			Code:   res.StatusCode,
4746			Header: res.Header,
4747		}
4748	}
4749	if err != nil {
4750		return nil, err
4751	}
4752	defer googleapi.CloseBody(res)
4753	if err := googleapi.CheckResponse(res); err != nil {
4754		return nil, err
4755	}
4756	ret := &OrderinvoicesCreateChargeInvoiceResponse{
4757		ServerResponse: googleapi.ServerResponse{
4758			Header:         res.Header,
4759			HTTPStatusCode: res.StatusCode,
4760		},
4761	}
4762	target := &ret
4763	if err := gensupport.DecodeResponse(target, res); err != nil {
4764		return nil, err
4765	}
4766	return ret, nil
4767	// {
4768	//   "description": "Creates a charge invoice for a shipment group, and triggers a charge capture for non-facilitated payment orders.",
4769	//   "httpMethod": "POST",
4770	//   "id": "content.orderinvoices.createchargeinvoice",
4771	//   "parameterOrder": [
4772	//     "merchantId",
4773	//     "orderId"
4774	//   ],
4775	//   "parameters": {
4776	//     "merchantId": {
4777	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
4778	//       "format": "uint64",
4779	//       "location": "path",
4780	//       "required": true,
4781	//       "type": "string"
4782	//     },
4783	//     "orderId": {
4784	//       "description": "The ID of the order.",
4785	//       "location": "path",
4786	//       "required": true,
4787	//       "type": "string"
4788	//     }
4789	//   },
4790	//   "path": "{merchantId}/orderinvoices/{orderId}/createChargeInvoice",
4791	//   "request": {
4792	//     "$ref": "OrderinvoicesCreateChargeInvoiceRequest"
4793	//   },
4794	//   "response": {
4795	//     "$ref": "OrderinvoicesCreateChargeInvoiceResponse"
4796	//   },
4797	//   "scopes": [
4798	//     "https://www.googleapis.com/auth/content"
4799	//   ]
4800	// }
4801
4802}
4803
4804// method id "content.orderinvoices.createrefundinvoice":
4805
4806type OrderinvoicesCreaterefundinvoiceCall struct {
4807	s                                       *APIService
4808	merchantId                              uint64
4809	orderId                                 string
4810	orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest
4811	urlParams_                              gensupport.URLParams
4812	ctx_                                    context.Context
4813	header_                                 http.Header
4814}
4815
4816// Createrefundinvoice: Creates a refund invoice for one or more
4817// shipment groups, and triggers a refund for non-facilitated payment
4818// orders. This can only be used for line items that have previously
4819// been charged using createChargeInvoice. All amounts (except for the
4820// summary) are incremental with respect to the previous invoice.
4821func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId string, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall {
4822	c := &OrderinvoicesCreaterefundinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4823	c.merchantId = merchantId
4824	c.orderId = orderId
4825	c.orderinvoicescreaterefundinvoicerequest = orderinvoicescreaterefundinvoicerequest
4826	return c
4827}
4828
4829// Fields allows partial responses to be retrieved. See
4830// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4831// for more information.
4832func (c *OrderinvoicesCreaterefundinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreaterefundinvoiceCall {
4833	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4834	return c
4835}
4836
4837// Context sets the context to be used in this call's Do method. Any
4838// pending HTTP request will be aborted if the provided context is
4839// canceled.
4840func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall {
4841	c.ctx_ = ctx
4842	return c
4843}
4844
4845// Header returns an http.Header that can be modified by the caller to
4846// add HTTP headers to the request.
4847func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header {
4848	if c.header_ == nil {
4849		c.header_ = make(http.Header)
4850	}
4851	return c.header_
4852}
4853
4854func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Response, error) {
4855	reqHeaders := make(http.Header)
4856	for k, v := range c.header_ {
4857		reqHeaders[k] = v
4858	}
4859	reqHeaders.Set("User-Agent", c.s.userAgent())
4860	var body io.Reader = nil
4861	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreaterefundinvoicerequest)
4862	if err != nil {
4863		return nil, err
4864	}
4865	reqHeaders.Set("Content-Type", "application/json")
4866	c.urlParams_.Set("alt", alt)
4867	c.urlParams_.Set("prettyPrint", "false")
4868	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createRefundInvoice")
4869	urls += "?" + c.urlParams_.Encode()
4870	req, err := http.NewRequest("POST", urls, body)
4871	if err != nil {
4872		return nil, err
4873	}
4874	req.Header = reqHeaders
4875	googleapi.Expand(req.URL, map[string]string{
4876		"merchantId": strconv.FormatUint(c.merchantId, 10),
4877		"orderId":    c.orderId,
4878	})
4879	return gensupport.SendRequest(c.ctx_, c.s.client, req)
4880}
4881
4882// Do executes the "content.orderinvoices.createrefundinvoice" call.
4883// Exactly one of *OrderinvoicesCreateRefundInvoiceResponse or error
4884// will be non-nil. Any non-2xx status code is an error. Response
4885// headers are in either
4886// *OrderinvoicesCreateRefundInvoiceResponse.ServerResponse.Header or
4887// (if a response was returned at all) in
4888// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
4889// whether the returned error was because http.StatusNotModified was
4890// returned.
4891func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error) {
4892	gensupport.SetOptions(c.urlParams_, opts...)
4893	res, err := c.doRequest("json")
4894	if res != nil && res.StatusCode == http.StatusNotModified {
4895		if res.Body != nil {
4896			res.Body.Close()
4897		}
4898		return nil, &googleapi.Error{
4899			Code:   res.StatusCode,
4900			Header: res.Header,
4901		}
4902	}
4903	if err != nil {
4904		return nil, err
4905	}
4906	defer googleapi.CloseBody(res)
4907	if err := googleapi.CheckResponse(res); err != nil {
4908		return nil, err
4909	}
4910	ret := &OrderinvoicesCreateRefundInvoiceResponse{
4911		ServerResponse: googleapi.ServerResponse{
4912			Header:         res.Header,
4913			HTTPStatusCode: res.StatusCode,
4914		},
4915	}
4916	target := &ret
4917	if err := gensupport.DecodeResponse(target, res); err != nil {
4918		return nil, err
4919	}
4920	return ret, nil
4921	// {
4922	//   "description": "Creates a refund invoice for one or more shipment groups, and triggers a refund for non-facilitated payment orders. This can only be used for line items that have previously been charged using createChargeInvoice. All amounts (except for the summary) are incremental with respect to the previous invoice.",
4923	//   "httpMethod": "POST",
4924	//   "id": "content.orderinvoices.createrefundinvoice",
4925	//   "parameterOrder": [
4926	//     "merchantId",
4927	//     "orderId"
4928	//   ],
4929	//   "parameters": {
4930	//     "merchantId": {
4931	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
4932	//       "format": "uint64",
4933	//       "location": "path",
4934	//       "required": true,
4935	//       "type": "string"
4936	//     },
4937	//     "orderId": {
4938	//       "description": "The ID of the order.",
4939	//       "location": "path",
4940	//       "required": true,
4941	//       "type": "string"
4942	//     }
4943	//   },
4944	//   "path": "{merchantId}/orderinvoices/{orderId}/createRefundInvoice",
4945	//   "request": {
4946	//     "$ref": "OrderinvoicesCreateRefundInvoiceRequest"
4947	//   },
4948	//   "response": {
4949	//     "$ref": "OrderinvoicesCreateRefundInvoiceResponse"
4950	//   },
4951	//   "scopes": [
4952	//     "https://www.googleapis.com/auth/content"
4953	//   ]
4954	// }
4955
4956}
4957
4958// method id "content.orderpayments.notifyauthapproved":
4959
4960type OrderpaymentsNotifyauthapprovedCall struct {
4961	s                                      *APIService
4962	merchantId                             uint64
4963	orderId                                string
4964	orderpaymentsnotifyauthapprovedrequest *OrderpaymentsNotifyAuthApprovedRequest
4965	urlParams_                             gensupport.URLParams
4966	ctx_                                   context.Context
4967	header_                                http.Header
4968}
4969
4970// Notifyauthapproved: Notify about successfully authorizing user's
4971// payment method for a given amount.
4972func (r *OrderpaymentsService) Notifyauthapproved(merchantId uint64, orderId string, orderpaymentsnotifyauthapprovedrequest *OrderpaymentsNotifyAuthApprovedRequest) *OrderpaymentsNotifyauthapprovedCall {
4973	c := &OrderpaymentsNotifyauthapprovedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
4974	c.merchantId = merchantId
4975	c.orderId = orderId
4976	c.orderpaymentsnotifyauthapprovedrequest = orderpaymentsnotifyauthapprovedrequest
4977	return c
4978}
4979
4980// Fields allows partial responses to be retrieved. See
4981// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
4982// for more information.
4983func (c *OrderpaymentsNotifyauthapprovedCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifyauthapprovedCall {
4984	c.urlParams_.Set("fields", googleapi.CombineFields(s))
4985	return c
4986}
4987
4988// Context sets the context to be used in this call's Do method. Any
4989// pending HTTP request will be aborted if the provided context is
4990// canceled.
4991func (c *OrderpaymentsNotifyauthapprovedCall) Context(ctx context.Context) *OrderpaymentsNotifyauthapprovedCall {
4992	c.ctx_ = ctx
4993	return c
4994}
4995
4996// Header returns an http.Header that can be modified by the caller to
4997// add HTTP headers to the request.
4998func (c *OrderpaymentsNotifyauthapprovedCall) Header() http.Header {
4999	if c.header_ == nil {
5000		c.header_ = make(http.Header)
5001	}
5002	return c.header_
5003}
5004
5005func (c *OrderpaymentsNotifyauthapprovedCall) doRequest(alt string) (*http.Response, error) {
5006	reqHeaders := make(http.Header)
5007	for k, v := range c.header_ {
5008		reqHeaders[k] = v
5009	}
5010	reqHeaders.Set("User-Agent", c.s.userAgent())
5011	var body io.Reader = nil
5012	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifyauthapprovedrequest)
5013	if err != nil {
5014		return nil, err
5015	}
5016	reqHeaders.Set("Content-Type", "application/json")
5017	c.urlParams_.Set("alt", alt)
5018	c.urlParams_.Set("prettyPrint", "false")
5019	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyAuthApproved")
5020	urls += "?" + c.urlParams_.Encode()
5021	req, err := http.NewRequest("POST", urls, body)
5022	if err != nil {
5023		return nil, err
5024	}
5025	req.Header = reqHeaders
5026	googleapi.Expand(req.URL, map[string]string{
5027		"merchantId": strconv.FormatUint(c.merchantId, 10),
5028		"orderId":    c.orderId,
5029	})
5030	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5031}
5032
5033// Do executes the "content.orderpayments.notifyauthapproved" call.
5034// Exactly one of *OrderpaymentsNotifyAuthApprovedResponse or error will
5035// be non-nil. Any non-2xx status code is an error. Response headers are
5036// in either
5037// *OrderpaymentsNotifyAuthApprovedResponse.ServerResponse.Header or (if
5038// a response was returned at all) in error.(*googleapi.Error).Header.
5039// Use googleapi.IsNotModified to check whether the returned error was
5040// because http.StatusNotModified was returned.
5041func (c *OrderpaymentsNotifyauthapprovedCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyAuthApprovedResponse, error) {
5042	gensupport.SetOptions(c.urlParams_, opts...)
5043	res, err := c.doRequest("json")
5044	if res != nil && res.StatusCode == http.StatusNotModified {
5045		if res.Body != nil {
5046			res.Body.Close()
5047		}
5048		return nil, &googleapi.Error{
5049			Code:   res.StatusCode,
5050			Header: res.Header,
5051		}
5052	}
5053	if err != nil {
5054		return nil, err
5055	}
5056	defer googleapi.CloseBody(res)
5057	if err := googleapi.CheckResponse(res); err != nil {
5058		return nil, err
5059	}
5060	ret := &OrderpaymentsNotifyAuthApprovedResponse{
5061		ServerResponse: googleapi.ServerResponse{
5062			Header:         res.Header,
5063			HTTPStatusCode: res.StatusCode,
5064		},
5065	}
5066	target := &ret
5067	if err := gensupport.DecodeResponse(target, res); err != nil {
5068		return nil, err
5069	}
5070	return ret, nil
5071	// {
5072	//   "description": "Notify about successfully authorizing user's payment method for a given amount.",
5073	//   "httpMethod": "POST",
5074	//   "id": "content.orderpayments.notifyauthapproved",
5075	//   "parameterOrder": [
5076	//     "merchantId",
5077	//     "orderId"
5078	//   ],
5079	//   "parameters": {
5080	//     "merchantId": {
5081	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
5082	//       "format": "uint64",
5083	//       "location": "path",
5084	//       "required": true,
5085	//       "type": "string"
5086	//     },
5087	//     "orderId": {
5088	//       "description": "The ID of the order for for which payment authorization is happening.",
5089	//       "location": "path",
5090	//       "required": true,
5091	//       "type": "string"
5092	//     }
5093	//   },
5094	//   "path": "{merchantId}/orderpayments/{orderId}/notifyAuthApproved",
5095	//   "request": {
5096	//     "$ref": "OrderpaymentsNotifyAuthApprovedRequest"
5097	//   },
5098	//   "response": {
5099	//     "$ref": "OrderpaymentsNotifyAuthApprovedResponse"
5100	//   },
5101	//   "scopes": [
5102	//     "https://www.googleapis.com/auth/content"
5103	//   ]
5104	// }
5105
5106}
5107
5108// method id "content.orderpayments.notifyauthdeclined":
5109
5110type OrderpaymentsNotifyauthdeclinedCall struct {
5111	s                                      *APIService
5112	merchantId                             uint64
5113	orderId                                string
5114	orderpaymentsnotifyauthdeclinedrequest *OrderpaymentsNotifyAuthDeclinedRequest
5115	urlParams_                             gensupport.URLParams
5116	ctx_                                   context.Context
5117	header_                                http.Header
5118}
5119
5120// Notifyauthdeclined: Notify about failure to authorize user's payment
5121// method.
5122func (r *OrderpaymentsService) Notifyauthdeclined(merchantId uint64, orderId string, orderpaymentsnotifyauthdeclinedrequest *OrderpaymentsNotifyAuthDeclinedRequest) *OrderpaymentsNotifyauthdeclinedCall {
5123	c := &OrderpaymentsNotifyauthdeclinedCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5124	c.merchantId = merchantId
5125	c.orderId = orderId
5126	c.orderpaymentsnotifyauthdeclinedrequest = orderpaymentsnotifyauthdeclinedrequest
5127	return c
5128}
5129
5130// Fields allows partial responses to be retrieved. See
5131// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5132// for more information.
5133func (c *OrderpaymentsNotifyauthdeclinedCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifyauthdeclinedCall {
5134	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5135	return c
5136}
5137
5138// Context sets the context to be used in this call's Do method. Any
5139// pending HTTP request will be aborted if the provided context is
5140// canceled.
5141func (c *OrderpaymentsNotifyauthdeclinedCall) Context(ctx context.Context) *OrderpaymentsNotifyauthdeclinedCall {
5142	c.ctx_ = ctx
5143	return c
5144}
5145
5146// Header returns an http.Header that can be modified by the caller to
5147// add HTTP headers to the request.
5148func (c *OrderpaymentsNotifyauthdeclinedCall) Header() http.Header {
5149	if c.header_ == nil {
5150		c.header_ = make(http.Header)
5151	}
5152	return c.header_
5153}
5154
5155func (c *OrderpaymentsNotifyauthdeclinedCall) doRequest(alt string) (*http.Response, error) {
5156	reqHeaders := make(http.Header)
5157	for k, v := range c.header_ {
5158		reqHeaders[k] = v
5159	}
5160	reqHeaders.Set("User-Agent", c.s.userAgent())
5161	var body io.Reader = nil
5162	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifyauthdeclinedrequest)
5163	if err != nil {
5164		return nil, err
5165	}
5166	reqHeaders.Set("Content-Type", "application/json")
5167	c.urlParams_.Set("alt", alt)
5168	c.urlParams_.Set("prettyPrint", "false")
5169	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyAuthDeclined")
5170	urls += "?" + c.urlParams_.Encode()
5171	req, err := http.NewRequest("POST", urls, body)
5172	if err != nil {
5173		return nil, err
5174	}
5175	req.Header = reqHeaders
5176	googleapi.Expand(req.URL, map[string]string{
5177		"merchantId": strconv.FormatUint(c.merchantId, 10),
5178		"orderId":    c.orderId,
5179	})
5180	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5181}
5182
5183// Do executes the "content.orderpayments.notifyauthdeclined" call.
5184// Exactly one of *OrderpaymentsNotifyAuthDeclinedResponse or error will
5185// be non-nil. Any non-2xx status code is an error. Response headers are
5186// in either
5187// *OrderpaymentsNotifyAuthDeclinedResponse.ServerResponse.Header or (if
5188// a response was returned at all) in error.(*googleapi.Error).Header.
5189// Use googleapi.IsNotModified to check whether the returned error was
5190// because http.StatusNotModified was returned.
5191func (c *OrderpaymentsNotifyauthdeclinedCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyAuthDeclinedResponse, error) {
5192	gensupport.SetOptions(c.urlParams_, opts...)
5193	res, err := c.doRequest("json")
5194	if res != nil && res.StatusCode == http.StatusNotModified {
5195		if res.Body != nil {
5196			res.Body.Close()
5197		}
5198		return nil, &googleapi.Error{
5199			Code:   res.StatusCode,
5200			Header: res.Header,
5201		}
5202	}
5203	if err != nil {
5204		return nil, err
5205	}
5206	defer googleapi.CloseBody(res)
5207	if err := googleapi.CheckResponse(res); err != nil {
5208		return nil, err
5209	}
5210	ret := &OrderpaymentsNotifyAuthDeclinedResponse{
5211		ServerResponse: googleapi.ServerResponse{
5212			Header:         res.Header,
5213			HTTPStatusCode: res.StatusCode,
5214		},
5215	}
5216	target := &ret
5217	if err := gensupport.DecodeResponse(target, res); err != nil {
5218		return nil, err
5219	}
5220	return ret, nil
5221	// {
5222	//   "description": "Notify about failure to authorize user's payment method.",
5223	//   "httpMethod": "POST",
5224	//   "id": "content.orderpayments.notifyauthdeclined",
5225	//   "parameterOrder": [
5226	//     "merchantId",
5227	//     "orderId"
5228	//   ],
5229	//   "parameters": {
5230	//     "merchantId": {
5231	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
5232	//       "format": "uint64",
5233	//       "location": "path",
5234	//       "required": true,
5235	//       "type": "string"
5236	//     },
5237	//     "orderId": {
5238	//       "description": "The ID of the order for which payment authorization was declined.",
5239	//       "location": "path",
5240	//       "required": true,
5241	//       "type": "string"
5242	//     }
5243	//   },
5244	//   "path": "{merchantId}/orderpayments/{orderId}/notifyAuthDeclined",
5245	//   "request": {
5246	//     "$ref": "OrderpaymentsNotifyAuthDeclinedRequest"
5247	//   },
5248	//   "response": {
5249	//     "$ref": "OrderpaymentsNotifyAuthDeclinedResponse"
5250	//   },
5251	//   "scopes": [
5252	//     "https://www.googleapis.com/auth/content"
5253	//   ]
5254	// }
5255
5256}
5257
5258// method id "content.orderpayments.notifycharge":
5259
5260type OrderpaymentsNotifychargeCall struct {
5261	s                                *APIService
5262	merchantId                       uint64
5263	orderId                          string
5264	orderpaymentsnotifychargerequest *OrderpaymentsNotifyChargeRequest
5265	urlParams_                       gensupport.URLParams
5266	ctx_                             context.Context
5267	header_                          http.Header
5268}
5269
5270// Notifycharge: Notify about charge on user's selected payments method.
5271func (r *OrderpaymentsService) Notifycharge(merchantId uint64, orderId string, orderpaymentsnotifychargerequest *OrderpaymentsNotifyChargeRequest) *OrderpaymentsNotifychargeCall {
5272	c := &OrderpaymentsNotifychargeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5273	c.merchantId = merchantId
5274	c.orderId = orderId
5275	c.orderpaymentsnotifychargerequest = orderpaymentsnotifychargerequest
5276	return c
5277}
5278
5279// Fields allows partial responses to be retrieved. See
5280// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5281// for more information.
5282func (c *OrderpaymentsNotifychargeCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifychargeCall {
5283	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5284	return c
5285}
5286
5287// Context sets the context to be used in this call's Do method. Any
5288// pending HTTP request will be aborted if the provided context is
5289// canceled.
5290func (c *OrderpaymentsNotifychargeCall) Context(ctx context.Context) *OrderpaymentsNotifychargeCall {
5291	c.ctx_ = ctx
5292	return c
5293}
5294
5295// Header returns an http.Header that can be modified by the caller to
5296// add HTTP headers to the request.
5297func (c *OrderpaymentsNotifychargeCall) Header() http.Header {
5298	if c.header_ == nil {
5299		c.header_ = make(http.Header)
5300	}
5301	return c.header_
5302}
5303
5304func (c *OrderpaymentsNotifychargeCall) doRequest(alt string) (*http.Response, error) {
5305	reqHeaders := make(http.Header)
5306	for k, v := range c.header_ {
5307		reqHeaders[k] = v
5308	}
5309	reqHeaders.Set("User-Agent", c.s.userAgent())
5310	var body io.Reader = nil
5311	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifychargerequest)
5312	if err != nil {
5313		return nil, err
5314	}
5315	reqHeaders.Set("Content-Type", "application/json")
5316	c.urlParams_.Set("alt", alt)
5317	c.urlParams_.Set("prettyPrint", "false")
5318	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyCharge")
5319	urls += "?" + c.urlParams_.Encode()
5320	req, err := http.NewRequest("POST", urls, body)
5321	if err != nil {
5322		return nil, err
5323	}
5324	req.Header = reqHeaders
5325	googleapi.Expand(req.URL, map[string]string{
5326		"merchantId": strconv.FormatUint(c.merchantId, 10),
5327		"orderId":    c.orderId,
5328	})
5329	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5330}
5331
5332// Do executes the "content.orderpayments.notifycharge" call.
5333// Exactly one of *OrderpaymentsNotifyChargeResponse or error will be
5334// non-nil. Any non-2xx status code is an error. Response headers are in
5335// either *OrderpaymentsNotifyChargeResponse.ServerResponse.Header or
5336// (if a response was returned at all) in
5337// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
5338// whether the returned error was because http.StatusNotModified was
5339// returned.
5340func (c *OrderpaymentsNotifychargeCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyChargeResponse, error) {
5341	gensupport.SetOptions(c.urlParams_, opts...)
5342	res, err := c.doRequest("json")
5343	if res != nil && res.StatusCode == http.StatusNotModified {
5344		if res.Body != nil {
5345			res.Body.Close()
5346		}
5347		return nil, &googleapi.Error{
5348			Code:   res.StatusCode,
5349			Header: res.Header,
5350		}
5351	}
5352	if err != nil {
5353		return nil, err
5354	}
5355	defer googleapi.CloseBody(res)
5356	if err := googleapi.CheckResponse(res); err != nil {
5357		return nil, err
5358	}
5359	ret := &OrderpaymentsNotifyChargeResponse{
5360		ServerResponse: googleapi.ServerResponse{
5361			Header:         res.Header,
5362			HTTPStatusCode: res.StatusCode,
5363		},
5364	}
5365	target := &ret
5366	if err := gensupport.DecodeResponse(target, res); err != nil {
5367		return nil, err
5368	}
5369	return ret, nil
5370	// {
5371	//   "description": "Notify about charge on user's selected payments method.",
5372	//   "httpMethod": "POST",
5373	//   "id": "content.orderpayments.notifycharge",
5374	//   "parameterOrder": [
5375	//     "merchantId",
5376	//     "orderId"
5377	//   ],
5378	//   "parameters": {
5379	//     "merchantId": {
5380	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
5381	//       "format": "uint64",
5382	//       "location": "path",
5383	//       "required": true,
5384	//       "type": "string"
5385	//     },
5386	//     "orderId": {
5387	//       "description": "The ID of the order for which charge is happening.",
5388	//       "location": "path",
5389	//       "required": true,
5390	//       "type": "string"
5391	//     }
5392	//   },
5393	//   "path": "{merchantId}/orderpayments/{orderId}/notifyCharge",
5394	//   "request": {
5395	//     "$ref": "OrderpaymentsNotifyChargeRequest"
5396	//   },
5397	//   "response": {
5398	//     "$ref": "OrderpaymentsNotifyChargeResponse"
5399	//   },
5400	//   "scopes": [
5401	//     "https://www.googleapis.com/auth/content"
5402	//   ]
5403	// }
5404
5405}
5406
5407// method id "content.orderpayments.notifyrefund":
5408
5409type OrderpaymentsNotifyrefundCall struct {
5410	s                                *APIService
5411	merchantId                       uint64
5412	orderId                          string
5413	orderpaymentsnotifyrefundrequest *OrderpaymentsNotifyRefundRequest
5414	urlParams_                       gensupport.URLParams
5415	ctx_                             context.Context
5416	header_                          http.Header
5417}
5418
5419// Notifyrefund: Notify about refund on user's selected payments method.
5420func (r *OrderpaymentsService) Notifyrefund(merchantId uint64, orderId string, orderpaymentsnotifyrefundrequest *OrderpaymentsNotifyRefundRequest) *OrderpaymentsNotifyrefundCall {
5421	c := &OrderpaymentsNotifyrefundCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5422	c.merchantId = merchantId
5423	c.orderId = orderId
5424	c.orderpaymentsnotifyrefundrequest = orderpaymentsnotifyrefundrequest
5425	return c
5426}
5427
5428// Fields allows partial responses to be retrieved. See
5429// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5430// for more information.
5431func (c *OrderpaymentsNotifyrefundCall) Fields(s ...googleapi.Field) *OrderpaymentsNotifyrefundCall {
5432	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5433	return c
5434}
5435
5436// Context sets the context to be used in this call's Do method. Any
5437// pending HTTP request will be aborted if the provided context is
5438// canceled.
5439func (c *OrderpaymentsNotifyrefundCall) Context(ctx context.Context) *OrderpaymentsNotifyrefundCall {
5440	c.ctx_ = ctx
5441	return c
5442}
5443
5444// Header returns an http.Header that can be modified by the caller to
5445// add HTTP headers to the request.
5446func (c *OrderpaymentsNotifyrefundCall) Header() http.Header {
5447	if c.header_ == nil {
5448		c.header_ = make(http.Header)
5449	}
5450	return c.header_
5451}
5452
5453func (c *OrderpaymentsNotifyrefundCall) doRequest(alt string) (*http.Response, error) {
5454	reqHeaders := make(http.Header)
5455	for k, v := range c.header_ {
5456		reqHeaders[k] = v
5457	}
5458	reqHeaders.Set("User-Agent", c.s.userAgent())
5459	var body io.Reader = nil
5460	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderpaymentsnotifyrefundrequest)
5461	if err != nil {
5462		return nil, err
5463	}
5464	reqHeaders.Set("Content-Type", "application/json")
5465	c.urlParams_.Set("alt", alt)
5466	c.urlParams_.Set("prettyPrint", "false")
5467	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderpayments/{orderId}/notifyRefund")
5468	urls += "?" + c.urlParams_.Encode()
5469	req, err := http.NewRequest("POST", urls, body)
5470	if err != nil {
5471		return nil, err
5472	}
5473	req.Header = reqHeaders
5474	googleapi.Expand(req.URL, map[string]string{
5475		"merchantId": strconv.FormatUint(c.merchantId, 10),
5476		"orderId":    c.orderId,
5477	})
5478	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5479}
5480
5481// Do executes the "content.orderpayments.notifyrefund" call.
5482// Exactly one of *OrderpaymentsNotifyRefundResponse or error will be
5483// non-nil. Any non-2xx status code is an error. Response headers are in
5484// either *OrderpaymentsNotifyRefundResponse.ServerResponse.Header or
5485// (if a response was returned at all) in
5486// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
5487// whether the returned error was because http.StatusNotModified was
5488// returned.
5489func (c *OrderpaymentsNotifyrefundCall) Do(opts ...googleapi.CallOption) (*OrderpaymentsNotifyRefundResponse, error) {
5490	gensupport.SetOptions(c.urlParams_, opts...)
5491	res, err := c.doRequest("json")
5492	if res != nil && res.StatusCode == http.StatusNotModified {
5493		if res.Body != nil {
5494			res.Body.Close()
5495		}
5496		return nil, &googleapi.Error{
5497			Code:   res.StatusCode,
5498			Header: res.Header,
5499		}
5500	}
5501	if err != nil {
5502		return nil, err
5503	}
5504	defer googleapi.CloseBody(res)
5505	if err := googleapi.CheckResponse(res); err != nil {
5506		return nil, err
5507	}
5508	ret := &OrderpaymentsNotifyRefundResponse{
5509		ServerResponse: googleapi.ServerResponse{
5510			Header:         res.Header,
5511			HTTPStatusCode: res.StatusCode,
5512		},
5513	}
5514	target := &ret
5515	if err := gensupport.DecodeResponse(target, res); err != nil {
5516		return nil, err
5517	}
5518	return ret, nil
5519	// {
5520	//   "description": "Notify about refund on user's selected payments method.",
5521	//   "httpMethod": "POST",
5522	//   "id": "content.orderpayments.notifyrefund",
5523	//   "parameterOrder": [
5524	//     "merchantId",
5525	//     "orderId"
5526	//   ],
5527	//   "parameters": {
5528	//     "merchantId": {
5529	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
5530	//       "format": "uint64",
5531	//       "location": "path",
5532	//       "required": true,
5533	//       "type": "string"
5534	//     },
5535	//     "orderId": {
5536	//       "description": "The ID of the order for which charge is happening.",
5537	//       "location": "path",
5538	//       "required": true,
5539	//       "type": "string"
5540	//     }
5541	//   },
5542	//   "path": "{merchantId}/orderpayments/{orderId}/notifyRefund",
5543	//   "request": {
5544	//     "$ref": "OrderpaymentsNotifyRefundRequest"
5545	//   },
5546	//   "response": {
5547	//     "$ref": "OrderpaymentsNotifyRefundResponse"
5548	//   },
5549	//   "scopes": [
5550	//     "https://www.googleapis.com/auth/content"
5551	//   ]
5552	// }
5553
5554}
5555
5556// method id "content.orderreturns.get":
5557
5558type OrderreturnsGetCall struct {
5559	s            *APIService
5560	merchantId   uint64
5561	returnId     string
5562	urlParams_   gensupport.URLParams
5563	ifNoneMatch_ string
5564	ctx_         context.Context
5565	header_      http.Header
5566}
5567
5568// Get: Retrieves an order return from your Merchant Center account.
5569func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall {
5570	c := &OrderreturnsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5571	c.merchantId = merchantId
5572	c.returnId = returnId
5573	return c
5574}
5575
5576// Fields allows partial responses to be retrieved. See
5577// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5578// for more information.
5579func (c *OrderreturnsGetCall) Fields(s ...googleapi.Field) *OrderreturnsGetCall {
5580	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5581	return c
5582}
5583
5584// IfNoneMatch sets the optional parameter which makes the operation
5585// fail if the object's ETag matches the given value. This is useful for
5586// getting updates only after the object has changed since the last
5587// request. Use googleapi.IsNotModified to check whether the response
5588// error from Do is the result of In-None-Match.
5589func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall {
5590	c.ifNoneMatch_ = entityTag
5591	return c
5592}
5593
5594// Context sets the context to be used in this call's Do method. Any
5595// pending HTTP request will be aborted if the provided context is
5596// canceled.
5597func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall {
5598	c.ctx_ = ctx
5599	return c
5600}
5601
5602// Header returns an http.Header that can be modified by the caller to
5603// add HTTP headers to the request.
5604func (c *OrderreturnsGetCall) Header() http.Header {
5605	if c.header_ == nil {
5606		c.header_ = make(http.Header)
5607	}
5608	return c.header_
5609}
5610
5611func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) {
5612	reqHeaders := make(http.Header)
5613	for k, v := range c.header_ {
5614		reqHeaders[k] = v
5615	}
5616	reqHeaders.Set("User-Agent", c.s.userAgent())
5617	if c.ifNoneMatch_ != "" {
5618		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5619	}
5620	var body io.Reader = nil
5621	c.urlParams_.Set("alt", alt)
5622	c.urlParams_.Set("prettyPrint", "false")
5623	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}")
5624	urls += "?" + c.urlParams_.Encode()
5625	req, err := http.NewRequest("GET", urls, body)
5626	if err != nil {
5627		return nil, err
5628	}
5629	req.Header = reqHeaders
5630	googleapi.Expand(req.URL, map[string]string{
5631		"merchantId": strconv.FormatUint(c.merchantId, 10),
5632		"returnId":   c.returnId,
5633	})
5634	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5635}
5636
5637// Do executes the "content.orderreturns.get" call.
5638// Exactly one of *MerchantOrderReturn or error will be non-nil. Any
5639// non-2xx status code is an error. Response headers are in either
5640// *MerchantOrderReturn.ServerResponse.Header or (if a response was
5641// returned at all) in error.(*googleapi.Error).Header. Use
5642// googleapi.IsNotModified to check whether the returned error was
5643// because http.StatusNotModified was returned.
5644func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error) {
5645	gensupport.SetOptions(c.urlParams_, opts...)
5646	res, err := c.doRequest("json")
5647	if res != nil && res.StatusCode == http.StatusNotModified {
5648		if res.Body != nil {
5649			res.Body.Close()
5650		}
5651		return nil, &googleapi.Error{
5652			Code:   res.StatusCode,
5653			Header: res.Header,
5654		}
5655	}
5656	if err != nil {
5657		return nil, err
5658	}
5659	defer googleapi.CloseBody(res)
5660	if err := googleapi.CheckResponse(res); err != nil {
5661		return nil, err
5662	}
5663	ret := &MerchantOrderReturn{
5664		ServerResponse: googleapi.ServerResponse{
5665			Header:         res.Header,
5666			HTTPStatusCode: res.StatusCode,
5667		},
5668	}
5669	target := &ret
5670	if err := gensupport.DecodeResponse(target, res); err != nil {
5671		return nil, err
5672	}
5673	return ret, nil
5674	// {
5675	//   "description": "Retrieves an order return from your Merchant Center account.",
5676	//   "httpMethod": "GET",
5677	//   "id": "content.orderreturns.get",
5678	//   "parameterOrder": [
5679	//     "merchantId",
5680	//     "returnId"
5681	//   ],
5682	//   "parameters": {
5683	//     "merchantId": {
5684	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
5685	//       "format": "uint64",
5686	//       "location": "path",
5687	//       "required": true,
5688	//       "type": "string"
5689	//     },
5690	//     "returnId": {
5691	//       "description": "Merchant order return ID generated by Google.",
5692	//       "location": "path",
5693	//       "required": true,
5694	//       "type": "string"
5695	//     }
5696	//   },
5697	//   "path": "{merchantId}/orderreturns/{returnId}",
5698	//   "response": {
5699	//     "$ref": "MerchantOrderReturn"
5700	//   },
5701	//   "scopes": [
5702	//     "https://www.googleapis.com/auth/content"
5703	//   ]
5704	// }
5705
5706}
5707
5708// method id "content.orderreturns.list":
5709
5710type OrderreturnsListCall struct {
5711	s            *APIService
5712	merchantId   uint64
5713	urlParams_   gensupport.URLParams
5714	ifNoneMatch_ string
5715	ctx_         context.Context
5716	header_      http.Header
5717}
5718
5719// List: Lists order returns in your Merchant Center account.
5720func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall {
5721	c := &OrderreturnsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5722	c.merchantId = merchantId
5723	return c
5724}
5725
5726// CreatedEndDate sets the optional parameter "createdEndDate": Obtains
5727// order returns created before this date (inclusively), in ISO 8601
5728// format.
5729func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall {
5730	c.urlParams_.Set("createdEndDate", createdEndDate)
5731	return c
5732}
5733
5734// CreatedStartDate sets the optional parameter "createdStartDate":
5735// Obtains order returns created after this date (inclusively), in ISO
5736// 8601 format.
5737func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall {
5738	c.urlParams_.Set("createdStartDate", createdStartDate)
5739	return c
5740}
5741
5742// MaxResults sets the optional parameter "maxResults": The maximum
5743// number of order returns to return in the response, used for paging.
5744// The default value is 25 returns per page, and the maximum allowed
5745// value is 250 returns per page.
5746func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall {
5747	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
5748	return c
5749}
5750
5751// OrderBy sets the optional parameter "orderBy": Return the results in
5752// the specified order.
5753//
5754// Possible values:
5755//   "returnCreationTimeAsc"
5756//   "returnCreationTimeDesc"
5757func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall {
5758	c.urlParams_.Set("orderBy", orderBy)
5759	return c
5760}
5761
5762// PageToken sets the optional parameter "pageToken": The token returned
5763// by the previous request.
5764func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall {
5765	c.urlParams_.Set("pageToken", pageToken)
5766	return c
5767}
5768
5769// Fields allows partial responses to be retrieved. See
5770// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5771// for more information.
5772func (c *OrderreturnsListCall) Fields(s ...googleapi.Field) *OrderreturnsListCall {
5773	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5774	return c
5775}
5776
5777// IfNoneMatch sets the optional parameter which makes the operation
5778// fail if the object's ETag matches the given value. This is useful for
5779// getting updates only after the object has changed since the last
5780// request. Use googleapi.IsNotModified to check whether the response
5781// error from Do is the result of In-None-Match.
5782func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall {
5783	c.ifNoneMatch_ = entityTag
5784	return c
5785}
5786
5787// Context sets the context to be used in this call's Do method. Any
5788// pending HTTP request will be aborted if the provided context is
5789// canceled.
5790func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall {
5791	c.ctx_ = ctx
5792	return c
5793}
5794
5795// Header returns an http.Header that can be modified by the caller to
5796// add HTTP headers to the request.
5797func (c *OrderreturnsListCall) Header() http.Header {
5798	if c.header_ == nil {
5799		c.header_ = make(http.Header)
5800	}
5801	return c.header_
5802}
5803
5804func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) {
5805	reqHeaders := make(http.Header)
5806	for k, v := range c.header_ {
5807		reqHeaders[k] = v
5808	}
5809	reqHeaders.Set("User-Agent", c.s.userAgent())
5810	if c.ifNoneMatch_ != "" {
5811		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
5812	}
5813	var body io.Reader = nil
5814	c.urlParams_.Set("alt", alt)
5815	c.urlParams_.Set("prettyPrint", "false")
5816	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns")
5817	urls += "?" + c.urlParams_.Encode()
5818	req, err := http.NewRequest("GET", urls, body)
5819	if err != nil {
5820		return nil, err
5821	}
5822	req.Header = reqHeaders
5823	googleapi.Expand(req.URL, map[string]string{
5824		"merchantId": strconv.FormatUint(c.merchantId, 10),
5825	})
5826	return gensupport.SendRequest(c.ctx_, c.s.client, req)
5827}
5828
5829// Do executes the "content.orderreturns.list" call.
5830// Exactly one of *OrderreturnsListResponse or error will be non-nil.
5831// Any non-2xx status code is an error. Response headers are in either
5832// *OrderreturnsListResponse.ServerResponse.Header or (if a response was
5833// returned at all) in error.(*googleapi.Error).Header. Use
5834// googleapi.IsNotModified to check whether the returned error was
5835// because http.StatusNotModified was returned.
5836func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error) {
5837	gensupport.SetOptions(c.urlParams_, opts...)
5838	res, err := c.doRequest("json")
5839	if res != nil && res.StatusCode == http.StatusNotModified {
5840		if res.Body != nil {
5841			res.Body.Close()
5842		}
5843		return nil, &googleapi.Error{
5844			Code:   res.StatusCode,
5845			Header: res.Header,
5846		}
5847	}
5848	if err != nil {
5849		return nil, err
5850	}
5851	defer googleapi.CloseBody(res)
5852	if err := googleapi.CheckResponse(res); err != nil {
5853		return nil, err
5854	}
5855	ret := &OrderreturnsListResponse{
5856		ServerResponse: googleapi.ServerResponse{
5857			Header:         res.Header,
5858			HTTPStatusCode: res.StatusCode,
5859		},
5860	}
5861	target := &ret
5862	if err := gensupport.DecodeResponse(target, res); err != nil {
5863		return nil, err
5864	}
5865	return ret, nil
5866	// {
5867	//   "description": "Lists order returns in your Merchant Center account.",
5868	//   "httpMethod": "GET",
5869	//   "id": "content.orderreturns.list",
5870	//   "parameterOrder": [
5871	//     "merchantId"
5872	//   ],
5873	//   "parameters": {
5874	//     "createdEndDate": {
5875	//       "description": "Obtains order returns created before this date (inclusively), in ISO 8601 format.",
5876	//       "location": "query",
5877	//       "type": "string"
5878	//     },
5879	//     "createdStartDate": {
5880	//       "description": "Obtains order returns created after this date (inclusively), in ISO 8601 format.",
5881	//       "location": "query",
5882	//       "type": "string"
5883	//     },
5884	//     "maxResults": {
5885	//       "description": "The maximum number of order returns to return in the response, used for paging. The default value is 25 returns per page, and the maximum allowed value is 250 returns per page.",
5886	//       "format": "uint32",
5887	//       "location": "query",
5888	//       "type": "integer"
5889	//     },
5890	//     "merchantId": {
5891	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
5892	//       "format": "uint64",
5893	//       "location": "path",
5894	//       "required": true,
5895	//       "type": "string"
5896	//     },
5897	//     "orderBy": {
5898	//       "description": "Return the results in the specified order.",
5899	//       "enum": [
5900	//         "returnCreationTimeAsc",
5901	//         "returnCreationTimeDesc"
5902	//       ],
5903	//       "enumDescriptions": [
5904	//         "",
5905	//         ""
5906	//       ],
5907	//       "location": "query",
5908	//       "type": "string"
5909	//     },
5910	//     "pageToken": {
5911	//       "description": "The token returned by the previous request.",
5912	//       "location": "query",
5913	//       "type": "string"
5914	//     }
5915	//   },
5916	//   "path": "{merchantId}/orderreturns",
5917	//   "response": {
5918	//     "$ref": "OrderreturnsListResponse"
5919	//   },
5920	//   "scopes": [
5921	//     "https://www.googleapis.com/auth/content"
5922	//   ]
5923	// }
5924
5925}
5926
5927// Pages invokes f for each page of results.
5928// A non-nil error returned from f will halt the iteration.
5929// The provided context supersedes any context provided to the Context method.
5930func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) error) error {
5931	c.ctx_ = ctx
5932	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
5933	for {
5934		x, err := c.Do()
5935		if err != nil {
5936			return err
5937		}
5938		if err := f(x); err != nil {
5939			return err
5940		}
5941		if x.NextPageToken == "" {
5942			return nil
5943		}
5944		c.PageToken(x.NextPageToken)
5945	}
5946}
5947
5948// method id "content.orders.acknowledge":
5949
5950type OrdersAcknowledgeCall struct {
5951	s                        *APIService
5952	merchantId               uint64
5953	orderId                  string
5954	ordersacknowledgerequest *OrdersAcknowledgeRequest
5955	urlParams_               gensupport.URLParams
5956	ctx_                     context.Context
5957	header_                  http.Header
5958}
5959
5960// Acknowledge: Marks an order as acknowledged.
5961func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall {
5962	c := &OrdersAcknowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
5963	c.merchantId = merchantId
5964	c.orderId = orderId
5965	c.ordersacknowledgerequest = ordersacknowledgerequest
5966	return c
5967}
5968
5969// Fields allows partial responses to be retrieved. See
5970// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
5971// for more information.
5972func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall {
5973	c.urlParams_.Set("fields", googleapi.CombineFields(s))
5974	return c
5975}
5976
5977// Context sets the context to be used in this call's Do method. Any
5978// pending HTTP request will be aborted if the provided context is
5979// canceled.
5980func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall {
5981	c.ctx_ = ctx
5982	return c
5983}
5984
5985// Header returns an http.Header that can be modified by the caller to
5986// add HTTP headers to the request.
5987func (c *OrdersAcknowledgeCall) Header() http.Header {
5988	if c.header_ == nil {
5989		c.header_ = make(http.Header)
5990	}
5991	return c.header_
5992}
5993
5994func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) {
5995	reqHeaders := make(http.Header)
5996	for k, v := range c.header_ {
5997		reqHeaders[k] = v
5998	}
5999	reqHeaders.Set("User-Agent", c.s.userAgent())
6000	var body io.Reader = nil
6001	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersacknowledgerequest)
6002	if err != nil {
6003		return nil, err
6004	}
6005	reqHeaders.Set("Content-Type", "application/json")
6006	c.urlParams_.Set("alt", alt)
6007	c.urlParams_.Set("prettyPrint", "false")
6008	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/acknowledge")
6009	urls += "?" + c.urlParams_.Encode()
6010	req, err := http.NewRequest("POST", urls, body)
6011	if err != nil {
6012		return nil, err
6013	}
6014	req.Header = reqHeaders
6015	googleapi.Expand(req.URL, map[string]string{
6016		"merchantId": strconv.FormatUint(c.merchantId, 10),
6017		"orderId":    c.orderId,
6018	})
6019	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6020}
6021
6022// Do executes the "content.orders.acknowledge" call.
6023// Exactly one of *OrdersAcknowledgeResponse or error will be non-nil.
6024// Any non-2xx status code is an error. Response headers are in either
6025// *OrdersAcknowledgeResponse.ServerResponse.Header or (if a response
6026// was returned at all) in error.(*googleapi.Error).Header. Use
6027// googleapi.IsNotModified to check whether the returned error was
6028// because http.StatusNotModified was returned.
6029func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error) {
6030	gensupport.SetOptions(c.urlParams_, opts...)
6031	res, err := c.doRequest("json")
6032	if res != nil && res.StatusCode == http.StatusNotModified {
6033		if res.Body != nil {
6034			res.Body.Close()
6035		}
6036		return nil, &googleapi.Error{
6037			Code:   res.StatusCode,
6038			Header: res.Header,
6039		}
6040	}
6041	if err != nil {
6042		return nil, err
6043	}
6044	defer googleapi.CloseBody(res)
6045	if err := googleapi.CheckResponse(res); err != nil {
6046		return nil, err
6047	}
6048	ret := &OrdersAcknowledgeResponse{
6049		ServerResponse: googleapi.ServerResponse{
6050			Header:         res.Header,
6051			HTTPStatusCode: res.StatusCode,
6052		},
6053	}
6054	target := &ret
6055	if err := gensupport.DecodeResponse(target, res); err != nil {
6056		return nil, err
6057	}
6058	return ret, nil
6059	// {
6060	//   "description": "Marks an order as acknowledged.",
6061	//   "httpMethod": "POST",
6062	//   "id": "content.orders.acknowledge",
6063	//   "parameterOrder": [
6064	//     "merchantId",
6065	//     "orderId"
6066	//   ],
6067	//   "parameters": {
6068	//     "merchantId": {
6069	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
6070	//       "format": "uint64",
6071	//       "location": "path",
6072	//       "required": true,
6073	//       "type": "string"
6074	//     },
6075	//     "orderId": {
6076	//       "description": "The ID of the order.",
6077	//       "location": "path",
6078	//       "required": true,
6079	//       "type": "string"
6080	//     }
6081	//   },
6082	//   "path": "{merchantId}/orders/{orderId}/acknowledge",
6083	//   "request": {
6084	//     "$ref": "OrdersAcknowledgeRequest"
6085	//   },
6086	//   "response": {
6087	//     "$ref": "OrdersAcknowledgeResponse"
6088	//   },
6089	//   "scopes": [
6090	//     "https://www.googleapis.com/auth/content"
6091	//   ]
6092	// }
6093
6094}
6095
6096// method id "content.orders.advancetestorder":
6097
6098type OrdersAdvancetestorderCall struct {
6099	s          *APIService
6100	merchantId uint64
6101	orderId    string
6102	urlParams_ gensupport.URLParams
6103	ctx_       context.Context
6104	header_    http.Header
6105}
6106
6107// Advancetestorder: Sandbox only. Moves a test order from state
6108// "inProgress" to state "pendingShipment".
6109func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall {
6110	c := &OrdersAdvancetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6111	c.merchantId = merchantId
6112	c.orderId = orderId
6113	return c
6114}
6115
6116// Fields allows partial responses to be retrieved. See
6117// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6118// for more information.
6119func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall {
6120	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6121	return c
6122}
6123
6124// Context sets the context to be used in this call's Do method. Any
6125// pending HTTP request will be aborted if the provided context is
6126// canceled.
6127func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall {
6128	c.ctx_ = ctx
6129	return c
6130}
6131
6132// Header returns an http.Header that can be modified by the caller to
6133// add HTTP headers to the request.
6134func (c *OrdersAdvancetestorderCall) Header() http.Header {
6135	if c.header_ == nil {
6136		c.header_ = make(http.Header)
6137	}
6138	return c.header_
6139}
6140
6141func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, error) {
6142	reqHeaders := make(http.Header)
6143	for k, v := range c.header_ {
6144		reqHeaders[k] = v
6145	}
6146	reqHeaders.Set("User-Agent", c.s.userAgent())
6147	var body io.Reader = nil
6148	c.urlParams_.Set("alt", alt)
6149	c.urlParams_.Set("prettyPrint", "false")
6150	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/advance")
6151	urls += "?" + c.urlParams_.Encode()
6152	req, err := http.NewRequest("POST", urls, body)
6153	if err != nil {
6154		return nil, err
6155	}
6156	req.Header = reqHeaders
6157	googleapi.Expand(req.URL, map[string]string{
6158		"merchantId": strconv.FormatUint(c.merchantId, 10),
6159		"orderId":    c.orderId,
6160	})
6161	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6162}
6163
6164// Do executes the "content.orders.advancetestorder" call.
6165// Exactly one of *OrdersAdvanceTestOrderResponse or error will be
6166// non-nil. Any non-2xx status code is an error. Response headers are in
6167// either *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if a
6168// response was returned at all) in error.(*googleapi.Error).Header. Use
6169// googleapi.IsNotModified to check whether the returned error was
6170// because http.StatusNotModified was returned.
6171func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error) {
6172	gensupport.SetOptions(c.urlParams_, opts...)
6173	res, err := c.doRequest("json")
6174	if res != nil && res.StatusCode == http.StatusNotModified {
6175		if res.Body != nil {
6176			res.Body.Close()
6177		}
6178		return nil, &googleapi.Error{
6179			Code:   res.StatusCode,
6180			Header: res.Header,
6181		}
6182	}
6183	if err != nil {
6184		return nil, err
6185	}
6186	defer googleapi.CloseBody(res)
6187	if err := googleapi.CheckResponse(res); err != nil {
6188		return nil, err
6189	}
6190	ret := &OrdersAdvanceTestOrderResponse{
6191		ServerResponse: googleapi.ServerResponse{
6192			Header:         res.Header,
6193			HTTPStatusCode: res.StatusCode,
6194		},
6195	}
6196	target := &ret
6197	if err := gensupport.DecodeResponse(target, res); err != nil {
6198		return nil, err
6199	}
6200	return ret, nil
6201	// {
6202	//   "description": "Sandbox only. Moves a test order from state \"inProgress\" to state \"pendingShipment\".",
6203	//   "httpMethod": "POST",
6204	//   "id": "content.orders.advancetestorder",
6205	//   "parameterOrder": [
6206	//     "merchantId",
6207	//     "orderId"
6208	//   ],
6209	//   "parameters": {
6210	//     "merchantId": {
6211	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
6212	//       "format": "uint64",
6213	//       "location": "path",
6214	//       "required": true,
6215	//       "type": "string"
6216	//     },
6217	//     "orderId": {
6218	//       "description": "The ID of the test order to modify.",
6219	//       "location": "path",
6220	//       "required": true,
6221	//       "type": "string"
6222	//     }
6223	//   },
6224	//   "path": "{merchantId}/testorders/{orderId}/advance",
6225	//   "response": {
6226	//     "$ref": "OrdersAdvanceTestOrderResponse"
6227	//   },
6228	//   "scopes": [
6229	//     "https://www.googleapis.com/auth/content"
6230	//   ]
6231	// }
6232
6233}
6234
6235// method id "content.orders.cancel":
6236
6237type OrdersCancelCall struct {
6238	s                   *APIService
6239	merchantId          uint64
6240	orderId             string
6241	orderscancelrequest *OrdersCancelRequest
6242	urlParams_          gensupport.URLParams
6243	ctx_                context.Context
6244	header_             http.Header
6245}
6246
6247// Cancel: Cancels all line items in an order, making a full refund.
6248func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall {
6249	c := &OrdersCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6250	c.merchantId = merchantId
6251	c.orderId = orderId
6252	c.orderscancelrequest = orderscancelrequest
6253	return c
6254}
6255
6256// Fields allows partial responses to be retrieved. See
6257// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6258// for more information.
6259func (c *OrdersCancelCall) Fields(s ...googleapi.Field) *OrdersCancelCall {
6260	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6261	return c
6262}
6263
6264// Context sets the context to be used in this call's Do method. Any
6265// pending HTTP request will be aborted if the provided context is
6266// canceled.
6267func (c *OrdersCancelCall) Context(ctx context.Context) *OrdersCancelCall {
6268	c.ctx_ = ctx
6269	return c
6270}
6271
6272// Header returns an http.Header that can be modified by the caller to
6273// add HTTP headers to the request.
6274func (c *OrdersCancelCall) Header() http.Header {
6275	if c.header_ == nil {
6276		c.header_ = make(http.Header)
6277	}
6278	return c.header_
6279}
6280
6281func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) {
6282	reqHeaders := make(http.Header)
6283	for k, v := range c.header_ {
6284		reqHeaders[k] = v
6285	}
6286	reqHeaders.Set("User-Agent", c.s.userAgent())
6287	var body io.Reader = nil
6288	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancelrequest)
6289	if err != nil {
6290		return nil, err
6291	}
6292	reqHeaders.Set("Content-Type", "application/json")
6293	c.urlParams_.Set("alt", alt)
6294	c.urlParams_.Set("prettyPrint", "false")
6295	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancel")
6296	urls += "?" + c.urlParams_.Encode()
6297	req, err := http.NewRequest("POST", urls, body)
6298	if err != nil {
6299		return nil, err
6300	}
6301	req.Header = reqHeaders
6302	googleapi.Expand(req.URL, map[string]string{
6303		"merchantId": strconv.FormatUint(c.merchantId, 10),
6304		"orderId":    c.orderId,
6305	})
6306	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6307}
6308
6309// Do executes the "content.orders.cancel" call.
6310// Exactly one of *OrdersCancelResponse or error will be non-nil. Any
6311// non-2xx status code is an error. Response headers are in either
6312// *OrdersCancelResponse.ServerResponse.Header or (if a response was
6313// returned at all) in error.(*googleapi.Error).Header. Use
6314// googleapi.IsNotModified to check whether the returned error was
6315// because http.StatusNotModified was returned.
6316func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelResponse, error) {
6317	gensupport.SetOptions(c.urlParams_, opts...)
6318	res, err := c.doRequest("json")
6319	if res != nil && res.StatusCode == http.StatusNotModified {
6320		if res.Body != nil {
6321			res.Body.Close()
6322		}
6323		return nil, &googleapi.Error{
6324			Code:   res.StatusCode,
6325			Header: res.Header,
6326		}
6327	}
6328	if err != nil {
6329		return nil, err
6330	}
6331	defer googleapi.CloseBody(res)
6332	if err := googleapi.CheckResponse(res); err != nil {
6333		return nil, err
6334	}
6335	ret := &OrdersCancelResponse{
6336		ServerResponse: googleapi.ServerResponse{
6337			Header:         res.Header,
6338			HTTPStatusCode: res.StatusCode,
6339		},
6340	}
6341	target := &ret
6342	if err := gensupport.DecodeResponse(target, res); err != nil {
6343		return nil, err
6344	}
6345	return ret, nil
6346	// {
6347	//   "description": "Cancels all line items in an order, making a full refund.",
6348	//   "httpMethod": "POST",
6349	//   "id": "content.orders.cancel",
6350	//   "parameterOrder": [
6351	//     "merchantId",
6352	//     "orderId"
6353	//   ],
6354	//   "parameters": {
6355	//     "merchantId": {
6356	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
6357	//       "format": "uint64",
6358	//       "location": "path",
6359	//       "required": true,
6360	//       "type": "string"
6361	//     },
6362	//     "orderId": {
6363	//       "description": "The ID of the order to cancel.",
6364	//       "location": "path",
6365	//       "required": true,
6366	//       "type": "string"
6367	//     }
6368	//   },
6369	//   "path": "{merchantId}/orders/{orderId}/cancel",
6370	//   "request": {
6371	//     "$ref": "OrdersCancelRequest"
6372	//   },
6373	//   "response": {
6374	//     "$ref": "OrdersCancelResponse"
6375	//   },
6376	//   "scopes": [
6377	//     "https://www.googleapis.com/auth/content"
6378	//   ]
6379	// }
6380
6381}
6382
6383// method id "content.orders.cancellineitem":
6384
6385type OrdersCancellineitemCall struct {
6386	s                           *APIService
6387	merchantId                  uint64
6388	orderId                     string
6389	orderscancellineitemrequest *OrdersCancelLineItemRequest
6390	urlParams_                  gensupport.URLParams
6391	ctx_                        context.Context
6392	header_                     http.Header
6393}
6394
6395// Cancellineitem: Cancels a line item, making a full refund.
6396func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall {
6397	c := &OrdersCancellineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6398	c.merchantId = merchantId
6399	c.orderId = orderId
6400	c.orderscancellineitemrequest = orderscancellineitemrequest
6401	return c
6402}
6403
6404// Fields allows partial responses to be retrieved. See
6405// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6406// for more information.
6407func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall {
6408	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6409	return c
6410}
6411
6412// Context sets the context to be used in this call's Do method. Any
6413// pending HTTP request will be aborted if the provided context is
6414// canceled.
6415func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall {
6416	c.ctx_ = ctx
6417	return c
6418}
6419
6420// Header returns an http.Header that can be modified by the caller to
6421// add HTTP headers to the request.
6422func (c *OrdersCancellineitemCall) Header() http.Header {
6423	if c.header_ == nil {
6424		c.header_ = make(http.Header)
6425	}
6426	return c.header_
6427}
6428
6429func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) {
6430	reqHeaders := make(http.Header)
6431	for k, v := range c.header_ {
6432		reqHeaders[k] = v
6433	}
6434	reqHeaders.Set("User-Agent", c.s.userAgent())
6435	var body io.Reader = nil
6436	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancellineitemrequest)
6437	if err != nil {
6438		return nil, err
6439	}
6440	reqHeaders.Set("Content-Type", "application/json")
6441	c.urlParams_.Set("alt", alt)
6442	c.urlParams_.Set("prettyPrint", "false")
6443	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancelLineItem")
6444	urls += "?" + c.urlParams_.Encode()
6445	req, err := http.NewRequest("POST", urls, body)
6446	if err != nil {
6447		return nil, err
6448	}
6449	req.Header = reqHeaders
6450	googleapi.Expand(req.URL, map[string]string{
6451		"merchantId": strconv.FormatUint(c.merchantId, 10),
6452		"orderId":    c.orderId,
6453	})
6454	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6455}
6456
6457// Do executes the "content.orders.cancellineitem" call.
6458// Exactly one of *OrdersCancelLineItemResponse or error will be
6459// non-nil. Any non-2xx status code is an error. Response headers are in
6460// either *OrdersCancelLineItemResponse.ServerResponse.Header or (if a
6461// response was returned at all) in error.(*googleapi.Error).Header. Use
6462// googleapi.IsNotModified to check whether the returned error was
6463// because http.StatusNotModified was returned.
6464func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error) {
6465	gensupport.SetOptions(c.urlParams_, opts...)
6466	res, err := c.doRequest("json")
6467	if res != nil && res.StatusCode == http.StatusNotModified {
6468		if res.Body != nil {
6469			res.Body.Close()
6470		}
6471		return nil, &googleapi.Error{
6472			Code:   res.StatusCode,
6473			Header: res.Header,
6474		}
6475	}
6476	if err != nil {
6477		return nil, err
6478	}
6479	defer googleapi.CloseBody(res)
6480	if err := googleapi.CheckResponse(res); err != nil {
6481		return nil, err
6482	}
6483	ret := &OrdersCancelLineItemResponse{
6484		ServerResponse: googleapi.ServerResponse{
6485			Header:         res.Header,
6486			HTTPStatusCode: res.StatusCode,
6487		},
6488	}
6489	target := &ret
6490	if err := gensupport.DecodeResponse(target, res); err != nil {
6491		return nil, err
6492	}
6493	return ret, nil
6494	// {
6495	//   "description": "Cancels a line item, making a full refund.",
6496	//   "httpMethod": "POST",
6497	//   "id": "content.orders.cancellineitem",
6498	//   "parameterOrder": [
6499	//     "merchantId",
6500	//     "orderId"
6501	//   ],
6502	//   "parameters": {
6503	//     "merchantId": {
6504	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
6505	//       "format": "uint64",
6506	//       "location": "path",
6507	//       "required": true,
6508	//       "type": "string"
6509	//     },
6510	//     "orderId": {
6511	//       "description": "The ID of the order.",
6512	//       "location": "path",
6513	//       "required": true,
6514	//       "type": "string"
6515	//     }
6516	//   },
6517	//   "path": "{merchantId}/orders/{orderId}/cancelLineItem",
6518	//   "request": {
6519	//     "$ref": "OrdersCancelLineItemRequest"
6520	//   },
6521	//   "response": {
6522	//     "$ref": "OrdersCancelLineItemResponse"
6523	//   },
6524	//   "scopes": [
6525	//     "https://www.googleapis.com/auth/content"
6526	//   ]
6527	// }
6528
6529}
6530
6531// method id "content.orders.canceltestorderbycustomer":
6532
6533type OrdersCanceltestorderbycustomerCall struct {
6534	s                                      *APIService
6535	merchantId                             uint64
6536	orderId                                string
6537	orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest
6538	urlParams_                             gensupport.URLParams
6539	ctx_                                   context.Context
6540	header_                                http.Header
6541}
6542
6543// Canceltestorderbycustomer: Sandbox only. Cancels a test order for
6544// customer-initiated cancellation.
6545func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall {
6546	c := &OrdersCanceltestorderbycustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6547	c.merchantId = merchantId
6548	c.orderId = orderId
6549	c.orderscanceltestorderbycustomerrequest = orderscanceltestorderbycustomerrequest
6550	return c
6551}
6552
6553// Fields allows partial responses to be retrieved. See
6554// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6555// for more information.
6556func (c *OrdersCanceltestorderbycustomerCall) Fields(s ...googleapi.Field) *OrdersCanceltestorderbycustomerCall {
6557	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6558	return c
6559}
6560
6561// Context sets the context to be used in this call's Do method. Any
6562// pending HTTP request will be aborted if the provided context is
6563// canceled.
6564func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall {
6565	c.ctx_ = ctx
6566	return c
6567}
6568
6569// Header returns an http.Header that can be modified by the caller to
6570// add HTTP headers to the request.
6571func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header {
6572	if c.header_ == nil {
6573		c.header_ = make(http.Header)
6574	}
6575	return c.header_
6576}
6577
6578func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Response, error) {
6579	reqHeaders := make(http.Header)
6580	for k, v := range c.header_ {
6581		reqHeaders[k] = v
6582	}
6583	reqHeaders.Set("User-Agent", c.s.userAgent())
6584	var body io.Reader = nil
6585	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscanceltestorderbycustomerrequest)
6586	if err != nil {
6587		return nil, err
6588	}
6589	reqHeaders.Set("Content-Type", "application/json")
6590	c.urlParams_.Set("alt", alt)
6591	c.urlParams_.Set("prettyPrint", "false")
6592	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/cancelByCustomer")
6593	urls += "?" + c.urlParams_.Encode()
6594	req, err := http.NewRequest("POST", urls, body)
6595	if err != nil {
6596		return nil, err
6597	}
6598	req.Header = reqHeaders
6599	googleapi.Expand(req.URL, map[string]string{
6600		"merchantId": strconv.FormatUint(c.merchantId, 10),
6601		"orderId":    c.orderId,
6602	})
6603	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6604}
6605
6606// Do executes the "content.orders.canceltestorderbycustomer" call.
6607// Exactly one of *OrdersCancelTestOrderByCustomerResponse or error will
6608// be non-nil. Any non-2xx status code is an error. Response headers are
6609// in either
6610// *OrdersCancelTestOrderByCustomerResponse.ServerResponse.Header or (if
6611// a response was returned at all) in error.(*googleapi.Error).Header.
6612// Use googleapi.IsNotModified to check whether the returned error was
6613// because http.StatusNotModified was returned.
6614func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error) {
6615	gensupport.SetOptions(c.urlParams_, opts...)
6616	res, err := c.doRequest("json")
6617	if res != nil && res.StatusCode == http.StatusNotModified {
6618		if res.Body != nil {
6619			res.Body.Close()
6620		}
6621		return nil, &googleapi.Error{
6622			Code:   res.StatusCode,
6623			Header: res.Header,
6624		}
6625	}
6626	if err != nil {
6627		return nil, err
6628	}
6629	defer googleapi.CloseBody(res)
6630	if err := googleapi.CheckResponse(res); err != nil {
6631		return nil, err
6632	}
6633	ret := &OrdersCancelTestOrderByCustomerResponse{
6634		ServerResponse: googleapi.ServerResponse{
6635			Header:         res.Header,
6636			HTTPStatusCode: res.StatusCode,
6637		},
6638	}
6639	target := &ret
6640	if err := gensupport.DecodeResponse(target, res); err != nil {
6641		return nil, err
6642	}
6643	return ret, nil
6644	// {
6645	//   "description": "Sandbox only. Cancels a test order for customer-initiated cancellation.",
6646	//   "httpMethod": "POST",
6647	//   "id": "content.orders.canceltestorderbycustomer",
6648	//   "parameterOrder": [
6649	//     "merchantId",
6650	//     "orderId"
6651	//   ],
6652	//   "parameters": {
6653	//     "merchantId": {
6654	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
6655	//       "format": "uint64",
6656	//       "location": "path",
6657	//       "required": true,
6658	//       "type": "string"
6659	//     },
6660	//     "orderId": {
6661	//       "description": "The ID of the test order to cancel.",
6662	//       "location": "path",
6663	//       "required": true,
6664	//       "type": "string"
6665	//     }
6666	//   },
6667	//   "path": "{merchantId}/testorders/{orderId}/cancelByCustomer",
6668	//   "request": {
6669	//     "$ref": "OrdersCancelTestOrderByCustomerRequest"
6670	//   },
6671	//   "response": {
6672	//     "$ref": "OrdersCancelTestOrderByCustomerResponse"
6673	//   },
6674	//   "scopes": [
6675	//     "https://www.googleapis.com/auth/content"
6676	//   ]
6677	// }
6678
6679}
6680
6681// method id "content.orders.createtestorder":
6682
6683type OrdersCreatetestorderCall struct {
6684	s                            *APIService
6685	merchantId                   uint64
6686	orderscreatetestorderrequest *OrdersCreateTestOrderRequest
6687	urlParams_                   gensupport.URLParams
6688	ctx_                         context.Context
6689	header_                      http.Header
6690}
6691
6692// Createtestorder: Sandbox only. Creates a test order.
6693func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall {
6694	c := &OrdersCreatetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6695	c.merchantId = merchantId
6696	c.orderscreatetestorderrequest = orderscreatetestorderrequest
6697	return c
6698}
6699
6700// Fields allows partial responses to be retrieved. See
6701// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6702// for more information.
6703func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall {
6704	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6705	return c
6706}
6707
6708// Context sets the context to be used in this call's Do method. Any
6709// pending HTTP request will be aborted if the provided context is
6710// canceled.
6711func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall {
6712	c.ctx_ = ctx
6713	return c
6714}
6715
6716// Header returns an http.Header that can be modified by the caller to
6717// add HTTP headers to the request.
6718func (c *OrdersCreatetestorderCall) Header() http.Header {
6719	if c.header_ == nil {
6720		c.header_ = make(http.Header)
6721	}
6722	return c.header_
6723}
6724
6725func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error) {
6726	reqHeaders := make(http.Header)
6727	for k, v := range c.header_ {
6728		reqHeaders[k] = v
6729	}
6730	reqHeaders.Set("User-Agent", c.s.userAgent())
6731	var body io.Reader = nil
6732	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestorderrequest)
6733	if err != nil {
6734		return nil, err
6735	}
6736	reqHeaders.Set("Content-Type", "application/json")
6737	c.urlParams_.Set("alt", alt)
6738	c.urlParams_.Set("prettyPrint", "false")
6739	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders")
6740	urls += "?" + c.urlParams_.Encode()
6741	req, err := http.NewRequest("POST", urls, body)
6742	if err != nil {
6743		return nil, err
6744	}
6745	req.Header = reqHeaders
6746	googleapi.Expand(req.URL, map[string]string{
6747		"merchantId": strconv.FormatUint(c.merchantId, 10),
6748	})
6749	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6750}
6751
6752// Do executes the "content.orders.createtestorder" call.
6753// Exactly one of *OrdersCreateTestOrderResponse or error will be
6754// non-nil. Any non-2xx status code is an error. Response headers are in
6755// either *OrdersCreateTestOrderResponse.ServerResponse.Header or (if a
6756// response was returned at all) in error.(*googleapi.Error).Header. Use
6757// googleapi.IsNotModified to check whether the returned error was
6758// because http.StatusNotModified was returned.
6759func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error) {
6760	gensupport.SetOptions(c.urlParams_, opts...)
6761	res, err := c.doRequest("json")
6762	if res != nil && res.StatusCode == http.StatusNotModified {
6763		if res.Body != nil {
6764			res.Body.Close()
6765		}
6766		return nil, &googleapi.Error{
6767			Code:   res.StatusCode,
6768			Header: res.Header,
6769		}
6770	}
6771	if err != nil {
6772		return nil, err
6773	}
6774	defer googleapi.CloseBody(res)
6775	if err := googleapi.CheckResponse(res); err != nil {
6776		return nil, err
6777	}
6778	ret := &OrdersCreateTestOrderResponse{
6779		ServerResponse: googleapi.ServerResponse{
6780			Header:         res.Header,
6781			HTTPStatusCode: res.StatusCode,
6782		},
6783	}
6784	target := &ret
6785	if err := gensupport.DecodeResponse(target, res); err != nil {
6786		return nil, err
6787	}
6788	return ret, nil
6789	// {
6790	//   "description": "Sandbox only. Creates a test order.",
6791	//   "httpMethod": "POST",
6792	//   "id": "content.orders.createtestorder",
6793	//   "parameterOrder": [
6794	//     "merchantId"
6795	//   ],
6796	//   "parameters": {
6797	//     "merchantId": {
6798	//       "description": "The ID of the account that should manage the order. This cannot be a multi-client account.",
6799	//       "format": "uint64",
6800	//       "location": "path",
6801	//       "required": true,
6802	//       "type": "string"
6803	//     }
6804	//   },
6805	//   "path": "{merchantId}/testorders",
6806	//   "request": {
6807	//     "$ref": "OrdersCreateTestOrderRequest"
6808	//   },
6809	//   "response": {
6810	//     "$ref": "OrdersCreateTestOrderResponse"
6811	//   },
6812	//   "scopes": [
6813	//     "https://www.googleapis.com/auth/content"
6814	//   ]
6815	// }
6816
6817}
6818
6819// method id "content.orders.createtestreturn":
6820
6821type OrdersCreatetestreturnCall struct {
6822	s                             *APIService
6823	merchantId                    uint64
6824	orderId                       string
6825	orderscreatetestreturnrequest *OrdersCreateTestReturnRequest
6826	urlParams_                    gensupport.URLParams
6827	ctx_                          context.Context
6828	header_                       http.Header
6829}
6830
6831// Createtestreturn: Sandbox only. Creates a test return.
6832func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall {
6833	c := &OrdersCreatetestreturnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6834	c.merchantId = merchantId
6835	c.orderId = orderId
6836	c.orderscreatetestreturnrequest = orderscreatetestreturnrequest
6837	return c
6838}
6839
6840// Fields allows partial responses to be retrieved. See
6841// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6842// for more information.
6843func (c *OrdersCreatetestreturnCall) Fields(s ...googleapi.Field) *OrdersCreatetestreturnCall {
6844	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6845	return c
6846}
6847
6848// Context sets the context to be used in this call's Do method. Any
6849// pending HTTP request will be aborted if the provided context is
6850// canceled.
6851func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall {
6852	c.ctx_ = ctx
6853	return c
6854}
6855
6856// Header returns an http.Header that can be modified by the caller to
6857// add HTTP headers to the request.
6858func (c *OrdersCreatetestreturnCall) Header() http.Header {
6859	if c.header_ == nil {
6860		c.header_ = make(http.Header)
6861	}
6862	return c.header_
6863}
6864
6865func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, error) {
6866	reqHeaders := make(http.Header)
6867	for k, v := range c.header_ {
6868		reqHeaders[k] = v
6869	}
6870	reqHeaders.Set("User-Agent", c.s.userAgent())
6871	var body io.Reader = nil
6872	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestreturnrequest)
6873	if err != nil {
6874		return nil, err
6875	}
6876	reqHeaders.Set("Content-Type", "application/json")
6877	c.urlParams_.Set("alt", alt)
6878	c.urlParams_.Set("prettyPrint", "false")
6879	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/testreturn")
6880	urls += "?" + c.urlParams_.Encode()
6881	req, err := http.NewRequest("POST", urls, body)
6882	if err != nil {
6883		return nil, err
6884	}
6885	req.Header = reqHeaders
6886	googleapi.Expand(req.URL, map[string]string{
6887		"merchantId": strconv.FormatUint(c.merchantId, 10),
6888		"orderId":    c.orderId,
6889	})
6890	return gensupport.SendRequest(c.ctx_, c.s.client, req)
6891}
6892
6893// Do executes the "content.orders.createtestreturn" call.
6894// Exactly one of *OrdersCreateTestReturnResponse or error will be
6895// non-nil. Any non-2xx status code is an error. Response headers are in
6896// either *OrdersCreateTestReturnResponse.ServerResponse.Header or (if a
6897// response was returned at all) in error.(*googleapi.Error).Header. Use
6898// googleapi.IsNotModified to check whether the returned error was
6899// because http.StatusNotModified was returned.
6900func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error) {
6901	gensupport.SetOptions(c.urlParams_, opts...)
6902	res, err := c.doRequest("json")
6903	if res != nil && res.StatusCode == http.StatusNotModified {
6904		if res.Body != nil {
6905			res.Body.Close()
6906		}
6907		return nil, &googleapi.Error{
6908			Code:   res.StatusCode,
6909			Header: res.Header,
6910		}
6911	}
6912	if err != nil {
6913		return nil, err
6914	}
6915	defer googleapi.CloseBody(res)
6916	if err := googleapi.CheckResponse(res); err != nil {
6917		return nil, err
6918	}
6919	ret := &OrdersCreateTestReturnResponse{
6920		ServerResponse: googleapi.ServerResponse{
6921			Header:         res.Header,
6922			HTTPStatusCode: res.StatusCode,
6923		},
6924	}
6925	target := &ret
6926	if err := gensupport.DecodeResponse(target, res); err != nil {
6927		return nil, err
6928	}
6929	return ret, nil
6930	// {
6931	//   "description": "Sandbox only. Creates a test return.",
6932	//   "httpMethod": "POST",
6933	//   "id": "content.orders.createtestreturn",
6934	//   "parameterOrder": [
6935	//     "merchantId",
6936	//     "orderId"
6937	//   ],
6938	//   "parameters": {
6939	//     "merchantId": {
6940	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
6941	//       "format": "uint64",
6942	//       "location": "path",
6943	//       "required": true,
6944	//       "type": "string"
6945	//     },
6946	//     "orderId": {
6947	//       "description": "The ID of the order.",
6948	//       "location": "path",
6949	//       "required": true,
6950	//       "type": "string"
6951	//     }
6952	//   },
6953	//   "path": "{merchantId}/orders/{orderId}/testreturn",
6954	//   "request": {
6955	//     "$ref": "OrdersCreateTestReturnRequest"
6956	//   },
6957	//   "response": {
6958	//     "$ref": "OrdersCreateTestReturnResponse"
6959	//   },
6960	//   "scopes": [
6961	//     "https://www.googleapis.com/auth/content"
6962	//   ]
6963	// }
6964
6965}
6966
6967// method id "content.orders.custombatch":
6968
6969type OrdersCustombatchCall struct {
6970	s                        *APIService
6971	orderscustombatchrequest *OrdersCustomBatchRequest
6972	urlParams_               gensupport.URLParams
6973	ctx_                     context.Context
6974	header_                  http.Header
6975}
6976
6977// Custombatch: Retrieves or modifies multiple orders in a single
6978// request.
6979func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchRequest) *OrdersCustombatchCall {
6980	c := &OrdersCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6981	c.orderscustombatchrequest = orderscustombatchrequest
6982	return c
6983}
6984
6985// Fields allows partial responses to be retrieved. See
6986// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
6987// for more information.
6988func (c *OrdersCustombatchCall) Fields(s ...googleapi.Field) *OrdersCustombatchCall {
6989	c.urlParams_.Set("fields", googleapi.CombineFields(s))
6990	return c
6991}
6992
6993// Context sets the context to be used in this call's Do method. Any
6994// pending HTTP request will be aborted if the provided context is
6995// canceled.
6996func (c *OrdersCustombatchCall) Context(ctx context.Context) *OrdersCustombatchCall {
6997	c.ctx_ = ctx
6998	return c
6999}
7000
7001// Header returns an http.Header that can be modified by the caller to
7002// add HTTP headers to the request.
7003func (c *OrdersCustombatchCall) Header() http.Header {
7004	if c.header_ == nil {
7005		c.header_ = make(http.Header)
7006	}
7007	return c.header_
7008}
7009
7010func (c *OrdersCustombatchCall) doRequest(alt string) (*http.Response, error) {
7011	reqHeaders := make(http.Header)
7012	for k, v := range c.header_ {
7013		reqHeaders[k] = v
7014	}
7015	reqHeaders.Set("User-Agent", c.s.userAgent())
7016	var body io.Reader = nil
7017	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscustombatchrequest)
7018	if err != nil {
7019		return nil, err
7020	}
7021	reqHeaders.Set("Content-Type", "application/json")
7022	c.urlParams_.Set("alt", alt)
7023	c.urlParams_.Set("prettyPrint", "false")
7024	urls := googleapi.ResolveRelative(c.s.BasePath, "orders/batch")
7025	urls += "?" + c.urlParams_.Encode()
7026	req, err := http.NewRequest("POST", urls, body)
7027	if err != nil {
7028		return nil, err
7029	}
7030	req.Header = reqHeaders
7031	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7032}
7033
7034// Do executes the "content.orders.custombatch" call.
7035// Exactly one of *OrdersCustomBatchResponse or error will be non-nil.
7036// Any non-2xx status code is an error. Response headers are in either
7037// *OrdersCustomBatchResponse.ServerResponse.Header or (if a response
7038// was returned at all) in error.(*googleapi.Error).Header. Use
7039// googleapi.IsNotModified to check whether the returned error was
7040// because http.StatusNotModified was returned.
7041func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomBatchResponse, error) {
7042	gensupport.SetOptions(c.urlParams_, opts...)
7043	res, err := c.doRequest("json")
7044	if res != nil && res.StatusCode == http.StatusNotModified {
7045		if res.Body != nil {
7046			res.Body.Close()
7047		}
7048		return nil, &googleapi.Error{
7049			Code:   res.StatusCode,
7050			Header: res.Header,
7051		}
7052	}
7053	if err != nil {
7054		return nil, err
7055	}
7056	defer googleapi.CloseBody(res)
7057	if err := googleapi.CheckResponse(res); err != nil {
7058		return nil, err
7059	}
7060	ret := &OrdersCustomBatchResponse{
7061		ServerResponse: googleapi.ServerResponse{
7062			Header:         res.Header,
7063			HTTPStatusCode: res.StatusCode,
7064		},
7065	}
7066	target := &ret
7067	if err := gensupport.DecodeResponse(target, res); err != nil {
7068		return nil, err
7069	}
7070	return ret, nil
7071	// {
7072	//   "description": "Retrieves or modifies multiple orders in a single request.",
7073	//   "httpMethod": "POST",
7074	//   "id": "content.orders.custombatch",
7075	//   "path": "orders/batch",
7076	//   "request": {
7077	//     "$ref": "OrdersCustomBatchRequest"
7078	//   },
7079	//   "response": {
7080	//     "$ref": "OrdersCustomBatchResponse"
7081	//   },
7082	//   "scopes": [
7083	//     "https://www.googleapis.com/auth/content"
7084	//   ]
7085	// }
7086
7087}
7088
7089// method id "content.orders.get":
7090
7091type OrdersGetCall struct {
7092	s            *APIService
7093	merchantId   uint64
7094	orderId      string
7095	urlParams_   gensupport.URLParams
7096	ifNoneMatch_ string
7097	ctx_         context.Context
7098	header_      http.Header
7099}
7100
7101// Get: Retrieves an order from your Merchant Center account.
7102func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall {
7103	c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7104	c.merchantId = merchantId
7105	c.orderId = orderId
7106	return c
7107}
7108
7109// Fields allows partial responses to be retrieved. See
7110// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7111// for more information.
7112func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall {
7113	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7114	return c
7115}
7116
7117// IfNoneMatch sets the optional parameter which makes the operation
7118// fail if the object's ETag matches the given value. This is useful for
7119// getting updates only after the object has changed since the last
7120// request. Use googleapi.IsNotModified to check whether the response
7121// error from Do is the result of In-None-Match.
7122func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall {
7123	c.ifNoneMatch_ = entityTag
7124	return c
7125}
7126
7127// Context sets the context to be used in this call's Do method. Any
7128// pending HTTP request will be aborted if the provided context is
7129// canceled.
7130func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall {
7131	c.ctx_ = ctx
7132	return c
7133}
7134
7135// Header returns an http.Header that can be modified by the caller to
7136// add HTTP headers to the request.
7137func (c *OrdersGetCall) Header() http.Header {
7138	if c.header_ == nil {
7139		c.header_ = make(http.Header)
7140	}
7141	return c.header_
7142}
7143
7144func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) {
7145	reqHeaders := make(http.Header)
7146	for k, v := range c.header_ {
7147		reqHeaders[k] = v
7148	}
7149	reqHeaders.Set("User-Agent", c.s.userAgent())
7150	if c.ifNoneMatch_ != "" {
7151		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7152	}
7153	var body io.Reader = nil
7154	c.urlParams_.Set("alt", alt)
7155	c.urlParams_.Set("prettyPrint", "false")
7156	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}")
7157	urls += "?" + c.urlParams_.Encode()
7158	req, err := http.NewRequest("GET", urls, body)
7159	if err != nil {
7160		return nil, err
7161	}
7162	req.Header = reqHeaders
7163	googleapi.Expand(req.URL, map[string]string{
7164		"merchantId": strconv.FormatUint(c.merchantId, 10),
7165		"orderId":    c.orderId,
7166	})
7167	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7168}
7169
7170// Do executes the "content.orders.get" call.
7171// Exactly one of *Order or error will be non-nil. Any non-2xx status
7172// code is an error. Response headers are in either
7173// *Order.ServerResponse.Header or (if a response was returned at all)
7174// in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
7175// check whether the returned error was because http.StatusNotModified
7176// was returned.
7177func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) {
7178	gensupport.SetOptions(c.urlParams_, opts...)
7179	res, err := c.doRequest("json")
7180	if res != nil && res.StatusCode == http.StatusNotModified {
7181		if res.Body != nil {
7182			res.Body.Close()
7183		}
7184		return nil, &googleapi.Error{
7185			Code:   res.StatusCode,
7186			Header: res.Header,
7187		}
7188	}
7189	if err != nil {
7190		return nil, err
7191	}
7192	defer googleapi.CloseBody(res)
7193	if err := googleapi.CheckResponse(res); err != nil {
7194		return nil, err
7195	}
7196	ret := &Order{
7197		ServerResponse: googleapi.ServerResponse{
7198			Header:         res.Header,
7199			HTTPStatusCode: res.StatusCode,
7200		},
7201	}
7202	target := &ret
7203	if err := gensupport.DecodeResponse(target, res); err != nil {
7204		return nil, err
7205	}
7206	return ret, nil
7207	// {
7208	//   "description": "Retrieves an order from your Merchant Center account.",
7209	//   "httpMethod": "GET",
7210	//   "id": "content.orders.get",
7211	//   "parameterOrder": [
7212	//     "merchantId",
7213	//     "orderId"
7214	//   ],
7215	//   "parameters": {
7216	//     "merchantId": {
7217	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
7218	//       "format": "uint64",
7219	//       "location": "path",
7220	//       "required": true,
7221	//       "type": "string"
7222	//     },
7223	//     "orderId": {
7224	//       "description": "The ID of the order.",
7225	//       "location": "path",
7226	//       "required": true,
7227	//       "type": "string"
7228	//     }
7229	//   },
7230	//   "path": "{merchantId}/orders/{orderId}",
7231	//   "response": {
7232	//     "$ref": "Order"
7233	//   },
7234	//   "scopes": [
7235	//     "https://www.googleapis.com/auth/content"
7236	//   ]
7237	// }
7238
7239}
7240
7241// method id "content.orders.getbymerchantorderid":
7242
7243type OrdersGetbymerchantorderidCall struct {
7244	s               *APIService
7245	merchantId      uint64
7246	merchantOrderId string
7247	urlParams_      gensupport.URLParams
7248	ifNoneMatch_    string
7249	ctx_            context.Context
7250	header_         http.Header
7251}
7252
7253// Getbymerchantorderid: Retrieves an order using merchant order id.
7254func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall {
7255	c := &OrdersGetbymerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7256	c.merchantId = merchantId
7257	c.merchantOrderId = merchantOrderId
7258	return c
7259}
7260
7261// Fields allows partial responses to be retrieved. See
7262// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7263// for more information.
7264func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall {
7265	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7266	return c
7267}
7268
7269// IfNoneMatch sets the optional parameter which makes the operation
7270// fail if the object's ETag matches the given value. This is useful for
7271// getting updates only after the object has changed since the last
7272// request. Use googleapi.IsNotModified to check whether the response
7273// error from Do is the result of In-None-Match.
7274func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall {
7275	c.ifNoneMatch_ = entityTag
7276	return c
7277}
7278
7279// Context sets the context to be used in this call's Do method. Any
7280// pending HTTP request will be aborted if the provided context is
7281// canceled.
7282func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall {
7283	c.ctx_ = ctx
7284	return c
7285}
7286
7287// Header returns an http.Header that can be modified by the caller to
7288// add HTTP headers to the request.
7289func (c *OrdersGetbymerchantorderidCall) Header() http.Header {
7290	if c.header_ == nil {
7291		c.header_ = make(http.Header)
7292	}
7293	return c.header_
7294}
7295
7296func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, error) {
7297	reqHeaders := make(http.Header)
7298	for k, v := range c.header_ {
7299		reqHeaders[k] = v
7300	}
7301	reqHeaders.Set("User-Agent", c.s.userAgent())
7302	if c.ifNoneMatch_ != "" {
7303		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7304	}
7305	var body io.Reader = nil
7306	c.urlParams_.Set("alt", alt)
7307	c.urlParams_.Set("prettyPrint", "false")
7308	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/ordersbymerchantid/{merchantOrderId}")
7309	urls += "?" + c.urlParams_.Encode()
7310	req, err := http.NewRequest("GET", urls, body)
7311	if err != nil {
7312		return nil, err
7313	}
7314	req.Header = reqHeaders
7315	googleapi.Expand(req.URL, map[string]string{
7316		"merchantId":      strconv.FormatUint(c.merchantId, 10),
7317		"merchantOrderId": c.merchantOrderId,
7318	})
7319	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7320}
7321
7322// Do executes the "content.orders.getbymerchantorderid" call.
7323// Exactly one of *OrdersGetByMerchantOrderIdResponse or error will be
7324// non-nil. Any non-2xx status code is an error. Response headers are in
7325// either *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or
7326// (if a response was returned at all) in
7327// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7328// whether the returned error was because http.StatusNotModified was
7329// returned.
7330func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error) {
7331	gensupport.SetOptions(c.urlParams_, opts...)
7332	res, err := c.doRequest("json")
7333	if res != nil && res.StatusCode == http.StatusNotModified {
7334		if res.Body != nil {
7335			res.Body.Close()
7336		}
7337		return nil, &googleapi.Error{
7338			Code:   res.StatusCode,
7339			Header: res.Header,
7340		}
7341	}
7342	if err != nil {
7343		return nil, err
7344	}
7345	defer googleapi.CloseBody(res)
7346	if err := googleapi.CheckResponse(res); err != nil {
7347		return nil, err
7348	}
7349	ret := &OrdersGetByMerchantOrderIdResponse{
7350		ServerResponse: googleapi.ServerResponse{
7351			Header:         res.Header,
7352			HTTPStatusCode: res.StatusCode,
7353		},
7354	}
7355	target := &ret
7356	if err := gensupport.DecodeResponse(target, res); err != nil {
7357		return nil, err
7358	}
7359	return ret, nil
7360	// {
7361	//   "description": "Retrieves an order using merchant order id.",
7362	//   "httpMethod": "GET",
7363	//   "id": "content.orders.getbymerchantorderid",
7364	//   "parameterOrder": [
7365	//     "merchantId",
7366	//     "merchantOrderId"
7367	//   ],
7368	//   "parameters": {
7369	//     "merchantId": {
7370	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
7371	//       "format": "uint64",
7372	//       "location": "path",
7373	//       "required": true,
7374	//       "type": "string"
7375	//     },
7376	//     "merchantOrderId": {
7377	//       "description": "The merchant order id to be looked for.",
7378	//       "location": "path",
7379	//       "required": true,
7380	//       "type": "string"
7381	//     }
7382	//   },
7383	//   "path": "{merchantId}/ordersbymerchantid/{merchantOrderId}",
7384	//   "response": {
7385	//     "$ref": "OrdersGetByMerchantOrderIdResponse"
7386	//   },
7387	//   "scopes": [
7388	//     "https://www.googleapis.com/auth/content"
7389	//   ]
7390	// }
7391
7392}
7393
7394// method id "content.orders.gettestordertemplate":
7395
7396type OrdersGettestordertemplateCall struct {
7397	s            *APIService
7398	merchantId   uint64
7399	templateName string
7400	urlParams_   gensupport.URLParams
7401	ifNoneMatch_ string
7402	ctx_         context.Context
7403	header_      http.Header
7404}
7405
7406// Gettestordertemplate: Sandbox only. Retrieves an order template that
7407// can be used to quickly create a new order in sandbox.
7408func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall {
7409	c := &OrdersGettestordertemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7410	c.merchantId = merchantId
7411	c.templateName = templateName
7412	return c
7413}
7414
7415// Country sets the optional parameter "country": The country of the
7416// template to retrieve. Defaults to US.
7417func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall {
7418	c.urlParams_.Set("country", country)
7419	return c
7420}
7421
7422// Fields allows partial responses to be retrieved. See
7423// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7424// for more information.
7425func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall {
7426	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7427	return c
7428}
7429
7430// IfNoneMatch sets the optional parameter which makes the operation
7431// fail if the object's ETag matches the given value. This is useful for
7432// getting updates only after the object has changed since the last
7433// request. Use googleapi.IsNotModified to check whether the response
7434// error from Do is the result of In-None-Match.
7435func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall {
7436	c.ifNoneMatch_ = entityTag
7437	return c
7438}
7439
7440// Context sets the context to be used in this call's Do method. Any
7441// pending HTTP request will be aborted if the provided context is
7442// canceled.
7443func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall {
7444	c.ctx_ = ctx
7445	return c
7446}
7447
7448// Header returns an http.Header that can be modified by the caller to
7449// add HTTP headers to the request.
7450func (c *OrdersGettestordertemplateCall) Header() http.Header {
7451	if c.header_ == nil {
7452		c.header_ = make(http.Header)
7453	}
7454	return c.header_
7455}
7456
7457func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, error) {
7458	reqHeaders := make(http.Header)
7459	for k, v := range c.header_ {
7460		reqHeaders[k] = v
7461	}
7462	reqHeaders.Set("User-Agent", c.s.userAgent())
7463	if c.ifNoneMatch_ != "" {
7464		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7465	}
7466	var body io.Reader = nil
7467	c.urlParams_.Set("alt", alt)
7468	c.urlParams_.Set("prettyPrint", "false")
7469	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testordertemplates/{templateName}")
7470	urls += "?" + c.urlParams_.Encode()
7471	req, err := http.NewRequest("GET", urls, body)
7472	if err != nil {
7473		return nil, err
7474	}
7475	req.Header = reqHeaders
7476	googleapi.Expand(req.URL, map[string]string{
7477		"merchantId":   strconv.FormatUint(c.merchantId, 10),
7478		"templateName": c.templateName,
7479	})
7480	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7481}
7482
7483// Do executes the "content.orders.gettestordertemplate" call.
7484// Exactly one of *OrdersGetTestOrderTemplateResponse or error will be
7485// non-nil. Any non-2xx status code is an error. Response headers are in
7486// either *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or
7487// (if a response was returned at all) in
7488// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7489// whether the returned error was because http.StatusNotModified was
7490// returned.
7491func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error) {
7492	gensupport.SetOptions(c.urlParams_, opts...)
7493	res, err := c.doRequest("json")
7494	if res != nil && res.StatusCode == http.StatusNotModified {
7495		if res.Body != nil {
7496			res.Body.Close()
7497		}
7498		return nil, &googleapi.Error{
7499			Code:   res.StatusCode,
7500			Header: res.Header,
7501		}
7502	}
7503	if err != nil {
7504		return nil, err
7505	}
7506	defer googleapi.CloseBody(res)
7507	if err := googleapi.CheckResponse(res); err != nil {
7508		return nil, err
7509	}
7510	ret := &OrdersGetTestOrderTemplateResponse{
7511		ServerResponse: googleapi.ServerResponse{
7512			Header:         res.Header,
7513			HTTPStatusCode: res.StatusCode,
7514		},
7515	}
7516	target := &ret
7517	if err := gensupport.DecodeResponse(target, res); err != nil {
7518		return nil, err
7519	}
7520	return ret, nil
7521	// {
7522	//   "description": "Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox.",
7523	//   "httpMethod": "GET",
7524	//   "id": "content.orders.gettestordertemplate",
7525	//   "parameterOrder": [
7526	//     "merchantId",
7527	//     "templateName"
7528	//   ],
7529	//   "parameters": {
7530	//     "country": {
7531	//       "description": "The country of the template to retrieve. Defaults to US.",
7532	//       "location": "query",
7533	//       "type": "string"
7534	//     },
7535	//     "merchantId": {
7536	//       "description": "The ID of the account that should manage the order. This cannot be a multi-client account.",
7537	//       "format": "uint64",
7538	//       "location": "path",
7539	//       "required": true,
7540	//       "type": "string"
7541	//     },
7542	//     "templateName": {
7543	//       "description": "The name of the template to retrieve.",
7544	//       "enum": [
7545	//         "template1",
7546	//         "template1a",
7547	//         "template1b",
7548	//         "template2"
7549	//       ],
7550	//       "enumDescriptions": [
7551	//         "",
7552	//         "",
7553	//         "",
7554	//         ""
7555	//       ],
7556	//       "location": "path",
7557	//       "required": true,
7558	//       "type": "string"
7559	//     }
7560	//   },
7561	//   "path": "{merchantId}/testordertemplates/{templateName}",
7562	//   "response": {
7563	//     "$ref": "OrdersGetTestOrderTemplateResponse"
7564	//   },
7565	//   "scopes": [
7566	//     "https://www.googleapis.com/auth/content"
7567	//   ]
7568	// }
7569
7570}
7571
7572// method id "content.orders.instorerefundlineitem":
7573
7574type OrdersInstorerefundlineitemCall struct {
7575	s                                  *APIService
7576	merchantId                         uint64
7577	orderId                            string
7578	ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest
7579	urlParams_                         gensupport.URLParams
7580	ctx_                               context.Context
7581	header_                            http.Header
7582}
7583
7584// Instorerefundlineitem: Notifies that item return and refund was
7585// handled directly by merchant outside of Google payments processing
7586// (e.g. cash refund done in store).
7587func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall {
7588	c := &OrdersInstorerefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7589	c.merchantId = merchantId
7590	c.orderId = orderId
7591	c.ordersinstorerefundlineitemrequest = ordersinstorerefundlineitemrequest
7592	return c
7593}
7594
7595// Fields allows partial responses to be retrieved. See
7596// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7597// for more information.
7598func (c *OrdersInstorerefundlineitemCall) Fields(s ...googleapi.Field) *OrdersInstorerefundlineitemCall {
7599	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7600	return c
7601}
7602
7603// Context sets the context to be used in this call's Do method. Any
7604// pending HTTP request will be aborted if the provided context is
7605// canceled.
7606func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall {
7607	c.ctx_ = ctx
7608	return c
7609}
7610
7611// Header returns an http.Header that can be modified by the caller to
7612// add HTTP headers to the request.
7613func (c *OrdersInstorerefundlineitemCall) Header() http.Header {
7614	if c.header_ == nil {
7615		c.header_ = make(http.Header)
7616	}
7617	return c.header_
7618}
7619
7620func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, error) {
7621	reqHeaders := make(http.Header)
7622	for k, v := range c.header_ {
7623		reqHeaders[k] = v
7624	}
7625	reqHeaders.Set("User-Agent", c.s.userAgent())
7626	var body io.Reader = nil
7627	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersinstorerefundlineitemrequest)
7628	if err != nil {
7629		return nil, err
7630	}
7631	reqHeaders.Set("Content-Type", "application/json")
7632	c.urlParams_.Set("alt", alt)
7633	c.urlParams_.Set("prettyPrint", "false")
7634	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/inStoreRefundLineItem")
7635	urls += "?" + c.urlParams_.Encode()
7636	req, err := http.NewRequest("POST", urls, body)
7637	if err != nil {
7638		return nil, err
7639	}
7640	req.Header = reqHeaders
7641	googleapi.Expand(req.URL, map[string]string{
7642		"merchantId": strconv.FormatUint(c.merchantId, 10),
7643		"orderId":    c.orderId,
7644	})
7645	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7646}
7647
7648// Do executes the "content.orders.instorerefundlineitem" call.
7649// Exactly one of *OrdersInStoreRefundLineItemResponse or error will be
7650// non-nil. Any non-2xx status code is an error. Response headers are in
7651// either *OrdersInStoreRefundLineItemResponse.ServerResponse.Header or
7652// (if a response was returned at all) in
7653// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
7654// whether the returned error was because http.StatusNotModified was
7655// returned.
7656func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error) {
7657	gensupport.SetOptions(c.urlParams_, opts...)
7658	res, err := c.doRequest("json")
7659	if res != nil && res.StatusCode == http.StatusNotModified {
7660		if res.Body != nil {
7661			res.Body.Close()
7662		}
7663		return nil, &googleapi.Error{
7664			Code:   res.StatusCode,
7665			Header: res.Header,
7666		}
7667	}
7668	if err != nil {
7669		return nil, err
7670	}
7671	defer googleapi.CloseBody(res)
7672	if err := googleapi.CheckResponse(res); err != nil {
7673		return nil, err
7674	}
7675	ret := &OrdersInStoreRefundLineItemResponse{
7676		ServerResponse: googleapi.ServerResponse{
7677			Header:         res.Header,
7678			HTTPStatusCode: res.StatusCode,
7679		},
7680	}
7681	target := &ret
7682	if err := gensupport.DecodeResponse(target, res); err != nil {
7683		return nil, err
7684	}
7685	return ret, nil
7686	// {
7687	//   "description": "Notifies that item return and refund was handled directly by merchant outside of Google payments processing (e.g. cash refund done in store).",
7688	//   "httpMethod": "POST",
7689	//   "id": "content.orders.instorerefundlineitem",
7690	//   "parameterOrder": [
7691	//     "merchantId",
7692	//     "orderId"
7693	//   ],
7694	//   "parameters": {
7695	//     "merchantId": {
7696	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
7697	//       "format": "uint64",
7698	//       "location": "path",
7699	//       "required": true,
7700	//       "type": "string"
7701	//     },
7702	//     "orderId": {
7703	//       "description": "The ID of the order.",
7704	//       "location": "path",
7705	//       "required": true,
7706	//       "type": "string"
7707	//     }
7708	//   },
7709	//   "path": "{merchantId}/orders/{orderId}/inStoreRefundLineItem",
7710	//   "request": {
7711	//     "$ref": "OrdersInStoreRefundLineItemRequest"
7712	//   },
7713	//   "response": {
7714	//     "$ref": "OrdersInStoreRefundLineItemResponse"
7715	//   },
7716	//   "scopes": [
7717	//     "https://www.googleapis.com/auth/content"
7718	//   ]
7719	// }
7720
7721}
7722
7723// method id "content.orders.list":
7724
7725type OrdersListCall struct {
7726	s            *APIService
7727	merchantId   uint64
7728	urlParams_   gensupport.URLParams
7729	ifNoneMatch_ string
7730	ctx_         context.Context
7731	header_      http.Header
7732}
7733
7734// List: Lists the orders in your Merchant Center account.
7735func (r *OrdersService) List(merchantId uint64) *OrdersListCall {
7736	c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7737	c.merchantId = merchantId
7738	return c
7739}
7740
7741// Acknowledged sets the optional parameter "acknowledged": Obtains
7742// orders that match the acknowledgement status. When set to true,
7743// obtains orders that have been acknowledged. When false, obtains
7744// orders that have not been acknowledged.
7745// We recommend using this filter set to false, in conjunction with the
7746// acknowledge call, such that only un-acknowledged orders are returned.
7747func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall {
7748	c.urlParams_.Set("acknowledged", fmt.Sprint(acknowledged))
7749	return c
7750}
7751
7752// MaxResults sets the optional parameter "maxResults": The maximum
7753// number of orders to return in the response, used for paging. The
7754// default value is 25 orders per page, and the maximum allowed value is
7755// 250 orders per page.
7756// Known issue: All List calls will return all Orders without limit
7757// regardless of the value of this field.
7758func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall {
7759	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
7760	return c
7761}
7762
7763// OrderBy sets the optional parameter "orderBy": The ordering of the
7764// returned list. The only supported value are placedDate desc and
7765// placedDate asc for now, which returns orders sorted by placement
7766// date. "placedDate desc" stands for listing orders by placement date,
7767// from oldest to most recent. "placedDate asc" stands for listing
7768// orders by placement date, from most recent to oldest. In future
7769// releases we'll support other sorting criteria.
7770//
7771// Possible values:
7772//   "placedDate asc"
7773//   "placedDate desc"
7774func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall {
7775	c.urlParams_.Set("orderBy", orderBy)
7776	return c
7777}
7778
7779// PageToken sets the optional parameter "pageToken": The token returned
7780// by the previous request.
7781func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall {
7782	c.urlParams_.Set("pageToken", pageToken)
7783	return c
7784}
7785
7786// PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains
7787// orders placed before this date (exclusively), in ISO 8601 format.
7788func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall {
7789	c.urlParams_.Set("placedDateEnd", placedDateEnd)
7790	return c
7791}
7792
7793// PlacedDateStart sets the optional parameter "placedDateStart":
7794// Obtains orders placed after this date (inclusively), in ISO 8601
7795// format.
7796func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall {
7797	c.urlParams_.Set("placedDateStart", placedDateStart)
7798	return c
7799}
7800
7801// Statuses sets the optional parameter "statuses": Obtains orders that
7802// match any of the specified statuses. Multiple values can be specified
7803// with comma separation. Additionally, please note that active is a
7804// shortcut for pendingShipment and partiallyShipped, and completed is a
7805// shortcut for shipped , partiallyDelivered, delivered,
7806// partiallyReturned, returned, and canceled.
7807//
7808// Possible values:
7809//   "active"
7810//   "canceled"
7811//   "completed"
7812//   "delivered"
7813//   "inProgress"
7814//   "partiallyDelivered"
7815//   "partiallyReturned"
7816//   "partiallyShipped"
7817//   "pendingShipment"
7818//   "returned"
7819//   "shipped"
7820func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall {
7821	c.urlParams_.SetMulti("statuses", append([]string{}, statuses...))
7822	return c
7823}
7824
7825// Fields allows partial responses to be retrieved. See
7826// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
7827// for more information.
7828func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall {
7829	c.urlParams_.Set("fields", googleapi.CombineFields(s))
7830	return c
7831}
7832
7833// IfNoneMatch sets the optional parameter which makes the operation
7834// fail if the object's ETag matches the given value. This is useful for
7835// getting updates only after the object has changed since the last
7836// request. Use googleapi.IsNotModified to check whether the response
7837// error from Do is the result of In-None-Match.
7838func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall {
7839	c.ifNoneMatch_ = entityTag
7840	return c
7841}
7842
7843// Context sets the context to be used in this call's Do method. Any
7844// pending HTTP request will be aborted if the provided context is
7845// canceled.
7846func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall {
7847	c.ctx_ = ctx
7848	return c
7849}
7850
7851// Header returns an http.Header that can be modified by the caller to
7852// add HTTP headers to the request.
7853func (c *OrdersListCall) Header() http.Header {
7854	if c.header_ == nil {
7855		c.header_ = make(http.Header)
7856	}
7857	return c.header_
7858}
7859
7860func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) {
7861	reqHeaders := make(http.Header)
7862	for k, v := range c.header_ {
7863		reqHeaders[k] = v
7864	}
7865	reqHeaders.Set("User-Agent", c.s.userAgent())
7866	if c.ifNoneMatch_ != "" {
7867		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7868	}
7869	var body io.Reader = nil
7870	c.urlParams_.Set("alt", alt)
7871	c.urlParams_.Set("prettyPrint", "false")
7872	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders")
7873	urls += "?" + c.urlParams_.Encode()
7874	req, err := http.NewRequest("GET", urls, body)
7875	if err != nil {
7876		return nil, err
7877	}
7878	req.Header = reqHeaders
7879	googleapi.Expand(req.URL, map[string]string{
7880		"merchantId": strconv.FormatUint(c.merchantId, 10),
7881	})
7882	return gensupport.SendRequest(c.ctx_, c.s.client, req)
7883}
7884
7885// Do executes the "content.orders.list" call.
7886// Exactly one of *OrdersListResponse or error will be non-nil. Any
7887// non-2xx status code is an error. Response headers are in either
7888// *OrdersListResponse.ServerResponse.Header or (if a response was
7889// returned at all) in error.(*googleapi.Error).Header. Use
7890// googleapi.IsNotModified to check whether the returned error was
7891// because http.StatusNotModified was returned.
7892func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) {
7893	gensupport.SetOptions(c.urlParams_, opts...)
7894	res, err := c.doRequest("json")
7895	if res != nil && res.StatusCode == http.StatusNotModified {
7896		if res.Body != nil {
7897			res.Body.Close()
7898		}
7899		return nil, &googleapi.Error{
7900			Code:   res.StatusCode,
7901			Header: res.Header,
7902		}
7903	}
7904	if err != nil {
7905		return nil, err
7906	}
7907	defer googleapi.CloseBody(res)
7908	if err := googleapi.CheckResponse(res); err != nil {
7909		return nil, err
7910	}
7911	ret := &OrdersListResponse{
7912		ServerResponse: googleapi.ServerResponse{
7913			Header:         res.Header,
7914			HTTPStatusCode: res.StatusCode,
7915		},
7916	}
7917	target := &ret
7918	if err := gensupport.DecodeResponse(target, res); err != nil {
7919		return nil, err
7920	}
7921	return ret, nil
7922	// {
7923	//   "description": "Lists the orders in your Merchant Center account.",
7924	//   "httpMethod": "GET",
7925	//   "id": "content.orders.list",
7926	//   "parameterOrder": [
7927	//     "merchantId"
7928	//   ],
7929	//   "parameters": {
7930	//     "acknowledged": {
7931	//       "description": "Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged.\nWe recommend using this filter set to false, in conjunction with the acknowledge call, such that only un-acknowledged orders are returned.",
7932	//       "location": "query",
7933	//       "type": "boolean"
7934	//     },
7935	//     "maxResults": {
7936	//       "description": "The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page.\nKnown issue: All List calls will return all Orders without limit regardless of the value of this field.",
7937	//       "format": "uint32",
7938	//       "location": "query",
7939	//       "type": "integer"
7940	//     },
7941	//     "merchantId": {
7942	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
7943	//       "format": "uint64",
7944	//       "location": "path",
7945	//       "required": true,
7946	//       "type": "string"
7947	//     },
7948	//     "orderBy": {
7949	//       "description": "The ordering of the returned list. The only supported value are placedDate desc and placedDate asc for now, which returns orders sorted by placement date. \"placedDate desc\" stands for listing orders by placement date, from oldest to most recent. \"placedDate asc\" stands for listing orders by placement date, from most recent to oldest. In future releases we'll support other sorting criteria.",
7950	//       "enum": [
7951	//         "placedDate asc",
7952	//         "placedDate desc"
7953	//       ],
7954	//       "enumDescriptions": [
7955	//         "",
7956	//         ""
7957	//       ],
7958	//       "location": "query",
7959	//       "type": "string"
7960	//     },
7961	//     "pageToken": {
7962	//       "description": "The token returned by the previous request.",
7963	//       "location": "query",
7964	//       "type": "string"
7965	//     },
7966	//     "placedDateEnd": {
7967	//       "description": "Obtains orders placed before this date (exclusively), in ISO 8601 format.",
7968	//       "location": "query",
7969	//       "type": "string"
7970	//     },
7971	//     "placedDateStart": {
7972	//       "description": "Obtains orders placed after this date (inclusively), in ISO 8601 format.",
7973	//       "location": "query",
7974	//       "type": "string"
7975	//     },
7976	//     "statuses": {
7977	//       "description": "Obtains orders that match any of the specified statuses. Multiple values can be specified with comma separation. Additionally, please note that active is a shortcut for pendingShipment and partiallyShipped, and completed is a shortcut for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and canceled.",
7978	//       "enum": [
7979	//         "active",
7980	//         "canceled",
7981	//         "completed",
7982	//         "delivered",
7983	//         "inProgress",
7984	//         "partiallyDelivered",
7985	//         "partiallyReturned",
7986	//         "partiallyShipped",
7987	//         "pendingShipment",
7988	//         "returned",
7989	//         "shipped"
7990	//       ],
7991	//       "enumDescriptions": [
7992	//         "",
7993	//         "",
7994	//         "",
7995	//         "",
7996	//         "",
7997	//         "",
7998	//         "",
7999	//         "",
8000	//         "",
8001	//         "",
8002	//         ""
8003	//       ],
8004	//       "location": "query",
8005	//       "repeated": true,
8006	//       "type": "string"
8007	//     }
8008	//   },
8009	//   "path": "{merchantId}/orders",
8010	//   "response": {
8011	//     "$ref": "OrdersListResponse"
8012	//   },
8013	//   "scopes": [
8014	//     "https://www.googleapis.com/auth/content"
8015	//   ]
8016	// }
8017
8018}
8019
8020// Pages invokes f for each page of results.
8021// A non-nil error returned from f will halt the iteration.
8022// The provided context supersedes any context provided to the Context method.
8023func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error {
8024	c.ctx_ = ctx
8025	defer c.PageToken(c.urlParams_.Get("pageToken")) // reset paging to original point
8026	for {
8027		x, err := c.Do()
8028		if err != nil {
8029			return err
8030		}
8031		if err := f(x); err != nil {
8032			return err
8033		}
8034		if x.NextPageToken == "" {
8035			return nil
8036		}
8037		c.PageToken(x.NextPageToken)
8038	}
8039}
8040
8041// method id "content.orders.refund":
8042
8043type OrdersRefundCall struct {
8044	s                   *APIService
8045	merchantId          uint64
8046	orderId             string
8047	ordersrefundrequest *OrdersRefundRequest
8048	urlParams_          gensupport.URLParams
8049	ctx_                context.Context
8050	header_             http.Header
8051}
8052
8053// Refund: Deprecated, please use returnRefundLineItem instead.
8054func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall {
8055	c := &OrdersRefundCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8056	c.merchantId = merchantId
8057	c.orderId = orderId
8058	c.ordersrefundrequest = ordersrefundrequest
8059	return c
8060}
8061
8062// Fields allows partial responses to be retrieved. See
8063// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8064// for more information.
8065func (c *OrdersRefundCall) Fields(s ...googleapi.Field) *OrdersRefundCall {
8066	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8067	return c
8068}
8069
8070// Context sets the context to be used in this call's Do method. Any
8071// pending HTTP request will be aborted if the provided context is
8072// canceled.
8073func (c *OrdersRefundCall) Context(ctx context.Context) *OrdersRefundCall {
8074	c.ctx_ = ctx
8075	return c
8076}
8077
8078// Header returns an http.Header that can be modified by the caller to
8079// add HTTP headers to the request.
8080func (c *OrdersRefundCall) Header() http.Header {
8081	if c.header_ == nil {
8082		c.header_ = make(http.Header)
8083	}
8084	return c.header_
8085}
8086
8087func (c *OrdersRefundCall) doRequest(alt string) (*http.Response, error) {
8088	reqHeaders := make(http.Header)
8089	for k, v := range c.header_ {
8090		reqHeaders[k] = v
8091	}
8092	reqHeaders.Set("User-Agent", c.s.userAgent())
8093	var body io.Reader = nil
8094	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrefundrequest)
8095	if err != nil {
8096		return nil, err
8097	}
8098	reqHeaders.Set("Content-Type", "application/json")
8099	c.urlParams_.Set("alt", alt)
8100	c.urlParams_.Set("prettyPrint", "false")
8101	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refund")
8102	urls += "?" + c.urlParams_.Encode()
8103	req, err := http.NewRequest("POST", urls, body)
8104	if err != nil {
8105		return nil, err
8106	}
8107	req.Header = reqHeaders
8108	googleapi.Expand(req.URL, map[string]string{
8109		"merchantId": strconv.FormatUint(c.merchantId, 10),
8110		"orderId":    c.orderId,
8111	})
8112	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8113}
8114
8115// Do executes the "content.orders.refund" call.
8116// Exactly one of *OrdersRefundResponse or error will be non-nil. Any
8117// non-2xx status code is an error. Response headers are in either
8118// *OrdersRefundResponse.ServerResponse.Header or (if a response was
8119// returned at all) in error.(*googleapi.Error).Header. Use
8120// googleapi.IsNotModified to check whether the returned error was
8121// because http.StatusNotModified was returned.
8122func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundResponse, error) {
8123	gensupport.SetOptions(c.urlParams_, opts...)
8124	res, err := c.doRequest("json")
8125	if res != nil && res.StatusCode == http.StatusNotModified {
8126		if res.Body != nil {
8127			res.Body.Close()
8128		}
8129		return nil, &googleapi.Error{
8130			Code:   res.StatusCode,
8131			Header: res.Header,
8132		}
8133	}
8134	if err != nil {
8135		return nil, err
8136	}
8137	defer googleapi.CloseBody(res)
8138	if err := googleapi.CheckResponse(res); err != nil {
8139		return nil, err
8140	}
8141	ret := &OrdersRefundResponse{
8142		ServerResponse: googleapi.ServerResponse{
8143			Header:         res.Header,
8144			HTTPStatusCode: res.StatusCode,
8145		},
8146	}
8147	target := &ret
8148	if err := gensupport.DecodeResponse(target, res); err != nil {
8149		return nil, err
8150	}
8151	return ret, nil
8152	// {
8153	//   "description": "Deprecated, please use returnRefundLineItem instead.",
8154	//   "httpMethod": "POST",
8155	//   "id": "content.orders.refund",
8156	//   "parameterOrder": [
8157	//     "merchantId",
8158	//     "orderId"
8159	//   ],
8160	//   "parameters": {
8161	//     "merchantId": {
8162	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
8163	//       "format": "uint64",
8164	//       "location": "path",
8165	//       "required": true,
8166	//       "type": "string"
8167	//     },
8168	//     "orderId": {
8169	//       "description": "The ID of the order to refund.",
8170	//       "location": "path",
8171	//       "required": true,
8172	//       "type": "string"
8173	//     }
8174	//   },
8175	//   "path": "{merchantId}/orders/{orderId}/refund",
8176	//   "request": {
8177	//     "$ref": "OrdersRefundRequest"
8178	//   },
8179	//   "response": {
8180	//     "$ref": "OrdersRefundResponse"
8181	//   },
8182	//   "scopes": [
8183	//     "https://www.googleapis.com/auth/content"
8184	//   ]
8185	// }
8186
8187}
8188
8189// method id "content.orders.rejectreturnlineitem":
8190
8191type OrdersRejectreturnlineitemCall struct {
8192	s                                 *APIService
8193	merchantId                        uint64
8194	orderId                           string
8195	ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest
8196	urlParams_                        gensupport.URLParams
8197	ctx_                              context.Context
8198	header_                           http.Header
8199}
8200
8201// Rejectreturnlineitem: Rejects return on an line item.
8202func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall {
8203	c := &OrdersRejectreturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8204	c.merchantId = merchantId
8205	c.orderId = orderId
8206	c.ordersrejectreturnlineitemrequest = ordersrejectreturnlineitemrequest
8207	return c
8208}
8209
8210// Fields allows partial responses to be retrieved. See
8211// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8212// for more information.
8213func (c *OrdersRejectreturnlineitemCall) Fields(s ...googleapi.Field) *OrdersRejectreturnlineitemCall {
8214	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8215	return c
8216}
8217
8218// Context sets the context to be used in this call's Do method. Any
8219// pending HTTP request will be aborted if the provided context is
8220// canceled.
8221func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall {
8222	c.ctx_ = ctx
8223	return c
8224}
8225
8226// Header returns an http.Header that can be modified by the caller to
8227// add HTTP headers to the request.
8228func (c *OrdersRejectreturnlineitemCall) Header() http.Header {
8229	if c.header_ == nil {
8230		c.header_ = make(http.Header)
8231	}
8232	return c.header_
8233}
8234
8235func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, error) {
8236	reqHeaders := make(http.Header)
8237	for k, v := range c.header_ {
8238		reqHeaders[k] = v
8239	}
8240	reqHeaders.Set("User-Agent", c.s.userAgent())
8241	var body io.Reader = nil
8242	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrejectreturnlineitemrequest)
8243	if err != nil {
8244		return nil, err
8245	}
8246	reqHeaders.Set("Content-Type", "application/json")
8247	c.urlParams_.Set("alt", alt)
8248	c.urlParams_.Set("prettyPrint", "false")
8249	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/rejectReturnLineItem")
8250	urls += "?" + c.urlParams_.Encode()
8251	req, err := http.NewRequest("POST", urls, body)
8252	if err != nil {
8253		return nil, err
8254	}
8255	req.Header = reqHeaders
8256	googleapi.Expand(req.URL, map[string]string{
8257		"merchantId": strconv.FormatUint(c.merchantId, 10),
8258		"orderId":    c.orderId,
8259	})
8260	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8261}
8262
8263// Do executes the "content.orders.rejectreturnlineitem" call.
8264// Exactly one of *OrdersRejectReturnLineItemResponse or error will be
8265// non-nil. Any non-2xx status code is an error. Response headers are in
8266// either *OrdersRejectReturnLineItemResponse.ServerResponse.Header or
8267// (if a response was returned at all) in
8268// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8269// whether the returned error was because http.StatusNotModified was
8270// returned.
8271func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error) {
8272	gensupport.SetOptions(c.urlParams_, opts...)
8273	res, err := c.doRequest("json")
8274	if res != nil && res.StatusCode == http.StatusNotModified {
8275		if res.Body != nil {
8276			res.Body.Close()
8277		}
8278		return nil, &googleapi.Error{
8279			Code:   res.StatusCode,
8280			Header: res.Header,
8281		}
8282	}
8283	if err != nil {
8284		return nil, err
8285	}
8286	defer googleapi.CloseBody(res)
8287	if err := googleapi.CheckResponse(res); err != nil {
8288		return nil, err
8289	}
8290	ret := &OrdersRejectReturnLineItemResponse{
8291		ServerResponse: googleapi.ServerResponse{
8292			Header:         res.Header,
8293			HTTPStatusCode: res.StatusCode,
8294		},
8295	}
8296	target := &ret
8297	if err := gensupport.DecodeResponse(target, res); err != nil {
8298		return nil, err
8299	}
8300	return ret, nil
8301	// {
8302	//   "description": "Rejects return on an line item.",
8303	//   "httpMethod": "POST",
8304	//   "id": "content.orders.rejectreturnlineitem",
8305	//   "parameterOrder": [
8306	//     "merchantId",
8307	//     "orderId"
8308	//   ],
8309	//   "parameters": {
8310	//     "merchantId": {
8311	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
8312	//       "format": "uint64",
8313	//       "location": "path",
8314	//       "required": true,
8315	//       "type": "string"
8316	//     },
8317	//     "orderId": {
8318	//       "description": "The ID of the order.",
8319	//       "location": "path",
8320	//       "required": true,
8321	//       "type": "string"
8322	//     }
8323	//   },
8324	//   "path": "{merchantId}/orders/{orderId}/rejectReturnLineItem",
8325	//   "request": {
8326	//     "$ref": "OrdersRejectReturnLineItemRequest"
8327	//   },
8328	//   "response": {
8329	//     "$ref": "OrdersRejectReturnLineItemResponse"
8330	//   },
8331	//   "scopes": [
8332	//     "https://www.googleapis.com/auth/content"
8333	//   ]
8334	// }
8335
8336}
8337
8338// method id "content.orders.returnlineitem":
8339
8340type OrdersReturnlineitemCall struct {
8341	s                           *APIService
8342	merchantId                  uint64
8343	orderId                     string
8344	ordersreturnlineitemrequest *OrdersReturnLineItemRequest
8345	urlParams_                  gensupport.URLParams
8346	ctx_                        context.Context
8347	header_                     http.Header
8348}
8349
8350// Returnlineitem: Returns a line item.
8351func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, ordersreturnlineitemrequest *OrdersReturnLineItemRequest) *OrdersReturnlineitemCall {
8352	c := &OrdersReturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8353	c.merchantId = merchantId
8354	c.orderId = orderId
8355	c.ordersreturnlineitemrequest = ordersreturnlineitemrequest
8356	return c
8357}
8358
8359// Fields allows partial responses to be retrieved. See
8360// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8361// for more information.
8362func (c *OrdersReturnlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnlineitemCall {
8363	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8364	return c
8365}
8366
8367// Context sets the context to be used in this call's Do method. Any
8368// pending HTTP request will be aborted if the provided context is
8369// canceled.
8370func (c *OrdersReturnlineitemCall) Context(ctx context.Context) *OrdersReturnlineitemCall {
8371	c.ctx_ = ctx
8372	return c
8373}
8374
8375// Header returns an http.Header that can be modified by the caller to
8376// add HTTP headers to the request.
8377func (c *OrdersReturnlineitemCall) Header() http.Header {
8378	if c.header_ == nil {
8379		c.header_ = make(http.Header)
8380	}
8381	return c.header_
8382}
8383
8384func (c *OrdersReturnlineitemCall) doRequest(alt string) (*http.Response, error) {
8385	reqHeaders := make(http.Header)
8386	for k, v := range c.header_ {
8387		reqHeaders[k] = v
8388	}
8389	reqHeaders.Set("User-Agent", c.s.userAgent())
8390	var body io.Reader = nil
8391	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnlineitemrequest)
8392	if err != nil {
8393		return nil, err
8394	}
8395	reqHeaders.Set("Content-Type", "application/json")
8396	c.urlParams_.Set("alt", alt)
8397	c.urlParams_.Set("prettyPrint", "false")
8398	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnLineItem")
8399	urls += "?" + c.urlParams_.Encode()
8400	req, err := http.NewRequest("POST", urls, body)
8401	if err != nil {
8402		return nil, err
8403	}
8404	req.Header = reqHeaders
8405	googleapi.Expand(req.URL, map[string]string{
8406		"merchantId": strconv.FormatUint(c.merchantId, 10),
8407		"orderId":    c.orderId,
8408	})
8409	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8410}
8411
8412// Do executes the "content.orders.returnlineitem" call.
8413// Exactly one of *OrdersReturnLineItemResponse or error will be
8414// non-nil. Any non-2xx status code is an error. Response headers are in
8415// either *OrdersReturnLineItemResponse.ServerResponse.Header or (if a
8416// response was returned at all) in error.(*googleapi.Error).Header. Use
8417// googleapi.IsNotModified to check whether the returned error was
8418// because http.StatusNotModified was returned.
8419func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnLineItemResponse, error) {
8420	gensupport.SetOptions(c.urlParams_, opts...)
8421	res, err := c.doRequest("json")
8422	if res != nil && res.StatusCode == http.StatusNotModified {
8423		if res.Body != nil {
8424			res.Body.Close()
8425		}
8426		return nil, &googleapi.Error{
8427			Code:   res.StatusCode,
8428			Header: res.Header,
8429		}
8430	}
8431	if err != nil {
8432		return nil, err
8433	}
8434	defer googleapi.CloseBody(res)
8435	if err := googleapi.CheckResponse(res); err != nil {
8436		return nil, err
8437	}
8438	ret := &OrdersReturnLineItemResponse{
8439		ServerResponse: googleapi.ServerResponse{
8440			Header:         res.Header,
8441			HTTPStatusCode: res.StatusCode,
8442		},
8443	}
8444	target := &ret
8445	if err := gensupport.DecodeResponse(target, res); err != nil {
8446		return nil, err
8447	}
8448	return ret, nil
8449	// {
8450	//   "description": "Returns a line item.",
8451	//   "httpMethod": "POST",
8452	//   "id": "content.orders.returnlineitem",
8453	//   "parameterOrder": [
8454	//     "merchantId",
8455	//     "orderId"
8456	//   ],
8457	//   "parameters": {
8458	//     "merchantId": {
8459	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
8460	//       "format": "uint64",
8461	//       "location": "path",
8462	//       "required": true,
8463	//       "type": "string"
8464	//     },
8465	//     "orderId": {
8466	//       "description": "The ID of the order.",
8467	//       "location": "path",
8468	//       "required": true,
8469	//       "type": "string"
8470	//     }
8471	//   },
8472	//   "path": "{merchantId}/orders/{orderId}/returnLineItem",
8473	//   "request": {
8474	//     "$ref": "OrdersReturnLineItemRequest"
8475	//   },
8476	//   "response": {
8477	//     "$ref": "OrdersReturnLineItemResponse"
8478	//   },
8479	//   "scopes": [
8480	//     "https://www.googleapis.com/auth/content"
8481	//   ]
8482	// }
8483
8484}
8485
8486// method id "content.orders.returnrefundlineitem":
8487
8488type OrdersReturnrefundlineitemCall struct {
8489	s                                 *APIService
8490	merchantId                        uint64
8491	orderId                           string
8492	ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest
8493	urlParams_                        gensupport.URLParams
8494	ctx_                              context.Context
8495	header_                           http.Header
8496}
8497
8498// Returnrefundlineitem: Returns and refunds a line item. Note that this
8499// method can only be called on fully shipped orders.
8500func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall {
8501	c := &OrdersReturnrefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8502	c.merchantId = merchantId
8503	c.orderId = orderId
8504	c.ordersreturnrefundlineitemrequest = ordersreturnrefundlineitemrequest
8505	return c
8506}
8507
8508// Fields allows partial responses to be retrieved. See
8509// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8510// for more information.
8511func (c *OrdersReturnrefundlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnrefundlineitemCall {
8512	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8513	return c
8514}
8515
8516// Context sets the context to be used in this call's Do method. Any
8517// pending HTTP request will be aborted if the provided context is
8518// canceled.
8519func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall {
8520	c.ctx_ = ctx
8521	return c
8522}
8523
8524// Header returns an http.Header that can be modified by the caller to
8525// add HTTP headers to the request.
8526func (c *OrdersReturnrefundlineitemCall) Header() http.Header {
8527	if c.header_ == nil {
8528		c.header_ = make(http.Header)
8529	}
8530	return c.header_
8531}
8532
8533func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, error) {
8534	reqHeaders := make(http.Header)
8535	for k, v := range c.header_ {
8536		reqHeaders[k] = v
8537	}
8538	reqHeaders.Set("User-Agent", c.s.userAgent())
8539	var body io.Reader = nil
8540	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnrefundlineitemrequest)
8541	if err != nil {
8542		return nil, err
8543	}
8544	reqHeaders.Set("Content-Type", "application/json")
8545	c.urlParams_.Set("alt", alt)
8546	c.urlParams_.Set("prettyPrint", "false")
8547	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnRefundLineItem")
8548	urls += "?" + c.urlParams_.Encode()
8549	req, err := http.NewRequest("POST", urls, body)
8550	if err != nil {
8551		return nil, err
8552	}
8553	req.Header = reqHeaders
8554	googleapi.Expand(req.URL, map[string]string{
8555		"merchantId": strconv.FormatUint(c.merchantId, 10),
8556		"orderId":    c.orderId,
8557	})
8558	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8559}
8560
8561// Do executes the "content.orders.returnrefundlineitem" call.
8562// Exactly one of *OrdersReturnRefundLineItemResponse or error will be
8563// non-nil. Any non-2xx status code is an error. Response headers are in
8564// either *OrdersReturnRefundLineItemResponse.ServerResponse.Header or
8565// (if a response was returned at all) in
8566// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8567// whether the returned error was because http.StatusNotModified was
8568// returned.
8569func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error) {
8570	gensupport.SetOptions(c.urlParams_, opts...)
8571	res, err := c.doRequest("json")
8572	if res != nil && res.StatusCode == http.StatusNotModified {
8573		if res.Body != nil {
8574			res.Body.Close()
8575		}
8576		return nil, &googleapi.Error{
8577			Code:   res.StatusCode,
8578			Header: res.Header,
8579		}
8580	}
8581	if err != nil {
8582		return nil, err
8583	}
8584	defer googleapi.CloseBody(res)
8585	if err := googleapi.CheckResponse(res); err != nil {
8586		return nil, err
8587	}
8588	ret := &OrdersReturnRefundLineItemResponse{
8589		ServerResponse: googleapi.ServerResponse{
8590			Header:         res.Header,
8591			HTTPStatusCode: res.StatusCode,
8592		},
8593	}
8594	target := &ret
8595	if err := gensupport.DecodeResponse(target, res); err != nil {
8596		return nil, err
8597	}
8598	return ret, nil
8599	// {
8600	//   "description": "Returns and refunds a line item. Note that this method can only be called on fully shipped orders.",
8601	//   "httpMethod": "POST",
8602	//   "id": "content.orders.returnrefundlineitem",
8603	//   "parameterOrder": [
8604	//     "merchantId",
8605	//     "orderId"
8606	//   ],
8607	//   "parameters": {
8608	//     "merchantId": {
8609	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
8610	//       "format": "uint64",
8611	//       "location": "path",
8612	//       "required": true,
8613	//       "type": "string"
8614	//     },
8615	//     "orderId": {
8616	//       "description": "The ID of the order.",
8617	//       "location": "path",
8618	//       "required": true,
8619	//       "type": "string"
8620	//     }
8621	//   },
8622	//   "path": "{merchantId}/orders/{orderId}/returnRefundLineItem",
8623	//   "request": {
8624	//     "$ref": "OrdersReturnRefundLineItemRequest"
8625	//   },
8626	//   "response": {
8627	//     "$ref": "OrdersReturnRefundLineItemResponse"
8628	//   },
8629	//   "scopes": [
8630	//     "https://www.googleapis.com/auth/content"
8631	//   ]
8632	// }
8633
8634}
8635
8636// method id "content.orders.setlineitemmetadata":
8637
8638type OrdersSetlineitemmetadataCall struct {
8639	s                                *APIService
8640	merchantId                       uint64
8641	orderId                          string
8642	orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest
8643	urlParams_                       gensupport.URLParams
8644	ctx_                             context.Context
8645	header_                          http.Header
8646}
8647
8648// Setlineitemmetadata: Sets (overrides) merchant provided annotations
8649// on the line item.
8650func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall {
8651	c := &OrdersSetlineitemmetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8652	c.merchantId = merchantId
8653	c.orderId = orderId
8654	c.orderssetlineitemmetadatarequest = orderssetlineitemmetadatarequest
8655	return c
8656}
8657
8658// Fields allows partial responses to be retrieved. See
8659// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8660// for more information.
8661func (c *OrdersSetlineitemmetadataCall) Fields(s ...googleapi.Field) *OrdersSetlineitemmetadataCall {
8662	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8663	return c
8664}
8665
8666// Context sets the context to be used in this call's Do method. Any
8667// pending HTTP request will be aborted if the provided context is
8668// canceled.
8669func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall {
8670	c.ctx_ = ctx
8671	return c
8672}
8673
8674// Header returns an http.Header that can be modified by the caller to
8675// add HTTP headers to the request.
8676func (c *OrdersSetlineitemmetadataCall) Header() http.Header {
8677	if c.header_ == nil {
8678		c.header_ = make(http.Header)
8679	}
8680	return c.header_
8681}
8682
8683func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, error) {
8684	reqHeaders := make(http.Header)
8685	for k, v := range c.header_ {
8686		reqHeaders[k] = v
8687	}
8688	reqHeaders.Set("User-Agent", c.s.userAgent())
8689	var body io.Reader = nil
8690	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderssetlineitemmetadatarequest)
8691	if err != nil {
8692		return nil, err
8693	}
8694	reqHeaders.Set("Content-Type", "application/json")
8695	c.urlParams_.Set("alt", alt)
8696	c.urlParams_.Set("prettyPrint", "false")
8697	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/setLineItemMetadata")
8698	urls += "?" + c.urlParams_.Encode()
8699	req, err := http.NewRequest("POST", urls, body)
8700	if err != nil {
8701		return nil, err
8702	}
8703	req.Header = reqHeaders
8704	googleapi.Expand(req.URL, map[string]string{
8705		"merchantId": strconv.FormatUint(c.merchantId, 10),
8706		"orderId":    c.orderId,
8707	})
8708	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8709}
8710
8711// Do executes the "content.orders.setlineitemmetadata" call.
8712// Exactly one of *OrdersSetLineItemMetadataResponse or error will be
8713// non-nil. Any non-2xx status code is an error. Response headers are in
8714// either *OrdersSetLineItemMetadataResponse.ServerResponse.Header or
8715// (if a response was returned at all) in
8716// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
8717// whether the returned error was because http.StatusNotModified was
8718// returned.
8719func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error) {
8720	gensupport.SetOptions(c.urlParams_, opts...)
8721	res, err := c.doRequest("json")
8722	if res != nil && res.StatusCode == http.StatusNotModified {
8723		if res.Body != nil {
8724			res.Body.Close()
8725		}
8726		return nil, &googleapi.Error{
8727			Code:   res.StatusCode,
8728			Header: res.Header,
8729		}
8730	}
8731	if err != nil {
8732		return nil, err
8733	}
8734	defer googleapi.CloseBody(res)
8735	if err := googleapi.CheckResponse(res); err != nil {
8736		return nil, err
8737	}
8738	ret := &OrdersSetLineItemMetadataResponse{
8739		ServerResponse: googleapi.ServerResponse{
8740			Header:         res.Header,
8741			HTTPStatusCode: res.StatusCode,
8742		},
8743	}
8744	target := &ret
8745	if err := gensupport.DecodeResponse(target, res); err != nil {
8746		return nil, err
8747	}
8748	return ret, nil
8749	// {
8750	//   "description": "Sets (overrides) merchant provided annotations on the line item.",
8751	//   "httpMethod": "POST",
8752	//   "id": "content.orders.setlineitemmetadata",
8753	//   "parameterOrder": [
8754	//     "merchantId",
8755	//     "orderId"
8756	//   ],
8757	//   "parameters": {
8758	//     "merchantId": {
8759	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
8760	//       "format": "uint64",
8761	//       "location": "path",
8762	//       "required": true,
8763	//       "type": "string"
8764	//     },
8765	//     "orderId": {
8766	//       "description": "The ID of the order.",
8767	//       "location": "path",
8768	//       "required": true,
8769	//       "type": "string"
8770	//     }
8771	//   },
8772	//   "path": "{merchantId}/orders/{orderId}/setLineItemMetadata",
8773	//   "request": {
8774	//     "$ref": "OrdersSetLineItemMetadataRequest"
8775	//   },
8776	//   "response": {
8777	//     "$ref": "OrdersSetLineItemMetadataResponse"
8778	//   },
8779	//   "scopes": [
8780	//     "https://www.googleapis.com/auth/content"
8781	//   ]
8782	// }
8783
8784}
8785
8786// method id "content.orders.shiplineitems":
8787
8788type OrdersShiplineitemsCall struct {
8789	s                          *APIService
8790	merchantId                 uint64
8791	orderId                    string
8792	ordersshiplineitemsrequest *OrdersShipLineItemsRequest
8793	urlParams_                 gensupport.URLParams
8794	ctx_                       context.Context
8795	header_                    http.Header
8796}
8797
8798// Shiplineitems: Marks line item(s) as shipped.
8799func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall {
8800	c := &OrdersShiplineitemsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8801	c.merchantId = merchantId
8802	c.orderId = orderId
8803	c.ordersshiplineitemsrequest = ordersshiplineitemsrequest
8804	return c
8805}
8806
8807// Fields allows partial responses to be retrieved. See
8808// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8809// for more information.
8810func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall {
8811	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8812	return c
8813}
8814
8815// Context sets the context to be used in this call's Do method. Any
8816// pending HTTP request will be aborted if the provided context is
8817// canceled.
8818func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall {
8819	c.ctx_ = ctx
8820	return c
8821}
8822
8823// Header returns an http.Header that can be modified by the caller to
8824// add HTTP headers to the request.
8825func (c *OrdersShiplineitemsCall) Header() http.Header {
8826	if c.header_ == nil {
8827		c.header_ = make(http.Header)
8828	}
8829	return c.header_
8830}
8831
8832func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) {
8833	reqHeaders := make(http.Header)
8834	for k, v := range c.header_ {
8835		reqHeaders[k] = v
8836	}
8837	reqHeaders.Set("User-Agent", c.s.userAgent())
8838	var body io.Reader = nil
8839	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersshiplineitemsrequest)
8840	if err != nil {
8841		return nil, err
8842	}
8843	reqHeaders.Set("Content-Type", "application/json")
8844	c.urlParams_.Set("alt", alt)
8845	c.urlParams_.Set("prettyPrint", "false")
8846	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/shipLineItems")
8847	urls += "?" + c.urlParams_.Encode()
8848	req, err := http.NewRequest("POST", urls, body)
8849	if err != nil {
8850		return nil, err
8851	}
8852	req.Header = reqHeaders
8853	googleapi.Expand(req.URL, map[string]string{
8854		"merchantId": strconv.FormatUint(c.merchantId, 10),
8855		"orderId":    c.orderId,
8856	})
8857	return gensupport.SendRequest(c.ctx_, c.s.client, req)
8858}
8859
8860// Do executes the "content.orders.shiplineitems" call.
8861// Exactly one of *OrdersShipLineItemsResponse or error will be non-nil.
8862// Any non-2xx status code is an error. Response headers are in either
8863// *OrdersShipLineItemsResponse.ServerResponse.Header or (if a response
8864// was returned at all) in error.(*googleapi.Error).Header. Use
8865// googleapi.IsNotModified to check whether the returned error was
8866// because http.StatusNotModified was returned.
8867func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error) {
8868	gensupport.SetOptions(c.urlParams_, opts...)
8869	res, err := c.doRequest("json")
8870	if res != nil && res.StatusCode == http.StatusNotModified {
8871		if res.Body != nil {
8872			res.Body.Close()
8873		}
8874		return nil, &googleapi.Error{
8875			Code:   res.StatusCode,
8876			Header: res.Header,
8877		}
8878	}
8879	if err != nil {
8880		return nil, err
8881	}
8882	defer googleapi.CloseBody(res)
8883	if err := googleapi.CheckResponse(res); err != nil {
8884		return nil, err
8885	}
8886	ret := &OrdersShipLineItemsResponse{
8887		ServerResponse: googleapi.ServerResponse{
8888			Header:         res.Header,
8889			HTTPStatusCode: res.StatusCode,
8890		},
8891	}
8892	target := &ret
8893	if err := gensupport.DecodeResponse(target, res); err != nil {
8894		return nil, err
8895	}
8896	return ret, nil
8897	// {
8898	//   "description": "Marks line item(s) as shipped.",
8899	//   "httpMethod": "POST",
8900	//   "id": "content.orders.shiplineitems",
8901	//   "parameterOrder": [
8902	//     "merchantId",
8903	//     "orderId"
8904	//   ],
8905	//   "parameters": {
8906	//     "merchantId": {
8907	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
8908	//       "format": "uint64",
8909	//       "location": "path",
8910	//       "required": true,
8911	//       "type": "string"
8912	//     },
8913	//     "orderId": {
8914	//       "description": "The ID of the order.",
8915	//       "location": "path",
8916	//       "required": true,
8917	//       "type": "string"
8918	//     }
8919	//   },
8920	//   "path": "{merchantId}/orders/{orderId}/shipLineItems",
8921	//   "request": {
8922	//     "$ref": "OrdersShipLineItemsRequest"
8923	//   },
8924	//   "response": {
8925	//     "$ref": "OrdersShipLineItemsResponse"
8926	//   },
8927	//   "scopes": [
8928	//     "https://www.googleapis.com/auth/content"
8929	//   ]
8930	// }
8931
8932}
8933
8934// method id "content.orders.updatelineitemshippingdetails":
8935
8936type OrdersUpdatelineitemshippingdetailsCall struct {
8937	s                                          *APIService
8938	merchantId                                 uint64
8939	orderId                                    string
8940	ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest
8941	urlParams_                                 gensupport.URLParams
8942	ctx_                                       context.Context
8943	header_                                    http.Header
8944}
8945
8946// Updatelineitemshippingdetails: Updates ship by and delivery by dates
8947// for a line item.
8948func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall {
8949	c := &OrdersUpdatelineitemshippingdetailsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8950	c.merchantId = merchantId
8951	c.orderId = orderId
8952	c.ordersupdatelineitemshippingdetailsrequest = ordersupdatelineitemshippingdetailsrequest
8953	return c
8954}
8955
8956// Fields allows partial responses to be retrieved. See
8957// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
8958// for more information.
8959func (c *OrdersUpdatelineitemshippingdetailsCall) Fields(s ...googleapi.Field) *OrdersUpdatelineitemshippingdetailsCall {
8960	c.urlParams_.Set("fields", googleapi.CombineFields(s))
8961	return c
8962}
8963
8964// Context sets the context to be used in this call's Do method. Any
8965// pending HTTP request will be aborted if the provided context is
8966// canceled.
8967func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall {
8968	c.ctx_ = ctx
8969	return c
8970}
8971
8972// Header returns an http.Header that can be modified by the caller to
8973// add HTTP headers to the request.
8974func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header {
8975	if c.header_ == nil {
8976		c.header_ = make(http.Header)
8977	}
8978	return c.header_
8979}
8980
8981func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.Response, error) {
8982	reqHeaders := make(http.Header)
8983	for k, v := range c.header_ {
8984		reqHeaders[k] = v
8985	}
8986	reqHeaders.Set("User-Agent", c.s.userAgent())
8987	var body io.Reader = nil
8988	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatelineitemshippingdetailsrequest)
8989	if err != nil {
8990		return nil, err
8991	}
8992	reqHeaders.Set("Content-Type", "application/json")
8993	c.urlParams_.Set("alt", alt)
8994	c.urlParams_.Set("prettyPrint", "false")
8995	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateLineItemShippingDetails")
8996	urls += "?" + c.urlParams_.Encode()
8997	req, err := http.NewRequest("POST", urls, body)
8998	if err != nil {
8999		return nil, err
9000	}
9001	req.Header = reqHeaders
9002	googleapi.Expand(req.URL, map[string]string{
9003		"merchantId": strconv.FormatUint(c.merchantId, 10),
9004		"orderId":    c.orderId,
9005	})
9006	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9007}
9008
9009// Do executes the "content.orders.updatelineitemshippingdetails" call.
9010// Exactly one of *OrdersUpdateLineItemShippingDetailsResponse or error
9011// will be non-nil. Any non-2xx status code is an error. Response
9012// headers are in either
9013// *OrdersUpdateLineItemShippingDetailsResponse.ServerResponse.Header or
9014// (if a response was returned at all) in
9015// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9016// whether the returned error was because http.StatusNotModified was
9017// returned.
9018func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error) {
9019	gensupport.SetOptions(c.urlParams_, opts...)
9020	res, err := c.doRequest("json")
9021	if res != nil && res.StatusCode == http.StatusNotModified {
9022		if res.Body != nil {
9023			res.Body.Close()
9024		}
9025		return nil, &googleapi.Error{
9026			Code:   res.StatusCode,
9027			Header: res.Header,
9028		}
9029	}
9030	if err != nil {
9031		return nil, err
9032	}
9033	defer googleapi.CloseBody(res)
9034	if err := googleapi.CheckResponse(res); err != nil {
9035		return nil, err
9036	}
9037	ret := &OrdersUpdateLineItemShippingDetailsResponse{
9038		ServerResponse: googleapi.ServerResponse{
9039			Header:         res.Header,
9040			HTTPStatusCode: res.StatusCode,
9041		},
9042	}
9043	target := &ret
9044	if err := gensupport.DecodeResponse(target, res); err != nil {
9045		return nil, err
9046	}
9047	return ret, nil
9048	// {
9049	//   "description": "Updates ship by and delivery by dates for a line item.",
9050	//   "httpMethod": "POST",
9051	//   "id": "content.orders.updatelineitemshippingdetails",
9052	//   "parameterOrder": [
9053	//     "merchantId",
9054	//     "orderId"
9055	//   ],
9056	//   "parameters": {
9057	//     "merchantId": {
9058	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
9059	//       "format": "uint64",
9060	//       "location": "path",
9061	//       "required": true,
9062	//       "type": "string"
9063	//     },
9064	//     "orderId": {
9065	//       "description": "The ID of the order.",
9066	//       "location": "path",
9067	//       "required": true,
9068	//       "type": "string"
9069	//     }
9070	//   },
9071	//   "path": "{merchantId}/orders/{orderId}/updateLineItemShippingDetails",
9072	//   "request": {
9073	//     "$ref": "OrdersUpdateLineItemShippingDetailsRequest"
9074	//   },
9075	//   "response": {
9076	//     "$ref": "OrdersUpdateLineItemShippingDetailsResponse"
9077	//   },
9078	//   "scopes": [
9079	//     "https://www.googleapis.com/auth/content"
9080	//   ]
9081	// }
9082
9083}
9084
9085// method id "content.orders.updatemerchantorderid":
9086
9087type OrdersUpdatemerchantorderidCall struct {
9088	s                                  *APIService
9089	merchantId                         uint64
9090	orderId                            string
9091	ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest
9092	urlParams_                         gensupport.URLParams
9093	ctx_                               context.Context
9094	header_                            http.Header
9095}
9096
9097// Updatemerchantorderid: Updates the merchant order ID for a given
9098// order.
9099func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall {
9100	c := &OrdersUpdatemerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9101	c.merchantId = merchantId
9102	c.orderId = orderId
9103	c.ordersupdatemerchantorderidrequest = ordersupdatemerchantorderidrequest
9104	return c
9105}
9106
9107// Fields allows partial responses to be retrieved. See
9108// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9109// for more information.
9110func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall {
9111	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9112	return c
9113}
9114
9115// Context sets the context to be used in this call's Do method. Any
9116// pending HTTP request will be aborted if the provided context is
9117// canceled.
9118func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall {
9119	c.ctx_ = ctx
9120	return c
9121}
9122
9123// Header returns an http.Header that can be modified by the caller to
9124// add HTTP headers to the request.
9125func (c *OrdersUpdatemerchantorderidCall) Header() http.Header {
9126	if c.header_ == nil {
9127		c.header_ = make(http.Header)
9128	}
9129	return c.header_
9130}
9131
9132func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, error) {
9133	reqHeaders := make(http.Header)
9134	for k, v := range c.header_ {
9135		reqHeaders[k] = v
9136	}
9137	reqHeaders.Set("User-Agent", c.s.userAgent())
9138	var body io.Reader = nil
9139	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatemerchantorderidrequest)
9140	if err != nil {
9141		return nil, err
9142	}
9143	reqHeaders.Set("Content-Type", "application/json")
9144	c.urlParams_.Set("alt", alt)
9145	c.urlParams_.Set("prettyPrint", "false")
9146	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateMerchantOrderId")
9147	urls += "?" + c.urlParams_.Encode()
9148	req, err := http.NewRequest("POST", urls, body)
9149	if err != nil {
9150		return nil, err
9151	}
9152	req.Header = reqHeaders
9153	googleapi.Expand(req.URL, map[string]string{
9154		"merchantId": strconv.FormatUint(c.merchantId, 10),
9155		"orderId":    c.orderId,
9156	})
9157	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9158}
9159
9160// Do executes the "content.orders.updatemerchantorderid" call.
9161// Exactly one of *OrdersUpdateMerchantOrderIdResponse or error will be
9162// non-nil. Any non-2xx status code is an error. Response headers are in
9163// either *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or
9164// (if a response was returned at all) in
9165// error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
9166// whether the returned error was because http.StatusNotModified was
9167// returned.
9168func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error) {
9169	gensupport.SetOptions(c.urlParams_, opts...)
9170	res, err := c.doRequest("json")
9171	if res != nil && res.StatusCode == http.StatusNotModified {
9172		if res.Body != nil {
9173			res.Body.Close()
9174		}
9175		return nil, &googleapi.Error{
9176			Code:   res.StatusCode,
9177			Header: res.Header,
9178		}
9179	}
9180	if err != nil {
9181		return nil, err
9182	}
9183	defer googleapi.CloseBody(res)
9184	if err := googleapi.CheckResponse(res); err != nil {
9185		return nil, err
9186	}
9187	ret := &OrdersUpdateMerchantOrderIdResponse{
9188		ServerResponse: googleapi.ServerResponse{
9189			Header:         res.Header,
9190			HTTPStatusCode: res.StatusCode,
9191		},
9192	}
9193	target := &ret
9194	if err := gensupport.DecodeResponse(target, res); err != nil {
9195		return nil, err
9196	}
9197	return ret, nil
9198	// {
9199	//   "description": "Updates the merchant order ID for a given order.",
9200	//   "httpMethod": "POST",
9201	//   "id": "content.orders.updatemerchantorderid",
9202	//   "parameterOrder": [
9203	//     "merchantId",
9204	//     "orderId"
9205	//   ],
9206	//   "parameters": {
9207	//     "merchantId": {
9208	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
9209	//       "format": "uint64",
9210	//       "location": "path",
9211	//       "required": true,
9212	//       "type": "string"
9213	//     },
9214	//     "orderId": {
9215	//       "description": "The ID of the order.",
9216	//       "location": "path",
9217	//       "required": true,
9218	//       "type": "string"
9219	//     }
9220	//   },
9221	//   "path": "{merchantId}/orders/{orderId}/updateMerchantOrderId",
9222	//   "request": {
9223	//     "$ref": "OrdersUpdateMerchantOrderIdRequest"
9224	//   },
9225	//   "response": {
9226	//     "$ref": "OrdersUpdateMerchantOrderIdResponse"
9227	//   },
9228	//   "scopes": [
9229	//     "https://www.googleapis.com/auth/content"
9230	//   ]
9231	// }
9232
9233}
9234
9235// method id "content.orders.updateshipment":
9236
9237type OrdersUpdateshipmentCall struct {
9238	s                           *APIService
9239	merchantId                  uint64
9240	orderId                     string
9241	ordersupdateshipmentrequest *OrdersUpdateShipmentRequest
9242	urlParams_                  gensupport.URLParams
9243	ctx_                        context.Context
9244	header_                     http.Header
9245}
9246
9247// Updateshipment: Updates a shipment's status, carrier, and/or tracking
9248// ID.
9249func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall {
9250	c := &OrdersUpdateshipmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9251	c.merchantId = merchantId
9252	c.orderId = orderId
9253	c.ordersupdateshipmentrequest = ordersupdateshipmentrequest
9254	return c
9255}
9256
9257// Fields allows partial responses to be retrieved. See
9258// https://developers.google.com/gdata/docs/2.0/basics#PartialResponse
9259// for more information.
9260func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall {
9261	c.urlParams_.Set("fields", googleapi.CombineFields(s))
9262	return c
9263}
9264
9265// Context sets the context to be used in this call's Do method. Any
9266// pending HTTP request will be aborted if the provided context is
9267// canceled.
9268func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall {
9269	c.ctx_ = ctx
9270	return c
9271}
9272
9273// Header returns an http.Header that can be modified by the caller to
9274// add HTTP headers to the request.
9275func (c *OrdersUpdateshipmentCall) Header() http.Header {
9276	if c.header_ == nil {
9277		c.header_ = make(http.Header)
9278	}
9279	return c.header_
9280}
9281
9282func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) {
9283	reqHeaders := make(http.Header)
9284	for k, v := range c.header_ {
9285		reqHeaders[k] = v
9286	}
9287	reqHeaders.Set("User-Agent", c.s.userAgent())
9288	var body io.Reader = nil
9289	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdateshipmentrequest)
9290	if err != nil {
9291		return nil, err
9292	}
9293	reqHeaders.Set("Content-Type", "application/json")
9294	c.urlParams_.Set("alt", alt)
9295	c.urlParams_.Set("prettyPrint", "false")
9296	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateShipment")
9297	urls += "?" + c.urlParams_.Encode()
9298	req, err := http.NewRequest("POST", urls, body)
9299	if err != nil {
9300		return nil, err
9301	}
9302	req.Header = reqHeaders
9303	googleapi.Expand(req.URL, map[string]string{
9304		"merchantId": strconv.FormatUint(c.merchantId, 10),
9305		"orderId":    c.orderId,
9306	})
9307	return gensupport.SendRequest(c.ctx_, c.s.client, req)
9308}
9309
9310// Do executes the "content.orders.updateshipment" call.
9311// Exactly one of *OrdersUpdateShipmentResponse or error will be
9312// non-nil. Any non-2xx status code is an error. Response headers are in
9313// either *OrdersUpdateShipmentResponse.ServerResponse.Header or (if a
9314// response was returned at all) in error.(*googleapi.Error).Header. Use
9315// googleapi.IsNotModified to check whether the returned error was
9316// because http.StatusNotModified was returned.
9317func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error) {
9318	gensupport.SetOptions(c.urlParams_, opts...)
9319	res, err := c.doRequest("json")
9320	if res != nil && res.StatusCode == http.StatusNotModified {
9321		if res.Body != nil {
9322			res.Body.Close()
9323		}
9324		return nil, &googleapi.Error{
9325			Code:   res.StatusCode,
9326			Header: res.Header,
9327		}
9328	}
9329	if err != nil {
9330		return nil, err
9331	}
9332	defer googleapi.CloseBody(res)
9333	if err := googleapi.CheckResponse(res); err != nil {
9334		return nil, err
9335	}
9336	ret := &OrdersUpdateShipmentResponse{
9337		ServerResponse: googleapi.ServerResponse{
9338			Header:         res.Header,
9339			HTTPStatusCode: res.StatusCode,
9340		},
9341	}
9342	target := &ret
9343	if err := gensupport.DecodeResponse(target, res); err != nil {
9344		return nil, err
9345	}
9346	return ret, nil
9347	// {
9348	//   "description": "Updates a shipment's status, carrier, and/or tracking ID.",
9349	//   "httpMethod": "POST",
9350	//   "id": "content.orders.updateshipment",
9351	//   "parameterOrder": [
9352	//     "merchantId",
9353	//     "orderId"
9354	//   ],
9355	//   "parameters": {
9356	//     "merchantId": {
9357	//       "description": "The ID of the account that manages the order. This cannot be a multi-client account.",
9358	//       "format": "uint64",
9359	//       "location": "path",
9360	//       "required": true,
9361	//       "type": "string"
9362	//     },
9363	//     "orderId": {
9364	//       "description": "The ID of the order.",
9365	//       "location": "path",
9366	//       "required": true,
9367	//       "type": "string"
9368	//     }
9369	//   },
9370	//   "path": "{merchantId}/orders/{orderId}/updateShipment",
9371	//   "request": {
9372	//     "$ref": "OrdersUpdateShipmentRequest"
9373	//   },
9374	//   "response": {
9375	//     "$ref": "OrdersUpdateShipmentResponse"
9376	//   },
9377	//   "scopes": [
9378	//     "https://www.googleapis.com/auth/content"
9379	//   ]
9380	// }
9381
9382}
9383