...

Source file src/google.golang.org/api/content/v2.1/content-gen.go

Documentation: google.golang.org/api/content/v2.1

     1  // Copyright 2024 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/v2/
    10  //
    11  // # Library status
    12  //
    13  // These client libraries are officially supported by Google. However, this
    14  // library is considered complete and is in maintenance mode. This means
    15  // that we will address critical bugs and security issues but will not add
    16  // any new features.
    17  //
    18  // When possible, we recommend using our newer
    19  // [Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)
    20  // that are still actively being worked and iterated on.
    21  //
    22  // # Creating a client
    23  //
    24  // Usage example:
    25  //
    26  //	import "google.golang.org/api/content/v2.1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	contentService, err := content.NewService(ctx)
    30  //
    31  // In this example, Google Application Default Credentials are used for
    32  // authentication. For information on how to create and obtain Application
    33  // Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
    34  //
    35  // # Other authentication options
    36  //
    37  // To use an API key for authentication (note: some APIs do not support API
    38  // keys), use [google.golang.org/api/option.WithAPIKey]:
    39  //
    40  //	contentService, err := content.NewService(ctx, option.WithAPIKey("AIza..."))
    41  //
    42  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    43  // flow, use [google.golang.org/api/option.WithTokenSource]:
    44  //
    45  //	config := &oauth2.Config{...}
    46  //	// ...
    47  //	token, err := config.Exchange(ctx, ...)
    48  //	contentService, err := content.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    49  //
    50  // See [google.golang.org/api/option.ClientOption] for details on options.
    51  package content // import "google.golang.org/api/content/v2.1"
    52  
    53  import (
    54  	"bytes"
    55  	"context"
    56  	"encoding/json"
    57  	"errors"
    58  	"fmt"
    59  	"io"
    60  	"net/http"
    61  	"net/url"
    62  	"strconv"
    63  	"strings"
    64  
    65  	googleapi "google.golang.org/api/googleapi"
    66  	internal "google.golang.org/api/internal"
    67  	gensupport "google.golang.org/api/internal/gensupport"
    68  	option "google.golang.org/api/option"
    69  	internaloption "google.golang.org/api/option/internaloption"
    70  	htransport "google.golang.org/api/transport/http"
    71  )
    72  
    73  // Always reference these packages, just in case the auto-generated code
    74  // below doesn't.
    75  var _ = bytes.NewBuffer
    76  var _ = strconv.Itoa
    77  var _ = fmt.Sprintf
    78  var _ = json.NewDecoder
    79  var _ = io.Copy
    80  var _ = url.Parse
    81  var _ = gensupport.MarshalJSON
    82  var _ = googleapi.Version
    83  var _ = errors.New
    84  var _ = strings.Replace
    85  var _ = context.Canceled
    86  var _ = internaloption.WithDefaultEndpoint
    87  var _ = internal.Version
    88  
    89  const apiId = "content:v2.1"
    90  const apiName = "content"
    91  const apiVersion = "v2.1"
    92  const basePath = "https://shoppingcontent.googleapis.com/content/v2.1/"
    93  const basePathTemplate = "https://shoppingcontent.UNIVERSE_DOMAIN/content/v2.1/"
    94  const mtlsBasePath = "https://shoppingcontent.mtls.googleapis.com/content/v2.1/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// Manage your product listings and accounts for Google Shopping
    99  	ContentScope = "https://www.googleapis.com/auth/content"
   100  )
   101  
   102  // NewService creates a new APIService.
   103  func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
   104  	scopesOption := internaloption.WithDefaultScopes(
   105  		"https://www.googleapis.com/auth/content",
   106  	)
   107  	// NOTE: prepend, so we don't override user-specified scopes.
   108  	opts = append([]option.ClientOption{scopesOption}, opts...)
   109  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   110  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   111  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   112  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   113  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	s, err := New(client)
   118  	if err != nil {
   119  		return nil, err
   120  	}
   121  	if endpoint != "" {
   122  		s.BasePath = endpoint
   123  	}
   124  	return s, nil
   125  }
   126  
   127  // New creates a new APIService. It uses the provided http.Client for requests.
   128  //
   129  // Deprecated: please use NewService instead.
   130  // To provide a custom HTTP client, use option.WithHTTPClient.
   131  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   132  func New(client *http.Client) (*APIService, error) {
   133  	if client == nil {
   134  		return nil, errors.New("client is nil")
   135  	}
   136  	s := &APIService{client: client, BasePath: basePath}
   137  	s.Accounts = NewAccountsService(s)
   138  	s.Accountstatuses = NewAccountstatusesService(s)
   139  	s.Accounttax = NewAccounttaxService(s)
   140  	s.Buyongoogleprograms = NewBuyongoogleprogramsService(s)
   141  	s.Collections = NewCollectionsService(s)
   142  	s.Collectionstatuses = NewCollectionstatusesService(s)
   143  	s.Conversionsources = NewConversionsourcesService(s)
   144  	s.Csses = NewCssesService(s)
   145  	s.Datafeeds = NewDatafeedsService(s)
   146  	s.Datafeedstatuses = NewDatafeedstatusesService(s)
   147  	s.Freelistingsprogram = NewFreelistingsprogramService(s)
   148  	s.Liasettings = NewLiasettingsService(s)
   149  	s.Localinventory = NewLocalinventoryService(s)
   150  	s.Merchantsupport = NewMerchantsupportService(s)
   151  	s.Orderinvoices = NewOrderinvoicesService(s)
   152  	s.Orderreports = NewOrderreportsService(s)
   153  	s.Orderreturns = NewOrderreturnsService(s)
   154  	s.Orders = NewOrdersService(s)
   155  	s.Ordertrackingsignals = NewOrdertrackingsignalsService(s)
   156  	s.Pos = NewPosService(s)
   157  	s.Productdeliverytime = NewProductdeliverytimeService(s)
   158  	s.Products = NewProductsService(s)
   159  	s.Productstatuses = NewProductstatusesService(s)
   160  	s.Promotions = NewPromotionsService(s)
   161  	s.Pubsubnotificationsettings = NewPubsubnotificationsettingsService(s)
   162  	s.Quotas = NewQuotasService(s)
   163  	s.Recommendations = NewRecommendationsService(s)
   164  	s.Regionalinventory = NewRegionalinventoryService(s)
   165  	s.Regions = NewRegionsService(s)
   166  	s.Reports = NewReportsService(s)
   167  	s.Returnaddress = NewReturnaddressService(s)
   168  	s.Returnpolicy = NewReturnpolicyService(s)
   169  	s.Returnpolicyonline = NewReturnpolicyonlineService(s)
   170  	s.Settlementreports = NewSettlementreportsService(s)
   171  	s.Settlementtransactions = NewSettlementtransactionsService(s)
   172  	s.Shippingsettings = NewShippingsettingsService(s)
   173  	s.Shoppingadsprogram = NewShoppingadsprogramService(s)
   174  	return s, nil
   175  }
   176  
   177  type APIService struct {
   178  	client    *http.Client
   179  	BasePath  string // API endpoint base URL
   180  	UserAgent string // optional additional User-Agent fragment
   181  
   182  	Accounts *AccountsService
   183  
   184  	Accountstatuses *AccountstatusesService
   185  
   186  	Accounttax *AccounttaxService
   187  
   188  	Buyongoogleprograms *BuyongoogleprogramsService
   189  
   190  	Collections *CollectionsService
   191  
   192  	Collectionstatuses *CollectionstatusesService
   193  
   194  	Conversionsources *ConversionsourcesService
   195  
   196  	Csses *CssesService
   197  
   198  	Datafeeds *DatafeedsService
   199  
   200  	Datafeedstatuses *DatafeedstatusesService
   201  
   202  	Freelistingsprogram *FreelistingsprogramService
   203  
   204  	Liasettings *LiasettingsService
   205  
   206  	Localinventory *LocalinventoryService
   207  
   208  	Merchantsupport *MerchantsupportService
   209  
   210  	Orderinvoices *OrderinvoicesService
   211  
   212  	Orderreports *OrderreportsService
   213  
   214  	Orderreturns *OrderreturnsService
   215  
   216  	Orders *OrdersService
   217  
   218  	Ordertrackingsignals *OrdertrackingsignalsService
   219  
   220  	Pos *PosService
   221  
   222  	Productdeliverytime *ProductdeliverytimeService
   223  
   224  	Products *ProductsService
   225  
   226  	Productstatuses *ProductstatusesService
   227  
   228  	Promotions *PromotionsService
   229  
   230  	Pubsubnotificationsettings *PubsubnotificationsettingsService
   231  
   232  	Quotas *QuotasService
   233  
   234  	Recommendations *RecommendationsService
   235  
   236  	Regionalinventory *RegionalinventoryService
   237  
   238  	Regions *RegionsService
   239  
   240  	Reports *ReportsService
   241  
   242  	Returnaddress *ReturnaddressService
   243  
   244  	Returnpolicy *ReturnpolicyService
   245  
   246  	Returnpolicyonline *ReturnpolicyonlineService
   247  
   248  	Settlementreports *SettlementreportsService
   249  
   250  	Settlementtransactions *SettlementtransactionsService
   251  
   252  	Shippingsettings *ShippingsettingsService
   253  
   254  	Shoppingadsprogram *ShoppingadsprogramService
   255  }
   256  
   257  func (s *APIService) userAgent() string {
   258  	if s.UserAgent == "" {
   259  		return googleapi.UserAgent
   260  	}
   261  	return googleapi.UserAgent + " " + s.UserAgent
   262  }
   263  
   264  func NewAccountsService(s *APIService) *AccountsService {
   265  	rs := &AccountsService{s: s}
   266  	rs.Credentials = NewAccountsCredentialsService(s)
   267  	rs.Labels = NewAccountsLabelsService(s)
   268  	rs.Returncarrier = NewAccountsReturncarrierService(s)
   269  	return rs
   270  }
   271  
   272  type AccountsService struct {
   273  	s *APIService
   274  
   275  	Credentials *AccountsCredentialsService
   276  
   277  	Labels *AccountsLabelsService
   278  
   279  	Returncarrier *AccountsReturncarrierService
   280  }
   281  
   282  func NewAccountsCredentialsService(s *APIService) *AccountsCredentialsService {
   283  	rs := &AccountsCredentialsService{s: s}
   284  	return rs
   285  }
   286  
   287  type AccountsCredentialsService struct {
   288  	s *APIService
   289  }
   290  
   291  func NewAccountsLabelsService(s *APIService) *AccountsLabelsService {
   292  	rs := &AccountsLabelsService{s: s}
   293  	return rs
   294  }
   295  
   296  type AccountsLabelsService struct {
   297  	s *APIService
   298  }
   299  
   300  func NewAccountsReturncarrierService(s *APIService) *AccountsReturncarrierService {
   301  	rs := &AccountsReturncarrierService{s: s}
   302  	return rs
   303  }
   304  
   305  type AccountsReturncarrierService struct {
   306  	s *APIService
   307  }
   308  
   309  func NewAccountstatusesService(s *APIService) *AccountstatusesService {
   310  	rs := &AccountstatusesService{s: s}
   311  	return rs
   312  }
   313  
   314  type AccountstatusesService struct {
   315  	s *APIService
   316  }
   317  
   318  func NewAccounttaxService(s *APIService) *AccounttaxService {
   319  	rs := &AccounttaxService{s: s}
   320  	return rs
   321  }
   322  
   323  type AccounttaxService struct {
   324  	s *APIService
   325  }
   326  
   327  func NewBuyongoogleprogramsService(s *APIService) *BuyongoogleprogramsService {
   328  	rs := &BuyongoogleprogramsService{s: s}
   329  	return rs
   330  }
   331  
   332  type BuyongoogleprogramsService struct {
   333  	s *APIService
   334  }
   335  
   336  func NewCollectionsService(s *APIService) *CollectionsService {
   337  	rs := &CollectionsService{s: s}
   338  	return rs
   339  }
   340  
   341  type CollectionsService struct {
   342  	s *APIService
   343  }
   344  
   345  func NewCollectionstatusesService(s *APIService) *CollectionstatusesService {
   346  	rs := &CollectionstatusesService{s: s}
   347  	return rs
   348  }
   349  
   350  type CollectionstatusesService struct {
   351  	s *APIService
   352  }
   353  
   354  func NewConversionsourcesService(s *APIService) *ConversionsourcesService {
   355  	rs := &ConversionsourcesService{s: s}
   356  	return rs
   357  }
   358  
   359  type ConversionsourcesService struct {
   360  	s *APIService
   361  }
   362  
   363  func NewCssesService(s *APIService) *CssesService {
   364  	rs := &CssesService{s: s}
   365  	return rs
   366  }
   367  
   368  type CssesService struct {
   369  	s *APIService
   370  }
   371  
   372  func NewDatafeedsService(s *APIService) *DatafeedsService {
   373  	rs := &DatafeedsService{s: s}
   374  	return rs
   375  }
   376  
   377  type DatafeedsService struct {
   378  	s *APIService
   379  }
   380  
   381  func NewDatafeedstatusesService(s *APIService) *DatafeedstatusesService {
   382  	rs := &DatafeedstatusesService{s: s}
   383  	return rs
   384  }
   385  
   386  type DatafeedstatusesService struct {
   387  	s *APIService
   388  }
   389  
   390  func NewFreelistingsprogramService(s *APIService) *FreelistingsprogramService {
   391  	rs := &FreelistingsprogramService{s: s}
   392  	rs.Checkoutsettings = NewFreelistingsprogramCheckoutsettingsService(s)
   393  	return rs
   394  }
   395  
   396  type FreelistingsprogramService struct {
   397  	s *APIService
   398  
   399  	Checkoutsettings *FreelistingsprogramCheckoutsettingsService
   400  }
   401  
   402  func NewFreelistingsprogramCheckoutsettingsService(s *APIService) *FreelistingsprogramCheckoutsettingsService {
   403  	rs := &FreelistingsprogramCheckoutsettingsService{s: s}
   404  	return rs
   405  }
   406  
   407  type FreelistingsprogramCheckoutsettingsService struct {
   408  	s *APIService
   409  }
   410  
   411  func NewLiasettingsService(s *APIService) *LiasettingsService {
   412  	rs := &LiasettingsService{s: s}
   413  	return rs
   414  }
   415  
   416  type LiasettingsService struct {
   417  	s *APIService
   418  }
   419  
   420  func NewLocalinventoryService(s *APIService) *LocalinventoryService {
   421  	rs := &LocalinventoryService{s: s}
   422  	return rs
   423  }
   424  
   425  type LocalinventoryService struct {
   426  	s *APIService
   427  }
   428  
   429  func NewMerchantsupportService(s *APIService) *MerchantsupportService {
   430  	rs := &MerchantsupportService{s: s}
   431  	return rs
   432  }
   433  
   434  type MerchantsupportService struct {
   435  	s *APIService
   436  }
   437  
   438  func NewOrderinvoicesService(s *APIService) *OrderinvoicesService {
   439  	rs := &OrderinvoicesService{s: s}
   440  	return rs
   441  }
   442  
   443  type OrderinvoicesService struct {
   444  	s *APIService
   445  }
   446  
   447  func NewOrderreportsService(s *APIService) *OrderreportsService {
   448  	rs := &OrderreportsService{s: s}
   449  	return rs
   450  }
   451  
   452  type OrderreportsService struct {
   453  	s *APIService
   454  }
   455  
   456  func NewOrderreturnsService(s *APIService) *OrderreturnsService {
   457  	rs := &OrderreturnsService{s: s}
   458  	rs.Labels = NewOrderreturnsLabelsService(s)
   459  	return rs
   460  }
   461  
   462  type OrderreturnsService struct {
   463  	s *APIService
   464  
   465  	Labels *OrderreturnsLabelsService
   466  }
   467  
   468  func NewOrderreturnsLabelsService(s *APIService) *OrderreturnsLabelsService {
   469  	rs := &OrderreturnsLabelsService{s: s}
   470  	return rs
   471  }
   472  
   473  type OrderreturnsLabelsService struct {
   474  	s *APIService
   475  }
   476  
   477  func NewOrdersService(s *APIService) *OrdersService {
   478  	rs := &OrdersService{s: s}
   479  	return rs
   480  }
   481  
   482  type OrdersService struct {
   483  	s *APIService
   484  }
   485  
   486  func NewOrdertrackingsignalsService(s *APIService) *OrdertrackingsignalsService {
   487  	rs := &OrdertrackingsignalsService{s: s}
   488  	return rs
   489  }
   490  
   491  type OrdertrackingsignalsService struct {
   492  	s *APIService
   493  }
   494  
   495  func NewPosService(s *APIService) *PosService {
   496  	rs := &PosService{s: s}
   497  	return rs
   498  }
   499  
   500  type PosService struct {
   501  	s *APIService
   502  }
   503  
   504  func NewProductdeliverytimeService(s *APIService) *ProductdeliverytimeService {
   505  	rs := &ProductdeliverytimeService{s: s}
   506  	return rs
   507  }
   508  
   509  type ProductdeliverytimeService struct {
   510  	s *APIService
   511  }
   512  
   513  func NewProductsService(s *APIService) *ProductsService {
   514  	rs := &ProductsService{s: s}
   515  	return rs
   516  }
   517  
   518  type ProductsService struct {
   519  	s *APIService
   520  }
   521  
   522  func NewProductstatusesService(s *APIService) *ProductstatusesService {
   523  	rs := &ProductstatusesService{s: s}
   524  	return rs
   525  }
   526  
   527  type ProductstatusesService struct {
   528  	s *APIService
   529  }
   530  
   531  func NewPromotionsService(s *APIService) *PromotionsService {
   532  	rs := &PromotionsService{s: s}
   533  	return rs
   534  }
   535  
   536  type PromotionsService struct {
   537  	s *APIService
   538  }
   539  
   540  func NewPubsubnotificationsettingsService(s *APIService) *PubsubnotificationsettingsService {
   541  	rs := &PubsubnotificationsettingsService{s: s}
   542  	return rs
   543  }
   544  
   545  type PubsubnotificationsettingsService struct {
   546  	s *APIService
   547  }
   548  
   549  func NewQuotasService(s *APIService) *QuotasService {
   550  	rs := &QuotasService{s: s}
   551  	return rs
   552  }
   553  
   554  type QuotasService struct {
   555  	s *APIService
   556  }
   557  
   558  func NewRecommendationsService(s *APIService) *RecommendationsService {
   559  	rs := &RecommendationsService{s: s}
   560  	return rs
   561  }
   562  
   563  type RecommendationsService struct {
   564  	s *APIService
   565  }
   566  
   567  func NewRegionalinventoryService(s *APIService) *RegionalinventoryService {
   568  	rs := &RegionalinventoryService{s: s}
   569  	return rs
   570  }
   571  
   572  type RegionalinventoryService struct {
   573  	s *APIService
   574  }
   575  
   576  func NewRegionsService(s *APIService) *RegionsService {
   577  	rs := &RegionsService{s: s}
   578  	return rs
   579  }
   580  
   581  type RegionsService struct {
   582  	s *APIService
   583  }
   584  
   585  func NewReportsService(s *APIService) *ReportsService {
   586  	rs := &ReportsService{s: s}
   587  	return rs
   588  }
   589  
   590  type ReportsService struct {
   591  	s *APIService
   592  }
   593  
   594  func NewReturnaddressService(s *APIService) *ReturnaddressService {
   595  	rs := &ReturnaddressService{s: s}
   596  	return rs
   597  }
   598  
   599  type ReturnaddressService struct {
   600  	s *APIService
   601  }
   602  
   603  func NewReturnpolicyService(s *APIService) *ReturnpolicyService {
   604  	rs := &ReturnpolicyService{s: s}
   605  	return rs
   606  }
   607  
   608  type ReturnpolicyService struct {
   609  	s *APIService
   610  }
   611  
   612  func NewReturnpolicyonlineService(s *APIService) *ReturnpolicyonlineService {
   613  	rs := &ReturnpolicyonlineService{s: s}
   614  	return rs
   615  }
   616  
   617  type ReturnpolicyonlineService struct {
   618  	s *APIService
   619  }
   620  
   621  func NewSettlementreportsService(s *APIService) *SettlementreportsService {
   622  	rs := &SettlementreportsService{s: s}
   623  	return rs
   624  }
   625  
   626  type SettlementreportsService struct {
   627  	s *APIService
   628  }
   629  
   630  func NewSettlementtransactionsService(s *APIService) *SettlementtransactionsService {
   631  	rs := &SettlementtransactionsService{s: s}
   632  	return rs
   633  }
   634  
   635  type SettlementtransactionsService struct {
   636  	s *APIService
   637  }
   638  
   639  func NewShippingsettingsService(s *APIService) *ShippingsettingsService {
   640  	rs := &ShippingsettingsService{s: s}
   641  	return rs
   642  }
   643  
   644  type ShippingsettingsService struct {
   645  	s *APIService
   646  }
   647  
   648  func NewShoppingadsprogramService(s *APIService) *ShoppingadsprogramService {
   649  	rs := &ShoppingadsprogramService{s: s}
   650  	return rs
   651  }
   652  
   653  type ShoppingadsprogramService struct {
   654  	s *APIService
   655  }
   656  
   657  // Account: Account data. After the creation of a new account it may take a few
   658  // minutes before it's fully operational. The methods delete, insert, and
   659  // update require the admin role.
   660  type Account struct {
   661  	// AccountManagement: Output only. How the account is managed. Acceptable
   662  	// values are: - "manual" - "automatic"
   663  	AccountManagement string `json:"accountManagement,omitempty"`
   664  	// AdsLinks: Linked Ads accounts that are active or pending approval. To create
   665  	// a new link request, add a new link with status `active` to the list. It will
   666  	// remain in a `pending` state until approved or rejected either in the Ads
   667  	// interface or through the Google Ads API. To delete an active link, or to
   668  	// cancel a link request, remove it from the list.
   669  	AdsLinks []*AccountAdsLink `json:"adsLinks,omitempty"`
   670  	// AdultContent: Indicates whether the merchant sells adult content.
   671  	AdultContent bool `json:"adultContent,omitempty"`
   672  	// AutomaticImprovements: The automatic improvements of the account can be used
   673  	// to automatically update items, improve images and shipping. Each section
   674  	// inside AutomaticImprovements is updated separately.
   675  	AutomaticImprovements *AccountAutomaticImprovements `json:"automaticImprovements,omitempty"`
   676  	// AutomaticLabelIds: Automatically created label IDs that are assigned to the
   677  	// account by CSS Center.
   678  	AutomaticLabelIds googleapi.Uint64s `json:"automaticLabelIds,omitempty"`
   679  	// BusinessIdentity: The business identity attributes can be used to
   680  	// self-declare attributes that let customers know more about your business.
   681  	BusinessIdentity *AccountBusinessIdentity `json:"businessIdentity,omitempty"`
   682  	// BusinessInformation: The business information of the account.
   683  	BusinessInformation *AccountBusinessInformation `json:"businessInformation,omitempty"`
   684  	// ConversionSettings: Settings for conversion tracking.
   685  	ConversionSettings *AccountConversionSettings `json:"conversionSettings,omitempty"`
   686  	// CssId: ID of CSS the account belongs to.
   687  	CssId uint64 `json:"cssId,omitempty,string"`
   688  	// GoogleMyBusinessLink: The Business Profile which is linked or in the process
   689  	// of being linked with the Merchant Center account.
   690  	GoogleMyBusinessLink *AccountGoogleMyBusinessLink `json:"googleMyBusinessLink,omitempty"`
   691  	// Id: Required. 64-bit Merchant Center account ID.
   692  	Id uint64 `json:"id,omitempty,string"`
   693  	// Kind: Identifies what kind of resource this is. Value: the fixed string
   694  	// "content#account".
   695  	Kind string `json:"kind,omitempty"`
   696  	// LabelIds: Manually created label IDs that are assigned to the account by
   697  	// CSS.
   698  	LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
   699  	// Name: Required. Display name for the account.
   700  	Name string `json:"name,omitempty"`
   701  	// SellerId: Client-specific, locally-unique, internal ID for the child
   702  	// account.
   703  	SellerId string `json:"sellerId,omitempty"`
   704  	// Users: Users with access to the account. Every account (except for
   705  	// subaccounts) must have at least one admin user.
   706  	Users []*AccountUser `json:"users,omitempty"`
   707  	// WebsiteUrl: The merchant's website.
   708  	WebsiteUrl string `json:"websiteUrl,omitempty"`
   709  	// YoutubeChannelLinks: Linked YouTube channels that are active or pending
   710  	// approval. To create a new link request, add a new link with status `active`
   711  	// to the list. It will remain in a `pending` state until approved or rejected
   712  	// in the YT Creator Studio interface. To delete an active link, or to cancel a
   713  	// link request, remove it from the list.
   714  	YoutubeChannelLinks []*AccountYouTubeChannelLink `json:"youtubeChannelLinks,omitempty"`
   715  
   716  	// ServerResponse contains the HTTP response code and headers from the server.
   717  	googleapi.ServerResponse `json:"-"`
   718  	// ForceSendFields is a list of field names (e.g. "AccountManagement") to
   719  	// unconditionally include in API requests. By default, fields with empty or
   720  	// default values are omitted from API requests. See
   721  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   722  	// details.
   723  	ForceSendFields []string `json:"-"`
   724  	// NullFields is a list of field names (e.g. "AccountManagement") to include in
   725  	// API requests with the JSON null value. By default, fields with empty values
   726  	// are omitted from API requests. See
   727  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   728  	NullFields []string `json:"-"`
   729  }
   730  
   731  func (s *Account) MarshalJSON() ([]byte, error) {
   732  	type NoMethod Account
   733  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   734  }
   735  
   736  type AccountAddress struct {
   737  	// Country: CLDR country code (for example, "US"). All MCA sub-accounts inherit
   738  	// the country of their parent MCA by default, however the country can be
   739  	// updated for individual sub-accounts.
   740  	Country string `json:"country,omitempty"`
   741  	// Locality: City, town or commune. May also include dependent localities or
   742  	// sublocalities (for example, neighborhoods or suburbs).
   743  	Locality string `json:"locality,omitempty"`
   744  	// PostalCode: Postal code or ZIP (for example, "94043").
   745  	PostalCode string `json:"postalCode,omitempty"`
   746  	// Region: Top-level administrative subdivision of the country. For example, a
   747  	// state like California ("CA") or a province like Quebec ("QC").
   748  	Region string `json:"region,omitempty"`
   749  	// StreetAddress: Street-level part of the address. Use `\n` to add a second
   750  	// line.
   751  	StreetAddress string `json:"streetAddress,omitempty"`
   752  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
   753  	// include in API requests. By default, fields with empty or default values are
   754  	// omitted from API requests. See
   755  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   756  	// details.
   757  	ForceSendFields []string `json:"-"`
   758  	// NullFields is a list of field names (e.g. "Country") to include in API
   759  	// requests with the JSON null value. By default, fields with empty values are
   760  	// omitted from API requests. See
   761  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   762  	NullFields []string `json:"-"`
   763  }
   764  
   765  func (s *AccountAddress) MarshalJSON() ([]byte, error) {
   766  	type NoMethod AccountAddress
   767  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   768  }
   769  
   770  type AccountAdsLink struct {
   771  	// AdsId: Customer ID of the Ads account.
   772  	AdsId uint64 `json:"adsId,omitempty,string"`
   773  	// Status: Status of the link between this Merchant Center account and the Ads
   774  	// account. Upon retrieval, it represents the actual status of the link and can
   775  	// be either `active` if it was approved in Google Ads or `pending` if it's
   776  	// pending approval. Upon insertion, it represents the *intended* status of the
   777  	// link. Re-uploading a link with status `active` when it's still pending or
   778  	// with status `pending` when it's already active will have no effect: the
   779  	// status will remain unchanged. Re-uploading a link with deprecated status
   780  	// `inactive` is equivalent to not submitting the link at all and will delete
   781  	// the link if it was active or cancel the link request if it was pending.
   782  	// Acceptable values are: - "active" - "pending"
   783  	Status string `json:"status,omitempty"`
   784  	// ForceSendFields is a list of field names (e.g. "AdsId") to unconditionally
   785  	// include in API requests. By default, fields with empty or default values are
   786  	// omitted from API requests. See
   787  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   788  	// details.
   789  	ForceSendFields []string `json:"-"`
   790  	// NullFields is a list of field names (e.g. "AdsId") to include in API
   791  	// requests with the JSON null value. By default, fields with empty values are
   792  	// omitted from API requests. See
   793  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   794  	NullFields []string `json:"-"`
   795  }
   796  
   797  func (s *AccountAdsLink) MarshalJSON() ([]byte, error) {
   798  	type NoMethod AccountAdsLink
   799  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   800  }
   801  
   802  // AccountAutomaticImprovements: The automatic improvements of the account can
   803  // be used to automatically update items, improve images and shipping.
   804  type AccountAutomaticImprovements struct {
   805  	// ImageImprovements: This improvement will attempt to automatically correct
   806  	// submitted images if they don't meet the image requirements
   807  	// (https://support.google.com/merchants/answer/6324350), for example, removing
   808  	// overlays. If successful, the image will be replaced and approved. This
   809  	// improvement is only applied to images of disapproved offers. For more
   810  	// information see: Automatic image improvements
   811  	// (https://support.google.com/merchants/answer/9242973) This field is only
   812  	// updated (cleared) if provided.
   813  	ImageImprovements *AccountImageImprovements `json:"imageImprovements,omitempty"`
   814  	// ItemUpdates: Turning on item updates
   815  	// (https://support.google.com/merchants/answer/3246284) allows Google to
   816  	// automatically update items for you. When item updates are on, Google uses
   817  	// the structured data markup on the website and advanced data extractors to
   818  	// update the price and availability of the items. When the item updates are
   819  	// off, items with mismatched data aren't shown. This field is only updated
   820  	// (cleared) if provided.
   821  	ItemUpdates *AccountItemUpdates `json:"itemUpdates,omitempty"`
   822  	// ShippingImprovements: Not available for MCAs accounts
   823  	// (https://support.google.com/merchants/answer/188487). By turning on
   824  	// automatic shipping improvements
   825  	// (https://support.google.com/merchants/answer/10027038), you are allowing
   826  	// Google to improve the accuracy of your delivery times shown to shoppers
   827  	// using Google. More accurate delivery times, especially when faster,
   828  	// typically lead to better conversion rates. Google will improve your
   829  	// estimated delivery times based on various factors: - Delivery address of an
   830  	// order - Current handling time and shipping time settings - Estimated
   831  	// weekdays or business days - Parcel tracking data This field is only updated
   832  	// (cleared) if provided.
   833  	ShippingImprovements *AccountShippingImprovements `json:"shippingImprovements,omitempty"`
   834  	// ForceSendFields is a list of field names (e.g. "ImageImprovements") to
   835  	// unconditionally include in API requests. By default, fields with empty or
   836  	// default values are omitted from API requests. See
   837  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   838  	// details.
   839  	ForceSendFields []string `json:"-"`
   840  	// NullFields is a list of field names (e.g. "ImageImprovements") to include in
   841  	// API requests with the JSON null value. By default, fields with empty values
   842  	// are omitted from API requests. See
   843  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   844  	NullFields []string `json:"-"`
   845  }
   846  
   847  func (s *AccountAutomaticImprovements) MarshalJSON() ([]byte, error) {
   848  	type NoMethod AccountAutomaticImprovements
   849  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   850  }
   851  
   852  // AccountBusinessIdentity: The business identity attributes
   853  // (https://support.google.com/merchants/answer/10342414) can be used to
   854  // self-declare attributes that let customers know more about your business.
   855  type AccountBusinessIdentity struct {
   856  	// BlackOwned: Specifies whether the business identifies itself as being
   857  	// black-owned. This optional field is only available for merchants with a
   858  	// business country set to "US". This field is not allowed for marketplaces or
   859  	// marketplace sellers.
   860  	BlackOwned *AccountIdentityType `json:"blackOwned,omitempty"`
   861  	// IncludeForPromotions: Required. By setting this field, your business may be
   862  	// included in promotions for all the selected attributes. If you clear this
   863  	// option, it won't affect your identification with any of the attributes. For
   864  	// this field to be set, the merchant must self identify with at least one of
   865  	// the `AccountIdentityType`. If none are included, the request will be
   866  	// considered invalid.
   867  	IncludeForPromotions bool `json:"includeForPromotions,omitempty"`
   868  	// LatinoOwned: Specifies whether the business identifies itself as being
   869  	// latino-owned. This optional field is only available for merchants with a
   870  	// business country set to "US". This field is not allowed for marketplaces or
   871  	// marketplace sellers.
   872  	LatinoOwned *AccountIdentityType `json:"latinoOwned,omitempty"`
   873  	// SmallBusiness: Specifies whether the business identifies itself as a small
   874  	// business. This optional field is only available for merchants with a
   875  	// business country set to "US". It is also not allowed for marketplaces, but
   876  	// it is allowed to marketplace sellers.
   877  	SmallBusiness *AccountIdentityType `json:"smallBusiness,omitempty"`
   878  	// VeteranOwned: Specifies whether the business identifies itself as being
   879  	// veteran-owned. This optional field is only available for merchants with a
   880  	// business country set to "US". This field is not allowed for marketplaces or
   881  	// marketplace sellers.
   882  	VeteranOwned *AccountIdentityType `json:"veteranOwned,omitempty"`
   883  	// WomenOwned: Specifies whether the business identifies itself as being
   884  	// women-owned. This optional field is only available for merchants with a
   885  	// business country set to "US". This field is not allowed for marketplaces or
   886  	// marketplace sellers.
   887  	WomenOwned *AccountIdentityType `json:"womenOwned,omitempty"`
   888  	// ForceSendFields is a list of field names (e.g. "BlackOwned") to
   889  	// unconditionally include in API requests. By default, fields with empty or
   890  	// default values are omitted from API requests. See
   891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   892  	// details.
   893  	ForceSendFields []string `json:"-"`
   894  	// NullFields is a list of field names (e.g. "BlackOwned") to include in API
   895  	// requests with the JSON null value. By default, fields with empty values are
   896  	// omitted from API requests. See
   897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   898  	NullFields []string `json:"-"`
   899  }
   900  
   901  func (s *AccountBusinessIdentity) MarshalJSON() ([]byte, error) {
   902  	type NoMethod AccountBusinessIdentity
   903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   904  }
   905  
   906  type AccountBusinessInformation struct {
   907  	// Address: The address of the business. Use `\n` to add a second address line.
   908  	Address *AccountAddress `json:"address,omitempty"`
   909  	// CustomerService: The customer service information of the business.
   910  	CustomerService *AccountCustomerService `json:"customerService,omitempty"`
   911  	// KoreanBusinessRegistrationNumber: The 10-digit Korean business registration
   912  	// number (https://support.google.com/merchants/answer/9037766) separated with
   913  	// dashes in the format: XXX-XX-XXXXX. This field will only be updated if
   914  	// explicitly set.
   915  	KoreanBusinessRegistrationNumber string `json:"koreanBusinessRegistrationNumber,omitempty"`
   916  	// PhoneNumber: The phone number of the business in E.164
   917  	// (https://en.wikipedia.org/wiki/E.164) format. This can only be updated if a
   918  	// verified phone number is not already set. To replace a verified phone number
   919  	// use the `Accounts.requestphoneverification` and
   920  	// `Accounts.verifyphonenumber`.
   921  	PhoneNumber string `json:"phoneNumber,omitempty"`
   922  	// PhoneVerificationStatus: Verification status of the phone number of the
   923  	// business. This status is read only and can be updated only by successful
   924  	// phone verification. Acceptable values are: - "verified" - "unverified"
   925  	PhoneVerificationStatus string `json:"phoneVerificationStatus,omitempty"`
   926  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
   927  	// include in API requests. By default, fields with empty or default values are
   928  	// omitted from API requests. See
   929  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   930  	// details.
   931  	ForceSendFields []string `json:"-"`
   932  	// NullFields is a list of field names (e.g. "Address") to include in API
   933  	// requests with the JSON null value. By default, fields with empty values are
   934  	// omitted from API requests. See
   935  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   936  	NullFields []string `json:"-"`
   937  }
   938  
   939  func (s *AccountBusinessInformation) MarshalJSON() ([]byte, error) {
   940  	type NoMethod AccountBusinessInformation
   941  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   942  }
   943  
   944  // AccountConversionSettings: Settings for conversion tracking.
   945  type AccountConversionSettings struct {
   946  	// FreeListingsAutoTaggingEnabled: When enabled, free listing URLs have a
   947  	// parameter to enable conversion tracking for products owned by the current
   948  	// merchant account. See auto-tagging
   949  	// (https://support.google.com/merchants/answer/11127659).
   950  	FreeListingsAutoTaggingEnabled bool `json:"freeListingsAutoTaggingEnabled,omitempty"`
   951  	// ForceSendFields is a list of field names (e.g.
   952  	// "FreeListingsAutoTaggingEnabled") to unconditionally include in API
   953  	// requests. By default, fields with empty or default values are omitted from
   954  	// API requests. See
   955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   956  	// details.
   957  	ForceSendFields []string `json:"-"`
   958  	// NullFields is a list of field names (e.g. "FreeListingsAutoTaggingEnabled")
   959  	// to include in API requests with the JSON null value. By default, fields with
   960  	// empty values are omitted from API requests. See
   961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   962  	NullFields []string `json:"-"`
   963  }
   964  
   965  func (s *AccountConversionSettings) MarshalJSON() ([]byte, error) {
   966  	type NoMethod AccountConversionSettings
   967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   968  }
   969  
   970  // AccountCredentials: Credentials allowing Google to call a partner's API on
   971  // behalf of a merchant.
   972  type AccountCredentials struct {
   973  	// AccessToken: An OAuth access token.
   974  	AccessToken string `json:"accessToken,omitempty"`
   975  	// ExpiresIn: The amount of time, in seconds, after which the access token is
   976  	// no longer valid.
   977  	ExpiresIn int64 `json:"expiresIn,omitempty,string"`
   978  	// Purpose: Indicates to Google how Google should use these OAuth tokens.
   979  	//
   980  	// Possible values:
   981  	//   "ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED" - Unknown purpose.
   982  	//   "SHOPIFY_ORDER_MANAGEMENT" - The credentials allow Google to manage
   983  	// Shopify orders on behalf of the merchant (deprecated).
   984  	//   "SHOPIFY_INTEGRATION" - The credentials allow Google to manage Shopify
   985  	// integration on behalf of the merchant.
   986  	Purpose string `json:"purpose,omitempty"`
   987  
   988  	// ServerResponse contains the HTTP response code and headers from the server.
   989  	googleapi.ServerResponse `json:"-"`
   990  	// ForceSendFields is a list of field names (e.g. "AccessToken") to
   991  	// unconditionally include in API requests. By default, fields with empty or
   992  	// default values are omitted from API requests. See
   993  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   994  	// details.
   995  	ForceSendFields []string `json:"-"`
   996  	// NullFields is a list of field names (e.g. "AccessToken") to include in API
   997  	// requests with the JSON null value. By default, fields with empty values are
   998  	// omitted from API requests. See
   999  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1000  	NullFields []string `json:"-"`
  1001  }
  1002  
  1003  func (s *AccountCredentials) MarshalJSON() ([]byte, error) {
  1004  	type NoMethod AccountCredentials
  1005  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1006  }
  1007  
  1008  type AccountCustomerService struct {
  1009  	// Email: Customer service email.
  1010  	Email string `json:"email,omitempty"`
  1011  	// PhoneNumber: Customer service phone number.
  1012  	PhoneNumber string `json:"phoneNumber,omitempty"`
  1013  	// Url: Customer service URL.
  1014  	Url string `json:"url,omitempty"`
  1015  	// ForceSendFields is a list of field names (e.g. "Email") to unconditionally
  1016  	// include in API requests. By default, fields with empty or default values are
  1017  	// omitted from API requests. See
  1018  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1019  	// details.
  1020  	ForceSendFields []string `json:"-"`
  1021  	// NullFields is a list of field names (e.g. "Email") to include in API
  1022  	// requests with the JSON null value. By default, fields with empty values are
  1023  	// omitted from API requests. See
  1024  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1025  	NullFields []string `json:"-"`
  1026  }
  1027  
  1028  func (s *AccountCustomerService) MarshalJSON() ([]byte, error) {
  1029  	type NoMethod AccountCustomerService
  1030  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1031  }
  1032  
  1033  type AccountGoogleMyBusinessLink struct {
  1034  	// GmbAccountId: The ID of the Business Profile. If this is provided, then
  1035  	// `gmbEmail` is ignored. The value of this field should match the `accountId`
  1036  	// used by the Business Profile API.
  1037  	GmbAccountId string `json:"gmbAccountId,omitempty"`
  1038  	// GmbEmail: The Business Profile email address of a specific account within a
  1039  	// Business Profile. A sample account within a Business Profile could be a
  1040  	// business account with set of locations, managed under the Business Profile.
  1041  	GmbEmail string `json:"gmbEmail,omitempty"`
  1042  	// Status: Status of the link between this Merchant Center account and the
  1043  	// Business Profile. Acceptable values are: - "active" - "pending"
  1044  	Status string `json:"status,omitempty"`
  1045  	// ForceSendFields is a list of field names (e.g. "GmbAccountId") to
  1046  	// unconditionally include in API requests. By default, fields with empty or
  1047  	// default values are omitted from API requests. See
  1048  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1049  	// details.
  1050  	ForceSendFields []string `json:"-"`
  1051  	// NullFields is a list of field names (e.g. "GmbAccountId") to include in API
  1052  	// requests with the JSON null value. By default, fields with empty values are
  1053  	// omitted from API requests. See
  1054  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1055  	NullFields []string `json:"-"`
  1056  }
  1057  
  1058  func (s *AccountGoogleMyBusinessLink) MarshalJSON() ([]byte, error) {
  1059  	type NoMethod AccountGoogleMyBusinessLink
  1060  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1061  }
  1062  
  1063  type AccountIdentifier struct {
  1064  	// AggregatorId: The aggregator ID, set for aggregators and subaccounts (in
  1065  	// that case, it represents the aggregator of the subaccount).
  1066  	AggregatorId uint64 `json:"aggregatorId,omitempty,string"`
  1067  	// MerchantId: The merchant account ID, set for individual accounts and
  1068  	// subaccounts.
  1069  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  1070  	// ForceSendFields is a list of field names (e.g. "AggregatorId") to
  1071  	// unconditionally include in API requests. By default, fields with empty or
  1072  	// default values are omitted from API requests. See
  1073  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1074  	// details.
  1075  	ForceSendFields []string `json:"-"`
  1076  	// NullFields is a list of field names (e.g. "AggregatorId") to include in API
  1077  	// requests with the JSON null value. By default, fields with empty values are
  1078  	// omitted from API requests. See
  1079  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1080  	NullFields []string `json:"-"`
  1081  }
  1082  
  1083  func (s *AccountIdentifier) MarshalJSON() ([]byte, error) {
  1084  	type NoMethod AccountIdentifier
  1085  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1086  }
  1087  
  1088  // AccountIdentityType: The account identity type used to specify attributes.
  1089  type AccountIdentityType struct {
  1090  	// SelfIdentified: Optional. Indicates that the business identifies itself with
  1091  	// a given identity type. Setting this field does not automatically mean
  1092  	// eligibility for promotions.
  1093  	SelfIdentified bool `json:"selfIdentified,omitempty"`
  1094  	// ForceSendFields is a list of field names (e.g. "SelfIdentified") to
  1095  	// unconditionally include in API requests. By default, fields with empty or
  1096  	// default values are omitted from API requests. See
  1097  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1098  	// details.
  1099  	ForceSendFields []string `json:"-"`
  1100  	// NullFields is a list of field names (e.g. "SelfIdentified") to include in
  1101  	// API requests with the JSON null value. By default, fields with empty values
  1102  	// are omitted from API requests. See
  1103  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1104  	NullFields []string `json:"-"`
  1105  }
  1106  
  1107  func (s *AccountIdentityType) MarshalJSON() ([]byte, error) {
  1108  	type NoMethod AccountIdentityType
  1109  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1110  }
  1111  
  1112  // AccountImageImprovements: This improvement will attempt to automatically
  1113  // correct submitted images if they don't meet the image requirements
  1114  // (https://support.google.com/merchants/answer/6324350), for example, removing
  1115  // overlays. If successful, the image will be replaced and approved. This
  1116  // improvement is only applied to images of disapproved offers. For more
  1117  // information see: Automatic image improvements
  1118  // (https://support.google.com/merchants/answer/9242973)
  1119  type AccountImageImprovements struct {
  1120  	// AccountImageImprovementsSettings: Determines how the images should be
  1121  	// automatically updated. If this field is not present, then the settings will
  1122  	// be deleted. If there are no settings for subaccount, they are inherited from
  1123  	// aggregator.
  1124  	AccountImageImprovementsSettings *AccountImageImprovementsSettings `json:"accountImageImprovementsSettings,omitempty"`
  1125  	// EffectiveAllowAutomaticImageImprovements: Output only. The effective value
  1126  	// of allow_automatic_image_improvements. If
  1127  	// account_image_improvements_settings is present, then this value is the same.
  1128  	// Otherwise, it represents the inherited value of the parent account.
  1129  	// Read-only.
  1130  	EffectiveAllowAutomaticImageImprovements bool `json:"effectiveAllowAutomaticImageImprovements,omitempty"`
  1131  	// ForceSendFields is a list of field names (e.g.
  1132  	// "AccountImageImprovementsSettings") to unconditionally include in API
  1133  	// requests. By default, fields with empty or default values are omitted from
  1134  	// API requests. See
  1135  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1136  	// details.
  1137  	ForceSendFields []string `json:"-"`
  1138  	// NullFields is a list of field names (e.g.
  1139  	// "AccountImageImprovementsSettings") to include in API requests with the JSON
  1140  	// null value. By default, fields with empty values are omitted from API
  1141  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  1142  	// more details.
  1143  	NullFields []string `json:"-"`
  1144  }
  1145  
  1146  func (s *AccountImageImprovements) MarshalJSON() ([]byte, error) {
  1147  	type NoMethod AccountImageImprovements
  1148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1149  }
  1150  
  1151  // AccountImageImprovementsSettings: Settings for the Automatic Image
  1152  // Improvements.
  1153  type AccountImageImprovementsSettings struct {
  1154  	// AllowAutomaticImageImprovements: Enables automatic image improvements.
  1155  	AllowAutomaticImageImprovements bool `json:"allowAutomaticImageImprovements,omitempty"`
  1156  	// ForceSendFields is a list of field names (e.g.
  1157  	// "AllowAutomaticImageImprovements") to unconditionally include in API
  1158  	// requests. By default, fields with empty or default values are omitted from
  1159  	// API requests. See
  1160  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1161  	// details.
  1162  	ForceSendFields []string `json:"-"`
  1163  	// NullFields is a list of field names (e.g. "AllowAutomaticImageImprovements")
  1164  	// to include in API requests with the JSON null value. By default, fields with
  1165  	// empty values are omitted from API requests. See
  1166  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1167  	NullFields []string `json:"-"`
  1168  }
  1169  
  1170  func (s *AccountImageImprovementsSettings) MarshalJSON() ([]byte, error) {
  1171  	type NoMethod AccountImageImprovementsSettings
  1172  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1173  }
  1174  
  1175  // AccountIssue: An issue affecting specific merchant.
  1176  type AccountIssue struct {
  1177  	// Actions: A list of actionable steps that can be executed to solve the issue.
  1178  	// An example is requesting a re-review or providing arguments when merchant
  1179  	// disagrees with the issue. Actions that are supported in (your) third-party
  1180  	// application can be rendered as buttons and should be available to merchant
  1181  	// when they expand the issue.
  1182  	Actions []*Action `json:"actions,omitempty"`
  1183  	// Impact: Clarifies the severity of the issue. The summarizing message, if
  1184  	// present, should be shown right under the title for each issue. It helps
  1185  	// merchants to quickly understand the impact of the issue. The detailed
  1186  	// breakdown helps the merchant to fully understand the impact of the issue. It
  1187  	// can be rendered as dialog that opens when the merchant mouse over the
  1188  	// summarized impact statement. Issues with different severity can be styled
  1189  	// differently. They may use a different color or icon to signal the difference
  1190  	// between `ERROR`, `WARNING` and `INFO`.
  1191  	Impact *AccountIssueImpact `json:"impact,omitempty"`
  1192  	// PrerenderedContent: Details of the issue as a pre-rendered HTML. HTML
  1193  	// elements contain CSS classes that can be used to customize the style of the
  1194  	// content. Always sanitize the HTML before embedding it directly to your
  1195  	// application. The sanitizer needs to allow basic HTML tags, such as: `div`,
  1196  	// `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use
  1197  	// DOMPurify (https://www.npmjs.com/package/dompurify). CSS classes: *
  1198  	// `issue-detail` - top level container for the detail of the issue *
  1199  	// `callout-banners` - section of the `issue-detail` with callout banners *
  1200  	// `callout-banner` - single callout banner, inside `callout-banners` *
  1201  	// `callout-banner-info` - callout with important information (default) *
  1202  	// `callout-banner-warning` - callout with a warning * `callout-banner-error` -
  1203  	// callout informing about an error (most severe) * `issue-content` - section
  1204  	// of the `issue-detail`, contains multiple `content-element` *
  1205  	// `content-element` - content element such as a list, link or paragraph,
  1206  	// inside `issue-content` * `root-causes` - unordered list with items
  1207  	// describing root causes of the issue, inside `issue-content` *
  1208  	// `root-causes-intro` - intro text before the `root-causes` list, inside
  1209  	// `issue-content` * `segment` - section of the text, `span` inside paragraph *
  1210  	// `segment-attribute` - section of the text that represents a product
  1211  	// attribute, for example 'image\_link' * `segment-literal` - section of the
  1212  	// text that contains a special value, for example '0-1000 kg' * `segment-bold`
  1213  	// - section of the text that should be rendered as bold * `segment-italic` -
  1214  	// section of the text that should be rendered as italic * `tooltip` - used on
  1215  	// paragraphs that should be rendered with a tooltip. A section of the text in
  1216  	// such a paragraph will have a class `tooltip-text` and is intended to be
  1217  	// shown in a mouse over dialog. If the style is not used, the `tooltip-text`
  1218  	// section would be shown on a new line, after the main part of the text. *
  1219  	// `tooltip-text` - marks a section of the text within a `tooltip`, that is
  1220  	// intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a
  1221  	// section of the text within a `tooltip`, that can be replaced with a tooltip
  1222  	// icon, for example '?' or 'i'. By default, this section contains a `br` tag,
  1223  	// that is separating the main text and the tooltip text when the style is not
  1224  	// used. * `tooltip-style-question` - the tooltip shows helpful information,
  1225  	// can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds
  1226  	// additional information fitting to the context, can use the 'i' as an icon. *
  1227  	// `content-moderation` - marks the paragraph that explains how the issue was
  1228  	// identified. * `new-element` - Present for new elements added to the
  1229  	// pre-rendered content in the future. To make sure that a new content element
  1230  	// does not break your style, you can hide everything with this class.
  1231  	PrerenderedContent string `json:"prerenderedContent,omitempty"`
  1232  	// Title: Title of the issue.
  1233  	Title string `json:"title,omitempty"`
  1234  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  1235  	// include in API requests. By default, fields with empty or default values are
  1236  	// omitted from API requests. See
  1237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1238  	// details.
  1239  	ForceSendFields []string `json:"-"`
  1240  	// NullFields is a list of field names (e.g. "Actions") to include in API
  1241  	// requests with the JSON null value. By default, fields with empty values are
  1242  	// omitted from API requests. See
  1243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1244  	NullFields []string `json:"-"`
  1245  }
  1246  
  1247  func (s *AccountIssue) MarshalJSON() ([]byte, error) {
  1248  	type NoMethod AccountIssue
  1249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1250  }
  1251  
  1252  // AccountIssueImpact: Overall impact of the issue.
  1253  type AccountIssueImpact struct {
  1254  	// Breakdowns: Detailed impact breakdown. Explains the types of restriction the
  1255  	// issue has in different shopping destinations and territory. If present, it
  1256  	// should be rendered to the merchant. Can be shown as a mouse over dropdown or
  1257  	// a dialog. Each breakdown item represents a group of regions with the same
  1258  	// impact details.
  1259  	Breakdowns []*Breakdown `json:"breakdowns,omitempty"`
  1260  	// Message: Optional. Message summarizing the overall impact of the issue. If
  1261  	// present, it should be rendered to the merchant. For example: "Disapproves
  1262  	// 90k offers in 25 countries"
  1263  	Message string `json:"message,omitempty"`
  1264  	// Severity: The severity of the issue.
  1265  	//
  1266  	// Possible values:
  1267  	//   "SEVERITY_UNSPECIFIED" - Default value. Will never be provided by the API.
  1268  	//   "ERROR" - Causes either an account suspension or an item disapproval.
  1269  	// Errors should be resolved as soon as possible to ensure items are eligible
  1270  	// to appear in results again.
  1271  	//   "WARNING" - Warnings can negatively impact the performance of ads and can
  1272  	// lead to item or account suspensions in the future unless the issue is
  1273  	// resolved.
  1274  	//   "INFO" - Infos are suggested optimizations to increase data quality.
  1275  	// Resolving these issues is recommended, but not required.
  1276  	Severity string `json:"severity,omitempty"`
  1277  	// ForceSendFields is a list of field names (e.g. "Breakdowns") to
  1278  	// unconditionally include in API requests. By default, fields with empty or
  1279  	// default values are omitted from API requests. See
  1280  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1281  	// details.
  1282  	ForceSendFields []string `json:"-"`
  1283  	// NullFields is a list of field names (e.g. "Breakdowns") to include in API
  1284  	// requests with the JSON null value. By default, fields with empty values are
  1285  	// omitted from API requests. See
  1286  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1287  	NullFields []string `json:"-"`
  1288  }
  1289  
  1290  func (s *AccountIssueImpact) MarshalJSON() ([]byte, error) {
  1291  	type NoMethod AccountIssueImpact
  1292  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1293  }
  1294  
  1295  // AccountItemUpdates: Turning on item updates
  1296  // (https://support.google.com/merchants/answer/3246284) allows Google to
  1297  // automatically update items for you. When item updates are on, Google uses
  1298  // the structured data markup on the website and advanced data extractors to
  1299  // update the price and availability of the items. When the item updates are
  1300  // off, items with mismatched data aren't shown.
  1301  type AccountItemUpdates struct {
  1302  	// AccountItemUpdatesSettings: Determines which attributes of the items should
  1303  	// be automatically updated. If this field is not present, then the settings
  1304  	// will be deleted. If there are no settings for subaccount, they are inherited
  1305  	// from aggregator.
  1306  	AccountItemUpdatesSettings *AccountItemUpdatesSettings `json:"accountItemUpdatesSettings,omitempty"`
  1307  	// EffectiveAllowAvailabilityUpdates: Output only. The effective value of
  1308  	// allow_availability_updates. If account_item_updates_settings is present,
  1309  	// then this value is the same. Otherwise, it represents the inherited value of
  1310  	// the parent account. Read-only.
  1311  	EffectiveAllowAvailabilityUpdates bool `json:"effectiveAllowAvailabilityUpdates,omitempty"`
  1312  	// EffectiveAllowConditionUpdates: Output only. The effective value of
  1313  	// allow_condition_updates. If account_item_updates_settings is present, then
  1314  	// this value is the same. Otherwise, it represents the inherited value of the
  1315  	// parent account. Read-only.
  1316  	EffectiveAllowConditionUpdates bool `json:"effectiveAllowConditionUpdates,omitempty"`
  1317  	// EffectiveAllowPriceUpdates: Output only. The effective value of
  1318  	// allow_price_updates. If account_item_updates_settings is present, then this
  1319  	// value is the same. Otherwise, it represents the inherited value of the
  1320  	// parent account. Read-only.
  1321  	EffectiveAllowPriceUpdates bool `json:"effectiveAllowPriceUpdates,omitempty"`
  1322  	// EffectiveAllowStrictAvailabilityUpdates: Output only. The effective value of
  1323  	// allow_strict_availability_updates. If account_item_updates_settings is
  1324  	// present, then this value is the same. Otherwise, it represents the inherited
  1325  	// value of the parent account. Read-only.
  1326  	EffectiveAllowStrictAvailabilityUpdates bool `json:"effectiveAllowStrictAvailabilityUpdates,omitempty"`
  1327  	// ForceSendFields is a list of field names (e.g. "AccountItemUpdatesSettings")
  1328  	// to unconditionally include in API requests. By default, fields with empty or
  1329  	// default values are omitted from API requests. See
  1330  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1331  	// details.
  1332  	ForceSendFields []string `json:"-"`
  1333  	// NullFields is a list of field names (e.g. "AccountItemUpdatesSettings") to
  1334  	// include in API requests with the JSON null value. By default, fields with
  1335  	// empty values are omitted from API requests. See
  1336  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1337  	NullFields []string `json:"-"`
  1338  }
  1339  
  1340  func (s *AccountItemUpdates) MarshalJSON() ([]byte, error) {
  1341  	type NoMethod AccountItemUpdates
  1342  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1343  }
  1344  
  1345  // AccountItemUpdatesSettings: Settings for the Automatic Item Updates.
  1346  type AccountItemUpdatesSettings struct {
  1347  	// AllowAvailabilityUpdates: If availability updates are enabled, any previous
  1348  	// availability values get overwritten if Google finds an out-of-stock
  1349  	// annotation on the offer's page. If additionally `allow_availability_updates`
  1350  	// field is set to true, values get overwritten if Google finds an in-stock
  1351  	// annotation on the offer’s page.
  1352  	AllowAvailabilityUpdates bool `json:"allowAvailabilityUpdates,omitempty"`
  1353  	// AllowConditionUpdates: If condition updates are enabled, Google always
  1354  	// updates item condition with the condition detected from the details of your
  1355  	// product.
  1356  	AllowConditionUpdates bool `json:"allowConditionUpdates,omitempty"`
  1357  	// AllowPriceUpdates: If price updates are enabled, Google always updates the
  1358  	// active price with the crawled information.
  1359  	AllowPriceUpdates bool `json:"allowPriceUpdates,omitempty"`
  1360  	// AllowStrictAvailabilityUpdates: If allow_availability_updates is enabled,
  1361  	// items are automatically updated in all your Shopping target countries. By
  1362  	// default, availability updates will only be applied to items that are 'out of
  1363  	// stock' on your website but 'in stock' on Shopping. Set this to true to also
  1364  	// update items that are 'in stock' on your website, but 'out of stock' on
  1365  	// Google Shopping. In order for this field to have an effect, you must also
  1366  	// allow availability updates.
  1367  	AllowStrictAvailabilityUpdates bool `json:"allowStrictAvailabilityUpdates,omitempty"`
  1368  	// ForceSendFields is a list of field names (e.g. "AllowAvailabilityUpdates")
  1369  	// to unconditionally include in API requests. By default, fields with empty or
  1370  	// default values are omitted from API requests. See
  1371  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1372  	// details.
  1373  	ForceSendFields []string `json:"-"`
  1374  	// NullFields is a list of field names (e.g. "AllowAvailabilityUpdates") to
  1375  	// include in API requests with the JSON null value. By default, fields with
  1376  	// empty values are omitted from API requests. See
  1377  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1378  	NullFields []string `json:"-"`
  1379  }
  1380  
  1381  func (s *AccountItemUpdatesSettings) MarshalJSON() ([]byte, error) {
  1382  	type NoMethod AccountItemUpdatesSettings
  1383  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1384  }
  1385  
  1386  // AccountLabel: Label assigned by CSS domain or CSS group to one of its
  1387  // sub-accounts.
  1388  type AccountLabel struct {
  1389  	// AccountId: Immutable. The ID of account this label belongs to.
  1390  	AccountId int64 `json:"accountId,omitempty,string"`
  1391  	// Description: The description of this label.
  1392  	Description string `json:"description,omitempty"`
  1393  	// LabelId: Output only. The ID of the label.
  1394  	LabelId int64 `json:"labelId,omitempty,string"`
  1395  	// LabelType: Output only. The type of this label.
  1396  	//
  1397  	// Possible values:
  1398  	//   "LABEL_TYPE_UNSPECIFIED" - Unknown label type.
  1399  	//   "MANUAL" - Indicates that the label was created manually.
  1400  	//   "AUTOMATIC" - Indicates that the label was created automatically by CSS
  1401  	// Center.
  1402  	LabelType string `json:"labelType,omitempty"`
  1403  	// Name: The display name of this label.
  1404  	Name string `json:"name,omitempty"`
  1405  
  1406  	// ServerResponse contains the HTTP response code and headers from the server.
  1407  	googleapi.ServerResponse `json:"-"`
  1408  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  1409  	// unconditionally include in API requests. By default, fields with empty or
  1410  	// default values are omitted from API requests. See
  1411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1412  	// details.
  1413  	ForceSendFields []string `json:"-"`
  1414  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  1415  	// requests with the JSON null value. By default, fields with empty values are
  1416  	// omitted from API requests. See
  1417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1418  	NullFields []string `json:"-"`
  1419  }
  1420  
  1421  func (s *AccountLabel) MarshalJSON() ([]byte, error) {
  1422  	type NoMethod AccountLabel
  1423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1424  }
  1425  
  1426  // AccountReturnCarrier:  The return carrier information. This service is
  1427  // designed for merchants enrolled in the Buy on Google program.
  1428  type AccountReturnCarrier struct {
  1429  	// CarrierAccountId: Output only. Immutable. The Google-provided unique carrier
  1430  	// ID, used to update the resource.
  1431  	CarrierAccountId int64 `json:"carrierAccountId,omitempty,string"`
  1432  	// CarrierAccountName: Name of the carrier account.
  1433  	CarrierAccountName string `json:"carrierAccountName,omitempty"`
  1434  	// CarrierAccountNumber: Number of the carrier account.
  1435  	CarrierAccountNumber string `json:"carrierAccountNumber,omitempty"`
  1436  	// CarrierCode: The carrier code enum. Accepts the values FEDEX or UPS.
  1437  	//
  1438  	// Possible values:
  1439  	//   "CARRIER_CODE_UNSPECIFIED" - Carrier not specified
  1440  	//   "FEDEX" - FedEx carrier
  1441  	//   "UPS" - UPS carrier
  1442  	CarrierCode string `json:"carrierCode,omitempty"`
  1443  
  1444  	// ServerResponse contains the HTTP response code and headers from the server.
  1445  	googleapi.ServerResponse `json:"-"`
  1446  	// ForceSendFields is a list of field names (e.g. "CarrierAccountId") to
  1447  	// unconditionally include in API requests. By default, fields with empty or
  1448  	// default values are omitted from API requests. See
  1449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1450  	// details.
  1451  	ForceSendFields []string `json:"-"`
  1452  	// NullFields is a list of field names (e.g. "CarrierAccountId") to include in
  1453  	// API requests with the JSON null value. By default, fields with empty values
  1454  	// are omitted from API requests. See
  1455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1456  	NullFields []string `json:"-"`
  1457  }
  1458  
  1459  func (s *AccountReturnCarrier) MarshalJSON() ([]byte, error) {
  1460  	type NoMethod AccountReturnCarrier
  1461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1462  }
  1463  
  1464  // AccountShippingImprovements: Not available for MCAs accounts
  1465  // (https://support.google.com/merchants/answer/188487). By turning on
  1466  // automatic shipping improvements
  1467  // (https://support.google.com/merchants/answer/10027038), you are allowing
  1468  // Google to improve the accuracy of your delivery times shown to shoppers
  1469  // using Google. More accurate delivery times, especially when faster,
  1470  // typically lead to better conversion rates. Google will improve your
  1471  // estimated delivery times based on various factors: * Delivery address of an
  1472  // order * Current handling time and shipping time settings * Estimated
  1473  // weekdays or business days * Parcel tracking data
  1474  type AccountShippingImprovements struct {
  1475  	// AllowShippingImprovements: Enables automatic shipping improvements.
  1476  	AllowShippingImprovements bool `json:"allowShippingImprovements,omitempty"`
  1477  	// ForceSendFields is a list of field names (e.g. "AllowShippingImprovements")
  1478  	// to unconditionally include in API requests. By default, fields with empty or
  1479  	// default values are omitted from API requests. See
  1480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1481  	// details.
  1482  	ForceSendFields []string `json:"-"`
  1483  	// NullFields is a list of field names (e.g. "AllowShippingImprovements") to
  1484  	// include in API requests with the JSON null value. By default, fields with
  1485  	// empty values are omitted from API requests. See
  1486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1487  	NullFields []string `json:"-"`
  1488  }
  1489  
  1490  func (s *AccountShippingImprovements) MarshalJSON() ([]byte, error) {
  1491  	type NoMethod AccountShippingImprovements
  1492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1493  }
  1494  
  1495  // AccountStatus: The status of an account, that is, information about its
  1496  // products, which is computed offline and not returned immediately at
  1497  // insertion time.
  1498  type AccountStatus struct {
  1499  	// AccountId: The ID of the account for which the status is reported.
  1500  	AccountId string `json:"accountId,omitempty"`
  1501  	// AccountLevelIssues: A list of account level issues.
  1502  	AccountLevelIssues []*AccountStatusAccountLevelIssue `json:"accountLevelIssues,omitempty"`
  1503  	// AccountManagement: How the account is managed. Acceptable values are: -
  1504  	// "manual" - "automatic"
  1505  	AccountManagement string `json:"accountManagement,omitempty"`
  1506  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1507  	// "content#accountStatus"
  1508  	Kind string `json:"kind,omitempty"`
  1509  	// Products: List of product-related data by channel, destination, and country.
  1510  	// Data in this field may be delayed by up to 30 minutes.
  1511  	Products []*AccountStatusProducts `json:"products,omitempty"`
  1512  	// WebsiteClaimed: Whether the account's website is claimed or not.
  1513  	WebsiteClaimed bool `json:"websiteClaimed,omitempty"`
  1514  
  1515  	// ServerResponse contains the HTTP response code and headers from the server.
  1516  	googleapi.ServerResponse `json:"-"`
  1517  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  1518  	// unconditionally include in API requests. By default, fields with empty or
  1519  	// default values are omitted from API requests. See
  1520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1521  	// details.
  1522  	ForceSendFields []string `json:"-"`
  1523  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  1524  	// requests with the JSON null value. By default, fields with empty values are
  1525  	// omitted from API requests. See
  1526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1527  	NullFields []string `json:"-"`
  1528  }
  1529  
  1530  func (s *AccountStatus) MarshalJSON() ([]byte, error) {
  1531  	type NoMethod AccountStatus
  1532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1533  }
  1534  
  1535  type AccountStatusAccountLevelIssue struct {
  1536  	// Country: Country for which this issue is reported.
  1537  	Country string `json:"country,omitempty"`
  1538  	// Destination: The destination the issue applies to. If this field is empty
  1539  	// then the issue applies to all available destinations.
  1540  	Destination string `json:"destination,omitempty"`
  1541  	// Detail: Additional details about the issue.
  1542  	Detail string `json:"detail,omitempty"`
  1543  	// Documentation: The URL of a web page to help resolving this issue.
  1544  	Documentation string `json:"documentation,omitempty"`
  1545  	// Id: Issue identifier.
  1546  	Id string `json:"id,omitempty"`
  1547  	// Severity: Severity of the issue. Acceptable values are: - "critical" -
  1548  	// "error" - "suggestion"
  1549  	Severity string `json:"severity,omitempty"`
  1550  	// Title: Short description of the issue.
  1551  	Title string `json:"title,omitempty"`
  1552  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  1553  	// include in API requests. By default, fields with empty or default values are
  1554  	// omitted from API requests. See
  1555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1556  	// details.
  1557  	ForceSendFields []string `json:"-"`
  1558  	// NullFields is a list of field names (e.g. "Country") to include in API
  1559  	// requests with the JSON null value. By default, fields with empty values are
  1560  	// omitted from API requests. See
  1561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1562  	NullFields []string `json:"-"`
  1563  }
  1564  
  1565  func (s *AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error) {
  1566  	type NoMethod AccountStatusAccountLevelIssue
  1567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1568  }
  1569  
  1570  type AccountStatusItemLevelIssue struct {
  1571  	// AttributeName: The attribute's name, if the issue is caused by a single
  1572  	// attribute.
  1573  	AttributeName string `json:"attributeName,omitempty"`
  1574  	// Code: The error code of the issue.
  1575  	Code string `json:"code,omitempty"`
  1576  	// Description: A short issue description in English.
  1577  	Description string `json:"description,omitempty"`
  1578  	// Detail: A detailed issue description in English.
  1579  	Detail string `json:"detail,omitempty"`
  1580  	// Documentation: The URL of a web page to help with resolving this issue.
  1581  	Documentation string `json:"documentation,omitempty"`
  1582  	// NumItems: Number of items with this issue.
  1583  	NumItems int64 `json:"numItems,omitempty,string"`
  1584  	// Resolution: Whether the issue can be resolved by the merchant.
  1585  	Resolution string `json:"resolution,omitempty"`
  1586  	// Servability: How this issue affects serving of the offer.
  1587  	Servability string `json:"servability,omitempty"`
  1588  	// ForceSendFields is a list of field names (e.g. "AttributeName") to
  1589  	// unconditionally include in API requests. By default, fields with empty or
  1590  	// default values are omitted from API requests. See
  1591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1592  	// details.
  1593  	ForceSendFields []string `json:"-"`
  1594  	// NullFields is a list of field names (e.g. "AttributeName") to include in API
  1595  	// requests with the JSON null value. By default, fields with empty values are
  1596  	// omitted from API requests. See
  1597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1598  	NullFields []string `json:"-"`
  1599  }
  1600  
  1601  func (s *AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error) {
  1602  	type NoMethod AccountStatusItemLevelIssue
  1603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1604  }
  1605  
  1606  type AccountStatusProducts struct {
  1607  	// Channel: The channel the data applies to. Acceptable values are: - "local"
  1608  	// - "online"
  1609  	Channel string `json:"channel,omitempty"`
  1610  	// Country: The country the data applies to.
  1611  	Country string `json:"country,omitempty"`
  1612  	// Destination: The destination the data applies to.
  1613  	Destination string `json:"destination,omitempty"`
  1614  	// ItemLevelIssues: List of item-level issues.
  1615  	ItemLevelIssues []*AccountStatusItemLevelIssue `json:"itemLevelIssues,omitempty"`
  1616  	// Statistics: Aggregated product statistics.
  1617  	Statistics *AccountStatusStatistics `json:"statistics,omitempty"`
  1618  	// ForceSendFields is a list of field names (e.g. "Channel") to unconditionally
  1619  	// include in API requests. By default, fields with empty or default values are
  1620  	// omitted from API requests. See
  1621  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1622  	// details.
  1623  	ForceSendFields []string `json:"-"`
  1624  	// NullFields is a list of field names (e.g. "Channel") to include in API
  1625  	// requests with the JSON null value. By default, fields with empty values are
  1626  	// omitted from API requests. See
  1627  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1628  	NullFields []string `json:"-"`
  1629  }
  1630  
  1631  func (s *AccountStatusProducts) MarshalJSON() ([]byte, error) {
  1632  	type NoMethod AccountStatusProducts
  1633  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1634  }
  1635  
  1636  type AccountStatusStatistics struct {
  1637  	// Active: Number of active offers.
  1638  	Active int64 `json:"active,omitempty,string"`
  1639  	// Disapproved: Number of disapproved offers.
  1640  	Disapproved int64 `json:"disapproved,omitempty,string"`
  1641  	// Expiring: Number of expiring offers.
  1642  	Expiring int64 `json:"expiring,omitempty,string"`
  1643  	// Pending: Number of pending offers.
  1644  	Pending int64 `json:"pending,omitempty,string"`
  1645  	// ForceSendFields is a list of field names (e.g. "Active") to unconditionally
  1646  	// include in API requests. By default, fields with empty or default values are
  1647  	// omitted from API requests. See
  1648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1649  	// details.
  1650  	ForceSendFields []string `json:"-"`
  1651  	// NullFields is a list of field names (e.g. "Active") to include in API
  1652  	// requests with the JSON null value. By default, fields with empty values are
  1653  	// omitted from API requests. See
  1654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1655  	NullFields []string `json:"-"`
  1656  }
  1657  
  1658  func (s *AccountStatusStatistics) MarshalJSON() ([]byte, error) {
  1659  	type NoMethod AccountStatusStatistics
  1660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1661  }
  1662  
  1663  // AccountTax: The tax settings of a merchant account. All methods require the
  1664  // admin role.
  1665  type AccountTax struct {
  1666  	// AccountId: Required. The ID of the account to which these account tax
  1667  	// settings belong.
  1668  	AccountId uint64 `json:"accountId,omitempty,string"`
  1669  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1670  	// "content#accountTax".
  1671  	Kind string `json:"kind,omitempty"`
  1672  	// Rules: Tax rules. Updating the tax rules will enable "US" taxes (not
  1673  	// reversible). Defining no rules is equivalent to not charging tax at all.
  1674  	Rules []*AccountTaxTaxRule `json:"rules,omitempty"`
  1675  
  1676  	// ServerResponse contains the HTTP response code and headers from the server.
  1677  	googleapi.ServerResponse `json:"-"`
  1678  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  1679  	// unconditionally include in API requests. By default, fields with empty or
  1680  	// default values are omitted from API requests. See
  1681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1682  	// details.
  1683  	ForceSendFields []string `json:"-"`
  1684  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  1685  	// requests with the JSON null value. By default, fields with empty values are
  1686  	// omitted from API requests. See
  1687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1688  	NullFields []string `json:"-"`
  1689  }
  1690  
  1691  func (s *AccountTax) MarshalJSON() ([]byte, error) {
  1692  	type NoMethod AccountTax
  1693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1694  }
  1695  
  1696  // AccountTaxTaxRule: Tax calculation rule to apply in a state or province (US
  1697  // only).
  1698  type AccountTaxTaxRule struct {
  1699  	// Country: Country code in which tax is applicable.
  1700  	Country string `json:"country,omitempty"`
  1701  	// LocationId: Required. State (or province) is which the tax is applicable,
  1702  	// described by its location ID (also called criteria ID).
  1703  	LocationId uint64 `json:"locationId,omitempty,string"`
  1704  	// RatePercent: Explicit tax rate in percent, represented as a floating point
  1705  	// number without the percentage character. Must not be negative.
  1706  	RatePercent string `json:"ratePercent,omitempty"`
  1707  	// ShippingTaxed: If true, shipping charges are also taxed.
  1708  	ShippingTaxed bool `json:"shippingTaxed,omitempty"`
  1709  	// UseGlobalRate: Whether the tax rate is taken from a global tax table or
  1710  	// specified explicitly.
  1711  	UseGlobalRate bool `json:"useGlobalRate,omitempty"`
  1712  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  1713  	// include in API requests. By default, fields with empty or default values are
  1714  	// omitted from API requests. See
  1715  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1716  	// details.
  1717  	ForceSendFields []string `json:"-"`
  1718  	// NullFields is a list of field names (e.g. "Country") to include in API
  1719  	// requests with the JSON null value. By default, fields with empty values are
  1720  	// omitted from API requests. See
  1721  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1722  	NullFields []string `json:"-"`
  1723  }
  1724  
  1725  func (s *AccountTaxTaxRule) MarshalJSON() ([]byte, error) {
  1726  	type NoMethod AccountTaxTaxRule
  1727  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1728  }
  1729  
  1730  type AccountUser struct {
  1731  	// Admin: Whether user is an admin.
  1732  	Admin bool `json:"admin,omitempty"`
  1733  	// EmailAddress: User's email address.
  1734  	EmailAddress string `json:"emailAddress,omitempty"`
  1735  	// OrderManager: Whether user is an order manager.
  1736  	OrderManager bool `json:"orderManager,omitempty"`
  1737  	// PaymentsAnalyst: Whether user can access payment statements.
  1738  	PaymentsAnalyst bool `json:"paymentsAnalyst,omitempty"`
  1739  	// PaymentsManager: Whether user can manage payment settings.
  1740  	PaymentsManager bool `json:"paymentsManager,omitempty"`
  1741  	// ReportingManager: Whether user is a reporting manager. This role is
  1742  	// equivalent to the Performance and insights role in Merchant Center.
  1743  	ReportingManager bool `json:"reportingManager,omitempty"`
  1744  	// ForceSendFields is a list of field names (e.g. "Admin") to unconditionally
  1745  	// include in API requests. By default, fields with empty or default values are
  1746  	// omitted from API requests. See
  1747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1748  	// details.
  1749  	ForceSendFields []string `json:"-"`
  1750  	// NullFields is a list of field names (e.g. "Admin") to include in API
  1751  	// requests with the JSON null value. By default, fields with empty values are
  1752  	// omitted from API requests. See
  1753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1754  	NullFields []string `json:"-"`
  1755  }
  1756  
  1757  func (s *AccountUser) MarshalJSON() ([]byte, error) {
  1758  	type NoMethod AccountUser
  1759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1760  }
  1761  
  1762  type AccountYouTubeChannelLink struct {
  1763  	// ChannelId: Channel ID.
  1764  	ChannelId string `json:"channelId,omitempty"`
  1765  	// Status: Status of the link between this Merchant Center account and the
  1766  	// YouTube channel. Upon retrieval, it represents the actual status of the link
  1767  	// and can be either `active` if it was approved in YT Creator Studio or
  1768  	// `pending` if it's pending approval. Upon insertion, it represents the
  1769  	// *intended* status of the link. Re-uploading a link with status `active` when
  1770  	// it's still pending or with status `pending` when it's already active will
  1771  	// have no effect: the status will remain unchanged. Re-uploading a link with
  1772  	// deprecated status `inactive` is equivalent to not submitting the link at all
  1773  	// and will delete the link if it was active or cancel the link request if it
  1774  	// was pending.
  1775  	Status string `json:"status,omitempty"`
  1776  	// ForceSendFields is a list of field names (e.g. "ChannelId") to
  1777  	// unconditionally include in API requests. By default, fields with empty or
  1778  	// default values are omitted from API requests. See
  1779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1780  	// details.
  1781  	ForceSendFields []string `json:"-"`
  1782  	// NullFields is a list of field names (e.g. "ChannelId") to include in API
  1783  	// requests with the JSON null value. By default, fields with empty values are
  1784  	// omitted from API requests. See
  1785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1786  	NullFields []string `json:"-"`
  1787  }
  1788  
  1789  func (s *AccountYouTubeChannelLink) MarshalJSON() ([]byte, error) {
  1790  	type NoMethod AccountYouTubeChannelLink
  1791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1792  }
  1793  
  1794  type AccountsAuthInfoResponse struct {
  1795  	// AccountIdentifiers: The account identifiers corresponding to the
  1796  	// authenticated user. - For an individual account: only the merchant ID is
  1797  	// defined - For an aggregator: only the aggregator ID is defined - For a
  1798  	// subaccount of an MCA: both the merchant ID and the aggregator ID are
  1799  	// defined.
  1800  	AccountIdentifiers []*AccountIdentifier `json:"accountIdentifiers,omitempty"`
  1801  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1802  	// "content#accountsAuthInfoResponse".
  1803  	Kind string `json:"kind,omitempty"`
  1804  
  1805  	// ServerResponse contains the HTTP response code and headers from the server.
  1806  	googleapi.ServerResponse `json:"-"`
  1807  	// ForceSendFields is a list of field names (e.g. "AccountIdentifiers") to
  1808  	// unconditionally include in API requests. By default, fields with empty or
  1809  	// default values are omitted from API requests. See
  1810  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1811  	// details.
  1812  	ForceSendFields []string `json:"-"`
  1813  	// NullFields is a list of field names (e.g. "AccountIdentifiers") to include
  1814  	// in API requests with the JSON null value. By default, fields with empty
  1815  	// values are omitted from API requests. See
  1816  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1817  	NullFields []string `json:"-"`
  1818  }
  1819  
  1820  func (s *AccountsAuthInfoResponse) MarshalJSON() ([]byte, error) {
  1821  	type NoMethod AccountsAuthInfoResponse
  1822  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1823  }
  1824  
  1825  type AccountsClaimWebsiteResponse struct {
  1826  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1827  	// "content#accountsClaimWebsiteResponse".
  1828  	Kind string `json:"kind,omitempty"`
  1829  
  1830  	// ServerResponse contains the HTTP response code and headers from the server.
  1831  	googleapi.ServerResponse `json:"-"`
  1832  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  1833  	// include in API requests. By default, fields with empty or default values are
  1834  	// omitted from API requests. See
  1835  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1836  	// details.
  1837  	ForceSendFields []string `json:"-"`
  1838  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  1839  	// with the JSON null value. By default, fields with empty values are omitted
  1840  	// from API requests. See
  1841  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1842  	NullFields []string `json:"-"`
  1843  }
  1844  
  1845  func (s *AccountsClaimWebsiteResponse) MarshalJSON() ([]byte, error) {
  1846  	type NoMethod AccountsClaimWebsiteResponse
  1847  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1848  }
  1849  
  1850  type AccountsCustomBatchRequest struct {
  1851  	// Entries: The request entries to be processed in the batch.
  1852  	Entries []*AccountsCustomBatchRequestEntry `json:"entries,omitempty"`
  1853  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  1854  	// include in API requests. By default, fields with empty or default values are
  1855  	// omitted from API requests. See
  1856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1857  	// details.
  1858  	ForceSendFields []string `json:"-"`
  1859  	// NullFields is a list of field names (e.g. "Entries") to include in API
  1860  	// requests with the JSON null value. By default, fields with empty values are
  1861  	// omitted from API requests. See
  1862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1863  	NullFields []string `json:"-"`
  1864  }
  1865  
  1866  func (s *AccountsCustomBatchRequest) MarshalJSON() ([]byte, error) {
  1867  	type NoMethod AccountsCustomBatchRequest
  1868  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1869  }
  1870  
  1871  // AccountsCustomBatchRequestEntry: A batch entry encoding a single non-batch
  1872  // accounts request.
  1873  type AccountsCustomBatchRequestEntry struct {
  1874  	// Account: The account to create or update. Only defined if the method is
  1875  	// `insert` or `update`.
  1876  	Account *Account `json:"account,omitempty"`
  1877  	// AccountId: The ID of the targeted account. Only defined if the method is not
  1878  	// `insert`.
  1879  	AccountId uint64 `json:"accountId,omitempty,string"`
  1880  	// BatchId: An entry ID, unique within the batch request.
  1881  	BatchId int64 `json:"batchId,omitempty"`
  1882  	// Force: Whether the account should be deleted if the account has offers. Only
  1883  	// applicable if the method is `delete`.
  1884  	Force bool `json:"force,omitempty"`
  1885  	// LabelIds: Label IDs for the 'updatelabels' request.
  1886  	LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
  1887  	// LinkRequest: Details about the `link` request.
  1888  	LinkRequest *AccountsCustomBatchRequestEntryLinkRequest `json:"linkRequest,omitempty"`
  1889  	// MerchantId: The ID of the managing account.
  1890  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  1891  	// Method: The method of the batch entry. Acceptable values are: -
  1892  	// "claimWebsite" - "delete" - "get" - "insert" - "link" - "update"
  1893  	Method string `json:"method,omitempty"`
  1894  	// Overwrite: Only applicable if the method is `claimwebsite`. Indicates
  1895  	// whether or not to take the claim from another account in case there is a
  1896  	// conflict.
  1897  	Overwrite bool `json:"overwrite,omitempty"`
  1898  	// View: Controls which fields are visible. Only applicable if the method is
  1899  	// 'get'.
  1900  	View string `json:"view,omitempty"`
  1901  	// ForceSendFields is a list of field names (e.g. "Account") to unconditionally
  1902  	// include in API requests. By default, fields with empty or default values are
  1903  	// omitted from API requests. See
  1904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1905  	// details.
  1906  	ForceSendFields []string `json:"-"`
  1907  	// NullFields is a list of field names (e.g. "Account") to include in API
  1908  	// requests with the JSON null value. By default, fields with empty values are
  1909  	// omitted from API requests. See
  1910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1911  	NullFields []string `json:"-"`
  1912  }
  1913  
  1914  func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
  1915  	type NoMethod AccountsCustomBatchRequestEntry
  1916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1917  }
  1918  
  1919  type AccountsCustomBatchRequestEntryLinkRequest struct {
  1920  	// Action: Action to perform for this link. The "request" action is only
  1921  	// available to select merchants. Acceptable values are: - "approve" -
  1922  	// "remove" - "request"
  1923  	Action string `json:"action,omitempty"`
  1924  	// LinkType: Type of the link between the two accounts. Acceptable values are:
  1925  	// - "channelPartner" - "eCommercePlatform" - "paymentServiceProvider" -
  1926  	// "localProductManager"
  1927  	LinkType string `json:"linkType,omitempty"`
  1928  	// LinkedAccountId: The ID of the linked account.
  1929  	LinkedAccountId string `json:"linkedAccountId,omitempty"`
  1930  	// Services: Provided services. Acceptable values are: -
  1931  	// "shoppingAdsProductManagement" - "shoppingActionsProductManagement" -
  1932  	// "shoppingActionsOrderManagement" - "paymentProcessing" -
  1933  	// "localProductManagement"
  1934  	Services []string `json:"services,omitempty"`
  1935  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  1936  	// include in API requests. By default, fields with empty or default values are
  1937  	// omitted from API requests. See
  1938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1939  	// details.
  1940  	ForceSendFields []string `json:"-"`
  1941  	// NullFields is a list of field names (e.g. "Action") to include in API
  1942  	// requests with the JSON null value. By default, fields with empty values are
  1943  	// omitted from API requests. See
  1944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1945  	NullFields []string `json:"-"`
  1946  }
  1947  
  1948  func (s *AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON() ([]byte, error) {
  1949  	type NoMethod AccountsCustomBatchRequestEntryLinkRequest
  1950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1951  }
  1952  
  1953  type AccountsCustomBatchResponse struct {
  1954  	// Entries: The result of the execution of the batch requests.
  1955  	Entries []*AccountsCustomBatchResponseEntry `json:"entries,omitempty"`
  1956  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1957  	// "content#accountsCustomBatchResponse".
  1958  	Kind string `json:"kind,omitempty"`
  1959  
  1960  	// ServerResponse contains the HTTP response code and headers from the server.
  1961  	googleapi.ServerResponse `json:"-"`
  1962  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  1963  	// include in API requests. By default, fields with empty or default values are
  1964  	// omitted from API requests. See
  1965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1966  	// details.
  1967  	ForceSendFields []string `json:"-"`
  1968  	// NullFields is a list of field names (e.g. "Entries") to include in API
  1969  	// requests with the JSON null value. By default, fields with empty values are
  1970  	// omitted from API requests. See
  1971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1972  	NullFields []string `json:"-"`
  1973  }
  1974  
  1975  func (s *AccountsCustomBatchResponse) MarshalJSON() ([]byte, error) {
  1976  	type NoMethod AccountsCustomBatchResponse
  1977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1978  }
  1979  
  1980  // AccountsCustomBatchResponseEntry: A batch entry encoding a single non-batch
  1981  // accounts response.
  1982  type AccountsCustomBatchResponseEntry struct {
  1983  	// Account: The retrieved, created, or updated account. Not defined if the
  1984  	// method was `delete`, `claimwebsite` or `link`.
  1985  	Account *Account `json:"account,omitempty"`
  1986  	// BatchId: The ID of the request entry this entry responds to.
  1987  	BatchId int64 `json:"batchId,omitempty"`
  1988  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
  1989  	// errors fail the whole request.
  1990  	Errors *Errors `json:"errors,omitempty"`
  1991  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  1992  	// "content#accountsCustomBatchResponseEntry"
  1993  	Kind string `json:"kind,omitempty"`
  1994  	// ForceSendFields is a list of field names (e.g. "Account") to unconditionally
  1995  	// include in API requests. By default, fields with empty or default values are
  1996  	// omitted from API requests. See
  1997  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1998  	// details.
  1999  	ForceSendFields []string `json:"-"`
  2000  	// NullFields is a list of field names (e.g. "Account") to include in API
  2001  	// requests with the JSON null value. By default, fields with empty values are
  2002  	// omitted from API requests. See
  2003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2004  	NullFields []string `json:"-"`
  2005  }
  2006  
  2007  func (s *AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
  2008  	type NoMethod AccountsCustomBatchResponseEntry
  2009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2010  }
  2011  
  2012  type AccountsLinkRequest struct {
  2013  	// Action: Action to perform for this link. The "request" action is only
  2014  	// available to select merchants. Acceptable values are: - "approve" -
  2015  	// "remove" - "request"
  2016  	Action string `json:"action,omitempty"`
  2017  	// ECommercePlatformLinkInfo: Additional information required for
  2018  	// `eCommercePlatform` link type.
  2019  	ECommercePlatformLinkInfo *ECommercePlatformLinkInfo `json:"eCommercePlatformLinkInfo,omitempty"`
  2020  	// LinkType: Type of the link between the two accounts. Acceptable values are:
  2021  	// - "channelPartner" - "eCommercePlatform" - "paymentServiceProvider"
  2022  	LinkType string `json:"linkType,omitempty"`
  2023  	// LinkedAccountId: The ID of the linked account.
  2024  	LinkedAccountId string `json:"linkedAccountId,omitempty"`
  2025  	// PaymentServiceProviderLinkInfo: Additional information required for
  2026  	// `paymentServiceProvider` link type.
  2027  	PaymentServiceProviderLinkInfo *PaymentServiceProviderLinkInfo `json:"paymentServiceProviderLinkInfo,omitempty"`
  2028  	// Services:  Acceptable values are: - "shoppingAdsProductManagement" -
  2029  	// "shoppingActionsProductManagement" - "shoppingActionsOrderManagement" -
  2030  	// "paymentProcessing"
  2031  	Services []string `json:"services,omitempty"`
  2032  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  2033  	// include in API requests. By default, fields with empty or default values are
  2034  	// omitted from API requests. See
  2035  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2036  	// details.
  2037  	ForceSendFields []string `json:"-"`
  2038  	// NullFields is a list of field names (e.g. "Action") to include in API
  2039  	// requests with the JSON null value. By default, fields with empty values are
  2040  	// omitted from API requests. See
  2041  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2042  	NullFields []string `json:"-"`
  2043  }
  2044  
  2045  func (s *AccountsLinkRequest) MarshalJSON() ([]byte, error) {
  2046  	type NoMethod AccountsLinkRequest
  2047  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2048  }
  2049  
  2050  type AccountsLinkResponse struct {
  2051  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2052  	// "content#accountsLinkResponse".
  2053  	Kind string `json:"kind,omitempty"`
  2054  
  2055  	// ServerResponse contains the HTTP response code and headers from the server.
  2056  	googleapi.ServerResponse `json:"-"`
  2057  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  2058  	// include in API requests. By default, fields with empty or default values are
  2059  	// omitted from API requests. See
  2060  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2061  	// details.
  2062  	ForceSendFields []string `json:"-"`
  2063  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  2064  	// with the JSON null value. By default, fields with empty values are omitted
  2065  	// from API requests. See
  2066  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2067  	NullFields []string `json:"-"`
  2068  }
  2069  
  2070  func (s *AccountsLinkResponse) MarshalJSON() ([]byte, error) {
  2071  	type NoMethod AccountsLinkResponse
  2072  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2073  }
  2074  
  2075  type AccountsListLinksResponse struct {
  2076  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2077  	// "content#accountsListLinksResponse".
  2078  	Kind string `json:"kind,omitempty"`
  2079  	// Links: The list of available links.
  2080  	Links []*LinkedAccount `json:"links,omitempty"`
  2081  	// NextPageToken: The token for the retrieval of the next page of links.
  2082  	NextPageToken string `json:"nextPageToken,omitempty"`
  2083  
  2084  	// ServerResponse contains the HTTP response code and headers from the server.
  2085  	googleapi.ServerResponse `json:"-"`
  2086  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  2087  	// include in API requests. By default, fields with empty or default values are
  2088  	// omitted from API requests. See
  2089  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2090  	// details.
  2091  	ForceSendFields []string `json:"-"`
  2092  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  2093  	// with the JSON null value. By default, fields with empty values are omitted
  2094  	// from API requests. See
  2095  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2096  	NullFields []string `json:"-"`
  2097  }
  2098  
  2099  func (s *AccountsListLinksResponse) MarshalJSON() ([]byte, error) {
  2100  	type NoMethod AccountsListLinksResponse
  2101  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2102  }
  2103  
  2104  type AccountsListResponse struct {
  2105  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2106  	// "content#accountsListResponse".
  2107  	Kind string `json:"kind,omitempty"`
  2108  	// NextPageToken: The token for the retrieval of the next page of accounts.
  2109  	NextPageToken string     `json:"nextPageToken,omitempty"`
  2110  	Resources     []*Account `json:"resources,omitempty"`
  2111  
  2112  	// ServerResponse contains the HTTP response code and headers from the server.
  2113  	googleapi.ServerResponse `json:"-"`
  2114  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  2115  	// include in API requests. By default, fields with empty or default values are
  2116  	// omitted from API requests. See
  2117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2118  	// details.
  2119  	ForceSendFields []string `json:"-"`
  2120  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  2121  	// with the JSON null value. By default, fields with empty values are omitted
  2122  	// from API requests. See
  2123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2124  	NullFields []string `json:"-"`
  2125  }
  2126  
  2127  func (s *AccountsListResponse) MarshalJSON() ([]byte, error) {
  2128  	type NoMethod AccountsListResponse
  2129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2130  }
  2131  
  2132  type AccountsUpdateLabelsRequest struct {
  2133  	// LabelIds: The IDs of labels that should be assigned to the account.
  2134  	LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
  2135  	// ForceSendFields is a list of field names (e.g. "LabelIds") to
  2136  	// unconditionally include in API requests. By default, fields with empty or
  2137  	// default values are omitted from API requests. See
  2138  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2139  	// details.
  2140  	ForceSendFields []string `json:"-"`
  2141  	// NullFields is a list of field names (e.g. "LabelIds") to include in API
  2142  	// requests with the JSON null value. By default, fields with empty values are
  2143  	// omitted from API requests. See
  2144  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2145  	NullFields []string `json:"-"`
  2146  }
  2147  
  2148  func (s *AccountsUpdateLabelsRequest) MarshalJSON() ([]byte, error) {
  2149  	type NoMethod AccountsUpdateLabelsRequest
  2150  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2151  }
  2152  
  2153  type AccountsUpdateLabelsResponse struct {
  2154  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2155  	// "content#accountsUpdateLabelsResponse".
  2156  	Kind string `json:"kind,omitempty"`
  2157  
  2158  	// ServerResponse contains the HTTP response code and headers from the server.
  2159  	googleapi.ServerResponse `json:"-"`
  2160  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  2161  	// include in API requests. By default, fields with empty or default values are
  2162  	// omitted from API requests. See
  2163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2164  	// details.
  2165  	ForceSendFields []string `json:"-"`
  2166  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  2167  	// with the JSON null value. By default, fields with empty values are omitted
  2168  	// from API requests. See
  2169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2170  	NullFields []string `json:"-"`
  2171  }
  2172  
  2173  func (s *AccountsUpdateLabelsResponse) MarshalJSON() ([]byte, error) {
  2174  	type NoMethod AccountsUpdateLabelsResponse
  2175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2176  }
  2177  
  2178  type AccountstatusesCustomBatchRequest struct {
  2179  	// Entries: The request entries to be processed in the batch.
  2180  	Entries []*AccountstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
  2181  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2182  	// include in API requests. By default, fields with empty or default values are
  2183  	// omitted from API requests. See
  2184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2185  	// details.
  2186  	ForceSendFields []string `json:"-"`
  2187  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2188  	// requests with the JSON null value. By default, fields with empty values are
  2189  	// omitted from API requests. See
  2190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2191  	NullFields []string `json:"-"`
  2192  }
  2193  
  2194  func (s *AccountstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
  2195  	type NoMethod AccountstatusesCustomBatchRequest
  2196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2197  }
  2198  
  2199  // AccountstatusesCustomBatchRequestEntry: A batch entry encoding a single
  2200  // non-batch accountstatuses request.
  2201  type AccountstatusesCustomBatchRequestEntry struct {
  2202  	// AccountId: The ID of the (sub-)account whose status to get.
  2203  	AccountId uint64 `json:"accountId,omitempty,string"`
  2204  	// BatchId: An entry ID, unique within the batch request.
  2205  	BatchId int64 `json:"batchId,omitempty"`
  2206  	// Destinations: If set, only issues for the specified destinations are
  2207  	// returned, otherwise only issues for the Shopping destination.
  2208  	Destinations []string `json:"destinations,omitempty"`
  2209  	// MerchantId: The ID of the managing account.
  2210  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  2211  	// Method: The method of the batch entry. Acceptable values are: - "get"
  2212  	Method string `json:"method,omitempty"`
  2213  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  2214  	// unconditionally include in API requests. By default, fields with empty or
  2215  	// default values are omitted from API requests. See
  2216  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2217  	// details.
  2218  	ForceSendFields []string `json:"-"`
  2219  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  2220  	// requests with the JSON null value. By default, fields with empty values are
  2221  	// omitted from API requests. See
  2222  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2223  	NullFields []string `json:"-"`
  2224  }
  2225  
  2226  func (s *AccountstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
  2227  	type NoMethod AccountstatusesCustomBatchRequestEntry
  2228  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2229  }
  2230  
  2231  type AccountstatusesCustomBatchResponse struct {
  2232  	// Entries: The result of the execution of the batch requests.
  2233  	Entries []*AccountstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
  2234  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2235  	// "content#accountstatusesCustomBatchResponse".
  2236  	Kind string `json:"kind,omitempty"`
  2237  
  2238  	// ServerResponse contains the HTTP response code and headers from the server.
  2239  	googleapi.ServerResponse `json:"-"`
  2240  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2241  	// include in API requests. By default, fields with empty or default values are
  2242  	// omitted from API requests. See
  2243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2244  	// details.
  2245  	ForceSendFields []string `json:"-"`
  2246  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2247  	// requests with the JSON null value. By default, fields with empty values are
  2248  	// omitted from API requests. See
  2249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2250  	NullFields []string `json:"-"`
  2251  }
  2252  
  2253  func (s *AccountstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
  2254  	type NoMethod AccountstatusesCustomBatchResponse
  2255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2256  }
  2257  
  2258  // AccountstatusesCustomBatchResponseEntry: A batch entry encoding a single
  2259  // non-batch accountstatuses response.
  2260  type AccountstatusesCustomBatchResponseEntry struct {
  2261  	// AccountStatus: The requested account status. Defined if and only if the
  2262  	// request was successful.
  2263  	AccountStatus *AccountStatus `json:"accountStatus,omitempty"`
  2264  	// BatchId: The ID of the request entry this entry responds to.
  2265  	BatchId int64 `json:"batchId,omitempty"`
  2266  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
  2267  	// errors fail the whole request.
  2268  	Errors *Errors `json:"errors,omitempty"`
  2269  	// ForceSendFields is a list of field names (e.g. "AccountStatus") to
  2270  	// unconditionally include in API requests. By default, fields with empty or
  2271  	// default values are omitted from API requests. See
  2272  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2273  	// details.
  2274  	ForceSendFields []string `json:"-"`
  2275  	// NullFields is a list of field names (e.g. "AccountStatus") to include in API
  2276  	// requests with the JSON null value. By default, fields with empty values are
  2277  	// omitted from API requests. See
  2278  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2279  	NullFields []string `json:"-"`
  2280  }
  2281  
  2282  func (s *AccountstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
  2283  	type NoMethod AccountstatusesCustomBatchResponseEntry
  2284  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2285  }
  2286  
  2287  type AccountstatusesListResponse struct {
  2288  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2289  	// "content#accountstatusesListResponse".
  2290  	Kind string `json:"kind,omitempty"`
  2291  	// NextPageToken: The token for the retrieval of the next page of account
  2292  	// statuses.
  2293  	NextPageToken string           `json:"nextPageToken,omitempty"`
  2294  	Resources     []*AccountStatus `json:"resources,omitempty"`
  2295  
  2296  	// ServerResponse contains the HTTP response code and headers from the server.
  2297  	googleapi.ServerResponse `json:"-"`
  2298  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  2299  	// include in API requests. By default, fields with empty or default values are
  2300  	// omitted from API requests. See
  2301  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2302  	// details.
  2303  	ForceSendFields []string `json:"-"`
  2304  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  2305  	// with the JSON null value. By default, fields with empty values are omitted
  2306  	// from API requests. See
  2307  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2308  	NullFields []string `json:"-"`
  2309  }
  2310  
  2311  func (s *AccountstatusesListResponse) MarshalJSON() ([]byte, error) {
  2312  	type NoMethod AccountstatusesListResponse
  2313  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2314  }
  2315  
  2316  type AccounttaxCustomBatchRequest struct {
  2317  	// Entries: The request entries to be processed in the batch.
  2318  	Entries []*AccounttaxCustomBatchRequestEntry `json:"entries,omitempty"`
  2319  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2320  	// include in API requests. By default, fields with empty or default values are
  2321  	// omitted from API requests. See
  2322  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2323  	// details.
  2324  	ForceSendFields []string `json:"-"`
  2325  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2326  	// requests with the JSON null value. By default, fields with empty values are
  2327  	// omitted from API requests. See
  2328  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2329  	NullFields []string `json:"-"`
  2330  }
  2331  
  2332  func (s *AccounttaxCustomBatchRequest) MarshalJSON() ([]byte, error) {
  2333  	type NoMethod AccounttaxCustomBatchRequest
  2334  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2335  }
  2336  
  2337  // AccounttaxCustomBatchRequestEntry: A batch entry encoding a single non-batch
  2338  // accounttax request.
  2339  type AccounttaxCustomBatchRequestEntry struct {
  2340  	// AccountId: The ID of the account for which to get/update account tax
  2341  	// settings.
  2342  	AccountId uint64 `json:"accountId,omitempty,string"`
  2343  	// AccountTax: The account tax settings to update. Only defined if the method
  2344  	// is `update`.
  2345  	AccountTax *AccountTax `json:"accountTax,omitempty"`
  2346  	// BatchId: An entry ID, unique within the batch request.
  2347  	BatchId int64 `json:"batchId,omitempty"`
  2348  	// MerchantId: The ID of the managing account.
  2349  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  2350  	// Method: The method of the batch entry. Acceptable values are: - "get" -
  2351  	// "update"
  2352  	Method string `json:"method,omitempty"`
  2353  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  2354  	// unconditionally include in API requests. By default, fields with empty or
  2355  	// default values are omitted from API requests. See
  2356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2357  	// details.
  2358  	ForceSendFields []string `json:"-"`
  2359  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  2360  	// requests with the JSON null value. By default, fields with empty values are
  2361  	// omitted from API requests. See
  2362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2363  	NullFields []string `json:"-"`
  2364  }
  2365  
  2366  func (s *AccounttaxCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
  2367  	type NoMethod AccounttaxCustomBatchRequestEntry
  2368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2369  }
  2370  
  2371  type AccounttaxCustomBatchResponse struct {
  2372  	// Entries: The result of the execution of the batch requests.
  2373  	Entries []*AccounttaxCustomBatchResponseEntry `json:"entries,omitempty"`
  2374  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2375  	// "content#accounttaxCustomBatchResponse".
  2376  	Kind string `json:"kind,omitempty"`
  2377  
  2378  	// ServerResponse contains the HTTP response code and headers from the server.
  2379  	googleapi.ServerResponse `json:"-"`
  2380  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  2381  	// include in API requests. By default, fields with empty or default values are
  2382  	// omitted from API requests. See
  2383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2384  	// details.
  2385  	ForceSendFields []string `json:"-"`
  2386  	// NullFields is a list of field names (e.g. "Entries") to include in API
  2387  	// requests with the JSON null value. By default, fields with empty values are
  2388  	// omitted from API requests. See
  2389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2390  	NullFields []string `json:"-"`
  2391  }
  2392  
  2393  func (s *AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error) {
  2394  	type NoMethod AccounttaxCustomBatchResponse
  2395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2396  }
  2397  
  2398  // AccounttaxCustomBatchResponseEntry: A batch entry encoding a single
  2399  // non-batch accounttax response.
  2400  type AccounttaxCustomBatchResponseEntry struct {
  2401  	// AccountTax: The retrieved or updated account tax settings.
  2402  	AccountTax *AccountTax `json:"accountTax,omitempty"`
  2403  	// BatchId: The ID of the request entry this entry responds to.
  2404  	BatchId int64 `json:"batchId,omitempty"`
  2405  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
  2406  	// errors fail the whole request.
  2407  	Errors *Errors `json:"errors,omitempty"`
  2408  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2409  	// "content#accounttaxCustomBatchResponseEntry"
  2410  	Kind string `json:"kind,omitempty"`
  2411  	// ForceSendFields is a list of field names (e.g. "AccountTax") to
  2412  	// unconditionally include in API requests. By default, fields with empty or
  2413  	// default values are omitted from API requests. See
  2414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2415  	// details.
  2416  	ForceSendFields []string `json:"-"`
  2417  	// NullFields is a list of field names (e.g. "AccountTax") to include in API
  2418  	// requests with the JSON null value. By default, fields with empty values are
  2419  	// omitted from API requests. See
  2420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2421  	NullFields []string `json:"-"`
  2422  }
  2423  
  2424  func (s *AccounttaxCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
  2425  	type NoMethod AccounttaxCustomBatchResponseEntry
  2426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2427  }
  2428  
  2429  type AccounttaxListResponse struct {
  2430  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  2431  	// "content#accounttaxListResponse".
  2432  	Kind string `json:"kind,omitempty"`
  2433  	// NextPageToken: The token for the retrieval of the next page of account tax
  2434  	// settings.
  2435  	NextPageToken string        `json:"nextPageToken,omitempty"`
  2436  	Resources     []*AccountTax `json:"resources,omitempty"`
  2437  
  2438  	// ServerResponse contains the HTTP response code and headers from the server.
  2439  	googleapi.ServerResponse `json:"-"`
  2440  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  2441  	// include in API requests. By default, fields with empty or default values are
  2442  	// omitted from API requests. See
  2443  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2444  	// details.
  2445  	ForceSendFields []string `json:"-"`
  2446  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  2447  	// with the JSON null value. By default, fields with empty values are omitted
  2448  	// from API requests. See
  2449  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2450  	NullFields []string `json:"-"`
  2451  }
  2452  
  2453  func (s *AccounttaxListResponse) MarshalJSON() ([]byte, error) {
  2454  	type NoMethod AccounttaxListResponse
  2455  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2456  }
  2457  
  2458  // Action: An actionable step that can be executed to solve the issue.
  2459  type Action struct {
  2460  	// BuiltinSimpleAction: Action implemented and performed in (your) third-party
  2461  	// application. The application should point the merchant to the place, where
  2462  	// they can access the corresponding functionality or provide instructions, if
  2463  	// the specific functionality is not available.
  2464  	BuiltinSimpleAction *BuiltInSimpleAction `json:"builtinSimpleAction,omitempty"`
  2465  	// BuiltinUserInputAction: Action implemented and performed in (your)
  2466  	// third-party application. The application needs to show an additional content
  2467  	// and input form to the merchant as specified for given action. They can
  2468  	// trigger the action only when they provided all required inputs.
  2469  	BuiltinUserInputAction *BuiltInUserInputAction `json:"builtinUserInputAction,omitempty"`
  2470  	// ButtonLabel: Label of the action button.
  2471  	ButtonLabel string `json:"buttonLabel,omitempty"`
  2472  	// ExternalAction: Action that is implemented and performed outside of (your)
  2473  	// third-party application. The application needs to redirect the merchant to
  2474  	// the external location where they can perform the action.
  2475  	ExternalAction *ExternalAction `json:"externalAction,omitempty"`
  2476  	// IsAvailable: Controlling whether the button is active or disabled. The value
  2477  	// is 'false' when the action was already requested or is not available. If the
  2478  	// action is not available then a reason will be present. If (your) third-party
  2479  	// application shows a disabled button for action that is not available, then
  2480  	// it should also show reasons.
  2481  	IsAvailable bool `json:"isAvailable,omitempty"`
  2482  	// Reasons: List of reasons why the action is not available. The list of
  2483  	// reasons is empty if the action is available. If there is only one reason, it
  2484  	// can be displayed next to the disabled button. If there are more reasons, all
  2485  	// of them should be displayed, for example in a pop-up dialog.
  2486  	Reasons []*ActionReason `json:"reasons,omitempty"`
  2487  	// ForceSendFields is a list of field names (e.g. "BuiltinSimpleAction") to
  2488  	// unconditionally include in API requests. By default, fields with empty or
  2489  	// default values are omitted from API requests. See
  2490  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2491  	// details.
  2492  	ForceSendFields []string `json:"-"`
  2493  	// NullFields is a list of field names (e.g. "BuiltinSimpleAction") to include
  2494  	// in API requests with the JSON null value. By default, fields with empty
  2495  	// values are omitted from API requests. See
  2496  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2497  	NullFields []string `json:"-"`
  2498  }
  2499  
  2500  func (s *Action) MarshalJSON() ([]byte, error) {
  2501  	type NoMethod Action
  2502  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2503  }
  2504  
  2505  // ActionFlow: Flow that can be selected for an action. When merchant selects a
  2506  // flow, application should open a dialog with more information and input form.
  2507  type ActionFlow struct {
  2508  	// DialogButtonLabel: Label for the button to trigger the action from the
  2509  	// action dialog. For example: "Request review"
  2510  	DialogButtonLabel string `json:"dialogButtonLabel,omitempty"`
  2511  	// DialogCallout: Important message to be highlighted in the request dialog.
  2512  	// For example: "You can only request a review for disagreeing with this issue
  2513  	// once. If it's not approved, you'll need to fix the issue and wait a few days
  2514  	// before you can request another review."
  2515  	DialogCallout *Callout `json:"dialogCallout,omitempty"`
  2516  	// DialogMessage: Message displayed in the request dialog. For example: "Make
  2517  	// sure you've fixed all your country-specific issues. If not, you may have to
  2518  	// wait 7 days to request another review". There may be an more information to
  2519  	// be shown in a tooltip.
  2520  	DialogMessage *TextWithTooltip `json:"dialogMessage,omitempty"`
  2521  	// DialogTitle: Title of the request dialog. For example: "Before you request a
  2522  	// review"
  2523  	DialogTitle string `json:"dialogTitle,omitempty"`
  2524  	// Id: Not for display but need to be sent back for the selected action flow.
  2525  	Id string `json:"id,omitempty"`
  2526  	// Inputs: A list of input fields.
  2527  	Inputs []*InputField `json:"inputs,omitempty"`
  2528  	// Label: Text value describing the intent for the action flow. It can be used
  2529  	// as an input label if merchant needs to pick one of multiple flows. For
  2530  	// example: "I disagree with the issue"
  2531  	Label string `json:"label,omitempty"`
  2532  	// ForceSendFields is a list of field names (e.g. "DialogButtonLabel") to
  2533  	// unconditionally include in API requests. By default, fields with empty or
  2534  	// default values are omitted from API requests. See
  2535  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2536  	// details.
  2537  	ForceSendFields []string `json:"-"`
  2538  	// NullFields is a list of field names (e.g. "DialogButtonLabel") to include in
  2539  	// API requests with the JSON null value. By default, fields with empty values
  2540  	// are omitted from API requests. See
  2541  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2542  	NullFields []string `json:"-"`
  2543  }
  2544  
  2545  func (s *ActionFlow) MarshalJSON() ([]byte, error) {
  2546  	type NoMethod ActionFlow
  2547  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2548  }
  2549  
  2550  // ActionInput: Input provided by the merchant.
  2551  type ActionInput struct {
  2552  	// ActionFlowId: Required. Id of the selected action flow.
  2553  	ActionFlowId string `json:"actionFlowId,omitempty"`
  2554  	// InputValues: Required. Values for input fields.
  2555  	InputValues []*InputValue `json:"inputValues,omitempty"`
  2556  	// ForceSendFields is a list of field names (e.g. "ActionFlowId") to
  2557  	// unconditionally include in API requests. By default, fields with empty or
  2558  	// default values are omitted from API requests. See
  2559  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2560  	// details.
  2561  	ForceSendFields []string `json:"-"`
  2562  	// NullFields is a list of field names (e.g. "ActionFlowId") to include in API
  2563  	// requests with the JSON null value. By default, fields with empty values are
  2564  	// omitted from API requests. See
  2565  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2566  	NullFields []string `json:"-"`
  2567  }
  2568  
  2569  func (s *ActionInput) MarshalJSON() ([]byte, error) {
  2570  	type NoMethod ActionInput
  2571  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2572  }
  2573  
  2574  // ActionReason: A single reason why the action is not available.
  2575  type ActionReason struct {
  2576  	// Action: Optional. An action that needs to be performed to solve the problem
  2577  	// represented by this reason. This action will always be available. Should be
  2578  	// rendered as a link or button next to the summarizing message. For example,
  2579  	// the review may be available only once merchant configure all required
  2580  	// attributes. In such a situation this action can be a link to the form, where
  2581  	// they can fill the missing attribute to unblock the main action.
  2582  	Action *Action `json:"action,omitempty"`
  2583  	// Detail: Detailed explanation of the reason. Should be displayed as a hint if
  2584  	// present.
  2585  	Detail string `json:"detail,omitempty"`
  2586  	// Message: Messages summarizing the reason, why the action is not available.
  2587  	// For example: "Review requested on Jan 03. Review requests can take a few
  2588  	// days to complete."
  2589  	Message string `json:"message,omitempty"`
  2590  	// ForceSendFields is a list of field names (e.g. "Action") to unconditionally
  2591  	// include in API requests. By default, fields with empty or default values are
  2592  	// omitted from API requests. See
  2593  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2594  	// details.
  2595  	ForceSendFields []string `json:"-"`
  2596  	// NullFields is a list of field names (e.g. "Action") to include in API
  2597  	// requests with the JSON null value. By default, fields with empty values are
  2598  	// omitted from API requests. See
  2599  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2600  	NullFields []string `json:"-"`
  2601  }
  2602  
  2603  func (s *ActionReason) MarshalJSON() ([]byte, error) {
  2604  	type NoMethod ActionReason
  2605  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2606  }
  2607  
  2608  // ActivateBuyOnGoogleProgramRequest: Request message for the ActivateProgram
  2609  // method.
  2610  type ActivateBuyOnGoogleProgramRequest struct {
  2611  }
  2612  
  2613  type Address struct {
  2614  	// AdministrativeArea: Required. Top-level administrative subdivision of the
  2615  	// country. For example, a state like California ("CA") or a province like
  2616  	// Quebec ("QC").
  2617  	AdministrativeArea string `json:"administrativeArea,omitempty"`
  2618  	// City: Required. City, town or commune. May also include dependent localities
  2619  	// or sublocalities (for example, neighborhoods or suburbs).
  2620  	City string `json:"city,omitempty"`
  2621  	// Country: Required. CLDR country code
  2622  	// (https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml) (for
  2623  	// example, "US").
  2624  	Country string `json:"country,omitempty"`
  2625  	// PostalCode: Required. Postal code or ZIP (for example, "94043").
  2626  	PostalCode string `json:"postalCode,omitempty"`
  2627  	// StreetAddress: Street-level part of the address. Use `\n` to add a second
  2628  	// line.
  2629  	StreetAddress string `json:"streetAddress,omitempty"`
  2630  	// ForceSendFields is a list of field names (e.g. "AdministrativeArea") to
  2631  	// unconditionally include in API requests. By default, fields with empty or
  2632  	// default values are omitted from API requests. See
  2633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2634  	// details.
  2635  	ForceSendFields []string `json:"-"`
  2636  	// NullFields is a list of field names (e.g. "AdministrativeArea") to include
  2637  	// in API requests with the JSON null value. By default, fields with empty
  2638  	// values are omitted from API requests. See
  2639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2640  	NullFields []string `json:"-"`
  2641  }
  2642  
  2643  func (s *Address) MarshalJSON() ([]byte, error) {
  2644  	type NoMethod Address
  2645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2646  }
  2647  
  2648  // AlternateDisputeResolution: The Alternate Dispute Resolution (ADR) that may
  2649  // be available to merchants in some regions. If present, the link should be
  2650  // shown on the same page as the list of issues.
  2651  type AlternateDisputeResolution struct {
  2652  	// Label: The label for the alternate dispute resolution link.
  2653  	Label string `json:"label,omitempty"`
  2654  	// Uri: The URL pointing to a page, where merchant can request alternative
  2655  	// dispute resolution with an external body
  2656  	// (https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501).
  2657  	Uri string `json:"uri,omitempty"`
  2658  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  2659  	// include in API requests. By default, fields with empty or default values are
  2660  	// omitted from API requests. See
  2661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2662  	// details.
  2663  	ForceSendFields []string `json:"-"`
  2664  	// NullFields is a list of field names (e.g. "Label") to include in API
  2665  	// requests with the JSON null value. By default, fields with empty values are
  2666  	// omitted from API requests. See
  2667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2668  	NullFields []string `json:"-"`
  2669  }
  2670  
  2671  func (s *AlternateDisputeResolution) MarshalJSON() ([]byte, error) {
  2672  	type NoMethod AlternateDisputeResolution
  2673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2674  }
  2675  
  2676  type Amount struct {
  2677  	// PriceAmount: [required] The pre-tax or post-tax price depending on the
  2678  	// location of the order.
  2679  	PriceAmount *Price `json:"priceAmount,omitempty"`
  2680  	// TaxAmount: [required] Tax value.
  2681  	TaxAmount *Price `json:"taxAmount,omitempty"`
  2682  	// ForceSendFields is a list of field names (e.g. "PriceAmount") to
  2683  	// unconditionally include in API requests. By default, fields with empty or
  2684  	// default values are omitted from API requests. See
  2685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2686  	// details.
  2687  	ForceSendFields []string `json:"-"`
  2688  	// NullFields is a list of field names (e.g. "PriceAmount") to include in API
  2689  	// requests with the JSON null value. By default, fields with empty values are
  2690  	// omitted from API requests. See
  2691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2692  	NullFields []string `json:"-"`
  2693  }
  2694  
  2695  func (s *Amount) MarshalJSON() ([]byte, error) {
  2696  	type NoMethod Amount
  2697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2698  }
  2699  
  2700  // AttributionSettings: Represents attribution settings for conversion sources
  2701  // receiving pre-attribution data.
  2702  type AttributionSettings struct {
  2703  	// AttributionLookbackWindowInDays: Required. Lookback windows (in days) used
  2704  	// for attribution in this source. Supported values are 7, 30, 40.
  2705  	AttributionLookbackWindowInDays int64 `json:"attributionLookbackWindowInDays,omitempty"`
  2706  	// AttributionModel: Required. Attribution model.
  2707  	//
  2708  	// Possible values:
  2709  	//   "ATTRIBUTION_MODEL_UNSPECIFIED"
  2710  	//   "CROSS_CHANNEL_LAST_CLICK" - Cross-channel Last Click model.
  2711  	//   "ADS_PREFERRED_LAST_CLICK" - Ads-preferred Last Click model.
  2712  	//   "CROSS_CHANNEL_DATA_DRIVEN" - Cross-channel Data Driven model.
  2713  	//   "CROSS_CHANNEL_FIRST_CLICK" - Cross-channel First Click model.
  2714  	//   "CROSS_CHANNEL_LINEAR" - Cross-channel Linear model.
  2715  	//   "CROSS_CHANNEL_POSITION_BASED" - Cross-channel Position Based model.
  2716  	//   "CROSS_CHANNEL_TIME_DECAY" - Cross-channel Time Decay model.
  2717  	AttributionModel string `json:"attributionModel,omitempty"`
  2718  	// ConversionType: Immutable. Unordered list. List of different conversion
  2719  	// types a conversion event can be classified as. A standard "purchase" type
  2720  	// will be automatically created if this list is empty at creation time.
  2721  	ConversionType []*AttributionSettingsConversionType `json:"conversionType,omitempty"`
  2722  	// ForceSendFields is a list of field names (e.g.
  2723  	// "AttributionLookbackWindowInDays") to unconditionally include in API
  2724  	// requests. By default, fields with empty or default values are omitted from
  2725  	// API requests. See
  2726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2727  	// details.
  2728  	ForceSendFields []string `json:"-"`
  2729  	// NullFields is a list of field names (e.g. "AttributionLookbackWindowInDays")
  2730  	// to include in API requests with the JSON null value. By default, fields with
  2731  	// empty values are omitted from API requests. See
  2732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2733  	NullFields []string `json:"-"`
  2734  }
  2735  
  2736  func (s *AttributionSettings) MarshalJSON() ([]byte, error) {
  2737  	type NoMethod AttributionSettings
  2738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2739  }
  2740  
  2741  // AttributionSettingsConversionType: Message representing a types of
  2742  // conversion events
  2743  type AttributionSettingsConversionType struct {
  2744  	// IncludeInReporting: Output only. Option indicating if the type should be
  2745  	// included in Merchant Center reporting.
  2746  	IncludeInReporting bool `json:"includeInReporting,omitempty"`
  2747  	// Name: Output only. Conversion event name, as it'll be reported by the
  2748  	// client.
  2749  	Name string `json:"name,omitempty"`
  2750  	// ForceSendFields is a list of field names (e.g. "IncludeInReporting") to
  2751  	// unconditionally include in API requests. By default, fields with empty or
  2752  	// default values are omitted from API requests. See
  2753  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2754  	// details.
  2755  	ForceSendFields []string `json:"-"`
  2756  	// NullFields is a list of field names (e.g. "IncludeInReporting") to include
  2757  	// in API requests with the JSON null value. By default, fields with empty
  2758  	// values are omitted from API requests. See
  2759  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2760  	NullFields []string `json:"-"`
  2761  }
  2762  
  2763  func (s *AttributionSettingsConversionType) MarshalJSON() ([]byte, error) {
  2764  	type NoMethod AttributionSettingsConversionType
  2765  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2766  }
  2767  
  2768  // BestSellers: Fields related to the Best sellers reports
  2769  // (https://support.google.com/merchants/answer/9488679).
  2770  type BestSellers struct {
  2771  	// CategoryId: Google product category ID to calculate the ranking for,
  2772  	// represented in Google's product taxonomy
  2773  	// (https://support.google.com/merchants/answer/6324436). If a `WHERE`
  2774  	// condition on `best_sellers.category_id` is not specified in the query,
  2775  	// rankings for all top-level categories are returned.
  2776  	CategoryId int64 `json:"categoryId,omitempty,string"`
  2777  	// CountryCode: Country where the ranking is calculated. A `WHERE` condition on
  2778  	// `best_sellers.country_code` is required in the query.
  2779  	CountryCode string `json:"countryCode,omitempty"`
  2780  	// PreviousRank: Popularity rank in the previous week or month.
  2781  	PreviousRank int64 `json:"previousRank,omitempty,string"`
  2782  	// PreviousRelativeDemand: Estimated demand in relation to the item with the
  2783  	// highest popularity rank in the same category and country in the previous
  2784  	// week or month.
  2785  	//
  2786  	// Possible values:
  2787  	//   "RELATIVE_DEMAND_UNSPECIFIED" - Relative demand is unknown.
  2788  	//   "VERY_LOW" - Demand is 0-5% of the demand of the highest ranked product
  2789  	// clusters or brands.
  2790  	//   "LOW" - Demand is 6-10% of the demand of the highest ranked product
  2791  	// clusters or brands.
  2792  	//   "MEDIUM" - Demand is 11-20% of the demand of the highest ranked product
  2793  	// clusters or brands.
  2794  	//   "HIGH" - Demand is 21-50% of the demand of the highest ranked product
  2795  	// clusters or brands.
  2796  	//   "VERY_HIGH" - Demand is 51-100% of the demand of the highest ranked
  2797  	// product clusters or brands.
  2798  	PreviousRelativeDemand string `json:"previousRelativeDemand,omitempty"`
  2799  	// Rank: Popularity on Shopping ads and free listings, in the selected category
  2800  	// and country, based on the estimated number of units sold.
  2801  	Rank int64 `json:"rank,omitempty,string"`
  2802  	// RelativeDemand: Estimated demand in relation to the item with the highest
  2803  	// popularity rank in the same category and country.
  2804  	//
  2805  	// Possible values:
  2806  	//   "RELATIVE_DEMAND_UNSPECIFIED" - Relative demand is unknown.
  2807  	//   "VERY_LOW" - Demand is 0-5% of the demand of the highest ranked product
  2808  	// clusters or brands.
  2809  	//   "LOW" - Demand is 6-10% of the demand of the highest ranked product
  2810  	// clusters or brands.
  2811  	//   "MEDIUM" - Demand is 11-20% of the demand of the highest ranked product
  2812  	// clusters or brands.
  2813  	//   "HIGH" - Demand is 21-50% of the demand of the highest ranked product
  2814  	// clusters or brands.
  2815  	//   "VERY_HIGH" - Demand is 51-100% of the demand of the highest ranked
  2816  	// product clusters or brands.
  2817  	RelativeDemand string `json:"relativeDemand,omitempty"`
  2818  	// RelativeDemandChange: Change in the estimated demand. Whether it rose, sank
  2819  	// or remained flat.
  2820  	//
  2821  	// Possible values:
  2822  	//   "RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED" - Relative demand change is
  2823  	// unknown.
  2824  	//   "SINKER" - Relative demand is lower than previous time period.
  2825  	//   "FLAT" - Relative demand is equal to previous time period.
  2826  	//   "RISER" - Relative demand is higher than the previous time period.
  2827  	RelativeDemandChange string `json:"relativeDemandChange,omitempty"`
  2828  	// ReportDate: Report date. The value of this field can only be one of the
  2829  	// following: * The first day of the week (Monday) for weekly reports. * The
  2830  	// first day of the month for monthly reports. If a `WHERE` condition on
  2831  	// `best_sellers.report_date` is not specified in the query, the latest
  2832  	// available weekly or monthly report is returned.
  2833  	ReportDate *Date `json:"reportDate,omitempty"`
  2834  	// ReportGranularity: Granularity of the report. The ranking can be done over a
  2835  	// week or a month timeframe. A `WHERE` condition on
  2836  	// `best_sellers.report_granularity` is required in the query.
  2837  	//
  2838  	// Possible values:
  2839  	//   "REPORT_GRANULARITY_UNSPECIFIED" - Report granularity is unknown.
  2840  	//   "WEEKLY" - Ranking is done over a week timeframe.
  2841  	//   "MONTHLY" - Ranking is done over a month timeframe.
  2842  	ReportGranularity string `json:"reportGranularity,omitempty"`
  2843  	// ForceSendFields is a list of field names (e.g. "CategoryId") to
  2844  	// unconditionally include in API requests. By default, fields with empty or
  2845  	// default values are omitted from API requests. See
  2846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2847  	// details.
  2848  	ForceSendFields []string `json:"-"`
  2849  	// NullFields is a list of field names (e.g. "CategoryId") to include in API
  2850  	// requests with the JSON null value. By default, fields with empty values are
  2851  	// omitted from API requests. See
  2852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2853  	NullFields []string `json:"-"`
  2854  }
  2855  
  2856  func (s *BestSellers) MarshalJSON() ([]byte, error) {
  2857  	type NoMethod BestSellers
  2858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2859  }
  2860  
  2861  // Brand: Brand fields. Values are only set for fields requested explicitly in
  2862  // the request's search query.
  2863  type Brand struct {
  2864  	// Name: Name of the brand.
  2865  	Name string `json:"name,omitempty"`
  2866  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  2867  	// include in API requests. By default, fields with empty or default values are
  2868  	// omitted from API requests. See
  2869  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2870  	// details.
  2871  	ForceSendFields []string `json:"-"`
  2872  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  2873  	// with the JSON null value. By default, fields with empty values are omitted
  2874  	// from API requests. See
  2875  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2876  	NullFields []string `json:"-"`
  2877  }
  2878  
  2879  func (s *Brand) MarshalJSON() ([]byte, error) {
  2880  	type NoMethod Brand
  2881  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2882  }
  2883  
  2884  // Breakdown: A detailed impact breakdown for a group of regions where the
  2885  // impact of the issue on different shopping destinations is the same.
  2886  type Breakdown struct {
  2887  	// Details: Human readable, localized description of issue's effect on
  2888  	// different targets. Should be rendered as a list. For example: * "Products
  2889  	// not showing in ads" * "Products not showing organically"
  2890  	Details []string `json:"details,omitempty"`
  2891  	// Regions: Lists of regions. Should be rendered as a title for this group of
  2892  	// details. The full list should be shown to merchant. If the list is too long,
  2893  	// it is recommended to make it expandable.
  2894  	Regions []*BreakdownRegion `json:"regions,omitempty"`
  2895  	// ForceSendFields is a list of field names (e.g. "Details") to unconditionally
  2896  	// include in API requests. By default, fields with empty or default values are
  2897  	// omitted from API requests. See
  2898  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2899  	// details.
  2900  	ForceSendFields []string `json:"-"`
  2901  	// NullFields is a list of field names (e.g. "Details") to include in API
  2902  	// requests with the JSON null value. By default, fields with empty values are
  2903  	// omitted from API requests. See
  2904  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2905  	NullFields []string `json:"-"`
  2906  }
  2907  
  2908  func (s *Breakdown) MarshalJSON() ([]byte, error) {
  2909  	type NoMethod Breakdown
  2910  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2911  }
  2912  
  2913  // BreakdownRegion: Region with code and localized name.
  2914  type BreakdownRegion struct {
  2915  	// Code: The [CLDR territory code]
  2916  	// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
  2917  	Code string `json:"code,omitempty"`
  2918  	// Name: The localized name of the region. For region with code='001' the value
  2919  	// is 'All countries' or the equivalent in other languages.
  2920  	Name string `json:"name,omitempty"`
  2921  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  2922  	// include in API requests. By default, fields with empty or default values are
  2923  	// omitted from API requests. See
  2924  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2925  	// details.
  2926  	ForceSendFields []string `json:"-"`
  2927  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  2928  	// with the JSON null value. By default, fields with empty values are omitted
  2929  	// from API requests. See
  2930  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2931  	NullFields []string `json:"-"`
  2932  }
  2933  
  2934  func (s *BreakdownRegion) MarshalJSON() ([]byte, error) {
  2935  	type NoMethod BreakdownRegion
  2936  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2937  }
  2938  
  2939  // BuiltInSimpleAction: Action that is implemented and performed in (your)
  2940  // third-party application. Represents various functionality that is expected
  2941  // to be available to merchant and will help them with resolving the issue. The
  2942  // application should point the merchant to the place, where they can access
  2943  // the corresponding functionality. If the functionality is not supported, it
  2944  // is recommended to explain the situation to merchant and provide them with
  2945  // instructions how to solve the issue.
  2946  type BuiltInSimpleAction struct {
  2947  	// AdditionalContent: Long text from an external source that should be
  2948  	// available to the merchant. Present when the type is
  2949  	// `SHOW_ADDITIONAL_CONTENT`.
  2950  	AdditionalContent *BuiltInSimpleActionAdditionalContent `json:"additionalContent,omitempty"`
  2951  	// AttributeCode: The attribute that needs to be updated. Present when the type
  2952  	// is `EDIT_ITEM_ATTRIBUTE`. This field contains a code for attribute,
  2953  	// represented in snake_case. You can find a list of product's attributes, with
  2954  	// their codes here (https://support.google.com/merchants/answer/7052112).
  2955  	AttributeCode string `json:"attributeCode,omitempty"`
  2956  	// Type: The type of action that represents a functionality that is expected to
  2957  	// be available in third-party application.
  2958  	//
  2959  	// Possible values:
  2960  	//   "BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED" - Default value. Will never be
  2961  	// provided by the API.
  2962  	//   "VERIFY_PHONE" - Redirect merchant to the part of your application where
  2963  	// they can verify their phone.
  2964  	//   "CLAIM_WEBSITE" - Redirect merchant to the part of your application where
  2965  	// they can claim their website.
  2966  	//   "ADD_PRODUCTS" - Redirect merchant to the part of your application where
  2967  	// they can add products.
  2968  	//   "ADD_CONTACT_INFO" - Open a form where the merchant can edit their contact
  2969  	// information.
  2970  	//   "LINK_ADS_ACCOUNT" - Redirect merchant to the part of your application
  2971  	// where they can link ads account.
  2972  	//   "ADD_BUSINESS_REGISTRATION_NUMBER" - Open a form where the merchant can
  2973  	// add their business registration number.
  2974  	//   "EDIT_ITEM_ATTRIBUTE" - Open a form where the merchant can edit an
  2975  	// attribute. The attribute that needs to be updated is specified in
  2976  	// attribute_code field of the action.
  2977  	//   "FIX_ACCOUNT_ISSUE" - Redirect merchant from the product issues to the
  2978  	// diagnostic page with their account issues in your application. This action
  2979  	// will be returned only for product issues that are caused by an account issue
  2980  	// and thus merchant should resolve the problem on the account level.
  2981  	//   "SHOW_ADDITIONAL_CONTENT" - Show additional content to the merchant. This
  2982  	// action will be used for example to deliver a justification from national
  2983  	// authority.
  2984  	Type string `json:"type,omitempty"`
  2985  	// ForceSendFields is a list of field names (e.g. "AdditionalContent") to
  2986  	// unconditionally include in API requests. By default, fields with empty or
  2987  	// default values are omitted from API requests. See
  2988  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2989  	// details.
  2990  	ForceSendFields []string `json:"-"`
  2991  	// NullFields is a list of field names (e.g. "AdditionalContent") to include in
  2992  	// API requests with the JSON null value. By default, fields with empty values
  2993  	// are omitted from API requests. See
  2994  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2995  	NullFields []string `json:"-"`
  2996  }
  2997  
  2998  func (s *BuiltInSimpleAction) MarshalJSON() ([]byte, error) {
  2999  	type NoMethod BuiltInSimpleAction
  3000  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3001  }
  3002  
  3003  // BuiltInSimpleActionAdditionalContent: Long text from external source.
  3004  type BuiltInSimpleActionAdditionalContent struct {
  3005  	// Paragraphs: Long text organized into paragraphs.
  3006  	Paragraphs []string `json:"paragraphs,omitempty"`
  3007  	// Title: Title of the additional content;
  3008  	Title string `json:"title,omitempty"`
  3009  	// ForceSendFields is a list of field names (e.g. "Paragraphs") to
  3010  	// unconditionally include in API requests. By default, fields with empty or
  3011  	// default values are omitted from API requests. See
  3012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3013  	// details.
  3014  	ForceSendFields []string `json:"-"`
  3015  	// NullFields is a list of field names (e.g. "Paragraphs") to include in API
  3016  	// requests with the JSON null value. By default, fields with empty values are
  3017  	// omitted from API requests. See
  3018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3019  	NullFields []string `json:"-"`
  3020  }
  3021  
  3022  func (s *BuiltInSimpleActionAdditionalContent) MarshalJSON() ([]byte, error) {
  3023  	type NoMethod BuiltInSimpleActionAdditionalContent
  3024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3025  }
  3026  
  3027  // BuiltInUserInputAction: Action that is implemented and performed in (your)
  3028  // third-party application. The application needs to show an additional content
  3029  // and input form to the merchant. They can start the action only when they
  3030  // provided all required inputs. The application will request processing of the
  3031  // action by calling the triggeraction method
  3032  // (https://developers.google.com/shopping-content/reference/rest/v2.1/merchantsupport/triggeraction).
  3033  type BuiltInUserInputAction struct {
  3034  	// ActionContext: Internal details. Not for display but need to be sent back
  3035  	// when triggering the action.
  3036  	ActionContext string `json:"actionContext,omitempty"`
  3037  	// Flows: Actions may provide multiple different flows. Merchant selects one
  3038  	// that fits best to their intent. Selecting the flow is the first step in
  3039  	// user's interaction with the action. It affects what input fields will be
  3040  	// available and required and also how the request will be processed.
  3041  	Flows []*ActionFlow `json:"flows,omitempty"`
  3042  	// ForceSendFields is a list of field names (e.g. "ActionContext") to
  3043  	// unconditionally include in API requests. By default, fields with empty or
  3044  	// default values are omitted from API requests. See
  3045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3046  	// details.
  3047  	ForceSendFields []string `json:"-"`
  3048  	// NullFields is a list of field names (e.g. "ActionContext") to include in API
  3049  	// requests with the JSON null value. By default, fields with empty values are
  3050  	// omitted from API requests. See
  3051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3052  	NullFields []string `json:"-"`
  3053  }
  3054  
  3055  func (s *BuiltInUserInputAction) MarshalJSON() ([]byte, error) {
  3056  	type NoMethod BuiltInUserInputAction
  3057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3058  }
  3059  
  3060  type BusinessDayConfig struct {
  3061  	// BusinessDays: Regular business days, such as '"monday"'. May not be empty.
  3062  	BusinessDays []string `json:"businessDays,omitempty"`
  3063  	// ForceSendFields is a list of field names (e.g. "BusinessDays") to
  3064  	// unconditionally include in API requests. By default, fields with empty or
  3065  	// default values are omitted from API requests. See
  3066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3067  	// details.
  3068  	ForceSendFields []string `json:"-"`
  3069  	// NullFields is a list of field names (e.g. "BusinessDays") to include in API
  3070  	// requests with the JSON null value. By default, fields with empty values are
  3071  	// omitted from API requests. See
  3072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3073  	NullFields []string `json:"-"`
  3074  }
  3075  
  3076  func (s *BusinessDayConfig) MarshalJSON() ([]byte, error) {
  3077  	type NoMethod BusinessDayConfig
  3078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3079  }
  3080  
  3081  // BuyOnGoogleProgramStatus: Response message for the GetProgramStatus method.
  3082  type BuyOnGoogleProgramStatus struct {
  3083  	// BusinessModel: The business models in which merchant participates.
  3084  	//
  3085  	// Possible values:
  3086  	//   "BUSINESS_MODEL_UNSPECIFIED" - Default value when business model is not
  3087  	// set.
  3088  	//   "MANUFACTURER" - Merchant is a manufacturer.
  3089  	//   "IMPORTER" - Merchant is an importer.
  3090  	//   "RESELLER" - Merchant is a reseller.
  3091  	//   "OTHER" - Merchant has a different business model.
  3092  	BusinessModel []string `json:"businessModel,omitempty"`
  3093  	// CustomerServicePendingEmail: The customer service pending email. After
  3094  	// verification this field becomes empty.
  3095  	CustomerServicePendingEmail string `json:"customerServicePendingEmail,omitempty"`
  3096  	// CustomerServicePendingPhoneNumber: The pending phone number specified for
  3097  	// BuyOnGoogle program. It might be different than account level phone number.
  3098  	// In order to update this field the customer_service_pending_phone_region_code
  3099  	// must also be set. After verification this field becomes empty.
  3100  	CustomerServicePendingPhoneNumber string `json:"customerServicePendingPhoneNumber,omitempty"`
  3101  	// CustomerServicePendingPhoneRegionCode: Two letter country code for the
  3102  	// pending phone number, for example `CA` for Canadian numbers. See the ISO
  3103  	// 3166-1 alpha-2
  3104  	// (https://wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
  3105  	// officially assigned codes. In order to update this field the
  3106  	// customer_service_pending_phone_number must also be set. After verification
  3107  	// this field becomes empty.
  3108  	CustomerServicePendingPhoneRegionCode string `json:"customerServicePendingPhoneRegionCode,omitempty"`
  3109  	// CustomerServiceVerifiedEmail: Output only. The customer service verified
  3110  	// email.
  3111  	CustomerServiceVerifiedEmail string `json:"customerServiceVerifiedEmail,omitempty"`
  3112  	// CustomerServiceVerifiedPhoneNumber: Output only. The verified phone number
  3113  	// specified for BuyOnGoogle program. It might be different than account level
  3114  	// phone number.
  3115  	CustomerServiceVerifiedPhoneNumber string `json:"customerServiceVerifiedPhoneNumber,omitempty"`
  3116  	// CustomerServiceVerifiedPhoneRegionCode: Output only. Two letter country code
  3117  	// for the verified phone number, for example `CA` for Canadian numbers. See
  3118  	// the ISO 3166-1 alpha-2
  3119  	// (https://wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
  3120  	// officially assigned codes.
  3121  	CustomerServiceVerifiedPhoneRegionCode string `json:"customerServiceVerifiedPhoneRegionCode,omitempty"`
  3122  	// OnlineSalesChannel: The channels through which the merchant is selling.
  3123  	//
  3124  	// Possible values:
  3125  	//   "ONLINE_SALES_CHANNEL_UNSPECIFIED" - Default value when online sales
  3126  	// channel is not set.
  3127  	//   "GOOGLE_EXCLUSIVE" - Merchant is selling exclusively on Google.
  3128  	//   "GOOGLE_AND_OTHER_WEBSITES" - Merchant is selling on Google and other
  3129  	// websites.
  3130  	OnlineSalesChannel string `json:"onlineSalesChannel,omitempty"`
  3131  	// ParticipationStage: Output only. The current participation stage for the
  3132  	// program.
  3133  	//
  3134  	// Possible values:
  3135  	//   "PROGRAM_PARTICIPATION_STAGE_UNSPECIFIED" - Default value when
  3136  	// participation stage is not set.
  3137  	//   "NOT_ELIGIBLE" - Merchant is not eligible for onboarding to a given
  3138  	// program in a specific region code.
  3139  	//   "ELIGIBLE" - Merchant is eligible for onboarding to a given program in a
  3140  	// specific region code.
  3141  	//   "ONBOARDING" - Merchant is onboarding to a given program in a specific
  3142  	// region code.
  3143  	//   "ELIGIBLE_FOR_REVIEW" - Merchant fulfilled all the requirements and is
  3144  	// ready to request review in a specific region code.
  3145  	//   "PENDING_REVIEW" - Merchant is waiting for the review to be completed in a
  3146  	// specific region code.
  3147  	//   "REVIEW_DISAPPROVED" - The review for a merchant has been rejected in a
  3148  	// specific region code.
  3149  	//   "ACTIVE" - Merchant's program participation is active for a specific
  3150  	// region code.
  3151  	//   "PAUSED" - Participation has been paused.
  3152  	//   "DEPRECATED" - The program cannot be further reactivated or paused. See
  3153  	// more about [Buy on
  3154  	// Google](https://support.google.com/merchants/answer/7679273).
  3155  	ParticipationStage string `json:"participationStage,omitempty"`
  3156  
  3157  	// ServerResponse contains the HTTP response code and headers from the server.
  3158  	googleapi.ServerResponse `json:"-"`
  3159  	// ForceSendFields is a list of field names (e.g. "BusinessModel") to
  3160  	// unconditionally include in API requests. By default, fields with empty or
  3161  	// default values are omitted from API requests. See
  3162  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3163  	// details.
  3164  	ForceSendFields []string `json:"-"`
  3165  	// NullFields is a list of field names (e.g. "BusinessModel") to include in API
  3166  	// requests with the JSON null value. By default, fields with empty values are
  3167  	// omitted from API requests. See
  3168  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3169  	NullFields []string `json:"-"`
  3170  }
  3171  
  3172  func (s *BuyOnGoogleProgramStatus) MarshalJSON() ([]byte, error) {
  3173  	type NoMethod BuyOnGoogleProgramStatus
  3174  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3175  }
  3176  
  3177  // Callout: An important message that should be highlighted. Usually displayed
  3178  // as a banner.
  3179  type Callout struct {
  3180  	// FullMessage: A full message that needs to be shown to the merchant.
  3181  	FullMessage *TextWithTooltip `json:"fullMessage,omitempty"`
  3182  	// StyleHint: Can be used to render messages with different severity in
  3183  	// different styles. Snippets off all types contain important information that
  3184  	// should be displayed to merchants.
  3185  	//
  3186  	// Possible values:
  3187  	//   "CALLOUT_STYLE_HINT_UNSPECIFIED" - Default value. Will never be provided
  3188  	// by the API.
  3189  	//   "ERROR" - The most important type of information highlighting problems,
  3190  	// like an unsuccessful outcome of previously requested actions.
  3191  	//   "WARNING" - Information warning about pending problems, risks or
  3192  	// deadlines.
  3193  	//   "INFO" - Default severity for important information like pending status of
  3194  	// previously requested action or cooldown for re-review.
  3195  	StyleHint string `json:"styleHint,omitempty"`
  3196  	// ForceSendFields is a list of field names (e.g. "FullMessage") to
  3197  	// unconditionally include in API requests. By default, fields with empty or
  3198  	// default values are omitted from API requests. See
  3199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3200  	// details.
  3201  	ForceSendFields []string `json:"-"`
  3202  	// NullFields is a list of field names (e.g. "FullMessage") to include in API
  3203  	// requests with the JSON null value. By default, fields with empty values are
  3204  	// omitted from API requests. See
  3205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3206  	NullFields []string `json:"-"`
  3207  }
  3208  
  3209  func (s *Callout) MarshalJSON() ([]byte, error) {
  3210  	type NoMethod Callout
  3211  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3212  }
  3213  
  3214  // CaptureOrderRequest: Request message for the CaptureOrder method.
  3215  type CaptureOrderRequest struct {
  3216  }
  3217  
  3218  // CaptureOrderResponse: Response message for the CaptureOrder method.
  3219  type CaptureOrderResponse struct {
  3220  	// ExecutionStatus: The status of the execution. Only defined if the request
  3221  	// was successful. Acceptable values are: * "duplicate" * "executed"
  3222  	//
  3223  	// Possible values:
  3224  	//   "EXECUTION_STATUS_UNSPECIFIED" - Default value. This value is unused.
  3225  	//   "EXECUTED" - The request was completed successfully.
  3226  	//   "DUPLICATE" - The request was not performed because it already executed
  3227  	// once successfully.
  3228  	ExecutionStatus string `json:"executionStatus,omitempty"`
  3229  
  3230  	// ServerResponse contains the HTTP response code and headers from the server.
  3231  	googleapi.ServerResponse `json:"-"`
  3232  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  3233  	// unconditionally include in API requests. By default, fields with empty or
  3234  	// default values are omitted from API requests. See
  3235  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3236  	// details.
  3237  	ForceSendFields []string `json:"-"`
  3238  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  3239  	// API requests with the JSON null value. By default, fields with empty values
  3240  	// are omitted from API requests. See
  3241  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3242  	NullFields []string `json:"-"`
  3243  }
  3244  
  3245  func (s *CaptureOrderResponse) MarshalJSON() ([]byte, error) {
  3246  	type NoMethod CaptureOrderResponse
  3247  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3248  }
  3249  
  3250  type CarrierRate struct {
  3251  	// CarrierName: Carrier service, such as "UPS" or "Fedex". The list of
  3252  	// supported carriers can be retrieved through the `getSupportedCarriers`
  3253  	// method. Required.
  3254  	CarrierName string `json:"carrierName,omitempty"`
  3255  	// CarrierService: Carrier service, such as "ground" or "2 days". The list
  3256  	// of supported services for a carrier can be retrieved through the
  3257  	// `getSupportedCarriers` method. Required.
  3258  	CarrierService string `json:"carrierService,omitempty"`
  3259  	// FlatAdjustment: Additive shipping rate modifier. Can be negative. For
  3260  	// example `{ "value": "1", "currency" : "USD" }` adds $1 to the rate, `{
  3261  	// "value": "-3", "currency" : "USD" }` removes $3 from the rate. Optional.
  3262  	FlatAdjustment *Price `json:"flatAdjustment,omitempty"`
  3263  	// Name: Name of the carrier rate. Must be unique per rate group. Required.
  3264  	Name string `json:"name,omitempty"`
  3265  	// OriginPostalCode: Shipping origin for this carrier rate. Required.
  3266  	OriginPostalCode string `json:"originPostalCode,omitempty"`
  3267  	// PercentageAdjustment: Multiplicative shipping rate modifier as a number in
  3268  	// decimal notation. Can be negative. For example "5.4" increases the rate by
  3269  	// 5.4%, "-3" decreases the rate by 3%. Optional.
  3270  	PercentageAdjustment string `json:"percentageAdjustment,omitempty"`
  3271  	// ForceSendFields is a list of field names (e.g. "CarrierName") to
  3272  	// unconditionally include in API requests. By default, fields with empty or
  3273  	// default values are omitted from API requests. See
  3274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3275  	// details.
  3276  	ForceSendFields []string `json:"-"`
  3277  	// NullFields is a list of field names (e.g. "CarrierName") to include in API
  3278  	// requests with the JSON null value. By default, fields with empty values are
  3279  	// omitted from API requests. See
  3280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3281  	NullFields []string `json:"-"`
  3282  }
  3283  
  3284  func (s *CarrierRate) MarshalJSON() ([]byte, error) {
  3285  	type NoMethod CarrierRate
  3286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3287  }
  3288  
  3289  type CarriersCarrier struct {
  3290  	// Country: The CLDR country code of the carrier (for example, "US"). Always
  3291  	// present.
  3292  	Country string `json:"country,omitempty"`
  3293  	// EddServices: A list of services supported for EDD (Estimated Delivery Date)
  3294  	// calculation. This is the list of valid values for
  3295  	// WarehouseBasedDeliveryTime.carrierService.
  3296  	EddServices []string `json:"eddServices,omitempty"`
  3297  	// Name: The name of the carrier (for example, "UPS"). Always present.
  3298  	Name string `json:"name,omitempty"`
  3299  	// Services: A list of supported services (for example, "ground") for that
  3300  	// carrier. Contains at least one service. This is the list of valid values for
  3301  	// CarrierRate.carrierService.
  3302  	Services []string `json:"services,omitempty"`
  3303  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  3304  	// include in API requests. By default, fields with empty or default values are
  3305  	// omitted from API requests. See
  3306  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3307  	// details.
  3308  	ForceSendFields []string `json:"-"`
  3309  	// NullFields is a list of field names (e.g. "Country") to include in API
  3310  	// requests with the JSON null value. By default, fields with empty values are
  3311  	// omitted from API requests. See
  3312  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3313  	NullFields []string `json:"-"`
  3314  }
  3315  
  3316  func (s *CarriersCarrier) MarshalJSON() ([]byte, error) {
  3317  	type NoMethod CarriersCarrier
  3318  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3319  }
  3320  
  3321  // CheckoutSettings: `CheckoutSettings` for a specific merchant ID.
  3322  type CheckoutSettings struct {
  3323  	// EffectiveEnrollmentState: Output only. The effective value of enrollment
  3324  	// state for a given merchant ID. If account level settings are present then
  3325  	// this value will be a copy of the account level settings. Otherwise, it will
  3326  	// have the value of the parent account.
  3327  	//
  3328  	// Possible values:
  3329  	//   "CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED" - Default enrollment
  3330  	// state when enrollment state is not specified.
  3331  	//   "INACTIVE" - Merchant has not enrolled into the feature.
  3332  	//   "ENROLLED" - Merchant has enrolled into the feature by providing either an
  3333  	// account level URL or checkout URLs as part of their feed.
  3334  	//   "OPT_OUT" - Merchant has previously enrolled but opted out of the feature.
  3335  	EffectiveEnrollmentState string `json:"effectiveEnrollmentState,omitempty"`
  3336  	// EffectiveReviewState: Output only. The effective value of review state for a
  3337  	// given merchant ID. If account level settings are present then this value
  3338  	// will be a copy of the account level settings. Otherwise, it will have the
  3339  	// value of the parent account.
  3340  	//
  3341  	// Possible values:
  3342  	//   "CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED" - Default review state
  3343  	// when review state is not specified.
  3344  	//   "IN_REVIEW" - Merchant provided URLs are being reviewed for data quality
  3345  	// issues.
  3346  	//   "APPROVED" - Merchant account has been approved. Indicates the data
  3347  	// quality checks have passed.
  3348  	//   "DISAPPROVED" - Merchant account has been disapproved due to data quality
  3349  	// issues.
  3350  	EffectiveReviewState string `json:"effectiveReviewState,omitempty"`
  3351  	// EffectiveUriSettings: The effective value of `url_settings` for a given
  3352  	// merchant ID. If account level settings are present then this value will be a
  3353  	// copy of the account level settings. Otherwise, it will have the value of the
  3354  	// parent account.
  3355  	EffectiveUriSettings *UrlSettings `json:"effectiveUriSettings,omitempty"`
  3356  	// EnrollmentState: Output only. Reflects the merchant enrollment state in
  3357  	// `Checkout` feature.
  3358  	//
  3359  	// Possible values:
  3360  	//   "CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED" - Default enrollment
  3361  	// state when enrollment state is not specified.
  3362  	//   "INACTIVE" - Merchant has not enrolled into the feature.
  3363  	//   "ENROLLED" - Merchant has enrolled into the feature by providing either an
  3364  	// account level URL or checkout URLs as part of their feed.
  3365  	//   "OPT_OUT" - Merchant has previously enrolled but opted out of the feature.
  3366  	EnrollmentState string `json:"enrollmentState,omitempty"`
  3367  	// MerchantId: Required. The ID of the account.
  3368  	MerchantId int64 `json:"merchantId,omitempty,string"`
  3369  	// ReviewState: Output only. Reflects the merchant review state in `Checkout`
  3370  	// feature. This is set based on the data quality reviews of the URL provided
  3371  	// by the merchant. A merchant with enrollment state as `ENROLLED` can be in
  3372  	// the following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A
  3373  	// merchant must be in an enrollment_state of `ENROLLED` before a review can
  3374  	// begin for the merchant.
  3375  	//
  3376  	// Possible values:
  3377  	//   "CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED" - Default review state
  3378  	// when review state is not specified.
  3379  	//   "IN_REVIEW" - Merchant provided URLs are being reviewed for data quality
  3380  	// issues.
  3381  	//   "APPROVED" - Merchant account has been approved. Indicates the data
  3382  	// quality checks have passed.
  3383  	//   "DISAPPROVED" - Merchant account has been disapproved due to data quality
  3384  	// issues.
  3385  	ReviewState string `json:"reviewState,omitempty"`
  3386  	// UriSettings: URL settings for cart or checkout URL.
  3387  	UriSettings *UrlSettings `json:"uriSettings,omitempty"`
  3388  
  3389  	// ServerResponse contains the HTTP response code and headers from the server.
  3390  	googleapi.ServerResponse `json:"-"`
  3391  	// ForceSendFields is a list of field names (e.g. "EffectiveEnrollmentState")
  3392  	// to unconditionally include in API requests. By default, fields with empty or
  3393  	// default values are omitted from API requests. See
  3394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3395  	// details.
  3396  	ForceSendFields []string `json:"-"`
  3397  	// NullFields is a list of field names (e.g. "EffectiveEnrollmentState") to
  3398  	// include in API requests with the JSON null value. By default, fields with
  3399  	// empty values are omitted from API requests. See
  3400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3401  	NullFields []string `json:"-"`
  3402  }
  3403  
  3404  func (s *CheckoutSettings) MarshalJSON() ([]byte, error) {
  3405  	type NoMethod CheckoutSettings
  3406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3407  }
  3408  
  3409  // CloudExportAdditionalProperties: Product property for the Cloud Retail API.
  3410  // For example, properties for a TV product could be "Screen-Resolution" or
  3411  // "Screen-Size".
  3412  type CloudExportAdditionalProperties struct {
  3413  	// BoolValue: Boolean value of the given property. For example for a TV
  3414  	// product, "True" or "False" if the screen is UHD.
  3415  	BoolValue bool `json:"boolValue,omitempty"`
  3416  	// FloatValue: Float values of the given property. For example for a TV product
  3417  	// 1.2345. Maximum number of specified values for this field is 400. Values are
  3418  	// stored in an arbitrary but consistent order.
  3419  	FloatValue []float64 `json:"floatValue,omitempty"`
  3420  	// IntValue: Integer values of the given property. For example, 1080 for a
  3421  	// screen resolution of a TV product. Maximum number of specified values for
  3422  	// this field is 400. Values are stored in an arbitrary but consistent order.
  3423  	IntValue googleapi.Int64s `json:"intValue,omitempty"`
  3424  	// MaxValue: Maximum float value of the given property. For example for a TV
  3425  	// product 100.00.
  3426  	MaxValue float64 `json:"maxValue,omitempty"`
  3427  	// MinValue: Minimum float value of the given property. For example for a TV
  3428  	// product 1.00.
  3429  	MinValue float64 `json:"minValue,omitempty"`
  3430  	// PropertyName: Name of the given property. For example, "Screen-Resolution"
  3431  	// for a TV product. Maximum string size is 256 characters.
  3432  	PropertyName string `json:"propertyName,omitempty"`
  3433  	// TextValue: Text value of the given property. For example, "8K(UHD)" could be
  3434  	// a text value for a TV product. Maximum number of specified values for this
  3435  	// field is 400. Values are stored in an arbitrary but consistent order.
  3436  	// Maximum string size is 256 characters.
  3437  	TextValue []string `json:"textValue,omitempty"`
  3438  	// UnitCode: Unit of the given property. For example, "Pixels" for a TV
  3439  	// product. Maximum string size is 256 bytes.
  3440  	UnitCode string `json:"unitCode,omitempty"`
  3441  	// ForceSendFields is a list of field names (e.g. "BoolValue") to
  3442  	// unconditionally include in API requests. By default, fields with empty or
  3443  	// default values are omitted from API requests. See
  3444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3445  	// details.
  3446  	ForceSendFields []string `json:"-"`
  3447  	// NullFields is a list of field names (e.g. "BoolValue") to include in API
  3448  	// requests with the JSON null value. By default, fields with empty values are
  3449  	// omitted from API requests. See
  3450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3451  	NullFields []string `json:"-"`
  3452  }
  3453  
  3454  func (s *CloudExportAdditionalProperties) MarshalJSON() ([]byte, error) {
  3455  	type NoMethod CloudExportAdditionalProperties
  3456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3457  }
  3458  
  3459  func (s *CloudExportAdditionalProperties) UnmarshalJSON(data []byte) error {
  3460  	type NoMethod CloudExportAdditionalProperties
  3461  	var s1 struct {
  3462  		FloatValue []gensupport.JSONFloat64 `json:"floatValue"`
  3463  		MaxValue   gensupport.JSONFloat64   `json:"maxValue"`
  3464  		MinValue   gensupport.JSONFloat64   `json:"minValue"`
  3465  		*NoMethod
  3466  	}
  3467  	s1.NoMethod = (*NoMethod)(s)
  3468  	if err := json.Unmarshal(data, &s1); err != nil {
  3469  		return err
  3470  	}
  3471  	s.FloatValue = make([]float64, len(s1.FloatValue))
  3472  	for i := range s1.FloatValue {
  3473  		s.FloatValue[i] = float64(s1.FloatValue[i])
  3474  	}
  3475  	s.MaxValue = float64(s1.MaxValue)
  3476  	s.MinValue = float64(s1.MinValue)
  3477  	return nil
  3478  }
  3479  
  3480  // Collection: The collection message.
  3481  type Collection struct {
  3482  	// CustomLabel0: Label that you assign to a collection to help organize bidding
  3483  	// and reporting in Shopping campaigns. Custom label
  3484  	// (https://support.google.com/merchants/answer/9674217)
  3485  	CustomLabel0 string `json:"customLabel0,omitempty"`
  3486  	// CustomLabel1: Label that you assign to a collection to help organize bidding
  3487  	// and reporting in Shopping campaigns.
  3488  	CustomLabel1 string `json:"customLabel1,omitempty"`
  3489  	// CustomLabel2: Label that you assign to a collection to help organize bidding
  3490  	// and reporting in Shopping campaigns.
  3491  	CustomLabel2 string `json:"customLabel2,omitempty"`
  3492  	// CustomLabel3: Label that you assign to a collection to help organize bidding
  3493  	// and reporting in Shopping campaigns.
  3494  	CustomLabel3 string `json:"customLabel3,omitempty"`
  3495  	// CustomLabel4: Label that you assign to a collection to help organize bidding
  3496  	// and reporting in Shopping campaigns.
  3497  	CustomLabel4 string `json:"customLabel4,omitempty"`
  3498  	// FeaturedProduct: This identifies one or more products associated with the
  3499  	// collection. Used as a lookup to the corresponding product ID in your product
  3500  	// feeds. Provide a maximum of 100 featuredProduct (for collections). Provide
  3501  	// up to 10 featuredProduct (for Shoppable Images only) with ID and X and Y
  3502  	// coordinates. featured_product attribute
  3503  	// (https://support.google.com/merchants/answer/9703736)
  3504  	FeaturedProduct []*CollectionFeaturedProduct `json:"featuredProduct,omitempty"`
  3505  	// Headline: Your collection's name. headline attribute
  3506  	// (https://support.google.com/merchants/answer/9673580)
  3507  	Headline []string `json:"headline,omitempty"`
  3508  	// Id: Required. The REST ID of the collection. Content API methods that
  3509  	// operate on collections take this as their collectionId parameter. The REST
  3510  	// ID for a collection is of the form collectionId. id attribute
  3511  	// (https://support.google.com/merchants/answer/9649290)
  3512  	Id string `json:"id,omitempty"`
  3513  	// ImageLink: The URL of a collection’s image. image_link attribute
  3514  	// (https://support.google.com/merchants/answer/9703236)
  3515  	ImageLink []string `json:"imageLink,omitempty"`
  3516  	// Language: The language of a collection and the language of any featured
  3517  	// products linked to the collection. language attribute
  3518  	// (https://support.google.com/merchants/answer/9673781)
  3519  	Language string `json:"language,omitempty"`
  3520  	// Link: A collection’s landing page. URL directly linking to your
  3521  	// collection's page on your website. link attribute
  3522  	// (https://support.google.com/merchants/answer/9673983)
  3523  	Link string `json:"link,omitempty"`
  3524  	// MobileLink: A collection’s mobile-optimized landing page when you have a
  3525  	// different URL for mobile and desktop traffic. mobile_link attribute
  3526  	// (https://support.google.com/merchants/answer/9646123)
  3527  	MobileLink string `json:"mobileLink,omitempty"`
  3528  	// ProductCountry: product_country attribute
  3529  	// (https://support.google.com/merchants/answer/9674155)
  3530  	ProductCountry string `json:"productCountry,omitempty"`
  3531  
  3532  	// ServerResponse contains the HTTP response code and headers from the server.
  3533  	googleapi.ServerResponse `json:"-"`
  3534  	// ForceSendFields is a list of field names (e.g. "CustomLabel0") to
  3535  	// unconditionally include in API requests. By default, fields with empty or
  3536  	// default values are omitted from API requests. See
  3537  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3538  	// details.
  3539  	ForceSendFields []string `json:"-"`
  3540  	// NullFields is a list of field names (e.g. "CustomLabel0") to include in API
  3541  	// requests with the JSON null value. By default, fields with empty values are
  3542  	// omitted from API requests. See
  3543  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3544  	NullFields []string `json:"-"`
  3545  }
  3546  
  3547  func (s *Collection) MarshalJSON() ([]byte, error) {
  3548  	type NoMethod Collection
  3549  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3550  }
  3551  
  3552  // CollectionFeaturedProduct: The message for FeaturedProduct. FeaturedProduct
  3553  // (https://support.google.com/merchants/answer/9703736)
  3554  type CollectionFeaturedProduct struct {
  3555  	// OfferId: The unique identifier for the product item.
  3556  	OfferId string `json:"offerId,omitempty"`
  3557  	// X: Required. X-coordinate of the product callout on the Shoppable Image.
  3558  	X float64 `json:"x,omitempty"`
  3559  	// Y: Required. Y-coordinate of the product callout on the Shoppable Image.
  3560  	Y float64 `json:"y,omitempty"`
  3561  	// ForceSendFields is a list of field names (e.g. "OfferId") to unconditionally
  3562  	// include in API requests. By default, fields with empty or default values are
  3563  	// omitted from API requests. See
  3564  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3565  	// details.
  3566  	ForceSendFields []string `json:"-"`
  3567  	// NullFields is a list of field names (e.g. "OfferId") to include in API
  3568  	// requests with the JSON null value. By default, fields with empty values are
  3569  	// omitted from API requests. See
  3570  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3571  	NullFields []string `json:"-"`
  3572  }
  3573  
  3574  func (s *CollectionFeaturedProduct) MarshalJSON() ([]byte, error) {
  3575  	type NoMethod CollectionFeaturedProduct
  3576  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3577  }
  3578  
  3579  func (s *CollectionFeaturedProduct) UnmarshalJSON(data []byte) error {
  3580  	type NoMethod CollectionFeaturedProduct
  3581  	var s1 struct {
  3582  		X gensupport.JSONFloat64 `json:"x"`
  3583  		Y gensupport.JSONFloat64 `json:"y"`
  3584  		*NoMethod
  3585  	}
  3586  	s1.NoMethod = (*NoMethod)(s)
  3587  	if err := json.Unmarshal(data, &s1); err != nil {
  3588  		return err
  3589  	}
  3590  	s.X = float64(s1.X)
  3591  	s.Y = float64(s1.Y)
  3592  	return nil
  3593  }
  3594  
  3595  // CollectionStatus: The collectionstatus message.
  3596  type CollectionStatus struct {
  3597  	// CollectionLevelIssuses: A list of all issues associated with the collection.
  3598  	CollectionLevelIssuses []*CollectionStatusItemLevelIssue `json:"collectionLevelIssuses,omitempty"`
  3599  	// CreationDate: Date on which the collection has been created in ISO 8601
  3600  	// (http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, for
  3601  	// example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
  3602  	CreationDate string `json:"creationDate,omitempty"`
  3603  	// DestinationStatuses: The intended destinations for the collection.
  3604  	DestinationStatuses []*CollectionStatusDestinationStatus `json:"destinationStatuses,omitempty"`
  3605  	// Id: Required. The ID of the collection for which status is reported.
  3606  	Id string `json:"id,omitempty"`
  3607  	// LastUpdateDate: Date on which the collection has been last updated in ISO
  3608  	// 8601 (http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and offset,
  3609  	// for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
  3610  	LastUpdateDate string `json:"lastUpdateDate,omitempty"`
  3611  
  3612  	// ServerResponse contains the HTTP response code and headers from the server.
  3613  	googleapi.ServerResponse `json:"-"`
  3614  	// ForceSendFields is a list of field names (e.g. "CollectionLevelIssuses") to
  3615  	// unconditionally include in API requests. By default, fields with empty or
  3616  	// default values are omitted from API requests. See
  3617  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3618  	// details.
  3619  	ForceSendFields []string `json:"-"`
  3620  	// NullFields is a list of field names (e.g. "CollectionLevelIssuses") to
  3621  	// include in API requests with the JSON null value. By default, fields with
  3622  	// empty values are omitted from API requests. See
  3623  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3624  	NullFields []string `json:"-"`
  3625  }
  3626  
  3627  func (s *CollectionStatus) MarshalJSON() ([]byte, error) {
  3628  	type NoMethod CollectionStatus
  3629  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3630  }
  3631  
  3632  // CollectionStatusDestinationStatus: Destination status message.
  3633  type CollectionStatusDestinationStatus struct {
  3634  	// ApprovedCountries: Country codes (ISO 3166-1 alpha-2) where the collection
  3635  	// is approved.
  3636  	ApprovedCountries []string `json:"approvedCountries,omitempty"`
  3637  	// Destination: The name of the destination
  3638  	Destination string `json:"destination,omitempty"`
  3639  	// DisapprovedCountries: Country codes (ISO 3166-1 alpha-2) where the
  3640  	// collection is disapproved.
  3641  	DisapprovedCountries []string `json:"disapprovedCountries,omitempty"`
  3642  	// PendingCountries: Country codes (ISO 3166-1 alpha-2) where the collection is
  3643  	// pending approval.
  3644  	PendingCountries []string `json:"pendingCountries,omitempty"`
  3645  	// Status: The status for the specified destination in the collections target
  3646  	// country.
  3647  	Status string `json:"status,omitempty"`
  3648  	// ForceSendFields is a list of field names (e.g. "ApprovedCountries") to
  3649  	// unconditionally include in API requests. By default, fields with empty or
  3650  	// default values are omitted from API requests. See
  3651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3652  	// details.
  3653  	ForceSendFields []string `json:"-"`
  3654  	// NullFields is a list of field names (e.g. "ApprovedCountries") to include in
  3655  	// API requests with the JSON null value. By default, fields with empty values
  3656  	// are omitted from API requests. See
  3657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3658  	NullFields []string `json:"-"`
  3659  }
  3660  
  3661  func (s *CollectionStatusDestinationStatus) MarshalJSON() ([]byte, error) {
  3662  	type NoMethod CollectionStatusDestinationStatus
  3663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3664  }
  3665  
  3666  // CollectionStatusItemLevelIssue: Issue associated with the collection.
  3667  type CollectionStatusItemLevelIssue struct {
  3668  	// ApplicableCountries: Country codes (ISO 3166-1 alpha-2) where issue applies
  3669  	// to the offer.
  3670  	ApplicableCountries []string `json:"applicableCountries,omitempty"`
  3671  	// AttributeName: The attribute's name, if the issue is caused by a single
  3672  	// attribute.
  3673  	AttributeName string `json:"attributeName,omitempty"`
  3674  	// Code: The error code of the issue.
  3675  	Code string `json:"code,omitempty"`
  3676  	// Description: A short issue description in English.
  3677  	Description string `json:"description,omitempty"`
  3678  	// Destination: The destination the issue applies to.
  3679  	Destination string `json:"destination,omitempty"`
  3680  	// Detail: A detailed issue description in English.
  3681  	Detail string `json:"detail,omitempty"`
  3682  	// Documentation: The URL of a web page to help with resolving this issue.
  3683  	Documentation string `json:"documentation,omitempty"`
  3684  	// Resolution: Whether the issue can be resolved by the merchant.
  3685  	Resolution string `json:"resolution,omitempty"`
  3686  	// Servability: How this issue affects the serving of the collection.
  3687  	Servability string `json:"servability,omitempty"`
  3688  	// ForceSendFields is a list of field names (e.g. "ApplicableCountries") to
  3689  	// unconditionally include in API requests. By default, fields with empty or
  3690  	// default values are omitted from API requests. See
  3691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3692  	// details.
  3693  	ForceSendFields []string `json:"-"`
  3694  	// NullFields is a list of field names (e.g. "ApplicableCountries") to include
  3695  	// in API requests with the JSON null value. By default, fields with empty
  3696  	// values are omitted from API requests. See
  3697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3698  	NullFields []string `json:"-"`
  3699  }
  3700  
  3701  func (s *CollectionStatusItemLevelIssue) MarshalJSON() ([]byte, error) {
  3702  	type NoMethod CollectionStatusItemLevelIssue
  3703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3704  }
  3705  
  3706  // CompetitiveVisibility: Fields related to [competitive visibility reports]
  3707  // (https://support.google.com/merchants/answer/11366442).
  3708  type CompetitiveVisibility struct {
  3709  	// AdsOrganicRatio: [Ads / organic ratio]
  3710  	// (https://support.google.com/merchants/answer/11366442#zippy=%2Cadsfree-ratio)
  3711  	// shows how often a merchant receives impressions from Shopping ads compared
  3712  	// to organic traffic. The number is rounded and bucketed. Available only in
  3713  	// `CompetitiveVisibilityTopMerchantView` and
  3714  	// `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
  3715  	// clause.
  3716  	AdsOrganicRatio float64 `json:"adsOrganicRatio,omitempty"`
  3717  	// CategoryBenchmarkVisibilityTrend: Change in visibility based on impressions
  3718  	// with respect to the start of the selected time range (or first day with
  3719  	// non-zero impressions) for a combined set of merchants with highest
  3720  	// visibility approximating the market. Available only in
  3721  	// `CompetitiveVisibilityBenchmarkView`. Cannot be filtered on in the 'WHERE'
  3722  	// clause.
  3723  	CategoryBenchmarkVisibilityTrend float64 `json:"categoryBenchmarkVisibilityTrend,omitempty"`
  3724  	// CategoryId: Google product category ID to calculate the report for,
  3725  	// represented in Google's product taxonomy
  3726  	// (https://support.google.com/merchants/answer/6324436). Required in the
  3727  	// `SELECT` clause. A `WHERE` condition on `competitive_visibility.category_id`
  3728  	// is required in the query.
  3729  	CategoryId int64 `json:"categoryId,omitempty,string"`
  3730  	// CountryCode: The country where impression appeared. Required in the `SELECT`
  3731  	// clause. A `WHERE` condition on `competitive_visibility.country_code` is
  3732  	// required in the query.
  3733  	CountryCode string `json:"countryCode,omitempty"`
  3734  	// Date: Date of this row. Available only in
  3735  	// `CompetitiveVisibilityBenchmarkView` and
  3736  	// `CompetitiveVisibilityCompetitorView`. Required in the `SELECT` clause for
  3737  	// `CompetitiveVisibilityMarketBenchmarkView`.
  3738  	Date *Date `json:"date,omitempty"`
  3739  	// Domain: Domain of your competitor or your domain, if 'is_your_domain' is
  3740  	// true. Available only in `CompetitiveVisibilityTopMerchantView` and
  3741  	// `CompetitiveVisibilityCompetitorView`. Required in the `SELECT` clause for
  3742  	// `CompetitiveVisibilityTopMerchantView` and
  3743  	// `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
  3744  	// clause.
  3745  	Domain string `json:"domain,omitempty"`
  3746  	// HigherPositionRate: Higher position rate shows how often a competitor’s
  3747  	// offer got placed in a higher position on the page than your offer. Available
  3748  	// only in `CompetitiveVisibilityTopMerchantView` and
  3749  	// `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
  3750  	// clause.
  3751  	HigherPositionRate float64 `json:"higherPositionRate,omitempty"`
  3752  	// IsYourDomain: True if this row contains data for your domain. Available only
  3753  	// in `CompetitiveVisibilityTopMerchantView` and
  3754  	// `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
  3755  	// clause.
  3756  	IsYourDomain bool `json:"isYourDomain,omitempty"`
  3757  	// PageOverlapRate: Page overlap rate describes how frequently competing
  3758  	// retailers’ offers are shown together with your offers on the same page.
  3759  	// Available only in `CompetitiveVisibilityTopMerchantView` and
  3760  	// `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
  3761  	// clause.
  3762  	PageOverlapRate float64 `json:"pageOverlapRate,omitempty"`
  3763  	// Rank: Position of the domain in the top merchants ranking for the selected
  3764  	// keys (`date`, `category_id`, `country_code`, `listing_type`) based on
  3765  	// impressions. 1 is the highest. Available only in
  3766  	// `CompetitiveVisibilityTopMerchantView` and
  3767  	// `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
  3768  	// clause.
  3769  	Rank uint64 `json:"rank,omitempty,string"`
  3770  	// RelativeVisibility: Relative visibility shows how often your competitors’
  3771  	// offers are shown compared to your offers. In other words, this is the number
  3772  	// of displayed impressions of a competitor retailer divided by the number of
  3773  	// your displayed impressions during a selected time range for a selected
  3774  	// product category and country. Available only in
  3775  	// `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
  3776  	// clause.
  3777  	RelativeVisibility float64 `json:"relativeVisibility,omitempty"`
  3778  	// TrafficSource: Type of impression listing. Required in the `SELECT` clause.
  3779  	// Cannot be filtered on in the 'WHERE' clause.
  3780  	//
  3781  	// Possible values:
  3782  	//   "UNKNOWN" - Traffic source is unknown.
  3783  	//   "ORGANIC" - Organic traffic.
  3784  	//   "ADS" - Traffic from Ads.
  3785  	//   "ALL" - Organic and Ads traffic.
  3786  	TrafficSource string `json:"trafficSource,omitempty"`
  3787  	// YourDomainVisibilityTrend: Change in visibility based on impressions for
  3788  	// your domain with respect to the start of the selected time range (or first
  3789  	// day with non-zero impressions). Available only in
  3790  	// `CompetitiveVisibilityBenchmarkView`. Cannot be filtered on in the 'WHERE'
  3791  	// clause.
  3792  	YourDomainVisibilityTrend float64 `json:"yourDomainVisibilityTrend,omitempty"`
  3793  	// ForceSendFields is a list of field names (e.g. "AdsOrganicRatio") to
  3794  	// unconditionally include in API requests. By default, fields with empty or
  3795  	// default values are omitted from API requests. See
  3796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3797  	// details.
  3798  	ForceSendFields []string `json:"-"`
  3799  	// NullFields is a list of field names (e.g. "AdsOrganicRatio") to include in
  3800  	// API requests with the JSON null value. By default, fields with empty values
  3801  	// are omitted from API requests. See
  3802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3803  	NullFields []string `json:"-"`
  3804  }
  3805  
  3806  func (s *CompetitiveVisibility) MarshalJSON() ([]byte, error) {
  3807  	type NoMethod CompetitiveVisibility
  3808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3809  }
  3810  
  3811  func (s *CompetitiveVisibility) UnmarshalJSON(data []byte) error {
  3812  	type NoMethod CompetitiveVisibility
  3813  	var s1 struct {
  3814  		AdsOrganicRatio                  gensupport.JSONFloat64 `json:"adsOrganicRatio"`
  3815  		CategoryBenchmarkVisibilityTrend gensupport.JSONFloat64 `json:"categoryBenchmarkVisibilityTrend"`
  3816  		HigherPositionRate               gensupport.JSONFloat64 `json:"higherPositionRate"`
  3817  		PageOverlapRate                  gensupport.JSONFloat64 `json:"pageOverlapRate"`
  3818  		RelativeVisibility               gensupport.JSONFloat64 `json:"relativeVisibility"`
  3819  		YourDomainVisibilityTrend        gensupport.JSONFloat64 `json:"yourDomainVisibilityTrend"`
  3820  		*NoMethod
  3821  	}
  3822  	s1.NoMethod = (*NoMethod)(s)
  3823  	if err := json.Unmarshal(data, &s1); err != nil {
  3824  		return err
  3825  	}
  3826  	s.AdsOrganicRatio = float64(s1.AdsOrganicRatio)
  3827  	s.CategoryBenchmarkVisibilityTrend = float64(s1.CategoryBenchmarkVisibilityTrend)
  3828  	s.HigherPositionRate = float64(s1.HigherPositionRate)
  3829  	s.PageOverlapRate = float64(s1.PageOverlapRate)
  3830  	s.RelativeVisibility = float64(s1.RelativeVisibility)
  3831  	s.YourDomainVisibilityTrend = float64(s1.YourDomainVisibilityTrend)
  3832  	return nil
  3833  }
  3834  
  3835  // ConversionSource: Represents a conversion source owned by a Merchant
  3836  // account. A merchant account can have up to 200 conversion sources.
  3837  type ConversionSource struct {
  3838  	// ConversionSourceId: Output only. Generated by the Content API upon creation
  3839  	// of a new `ConversionSource`. Format: [a-z]{4}:.+ The four characters before
  3840  	// the colon represent the type of conversio source. Content after the colon
  3841  	// represents the ID of the conversion source within that type. The ID of two
  3842  	// different conversion sources might be the same across different types. The
  3843  	// following type prefixes are supported: - galk: For GoogleAnalyticsLink
  3844  	// sources. - mcdn: For MerchantCenterDestination sources.
  3845  	ConversionSourceId string `json:"conversionSourceId,omitempty"`
  3846  	// ExpireTime: Output only. The time when an archived conversion source becomes
  3847  	// permanently deleted and is no longer available to undelete.
  3848  	ExpireTime string `json:"expireTime,omitempty"`
  3849  	// GoogleAnalyticsLink: Immutable. Conversion Source of type "Link to Google
  3850  	// Analytics Property".
  3851  	GoogleAnalyticsLink *GoogleAnalyticsLink `json:"googleAnalyticsLink,omitempty"`
  3852  	// MerchantCenterDestination: Conversion Source of type "Merchant Center Tag
  3853  	// Destination".
  3854  	MerchantCenterDestination *MerchantCenterDestination `json:"merchantCenterDestination,omitempty"`
  3855  	// State: Output only. Current state of this conversion source. Can't be edited
  3856  	// through the API.
  3857  	//
  3858  	// Possible values:
  3859  	//   "STATE_UNSPECIFIED"
  3860  	//   "ACTIVE" - Conversion source is fully functional.
  3861  	//   "ARCHIVED" - Conversion source has been archived in the last 30 days and
  3862  	// not currently functional. Can be restored using the undelete method.
  3863  	//   "PENDING" - Conversion source creation has started but not fully finished
  3864  	// yet.
  3865  	State string `json:"state,omitempty"`
  3866  
  3867  	// ServerResponse contains the HTTP response code and headers from the server.
  3868  	googleapi.ServerResponse `json:"-"`
  3869  	// ForceSendFields is a list of field names (e.g. "ConversionSourceId") to
  3870  	// unconditionally include in API requests. By default, fields with empty or
  3871  	// default values are omitted from API requests. See
  3872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3873  	// details.
  3874  	ForceSendFields []string `json:"-"`
  3875  	// NullFields is a list of field names (e.g. "ConversionSourceId") to include
  3876  	// in API requests with the JSON null value. By default, fields with empty
  3877  	// values are omitted from API requests. See
  3878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3879  	NullFields []string `json:"-"`
  3880  }
  3881  
  3882  func (s *ConversionSource) MarshalJSON() ([]byte, error) {
  3883  	type NoMethod ConversionSource
  3884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3885  }
  3886  
  3887  // Css: Information about CSS domain.
  3888  type Css struct {
  3889  	// CssDomainId: Output only. Immutable. The CSS domain ID.
  3890  	CssDomainId int64 `json:"cssDomainId,omitempty,string"`
  3891  	// CssGroupId: Output only. Immutable. The ID of the CSS group this CSS domain
  3892  	// is affiliated with. Only populated for CSS group users.
  3893  	CssGroupId int64 `json:"cssGroupId,omitempty,string"`
  3894  	// DisplayName: Output only. Immutable. The CSS domain's display name, used
  3895  	// when space is constrained.
  3896  	DisplayName string `json:"displayName,omitempty"`
  3897  	// FullName: Output only. Immutable. The CSS domain's full name.
  3898  	FullName string `json:"fullName,omitempty"`
  3899  	// HomepageUri: Output only. Immutable. The CSS domain's homepage.
  3900  	HomepageUri string `json:"homepageUri,omitempty"`
  3901  	// LabelIds: A list of label IDs that are assigned to this CSS domain by its
  3902  	// CSS group. Only populated for CSS group users.
  3903  	LabelIds googleapi.Int64s `json:"labelIds,omitempty"`
  3904  
  3905  	// ServerResponse contains the HTTP response code and headers from the server.
  3906  	googleapi.ServerResponse `json:"-"`
  3907  	// ForceSendFields is a list of field names (e.g. "CssDomainId") to
  3908  	// unconditionally include in API requests. By default, fields with empty or
  3909  	// default values are omitted from API requests. See
  3910  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3911  	// details.
  3912  	ForceSendFields []string `json:"-"`
  3913  	// NullFields is a list of field names (e.g. "CssDomainId") to include in API
  3914  	// requests with the JSON null value. By default, fields with empty values are
  3915  	// omitted from API requests. See
  3916  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3917  	NullFields []string `json:"-"`
  3918  }
  3919  
  3920  func (s *Css) MarshalJSON() ([]byte, error) {
  3921  	type NoMethod Css
  3922  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3923  }
  3924  
  3925  // CustomAttribute: A message that represents custom attributes. Exactly one of
  3926  // `value` or `groupValues` must be provided. Maximum allowed number of
  3927  // characters for each custom attribute is 10240 (represents sum of characters
  3928  // for name and value). Maximum 2500 custom attributes can be set per merchant,
  3929  // with total size of 102.4kB.
  3930  type CustomAttribute struct {
  3931  	// GroupValues: Subattributes within this attribute group. Exactly one of value
  3932  	// or groupValues must be provided.
  3933  	GroupValues []*CustomAttribute `json:"groupValues,omitempty"`
  3934  	// Name: The name of the attribute. Underscores will be replaced by spaces upon
  3935  	// insertion.
  3936  	Name string `json:"name,omitempty"`
  3937  	// Value: The value of the attribute.
  3938  	Value string `json:"value,omitempty"`
  3939  	// ForceSendFields is a list of field names (e.g. "GroupValues") to
  3940  	// unconditionally include in API requests. By default, fields with empty or
  3941  	// default values are omitted from API requests. See
  3942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3943  	// details.
  3944  	ForceSendFields []string `json:"-"`
  3945  	// NullFields is a list of field names (e.g. "GroupValues") to include in API
  3946  	// requests with the JSON null value. By default, fields with empty values are
  3947  	// omitted from API requests. See
  3948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3949  	NullFields []string `json:"-"`
  3950  }
  3951  
  3952  func (s *CustomAttribute) MarshalJSON() ([]byte, error) {
  3953  	type NoMethod CustomAttribute
  3954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3955  }
  3956  
  3957  type CustomerReturnReason struct {
  3958  	// Description: Description of the reason.
  3959  	Description string `json:"description,omitempty"`
  3960  	// ReasonCode: Code of the return reason. Acceptable values are: -
  3961  	// "betterPriceFound" - "changedMind" - "damagedOrDefectiveItem" -
  3962  	// "didNotMatchDescription" - "doesNotFit" - "expiredItem" -
  3963  	// "incorrectItemReceived" - "noLongerNeeded" - "notSpecified" -
  3964  	// "orderedWrongItem" - "other" - "qualityNotExpected" -
  3965  	// "receivedTooLate" - "undeliverable"
  3966  	ReasonCode string `json:"reasonCode,omitempty"`
  3967  	// ForceSendFields is a list of field names (e.g. "Description") to
  3968  	// unconditionally include in API requests. By default, fields with empty or
  3969  	// default values are omitted from API requests. See
  3970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3971  	// details.
  3972  	ForceSendFields []string `json:"-"`
  3973  	// NullFields is a list of field names (e.g. "Description") to include in API
  3974  	// requests with the JSON null value. By default, fields with empty values are
  3975  	// omitted from API requests. See
  3976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3977  	NullFields []string `json:"-"`
  3978  }
  3979  
  3980  func (s *CustomerReturnReason) MarshalJSON() ([]byte, error) {
  3981  	type NoMethod CustomerReturnReason
  3982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3983  }
  3984  
  3985  type CutoffTime struct {
  3986  	// Hour: Hour of the cutoff time until which an order has to be placed to be
  3987  	// processed in the same day. Required.
  3988  	Hour int64 `json:"hour,omitempty"`
  3989  	// Minute: Minute of the cutoff time until which an order has to be placed to
  3990  	// be processed in the same day. Required.
  3991  	Minute int64 `json:"minute,omitempty"`
  3992  	// Timezone: Timezone identifier for the cutoff time (for example,
  3993  	// "Europe/Zurich"). List of identifiers. Required.
  3994  	Timezone string `json:"timezone,omitempty"`
  3995  	// ForceSendFields is a list of field names (e.g. "Hour") to unconditionally
  3996  	// include in API requests. By default, fields with empty or default values are
  3997  	// omitted from API requests. See
  3998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3999  	// details.
  4000  	ForceSendFields []string `json:"-"`
  4001  	// NullFields is a list of field names (e.g. "Hour") to include in API requests
  4002  	// with the JSON null value. By default, fields with empty values are omitted
  4003  	// from API requests. See
  4004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4005  	NullFields []string `json:"-"`
  4006  }
  4007  
  4008  func (s *CutoffTime) MarshalJSON() ([]byte, error) {
  4009  	type NoMethod CutoffTime
  4010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4011  }
  4012  
  4013  // Datafeed: Datafeed configuration data.
  4014  type Datafeed struct {
  4015  	// AttributeLanguage: The two-letter ISO 639-1 language in which the attributes
  4016  	// are defined in the data feed.
  4017  	AttributeLanguage string `json:"attributeLanguage,omitempty"`
  4018  	// ContentType: Required. The type of data feed. For product inventory feeds,
  4019  	// only feeds for local stores, not online stores, are supported. Acceptable
  4020  	// values are: - "local products" - "product inventory" - "products"
  4021  	ContentType string `json:"contentType,omitempty"`
  4022  	// FetchSchedule: Fetch schedule for the feed file.
  4023  	FetchSchedule *DatafeedFetchSchedule `json:"fetchSchedule,omitempty"`
  4024  	// FileName: Required. The filename of the feed. All feeds must have a unique
  4025  	// file name.
  4026  	FileName string `json:"fileName,omitempty"`
  4027  	// Format: Format of the feed file.
  4028  	Format *DatafeedFormat `json:"format,omitempty"`
  4029  	// Id: Required for update. The ID of the data feed.
  4030  	Id int64 `json:"id,omitempty,string"`
  4031  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4032  	// "content#datafeed"
  4033  	Kind string `json:"kind,omitempty"`
  4034  	// Name: Required for insert. A descriptive name of the data feed.
  4035  	Name string `json:"name,omitempty"`
  4036  	// Targets: The targets this feed should apply to (country, language,
  4037  	// destinations).
  4038  	Targets []*DatafeedTarget `json:"targets,omitempty"`
  4039  
  4040  	// ServerResponse contains the HTTP response code and headers from the server.
  4041  	googleapi.ServerResponse `json:"-"`
  4042  	// ForceSendFields is a list of field names (e.g. "AttributeLanguage") to
  4043  	// unconditionally include in API requests. By default, fields with empty or
  4044  	// default values are omitted from API requests. See
  4045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4046  	// details.
  4047  	ForceSendFields []string `json:"-"`
  4048  	// NullFields is a list of field names (e.g. "AttributeLanguage") to include in
  4049  	// API requests with the JSON null value. By default, fields with empty values
  4050  	// are omitted from API requests. See
  4051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4052  	NullFields []string `json:"-"`
  4053  }
  4054  
  4055  func (s *Datafeed) MarshalJSON() ([]byte, error) {
  4056  	type NoMethod Datafeed
  4057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4058  }
  4059  
  4060  // DatafeedFetchSchedule: The required fields vary based on the frequency of
  4061  // fetching. For a monthly fetch schedule, day_of_month and hour are required.
  4062  // For a weekly fetch schedule, weekday and hour are required. For a daily
  4063  // fetch schedule, only hour is required.
  4064  type DatafeedFetchSchedule struct {
  4065  	// DayOfMonth: The day of the month the feed file should be fetched (1-31).
  4066  	DayOfMonth int64 `json:"dayOfMonth,omitempty"`
  4067  	// FetchUrl: The URL where the feed file can be fetched. Google Merchant Center
  4068  	// will support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP
  4069  	// protocols, so the value will need to be a valid link using one of those four
  4070  	// protocols.
  4071  	FetchUrl string `json:"fetchUrl,omitempty"`
  4072  	// Hour: The hour of the day the feed file should be fetched (0-23).
  4073  	Hour int64 `json:"hour,omitempty"`
  4074  	// MinuteOfHour: The minute of the hour the feed file should be fetched (0-59).
  4075  	// Read-only.
  4076  	MinuteOfHour int64 `json:"minuteOfHour,omitempty"`
  4077  	// Password: An optional password for fetch_url.
  4078  	Password string `json:"password,omitempty"`
  4079  	// Paused: Whether the scheduled fetch is paused or not.
  4080  	Paused bool `json:"paused,omitempty"`
  4081  	// TimeZone: Time zone used for schedule. UTC by default. For example,
  4082  	// "America/Los_Angeles".
  4083  	TimeZone string `json:"timeZone,omitempty"`
  4084  	// Username: An optional user name for fetch_url.
  4085  	Username string `json:"username,omitempty"`
  4086  	// Weekday: The day of the week the feed file should be fetched. Acceptable
  4087  	// values are: - "monday" - "tuesday" - "wednesday" - "thursday" -
  4088  	// "friday" - "saturday" - "sunday"
  4089  	Weekday string `json:"weekday,omitempty"`
  4090  	// ForceSendFields is a list of field names (e.g. "DayOfMonth") to
  4091  	// unconditionally include in API requests. By default, fields with empty or
  4092  	// default values are omitted from API requests. See
  4093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4094  	// details.
  4095  	ForceSendFields []string `json:"-"`
  4096  	// NullFields is a list of field names (e.g. "DayOfMonth") to include in API
  4097  	// requests with the JSON null value. By default, fields with empty values are
  4098  	// omitted from API requests. See
  4099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4100  	NullFields []string `json:"-"`
  4101  }
  4102  
  4103  func (s *DatafeedFetchSchedule) MarshalJSON() ([]byte, error) {
  4104  	type NoMethod DatafeedFetchSchedule
  4105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4106  }
  4107  
  4108  type DatafeedFormat struct {
  4109  	// ColumnDelimiter: Delimiter for the separation of values in a
  4110  	// delimiter-separated values feed. If not specified, the delimiter will be
  4111  	// auto-detected. Ignored for non-DSV data feeds. Acceptable values are: -
  4112  	// "pipe" - "tab" - "tilde"
  4113  	ColumnDelimiter string `json:"columnDelimiter,omitempty"`
  4114  	// FileEncoding: Character encoding scheme of the data feed. If not specified,
  4115  	// the encoding will be auto-detected. Acceptable values are: - "latin-1" -
  4116  	// "utf-16be" - "utf-16le" - "utf-8" - "windows-1252"
  4117  	FileEncoding string `json:"fileEncoding,omitempty"`
  4118  	// QuotingMode: Specifies how double quotes are interpreted. If not specified,
  4119  	// the mode will be auto-detected. Ignored for non-DSV data feeds. Acceptable
  4120  	// values are: - "normal character" - "value quoting"
  4121  	QuotingMode string `json:"quotingMode,omitempty"`
  4122  	// ForceSendFields is a list of field names (e.g. "ColumnDelimiter") to
  4123  	// unconditionally include in API requests. By default, fields with empty or
  4124  	// default values are omitted from API requests. See
  4125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4126  	// details.
  4127  	ForceSendFields []string `json:"-"`
  4128  	// NullFields is a list of field names (e.g. "ColumnDelimiter") to include in
  4129  	// API requests with the JSON null value. By default, fields with empty values
  4130  	// are omitted from API requests. See
  4131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4132  	NullFields []string `json:"-"`
  4133  }
  4134  
  4135  func (s *DatafeedFormat) MarshalJSON() ([]byte, error) {
  4136  	type NoMethod DatafeedFormat
  4137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4138  }
  4139  
  4140  // DatafeedStatus: The status of a datafeed, that is, the result of the last
  4141  // retrieval of the datafeed computed asynchronously when the feed processing
  4142  // is finished.
  4143  type DatafeedStatus struct {
  4144  	// Country: The country for which the status is reported, represented as a CLDR
  4145  	// territory code.
  4146  	Country string `json:"country,omitempty"`
  4147  	// DatafeedId: The ID of the feed for which the status is reported.
  4148  	DatafeedId uint64 `json:"datafeedId,omitempty,string"`
  4149  	// Errors: The list of errors occurring in the feed.
  4150  	Errors []*DatafeedStatusError `json:"errors,omitempty"`
  4151  	// FeedLabel: The feed label status is reported for.
  4152  	FeedLabel string `json:"feedLabel,omitempty"`
  4153  	// ItemsTotal: The number of items in the feed that were processed.
  4154  	ItemsTotal uint64 `json:"itemsTotal,omitempty,string"`
  4155  	// ItemsValid: The number of items in the feed that were valid.
  4156  	ItemsValid uint64 `json:"itemsValid,omitempty,string"`
  4157  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4158  	// "content#datafeedStatus"
  4159  	Kind string `json:"kind,omitempty"`
  4160  	// Language: The two-letter ISO 639-1 language for which the status is
  4161  	// reported.
  4162  	Language string `json:"language,omitempty"`
  4163  	// LastUploadDate: The last date at which the feed was uploaded.
  4164  	LastUploadDate string `json:"lastUploadDate,omitempty"`
  4165  	// ProcessingStatus: The processing status of the feed. Acceptable values are:
  4166  	// - ""failure": The feed could not be processed or all items had errors."
  4167  	// - "in progress": The feed is being processed. - "none": The feed has not
  4168  	// yet been processed. For example, a feed that has never been uploaded will
  4169  	// have this processing status. - "success": The feed was processed
  4170  	// successfully, though some items might have had errors.
  4171  	ProcessingStatus string `json:"processingStatus,omitempty"`
  4172  	// Warnings: The list of errors occurring in the feed.
  4173  	Warnings []*DatafeedStatusError `json:"warnings,omitempty"`
  4174  
  4175  	// ServerResponse contains the HTTP response code and headers from the server.
  4176  	googleapi.ServerResponse `json:"-"`
  4177  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  4178  	// include in API requests. By default, fields with empty or default values are
  4179  	// omitted from API requests. See
  4180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4181  	// details.
  4182  	ForceSendFields []string `json:"-"`
  4183  	// NullFields is a list of field names (e.g. "Country") to include in API
  4184  	// requests with the JSON null value. By default, fields with empty values are
  4185  	// omitted from API requests. See
  4186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4187  	NullFields []string `json:"-"`
  4188  }
  4189  
  4190  func (s *DatafeedStatus) MarshalJSON() ([]byte, error) {
  4191  	type NoMethod DatafeedStatus
  4192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4193  }
  4194  
  4195  // DatafeedStatusError: An error occurring in the feed, like "invalid price".
  4196  type DatafeedStatusError struct {
  4197  	// Code: The code of the error, for example, "validation/invalid_value".
  4198  	Code string `json:"code,omitempty"`
  4199  	// Count: The number of occurrences of the error in the feed.
  4200  	Count uint64 `json:"count,omitempty,string"`
  4201  	// Examples: A list of example occurrences of the error, grouped by product.
  4202  	Examples []*DatafeedStatusExample `json:"examples,omitempty"`
  4203  	// Message: The error message, for example, "Invalid price".
  4204  	Message string `json:"message,omitempty"`
  4205  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4206  	// include in API requests. By default, fields with empty or default values are
  4207  	// omitted from API requests. See
  4208  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4209  	// details.
  4210  	ForceSendFields []string `json:"-"`
  4211  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4212  	// with the JSON null value. By default, fields with empty values are omitted
  4213  	// from API requests. See
  4214  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4215  	NullFields []string `json:"-"`
  4216  }
  4217  
  4218  func (s *DatafeedStatusError) MarshalJSON() ([]byte, error) {
  4219  	type NoMethod DatafeedStatusError
  4220  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4221  }
  4222  
  4223  // DatafeedStatusExample: An example occurrence for a particular error.
  4224  type DatafeedStatusExample struct {
  4225  	// ItemId: The ID of the example item.
  4226  	ItemId string `json:"itemId,omitempty"`
  4227  	// LineNumber: Line number in the data feed where the example is found.
  4228  	LineNumber uint64 `json:"lineNumber,omitempty,string"`
  4229  	// Value: The problematic value.
  4230  	Value string `json:"value,omitempty"`
  4231  	// ForceSendFields is a list of field names (e.g. "ItemId") to unconditionally
  4232  	// include in API requests. By default, fields with empty or default values are
  4233  	// omitted from API requests. See
  4234  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4235  	// details.
  4236  	ForceSendFields []string `json:"-"`
  4237  	// NullFields is a list of field names (e.g. "ItemId") to include in API
  4238  	// requests with the JSON null value. By default, fields with empty values are
  4239  	// omitted from API requests. See
  4240  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4241  	NullFields []string `json:"-"`
  4242  }
  4243  
  4244  func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error) {
  4245  	type NoMethod DatafeedStatusExample
  4246  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4247  }
  4248  
  4249  type DatafeedTarget struct {
  4250  	// Country: Deprecated. Use `feedLabel` instead. The country where the items in
  4251  	// the feed will be included in the search index, represented as a CLDR
  4252  	// territory code.
  4253  	Country string `json:"country,omitempty"`
  4254  	// ExcludedDestinations: The list of destinations to exclude
  4255  	// (//support.google.com/merchants/answer/6324486) for this target (corresponds
  4256  	// to cleared check boxes in Merchant Center). Products that are excluded from
  4257  	// all destinations for more than 7 days are automatically deleted.
  4258  	ExcludedDestinations []string `json:"excludedDestinations,omitempty"`
  4259  	// FeedLabel: Feed label for the DatafeedTarget. Either `country` or
  4260  	// `feedLabel` is required. If both `feedLabel` and `country` is specified, the
  4261  	// values must match. Must be less than or equal to 20 uppercase letters (A-Z),
  4262  	// numbers (0-9), and dashes (-).
  4263  	FeedLabel string `json:"feedLabel,omitempty"`
  4264  	// IncludedDestinations: The list of destinations to include
  4265  	// (//support.google.com/merchants/answer/7501026) for this target (corresponds
  4266  	// to checked check boxes in Merchant Center). Default destinations are always
  4267  	// included unless provided in `excludedDestinations`.
  4268  	IncludedDestinations []string `json:"includedDestinations,omitempty"`
  4269  	// Language: The two-letter ISO 639-1 language of the items in the feed. Must
  4270  	// be a valid language for `targets[].country`.
  4271  	Language string `json:"language,omitempty"`
  4272  	// TargetCountries: The countries where the items may be displayed. Represented
  4273  	// as a CLDR territory code. Will be ignored for "product inventory" feeds.
  4274  	TargetCountries []string `json:"targetCountries,omitempty"`
  4275  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  4276  	// include in API requests. By default, fields with empty or default values are
  4277  	// omitted from API requests. See
  4278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4279  	// details.
  4280  	ForceSendFields []string `json:"-"`
  4281  	// NullFields is a list of field names (e.g. "Country") to include in API
  4282  	// requests with the JSON null value. By default, fields with empty values are
  4283  	// omitted from API requests. See
  4284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4285  	NullFields []string `json:"-"`
  4286  }
  4287  
  4288  func (s *DatafeedTarget) MarshalJSON() ([]byte, error) {
  4289  	type NoMethod DatafeedTarget
  4290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4291  }
  4292  
  4293  type DatafeedsCustomBatchRequest struct {
  4294  	// Entries: The request entries to be processed in the batch.
  4295  	Entries []*DatafeedsCustomBatchRequestEntry `json:"entries,omitempty"`
  4296  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4297  	// include in API requests. By default, fields with empty or default values are
  4298  	// omitted from API requests. See
  4299  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4300  	// details.
  4301  	ForceSendFields []string `json:"-"`
  4302  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4303  	// requests with the JSON null value. By default, fields with empty values are
  4304  	// omitted from API requests. See
  4305  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4306  	NullFields []string `json:"-"`
  4307  }
  4308  
  4309  func (s *DatafeedsCustomBatchRequest) MarshalJSON() ([]byte, error) {
  4310  	type NoMethod DatafeedsCustomBatchRequest
  4311  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4312  }
  4313  
  4314  // DatafeedsCustomBatchRequestEntry: A batch entry encoding a single non-batch
  4315  // datafeeds request.
  4316  type DatafeedsCustomBatchRequestEntry struct {
  4317  	// BatchId: An entry ID, unique within the batch request.
  4318  	BatchId int64 `json:"batchId,omitempty"`
  4319  	// Datafeed: The data feed to insert.
  4320  	Datafeed *Datafeed `json:"datafeed,omitempty"`
  4321  	// DatafeedId: The ID of the data feed to get, delete or fetch.
  4322  	DatafeedId uint64 `json:"datafeedId,omitempty,string"`
  4323  	// MerchantId: The ID of the managing account.
  4324  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  4325  	// Method: The method of the batch entry. Acceptable values are: - "delete" -
  4326  	// "fetchNow" - "get" - "insert" - "update"
  4327  	Method string `json:"method,omitempty"`
  4328  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
  4329  	// include in API requests. By default, fields with empty or default values are
  4330  	// omitted from API requests. See
  4331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4332  	// details.
  4333  	ForceSendFields []string `json:"-"`
  4334  	// NullFields is a list of field names (e.g. "BatchId") to include in API
  4335  	// requests with the JSON null value. By default, fields with empty values are
  4336  	// omitted from API requests. See
  4337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4338  	NullFields []string `json:"-"`
  4339  }
  4340  
  4341  func (s *DatafeedsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
  4342  	type NoMethod DatafeedsCustomBatchRequestEntry
  4343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4344  }
  4345  
  4346  type DatafeedsCustomBatchResponse struct {
  4347  	// Entries: The result of the execution of the batch requests.
  4348  	Entries []*DatafeedsCustomBatchResponseEntry `json:"entries,omitempty"`
  4349  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4350  	// "content#datafeedsCustomBatchResponse".
  4351  	Kind string `json:"kind,omitempty"`
  4352  
  4353  	// ServerResponse contains the HTTP response code and headers from the server.
  4354  	googleapi.ServerResponse `json:"-"`
  4355  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4356  	// include in API requests. By default, fields with empty or default values are
  4357  	// omitted from API requests. See
  4358  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4359  	// details.
  4360  	ForceSendFields []string `json:"-"`
  4361  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4362  	// requests with the JSON null value. By default, fields with empty values are
  4363  	// omitted from API requests. See
  4364  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4365  	NullFields []string `json:"-"`
  4366  }
  4367  
  4368  func (s *DatafeedsCustomBatchResponse) MarshalJSON() ([]byte, error) {
  4369  	type NoMethod DatafeedsCustomBatchResponse
  4370  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4371  }
  4372  
  4373  // DatafeedsCustomBatchResponseEntry: A batch entry encoding a single non-batch
  4374  // datafeeds response.
  4375  type DatafeedsCustomBatchResponseEntry struct {
  4376  	// BatchId: The ID of the request entry this entry responds to.
  4377  	BatchId int64 `json:"batchId,omitempty"`
  4378  	// Datafeed: The requested data feed. Defined if and only if the request was
  4379  	// successful.
  4380  	Datafeed *Datafeed `json:"datafeed,omitempty"`
  4381  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
  4382  	// errors fail the whole request.
  4383  	Errors *Errors `json:"errors,omitempty"`
  4384  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
  4385  	// include in API requests. By default, fields with empty or default values are
  4386  	// omitted from API requests. See
  4387  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4388  	// details.
  4389  	ForceSendFields []string `json:"-"`
  4390  	// NullFields is a list of field names (e.g. "BatchId") to include in API
  4391  	// requests with the JSON null value. By default, fields with empty values are
  4392  	// omitted from API requests. See
  4393  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4394  	NullFields []string `json:"-"`
  4395  }
  4396  
  4397  func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
  4398  	type NoMethod DatafeedsCustomBatchResponseEntry
  4399  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4400  }
  4401  
  4402  type DatafeedsFetchNowResponse struct {
  4403  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4404  	// "content#datafeedsFetchNowResponse".
  4405  	Kind string `json:"kind,omitempty"`
  4406  
  4407  	// ServerResponse contains the HTTP response code and headers from the server.
  4408  	googleapi.ServerResponse `json:"-"`
  4409  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  4410  	// include in API requests. By default, fields with empty or default values are
  4411  	// omitted from API requests. See
  4412  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4413  	// details.
  4414  	ForceSendFields []string `json:"-"`
  4415  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  4416  	// with the JSON null value. By default, fields with empty values are omitted
  4417  	// from API requests. See
  4418  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4419  	NullFields []string `json:"-"`
  4420  }
  4421  
  4422  func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error) {
  4423  	type NoMethod DatafeedsFetchNowResponse
  4424  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4425  }
  4426  
  4427  type DatafeedsListResponse struct {
  4428  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4429  	// "content#datafeedsListResponse".
  4430  	Kind string `json:"kind,omitempty"`
  4431  	// NextPageToken: The token for the retrieval of the next page of datafeeds.
  4432  	NextPageToken string      `json:"nextPageToken,omitempty"`
  4433  	Resources     []*Datafeed `json:"resources,omitempty"`
  4434  
  4435  	// ServerResponse contains the HTTP response code and headers from the server.
  4436  	googleapi.ServerResponse `json:"-"`
  4437  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  4438  	// include in API requests. By default, fields with empty or default values are
  4439  	// omitted from API requests. See
  4440  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4441  	// details.
  4442  	ForceSendFields []string `json:"-"`
  4443  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  4444  	// with the JSON null value. By default, fields with empty values are omitted
  4445  	// from API requests. See
  4446  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4447  	NullFields []string `json:"-"`
  4448  }
  4449  
  4450  func (s *DatafeedsListResponse) MarshalJSON() ([]byte, error) {
  4451  	type NoMethod DatafeedsListResponse
  4452  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4453  }
  4454  
  4455  type DatafeedstatusesCustomBatchRequest struct {
  4456  	// Entries: The request entries to be processed in the batch.
  4457  	Entries []*DatafeedstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
  4458  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4459  	// include in API requests. By default, fields with empty or default values are
  4460  	// omitted from API requests. See
  4461  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4462  	// details.
  4463  	ForceSendFields []string `json:"-"`
  4464  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4465  	// requests with the JSON null value. By default, fields with empty values are
  4466  	// omitted from API requests. See
  4467  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4468  	NullFields []string `json:"-"`
  4469  }
  4470  
  4471  func (s *DatafeedstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
  4472  	type NoMethod DatafeedstatusesCustomBatchRequest
  4473  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4474  }
  4475  
  4476  // DatafeedstatusesCustomBatchRequestEntry: A batch entry encoding a single
  4477  // non-batch datafeedstatuses request.
  4478  type DatafeedstatusesCustomBatchRequestEntry struct {
  4479  	// BatchId: An entry ID, unique within the batch request.
  4480  	BatchId int64 `json:"batchId,omitempty"`
  4481  	// Country: Deprecated. Use `feedLabel` instead. The country to get the
  4482  	// datafeed status for. If this parameter is provided, then `language` must
  4483  	// also be provided. Note that for multi-target datafeeds this parameter is
  4484  	// required.
  4485  	Country string `json:"country,omitempty"`
  4486  	// DatafeedId: The ID of the data feed to get.
  4487  	DatafeedId uint64 `json:"datafeedId,omitempty,string"`
  4488  	// FeedLabel: The feed label to get the datafeed status for. If this parameter
  4489  	// is provided, then `language` must also be provided. Note that for
  4490  	// multi-target datafeeds this parameter is required.
  4491  	FeedLabel string `json:"feedLabel,omitempty"`
  4492  	// Language: The language to get the datafeed status for. If this parameter is
  4493  	// provided then `country` must also be provided. Note that for multi-target
  4494  	// datafeeds this parameter is required.
  4495  	Language string `json:"language,omitempty"`
  4496  	// MerchantId: The ID of the managing account.
  4497  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  4498  	// Method: The method of the batch entry. Acceptable values are: - "get"
  4499  	Method string `json:"method,omitempty"`
  4500  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
  4501  	// include in API requests. By default, fields with empty or default values are
  4502  	// omitted from API requests. See
  4503  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4504  	// details.
  4505  	ForceSendFields []string `json:"-"`
  4506  	// NullFields is a list of field names (e.g. "BatchId") to include in API
  4507  	// requests with the JSON null value. By default, fields with empty values are
  4508  	// omitted from API requests. See
  4509  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4510  	NullFields []string `json:"-"`
  4511  }
  4512  
  4513  func (s *DatafeedstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
  4514  	type NoMethod DatafeedstatusesCustomBatchRequestEntry
  4515  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4516  }
  4517  
  4518  type DatafeedstatusesCustomBatchResponse struct {
  4519  	// Entries: The result of the execution of the batch requests.
  4520  	Entries []*DatafeedstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
  4521  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4522  	// "content#datafeedstatusesCustomBatchResponse".
  4523  	Kind string `json:"kind,omitempty"`
  4524  
  4525  	// ServerResponse contains the HTTP response code and headers from the server.
  4526  	googleapi.ServerResponse `json:"-"`
  4527  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  4528  	// include in API requests. By default, fields with empty or default values are
  4529  	// omitted from API requests. See
  4530  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4531  	// details.
  4532  	ForceSendFields []string `json:"-"`
  4533  	// NullFields is a list of field names (e.g. "Entries") to include in API
  4534  	// requests with the JSON null value. By default, fields with empty values are
  4535  	// omitted from API requests. See
  4536  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4537  	NullFields []string `json:"-"`
  4538  }
  4539  
  4540  func (s *DatafeedstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
  4541  	type NoMethod DatafeedstatusesCustomBatchResponse
  4542  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4543  }
  4544  
  4545  // DatafeedstatusesCustomBatchResponseEntry: A batch entry encoding a single
  4546  // non-batch datafeedstatuses response.
  4547  type DatafeedstatusesCustomBatchResponseEntry struct {
  4548  	// BatchId: The ID of the request entry this entry responds to.
  4549  	BatchId int64 `json:"batchId,omitempty"`
  4550  	// DatafeedStatus: The requested data feed status. Defined if and only if the
  4551  	// request was successful.
  4552  	DatafeedStatus *DatafeedStatus `json:"datafeedStatus,omitempty"`
  4553  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
  4554  	// errors fail the whole request.
  4555  	Errors *Errors `json:"errors,omitempty"`
  4556  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
  4557  	// include in API requests. By default, fields with empty or default values are
  4558  	// omitted from API requests. See
  4559  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4560  	// details.
  4561  	ForceSendFields []string `json:"-"`
  4562  	// NullFields is a list of field names (e.g. "BatchId") to include in API
  4563  	// requests with the JSON null value. By default, fields with empty values are
  4564  	// omitted from API requests. See
  4565  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4566  	NullFields []string `json:"-"`
  4567  }
  4568  
  4569  func (s *DatafeedstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
  4570  	type NoMethod DatafeedstatusesCustomBatchResponseEntry
  4571  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4572  }
  4573  
  4574  type DatafeedstatusesListResponse struct {
  4575  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  4576  	// "content#datafeedstatusesListResponse".
  4577  	Kind string `json:"kind,omitempty"`
  4578  	// NextPageToken: The token for the retrieval of the next page of datafeed
  4579  	// statuses.
  4580  	NextPageToken string            `json:"nextPageToken,omitempty"`
  4581  	Resources     []*DatafeedStatus `json:"resources,omitempty"`
  4582  
  4583  	// ServerResponse contains the HTTP response code and headers from the server.
  4584  	googleapi.ServerResponse `json:"-"`
  4585  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  4586  	// include in API requests. By default, fields with empty or default values are
  4587  	// omitted from API requests. See
  4588  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4589  	// details.
  4590  	ForceSendFields []string `json:"-"`
  4591  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  4592  	// with the JSON null value. By default, fields with empty values are omitted
  4593  	// from API requests. See
  4594  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4595  	NullFields []string `json:"-"`
  4596  }
  4597  
  4598  func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error) {
  4599  	type NoMethod DatafeedstatusesListResponse
  4600  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4601  }
  4602  
  4603  // Date: Represents a whole or partial calendar date, such as a birthday. The
  4604  // time of day and time zone are either specified elsewhere or are
  4605  // insignificant. The date is relative to the Gregorian Calendar. This can
  4606  // represent one of the following: * A full date, with non-zero year, month,
  4607  // and day values. * A month and day, with a zero year (for example, an
  4608  // anniversary). * A year on its own, with a zero month and a zero day. * A
  4609  // year and month, with a zero day (for example, a credit card expiration
  4610  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
  4611  // google.protobuf.Timestamp
  4612  type Date struct {
  4613  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
  4614  	// or 0 to specify a year by itself or a year and month where the day isn't
  4615  	// significant.
  4616  	Day int64 `json:"day,omitempty"`
  4617  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
  4618  	// a month and day.
  4619  	Month int64 `json:"month,omitempty"`
  4620  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
  4621  	// without a year.
  4622  	Year int64 `json:"year,omitempty"`
  4623  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  4624  	// include in API requests. By default, fields with empty or default values are
  4625  	// omitted from API requests. See
  4626  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4627  	// details.
  4628  	ForceSendFields []string `json:"-"`
  4629  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  4630  	// with the JSON null value. By default, fields with empty values are omitted
  4631  	// from API requests. See
  4632  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4633  	NullFields []string `json:"-"`
  4634  }
  4635  
  4636  func (s *Date) MarshalJSON() ([]byte, error) {
  4637  	type NoMethod Date
  4638  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4639  }
  4640  
  4641  // DateTime: Represents civil time (or occasionally physical time). This type
  4642  // can represent a civil time in one of a few possible ways: * When utc_offset
  4643  // is set and time_zone is unset: a civil time on a calendar day with a
  4644  // particular offset from UTC. * When time_zone is set and utc_offset is unset:
  4645  // a civil time on a calendar day in a particular time zone. * When neither
  4646  // time_zone nor utc_offset is set: a civil time on a calendar day in local
  4647  // time. The date is relative to the Proleptic Gregorian Calendar. If year,
  4648  // month, or day are 0, the DateTime is considered not to have a specific year,
  4649  // month, or day respectively. This type may also be used to represent a
  4650  // physical time if all the date and time fields are set and either case of the
  4651  // `time_offset` oneof is set. Consider using `Timestamp` message for physical
  4652  // time instead. If your use case also would like to store the user's timezone,
  4653  // that can be done in another field. This type is more flexible than some
  4654  // applications may want. Make sure to document and validate your application's
  4655  // limitations.
  4656  type DateTime struct {
  4657  	// Day: Optional. Day of month. Must be from 1 to 31 and valid for the year and
  4658  	// month, or 0 if specifying a datetime without a day.
  4659  	Day int64 `json:"day,omitempty"`
  4660  	// Hours: Optional. Hours of day in 24 hour format. Should be from 0 to 23,
  4661  	// defaults to 0 (midnight). An API may choose to allow the value "24:00:00"
  4662  	// for scenarios like business closing time.
  4663  	Hours int64 `json:"hours,omitempty"`
  4664  	// Minutes: Optional. Minutes of hour of day. Must be from 0 to 59, defaults to
  4665  	// 0.
  4666  	Minutes int64 `json:"minutes,omitempty"`
  4667  	// Month: Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
  4668  	// datetime without a month.
  4669  	Month int64 `json:"month,omitempty"`
  4670  	// Nanos: Optional. Fractions of seconds in nanoseconds. Must be from 0 to
  4671  	// 999,999,999, defaults to 0.
  4672  	Nanos int64 `json:"nanos,omitempty"`
  4673  	// Seconds: Optional. Seconds of minutes of the time. Must normally be from 0
  4674  	// to 59, defaults to 0. An API may allow the value 60 if it allows
  4675  	// leap-seconds.
  4676  	Seconds int64 `json:"seconds,omitempty"`
  4677  	// TimeZone: Time zone.
  4678  	TimeZone *TimeZone `json:"timeZone,omitempty"`
  4679  	// UtcOffset: UTC offset. Must be whole seconds, between -18 hours and +18
  4680  	// hours. For example, a UTC offset of -4:00 would be represented as { seconds:
  4681  	// -14400 }.
  4682  	UtcOffset string `json:"utcOffset,omitempty"`
  4683  	// Year: Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
  4684  	// datetime without a year.
  4685  	Year int64 `json:"year,omitempty"`
  4686  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  4687  	// include in API requests. By default, fields with empty or default values are
  4688  	// omitted from API requests. See
  4689  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4690  	// details.
  4691  	ForceSendFields []string `json:"-"`
  4692  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  4693  	// with the JSON null value. By default, fields with empty values are omitted
  4694  	// from API requests. See
  4695  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4696  	NullFields []string `json:"-"`
  4697  }
  4698  
  4699  func (s *DateTime) MarshalJSON() ([]byte, error) {
  4700  	type NoMethod DateTime
  4701  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4702  }
  4703  
  4704  // DeliveryArea: A delivery area for the product. Only one of `countryCode` or
  4705  // `postalCodeRange` must be set.
  4706  type DeliveryArea struct {
  4707  	// CountryCode: Required. The country that the product can be delivered to.
  4708  	// Submit a unicode CLDR region
  4709  	// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) such as
  4710  	// `US` or `CH`.
  4711  	CountryCode string `json:"countryCode,omitempty"`
  4712  	// PostalCodeRange: A postal code, postal code range or postal code prefix that
  4713  	// defines this area. Limited to US and AUS.
  4714  	PostalCodeRange *DeliveryAreaPostalCodeRange `json:"postalCodeRange,omitempty"`
  4715  	// RegionCode: A state, territory, or prefecture. This is supported for the
  4716  	// United States, Australia, and Japan. Provide a subdivision code from the ISO
  4717  	// 3166-2 code tables (US (https://en.wikipedia.org/wiki/ISO_3166-2:US), AU
  4718  	// (https://en.wikipedia.org/wiki/ISO_3166-2:AU), or JP
  4719  	// (https://en.wikipedia.org/wiki/ISO_3166-2:JP)) without country prefix (for
  4720  	// example, "NY", "NSW", "03").
  4721  	RegionCode string `json:"regionCode,omitempty"`
  4722  	// ForceSendFields is a list of field names (e.g. "CountryCode") to
  4723  	// unconditionally include in API requests. By default, fields with empty or
  4724  	// default values are omitted from API requests. See
  4725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4726  	// details.
  4727  	ForceSendFields []string `json:"-"`
  4728  	// NullFields is a list of field names (e.g. "CountryCode") to include in API
  4729  	// requests with the JSON null value. By default, fields with empty values are
  4730  	// omitted from API requests. See
  4731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4732  	NullFields []string `json:"-"`
  4733  }
  4734  
  4735  func (s *DeliveryArea) MarshalJSON() ([]byte, error) {
  4736  	type NoMethod DeliveryArea
  4737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4738  }
  4739  
  4740  // DeliveryAreaPostalCodeRange: A range of postal codes that defines the
  4741  // delivery area. Only set `firstPostalCode` when specifying a single postal
  4742  // code.
  4743  type DeliveryAreaPostalCodeRange struct {
  4744  	// FirstPostalCode: Required. A postal code or a pattern of the form prefix*
  4745  	// denoting the inclusive lower bound of the range defining the area. Examples
  4746  	// values: "94108", "9410*", "9*".
  4747  	FirstPostalCode string `json:"firstPostalCode,omitempty"`
  4748  	// LastPostalCode: A postal code or a pattern of the form prefix* denoting the
  4749  	// inclusive upper bound of the range defining the area (for example [070* -
  4750  	// 078*] results in the range [07000 - 07899]). It must have the same length as
  4751  	// `firstPostalCode`: if `firstPostalCode` is a postal code then
  4752  	// `lastPostalCode` must be a postal code too; if firstPostalCode is a pattern
  4753  	// then `lastPostalCode` must be a pattern with the same prefix length. Ignored
  4754  	// if not set, then the area is defined as being all the postal codes matching
  4755  	// `firstPostalCode`.
  4756  	LastPostalCode string `json:"lastPostalCode,omitempty"`
  4757  	// ForceSendFields is a list of field names (e.g. "FirstPostalCode") to
  4758  	// unconditionally include in API requests. By default, fields with empty or
  4759  	// default values are omitted from API requests. See
  4760  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4761  	// details.
  4762  	ForceSendFields []string `json:"-"`
  4763  	// NullFields is a list of field names (e.g. "FirstPostalCode") to include in
  4764  	// API requests with the JSON null value. By default, fields with empty values
  4765  	// are omitted from API requests. See
  4766  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4767  	NullFields []string `json:"-"`
  4768  }
  4769  
  4770  func (s *DeliveryAreaPostalCodeRange) MarshalJSON() ([]byte, error) {
  4771  	type NoMethod DeliveryAreaPostalCodeRange
  4772  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4773  }
  4774  
  4775  type DeliveryTime struct {
  4776  	// CutoffTime: Business days cutoff time definition. If not configured, the
  4777  	// cutoff time will be defaulted to 8AM PST. If local delivery, use
  4778  	// Service.StoreConfig.CutoffConfig.
  4779  	CutoffTime *CutoffTime `json:"cutoffTime,omitempty"`
  4780  	// HandlingBusinessDayConfig: The business days during which orders can be
  4781  	// handled. If not provided, Monday to Friday business days will be assumed.
  4782  	HandlingBusinessDayConfig *BusinessDayConfig `json:"handlingBusinessDayConfig,omitempty"`
  4783  	// HolidayCutoffs: Holiday cutoff definitions. If configured, they specify
  4784  	// order cutoff times for holiday-specific shipping.
  4785  	HolidayCutoffs []*HolidayCutoff `json:"holidayCutoffs,omitempty"`
  4786  	// MaxHandlingTimeInDays: Maximum number of business days spent before an order
  4787  	// is shipped. 0 means same day shipped, 1 means next day shipped. Must be
  4788  	// greater than or equal to `minHandlingTimeInDays`.
  4789  	MaxHandlingTimeInDays int64 `json:"maxHandlingTimeInDays,omitempty"`
  4790  	// MaxTransitTimeInDays: Maximum number of business days that are spent in
  4791  	// transit. 0 means same day delivery, 1 means next day delivery. Must be
  4792  	// greater than or equal to `minTransitTimeInDays`.
  4793  	MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"`
  4794  	// MinHandlingTimeInDays: Minimum number of business days spent before an order
  4795  	// is shipped. 0 means same day shipped, 1 means next day shipped.
  4796  	MinHandlingTimeInDays int64 `json:"minHandlingTimeInDays,omitempty"`
  4797  	// MinTransitTimeInDays: Minimum number of business days that are spent in
  4798  	// transit. 0 means same day delivery, 1 means next day delivery. Either
  4799  	// `{min,max}TransitTimeInDays` or `transitTimeTable` must be set, but not
  4800  	// both.
  4801  	MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"`
  4802  	// TransitBusinessDayConfig: The business days during which orders can be
  4803  	// in-transit. If not provided, Monday to Friday business days will be assumed.
  4804  	TransitBusinessDayConfig *BusinessDayConfig `json:"transitBusinessDayConfig,omitempty"`
  4805  	// TransitTimeTable: Transit time table, number of business days spent in
  4806  	// transit based on row and column dimensions. Either
  4807  	// `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but not both.
  4808  	TransitTimeTable *TransitTable `json:"transitTimeTable,omitempty"`
  4809  	// WarehouseBasedDeliveryTimes: Indicates that the delivery time should be
  4810  	// calculated per warehouse (shipping origin location) based on the settings of
  4811  	// the selected carrier. When set, no other transit time related field in
  4812  	// DeliveryTime should be set.
  4813  	WarehouseBasedDeliveryTimes []*WarehouseBasedDeliveryTime `json:"warehouseBasedDeliveryTimes,omitempty"`
  4814  	// ForceSendFields is a list of field names (e.g. "CutoffTime") to
  4815  	// unconditionally include in API requests. By default, fields with empty or
  4816  	// default values are omitted from API requests. See
  4817  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4818  	// details.
  4819  	ForceSendFields []string `json:"-"`
  4820  	// NullFields is a list of field names (e.g. "CutoffTime") to include in API
  4821  	// requests with the JSON null value. By default, fields with empty values are
  4822  	// omitted from API requests. See
  4823  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4824  	NullFields []string `json:"-"`
  4825  }
  4826  
  4827  func (s *DeliveryTime) MarshalJSON() ([]byte, error) {
  4828  	type NoMethod DeliveryTime
  4829  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4830  }
  4831  
  4832  // Distance: Distance represented by an integer and unit.
  4833  type Distance struct {
  4834  	// Unit: The distance unit. Acceptable values are `None`, `Miles`, and
  4835  	// `Kilometers`.
  4836  	Unit string `json:"unit,omitempty"`
  4837  	// Value: The distance represented as a number.
  4838  	Value int64 `json:"value,omitempty,string"`
  4839  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
  4840  	// include in API requests. By default, fields with empty or default values are
  4841  	// omitted from API requests. See
  4842  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4843  	// details.
  4844  	ForceSendFields []string `json:"-"`
  4845  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
  4846  	// with the JSON null value. By default, fields with empty values are omitted
  4847  	// from API requests. See
  4848  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4849  	NullFields []string `json:"-"`
  4850  }
  4851  
  4852  func (s *Distance) MarshalJSON() ([]byte, error) {
  4853  	type NoMethod Distance
  4854  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4855  }
  4856  
  4857  // ECommercePlatformLinkInfo: Additional information required for
  4858  // E_COMMERCE_PLATFORM link type.
  4859  type ECommercePlatformLinkInfo struct {
  4860  	// ExternalAccountId: The id used by the third party service provider to
  4861  	// identify the merchant.
  4862  	ExternalAccountId string `json:"externalAccountId,omitempty"`
  4863  	// ForceSendFields is a list of field names (e.g. "ExternalAccountId") to
  4864  	// unconditionally include in API requests. By default, fields with empty or
  4865  	// default values are omitted from API requests. See
  4866  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4867  	// details.
  4868  	ForceSendFields []string `json:"-"`
  4869  	// NullFields is a list of field names (e.g. "ExternalAccountId") to include in
  4870  	// API requests with the JSON null value. By default, fields with empty values
  4871  	// are omitted from API requests. See
  4872  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4873  	NullFields []string `json:"-"`
  4874  }
  4875  
  4876  func (s *ECommercePlatformLinkInfo) MarshalJSON() ([]byte, error) {
  4877  	type NoMethod ECommercePlatformLinkInfo
  4878  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4879  }
  4880  
  4881  // Error: An error returned by the API.
  4882  type Error struct {
  4883  	// Domain: The domain of the error.
  4884  	Domain string `json:"domain,omitempty"`
  4885  	// Message: A description of the error.
  4886  	Message string `json:"message,omitempty"`
  4887  	// Reason: The error code.
  4888  	Reason string `json:"reason,omitempty"`
  4889  	// ForceSendFields is a list of field names (e.g. "Domain") to unconditionally
  4890  	// include in API requests. By default, fields with empty or default values are
  4891  	// omitted from API requests. See
  4892  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4893  	// details.
  4894  	ForceSendFields []string `json:"-"`
  4895  	// NullFields is a list of field names (e.g. "Domain") to include in API
  4896  	// requests with the JSON null value. By default, fields with empty values are
  4897  	// omitted from API requests. See
  4898  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4899  	NullFields []string `json:"-"`
  4900  }
  4901  
  4902  func (s *Error) MarshalJSON() ([]byte, error) {
  4903  	type NoMethod Error
  4904  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4905  }
  4906  
  4907  // Errors: A list of errors returned by a failed batch entry.
  4908  type Errors struct {
  4909  	// Code: The HTTP status of the first error in `errors`.
  4910  	Code int64 `json:"code,omitempty"`
  4911  	// Errors: A list of errors.
  4912  	Errors []*Error `json:"errors,omitempty"`
  4913  	// Message: The message of the first error in `errors`.
  4914  	Message string `json:"message,omitempty"`
  4915  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4916  	// include in API requests. By default, fields with empty or default values are
  4917  	// omitted from API requests. See
  4918  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4919  	// details.
  4920  	ForceSendFields []string `json:"-"`
  4921  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4922  	// with the JSON null value. By default, fields with empty values are omitted
  4923  	// from API requests. See
  4924  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4925  	NullFields []string `json:"-"`
  4926  }
  4927  
  4928  func (s *Errors) MarshalJSON() ([]byte, error) {
  4929  	type NoMethod Errors
  4930  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4931  }
  4932  
  4933  // ExternalAction: Action that is implemented and performed outside of the
  4934  // third-party application. It should redirect the merchant to the provided URL
  4935  // of an external system where they can perform the action. For example to
  4936  // request a review in the Merchant Center.
  4937  type ExternalAction struct {
  4938  	// Type: The type of external action.
  4939  	//
  4940  	// Possible values:
  4941  	//   "EXTERNAL_ACTION_TYPE_UNSPECIFIED" - Default value. Will never be provided
  4942  	// by the API.
  4943  	//   "REVIEW_PRODUCT_ISSUE_IN_MERCHANT_CENTER" - Redirect to Merchant Center
  4944  	// where the merchant can request a review for issue related to their product.
  4945  	//   "REVIEW_ACCOUNT_ISSUE_IN_MERCHANT_CENTER" - Redirect to Merchant Center
  4946  	// where the merchant can request a review for issue related to their account.
  4947  	//   "LEGAL_APPEAL_IN_HELP_CENTER" - Redirect to the form in Help Center where
  4948  	// the merchant can request a legal appeal for the issue.
  4949  	//   "VERIFY_IDENTITY_IN_MERCHANT_CENTER" - Redirect to Merchant Center where
  4950  	// the merchant can perform identity verification.
  4951  	Type string `json:"type,omitempty"`
  4952  	// Uri: URL to external system, for example Merchant Center, where the merchant
  4953  	// can perform the action.
  4954  	Uri string `json:"uri,omitempty"`
  4955  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  4956  	// include in API requests. By default, fields with empty or default values are
  4957  	// omitted from API requests. See
  4958  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4959  	// details.
  4960  	ForceSendFields []string `json:"-"`
  4961  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  4962  	// with the JSON null value. By default, fields with empty values are omitted
  4963  	// from API requests. See
  4964  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4965  	NullFields []string `json:"-"`
  4966  }
  4967  
  4968  func (s *ExternalAction) MarshalJSON() ([]byte, error) {
  4969  	type NoMethod ExternalAction
  4970  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4971  }
  4972  
  4973  // FreeListingsProgramStatus: Response message for
  4974  // GetFreeListingsProgramStatus.
  4975  type FreeListingsProgramStatus struct {
  4976  	// GlobalState: State of the program. `ENABLED` if there are offers for at
  4977  	// least one region.
  4978  	//
  4979  	// Possible values:
  4980  	//   "PROGRAM_STATE_UNSPECIFIED" - State is unknown.
  4981  	//   "NOT_ENABLED" - Program is not enabled for any country.
  4982  	//   "NO_OFFERS_UPLOADED" - No products have been uploaded for any region.
  4983  	// Upload products to Merchant Center.
  4984  	//   "ENABLED" - Program is enabled and offers are uploaded for at least one
  4985  	// country.
  4986  	GlobalState string `json:"globalState,omitempty"`
  4987  	// RegionStatuses: Status of the program in each region. Regions with the same
  4988  	// status and review eligibility are grouped together in `regionCodes`.
  4989  	RegionStatuses []*FreeListingsProgramStatusRegionStatus `json:"regionStatuses,omitempty"`
  4990  
  4991  	// ServerResponse contains the HTTP response code and headers from the server.
  4992  	googleapi.ServerResponse `json:"-"`
  4993  	// ForceSendFields is a list of field names (e.g. "GlobalState") to
  4994  	// unconditionally include in API requests. By default, fields with empty or
  4995  	// default values are omitted from API requests. See
  4996  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4997  	// details.
  4998  	ForceSendFields []string `json:"-"`
  4999  	// NullFields is a list of field names (e.g. "GlobalState") to include in API
  5000  	// requests with the JSON null value. By default, fields with empty values are
  5001  	// omitted from API requests. See
  5002  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5003  	NullFields []string `json:"-"`
  5004  }
  5005  
  5006  func (s *FreeListingsProgramStatus) MarshalJSON() ([]byte, error) {
  5007  	type NoMethod FreeListingsProgramStatus
  5008  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5009  }
  5010  
  5011  // FreeListingsProgramStatusRegionStatus: Status of program and region.
  5012  type FreeListingsProgramStatusRegionStatus struct {
  5013  	// DisapprovalDate: Date by which eligibilityStatus will go from `WARNING` to
  5014  	// `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In ISO
  5015  	// 8601 (https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
  5016  	DisapprovalDate string `json:"disapprovalDate,omitempty"`
  5017  	// EligibilityStatus: Eligibility status of the standard free listing program.
  5018  	//
  5019  	// Possible values:
  5020  	//   "STATE_UNSPECIFIED" - State is not known.
  5021  	//   "APPROVED" - If the account has no issues and review is completed
  5022  	// successfully.
  5023  	//   "DISAPPROVED" - There are one or more issues that needs to be resolved for
  5024  	// account to be active for the program. Detailed list of account issues are
  5025  	// available in
  5026  	// [accountstatuses](https://developers.google.com/shopping-content/reference/re
  5027  	// st/v2.1/accountstatuses) API.
  5028  	//   "WARNING" - If account has issues but offers are servable. Some of the
  5029  	// issue can make account DISAPPROVED after a certain deadline.
  5030  	//   "UNDER_REVIEW" - Account is under review.
  5031  	//   "PENDING_REVIEW" - Account is waiting for review to start.
  5032  	//   "ONBOARDING" - Program is currently onboarding. Upload valid offers to
  5033  	// complete onboarding.
  5034  	EligibilityStatus string `json:"eligibilityStatus,omitempty"`
  5035  	// OnboardingIssues: Issues that must be fixed to be eligible for review.
  5036  	OnboardingIssues []string `json:"onboardingIssues,omitempty"`
  5037  	// RegionCodes: The two-letter ISO 3166-1 alpha-2
  5038  	// (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes for all the regions
  5039  	// with the same `eligibilityStatus` and `reviewEligibility`.
  5040  	RegionCodes []string `json:"regionCodes,omitempty"`
  5041  	// ReviewEligibilityStatus: If a program is eligible for review in a specific
  5042  	// region. Only visible if `eligibilityStatus` is `DISAPPROVED`.
  5043  	//
  5044  	// Possible values:
  5045  	//   "REVIEW_ELIGIBILITY_UNSPECIFIED" - Review eligibility state is unknown.
  5046  	//   "ELIGIBLE" - Account is eligible for review for a specified region code.
  5047  	//   "INELIGIBLE" - Account is not eligible for review for a specified region
  5048  	// code.
  5049  	ReviewEligibilityStatus string `json:"reviewEligibilityStatus,omitempty"`
  5050  	// ReviewIneligibilityReason: Review ineligibility reason if account is not
  5051  	// eligible for review.
  5052  	//
  5053  	// Possible values:
  5054  	//   "REVIEW_INELIGIBILITY_REASON_UNSPECIFIED" - Requesting a review from
  5055  	// Google is not possible.
  5056  	//   "ONBOARDING_ISSUES" - All onboarding issues needs to be fixed.
  5057  	//   "NOT_ENOUGH_OFFERS" - Not enough offers uploaded for this country.
  5058  	//   "IN_COOLDOWN_PERIOD" - Cooldown period applies. Wait until cooldown period
  5059  	// ends.
  5060  	//   "ALREADY_UNDER_REVIEW" - Account is already under review.
  5061  	//   "NO_REVIEW_REQUIRED" - No issues available to review.
  5062  	//   "WILL_BE_REVIEWED_AUTOMATICALLY" - Account will be automatically reviewed
  5063  	// at the end of the grace period.
  5064  	//   "IS_RETIRED" - Account is retired. Should not appear in MC.
  5065  	//   "ALREADY_REVIEWED" - Account was already reviewd.
  5066  	ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"`
  5067  	// ReviewIneligibilityReasonDescription: Reason a program in a specific region
  5068  	// isn’t eligible for review. Only visible if `reviewEligibilityStatus` is
  5069  	// `INELIGIBLE`.
  5070  	ReviewIneligibilityReasonDescription string `json:"reviewIneligibilityReasonDescription,omitempty"`
  5071  	// ReviewIneligibilityReasonDetails: Additional information for ineligibility.
  5072  	// If `reviewIneligibilityReason` is `IN_COOLDOWN_PERIOD`, a timestamp for the
  5073  	// end of the cooldown period is provided.
  5074  	ReviewIneligibilityReasonDetails *FreeListingsProgramStatusReviewIneligibilityReasonDetails `json:"reviewIneligibilityReasonDetails,omitempty"`
  5075  	// ReviewIssues: Issues evaluated in the review process. Fix all issues before
  5076  	// requesting a review.
  5077  	ReviewIssues []string `json:"reviewIssues,omitempty"`
  5078  	// ForceSendFields is a list of field names (e.g. "DisapprovalDate") to
  5079  	// unconditionally include in API requests. By default, fields with empty or
  5080  	// default values are omitted from API requests. See
  5081  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5082  	// details.
  5083  	ForceSendFields []string `json:"-"`
  5084  	// NullFields is a list of field names (e.g. "DisapprovalDate") to include in
  5085  	// API requests with the JSON null value. By default, fields with empty values
  5086  	// are omitted from API requests. See
  5087  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5088  	NullFields []string `json:"-"`
  5089  }
  5090  
  5091  func (s *FreeListingsProgramStatusRegionStatus) MarshalJSON() ([]byte, error) {
  5092  	type NoMethod FreeListingsProgramStatusRegionStatus
  5093  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5094  }
  5095  
  5096  // FreeListingsProgramStatusReviewIneligibilityReasonDetails: Additional
  5097  // details for review ineligibility reasons.
  5098  type FreeListingsProgramStatusReviewIneligibilityReasonDetails struct {
  5099  	// CooldownTime: This timestamp represents end of cooldown period for review
  5100  	// ineligbility reason `IN_COOLDOWN_PERIOD`.
  5101  	CooldownTime string `json:"cooldownTime,omitempty"`
  5102  	// ForceSendFields is a list of field names (e.g. "CooldownTime") to
  5103  	// unconditionally include in API requests. By default, fields with empty or
  5104  	// default values are omitted from API requests. See
  5105  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5106  	// details.
  5107  	ForceSendFields []string `json:"-"`
  5108  	// NullFields is a list of field names (e.g. "CooldownTime") to include in API
  5109  	// requests with the JSON null value. By default, fields with empty values are
  5110  	// omitted from API requests. See
  5111  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5112  	NullFields []string `json:"-"`
  5113  }
  5114  
  5115  func (s *FreeListingsProgramStatusReviewIneligibilityReasonDetails) MarshalJSON() ([]byte, error) {
  5116  	type NoMethod FreeListingsProgramStatusReviewIneligibilityReasonDetails
  5117  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5118  }
  5119  
  5120  // FreeShippingThreshold: Conditions to be met for a product to have free
  5121  // shipping.
  5122  type FreeShippingThreshold struct {
  5123  	// Country: Required. The CLDR territory code
  5124  	// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) of the
  5125  	// country to which an item will ship.
  5126  	Country string `json:"country,omitempty"`
  5127  	// PriceThreshold: Required. The minimum product price for the shipping cost to
  5128  	// become free. Represented as a number.
  5129  	PriceThreshold *Price `json:"priceThreshold,omitempty"`
  5130  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  5131  	// include in API requests. By default, fields with empty or default values are
  5132  	// omitted from API requests. See
  5133  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5134  	// details.
  5135  	ForceSendFields []string `json:"-"`
  5136  	// NullFields is a list of field names (e.g. "Country") to include in API
  5137  	// requests with the JSON null value. By default, fields with empty values are
  5138  	// omitted from API requests. See
  5139  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5140  	NullFields []string `json:"-"`
  5141  }
  5142  
  5143  func (s *FreeShippingThreshold) MarshalJSON() ([]byte, error) {
  5144  	type NoMethod FreeShippingThreshold
  5145  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5146  }
  5147  
  5148  // GenerateRecommendationsResponse: Response containing generated
  5149  // recommendations.
  5150  type GenerateRecommendationsResponse struct {
  5151  	// Recommendations: Recommendations generated for a request.
  5152  	Recommendations []*Recommendation `json:"recommendations,omitempty"`
  5153  	// ResponseToken: Output only. Response token is a string created for each
  5154  	// `GenerateRecommendationsResponse`. This token doesn't expire, and is
  5155  	// globally unique. This token must be used when reporting interactions for
  5156  	// recommendations.
  5157  	ResponseToken string `json:"responseToken,omitempty"`
  5158  
  5159  	// ServerResponse contains the HTTP response code and headers from the server.
  5160  	googleapi.ServerResponse `json:"-"`
  5161  	// ForceSendFields is a list of field names (e.g. "Recommendations") to
  5162  	// unconditionally include in API requests. By default, fields with empty or
  5163  	// default values are omitted from API requests. See
  5164  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5165  	// details.
  5166  	ForceSendFields []string `json:"-"`
  5167  	// NullFields is a list of field names (e.g. "Recommendations") to include in
  5168  	// API requests with the JSON null value. By default, fields with empty values
  5169  	// are omitted from API requests. See
  5170  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5171  	NullFields []string `json:"-"`
  5172  }
  5173  
  5174  func (s *GenerateRecommendationsResponse) MarshalJSON() ([]byte, error) {
  5175  	type NoMethod GenerateRecommendationsResponse
  5176  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5177  }
  5178  
  5179  type GmbAccounts struct {
  5180  	// AccountId: The ID of the Merchant Center account.
  5181  	AccountId uint64 `json:"accountId,omitempty,string"`
  5182  	// GmbAccounts: A list of Business Profiles which are available to the
  5183  	// merchant.
  5184  	GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
  5185  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  5186  	// unconditionally include in API requests. By default, fields with empty or
  5187  	// default values are omitted from API requests. See
  5188  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5189  	// details.
  5190  	ForceSendFields []string `json:"-"`
  5191  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  5192  	// requests with the JSON null value. By default, fields with empty values are
  5193  	// omitted from API requests. See
  5194  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5195  	NullFields []string `json:"-"`
  5196  }
  5197  
  5198  func (s *GmbAccounts) MarshalJSON() ([]byte, error) {
  5199  	type NoMethod GmbAccounts
  5200  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5201  }
  5202  
  5203  type GmbAccountsGmbAccount struct {
  5204  	// Email: The email which identifies the Business Profile.
  5205  	Email string `json:"email,omitempty"`
  5206  	// ListingCount: Number of listings under this account.
  5207  	ListingCount uint64 `json:"listingCount,omitempty,string"`
  5208  	// Name: The name of the Business Profile.
  5209  	Name string `json:"name,omitempty"`
  5210  	// Type: The type of the Business Profile (User or Business).
  5211  	Type string `json:"type,omitempty"`
  5212  	// ForceSendFields is a list of field names (e.g. "Email") to unconditionally
  5213  	// include in API requests. By default, fields with empty or default values are
  5214  	// omitted from API requests. See
  5215  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5216  	// details.
  5217  	ForceSendFields []string `json:"-"`
  5218  	// NullFields is a list of field names (e.g. "Email") to include in API
  5219  	// requests with the JSON null value. By default, fields with empty values are
  5220  	// omitted from API requests. See
  5221  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5222  	NullFields []string `json:"-"`
  5223  }
  5224  
  5225  func (s *GmbAccountsGmbAccount) MarshalJSON() ([]byte, error) {
  5226  	type NoMethod GmbAccountsGmbAccount
  5227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5228  }
  5229  
  5230  // GoogleAnalyticsLink: "Google Analytics Link" sources can be used to get
  5231  // conversion data from an existing Google Analytics property into the linked
  5232  // Merchant Center account.
  5233  type GoogleAnalyticsLink struct {
  5234  	// AttributionSettings: Output only. Attribution settings for the linked Google
  5235  	// Analytics property.
  5236  	AttributionSettings *AttributionSettings `json:"attributionSettings,omitempty"`
  5237  	// PropertyId: Required. Immutable. ID of the Google Analytics property the
  5238  	// merchant is linked to.
  5239  	PropertyId int64 `json:"propertyId,omitempty,string"`
  5240  	// PropertyName: Output only. Name of the Google Analytics property the
  5241  	// merchant is linked to.
  5242  	PropertyName string `json:"propertyName,omitempty"`
  5243  	// ForceSendFields is a list of field names (e.g. "AttributionSettings") to
  5244  	// unconditionally include in API requests. By default, fields with empty or
  5245  	// default values are omitted from API requests. See
  5246  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5247  	// details.
  5248  	ForceSendFields []string `json:"-"`
  5249  	// NullFields is a list of field names (e.g. "AttributionSettings") to include
  5250  	// in API requests with the JSON null value. By default, fields with empty
  5251  	// values are omitted from API requests. See
  5252  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5253  	NullFields []string `json:"-"`
  5254  }
  5255  
  5256  func (s *GoogleAnalyticsLink) MarshalJSON() ([]byte, error) {
  5257  	type NoMethod GoogleAnalyticsLink
  5258  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5259  }
  5260  
  5261  // Headers: A non-empty list of row or column headers for a table. Exactly one
  5262  // of `prices`, `weights`, `numItems`, `postalCodeGroupNames`, or `location`
  5263  // must be set.
  5264  type Headers struct {
  5265  	// Locations: A list of location ID sets. Must be non-empty. Can only be set if
  5266  	// all other fields are not set.
  5267  	Locations []*LocationIdSet `json:"locations,omitempty"`
  5268  	// NumberOfItems: A list of inclusive number of items upper bounds. The last
  5269  	// value can be "infinity". For example `["10", "50", "infinity"]` represents
  5270  	// the headers "<= 10 items", "<= 50 items", and "> 50 items". Must be
  5271  	// non-empty. Can only be set if all other fields are not set.
  5272  	NumberOfItems []string `json:"numberOfItems,omitempty"`
  5273  	// PostalCodeGroupNames: A list of postal group names. The last value can be
  5274  	// "all other locations". Example: `["zone 1", "zone 2", "all other
  5275  	// locations"]`. The referred postal code groups must match the delivery
  5276  	// country of the service. Must be non-empty. Can only be set if all other
  5277  	// fields are not set.
  5278  	PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"`
  5279  	// Prices: A list of inclusive order price upper bounds. The last price's value
  5280  	// can be "infinity". For example `[{"value": "10", "currency": "USD"},
  5281  	// {"value": "500", "currency": "USD"}, {"value": "infinity", "currency":
  5282  	// "USD"}]` represents the headers "<= $10", "<= $500", and "> $500". All
  5283  	// prices within a service must have the same currency. Must be non-empty. Can
  5284  	// only be set if all other fields are not set.
  5285  	Prices []*Price `json:"prices,omitempty"`
  5286  	// Weights: A list of inclusive order weight upper bounds. The last weight's
  5287  	// value can be "infinity". For example `[{"value": "10", "unit": "kg"},
  5288  	// {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}]`
  5289  	// represents the headers "<= 10kg", "<= 50kg", and "> 50kg". All weights
  5290  	// within a service must have the same unit. Must be non-empty. Can only be set
  5291  	// if all other fields are not set.
  5292  	Weights []*Weight `json:"weights,omitempty"`
  5293  	// ForceSendFields is a list of field names (e.g. "Locations") to
  5294  	// unconditionally include in API requests. By default, fields with empty or
  5295  	// default values are omitted from API requests. See
  5296  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5297  	// details.
  5298  	ForceSendFields []string `json:"-"`
  5299  	// NullFields is a list of field names (e.g. "Locations") to include in API
  5300  	// requests with the JSON null value. By default, fields with empty values are
  5301  	// omitted from API requests. See
  5302  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5303  	NullFields []string `json:"-"`
  5304  }
  5305  
  5306  func (s *Headers) MarshalJSON() ([]byte, error) {
  5307  	type NoMethod Headers
  5308  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5309  }
  5310  
  5311  type HolidayCutoff struct {
  5312  	// DeadlineDate: Date of the order deadline, in ISO 8601 format. For example,
  5313  	// "2016-11-29" for 29th November 2016. Required.
  5314  	DeadlineDate string `json:"deadlineDate,omitempty"`
  5315  	// DeadlineHour: Hour of the day on the deadline date until which the order has
  5316  	// to be placed to qualify for the delivery guarantee. Possible values are: 0
  5317  	// (midnight), 1, ..., 12 (noon), 13, ..., 23. Required.
  5318  	DeadlineHour int64 `json:"deadlineHour,omitempty"`
  5319  	// DeadlineTimezone: Timezone identifier for the deadline hour (for example,
  5320  	// "Europe/Zurich"). List of identifiers. Required.
  5321  	DeadlineTimezone string `json:"deadlineTimezone,omitempty"`
  5322  	// HolidayId: Unique identifier for the holiday. Required.
  5323  	HolidayId string `json:"holidayId,omitempty"`
  5324  	// VisibleFromDate: Date on which the deadline will become visible to consumers
  5325  	// in ISO 8601 format. For example, "2016-10-31" for 31st October 2016.
  5326  	// Required.
  5327  	VisibleFromDate string `json:"visibleFromDate,omitempty"`
  5328  	// ForceSendFields is a list of field names (e.g. "DeadlineDate") to
  5329  	// unconditionally include in API requests. By default, fields with empty or
  5330  	// default values are omitted from API requests. See
  5331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5332  	// details.
  5333  	ForceSendFields []string `json:"-"`
  5334  	// NullFields is a list of field names (e.g. "DeadlineDate") to include in API
  5335  	// requests with the JSON null value. By default, fields with empty values are
  5336  	// omitted from API requests. See
  5337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5338  	NullFields []string `json:"-"`
  5339  }
  5340  
  5341  func (s *HolidayCutoff) MarshalJSON() ([]byte, error) {
  5342  	type NoMethod HolidayCutoff
  5343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5344  }
  5345  
  5346  type HolidaysHoliday struct {
  5347  	// CountryCode: The CLDR territory code of the country in which the holiday is
  5348  	// available. For example, "US", "DE", "GB". A holiday cutoff can only be
  5349  	// configured in a shipping settings service with matching delivery country.
  5350  	// Always present.
  5351  	CountryCode string `json:"countryCode,omitempty"`
  5352  	// Date: Date of the holiday, in ISO 8601 format. For example, "2016-12-25" for
  5353  	// Christmas 2016. Always present.
  5354  	Date string `json:"date,omitempty"`
  5355  	// DeliveryGuaranteeDate: Date on which the order has to arrive at the
  5356  	// customer's, in ISO 8601 format. For example, "2016-12-24" for 24th December
  5357  	// 2016. Always present.
  5358  	DeliveryGuaranteeDate string `json:"deliveryGuaranteeDate,omitempty"`
  5359  	// DeliveryGuaranteeHour: Hour of the day in the delivery location's timezone
  5360  	// on the guaranteed delivery date by which the order has to arrive at the
  5361  	// customer's. Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ...,
  5362  	// 23. Always present.
  5363  	DeliveryGuaranteeHour uint64 `json:"deliveryGuaranteeHour,omitempty,string"`
  5364  	// Id: Unique identifier for the holiday to be used when configuring holiday
  5365  	// cutoffs. Always present.
  5366  	Id string `json:"id,omitempty"`
  5367  	// Type: The holiday type. Always present. Acceptable values are: -
  5368  	// "Christmas" - "Easter" - "Father's Day" - "Halloween" -
  5369  	// "Independence Day (USA)" - "Mother's Day" - "Thanksgiving" -
  5370  	// "Valentine's Day"
  5371  	Type string `json:"type,omitempty"`
  5372  	// ForceSendFields is a list of field names (e.g. "CountryCode") to
  5373  	// unconditionally include in API requests. By default, fields with empty or
  5374  	// default values are omitted from API requests. See
  5375  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5376  	// details.
  5377  	ForceSendFields []string `json:"-"`
  5378  	// NullFields is a list of field names (e.g. "CountryCode") to include in API
  5379  	// requests with the JSON null value. By default, fields with empty values are
  5380  	// omitted from API requests. See
  5381  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5382  	NullFields []string `json:"-"`
  5383  }
  5384  
  5385  func (s *HolidaysHoliday) MarshalJSON() ([]byte, error) {
  5386  	type NoMethod HolidaysHoliday
  5387  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5388  }
  5389  
  5390  // InputField: Input field that needs to be available to the merchant. If the
  5391  // field is marked as required, then a value needs to be provided for a
  5392  // successful processing of the request.
  5393  type InputField struct {
  5394  	// CheckboxInput: Input field to provide a boolean value. Corresponds to the
  5395  	// html input type=checkbox
  5396  	// (https://www.w3.org/TR/2012/WD-html-markup-20121025/input.checkbox.html#input.checkbox).
  5397  	CheckboxInput *InputFieldCheckboxInput `json:"checkboxInput,omitempty"`
  5398  	// ChoiceInput: Input field to select one of the offered choices. Corresponds
  5399  	// to the html input type=radio
  5400  	// (https://www.w3.org/TR/2012/WD-html-markup-20121025/input.radio.html#input.radio).
  5401  	ChoiceInput *InputFieldChoiceInput `json:"choiceInput,omitempty"`
  5402  	// Id: Not for display but need to be sent back for the given input field.
  5403  	Id string `json:"id,omitempty"`
  5404  	// Label: Input field label. There may be more information to be shown in a
  5405  	// tooltip.
  5406  	Label *TextWithTooltip `json:"label,omitempty"`
  5407  	// Required: Whether the field is required. The action button needs to stay
  5408  	// disabled till values for all required fields are provided.
  5409  	Required bool `json:"required,omitempty"`
  5410  	// TextInput: Input field to provide text information. Corresponds to the html
  5411  	// input type=text
  5412  	// (https://www.w3.org/TR/2012/WD-html-markup-20121025/input.text.html#input.text)
  5413  	// or html textarea
  5414  	// (https://www.w3.org/TR/2012/WD-html-markup-20121025/textarea.html#textarea).
  5415  	TextInput *InputFieldTextInput `json:"textInput,omitempty"`
  5416  	// ForceSendFields is a list of field names (e.g. "CheckboxInput") to
  5417  	// unconditionally include in API requests. By default, fields with empty or
  5418  	// default values are omitted from API requests. See
  5419  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5420  	// details.
  5421  	ForceSendFields []string `json:"-"`
  5422  	// NullFields is a list of field names (e.g. "CheckboxInput") to include in API
  5423  	// requests with the JSON null value. By default, fields with empty values are
  5424  	// omitted from API requests. See
  5425  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5426  	NullFields []string `json:"-"`
  5427  }
  5428  
  5429  func (s *InputField) MarshalJSON() ([]byte, error) {
  5430  	type NoMethod InputField
  5431  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5432  }
  5433  
  5434  // InputFieldCheckboxInput: Checkbox input allows merchants to provide a
  5435  // boolean value. Corresponds to the html input type=checkbox
  5436  // (https://www.w3.org/TR/2012/WD-html-markup-20121025/input.checkbox.html#input.checkbox).
  5437  // If merchant checks the box, the input value for the field is `true`,
  5438  // otherwise it is `false`. This type of input is often used as a confirmation
  5439  // that the merchant completed required steps before they are allowed to start
  5440  // the action. In such a case, the input field is marked as required and the
  5441  // button to trigger the action should stay disabled until the merchant checks
  5442  // the box.
  5443  type InputFieldCheckboxInput struct {
  5444  }
  5445  
  5446  // InputFieldChoiceInput: Choice input allows merchants to select one of the
  5447  // offered choices. Some choices may be linked to additional input fields that
  5448  // should be displayed under or next to the choice option. The value for the
  5449  // additional input field needs to be provided only when the specific choice is
  5450  // selected by the merchant. For example, additional input field can be hidden
  5451  // or disabled until the merchant selects the specific choice.
  5452  type InputFieldChoiceInput struct {
  5453  	// Options: A list of choices. Only one option can be selected.
  5454  	Options []*InputFieldChoiceInputChoiceInputOption `json:"options,omitempty"`
  5455  	// ForceSendFields is a list of field names (e.g. "Options") to unconditionally
  5456  	// include in API requests. By default, fields with empty or default values are
  5457  	// omitted from API requests. See
  5458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5459  	// details.
  5460  	ForceSendFields []string `json:"-"`
  5461  	// NullFields is a list of field names (e.g. "Options") to include in API
  5462  	// requests with the JSON null value. By default, fields with empty values are
  5463  	// omitted from API requests. See
  5464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5465  	NullFields []string `json:"-"`
  5466  }
  5467  
  5468  func (s *InputFieldChoiceInput) MarshalJSON() ([]byte, error) {
  5469  	type NoMethod InputFieldChoiceInput
  5470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5471  }
  5472  
  5473  // InputFieldChoiceInputChoiceInputOption: A choice that merchant can select.
  5474  type InputFieldChoiceInputChoiceInputOption struct {
  5475  	// AdditionalInput: Input that should be displayed when this option is
  5476  	// selected. The additional input will not contain a `ChoiceInput`.
  5477  	AdditionalInput *InputField `json:"additionalInput,omitempty"`
  5478  	// Id: Not for display but need to be sent back for the selected choice option.
  5479  	Id string `json:"id,omitempty"`
  5480  	// Label: Short description of the choice option. There may be more information
  5481  	// to be shown as a tooltip.
  5482  	Label *TextWithTooltip `json:"label,omitempty"`
  5483  	// ForceSendFields is a list of field names (e.g. "AdditionalInput") to
  5484  	// unconditionally include in API requests. By default, fields with empty or
  5485  	// default values are omitted from API requests. See
  5486  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5487  	// details.
  5488  	ForceSendFields []string `json:"-"`
  5489  	// NullFields is a list of field names (e.g. "AdditionalInput") to include in
  5490  	// API requests with the JSON null value. By default, fields with empty values
  5491  	// are omitted from API requests. See
  5492  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5493  	NullFields []string `json:"-"`
  5494  }
  5495  
  5496  func (s *InputFieldChoiceInputChoiceInputOption) MarshalJSON() ([]byte, error) {
  5497  	type NoMethod InputFieldChoiceInputChoiceInputOption
  5498  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5499  }
  5500  
  5501  // InputFieldTextInput: Text input allows merchants to provide a text value.
  5502  type InputFieldTextInput struct {
  5503  	// AdditionalInfo: Additional info regarding the field to be displayed to
  5504  	// merchant. For example, warning to not include personal identifiable
  5505  	// information. There may be more information to be shown in a tooltip.
  5506  	AdditionalInfo *TextWithTooltip `json:"additionalInfo,omitempty"`
  5507  	// AriaLabel: Text to be used as the aria-label
  5508  	// (https://www.w3.org/TR/WCAG20-TECHS/ARIA14.html) for the input.
  5509  	AriaLabel string `json:"ariaLabel,omitempty"`
  5510  	// FormatInfo: Information about the required format. If present, it should be
  5511  	// shown close to the input field to help merchants to provide a correct value.
  5512  	// For example: "VAT numbers should be in a format similar to SK9999999999"
  5513  	FormatInfo string `json:"formatInfo,omitempty"`
  5514  	// Type: Type of the text input
  5515  	//
  5516  	// Possible values:
  5517  	//   "TEXT_INPUT_TYPE_UNSPECIFIED" - Default value. Will never be provided by
  5518  	// the API.
  5519  	//   "GENERIC_SHORT_TEXT" - Used when a short text is expected. The field can
  5520  	// be rendered as a [text
  5521  	// field](https://www.w3.org/TR/2012/WD-html-markup-20121025/input.text.html#inp
  5522  	// ut.text).
  5523  	//   "GENERIC_LONG_TEXT" - Used when a longer text is expected. The field
  5524  	// should be rendered as a
  5525  	// [textarea](https://www.w3.org/TR/2012/WD-html-markup-20121025/textarea.html#t
  5526  	// extarea).
  5527  	Type string `json:"type,omitempty"`
  5528  	// ForceSendFields is a list of field names (e.g. "AdditionalInfo") to
  5529  	// unconditionally include in API requests. By default, fields with empty or
  5530  	// default values are omitted from API requests. See
  5531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5532  	// details.
  5533  	ForceSendFields []string `json:"-"`
  5534  	// NullFields is a list of field names (e.g. "AdditionalInfo") to include in
  5535  	// API requests with the JSON null value. By default, fields with empty values
  5536  	// are omitted from API requests. See
  5537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5538  	NullFields []string `json:"-"`
  5539  }
  5540  
  5541  func (s *InputFieldTextInput) MarshalJSON() ([]byte, error) {
  5542  	type NoMethod InputFieldTextInput
  5543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5544  }
  5545  
  5546  // InputValue: Input provided by the merchant for input field.
  5547  type InputValue struct {
  5548  	// CheckboxInputValue: Value for checkbox input field.
  5549  	CheckboxInputValue *InputValueCheckboxInputValue `json:"checkboxInputValue,omitempty"`
  5550  	// ChoiceInputValue: Value for choice input field.
  5551  	ChoiceInputValue *InputValueChoiceInputValue `json:"choiceInputValue,omitempty"`
  5552  	// InputFieldId: Required. Id of the corresponding input field.
  5553  	InputFieldId string `json:"inputFieldId,omitempty"`
  5554  	// TextInputValue: Value for text input field.
  5555  	TextInputValue *InputValueTextInputValue `json:"textInputValue,omitempty"`
  5556  	// ForceSendFields is a list of field names (e.g. "CheckboxInputValue") to
  5557  	// unconditionally include in API requests. By default, fields with empty or
  5558  	// default values are omitted from API requests. See
  5559  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5560  	// details.
  5561  	ForceSendFields []string `json:"-"`
  5562  	// NullFields is a list of field names (e.g. "CheckboxInputValue") to include
  5563  	// in API requests with the JSON null value. By default, fields with empty
  5564  	// values are omitted from API requests. See
  5565  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5566  	NullFields []string `json:"-"`
  5567  }
  5568  
  5569  func (s *InputValue) MarshalJSON() ([]byte, error) {
  5570  	type NoMethod InputValue
  5571  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5572  }
  5573  
  5574  // InputValueCheckboxInputValue: Value for checkbox input field.
  5575  type InputValueCheckboxInputValue struct {
  5576  	// Value: Required. True if the merchant checked the box field. False
  5577  	// otherwise.
  5578  	Value bool `json:"value,omitempty"`
  5579  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
  5580  	// include in API requests. By default, fields with empty or default values are
  5581  	// omitted from API requests. See
  5582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5583  	// details.
  5584  	ForceSendFields []string `json:"-"`
  5585  	// NullFields is a list of field names (e.g. "Value") to include in API
  5586  	// requests with the JSON null value. By default, fields with empty values are
  5587  	// omitted from API requests. See
  5588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5589  	NullFields []string `json:"-"`
  5590  }
  5591  
  5592  func (s *InputValueCheckboxInputValue) MarshalJSON() ([]byte, error) {
  5593  	type NoMethod InputValueCheckboxInputValue
  5594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5595  }
  5596  
  5597  // InputValueChoiceInputValue: Value for choice input field.
  5598  type InputValueChoiceInputValue struct {
  5599  	// ChoiceInputOptionId: Required. Id of the option that was selected by the
  5600  	// merchant.
  5601  	ChoiceInputOptionId string `json:"choiceInputOptionId,omitempty"`
  5602  	// ForceSendFields is a list of field names (e.g. "ChoiceInputOptionId") to
  5603  	// unconditionally include in API requests. By default, fields with empty or
  5604  	// default values are omitted from API requests. See
  5605  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5606  	// details.
  5607  	ForceSendFields []string `json:"-"`
  5608  	// NullFields is a list of field names (e.g. "ChoiceInputOptionId") to include
  5609  	// in API requests with the JSON null value. By default, fields with empty
  5610  	// values are omitted from API requests. See
  5611  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5612  	NullFields []string `json:"-"`
  5613  }
  5614  
  5615  func (s *InputValueChoiceInputValue) MarshalJSON() ([]byte, error) {
  5616  	type NoMethod InputValueChoiceInputValue
  5617  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5618  }
  5619  
  5620  // InputValueTextInputValue: Value for text input field.
  5621  type InputValueTextInputValue struct {
  5622  	// Value: Required. Text provided by the merchant.
  5623  	Value string `json:"value,omitempty"`
  5624  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
  5625  	// include in API requests. By default, fields with empty or default values are
  5626  	// omitted from API requests. See
  5627  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5628  	// details.
  5629  	ForceSendFields []string `json:"-"`
  5630  	// NullFields is a list of field names (e.g. "Value") to include in API
  5631  	// requests with the JSON null value. By default, fields with empty values are
  5632  	// omitted from API requests. See
  5633  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5634  	NullFields []string `json:"-"`
  5635  }
  5636  
  5637  func (s *InputValueTextInputValue) MarshalJSON() ([]byte, error) {
  5638  	type NoMethod InputValueTextInputValue
  5639  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5640  }
  5641  
  5642  // InsertCheckoutSettingsRequest: Request message for the
  5643  // `InsertCheckoutSettings` method.
  5644  type InsertCheckoutSettingsRequest struct {
  5645  	// UriSettings: Required. The `UrlSettings` for the request. The presence of
  5646  	// URL settings indicates `Checkout` enrollment.
  5647  	UriSettings *UrlSettings `json:"uriSettings,omitempty"`
  5648  	// ForceSendFields is a list of field names (e.g. "UriSettings") to
  5649  	// unconditionally include in API requests. By default, fields with empty or
  5650  	// default values are omitted from API requests. See
  5651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5652  	// details.
  5653  	ForceSendFields []string `json:"-"`
  5654  	// NullFields is a list of field names (e.g. "UriSettings") to include in API
  5655  	// requests with the JSON null value. By default, fields with empty values are
  5656  	// omitted from API requests. See
  5657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5658  	NullFields []string `json:"-"`
  5659  }
  5660  
  5661  func (s *InsertCheckoutSettingsRequest) MarshalJSON() ([]byte, error) {
  5662  	type NoMethod InsertCheckoutSettingsRequest
  5663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5664  }
  5665  
  5666  // Installment: Details of a monthly installment payment offering. Learn more
  5667  // (https://support.google.com/merchants/answer/6324474) about installments.
  5668  type Installment struct {
  5669  	// Amount: The amount the buyer has to pay per month.
  5670  	Amount *Price `json:"amount,omitempty"`
  5671  	// CreditType: Optional. Type of installment payments. Supported values are: -
  5672  	// "finance" - "lease"
  5673  	CreditType string `json:"creditType,omitempty"`
  5674  	// Downpayment: Optional. The initial down payment amount the buyer has to pay.
  5675  	Downpayment *Price `json:"downpayment,omitempty"`
  5676  	// Months: The number of installments the buyer has to pay.
  5677  	Months int64 `json:"months,omitempty,string"`
  5678  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
  5679  	// include in API requests. By default, fields with empty or default values are
  5680  	// omitted from API requests. See
  5681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5682  	// details.
  5683  	ForceSendFields []string `json:"-"`
  5684  	// NullFields is a list of field names (e.g. "Amount") to include in API
  5685  	// requests with the JSON null value. By default, fields with empty values are
  5686  	// omitted from API requests. See
  5687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5688  	NullFields []string `json:"-"`
  5689  }
  5690  
  5691  func (s *Installment) MarshalJSON() ([]byte, error) {
  5692  	type NoMethod Installment
  5693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5694  }
  5695  
  5696  type InvoiceSummary struct {
  5697  	// AdditionalChargeSummaries: Summary of the total amounts of the additional
  5698  	// charges.
  5699  	AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"`
  5700  	// ProductTotal: [required] Total price for the product.
  5701  	ProductTotal *Amount `json:"productTotal,omitempty"`
  5702  	// ForceSendFields is a list of field names (e.g. "AdditionalChargeSummaries")
  5703  	// to unconditionally include in API requests. By default, fields with empty or
  5704  	// default values are omitted from API requests. See
  5705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5706  	// details.
  5707  	ForceSendFields []string `json:"-"`
  5708  	// NullFields is a list of field names (e.g. "AdditionalChargeSummaries") to
  5709  	// include in API requests with the JSON null value. By default, fields with
  5710  	// empty values are omitted from API requests. See
  5711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5712  	NullFields []string `json:"-"`
  5713  }
  5714  
  5715  func (s *InvoiceSummary) MarshalJSON() ([]byte, error) {
  5716  	type NoMethod InvoiceSummary
  5717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5718  }
  5719  
  5720  type InvoiceSummaryAdditionalChargeSummary struct {
  5721  	// TotalAmount: [required] Total additional charge for this type.
  5722  	TotalAmount *Amount `json:"totalAmount,omitempty"`
  5723  	// Type: [required] Type of the additional charge. Acceptable values are: -
  5724  	// "shipping"
  5725  	Type string `json:"type,omitempty"`
  5726  	// ForceSendFields is a list of field names (e.g. "TotalAmount") to
  5727  	// unconditionally include in API requests. By default, fields with empty or
  5728  	// default values are omitted from API requests. See
  5729  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5730  	// details.
  5731  	ForceSendFields []string `json:"-"`
  5732  	// NullFields is a list of field names (e.g. "TotalAmount") to include in API
  5733  	// requests with the JSON null value. By default, fields with empty values are
  5734  	// omitted from API requests. See
  5735  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5736  	NullFields []string `json:"-"`
  5737  }
  5738  
  5739  func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) {
  5740  	type NoMethod InvoiceSummaryAdditionalChargeSummary
  5741  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5742  }
  5743  
  5744  // LabelIds: The IDs of labels that should be assigned to the CSS domain.
  5745  type LabelIds struct {
  5746  	// LabelIds: The list of label IDs.
  5747  	LabelIds googleapi.Int64s `json:"labelIds,omitempty"`
  5748  	// ForceSendFields is a list of field names (e.g. "LabelIds") to
  5749  	// unconditionally include in API requests. By default, fields with empty or
  5750  	// default values are omitted from API requests. See
  5751  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5752  	// details.
  5753  	ForceSendFields []string `json:"-"`
  5754  	// NullFields is a list of field names (e.g. "LabelIds") to include in API
  5755  	// requests with the JSON null value. By default, fields with empty values are
  5756  	// omitted from API requests. See
  5757  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5758  	NullFields []string `json:"-"`
  5759  }
  5760  
  5761  func (s *LabelIds) MarshalJSON() ([]byte, error) {
  5762  	type NoMethod LabelIds
  5763  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5764  }
  5765  
  5766  type LiaAboutPageSettings struct {
  5767  	// Status: The status of the verification process for the About page. Supported
  5768  	// values are: - "active" - "inactive" - "pending"
  5769  	Status string `json:"status,omitempty"`
  5770  	// Url: The URL for the About page.
  5771  	Url string `json:"url,omitempty"`
  5772  	// ForceSendFields is a list of field names (e.g. "Status") to unconditionally
  5773  	// include in API requests. By default, fields with empty or default values are
  5774  	// omitted from API requests. See
  5775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5776  	// details.
  5777  	ForceSendFields []string `json:"-"`
  5778  	// NullFields is a list of field names (e.g. "Status") to include in API
  5779  	// requests with the JSON null value. By default, fields with empty values are
  5780  	// omitted from API requests. See
  5781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5782  	NullFields []string `json:"-"`
  5783  }
  5784  
  5785  func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error) {
  5786  	type NoMethod LiaAboutPageSettings
  5787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5788  }
  5789  
  5790  type LiaCountrySettings struct {
  5791  	// About: The settings for the About page.
  5792  	About *LiaAboutPageSettings `json:"about,omitempty"`
  5793  	// Country: Required. CLDR country code (for example, "US").
  5794  	Country string `json:"country,omitempty"`
  5795  	// HostedLocalStorefrontActive: The status of the "Merchant hosted local
  5796  	// storefront" feature.
  5797  	HostedLocalStorefrontActive bool `json:"hostedLocalStorefrontActive,omitempty"`
  5798  	// Inventory: LIA inventory verification settings.
  5799  	Inventory *LiaInventorySettings `json:"inventory,omitempty"`
  5800  	// OmnichannelExperience: The omnichannel experience configured for this
  5801  	// country.
  5802  	OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"`
  5803  	// OnDisplayToOrder: LIA "On Display To Order" settings.
  5804  	OnDisplayToOrder *LiaOnDisplayToOrderSettings `json:"onDisplayToOrder,omitempty"`
  5805  	// PosDataProvider: The POS data provider linked with this country.
  5806  	PosDataProvider *LiaPosDataProvider `json:"posDataProvider,omitempty"`
  5807  	// StorePickupActive: The status of the "Store pickup" feature.
  5808  	StorePickupActive bool `json:"storePickupActive,omitempty"`
  5809  	// ForceSendFields is a list of field names (e.g. "About") to unconditionally
  5810  	// include in API requests. By default, fields with empty or default values are
  5811  	// omitted from API requests. See
  5812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5813  	// details.
  5814  	ForceSendFields []string `json:"-"`
  5815  	// NullFields is a list of field names (e.g. "About") to include in API
  5816  	// requests with the JSON null value. By default, fields with empty values are
  5817  	// omitted from API requests. See
  5818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5819  	NullFields []string `json:"-"`
  5820  }
  5821  
  5822  func (s *LiaCountrySettings) MarshalJSON() ([]byte, error) {
  5823  	type NoMethod LiaCountrySettings
  5824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5825  }
  5826  
  5827  type LiaInventorySettings struct {
  5828  	// InventoryVerificationContactEmail: The email of the contact for the
  5829  	// inventory verification process.
  5830  	InventoryVerificationContactEmail string `json:"inventoryVerificationContactEmail,omitempty"`
  5831  	// InventoryVerificationContactName: The name of the contact for the inventory
  5832  	// verification process.
  5833  	InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"`
  5834  	// InventoryVerificationContactStatus: The status of the verification contact.
  5835  	// Acceptable values are: - "active" - "inactive" - "pending"
  5836  	InventoryVerificationContactStatus string `json:"inventoryVerificationContactStatus,omitempty"`
  5837  	// Status: The status of the inventory verification process. Acceptable values
  5838  	// are: - "active" - "inactive" - "pending"
  5839  	Status string `json:"status,omitempty"`
  5840  	// ForceSendFields is a list of field names (e.g.
  5841  	// "InventoryVerificationContactEmail") to unconditionally include in API
  5842  	// requests. By default, fields with empty or default values are omitted from
  5843  	// API requests. See
  5844  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5845  	// details.
  5846  	ForceSendFields []string `json:"-"`
  5847  	// NullFields is a list of field names (e.g.
  5848  	// "InventoryVerificationContactEmail") to include in API requests with the
  5849  	// JSON null value. By default, fields with empty values are omitted from API
  5850  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-NullFields for
  5851  	// more details.
  5852  	NullFields []string `json:"-"`
  5853  }
  5854  
  5855  func (s *LiaInventorySettings) MarshalJSON() ([]byte, error) {
  5856  	type NoMethod LiaInventorySettings
  5857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5858  }
  5859  
  5860  // LiaOmnichannelExperience: Omnichannel experience details.
  5861  type LiaOmnichannelExperience struct {
  5862  	// Country: The CLDR country code (for example, "US").
  5863  	Country string `json:"country,omitempty"`
  5864  	// LsfType: The Local Store Front (LSF) type for this country. Acceptable
  5865  	// values are: - "ghlsf" (Google-Hosted Local Store Front) - "mhlsfBasic"
  5866  	// (Merchant-Hosted Local Store Front Basic) - "mhlsfFull" (Merchant-Hosted
  5867  	// Local Store Front Full) More details about these types can be found here.
  5868  	LsfType string `json:"lsfType,omitempty"`
  5869  	// PickupTypes: The Pickup types for this country. Acceptable values are: -
  5870  	// "pickupToday" - "pickupLater"
  5871  	PickupTypes []string `json:"pickupTypes,omitempty"`
  5872  
  5873  	// ServerResponse contains the HTTP response code and headers from the server.
  5874  	googleapi.ServerResponse `json:"-"`
  5875  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  5876  	// include in API requests. By default, fields with empty or default values are
  5877  	// omitted from API requests. See
  5878  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5879  	// details.
  5880  	ForceSendFields []string `json:"-"`
  5881  	// NullFields is a list of field names (e.g. "Country") to include in API
  5882  	// requests with the JSON null value. By default, fields with empty values are
  5883  	// omitted from API requests. See
  5884  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5885  	NullFields []string `json:"-"`
  5886  }
  5887  
  5888  func (s *LiaOmnichannelExperience) MarshalJSON() ([]byte, error) {
  5889  	type NoMethod LiaOmnichannelExperience
  5890  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5891  }
  5892  
  5893  type LiaOnDisplayToOrderSettings struct {
  5894  	// ShippingCostPolicyUrl: Shipping cost and policy URL.
  5895  	ShippingCostPolicyUrl string `json:"shippingCostPolicyUrl,omitempty"`
  5896  	// Status: The status of the ?On display to order? feature. Acceptable values
  5897  	// are: - "active" - "inactive" - "pending"
  5898  	Status string `json:"status,omitempty"`
  5899  	// ForceSendFields is a list of field names (e.g. "ShippingCostPolicyUrl") to
  5900  	// unconditionally include in API requests. By default, fields with empty or
  5901  	// default values are omitted from API requests. See
  5902  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5903  	// details.
  5904  	ForceSendFields []string `json:"-"`
  5905  	// NullFields is a list of field names (e.g. "ShippingCostPolicyUrl") to
  5906  	// include in API requests with the JSON null value. By default, fields with
  5907  	// empty values are omitted from API requests. See
  5908  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5909  	NullFields []string `json:"-"`
  5910  }
  5911  
  5912  func (s *LiaOnDisplayToOrderSettings) MarshalJSON() ([]byte, error) {
  5913  	type NoMethod LiaOnDisplayToOrderSettings
  5914  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5915  }
  5916  
  5917  type LiaPosDataProvider struct {
  5918  	// PosDataProviderId: The ID of the POS data provider.
  5919  	PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"`
  5920  	// PosExternalAccountId: The account ID by which this merchant is known to the
  5921  	// POS data provider.
  5922  	PosExternalAccountId string `json:"posExternalAccountId,omitempty"`
  5923  	// ForceSendFields is a list of field names (e.g. "PosDataProviderId") to
  5924  	// unconditionally include in API requests. By default, fields with empty or
  5925  	// default values are omitted from API requests. See
  5926  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5927  	// details.
  5928  	ForceSendFields []string `json:"-"`
  5929  	// NullFields is a list of field names (e.g. "PosDataProviderId") to include in
  5930  	// API requests with the JSON null value. By default, fields with empty values
  5931  	// are omitted from API requests. See
  5932  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5933  	NullFields []string `json:"-"`
  5934  }
  5935  
  5936  func (s *LiaPosDataProvider) MarshalJSON() ([]byte, error) {
  5937  	type NoMethod LiaPosDataProvider
  5938  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5939  }
  5940  
  5941  // LiaSettings: Local Inventory ads (LIA) settings. All methods except
  5942  // listposdataproviders require the admin role.
  5943  type LiaSettings struct {
  5944  	// AccountId: The ID of the account to which these LIA settings belong. Ignored
  5945  	// upon update, always present in get request responses.
  5946  	AccountId uint64 `json:"accountId,omitempty,string"`
  5947  	// CountrySettings: The LIA settings for each country.
  5948  	CountrySettings []*LiaCountrySettings `json:"countrySettings,omitempty"`
  5949  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  5950  	// "content#liaSettings"
  5951  	Kind string `json:"kind,omitempty"`
  5952  
  5953  	// ServerResponse contains the HTTP response code and headers from the server.
  5954  	googleapi.ServerResponse `json:"-"`
  5955  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  5956  	// unconditionally include in API requests. By default, fields with empty or
  5957  	// default values are omitted from API requests. See
  5958  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5959  	// details.
  5960  	ForceSendFields []string `json:"-"`
  5961  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  5962  	// requests with the JSON null value. By default, fields with empty values are
  5963  	// omitted from API requests. See
  5964  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5965  	NullFields []string `json:"-"`
  5966  }
  5967  
  5968  func (s *LiaSettings) MarshalJSON() ([]byte, error) {
  5969  	type NoMethod LiaSettings
  5970  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5971  }
  5972  
  5973  type LiasettingsCustomBatchRequest struct {
  5974  	// Entries: The request entries to be processed in the batch.
  5975  	Entries []*LiasettingsCustomBatchRequestEntry `json:"entries,omitempty"`
  5976  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  5977  	// include in API requests. By default, fields with empty or default values are
  5978  	// omitted from API requests. See
  5979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5980  	// details.
  5981  	ForceSendFields []string `json:"-"`
  5982  	// NullFields is a list of field names (e.g. "Entries") to include in API
  5983  	// requests with the JSON null value. By default, fields with empty values are
  5984  	// omitted from API requests. See
  5985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5986  	NullFields []string `json:"-"`
  5987  }
  5988  
  5989  func (s *LiasettingsCustomBatchRequest) MarshalJSON() ([]byte, error) {
  5990  	type NoMethod LiasettingsCustomBatchRequest
  5991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5992  }
  5993  
  5994  type LiasettingsCustomBatchRequestEntry struct {
  5995  	// AccountId: The ID of the account for which to get/update account LIA
  5996  	// settings.
  5997  	AccountId uint64 `json:"accountId,omitempty,string"`
  5998  	// BatchId: An entry ID, unique within the batch request.
  5999  	BatchId int64 `json:"batchId,omitempty"`
  6000  	// ContactEmail: Inventory validation contact email. Required only for
  6001  	// SetInventoryValidationContact.
  6002  	ContactEmail string `json:"contactEmail,omitempty"`
  6003  	// ContactName: Inventory validation contact name. Required only for
  6004  	// SetInventoryValidationContact.
  6005  	ContactName string `json:"contactName,omitempty"`
  6006  	// Country: The country code. Required only for RequestInventoryVerification.
  6007  	Country string `json:"country,omitempty"`
  6008  	// GmbEmail: The Business Profile. Required only for RequestGmbAccess.
  6009  	GmbEmail string `json:"gmbEmail,omitempty"`
  6010  	// LiaSettings: The account Lia settings to update. Only defined if the method
  6011  	// is `update`.
  6012  	LiaSettings *LiaSettings `json:"liaSettings,omitempty"`
  6013  	// MerchantId: The ID of the managing account.
  6014  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  6015  	// Method: The method of the batch entry. Acceptable values are: - "get" -
  6016  	// "getAccessibleGmbAccounts" - "requestGmbAccess" -
  6017  	// "requestInventoryVerification" - "setInventoryVerificationContact" -
  6018  	// "update"
  6019  	Method string `json:"method,omitempty"`
  6020  	// OmnichannelExperience: The omnichannel experience for a country. Required
  6021  	// only for SetOmnichannelExperience.
  6022  	OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"`
  6023  	// PosDataProviderId: The ID of POS data provider. Required only for
  6024  	// SetPosProvider.
  6025  	PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"`
  6026  	// PosExternalAccountId: The account ID by which this merchant is known to the
  6027  	// POS provider.
  6028  	PosExternalAccountId string `json:"posExternalAccountId,omitempty"`
  6029  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  6030  	// unconditionally include in API requests. By default, fields with empty or
  6031  	// default values are omitted from API requests. See
  6032  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6033  	// details.
  6034  	ForceSendFields []string `json:"-"`
  6035  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  6036  	// requests with the JSON null value. By default, fields with empty values are
  6037  	// omitted from API requests. See
  6038  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6039  	NullFields []string `json:"-"`
  6040  }
  6041  
  6042  func (s *LiasettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
  6043  	type NoMethod LiasettingsCustomBatchRequestEntry
  6044  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6045  }
  6046  
  6047  type LiasettingsCustomBatchResponse struct {
  6048  	// Entries: The result of the execution of the batch requests.
  6049  	Entries []*LiasettingsCustomBatchResponseEntry `json:"entries,omitempty"`
  6050  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6051  	// "content#liasettingsCustomBatchResponse".
  6052  	Kind string `json:"kind,omitempty"`
  6053  
  6054  	// ServerResponse contains the HTTP response code and headers from the server.
  6055  	googleapi.ServerResponse `json:"-"`
  6056  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  6057  	// include in API requests. By default, fields with empty or default values are
  6058  	// omitted from API requests. See
  6059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6060  	// details.
  6061  	ForceSendFields []string `json:"-"`
  6062  	// NullFields is a list of field names (e.g. "Entries") to include in API
  6063  	// requests with the JSON null value. By default, fields with empty values are
  6064  	// omitted from API requests. See
  6065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6066  	NullFields []string `json:"-"`
  6067  }
  6068  
  6069  func (s *LiasettingsCustomBatchResponse) MarshalJSON() ([]byte, error) {
  6070  	type NoMethod LiasettingsCustomBatchResponse
  6071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6072  }
  6073  
  6074  type LiasettingsCustomBatchResponseEntry struct {
  6075  	// BatchId: The ID of the request entry to which this entry responds.
  6076  	BatchId int64 `json:"batchId,omitempty"`
  6077  	// Errors: A list of errors defined if, and only if, the request failed.
  6078  	Errors *Errors `json:"errors,omitempty"`
  6079  	// GmbAccounts: The list of accessible Business Profiles.
  6080  	GmbAccounts *GmbAccounts `json:"gmbAccounts,omitempty"`
  6081  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6082  	// "content#liasettingsCustomBatchResponseEntry"
  6083  	Kind string `json:"kind,omitempty"`
  6084  	// LiaSettings: The retrieved or updated Lia settings.
  6085  	LiaSettings *LiaSettings `json:"liaSettings,omitempty"`
  6086  	// OmnichannelExperience: The updated omnichannel experience for a country.
  6087  	OmnichannelExperience *LiaOmnichannelExperience `json:"omnichannelExperience,omitempty"`
  6088  	// PosDataProviders: The list of POS data providers.
  6089  	PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"`
  6090  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
  6091  	// include in API requests. By default, fields with empty or default values are
  6092  	// omitted from API requests. See
  6093  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6094  	// details.
  6095  	ForceSendFields []string `json:"-"`
  6096  	// NullFields is a list of field names (e.g. "BatchId") to include in API
  6097  	// requests with the JSON null value. By default, fields with empty values are
  6098  	// omitted from API requests. See
  6099  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6100  	NullFields []string `json:"-"`
  6101  }
  6102  
  6103  func (s *LiasettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
  6104  	type NoMethod LiasettingsCustomBatchResponseEntry
  6105  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6106  }
  6107  
  6108  type LiasettingsGetAccessibleGmbAccountsResponse struct {
  6109  	// AccountId: The ID of the Merchant Center account.
  6110  	AccountId uint64 `json:"accountId,omitempty,string"`
  6111  	// GmbAccounts: A list of Business Profiles which are available to the
  6112  	// merchant.
  6113  	GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
  6114  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6115  	// "content#liasettingsGetAccessibleGmbAccountsResponse".
  6116  	Kind string `json:"kind,omitempty"`
  6117  
  6118  	// ServerResponse contains the HTTP response code and headers from the server.
  6119  	googleapi.ServerResponse `json:"-"`
  6120  	// ForceSendFields is a list of field names (e.g. "AccountId") to
  6121  	// unconditionally include in API requests. By default, fields with empty or
  6122  	// default values are omitted from API requests. See
  6123  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6124  	// details.
  6125  	ForceSendFields []string `json:"-"`
  6126  	// NullFields is a list of field names (e.g. "AccountId") to include in API
  6127  	// requests with the JSON null value. By default, fields with empty values are
  6128  	// omitted from API requests. See
  6129  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6130  	NullFields []string `json:"-"`
  6131  }
  6132  
  6133  func (s *LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON() ([]byte, error) {
  6134  	type NoMethod LiasettingsGetAccessibleGmbAccountsResponse
  6135  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6136  }
  6137  
  6138  type LiasettingsListPosDataProvidersResponse struct {
  6139  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6140  	// "content#liasettingsListPosDataProvidersResponse".
  6141  	Kind string `json:"kind,omitempty"`
  6142  	// PosDataProviders: The list of POS data providers for each eligible country
  6143  	PosDataProviders []*PosDataProviders `json:"posDataProviders,omitempty"`
  6144  
  6145  	// ServerResponse contains the HTTP response code and headers from the server.
  6146  	googleapi.ServerResponse `json:"-"`
  6147  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  6148  	// include in API requests. By default, fields with empty or default values are
  6149  	// omitted from API requests. See
  6150  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6151  	// details.
  6152  	ForceSendFields []string `json:"-"`
  6153  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  6154  	// with the JSON null value. By default, fields with empty values are omitted
  6155  	// from API requests. See
  6156  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6157  	NullFields []string `json:"-"`
  6158  }
  6159  
  6160  func (s *LiasettingsListPosDataProvidersResponse) MarshalJSON() ([]byte, error) {
  6161  	type NoMethod LiasettingsListPosDataProvidersResponse
  6162  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6163  }
  6164  
  6165  type LiasettingsListResponse struct {
  6166  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6167  	// "content#liasettingsListResponse".
  6168  	Kind string `json:"kind,omitempty"`
  6169  	// NextPageToken: The token for the retrieval of the next page of LIA settings.
  6170  	NextPageToken string         `json:"nextPageToken,omitempty"`
  6171  	Resources     []*LiaSettings `json:"resources,omitempty"`
  6172  
  6173  	// ServerResponse contains the HTTP response code and headers from the server.
  6174  	googleapi.ServerResponse `json:"-"`
  6175  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  6176  	// include in API requests. By default, fields with empty or default values are
  6177  	// omitted from API requests. See
  6178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6179  	// details.
  6180  	ForceSendFields []string `json:"-"`
  6181  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  6182  	// with the JSON null value. By default, fields with empty values are omitted
  6183  	// from API requests. See
  6184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6185  	NullFields []string `json:"-"`
  6186  }
  6187  
  6188  func (s *LiasettingsListResponse) MarshalJSON() ([]byte, error) {
  6189  	type NoMethod LiasettingsListResponse
  6190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6191  }
  6192  
  6193  type LiasettingsRequestGmbAccessResponse struct {
  6194  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6195  	// "content#liasettingsRequestGmbAccessResponse".
  6196  	Kind string `json:"kind,omitempty"`
  6197  
  6198  	// ServerResponse contains the HTTP response code and headers from the server.
  6199  	googleapi.ServerResponse `json:"-"`
  6200  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  6201  	// include in API requests. By default, fields with empty or default values are
  6202  	// omitted from API requests. See
  6203  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6204  	// details.
  6205  	ForceSendFields []string `json:"-"`
  6206  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  6207  	// with the JSON null value. By default, fields with empty values are omitted
  6208  	// from API requests. See
  6209  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6210  	NullFields []string `json:"-"`
  6211  }
  6212  
  6213  func (s *LiasettingsRequestGmbAccessResponse) MarshalJSON() ([]byte, error) {
  6214  	type NoMethod LiasettingsRequestGmbAccessResponse
  6215  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6216  }
  6217  
  6218  type LiasettingsRequestInventoryVerificationResponse struct {
  6219  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6220  	// "content#liasettingsRequestInventoryVerificationResponse".
  6221  	Kind string `json:"kind,omitempty"`
  6222  
  6223  	// ServerResponse contains the HTTP response code and headers from the server.
  6224  	googleapi.ServerResponse `json:"-"`
  6225  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  6226  	// include in API requests. By default, fields with empty or default values are
  6227  	// omitted from API requests. See
  6228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6229  	// details.
  6230  	ForceSendFields []string `json:"-"`
  6231  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  6232  	// with the JSON null value. By default, fields with empty values are omitted
  6233  	// from API requests. See
  6234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6235  	NullFields []string `json:"-"`
  6236  }
  6237  
  6238  func (s *LiasettingsRequestInventoryVerificationResponse) MarshalJSON() ([]byte, error) {
  6239  	type NoMethod LiasettingsRequestInventoryVerificationResponse
  6240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6241  }
  6242  
  6243  type LiasettingsSetInventoryVerificationContactResponse struct {
  6244  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6245  	// "content#liasettingsSetInventoryVerificationContactResponse".
  6246  	Kind string `json:"kind,omitempty"`
  6247  
  6248  	// ServerResponse contains the HTTP response code and headers from the server.
  6249  	googleapi.ServerResponse `json:"-"`
  6250  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  6251  	// include in API requests. By default, fields with empty or default values are
  6252  	// omitted from API requests. See
  6253  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6254  	// details.
  6255  	ForceSendFields []string `json:"-"`
  6256  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  6257  	// with the JSON null value. By default, fields with empty values are omitted
  6258  	// from API requests. See
  6259  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6260  	NullFields []string `json:"-"`
  6261  }
  6262  
  6263  func (s *LiasettingsSetInventoryVerificationContactResponse) MarshalJSON() ([]byte, error) {
  6264  	type NoMethod LiasettingsSetInventoryVerificationContactResponse
  6265  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6266  }
  6267  
  6268  type LiasettingsSetPosDataProviderResponse struct {
  6269  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6270  	// "content#liasettingsSetPosDataProviderResponse".
  6271  	Kind string `json:"kind,omitempty"`
  6272  
  6273  	// ServerResponse contains the HTTP response code and headers from the server.
  6274  	googleapi.ServerResponse `json:"-"`
  6275  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  6276  	// include in API requests. By default, fields with empty or default values are
  6277  	// omitted from API requests. See
  6278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6279  	// details.
  6280  	ForceSendFields []string `json:"-"`
  6281  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  6282  	// with the JSON null value. By default, fields with empty values are omitted
  6283  	// from API requests. See
  6284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6285  	NullFields []string `json:"-"`
  6286  }
  6287  
  6288  func (s *LiasettingsSetPosDataProviderResponse) MarshalJSON() ([]byte, error) {
  6289  	type NoMethod LiasettingsSetPosDataProviderResponse
  6290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6291  }
  6292  
  6293  type LinkService struct {
  6294  	// Service: Service provided to or by the linked account. Acceptable values
  6295  	// are: - "shoppingActionsOrderManagement" -
  6296  	// "shoppingActionsProductManagement" - "shoppingAdsProductManagement" -
  6297  	// "paymentProcessing"
  6298  	Service string `json:"service,omitempty"`
  6299  	// Status: Status of the link Acceptable values are: - "active" -
  6300  	// "inactive" - "pending"
  6301  	Status string `json:"status,omitempty"`
  6302  	// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
  6303  	// include in API requests. By default, fields with empty or default values are
  6304  	// omitted from API requests. See
  6305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6306  	// details.
  6307  	ForceSendFields []string `json:"-"`
  6308  	// NullFields is a list of field names (e.g. "Service") to include in API
  6309  	// requests with the JSON null value. By default, fields with empty values are
  6310  	// omitted from API requests. See
  6311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6312  	NullFields []string `json:"-"`
  6313  }
  6314  
  6315  func (s *LinkService) MarshalJSON() ([]byte, error) {
  6316  	type NoMethod LinkService
  6317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6318  }
  6319  
  6320  type LinkedAccount struct {
  6321  	// LinkedAccountId: The ID of the linked account.
  6322  	LinkedAccountId string `json:"linkedAccountId,omitempty"`
  6323  	// Services: List of provided services.
  6324  	Services []*LinkService `json:"services,omitempty"`
  6325  	// ForceSendFields is a list of field names (e.g. "LinkedAccountId") to
  6326  	// unconditionally include in API requests. By default, fields with empty or
  6327  	// default values are omitted from API requests. See
  6328  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6329  	// details.
  6330  	ForceSendFields []string `json:"-"`
  6331  	// NullFields is a list of field names (e.g. "LinkedAccountId") to include in
  6332  	// API requests with the JSON null value. By default, fields with empty values
  6333  	// are omitted from API requests. See
  6334  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6335  	NullFields []string `json:"-"`
  6336  }
  6337  
  6338  func (s *LinkedAccount) MarshalJSON() ([]byte, error) {
  6339  	type NoMethod LinkedAccount
  6340  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6341  }
  6342  
  6343  // ListAccountLabelsResponse: Response message for the `ListAccountLabels`
  6344  // method.
  6345  type ListAccountLabelsResponse struct {
  6346  	// AccountLabels: The labels from the specified account.
  6347  	AccountLabels []*AccountLabel `json:"accountLabels,omitempty"`
  6348  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6349  	// next page. If this field is omitted, there are no subsequent pages.
  6350  	NextPageToken string `json:"nextPageToken,omitempty"`
  6351  
  6352  	// ServerResponse contains the HTTP response code and headers from the server.
  6353  	googleapi.ServerResponse `json:"-"`
  6354  	// ForceSendFields is a list of field names (e.g. "AccountLabels") to
  6355  	// unconditionally include in API requests. By default, fields with empty or
  6356  	// default values are omitted from API requests. See
  6357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6358  	// details.
  6359  	ForceSendFields []string `json:"-"`
  6360  	// NullFields is a list of field names (e.g. "AccountLabels") to include in API
  6361  	// requests with the JSON null value. By default, fields with empty values are
  6362  	// omitted from API requests. See
  6363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6364  	NullFields []string `json:"-"`
  6365  }
  6366  
  6367  func (s *ListAccountLabelsResponse) MarshalJSON() ([]byte, error) {
  6368  	type NoMethod ListAccountLabelsResponse
  6369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6370  }
  6371  
  6372  // ListAccountReturnCarrierResponse: Response for listing account return
  6373  // carriers.
  6374  type ListAccountReturnCarrierResponse struct {
  6375  	// AccountReturnCarriers: List of all available account return carriers for the
  6376  	// merchant.
  6377  	AccountReturnCarriers []*AccountReturnCarrier `json:"accountReturnCarriers,omitempty"`
  6378  
  6379  	// ServerResponse contains the HTTP response code and headers from the server.
  6380  	googleapi.ServerResponse `json:"-"`
  6381  	// ForceSendFields is a list of field names (e.g. "AccountReturnCarriers") to
  6382  	// unconditionally include in API requests. By default, fields with empty or
  6383  	// default values are omitted from API requests. See
  6384  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6385  	// details.
  6386  	ForceSendFields []string `json:"-"`
  6387  	// NullFields is a list of field names (e.g. "AccountReturnCarriers") to
  6388  	// include in API requests with the JSON null value. By default, fields with
  6389  	// empty values are omitted from API requests. See
  6390  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6391  	NullFields []string `json:"-"`
  6392  }
  6393  
  6394  func (s *ListAccountReturnCarrierResponse) MarshalJSON() ([]byte, error) {
  6395  	type NoMethod ListAccountReturnCarrierResponse
  6396  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6397  }
  6398  
  6399  // ListCollectionStatusesResponse: Response message for the
  6400  // ListCollectionStatuses method.
  6401  type ListCollectionStatusesResponse struct {
  6402  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6403  	// next page. If this field is omitted, there are no subsequent pages.
  6404  	NextPageToken string `json:"nextPageToken,omitempty"`
  6405  	// Resources: The collectionstatuses listed.
  6406  	Resources []*CollectionStatus `json:"resources,omitempty"`
  6407  
  6408  	// ServerResponse contains the HTTP response code and headers from the server.
  6409  	googleapi.ServerResponse `json:"-"`
  6410  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6411  	// unconditionally include in API requests. By default, fields with empty or
  6412  	// default values are omitted from API requests. See
  6413  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6414  	// details.
  6415  	ForceSendFields []string `json:"-"`
  6416  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6417  	// requests with the JSON null value. By default, fields with empty values are
  6418  	// omitted from API requests. See
  6419  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6420  	NullFields []string `json:"-"`
  6421  }
  6422  
  6423  func (s *ListCollectionStatusesResponse) MarshalJSON() ([]byte, error) {
  6424  	type NoMethod ListCollectionStatusesResponse
  6425  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6426  }
  6427  
  6428  // ListCollectionsResponse: Response message for the ListCollections method.
  6429  type ListCollectionsResponse struct {
  6430  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6431  	// next page. If this field is omitted, there are no subsequent pages.
  6432  	NextPageToken string `json:"nextPageToken,omitempty"`
  6433  	// Resources: The collections listed.
  6434  	Resources []*Collection `json:"resources,omitempty"`
  6435  
  6436  	// ServerResponse contains the HTTP response code and headers from the server.
  6437  	googleapi.ServerResponse `json:"-"`
  6438  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6439  	// unconditionally include in API requests. By default, fields with empty or
  6440  	// default values are omitted from API requests. See
  6441  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6442  	// details.
  6443  	ForceSendFields []string `json:"-"`
  6444  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6445  	// requests with the JSON null value. By default, fields with empty values are
  6446  	// omitted from API requests. See
  6447  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6448  	NullFields []string `json:"-"`
  6449  }
  6450  
  6451  func (s *ListCollectionsResponse) MarshalJSON() ([]byte, error) {
  6452  	type NoMethod ListCollectionsResponse
  6453  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6454  }
  6455  
  6456  // ListConversionSourcesResponse: Response message for the
  6457  // ListConversionSources method.
  6458  type ListConversionSourcesResponse struct {
  6459  	// ConversionSources: List of conversion sources.
  6460  	ConversionSources []*ConversionSource `json:"conversionSources,omitempty"`
  6461  	// NextPageToken: Token to be used to fetch the next results page.
  6462  	NextPageToken string `json:"nextPageToken,omitempty"`
  6463  
  6464  	// ServerResponse contains the HTTP response code and headers from the server.
  6465  	googleapi.ServerResponse `json:"-"`
  6466  	// ForceSendFields is a list of field names (e.g. "ConversionSources") to
  6467  	// unconditionally include in API requests. By default, fields with empty or
  6468  	// default values are omitted from API requests. See
  6469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6470  	// details.
  6471  	ForceSendFields []string `json:"-"`
  6472  	// NullFields is a list of field names (e.g. "ConversionSources") to include in
  6473  	// API requests with the JSON null value. By default, fields with empty values
  6474  	// are omitted from API requests. See
  6475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6476  	NullFields []string `json:"-"`
  6477  }
  6478  
  6479  func (s *ListConversionSourcesResponse) MarshalJSON() ([]byte, error) {
  6480  	type NoMethod ListConversionSourcesResponse
  6481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6482  }
  6483  
  6484  // ListCssesResponse: The response message for the `ListCsses` method
  6485  type ListCssesResponse struct {
  6486  	// Csses: The CSS domains affiliated with the specified CSS group.
  6487  	Csses []*Css `json:"csses,omitempty"`
  6488  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6489  	// next page. If this field is omitted, there are no subsequent pages.
  6490  	NextPageToken string `json:"nextPageToken,omitempty"`
  6491  
  6492  	// ServerResponse contains the HTTP response code and headers from the server.
  6493  	googleapi.ServerResponse `json:"-"`
  6494  	// ForceSendFields is a list of field names (e.g. "Csses") to unconditionally
  6495  	// include in API requests. By default, fields with empty or default values are
  6496  	// omitted from API requests. See
  6497  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6498  	// details.
  6499  	ForceSendFields []string `json:"-"`
  6500  	// NullFields is a list of field names (e.g. "Csses") to include in API
  6501  	// requests with the JSON null value. By default, fields with empty values are
  6502  	// omitted from API requests. See
  6503  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6504  	NullFields []string `json:"-"`
  6505  }
  6506  
  6507  func (s *ListCssesResponse) MarshalJSON() ([]byte, error) {
  6508  	type NoMethod ListCssesResponse
  6509  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6510  }
  6511  
  6512  // ListMethodQuotasResponse: Response message for the ListMethodQuotas method.
  6513  type ListMethodQuotasResponse struct {
  6514  	// MethodQuotas: The current quota usage and limits per each method.
  6515  	MethodQuotas []*MethodQuota `json:"methodQuotas,omitempty"`
  6516  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6517  	// next page. If this field is omitted, there are no subsequent pages.
  6518  	NextPageToken string `json:"nextPageToken,omitempty"`
  6519  
  6520  	// ServerResponse contains the HTTP response code and headers from the server.
  6521  	googleapi.ServerResponse `json:"-"`
  6522  	// ForceSendFields is a list of field names (e.g. "MethodQuotas") to
  6523  	// unconditionally include in API requests. By default, fields with empty or
  6524  	// default values are omitted from API requests. See
  6525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6526  	// details.
  6527  	ForceSendFields []string `json:"-"`
  6528  	// NullFields is a list of field names (e.g. "MethodQuotas") to include in API
  6529  	// requests with the JSON null value. By default, fields with empty values are
  6530  	// omitted from API requests. See
  6531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6532  	NullFields []string `json:"-"`
  6533  }
  6534  
  6535  func (s *ListMethodQuotasResponse) MarshalJSON() ([]byte, error) {
  6536  	type NoMethod ListMethodQuotasResponse
  6537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6538  }
  6539  
  6540  // ListPromotionResponse: Response message for Promotions.List method.
  6541  type ListPromotionResponse struct {
  6542  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6543  	// next page. If this field is omitted, there are no subsequent pages.
  6544  	NextPageToken string `json:"nextPageToken,omitempty"`
  6545  	// Promotions: List of all available promotions for the merchant.
  6546  	Promotions []*Promotion `json:"promotions,omitempty"`
  6547  
  6548  	// ServerResponse contains the HTTP response code and headers from the server.
  6549  	googleapi.ServerResponse `json:"-"`
  6550  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6551  	// unconditionally include in API requests. By default, fields with empty or
  6552  	// default values are omitted from API requests. See
  6553  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6554  	// details.
  6555  	ForceSendFields []string `json:"-"`
  6556  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6557  	// requests with the JSON null value. By default, fields with empty values are
  6558  	// omitted from API requests. See
  6559  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6560  	NullFields []string `json:"-"`
  6561  }
  6562  
  6563  func (s *ListPromotionResponse) MarshalJSON() ([]byte, error) {
  6564  	type NoMethod ListPromotionResponse
  6565  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6566  }
  6567  
  6568  // ListRegionsResponse: Response message for the `ListRegions` method.
  6569  type ListRegionsResponse struct {
  6570  	// NextPageToken: A token, which can be sent as `page_token` to retrieve the
  6571  	// next page. If this field is omitted, there are no subsequent pages.
  6572  	NextPageToken string `json:"nextPageToken,omitempty"`
  6573  	// Regions: The regions from the specified merchant.
  6574  	Regions []*Region `json:"regions,omitempty"`
  6575  
  6576  	// ServerResponse contains the HTTP response code and headers from the server.
  6577  	googleapi.ServerResponse `json:"-"`
  6578  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6579  	// unconditionally include in API requests. By default, fields with empty or
  6580  	// default values are omitted from API requests. See
  6581  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6582  	// details.
  6583  	ForceSendFields []string `json:"-"`
  6584  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6585  	// requests with the JSON null value. By default, fields with empty values are
  6586  	// omitted from API requests. See
  6587  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6588  	NullFields []string `json:"-"`
  6589  }
  6590  
  6591  func (s *ListRegionsResponse) MarshalJSON() ([]byte, error) {
  6592  	type NoMethod ListRegionsResponse
  6593  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6594  }
  6595  
  6596  // ListReturnPolicyOnlineResponse: Response message for the
  6597  // `ListReturnPolicyOnline` method.
  6598  type ListReturnPolicyOnlineResponse struct {
  6599  	// ReturnPolicies: The retrieved return policies.
  6600  	ReturnPolicies []*ReturnPolicyOnline `json:"returnPolicies,omitempty"`
  6601  
  6602  	// ServerResponse contains the HTTP response code and headers from the server.
  6603  	googleapi.ServerResponse `json:"-"`
  6604  	// ForceSendFields is a list of field names (e.g. "ReturnPolicies") to
  6605  	// unconditionally include in API requests. By default, fields with empty or
  6606  	// default values are omitted from API requests. See
  6607  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6608  	// details.
  6609  	ForceSendFields []string `json:"-"`
  6610  	// NullFields is a list of field names (e.g. "ReturnPolicies") to include in
  6611  	// API requests with the JSON null value. By default, fields with empty values
  6612  	// are omitted from API requests. See
  6613  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6614  	NullFields []string `json:"-"`
  6615  }
  6616  
  6617  func (s *ListReturnPolicyOnlineResponse) MarshalJSON() ([]byte, error) {
  6618  	type NoMethod ListReturnPolicyOnlineResponse
  6619  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6620  }
  6621  
  6622  // LocalInventory: Local inventory resource. For accepted attribute values, see
  6623  // the local product inventory feed specification.
  6624  type LocalInventory struct {
  6625  	// Availability: The availability of the product. For accepted attribute
  6626  	// values, see the local product inventory feed specification.
  6627  	Availability string `json:"availability,omitempty"`
  6628  	// CustomAttributes: A list of custom (merchant-provided) attributes. Can also
  6629  	// be used to submit any attribute of the feed specification in its generic
  6630  	// form, for example, `{ "name": "size type", "value": "regular" }`.
  6631  	CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
  6632  	// InstoreProductLocation: The in-store product location.
  6633  	InstoreProductLocation string `json:"instoreProductLocation,omitempty"`
  6634  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6635  	// "content#localInventory"
  6636  	Kind string `json:"kind,omitempty"`
  6637  	// PickupMethod: The supported pickup method for this offer. Unless the value
  6638  	// is "not supported", this field must be submitted together with `pickupSla`.
  6639  	// For accepted attribute values, see the local product inventory feed
  6640  	// specification.
  6641  	PickupMethod string `json:"pickupMethod,omitempty"`
  6642  	// PickupSla: The expected date that an order will be ready for pickup relative
  6643  	// to the order date. Must be submitted together with `pickupMethod`. For
  6644  	// accepted attribute values, see the local product inventory feed
  6645  	// specification.
  6646  	PickupSla string `json:"pickupSla,omitempty"`
  6647  	// Price: The price of the product.
  6648  	Price *Price `json:"price,omitempty"`
  6649  	// Quantity: The quantity of the product. Must be nonnegative.
  6650  	Quantity int64 `json:"quantity,omitempty"`
  6651  	// SalePrice: The sale price of the product. Mandatory if
  6652  	// `sale_price_effective_date` is defined.
  6653  	SalePrice *Price `json:"salePrice,omitempty"`
  6654  	// SalePriceEffectiveDate: A date range represented by a pair of ISO 8601 dates
  6655  	// separated by a space, comma, or slash. Both dates may be specified as 'null'
  6656  	// if undecided.
  6657  	SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`
  6658  	// StoreCode: Required. The store code of this local inventory resource.
  6659  	StoreCode string `json:"storeCode,omitempty"`
  6660  
  6661  	// ServerResponse contains the HTTP response code and headers from the server.
  6662  	googleapi.ServerResponse `json:"-"`
  6663  	// ForceSendFields is a list of field names (e.g. "Availability") to
  6664  	// unconditionally include in API requests. By default, fields with empty or
  6665  	// default values are omitted from API requests. See
  6666  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6667  	// details.
  6668  	ForceSendFields []string `json:"-"`
  6669  	// NullFields is a list of field names (e.g. "Availability") to include in API
  6670  	// requests with the JSON null value. By default, fields with empty values are
  6671  	// omitted from API requests. See
  6672  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6673  	NullFields []string `json:"-"`
  6674  }
  6675  
  6676  func (s *LocalInventory) MarshalJSON() ([]byte, error) {
  6677  	type NoMethod LocalInventory
  6678  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6679  }
  6680  
  6681  type LocalinventoryCustomBatchRequest struct {
  6682  	// Entries: The request entries to be processed in the batch.
  6683  	Entries []*LocalinventoryCustomBatchRequestEntry `json:"entries,omitempty"`
  6684  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  6685  	// include in API requests. By default, fields with empty or default values are
  6686  	// omitted from API requests. See
  6687  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6688  	// details.
  6689  	ForceSendFields []string `json:"-"`
  6690  	// NullFields is a list of field names (e.g. "Entries") to include in API
  6691  	// requests with the JSON null value. By default, fields with empty values are
  6692  	// omitted from API requests. See
  6693  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6694  	NullFields []string `json:"-"`
  6695  }
  6696  
  6697  func (s *LocalinventoryCustomBatchRequest) MarshalJSON() ([]byte, error) {
  6698  	type NoMethod LocalinventoryCustomBatchRequest
  6699  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6700  }
  6701  
  6702  // LocalinventoryCustomBatchRequestEntry: Batch entry encoding a single local
  6703  // inventory update request.
  6704  type LocalinventoryCustomBatchRequestEntry struct {
  6705  	// BatchId: An entry ID, unique within the batch request.
  6706  	BatchId int64 `json:"batchId,omitempty"`
  6707  	// LocalInventory: Local inventory of the product.
  6708  	LocalInventory *LocalInventory `json:"localInventory,omitempty"`
  6709  	// MerchantId: The ID of the managing account.
  6710  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  6711  	// Method: Method of the batch request entry. Acceptable values are: -
  6712  	// "insert"
  6713  	Method string `json:"method,omitempty"`
  6714  	// ProductId: The ID of the product for which to update local inventory.
  6715  	ProductId string `json:"productId,omitempty"`
  6716  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
  6717  	// include in API requests. By default, fields with empty or default values are
  6718  	// omitted from API requests. See
  6719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6720  	// details.
  6721  	ForceSendFields []string `json:"-"`
  6722  	// NullFields is a list of field names (e.g. "BatchId") to include in API
  6723  	// requests with the JSON null value. By default, fields with empty values are
  6724  	// omitted from API requests. See
  6725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6726  	NullFields []string `json:"-"`
  6727  }
  6728  
  6729  func (s *LocalinventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
  6730  	type NoMethod LocalinventoryCustomBatchRequestEntry
  6731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6732  }
  6733  
  6734  type LocalinventoryCustomBatchResponse struct {
  6735  	// Entries: The result of the execution of the batch requests.
  6736  	Entries []*LocalinventoryCustomBatchResponseEntry `json:"entries,omitempty"`
  6737  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6738  	// "content#localinventoryCustomBatchResponse".
  6739  	Kind string `json:"kind,omitempty"`
  6740  
  6741  	// ServerResponse contains the HTTP response code and headers from the server.
  6742  	googleapi.ServerResponse `json:"-"`
  6743  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  6744  	// include in API requests. By default, fields with empty or default values are
  6745  	// omitted from API requests. See
  6746  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6747  	// details.
  6748  	ForceSendFields []string `json:"-"`
  6749  	// NullFields is a list of field names (e.g. "Entries") to include in API
  6750  	// requests with the JSON null value. By default, fields with empty values are
  6751  	// omitted from API requests. See
  6752  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6753  	NullFields []string `json:"-"`
  6754  }
  6755  
  6756  func (s *LocalinventoryCustomBatchResponse) MarshalJSON() ([]byte, error) {
  6757  	type NoMethod LocalinventoryCustomBatchResponse
  6758  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6759  }
  6760  
  6761  // LocalinventoryCustomBatchResponseEntry: Batch entry encoding a single local
  6762  // inventory update response.
  6763  type LocalinventoryCustomBatchResponseEntry struct {
  6764  	// BatchId: The ID of the request entry this entry responds to.
  6765  	BatchId int64 `json:"batchId,omitempty"`
  6766  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
  6767  	// errors fail the whole request.
  6768  	Errors *Errors `json:"errors,omitempty"`
  6769  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  6770  	// "content#localinventoryCustomBatchResponseEntry"
  6771  	Kind string `json:"kind,omitempty"`
  6772  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
  6773  	// include in API requests. By default, fields with empty or default values are
  6774  	// omitted from API requests. See
  6775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6776  	// details.
  6777  	ForceSendFields []string `json:"-"`
  6778  	// NullFields is a list of field names (e.g. "BatchId") to include in API
  6779  	// requests with the JSON null value. By default, fields with empty values are
  6780  	// omitted from API requests. See
  6781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6782  	NullFields []string `json:"-"`
  6783  }
  6784  
  6785  func (s *LocalinventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
  6786  	type NoMethod LocalinventoryCustomBatchResponseEntry
  6787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6788  }
  6789  
  6790  type LocationIdSet struct {
  6791  	// LocationIds: A non-empty list of location IDs. They must all be of the same
  6792  	// location type (for example, state).
  6793  	LocationIds []string `json:"locationIds,omitempty"`
  6794  	// ForceSendFields is a list of field names (e.g. "LocationIds") to
  6795  	// unconditionally include in API requests. By default, fields with empty or
  6796  	// default values are omitted from API requests. See
  6797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6798  	// details.
  6799  	ForceSendFields []string `json:"-"`
  6800  	// NullFields is a list of field names (e.g. "LocationIds") to include in API
  6801  	// requests with the JSON null value. By default, fields with empty values are
  6802  	// omitted from API requests. See
  6803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6804  	NullFields []string `json:"-"`
  6805  }
  6806  
  6807  func (s *LocationIdSet) MarshalJSON() ([]byte, error) {
  6808  	type NoMethod LocationIdSet
  6809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6810  }
  6811  
  6812  // LoyaltyProgram: Allows the setting up of loyalty program benefits (for
  6813  // example price or points).
  6814  // https://support.google.com/merchants/answer/12922446
  6815  type LoyaltyProgram struct {
  6816  	// CashbackForFutureUse: Optional. The cashback that can be used for future
  6817  	// purchases.
  6818  	CashbackForFutureUse *Price `json:"cashbackForFutureUse,omitempty"`
  6819  	// LoyaltyPoints: Optional. The amount of loyalty points earned on a purchase.
  6820  	LoyaltyPoints int64 `json:"loyaltyPoints,omitempty,string"`
  6821  	// Price: Optional. The price for members of the given tier (instant discount
  6822  	// price). Must be smaller or equal to the regular price.
  6823  	Price *Price `json:"price,omitempty"`
  6824  	// ProgramLabel: Required. The label of the loyalty program. This is an
  6825  	// internal label that uniquely identifies the relationship between a merchant
  6826  	// entity and a loyalty program entity. It must be provided so that system can
  6827  	// associate the assets below (for example, price and points) with a merchant.
  6828  	// The corresponding program must be linked to the merchant account.
  6829  	ProgramLabel string `json:"programLabel,omitempty"`
  6830  	// TierLabel: Required. The label of the tier within the loyalty program. Must
  6831  	// match one of the labels within the program.
  6832  	TierLabel string `json:"tierLabel,omitempty"`
  6833  	// ForceSendFields is a list of field names (e.g. "CashbackForFutureUse") to
  6834  	// unconditionally include in API requests. By default, fields with empty or
  6835  	// default values are omitted from API requests. See
  6836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6837  	// details.
  6838  	ForceSendFields []string `json:"-"`
  6839  	// NullFields is a list of field names (e.g. "CashbackForFutureUse") to include
  6840  	// in API requests with the JSON null value. By default, fields with empty
  6841  	// values are omitted from API requests. See
  6842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6843  	NullFields []string `json:"-"`
  6844  }
  6845  
  6846  func (s *LoyaltyProgram) MarshalJSON() ([]byte, error) {
  6847  	type NoMethod LoyaltyProgram
  6848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6849  }
  6850  
  6851  // MerchantCenterDestination: "Merchant Center Destination" sources can be used
  6852  // to send conversion events from a website using a Google tag directly to a
  6853  // Merchant Center account where the source is created.
  6854  type MerchantCenterDestination struct {
  6855  	// AttributionSettings: Required. Attribution settings being used for the
  6856  	// Merchant Center Destination.
  6857  	AttributionSettings *AttributionSettings `json:"attributionSettings,omitempty"`
  6858  	// CurrencyCode: Required. Three-letter currency code (ISO 4217). The currency
  6859  	// code defines in which currency the conversions sent to this destination will
  6860  	// be reported in Merchant Center.
  6861  	CurrencyCode string `json:"currencyCode,omitempty"`
  6862  	// DestinationId: Output only. Merchant Center Destination ID.
  6863  	DestinationId string `json:"destinationId,omitempty"`
  6864  	// DisplayName: Required. Merchant-specified display name for the destination.
  6865  	// This is the name that identifies the conversion source within the Merchant
  6866  	// Center UI. Limited to 64 characters.
  6867  	DisplayName string `json:"displayName,omitempty"`
  6868  	// ForceSendFields is a list of field names (e.g. "AttributionSettings") to
  6869  	// unconditionally include in API requests. By default, fields with empty or
  6870  	// default values are omitted from API requests. See
  6871  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6872  	// details.
  6873  	ForceSendFields []string `json:"-"`
  6874  	// NullFields is a list of field names (e.g. "AttributionSettings") to include
  6875  	// in API requests with the JSON null value. By default, fields with empty
  6876  	// values are omitted from API requests. See
  6877  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6878  	NullFields []string `json:"-"`
  6879  }
  6880  
  6881  func (s *MerchantCenterDestination) MarshalJSON() ([]byte, error) {
  6882  	type NoMethod MerchantCenterDestination
  6883  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6884  }
  6885  
  6886  // MerchantOrderReturn: Order return. Production access (all methods) requires
  6887  // the order manager role. Sandbox access does not.
  6888  type MerchantOrderReturn struct {
  6889  	// CreationDate: The date of creation of the return, in ISO 8601 format.
  6890  	CreationDate string `json:"creationDate,omitempty"`
  6891  	// MerchantOrderId: Merchant defined order ID.
  6892  	MerchantOrderId string `json:"merchantOrderId,omitempty"`
  6893  	// OrderId: Google order ID.
  6894  	OrderId string `json:"orderId,omitempty"`
  6895  	// OrderReturnId: Order return ID generated by Google.
  6896  	OrderReturnId string `json:"orderReturnId,omitempty"`
  6897  	// ReturnItems: Items of the return.
  6898  	ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"`
  6899  	// ReturnPricingInfo: Information about shipping costs.
  6900  	ReturnPricingInfo *ReturnPricingInfo `json:"returnPricingInfo,omitempty"`
  6901  	// ReturnShipments: Shipments of the return.
  6902  	ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"`
  6903  
  6904  	// ServerResponse contains the HTTP response code and headers from the server.
  6905  	googleapi.ServerResponse `json:"-"`
  6906  	// ForceSendFields is a list of field names (e.g. "CreationDate") to
  6907  	// unconditionally include in API requests. By default, fields with empty or
  6908  	// default values are omitted from API requests. See
  6909  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6910  	// details.
  6911  	ForceSendFields []string `json:"-"`
  6912  	// NullFields is a list of field names (e.g. "CreationDate") to include in API
  6913  	// requests with the JSON null value. By default, fields with empty values are
  6914  	// omitted from API requests. See
  6915  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6916  	NullFields []string `json:"-"`
  6917  }
  6918  
  6919  func (s *MerchantOrderReturn) MarshalJSON() ([]byte, error) {
  6920  	type NoMethod MerchantOrderReturn
  6921  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6922  }
  6923  
  6924  type MerchantOrderReturnItem struct {
  6925  	// CustomerReturnReason: The reason that the customer chooses to return an
  6926  	// item.
  6927  	CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"`
  6928  	// ItemId: Product level item ID. If the returned items are of the same
  6929  	// product, they will have the same ID.
  6930  	ItemId string `json:"itemId,omitempty"`
  6931  	// MerchantRejectionReason: The reason that the merchant chose to reject an
  6932  	// item return.
  6933  	MerchantRejectionReason *MerchantRejectionReason `json:"merchantRejectionReason,omitempty"`
  6934  	// MerchantReturnReason: The reason that merchant chooses to accept a return
  6935  	// item.
  6936  	MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"`
  6937  	// Product: Product data from the time of the order placement.
  6938  	Product *OrderLineItemProduct `json:"product,omitempty"`
  6939  	// RefundableAmount: Maximum amount that can be refunded for this return item.
  6940  	RefundableAmount *MonetaryAmount `json:"refundableAmount,omitempty"`
  6941  	// ReturnItemId: Unit level ID for the return item. Different units of the same
  6942  	// product will have different IDs.
  6943  	ReturnItemId string `json:"returnItemId,omitempty"`
  6944  	// ReturnShipmentIds: IDs of the return shipments that this return item belongs
  6945  	// to.
  6946  	ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"`
  6947  	// ShipmentGroupId: ID of the original shipment group. Provided for shipments
  6948  	// with invoice support.
  6949  	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
  6950  	// ShipmentUnitId: ID of the shipment unit assigned by the merchant. Provided
  6951  	// for shipments with invoice support.
  6952  	ShipmentUnitId string `json:"shipmentUnitId,omitempty"`
  6953  	// State: State of the item. Acceptable values are: - "canceled" - "new" -
  6954  	// "received" - "refunded" - "rejected"
  6955  	State string `json:"state,omitempty"`
  6956  	// ForceSendFields is a list of field names (e.g. "CustomerReturnReason") to
  6957  	// unconditionally include in API requests. By default, fields with empty or
  6958  	// default values are omitted from API requests. See
  6959  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6960  	// details.
  6961  	ForceSendFields []string `json:"-"`
  6962  	// NullFields is a list of field names (e.g. "CustomerReturnReason") to include
  6963  	// in API requests with the JSON null value. By default, fields with empty
  6964  	// values are omitted from API requests. See
  6965  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6966  	NullFields []string `json:"-"`
  6967  }
  6968  
  6969  func (s *MerchantOrderReturnItem) MarshalJSON() ([]byte, error) {
  6970  	type NoMethod MerchantOrderReturnItem
  6971  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6972  }
  6973  
  6974  type MerchantRejectionReason struct {
  6975  	// Description: Description of the reason.
  6976  	Description string `json:"description,omitempty"`
  6977  	// ReasonCode: Code of the rejection reason.
  6978  	ReasonCode string `json:"reasonCode,omitempty"`
  6979  	// ForceSendFields is a list of field names (e.g. "Description") to
  6980  	// unconditionally include in API requests. By default, fields with empty or
  6981  	// default values are omitted from API requests. See
  6982  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6983  	// details.
  6984  	ForceSendFields []string `json:"-"`
  6985  	// NullFields is a list of field names (e.g. "Description") to include in API
  6986  	// requests with the JSON null value. By default, fields with empty values are
  6987  	// omitted from API requests. See
  6988  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6989  	NullFields []string `json:"-"`
  6990  }
  6991  
  6992  func (s *MerchantRejectionReason) MarshalJSON() ([]byte, error) {
  6993  	type NoMethod MerchantRejectionReason
  6994  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6995  }
  6996  
  6997  // MethodQuota: The quota information per method in the Content API.
  6998  type MethodQuota struct {
  6999  	// Method: Output only. The method name, for example `products.list`. Method
  7000  	// name does not contain version because quota can be shared between different
  7001  	// API versions of the same method.
  7002  	Method string `json:"method,omitempty"`
  7003  	// QuotaLimit: Output only. The maximum number of calls allowed per day for the
  7004  	// method.
  7005  	QuotaLimit int64 `json:"quotaLimit,omitempty,string"`
  7006  	// QuotaMinuteLimit: Output only. The maximum number of calls allowed per
  7007  	// minute for the method.
  7008  	QuotaMinuteLimit int64 `json:"quotaMinuteLimit,omitempty,string"`
  7009  	// QuotaUsage: Output only. The current quota usage, meaning the number of
  7010  	// calls already made to the method per day. Usage is reset every day at 12 PM
  7011  	// midday UTC.
  7012  	QuotaUsage int64 `json:"quotaUsage,omitempty,string"`
  7013  	// ForceSendFields is a list of field names (e.g. "Method") to unconditionally
  7014  	// include in API requests. By default, fields with empty or default values are
  7015  	// omitted from API requests. See
  7016  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7017  	// details.
  7018  	ForceSendFields []string `json:"-"`
  7019  	// NullFields is a list of field names (e.g. "Method") to include in API
  7020  	// requests with the JSON null value. By default, fields with empty values are
  7021  	// omitted from API requests. See
  7022  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7023  	NullFields []string `json:"-"`
  7024  }
  7025  
  7026  func (s *MethodQuota) MarshalJSON() ([]byte, error) {
  7027  	type NoMethod MethodQuota
  7028  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7029  }
  7030  
  7031  // Metrics: Performance metrics. Values are only set for metrics requested
  7032  // explicitly in the request's search query.
  7033  type Metrics struct {
  7034  	// Aos: Average order size - the average number of items in an order. **This
  7035  	// metric cannot be segmented by product dimensions and
  7036  	// customer_country_code.**
  7037  	Aos float64 `json:"aos,omitempty"`
  7038  	// AovMicros: Average order value in micros (1 millionth of a standard unit, 1
  7039  	// USD = 1000000 micros) - the average value (total price of items) of all
  7040  	// placed orders. The currency of the returned value is stored in the
  7041  	// currency_code segment. If this metric is selected, 'segments.currency_code'
  7042  	// is automatically added to the SELECT clause in the search query (unless it
  7043  	// is explicitly selected by the user) and the currency_code segment is
  7044  	// populated in the response. **This metric cannot be segmented by product
  7045  	// dimensions and customer_country_code.**
  7046  	AovMicros float64 `json:"aovMicros,omitempty"`
  7047  	// Clicks: Number of clicks.
  7048  	Clicks int64 `json:"clicks,omitempty,string"`
  7049  	// ConversionRate: Number of conversions divided by the number of clicks,
  7050  	// reported on the impression date. The metric is currently available only for
  7051  	// the FREE_PRODUCT_LISTING program.
  7052  	ConversionRate float64 `json:"conversionRate,omitempty"`
  7053  	// ConversionValueMicros: Value of conversions in micros (1 millionth of a
  7054  	// standard unit, 1 USD = 1000000 micros) attributed to the product, reported
  7055  	// on the conversion date. The metric is currently available only for the
  7056  	// FREE_PRODUCT_LISTING program. The currency of the returned value is stored
  7057  	// in the currency_code segment. If this metric is selected,
  7058  	// 'segments.currency_code' is automatically added to the SELECT clause in the
  7059  	// search query (unless it is explicitly selected by the user) and the
  7060  	// currency_code segment is populated in the response.
  7061  	ConversionValueMicros int64 `json:"conversionValueMicros,omitempty,string"`
  7062  	// Conversions: Number of conversions attributed to the product, reported on
  7063  	// the conversion date. Depending on the attribution model, a conversion might
  7064  	// be distributed across multiple clicks, where each click gets its own credit
  7065  	// assigned. This metric is a sum of all such credits. The metric is currently
  7066  	// available only for the FREE_PRODUCT_LISTING program.
  7067  	Conversions float64 `json:"conversions,omitempty"`
  7068  	// Ctr: Click-through rate - the number of clicks merchant's products receive
  7069  	// (clicks) divided by the number of times the products are shown
  7070  	// (impressions).
  7071  	Ctr float64 `json:"ctr,omitempty"`
  7072  	// DaysToShip: Average number of days between an order being placed and the
  7073  	// order being fully shipped, reported on the last shipment date. **This metric
  7074  	// cannot be segmented by product dimensions and customer_country_code.**
  7075  	DaysToShip float64 `json:"daysToShip,omitempty"`
  7076  	// Impressions: Number of times merchant's products are shown.
  7077  	Impressions int64 `json:"impressions,omitempty,string"`
  7078  	// ItemDaysToShip: Average number of days between an item being ordered and the
  7079  	// item being **This metric cannot be segmented by customer_country_code.**
  7080  	ItemDaysToShip float64 `json:"itemDaysToShip,omitempty"`
  7081  	// ItemFillRate: Percentage of shipped items in relation to all finalized items
  7082  	// (shipped or rejected by the merchant; unshipped items are not taken into
  7083  	// account), reported on the order date. Item fill rate is lowered by merchant
  7084  	// rejections. **This metric cannot be segmented by customer_country_code.**
  7085  	ItemFillRate float64 `json:"itemFillRate,omitempty"`
  7086  	// OrderedItemSalesMicros: Total price of ordered items in micros (1 millionth
  7087  	// of a standard unit, 1 USD = 1000000 micros). Excludes shipping, taxes (US
  7088  	// only), and customer cancellations that happened within 30 minutes of placing
  7089  	// the order. The currency of the returned value is stored in the currency_code
  7090  	// segment. If this metric is selected, 'segments.currency_code' is
  7091  	// automatically added to the SELECT clause in the search query (unless it is
  7092  	// explicitly selected by the user) and the currency_code segment is populated
  7093  	// in the response. **This metric cannot be segmented by
  7094  	// customer_country_code.**
  7095  	OrderedItemSalesMicros int64 `json:"orderedItemSalesMicros,omitempty,string"`
  7096  	// OrderedItems: Number of ordered items. Excludes customer cancellations that
  7097  	// happened within 30 minutes of placing the order. **This metric cannot be
  7098  	// segmented by customer_country_code.**
  7099  	OrderedItems int64 `json:"orderedItems,omitempty,string"`
  7100  	// Orders: Number of placed orders. Excludes customer cancellations that
  7101  	// happened within 30 minutes of placing the order. **This metric cannot be
  7102  	// segmented by product dimensions and customer_country_code.**
  7103  	Orders int64 `json:"orders,omitempty,string"`
  7104  	// RejectedItems: Number of ordered items canceled by the merchant, reported on
  7105  	// the order date. **This metric cannot be segmented by
  7106  	// customer_country_code.**
  7107  	RejectedItems int64 `json:"rejectedItems,omitempty,string"`
  7108  	// ReturnRate: Total price of returned items divided by the total price of
  7109  	// shipped items, reported on the order date. If this metric is selected,
  7110  	// 'segments.currency_code' is automatically added to the SELECT clause in the
  7111  	// search query (unless it is explicitly selected by the user) and the
  7112  	// currency_code segment is populated in the response. **This metric cannot be
  7113  	// segmented by customer_country_code.**
  7114  	ReturnRate float64 `json:"returnRate,omitempty"`
  7115  	// ReturnedItems: Number of ordered items sent back for return, reported on the
  7116  	// date when the merchant accepted the return. **This metric cannot be
  7117  	// segmented by customer_country_code.**
  7118  	ReturnedItems int64 `json:"returnedItems,omitempty,string"`
  7119  	// ReturnsMicros: Total price of ordered items sent back for return in micros
  7120  	// (1 millionth of a standard unit, 1 USD = 1000000 micros), reported on the
  7121  	// date when the merchant accepted the return. The currency of the returned
  7122  	// value is stored in the currency_code segment. If this metric is selected,
  7123  	// 'segments.currency_code' is automatically added to the SELECT clause in the
  7124  	// search query (unless it is explicitly selected by the user) and the
  7125  	// currency_code segment is populated in the response. **This metric cannot be
  7126  	// segmented by customer_country_code.**
  7127  	ReturnsMicros int64 `json:"returnsMicros,omitempty,string"`
  7128  	// ShippedItemSalesMicros: Total price of shipped items in micros (1 millionth
  7129  	// of a standard unit, 1 USD = 1000000 micros), reported on the order date.
  7130  	// Excludes shipping and taxes (US only). The currency of the returned value is
  7131  	// stored in the currency_code segment. If this metric is selected,
  7132  	// 'segments.currency_code' is automatically added to the SELECT clause in the
  7133  	// search query (unless it is explicitly selected by the user) and the
  7134  	// currency_code segment is populated in the response. **This metric cannot be
  7135  	// segmented by customer_country_code.**
  7136  	ShippedItemSalesMicros int64 `json:"shippedItemSalesMicros,omitempty,string"`
  7137  	// ShippedItems: Number of shipped items, reported on the shipment date. **This
  7138  	// metric cannot be segmented by customer_country_code.**
  7139  	ShippedItems int64 `json:"shippedItems,omitempty,string"`
  7140  	// ShippedOrders: Number of fully shipped orders, reported on the last shipment
  7141  	// date. **This metric cannot be segmented by product dimensions and
  7142  	// customer_country_code.**
  7143  	ShippedOrders int64 `json:"shippedOrders,omitempty,string"`
  7144  	// UnshippedItems: Number of ordered items not shipped up until the end of the
  7145  	// queried day. If a multi-day period is specified in the search query, the
  7146  	// returned value is the average number of unshipped items over the days in the
  7147  	// queried period. **This metric cannot be segmented by
  7148  	// customer_country_code.**
  7149  	UnshippedItems float64 `json:"unshippedItems,omitempty"`
  7150  	// UnshippedOrders: Number of orders not shipped or partially shipped up until
  7151  	// the end of the queried day. If a multi-day period is specified in the search
  7152  	// query, the returned value is the average number of unshipped orders over the
  7153  	// days in the queried period. **This metric cannot be segmented by product
  7154  	// dimensions and customer_country_code.**
  7155  	UnshippedOrders float64 `json:"unshippedOrders,omitempty"`
  7156  	// ForceSendFields is a list of field names (e.g. "Aos") to unconditionally
  7157  	// include in API requests. By default, fields with empty or default values are
  7158  	// omitted from API requests. See
  7159  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7160  	// details.
  7161  	ForceSendFields []string `json:"-"`
  7162  	// NullFields is a list of field names (e.g. "Aos") to include in API requests
  7163  	// with the JSON null value. By default, fields with empty values are omitted
  7164  	// from API requests. See
  7165  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7166  	NullFields []string `json:"-"`
  7167  }
  7168  
  7169  func (s *Metrics) MarshalJSON() ([]byte, error) {
  7170  	type NoMethod Metrics
  7171  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7172  }
  7173  
  7174  func (s *Metrics) UnmarshalJSON(data []byte) error {
  7175  	type NoMethod Metrics
  7176  	var s1 struct {
  7177  		Aos             gensupport.JSONFloat64 `json:"aos"`
  7178  		AovMicros       gensupport.JSONFloat64 `json:"aovMicros"`
  7179  		ConversionRate  gensupport.JSONFloat64 `json:"conversionRate"`
  7180  		Conversions     gensupport.JSONFloat64 `json:"conversions"`
  7181  		Ctr             gensupport.JSONFloat64 `json:"ctr"`
  7182  		DaysToShip      gensupport.JSONFloat64 `json:"daysToShip"`
  7183  		ItemDaysToShip  gensupport.JSONFloat64 `json:"itemDaysToShip"`
  7184  		ItemFillRate    gensupport.JSONFloat64 `json:"itemFillRate"`
  7185  		ReturnRate      gensupport.JSONFloat64 `json:"returnRate"`
  7186  		UnshippedItems  gensupport.JSONFloat64 `json:"unshippedItems"`
  7187  		UnshippedOrders gensupport.JSONFloat64 `json:"unshippedOrders"`
  7188  		*NoMethod
  7189  	}
  7190  	s1.NoMethod = (*NoMethod)(s)
  7191  	if err := json.Unmarshal(data, &s1); err != nil {
  7192  		return err
  7193  	}
  7194  	s.Aos = float64(s1.Aos)
  7195  	s.AovMicros = float64(s1.AovMicros)
  7196  	s.ConversionRate = float64(s1.ConversionRate)
  7197  	s.Conversions = float64(s1.Conversions)
  7198  	s.Ctr = float64(s1.Ctr)
  7199  	s.DaysToShip = float64(s1.DaysToShip)
  7200  	s.ItemDaysToShip = float64(s1.ItemDaysToShip)
  7201  	s.ItemFillRate = float64(s1.ItemFillRate)
  7202  	s.ReturnRate = float64(s1.ReturnRate)
  7203  	s.UnshippedItems = float64(s1.UnshippedItems)
  7204  	s.UnshippedOrders = float64(s1.UnshippedOrders)
  7205  	return nil
  7206  }
  7207  
  7208  type MinimumOrderValueTable struct {
  7209  	StoreCodeSetWithMovs []*MinimumOrderValueTableStoreCodeSetWithMov `json:"storeCodeSetWithMovs,omitempty"`
  7210  	// ForceSendFields is a list of field names (e.g. "StoreCodeSetWithMovs") to
  7211  	// unconditionally include in API requests. By default, fields with empty or
  7212  	// default values are omitted from API requests. See
  7213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7214  	// details.
  7215  	ForceSendFields []string `json:"-"`
  7216  	// NullFields is a list of field names (e.g. "StoreCodeSetWithMovs") to include
  7217  	// in API requests with the JSON null value. By default, fields with empty
  7218  	// values are omitted from API requests. See
  7219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7220  	NullFields []string `json:"-"`
  7221  }
  7222  
  7223  func (s *MinimumOrderValueTable) MarshalJSON() ([]byte, error) {
  7224  	type NoMethod MinimumOrderValueTable
  7225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7226  }
  7227  
  7228  // MinimumOrderValueTableStoreCodeSetWithMov: A list of store code sets sharing
  7229  // the same minimum order value. At least two sets are required and the last
  7230  // one must be empty, which signifies 'MOV for all other stores'. Each store
  7231  // code can only appear once across all the sets. All prices within a service
  7232  // must have the same currency.
  7233  type MinimumOrderValueTableStoreCodeSetWithMov struct {
  7234  	// StoreCodes: A list of unique store codes or empty for the catch all.
  7235  	StoreCodes []string `json:"storeCodes,omitempty"`
  7236  	// Value: The minimum order value for the given stores.
  7237  	Value *Price `json:"value,omitempty"`
  7238  	// ForceSendFields is a list of field names (e.g. "StoreCodes") to
  7239  	// unconditionally include in API requests. By default, fields with empty or
  7240  	// default values are omitted from API requests. See
  7241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7242  	// details.
  7243  	ForceSendFields []string `json:"-"`
  7244  	// NullFields is a list of field names (e.g. "StoreCodes") to include in API
  7245  	// requests with the JSON null value. By default, fields with empty values are
  7246  	// omitted from API requests. See
  7247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7248  	NullFields []string `json:"-"`
  7249  }
  7250  
  7251  func (s *MinimumOrderValueTableStoreCodeSetWithMov) MarshalJSON() ([]byte, error) {
  7252  	type NoMethod MinimumOrderValueTableStoreCodeSetWithMov
  7253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7254  }
  7255  
  7256  type MonetaryAmount struct {
  7257  	// PriceAmount: The pre-tax or post-tax price depends on the location of the
  7258  	// order. - For countries (for example, "US". where price attribute excludes
  7259  	// tax, this field corresponds to the pre-tax value. - For coutries (for
  7260  	// example, "France") where price attribute includes tax, this field
  7261  	// corresponds to the post-tax value .
  7262  	PriceAmount *Price `json:"priceAmount,omitempty"`
  7263  	// TaxAmount: Tax value, present only for countries where price attribute
  7264  	// excludes tax (for example, "US". No tax is referenced as 0 value with the
  7265  	// corresponding `currency`.
  7266  	TaxAmount *Price `json:"taxAmount,omitempty"`
  7267  	// ForceSendFields is a list of field names (e.g. "PriceAmount") to
  7268  	// unconditionally include in API requests. By default, fields with empty or
  7269  	// default values are omitted from API requests. See
  7270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7271  	// details.
  7272  	ForceSendFields []string `json:"-"`
  7273  	// NullFields is a list of field names (e.g. "PriceAmount") to include in API
  7274  	// requests with the JSON null value. By default, fields with empty values are
  7275  	// omitted from API requests. See
  7276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7277  	NullFields []string `json:"-"`
  7278  }
  7279  
  7280  func (s *MonetaryAmount) MarshalJSON() ([]byte, error) {
  7281  	type NoMethod MonetaryAmount
  7282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7283  }
  7284  
  7285  // OnboardBuyOnGoogleProgramRequest: Request message for the OnboardProgram
  7286  // method.
  7287  type OnboardBuyOnGoogleProgramRequest struct {
  7288  	// CustomerServiceEmail: The customer service email.
  7289  	CustomerServiceEmail string `json:"customerServiceEmail,omitempty"`
  7290  	// ForceSendFields is a list of field names (e.g. "CustomerServiceEmail") to
  7291  	// unconditionally include in API requests. By default, fields with empty or
  7292  	// default values are omitted from API requests. See
  7293  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7294  	// details.
  7295  	ForceSendFields []string `json:"-"`
  7296  	// NullFields is a list of field names (e.g. "CustomerServiceEmail") to include
  7297  	// in API requests with the JSON null value. By default, fields with empty
  7298  	// values are omitted from API requests. See
  7299  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7300  	NullFields []string `json:"-"`
  7301  }
  7302  
  7303  func (s *OnboardBuyOnGoogleProgramRequest) MarshalJSON() ([]byte, error) {
  7304  	type NoMethod OnboardBuyOnGoogleProgramRequest
  7305  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7306  }
  7307  
  7308  // Order: Order. Production access (all methods) requires the order manager
  7309  // role. Sandbox access does not.
  7310  type Order struct {
  7311  	// Acknowledged: Whether the order was acknowledged.
  7312  	Acknowledged bool `json:"acknowledged,omitempty"`
  7313  	// Annotations: List of key-value pairs that are attached to a given order.
  7314  	Annotations []*OrderOrderAnnotation `json:"annotations,omitempty"`
  7315  	// BillingAddress: The billing address.
  7316  	BillingAddress *OrderAddress `json:"billingAddress,omitempty"`
  7317  	// Customer: The details of the customer who placed the order.
  7318  	Customer *OrderCustomer `json:"customer,omitempty"`
  7319  	// DeliveryDetails: Delivery details for shipments of type `delivery`.
  7320  	DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"`
  7321  	// Id: The REST ID of the order. Globally unique.
  7322  	Id string `json:"id,omitempty"`
  7323  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  7324  	// "content#order"
  7325  	Kind string `json:"kind,omitempty"`
  7326  	// LineItems: Line items that are ordered.
  7327  	LineItems  []*OrderLineItem `json:"lineItems,omitempty"`
  7328  	MerchantId uint64           `json:"merchantId,omitempty,string"`
  7329  	// MerchantOrderId: Merchant-provided ID of the order.
  7330  	MerchantOrderId string `json:"merchantOrderId,omitempty"`
  7331  	// NetPriceAmount: The net amount for the order (price part). For example, if
  7332  	// an order was originally for $100 and a refund was issued for $20, the net
  7333  	// amount will be $80.
  7334  	NetPriceAmount *Price `json:"netPriceAmount,omitempty"`
  7335  	// NetTaxAmount: The net amount for the order (tax part). Note that in certain
  7336  	// cases due to taxable base adjustment `netTaxAmount` might not match to a sum
  7337  	// of tax field across all lineItems and refunds.
  7338  	NetTaxAmount *Price `json:"netTaxAmount,omitempty"`
  7339  	// PaymentStatus: The status of the payment. Acceptable values are: -
  7340  	// "paymentCaptured" - "paymentRejected" - "paymentSecured" -
  7341  	// "pendingAuthorization"
  7342  	PaymentStatus string `json:"paymentStatus,omitempty"`
  7343  	// PickupDetails: Pickup details for shipments of type `pickup`.
  7344  	PickupDetails *OrderPickupDetails `json:"pickupDetails,omitempty"`
  7345  	// PlacedDate: The date when the order was placed, in ISO 8601 format.
  7346  	PlacedDate string `json:"placedDate,omitempty"`
  7347  	// Promotions: Promotions associated with the order. To determine which
  7348  	// promotions apply to which products, check the
  7349  	// `Promotions[].appliedItems[].lineItemId` field against the `LineItems[].id`
  7350  	// field for each promotion. If a promotion is applied to more than 1 offerId,
  7351  	// divide the discount value by the number of affected offers to determine how
  7352  	// much discount to apply to each offerId. Examples: 1. To calculate price paid
  7353  	// by the customer for a single line item including the discount: For each
  7354  	// promotion, subtract the `LineItems[].adjustments[].priceAdjustment.value`
  7355  	// amount from the `LineItems[].Price.value`. 2. To calculate price paid by the
  7356  	// customer for a single line item including the discount in case of multiple
  7357  	// quantity: For each promotion, divide the
  7358  	// `LineItems[].adjustments[].priceAdjustment.value` by the quantity of
  7359  	// products then subtract the resulting value from the
  7360  	// `LineItems[].Product.Price.value` for each quantity item. Only 1 promotion
  7361  	// can be applied to an offerId in a given order. To refund an item which had a
  7362  	// promotion applied to it, make sure to refund the amount after first
  7363  	// subtracting the promotion discount from the item price. More details about
  7364  	// the program are here.
  7365  	Promotions []*OrderPromotion `json:"promotions,omitempty"`
  7366  	// Refunds: Refunds for the order.
  7367  	Refunds []*OrderRefund `json:"refunds,omitempty"`
  7368  	// Shipments: Shipments of the order.
  7369  	Shipments []*OrderShipment `json:"shipments,omitempty"`
  7370  	// ShippingCost: The total cost of shipping for all items.
  7371  	ShippingCost *Price `json:"shippingCost,omitempty"`
  7372  	// ShippingCostTax: The tax for the total shipping cost.
  7373  	ShippingCostTax *Price `json:"shippingCostTax,omitempty"`
  7374  	// Status: The status of the order. Acceptable values are: - "canceled" -
  7375  	// "delivered" - "inProgress" - "partiallyDelivered" -
  7376  	// "partiallyReturned" - "partiallyShipped" - "pendingShipment" -
  7377  	// "returned" - "shipped"
  7378  	Status string `json:"status,omitempty"`
  7379  	// TaxCollector: The party responsible for collecting and remitting taxes.
  7380  	// Acceptable values are: - "marketplaceFacilitator" - "merchant"
  7381  	TaxCollector string `json:"taxCollector,omitempty"`
  7382  
  7383  	// ServerResponse contains the HTTP response code and headers from the server.
  7384  	googleapi.ServerResponse `json:"-"`
  7385  	// ForceSendFields is a list of field names (e.g. "Acknowledged") to
  7386  	// unconditionally include in API requests. By default, fields with empty or
  7387  	// default values are omitted from API requests. See
  7388  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7389  	// details.
  7390  	ForceSendFields []string `json:"-"`
  7391  	// NullFields is a list of field names (e.g. "Acknowledged") to include in API
  7392  	// requests with the JSON null value. By default, fields with empty values are
  7393  	// omitted from API requests. See
  7394  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7395  	NullFields []string `json:"-"`
  7396  }
  7397  
  7398  func (s *Order) MarshalJSON() ([]byte, error) {
  7399  	type NoMethod Order
  7400  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7401  }
  7402  
  7403  type OrderAddress struct {
  7404  	// Country: CLDR country code (for example, "US").
  7405  	Country string `json:"country,omitempty"`
  7406  	// FullAddress: Strings representing the lines of the printed label for mailing
  7407  	// the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View,
  7408  	// CA, 94043 United States
  7409  	FullAddress []string `json:"fullAddress,omitempty"`
  7410  	// IsPostOfficeBox: Whether the address is a post office box.
  7411  	IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"`
  7412  	// Locality: City, town or commune. May also include dependent localities or
  7413  	// sublocalities (for example, neighborhoods or suburbs).
  7414  	Locality string `json:"locality,omitempty"`
  7415  	// PostalCode: Postal Code or ZIP (for example, "94043").
  7416  	PostalCode string `json:"postalCode,omitempty"`
  7417  	// RecipientName: Name of the recipient.
  7418  	RecipientName string `json:"recipientName,omitempty"`
  7419  	// Region: Top-level administrative subdivision of the country. For example, a
  7420  	// state like California ("CA") or a province like Quebec ("QC").
  7421  	Region string `json:"region,omitempty"`
  7422  	// StreetAddress: Street-level part of the address. Use `\n` to add a second
  7423  	// line.
  7424  	StreetAddress []string `json:"streetAddress,omitempty"`
  7425  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  7426  	// include in API requests. By default, fields with empty or default values are
  7427  	// omitted from API requests. See
  7428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7429  	// details.
  7430  	ForceSendFields []string `json:"-"`
  7431  	// NullFields is a list of field names (e.g. "Country") to include in API
  7432  	// requests with the JSON null value. By default, fields with empty values are
  7433  	// omitted from API requests. See
  7434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7435  	NullFields []string `json:"-"`
  7436  }
  7437  
  7438  func (s *OrderAddress) MarshalJSON() ([]byte, error) {
  7439  	type NoMethod OrderAddress
  7440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7441  }
  7442  
  7443  type OrderCancellation struct {
  7444  	// Actor: The actor that created the cancellation. Acceptable values are: -
  7445  	// "customer" - "googleBot" - "googleCustomerService" -
  7446  	// "googlePayments" - "googleSabre" - "merchant"
  7447  	Actor string `json:"actor,omitempty"`
  7448  	// CreationDate: Date on which the cancellation has been created, in ISO 8601
  7449  	// format.
  7450  	CreationDate string `json:"creationDate,omitempty"`
  7451  	// Quantity: The quantity that was canceled.
  7452  	Quantity int64 `json:"quantity,omitempty"`
  7453  	// Reason: The reason for the cancellation. Orders that are canceled with a
  7454  	// noInventory reason will lead to the removal of the product from Buy on
  7455  	// Google until you make an update to that product. This won't affect your
  7456  	// Shopping ads. Acceptable values are: - "autoPostInternal" -
  7457  	// "autoPostInvalidBillingAddress" - "autoPostNoInventory" -
  7458  	// "autoPostPriceError" - "autoPostUndeliverableShippingAddress" -
  7459  	// "couponAbuse" - "customerCanceled" - "customerInitiatedCancel" -
  7460  	// "customerSupportRequested" - "failToPushOrderGoogleError" -
  7461  	// "failToPushOrderMerchantError" -
  7462  	// "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant"
  7463  	// - "failToPushOrderToMerchantOutOfStock" - "invalidCoupon" -
  7464  	// "malformedShippingAddress" - "merchantDidNotShipOnTime" -
  7465  	// "noInventory" - "orderTimeout" - "other" - "paymentAbuse" -
  7466  	// "paymentDeclined" - "priceError" - "returnRefundAbuse" -
  7467  	// "shippingPriceError" - "taxError" - "undeliverableShippingAddress" -
  7468  	// "unsupportedPoBoxAddress" - "failedToCaptureFunds"
  7469  	Reason string `json:"reason,omitempty"`
  7470  	// ReasonText: The explanation of the reason.
  7471  	ReasonText string `json:"reasonText,omitempty"`
  7472  	// ForceSendFields is a list of field names (e.g. "Actor") to unconditionally
  7473  	// include in API requests. By default, fields with empty or default values are
  7474  	// omitted from API requests. See
  7475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7476  	// details.
  7477  	ForceSendFields []string `json:"-"`
  7478  	// NullFields is a list of field names (e.g. "Actor") to include in API
  7479  	// requests with the JSON null value. By default, fields with empty values are
  7480  	// omitted from API requests. See
  7481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7482  	NullFields []string `json:"-"`
  7483  }
  7484  
  7485  func (s *OrderCancellation) MarshalJSON() ([]byte, error) {
  7486  	type NoMethod OrderCancellation
  7487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7488  }
  7489  
  7490  type OrderCustomer struct {
  7491  	// FullName: Full name of the customer.
  7492  	FullName string `json:"fullName,omitempty"`
  7493  	// InvoiceReceivingEmail: Email address for the merchant to send value-added
  7494  	// tax or invoice documentation of the order. Only the last document sent is
  7495  	// made available to the customer. For more information, see About automated
  7496  	// VAT invoicing for Buy on Google.
  7497  	InvoiceReceivingEmail string `json:"invoiceReceivingEmail,omitempty"`
  7498  	// LoyaltyInfo: Loyalty program information.
  7499  	LoyaltyInfo *OrderCustomerLoyaltyInfo `json:"loyaltyInfo,omitempty"`
  7500  	// MarketingRightsInfo: Customer's marketing preferences. Contains the
  7501  	// marketing opt-in information that is current at the time that the merchant
  7502  	// call. User preference selections can change from one order to the next so
  7503  	// preferences must be checked with every order.
  7504  	MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,omitempty"`
  7505  	// ForceSendFields is a list of field names (e.g. "FullName") to
  7506  	// unconditionally include in API requests. By default, fields with empty or
  7507  	// default values are omitted from API requests. See
  7508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7509  	// details.
  7510  	ForceSendFields []string `json:"-"`
  7511  	// NullFields is a list of field names (e.g. "FullName") to include in API
  7512  	// requests with the JSON null value. By default, fields with empty values are
  7513  	// omitted from API requests. See
  7514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7515  	NullFields []string `json:"-"`
  7516  }
  7517  
  7518  func (s *OrderCustomer) MarshalJSON() ([]byte, error) {
  7519  	type NoMethod OrderCustomer
  7520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7521  }
  7522  
  7523  type OrderCustomerLoyaltyInfo struct {
  7524  	// LoyaltyNumber: The loyalty card/membership number.
  7525  	LoyaltyNumber string `json:"loyaltyNumber,omitempty"`
  7526  	// Name: Name of card/membership holder, this field will be populated when
  7527  	Name string `json:"name,omitempty"`
  7528  	// ForceSendFields is a list of field names (e.g. "LoyaltyNumber") to
  7529  	// unconditionally include in API requests. By default, fields with empty or
  7530  	// default values are omitted from API requests. See
  7531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7532  	// details.
  7533  	ForceSendFields []string `json:"-"`
  7534  	// NullFields is a list of field names (e.g. "LoyaltyNumber") to include in API
  7535  	// requests with the JSON null value. By default, fields with empty values are
  7536  	// omitted from API requests. See
  7537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7538  	NullFields []string `json:"-"`
  7539  }
  7540  
  7541  func (s *OrderCustomerLoyaltyInfo) MarshalJSON() ([]byte, error) {
  7542  	type NoMethod OrderCustomerLoyaltyInfo
  7543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7544  }
  7545  
  7546  type OrderCustomerMarketingRightsInfo struct {
  7547  	// ExplicitMarketingPreference: Last known customer selection regarding
  7548  	// marketing preferences. In certain cases this selection might not be known,
  7549  	// so this field would be empty. If a customer selected `granted` in their most
  7550  	// recent order, they can be subscribed to marketing emails. Customers who have
  7551  	// chosen `denied` must not be subscribed, or must be unsubscribed if already
  7552  	// opted-in. Acceptable values are: - "denied" - "granted"
  7553  	ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`
  7554  	// LastUpdatedTimestamp: Timestamp when last time marketing preference was
  7555  	// updated. Could be empty, if user wasn't offered a selection yet.
  7556  	LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`
  7557  	// MarketingEmailAddress: Email address that can be used for marketing
  7558  	// purposes. The field may be empty even if `explicitMarketingPreference` is
  7559  	// 'granted'. This happens when retrieving an old order from the customer who
  7560  	// deleted their account.
  7561  	MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`
  7562  	// ForceSendFields is a list of field names (e.g.
  7563  	// "ExplicitMarketingPreference") to unconditionally include in API requests.
  7564  	// By default, fields with empty or default values are omitted from API
  7565  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  7566  	// for more details.
  7567  	ForceSendFields []string `json:"-"`
  7568  	// NullFields is a list of field names (e.g. "ExplicitMarketingPreference") to
  7569  	// include in API requests with the JSON null value. By default, fields with
  7570  	// empty values are omitted from API requests. See
  7571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7572  	NullFields []string `json:"-"`
  7573  }
  7574  
  7575  func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error) {
  7576  	type NoMethod OrderCustomerMarketingRightsInfo
  7577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7578  }
  7579  
  7580  type OrderDeliveryDetails struct {
  7581  	// Address: The delivery address
  7582  	Address *OrderAddress `json:"address,omitempty"`
  7583  	// PhoneNumber: The phone number of the person receiving the delivery.
  7584  	PhoneNumber string `json:"phoneNumber,omitempty"`
  7585  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
  7586  	// include in API requests. By default, fields with empty or default values are
  7587  	// omitted from API requests. See
  7588  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7589  	// details.
  7590  	ForceSendFields []string `json:"-"`
  7591  	// NullFields is a list of field names (e.g. "Address") to include in API
  7592  	// requests with the JSON null value. By default, fields with empty values are
  7593  	// omitted from API requests. See
  7594  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7595  	NullFields []string `json:"-"`
  7596  }
  7597  
  7598  func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error) {
  7599  	type NoMethod OrderDeliveryDetails
  7600  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7601  }
  7602  
  7603  type OrderLineItem struct {
  7604  	// Adjustments: Price and tax adjustments applied on the line item.
  7605  	Adjustments []*OrderLineItemAdjustment `json:"adjustments,omitempty"`
  7606  	// Annotations: Annotations that are attached to the line item.
  7607  	Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`
  7608  	// Cancellations: Cancellations of the line item.
  7609  	Cancellations []*OrderCancellation `json:"cancellations,omitempty"`
  7610  	// Id: The ID of the line item.
  7611  	Id string `json:"id,omitempty"`
  7612  	// Price: Total price for the line item. For example, if two items for $10 are
  7613  	// purchased, the total price will be $20.
  7614  	Price *Price `json:"price,omitempty"`
  7615  	// Product: Product data as seen by customer from the time of the order
  7616  	// placement. Note that certain attributes values (for example, title or gtin)
  7617  	// might be reformatted and no longer match values submitted through product
  7618  	// feed.
  7619  	Product *OrderLineItemProduct `json:"product,omitempty"`
  7620  	// QuantityCanceled: Number of items canceled.
  7621  	QuantityCanceled int64 `json:"quantityCanceled,omitempty"`
  7622  	// QuantityDelivered: Number of items delivered.
  7623  	QuantityDelivered int64 `json:"quantityDelivered,omitempty"`
  7624  	// QuantityOrdered: Number of items ordered.
  7625  	QuantityOrdered int64 `json:"quantityOrdered,omitempty"`
  7626  	// QuantityPending: Number of items pending.
  7627  	QuantityPending int64 `json:"quantityPending,omitempty"`
  7628  	// QuantityReadyForPickup: Number of items ready for pickup.
  7629  	QuantityReadyForPickup int64 `json:"quantityReadyForPickup,omitempty"`
  7630  	// QuantityReturned: Number of items returned.
  7631  	QuantityReturned int64 `json:"quantityReturned,omitempty"`
  7632  	// QuantityShipped: Number of items shipped.
  7633  	QuantityShipped int64 `json:"quantityShipped,omitempty"`
  7634  	// QuantityUndeliverable: Number of items undeliverable.
  7635  	QuantityUndeliverable int64 `json:"quantityUndeliverable,omitempty"`
  7636  	// ReturnInfo: Details of the return policy for the line item.
  7637  	ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`
  7638  	// Returns: Returns of the line item.
  7639  	Returns []*OrderReturn `json:"returns,omitempty"`
  7640  	// ShippingDetails: Details of the requested shipping for the line item.
  7641  	ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`
  7642  	// Tax: Total tax amount for the line item. For example, if two items are
  7643  	// purchased, and each have a cost tax of $2, the total tax amount will be $4.
  7644  	Tax *Price `json:"tax,omitempty"`
  7645  	// ForceSendFields is a list of field names (e.g. "Adjustments") to
  7646  	// unconditionally include in API requests. By default, fields with empty or
  7647  	// default values are omitted from API requests. See
  7648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7649  	// details.
  7650  	ForceSendFields []string `json:"-"`
  7651  	// NullFields is a list of field names (e.g. "Adjustments") to include in API
  7652  	// requests with the JSON null value. By default, fields with empty values are
  7653  	// omitted from API requests. See
  7654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7655  	NullFields []string `json:"-"`
  7656  }
  7657  
  7658  func (s *OrderLineItem) MarshalJSON() ([]byte, error) {
  7659  	type NoMethod OrderLineItem
  7660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7661  }
  7662  
  7663  type OrderLineItemAdjustment struct {
  7664  	// PriceAdjustment: Adjustment for total price of the line item.
  7665  	PriceAdjustment *Price `json:"priceAdjustment,omitempty"`
  7666  	// TaxAdjustment: Adjustment for total tax of the line item.
  7667  	TaxAdjustment *Price `json:"taxAdjustment,omitempty"`
  7668  	// Type: Type of this adjustment. Acceptable values are: - "promotion"
  7669  	Type string `json:"type,omitempty"`
  7670  	// ForceSendFields is a list of field names (e.g. "PriceAdjustment") to
  7671  	// unconditionally include in API requests. By default, fields with empty or
  7672  	// default values are omitted from API requests. See
  7673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7674  	// details.
  7675  	ForceSendFields []string `json:"-"`
  7676  	// NullFields is a list of field names (e.g. "PriceAdjustment") to include in
  7677  	// API requests with the JSON null value. By default, fields with empty values
  7678  	// are omitted from API requests. See
  7679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7680  	NullFields []string `json:"-"`
  7681  }
  7682  
  7683  func (s *OrderLineItemAdjustment) MarshalJSON() ([]byte, error) {
  7684  	type NoMethod OrderLineItemAdjustment
  7685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7686  }
  7687  
  7688  type OrderLineItemProduct struct {
  7689  	// Brand: Brand of the item.
  7690  	Brand string `json:"brand,omitempty"`
  7691  	// Condition: Condition or state of the item. Acceptable values are: - "new"
  7692  	// - "refurbished" - "used"
  7693  	Condition string `json:"condition,omitempty"`
  7694  	// ContentLanguage: The two-letter ISO 639-1 language code for the item.
  7695  	ContentLanguage string `json:"contentLanguage,omitempty"`
  7696  	// Fees: Associated fees at order creation time.
  7697  	Fees []*OrderLineItemProductFee `json:"fees,omitempty"`
  7698  	// Gtin: Global Trade Item Number (GTIN) of the item.
  7699  	Gtin string `json:"gtin,omitempty"`
  7700  	// Id: The REST ID of the product.
  7701  	Id string `json:"id,omitempty"`
  7702  	// ImageLink: URL of an image of the item.
  7703  	ImageLink string `json:"imageLink,omitempty"`
  7704  	// ItemGroupId: Shared identifier for all variants of the same product.
  7705  	ItemGroupId string `json:"itemGroupId,omitempty"`
  7706  	// Mpn: Manufacturer Part Number (MPN) of the item.
  7707  	Mpn string `json:"mpn,omitempty"`
  7708  	// OfferId: An identifier of the item.
  7709  	OfferId string `json:"offerId,omitempty"`
  7710  	// Price: Price of the item.
  7711  	Price *Price `json:"price,omitempty"`
  7712  	// ShownImage: URL to the cached image shown to the user when order was placed.
  7713  	ShownImage string `json:"shownImage,omitempty"`
  7714  	// TargetCountry: The CLDR territory code of the target country of the product.
  7715  	TargetCountry string `json:"targetCountry,omitempty"`
  7716  	// Title: The title of the product.
  7717  	Title string `json:"title,omitempty"`
  7718  	// VariantAttributes: Variant attributes for the item. These are dimensions of
  7719  	// the product, such as color, gender, material, pattern, and size. You can
  7720  	// find a comprehensive list of variant attributes here.
  7721  	VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`
  7722  	// ForceSendFields is a list of field names (e.g. "Brand") to unconditionally
  7723  	// include in API requests. By default, fields with empty or default values are
  7724  	// omitted from API requests. See
  7725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7726  	// details.
  7727  	ForceSendFields []string `json:"-"`
  7728  	// NullFields is a list of field names (e.g. "Brand") to include in API
  7729  	// requests with the JSON null value. By default, fields with empty values are
  7730  	// omitted from API requests. See
  7731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7732  	NullFields []string `json:"-"`
  7733  }
  7734  
  7735  func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error) {
  7736  	type NoMethod OrderLineItemProduct
  7737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7738  }
  7739  
  7740  type OrderLineItemProductFee struct {
  7741  	// Amount: Amount of the fee.
  7742  	Amount *Price `json:"amount,omitempty"`
  7743  	// Name: Name of the fee.
  7744  	Name string `json:"name,omitempty"`
  7745  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
  7746  	// include in API requests. By default, fields with empty or default values are
  7747  	// omitted from API requests. See
  7748  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7749  	// details.
  7750  	ForceSendFields []string `json:"-"`
  7751  	// NullFields is a list of field names (e.g. "Amount") to include in API
  7752  	// requests with the JSON null value. By default, fields with empty values are
  7753  	// omitted from API requests. See
  7754  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7755  	NullFields []string `json:"-"`
  7756  }
  7757  
  7758  func (s *OrderLineItemProductFee) MarshalJSON() ([]byte, error) {
  7759  	type NoMethod OrderLineItemProductFee
  7760  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7761  }
  7762  
  7763  type OrderLineItemProductVariantAttribute struct {
  7764  	// Dimension: The dimension of the variant.
  7765  	Dimension string `json:"dimension,omitempty"`
  7766  	// Value: The value for the dimension.
  7767  	Value string `json:"value,omitempty"`
  7768  	// ForceSendFields is a list of field names (e.g. "Dimension") to
  7769  	// unconditionally include in API requests. By default, fields with empty or
  7770  	// default values are omitted from API requests. See
  7771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7772  	// details.
  7773  	ForceSendFields []string `json:"-"`
  7774  	// NullFields is a list of field names (e.g. "Dimension") to include in API
  7775  	// requests with the JSON null value. By default, fields with empty values are
  7776  	// omitted from API requests. See
  7777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7778  	NullFields []string `json:"-"`
  7779  }
  7780  
  7781  func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error) {
  7782  	type NoMethod OrderLineItemProductVariantAttribute
  7783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7784  }
  7785  
  7786  type OrderLineItemReturnInfo struct {
  7787  	// DaysToReturn: Required. How many days later the item can be returned.
  7788  	DaysToReturn int64 `json:"daysToReturn,omitempty"`
  7789  	// IsReturnable: Required. Whether the item is returnable.
  7790  	IsReturnable bool `json:"isReturnable,omitempty"`
  7791  	// PolicyUrl: Required. URL of the item return policy.
  7792  	PolicyUrl string `json:"policyUrl,omitempty"`
  7793  	// ForceSendFields is a list of field names (e.g. "DaysToReturn") to
  7794  	// unconditionally include in API requests. By default, fields with empty or
  7795  	// default values are omitted from API requests. See
  7796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7797  	// details.
  7798  	ForceSendFields []string `json:"-"`
  7799  	// NullFields is a list of field names (e.g. "DaysToReturn") to include in API
  7800  	// requests with the JSON null value. By default, fields with empty values are
  7801  	// omitted from API requests. See
  7802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7803  	NullFields []string `json:"-"`
  7804  }
  7805  
  7806  func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error) {
  7807  	type NoMethod OrderLineItemReturnInfo
  7808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7809  }
  7810  
  7811  type OrderLineItemShippingDetails struct {
  7812  	// DeliverByDate: Required. The delivery by date, in ISO 8601 format.
  7813  	DeliverByDate string `json:"deliverByDate,omitempty"`
  7814  	// Method: Required. Details of the shipping method.
  7815  	Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"`
  7816  	// PickupPromiseInMinutes: The promised time in minutes in which the order will
  7817  	// be ready for pickup. This only applies to buy-online-pickup-in-store
  7818  	// same-day order.
  7819  	PickupPromiseInMinutes int64 `json:"pickupPromiseInMinutes,omitempty"`
  7820  	// ShipByDate: Required. The ship by date, in ISO 8601 format.
  7821  	ShipByDate string `json:"shipByDate,omitempty"`
  7822  	// Type: Type of shipment. Indicates whether `deliveryDetails` or
  7823  	// `pickupDetails` is applicable for this shipment. Acceptable values are: -
  7824  	// "delivery" - "pickup"
  7825  	Type string `json:"type,omitempty"`
  7826  	// ForceSendFields is a list of field names (e.g. "DeliverByDate") to
  7827  	// unconditionally include in API requests. By default, fields with empty or
  7828  	// default values are omitted from API requests. See
  7829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7830  	// details.
  7831  	ForceSendFields []string `json:"-"`
  7832  	// NullFields is a list of field names (e.g. "DeliverByDate") to include in API
  7833  	// requests with the JSON null value. By default, fields with empty values are
  7834  	// omitted from API requests. See
  7835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7836  	NullFields []string `json:"-"`
  7837  }
  7838  
  7839  func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error) {
  7840  	type NoMethod OrderLineItemShippingDetails
  7841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7842  }
  7843  
  7844  type OrderLineItemShippingDetailsMethod struct {
  7845  	// Carrier: The carrier for the shipping. Optional. See `shipments[].carrier`
  7846  	// for a list of acceptable values.
  7847  	Carrier string `json:"carrier,omitempty"`
  7848  	// MaxDaysInTransit: Required. Maximum transit time.
  7849  	MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"`
  7850  	// MethodName: Required. The name of the shipping method.
  7851  	MethodName string `json:"methodName,omitempty"`
  7852  	// MinDaysInTransit: Required. Minimum transit time.
  7853  	MinDaysInTransit int64 `json:"minDaysInTransit,omitempty"`
  7854  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
  7855  	// include in API requests. By default, fields with empty or default values are
  7856  	// omitted from API requests. See
  7857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7858  	// details.
  7859  	ForceSendFields []string `json:"-"`
  7860  	// NullFields is a list of field names (e.g. "Carrier") to include in API
  7861  	// requests with the JSON null value. By default, fields with empty values are
  7862  	// omitted from API requests. See
  7863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7864  	NullFields []string `json:"-"`
  7865  }
  7866  
  7867  func (s *OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error) {
  7868  	type NoMethod OrderLineItemShippingDetailsMethod
  7869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7870  }
  7871  
  7872  type OrderMerchantProvidedAnnotation struct {
  7873  	// Key: Key for additional merchant provided (as key-value pairs) annotation
  7874  	// about the line item.
  7875  	Key string `json:"key,omitempty"`
  7876  	// Value: Value for additional merchant provided (as key-value pairs)
  7877  	// annotation about the line item.
  7878  	Value string `json:"value,omitempty"`
  7879  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  7880  	// include in API requests. By default, fields with empty or default values are
  7881  	// omitted from API requests. See
  7882  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7883  	// details.
  7884  	ForceSendFields []string `json:"-"`
  7885  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  7886  	// with the JSON null value. By default, fields with empty values are omitted
  7887  	// from API requests. See
  7888  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7889  	NullFields []string `json:"-"`
  7890  }
  7891  
  7892  func (s *OrderMerchantProvidedAnnotation) MarshalJSON() ([]byte, error) {
  7893  	type NoMethod OrderMerchantProvidedAnnotation
  7894  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7895  }
  7896  
  7897  type OrderOrderAnnotation struct {
  7898  	// Key: Key for additional google provided (as key-value pairs) annotation.
  7899  	Key string `json:"key,omitempty"`
  7900  	// Value: Value for additional google provided (as key-value pairs) annotation.
  7901  	Value string `json:"value,omitempty"`
  7902  	// ForceSendFields is a list of field names (e.g. "Key") to unconditionally
  7903  	// include in API requests. By default, fields with empty or default values are
  7904  	// omitted from API requests. See
  7905  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7906  	// details.
  7907  	ForceSendFields []string `json:"-"`
  7908  	// NullFields is a list of field names (e.g. "Key") to include in API requests
  7909  	// with the JSON null value. By default, fields with empty values are omitted
  7910  	// from API requests. See
  7911  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7912  	NullFields []string `json:"-"`
  7913  }
  7914  
  7915  func (s *OrderOrderAnnotation) MarshalJSON() ([]byte, error) {
  7916  	type NoMethod OrderOrderAnnotation
  7917  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7918  }
  7919  
  7920  type OrderPickupDetails struct {
  7921  	// Address: Address of the pickup location where the shipment should be sent.
  7922  	// Note that `recipientName` in the address is the name of the business at the
  7923  	// pickup location.
  7924  	Address *OrderAddress `json:"address,omitempty"`
  7925  	// Collectors: Collectors authorized to pick up shipment from the pickup
  7926  	// location.
  7927  	Collectors []*OrderPickupDetailsCollector `json:"collectors,omitempty"`
  7928  	// LocationId: ID of the pickup location.
  7929  	LocationId string `json:"locationId,omitempty"`
  7930  	// PickupType: The pickup type of this order. Acceptable values are: -
  7931  	// "merchantStore" - "merchantStoreCurbside" - "merchantStoreLocker" -
  7932  	// "thirdPartyPickupPoint" - "thirdPartyLocker"
  7933  	PickupType string `json:"pickupType,omitempty"`
  7934  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
  7935  	// include in API requests. By default, fields with empty or default values are
  7936  	// omitted from API requests. See
  7937  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7938  	// details.
  7939  	ForceSendFields []string `json:"-"`
  7940  	// NullFields is a list of field names (e.g. "Address") to include in API
  7941  	// requests with the JSON null value. By default, fields with empty values are
  7942  	// omitted from API requests. See
  7943  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7944  	NullFields []string `json:"-"`
  7945  }
  7946  
  7947  func (s *OrderPickupDetails) MarshalJSON() ([]byte, error) {
  7948  	type NoMethod OrderPickupDetails
  7949  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7950  }
  7951  
  7952  type OrderPickupDetailsCollector struct {
  7953  	// Name: Name of the person picking up the shipment.
  7954  	Name string `json:"name,omitempty"`
  7955  	// PhoneNumber: Phone number of the person picking up the shipment.
  7956  	PhoneNumber string `json:"phoneNumber,omitempty"`
  7957  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  7958  	// include in API requests. By default, fields with empty or default values are
  7959  	// omitted from API requests. See
  7960  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7961  	// details.
  7962  	ForceSendFields []string `json:"-"`
  7963  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  7964  	// with the JSON null value. By default, fields with empty values are omitted
  7965  	// from API requests. See
  7966  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7967  	NullFields []string `json:"-"`
  7968  }
  7969  
  7970  func (s *OrderPickupDetailsCollector) MarshalJSON() ([]byte, error) {
  7971  	type NoMethod OrderPickupDetailsCollector
  7972  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7973  }
  7974  
  7975  type OrderPromotion struct {
  7976  	// ApplicableItems: Items that this promotion may be applied to. If empty,
  7977  	// there are no restrictions on applicable items and quantity. This field will
  7978  	// also be empty for shipping promotions because shipping is not tied to any
  7979  	// specific item.
  7980  	ApplicableItems []*OrderPromotionItem `json:"applicableItems,omitempty"`
  7981  	// AppliedItems: Items that this promotion have been applied to. Do not provide
  7982  	// for `orders.createtestorder`. This field will be empty for shipping
  7983  	// promotions because shipping is not tied to any specific item.
  7984  	AppliedItems []*OrderPromotionItem `json:"appliedItems,omitempty"`
  7985  	// EndTime: Promotion end time in ISO 8601 format. Date, time, and offset
  7986  	// required, for example, "2020-01-02T09:00:00+01:00" or
  7987  	// "2020-01-02T09:00:00Z".
  7988  	EndTime string `json:"endTime,omitempty"`
  7989  	// Funder: Required. The party funding the promotion. Only `merchant` is
  7990  	// supported for `orders.createtestorder`. Acceptable values are: - "google"
  7991  	// - "merchant"
  7992  	Funder string `json:"funder,omitempty"`
  7993  	// MerchantPromotionId: Required. This field is used to identify promotions
  7994  	// within merchants' own systems.
  7995  	MerchantPromotionId string `json:"merchantPromotionId,omitempty"`
  7996  	// PriceValue: Estimated discount applied to price. Amount is pre-tax or
  7997  	// post-tax depending on location of order.
  7998  	PriceValue *Price `json:"priceValue,omitempty"`
  7999  	// ShortTitle: A short title of the promotion to be shown on the checkout page.
  8000  	// Do not provide for `orders.createtestorder`.
  8001  	ShortTitle string `json:"shortTitle,omitempty"`
  8002  	// StartTime: Promotion start time in ISO 8601 format. Date, time, and offset
  8003  	// required, for example, "2020-01-02T09:00:00+01:00" or
  8004  	// "2020-01-02T09:00:00Z".
  8005  	StartTime string `json:"startTime,omitempty"`
  8006  	// Subtype: Required. The category of the promotion. Only `moneyOff` is
  8007  	// supported for `orders.createtestorder`. Acceptable values are: -
  8008  	// "buyMGetMoneyOff" - "buyMGetNMoneyOff" - "buyMGetNPercentOff" -
  8009  	// "buyMGetPercentOff" - "freeGift" - "freeGiftWithItemId" -
  8010  	// "freeGiftWithValue" - "freeShippingOvernight" - "freeShippingStandard"
  8011  	// - "freeShippingTwoDay" - "moneyOff" - "percentOff" - "rewardPoints"
  8012  	// - "salePrice"
  8013  	Subtype string `json:"subtype,omitempty"`
  8014  	// TaxValue: Estimated discount applied to tax (if allowed by law). Do not
  8015  	// provide for `orders.createtestorder`.
  8016  	TaxValue *Price `json:"taxValue,omitempty"`
  8017  	// Title: Required. The title of the promotion.
  8018  	Title string `json:"title,omitempty"`
  8019  	// Type: Required. The scope of the promotion. Only `product` is supported for
  8020  	// `orders.createtestorder`. Acceptable values are: - "product" -
  8021  	// "shipping"
  8022  	Type string `json:"type,omitempty"`
  8023  	// ForceSendFields is a list of field names (e.g. "ApplicableItems") to
  8024  	// unconditionally include in API requests. By default, fields with empty or
  8025  	// default values are omitted from API requests. See
  8026  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8027  	// details.
  8028  	ForceSendFields []string `json:"-"`
  8029  	// NullFields is a list of field names (e.g. "ApplicableItems") to include in
  8030  	// API requests with the JSON null value. By default, fields with empty values
  8031  	// are omitted from API requests. See
  8032  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8033  	NullFields []string `json:"-"`
  8034  }
  8035  
  8036  func (s *OrderPromotion) MarshalJSON() ([]byte, error) {
  8037  	type NoMethod OrderPromotion
  8038  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8039  }
  8040  
  8041  type OrderPromotionItem struct {
  8042  	// LineItemId: The line item ID of a product. Do not provide for
  8043  	// `orders.createtestorder`.
  8044  	LineItemId string `json:"lineItemId,omitempty"`
  8045  	// OfferId: Required. Offer ID of a product. Only for `orders.createtestorder`.
  8046  	OfferId string `json:"offerId,omitempty"`
  8047  	// ProductId: `orders.createtestorder`.
  8048  	ProductId string `json:"productId,omitempty"`
  8049  	// Quantity: The quantity of the associated product. Do not provide for
  8050  	// `orders.createtestorder`.
  8051  	Quantity int64 `json:"quantity,omitempty"`
  8052  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  8053  	// unconditionally include in API requests. By default, fields with empty or
  8054  	// default values are omitted from API requests. See
  8055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8056  	// details.
  8057  	ForceSendFields []string `json:"-"`
  8058  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  8059  	// requests with the JSON null value. By default, fields with empty values are
  8060  	// omitted from API requests. See
  8061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8062  	NullFields []string `json:"-"`
  8063  }
  8064  
  8065  func (s *OrderPromotionItem) MarshalJSON() ([]byte, error) {
  8066  	type NoMethod OrderPromotionItem
  8067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8068  }
  8069  
  8070  type OrderRefund struct {
  8071  	// Actor: The actor that created the refund. Acceptable values are: -
  8072  	// "customer" - "googleBot" - "googleCustomerService" -
  8073  	// "googlePayments" - "googleSabre" - "merchant"
  8074  	Actor string `json:"actor,omitempty"`
  8075  	// Amount: The amount that is refunded.
  8076  	Amount *Price `json:"amount,omitempty"`
  8077  	// CreationDate: Date on which the item has been created, in ISO 8601 format.
  8078  	CreationDate string `json:"creationDate,omitempty"`
  8079  	// Reason: The reason for the refund. Acceptable values are: - "adjustment" -
  8080  	// "autoPostInternal" - "autoPostInvalidBillingAddress" -
  8081  	// "autoPostNoInventory" - "autoPostPriceError" -
  8082  	// "autoPostUndeliverableShippingAddress" - "couponAbuse" -
  8083  	// "courtesyAdjustment" - "customerCanceled" -
  8084  	// "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" -
  8085  	// "customerSupportRequested" - "deliveredLateByCarrier" -
  8086  	// "deliveredTooLate" - "expiredItem" - "failToPushOrderGoogleError" -
  8087  	// "failToPushOrderMerchantError" -
  8088  	// "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant"
  8089  	// - "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" -
  8090  	// "invalidCoupon" - "lateShipmentCredit" - "malformedShippingAddress" -
  8091  	// "merchantDidNotShipOnTime" - "noInventory" - "orderTimeout" -
  8092  	// "other" - "paymentAbuse" - "paymentDeclined" - "priceAdjustment" -
  8093  	// "priceError" - "productArrivedDamaged" - "productNotAsDescribed" -
  8094  	// "promoReallocation" - "qualityNotAsExpected" - "returnRefundAbuse" -
  8095  	// "shippingCostAdjustment" - "shippingPriceError" - "taxAdjustment" -
  8096  	// "taxError" - "undeliverableShippingAddress" -
  8097  	// "unsupportedPoBoxAddress" - "wrongProductShipped"
  8098  	Reason string `json:"reason,omitempty"`
  8099  	// ReasonText: The explanation of the reason.
  8100  	ReasonText string `json:"reasonText,omitempty"`
  8101  	// ForceSendFields is a list of field names (e.g. "Actor") to unconditionally
  8102  	// include in API requests. By default, fields with empty or default values are
  8103  	// omitted from API requests. See
  8104  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8105  	// details.
  8106  	ForceSendFields []string `json:"-"`
  8107  	// NullFields is a list of field names (e.g. "Actor") to include in API
  8108  	// requests with the JSON null value. By default, fields with empty values are
  8109  	// omitted from API requests. See
  8110  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8111  	NullFields []string `json:"-"`
  8112  }
  8113  
  8114  func (s *OrderRefund) MarshalJSON() ([]byte, error) {
  8115  	type NoMethod OrderRefund
  8116  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8117  }
  8118  
  8119  // OrderReportDisbursement: Order disbursement. All methods require the payment
  8120  // analyst role.
  8121  type OrderReportDisbursement struct {
  8122  	// DisbursementAmount: The disbursement amount.
  8123  	DisbursementAmount *Price `json:"disbursementAmount,omitempty"`
  8124  	// DisbursementCreationDate: The disbursement date, in ISO 8601 format.
  8125  	DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"`
  8126  	// DisbursementDate: The date the disbursement was initiated, in ISO 8601
  8127  	// format.
  8128  	DisbursementDate string `json:"disbursementDate,omitempty"`
  8129  	// DisbursementId: The ID of the disbursement.
  8130  	DisbursementId string `json:"disbursementId,omitempty"`
  8131  	// MerchantId: The ID of the managing account.
  8132  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  8133  	// ForceSendFields is a list of field names (e.g. "DisbursementAmount") to
  8134  	// unconditionally include in API requests. By default, fields with empty or
  8135  	// default values are omitted from API requests. See
  8136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8137  	// details.
  8138  	ForceSendFields []string `json:"-"`
  8139  	// NullFields is a list of field names (e.g. "DisbursementAmount") to include
  8140  	// in API requests with the JSON null value. By default, fields with empty
  8141  	// values are omitted from API requests. See
  8142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8143  	NullFields []string `json:"-"`
  8144  }
  8145  
  8146  func (s *OrderReportDisbursement) MarshalJSON() ([]byte, error) {
  8147  	type NoMethod OrderReportDisbursement
  8148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8149  }
  8150  
  8151  type OrderReportTransaction struct {
  8152  	// DisbursementAmount: The disbursement amount.
  8153  	DisbursementAmount *Price `json:"disbursementAmount,omitempty"`
  8154  	// DisbursementCreationDate: The date the disbursement was created, in ISO 8601
  8155  	// format.
  8156  	DisbursementCreationDate string `json:"disbursementCreationDate,omitempty"`
  8157  	// DisbursementDate: The date the disbursement was initiated, in ISO 8601
  8158  	// format.
  8159  	DisbursementDate string `json:"disbursementDate,omitempty"`
  8160  	// DisbursementId: The ID of the disbursement.
  8161  	DisbursementId string `json:"disbursementId,omitempty"`
  8162  	// MerchantId: The ID of the managing account.
  8163  	MerchantId uint64 `json:"merchantId,omitempty,string"`
  8164  	// MerchantOrderId: Merchant-provided ID of the order.
  8165  	MerchantOrderId string `json:"merchantOrderId,omitempty"`
  8166  	// OrderId: The ID of the order.
  8167  	OrderId string `json:"orderId,omitempty"`
  8168  	// ProductAmount: Total amount for the items.
  8169  	ProductAmount *ProductAmount `json:"productAmount,omitempty"`
  8170  	// TransactionDate: The date of the transaction, in ISO 8601 format.
  8171  	TransactionDate string `json:"transactionDate,omitempty"`
  8172  	// ForceSendFields is a list of field names (e.g. "DisbursementAmount") to
  8173  	// unconditionally include in API requests. By default, fields with empty or
  8174  	// default values are omitted from API requests. See
  8175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8176  	// details.
  8177  	ForceSendFields []string `json:"-"`
  8178  	// NullFields is a list of field names (e.g. "DisbursementAmount") to include
  8179  	// in API requests with the JSON null value. By default, fields with empty
  8180  	// values are omitted from API requests. See
  8181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8182  	NullFields []string `json:"-"`
  8183  }
  8184  
  8185  func (s *OrderReportTransaction) MarshalJSON() ([]byte, error) {
  8186  	type NoMethod OrderReportTransaction
  8187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8188  }
  8189  
  8190  type OrderReturn struct {
  8191  	// Actor: The actor that created the refund. Acceptable values are: -
  8192  	// "customer" - "googleBot" - "googleCustomerService" -
  8193  	// "googlePayments" - "googleSabre" - "merchant"
  8194  	Actor string `json:"actor,omitempty"`
  8195  	// CreationDate: Date on which the item has been created, in ISO 8601 format.
  8196  	CreationDate string `json:"creationDate,omitempty"`
  8197  	// Quantity: Quantity that is returned.
  8198  	Quantity int64 `json:"quantity,omitempty"`
  8199  	// Reason: The reason for the return. Acceptable values are: -
  8200  	// "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" -
  8201  	// "deliveredTooLate" - "expiredItem" - "invalidCoupon" -
  8202  	// "malformedShippingAddress" - "other" - "productArrivedDamaged" -
  8203  	// "productNotAsDescribed" - "qualityNotAsExpected" -
  8204  	// "undeliverableShippingAddress" - "unsupportedPoBoxAddress" -
  8205  	// "wrongProductShipped"
  8206  	Reason string `json:"reason,omitempty"`
  8207  	// ReasonText: The explanation of the reason.
  8208  	ReasonText string `json:"reasonText,omitempty"`
  8209  	// ForceSendFields is a list of field names (e.g. "Actor") to unconditionally
  8210  	// include in API requests. By default, fields with empty or default values are
  8211  	// omitted from API requests. See
  8212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8213  	// details.
  8214  	ForceSendFields []string `json:"-"`
  8215  	// NullFields is a list of field names (e.g. "Actor") to include in API
  8216  	// requests with the JSON null value. By default, fields with empty values are
  8217  	// omitted from API requests. See
  8218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8219  	NullFields []string `json:"-"`
  8220  }
  8221  
  8222  func (s *OrderReturn) MarshalJSON() ([]byte, error) {
  8223  	type NoMethod OrderReturn
  8224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8225  }
  8226  
  8227  type OrderShipment struct {
  8228  	// Carrier: The carrier handling the shipment. For supported carriers, Google
  8229  	// includes the carrier name and tracking URL in emails to customers. For
  8230  	// select supported carriers, Google also automatically updates the shipment
  8231  	// status based on the provided shipment ID. *Note:* You can also use
  8232  	// unsupported carriers, but emails to customers won't include the carrier name
  8233  	// or tracking URL, and there will be no automatic order status updates.
  8234  	// Supported carriers for "US" are: - "ups" (United Parcel Service)
  8235  	// *automatic status updates* - "usps" (United States Postal Service)
  8236  	// *automatic status updates* - "fedex" (FedEx) *automatic status updates * -
  8237  	// "dhl" (DHL eCommerce) *automatic status updates* (US only) - "ontrac"
  8238  	// (OnTrac) *automatic status updates * - "dhl express" (DHL Express) -
  8239  	// "deliv" (Deliv) - "dynamex" (TForce) - "lasership" (LaserShip) -
  8240  	// "mpx" (Military Parcel Xpress) - "uds" (United Delivery Service) -
  8241  	// "efw" (Estes Forwarding Worldwide) - "jd logistics" (JD Logistics) -
  8242  	// "yunexpress" (YunExpress) - "china post" (China Post) - "china ems"
  8243  	// (China Post Express Mail Service) - "singapore post" (Singapore Post) -
  8244  	// "pos malaysia" (Pos Malaysia) - "postnl" (PostNL) - "ptt" (PTT Turkish
  8245  	// Post) - "eub" (ePacket) - "chukou1" (Chukou1 Logistics) - "bestex"
  8246  	// (Best Express) - "canada post" (Canada Post) - "purolator" (Purolator) -
  8247  	// "canpar" (Canpar) - "india post" (India Post) - "blue dart" (Blue
  8248  	// Dart) - "delhivery" (Delhivery) - "dtdc" (DTDC) - "tpc india" (TPC
  8249  	// India) - "lso" (Lone Star Overnight) - "tww" (Team Worldwide) -
  8250  	// "deliver-it" (Deliver-IT) - "cdl last mile" (CDL Last Mile) Supported
  8251  	// carriers for FR are: - "la poste" (La Poste) *automatic status updates * -
  8252  	// "colissimo" (Colissimo by La Poste) *automatic status updates* - "ups"
  8253  	// (United Parcel Service) *automatic status updates * - "chronopost"
  8254  	// (Chronopost by La Poste) - "gls" (General Logistics Systems France) -
  8255  	// "dpd" (DPD Group by GeoPost) - "bpost" (Belgian Post Group) - "colis
  8256  	// prive" (Colis Privé) - "boxtal" (Boxtal) - "geodis" (GEODIS) - "tnt"
  8257  	// (TNT) - "db schenker" (DB Schenker) - "aramex" (Aramex)
  8258  	Carrier string `json:"carrier,omitempty"`
  8259  	// CreationDate: Date on which the shipment has been created, in ISO 8601
  8260  	// format.
  8261  	CreationDate string `json:"creationDate,omitempty"`
  8262  	// DeliveryDate: Date on which the shipment has been delivered, in ISO 8601
  8263  	// format. Present only if `status` is `delivered`
  8264  	DeliveryDate string `json:"deliveryDate,omitempty"`
  8265  	// Id: The ID of the shipment.
  8266  	Id string `json:"id,omitempty"`
  8267  	// LineItems: The line items that are shipped.
  8268  	LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
  8269  	// ScheduledDeliveryDetails: Delivery details of the shipment if scheduling is
  8270  	// needed.
  8271  	ScheduledDeliveryDetails *OrderShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"`
  8272  	// ShipmentGroupId: The shipment group ID of the shipment. This is set in
  8273  	// shiplineitems request.
  8274  	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
  8275  	// Status: The status of the shipment. Acceptable values are: - "delivered" -
  8276  	// "readyForPickup" - "shipped" - "undeliverable"
  8277  	Status string `json:"status,omitempty"`
  8278  	// TrackingId: The tracking ID for the shipment.
  8279  	TrackingId string `json:"trackingId,omitempty"`
  8280  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
  8281  	// include in API requests. By default, fields with empty or default values are
  8282  	// omitted from API requests. See
  8283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8284  	// details.
  8285  	ForceSendFields []string `json:"-"`
  8286  	// NullFields is a list of field names (e.g. "Carrier") to include in API
  8287  	// requests with the JSON null value. By default, fields with empty values are
  8288  	// omitted from API requests. See
  8289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8290  	NullFields []string `json:"-"`
  8291  }
  8292  
  8293  func (s *OrderShipment) MarshalJSON() ([]byte, error) {
  8294  	type NoMethod OrderShipment
  8295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8296  }
  8297  
  8298  type OrderShipmentLineItemShipment struct {
  8299  	// LineItemId: The ID of the line item that is shipped. This value is assigned
  8300  	// by Google when an order is created. Either lineItemId or productId is
  8301  	// required.
  8302  	LineItemId string `json:"lineItemId,omitempty"`
  8303  	// ProductId: The ID of the product to ship. This is the REST ID used in the
  8304  	// products service. Either lineItemId or productId is required.
  8305  	ProductId string `json:"productId,omitempty"`
  8306  	// Quantity: The quantity that is shipped.
  8307  	Quantity int64 `json:"quantity,omitempty"`
  8308  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  8309  	// unconditionally include in API requests. By default, fields with empty or
  8310  	// default values are omitted from API requests. See
  8311  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8312  	// details.
  8313  	ForceSendFields []string `json:"-"`
  8314  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  8315  	// requests with the JSON null value. By default, fields with empty values are
  8316  	// omitted from API requests. See
  8317  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8318  	NullFields []string `json:"-"`
  8319  }
  8320  
  8321  func (s *OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error) {
  8322  	type NoMethod OrderShipmentLineItemShipment
  8323  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8324  }
  8325  
  8326  type OrderShipmentScheduledDeliveryDetails struct {
  8327  	// CarrierPhoneNumber: The phone number of the carrier fulfilling the delivery.
  8328  	// The phone number is formatted as the international notation in ITU-T
  8329  	// Recommendation E.123 (for example, "+41 44 668 1800").
  8330  	CarrierPhoneNumber string `json:"carrierPhoneNumber,omitempty"`
  8331  	// ScheduledDate: The date a shipment is scheduled for delivery, in ISO 8601
  8332  	// format.
  8333  	ScheduledDate string `json:"scheduledDate,omitempty"`
  8334  	// ForceSendFields is a list of field names (e.g. "CarrierPhoneNumber") to
  8335  	// unconditionally include in API requests. By default, fields with empty or
  8336  	// default values are omitted from API requests. See
  8337  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8338  	// details.
  8339  	ForceSendFields []string `json:"-"`
  8340  	// NullFields is a list of field names (e.g. "CarrierPhoneNumber") to include
  8341  	// in API requests with the JSON null value. By default, fields with empty
  8342  	// values are omitted from API requests. See
  8343  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8344  	NullFields []string `json:"-"`
  8345  }
  8346  
  8347  func (s *OrderShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error) {
  8348  	type NoMethod OrderShipmentScheduledDeliveryDetails
  8349  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8350  }
  8351  
  8352  // OrderTrackingSignal: Represents a merchant trade from which signals are
  8353  // extracted, e.g. shipping.
  8354  type OrderTrackingSignal struct {
  8355  	// CustomerShippingFee: The shipping fee of the order; this value should be set
  8356  	// to zero in the case of free shipping.
  8357  	CustomerShippingFee *PriceAmount `json:"customerShippingFee,omitempty"`
  8358  	// DeliveryPostalCode: Required. The delivery postal code, as a continuous
  8359  	// string without spaces or dashes, e.g. "95016". This field will be anonymized
  8360  	// in returned OrderTrackingSignal creation response.
  8361  	DeliveryPostalCode string `json:"deliveryPostalCode,omitempty"`
  8362  	// DeliveryRegionCode: Required. The [CLDR territory code]
  8363  	// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the
  8364  	// shipping destination.
  8365  	DeliveryRegionCode string `json:"deliveryRegionCode,omitempty"`
  8366  	// LineItems: Information about line items in the order.
  8367  	LineItems []*OrderTrackingSignalLineItemDetails `json:"lineItems,omitempty"`
  8368  	// MerchantId: The Google merchant ID of this order tracking signal. This value
  8369  	// is optional. If left unset, the caller's merchant ID is used. You must
  8370  	// request access in order to provide data on behalf of another merchant. For
  8371  	// more information, see Submitting Order Tracking Signals
  8372  	// (/shopping-content/guides/order-tracking-signals).
  8373  	MerchantId int64 `json:"merchantId,omitempty,string"`
  8374  	// OrderCreatedTime: Required. The time when the order was created on the
  8375  	// merchant side. Include the year and timezone string, if available.
  8376  	OrderCreatedTime *DateTime `json:"orderCreatedTime,omitempty"`
  8377  	// OrderId: Required. The ID of the order on the merchant side. This field will
  8378  	// be hashed in returned OrderTrackingSignal creation response.
  8379  	OrderId string `json:"orderId,omitempty"`
  8380  	// OrderTrackingSignalId: Output only. The ID that uniquely identifies this
  8381  	// order tracking signal.
  8382  	OrderTrackingSignalId int64 `json:"orderTrackingSignalId,omitempty,string"`
  8383  	// ShipmentLineItemMapping: The mapping of the line items to the shipment
  8384  	// information.
  8385  	ShipmentLineItemMapping []*OrderTrackingSignalShipmentLineItemMapping `json:"shipmentLineItemMapping,omitempty"`
  8386  	// ShippingInfo: The shipping information for the order.
  8387  	ShippingInfo []*OrderTrackingSignalShippingInfo `json:"shippingInfo,omitempty"`
  8388  
  8389  	// ServerResponse contains the HTTP response code and headers from the server.
  8390  	googleapi.ServerResponse `json:"-"`
  8391  	// ForceSendFields is a list of field names (e.g. "CustomerShippingFee") to
  8392  	// unconditionally include in API requests. By default, fields with empty or
  8393  	// default values are omitted from API requests. See
  8394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8395  	// details.
  8396  	ForceSendFields []string `json:"-"`
  8397  	// NullFields is a list of field names (e.g. "CustomerShippingFee") to include
  8398  	// in API requests with the JSON null value. By default, fields with empty
  8399  	// values are omitted from API requests. See
  8400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8401  	NullFields []string `json:"-"`
  8402  }
  8403  
  8404  func (s *OrderTrackingSignal) MarshalJSON() ([]byte, error) {
  8405  	type NoMethod OrderTrackingSignal
  8406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8407  }
  8408  
  8409  // OrderTrackingSignalLineItemDetails: The line items of the order.
  8410  type OrderTrackingSignalLineItemDetails struct {
  8411  	// Brand: Brand of the product.
  8412  	Brand string `json:"brand,omitempty"`
  8413  	// Gtin: The Global Trade Item Number.
  8414  	Gtin string `json:"gtin,omitempty"`
  8415  	// LineItemId: Required. The ID for this line item.
  8416  	LineItemId string `json:"lineItemId,omitempty"`
  8417  	// Mpn: The manufacturer part number.
  8418  	Mpn string `json:"mpn,omitempty"`
  8419  	// ProductDescription: Plain text description of this product (deprecated:
  8420  	// Please use product_title instead).
  8421  	ProductDescription string `json:"productDescription,omitempty"`
  8422  	// ProductId: Required. The Content API REST ID of the product, in the form
  8423  	// channel:contentLanguage:targetCountry:offerId.
  8424  	ProductId string `json:"productId,omitempty"`
  8425  	// ProductTitle: Plain text title of this product.
  8426  	ProductTitle string `json:"productTitle,omitempty"`
  8427  	// Quantity: The quantity of the line item in the order.
  8428  	Quantity int64 `json:"quantity,omitempty,string"`
  8429  	// Sku: Merchant SKU for this item (deprecated).
  8430  	Sku string `json:"sku,omitempty"`
  8431  	// Upc: Universal product code for this item (deprecated: Please use GTIN
  8432  	// instead).
  8433  	Upc string `json:"upc,omitempty"`
  8434  	// ForceSendFields is a list of field names (e.g. "Brand") to unconditionally
  8435  	// include in API requests. By default, fields with empty or default values are
  8436  	// omitted from API requests. See
  8437  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8438  	// details.
  8439  	ForceSendFields []string `json:"-"`
  8440  	// NullFields is a list of field names (e.g. "Brand") to include in API
  8441  	// requests with the JSON null value. By default, fields with empty values are
  8442  	// omitted from API requests. See
  8443  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8444  	NullFields []string `json:"-"`
  8445  }
  8446  
  8447  func (s *OrderTrackingSignalLineItemDetails) MarshalJSON() ([]byte, error) {
  8448  	type NoMethod OrderTrackingSignalLineItemDetails
  8449  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8450  }
  8451  
  8452  // OrderTrackingSignalShipmentLineItemMapping: Represents how many items are in
  8453  // the shipment for the given shipment_id and line_item_id.
  8454  type OrderTrackingSignalShipmentLineItemMapping struct {
  8455  	// LineItemId: Required. The line item ID.
  8456  	LineItemId string `json:"lineItemId,omitempty"`
  8457  	// Quantity: The line item quantity in the shipment.
  8458  	Quantity int64 `json:"quantity,omitempty,string"`
  8459  	// ShipmentId: Required. The shipment ID. This field will be hashed in returned
  8460  	// OrderTrackingSignal creation response.
  8461  	ShipmentId string `json:"shipmentId,omitempty"`
  8462  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  8463  	// unconditionally include in API requests. By default, fields with empty or
  8464  	// default values are omitted from API requests. See
  8465  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8466  	// details.
  8467  	ForceSendFields []string `json:"-"`
  8468  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  8469  	// requests with the JSON null value. By default, fields with empty values are
  8470  	// omitted from API requests. See
  8471  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8472  	NullFields []string `json:"-"`
  8473  }
  8474  
  8475  func (s *OrderTrackingSignalShipmentLineItemMapping) MarshalJSON() ([]byte, error) {
  8476  	type NoMethod OrderTrackingSignalShipmentLineItemMapping
  8477  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8478  }
  8479  
  8480  // OrderTrackingSignalShippingInfo: The shipping information for the order.
  8481  type OrderTrackingSignalShippingInfo struct {
  8482  	// ActualDeliveryTime: The time when the shipment was actually delivered.
  8483  	// Include the year and timezone string, if available. This field is required,
  8484  	// if one of the following fields is absent: tracking_id or carrier_name.
  8485  	ActualDeliveryTime *DateTime `json:"actualDeliveryTime,omitempty"`
  8486  	// CarrierName: The name of the shipping carrier for the delivery. This field
  8487  	// is required if one of the following fields is absent:
  8488  	// earliest_delivery_promise_time, latest_delivery_promise_time, and
  8489  	// actual_delivery_time.
  8490  	CarrierName string `json:"carrierName,omitempty"`
  8491  	// CarrierServiceName: The service type for fulfillment, e.g., GROUND,
  8492  	// FIRST_CLASS, etc.
  8493  	CarrierServiceName string `json:"carrierServiceName,omitempty"`
  8494  	// EarliestDeliveryPromiseTime: The earliest delivery promised time. Include
  8495  	// the year and timezone string, if available. This field is required, if one
  8496  	// of the following fields is absent: tracking_id or carrier_name.
  8497  	EarliestDeliveryPromiseTime *DateTime `json:"earliestDeliveryPromiseTime,omitempty"`
  8498  	// LatestDeliveryPromiseTime: The latest delivery promised time. Include the
  8499  	// year and timezone string, if available. This field is required, if one of
  8500  	// the following fields is absent: tracking_id or carrier_name.
  8501  	LatestDeliveryPromiseTime *DateTime `json:"latestDeliveryPromiseTime,omitempty"`
  8502  	// OriginPostalCode: The origin postal code, as a continuous string without
  8503  	// spaces or dashes, e.g. "95016". This field will be anonymized in returned
  8504  	// OrderTrackingSignal creation response.
  8505  	OriginPostalCode string `json:"originPostalCode,omitempty"`
  8506  	// OriginRegionCode: The [CLDR territory code]
  8507  	// (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) for the
  8508  	// shipping origin.
  8509  	OriginRegionCode string `json:"originRegionCode,omitempty"`
  8510  	// ShipmentId: Required. The shipment ID. This field will be hashed in returned
  8511  	// OrderTrackingSignal creation response.
  8512  	ShipmentId string `json:"shipmentId,omitempty"`
  8513  	// ShippedTime: The time when the shipment was shipped. Include the year and
  8514  	// timezone string, if available.
  8515  	ShippedTime *DateTime `json:"shippedTime,omitempty"`
  8516  	// ShippingStatus: The status of the shipment.
  8517  	//
  8518  	// Possible values:
  8519  	//   "SHIPPING_STATE_UNSPECIFIED" - The shipping status is not known to
  8520  	// merchant.
  8521  	//   "SHIPPED" - All items are shipped.
  8522  	//   "DELIVERED" - The shipment is already delivered.
  8523  	ShippingStatus string `json:"shippingStatus,omitempty"`
  8524  	// TrackingId: The tracking ID of the shipment. This field is required if one
  8525  	// of the following fields is absent: earliest_delivery_promise_time,
  8526  	// latest_delivery_promise_time, and actual_delivery_time.
  8527  	TrackingId string `json:"trackingId,omitempty"`
  8528  	// ForceSendFields is a list of field names (e.g. "ActualDeliveryTime") to
  8529  	// unconditionally include in API requests. By default, fields with empty or
  8530  	// default values are omitted from API requests. See
  8531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8532  	// details.
  8533  	ForceSendFields []string `json:"-"`
  8534  	// NullFields is a list of field names (e.g. "ActualDeliveryTime") to include
  8535  	// in API requests with the JSON null value. By default, fields with empty
  8536  	// values are omitted from API requests. See
  8537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8538  	NullFields []string `json:"-"`
  8539  }
  8540  
  8541  func (s *OrderTrackingSignalShippingInfo) MarshalJSON() ([]byte, error) {
  8542  	type NoMethod OrderTrackingSignalShippingInfo
  8543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8544  }
  8545  
  8546  type OrderinvoicesCreateChargeInvoiceRequest struct {
  8547  	// InvoiceId: [required] The ID of the invoice.
  8548  	InvoiceId string `json:"invoiceId,omitempty"`
  8549  	// InvoiceSummary: [required] Invoice summary.
  8550  	InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`
  8551  	// LineItemInvoices: [required] Invoice details per line item.
  8552  	LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`
  8553  	// OperationId: [required] The ID of the operation, unique across all
  8554  	// operations for a given order.
  8555  	OperationId string `json:"operationId,omitempty"`
  8556  	// ShipmentGroupId: [required] ID of the shipment group. It is assigned by the
  8557  	// merchant in the `shipLineItems` method and is used to group multiple line
  8558  	// items that have the same kind of shipping charges.
  8559  	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
  8560  	// ForceSendFields is a list of field names (e.g. "InvoiceId") to
  8561  	// unconditionally include in API requests. By default, fields with empty or
  8562  	// default values are omitted from API requests. See
  8563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8564  	// details.
  8565  	ForceSendFields []string `json:"-"`
  8566  	// NullFields is a list of field names (e.g. "InvoiceId") to include in API
  8567  	// requests with the JSON null value. By default, fields with empty values are
  8568  	// omitted from API requests. See
  8569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8570  	NullFields []string `json:"-"`
  8571  }
  8572  
  8573  func (s *OrderinvoicesCreateChargeInvoiceRequest) MarshalJSON() ([]byte, error) {
  8574  	type NoMethod OrderinvoicesCreateChargeInvoiceRequest
  8575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8576  }
  8577  
  8578  type OrderinvoicesCreateChargeInvoiceResponse struct {
  8579  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  8580  	// "duplicate" - "executed"
  8581  	ExecutionStatus string `json:"executionStatus,omitempty"`
  8582  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  8583  	// "content#orderinvoicesCreateChargeInvoiceResponse".
  8584  	Kind string `json:"kind,omitempty"`
  8585  
  8586  	// ServerResponse contains the HTTP response code and headers from the server.
  8587  	googleapi.ServerResponse `json:"-"`
  8588  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  8589  	// unconditionally include in API requests. By default, fields with empty or
  8590  	// default values are omitted from API requests. See
  8591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8592  	// details.
  8593  	ForceSendFields []string `json:"-"`
  8594  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  8595  	// API requests with the JSON null value. By default, fields with empty values
  8596  	// are omitted from API requests. See
  8597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8598  	NullFields []string `json:"-"`
  8599  }
  8600  
  8601  func (s *OrderinvoicesCreateChargeInvoiceResponse) MarshalJSON() ([]byte, error) {
  8602  	type NoMethod OrderinvoicesCreateChargeInvoiceResponse
  8603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8604  }
  8605  
  8606  type OrderinvoicesCreateRefundInvoiceRequest struct {
  8607  	// InvoiceId: [required] The ID of the invoice.
  8608  	InvoiceId string `json:"invoiceId,omitempty"`
  8609  	// OperationId: [required] The ID of the operation, unique across all
  8610  	// operations for a given order.
  8611  	OperationId string `json:"operationId,omitempty"`
  8612  	// RefundOnlyOption: Option to create a refund-only invoice. Exactly one of
  8613  	// `refundOnlyOption` or `returnOption` must be provided.
  8614  	RefundOnlyOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption `json:"refundOnlyOption,omitempty"`
  8615  	// ReturnOption: Option to create an invoice for a refund and mark all items
  8616  	// within the invoice as returned. Exactly one of `refundOnlyOption` or
  8617  	// `returnOption` must be provided.
  8618  	ReturnOption *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption `json:"returnOption,omitempty"`
  8619  	// ShipmentInvoices: Invoice details for different shipment groups.
  8620  	ShipmentInvoices []*ShipmentInvoice `json:"shipmentInvoices,omitempty"`
  8621  	// ForceSendFields is a list of field names (e.g. "InvoiceId") to
  8622  	// unconditionally include in API requests. By default, fields with empty or
  8623  	// default values are omitted from API requests. See
  8624  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8625  	// details.
  8626  	ForceSendFields []string `json:"-"`
  8627  	// NullFields is a list of field names (e.g. "InvoiceId") to include in API
  8628  	// requests with the JSON null value. By default, fields with empty values are
  8629  	// omitted from API requests. See
  8630  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8631  	NullFields []string `json:"-"`
  8632  }
  8633  
  8634  func (s *OrderinvoicesCreateRefundInvoiceRequest) MarshalJSON() ([]byte, error) {
  8635  	type NoMethod OrderinvoicesCreateRefundInvoiceRequest
  8636  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8637  }
  8638  
  8639  type OrderinvoicesCreateRefundInvoiceResponse struct {
  8640  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  8641  	// "duplicate" - "executed"
  8642  	ExecutionStatus string `json:"executionStatus,omitempty"`
  8643  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  8644  	// "content#orderinvoicesCreateRefundInvoiceResponse".
  8645  	Kind string `json:"kind,omitempty"`
  8646  
  8647  	// ServerResponse contains the HTTP response code and headers from the server.
  8648  	googleapi.ServerResponse `json:"-"`
  8649  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  8650  	// unconditionally include in API requests. By default, fields with empty or
  8651  	// default values are omitted from API requests. See
  8652  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8653  	// details.
  8654  	ForceSendFields []string `json:"-"`
  8655  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  8656  	// API requests with the JSON null value. By default, fields with empty values
  8657  	// are omitted from API requests. See
  8658  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8659  	NullFields []string `json:"-"`
  8660  }
  8661  
  8662  func (s *OrderinvoicesCreateRefundInvoiceResponse) MarshalJSON() ([]byte, error) {
  8663  	type NoMethod OrderinvoicesCreateRefundInvoiceResponse
  8664  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8665  }
  8666  
  8667  type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption struct {
  8668  	// Description: Optional description of the refund reason.
  8669  	Description string `json:"description,omitempty"`
  8670  	// Reason: [required] Reason for the refund. Acceptable values are: -
  8671  	// "adjustment" - "autoPostInternal" - "autoPostInvalidBillingAddress" -
  8672  	// "autoPostNoInventory" - "autoPostPriceError" -
  8673  	// "autoPostUndeliverableShippingAddress" - "couponAbuse" -
  8674  	// "courtesyAdjustment" - "customerCanceled" -
  8675  	// "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" -
  8676  	// "customerSupportRequested" - "deliveredLateByCarrier" -
  8677  	// "deliveredTooLate" - "expiredItem" - "failToPushOrderGoogleError" -
  8678  	// "failToPushOrderMerchantError" -
  8679  	// "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant"
  8680  	// - "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" -
  8681  	// "invalidCoupon" - "lateShipmentCredit" - "malformedShippingAddress" -
  8682  	// "merchantDidNotShipOnTime" - "noInventory" - "orderTimeout" -
  8683  	// "other" - "paymentAbuse" - "paymentDeclined" - "priceAdjustment" -
  8684  	// "priceError" - "productArrivedDamaged" - "productNotAsDescribed" -
  8685  	// "promoReallocation" - "qualityNotAsExpected" - "returnRefundAbuse" -
  8686  	// "shippingCostAdjustment" - "shippingPriceError" - "taxAdjustment" -
  8687  	// "taxError" - "undeliverableShippingAddress" -
  8688  	// "unsupportedPoBoxAddress" - "wrongProductShipped"
  8689  	Reason string `json:"reason,omitempty"`
  8690  	// ForceSendFields is a list of field names (e.g. "Description") to
  8691  	// unconditionally include in API requests. By default, fields with empty or
  8692  	// default values are omitted from API requests. See
  8693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8694  	// details.
  8695  	ForceSendFields []string `json:"-"`
  8696  	// NullFields is a list of field names (e.g. "Description") to include in API
  8697  	// requests with the JSON null value. By default, fields with empty values are
  8698  	// omitted from API requests. See
  8699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8700  	NullFields []string `json:"-"`
  8701  }
  8702  
  8703  func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption) MarshalJSON() ([]byte, error) {
  8704  	type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption
  8705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8706  }
  8707  
  8708  type OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption struct {
  8709  	// Description: Optional description of the return reason.
  8710  	Description string `json:"description,omitempty"`
  8711  	// Reason: [required] Reason for the return. Acceptable values are: -
  8712  	// "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" -
  8713  	// "deliveredTooLate" - "expiredItem" - "invalidCoupon" -
  8714  	// "malformedShippingAddress" - "other" - "productArrivedDamaged" -
  8715  	// "productNotAsDescribed" - "qualityNotAsExpected" -
  8716  	// "undeliverableShippingAddress" - "unsupportedPoBoxAddress" -
  8717  	// "wrongProductShipped"
  8718  	Reason string `json:"reason,omitempty"`
  8719  	// ForceSendFields is a list of field names (e.g. "Description") to
  8720  	// unconditionally include in API requests. By default, fields with empty or
  8721  	// default values are omitted from API requests. See
  8722  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8723  	// details.
  8724  	ForceSendFields []string `json:"-"`
  8725  	// NullFields is a list of field names (e.g. "Description") to include in API
  8726  	// requests with the JSON null value. By default, fields with empty values are
  8727  	// omitted from API requests. See
  8728  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8729  	NullFields []string `json:"-"`
  8730  }
  8731  
  8732  func (s *OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption) MarshalJSON() ([]byte, error) {
  8733  	type NoMethod OrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption
  8734  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8735  }
  8736  
  8737  type OrderreportsListDisbursementsResponse struct {
  8738  	// Disbursements: The list of disbursements.
  8739  	Disbursements []*OrderReportDisbursement `json:"disbursements,omitempty"`
  8740  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  8741  	// "content#orderreportsListDisbursementsResponse".
  8742  	Kind string `json:"kind,omitempty"`
  8743  	// NextPageToken: The token for the retrieval of the next page of
  8744  	// disbursements.
  8745  	NextPageToken string `json:"nextPageToken,omitempty"`
  8746  
  8747  	// ServerResponse contains the HTTP response code and headers from the server.
  8748  	googleapi.ServerResponse `json:"-"`
  8749  	// ForceSendFields is a list of field names (e.g. "Disbursements") to
  8750  	// unconditionally include in API requests. By default, fields with empty or
  8751  	// default values are omitted from API requests. See
  8752  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8753  	// details.
  8754  	ForceSendFields []string `json:"-"`
  8755  	// NullFields is a list of field names (e.g. "Disbursements") to include in API
  8756  	// requests with the JSON null value. By default, fields with empty values are
  8757  	// omitted from API requests. See
  8758  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8759  	NullFields []string `json:"-"`
  8760  }
  8761  
  8762  func (s *OrderreportsListDisbursementsResponse) MarshalJSON() ([]byte, error) {
  8763  	type NoMethod OrderreportsListDisbursementsResponse
  8764  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8765  }
  8766  
  8767  type OrderreportsListTransactionsResponse struct {
  8768  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  8769  	// "content#orderreportsListTransactionsResponse".
  8770  	Kind string `json:"kind,omitempty"`
  8771  	// NextPageToken: The token for the retrieval of the next page of transactions.
  8772  	NextPageToken string `json:"nextPageToken,omitempty"`
  8773  	// Transactions: The list of transactions.
  8774  	Transactions []*OrderReportTransaction `json:"transactions,omitempty"`
  8775  
  8776  	// ServerResponse contains the HTTP response code and headers from the server.
  8777  	googleapi.ServerResponse `json:"-"`
  8778  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  8779  	// include in API requests. By default, fields with empty or default values are
  8780  	// omitted from API requests. See
  8781  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8782  	// details.
  8783  	ForceSendFields []string `json:"-"`
  8784  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  8785  	// with the JSON null value. By default, fields with empty values are omitted
  8786  	// from API requests. See
  8787  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8788  	NullFields []string `json:"-"`
  8789  }
  8790  
  8791  func (s *OrderreportsListTransactionsResponse) MarshalJSON() ([]byte, error) {
  8792  	type NoMethod OrderreportsListTransactionsResponse
  8793  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8794  }
  8795  
  8796  type OrderreturnsAcknowledgeRequest struct {
  8797  	// OperationId: [required] The ID of the operation, unique across all
  8798  	// operations for a given order return.
  8799  	OperationId string `json:"operationId,omitempty"`
  8800  	// ForceSendFields is a list of field names (e.g. "OperationId") to
  8801  	// unconditionally include in API requests. By default, fields with empty or
  8802  	// default values are omitted from API requests. See
  8803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8804  	// details.
  8805  	ForceSendFields []string `json:"-"`
  8806  	// NullFields is a list of field names (e.g. "OperationId") to include in API
  8807  	// requests with the JSON null value. By default, fields with empty values are
  8808  	// omitted from API requests. See
  8809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8810  	NullFields []string `json:"-"`
  8811  }
  8812  
  8813  func (s *OrderreturnsAcknowledgeRequest) MarshalJSON() ([]byte, error) {
  8814  	type NoMethod OrderreturnsAcknowledgeRequest
  8815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8816  }
  8817  
  8818  type OrderreturnsAcknowledgeResponse struct {
  8819  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  8820  	// "duplicate" - "executed"
  8821  	ExecutionStatus string `json:"executionStatus,omitempty"`
  8822  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  8823  	// "content#orderreturnsAcknowledgeResponse".
  8824  	Kind string `json:"kind,omitempty"`
  8825  
  8826  	// ServerResponse contains the HTTP response code and headers from the server.
  8827  	googleapi.ServerResponse `json:"-"`
  8828  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  8829  	// unconditionally include in API requests. By default, fields with empty or
  8830  	// default values are omitted from API requests. See
  8831  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8832  	// details.
  8833  	ForceSendFields []string `json:"-"`
  8834  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  8835  	// API requests with the JSON null value. By default, fields with empty values
  8836  	// are omitted from API requests. See
  8837  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8838  	NullFields []string `json:"-"`
  8839  }
  8840  
  8841  func (s *OrderreturnsAcknowledgeResponse) MarshalJSON() ([]byte, error) {
  8842  	type NoMethod OrderreturnsAcknowledgeResponse
  8843  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8844  }
  8845  
  8846  type OrderreturnsCreateOrderReturnRequest struct {
  8847  	// LineItems: The list of line items to return.
  8848  	LineItems []*OrderreturnsLineItem `json:"lineItems,omitempty"`
  8849  	// OperationId: The ID of the operation. Unique across all operations for a
  8850  	// given order.
  8851  	OperationId string `json:"operationId,omitempty"`
  8852  	// OrderId: The ID of the order.
  8853  	OrderId string `json:"orderId,omitempty"`
  8854  	// ReturnMethodType: The way of the package being returned.
  8855  	ReturnMethodType string `json:"returnMethodType,omitempty"`
  8856  	// ForceSendFields is a list of field names (e.g. "LineItems") to
  8857  	// unconditionally include in API requests. By default, fields with empty or
  8858  	// default values are omitted from API requests. See
  8859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8860  	// details.
  8861  	ForceSendFields []string `json:"-"`
  8862  	// NullFields is a list of field names (e.g. "LineItems") to include in API
  8863  	// requests with the JSON null value. By default, fields with empty values are
  8864  	// omitted from API requests. See
  8865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8866  	NullFields []string `json:"-"`
  8867  }
  8868  
  8869  func (s *OrderreturnsCreateOrderReturnRequest) MarshalJSON() ([]byte, error) {
  8870  	type NoMethod OrderreturnsCreateOrderReturnRequest
  8871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8872  }
  8873  
  8874  type OrderreturnsCreateOrderReturnResponse struct {
  8875  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  8876  	// "duplicate" - "executed"
  8877  	ExecutionStatus string `json:"executionStatus,omitempty"`
  8878  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  8879  	// "content#orderreturnsCreateOrderReturnResponse".
  8880  	Kind string `json:"kind,omitempty"`
  8881  	// OrderReturn: Created order return.
  8882  	OrderReturn *MerchantOrderReturn `json:"orderReturn,omitempty"`
  8883  
  8884  	// ServerResponse contains the HTTP response code and headers from the server.
  8885  	googleapi.ServerResponse `json:"-"`
  8886  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  8887  	// unconditionally include in API requests. By default, fields with empty or
  8888  	// default values are omitted from API requests. See
  8889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8890  	// details.
  8891  	ForceSendFields []string `json:"-"`
  8892  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  8893  	// API requests with the JSON null value. By default, fields with empty values
  8894  	// are omitted from API requests. See
  8895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8896  	NullFields []string `json:"-"`
  8897  }
  8898  
  8899  func (s *OrderreturnsCreateOrderReturnResponse) MarshalJSON() ([]byte, error) {
  8900  	type NoMethod OrderreturnsCreateOrderReturnResponse
  8901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8902  }
  8903  
  8904  type OrderreturnsLineItem struct {
  8905  	// LineItemId: The ID of the line item. This value is assigned by Google when
  8906  	// an order is created. Either lineItemId or productId is required.
  8907  	LineItemId string `json:"lineItemId,omitempty"`
  8908  	// ProductId: The ID of the product to cancel. This is the REST ID used in the
  8909  	// products service. Either lineItemId or productId is required.
  8910  	ProductId string `json:"productId,omitempty"`
  8911  	// Quantity: The quantity of this line item.
  8912  	Quantity int64 `json:"quantity,omitempty"`
  8913  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  8914  	// unconditionally include in API requests. By default, fields with empty or
  8915  	// default values are omitted from API requests. See
  8916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8917  	// details.
  8918  	ForceSendFields []string `json:"-"`
  8919  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  8920  	// requests with the JSON null value. By default, fields with empty values are
  8921  	// omitted from API requests. See
  8922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8923  	NullFields []string `json:"-"`
  8924  }
  8925  
  8926  func (s *OrderreturnsLineItem) MarshalJSON() ([]byte, error) {
  8927  	type NoMethod OrderreturnsLineItem
  8928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8929  }
  8930  
  8931  type OrderreturnsListResponse struct {
  8932  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  8933  	// "content#orderreturnsListResponse".
  8934  	Kind string `json:"kind,omitempty"`
  8935  	// NextPageToken: The token for the retrieval of the next page of returns.
  8936  	NextPageToken string                 `json:"nextPageToken,omitempty"`
  8937  	Resources     []*MerchantOrderReturn `json:"resources,omitempty"`
  8938  
  8939  	// ServerResponse contains the HTTP response code and headers from the server.
  8940  	googleapi.ServerResponse `json:"-"`
  8941  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  8942  	// include in API requests. By default, fields with empty or default values are
  8943  	// omitted from API requests. See
  8944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8945  	// details.
  8946  	ForceSendFields []string `json:"-"`
  8947  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  8948  	// with the JSON null value. By default, fields with empty values are omitted
  8949  	// from API requests. See
  8950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8951  	NullFields []string `json:"-"`
  8952  }
  8953  
  8954  func (s *OrderreturnsListResponse) MarshalJSON() ([]byte, error) {
  8955  	type NoMethod OrderreturnsListResponse
  8956  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8957  }
  8958  
  8959  type OrderreturnsPartialRefund struct {
  8960  	// PriceAmount: The pre-tax or post-tax amount to be refunded, depending on the
  8961  	// location of the order.
  8962  	PriceAmount *Price `json:"priceAmount,omitempty"`
  8963  	// TaxAmount: Tax amount to be refunded. Note: This has different meaning
  8964  	// depending on the location of the order.
  8965  	TaxAmount *Price `json:"taxAmount,omitempty"`
  8966  	// ForceSendFields is a list of field names (e.g. "PriceAmount") to
  8967  	// unconditionally include in API requests. By default, fields with empty or
  8968  	// default values are omitted from API requests. See
  8969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8970  	// details.
  8971  	ForceSendFields []string `json:"-"`
  8972  	// NullFields is a list of field names (e.g. "PriceAmount") to include in API
  8973  	// requests with the JSON null value. By default, fields with empty values are
  8974  	// omitted from API requests. See
  8975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8976  	NullFields []string `json:"-"`
  8977  }
  8978  
  8979  func (s *OrderreturnsPartialRefund) MarshalJSON() ([]byte, error) {
  8980  	type NoMethod OrderreturnsPartialRefund
  8981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8982  }
  8983  
  8984  type OrderreturnsProcessRequest struct {
  8985  	// FullChargeReturnShippingCost: Option to charge the customer return shipping
  8986  	// cost.
  8987  	FullChargeReturnShippingCost bool `json:"fullChargeReturnShippingCost,omitempty"`
  8988  	// OperationId: [required] The ID of the operation, unique across all
  8989  	// operations for a given order return.
  8990  	OperationId string `json:"operationId,omitempty"`
  8991  	// RefundShippingFee: Refunds for original shipping fee.
  8992  	RefundShippingFee *OrderreturnsRefundOperation `json:"refundShippingFee,omitempty"`
  8993  	// ReturnItems: The list of items to return.
  8994  	ReturnItems []*OrderreturnsReturnItem `json:"returnItems,omitempty"`
  8995  	// ForceSendFields is a list of field names (e.g.
  8996  	// "FullChargeReturnShippingCost") to unconditionally include in API requests.
  8997  	// By default, fields with empty or default values are omitted from API
  8998  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  8999  	// for more details.
  9000  	ForceSendFields []string `json:"-"`
  9001  	// NullFields is a list of field names (e.g. "FullChargeReturnShippingCost") to
  9002  	// include in API requests with the JSON null value. By default, fields with
  9003  	// empty values are omitted from API requests. See
  9004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9005  	NullFields []string `json:"-"`
  9006  }
  9007  
  9008  func (s *OrderreturnsProcessRequest) MarshalJSON() ([]byte, error) {
  9009  	type NoMethod OrderreturnsProcessRequest
  9010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9011  }
  9012  
  9013  type OrderreturnsProcessResponse struct {
  9014  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9015  	// "duplicate" - "executed"
  9016  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9017  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9018  	// "content#orderreturnsProcessResponse".
  9019  	Kind string `json:"kind,omitempty"`
  9020  
  9021  	// ServerResponse contains the HTTP response code and headers from the server.
  9022  	googleapi.ServerResponse `json:"-"`
  9023  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9024  	// unconditionally include in API requests. By default, fields with empty or
  9025  	// default values are omitted from API requests. See
  9026  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9027  	// details.
  9028  	ForceSendFields []string `json:"-"`
  9029  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9030  	// API requests with the JSON null value. By default, fields with empty values
  9031  	// are omitted from API requests. See
  9032  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9033  	NullFields []string `json:"-"`
  9034  }
  9035  
  9036  func (s *OrderreturnsProcessResponse) MarshalJSON() ([]byte, error) {
  9037  	type NoMethod OrderreturnsProcessResponse
  9038  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9039  }
  9040  
  9041  type OrderreturnsRefundOperation struct {
  9042  	// FullRefund: If true, the item will be fully refunded. Allowed only when
  9043  	// payment_type is FOP. Merchant can choose this refund option to indicate the
  9044  	// full remaining amount of corresponding object to be refunded to the customer
  9045  	// through FOP.
  9046  	FullRefund bool `json:"fullRefund,omitempty"`
  9047  	// PartialRefund: If this is set, the item will be partially refunded. Merchant
  9048  	// can choose this refund option to specify the customized amount that to be
  9049  	// refunded to the customer.
  9050  	PartialRefund *OrderreturnsPartialRefund `json:"partialRefund,omitempty"`
  9051  	// PaymentType: The payment way of issuing refund. Default value is
  9052  	// ORIGINAL_FOP if not set.
  9053  	PaymentType string `json:"paymentType,omitempty"`
  9054  	// ReasonText: The explanation of the reason.
  9055  	ReasonText string `json:"reasonText,omitempty"`
  9056  	// ReturnRefundReason: Code of the refund reason.
  9057  	ReturnRefundReason string `json:"returnRefundReason,omitempty"`
  9058  	// ForceSendFields is a list of field names (e.g. "FullRefund") to
  9059  	// unconditionally include in API requests. By default, fields with empty or
  9060  	// default values are omitted from API requests. See
  9061  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9062  	// details.
  9063  	ForceSendFields []string `json:"-"`
  9064  	// NullFields is a list of field names (e.g. "FullRefund") to include in API
  9065  	// requests with the JSON null value. By default, fields with empty values are
  9066  	// omitted from API requests. See
  9067  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9068  	NullFields []string `json:"-"`
  9069  }
  9070  
  9071  func (s *OrderreturnsRefundOperation) MarshalJSON() ([]byte, error) {
  9072  	type NoMethod OrderreturnsRefundOperation
  9073  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9074  }
  9075  
  9076  type OrderreturnsRejectOperation struct {
  9077  	// Reason: The reason for the return.
  9078  	Reason string `json:"reason,omitempty"`
  9079  	// ReasonText: The explanation of the reason.
  9080  	ReasonText string `json:"reasonText,omitempty"`
  9081  	// ForceSendFields is a list of field names (e.g. "Reason") to unconditionally
  9082  	// include in API requests. By default, fields with empty or default values are
  9083  	// omitted from API requests. See
  9084  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9085  	// details.
  9086  	ForceSendFields []string `json:"-"`
  9087  	// NullFields is a list of field names (e.g. "Reason") to include in API
  9088  	// requests with the JSON null value. By default, fields with empty values are
  9089  	// omitted from API requests. See
  9090  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9091  	NullFields []string `json:"-"`
  9092  }
  9093  
  9094  func (s *OrderreturnsRejectOperation) MarshalJSON() ([]byte, error) {
  9095  	type NoMethod OrderreturnsRejectOperation
  9096  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9097  }
  9098  
  9099  type OrderreturnsReturnItem struct {
  9100  	// Refund: Refunds the item.
  9101  	Refund *OrderreturnsRefundOperation `json:"refund,omitempty"`
  9102  	// Reject: Rejects the item.
  9103  	Reject *OrderreturnsRejectOperation `json:"reject,omitempty"`
  9104  	// ReturnItemId: Unit level ID for the return item. Different units of the same
  9105  	// product will have different IDs.
  9106  	ReturnItemId string `json:"returnItemId,omitempty"`
  9107  	// ForceSendFields is a list of field names (e.g. "Refund") to unconditionally
  9108  	// include in API requests. By default, fields with empty or default values are
  9109  	// omitted from API requests. See
  9110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9111  	// details.
  9112  	ForceSendFields []string `json:"-"`
  9113  	// NullFields is a list of field names (e.g. "Refund") to include in API
  9114  	// requests with the JSON null value. By default, fields with empty values are
  9115  	// omitted from API requests. See
  9116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9117  	NullFields []string `json:"-"`
  9118  }
  9119  
  9120  func (s *OrderreturnsReturnItem) MarshalJSON() ([]byte, error) {
  9121  	type NoMethod OrderreturnsReturnItem
  9122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9123  }
  9124  
  9125  type OrdersAcknowledgeRequest struct {
  9126  	// OperationId: The ID of the operation. Unique across all operations for a
  9127  	// given order.
  9128  	OperationId string `json:"operationId,omitempty"`
  9129  	// ForceSendFields is a list of field names (e.g. "OperationId") to
  9130  	// unconditionally include in API requests. By default, fields with empty or
  9131  	// default values are omitted from API requests. See
  9132  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9133  	// details.
  9134  	ForceSendFields []string `json:"-"`
  9135  	// NullFields is a list of field names (e.g. "OperationId") to include in API
  9136  	// requests with the JSON null value. By default, fields with empty values are
  9137  	// omitted from API requests. See
  9138  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9139  	NullFields []string `json:"-"`
  9140  }
  9141  
  9142  func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error) {
  9143  	type NoMethod OrdersAcknowledgeRequest
  9144  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9145  }
  9146  
  9147  type OrdersAcknowledgeResponse struct {
  9148  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9149  	// "duplicate" - "executed"
  9150  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9151  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9152  	// "content#ordersAcknowledgeResponse".
  9153  	Kind string `json:"kind,omitempty"`
  9154  
  9155  	// ServerResponse contains the HTTP response code and headers from the server.
  9156  	googleapi.ServerResponse `json:"-"`
  9157  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9158  	// unconditionally include in API requests. By default, fields with empty or
  9159  	// default values are omitted from API requests. See
  9160  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9161  	// details.
  9162  	ForceSendFields []string `json:"-"`
  9163  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9164  	// API requests with the JSON null value. By default, fields with empty values
  9165  	// are omitted from API requests. See
  9166  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9167  	NullFields []string `json:"-"`
  9168  }
  9169  
  9170  func (s *OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error) {
  9171  	type NoMethod OrdersAcknowledgeResponse
  9172  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9173  }
  9174  
  9175  type OrdersAdvanceTestOrderResponse struct {
  9176  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9177  	// "content#ordersAdvanceTestOrderResponse".
  9178  	Kind string `json:"kind,omitempty"`
  9179  
  9180  	// ServerResponse contains the HTTP response code and headers from the server.
  9181  	googleapi.ServerResponse `json:"-"`
  9182  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  9183  	// include in API requests. By default, fields with empty or default values are
  9184  	// omitted from API requests. See
  9185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9186  	// details.
  9187  	ForceSendFields []string `json:"-"`
  9188  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  9189  	// with the JSON null value. By default, fields with empty values are omitted
  9190  	// from API requests. See
  9191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9192  	NullFields []string `json:"-"`
  9193  }
  9194  
  9195  func (s *OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error) {
  9196  	type NoMethod OrdersAdvanceTestOrderResponse
  9197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9198  }
  9199  
  9200  type OrdersCancelLineItemRequest struct {
  9201  	// LineItemId: The ID of the line item to cancel. Either lineItemId or
  9202  	// productId is required.
  9203  	LineItemId string `json:"lineItemId,omitempty"`
  9204  	// OperationId: The ID of the operation. Unique across all operations for a
  9205  	// given order.
  9206  	OperationId string `json:"operationId,omitempty"`
  9207  	// ProductId: The ID of the product to cancel. This is the REST ID used in the
  9208  	// products service. Either lineItemId or productId is required.
  9209  	ProductId string `json:"productId,omitempty"`
  9210  	// Quantity: The quantity to cancel.
  9211  	Quantity int64 `json:"quantity,omitempty"`
  9212  	// Reason: The reason for the cancellation. Acceptable values are: -
  9213  	// "customerInitiatedCancel" - "invalidCoupon" -
  9214  	// "malformedShippingAddress" - "noInventory" - "other" - "priceError"
  9215  	// - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" -
  9216  	// "unsupportedPoBoxAddress" - "failedToCaptureFunds"
  9217  	Reason string `json:"reason,omitempty"`
  9218  	// ReasonText: The explanation of the reason.
  9219  	ReasonText string `json:"reasonText,omitempty"`
  9220  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  9221  	// unconditionally include in API requests. By default, fields with empty or
  9222  	// default values are omitted from API requests. See
  9223  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9224  	// details.
  9225  	ForceSendFields []string `json:"-"`
  9226  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  9227  	// requests with the JSON null value. By default, fields with empty values are
  9228  	// omitted from API requests. See
  9229  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9230  	NullFields []string `json:"-"`
  9231  }
  9232  
  9233  func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error) {
  9234  	type NoMethod OrdersCancelLineItemRequest
  9235  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9236  }
  9237  
  9238  type OrdersCancelLineItemResponse struct {
  9239  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9240  	// "duplicate" - "executed"
  9241  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9242  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9243  	// "content#ordersCancelLineItemResponse".
  9244  	Kind string `json:"kind,omitempty"`
  9245  
  9246  	// ServerResponse contains the HTTP response code and headers from the server.
  9247  	googleapi.ServerResponse `json:"-"`
  9248  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9249  	// unconditionally include in API requests. By default, fields with empty or
  9250  	// default values are omitted from API requests. See
  9251  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9252  	// details.
  9253  	ForceSendFields []string `json:"-"`
  9254  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9255  	// API requests with the JSON null value. By default, fields with empty values
  9256  	// are omitted from API requests. See
  9257  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9258  	NullFields []string `json:"-"`
  9259  }
  9260  
  9261  func (s *OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error) {
  9262  	type NoMethod OrdersCancelLineItemResponse
  9263  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9264  }
  9265  
  9266  type OrdersCancelRequest struct {
  9267  	// OperationId: The ID of the operation. Unique across all operations for a
  9268  	// given order.
  9269  	OperationId string `json:"operationId,omitempty"`
  9270  	// Reason: The reason for the cancellation. Acceptable values are: -
  9271  	// "customerInitiatedCancel" - "invalidCoupon" -
  9272  	// "malformedShippingAddress" - "noInventory" - "other" - "priceError"
  9273  	// - "shippingPriceError" - "taxError" - "undeliverableShippingAddress" -
  9274  	// "unsupportedPoBoxAddress" - "failedToCaptureFunds"
  9275  	Reason string `json:"reason,omitempty"`
  9276  	// ReasonText: The explanation of the reason.
  9277  	ReasonText string `json:"reasonText,omitempty"`
  9278  	// ForceSendFields is a list of field names (e.g. "OperationId") to
  9279  	// unconditionally include in API requests. By default, fields with empty or
  9280  	// default values are omitted from API requests. See
  9281  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9282  	// details.
  9283  	ForceSendFields []string `json:"-"`
  9284  	// NullFields is a list of field names (e.g. "OperationId") to include in API
  9285  	// requests with the JSON null value. By default, fields with empty values are
  9286  	// omitted from API requests. See
  9287  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9288  	NullFields []string `json:"-"`
  9289  }
  9290  
  9291  func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error) {
  9292  	type NoMethod OrdersCancelRequest
  9293  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9294  }
  9295  
  9296  type OrdersCancelResponse struct {
  9297  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9298  	// "duplicate" - "executed"
  9299  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9300  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9301  	// "content#ordersCancelResponse".
  9302  	Kind string `json:"kind,omitempty"`
  9303  
  9304  	// ServerResponse contains the HTTP response code and headers from the server.
  9305  	googleapi.ServerResponse `json:"-"`
  9306  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9307  	// unconditionally include in API requests. By default, fields with empty or
  9308  	// default values are omitted from API requests. See
  9309  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9310  	// details.
  9311  	ForceSendFields []string `json:"-"`
  9312  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9313  	// API requests with the JSON null value. By default, fields with empty values
  9314  	// are omitted from API requests. See
  9315  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9316  	NullFields []string `json:"-"`
  9317  }
  9318  
  9319  func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error) {
  9320  	type NoMethod OrdersCancelResponse
  9321  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9322  }
  9323  
  9324  type OrdersCancelTestOrderByCustomerRequest struct {
  9325  	// Reason: The reason for the cancellation. Acceptable values are: -
  9326  	// "changedMind" - "orderedWrongItem" - "other"
  9327  	Reason string `json:"reason,omitempty"`
  9328  	// ForceSendFields is a list of field names (e.g. "Reason") to unconditionally
  9329  	// include in API requests. By default, fields with empty or default values are
  9330  	// omitted from API requests. See
  9331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9332  	// details.
  9333  	ForceSendFields []string `json:"-"`
  9334  	// NullFields is a list of field names (e.g. "Reason") to include in API
  9335  	// requests with the JSON null value. By default, fields with empty values are
  9336  	// omitted from API requests. See
  9337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9338  	NullFields []string `json:"-"`
  9339  }
  9340  
  9341  func (s *OrdersCancelTestOrderByCustomerRequest) MarshalJSON() ([]byte, error) {
  9342  	type NoMethod OrdersCancelTestOrderByCustomerRequest
  9343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9344  }
  9345  
  9346  type OrdersCancelTestOrderByCustomerResponse struct {
  9347  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9348  	// "content#ordersCancelTestOrderByCustomerResponse".
  9349  	Kind string `json:"kind,omitempty"`
  9350  
  9351  	// ServerResponse contains the HTTP response code and headers from the server.
  9352  	googleapi.ServerResponse `json:"-"`
  9353  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  9354  	// include in API requests. By default, fields with empty or default values are
  9355  	// omitted from API requests. See
  9356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9357  	// details.
  9358  	ForceSendFields []string `json:"-"`
  9359  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  9360  	// with the JSON null value. By default, fields with empty values are omitted
  9361  	// from API requests. See
  9362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9363  	NullFields []string `json:"-"`
  9364  }
  9365  
  9366  func (s *OrdersCancelTestOrderByCustomerResponse) MarshalJSON() ([]byte, error) {
  9367  	type NoMethod OrdersCancelTestOrderByCustomerResponse
  9368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9369  }
  9370  
  9371  type OrdersCreateTestOrderRequest struct {
  9372  	// Country: The CLDR territory code of the country of the test order to create.
  9373  	// Affects the currency and addresses of orders created through
  9374  	// `template_name`, or the addresses of orders created through `test_order`.
  9375  	// Acceptable values are: - "US" - "FR" Defaults to "US".
  9376  	Country string `json:"country,omitempty"`
  9377  	// TemplateName: The test order template to use. Specify as an alternative to
  9378  	// `testOrder` as a shortcut for retrieving a template and then creating an
  9379  	// order using that template. Acceptable values are: - "template1" -
  9380  	// "template1a" - "template1b" - "template2" - "template3"
  9381  	TemplateName string `json:"templateName,omitempty"`
  9382  	// TestOrder: The test order to create.
  9383  	TestOrder *TestOrder `json:"testOrder,omitempty"`
  9384  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
  9385  	// include in API requests. By default, fields with empty or default values are
  9386  	// omitted from API requests. See
  9387  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9388  	// details.
  9389  	ForceSendFields []string `json:"-"`
  9390  	// NullFields is a list of field names (e.g. "Country") to include in API
  9391  	// requests with the JSON null value. By default, fields with empty values are
  9392  	// omitted from API requests. See
  9393  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9394  	NullFields []string `json:"-"`
  9395  }
  9396  
  9397  func (s *OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error) {
  9398  	type NoMethod OrdersCreateTestOrderRequest
  9399  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9400  }
  9401  
  9402  type OrdersCreateTestOrderResponse struct {
  9403  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9404  	// "content#ordersCreateTestOrderResponse".
  9405  	Kind string `json:"kind,omitempty"`
  9406  	// OrderId: The ID of the newly created test order.
  9407  	OrderId string `json:"orderId,omitempty"`
  9408  
  9409  	// ServerResponse contains the HTTP response code and headers from the server.
  9410  	googleapi.ServerResponse `json:"-"`
  9411  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  9412  	// include in API requests. By default, fields with empty or default values are
  9413  	// omitted from API requests. See
  9414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9415  	// details.
  9416  	ForceSendFields []string `json:"-"`
  9417  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  9418  	// with the JSON null value. By default, fields with empty values are omitted
  9419  	// from API requests. See
  9420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9421  	NullFields []string `json:"-"`
  9422  }
  9423  
  9424  func (s *OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error) {
  9425  	type NoMethod OrdersCreateTestOrderResponse
  9426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9427  }
  9428  
  9429  type OrdersCreateTestReturnRequest struct {
  9430  	// Items: Returned items.
  9431  	Items []*OrdersCustomBatchRequestEntryCreateTestReturnReturnItem `json:"items,omitempty"`
  9432  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
  9433  	// include in API requests. By default, fields with empty or default values are
  9434  	// omitted from API requests. See
  9435  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9436  	// details.
  9437  	ForceSendFields []string `json:"-"`
  9438  	// NullFields is a list of field names (e.g. "Items") to include in API
  9439  	// requests with the JSON null value. By default, fields with empty values are
  9440  	// omitted from API requests. See
  9441  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9442  	NullFields []string `json:"-"`
  9443  }
  9444  
  9445  func (s *OrdersCreateTestReturnRequest) MarshalJSON() ([]byte, error) {
  9446  	type NoMethod OrdersCreateTestReturnRequest
  9447  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9448  }
  9449  
  9450  type OrdersCreateTestReturnResponse struct {
  9451  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9452  	// "content#ordersCreateTestReturnResponse".
  9453  	Kind string `json:"kind,omitempty"`
  9454  	// ReturnId: The ID of the newly created test order return.
  9455  	ReturnId string `json:"returnId,omitempty"`
  9456  
  9457  	// ServerResponse contains the HTTP response code and headers from the server.
  9458  	googleapi.ServerResponse `json:"-"`
  9459  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  9460  	// include in API requests. By default, fields with empty or default values are
  9461  	// omitted from API requests. See
  9462  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9463  	// details.
  9464  	ForceSendFields []string `json:"-"`
  9465  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  9466  	// with the JSON null value. By default, fields with empty values are omitted
  9467  	// from API requests. See
  9468  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9469  	NullFields []string `json:"-"`
  9470  }
  9471  
  9472  func (s *OrdersCreateTestReturnResponse) MarshalJSON() ([]byte, error) {
  9473  	type NoMethod OrdersCreateTestReturnResponse
  9474  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9475  }
  9476  
  9477  type OrdersCustomBatchRequestEntryCreateTestReturnReturnItem struct {
  9478  	// LineItemId: The ID of the line item to return.
  9479  	LineItemId string `json:"lineItemId,omitempty"`
  9480  	// Quantity: Quantity that is returned.
  9481  	Quantity int64 `json:"quantity,omitempty"`
  9482  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  9483  	// unconditionally include in API requests. By default, fields with empty or
  9484  	// default values are omitted from API requests. See
  9485  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9486  	// details.
  9487  	ForceSendFields []string `json:"-"`
  9488  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  9489  	// requests with the JSON null value. By default, fields with empty values are
  9490  	// omitted from API requests. See
  9491  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9492  	NullFields []string `json:"-"`
  9493  }
  9494  
  9495  func (s *OrdersCustomBatchRequestEntryCreateTestReturnReturnItem) MarshalJSON() ([]byte, error) {
  9496  	type NoMethod OrdersCustomBatchRequestEntryCreateTestReturnReturnItem
  9497  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9498  }
  9499  
  9500  type OrdersCustomBatchRequestEntryRefundItemItem struct {
  9501  	// Amount: The total amount that is refunded. (for example, refunding $5 each
  9502  	// for 2 products should be done by setting quantity to 2 and amount to 10$) In
  9503  	// case of multiple refunds, this should be the amount you currently want to
  9504  	// refund to the customer.
  9505  	Amount *MonetaryAmount `json:"amount,omitempty"`
  9506  	// FullRefund: If true, the full item will be refunded. If this is true, amount
  9507  	// shouldn't be provided and will be ignored.
  9508  	FullRefund bool `json:"fullRefund,omitempty"`
  9509  	// LineItemId: The ID of the line item. Either lineItemId or productId is
  9510  	// required.
  9511  	LineItemId string `json:"lineItemId,omitempty"`
  9512  	// ProductId: The ID of the product. This is the REST ID used in the products
  9513  	// service. Either lineItemId or productId is required.
  9514  	ProductId string `json:"productId,omitempty"`
  9515  	// Quantity: The number of products that are refunded.
  9516  	Quantity int64 `json:"quantity,omitempty"`
  9517  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
  9518  	// include in API requests. By default, fields with empty or default values are
  9519  	// omitted from API requests. See
  9520  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9521  	// details.
  9522  	ForceSendFields []string `json:"-"`
  9523  	// NullFields is a list of field names (e.g. "Amount") to include in API
  9524  	// requests with the JSON null value. By default, fields with empty values are
  9525  	// omitted from API requests. See
  9526  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9527  	NullFields []string `json:"-"`
  9528  }
  9529  
  9530  func (s *OrdersCustomBatchRequestEntryRefundItemItem) MarshalJSON() ([]byte, error) {
  9531  	type NoMethod OrdersCustomBatchRequestEntryRefundItemItem
  9532  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9533  }
  9534  
  9535  type OrdersCustomBatchRequestEntryRefundItemShipping struct {
  9536  	// Amount: The amount that is refunded. If this is not the first refund for the
  9537  	// shipment, this should be the newly refunded amount.
  9538  	Amount *Price `json:"amount,omitempty"`
  9539  	// FullRefund: If set to true, all shipping costs for the order will be
  9540  	// refunded. If this is true, amount shouldn't be provided and will be ignored.
  9541  	// If set to false, submit the amount of the partial shipping refund, excluding
  9542  	// the shipping tax. The shipping tax is calculated and handled on Google's
  9543  	// side.
  9544  	FullRefund bool `json:"fullRefund,omitempty"`
  9545  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
  9546  	// include in API requests. By default, fields with empty or default values are
  9547  	// omitted from API requests. See
  9548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9549  	// details.
  9550  	ForceSendFields []string `json:"-"`
  9551  	// NullFields is a list of field names (e.g. "Amount") to include in API
  9552  	// requests with the JSON null value. By default, fields with empty values are
  9553  	// omitted from API requests. See
  9554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9555  	NullFields []string `json:"-"`
  9556  }
  9557  
  9558  func (s *OrdersCustomBatchRequestEntryRefundItemShipping) MarshalJSON() ([]byte, error) {
  9559  	type NoMethod OrdersCustomBatchRequestEntryRefundItemShipping
  9560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9561  }
  9562  
  9563  type OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo struct {
  9564  	// Carrier: The carrier handling the shipment. See `shipments[].carrier` in the
  9565  	// Orders resource representation for a list of acceptable values.
  9566  	Carrier string `json:"carrier,omitempty"`
  9567  	// ShipmentId: Required. The ID of the shipment. This is assigned by the
  9568  	// merchant and is unique to each shipment.
  9569  	ShipmentId string `json:"shipmentId,omitempty"`
  9570  	// TrackingId: The tracking ID for the shipment.
  9571  	TrackingId string `json:"trackingId,omitempty"`
  9572  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
  9573  	// include in API requests. By default, fields with empty or default values are
  9574  	// omitted from API requests. See
  9575  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9576  	// details.
  9577  	ForceSendFields []string `json:"-"`
  9578  	// NullFields is a list of field names (e.g. "Carrier") to include in API
  9579  	// requests with the JSON null value. By default, fields with empty values are
  9580  	// omitted from API requests. See
  9581  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9582  	NullFields []string `json:"-"`
  9583  }
  9584  
  9585  func (s *OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo) MarshalJSON() ([]byte, error) {
  9586  	type NoMethod OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo
  9587  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9588  }
  9589  
  9590  // OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails:
  9591  // ScheduledDeliveryDetails used to update the scheduled delivery order.
  9592  type OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails struct {
  9593  	// CarrierPhoneNumber: The phone number of the carrier fulfilling the delivery.
  9594  	// The phone number should be formatted as the international notation in
  9595  	CarrierPhoneNumber string `json:"carrierPhoneNumber,omitempty"`
  9596  	// ScheduledDate: The date a shipment is scheduled for delivery, in ISO 8601
  9597  	// format.
  9598  	ScheduledDate string `json:"scheduledDate,omitempty"`
  9599  	// ForceSendFields is a list of field names (e.g. "CarrierPhoneNumber") to
  9600  	// unconditionally include in API requests. By default, fields with empty or
  9601  	// default values are omitted from API requests. See
  9602  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9603  	// details.
  9604  	ForceSendFields []string `json:"-"`
  9605  	// NullFields is a list of field names (e.g. "CarrierPhoneNumber") to include
  9606  	// in API requests with the JSON null value. By default, fields with empty
  9607  	// values are omitted from API requests. See
  9608  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9609  	NullFields []string `json:"-"`
  9610  }
  9611  
  9612  func (s *OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails) MarshalJSON() ([]byte, error) {
  9613  	type NoMethod OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails
  9614  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9615  }
  9616  
  9617  type OrdersGetByMerchantOrderIdResponse struct {
  9618  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9619  	// "content#ordersGetByMerchantOrderIdResponse".
  9620  	Kind string `json:"kind,omitempty"`
  9621  	// Order: The requested order.
  9622  	Order *Order `json:"order,omitempty"`
  9623  
  9624  	// ServerResponse contains the HTTP response code and headers from the server.
  9625  	googleapi.ServerResponse `json:"-"`
  9626  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  9627  	// include in API requests. By default, fields with empty or default values are
  9628  	// omitted from API requests. See
  9629  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9630  	// details.
  9631  	ForceSendFields []string `json:"-"`
  9632  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  9633  	// with the JSON null value. By default, fields with empty values are omitted
  9634  	// from API requests. See
  9635  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9636  	NullFields []string `json:"-"`
  9637  }
  9638  
  9639  func (s *OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
  9640  	type NoMethod OrdersGetByMerchantOrderIdResponse
  9641  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9642  }
  9643  
  9644  type OrdersGetTestOrderTemplateResponse struct {
  9645  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9646  	// "content#ordersGetTestOrderTemplateResponse".
  9647  	Kind string `json:"kind,omitempty"`
  9648  	// Template: The requested test order template.
  9649  	Template *TestOrder `json:"template,omitempty"`
  9650  
  9651  	// ServerResponse contains the HTTP response code and headers from the server.
  9652  	googleapi.ServerResponse `json:"-"`
  9653  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  9654  	// include in API requests. By default, fields with empty or default values are
  9655  	// omitted from API requests. See
  9656  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9657  	// details.
  9658  	ForceSendFields []string `json:"-"`
  9659  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  9660  	// with the JSON null value. By default, fields with empty values are omitted
  9661  	// from API requests. See
  9662  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9663  	NullFields []string `json:"-"`
  9664  }
  9665  
  9666  func (s *OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error) {
  9667  	type NoMethod OrdersGetTestOrderTemplateResponse
  9668  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9669  }
  9670  
  9671  type OrdersInStoreRefundLineItemRequest struct {
  9672  	// LineItemId: The ID of the line item to return. Either lineItemId or
  9673  	// productId is required.
  9674  	LineItemId string `json:"lineItemId,omitempty"`
  9675  	// OperationId: The ID of the operation. Unique across all operations for a
  9676  	// given order.
  9677  	OperationId string `json:"operationId,omitempty"`
  9678  	// PriceAmount: The amount to be refunded. This may be pre-tax or post-tax
  9679  	// depending on the location of the order. Required.
  9680  	PriceAmount *Price `json:"priceAmount,omitempty"`
  9681  	// ProductId: The ID of the product to return. This is the REST ID used in the
  9682  	// products service. Either lineItemId or productId is required.
  9683  	ProductId string `json:"productId,omitempty"`
  9684  	// Quantity: The quantity to return and refund.
  9685  	Quantity int64 `json:"quantity,omitempty"`
  9686  	// Reason: The reason for the return. Acceptable values are: -
  9687  	// "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" -
  9688  	// "deliveredTooLate" - "expiredItem" - "invalidCoupon" -
  9689  	// "malformedShippingAddress" - "other" - "productArrivedDamaged" -
  9690  	// "productNotAsDescribed" - "qualityNotAsExpected" -
  9691  	// "undeliverableShippingAddress" - "unsupportedPoBoxAddress" -
  9692  	// "wrongProductShipped"
  9693  	Reason string `json:"reason,omitempty"`
  9694  	// ReasonText: The explanation of the reason.
  9695  	ReasonText string `json:"reasonText,omitempty"`
  9696  	// TaxAmount: The amount of tax to be refunded. Required.
  9697  	TaxAmount *Price `json:"taxAmount,omitempty"`
  9698  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  9699  	// unconditionally include in API requests. By default, fields with empty or
  9700  	// default values are omitted from API requests. See
  9701  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9702  	// details.
  9703  	ForceSendFields []string `json:"-"`
  9704  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  9705  	// requests with the JSON null value. By default, fields with empty values are
  9706  	// omitted from API requests. See
  9707  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9708  	NullFields []string `json:"-"`
  9709  }
  9710  
  9711  func (s *OrdersInStoreRefundLineItemRequest) MarshalJSON() ([]byte, error) {
  9712  	type NoMethod OrdersInStoreRefundLineItemRequest
  9713  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9714  }
  9715  
  9716  type OrdersInStoreRefundLineItemResponse struct {
  9717  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9718  	// "duplicate" - "executed"
  9719  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9720  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9721  	// "content#ordersInStoreRefundLineItemResponse".
  9722  	Kind string `json:"kind,omitempty"`
  9723  
  9724  	// ServerResponse contains the HTTP response code and headers from the server.
  9725  	googleapi.ServerResponse `json:"-"`
  9726  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9727  	// unconditionally include in API requests. By default, fields with empty or
  9728  	// default values are omitted from API requests. See
  9729  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9730  	// details.
  9731  	ForceSendFields []string `json:"-"`
  9732  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9733  	// API requests with the JSON null value. By default, fields with empty values
  9734  	// are omitted from API requests. See
  9735  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9736  	NullFields []string `json:"-"`
  9737  }
  9738  
  9739  func (s *OrdersInStoreRefundLineItemResponse) MarshalJSON() ([]byte, error) {
  9740  	type NoMethod OrdersInStoreRefundLineItemResponse
  9741  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9742  }
  9743  
  9744  type OrdersListResponse struct {
  9745  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9746  	// "content#ordersListResponse".
  9747  	Kind string `json:"kind,omitempty"`
  9748  	// NextPageToken: The token for the retrieval of the next page of orders.
  9749  	NextPageToken string   `json:"nextPageToken,omitempty"`
  9750  	Resources     []*Order `json:"resources,omitempty"`
  9751  
  9752  	// ServerResponse contains the HTTP response code and headers from the server.
  9753  	googleapi.ServerResponse `json:"-"`
  9754  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
  9755  	// include in API requests. By default, fields with empty or default values are
  9756  	// omitted from API requests. See
  9757  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9758  	// details.
  9759  	ForceSendFields []string `json:"-"`
  9760  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
  9761  	// with the JSON null value. By default, fields with empty values are omitted
  9762  	// from API requests. See
  9763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9764  	NullFields []string `json:"-"`
  9765  }
  9766  
  9767  func (s *OrdersListResponse) MarshalJSON() ([]byte, error) {
  9768  	type NoMethod OrdersListResponse
  9769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9770  }
  9771  
  9772  type OrdersRefundItemRequest struct {
  9773  	// Items: The items that are refunded. Either Item or Shipping must be provided
  9774  	// in the request.
  9775  	Items []*OrdersCustomBatchRequestEntryRefundItemItem `json:"items,omitempty"`
  9776  	// OperationId: The ID of the operation. Unique across all operations for a
  9777  	// given order.
  9778  	OperationId string `json:"operationId,omitempty"`
  9779  	// Reason: The reason for the refund. Acceptable values are: -
  9780  	// "shippingCostAdjustment" - "priceAdjustment" - "taxAdjustment" -
  9781  	// "feeAdjustment" - "courtesyAdjustment" - "adjustment" -
  9782  	// "customerCancelled" - "noInventory" - "productNotAsDescribed" -
  9783  	// "undeliverableShippingAddress" - "wrongProductShipped" -
  9784  	// "lateShipmentCredit" - "deliveredLateByCarrier" -
  9785  	// "productArrivedDamaged"
  9786  	Reason string `json:"reason,omitempty"`
  9787  	// ReasonText: The explanation of the reason.
  9788  	ReasonText string `json:"reasonText,omitempty"`
  9789  	// Shipping: The refund on shipping. Optional, but either Item or Shipping must
  9790  	// be provided in the request.
  9791  	Shipping *OrdersCustomBatchRequestEntryRefundItemShipping `json:"shipping,omitempty"`
  9792  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
  9793  	// include in API requests. By default, fields with empty or default values are
  9794  	// omitted from API requests. See
  9795  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9796  	// details.
  9797  	ForceSendFields []string `json:"-"`
  9798  	// NullFields is a list of field names (e.g. "Items") to include in API
  9799  	// requests with the JSON null value. By default, fields with empty values are
  9800  	// omitted from API requests. See
  9801  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9802  	NullFields []string `json:"-"`
  9803  }
  9804  
  9805  func (s *OrdersRefundItemRequest) MarshalJSON() ([]byte, error) {
  9806  	type NoMethod OrdersRefundItemRequest
  9807  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9808  }
  9809  
  9810  type OrdersRefundItemResponse struct {
  9811  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9812  	// "duplicate" - "executed"
  9813  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9814  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9815  	// "content#ordersRefundItemResponse".
  9816  	Kind string `json:"kind,omitempty"`
  9817  
  9818  	// ServerResponse contains the HTTP response code and headers from the server.
  9819  	googleapi.ServerResponse `json:"-"`
  9820  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9821  	// unconditionally include in API requests. By default, fields with empty or
  9822  	// default values are omitted from API requests. See
  9823  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9824  	// details.
  9825  	ForceSendFields []string `json:"-"`
  9826  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9827  	// API requests with the JSON null value. By default, fields with empty values
  9828  	// are omitted from API requests. See
  9829  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9830  	NullFields []string `json:"-"`
  9831  }
  9832  
  9833  func (s *OrdersRefundItemResponse) MarshalJSON() ([]byte, error) {
  9834  	type NoMethod OrdersRefundItemResponse
  9835  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9836  }
  9837  
  9838  type OrdersRefundOrderRequest struct {
  9839  	// Amount: The amount that is refunded. If this is not the first refund for the
  9840  	// order, this should be the newly refunded amount.
  9841  	Amount *MonetaryAmount `json:"amount,omitempty"`
  9842  	// FullRefund: If true, the full order will be refunded, including shipping. If
  9843  	// this is true, amount shouldn't be provided and will be ignored.
  9844  	FullRefund bool `json:"fullRefund,omitempty"`
  9845  	// OperationId: The ID of the operation. Unique across all operations for a
  9846  	// given order.
  9847  	OperationId string `json:"operationId,omitempty"`
  9848  	// Reason: The reason for the refund. Acceptable values are: -
  9849  	// "courtesyAdjustment" - "other"
  9850  	Reason string `json:"reason,omitempty"`
  9851  	// ReasonText: The explanation of the reason.
  9852  	ReasonText string `json:"reasonText,omitempty"`
  9853  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
  9854  	// include in API requests. By default, fields with empty or default values are
  9855  	// omitted from API requests. See
  9856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9857  	// details.
  9858  	ForceSendFields []string `json:"-"`
  9859  	// NullFields is a list of field names (e.g. "Amount") to include in API
  9860  	// requests with the JSON null value. By default, fields with empty values are
  9861  	// omitted from API requests. See
  9862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9863  	NullFields []string `json:"-"`
  9864  }
  9865  
  9866  func (s *OrdersRefundOrderRequest) MarshalJSON() ([]byte, error) {
  9867  	type NoMethod OrdersRefundOrderRequest
  9868  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9869  }
  9870  
  9871  type OrdersRefundOrderResponse struct {
  9872  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9873  	// "duplicate" - "executed"
  9874  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9875  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9876  	// "content#ordersRefundOrderResponse".
  9877  	Kind string `json:"kind,omitempty"`
  9878  
  9879  	// ServerResponse contains the HTTP response code and headers from the server.
  9880  	googleapi.ServerResponse `json:"-"`
  9881  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9882  	// unconditionally include in API requests. By default, fields with empty or
  9883  	// default values are omitted from API requests. See
  9884  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9885  	// details.
  9886  	ForceSendFields []string `json:"-"`
  9887  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9888  	// API requests with the JSON null value. By default, fields with empty values
  9889  	// are omitted from API requests. See
  9890  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9891  	NullFields []string `json:"-"`
  9892  }
  9893  
  9894  func (s *OrdersRefundOrderResponse) MarshalJSON() ([]byte, error) {
  9895  	type NoMethod OrdersRefundOrderResponse
  9896  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9897  }
  9898  
  9899  type OrdersRejectReturnLineItemRequest struct {
  9900  	// LineItemId: The ID of the line item to return. Either lineItemId or
  9901  	// productId is required.
  9902  	LineItemId string `json:"lineItemId,omitempty"`
  9903  	// OperationId: The ID of the operation. Unique across all operations for a
  9904  	// given order.
  9905  	OperationId string `json:"operationId,omitempty"`
  9906  	// ProductId: The ID of the product to return. This is the REST ID used in the
  9907  	// products service. Either lineItemId or productId is required.
  9908  	ProductId string `json:"productId,omitempty"`
  9909  	// Quantity: The quantity to return and refund.
  9910  	Quantity int64 `json:"quantity,omitempty"`
  9911  	// Reason: The reason for the return. Acceptable values are: -
  9912  	// "damagedOrUsed" - "missingComponent" - "notEligible" - "other" -
  9913  	// "outOfReturnWindow"
  9914  	Reason string `json:"reason,omitempty"`
  9915  	// ReasonText: The explanation of the reason.
  9916  	ReasonText string `json:"reasonText,omitempty"`
  9917  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  9918  	// unconditionally include in API requests. By default, fields with empty or
  9919  	// default values are omitted from API requests. See
  9920  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9921  	// details.
  9922  	ForceSendFields []string `json:"-"`
  9923  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  9924  	// requests with the JSON null value. By default, fields with empty values are
  9925  	// omitted from API requests. See
  9926  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9927  	NullFields []string `json:"-"`
  9928  }
  9929  
  9930  func (s *OrdersRejectReturnLineItemRequest) MarshalJSON() ([]byte, error) {
  9931  	type NoMethod OrdersRejectReturnLineItemRequest
  9932  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9933  }
  9934  
  9935  type OrdersRejectReturnLineItemResponse struct {
  9936  	// ExecutionStatus: The status of the execution. Acceptable values are: -
  9937  	// "duplicate" - "executed"
  9938  	ExecutionStatus string `json:"executionStatus,omitempty"`
  9939  	// Kind: Identifies what kind of resource this is. Value: the fixed string
  9940  	// "content#ordersRejectReturnLineItemResponse".
  9941  	Kind string `json:"kind,omitempty"`
  9942  
  9943  	// ServerResponse contains the HTTP response code and headers from the server.
  9944  	googleapi.ServerResponse `json:"-"`
  9945  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
  9946  	// unconditionally include in API requests. By default, fields with empty or
  9947  	// default values are omitted from API requests. See
  9948  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9949  	// details.
  9950  	ForceSendFields []string `json:"-"`
  9951  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
  9952  	// API requests with the JSON null value. By default, fields with empty values
  9953  	// are omitted from API requests. See
  9954  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9955  	NullFields []string `json:"-"`
  9956  }
  9957  
  9958  func (s *OrdersRejectReturnLineItemResponse) MarshalJSON() ([]byte, error) {
  9959  	type NoMethod OrdersRejectReturnLineItemResponse
  9960  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9961  }
  9962  
  9963  type OrdersReturnRefundLineItemRequest struct {
  9964  	// LineItemId: The ID of the line item to return. Either lineItemId or
  9965  	// productId is required.
  9966  	LineItemId string `json:"lineItemId,omitempty"`
  9967  	// OperationId: The ID of the operation. Unique across all operations for a
  9968  	// given order.
  9969  	OperationId string `json:"operationId,omitempty"`
  9970  	// PriceAmount: The amount to be refunded. This may be pre-tax or post-tax
  9971  	// depending on the location of the order. If omitted, refundless return is
  9972  	// assumed.
  9973  	PriceAmount *Price `json:"priceAmount,omitempty"`
  9974  	// ProductId: The ID of the product to return. This is the REST ID used in the
  9975  	// products service. Either lineItemId or productId is required.
  9976  	ProductId string `json:"productId,omitempty"`
  9977  	// Quantity: The quantity to return and refund. Quantity is required.
  9978  	Quantity int64 `json:"quantity,omitempty"`
  9979  	// Reason: The reason for the return. Acceptable values are: -
  9980  	// "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" -
  9981  	// "deliveredTooLate" - "expiredItem" - "invalidCoupon" -
  9982  	// "malformedShippingAddress" - "other" - "productArrivedDamaged" -
  9983  	// "productNotAsDescribed" - "qualityNotAsExpected" -
  9984  	// "undeliverableShippingAddress" - "unsupportedPoBoxAddress" -
  9985  	// "wrongProductShipped"
  9986  	Reason string `json:"reason,omitempty"`
  9987  	// ReasonText: The explanation of the reason.
  9988  	ReasonText string `json:"reasonText,omitempty"`
  9989  	// TaxAmount: The amount of tax to be refunded. Optional, but if filled, then
  9990  	// priceAmount must be set. Calculated automatically if not provided.
  9991  	TaxAmount *Price `json:"taxAmount,omitempty"`
  9992  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
  9993  	// unconditionally include in API requests. By default, fields with empty or
  9994  	// default values are omitted from API requests. See
  9995  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9996  	// details.
  9997  	ForceSendFields []string `json:"-"`
  9998  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
  9999  	// requests with the JSON null value. By default, fields with empty values are
 10000  	// omitted from API requests. See
 10001  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10002  	NullFields []string `json:"-"`
 10003  }
 10004  
 10005  func (s *OrdersReturnRefundLineItemRequest) MarshalJSON() ([]byte, error) {
 10006  	type NoMethod OrdersReturnRefundLineItemRequest
 10007  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10008  }
 10009  
 10010  type OrdersReturnRefundLineItemResponse struct {
 10011  	// ExecutionStatus: The status of the execution. Acceptable values are: -
 10012  	// "duplicate" - "executed"
 10013  	ExecutionStatus string `json:"executionStatus,omitempty"`
 10014  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10015  	// "content#ordersReturnRefundLineItemResponse".
 10016  	Kind string `json:"kind,omitempty"`
 10017  
 10018  	// ServerResponse contains the HTTP response code and headers from the server.
 10019  	googleapi.ServerResponse `json:"-"`
 10020  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
 10021  	// unconditionally include in API requests. By default, fields with empty or
 10022  	// default values are omitted from API requests. See
 10023  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10024  	// details.
 10025  	ForceSendFields []string `json:"-"`
 10026  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
 10027  	// API requests with the JSON null value. By default, fields with empty values
 10028  	// are omitted from API requests. See
 10029  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10030  	NullFields []string `json:"-"`
 10031  }
 10032  
 10033  func (s *OrdersReturnRefundLineItemResponse) MarshalJSON() ([]byte, error) {
 10034  	type NoMethod OrdersReturnRefundLineItemResponse
 10035  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10036  }
 10037  
 10038  type OrdersSetLineItemMetadataRequest struct {
 10039  	Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`
 10040  	// LineItemId: The ID of the line item to set metadata. Either lineItemId or
 10041  	// productId is required.
 10042  	LineItemId string `json:"lineItemId,omitempty"`
 10043  	// OperationId: The ID of the operation. Unique across all operations for a
 10044  	// given order.
 10045  	OperationId string `json:"operationId,omitempty"`
 10046  	// ProductId: The ID of the product to set metadata. This is the REST ID used
 10047  	// in the products service. Either lineItemId or productId is required.
 10048  	ProductId string `json:"productId,omitempty"`
 10049  	// ForceSendFields is a list of field names (e.g. "Annotations") to
 10050  	// unconditionally include in API requests. By default, fields with empty or
 10051  	// default values are omitted from API requests. See
 10052  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10053  	// details.
 10054  	ForceSendFields []string `json:"-"`
 10055  	// NullFields is a list of field names (e.g. "Annotations") to include in API
 10056  	// requests with the JSON null value. By default, fields with empty values are
 10057  	// omitted from API requests. See
 10058  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10059  	NullFields []string `json:"-"`
 10060  }
 10061  
 10062  func (s *OrdersSetLineItemMetadataRequest) MarshalJSON() ([]byte, error) {
 10063  	type NoMethod OrdersSetLineItemMetadataRequest
 10064  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10065  }
 10066  
 10067  type OrdersSetLineItemMetadataResponse struct {
 10068  	// ExecutionStatus: The status of the execution. Acceptable values are: -
 10069  	// "duplicate" - "executed"
 10070  	ExecutionStatus string `json:"executionStatus,omitempty"`
 10071  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10072  	// "content#ordersSetLineItemMetadataResponse".
 10073  	Kind string `json:"kind,omitempty"`
 10074  
 10075  	// ServerResponse contains the HTTP response code and headers from the server.
 10076  	googleapi.ServerResponse `json:"-"`
 10077  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
 10078  	// unconditionally include in API requests. By default, fields with empty or
 10079  	// default values are omitted from API requests. See
 10080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10081  	// details.
 10082  	ForceSendFields []string `json:"-"`
 10083  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
 10084  	// API requests with the JSON null value. By default, fields with empty values
 10085  	// are omitted from API requests. See
 10086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10087  	NullFields []string `json:"-"`
 10088  }
 10089  
 10090  func (s *OrdersSetLineItemMetadataResponse) MarshalJSON() ([]byte, error) {
 10091  	type NoMethod OrdersSetLineItemMetadataResponse
 10092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10093  }
 10094  
 10095  type OrdersShipLineItemsRequest struct {
 10096  	// LineItems: Line items to ship.
 10097  	LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"`
 10098  	// OperationId: The ID of the operation. Unique across all operations for a
 10099  	// given order.
 10100  	OperationId string `json:"operationId,omitempty"`
 10101  	// ShipmentGroupId: ID of the shipment group. Required for orders that use the
 10102  	// orderinvoices service.
 10103  	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
 10104  	// ShipmentInfos: Shipment information. This field is repeated because a single
 10105  	// line item can be shipped in several packages (and have several tracking
 10106  	// IDs).
 10107  	ShipmentInfos []*OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo `json:"shipmentInfos,omitempty"`
 10108  	// ForceSendFields is a list of field names (e.g. "LineItems") to
 10109  	// unconditionally include in API requests. By default, fields with empty or
 10110  	// default values are omitted from API requests. See
 10111  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10112  	// details.
 10113  	ForceSendFields []string `json:"-"`
 10114  	// NullFields is a list of field names (e.g. "LineItems") to include in API
 10115  	// requests with the JSON null value. By default, fields with empty values are
 10116  	// omitted from API requests. See
 10117  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10118  	NullFields []string `json:"-"`
 10119  }
 10120  
 10121  func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error) {
 10122  	type NoMethod OrdersShipLineItemsRequest
 10123  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10124  }
 10125  
 10126  type OrdersShipLineItemsResponse struct {
 10127  	// ExecutionStatus: The status of the execution. Acceptable values are: -
 10128  	// "duplicate" - "executed"
 10129  	ExecutionStatus string `json:"executionStatus,omitempty"`
 10130  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10131  	// "content#ordersShipLineItemsResponse".
 10132  	Kind string `json:"kind,omitempty"`
 10133  
 10134  	// ServerResponse contains the HTTP response code and headers from the server.
 10135  	googleapi.ServerResponse `json:"-"`
 10136  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
 10137  	// unconditionally include in API requests. By default, fields with empty or
 10138  	// default values are omitted from API requests. See
 10139  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10140  	// details.
 10141  	ForceSendFields []string `json:"-"`
 10142  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
 10143  	// API requests with the JSON null value. By default, fields with empty values
 10144  	// are omitted from API requests. See
 10145  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10146  	NullFields []string `json:"-"`
 10147  }
 10148  
 10149  func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error) {
 10150  	type NoMethod OrdersShipLineItemsResponse
 10151  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10152  }
 10153  
 10154  type OrdersUpdateLineItemShippingDetailsRequest struct {
 10155  	// DeliverByDate: Updated delivery by date, in ISO 8601 format. If not
 10156  	// specified only ship by date is updated. Provided date should be within 1
 10157  	// year timeframe and can't be a date in the past.
 10158  	DeliverByDate string `json:"deliverByDate,omitempty"`
 10159  	// LineItemId: The ID of the line item to set metadata. Either lineItemId or
 10160  	// productId is required.
 10161  	LineItemId string `json:"lineItemId,omitempty"`
 10162  	// OperationId: The ID of the operation. Unique across all operations for a
 10163  	// given order.
 10164  	OperationId string `json:"operationId,omitempty"`
 10165  	// ProductId: The ID of the product to set metadata. This is the REST ID used
 10166  	// in the products service. Either lineItemId or productId is required.
 10167  	ProductId string `json:"productId,omitempty"`
 10168  	// ShipByDate: Updated ship by date, in ISO 8601 format. If not specified only
 10169  	// deliver by date is updated. Provided date should be within 1 year timeframe
 10170  	// and can't be a date in the past.
 10171  	ShipByDate string `json:"shipByDate,omitempty"`
 10172  	// ForceSendFields is a list of field names (e.g. "DeliverByDate") to
 10173  	// unconditionally include in API requests. By default, fields with empty or
 10174  	// default values are omitted from API requests. See
 10175  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10176  	// details.
 10177  	ForceSendFields []string `json:"-"`
 10178  	// NullFields is a list of field names (e.g. "DeliverByDate") to include in API
 10179  	// requests with the JSON null value. By default, fields with empty values are
 10180  	// omitted from API requests. See
 10181  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10182  	NullFields []string `json:"-"`
 10183  }
 10184  
 10185  func (s *OrdersUpdateLineItemShippingDetailsRequest) MarshalJSON() ([]byte, error) {
 10186  	type NoMethod OrdersUpdateLineItemShippingDetailsRequest
 10187  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10188  }
 10189  
 10190  type OrdersUpdateLineItemShippingDetailsResponse struct {
 10191  	// ExecutionStatus: The status of the execution. Acceptable values are: -
 10192  	// "duplicate" - "executed"
 10193  	ExecutionStatus string `json:"executionStatus,omitempty"`
 10194  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10195  	// "content#ordersUpdateLineItemShippingDetailsResponse".
 10196  	Kind string `json:"kind,omitempty"`
 10197  
 10198  	// ServerResponse contains the HTTP response code and headers from the server.
 10199  	googleapi.ServerResponse `json:"-"`
 10200  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
 10201  	// unconditionally include in API requests. By default, fields with empty or
 10202  	// default values are omitted from API requests. See
 10203  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10204  	// details.
 10205  	ForceSendFields []string `json:"-"`
 10206  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
 10207  	// API requests with the JSON null value. By default, fields with empty values
 10208  	// are omitted from API requests. See
 10209  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10210  	NullFields []string `json:"-"`
 10211  }
 10212  
 10213  func (s *OrdersUpdateLineItemShippingDetailsResponse) MarshalJSON() ([]byte, error) {
 10214  	type NoMethod OrdersUpdateLineItemShippingDetailsResponse
 10215  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10216  }
 10217  
 10218  type OrdersUpdateMerchantOrderIdRequest struct {
 10219  	// MerchantOrderId: The merchant order id to be assigned to the order. Must be
 10220  	// unique per merchant.
 10221  	MerchantOrderId string `json:"merchantOrderId,omitempty"`
 10222  	// OperationId: The ID of the operation. Unique across all operations for a
 10223  	// given order.
 10224  	OperationId string `json:"operationId,omitempty"`
 10225  	// ForceSendFields is a list of field names (e.g. "MerchantOrderId") to
 10226  	// unconditionally include in API requests. By default, fields with empty or
 10227  	// default values are omitted from API requests. See
 10228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10229  	// details.
 10230  	ForceSendFields []string `json:"-"`
 10231  	// NullFields is a list of field names (e.g. "MerchantOrderId") to include in
 10232  	// API requests with the JSON null value. By default, fields with empty values
 10233  	// are omitted from API requests. See
 10234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10235  	NullFields []string `json:"-"`
 10236  }
 10237  
 10238  func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error) {
 10239  	type NoMethod OrdersUpdateMerchantOrderIdRequest
 10240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10241  }
 10242  
 10243  type OrdersUpdateMerchantOrderIdResponse struct {
 10244  	// ExecutionStatus: The status of the execution. Acceptable values are: -
 10245  	// "duplicate" - "executed"
 10246  	ExecutionStatus string `json:"executionStatus,omitempty"`
 10247  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10248  	// "content#ordersUpdateMerchantOrderIdResponse".
 10249  	Kind string `json:"kind,omitempty"`
 10250  
 10251  	// ServerResponse contains the HTTP response code and headers from the server.
 10252  	googleapi.ServerResponse `json:"-"`
 10253  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
 10254  	// unconditionally include in API requests. By default, fields with empty or
 10255  	// default values are omitted from API requests. See
 10256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10257  	// details.
 10258  	ForceSendFields []string `json:"-"`
 10259  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
 10260  	// API requests with the JSON null value. By default, fields with empty values
 10261  	// are omitted from API requests. See
 10262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10263  	NullFields []string `json:"-"`
 10264  }
 10265  
 10266  func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error) {
 10267  	type NoMethod OrdersUpdateMerchantOrderIdResponse
 10268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10269  }
 10270  
 10271  type OrdersUpdateShipmentRequest struct {
 10272  	// Carrier: The carrier handling the shipment. Not updated if missing. See
 10273  	// `shipments[].carrier` in the Orders resource representation for a list of
 10274  	// acceptable values.
 10275  	Carrier string `json:"carrier,omitempty"`
 10276  	// DeliveryDate: Date on which the shipment has been delivered, in ISO 8601
 10277  	// format. Optional and can be provided only if `status` is `delivered`.
 10278  	DeliveryDate string `json:"deliveryDate,omitempty"`
 10279  	// LastPickupDate: Date after which the pickup will expire, in ISO 8601 format.
 10280  	// Required only when order is buy-online-pickup-in-store(BOPIS) and `status`
 10281  	// is `ready for pickup`.
 10282  	LastPickupDate string `json:"lastPickupDate,omitempty"`
 10283  	// OperationId: The ID of the operation. Unique across all operations for a
 10284  	// given order.
 10285  	OperationId string `json:"operationId,omitempty"`
 10286  	// ReadyPickupDate: Date on which the shipment has been ready for pickup, in
 10287  	// ISO 8601 format. Optional and can be provided only if `status` is `ready for
 10288  	// pickup`.
 10289  	ReadyPickupDate string `json:"readyPickupDate,omitempty"`
 10290  	// ScheduledDeliveryDetails: Delivery details of the shipment if scheduling is
 10291  	// needed.
 10292  	ScheduledDeliveryDetails *OrdersCustomBatchRequestEntryUpdateShipmentScheduledDeliveryDetails `json:"scheduledDeliveryDetails,omitempty"`
 10293  	// ShipmentId: The ID of the shipment.
 10294  	ShipmentId string `json:"shipmentId,omitempty"`
 10295  	// Status: New status for the shipment. Not updated if missing. Acceptable
 10296  	// values are: - "delivered" - "undeliverable" - "readyForPickup"
 10297  	Status string `json:"status,omitempty"`
 10298  	// TrackingId: The tracking ID for the shipment. Not updated if missing.
 10299  	TrackingId string `json:"trackingId,omitempty"`
 10300  	// UndeliveredDate: Date on which the shipment has been undeliverable, in ISO
 10301  	// 8601 format. Optional and can be provided only if `status` is
 10302  	// `undeliverable`.
 10303  	UndeliveredDate string `json:"undeliveredDate,omitempty"`
 10304  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
 10305  	// include in API requests. By default, fields with empty or default values are
 10306  	// omitted from API requests. See
 10307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10308  	// details.
 10309  	ForceSendFields []string `json:"-"`
 10310  	// NullFields is a list of field names (e.g. "Carrier") to include in API
 10311  	// requests with the JSON null value. By default, fields with empty values are
 10312  	// omitted from API requests. See
 10313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10314  	NullFields []string `json:"-"`
 10315  }
 10316  
 10317  func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error) {
 10318  	type NoMethod OrdersUpdateShipmentRequest
 10319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10320  }
 10321  
 10322  type OrdersUpdateShipmentResponse struct {
 10323  	// ExecutionStatus: The status of the execution. Acceptable values are: -
 10324  	// "duplicate" - "executed"
 10325  	ExecutionStatus string `json:"executionStatus,omitempty"`
 10326  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10327  	// "content#ordersUpdateShipmentResponse".
 10328  	Kind string `json:"kind,omitempty"`
 10329  
 10330  	// ServerResponse contains the HTTP response code and headers from the server.
 10331  	googleapi.ServerResponse `json:"-"`
 10332  	// ForceSendFields is a list of field names (e.g. "ExecutionStatus") to
 10333  	// unconditionally include in API requests. By default, fields with empty or
 10334  	// default values are omitted from API requests. See
 10335  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10336  	// details.
 10337  	ForceSendFields []string `json:"-"`
 10338  	// NullFields is a list of field names (e.g. "ExecutionStatus") to include in
 10339  	// API requests with the JSON null value. By default, fields with empty values
 10340  	// are omitted from API requests. See
 10341  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10342  	NullFields []string `json:"-"`
 10343  }
 10344  
 10345  func (s *OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error) {
 10346  	type NoMethod OrdersUpdateShipmentResponse
 10347  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10348  }
 10349  
 10350  // PauseBuyOnGoogleProgramRequest: Request message for the PauseProgram method.
 10351  type PauseBuyOnGoogleProgramRequest struct {
 10352  }
 10353  
 10354  // PaymentServiceProviderLinkInfo: Additional information required for
 10355  // PAYMENT_SERVICE_PROVIDER link type.
 10356  type PaymentServiceProviderLinkInfo struct {
 10357  	// ExternalAccountBusinessCountry: The business country of the merchant account
 10358  	// as identified by the third party service provider.
 10359  	ExternalAccountBusinessCountry string `json:"externalAccountBusinessCountry,omitempty"`
 10360  	// ExternalAccountId: The id used by the third party service provider to
 10361  	// identify the merchant.
 10362  	ExternalAccountId string `json:"externalAccountId,omitempty"`
 10363  	// ForceSendFields is a list of field names (e.g.
 10364  	// "ExternalAccountBusinessCountry") to unconditionally include in API
 10365  	// requests. By default, fields with empty or default values are omitted from
 10366  	// API requests. See
 10367  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10368  	// details.
 10369  	ForceSendFields []string `json:"-"`
 10370  	// NullFields is a list of field names (e.g. "ExternalAccountBusinessCountry")
 10371  	// to include in API requests with the JSON null value. By default, fields with
 10372  	// empty values are omitted from API requests. See
 10373  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10374  	NullFields []string `json:"-"`
 10375  }
 10376  
 10377  func (s *PaymentServiceProviderLinkInfo) MarshalJSON() ([]byte, error) {
 10378  	type NoMethod PaymentServiceProviderLinkInfo
 10379  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10380  }
 10381  
 10382  type PickupCarrierService struct {
 10383  	// CarrierName: The name of the pickup carrier (for example, "UPS").
 10384  	// Required.
 10385  	CarrierName string `json:"carrierName,omitempty"`
 10386  	// ServiceName: The name of the pickup service (for example, "Access point").
 10387  	// Required.
 10388  	ServiceName string `json:"serviceName,omitempty"`
 10389  	// ForceSendFields is a list of field names (e.g. "CarrierName") to
 10390  	// unconditionally include in API requests. By default, fields with empty or
 10391  	// default values are omitted from API requests. See
 10392  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10393  	// details.
 10394  	ForceSendFields []string `json:"-"`
 10395  	// NullFields is a list of field names (e.g. "CarrierName") to include in API
 10396  	// requests with the JSON null value. By default, fields with empty values are
 10397  	// omitted from API requests. See
 10398  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10399  	NullFields []string `json:"-"`
 10400  }
 10401  
 10402  func (s *PickupCarrierService) MarshalJSON() ([]byte, error) {
 10403  	type NoMethod PickupCarrierService
 10404  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10405  }
 10406  
 10407  type PickupServicesPickupService struct {
 10408  	// CarrierName: The name of the carrier (for example, "UPS"). Always present.
 10409  	CarrierName string `json:"carrierName,omitempty"`
 10410  	// Country: The CLDR country code of the carrier (for example, "US"). Always
 10411  	// present.
 10412  	Country string `json:"country,omitempty"`
 10413  	// ServiceName: The name of the pickup service (for example, "Access point").
 10414  	// Always present.
 10415  	ServiceName string `json:"serviceName,omitempty"`
 10416  	// ForceSendFields is a list of field names (e.g. "CarrierName") to
 10417  	// unconditionally include in API requests. By default, fields with empty or
 10418  	// default values are omitted from API requests. See
 10419  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10420  	// details.
 10421  	ForceSendFields []string `json:"-"`
 10422  	// NullFields is a list of field names (e.g. "CarrierName") to include in API
 10423  	// requests with the JSON null value. By default, fields with empty values are
 10424  	// omitted from API requests. See
 10425  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10426  	NullFields []string `json:"-"`
 10427  }
 10428  
 10429  func (s *PickupServicesPickupService) MarshalJSON() ([]byte, error) {
 10430  	type NoMethod PickupServicesPickupService
 10431  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10432  }
 10433  
 10434  type PosCustomBatchRequest struct {
 10435  	// Entries: The request entries to be processed in the batch.
 10436  	Entries []*PosCustomBatchRequestEntry `json:"entries,omitempty"`
 10437  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 10438  	// include in API requests. By default, fields with empty or default values are
 10439  	// omitted from API requests. See
 10440  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10441  	// details.
 10442  	ForceSendFields []string `json:"-"`
 10443  	// NullFields is a list of field names (e.g. "Entries") to include in API
 10444  	// requests with the JSON null value. By default, fields with empty values are
 10445  	// omitted from API requests. See
 10446  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10447  	NullFields []string `json:"-"`
 10448  }
 10449  
 10450  func (s *PosCustomBatchRequest) MarshalJSON() ([]byte, error) {
 10451  	type NoMethod PosCustomBatchRequest
 10452  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10453  }
 10454  
 10455  type PosCustomBatchRequestEntry struct {
 10456  	// BatchId: An entry ID, unique within the batch request.
 10457  	BatchId int64 `json:"batchId,omitempty"`
 10458  	// Inventory: The inventory to submit. This should be set only if the method is
 10459  	// `inventory`.
 10460  	Inventory *PosInventory `json:"inventory,omitempty"`
 10461  	// MerchantId: The ID of the POS data provider.
 10462  	MerchantId uint64 `json:"merchantId,omitempty,string"`
 10463  	// Method: The method of the batch entry. Acceptable values are: - "delete" -
 10464  	// "get" - "insert" - "inventory" - "sale"
 10465  	Method string `json:"method,omitempty"`
 10466  	// Sale: The sale information to submit. This should be set only if the method
 10467  	// is `sale`.
 10468  	Sale *PosSale `json:"sale,omitempty"`
 10469  	// Store: The store information to submit. This should be set only if the
 10470  	// method is `insert`.
 10471  	Store *PosStore `json:"store,omitempty"`
 10472  	// StoreCode: The store code. This should be set only if the method is `delete`
 10473  	// or `get`.
 10474  	StoreCode string `json:"storeCode,omitempty"`
 10475  	// TargetMerchantId: The ID of the account for which to get/submit data.
 10476  	TargetMerchantId uint64 `json:"targetMerchantId,omitempty,string"`
 10477  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 10478  	// include in API requests. By default, fields with empty or default values are
 10479  	// omitted from API requests. See
 10480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10481  	// details.
 10482  	ForceSendFields []string `json:"-"`
 10483  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 10484  	// requests with the JSON null value. By default, fields with empty values are
 10485  	// omitted from API requests. See
 10486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10487  	NullFields []string `json:"-"`
 10488  }
 10489  
 10490  func (s *PosCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
 10491  	type NoMethod PosCustomBatchRequestEntry
 10492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10493  }
 10494  
 10495  type PosCustomBatchResponse struct {
 10496  	// Entries: The result of the execution of the batch requests.
 10497  	Entries []*PosCustomBatchResponseEntry `json:"entries,omitempty"`
 10498  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10499  	// "content#posCustomBatchResponse".
 10500  	Kind string `json:"kind,omitempty"`
 10501  
 10502  	// ServerResponse contains the HTTP response code and headers from the server.
 10503  	googleapi.ServerResponse `json:"-"`
 10504  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 10505  	// include in API requests. By default, fields with empty or default values are
 10506  	// omitted from API requests. See
 10507  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10508  	// details.
 10509  	ForceSendFields []string `json:"-"`
 10510  	// NullFields is a list of field names (e.g. "Entries") to include in API
 10511  	// requests with the JSON null value. By default, fields with empty values are
 10512  	// omitted from API requests. See
 10513  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10514  	NullFields []string `json:"-"`
 10515  }
 10516  
 10517  func (s *PosCustomBatchResponse) MarshalJSON() ([]byte, error) {
 10518  	type NoMethod PosCustomBatchResponse
 10519  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10520  }
 10521  
 10522  type PosCustomBatchResponseEntry struct {
 10523  	// BatchId: The ID of the request entry to which this entry responds.
 10524  	BatchId int64 `json:"batchId,omitempty"`
 10525  	// Errors: A list of errors defined if, and only if, the request failed.
 10526  	Errors *Errors `json:"errors,omitempty"`
 10527  	// Inventory: The updated inventory information.
 10528  	Inventory *PosInventory `json:"inventory,omitempty"`
 10529  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10530  	// "content#posCustomBatchResponseEntry"
 10531  	Kind string `json:"kind,omitempty"`
 10532  	// Sale: The updated sale information.
 10533  	Sale *PosSale `json:"sale,omitempty"`
 10534  	// Store: The retrieved or updated store information.
 10535  	Store *PosStore `json:"store,omitempty"`
 10536  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 10537  	// include in API requests. By default, fields with empty or default values are
 10538  	// omitted from API requests. See
 10539  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10540  	// details.
 10541  	ForceSendFields []string `json:"-"`
 10542  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 10543  	// requests with the JSON null value. By default, fields with empty values are
 10544  	// omitted from API requests. See
 10545  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10546  	NullFields []string `json:"-"`
 10547  }
 10548  
 10549  func (s *PosCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
 10550  	type NoMethod PosCustomBatchResponseEntry
 10551  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10552  }
 10553  
 10554  type PosDataProviders struct {
 10555  	// Country: Country code.
 10556  	Country string `json:"country,omitempty"`
 10557  	// PosDataProviders: A list of POS data providers.
 10558  	PosDataProviders []*PosDataProvidersPosDataProvider `json:"posDataProviders,omitempty"`
 10559  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
 10560  	// include in API requests. By default, fields with empty or default values are
 10561  	// omitted from API requests. See
 10562  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10563  	// details.
 10564  	ForceSendFields []string `json:"-"`
 10565  	// NullFields is a list of field names (e.g. "Country") to include in API
 10566  	// requests with the JSON null value. By default, fields with empty values are
 10567  	// omitted from API requests. See
 10568  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10569  	NullFields []string `json:"-"`
 10570  }
 10571  
 10572  func (s *PosDataProviders) MarshalJSON() ([]byte, error) {
 10573  	type NoMethod PosDataProviders
 10574  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10575  }
 10576  
 10577  type PosDataProvidersPosDataProvider struct {
 10578  	// DisplayName: The display name of Pos data Provider.
 10579  	DisplayName string `json:"displayName,omitempty"`
 10580  	// FullName: The full name of this POS data Provider.
 10581  	FullName string `json:"fullName,omitempty"`
 10582  	// ProviderId: The ID of the account.
 10583  	ProviderId uint64 `json:"providerId,omitempty,string"`
 10584  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 10585  	// unconditionally include in API requests. By default, fields with empty or
 10586  	// default values are omitted from API requests. See
 10587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10588  	// details.
 10589  	ForceSendFields []string `json:"-"`
 10590  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 10591  	// requests with the JSON null value. By default, fields with empty values are
 10592  	// omitted from API requests. See
 10593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10594  	NullFields []string `json:"-"`
 10595  }
 10596  
 10597  func (s *PosDataProvidersPosDataProvider) MarshalJSON() ([]byte, error) {
 10598  	type NoMethod PosDataProvidersPosDataProvider
 10599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10600  }
 10601  
 10602  // PosInventory: The absolute quantity of an item available at the given store.
 10603  type PosInventory struct {
 10604  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 10605  	// item.
 10606  	ContentLanguage string `json:"contentLanguage,omitempty"`
 10607  	// Gtin: Global Trade Item Number.
 10608  	Gtin string `json:"gtin,omitempty"`
 10609  	// ItemId: Required. A unique identifier for the item.
 10610  	ItemId string `json:"itemId,omitempty"`
 10611  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10612  	// "content#posInventory"
 10613  	Kind string `json:"kind,omitempty"`
 10614  	// PickupMethod: Optional. Supported pickup method for this offer. Unless the
 10615  	// value is "not supported", this field must be submitted together with
 10616  	// `pickupSla`. For accepted attribute values, see the local product inventory
 10617  	// feed specification (https://support.google.com/merchants/answer/3061342).
 10618  	PickupMethod string `json:"pickupMethod,omitempty"`
 10619  	// PickupSla: Optional. Expected date that an order will be ready for pickup
 10620  	// relative to the order date. Must be submitted together with `pickupMethod`.
 10621  	// For accepted attribute values, see the local product inventory feed
 10622  	// specification (https://support.google.com/merchants/answer/3061342).
 10623  	PickupSla string `json:"pickupSla,omitempty"`
 10624  	// Price: Required. The current price of the item.
 10625  	Price *Price `json:"price,omitempty"`
 10626  	// Quantity: Required. The available quantity of the item.
 10627  	Quantity int64 `json:"quantity,omitempty,string"`
 10628  	// StoreCode: Required. The identifier of the merchant's store. Either a
 10629  	// `storeCode` inserted through the API or the code of the store in a Business
 10630  	// Profile.
 10631  	StoreCode string `json:"storeCode,omitempty"`
 10632  	// TargetCountry: Required. The CLDR territory code for the item.
 10633  	TargetCountry string `json:"targetCountry,omitempty"`
 10634  	// Timestamp: Required. The inventory timestamp, in ISO 8601 format.
 10635  	Timestamp string `json:"timestamp,omitempty"`
 10636  	// ForceSendFields is a list of field names (e.g. "ContentLanguage") to
 10637  	// unconditionally include in API requests. By default, fields with empty or
 10638  	// default values are omitted from API requests. See
 10639  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10640  	// details.
 10641  	ForceSendFields []string `json:"-"`
 10642  	// NullFields is a list of field names (e.g. "ContentLanguage") to include in
 10643  	// API requests with the JSON null value. By default, fields with empty values
 10644  	// are omitted from API requests. See
 10645  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10646  	NullFields []string `json:"-"`
 10647  }
 10648  
 10649  func (s *PosInventory) MarshalJSON() ([]byte, error) {
 10650  	type NoMethod PosInventory
 10651  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10652  }
 10653  
 10654  type PosInventoryRequest struct {
 10655  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 10656  	// item.
 10657  	ContentLanguage string `json:"contentLanguage,omitempty"`
 10658  	// Gtin: Global Trade Item Number.
 10659  	Gtin string `json:"gtin,omitempty"`
 10660  	// ItemId: Required. A unique identifier for the item.
 10661  	ItemId string `json:"itemId,omitempty"`
 10662  	// PickupMethod: Optional. Supported pickup method for this offer. Unless the
 10663  	// value is "not supported", this field must be submitted together with
 10664  	// `pickupSla`. For accepted attribute values, see the local product inventory
 10665  	// feed specification (https://support.google.com/merchants/answer/3061342).
 10666  	PickupMethod string `json:"pickupMethod,omitempty"`
 10667  	// PickupSla: Optional. Expected date that an order will be ready for pickup
 10668  	// relative to the order date. Must be submitted together with `pickupMethod`.
 10669  	// For accepted attribute values, see the local product inventory feed
 10670  	// specification (https://support.google.com/merchants/answer/3061342).
 10671  	PickupSla string `json:"pickupSla,omitempty"`
 10672  	// Price: Required. The current price of the item.
 10673  	Price *Price `json:"price,omitempty"`
 10674  	// Quantity: Required. The available quantity of the item.
 10675  	Quantity int64 `json:"quantity,omitempty,string"`
 10676  	// StoreCode: Required. The identifier of the merchant's store. Either a
 10677  	// `storeCode` inserted through the API or the code of the store in a Business
 10678  	// Profile.
 10679  	StoreCode string `json:"storeCode,omitempty"`
 10680  	// TargetCountry: Required. The CLDR territory code for the item.
 10681  	TargetCountry string `json:"targetCountry,omitempty"`
 10682  	// Timestamp: Required. The inventory timestamp, in ISO 8601 format.
 10683  	Timestamp string `json:"timestamp,omitempty"`
 10684  	// ForceSendFields is a list of field names (e.g. "ContentLanguage") to
 10685  	// unconditionally include in API requests. By default, fields with empty or
 10686  	// default values are omitted from API requests. See
 10687  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10688  	// details.
 10689  	ForceSendFields []string `json:"-"`
 10690  	// NullFields is a list of field names (e.g. "ContentLanguage") to include in
 10691  	// API requests with the JSON null value. By default, fields with empty values
 10692  	// are omitted from API requests. See
 10693  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10694  	NullFields []string `json:"-"`
 10695  }
 10696  
 10697  func (s *PosInventoryRequest) MarshalJSON() ([]byte, error) {
 10698  	type NoMethod PosInventoryRequest
 10699  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10700  }
 10701  
 10702  type PosInventoryResponse struct {
 10703  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 10704  	// item.
 10705  	ContentLanguage string `json:"contentLanguage,omitempty"`
 10706  	// Gtin: Global Trade Item Number.
 10707  	Gtin string `json:"gtin,omitempty"`
 10708  	// ItemId: Required. A unique identifier for the item.
 10709  	ItemId string `json:"itemId,omitempty"`
 10710  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10711  	// "content#posInventoryResponse".
 10712  	Kind string `json:"kind,omitempty"`
 10713  	// PickupMethod: Optional. Supported pickup method for this offer. Unless the
 10714  	// value is "not supported", this field must be submitted together with
 10715  	// `pickupSla`. For accepted attribute values, see the local product inventory
 10716  	// feed specification (https://support.google.com/merchants/answer/3061342).
 10717  	PickupMethod string `json:"pickupMethod,omitempty"`
 10718  	// PickupSla: Optional. Expected date that an order will be ready for pickup
 10719  	// relative to the order date. Must be submitted together with `pickupMethod`.
 10720  	// For accepted attribute values, see the local product inventory feed
 10721  	// specification (https://support.google.com/merchants/answer/3061342).
 10722  	PickupSla string `json:"pickupSla,omitempty"`
 10723  	// Price: Required. The current price of the item.
 10724  	Price *Price `json:"price,omitempty"`
 10725  	// Quantity: Required. The available quantity of the item.
 10726  	Quantity int64 `json:"quantity,omitempty,string"`
 10727  	// StoreCode: Required. The identifier of the merchant's store. Either a
 10728  	// `storeCode` inserted through the API or the code of the store in a Business
 10729  	// Profile.
 10730  	StoreCode string `json:"storeCode,omitempty"`
 10731  	// TargetCountry: Required. The CLDR territory code for the item.
 10732  	TargetCountry string `json:"targetCountry,omitempty"`
 10733  	// Timestamp: Required. The inventory timestamp, in ISO 8601 format.
 10734  	Timestamp string `json:"timestamp,omitempty"`
 10735  
 10736  	// ServerResponse contains the HTTP response code and headers from the server.
 10737  	googleapi.ServerResponse `json:"-"`
 10738  	// ForceSendFields is a list of field names (e.g. "ContentLanguage") to
 10739  	// unconditionally include in API requests. By default, fields with empty or
 10740  	// default values are omitted from API requests. See
 10741  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10742  	// details.
 10743  	ForceSendFields []string `json:"-"`
 10744  	// NullFields is a list of field names (e.g. "ContentLanguage") to include in
 10745  	// API requests with the JSON null value. By default, fields with empty values
 10746  	// are omitted from API requests. See
 10747  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10748  	NullFields []string `json:"-"`
 10749  }
 10750  
 10751  func (s *PosInventoryResponse) MarshalJSON() ([]byte, error) {
 10752  	type NoMethod PosInventoryResponse
 10753  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10754  }
 10755  
 10756  type PosListResponse struct {
 10757  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10758  	// "content#posListResponse".
 10759  	Kind      string      `json:"kind,omitempty"`
 10760  	Resources []*PosStore `json:"resources,omitempty"`
 10761  
 10762  	// ServerResponse contains the HTTP response code and headers from the server.
 10763  	googleapi.ServerResponse `json:"-"`
 10764  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 10765  	// include in API requests. By default, fields with empty or default values are
 10766  	// omitted from API requests. See
 10767  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10768  	// details.
 10769  	ForceSendFields []string `json:"-"`
 10770  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 10771  	// with the JSON null value. By default, fields with empty values are omitted
 10772  	// from API requests. See
 10773  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10774  	NullFields []string `json:"-"`
 10775  }
 10776  
 10777  func (s *PosListResponse) MarshalJSON() ([]byte, error) {
 10778  	type NoMethod PosListResponse
 10779  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10780  }
 10781  
 10782  // PosSale: The change of the available quantity of an item at the given store.
 10783  type PosSale struct {
 10784  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 10785  	// item.
 10786  	ContentLanguage string `json:"contentLanguage,omitempty"`
 10787  	// Gtin: Global Trade Item Number.
 10788  	Gtin string `json:"gtin,omitempty"`
 10789  	// ItemId: Required. A unique identifier for the item.
 10790  	ItemId string `json:"itemId,omitempty"`
 10791  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10792  	// "content#posSale"
 10793  	Kind string `json:"kind,omitempty"`
 10794  	// Price: Required. The price of the item.
 10795  	Price *Price `json:"price,omitempty"`
 10796  	// Quantity: Required. The relative change of the available quantity. Negative
 10797  	// for items returned.
 10798  	Quantity int64 `json:"quantity,omitempty,string"`
 10799  	// SaleId: A unique ID to group items from the same sale event.
 10800  	SaleId string `json:"saleId,omitempty"`
 10801  	// StoreCode: Required. The identifier of the merchant's store. Either a
 10802  	// `storeCode` inserted through the API or the code of the store in a Business
 10803  	// Profile.
 10804  	StoreCode string `json:"storeCode,omitempty"`
 10805  	// TargetCountry: Required. The CLDR territory code for the item.
 10806  	TargetCountry string `json:"targetCountry,omitempty"`
 10807  	// Timestamp: Required. The inventory timestamp, in ISO 8601 format.
 10808  	Timestamp string `json:"timestamp,omitempty"`
 10809  	// ForceSendFields is a list of field names (e.g. "ContentLanguage") to
 10810  	// unconditionally include in API requests. By default, fields with empty or
 10811  	// default values are omitted from API requests. See
 10812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10813  	// details.
 10814  	ForceSendFields []string `json:"-"`
 10815  	// NullFields is a list of field names (e.g. "ContentLanguage") to include in
 10816  	// API requests with the JSON null value. By default, fields with empty values
 10817  	// are omitted from API requests. See
 10818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10819  	NullFields []string `json:"-"`
 10820  }
 10821  
 10822  func (s *PosSale) MarshalJSON() ([]byte, error) {
 10823  	type NoMethod PosSale
 10824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10825  }
 10826  
 10827  type PosSaleRequest struct {
 10828  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 10829  	// item.
 10830  	ContentLanguage string `json:"contentLanguage,omitempty"`
 10831  	// Gtin: Global Trade Item Number.
 10832  	Gtin string `json:"gtin,omitempty"`
 10833  	// ItemId: Required. A unique identifier for the item.
 10834  	ItemId string `json:"itemId,omitempty"`
 10835  	// Price: Required. The price of the item.
 10836  	Price *Price `json:"price,omitempty"`
 10837  	// Quantity: Required. The relative change of the available quantity. Negative
 10838  	// for items returned.
 10839  	Quantity int64 `json:"quantity,omitempty,string"`
 10840  	// SaleId: A unique ID to group items from the same sale event.
 10841  	SaleId string `json:"saleId,omitempty"`
 10842  	// StoreCode: Required. The identifier of the merchant's store. Either a
 10843  	// `storeCode` inserted through the API or the code of the store in a Business
 10844  	// Profile.
 10845  	StoreCode string `json:"storeCode,omitempty"`
 10846  	// TargetCountry: Required. The CLDR territory code for the item.
 10847  	TargetCountry string `json:"targetCountry,omitempty"`
 10848  	// Timestamp: Required. The inventory timestamp, in ISO 8601 format.
 10849  	Timestamp string `json:"timestamp,omitempty"`
 10850  	// ForceSendFields is a list of field names (e.g. "ContentLanguage") to
 10851  	// unconditionally include in API requests. By default, fields with empty or
 10852  	// default values are omitted from API requests. See
 10853  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10854  	// details.
 10855  	ForceSendFields []string `json:"-"`
 10856  	// NullFields is a list of field names (e.g. "ContentLanguage") to include in
 10857  	// API requests with the JSON null value. By default, fields with empty values
 10858  	// are omitted from API requests. See
 10859  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10860  	NullFields []string `json:"-"`
 10861  }
 10862  
 10863  func (s *PosSaleRequest) MarshalJSON() ([]byte, error) {
 10864  	type NoMethod PosSaleRequest
 10865  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10866  }
 10867  
 10868  type PosSaleResponse struct {
 10869  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 10870  	// item.
 10871  	ContentLanguage string `json:"contentLanguage,omitempty"`
 10872  	// Gtin: Global Trade Item Number.
 10873  	Gtin string `json:"gtin,omitempty"`
 10874  	// ItemId: Required. A unique identifier for the item.
 10875  	ItemId string `json:"itemId,omitempty"`
 10876  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10877  	// "content#posSaleResponse".
 10878  	Kind string `json:"kind,omitempty"`
 10879  	// Price: Required. The price of the item.
 10880  	Price *Price `json:"price,omitempty"`
 10881  	// Quantity: Required. The relative change of the available quantity. Negative
 10882  	// for items returned.
 10883  	Quantity int64 `json:"quantity,omitempty,string"`
 10884  	// SaleId: A unique ID to group items from the same sale event.
 10885  	SaleId string `json:"saleId,omitempty"`
 10886  	// StoreCode: Required. The identifier of the merchant's store. Either a
 10887  	// `storeCode` inserted through the API or the code of the store in a Business
 10888  	// Profile.
 10889  	StoreCode string `json:"storeCode,omitempty"`
 10890  	// TargetCountry: Required. The CLDR territory code for the item.
 10891  	TargetCountry string `json:"targetCountry,omitempty"`
 10892  	// Timestamp: Required. The inventory timestamp, in ISO 8601 format.
 10893  	Timestamp string `json:"timestamp,omitempty"`
 10894  
 10895  	// ServerResponse contains the HTTP response code and headers from the server.
 10896  	googleapi.ServerResponse `json:"-"`
 10897  	// ForceSendFields is a list of field names (e.g. "ContentLanguage") to
 10898  	// unconditionally include in API requests. By default, fields with empty or
 10899  	// default values are omitted from API requests. See
 10900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10901  	// details.
 10902  	ForceSendFields []string `json:"-"`
 10903  	// NullFields is a list of field names (e.g. "ContentLanguage") to include in
 10904  	// API requests with the JSON null value. By default, fields with empty values
 10905  	// are omitted from API requests. See
 10906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10907  	NullFields []string `json:"-"`
 10908  }
 10909  
 10910  func (s *PosSaleResponse) MarshalJSON() ([]byte, error) {
 10911  	type NoMethod PosSaleResponse
 10912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10913  }
 10914  
 10915  // PosStore: Store resource.
 10916  type PosStore struct {
 10917  	// GcidCategory: The business type of the store.
 10918  	GcidCategory []string `json:"gcidCategory,omitempty"`
 10919  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 10920  	// "content#posStore"
 10921  	Kind string `json:"kind,omitempty"`
 10922  	// MatchingStatus: Output only. The matching status of POS store and Google
 10923  	// Business Profile store. Possible values are: - "matched": The POS store is
 10924  	// successfully matched with the Google Business Profile store. - "failed":
 10925  	// The POS store is not matched with the Google Business Profile store. See
 10926  	// matching_status_hint for further details. Note that there is up to 48 hours
 10927  	// propagation delay for changes in Merchant Center (e.g. creation of new
 10928  	// account, accounts linking) and Google Business Profile (e.g. store address
 10929  	// update) which may affect the matching status. In such cases, after a delay
 10930  	// call pos.list
 10931  	// (https://developers.google.com/shopping-content/reference/rest/v2.1/pos/list)
 10932  	// to retrieve the updated matching status.
 10933  	MatchingStatus string `json:"matchingStatus,omitempty"`
 10934  	// MatchingStatusHint: Output only. The hint of why the matching has failed.
 10935  	// This is only set when matching_status=failed. Possible values are: -
 10936  	// "linked-store-not-found": There aren't any Google Business Profile stores
 10937  	// available for matching. Connect your Merchant Center account with the Google
 10938  	// Business Profile account. Or add a new Google Business Profile store
 10939  	// corresponding to the POS store. - "store-match-not-found": The provided
 10940  	// POS store couldn't be matched to any of the connected Google Business
 10941  	// Profile stores. Merchant Center account is connected correctly and stores
 10942  	// are available on Google Business Profile, but POS store location address
 10943  	// does not match with Google Business Profile stores' addresses. Update POS
 10944  	// store address or Google Business Profile store address to match correctly. -
 10945  	// "store-match-unverified": The provided POS store couldn't be matched to
 10946  	// any of the connected Google Business Profile stores, as the matched Google
 10947  	// Business Profile store is unverified. Go through the Google Business Profile
 10948  	// verification process to match correctly.
 10949  	MatchingStatusHint string `json:"matchingStatusHint,omitempty"`
 10950  	// PhoneNumber: The store phone number.
 10951  	PhoneNumber string `json:"phoneNumber,omitempty"`
 10952  	// PlaceId: The Google Place Id of the store location.
 10953  	PlaceId string `json:"placeId,omitempty"`
 10954  	// StoreAddress: Required. The street address of the store.
 10955  	StoreAddress string `json:"storeAddress,omitempty"`
 10956  	// StoreCode: Required. A store identifier that is unique for the given
 10957  	// merchant.
 10958  	StoreCode string `json:"storeCode,omitempty"`
 10959  	// StoreName: The merchant or store name.
 10960  	StoreName string `json:"storeName,omitempty"`
 10961  	// WebsiteUrl: The website url for the store or merchant.
 10962  	WebsiteUrl string `json:"websiteUrl,omitempty"`
 10963  
 10964  	// ServerResponse contains the HTTP response code and headers from the server.
 10965  	googleapi.ServerResponse `json:"-"`
 10966  	// ForceSendFields is a list of field names (e.g. "GcidCategory") to
 10967  	// unconditionally include in API requests. By default, fields with empty or
 10968  	// default values are omitted from API requests. See
 10969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10970  	// details.
 10971  	ForceSendFields []string `json:"-"`
 10972  	// NullFields is a list of field names (e.g. "GcidCategory") to include in API
 10973  	// requests with the JSON null value. By default, fields with empty values are
 10974  	// omitted from API requests. See
 10975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10976  	NullFields []string `json:"-"`
 10977  }
 10978  
 10979  func (s *PosStore) MarshalJSON() ([]byte, error) {
 10980  	type NoMethod PosStore
 10981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10982  }
 10983  
 10984  type PostalCodeGroup struct {
 10985  	// Country: The CLDR territory code of the country the postal code group
 10986  	// applies to. Required.
 10987  	Country string `json:"country,omitempty"`
 10988  	// Name: The name of the postal code group, referred to in headers. Required.
 10989  	Name string `json:"name,omitempty"`
 10990  	// PostalCodeRanges: A range of postal codes. Required.
 10991  	PostalCodeRanges []*PostalCodeRange `json:"postalCodeRanges,omitempty"`
 10992  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
 10993  	// include in API requests. By default, fields with empty or default values are
 10994  	// omitted from API requests. See
 10995  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10996  	// details.
 10997  	ForceSendFields []string `json:"-"`
 10998  	// NullFields is a list of field names (e.g. "Country") to include in API
 10999  	// requests with the JSON null value. By default, fields with empty values are
 11000  	// omitted from API requests. See
 11001  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11002  	NullFields []string `json:"-"`
 11003  }
 11004  
 11005  func (s *PostalCodeGroup) MarshalJSON() ([]byte, error) {
 11006  	type NoMethod PostalCodeGroup
 11007  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11008  }
 11009  
 11010  type PostalCodeRange struct {
 11011  	// PostalCodeRangeBegin: A postal code or a pattern of the form `prefix*`
 11012  	// denoting the inclusive lower bound of the range defining the area. Examples
 11013  	// values: "94108", "9410*", "9*". Required.
 11014  	PostalCodeRangeBegin string `json:"postalCodeRangeBegin,omitempty"`
 11015  	// PostalCodeRangeEnd: A postal code or a pattern of the form `prefix*`
 11016  	// denoting the inclusive upper bound of the range defining the area. It must
 11017  	// have the same length as `postalCodeRangeBegin`: if `postalCodeRangeBegin` is
 11018  	// a postal code then `postalCodeRangeEnd` must be a postal code too; if
 11019  	// `postalCodeRangeBegin` is a pattern then `postalCodeRangeEnd` must be a
 11020  	// pattern with the same prefix length. Optional: if not set, then the area is
 11021  	// defined as being all the postal codes matching `postalCodeRangeBegin`.
 11022  	PostalCodeRangeEnd string `json:"postalCodeRangeEnd,omitempty"`
 11023  	// ForceSendFields is a list of field names (e.g. "PostalCodeRangeBegin") to
 11024  	// unconditionally include in API requests. By default, fields with empty or
 11025  	// default values are omitted from API requests. See
 11026  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11027  	// details.
 11028  	ForceSendFields []string `json:"-"`
 11029  	// NullFields is a list of field names (e.g. "PostalCodeRangeBegin") to include
 11030  	// in API requests with the JSON null value. By default, fields with empty
 11031  	// values are omitted from API requests. See
 11032  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11033  	NullFields []string `json:"-"`
 11034  }
 11035  
 11036  func (s *PostalCodeRange) MarshalJSON() ([]byte, error) {
 11037  	type NoMethod PostalCodeRange
 11038  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11039  }
 11040  
 11041  type Price struct {
 11042  	// Currency: The currency of the price.
 11043  	Currency string `json:"currency,omitempty"`
 11044  	// Value: The price represented as a number.
 11045  	Value string `json:"value,omitempty"`
 11046  	// ForceSendFields is a list of field names (e.g. "Currency") to
 11047  	// unconditionally include in API requests. By default, fields with empty or
 11048  	// default values are omitted from API requests. See
 11049  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11050  	// details.
 11051  	ForceSendFields []string `json:"-"`
 11052  	// NullFields is a list of field names (e.g. "Currency") to include in API
 11053  	// requests with the JSON null value. By default, fields with empty values are
 11054  	// omitted from API requests. See
 11055  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11056  	NullFields []string `json:"-"`
 11057  }
 11058  
 11059  func (s *Price) MarshalJSON() ([]byte, error) {
 11060  	type NoMethod Price
 11061  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11062  }
 11063  
 11064  // PriceAmount: The price represented as a number and currency.
 11065  type PriceAmount struct {
 11066  	// Currency: The currency of the price.
 11067  	Currency string `json:"currency,omitempty"`
 11068  	// Value: The price represented as a number.
 11069  	Value string `json:"value,omitempty"`
 11070  	// ForceSendFields is a list of field names (e.g. "Currency") to
 11071  	// unconditionally include in API requests. By default, fields with empty or
 11072  	// default values are omitted from API requests. See
 11073  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11074  	// details.
 11075  	ForceSendFields []string `json:"-"`
 11076  	// NullFields is a list of field names (e.g. "Currency") to include in API
 11077  	// requests with the JSON null value. By default, fields with empty values are
 11078  	// omitted from API requests. See
 11079  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11080  	NullFields []string `json:"-"`
 11081  }
 11082  
 11083  func (s *PriceAmount) MarshalJSON() ([]byte, error) {
 11084  	type NoMethod PriceAmount
 11085  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11086  }
 11087  
 11088  // PriceCompetitiveness: Price competitiveness fields requested by the merchant
 11089  // in the query. Field values are only set if the merchant queries
 11090  // `PriceCompetitivenessProductView`.
 11091  // https://support.google.com/merchants/answer/9626903
 11092  type PriceCompetitiveness struct {
 11093  	// BenchmarkPriceCurrencyCode: The price benchmark currency (ISO 4217 code).
 11094  	BenchmarkPriceCurrencyCode string `json:"benchmarkPriceCurrencyCode,omitempty"`
 11095  	// BenchmarkPriceMicros: The latest available price benchmark in micros (1
 11096  	// millionth of a standard unit, 1 USD = 1000000 micros) for the product's
 11097  	// catalog in the benchmark country.
 11098  	BenchmarkPriceMicros int64 `json:"benchmarkPriceMicros,omitempty,string"`
 11099  	// CountryCode: The country of the price benchmark (ISO 3166 code).
 11100  	CountryCode string `json:"countryCode,omitempty"`
 11101  	// ForceSendFields is a list of field names (e.g. "BenchmarkPriceCurrencyCode")
 11102  	// to unconditionally include in API requests. By default, fields with empty or
 11103  	// default values are omitted from API requests. See
 11104  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11105  	// details.
 11106  	ForceSendFields []string `json:"-"`
 11107  	// NullFields is a list of field names (e.g. "BenchmarkPriceCurrencyCode") to
 11108  	// include in API requests with the JSON null value. By default, fields with
 11109  	// empty values are omitted from API requests. See
 11110  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11111  	NullFields []string `json:"-"`
 11112  }
 11113  
 11114  func (s *PriceCompetitiveness) MarshalJSON() ([]byte, error) {
 11115  	type NoMethod PriceCompetitiveness
 11116  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11117  }
 11118  
 11119  // PriceInsights: Price insights fields requested by the merchant in the query.
 11120  // Field values are only set if the merchant queries
 11121  // `PriceInsightsProductView`.
 11122  // https://support.google.com/merchants/answer/11916926
 11123  type PriceInsights struct {
 11124  	// Effectiveness: The predicted effectiveness of applying the price suggestion,
 11125  	// bucketed.
 11126  	//
 11127  	// Possible values:
 11128  	//   "EFFECTIVENESS_UNSPECIFIED" - Effectiveness is unknown.
 11129  	//   "LOW" - Effectiveness is low.
 11130  	//   "MEDIUM" - Effectiveness is medium.
 11131  	//   "HIGH" - Effectiveness is high.
 11132  	Effectiveness string `json:"effectiveness,omitempty"`
 11133  	// PredictedClicksChangeFraction: The predicted change in clicks as a fraction
 11134  	// after introducing the suggested price compared to current active price. For
 11135  	// example, 0.05 is a 5% predicted increase in clicks.
 11136  	PredictedClicksChangeFraction float64 `json:"predictedClicksChangeFraction,omitempty"`
 11137  	// PredictedConversionsChangeFraction: The predicted change in conversions as a
 11138  	// fraction after introducing the suggested price compared to current active
 11139  	// price. For example, 0.05 is a 5% predicted increase in conversions).
 11140  	PredictedConversionsChangeFraction float64 `json:"predictedConversionsChangeFraction,omitempty"`
 11141  	// PredictedGrossProfitChangeFraction: *Deprecated*: This field is no longer
 11142  	// supported and will start returning 0. The predicted change in gross profit
 11143  	// as a fraction after introducing the suggested price compared to current
 11144  	// active price. For example, 0.05 is a 5% predicted increase in gross profit.
 11145  	PredictedGrossProfitChangeFraction float64 `json:"predictedGrossProfitChangeFraction,omitempty"`
 11146  	// PredictedImpressionsChangeFraction: The predicted change in impressions as a
 11147  	// fraction after introducing the suggested price compared to current active
 11148  	// price. For example, 0.05 is a 5% predicted increase in impressions.
 11149  	PredictedImpressionsChangeFraction float64 `json:"predictedImpressionsChangeFraction,omitempty"`
 11150  	// PredictedMonthlyGrossProfitChangeCurrencyCode: *Deprecated*: This field is
 11151  	// no longer supported and will start returning USD for all requests. The
 11152  	// predicted monthly gross profit change currency (ISO 4217 code).
 11153  	PredictedMonthlyGrossProfitChangeCurrencyCode string `json:"predictedMonthlyGrossProfitChangeCurrencyCode,omitempty"`
 11154  	// PredictedMonthlyGrossProfitChangeMicros: *Deprecated*: This field is no
 11155  	// longer supported and will start returning 0. The predicted change in gross
 11156  	// profit in micros (1 millionth of a standard unit, 1 USD = 1000000 micros)
 11157  	// after introducing the suggested price for a month compared to current active
 11158  	// price.
 11159  	PredictedMonthlyGrossProfitChangeMicros int64 `json:"predictedMonthlyGrossProfitChangeMicros,omitempty,string"`
 11160  	// SuggestedPriceCurrencyCode: The suggested price currency (ISO 4217 code).
 11161  	SuggestedPriceCurrencyCode string `json:"suggestedPriceCurrencyCode,omitempty"`
 11162  	// SuggestedPriceMicros: The latest suggested price in micros (1 millionth of a
 11163  	// standard unit, 1 USD = 1000000 micros) for the product.
 11164  	SuggestedPriceMicros int64 `json:"suggestedPriceMicros,omitempty,string"`
 11165  	// ForceSendFields is a list of field names (e.g. "Effectiveness") to
 11166  	// unconditionally include in API requests. By default, fields with empty or
 11167  	// default values are omitted from API requests. See
 11168  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11169  	// details.
 11170  	ForceSendFields []string `json:"-"`
 11171  	// NullFields is a list of field names (e.g. "Effectiveness") to include in API
 11172  	// requests with the JSON null value. By default, fields with empty values are
 11173  	// omitted from API requests. See
 11174  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11175  	NullFields []string `json:"-"`
 11176  }
 11177  
 11178  func (s *PriceInsights) MarshalJSON() ([]byte, error) {
 11179  	type NoMethod PriceInsights
 11180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11181  }
 11182  
 11183  func (s *PriceInsights) UnmarshalJSON(data []byte) error {
 11184  	type NoMethod PriceInsights
 11185  	var s1 struct {
 11186  		PredictedClicksChangeFraction      gensupport.JSONFloat64 `json:"predictedClicksChangeFraction"`
 11187  		PredictedConversionsChangeFraction gensupport.JSONFloat64 `json:"predictedConversionsChangeFraction"`
 11188  		PredictedGrossProfitChangeFraction gensupport.JSONFloat64 `json:"predictedGrossProfitChangeFraction"`
 11189  		PredictedImpressionsChangeFraction gensupport.JSONFloat64 `json:"predictedImpressionsChangeFraction"`
 11190  		*NoMethod
 11191  	}
 11192  	s1.NoMethod = (*NoMethod)(s)
 11193  	if err := json.Unmarshal(data, &s1); err != nil {
 11194  		return err
 11195  	}
 11196  	s.PredictedClicksChangeFraction = float64(s1.PredictedClicksChangeFraction)
 11197  	s.PredictedConversionsChangeFraction = float64(s1.PredictedConversionsChangeFraction)
 11198  	s.PredictedGrossProfitChangeFraction = float64(s1.PredictedGrossProfitChangeFraction)
 11199  	s.PredictedImpressionsChangeFraction = float64(s1.PredictedImpressionsChangeFraction)
 11200  	return nil
 11201  }
 11202  
 11203  // Product:  Required product attributes are primarily defined by the product
 11204  // data specification. See the Product Data Specification Help Center article
 11205  // for information. Product data. After inserting, updating, or deleting a
 11206  // product, it may take several minutes before changes take effect.
 11207  type Product struct {
 11208  	// AdditionalImageLinks: Additional URLs of images of the item.
 11209  	AdditionalImageLinks []string `json:"additionalImageLinks,omitempty"`
 11210  	// AdditionalSizeType: Additional cut of the item. Used together with size_type
 11211  	// to represent combined size types for apparel items.
 11212  	AdditionalSizeType string `json:"additionalSizeType,omitempty"`
 11213  	// AdsGrouping: Used to group items in an arbitrary way. Only for CPA%,
 11214  	// discouraged otherwise.
 11215  	AdsGrouping string `json:"adsGrouping,omitempty"`
 11216  	// AdsLabels: Similar to ads_grouping, but only works on CPC.
 11217  	AdsLabels []string `json:"adsLabels,omitempty"`
 11218  	// AdsRedirect: Allows advertisers to override the item URL when the product is
 11219  	// shown within the context of Product Ads.
 11220  	AdsRedirect string `json:"adsRedirect,omitempty"`
 11221  	// Adult: Should be set to true if the item is targeted towards adults.
 11222  	Adult bool `json:"adult,omitempty"`
 11223  	// AgeGroup: Target age group of the item.
 11224  	AgeGroup string `json:"ageGroup,omitempty"`
 11225  	// AutoPricingMinPrice: A safeguard in the Automated Discounts
 11226  	// (//support.google.com/merchants/answer/10295759) and Dynamic Promotions
 11227  	// (//support.google.com/merchants/answer/13949249) projects, ensuring that
 11228  	// discounts on merchants' offers do not fall below this value, thereby
 11229  	// preserving the offer's value and profitability.
 11230  	AutoPricingMinPrice *Price `json:"autoPricingMinPrice,omitempty"`
 11231  	// Availability: Availability status of the item.
 11232  	Availability string `json:"availability,omitempty"`
 11233  	// AvailabilityDate: The day a pre-ordered product becomes available for
 11234  	// delivery, in ISO 8601 format.
 11235  	AvailabilityDate string `json:"availabilityDate,omitempty"`
 11236  	// Brand: Brand of the item.
 11237  	Brand string `json:"brand,omitempty"`
 11238  	// CanonicalLink: URL for the canonical version of your item's landing page.
 11239  	CanonicalLink string `json:"canonicalLink,omitempty"`
 11240  	// Certifications: Product certification
 11241  	// (https://support.google.com/merchants/answer/13528839), introduced for EU
 11242  	// energy efficiency labeling compliance using the EU EPREL
 11243  	// (https://eprel.ec.europa.eu/screen/home) database.
 11244  	Certifications []*ProductCertification `json:"certifications,omitempty"`
 11245  	// Channel: Required. The item's channel (online or local). Acceptable values
 11246  	// are: - "local" - "online"
 11247  	Channel string `json:"channel,omitempty"`
 11248  	// CloudExportAdditionalProperties: Extra fields to export to the Cloud Retail
 11249  	// program.
 11250  	CloudExportAdditionalProperties []*CloudExportAdditionalProperties `json:"cloudExportAdditionalProperties,omitempty"`
 11251  	// Color: Color of the item.
 11252  	Color string `json:"color,omitempty"`
 11253  	// Condition: Condition or state of the item.
 11254  	Condition string `json:"condition,omitempty"`
 11255  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 11256  	// item.
 11257  	ContentLanguage string `json:"contentLanguage,omitempty"`
 11258  	// CostOfGoodsSold: Cost of goods sold. Used for gross profit reporting.
 11259  	CostOfGoodsSold *Price `json:"costOfGoodsSold,omitempty"`
 11260  	// CustomAttributes: A list of custom (merchant-provided) attributes. It can
 11261  	// also be used for submitting any attribute of the feed specification in its
 11262  	// generic form (for example, `{ "name": "size type", "value": "regular" }`).
 11263  	// This is useful for submitting attributes not explicitly exposed by the API,
 11264  	// such as additional attributes used for Buy on Google (formerly known as
 11265  	// Shopping Actions).
 11266  	CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
 11267  	// CustomLabel0: Custom label 0 for custom grouping of items in a Shopping
 11268  	// campaign.
 11269  	CustomLabel0 string `json:"customLabel0,omitempty"`
 11270  	// CustomLabel1: Custom label 1 for custom grouping of items in a Shopping
 11271  	// campaign.
 11272  	CustomLabel1 string `json:"customLabel1,omitempty"`
 11273  	// CustomLabel2: Custom label 2 for custom grouping of items in a Shopping
 11274  	// campaign.
 11275  	CustomLabel2 string `json:"customLabel2,omitempty"`
 11276  	// CustomLabel3: Custom label 3 for custom grouping of items in a Shopping
 11277  	// campaign.
 11278  	CustomLabel3 string `json:"customLabel3,omitempty"`
 11279  	// CustomLabel4: Custom label 4 for custom grouping of items in a Shopping
 11280  	// campaign.
 11281  	CustomLabel4 string `json:"customLabel4,omitempty"`
 11282  	// Description: Description of the item.
 11283  	Description string `json:"description,omitempty"`
 11284  	// DisclosureDate: The date time when an offer becomes visible in search
 11285  	// results across Google’s YouTube surfaces, in ISO 8601
 11286  	// (http://en.wikipedia.org/wiki/ISO_8601) format. See Disclosure date
 11287  	// (https://support.google.com/merchants/answer/13034208) for more information.
 11288  	DisclosureDate string `json:"disclosureDate,omitempty"`
 11289  	// DisplayAdsId: An identifier for an item for dynamic remarketing campaigns.
 11290  	DisplayAdsId string `json:"displayAdsId,omitempty"`
 11291  	// DisplayAdsLink: URL directly to your item's landing page for dynamic
 11292  	// remarketing campaigns.
 11293  	DisplayAdsLink string `json:"displayAdsLink,omitempty"`
 11294  	// DisplayAdsSimilarIds: Advertiser-specified recommendations.
 11295  	DisplayAdsSimilarIds []string `json:"displayAdsSimilarIds,omitempty"`
 11296  	// DisplayAdsTitle: Title of an item for dynamic remarketing campaigns.
 11297  	DisplayAdsTitle string `json:"displayAdsTitle,omitempty"`
 11298  	// DisplayAdsValue: Offer margin for dynamic remarketing campaigns.
 11299  	DisplayAdsValue float64 `json:"displayAdsValue,omitempty"`
 11300  	// EnergyEfficiencyClass: The energy efficiency class as defined in EU
 11301  	// directive 2010/30/EU.
 11302  	EnergyEfficiencyClass string `json:"energyEfficiencyClass,omitempty"`
 11303  	// ExcludedDestinations: The list of destinations to exclude
 11304  	// (//support.google.com/merchants/answer/6324486) for this target (corresponds
 11305  	// to cleared check boxes in Merchant Center). Products that are excluded from
 11306  	// all destinations for more than 7 days are automatically deleted.
 11307  	ExcludedDestinations []string `json:"excludedDestinations,omitempty"`
 11308  	// ExpirationDate: Date on which the item should expire, as specified upon
 11309  	// insertion, in ISO 8601 format. The actual expiration date in Google Shopping
 11310  	// is exposed in `productstatuses` as `googleExpirationDate` and might be
 11311  	// earlier if `expirationDate` is too far in the future.
 11312  	ExpirationDate string `json:"expirationDate,omitempty"`
 11313  	// ExternalSellerId: Required for multi-seller accounts. Use this attribute if
 11314  	// you're a marketplace uploading products for various sellers to your
 11315  	// multi-seller account.
 11316  	ExternalSellerId string `json:"externalSellerId,omitempty"`
 11317  	// FeedLabel: Feed label for the item. Either `targetCountry` or `feedLabel` is
 11318  	// required. Must be less than or equal to 20 uppercase letters (A-Z), numbers
 11319  	// (0-9), and dashes (-).
 11320  	FeedLabel string `json:"feedLabel,omitempty"`
 11321  	// FreeShippingThreshold: Optional. Conditions to be met for a product to have
 11322  	// free shipping.
 11323  	FreeShippingThreshold []*FreeShippingThreshold `json:"freeShippingThreshold,omitempty"`
 11324  	// Gender: Target gender of the item.
 11325  	Gender string `json:"gender,omitempty"`
 11326  	// GoogleProductCategory: Google's category of the item (see Google product
 11327  	// taxonomy (https://support.google.com/merchants/answer/1705911)). When
 11328  	// querying products, this field will contain the user provided value. There is
 11329  	// currently no way to get back the auto assigned google product categories
 11330  	// through the API.
 11331  	GoogleProductCategory string `json:"googleProductCategory,omitempty"`
 11332  	// Gtin: Global Trade Item Number (GTIN) of the item.
 11333  	Gtin string `json:"gtin,omitempty"`
 11334  	// Id: The REST ID of the product. Content API methods that operate on products
 11335  	// take this as their `productId` parameter. The REST ID for a product has one
 11336  	// of the 2 forms channel:contentLanguage: targetCountry: offerId or
 11337  	// channel:contentLanguage:feedLabel: offerId.
 11338  	Id string `json:"id,omitempty"`
 11339  	// IdentifierExists: False when the item does not have unique product
 11340  	// identifiers appropriate to its category, such as GTIN, MPN, and brand.
 11341  	// Required according to the Unique Product Identifier Rules for all target
 11342  	// countries except for Canada.
 11343  	IdentifierExists bool `json:"identifierExists,omitempty"`
 11344  	// ImageLink: URL of an image of the item.
 11345  	ImageLink string `json:"imageLink,omitempty"`
 11346  	// IncludedDestinations: The list of destinations to include
 11347  	// (//support.google.com/merchants/answer/7501026) for this target (corresponds
 11348  	// to checked check boxes in Merchant Center). Default destinations are always
 11349  	// included unless provided in `excludedDestinations`.
 11350  	IncludedDestinations []string `json:"includedDestinations,omitempty"`
 11351  	// Installment: Number and amount of installments to pay for an item.
 11352  	Installment *Installment `json:"installment,omitempty"`
 11353  	// IsBundle: Whether the item is a merchant-defined bundle. A bundle is a
 11354  	// custom grouping of different products sold by a merchant for a single price.
 11355  	IsBundle bool `json:"isBundle,omitempty"`
 11356  	// ItemGroupId: Shared identifier for all variants of the same product.
 11357  	ItemGroupId string `json:"itemGroupId,omitempty"`
 11358  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 11359  	// "content#product"
 11360  	Kind string `json:"kind,omitempty"`
 11361  	// LifestyleImageLinks: Additional URLs of lifestyle images of the item. Used
 11362  	// to explicitly identify images that showcase your item in a real-world
 11363  	// context. See the Help Center article for more information.
 11364  	LifestyleImageLinks []string `json:"lifestyleImageLinks,omitempty"`
 11365  	// Link: URL directly linking to your item's page on your website.
 11366  	Link string `json:"link,omitempty"`
 11367  	// LinkTemplate: URL template for merchant hosted local storefront.
 11368  	LinkTemplate string `json:"linkTemplate,omitempty"`
 11369  	// LoyaltyProgram: Loyalty program information that is used to surface loyalty
 11370  	// benefits ( for example pricing, points, etc) to the user for this item.
 11371  	LoyaltyProgram *LoyaltyProgram `json:"loyaltyProgram,omitempty"`
 11372  	// Material: The material of which the item is made.
 11373  	Material string `json:"material,omitempty"`
 11374  	// MaxEnergyEfficiencyClass: The energy efficiency class as defined in EU
 11375  	// directive 2010/30/EU.
 11376  	MaxEnergyEfficiencyClass string `json:"maxEnergyEfficiencyClass,omitempty"`
 11377  	// MaxHandlingTime: Maximal product handling time (in business days).
 11378  	MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"`
 11379  	// MinEnergyEfficiencyClass: The energy efficiency class as defined in EU
 11380  	// directive 2010/30/EU.
 11381  	MinEnergyEfficiencyClass string `json:"minEnergyEfficiencyClass,omitempty"`
 11382  	// MinHandlingTime: Minimal product handling time (in business days).
 11383  	MinHandlingTime int64 `json:"minHandlingTime,omitempty,string"`
 11384  	// MobileLink: URL for the mobile-optimized version of your item's landing
 11385  	// page.
 11386  	MobileLink string `json:"mobileLink,omitempty"`
 11387  	// MobileLinkTemplate: URL template for merchant hosted local storefront
 11388  	// optimized for mobile devices.
 11389  	MobileLinkTemplate string `json:"mobileLinkTemplate,omitempty"`
 11390  	// Mpn: Manufacturer Part Number (MPN) of the item.
 11391  	Mpn string `json:"mpn,omitempty"`
 11392  	// Multipack: The number of identical products in a merchant-defined multipack.
 11393  	Multipack int64 `json:"multipack,omitempty,string"`
 11394  	// OfferId: Required. A unique identifier for the item. Leading and trailing
 11395  	// whitespaces are stripped and multiple whitespaces are replaced by a single
 11396  	// whitespace upon submission. Only valid unicode characters are accepted. See
 11397  	// the products feed specification for details. *Note:* Content API methods
 11398  	// that operate on products take the REST ID of the product, *not* this
 11399  	// identifier.
 11400  	OfferId string `json:"offerId,omitempty"`
 11401  	// Pattern: The item's pattern (for example, polka dots).
 11402  	Pattern string `json:"pattern,omitempty"`
 11403  	// Pause: Publication of this item should be temporarily paused. Acceptable
 11404  	// values are: - "ads"
 11405  	Pause string `json:"pause,omitempty"`
 11406  	// PickupMethod: The pick up option for the item. Acceptable values are: -
 11407  	// "buy" - "reserve" - "ship to store" - "not supported"
 11408  	PickupMethod string `json:"pickupMethod,omitempty"`
 11409  	// PickupSla: Item store pickup timeline. Acceptable values are: - "same day"
 11410  	// - "next day" - "2-day" - "3-day" - "4-day" - "5-day" - "6-day" -
 11411  	// "7-day" - "multi-week"
 11412  	PickupSla string `json:"pickupSla,omitempty"`
 11413  	// Price: Price of the item.
 11414  	Price *Price `json:"price,omitempty"`
 11415  	// ProductDetails: Technical specification or additional product details.
 11416  	ProductDetails []*ProductProductDetail `json:"productDetails,omitempty"`
 11417  	// ProductHeight: The height of the product in the units provided. The value
 11418  	// must be between 0 (exclusive) and 3000 (inclusive).
 11419  	ProductHeight *ProductDimension `json:"productHeight,omitempty"`
 11420  	// ProductHighlights: Bullet points describing the most relevant highlights of
 11421  	// a product.
 11422  	ProductHighlights []string `json:"productHighlights,omitempty"`
 11423  	// ProductLength: The length of the product in the units provided. The value
 11424  	// must be between 0 (exclusive) and 3000 (inclusive).
 11425  	ProductLength *ProductDimension `json:"productLength,omitempty"`
 11426  	// ProductTypes: Categories of the item (formatted as in product data
 11427  	// specification).
 11428  	ProductTypes []string `json:"productTypes,omitempty"`
 11429  	// ProductWeight: The weight of the product in the units provided. The value
 11430  	// must be between 0 (exclusive) and 2000 (inclusive).
 11431  	ProductWeight *ProductWeight `json:"productWeight,omitempty"`
 11432  	// ProductWidth: The width of the product in the units provided. The value must
 11433  	// be between 0 (exclusive) and 3000 (inclusive).
 11434  	ProductWidth *ProductDimension `json:"productWidth,omitempty"`
 11435  	// PromotionIds: The unique ID of a promotion.
 11436  	PromotionIds []string `json:"promotionIds,omitempty"`
 11437  	// SalePrice: Advertised sale price of the item.
 11438  	SalePrice *Price `json:"salePrice,omitempty"`
 11439  	// SalePriceEffectiveDate: Date range during which the item is on sale (see
 11440  	// product data specification ).
 11441  	SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`
 11442  	// SellOnGoogleQuantity: The quantity of the product that is available for
 11443  	// selling on Google. Supported only for online products.
 11444  	SellOnGoogleQuantity int64 `json:"sellOnGoogleQuantity,omitempty,string"`
 11445  	// Shipping: Shipping rules.
 11446  	Shipping []*ProductShipping `json:"shipping,omitempty"`
 11447  	// ShippingHeight: Height of the item for shipping.
 11448  	ShippingHeight *ProductShippingDimension `json:"shippingHeight,omitempty"`
 11449  	// ShippingLabel: The shipping label of the product, used to group product in
 11450  	// account-level shipping rules.
 11451  	ShippingLabel string `json:"shippingLabel,omitempty"`
 11452  	// ShippingLength: Length of the item for shipping.
 11453  	ShippingLength *ProductShippingDimension `json:"shippingLength,omitempty"`
 11454  	// ShippingWeight: Weight of the item for shipping.
 11455  	ShippingWeight *ProductShippingWeight `json:"shippingWeight,omitempty"`
 11456  	// ShippingWidth: Width of the item for shipping.
 11457  	ShippingWidth *ProductShippingDimension `json:"shippingWidth,omitempty"`
 11458  	// ShoppingAdsExcludedCountries: List of country codes (ISO 3166-1 alpha-2) to
 11459  	// exclude the offer from Shopping Ads destination. Countries from this list
 11460  	// are removed from countries configured in MC feed settings.
 11461  	ShoppingAdsExcludedCountries []string `json:"shoppingAdsExcludedCountries,omitempty"`
 11462  	// SizeSystem: System in which the size is specified. Recommended for apparel
 11463  	// items.
 11464  	SizeSystem string `json:"sizeSystem,omitempty"`
 11465  	// SizeType: The cut of the item. Recommended for apparel items.
 11466  	SizeType string `json:"sizeType,omitempty"`
 11467  	// Sizes: Size of the item. Only one value is allowed. For variants with
 11468  	// different sizes, insert a separate product for each size with the same
 11469  	// `itemGroupId` value (see size definition).
 11470  	Sizes []string `json:"sizes,omitempty"`
 11471  	// Source: The source of the offer, that is, how the offer was created.
 11472  	// Acceptable values are: - "api" - "crawl" - "feed"
 11473  	Source string `json:"source,omitempty"`
 11474  	// StructuredDescription: Structured description, for algorithmically
 11475  	// (AI)-generated descriptions.
 11476  	StructuredDescription *ProductStructuredDescription `json:"structuredDescription,omitempty"`
 11477  	// StructuredTitle: Structured title, for algorithmically (AI)-generated
 11478  	// titles.
 11479  	StructuredTitle *ProductStructuredTitle `json:"structuredTitle,omitempty"`
 11480  	// SubscriptionCost: Number of periods (months or years) and amount of payment
 11481  	// per period for an item with an associated subscription contract.
 11482  	SubscriptionCost *ProductSubscriptionCost `json:"subscriptionCost,omitempty"`
 11483  	// TargetCountry: Required. The CLDR territory code for the item's country of
 11484  	// sale.
 11485  	TargetCountry string `json:"targetCountry,omitempty"`
 11486  	// TaxCategory: The tax category of the product, used to configure detailed tax
 11487  	// nexus in account-level tax settings.
 11488  	TaxCategory string `json:"taxCategory,omitempty"`
 11489  	// Taxes: Tax information.
 11490  	Taxes []*ProductTax `json:"taxes,omitempty"`
 11491  	// Title: Title of the item.
 11492  	Title string `json:"title,omitempty"`
 11493  	// TransitTimeLabel: The transit time label of the product, used to group
 11494  	// product in account-level transit time tables.
 11495  	TransitTimeLabel string `json:"transitTimeLabel,omitempty"`
 11496  	// UnitPricingBaseMeasure: The preference of the denominator of the unit price.
 11497  	UnitPricingBaseMeasure *ProductUnitPricingBaseMeasure `json:"unitPricingBaseMeasure,omitempty"`
 11498  	// UnitPricingMeasure: The measure and dimension of an item.
 11499  	UnitPricingMeasure *ProductUnitPricingMeasure `json:"unitPricingMeasure,omitempty"`
 11500  	// VirtualModelLink: URL of the 3D model of the item to provide more visuals.
 11501  	VirtualModelLink string `json:"virtualModelLink,omitempty"`
 11502  
 11503  	// ServerResponse contains the HTTP response code and headers from the server.
 11504  	googleapi.ServerResponse `json:"-"`
 11505  	// ForceSendFields is a list of field names (e.g. "AdditionalImageLinks") to
 11506  	// unconditionally include in API requests. By default, fields with empty or
 11507  	// default values are omitted from API requests. See
 11508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11509  	// details.
 11510  	ForceSendFields []string `json:"-"`
 11511  	// NullFields is a list of field names (e.g. "AdditionalImageLinks") to include
 11512  	// in API requests with the JSON null value. By default, fields with empty
 11513  	// values are omitted from API requests. See
 11514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11515  	NullFields []string `json:"-"`
 11516  }
 11517  
 11518  func (s *Product) MarshalJSON() ([]byte, error) {
 11519  	type NoMethod Product
 11520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11521  }
 11522  
 11523  func (s *Product) UnmarshalJSON(data []byte) error {
 11524  	type NoMethod Product
 11525  	var s1 struct {
 11526  		DisplayAdsValue gensupport.JSONFloat64 `json:"displayAdsValue"`
 11527  		*NoMethod
 11528  	}
 11529  	s1.NoMethod = (*NoMethod)(s)
 11530  	if err := json.Unmarshal(data, &s1); err != nil {
 11531  		return err
 11532  	}
 11533  	s.DisplayAdsValue = float64(s1.DisplayAdsValue)
 11534  	return nil
 11535  }
 11536  
 11537  type ProductAmount struct {
 11538  	// PriceAmount: The pre-tax or post-tax price depending on the location of the
 11539  	// order.
 11540  	PriceAmount *Price `json:"priceAmount,omitempty"`
 11541  	// RemittedTaxAmount: Remitted tax value.
 11542  	RemittedTaxAmount *Price `json:"remittedTaxAmount,omitempty"`
 11543  	// TaxAmount: Tax value.
 11544  	TaxAmount *Price `json:"taxAmount,omitempty"`
 11545  	// ForceSendFields is a list of field names (e.g. "PriceAmount") to
 11546  	// unconditionally include in API requests. By default, fields with empty or
 11547  	// default values are omitted from API requests. See
 11548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11549  	// details.
 11550  	ForceSendFields []string `json:"-"`
 11551  	// NullFields is a list of field names (e.g. "PriceAmount") to include in API
 11552  	// requests with the JSON null value. By default, fields with empty values are
 11553  	// omitted from API requests. See
 11554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11555  	NullFields []string `json:"-"`
 11556  }
 11557  
 11558  func (s *ProductAmount) MarshalJSON() ([]byte, error) {
 11559  	type NoMethod ProductAmount
 11560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11561  }
 11562  
 11563  // ProductCertification: Product certification
 11564  // (https://support.google.com/merchants/answer/13528839), introduced for EU
 11565  // energy efficiency labeling compliance using the EU EPREL
 11566  // (https://eprel.ec.europa.eu/screen/home) database.
 11567  type ProductCertification struct {
 11568  	// CertificationAuthority: The certification authority, for example
 11569  	// "European_Commission". Maximum length is 2000 characters.
 11570  	CertificationAuthority string `json:"certificationAuthority,omitempty"`
 11571  	// CertificationCode: The certification code, for eaxample "123456". Maximum
 11572  	// length is 2000 characters.
 11573  	CertificationCode string `json:"certificationCode,omitempty"`
 11574  	// CertificationName: The name of the certification, for example "EPREL".
 11575  	// Maximum length is 2000 characters.
 11576  	CertificationName string `json:"certificationName,omitempty"`
 11577  	// ForceSendFields is a list of field names (e.g. "CertificationAuthority") to
 11578  	// unconditionally include in API requests. By default, fields with empty or
 11579  	// default values are omitted from API requests. See
 11580  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11581  	// details.
 11582  	ForceSendFields []string `json:"-"`
 11583  	// NullFields is a list of field names (e.g. "CertificationAuthority") to
 11584  	// include in API requests with the JSON null value. By default, fields with
 11585  	// empty values are omitted from API requests. See
 11586  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11587  	NullFields []string `json:"-"`
 11588  }
 11589  
 11590  func (s *ProductCertification) MarshalJSON() ([]byte, error) {
 11591  	type NoMethod ProductCertification
 11592  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11593  }
 11594  
 11595  // ProductCluster: Product cluster fields. A product cluster is a grouping for
 11596  // different offers that represent the same product. Values are only set for
 11597  // fields requested explicitly in the request's search query.
 11598  type ProductCluster struct {
 11599  	// Brand: Brand of the product cluster.
 11600  	Brand string `json:"brand,omitempty"`
 11601  	// BrandInventoryStatus: Tells if there is at least one product of the brand
 11602  	// currently `IN_STOCK` in your product feed across multiple countries, all
 11603  	// products are `OUT_OF_STOCK` in your product feed, or `NOT_IN_INVENTORY`. The
 11604  	// field doesn't take the Best Sellers report country filter into account.
 11605  	//
 11606  	// Possible values:
 11607  	//   "INVENTORY_STATUS_UNSPECIFIED" - Inventory status is unknown.
 11608  	//   "IN_STOCK" - Merchant has a product for this product cluster or brand in
 11609  	// stock.
 11610  	//   "OUT_OF_STOCK" - Merchant has a product for this product cluster or brand
 11611  	// in inventory but it is currently out of stock.
 11612  	//   "NOT_IN_INVENTORY" - Merchant does not have a product for this product
 11613  	// cluster or brand in inventory.
 11614  	BrandInventoryStatus string `json:"brandInventoryStatus,omitempty"`
 11615  	// CategoryL1: Product category (1st level) of the product cluster, represented
 11616  	// in Google's product taxonomy.
 11617  	CategoryL1 string `json:"categoryL1,omitempty"`
 11618  	// CategoryL2: Product category (2nd level) of the product cluster, represented
 11619  	// in Google's product taxonomy.
 11620  	CategoryL2 string `json:"categoryL2,omitempty"`
 11621  	// CategoryL3: Product category (3rd level) of the product cluster, represented
 11622  	// in Google's product taxonomy.
 11623  	CategoryL3 string `json:"categoryL3,omitempty"`
 11624  	// CategoryL4: Product category (4th level) of the product cluster, represented
 11625  	// in Google's product taxonomy.
 11626  	CategoryL4 string `json:"categoryL4,omitempty"`
 11627  	// CategoryL5: Product category (5th level) of the product cluster, represented
 11628  	// in Google's product taxonomy.
 11629  	CategoryL5 string `json:"categoryL5,omitempty"`
 11630  	// InventoryStatus: Tells whether the product cluster is `IN_STOCK` in your
 11631  	// product feed across multiple countries, `OUT_OF_STOCK` in your product feed,
 11632  	// or `NOT_IN_INVENTORY` at all. The field doesn't take the Best Sellers report
 11633  	// country filter into account.
 11634  	//
 11635  	// Possible values:
 11636  	//   "INVENTORY_STATUS_UNSPECIFIED" - Inventory status is unknown.
 11637  	//   "IN_STOCK" - Merchant has a product for this product cluster or brand in
 11638  	// stock.
 11639  	//   "OUT_OF_STOCK" - Merchant has a product for this product cluster or brand
 11640  	// in inventory but it is currently out of stock.
 11641  	//   "NOT_IN_INVENTORY" - Merchant does not have a product for this product
 11642  	// cluster or brand in inventory.
 11643  	InventoryStatus string `json:"inventoryStatus,omitempty"`
 11644  	// Title: Title of the product cluster.
 11645  	Title string `json:"title,omitempty"`
 11646  	// VariantGtins: GTINs of example variants of the product cluster.
 11647  	VariantGtins []string `json:"variantGtins,omitempty"`
 11648  	// ForceSendFields is a list of field names (e.g. "Brand") to unconditionally
 11649  	// include in API requests. By default, fields with empty or default values are
 11650  	// omitted from API requests. See
 11651  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11652  	// details.
 11653  	ForceSendFields []string `json:"-"`
 11654  	// NullFields is a list of field names (e.g. "Brand") to include in API
 11655  	// requests with the JSON null value. By default, fields with empty values are
 11656  	// omitted from API requests. See
 11657  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11658  	NullFields []string `json:"-"`
 11659  }
 11660  
 11661  func (s *ProductCluster) MarshalJSON() ([]byte, error) {
 11662  	type NoMethod ProductCluster
 11663  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11664  }
 11665  
 11666  // ProductDeliveryTime: The estimated days to deliver a product after an order
 11667  // is placed. Only authorized shipping signals partners working with a merchant
 11668  // can use this resource. Merchants should use the `products`
 11669  // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#productshipping)
 11670  // resource instead.
 11671  type ProductDeliveryTime struct {
 11672  	// AreaDeliveryTimes: Required. A set of associations between `DeliveryArea`
 11673  	// and `DeliveryTime` entries. The total number of `areaDeliveryTimes` can be
 11674  	// at most 100.
 11675  	AreaDeliveryTimes []*ProductDeliveryTimeAreaDeliveryTime `json:"areaDeliveryTimes,omitempty"`
 11676  	// ProductId: Required. The `id` of the product.
 11677  	ProductId *ProductId `json:"productId,omitempty"`
 11678  
 11679  	// ServerResponse contains the HTTP response code and headers from the server.
 11680  	googleapi.ServerResponse `json:"-"`
 11681  	// ForceSendFields is a list of field names (e.g. "AreaDeliveryTimes") to
 11682  	// unconditionally include in API requests. By default, fields with empty or
 11683  	// default values are omitted from API requests. See
 11684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11685  	// details.
 11686  	ForceSendFields []string `json:"-"`
 11687  	// NullFields is a list of field names (e.g. "AreaDeliveryTimes") to include in
 11688  	// API requests with the JSON null value. By default, fields with empty values
 11689  	// are omitted from API requests. See
 11690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11691  	NullFields []string `json:"-"`
 11692  }
 11693  
 11694  func (s *ProductDeliveryTime) MarshalJSON() ([]byte, error) {
 11695  	type NoMethod ProductDeliveryTime
 11696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11697  }
 11698  
 11699  // ProductDeliveryTimeAreaDeliveryTime: A pairing of `DeliveryArea` associated
 11700  // with a `DeliveryTime` for this product.
 11701  type ProductDeliveryTimeAreaDeliveryTime struct {
 11702  	// DeliveryArea: Required. The delivery area associated with `deliveryTime` for
 11703  	// this product.
 11704  	DeliveryArea *DeliveryArea `json:"deliveryArea,omitempty"`
 11705  	// DeliveryTime: Required. The delivery time associated with `deliveryArea` for
 11706  	// this product.
 11707  	DeliveryTime *ProductDeliveryTimeAreaDeliveryTimeDeliveryTime `json:"deliveryTime,omitempty"`
 11708  	// ForceSendFields is a list of field names (e.g. "DeliveryArea") to
 11709  	// unconditionally include in API requests. By default, fields with empty or
 11710  	// default values are omitted from API requests. See
 11711  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11712  	// details.
 11713  	ForceSendFields []string `json:"-"`
 11714  	// NullFields is a list of field names (e.g. "DeliveryArea") to include in API
 11715  	// requests with the JSON null value. By default, fields with empty values are
 11716  	// omitted from API requests. See
 11717  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11718  	NullFields []string `json:"-"`
 11719  }
 11720  
 11721  func (s *ProductDeliveryTimeAreaDeliveryTime) MarshalJSON() ([]byte, error) {
 11722  	type NoMethod ProductDeliveryTimeAreaDeliveryTime
 11723  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11724  }
 11725  
 11726  // ProductDeliveryTimeAreaDeliveryTimeDeliveryTime: A delivery time for this
 11727  // product.
 11728  type ProductDeliveryTimeAreaDeliveryTimeDeliveryTime struct {
 11729  	// MaxHandlingTimeDays: Required. The maximum number of business days
 11730  	// (inclusive) between when an order is placed and when the product ships. If a
 11731  	// product ships in the same day, set this value to 0.
 11732  	MaxHandlingTimeDays int64 `json:"maxHandlingTimeDays,omitempty"`
 11733  	// MaxTransitTimeDays: Required. The maximum number of business days
 11734  	// (inclusive) between when the product ships and when the product is
 11735  	// delivered.
 11736  	MaxTransitTimeDays int64 `json:"maxTransitTimeDays,omitempty"`
 11737  	// MinHandlingTimeDays: Required. The minimum number of business days
 11738  	// (inclusive) between when an order is placed and when the product ships. If a
 11739  	// product ships in the same day, set this value to 0.
 11740  	MinHandlingTimeDays int64 `json:"minHandlingTimeDays,omitempty"`
 11741  	// MinTransitTimeDays: Required. The minimum number of business days
 11742  	// (inclusive) between when the product ships and when the product is
 11743  	// delivered.
 11744  	MinTransitTimeDays int64 `json:"minTransitTimeDays,omitempty"`
 11745  	// ForceSendFields is a list of field names (e.g. "MaxHandlingTimeDays") to
 11746  	// unconditionally include in API requests. By default, fields with empty or
 11747  	// default values are omitted from API requests. See
 11748  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11749  	// details.
 11750  	ForceSendFields []string `json:"-"`
 11751  	// NullFields is a list of field names (e.g. "MaxHandlingTimeDays") to include
 11752  	// in API requests with the JSON null value. By default, fields with empty
 11753  	// values are omitted from API requests. See
 11754  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11755  	NullFields []string `json:"-"`
 11756  }
 11757  
 11758  func (s *ProductDeliveryTimeAreaDeliveryTimeDeliveryTime) MarshalJSON() ([]byte, error) {
 11759  	type NoMethod ProductDeliveryTimeAreaDeliveryTimeDeliveryTime
 11760  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11761  }
 11762  
 11763  type ProductDimension struct {
 11764  	// Unit: Required. The length units. Acceptable values are: - "in" - "cm"
 11765  	Unit string `json:"unit,omitempty"`
 11766  	// Value: Required. The length value represented as a number. The value can
 11767  	// have a maximum precision of four decimal places.
 11768  	Value float64 `json:"value,omitempty"`
 11769  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
 11770  	// include in API requests. By default, fields with empty or default values are
 11771  	// omitted from API requests. See
 11772  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11773  	// details.
 11774  	ForceSendFields []string `json:"-"`
 11775  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
 11776  	// with the JSON null value. By default, fields with empty values are omitted
 11777  	// from API requests. See
 11778  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11779  	NullFields []string `json:"-"`
 11780  }
 11781  
 11782  func (s *ProductDimension) MarshalJSON() ([]byte, error) {
 11783  	type NoMethod ProductDimension
 11784  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11785  }
 11786  
 11787  func (s *ProductDimension) UnmarshalJSON(data []byte) error {
 11788  	type NoMethod ProductDimension
 11789  	var s1 struct {
 11790  		Value gensupport.JSONFloat64 `json:"value"`
 11791  		*NoMethod
 11792  	}
 11793  	s1.NoMethod = (*NoMethod)(s)
 11794  	if err := json.Unmarshal(data, &s1); err != nil {
 11795  		return err
 11796  	}
 11797  	s.Value = float64(s1.Value)
 11798  	return nil
 11799  }
 11800  
 11801  // ProductId: The Content API ID of the product.
 11802  type ProductId struct {
 11803  	// ProductId: The Content API ID of the product, in the form
 11804  	// `channel:contentLanguage:targetCountry:offerId`.
 11805  	ProductId string `json:"productId,omitempty"`
 11806  	// ForceSendFields is a list of field names (e.g. "ProductId") to
 11807  	// unconditionally include in API requests. By default, fields with empty or
 11808  	// default values are omitted from API requests. See
 11809  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11810  	// details.
 11811  	ForceSendFields []string `json:"-"`
 11812  	// NullFields is a list of field names (e.g. "ProductId") to include in API
 11813  	// requests with the JSON null value. By default, fields with empty values are
 11814  	// omitted from API requests. See
 11815  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11816  	NullFields []string `json:"-"`
 11817  }
 11818  
 11819  func (s *ProductId) MarshalJSON() ([]byte, error) {
 11820  	type NoMethod ProductId
 11821  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11822  }
 11823  
 11824  // ProductIssue: An issue affecting specific product.
 11825  type ProductIssue struct {
 11826  	// Actions: A list of actionable steps that can be executed to solve the issue.
 11827  	// An example is requesting a re-review or providing arguments when merchant
 11828  	// disagrees with the issue. Actions that are supported in (your) third-party
 11829  	// application can be rendered as buttons and should be available to merchant
 11830  	// when they expand the issue.
 11831  	Actions []*Action `json:"actions,omitempty"`
 11832  	// Impact: Clarifies the severity of the issue. The summarizing message, if
 11833  	// present, should be shown right under the title for each issue. It helps
 11834  	// merchants to quickly understand the impact of the issue. The detailed
 11835  	// breakdown helps the merchant to fully understand the impact of the issue. It
 11836  	// can be rendered as dialog that opens when the merchant mouse over the
 11837  	// summarized impact statement. Issues with different severity can be styled
 11838  	// differently. They may use a different color or icon to signal the difference
 11839  	// between `ERROR`, `WARNING` and `INFO`.
 11840  	Impact *ProductIssueImpact `json:"impact,omitempty"`
 11841  	// PrerenderedContent: Details of the issue as a pre-rendered HTML. HTML
 11842  	// elements contain CSS classes that can be used to customize the style of the
 11843  	// content. Always sanitize the HTML before embedding it directly to your
 11844  	// application. The sanitizer needs to allow basic HTML tags, such as: `div`,
 11845  	// `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use
 11846  	// DOMPurify (https://www.npmjs.com/package/dompurify). CSS classes: *
 11847  	// `issue-detail` - top level container for the detail of the issue *
 11848  	// `callout-banners` - section of the `issue-detail` with callout banners *
 11849  	// `callout-banner` - single callout banner, inside `callout-banners` *
 11850  	// `callout-banner-info` - callout with important information (default) *
 11851  	// `callout-banner-warning` - callout with a warning * `callout-banner-error` -
 11852  	// callout informing about an error (most severe) * `issue-content` - section
 11853  	// of the `issue-detail`, contains multiple `content-element` *
 11854  	// `content-element` - content element such as a list, link or paragraph,
 11855  	// inside `issue-content` * `root-causes` - unordered list with items
 11856  	// describing root causes of the issue, inside `issue-content` *
 11857  	// `root-causes-intro` - intro text before the `root-causes` list, inside
 11858  	// `issue-content` * `segment` - section of the text, `span` inside paragraph *
 11859  	// `segment-attribute` - section of the text that represents a product
 11860  	// attribute, for example 'image\_link' * `segment-literal` - section of the
 11861  	// text that contains a special value, for example '0-1000 kg' * `segment-bold`
 11862  	// - section of the text that should be rendered as bold * `segment-italic` -
 11863  	// section of the text that should be rendered as italic * `tooltip` - used on
 11864  	// paragraphs that should be rendered with a tooltip. A section of the text in
 11865  	// such a paragraph will have a class `tooltip-text` and is intended to be
 11866  	// shown in a mouse over dialog. If the style is not used, the `tooltip-text`
 11867  	// section would be shown on a new line, after the main part of the text. *
 11868  	// `tooltip-text` - marks a section of the text within a `tooltip`, that is
 11869  	// intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a
 11870  	// section of the text within a `tooltip`, that can be replaced with a tooltip
 11871  	// icon, for example '?' or 'i'. By default, this section contains a `br` tag,
 11872  	// that is separating the main text and the tooltip text when the style is not
 11873  	// used. * `tooltip-style-question` - the tooltip shows helpful information,
 11874  	// can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds
 11875  	// additional information fitting to the context, can use the 'i' as an icon. *
 11876  	// `content-moderation` - marks the paragraph that explains how the issue was
 11877  	// identified. * `new-element` - Present for new elements added to the
 11878  	// pre-rendered content in the future. To make sure that a new content element
 11879  	// does not break your style, you can hide everything with this class.
 11880  	PrerenderedContent string `json:"prerenderedContent,omitempty"`
 11881  	// Title: Title of the issue.
 11882  	Title string `json:"title,omitempty"`
 11883  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
 11884  	// include in API requests. By default, fields with empty or default values are
 11885  	// omitted from API requests. See
 11886  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11887  	// details.
 11888  	ForceSendFields []string `json:"-"`
 11889  	// NullFields is a list of field names (e.g. "Actions") to include in API
 11890  	// requests with the JSON null value. By default, fields with empty values are
 11891  	// omitted from API requests. See
 11892  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11893  	NullFields []string `json:"-"`
 11894  }
 11895  
 11896  func (s *ProductIssue) MarshalJSON() ([]byte, error) {
 11897  	type NoMethod ProductIssue
 11898  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11899  }
 11900  
 11901  // ProductIssueImpact: Overall impact of product issue.
 11902  type ProductIssueImpact struct {
 11903  	// Breakdowns: Detailed impact breakdown. Explains the types of restriction the
 11904  	// issue has in different shopping destinations and territory. If present, it
 11905  	// should be rendered to the merchant. Can be shown as a mouse over dropdown or
 11906  	// a dialog. Each breakdown item represents a group of regions with the same
 11907  	// impact details.
 11908  	Breakdowns []*Breakdown `json:"breakdowns,omitempty"`
 11909  	// Message: Optional. Message summarizing the overall impact of the issue. If
 11910  	// present, it should be rendered to the merchant. For example: "Limits
 11911  	// visibility in France"
 11912  	Message string `json:"message,omitempty"`
 11913  	// Severity: The severity of the issue.
 11914  	//
 11915  	// Possible values:
 11916  	//   "SEVERITY_UNSPECIFIED" - Default value. Will never be provided by the API.
 11917  	//   "ERROR" - Causes either an account suspension or an item disapproval.
 11918  	// Errors should be resolved as soon as possible to ensure items are eligible
 11919  	// to appear in results again.
 11920  	//   "WARNING" - Warnings can negatively impact the performance of ads and can
 11921  	// lead to item or account suspensions in the future unless the issue is
 11922  	// resolved.
 11923  	//   "INFO" - Infos are suggested optimizations to increase data quality.
 11924  	// Resolving these issues is recommended, but not required.
 11925  	Severity string `json:"severity,omitempty"`
 11926  	// ForceSendFields is a list of field names (e.g. "Breakdowns") to
 11927  	// unconditionally include in API requests. By default, fields with empty or
 11928  	// default values are omitted from API requests. See
 11929  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11930  	// details.
 11931  	ForceSendFields []string `json:"-"`
 11932  	// NullFields is a list of field names (e.g. "Breakdowns") to include in API
 11933  	// requests with the JSON null value. By default, fields with empty values are
 11934  	// omitted from API requests. See
 11935  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11936  	NullFields []string `json:"-"`
 11937  }
 11938  
 11939  func (s *ProductIssueImpact) MarshalJSON() ([]byte, error) {
 11940  	type NoMethod ProductIssueImpact
 11941  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11942  }
 11943  
 11944  type ProductProductDetail struct {
 11945  	// AttributeName: The name of the product detail.
 11946  	AttributeName string `json:"attributeName,omitempty"`
 11947  	// AttributeValue: The value of the product detail.
 11948  	AttributeValue string `json:"attributeValue,omitempty"`
 11949  	// SectionName: The section header used to group a set of product details.
 11950  	SectionName string `json:"sectionName,omitempty"`
 11951  	// ForceSendFields is a list of field names (e.g. "AttributeName") to
 11952  	// unconditionally include in API requests. By default, fields with empty or
 11953  	// default values are omitted from API requests. See
 11954  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11955  	// details.
 11956  	ForceSendFields []string `json:"-"`
 11957  	// NullFields is a list of field names (e.g. "AttributeName") to include in API
 11958  	// requests with the JSON null value. By default, fields with empty values are
 11959  	// omitted from API requests. See
 11960  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11961  	NullFields []string `json:"-"`
 11962  }
 11963  
 11964  func (s *ProductProductDetail) MarshalJSON() ([]byte, error) {
 11965  	type NoMethod ProductProductDetail
 11966  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11967  }
 11968  
 11969  type ProductShipping struct {
 11970  	// Country: The CLDR territory code of the country to which an item will ship.
 11971  	Country string `json:"country,omitempty"`
 11972  	// LocationGroupName: The location where the shipping is applicable,
 11973  	// represented by a location group name.
 11974  	LocationGroupName string `json:"locationGroupName,omitempty"`
 11975  	// LocationId: The numeric ID of a location that the shipping rate applies to
 11976  	// as defined in the Google Ads API.
 11977  	LocationId int64 `json:"locationId,omitempty,string"`
 11978  	// MaxHandlingTime: Maximum handling time (inclusive) between when the order is
 11979  	// received and shipped in business days. 0 means that the order is shipped on
 11980  	// the same day as it's received if it happens before the cut-off time. Both
 11981  	// maxHandlingTime and maxTransitTime are required if providing shipping
 11982  	// speeds.
 11983  	MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"`
 11984  	// MaxTransitTime: Maximum transit time (inclusive) between when the order has
 11985  	// shipped and when it's delivered in business days. 0 means that the order is
 11986  	// delivered on the same day as it ships. Both maxHandlingTime and
 11987  	// maxTransitTime are required if providing shipping speeds.
 11988  	MaxTransitTime int64 `json:"maxTransitTime,omitempty,string"`
 11989  	// MinHandlingTime: Minimum handling time (inclusive) between when the order is
 11990  	// received and shipped in business days. 0 means that the order is shipped on
 11991  	// the same day as it's received if it happens before the cut-off time.
 11992  	// minHandlingTime can only be present together with maxHandlingTime; but it's
 11993  	// not required if maxHandlingTime is present.
 11994  	MinHandlingTime int64 `json:"minHandlingTime,omitempty,string"`
 11995  	// MinTransitTime: Minimum transit time (inclusive) between when the order has
 11996  	// shipped and when it's delivered in business days. 0 means that the order is
 11997  	// delivered on the same day as it ships. minTransitTime can only be present
 11998  	// together with maxTransitTime; but it's not required if maxTransitTime is
 11999  	// present.
 12000  	MinTransitTime int64 `json:"minTransitTime,omitempty,string"`
 12001  	// PostalCode: The postal code range that the shipping rate applies to,
 12002  	// represented by a postal code, a postal code prefix followed by a * wildcard,
 12003  	// a range between two postal codes or two postal code prefixes of equal
 12004  	// length.
 12005  	PostalCode string `json:"postalCode,omitempty"`
 12006  	// Price: Fixed shipping price, represented as a number.
 12007  	Price *Price `json:"price,omitempty"`
 12008  	// Region: The geographic region to which a shipping rate applies.
 12009  	Region string `json:"region,omitempty"`
 12010  	// Service: A free-form description of the service class or delivery speed.
 12011  	Service string `json:"service,omitempty"`
 12012  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
 12013  	// include in API requests. By default, fields with empty or default values are
 12014  	// omitted from API requests. See
 12015  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12016  	// details.
 12017  	ForceSendFields []string `json:"-"`
 12018  	// NullFields is a list of field names (e.g. "Country") to include in API
 12019  	// requests with the JSON null value. By default, fields with empty values are
 12020  	// omitted from API requests. See
 12021  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12022  	NullFields []string `json:"-"`
 12023  }
 12024  
 12025  func (s *ProductShipping) MarshalJSON() ([]byte, error) {
 12026  	type NoMethod ProductShipping
 12027  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12028  }
 12029  
 12030  type ProductShippingDimension struct {
 12031  	// Unit: The unit of value.
 12032  	Unit string `json:"unit,omitempty"`
 12033  	// Value: The dimension of the product used to calculate the shipping cost of
 12034  	// the item.
 12035  	Value float64 `json:"value,omitempty"`
 12036  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
 12037  	// include in API requests. By default, fields with empty or default values are
 12038  	// omitted from API requests. See
 12039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12040  	// details.
 12041  	ForceSendFields []string `json:"-"`
 12042  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
 12043  	// with the JSON null value. By default, fields with empty values are omitted
 12044  	// from API requests. See
 12045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12046  	NullFields []string `json:"-"`
 12047  }
 12048  
 12049  func (s *ProductShippingDimension) MarshalJSON() ([]byte, error) {
 12050  	type NoMethod ProductShippingDimension
 12051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12052  }
 12053  
 12054  func (s *ProductShippingDimension) UnmarshalJSON(data []byte) error {
 12055  	type NoMethod ProductShippingDimension
 12056  	var s1 struct {
 12057  		Value gensupport.JSONFloat64 `json:"value"`
 12058  		*NoMethod
 12059  	}
 12060  	s1.NoMethod = (*NoMethod)(s)
 12061  	if err := json.Unmarshal(data, &s1); err != nil {
 12062  		return err
 12063  	}
 12064  	s.Value = float64(s1.Value)
 12065  	return nil
 12066  }
 12067  
 12068  type ProductShippingWeight struct {
 12069  	// Unit: The unit of value.
 12070  	Unit string `json:"unit,omitempty"`
 12071  	// Value: The weight of the product used to calculate the shipping cost of the
 12072  	// item.
 12073  	Value float64 `json:"value,omitempty"`
 12074  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
 12075  	// include in API requests. By default, fields with empty or default values are
 12076  	// omitted from API requests. See
 12077  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12078  	// details.
 12079  	ForceSendFields []string `json:"-"`
 12080  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
 12081  	// with the JSON null value. By default, fields with empty values are omitted
 12082  	// from API requests. See
 12083  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12084  	NullFields []string `json:"-"`
 12085  }
 12086  
 12087  func (s *ProductShippingWeight) MarshalJSON() ([]byte, error) {
 12088  	type NoMethod ProductShippingWeight
 12089  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12090  }
 12091  
 12092  func (s *ProductShippingWeight) UnmarshalJSON(data []byte) error {
 12093  	type NoMethod ProductShippingWeight
 12094  	var s1 struct {
 12095  		Value gensupport.JSONFloat64 `json:"value"`
 12096  		*NoMethod
 12097  	}
 12098  	s1.NoMethod = (*NoMethod)(s)
 12099  	if err := json.Unmarshal(data, &s1); err != nil {
 12100  		return err
 12101  	}
 12102  	s.Value = float64(s1.Value)
 12103  	return nil
 12104  }
 12105  
 12106  // ProductStatus: The status of a product, that is, information about a product
 12107  // computed asynchronously.
 12108  type ProductStatus struct {
 12109  	// CreationDate: Date on which the item has been created, in ISO 8601 format.
 12110  	CreationDate string `json:"creationDate,omitempty"`
 12111  	// DestinationStatuses: The intended destinations for the product.
 12112  	DestinationStatuses []*ProductStatusDestinationStatus `json:"destinationStatuses,omitempty"`
 12113  	// GoogleExpirationDate: Date on which the item expires in Google Shopping, in
 12114  	// ISO 8601 format.
 12115  	GoogleExpirationDate string `json:"googleExpirationDate,omitempty"`
 12116  	// ItemLevelIssues: A list of all issues associated with the product.
 12117  	ItemLevelIssues []*ProductStatusItemLevelIssue `json:"itemLevelIssues,omitempty"`
 12118  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 12119  	// "content#productStatus"
 12120  	Kind string `json:"kind,omitempty"`
 12121  	// LastUpdateDate: Date on which the item has been last updated, in ISO 8601
 12122  	// format.
 12123  	LastUpdateDate string `json:"lastUpdateDate,omitempty"`
 12124  	// Link: The link to the product.
 12125  	Link string `json:"link,omitempty"`
 12126  	// ProductId: The ID of the product for which status is reported.
 12127  	ProductId string `json:"productId,omitempty"`
 12128  	// Title: The title of the product.
 12129  	Title string `json:"title,omitempty"`
 12130  
 12131  	// ServerResponse contains the HTTP response code and headers from the server.
 12132  	googleapi.ServerResponse `json:"-"`
 12133  	// ForceSendFields is a list of field names (e.g. "CreationDate") to
 12134  	// unconditionally include in API requests. By default, fields with empty or
 12135  	// default values are omitted from API requests. See
 12136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12137  	// details.
 12138  	ForceSendFields []string `json:"-"`
 12139  	// NullFields is a list of field names (e.g. "CreationDate") to include in API
 12140  	// requests with the JSON null value. By default, fields with empty values are
 12141  	// omitted from API requests. See
 12142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12143  	NullFields []string `json:"-"`
 12144  }
 12145  
 12146  func (s *ProductStatus) MarshalJSON() ([]byte, error) {
 12147  	type NoMethod ProductStatus
 12148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12149  }
 12150  
 12151  type ProductStatusDestinationStatus struct {
 12152  	// ApprovedCountries: List of country codes (ISO 3166-1 alpha-2) where the
 12153  	// offer is approved.
 12154  	ApprovedCountries []string `json:"approvedCountries,omitempty"`
 12155  	// Destination: The name of the destination
 12156  	Destination string `json:"destination,omitempty"`
 12157  	// DisapprovedCountries: List of country codes (ISO 3166-1 alpha-2) where the
 12158  	// offer is disapproved.
 12159  	DisapprovedCountries []string `json:"disapprovedCountries,omitempty"`
 12160  	// PendingCountries: List of country codes (ISO 3166-1 alpha-2) where the offer
 12161  	// is pending approval.
 12162  	PendingCountries []string `json:"pendingCountries,omitempty"`
 12163  	// Status: Deprecated. Destination approval status in `targetCountry` of the
 12164  	// offer.
 12165  	Status string `json:"status,omitempty"`
 12166  	// ForceSendFields is a list of field names (e.g. "ApprovedCountries") to
 12167  	// unconditionally include in API requests. By default, fields with empty or
 12168  	// default values are omitted from API requests. See
 12169  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12170  	// details.
 12171  	ForceSendFields []string `json:"-"`
 12172  	// NullFields is a list of field names (e.g. "ApprovedCountries") to include in
 12173  	// API requests with the JSON null value. By default, fields with empty values
 12174  	// are omitted from API requests. See
 12175  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12176  	NullFields []string `json:"-"`
 12177  }
 12178  
 12179  func (s *ProductStatusDestinationStatus) MarshalJSON() ([]byte, error) {
 12180  	type NoMethod ProductStatusDestinationStatus
 12181  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12182  }
 12183  
 12184  type ProductStatusItemLevelIssue struct {
 12185  	// ApplicableCountries: List of country codes (ISO 3166-1 alpha-2) where issue
 12186  	// applies to the offer.
 12187  	ApplicableCountries []string `json:"applicableCountries,omitempty"`
 12188  	// AttributeName: The attribute's name, if the issue is caused by a single
 12189  	// attribute.
 12190  	AttributeName string `json:"attributeName,omitempty"`
 12191  	// Code: The error code of the issue.
 12192  	Code string `json:"code,omitempty"`
 12193  	// Description: A short issue description in English.
 12194  	Description string `json:"description,omitempty"`
 12195  	// Destination: The destination the issue applies to.
 12196  	Destination string `json:"destination,omitempty"`
 12197  	// Detail: A detailed issue description in English.
 12198  	Detail string `json:"detail,omitempty"`
 12199  	// Documentation: The URL of a web page to help with resolving this issue.
 12200  	Documentation string `json:"documentation,omitempty"`
 12201  	// Resolution: Whether the issue can be resolved by the merchant.
 12202  	Resolution string `json:"resolution,omitempty"`
 12203  	// Servability: How this issue affects serving of the offer.
 12204  	Servability string `json:"servability,omitempty"`
 12205  	// ForceSendFields is a list of field names (e.g. "ApplicableCountries") to
 12206  	// unconditionally include in API requests. By default, fields with empty or
 12207  	// default values are omitted from API requests. See
 12208  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12209  	// details.
 12210  	ForceSendFields []string `json:"-"`
 12211  	// NullFields is a list of field names (e.g. "ApplicableCountries") to include
 12212  	// in API requests with the JSON null value. By default, fields with empty
 12213  	// values are omitted from API requests. See
 12214  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12215  	NullFields []string `json:"-"`
 12216  }
 12217  
 12218  func (s *ProductStatusItemLevelIssue) MarshalJSON() ([]byte, error) {
 12219  	type NoMethod ProductStatusItemLevelIssue
 12220  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12221  }
 12222  
 12223  // ProductStructuredDescription: Structured description, for algorithmically
 12224  // (AI)-generated descriptions. See description
 12225  // (https://support.google.com/merchants/answer/6324468#When_to_use) for more
 12226  // information.
 12227  type ProductStructuredDescription struct {
 12228  	// Content: Required. The description text. Maximum length is 5000 characters.
 12229  	Content string `json:"content,omitempty"`
 12230  	// DigitalSourceType: Optional. The digital source type. Acceptable values are:
 12231  	// - "trained_algorithmic_media" - "default"
 12232  	DigitalSourceType string `json:"digitalSourceType,omitempty"`
 12233  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 12234  	// include in API requests. By default, fields with empty or default values are
 12235  	// omitted from API requests. See
 12236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12237  	// details.
 12238  	ForceSendFields []string `json:"-"`
 12239  	// NullFields is a list of field names (e.g. "Content") to include in API
 12240  	// requests with the JSON null value. By default, fields with empty values are
 12241  	// omitted from API requests. See
 12242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12243  	NullFields []string `json:"-"`
 12244  }
 12245  
 12246  func (s *ProductStructuredDescription) MarshalJSON() ([]byte, error) {
 12247  	type NoMethod ProductStructuredDescription
 12248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12249  }
 12250  
 12251  // ProductStructuredTitle: Structured title, for algorithmically (AI)-generated
 12252  // titles. See title
 12253  // (https://support.google.com/merchants/answer/6324415#Whentouse) for more
 12254  // information.
 12255  type ProductStructuredTitle struct {
 12256  	// Content: Required. The title text. Maximum length is 150 characters.
 12257  	Content string `json:"content,omitempty"`
 12258  	// DigitalSourceType: Optional. The digital source type. Acceptable values are:
 12259  	// - "trained_algorithmic_media" - "default"
 12260  	DigitalSourceType string `json:"digitalSourceType,omitempty"`
 12261  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 12262  	// include in API requests. By default, fields with empty or default values are
 12263  	// omitted from API requests. See
 12264  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12265  	// details.
 12266  	ForceSendFields []string `json:"-"`
 12267  	// NullFields is a list of field names (e.g. "Content") to include in API
 12268  	// requests with the JSON null value. By default, fields with empty values are
 12269  	// omitted from API requests. See
 12270  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12271  	NullFields []string `json:"-"`
 12272  }
 12273  
 12274  func (s *ProductStructuredTitle) MarshalJSON() ([]byte, error) {
 12275  	type NoMethod ProductStructuredTitle
 12276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12277  }
 12278  
 12279  type ProductSubscriptionCost struct {
 12280  	// Amount: The amount the buyer has to pay per subscription period.
 12281  	Amount *Price `json:"amount,omitempty"`
 12282  	// Period: The type of subscription period. - "month" - "year"
 12283  	Period string `json:"period,omitempty"`
 12284  	// PeriodLength: The number of subscription periods the buyer has to pay.
 12285  	PeriodLength int64 `json:"periodLength,omitempty,string"`
 12286  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
 12287  	// include in API requests. By default, fields with empty or default values are
 12288  	// omitted from API requests. See
 12289  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12290  	// details.
 12291  	ForceSendFields []string `json:"-"`
 12292  	// NullFields is a list of field names (e.g. "Amount") to include in API
 12293  	// requests with the JSON null value. By default, fields with empty values are
 12294  	// omitted from API requests. See
 12295  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12296  	NullFields []string `json:"-"`
 12297  }
 12298  
 12299  func (s *ProductSubscriptionCost) MarshalJSON() ([]byte, error) {
 12300  	type NoMethod ProductSubscriptionCost
 12301  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12302  }
 12303  
 12304  type ProductTax struct {
 12305  	// Country: The country within which the item is taxed, specified as a CLDR
 12306  	// territory code.
 12307  	Country string `json:"country,omitempty"`
 12308  	// LocationId: The numeric ID of a location that the tax rate applies to as
 12309  	// defined in the Google Ads API.
 12310  	LocationId int64 `json:"locationId,omitempty,string"`
 12311  	// PostalCode: The postal code range that the tax rate applies to, represented
 12312  	// by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP
 12313  	// codes or two ZIP code prefixes of equal length. Examples: 94114, 94*,
 12314  	// 94002-95460, 94*-95*.
 12315  	PostalCode string `json:"postalCode,omitempty"`
 12316  	// Rate: The percentage of tax rate that applies to the item price.
 12317  	Rate float64 `json:"rate,omitempty"`
 12318  	// Region: The geographic region to which the tax rate applies.
 12319  	Region string `json:"region,omitempty"`
 12320  	// TaxShip: Should be set to true if tax is charged on shipping.
 12321  	TaxShip bool `json:"taxShip,omitempty"`
 12322  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
 12323  	// include in API requests. By default, fields with empty or default values are
 12324  	// omitted from API requests. See
 12325  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12326  	// details.
 12327  	ForceSendFields []string `json:"-"`
 12328  	// NullFields is a list of field names (e.g. "Country") to include in API
 12329  	// requests with the JSON null value. By default, fields with empty values are
 12330  	// omitted from API requests. See
 12331  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12332  	NullFields []string `json:"-"`
 12333  }
 12334  
 12335  func (s *ProductTax) MarshalJSON() ([]byte, error) {
 12336  	type NoMethod ProductTax
 12337  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12338  }
 12339  
 12340  func (s *ProductTax) UnmarshalJSON(data []byte) error {
 12341  	type NoMethod ProductTax
 12342  	var s1 struct {
 12343  		Rate gensupport.JSONFloat64 `json:"rate"`
 12344  		*NoMethod
 12345  	}
 12346  	s1.NoMethod = (*NoMethod)(s)
 12347  	if err := json.Unmarshal(data, &s1); err != nil {
 12348  		return err
 12349  	}
 12350  	s.Rate = float64(s1.Rate)
 12351  	return nil
 12352  }
 12353  
 12354  type ProductUnitPricingBaseMeasure struct {
 12355  	// Unit: The unit of the denominator.
 12356  	Unit string `json:"unit,omitempty"`
 12357  	// Value: The denominator of the unit price.
 12358  	Value int64 `json:"value,omitempty,string"`
 12359  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
 12360  	// include in API requests. By default, fields with empty or default values are
 12361  	// omitted from API requests. See
 12362  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12363  	// details.
 12364  	ForceSendFields []string `json:"-"`
 12365  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
 12366  	// with the JSON null value. By default, fields with empty values are omitted
 12367  	// from API requests. See
 12368  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12369  	NullFields []string `json:"-"`
 12370  }
 12371  
 12372  func (s *ProductUnitPricingBaseMeasure) MarshalJSON() ([]byte, error) {
 12373  	type NoMethod ProductUnitPricingBaseMeasure
 12374  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12375  }
 12376  
 12377  type ProductUnitPricingMeasure struct {
 12378  	// Unit: The unit of the measure.
 12379  	Unit string `json:"unit,omitempty"`
 12380  	// Value: The measure of an item.
 12381  	Value float64 `json:"value,omitempty"`
 12382  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
 12383  	// include in API requests. By default, fields with empty or default values are
 12384  	// omitted from API requests. See
 12385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12386  	// details.
 12387  	ForceSendFields []string `json:"-"`
 12388  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
 12389  	// with the JSON null value. By default, fields with empty values are omitted
 12390  	// from API requests. See
 12391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12392  	NullFields []string `json:"-"`
 12393  }
 12394  
 12395  func (s *ProductUnitPricingMeasure) MarshalJSON() ([]byte, error) {
 12396  	type NoMethod ProductUnitPricingMeasure
 12397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12398  }
 12399  
 12400  func (s *ProductUnitPricingMeasure) UnmarshalJSON(data []byte) error {
 12401  	type NoMethod ProductUnitPricingMeasure
 12402  	var s1 struct {
 12403  		Value gensupport.JSONFloat64 `json:"value"`
 12404  		*NoMethod
 12405  	}
 12406  	s1.NoMethod = (*NoMethod)(s)
 12407  	if err := json.Unmarshal(data, &s1); err != nil {
 12408  		return err
 12409  	}
 12410  	s.Value = float64(s1.Value)
 12411  	return nil
 12412  }
 12413  
 12414  // ProductView: Product fields. Values are only set for fields requested
 12415  // explicitly in the request's search query.
 12416  type ProductView struct {
 12417  	// AggregatedDestinationStatus: Aggregated destination status.
 12418  	//
 12419  	// Possible values:
 12420  	//   "AGGREGATED_STATUS_UNSPECIFIED" - Undefined aggregated status.
 12421  	//   "NOT_ELIGIBLE_OR_DISAPPROVED" - Offer isn't eligible, or is disapproved
 12422  	// for all destinations.
 12423  	//   "PENDING" - Offer's status is pending in all destinations.
 12424  	//   "ELIGIBLE_LIMITED" - Offer is eligible for some (but not all)
 12425  	// destinations.
 12426  	//   "ELIGIBLE" - Offer is eligible for all destinations.
 12427  	AggregatedDestinationStatus string `json:"aggregatedDestinationStatus,omitempty"`
 12428  	// Availability: Availability of the product.
 12429  	Availability string `json:"availability,omitempty"`
 12430  	// Brand: Brand of the product.
 12431  	Brand string `json:"brand,omitempty"`
 12432  	// CategoryL1: First level of the product category in Google's product taxonomy
 12433  	// (https://support.google.com/merchants/answer/6324436).
 12434  	CategoryL1 string `json:"categoryL1,omitempty"`
 12435  	// CategoryL2: Second level of the product category in Google's product
 12436  	// taxonomy (https://support.google.com/merchants/answer/6324436).
 12437  	CategoryL2 string `json:"categoryL2,omitempty"`
 12438  	// CategoryL3: Third level of the product category in Google's product taxonomy
 12439  	// (https://support.google.com/merchants/answer/6324436).
 12440  	CategoryL3 string `json:"categoryL3,omitempty"`
 12441  	// CategoryL4: Fourth level of the product category in Google's product
 12442  	// taxonomy (https://support.google.com/merchants/answer/6324436).
 12443  	CategoryL4 string `json:"categoryL4,omitempty"`
 12444  	// CategoryL5: Fifth level of the product category in Google's product taxonomy
 12445  	// (https://support.google.com/merchants/answer/6324436).
 12446  	CategoryL5 string `json:"categoryL5,omitempty"`
 12447  	// Channel: Channel of the product (online versus local).
 12448  	//
 12449  	// Possible values:
 12450  	//   "CHANNEL_UNSPECIFIED" - Indicates that the channel is unspecified.
 12451  	//   "LOCAL" - Indicates that the channel is local.
 12452  	//   "ONLINE" - Indicates that the channel is online.
 12453  	Channel string `json:"channel,omitempty"`
 12454  	// ClickPotential: Estimated performance potential compared to highest
 12455  	// performing products of the merchant.
 12456  	//
 12457  	// Possible values:
 12458  	//   "CLICK_POTENTIAL_UNSPECIFIED" - Unknown predicted clicks impact.
 12459  	//   "LOW" - Potential to receive a low number of clicks compared to the
 12460  	// highest performing products of the merchant.
 12461  	//   "MEDIUM" - Potential to receive a moderate number of clicks compared to
 12462  	// the highest performing products of the merchant.
 12463  	//   "HIGH" - Potential to receive a similar number of clicks as the highest
 12464  	// performing products of the merchant.
 12465  	ClickPotential string `json:"clickPotential,omitempty"`
 12466  	// ClickPotentialRank: Rank of the product based on its click potential. A
 12467  	// product with `click_potential_rank` 1 has the highest click potential among
 12468  	// the merchant's products that fulfill the search query conditions.
 12469  	ClickPotentialRank int64 `json:"clickPotentialRank,omitempty,string"`
 12470  	// Condition: Condition of the product.
 12471  	Condition string `json:"condition,omitempty"`
 12472  	// CreationTime: The time the merchant created the product in timestamp
 12473  	// seconds.
 12474  	CreationTime string `json:"creationTime,omitempty"`
 12475  	// CurrencyCode: Product price currency code (for example, ISO 4217). Absent if
 12476  	// product price is not available.
 12477  	CurrencyCode string `json:"currencyCode,omitempty"`
 12478  	// ExpirationDate: Expiration date for the product. Specified on insertion.
 12479  	ExpirationDate *Date `json:"expirationDate,omitempty"`
 12480  	// Gtin: GTIN of the product.
 12481  	Gtin []string `json:"gtin,omitempty"`
 12482  	// Id: The REST ID of the product, in the form of
 12483  	// channel:contentLanguage:targetCountry:offerId. Content API methods that
 12484  	// operate on products take this as their productId parameter. Should always be
 12485  	// included in the SELECT clause.
 12486  	Id string `json:"id,omitempty"`
 12487  	// ItemGroupId: Item group ID provided by the merchant for grouping variants
 12488  	// together.
 12489  	ItemGroupId string `json:"itemGroupId,omitempty"`
 12490  	// ItemIssues: List of item issues for the product.
 12491  	ItemIssues []*ProductViewItemIssue `json:"itemIssues,omitempty"`
 12492  	// LanguageCode: Language code of the product in BCP 47 format.
 12493  	LanguageCode string `json:"languageCode,omitempty"`
 12494  	// OfferId: Merchant-provided id of the product.
 12495  	OfferId string `json:"offerId,omitempty"`
 12496  	// PriceMicros: Product price specified as micros (1 millionth of a standard
 12497  	// unit, 1 USD = 1000000 micros) in the product currency. Absent in case the
 12498  	// information about the price of the product is not available.
 12499  	PriceMicros int64 `json:"priceMicros,omitempty,string"`
 12500  	// ProductTypeL1: First level of the product type in merchant's own product
 12501  	// taxonomy (https://support.google.com/merchants/answer/6324436).
 12502  	ProductTypeL1 string `json:"productTypeL1,omitempty"`
 12503  	// ProductTypeL2: Second level of the product type in merchant's own product
 12504  	// taxonomy (https://support.google.com/merchants/answer/6324436).
 12505  	ProductTypeL2 string `json:"productTypeL2,omitempty"`
 12506  	// ProductTypeL3: Third level of the product type in merchant's own product
 12507  	// taxonomy (https://support.google.com/merchants/answer/6324436).
 12508  	ProductTypeL3 string `json:"productTypeL3,omitempty"`
 12509  	// ProductTypeL4: Fourth level of the product type in merchant's own product
 12510  	// taxonomy (https://support.google.com/merchants/answer/6324436).
 12511  	ProductTypeL4 string `json:"productTypeL4,omitempty"`
 12512  	// ProductTypeL5: Fifth level of the product type in merchant's own product
 12513  	// taxonomy (https://support.google.com/merchants/answer/6324436).
 12514  	ProductTypeL5 string `json:"productTypeL5,omitempty"`
 12515  	// ShippingLabel: The normalized shipping label specified in the feed
 12516  	ShippingLabel string `json:"shippingLabel,omitempty"`
 12517  	// Title: Title of the product.
 12518  	Title string `json:"title,omitempty"`
 12519  	// ForceSendFields is a list of field names (e.g.
 12520  	// "AggregatedDestinationStatus") to unconditionally include in API requests.
 12521  	// By default, fields with empty or default values are omitted from API
 12522  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
 12523  	// for more details.
 12524  	ForceSendFields []string `json:"-"`
 12525  	// NullFields is a list of field names (e.g. "AggregatedDestinationStatus") to
 12526  	// include in API requests with the JSON null value. By default, fields with
 12527  	// empty values are omitted from API requests. See
 12528  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12529  	NullFields []string `json:"-"`
 12530  }
 12531  
 12532  func (s *ProductView) MarshalJSON() ([]byte, error) {
 12533  	type NoMethod ProductView
 12534  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12535  }
 12536  
 12537  // ProductViewItemIssue: Item issue associated with the product.
 12538  type ProductViewItemIssue struct {
 12539  	// IssueType: Item issue type.
 12540  	IssueType *ProductViewItemIssueItemIssueType `json:"issueType,omitempty"`
 12541  	// Resolution: Item issue resolution.
 12542  	//
 12543  	// Possible values:
 12544  	//   "UNKNOWN" - Unknown resolution type.
 12545  	//   "MERCHANT_ACTION" - The merchant has to fix the issue.
 12546  	//   "PENDING_PROCESSING" - The issue will be resolved automatically (for
 12547  	// example, image crawl), or Google review. No merchant action is required now.
 12548  	// Resolution might lead to another issue (for example, if crawl fails).
 12549  	Resolution string `json:"resolution,omitempty"`
 12550  	// Severity: Item issue severity.
 12551  	Severity *ProductViewItemIssueItemIssueSeverity `json:"severity,omitempty"`
 12552  	// ForceSendFields is a list of field names (e.g. "IssueType") to
 12553  	// unconditionally include in API requests. By default, fields with empty or
 12554  	// default values are omitted from API requests. See
 12555  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12556  	// details.
 12557  	ForceSendFields []string `json:"-"`
 12558  	// NullFields is a list of field names (e.g. "IssueType") to include in API
 12559  	// requests with the JSON null value. By default, fields with empty values are
 12560  	// omitted from API requests. See
 12561  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12562  	NullFields []string `json:"-"`
 12563  }
 12564  
 12565  func (s *ProductViewItemIssue) MarshalJSON() ([]byte, error) {
 12566  	type NoMethod ProductViewItemIssue
 12567  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12568  }
 12569  
 12570  // ProductViewItemIssueIssueSeverityPerDestination: Issue severity for all
 12571  // affected regions in a destination.
 12572  type ProductViewItemIssueIssueSeverityPerDestination struct {
 12573  	// DemotedCountries: List of demoted countries in the destination.
 12574  	DemotedCountries []string `json:"demotedCountries,omitempty"`
 12575  	// Destination: Issue destination.
 12576  	Destination string `json:"destination,omitempty"`
 12577  	// DisapprovedCountries: List of disapproved countries in the destination.
 12578  	DisapprovedCountries []string `json:"disapprovedCountries,omitempty"`
 12579  	// ForceSendFields is a list of field names (e.g. "DemotedCountries") to
 12580  	// unconditionally include in API requests. By default, fields with empty or
 12581  	// default values are omitted from API requests. See
 12582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12583  	// details.
 12584  	ForceSendFields []string `json:"-"`
 12585  	// NullFields is a list of field names (e.g. "DemotedCountries") to include in
 12586  	// API requests with the JSON null value. By default, fields with empty values
 12587  	// are omitted from API requests. See
 12588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12589  	NullFields []string `json:"-"`
 12590  }
 12591  
 12592  func (s *ProductViewItemIssueIssueSeverityPerDestination) MarshalJSON() ([]byte, error) {
 12593  	type NoMethod ProductViewItemIssueIssueSeverityPerDestination
 12594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12595  }
 12596  
 12597  // ProductViewItemIssueItemIssueSeverity: Severity of an issue per destination
 12598  // in a region, and aggregated severity.
 12599  type ProductViewItemIssueItemIssueSeverity struct {
 12600  	// AggregatedSeverity: Severity of an issue aggregated for destination.
 12601  	//
 12602  	// Possible values:
 12603  	//   "AGGREGATED_ISSUE_SEVERITY_UNSPECIFIED" - Undefined Issue severity.
 12604  	//   "DISAPPROVED" - Issue disapproves the product in at least one of the
 12605  	// selected destinations.
 12606  	//   "DEMOTED" - Issue demotes the product in all selected destinations it
 12607  	// affects.
 12608  	//   "PENDING" - Issue resolution is `PENDING_PROCESSING`.
 12609  	AggregatedSeverity string `json:"aggregatedSeverity,omitempty"`
 12610  	// SeverityPerDestination: Item issue severity for every destination.
 12611  	SeverityPerDestination []*ProductViewItemIssueIssueSeverityPerDestination `json:"severityPerDestination,omitempty"`
 12612  	// ForceSendFields is a list of field names (e.g. "AggregatedSeverity") to
 12613  	// unconditionally include in API requests. By default, fields with empty or
 12614  	// default values are omitted from API requests. See
 12615  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12616  	// details.
 12617  	ForceSendFields []string `json:"-"`
 12618  	// NullFields is a list of field names (e.g. "AggregatedSeverity") to include
 12619  	// in API requests with the JSON null value. By default, fields with empty
 12620  	// values are omitted from API requests. See
 12621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12622  	NullFields []string `json:"-"`
 12623  }
 12624  
 12625  func (s *ProductViewItemIssueItemIssueSeverity) MarshalJSON() ([]byte, error) {
 12626  	type NoMethod ProductViewItemIssueItemIssueSeverity
 12627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12628  }
 12629  
 12630  // ProductViewItemIssueItemIssueType: Type of the item issue.
 12631  type ProductViewItemIssueItemIssueType struct {
 12632  	// CanonicalAttribute: Canonical attribute name for attribute-specific issues.
 12633  	CanonicalAttribute string `json:"canonicalAttribute,omitempty"`
 12634  	// Code: Error code of the issue.
 12635  	Code string `json:"code,omitempty"`
 12636  	// ForceSendFields is a list of field names (e.g. "CanonicalAttribute") to
 12637  	// unconditionally include in API requests. By default, fields with empty or
 12638  	// default values are omitted from API requests. See
 12639  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12640  	// details.
 12641  	ForceSendFields []string `json:"-"`
 12642  	// NullFields is a list of field names (e.g. "CanonicalAttribute") to include
 12643  	// in API requests with the JSON null value. By default, fields with empty
 12644  	// values are omitted from API requests. See
 12645  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12646  	NullFields []string `json:"-"`
 12647  }
 12648  
 12649  func (s *ProductViewItemIssueItemIssueType) MarshalJSON() ([]byte, error) {
 12650  	type NoMethod ProductViewItemIssueItemIssueType
 12651  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12652  }
 12653  
 12654  type ProductWeight struct {
 12655  	// Unit: Required. The weight unit. Acceptable values are: - "g" - "kg" -
 12656  	// "oz" - "lb"
 12657  	Unit string `json:"unit,omitempty"`
 12658  	// Value: Required. The weight represented as a number. The weight can have a
 12659  	// maximum precision of four decimal places.
 12660  	Value float64 `json:"value,omitempty"`
 12661  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
 12662  	// include in API requests. By default, fields with empty or default values are
 12663  	// omitted from API requests. See
 12664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12665  	// details.
 12666  	ForceSendFields []string `json:"-"`
 12667  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
 12668  	// with the JSON null value. By default, fields with empty values are omitted
 12669  	// from API requests. See
 12670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12671  	NullFields []string `json:"-"`
 12672  }
 12673  
 12674  func (s *ProductWeight) MarshalJSON() ([]byte, error) {
 12675  	type NoMethod ProductWeight
 12676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12677  }
 12678  
 12679  func (s *ProductWeight) UnmarshalJSON(data []byte) error {
 12680  	type NoMethod ProductWeight
 12681  	var s1 struct {
 12682  		Value gensupport.JSONFloat64 `json:"value"`
 12683  		*NoMethod
 12684  	}
 12685  	s1.NoMethod = (*NoMethod)(s)
 12686  	if err := json.Unmarshal(data, &s1); err != nil {
 12687  		return err
 12688  	}
 12689  	s.Value = float64(s1.Value)
 12690  	return nil
 12691  }
 12692  
 12693  type ProductsCustomBatchRequest struct {
 12694  	// Entries: The request entries to be processed in the batch.
 12695  	Entries []*ProductsCustomBatchRequestEntry `json:"entries,omitempty"`
 12696  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 12697  	// include in API requests. By default, fields with empty or default values are
 12698  	// omitted from API requests. See
 12699  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12700  	// details.
 12701  	ForceSendFields []string `json:"-"`
 12702  	// NullFields is a list of field names (e.g. "Entries") to include in API
 12703  	// requests with the JSON null value. By default, fields with empty values are
 12704  	// omitted from API requests. See
 12705  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12706  	NullFields []string `json:"-"`
 12707  }
 12708  
 12709  func (s *ProductsCustomBatchRequest) MarshalJSON() ([]byte, error) {
 12710  	type NoMethod ProductsCustomBatchRequest
 12711  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12712  }
 12713  
 12714  // ProductsCustomBatchRequestEntry: A batch entry encoding a single non-batch
 12715  // products request.
 12716  type ProductsCustomBatchRequestEntry struct {
 12717  	// BatchId: An entry ID, unique within the batch request.
 12718  	BatchId int64 `json:"batchId,omitempty"`
 12719  	// FeedId: The Content API Supplemental Feed ID. If present then product
 12720  	// insertion or deletion applies to a supplemental feed instead of primary
 12721  	// Content API feed.
 12722  	FeedId uint64 `json:"feedId,omitempty,string"`
 12723  	// MerchantId: The ID of the managing account.
 12724  	MerchantId uint64 `json:"merchantId,omitempty,string"`
 12725  	// Method: The method of the batch entry. Acceptable values are: - "delete" -
 12726  	// "get" - "insert" - "update"
 12727  	Method string `json:"method,omitempty"`
 12728  	// Product: The product to insert or update. Only required if the method is
 12729  	// `insert` or `update`. If the `update` method is used with `updateMask` only
 12730  	// to delete a field, then this isn't required. For example, setting
 12731  	// `salePrice` on the `updateMask` and not providing a `product` will result in
 12732  	// an existing sale price on the product specified by `productId` being
 12733  	// deleted.
 12734  	Product *Product `json:"product,omitempty"`
 12735  	// ProductId: The ID of the product to get or mutate. Only defined if the
 12736  	// method is `get`, `delete`, or `update`.
 12737  	ProductId string `json:"productId,omitempty"`
 12738  	// UpdateMask: The comma-separated list of product attributes to be updated.
 12739  	// Example: "title,salePrice". Attributes specified in the update mask
 12740  	// without a value specified in the body will be deleted from the product. *You
 12741  	// must specify the update mask to delete attributes.* Only top-level product
 12742  	// attributes can be updated. If not defined, product attributes with set
 12743  	// values will be updated and other attributes will stay unchanged. Only
 12744  	// defined if the method is `update`.
 12745  	UpdateMask string `json:"updateMask,omitempty"`
 12746  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 12747  	// include in API requests. By default, fields with empty or default values are
 12748  	// omitted from API requests. See
 12749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12750  	// details.
 12751  	ForceSendFields []string `json:"-"`
 12752  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 12753  	// requests with the JSON null value. By default, fields with empty values are
 12754  	// omitted from API requests. See
 12755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12756  	NullFields []string `json:"-"`
 12757  }
 12758  
 12759  func (s *ProductsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
 12760  	type NoMethod ProductsCustomBatchRequestEntry
 12761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12762  }
 12763  
 12764  type ProductsCustomBatchResponse struct {
 12765  	// Entries: The result of the execution of the batch requests.
 12766  	Entries []*ProductsCustomBatchResponseEntry `json:"entries,omitempty"`
 12767  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 12768  	// "content#productsCustomBatchResponse".
 12769  	Kind string `json:"kind,omitempty"`
 12770  
 12771  	// ServerResponse contains the HTTP response code and headers from the server.
 12772  	googleapi.ServerResponse `json:"-"`
 12773  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 12774  	// include in API requests. By default, fields with empty or default values are
 12775  	// omitted from API requests. See
 12776  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12777  	// details.
 12778  	ForceSendFields []string `json:"-"`
 12779  	// NullFields is a list of field names (e.g. "Entries") to include in API
 12780  	// requests with the JSON null value. By default, fields with empty values are
 12781  	// omitted from API requests. See
 12782  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12783  	NullFields []string `json:"-"`
 12784  }
 12785  
 12786  func (s *ProductsCustomBatchResponse) MarshalJSON() ([]byte, error) {
 12787  	type NoMethod ProductsCustomBatchResponse
 12788  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12789  }
 12790  
 12791  // ProductsCustomBatchResponseEntry: A batch entry encoding a single non-batch
 12792  // products response.
 12793  type ProductsCustomBatchResponseEntry struct {
 12794  	// BatchId: The ID of the request entry this entry responds to.
 12795  	BatchId int64 `json:"batchId,omitempty"`
 12796  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
 12797  	// errors fail the whole request.
 12798  	Errors *Errors `json:"errors,omitempty"`
 12799  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 12800  	// "content#productsCustomBatchResponseEntry"
 12801  	Kind string `json:"kind,omitempty"`
 12802  	// Product: The inserted product. Only defined if the method is `insert` and if
 12803  	// the request was successful.
 12804  	Product *Product `json:"product,omitempty"`
 12805  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 12806  	// include in API requests. By default, fields with empty or default values are
 12807  	// omitted from API requests. See
 12808  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12809  	// details.
 12810  	ForceSendFields []string `json:"-"`
 12811  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 12812  	// requests with the JSON null value. By default, fields with empty values are
 12813  	// omitted from API requests. See
 12814  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12815  	NullFields []string `json:"-"`
 12816  }
 12817  
 12818  func (s *ProductsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
 12819  	type NoMethod ProductsCustomBatchResponseEntry
 12820  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12821  }
 12822  
 12823  type ProductsListResponse struct {
 12824  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 12825  	// "content#productsListResponse".
 12826  	Kind string `json:"kind,omitempty"`
 12827  	// NextPageToken: The token for the retrieval of the next page of products.
 12828  	NextPageToken string     `json:"nextPageToken,omitempty"`
 12829  	Resources     []*Product `json:"resources,omitempty"`
 12830  
 12831  	// ServerResponse contains the HTTP response code and headers from the server.
 12832  	googleapi.ServerResponse `json:"-"`
 12833  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 12834  	// include in API requests. By default, fields with empty or default values are
 12835  	// omitted from API requests. See
 12836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12837  	// details.
 12838  	ForceSendFields []string `json:"-"`
 12839  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 12840  	// with the JSON null value. By default, fields with empty values are omitted
 12841  	// from API requests. See
 12842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12843  	NullFields []string `json:"-"`
 12844  }
 12845  
 12846  func (s *ProductsListResponse) MarshalJSON() ([]byte, error) {
 12847  	type NoMethod ProductsListResponse
 12848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12849  }
 12850  
 12851  type ProductstatusesCustomBatchRequest struct {
 12852  	// Entries: The request entries to be processed in the batch.
 12853  	Entries []*ProductstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
 12854  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 12855  	// include in API requests. By default, fields with empty or default values are
 12856  	// omitted from API requests. See
 12857  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12858  	// details.
 12859  	ForceSendFields []string `json:"-"`
 12860  	// NullFields is a list of field names (e.g. "Entries") to include in API
 12861  	// requests with the JSON null value. By default, fields with empty values are
 12862  	// omitted from API requests. See
 12863  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12864  	NullFields []string `json:"-"`
 12865  }
 12866  
 12867  func (s *ProductstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
 12868  	type NoMethod ProductstatusesCustomBatchRequest
 12869  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12870  }
 12871  
 12872  // ProductstatusesCustomBatchRequestEntry: A batch entry encoding a single
 12873  // non-batch productstatuses request.
 12874  type ProductstatusesCustomBatchRequestEntry struct {
 12875  	// BatchId: An entry ID, unique within the batch request.
 12876  	BatchId int64 `json:"batchId,omitempty"`
 12877  	// Destinations: If set, only issues for the specified destinations are
 12878  	// returned, otherwise only issues for the Shopping destination.
 12879  	Destinations []string `json:"destinations,omitempty"`
 12880  	// IncludeAttributes: Deprecated: Setting this field has no effect and
 12881  	// attributes are never included.
 12882  	IncludeAttributes bool `json:"includeAttributes,omitempty"`
 12883  	// MerchantId: The ID of the managing account.
 12884  	MerchantId uint64 `json:"merchantId,omitempty,string"`
 12885  	// Method: The method of the batch entry. Acceptable values are: - "get"
 12886  	Method string `json:"method,omitempty"`
 12887  	// ProductId: The ID of the product whose status to get.
 12888  	ProductId string `json:"productId,omitempty"`
 12889  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 12890  	// include in API requests. By default, fields with empty or default values are
 12891  	// omitted from API requests. See
 12892  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12893  	// details.
 12894  	ForceSendFields []string `json:"-"`
 12895  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 12896  	// requests with the JSON null value. By default, fields with empty values are
 12897  	// omitted from API requests. See
 12898  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12899  	NullFields []string `json:"-"`
 12900  }
 12901  
 12902  func (s *ProductstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
 12903  	type NoMethod ProductstatusesCustomBatchRequestEntry
 12904  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12905  }
 12906  
 12907  type ProductstatusesCustomBatchResponse struct {
 12908  	// Entries: The result of the execution of the batch requests.
 12909  	Entries []*ProductstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
 12910  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 12911  	// "content#productstatusesCustomBatchResponse".
 12912  	Kind string `json:"kind,omitempty"`
 12913  
 12914  	// ServerResponse contains the HTTP response code and headers from the server.
 12915  	googleapi.ServerResponse `json:"-"`
 12916  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 12917  	// include in API requests. By default, fields with empty or default values are
 12918  	// omitted from API requests. See
 12919  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12920  	// details.
 12921  	ForceSendFields []string `json:"-"`
 12922  	// NullFields is a list of field names (e.g. "Entries") to include in API
 12923  	// requests with the JSON null value. By default, fields with empty values are
 12924  	// omitted from API requests. See
 12925  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12926  	NullFields []string `json:"-"`
 12927  }
 12928  
 12929  func (s *ProductstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
 12930  	type NoMethod ProductstatusesCustomBatchResponse
 12931  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12932  }
 12933  
 12934  // ProductstatusesCustomBatchResponseEntry: A batch entry encoding a single
 12935  // non-batch productstatuses response.
 12936  type ProductstatusesCustomBatchResponseEntry struct {
 12937  	// BatchId: The ID of the request entry this entry responds to.
 12938  	BatchId int64 `json:"batchId,omitempty"`
 12939  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
 12940  	// errors fail the whole request.
 12941  	Errors *Errors `json:"errors,omitempty"`
 12942  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 12943  	// "content#productstatusesCustomBatchResponseEntry"
 12944  	Kind string `json:"kind,omitempty"`
 12945  	// ProductStatus: The requested product status. Only defined if the request was
 12946  	// successful.
 12947  	ProductStatus *ProductStatus `json:"productStatus,omitempty"`
 12948  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 12949  	// include in API requests. By default, fields with empty or default values are
 12950  	// omitted from API requests. See
 12951  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12952  	// details.
 12953  	ForceSendFields []string `json:"-"`
 12954  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 12955  	// requests with the JSON null value. By default, fields with empty values are
 12956  	// omitted from API requests. See
 12957  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12958  	NullFields []string `json:"-"`
 12959  }
 12960  
 12961  func (s *ProductstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
 12962  	type NoMethod ProductstatusesCustomBatchResponseEntry
 12963  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12964  }
 12965  
 12966  type ProductstatusesListResponse struct {
 12967  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 12968  	// "content#productstatusesListResponse".
 12969  	Kind string `json:"kind,omitempty"`
 12970  	// NextPageToken: The token for the retrieval of the next page of products
 12971  	// statuses.
 12972  	NextPageToken string           `json:"nextPageToken,omitempty"`
 12973  	Resources     []*ProductStatus `json:"resources,omitempty"`
 12974  
 12975  	// ServerResponse contains the HTTP response code and headers from the server.
 12976  	googleapi.ServerResponse `json:"-"`
 12977  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 12978  	// include in API requests. By default, fields with empty or default values are
 12979  	// omitted from API requests. See
 12980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12981  	// details.
 12982  	ForceSendFields []string `json:"-"`
 12983  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 12984  	// with the JSON null value. By default, fields with empty values are omitted
 12985  	// from API requests. See
 12986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12987  	NullFields []string `json:"-"`
 12988  }
 12989  
 12990  func (s *ProductstatusesListResponse) MarshalJSON() ([]byte, error) {
 12991  	type NoMethod ProductstatusesListResponse
 12992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12993  }
 12994  
 12995  // Promotion: Represents a promotion. See the following articles for more
 12996  // details. * Promotions feed specification
 12997  // (https://support.google.com/merchants/answer/2906014) * Local promotions
 12998  // feed specification (https://support.google.com/merchants/answer/10146130) *
 12999  // Promotions on Buy on Google product data specification
 13000  // (https://support.google.com/merchants/answer/9173673)
 13001  type Promotion struct {
 13002  	// Brand: Product filter by brand for the promotion.
 13003  	Brand []string `json:"brand,omitempty"`
 13004  	// BrandExclusion: Product filter by brand exclusion for the promotion.
 13005  	BrandExclusion []string `json:"brandExclusion,omitempty"`
 13006  	// ContentLanguage: Required. The content language used as part of the unique
 13007  	// identifier. `en` content language is available for all target countries.
 13008  	// `fr` content language is available for `CA` and `FR` target countries. `de`
 13009  	// content language is available for `DE` target country. `nl` content language
 13010  	// is available for `NL` target country. `it` content language is available for
 13011  	// `IT` target country. `pt` content language is available for `BR` target
 13012  	// country. `ja` content language is available for `JP` target country. `ko`
 13013  	// content language is available for `KR` target country.
 13014  	ContentLanguage string `json:"contentLanguage,omitempty"`
 13015  	// CouponValueType: Required. Coupon value type for the promotion.
 13016  	//
 13017  	// Possible values:
 13018  	//   "COUPON_VALUE_TYPE_UNSPECIFIED" - Indicates that the coupon value type is
 13019  	// unspecified.
 13020  	//   "MONEY_OFF" - Money off coupon value type.
 13021  	//   "PERCENT_OFF" - Percent off coupon value type.
 13022  	//   "BUY_M_GET_N_MONEY_OFF" - Buy M quantity, get N money off coupon value
 13023  	// type. `buy_this_quantity` and `get_this_quantity` must be present.
 13024  	// `money_off_amount` must also be present.
 13025  	//   "BUY_M_GET_N_PERCENT_OFF" - Buy M quantity, get N percent off coupon value
 13026  	// type. `buy_this_quantity` and `get_this_quantity` must be present.
 13027  	// `percent_off_percentage` must also be present.
 13028  	//   "BUY_M_GET_MONEY_OFF" - Buy M quantity, get money off. `buy_this_quantity`
 13029  	// and `money_off_amount` must be present.
 13030  	//   "BUY_M_GET_PERCENT_OFF" - Buy M quantity, get money off.
 13031  	// `buy_this_quantity` and `percent_off_percentage` must be present.
 13032  	//   "FREE_GIFT" - Free gift with description only.
 13033  	//   "FREE_GIFT_WITH_VALUE" - Free gift with value (description is optional).
 13034  	//   "FREE_GIFT_WITH_ITEM_ID" - Free gift with item ID (description is
 13035  	// optional).
 13036  	//   "FREE_SHIPPING_STANDARD" - Standard free shipping coupon value type.
 13037  	//   "FREE_SHIPPING_OVERNIGHT" - Overnight free shipping coupon value type.
 13038  	//   "FREE_SHIPPING_TWO_DAY" - Two day free shipping coupon value type.
 13039  	CouponValueType string `json:"couponValueType,omitempty"`
 13040  	// FreeGiftDescription: Free gift description for the promotion.
 13041  	FreeGiftDescription string `json:"freeGiftDescription,omitempty"`
 13042  	// FreeGiftItemId: Free gift item ID for the promotion.
 13043  	FreeGiftItemId string `json:"freeGiftItemId,omitempty"`
 13044  	// FreeGiftValue: Free gift value for the promotion.
 13045  	FreeGiftValue *PriceAmount `json:"freeGiftValue,omitempty"`
 13046  	// GenericRedemptionCode: Generic redemption code for the promotion. To be used
 13047  	// with the `offerType` field.
 13048  	GenericRedemptionCode string `json:"genericRedemptionCode,omitempty"`
 13049  	// GetThisQuantityDiscounted: The number of items discounted in the promotion.
 13050  	GetThisQuantityDiscounted int64 `json:"getThisQuantityDiscounted,omitempty"`
 13051  	// Id: Output only. The REST promotion ID to uniquely identify the promotion.
 13052  	// Content API methods that operate on promotions take this as their
 13053  	// `promotionId` parameter. The REST ID for a promotion is of the form
 13054  	// channel:contentLanguage:targetCountry:promotionId The `channel` field has a
 13055  	// value of "online", "in_store", or "online_in_store".
 13056  	Id string `json:"id,omitempty"`
 13057  	// ItemGroupId: Product filter by item group ID for the promotion.
 13058  	ItemGroupId []string `json:"itemGroupId,omitempty"`
 13059  	// ItemGroupIdExclusion: Product filter by item group ID exclusion for the
 13060  	// promotion.
 13061  	ItemGroupIdExclusion []string `json:"itemGroupIdExclusion,omitempty"`
 13062  	// ItemId: Product filter by item ID for the promotion.
 13063  	ItemId []string `json:"itemId,omitempty"`
 13064  	// ItemIdExclusion: Product filter by item ID exclusion for the promotion.
 13065  	ItemIdExclusion []string `json:"itemIdExclusion,omitempty"`
 13066  	// LimitQuantity: Maximum purchase quantity for the promotion.
 13067  	LimitQuantity int64 `json:"limitQuantity,omitempty"`
 13068  	// LimitValue: Maximum purchase value for the promotion.
 13069  	LimitValue *PriceAmount `json:"limitValue,omitempty"`
 13070  	// LongTitle: Required. Long title for the promotion.
 13071  	LongTitle string `json:"longTitle,omitempty"`
 13072  	// MinimumPurchaseAmount: Minimum purchase amount for the promotion.
 13073  	MinimumPurchaseAmount *PriceAmount `json:"minimumPurchaseAmount,omitempty"`
 13074  	// MinimumPurchaseQuantity: Minimum purchase quantity for the promotion.
 13075  	MinimumPurchaseQuantity int64 `json:"minimumPurchaseQuantity,omitempty"`
 13076  	// MoneyBudget: Cost cap for the promotion.
 13077  	MoneyBudget *PriceAmount `json:"moneyBudget,omitempty"`
 13078  	// MoneyOffAmount: The money off amount offered in the promotion.
 13079  	MoneyOffAmount *PriceAmount `json:"moneyOffAmount,omitempty"`
 13080  	// OfferType: Required. Type of the promotion.
 13081  	//
 13082  	// Possible values:
 13083  	//   "OFFER_TYPE_UNSPECIFIED" - Unknown offer type.
 13084  	//   "NO_CODE" - Offer type without a code.
 13085  	//   "GENERIC_CODE" - Offer type with a code.
 13086  	OfferType string `json:"offerType,omitempty"`
 13087  	// OrderLimit: Order limit for the promotion.
 13088  	OrderLimit int64 `json:"orderLimit,omitempty"`
 13089  	// PercentOff: The percentage discount offered in the promotion.
 13090  	PercentOff int64 `json:"percentOff,omitempty"`
 13091  	// ProductApplicability: Required. Applicability of the promotion to either all
 13092  	// products or only specific products.
 13093  	//
 13094  	// Possible values:
 13095  	//   "PRODUCT_APPLICABILITY_UNSPECIFIED" - Which products the promotion applies
 13096  	// to is unknown.
 13097  	//   "ALL_PRODUCTS" - Applicable to all products.
 13098  	//   "SPECIFIC_PRODUCTS" - Applicable to only a single product or list of
 13099  	// products.
 13100  	ProductApplicability string `json:"productApplicability,omitempty"`
 13101  	// ProductType: Product filter by product type for the promotion.
 13102  	ProductType []string `json:"productType,omitempty"`
 13103  	// ProductTypeExclusion: Product filter by product type exclusion for the
 13104  	// promotion.
 13105  	ProductTypeExclusion []string `json:"productTypeExclusion,omitempty"`
 13106  	// PromotionDestinationIds: Destination ID for the promotion.
 13107  	PromotionDestinationIds []string `json:"promotionDestinationIds,omitempty"`
 13108  	// PromotionDisplayDates: String representation of the promotion display dates.
 13109  	// Deprecated. Use `promotion_display_time_period` instead.
 13110  	PromotionDisplayDates string `json:"promotionDisplayDates,omitempty"`
 13111  	// PromotionDisplayTimePeriod: `TimePeriod` representation of the promotion's
 13112  	// display dates.
 13113  	PromotionDisplayTimePeriod *TimePeriod `json:"promotionDisplayTimePeriod,omitempty"`
 13114  	// PromotionEffectiveDates: String representation of the promotion effective
 13115  	// dates. Deprecated. Use `promotion_effective_time_period` instead.
 13116  	PromotionEffectiveDates string `json:"promotionEffectiveDates,omitempty"`
 13117  	// PromotionEffectiveTimePeriod: Required. `TimePeriod` representation of the
 13118  	// promotion's effective dates.
 13119  	PromotionEffectiveTimePeriod *TimePeriod `json:"promotionEffectiveTimePeriod,omitempty"`
 13120  	// PromotionId: Required. The user provided promotion ID to uniquely identify
 13121  	// the promotion.
 13122  	PromotionId string `json:"promotionId,omitempty"`
 13123  	// PromotionStatus: Output only. The current status of the promotion.
 13124  	PromotionStatus *PromotionPromotionStatus `json:"promotionStatus,omitempty"`
 13125  	// PromotionUrl: URL to the page on the merchant's site where the promotion
 13126  	// shows. Local Inventory ads promotions throw an error if no promo url is
 13127  	// included. URL is used to confirm that the promotion is valid and can be
 13128  	// redeemed.
 13129  	PromotionUrl string `json:"promotionUrl,omitempty"`
 13130  	// RedemptionChannel: Required. Redemption channel for the promotion. At least
 13131  	// one channel is required.
 13132  	//
 13133  	// Possible values:
 13134  	//   "REDEMPTION_CHANNEL_UNSPECIFIED" - Indicates that the channel is
 13135  	// unspecified.
 13136  	//   "IN_STORE" - Indicates that the channel is in store.
 13137  	//   "ONLINE" - Indicates that the channel is online.
 13138  	RedemptionChannel []string `json:"redemptionChannel,omitempty"`
 13139  	// ShippingServiceNames: Shipping service names for the promotion.
 13140  	ShippingServiceNames []string `json:"shippingServiceNames,omitempty"`
 13141  	// StoreApplicability: Whether the promotion applies to all stores, or only
 13142  	// specified stores. Local Inventory ads promotions throw an error if no store
 13143  	// applicability is included. An INVALID_ARGUMENT error is thrown if
 13144  	// store_applicability is set to ALL_STORES and store_code or
 13145  	// score_code_exclusion is set to a value.
 13146  	//
 13147  	// Possible values:
 13148  	//   "STORE_APPLICABILITY_UNSPECIFIED" - Which store codes the promotion
 13149  	// applies to is unknown.
 13150  	//   "ALL_STORES" - Promotion applies to all stores.
 13151  	//   "SPECIFIC_STORES" - Promotion applies to only the specified stores.
 13152  	StoreApplicability string `json:"storeApplicability,omitempty"`
 13153  	// StoreCode: Store codes to include for the promotion.
 13154  	StoreCode []string `json:"storeCode,omitempty"`
 13155  	// StoreCodeExclusion: Store codes to exclude for the promotion.
 13156  	StoreCodeExclusion []string `json:"storeCodeExclusion,omitempty"`
 13157  	// TargetCountry: Required. The target country used as part of the unique
 13158  	// identifier. Can be `AU`, `CA`, `DE`, `FR`, `GB`, `IN`, `US`, `BR`, `ES`,
 13159  	// `NL`, `JP`, `IT` or `KR`.
 13160  	TargetCountry string `json:"targetCountry,omitempty"`
 13161  
 13162  	// ServerResponse contains the HTTP response code and headers from the server.
 13163  	googleapi.ServerResponse `json:"-"`
 13164  	// ForceSendFields is a list of field names (e.g. "Brand") to unconditionally
 13165  	// include in API requests. By default, fields with empty or default values are
 13166  	// omitted from API requests. See
 13167  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13168  	// details.
 13169  	ForceSendFields []string `json:"-"`
 13170  	// NullFields is a list of field names (e.g. "Brand") to include in API
 13171  	// requests with the JSON null value. By default, fields with empty values are
 13172  	// omitted from API requests. See
 13173  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13174  	NullFields []string `json:"-"`
 13175  }
 13176  
 13177  func (s *Promotion) MarshalJSON() ([]byte, error) {
 13178  	type NoMethod Promotion
 13179  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13180  }
 13181  
 13182  // PromotionPromotionStatus: The status of the promotion.
 13183  type PromotionPromotionStatus struct {
 13184  	// CreationDate: Date on which the promotion has been created in ISO 8601
 13185  	// (http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and offset, for
 13186  	// example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
 13187  	CreationDate string `json:"creationDate,omitempty"`
 13188  	// DestinationStatuses: The intended destinations for the promotion.
 13189  	DestinationStatuses []*PromotionPromotionStatusDestinationStatus `json:"destinationStatuses,omitempty"`
 13190  	// LastUpdateDate: Date on which the promotion status has been last updated in
 13191  	// ISO 8601 (http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and
 13192  	// offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
 13193  	LastUpdateDate string `json:"lastUpdateDate,omitempty"`
 13194  	// PromotionIssue: A list of issues associated with the promotion.
 13195  	PromotionIssue []*PromotionPromotionStatusPromotionIssue `json:"promotionIssue,omitempty"`
 13196  	// ForceSendFields is a list of field names (e.g. "CreationDate") to
 13197  	// unconditionally include in API requests. By default, fields with empty or
 13198  	// default values are omitted from API requests. See
 13199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13200  	// details.
 13201  	ForceSendFields []string `json:"-"`
 13202  	// NullFields is a list of field names (e.g. "CreationDate") to include in API
 13203  	// requests with the JSON null value. By default, fields with empty values are
 13204  	// omitted from API requests. See
 13205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13206  	NullFields []string `json:"-"`
 13207  }
 13208  
 13209  func (s *PromotionPromotionStatus) MarshalJSON() ([]byte, error) {
 13210  	type NoMethod PromotionPromotionStatus
 13211  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13212  }
 13213  
 13214  // PromotionPromotionStatusDestinationStatus: The destination status of the
 13215  // promotion.
 13216  type PromotionPromotionStatusDestinationStatus struct {
 13217  	// Destination: The name of the destination.
 13218  	Destination string `json:"destination,omitempty"`
 13219  	// Status: The status for the specified destination.
 13220  	//
 13221  	// Possible values:
 13222  	//   "STATE_UNSPECIFIED" - Unknown promotion state.
 13223  	//   "IN_REVIEW" - The promotion is under review.
 13224  	//   "REJECTED" - The promotion is disapproved
 13225  	//   "LIVE" - The promotion is approved and active.
 13226  	//   "STOPPED" - The promotion is stopped by merchant.
 13227  	//   "EXPIRED" - The promotion is no longer active.
 13228  	//   "PENDING" - The promotion is not stopped, and all reviews are approved,
 13229  	// but the active date is in the future.
 13230  	Status string `json:"status,omitempty"`
 13231  	// ForceSendFields is a list of field names (e.g. "Destination") to
 13232  	// unconditionally include in API requests. By default, fields with empty or
 13233  	// default values are omitted from API requests. See
 13234  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13235  	// details.
 13236  	ForceSendFields []string `json:"-"`
 13237  	// NullFields is a list of field names (e.g. "Destination") to include in API
 13238  	// requests with the JSON null value. By default, fields with empty values are
 13239  	// omitted from API requests. See
 13240  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13241  	NullFields []string `json:"-"`
 13242  }
 13243  
 13244  func (s *PromotionPromotionStatusDestinationStatus) MarshalJSON() ([]byte, error) {
 13245  	type NoMethod PromotionPromotionStatusDestinationStatus
 13246  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13247  }
 13248  
 13249  // PromotionPromotionStatusPromotionIssue: The issue associated with the
 13250  // promotion.
 13251  type PromotionPromotionStatusPromotionIssue struct {
 13252  	// Code: Code of the issue.
 13253  	Code string `json:"code,omitempty"`
 13254  	// Detail: Explanation of the issue.
 13255  	Detail string `json:"detail,omitempty"`
 13256  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 13257  	// include in API requests. By default, fields with empty or default values are
 13258  	// omitted from API requests. See
 13259  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13260  	// details.
 13261  	ForceSendFields []string `json:"-"`
 13262  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 13263  	// with the JSON null value. By default, fields with empty values are omitted
 13264  	// from API requests. See
 13265  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13266  	NullFields []string `json:"-"`
 13267  }
 13268  
 13269  func (s *PromotionPromotionStatusPromotionIssue) MarshalJSON() ([]byte, error) {
 13270  	type NoMethod PromotionPromotionStatusPromotionIssue
 13271  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13272  }
 13273  
 13274  // PubsubNotificationSettings: Settings for Pub/Sub notifications, all methods
 13275  // require that the caller is a direct user of the merchant center account.
 13276  type PubsubNotificationSettings struct {
 13277  	// CloudTopicName: Cloud pub/sub topic to which notifications are sent
 13278  	// (read-only).
 13279  	CloudTopicName string `json:"cloudTopicName,omitempty"`
 13280  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 13281  	// "content#pubsubNotificationSettings"
 13282  	Kind string `json:"kind,omitempty"`
 13283  	// RegisteredEvents: List of event types. Acceptable values are: -
 13284  	// "orderPendingShipment"
 13285  	RegisteredEvents []string `json:"registeredEvents,omitempty"`
 13286  
 13287  	// ServerResponse contains the HTTP response code and headers from the server.
 13288  	googleapi.ServerResponse `json:"-"`
 13289  	// ForceSendFields is a list of field names (e.g. "CloudTopicName") to
 13290  	// unconditionally include in API requests. By default, fields with empty or
 13291  	// default values are omitted from API requests. See
 13292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13293  	// details.
 13294  	ForceSendFields []string `json:"-"`
 13295  	// NullFields is a list of field names (e.g. "CloudTopicName") to include in
 13296  	// API requests with the JSON null value. By default, fields with empty values
 13297  	// are omitted from API requests. See
 13298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13299  	NullFields []string `json:"-"`
 13300  }
 13301  
 13302  func (s *PubsubNotificationSettings) MarshalJSON() ([]byte, error) {
 13303  	type NoMethod PubsubNotificationSettings
 13304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13305  }
 13306  
 13307  type RateGroup struct {
 13308  	// ApplicableShippingLabels: A list of shipping labels defining the products to
 13309  	// which this rate group applies to. This is a disjunction: only one of the
 13310  	// labels has to match for the rate group to apply. May only be empty for the
 13311  	// last rate group of a service. Required.
 13312  	ApplicableShippingLabels []string `json:"applicableShippingLabels,omitempty"`
 13313  	// CarrierRates: A list of carrier rates that can be referred to by `mainTable`
 13314  	// or `singleValue`.
 13315  	CarrierRates []*CarrierRate `json:"carrierRates,omitempty"`
 13316  	// MainTable: A table defining the rate group, when `singleValue` is not
 13317  	// expressive enough. Can only be set if `singleValue` is not set.
 13318  	MainTable *Table `json:"mainTable,omitempty"`
 13319  	// Name: Name of the rate group. Optional. If set has to be unique within
 13320  	// shipping service.
 13321  	Name string `json:"name,omitempty"`
 13322  	// SingleValue: The value of the rate group (for example, flat rate $10). Can
 13323  	// only be set if `mainTable` and `subtables` are not set.
 13324  	SingleValue *Value `json:"singleValue,omitempty"`
 13325  	// Subtables: A list of subtables referred to by `mainTable`. Can only be set
 13326  	// if `mainTable` is set.
 13327  	Subtables []*Table `json:"subtables,omitempty"`
 13328  	// ForceSendFields is a list of field names (e.g. "ApplicableShippingLabels")
 13329  	// to unconditionally include in API requests. By default, fields with empty or
 13330  	// default values are omitted from API requests. See
 13331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13332  	// details.
 13333  	ForceSendFields []string `json:"-"`
 13334  	// NullFields is a list of field names (e.g. "ApplicableShippingLabels") to
 13335  	// include in API requests with the JSON null value. By default, fields with
 13336  	// empty values are omitted from API requests. See
 13337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13338  	NullFields []string `json:"-"`
 13339  }
 13340  
 13341  func (s *RateGroup) MarshalJSON() ([]byte, error) {
 13342  	type NoMethod RateGroup
 13343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13344  }
 13345  
 13346  // Recommendation: Recommendations are suggested ways to improve your merchant
 13347  // account's performance. For example, to engage with a feature, or start using
 13348  // a new Google product.
 13349  type Recommendation struct {
 13350  	// AdditionalCallToAction: Output only. CTAs of this recommendation. Repeated.
 13351  	AdditionalCallToAction []*RecommendationCallToAction `json:"additionalCallToAction,omitempty"`
 13352  	// AdditionalDescriptions: Output only. List of additional localized
 13353  	// descriptions for a recommendation. Localication uses the `languageCode`
 13354  	// field in `GenerateRecommendations` requests. Not all description types are
 13355  	// guaranteed to be present and we recommend to rely on default description.
 13356  	AdditionalDescriptions []*RecommendationDescription `json:"additionalDescriptions,omitempty"`
 13357  	// Creative: Output only. Any creatives attached to the recommendation.
 13358  	// Repeated.
 13359  	Creative []*RecommendationCreative `json:"creative,omitempty"`
 13360  	// DefaultCallToAction: Optional. Default CTA of the recommendation.
 13361  	DefaultCallToAction *RecommendationCallToAction `json:"defaultCallToAction,omitempty"`
 13362  	// DefaultDescription: Optional. Localized recommendation description. The
 13363  	// localization the {@link `GenerateRecommendationsRequest.language_code`}
 13364  	// field in {@link `GenerateRecommendationsRequest`} requests.
 13365  	DefaultDescription string `json:"defaultDescription,omitempty"`
 13366  	// NumericalImpact: Optional. A numerical score of the impact from the
 13367  	// recommendation's description. For example, a recommendation might suggest an
 13368  	// upward trend in sales for a certain product. Higher number means larger
 13369  	// impact.
 13370  	NumericalImpact int64 `json:"numericalImpact,omitempty"`
 13371  	// Paid: Optional. Indicates whether a user needs to pay when they complete the
 13372  	// user journey suggested by the recommendation.
 13373  	Paid bool `json:"paid,omitempty"`
 13374  	// RecommendationName: Optional. Localized recommendation name. The
 13375  	// localization uses the {@link `GenerateRecommendationsRequest.language_code`}
 13376  	// field in {@link `GenerateRecommendationsRequest`} requests.
 13377  	RecommendationName string `json:"recommendationName,omitempty"`
 13378  	// SubType: Optional. Subtype of the recommendations. Only applicable when
 13379  	// multiple recommendations can be generated per type, and is used as an
 13380  	// identifier of recommendation under the same recommendation type.
 13381  	SubType string `json:"subType,omitempty"`
 13382  	// Title: Optional. Localized Recommendation Title. Localization uses the
 13383  	// {@link `GenerateRecommendationsRequest.language_code`} field in {@link
 13384  	// `GenerateRecommendationsRequest`} requests.
 13385  	Title string `json:"title,omitempty"`
 13386  	// Type: Output only. Type of the recommendation. List of currently available
 13387  	// recommendation types: - OPPORTUNITY_CREATE_NEW_COLLECTION -
 13388  	// OPPORTUNITY_CREATE_EMAIL_CAMPAIGN
 13389  	Type string `json:"type,omitempty"`
 13390  	// ForceSendFields is a list of field names (e.g. "AdditionalCallToAction") to
 13391  	// unconditionally include in API requests. By default, fields with empty or
 13392  	// default values are omitted from API requests. See
 13393  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13394  	// details.
 13395  	ForceSendFields []string `json:"-"`
 13396  	// NullFields is a list of field names (e.g. "AdditionalCallToAction") to
 13397  	// include in API requests with the JSON null value. By default, fields with
 13398  	// empty values are omitted from API requests. See
 13399  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13400  	NullFields []string `json:"-"`
 13401  }
 13402  
 13403  func (s *Recommendation) MarshalJSON() ([]byte, error) {
 13404  	type NoMethod Recommendation
 13405  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13406  }
 13407  
 13408  // RecommendationCallToAction: Call to action (CTA) that explains how a
 13409  // merchant can implement this recommendation
 13410  type RecommendationCallToAction struct {
 13411  	// Intent: Output only. Intent of the action. This value describes the intent
 13412  	// (for example, `OPEN_CREATE_EMAIL_CAMPAIGN_FLOW`) and can vary from
 13413  	// recommendation to recommendation. This value can change over time for the
 13414  	// same recommendation. Currently available intent values: -
 13415  	// OPEN_CREATE_EMAIL_CAMPAIGN_FLOW: Opens a user journey where they can create
 13416  	// a marketing email campaign. (No default URL) - OPEN_CREATE_COLLECTION_TAB:
 13417  	// Opens a user journey where they can create a collection
 13418  	// (https://support.google.com/merchants/answer/9703228) for their Merchant
 13419  	// account. (No default URL)
 13420  	Intent string `json:"intent,omitempty"`
 13421  	// LocalizedText: Output only. Localized text of the CTA. Optional.
 13422  	LocalizedText string `json:"localizedText,omitempty"`
 13423  	// Uri: Optional. URL of the CTA. This field will only be set for some
 13424  	// recommendations where there is a suggested landing URL. Otherwise it will be
 13425  	// set to an empty string. We recommend developers to use their own custom
 13426  	// landing page according to the description of the intent field above when
 13427  	// this uri field is empty.
 13428  	Uri string `json:"uri,omitempty"`
 13429  	// ForceSendFields is a list of field names (e.g. "Intent") to unconditionally
 13430  	// include in API requests. By default, fields with empty or default values are
 13431  	// omitted from API requests. See
 13432  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13433  	// details.
 13434  	ForceSendFields []string `json:"-"`
 13435  	// NullFields is a list of field names (e.g. "Intent") to include in API
 13436  	// requests with the JSON null value. By default, fields with empty values are
 13437  	// omitted from API requests. See
 13438  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13439  	NullFields []string `json:"-"`
 13440  }
 13441  
 13442  func (s *RecommendationCallToAction) MarshalJSON() ([]byte, error) {
 13443  	type NoMethod RecommendationCallToAction
 13444  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13445  }
 13446  
 13447  // RecommendationCreative: Creative is a multimedia attachment to
 13448  // recommendation that can be used on the frontend.
 13449  type RecommendationCreative struct {
 13450  	// Type: Type of the creative.
 13451  	//
 13452  	// Possible values:
 13453  	//   "CREATIVE_TYPE_UNSPECIFIED" - Default value. If provided, shall be
 13454  	// considered invalid.
 13455  	//   "VIDEO" - Video creatives.
 13456  	//   "PHOTO" - Photo creatives.
 13457  	Type string `json:"type,omitempty"`
 13458  	// Uri: URL of the creative.
 13459  	Uri string `json:"uri,omitempty"`
 13460  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
 13461  	// include in API requests. By default, fields with empty or default values are
 13462  	// omitted from API requests. See
 13463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13464  	// details.
 13465  	ForceSendFields []string `json:"-"`
 13466  	// NullFields is a list of field names (e.g. "Type") to include in API requests
 13467  	// with the JSON null value. By default, fields with empty values are omitted
 13468  	// from API requests. See
 13469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13470  	NullFields []string `json:"-"`
 13471  }
 13472  
 13473  func (s *RecommendationCreative) MarshalJSON() ([]byte, error) {
 13474  	type NoMethod RecommendationCreative
 13475  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13476  }
 13477  
 13478  // RecommendationDescription: Google-provided description for the
 13479  // recommendation.
 13480  type RecommendationDescription struct {
 13481  	// Text: Output only. Text of the description.
 13482  	Text string `json:"text,omitempty"`
 13483  	// Type: Output only. Type of the description.
 13484  	//
 13485  	// Possible values:
 13486  	//   "DESCRIPTION_TYPE_UNSPECIFIED" - Default value. Will never be provided by
 13487  	// the API.
 13488  	//   "SHORT" - Short description.
 13489  	//   "LONG" - Long description.
 13490  	Type string `json:"type,omitempty"`
 13491  	// ForceSendFields is a list of field names (e.g. "Text") to unconditionally
 13492  	// include in API requests. By default, fields with empty or default values are
 13493  	// omitted from API requests. See
 13494  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13495  	// details.
 13496  	ForceSendFields []string `json:"-"`
 13497  	// NullFields is a list of field names (e.g. "Text") to include in API requests
 13498  	// with the JSON null value. By default, fields with empty values are omitted
 13499  	// from API requests. See
 13500  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13501  	NullFields []string `json:"-"`
 13502  }
 13503  
 13504  func (s *RecommendationDescription) MarshalJSON() ([]byte, error) {
 13505  	type NoMethod RecommendationDescription
 13506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13507  }
 13508  
 13509  type RefundReason struct {
 13510  	// Description: Description of the reason.
 13511  	Description string `json:"description,omitempty"`
 13512  	// ReasonCode: Code of the refund reason. Acceptable values are: -
 13513  	// "adjustment" - "autoPostInternal" - "autoPostInvalidBillingAddress" -
 13514  	// "autoPostNoInventory" - "autoPostPriceError" -
 13515  	// "autoPostUndeliverableShippingAddress" - "couponAbuse" -
 13516  	// "courtesyAdjustment" - "customerCanceled" -
 13517  	// "customerDiscretionaryReturn" - "customerInitiatedMerchantCancel" -
 13518  	// "customerSupportRequested" - "deliveredLateByCarrier" -
 13519  	// "deliveredTooLate" - "expiredItem" - "failToPushOrderGoogleError" -
 13520  	// "failToPushOrderMerchantError" -
 13521  	// "failToPushOrderMerchantFulfillmentError" - "failToPushOrderToMerchant"
 13522  	// - "failToPushOrderToMerchantOutOfStock" - "feeAdjustment" -
 13523  	// "invalidCoupon" - "lateShipmentCredit" - "malformedShippingAddress" -
 13524  	// "merchantDidNotShipOnTime" - "noInventory" - "orderTimeout" -
 13525  	// "other" - "paymentAbuse" - "paymentDeclined" - "priceAdjustment" -
 13526  	// "priceError" - "productArrivedDamaged" - "productNotAsDescribed" -
 13527  	// "promoReallocation" - "qualityNotAsExpected" - "returnRefundAbuse" -
 13528  	// "shippingCostAdjustment" - "shippingPriceError" - "taxAdjustment" -
 13529  	// "taxError" - "undeliverableShippingAddress" -
 13530  	// "unsupportedPoBoxAddress" - "wrongProductShipped"
 13531  	ReasonCode string `json:"reasonCode,omitempty"`
 13532  	// ForceSendFields is a list of field names (e.g. "Description") to
 13533  	// unconditionally include in API requests. By default, fields with empty or
 13534  	// default values are omitted from API requests. See
 13535  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13536  	// details.
 13537  	ForceSendFields []string `json:"-"`
 13538  	// NullFields is a list of field names (e.g. "Description") to include in API
 13539  	// requests with the JSON null value. By default, fields with empty values are
 13540  	// omitted from API requests. See
 13541  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13542  	NullFields []string `json:"-"`
 13543  }
 13544  
 13545  func (s *RefundReason) MarshalJSON() ([]byte, error) {
 13546  	type NoMethod RefundReason
 13547  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13548  }
 13549  
 13550  // Region: Represents a geographic region that you can use as a target with
 13551  // both the `RegionalInventory` and `ShippingSettings` services. You can define
 13552  // regions as collections of either postal codes or, in some countries, using
 13553  // predefined geotargets.
 13554  type Region struct {
 13555  	// DisplayName: The display name of the region.
 13556  	DisplayName string `json:"displayName,omitempty"`
 13557  	// GeotargetArea: A list of geotargets that defines the region area.
 13558  	GeotargetArea *RegionGeoTargetArea `json:"geotargetArea,omitempty"`
 13559  	// MerchantId: Output only. Immutable. Merchant that owns the region.
 13560  	MerchantId int64 `json:"merchantId,omitempty,string"`
 13561  	// PostalCodeArea: A list of postal codes that defines the region area.
 13562  	PostalCodeArea *RegionPostalCodeArea `json:"postalCodeArea,omitempty"`
 13563  	// RegionId: Output only. Immutable. The ID uniquely identifying each region.
 13564  	RegionId string `json:"regionId,omitempty"`
 13565  	// RegionalInventoryEligible: Output only. Indicates if the region is eligible
 13566  	// to use in the Regional Inventory configuration.
 13567  	RegionalInventoryEligible bool `json:"regionalInventoryEligible,omitempty"`
 13568  	// ShippingEligible: Output only. Indicates if the region is eligible to use in
 13569  	// the Shipping Services configuration.
 13570  	ShippingEligible bool `json:"shippingEligible,omitempty"`
 13571  
 13572  	// ServerResponse contains the HTTP response code and headers from the server.
 13573  	googleapi.ServerResponse `json:"-"`
 13574  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
 13575  	// unconditionally include in API requests. By default, fields with empty or
 13576  	// default values are omitted from API requests. See
 13577  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13578  	// details.
 13579  	ForceSendFields []string `json:"-"`
 13580  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
 13581  	// requests with the JSON null value. By default, fields with empty values are
 13582  	// omitted from API requests. See
 13583  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13584  	NullFields []string `json:"-"`
 13585  }
 13586  
 13587  func (s *Region) MarshalJSON() ([]byte, error) {
 13588  	type NoMethod Region
 13589  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13590  }
 13591  
 13592  // RegionGeoTargetArea: A list of geotargets that defines the region area.
 13593  type RegionGeoTargetArea struct {
 13594  	// GeotargetCriteriaIds: Required. A non-empty list of location IDs
 13595  	// (https://developers.google.com/adwords/api/docs/appendix/geotargeting). They
 13596  	// must all be of the same location type (e.g., state).
 13597  	GeotargetCriteriaIds googleapi.Int64s `json:"geotargetCriteriaIds,omitempty"`
 13598  	// ForceSendFields is a list of field names (e.g. "GeotargetCriteriaIds") to
 13599  	// unconditionally include in API requests. By default, fields with empty or
 13600  	// default values are omitted from API requests. See
 13601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13602  	// details.
 13603  	ForceSendFields []string `json:"-"`
 13604  	// NullFields is a list of field names (e.g. "GeotargetCriteriaIds") to include
 13605  	// in API requests with the JSON null value. By default, fields with empty
 13606  	// values are omitted from API requests. See
 13607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13608  	NullFields []string `json:"-"`
 13609  }
 13610  
 13611  func (s *RegionGeoTargetArea) MarshalJSON() ([]byte, error) {
 13612  	type NoMethod RegionGeoTargetArea
 13613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13614  }
 13615  
 13616  // RegionPostalCodeArea: A list of postal codes that defines the region area.
 13617  // Note: All regions defined using postal codes are accessible via the
 13618  // account's `ShippingSettings.postalCodeGroups` resource.
 13619  type RegionPostalCodeArea struct {
 13620  	// PostalCodes: Required. A range of postal codes.
 13621  	PostalCodes []*RegionPostalCodeAreaPostalCodeRange `json:"postalCodes,omitempty"`
 13622  	// RegionCode: Required. CLDR territory code or the country the postal code
 13623  	// group applies to.
 13624  	RegionCode string `json:"regionCode,omitempty"`
 13625  	// ForceSendFields is a list of field names (e.g. "PostalCodes") to
 13626  	// unconditionally include in API requests. By default, fields with empty or
 13627  	// default values are omitted from API requests. See
 13628  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13629  	// details.
 13630  	ForceSendFields []string `json:"-"`
 13631  	// NullFields is a list of field names (e.g. "PostalCodes") to include in API
 13632  	// requests with the JSON null value. By default, fields with empty values are
 13633  	// omitted from API requests. See
 13634  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13635  	NullFields []string `json:"-"`
 13636  }
 13637  
 13638  func (s *RegionPostalCodeArea) MarshalJSON() ([]byte, error) {
 13639  	type NoMethod RegionPostalCodeArea
 13640  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13641  }
 13642  
 13643  // RegionPostalCodeAreaPostalCodeRange: A range of postal codes that defines
 13644  // the region area.
 13645  type RegionPostalCodeAreaPostalCodeRange struct {
 13646  	// Begin: Required. A postal code or a pattern of the form prefix* denoting the
 13647  	// inclusive lower bound of the range defining the area. Examples values:
 13648  	// "94108", "9410*", "9*".
 13649  	Begin string `json:"begin,omitempty"`
 13650  	// End: Optional. A postal code or a pattern of the form prefix* denoting the
 13651  	// inclusive upper bound of the range defining the area. It must have the same
 13652  	// length as postalCodeRangeBegin: if postalCodeRangeBegin is a postal code
 13653  	// then postalCodeRangeEnd must be a postal code too; if postalCodeRangeBegin
 13654  	// is a pattern then postalCodeRangeEnd must be a pattern with the same prefix
 13655  	// length. Optional: if not set, then the area is defined as being all the
 13656  	// postal codes matching postalCodeRangeBegin.
 13657  	End string `json:"end,omitempty"`
 13658  	// ForceSendFields is a list of field names (e.g. "Begin") to unconditionally
 13659  	// include in API requests. By default, fields with empty or default values are
 13660  	// omitted from API requests. See
 13661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13662  	// details.
 13663  	ForceSendFields []string `json:"-"`
 13664  	// NullFields is a list of field names (e.g. "Begin") to include in API
 13665  	// requests with the JSON null value. By default, fields with empty values are
 13666  	// omitted from API requests. See
 13667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13668  	NullFields []string `json:"-"`
 13669  }
 13670  
 13671  func (s *RegionPostalCodeAreaPostalCodeRange) MarshalJSON() ([]byte, error) {
 13672  	type NoMethod RegionPostalCodeAreaPostalCodeRange
 13673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13674  }
 13675  
 13676  // RegionalInventory: Regional inventory resource. contains the regional name
 13677  // and all attributes which are overridden for the specified region.
 13678  type RegionalInventory struct {
 13679  	// Availability: The availability of the product.
 13680  	Availability string `json:"availability,omitempty"`
 13681  	// CustomAttributes: A list of custom (merchant-provided) attributes. It can
 13682  	// also be used for submitting any attribute of the feed specification in its
 13683  	// generic form.
 13684  	CustomAttributes []*CustomAttribute `json:"customAttributes,omitempty"`
 13685  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 13686  	// "content#regionalInventory".
 13687  	Kind string `json:"kind,omitempty"`
 13688  	// Price: The price of the product.
 13689  	Price *Price `json:"price,omitempty"`
 13690  	// RegionId: The ID uniquely identifying each region.
 13691  	RegionId string `json:"regionId,omitempty"`
 13692  	// SalePrice: The sale price of the product. Mandatory if
 13693  	// `sale_price_effective_date` is defined.
 13694  	SalePrice *Price `json:"salePrice,omitempty"`
 13695  	// SalePriceEffectiveDate: A date range represented by a pair of ISO 8601 dates
 13696  	// separated by a space, comma, or slash. Both dates might be specified as
 13697  	// 'null' if undecided.
 13698  	SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`
 13699  
 13700  	// ServerResponse contains the HTTP response code and headers from the server.
 13701  	googleapi.ServerResponse `json:"-"`
 13702  	// ForceSendFields is a list of field names (e.g. "Availability") to
 13703  	// unconditionally include in API requests. By default, fields with empty or
 13704  	// default values are omitted from API requests. See
 13705  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13706  	// details.
 13707  	ForceSendFields []string `json:"-"`
 13708  	// NullFields is a list of field names (e.g. "Availability") to include in API
 13709  	// requests with the JSON null value. By default, fields with empty values are
 13710  	// omitted from API requests. See
 13711  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13712  	NullFields []string `json:"-"`
 13713  }
 13714  
 13715  func (s *RegionalInventory) MarshalJSON() ([]byte, error) {
 13716  	type NoMethod RegionalInventory
 13717  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13718  }
 13719  
 13720  type RegionalinventoryCustomBatchRequest struct {
 13721  	// Entries: The request entries to be processed in the batch.
 13722  	Entries []*RegionalinventoryCustomBatchRequestEntry `json:"entries,omitempty"`
 13723  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 13724  	// include in API requests. By default, fields with empty or default values are
 13725  	// omitted from API requests. See
 13726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13727  	// details.
 13728  	ForceSendFields []string `json:"-"`
 13729  	// NullFields is a list of field names (e.g. "Entries") to include in API
 13730  	// requests with the JSON null value. By default, fields with empty values are
 13731  	// omitted from API requests. See
 13732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13733  	NullFields []string `json:"-"`
 13734  }
 13735  
 13736  func (s *RegionalinventoryCustomBatchRequest) MarshalJSON() ([]byte, error) {
 13737  	type NoMethod RegionalinventoryCustomBatchRequest
 13738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13739  }
 13740  
 13741  // RegionalinventoryCustomBatchRequestEntry: A batch entry encoding a single
 13742  // non-batch regional inventory request.
 13743  type RegionalinventoryCustomBatchRequestEntry struct {
 13744  	// BatchId: An entry ID, unique within the batch request.
 13745  	BatchId int64 `json:"batchId,omitempty"`
 13746  	// MerchantId: The ID of the managing account.
 13747  	MerchantId uint64 `json:"merchantId,omitempty,string"`
 13748  	// Method: Method of the batch request entry. Acceptable values are: -
 13749  	// "insert"
 13750  	Method string `json:"method,omitempty"`
 13751  	// ProductId: The ID of the product for which to update price and availability.
 13752  	ProductId string `json:"productId,omitempty"`
 13753  	// RegionalInventory: Price and availability of the product.
 13754  	RegionalInventory *RegionalInventory `json:"regionalInventory,omitempty"`
 13755  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 13756  	// include in API requests. By default, fields with empty or default values are
 13757  	// omitted from API requests. See
 13758  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13759  	// details.
 13760  	ForceSendFields []string `json:"-"`
 13761  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 13762  	// requests with the JSON null value. By default, fields with empty values are
 13763  	// omitted from API requests. See
 13764  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13765  	NullFields []string `json:"-"`
 13766  }
 13767  
 13768  func (s *RegionalinventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
 13769  	type NoMethod RegionalinventoryCustomBatchRequestEntry
 13770  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13771  }
 13772  
 13773  type RegionalinventoryCustomBatchResponse struct {
 13774  	// Entries: The result of the execution of the batch requests.
 13775  	Entries []*RegionalinventoryCustomBatchResponseEntry `json:"entries,omitempty"`
 13776  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 13777  	// "content#regionalinventoryCustomBatchResponse".
 13778  	Kind string `json:"kind,omitempty"`
 13779  
 13780  	// ServerResponse contains the HTTP response code and headers from the server.
 13781  	googleapi.ServerResponse `json:"-"`
 13782  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 13783  	// include in API requests. By default, fields with empty or default values are
 13784  	// omitted from API requests. See
 13785  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13786  	// details.
 13787  	ForceSendFields []string `json:"-"`
 13788  	// NullFields is a list of field names (e.g. "Entries") to include in API
 13789  	// requests with the JSON null value. By default, fields with empty values are
 13790  	// omitted from API requests. See
 13791  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13792  	NullFields []string `json:"-"`
 13793  }
 13794  
 13795  func (s *RegionalinventoryCustomBatchResponse) MarshalJSON() ([]byte, error) {
 13796  	type NoMethod RegionalinventoryCustomBatchResponse
 13797  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13798  }
 13799  
 13800  // RegionalinventoryCustomBatchResponseEntry: A batch entry encoding a single
 13801  // non-batch regional inventory response.
 13802  type RegionalinventoryCustomBatchResponseEntry struct {
 13803  	// BatchId: The ID of the request entry this entry responds to.
 13804  	BatchId int64 `json:"batchId,omitempty"`
 13805  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
 13806  	// errors fail the whole request.
 13807  	Errors *Errors `json:"errors,omitempty"`
 13808  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 13809  	// "content#regionalinventoryCustomBatchResponseEntry".
 13810  	Kind string `json:"kind,omitempty"`
 13811  	// RegionalInventory: Price and availability of the product.
 13812  	RegionalInventory *RegionalInventory `json:"regionalInventory,omitempty"`
 13813  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 13814  	// include in API requests. By default, fields with empty or default values are
 13815  	// omitted from API requests. See
 13816  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13817  	// details.
 13818  	ForceSendFields []string `json:"-"`
 13819  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 13820  	// requests with the JSON null value. By default, fields with empty values are
 13821  	// omitted from API requests. See
 13822  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13823  	NullFields []string `json:"-"`
 13824  }
 13825  
 13826  func (s *RegionalinventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
 13827  	type NoMethod RegionalinventoryCustomBatchResponseEntry
 13828  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13829  }
 13830  
 13831  // RenderAccountIssuesRequestPayload: The payload for configuring how the
 13832  // content should be rendered.
 13833  type RenderAccountIssuesRequestPayload struct {
 13834  	// ContentOption: Optional. How the detailed content should be returned.
 13835  	// Default option is to return the content as a pre-rendered HTML text.
 13836  	//
 13837  	// Possible values:
 13838  	//   "CONTENT_OPTION_UNSPECIFIED" - Default value. Will never be provided by
 13839  	// the API.
 13840  	//   "PRE_RENDERED_HTML" - Returns the detail of the issue as a pre-rendered
 13841  	// HTML text.
 13842  	ContentOption string `json:"contentOption,omitempty"`
 13843  	// UserInputActionOption: Optional. How actions with user input form should be
 13844  	// handled. If not provided, actions will be returned as links that points
 13845  	// merchant to Merchant Center where they can request the action.
 13846  	//
 13847  	// Possible values:
 13848  	//   "USER_INPUT_ACTION_RENDERING_OPTION_UNSPECIFIED" - Default value. Will
 13849  	// never be provided by the API.
 13850  	//   "REDIRECT_TO_MERCHANT_CENTER" - Actions that require user input are
 13851  	// represented only as links that points merchant to Merchant Center where they
 13852  	// can request the action. Provides easier to implement alternative to
 13853  	// `BUILT_IN_USER_INPUT_ACTIONS`.
 13854  	//   "BUILT_IN_USER_INPUT_ACTIONS" - Returns content and input form definition
 13855  	// for each complex action. Your application needs to display this content and
 13856  	// input form to the merchant before they can request processing of the action.
 13857  	// To start the action, your application needs to call the `triggeraction`
 13858  	// method.
 13859  	UserInputActionOption string `json:"userInputActionOption,omitempty"`
 13860  	// ForceSendFields is a list of field names (e.g. "ContentOption") to
 13861  	// unconditionally include in API requests. By default, fields with empty or
 13862  	// default values are omitted from API requests. See
 13863  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13864  	// details.
 13865  	ForceSendFields []string `json:"-"`
 13866  	// NullFields is a list of field names (e.g. "ContentOption") to include in API
 13867  	// requests with the JSON null value. By default, fields with empty values are
 13868  	// omitted from API requests. See
 13869  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13870  	NullFields []string `json:"-"`
 13871  }
 13872  
 13873  func (s *RenderAccountIssuesRequestPayload) MarshalJSON() ([]byte, error) {
 13874  	type NoMethod RenderAccountIssuesRequestPayload
 13875  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13876  }
 13877  
 13878  // RenderAccountIssuesResponse: Response containing support content and actions
 13879  // for listed account issues.
 13880  type RenderAccountIssuesResponse struct {
 13881  	// AlternateDisputeResolution: The Alternate Dispute Resolution (ADR) contains
 13882  	// a link to a page where merchant can bring their appeal to an external body
 13883  	// (https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501).
 13884  	// If the ADR is present, it MUST be available to the merchant on the page that
 13885  	// shows the list with their account issues.
 13886  	AlternateDisputeResolution *AlternateDisputeResolution `json:"alternateDisputeResolution,omitempty"`
 13887  	// Issues: List of account issues for a given account. This list can be shown
 13888  	// with compressed, expandable items. In the compressed form, the title and
 13889  	// impact should be shown for each issue. Once the issue is expanded, the
 13890  	// detailed content and available actions should be rendered.
 13891  	Issues []*AccountIssue `json:"issues,omitempty"`
 13892  
 13893  	// ServerResponse contains the HTTP response code and headers from the server.
 13894  	googleapi.ServerResponse `json:"-"`
 13895  	// ForceSendFields is a list of field names (e.g. "AlternateDisputeResolution")
 13896  	// to unconditionally include in API requests. By default, fields with empty or
 13897  	// default values are omitted from API requests. See
 13898  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13899  	// details.
 13900  	ForceSendFields []string `json:"-"`
 13901  	// NullFields is a list of field names (e.g. "AlternateDisputeResolution") to
 13902  	// include in API requests with the JSON null value. By default, fields with
 13903  	// empty values are omitted from API requests. See
 13904  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13905  	NullFields []string `json:"-"`
 13906  }
 13907  
 13908  func (s *RenderAccountIssuesResponse) MarshalJSON() ([]byte, error) {
 13909  	type NoMethod RenderAccountIssuesResponse
 13910  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13911  }
 13912  
 13913  // RenderProductIssuesRequestPayload: The payload for configuring how the
 13914  // content should be rendered.
 13915  type RenderProductIssuesRequestPayload struct {
 13916  	// ContentOption: Optional. How the detailed content should be returned.
 13917  	// Default option is to return the content as a pre-rendered HTML text.
 13918  	//
 13919  	// Possible values:
 13920  	//   "CONTENT_OPTION_UNSPECIFIED" - Default value. Will never be provided by
 13921  	// the API.
 13922  	//   "PRE_RENDERED_HTML" - Returns the detail of the issue as a pre-rendered
 13923  	// HTML text.
 13924  	ContentOption string `json:"contentOption,omitempty"`
 13925  	// UserInputActionOption: Optional. How actions with user input form should be
 13926  	// handled. If not provided, actions will be returned as links that points
 13927  	// merchant to Merchant Center where they can request the action.
 13928  	//
 13929  	// Possible values:
 13930  	//   "USER_INPUT_ACTION_RENDERING_OPTION_UNSPECIFIED" - Default value. Will
 13931  	// never be provided by the API.
 13932  	//   "REDIRECT_TO_MERCHANT_CENTER" - Actions that require user input are
 13933  	// represented only as links that points merchant to Merchant Center where they
 13934  	// can request the action. Provides easier to implement alternative to
 13935  	// `BUILT_IN_USER_INPUT_ACTIONS`.
 13936  	//   "BUILT_IN_USER_INPUT_ACTIONS" - Returns content and input form definition
 13937  	// for each complex action. Your application needs to display this content and
 13938  	// input form to the merchant before they can request processing of the action.
 13939  	// To start the action, your application needs to call the `triggeraction`
 13940  	// method.
 13941  	UserInputActionOption string `json:"userInputActionOption,omitempty"`
 13942  	// ForceSendFields is a list of field names (e.g. "ContentOption") to
 13943  	// unconditionally include in API requests. By default, fields with empty or
 13944  	// default values are omitted from API requests. See
 13945  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13946  	// details.
 13947  	ForceSendFields []string `json:"-"`
 13948  	// NullFields is a list of field names (e.g. "ContentOption") to include in API
 13949  	// requests with the JSON null value. By default, fields with empty values are
 13950  	// omitted from API requests. See
 13951  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13952  	NullFields []string `json:"-"`
 13953  }
 13954  
 13955  func (s *RenderProductIssuesRequestPayload) MarshalJSON() ([]byte, error) {
 13956  	type NoMethod RenderProductIssuesRequestPayload
 13957  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13958  }
 13959  
 13960  // RenderProductIssuesResponse: Response containing support content and actions
 13961  // for listed product issues.
 13962  type RenderProductIssuesResponse struct {
 13963  	// AlternateDisputeResolution: The Alternate Dispute Resolution (ADR) contains
 13964  	// a link to a page where merchant can bring their appeal to an external body
 13965  	// (https://support.google.com/european-union-digital-services-act-redress-options/answer/13535501).
 13966  	// If present, the link should be shown on the same page as the list of issues.
 13967  	AlternateDisputeResolution *AlternateDisputeResolution `json:"alternateDisputeResolution,omitempty"`
 13968  	// Issues: List of issues for a given product. This list can be shown with
 13969  	// compressed, expandable items. In the compressed form, the title and impact
 13970  	// should be shown for each issue. Once the issue is expanded, the detailed
 13971  	// content and available actions should be rendered.
 13972  	Issues []*ProductIssue `json:"issues,omitempty"`
 13973  
 13974  	// ServerResponse contains the HTTP response code and headers from the server.
 13975  	googleapi.ServerResponse `json:"-"`
 13976  	// ForceSendFields is a list of field names (e.g. "AlternateDisputeResolution")
 13977  	// to unconditionally include in API requests. By default, fields with empty or
 13978  	// default values are omitted from API requests. See
 13979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 13980  	// details.
 13981  	ForceSendFields []string `json:"-"`
 13982  	// NullFields is a list of field names (e.g. "AlternateDisputeResolution") to
 13983  	// include in API requests with the JSON null value. By default, fields with
 13984  	// empty values are omitted from API requests. See
 13985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 13986  	NullFields []string `json:"-"`
 13987  }
 13988  
 13989  func (s *RenderProductIssuesResponse) MarshalJSON() ([]byte, error) {
 13990  	type NoMethod RenderProductIssuesResponse
 13991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 13992  }
 13993  
 13994  // ReportInteractionRequest: Request to report interactions on a
 13995  // recommendation.
 13996  type ReportInteractionRequest struct {
 13997  	// InteractionType: Required. Type of the interaction that is reported, for
 13998  	// example INTERACTION_CLICK.
 13999  	//
 14000  	// Possible values:
 14001  	//   "INTERACTION_TYPE_UNSPECIFIED" - Default value. If provided, the service
 14002  	// will throw ApiError with description "Required parameter: interactionType".
 14003  	//   "INTERACTION_DISMISS" - When a recommendation is dismissed.
 14004  	//   "INTERACTION_CLICK" - When a recommendation is clicked.
 14005  	InteractionType string `json:"interactionType,omitempty"`
 14006  	// ResponseToken: Required. Token of the response when recommendation was
 14007  	// returned.
 14008  	ResponseToken string `json:"responseToken,omitempty"`
 14009  	// Subtype: Optional. Subtype of the recommendations this interaction happened
 14010  	// on. This field must be set only to the value that is returned by {@link
 14011  	// `RecommendationsService.GenerateRecommendations`} call.
 14012  	Subtype string `json:"subtype,omitempty"`
 14013  	// Type: Required. Type of the recommendations on which this interaction
 14014  	// happened. This field must be set only to the value that is returned by
 14015  	// {@link `GenerateRecommendationsResponse`} call.
 14016  	Type string `json:"type,omitempty"`
 14017  	// ForceSendFields is a list of field names (e.g. "InteractionType") to
 14018  	// unconditionally include in API requests. By default, fields with empty or
 14019  	// default values are omitted from API requests. See
 14020  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14021  	// details.
 14022  	ForceSendFields []string `json:"-"`
 14023  	// NullFields is a list of field names (e.g. "InteractionType") to include in
 14024  	// API requests with the JSON null value. By default, fields with empty values
 14025  	// are omitted from API requests. See
 14026  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14027  	NullFields []string `json:"-"`
 14028  }
 14029  
 14030  func (s *ReportInteractionRequest) MarshalJSON() ([]byte, error) {
 14031  	type NoMethod ReportInteractionRequest
 14032  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14033  }
 14034  
 14035  // ReportRow: Result row returned from the search query.
 14036  type ReportRow struct {
 14037  	// BestSellers: Best sellers fields requested by the merchant in the query.
 14038  	// Field values are only set if the merchant queries
 14039  	// `BestSellersProductClusterView` or `BestSellersBrandView`.
 14040  	BestSellers *BestSellers `json:"bestSellers,omitempty"`
 14041  	// Brand: Brand fields requested by the merchant in the query. Field values are
 14042  	// only set if the merchant queries `BestSellersBrandView`.
 14043  	Brand *Brand `json:"brand,omitempty"`
 14044  	// CompetitiveVisibility: Competitive visibility fields requested by the
 14045  	// merchant in the query. Field values are only set if the merchant queries
 14046  	// `CompetitiveVisibilityTopMerchantView`, `CompetitiveVisibilityBenchmarkView`
 14047  	// or `CompetitiveVisibilityCompetitorView`.
 14048  	CompetitiveVisibility *CompetitiveVisibility `json:"competitiveVisibility,omitempty"`
 14049  	// Metrics: Metrics requested by the merchant in the query. Metric values are
 14050  	// only set for metrics requested explicitly in the query.
 14051  	Metrics *Metrics `json:"metrics,omitempty"`
 14052  	// PriceCompetitiveness: Price competitiveness fields requested by the merchant
 14053  	// in the query. Field values are only set if the merchant queries
 14054  	// `PriceCompetitivenessProductView`.
 14055  	PriceCompetitiveness *PriceCompetitiveness `json:"priceCompetitiveness,omitempty"`
 14056  	// PriceInsights: Price insights fields requested by the merchant in the query.
 14057  	// Field values are only set if the merchant queries
 14058  	// `PriceInsightsProductView`.
 14059  	PriceInsights *PriceInsights `json:"priceInsights,omitempty"`
 14060  	// ProductCluster: Product cluster fields requested by the merchant in the
 14061  	// query. Field values are only set if the merchant queries
 14062  	// `BestSellersProductClusterView`.
 14063  	ProductCluster *ProductCluster `json:"productCluster,omitempty"`
 14064  	// ProductView: Product fields requested by the merchant in the query. Field
 14065  	// values are only set if the merchant queries `ProductView`.
 14066  	ProductView *ProductView `json:"productView,omitempty"`
 14067  	// Segments: Segmentation dimensions requested by the merchant in the query.
 14068  	// Dimension values are only set for dimensions requested explicitly in the
 14069  	// query.
 14070  	Segments *Segments `json:"segments,omitempty"`
 14071  	// TopicTrends: Topic trends
 14072  	// (https://support.google.com/merchants/answer/13542370) fields requested by
 14073  	// the merchant in the query. Field values are only set if the merchant queries
 14074  	// `TopicTrendsView`.
 14075  	TopicTrends *TopicTrends `json:"topicTrends,omitempty"`
 14076  	// ForceSendFields is a list of field names (e.g. "BestSellers") to
 14077  	// unconditionally include in API requests. By default, fields with empty or
 14078  	// default values are omitted from API requests. See
 14079  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14080  	// details.
 14081  	ForceSendFields []string `json:"-"`
 14082  	// NullFields is a list of field names (e.g. "BestSellers") to include in API
 14083  	// requests with the JSON null value. By default, fields with empty values are
 14084  	// omitted from API requests. See
 14085  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14086  	NullFields []string `json:"-"`
 14087  }
 14088  
 14089  func (s *ReportRow) MarshalJSON() ([]byte, error) {
 14090  	type NoMethod ReportRow
 14091  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14092  }
 14093  
 14094  // RequestPhoneVerificationRequest: Request message for the
 14095  // RequestPhoneVerification method.
 14096  type RequestPhoneVerificationRequest struct {
 14097  	// LanguageCode: Language code IETF BCP 47 syntax
 14098  	// (https://tools.ietf.org/html/bcp47) (for example, en-US). Language code is
 14099  	// used to provide localized `SMS` and `PHONE_CALL`. Default language used is
 14100  	// en-US if not provided.
 14101  	LanguageCode string `json:"languageCode,omitempty"`
 14102  	// PhoneNumber: Phone number to be verified.
 14103  	PhoneNumber string `json:"phoneNumber,omitempty"`
 14104  	// PhoneRegionCode: Required. Two letter country code for the phone number, for
 14105  	// example `CA` for Canadian numbers. See the ISO 3166-1 alpha-2
 14106  	// (https://wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
 14107  	// officially assigned codes.
 14108  	PhoneRegionCode string `json:"phoneRegionCode,omitempty"`
 14109  	// PhoneVerificationMethod: Verification method to receive verification code.
 14110  	//
 14111  	// Possible values:
 14112  	//   "PHONE_VERIFICATION_METHOD_UNSPECIFIED" - Unknown method.
 14113  	//   "SMS" - Receive verification code by SMS.
 14114  	//   "PHONE_CALL" - Receive verification code by phone call.
 14115  	PhoneVerificationMethod string `json:"phoneVerificationMethod,omitempty"`
 14116  	// ForceSendFields is a list of field names (e.g. "LanguageCode") to
 14117  	// unconditionally include in API requests. By default, fields with empty or
 14118  	// default values are omitted from API requests. See
 14119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14120  	// details.
 14121  	ForceSendFields []string `json:"-"`
 14122  	// NullFields is a list of field names (e.g. "LanguageCode") to include in API
 14123  	// requests with the JSON null value. By default, fields with empty values are
 14124  	// omitted from API requests. See
 14125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14126  	NullFields []string `json:"-"`
 14127  }
 14128  
 14129  func (s *RequestPhoneVerificationRequest) MarshalJSON() ([]byte, error) {
 14130  	type NoMethod RequestPhoneVerificationRequest
 14131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14132  }
 14133  
 14134  // RequestPhoneVerificationResponse: Response message for the
 14135  // RequestPhoneVerification method.
 14136  type RequestPhoneVerificationResponse struct {
 14137  	// VerificationId: The verification ID to use in subsequent calls to
 14138  	// `verifyphonenumber`.
 14139  	VerificationId string `json:"verificationId,omitempty"`
 14140  
 14141  	// ServerResponse contains the HTTP response code and headers from the server.
 14142  	googleapi.ServerResponse `json:"-"`
 14143  	// ForceSendFields is a list of field names (e.g. "VerificationId") to
 14144  	// unconditionally include in API requests. By default, fields with empty or
 14145  	// default values are omitted from API requests. See
 14146  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14147  	// details.
 14148  	ForceSendFields []string `json:"-"`
 14149  	// NullFields is a list of field names (e.g. "VerificationId") to include in
 14150  	// API requests with the JSON null value. By default, fields with empty values
 14151  	// are omitted from API requests. See
 14152  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14153  	NullFields []string `json:"-"`
 14154  }
 14155  
 14156  func (s *RequestPhoneVerificationResponse) MarshalJSON() ([]byte, error) {
 14157  	type NoMethod RequestPhoneVerificationResponse
 14158  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14159  }
 14160  
 14161  // RequestReviewBuyOnGoogleProgramRequest: Request message for the
 14162  // RequestReviewProgram method.
 14163  type RequestReviewBuyOnGoogleProgramRequest struct {
 14164  }
 14165  
 14166  // RequestReviewFreeListingsRequest: Request message for the
 14167  // RequestReviewFreeListings Program method.
 14168  type RequestReviewFreeListingsRequest struct {
 14169  	// RegionCode: The code ISO 3166-1 alpha-2
 14170  	// (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the country for which
 14171  	// review is to be requested.
 14172  	RegionCode string `json:"regionCode,omitempty"`
 14173  	// ForceSendFields is a list of field names (e.g. "RegionCode") to
 14174  	// unconditionally include in API requests. By default, fields with empty or
 14175  	// default values are omitted from API requests. See
 14176  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14177  	// details.
 14178  	ForceSendFields []string `json:"-"`
 14179  	// NullFields is a list of field names (e.g. "RegionCode") to include in API
 14180  	// requests with the JSON null value. By default, fields with empty values are
 14181  	// omitted from API requests. See
 14182  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14183  	NullFields []string `json:"-"`
 14184  }
 14185  
 14186  func (s *RequestReviewFreeListingsRequest) MarshalJSON() ([]byte, error) {
 14187  	type NoMethod RequestReviewFreeListingsRequest
 14188  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14189  }
 14190  
 14191  // RequestReviewShoppingAdsRequest: Request message for the
 14192  // RequestReviewShoppingAds program method.
 14193  type RequestReviewShoppingAdsRequest struct {
 14194  	// RegionCode: The code ISO 3166-1 alpha-2
 14195  	// (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the country for which
 14196  	// review is to be requested.
 14197  	RegionCode string `json:"regionCode,omitempty"`
 14198  	// ForceSendFields is a list of field names (e.g. "RegionCode") to
 14199  	// unconditionally include in API requests. By default, fields with empty or
 14200  	// default values are omitted from API requests. See
 14201  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14202  	// details.
 14203  	ForceSendFields []string `json:"-"`
 14204  	// NullFields is a list of field names (e.g. "RegionCode") to include in API
 14205  	// requests with the JSON null value. By default, fields with empty values are
 14206  	// omitted from API requests. See
 14207  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14208  	NullFields []string `json:"-"`
 14209  }
 14210  
 14211  func (s *RequestReviewShoppingAdsRequest) MarshalJSON() ([]byte, error) {
 14212  	type NoMethod RequestReviewShoppingAdsRequest
 14213  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14214  }
 14215  
 14216  // ReturnAddress: Return address resource.
 14217  type ReturnAddress struct {
 14218  	// Address: Required. The address.
 14219  	Address *ReturnAddressAddress `json:"address,omitempty"`
 14220  	// Country: Required. The country of sale where the return address is
 14221  	// applicable.
 14222  	Country string `json:"country,omitempty"`
 14223  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14224  	// "content#returnAddress"
 14225  	Kind string `json:"kind,omitempty"`
 14226  	// Label: Required. The user-defined label of the return address. For the
 14227  	// default address, use the label "default".
 14228  	Label string `json:"label,omitempty"`
 14229  	// PhoneNumber: Required. The merchant's contact phone number regarding the
 14230  	// return.
 14231  	PhoneNumber string `json:"phoneNumber,omitempty"`
 14232  	// ReturnAddressId: Return address ID generated by Google.
 14233  	ReturnAddressId string `json:"returnAddressId,omitempty"`
 14234  
 14235  	// ServerResponse contains the HTTP response code and headers from the server.
 14236  	googleapi.ServerResponse `json:"-"`
 14237  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
 14238  	// include in API requests. By default, fields with empty or default values are
 14239  	// omitted from API requests. See
 14240  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14241  	// details.
 14242  	ForceSendFields []string `json:"-"`
 14243  	// NullFields is a list of field names (e.g. "Address") to include in API
 14244  	// requests with the JSON null value. By default, fields with empty values are
 14245  	// omitted from API requests. See
 14246  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14247  	NullFields []string `json:"-"`
 14248  }
 14249  
 14250  func (s *ReturnAddress) MarshalJSON() ([]byte, error) {
 14251  	type NoMethod ReturnAddress
 14252  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14253  }
 14254  
 14255  type ReturnAddressAddress struct {
 14256  	// Country: CLDR country code (for example, "US").
 14257  	Country string `json:"country,omitempty"`
 14258  	// Locality: City, town or commune. May also include dependent localities or
 14259  	// sublocalities (for example, neighborhoods or suburbs).
 14260  	Locality string `json:"locality,omitempty"`
 14261  	// PostalCode: Postal code or ZIP (for example, "94043").
 14262  	PostalCode string `json:"postalCode,omitempty"`
 14263  	// RecipientName: Name of the recipient to address returns to.
 14264  	RecipientName string `json:"recipientName,omitempty"`
 14265  	// Region: Top-level administrative subdivision of the country. For example, a
 14266  	// state like California ("CA") or a province like Quebec ("QC").
 14267  	Region string `json:"region,omitempty"`
 14268  	// StreetAddress: Street-level part of the address. May be up to two lines,
 14269  	// each line specified as an array element.
 14270  	StreetAddress []string `json:"streetAddress,omitempty"`
 14271  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
 14272  	// include in API requests. By default, fields with empty or default values are
 14273  	// omitted from API requests. See
 14274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14275  	// details.
 14276  	ForceSendFields []string `json:"-"`
 14277  	// NullFields is a list of field names (e.g. "Country") to include in API
 14278  	// requests with the JSON null value. By default, fields with empty values are
 14279  	// omitted from API requests. See
 14280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14281  	NullFields []string `json:"-"`
 14282  }
 14283  
 14284  func (s *ReturnAddressAddress) MarshalJSON() ([]byte, error) {
 14285  	type NoMethod ReturnAddressAddress
 14286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14287  }
 14288  
 14289  // ReturnPolicy: Return policy resource.
 14290  type ReturnPolicy struct {
 14291  	// Country: Required. The country of sale where the return policy is
 14292  	// applicable.
 14293  	Country string `json:"country,omitempty"`
 14294  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14295  	// "content#returnPolicy"
 14296  	Kind string `json:"kind,omitempty"`
 14297  	// Label: Required. The user-defined label of the return policy. For the
 14298  	// default policy, use the label "default".
 14299  	Label string `json:"label,omitempty"`
 14300  	// Name: Required. The name of the policy as shown in Merchant Center.
 14301  	Name string `json:"name,omitempty"`
 14302  	// NonFreeReturnReasons: Return reasons that will incur return fees.
 14303  	NonFreeReturnReasons []string `json:"nonFreeReturnReasons,omitempty"`
 14304  	// Policy: Required. The policy.
 14305  	Policy *ReturnPolicyPolicy `json:"policy,omitempty"`
 14306  	// ReturnPolicyId: Return policy ID generated by Google.
 14307  	ReturnPolicyId string `json:"returnPolicyId,omitempty"`
 14308  	// ReturnShippingFee: The return shipping fee that will apply to non free
 14309  	// return reasons.
 14310  	ReturnShippingFee *Price `json:"returnShippingFee,omitempty"`
 14311  	// SeasonalOverrides: An optional list of seasonal overrides.
 14312  	SeasonalOverrides []*ReturnPolicySeasonalOverride `json:"seasonalOverrides,omitempty"`
 14313  
 14314  	// ServerResponse contains the HTTP response code and headers from the server.
 14315  	googleapi.ServerResponse `json:"-"`
 14316  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
 14317  	// include in API requests. By default, fields with empty or default values are
 14318  	// omitted from API requests. See
 14319  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14320  	// details.
 14321  	ForceSendFields []string `json:"-"`
 14322  	// NullFields is a list of field names (e.g. "Country") to include in API
 14323  	// requests with the JSON null value. By default, fields with empty values are
 14324  	// omitted from API requests. See
 14325  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14326  	NullFields []string `json:"-"`
 14327  }
 14328  
 14329  func (s *ReturnPolicy) MarshalJSON() ([]byte, error) {
 14330  	type NoMethod ReturnPolicy
 14331  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14332  }
 14333  
 14334  // ReturnPolicyOnline: Return policy online object. This is currently used to
 14335  // represent return policies for ads and free listings programs.
 14336  type ReturnPolicyOnline struct {
 14337  	// Countries: The countries of sale where the return policy is applicable. The
 14338  	// values must be a valid 2 letter ISO 3166 code, e.g. "US".
 14339  	Countries []string `json:"countries,omitempty"`
 14340  	// ItemConditions: The item conditions that are accepted for returns. This is
 14341  	// required to not be empty unless the type of return policy is noReturns.
 14342  	//
 14343  	// Possible values:
 14344  	//   "ITEM_CONDITION_UNSPECIFIED" - Default value. This value is unused.
 14345  	//   "NEW" - New.
 14346  	//   "USED" - Used.
 14347  	ItemConditions []string `json:"itemConditions,omitempty"`
 14348  	// Label: The unique user-defined label of the return policy. The same label
 14349  	// cannot be used in different return policies for the same country. Policies
 14350  	// with the label 'default' will apply to all products, unless a product
 14351  	// specifies a return_policy_label attribute.
 14352  	Label string `json:"label,omitempty"`
 14353  	// Name: The name of the policy as shown in Merchant Center.
 14354  	Name string `json:"name,omitempty"`
 14355  	// Policy: The return policy.
 14356  	Policy *ReturnPolicyOnlinePolicy `json:"policy,omitempty"`
 14357  	// RestockingFee: The restocking fee that applies to all return reason
 14358  	// categories. This would be treated as a free restocking fee if the value is
 14359  	// not set.
 14360  	RestockingFee *ReturnPolicyOnlineRestockingFee `json:"restockingFee,omitempty"`
 14361  	// ReturnMethods: The return methods of how customers can return an item. This
 14362  	// value is required to not be empty unless the type of return policy is
 14363  	// noReturns.
 14364  	//
 14365  	// Possible values:
 14366  	//   "RETURN_METHOD_UNSPECIFIED" - Default value. This value is unused.
 14367  	//   "BY_MAIL" - By mail.
 14368  	//   "IN_STORE" - In store.
 14369  	//   "AT_A_KIOSK" - At a kiosk.
 14370  	ReturnMethods []string `json:"returnMethods,omitempty"`
 14371  	// ReturnPolicyId: Output only. Return policy ID generated by Google.
 14372  	ReturnPolicyId string `json:"returnPolicyId,omitempty"`
 14373  	// ReturnPolicyUri: The return policy uri. This can used by Google to do a
 14374  	// sanity check for the policy.
 14375  	ReturnPolicyUri string `json:"returnPolicyUri,omitempty"`
 14376  	// ReturnReasonCategoryInfo: The return reason category information. This
 14377  	// required to not be empty unless the type of return policy is noReturns.
 14378  	ReturnReasonCategoryInfo []*ReturnPolicyOnlineReturnReasonCategoryInfo `json:"returnReasonCategoryInfo,omitempty"`
 14379  
 14380  	// ServerResponse contains the HTTP response code and headers from the server.
 14381  	googleapi.ServerResponse `json:"-"`
 14382  	// ForceSendFields is a list of field names (e.g. "Countries") to
 14383  	// unconditionally include in API requests. By default, fields with empty or
 14384  	// default values are omitted from API requests. See
 14385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14386  	// details.
 14387  	ForceSendFields []string `json:"-"`
 14388  	// NullFields is a list of field names (e.g. "Countries") to include in API
 14389  	// requests with the JSON null value. By default, fields with empty values are
 14390  	// omitted from API requests. See
 14391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14392  	NullFields []string `json:"-"`
 14393  }
 14394  
 14395  func (s *ReturnPolicyOnline) MarshalJSON() ([]byte, error) {
 14396  	type NoMethod ReturnPolicyOnline
 14397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14398  }
 14399  
 14400  // ReturnPolicyOnlinePolicy: The available policies.
 14401  type ReturnPolicyOnlinePolicy struct {
 14402  	// Days: The number of days items can be returned after delivery, where one day
 14403  	// is defined to be 24 hours after the delivery timestamp. Required for
 14404  	// `numberOfDaysAfterDelivery` returns.
 14405  	Days int64 `json:"days,omitempty,string"`
 14406  	// Type: Policy type.
 14407  	//
 14408  	// Possible values:
 14409  	//   "TYPE_UNSPECIFIED" - Default value. This value is unused.
 14410  	//   "NUMBER_OF_DAYS_AFTER_DELIVERY" - Number of days after a return is
 14411  	// delivered.
 14412  	//   "NO_RETURNS" - No returns.
 14413  	//   "LIFETIME_RETURNS" - Life time returns.
 14414  	Type string `json:"type,omitempty"`
 14415  	// ForceSendFields is a list of field names (e.g. "Days") to unconditionally
 14416  	// include in API requests. By default, fields with empty or default values are
 14417  	// omitted from API requests. See
 14418  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14419  	// details.
 14420  	ForceSendFields []string `json:"-"`
 14421  	// NullFields is a list of field names (e.g. "Days") to include in API requests
 14422  	// with the JSON null value. By default, fields with empty values are omitted
 14423  	// from API requests. See
 14424  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14425  	NullFields []string `json:"-"`
 14426  }
 14427  
 14428  func (s *ReturnPolicyOnlinePolicy) MarshalJSON() ([]byte, error) {
 14429  	type NoMethod ReturnPolicyOnlinePolicy
 14430  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14431  }
 14432  
 14433  // ReturnPolicyOnlineRestockingFee: The restocking fee. This can either be a
 14434  // fixed fee or a micro percent.
 14435  type ReturnPolicyOnlineRestockingFee struct {
 14436  	// FixedFee: Fixed restocking fee.
 14437  	FixedFee *PriceAmount `json:"fixedFee,omitempty"`
 14438  	// MicroPercent: Percent of total price in micros. 15,000,000 means 15% of the
 14439  	// total price would be charged.
 14440  	MicroPercent int64 `json:"microPercent,omitempty"`
 14441  	// ForceSendFields is a list of field names (e.g. "FixedFee") to
 14442  	// unconditionally include in API requests. By default, fields with empty or
 14443  	// default values are omitted from API requests. See
 14444  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14445  	// details.
 14446  	ForceSendFields []string `json:"-"`
 14447  	// NullFields is a list of field names (e.g. "FixedFee") to include in API
 14448  	// requests with the JSON null value. By default, fields with empty values are
 14449  	// omitted from API requests. See
 14450  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14451  	NullFields []string `json:"-"`
 14452  }
 14453  
 14454  func (s *ReturnPolicyOnlineRestockingFee) MarshalJSON() ([]byte, error) {
 14455  	type NoMethod ReturnPolicyOnlineRestockingFee
 14456  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14457  }
 14458  
 14459  // ReturnPolicyOnlineReturnReasonCategoryInfo: The return reason category info
 14460  // wrapper.
 14461  type ReturnPolicyOnlineReturnReasonCategoryInfo struct {
 14462  	// ReturnLabelSource: The corresponding return label source.
 14463  	//
 14464  	// Possible values:
 14465  	//   "RETURN_LABEL_SOURCE_UNSPECIFIED" - Default value. This value is unused.
 14466  	//   "DOWNLOAD_AND_PRINT" - Download and print the label.
 14467  	//   "IN_THE_BOX" - Label in the box.
 14468  	//   "CUSTOMER_RESPONSIBILITY" - Customers' responsibility to get the label.
 14469  	ReturnLabelSource string `json:"returnLabelSource,omitempty"`
 14470  	// ReturnReasonCategory: The return reason category.
 14471  	//
 14472  	// Possible values:
 14473  	//   "RETURN_REASON_CATEGORY_UNSPECIFIED" - Default value. This value is
 14474  	// unused.
 14475  	//   "BUYER_REMORSE" - Buyer remorse.
 14476  	//   "ITEM_DEFECT" - Item defect.
 14477  	ReturnReasonCategory string `json:"returnReasonCategory,omitempty"`
 14478  	// ReturnShippingFee: The corresponding return shipping fee. This is only
 14479  	// applicable when returnLabelSource is not the customer's responsibility.
 14480  	ReturnShippingFee *ReturnPolicyOnlineReturnShippingFee `json:"returnShippingFee,omitempty"`
 14481  	// ForceSendFields is a list of field names (e.g. "ReturnLabelSource") to
 14482  	// unconditionally include in API requests. By default, fields with empty or
 14483  	// default values are omitted from API requests. See
 14484  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14485  	// details.
 14486  	ForceSendFields []string `json:"-"`
 14487  	// NullFields is a list of field names (e.g. "ReturnLabelSource") to include in
 14488  	// API requests with the JSON null value. By default, fields with empty values
 14489  	// are omitted from API requests. See
 14490  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14491  	NullFields []string `json:"-"`
 14492  }
 14493  
 14494  func (s *ReturnPolicyOnlineReturnReasonCategoryInfo) MarshalJSON() ([]byte, error) {
 14495  	type NoMethod ReturnPolicyOnlineReturnReasonCategoryInfo
 14496  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14497  }
 14498  
 14499  // ReturnPolicyOnlineReturnShippingFee: The return shipping fee. This can
 14500  // either be a fixed fee or a boolean to indicate that the customer pays the
 14501  // actual shipping cost.
 14502  type ReturnPolicyOnlineReturnShippingFee struct {
 14503  	// FixedFee: Fixed return shipping fee amount. This value is only applicable
 14504  	// when type is FIXED. We will treat the return shipping fee as free if type is
 14505  	// FIXED and this value is not set.
 14506  	FixedFee *PriceAmount `json:"fixedFee,omitempty"`
 14507  	// Type: Type of return shipping fee.
 14508  	//
 14509  	// Possible values:
 14510  	//   "TYPE_UNSPECIFIED" - Default value. This value is unused.
 14511  	//   "FIXED" - The return shipping fee is a fixed value.
 14512  	//   "CUSTOMER_PAYING_ACTUAL_FEE" - Customer will pay the actual return
 14513  	// shipping fee.
 14514  	Type string `json:"type,omitempty"`
 14515  	// ForceSendFields is a list of field names (e.g. "FixedFee") to
 14516  	// unconditionally include in API requests. By default, fields with empty or
 14517  	// default values are omitted from API requests. See
 14518  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14519  	// details.
 14520  	ForceSendFields []string `json:"-"`
 14521  	// NullFields is a list of field names (e.g. "FixedFee") to include in API
 14522  	// requests with the JSON null value. By default, fields with empty values are
 14523  	// omitted from API requests. See
 14524  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14525  	NullFields []string `json:"-"`
 14526  }
 14527  
 14528  func (s *ReturnPolicyOnlineReturnShippingFee) MarshalJSON() ([]byte, error) {
 14529  	type NoMethod ReturnPolicyOnlineReturnShippingFee
 14530  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14531  }
 14532  
 14533  type ReturnPolicyPolicy struct {
 14534  	// LastReturnDate: Required. Last day for returning the items. In ISO 8601
 14535  	// format. When specifying the return window like this, set the policy type to
 14536  	// "lastReturnDate". Use this for seasonal overrides only.
 14537  	LastReturnDate string `json:"lastReturnDate,omitempty"`
 14538  	// NumberOfDays: The number of days items can be returned after delivery, where
 14539  	// one day is defined to be 24 hours after the delivery timestamp. When
 14540  	// specifying the return window like this, set the policy type to
 14541  	// "numberOfDaysAfterDelivery". Acceptable values are 30, 45, 60, 90, 100, 180,
 14542  	// 270 and 365 for the default policy. Additional policies further allow 14,
 14543  	// 15, 21 and 28 days, but note that for most items a minimum of 30 days is
 14544  	// required for returns. Exceptions may be made for electronics. A policy of
 14545  	// less than 30 days can only be applied to those items.
 14546  	NumberOfDays int64 `json:"numberOfDays,omitempty,string"`
 14547  	// Type: Policy type. Use "lastReturnDate" for seasonal overrides only. Note
 14548  	// that for most items a minimum of 30 days is required for returns. Exceptions
 14549  	// may be made for electronics or non-returnable items such as food,
 14550  	// perishables, and living things. A policy of less than 30 days can only be
 14551  	// applied to those items. Acceptable values are: - "lastReturnDate" -
 14552  	// "lifetimeReturns" - "noReturns" - "numberOfDaysAfterDelivery"
 14553  	Type string `json:"type,omitempty"`
 14554  	// ForceSendFields is a list of field names (e.g. "LastReturnDate") to
 14555  	// unconditionally include in API requests. By default, fields with empty or
 14556  	// default values are omitted from API requests. See
 14557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14558  	// details.
 14559  	ForceSendFields []string `json:"-"`
 14560  	// NullFields is a list of field names (e.g. "LastReturnDate") to include in
 14561  	// API requests with the JSON null value. By default, fields with empty values
 14562  	// are omitted from API requests. See
 14563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14564  	NullFields []string `json:"-"`
 14565  }
 14566  
 14567  func (s *ReturnPolicyPolicy) MarshalJSON() ([]byte, error) {
 14568  	type NoMethod ReturnPolicyPolicy
 14569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14570  }
 14571  
 14572  type ReturnPolicySeasonalOverride struct {
 14573  	// EndDate: Required. Last day on which the override applies. In ISO 8601
 14574  	// format.
 14575  	EndDate string `json:"endDate,omitempty"`
 14576  	// Name: Required. The name of the seasonal override as shown in Merchant
 14577  	// Center.
 14578  	Name string `json:"name,omitempty"`
 14579  	// Policy: Required. The policy which is in effect during that time.
 14580  	Policy *ReturnPolicyPolicy `json:"policy,omitempty"`
 14581  	// StartDate: Required. First day on which the override applies. In ISO 8601
 14582  	// format.
 14583  	StartDate string `json:"startDate,omitempty"`
 14584  	// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally
 14585  	// include in API requests. By default, fields with empty or default values are
 14586  	// omitted from API requests. See
 14587  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14588  	// details.
 14589  	ForceSendFields []string `json:"-"`
 14590  	// NullFields is a list of field names (e.g. "EndDate") to include in API
 14591  	// requests with the JSON null value. By default, fields with empty values are
 14592  	// omitted from API requests. See
 14593  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14594  	NullFields []string `json:"-"`
 14595  }
 14596  
 14597  func (s *ReturnPolicySeasonalOverride) MarshalJSON() ([]byte, error) {
 14598  	type NoMethod ReturnPolicySeasonalOverride
 14599  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14600  }
 14601  
 14602  type ReturnPricingInfo struct {
 14603  	// ChargeReturnShippingFee: Default option for whether merchant should charge
 14604  	// the customer for return shipping costs, based on customer selected return
 14605  	// reason and merchant's return policy for the items being returned.
 14606  	ChargeReturnShippingFee bool `json:"chargeReturnShippingFee,omitempty"`
 14607  	// MaxReturnShippingFee: Maximum return shipping costs that may be charged to
 14608  	// the customer depending on merchant's assessment of the return reason and the
 14609  	// merchant's return policy for the items being returned.
 14610  	MaxReturnShippingFee *MonetaryAmount `json:"maxReturnShippingFee,omitempty"`
 14611  	// RefundableItemsTotalAmount: Total amount that can be refunded for the items
 14612  	// in this return. It represents the total amount received by the merchant for
 14613  	// the items, after applying merchant coupons.
 14614  	RefundableItemsTotalAmount *MonetaryAmount `json:"refundableItemsTotalAmount,omitempty"`
 14615  	// RefundableShippingAmount: Maximum amount that can be refunded for the
 14616  	// original shipping fee.
 14617  	RefundableShippingAmount *MonetaryAmount `json:"refundableShippingAmount,omitempty"`
 14618  	// TotalRefundedAmount: Total amount already refunded by the merchant. It
 14619  	// includes all types of refunds (items, shipping, etc.) Not provided if no
 14620  	// refund has been applied yet.
 14621  	TotalRefundedAmount *MonetaryAmount `json:"totalRefundedAmount,omitempty"`
 14622  	// ForceSendFields is a list of field names (e.g. "ChargeReturnShippingFee") to
 14623  	// unconditionally include in API requests. By default, fields with empty or
 14624  	// default values are omitted from API requests. See
 14625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14626  	// details.
 14627  	ForceSendFields []string `json:"-"`
 14628  	// NullFields is a list of field names (e.g. "ChargeReturnShippingFee") to
 14629  	// include in API requests with the JSON null value. By default, fields with
 14630  	// empty values are omitted from API requests. See
 14631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14632  	NullFields []string `json:"-"`
 14633  }
 14634  
 14635  func (s *ReturnPricingInfo) MarshalJSON() ([]byte, error) {
 14636  	type NoMethod ReturnPricingInfo
 14637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14638  }
 14639  
 14640  type ReturnShipment struct {
 14641  	// CreationDate: The date of creation of the shipment, in ISO 8601 format.
 14642  	CreationDate string `json:"creationDate,omitempty"`
 14643  	// DeliveryDate: The date of delivery of the shipment, in ISO 8601 format.
 14644  	DeliveryDate string `json:"deliveryDate,omitempty"`
 14645  	// ReturnMethodType: Type of the return method. Acceptable values are: -
 14646  	// "byMail" - "contactCustomerSupport" - "returnless" - "inStore"
 14647  	ReturnMethodType string `json:"returnMethodType,omitempty"`
 14648  	// ShipmentId: Shipment ID generated by Google.
 14649  	ShipmentId string `json:"shipmentId,omitempty"`
 14650  	// ShipmentTrackingInfos: Tracking information of the shipment. One return
 14651  	// shipment might be handled by several shipping carriers sequentially.
 14652  	ShipmentTrackingInfos []*ShipmentTrackingInfo `json:"shipmentTrackingInfos,omitempty"`
 14653  	// ShippingDate: The date of shipping of the shipment, in ISO 8601 format.
 14654  	ShippingDate string `json:"shippingDate,omitempty"`
 14655  	// State: State of the shipment. Acceptable values are: - "completed" -
 14656  	// "new" - "shipped" - "undeliverable" - "pending"
 14657  	State string `json:"state,omitempty"`
 14658  	// ForceSendFields is a list of field names (e.g. "CreationDate") to
 14659  	// unconditionally include in API requests. By default, fields with empty or
 14660  	// default values are omitted from API requests. See
 14661  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14662  	// details.
 14663  	ForceSendFields []string `json:"-"`
 14664  	// NullFields is a list of field names (e.g. "CreationDate") to include in API
 14665  	// requests with the JSON null value. By default, fields with empty values are
 14666  	// omitted from API requests. See
 14667  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14668  	NullFields []string `json:"-"`
 14669  }
 14670  
 14671  func (s *ReturnShipment) MarshalJSON() ([]byte, error) {
 14672  	type NoMethod ReturnShipment
 14673  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14674  }
 14675  
 14676  // ReturnShippingLabel: Return shipping label for a Buy on Google
 14677  // merchant-managed return.
 14678  type ReturnShippingLabel struct {
 14679  	// Carrier: Name of the carrier.
 14680  	Carrier string `json:"carrier,omitempty"`
 14681  	// LabelUri: The URL for the return shipping label in PDF format
 14682  	LabelUri string `json:"labelUri,omitempty"`
 14683  	// TrackingId: The tracking id of this return label.
 14684  	TrackingId string `json:"trackingId,omitempty"`
 14685  
 14686  	// ServerResponse contains the HTTP response code and headers from the server.
 14687  	googleapi.ServerResponse `json:"-"`
 14688  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
 14689  	// include in API requests. By default, fields with empty or default values are
 14690  	// omitted from API requests. See
 14691  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14692  	// details.
 14693  	ForceSendFields []string `json:"-"`
 14694  	// NullFields is a list of field names (e.g. "Carrier") to include in API
 14695  	// requests with the JSON null value. By default, fields with empty values are
 14696  	// omitted from API requests. See
 14697  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14698  	NullFields []string `json:"-"`
 14699  }
 14700  
 14701  func (s *ReturnShippingLabel) MarshalJSON() ([]byte, error) {
 14702  	type NoMethod ReturnShippingLabel
 14703  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14704  }
 14705  
 14706  type ReturnaddressCustomBatchRequest struct {
 14707  	// Entries: The request entries to be processed in the batch.
 14708  	Entries []*ReturnaddressCustomBatchRequestEntry `json:"entries,omitempty"`
 14709  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 14710  	// include in API requests. By default, fields with empty or default values are
 14711  	// omitted from API requests. See
 14712  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14713  	// details.
 14714  	ForceSendFields []string `json:"-"`
 14715  	// NullFields is a list of field names (e.g. "Entries") to include in API
 14716  	// requests with the JSON null value. By default, fields with empty values are
 14717  	// omitted from API requests. See
 14718  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14719  	NullFields []string `json:"-"`
 14720  }
 14721  
 14722  func (s *ReturnaddressCustomBatchRequest) MarshalJSON() ([]byte, error) {
 14723  	type NoMethod ReturnaddressCustomBatchRequest
 14724  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14725  }
 14726  
 14727  type ReturnaddressCustomBatchRequestEntry struct {
 14728  	// BatchId: An entry ID, unique within the batch request.
 14729  	BatchId int64 `json:"batchId,omitempty"`
 14730  	// MerchantId: The Merchant Center account ID.
 14731  	MerchantId uint64 `json:"merchantId,omitempty,string"`
 14732  	// Method: Method of the batch request entry. Acceptable values are: -
 14733  	// "delete" - "get" - "insert"
 14734  	Method string `json:"method,omitempty"`
 14735  	// ReturnAddress: The return address to submit. This should be set only if the
 14736  	// method is `insert`.
 14737  	ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"`
 14738  	// ReturnAddressId: The return address ID. This should be set only if the
 14739  	// method is `delete` or `get`.
 14740  	ReturnAddressId string `json:"returnAddressId,omitempty"`
 14741  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 14742  	// include in API requests. By default, fields with empty or default values are
 14743  	// omitted from API requests. See
 14744  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14745  	// details.
 14746  	ForceSendFields []string `json:"-"`
 14747  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 14748  	// requests with the JSON null value. By default, fields with empty values are
 14749  	// omitted from API requests. See
 14750  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14751  	NullFields []string `json:"-"`
 14752  }
 14753  
 14754  func (s *ReturnaddressCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
 14755  	type NoMethod ReturnaddressCustomBatchRequestEntry
 14756  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14757  }
 14758  
 14759  type ReturnaddressCustomBatchResponse struct {
 14760  	// Entries: The result of the execution of the batch requests.
 14761  	Entries []*ReturnaddressCustomBatchResponseEntry `json:"entries,omitempty"`
 14762  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14763  	// "content#returnaddressCustomBatchResponse".
 14764  	Kind string `json:"kind,omitempty"`
 14765  
 14766  	// ServerResponse contains the HTTP response code and headers from the server.
 14767  	googleapi.ServerResponse `json:"-"`
 14768  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 14769  	// include in API requests. By default, fields with empty or default values are
 14770  	// omitted from API requests. See
 14771  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14772  	// details.
 14773  	ForceSendFields []string `json:"-"`
 14774  	// NullFields is a list of field names (e.g. "Entries") to include in API
 14775  	// requests with the JSON null value. By default, fields with empty values are
 14776  	// omitted from API requests. See
 14777  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14778  	NullFields []string `json:"-"`
 14779  }
 14780  
 14781  func (s *ReturnaddressCustomBatchResponse) MarshalJSON() ([]byte, error) {
 14782  	type NoMethod ReturnaddressCustomBatchResponse
 14783  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14784  }
 14785  
 14786  type ReturnaddressCustomBatchResponseEntry struct {
 14787  	// BatchId: The ID of the request entry to which this entry responds.
 14788  	BatchId int64 `json:"batchId,omitempty"`
 14789  	// Errors: A list of errors defined if, and only if, the request failed.
 14790  	Errors *Errors `json:"errors,omitempty"`
 14791  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14792  	// "content#returnaddressCustomBatchResponseEntry"
 14793  	Kind string `json:"kind,omitempty"`
 14794  	// ReturnAddress: The retrieved return address.
 14795  	ReturnAddress *ReturnAddress `json:"returnAddress,omitempty"`
 14796  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 14797  	// include in API requests. By default, fields with empty or default values are
 14798  	// omitted from API requests. See
 14799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14800  	// details.
 14801  	ForceSendFields []string `json:"-"`
 14802  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 14803  	// requests with the JSON null value. By default, fields with empty values are
 14804  	// omitted from API requests. See
 14805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14806  	NullFields []string `json:"-"`
 14807  }
 14808  
 14809  func (s *ReturnaddressCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
 14810  	type NoMethod ReturnaddressCustomBatchResponseEntry
 14811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14812  }
 14813  
 14814  type ReturnaddressListResponse struct {
 14815  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14816  	// "content#returnaddressListResponse".
 14817  	Kind string `json:"kind,omitempty"`
 14818  	// NextPageToken: The token for the retrieval of the next page of addresses.
 14819  	NextPageToken string           `json:"nextPageToken,omitempty"`
 14820  	Resources     []*ReturnAddress `json:"resources,omitempty"`
 14821  
 14822  	// ServerResponse contains the HTTP response code and headers from the server.
 14823  	googleapi.ServerResponse `json:"-"`
 14824  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 14825  	// include in API requests. By default, fields with empty or default values are
 14826  	// omitted from API requests. See
 14827  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14828  	// details.
 14829  	ForceSendFields []string `json:"-"`
 14830  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 14831  	// with the JSON null value. By default, fields with empty values are omitted
 14832  	// from API requests. See
 14833  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14834  	NullFields []string `json:"-"`
 14835  }
 14836  
 14837  func (s *ReturnaddressListResponse) MarshalJSON() ([]byte, error) {
 14838  	type NoMethod ReturnaddressListResponse
 14839  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14840  }
 14841  
 14842  type ReturnpolicyCustomBatchRequest struct {
 14843  	// Entries: The request entries to be processed in the batch.
 14844  	Entries []*ReturnpolicyCustomBatchRequestEntry `json:"entries,omitempty"`
 14845  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 14846  	// include in API requests. By default, fields with empty or default values are
 14847  	// omitted from API requests. See
 14848  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14849  	// details.
 14850  	ForceSendFields []string `json:"-"`
 14851  	// NullFields is a list of field names (e.g. "Entries") to include in API
 14852  	// requests with the JSON null value. By default, fields with empty values are
 14853  	// omitted from API requests. See
 14854  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14855  	NullFields []string `json:"-"`
 14856  }
 14857  
 14858  func (s *ReturnpolicyCustomBatchRequest) MarshalJSON() ([]byte, error) {
 14859  	type NoMethod ReturnpolicyCustomBatchRequest
 14860  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14861  }
 14862  
 14863  type ReturnpolicyCustomBatchRequestEntry struct {
 14864  	// BatchId: An entry ID, unique within the batch request.
 14865  	BatchId int64 `json:"batchId,omitempty"`
 14866  	// MerchantId: The Merchant Center account ID.
 14867  	MerchantId uint64 `json:"merchantId,omitempty,string"`
 14868  	// Method: Method of the batch request entry. Acceptable values are: -
 14869  	// "delete" - "get" - "insert"
 14870  	Method string `json:"method,omitempty"`
 14871  	// ReturnPolicy: The return policy to submit. This should be set only if the
 14872  	// method is `insert`.
 14873  	ReturnPolicy *ReturnPolicy `json:"returnPolicy,omitempty"`
 14874  	// ReturnPolicyId: The return policy ID. This should be set only if the method
 14875  	// is `delete` or `get`.
 14876  	ReturnPolicyId string `json:"returnPolicyId,omitempty"`
 14877  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 14878  	// include in API requests. By default, fields with empty or default values are
 14879  	// omitted from API requests. See
 14880  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14881  	// details.
 14882  	ForceSendFields []string `json:"-"`
 14883  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 14884  	// requests with the JSON null value. By default, fields with empty values are
 14885  	// omitted from API requests. See
 14886  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14887  	NullFields []string `json:"-"`
 14888  }
 14889  
 14890  func (s *ReturnpolicyCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
 14891  	type NoMethod ReturnpolicyCustomBatchRequestEntry
 14892  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14893  }
 14894  
 14895  type ReturnpolicyCustomBatchResponse struct {
 14896  	// Entries: The result of the execution of the batch requests.
 14897  	Entries []*ReturnpolicyCustomBatchResponseEntry `json:"entries,omitempty"`
 14898  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14899  	// "content#returnpolicyCustomBatchResponse".
 14900  	Kind string `json:"kind,omitempty"`
 14901  
 14902  	// ServerResponse contains the HTTP response code and headers from the server.
 14903  	googleapi.ServerResponse `json:"-"`
 14904  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 14905  	// include in API requests. By default, fields with empty or default values are
 14906  	// omitted from API requests. See
 14907  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14908  	// details.
 14909  	ForceSendFields []string `json:"-"`
 14910  	// NullFields is a list of field names (e.g. "Entries") to include in API
 14911  	// requests with the JSON null value. By default, fields with empty values are
 14912  	// omitted from API requests. See
 14913  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14914  	NullFields []string `json:"-"`
 14915  }
 14916  
 14917  func (s *ReturnpolicyCustomBatchResponse) MarshalJSON() ([]byte, error) {
 14918  	type NoMethod ReturnpolicyCustomBatchResponse
 14919  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14920  }
 14921  
 14922  type ReturnpolicyCustomBatchResponseEntry struct {
 14923  	// BatchId: The ID of the request entry to which this entry responds.
 14924  	BatchId int64 `json:"batchId,omitempty"`
 14925  	// Errors: A list of errors defined if, and only if, the request failed.
 14926  	Errors *Errors `json:"errors,omitempty"`
 14927  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14928  	// "content#returnpolicyCustomBatchResponseEntry"
 14929  	Kind string `json:"kind,omitempty"`
 14930  	// ReturnPolicy: The retrieved return policy.
 14931  	ReturnPolicy *ReturnPolicy `json:"returnPolicy,omitempty"`
 14932  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 14933  	// include in API requests. By default, fields with empty or default values are
 14934  	// omitted from API requests. See
 14935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14936  	// details.
 14937  	ForceSendFields []string `json:"-"`
 14938  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 14939  	// requests with the JSON null value. By default, fields with empty values are
 14940  	// omitted from API requests. See
 14941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14942  	NullFields []string `json:"-"`
 14943  }
 14944  
 14945  func (s *ReturnpolicyCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
 14946  	type NoMethod ReturnpolicyCustomBatchResponseEntry
 14947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14948  }
 14949  
 14950  type ReturnpolicyListResponse struct {
 14951  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 14952  	// "content#returnpolicyListResponse".
 14953  	Kind      string          `json:"kind,omitempty"`
 14954  	Resources []*ReturnPolicy `json:"resources,omitempty"`
 14955  
 14956  	// ServerResponse contains the HTTP response code and headers from the server.
 14957  	googleapi.ServerResponse `json:"-"`
 14958  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 14959  	// include in API requests. By default, fields with empty or default values are
 14960  	// omitted from API requests. See
 14961  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14962  	// details.
 14963  	ForceSendFields []string `json:"-"`
 14964  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 14965  	// with the JSON null value. By default, fields with empty values are omitted
 14966  	// from API requests. See
 14967  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14968  	NullFields []string `json:"-"`
 14969  }
 14970  
 14971  func (s *ReturnpolicyListResponse) MarshalJSON() ([]byte, error) {
 14972  	type NoMethod ReturnpolicyListResponse
 14973  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14974  }
 14975  
 14976  type Row struct {
 14977  	// Cells: The list of cells that constitute the row. Must have the same length
 14978  	// as `columnHeaders` for two-dimensional tables, a length of 1 for
 14979  	// one-dimensional tables. Required.
 14980  	Cells []*Value `json:"cells,omitempty"`
 14981  	// ForceSendFields is a list of field names (e.g. "Cells") to unconditionally
 14982  	// include in API requests. By default, fields with empty or default values are
 14983  	// omitted from API requests. See
 14984  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 14985  	// details.
 14986  	ForceSendFields []string `json:"-"`
 14987  	// NullFields is a list of field names (e.g. "Cells") to include in API
 14988  	// requests with the JSON null value. By default, fields with empty values are
 14989  	// omitted from API requests. See
 14990  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 14991  	NullFields []string `json:"-"`
 14992  }
 14993  
 14994  func (s *Row) MarshalJSON() ([]byte, error) {
 14995  	type NoMethod Row
 14996  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 14997  }
 14998  
 14999  // SearchRequest: Request message for the ReportService.Search method.
 15000  type SearchRequest struct {
 15001  	// PageSize: Number of ReportRows to retrieve in a single page. Defaults to
 15002  	// 1000. Values above 5000 are coerced to 5000.
 15003  	PageSize int64 `json:"pageSize,omitempty"`
 15004  	// PageToken: Token of the page to retrieve. If not specified, the first page
 15005  	// of results is returned. In order to request the next page of results, the
 15006  	// value obtained from `next_page_token` in the previous response should be
 15007  	// used.
 15008  	PageToken string `json:"pageToken,omitempty"`
 15009  	// Query: Required. Query that defines performance metrics to retrieve and
 15010  	// dimensions according to which the metrics are to be segmented. For details
 15011  	// on how to construct your query, see the Query Language guide
 15012  	// (https://developers.google.com/shopping-content/guides/reports/query-language/overview).
 15013  	Query string `json:"query,omitempty"`
 15014  	// ForceSendFields is a list of field names (e.g. "PageSize") to
 15015  	// unconditionally include in API requests. By default, fields with empty or
 15016  	// default values are omitted from API requests. See
 15017  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15018  	// details.
 15019  	ForceSendFields []string `json:"-"`
 15020  	// NullFields is a list of field names (e.g. "PageSize") to include in API
 15021  	// requests with the JSON null value. By default, fields with empty values are
 15022  	// omitted from API requests. See
 15023  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15024  	NullFields []string `json:"-"`
 15025  }
 15026  
 15027  func (s *SearchRequest) MarshalJSON() ([]byte, error) {
 15028  	type NoMethod SearchRequest
 15029  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15030  }
 15031  
 15032  // SearchResponse: Response message for the ReportService.Search method.
 15033  type SearchResponse struct {
 15034  	// NextPageToken: Token which can be sent as `page_token` to retrieve the next
 15035  	// page. If omitted, there are no subsequent pages.
 15036  	NextPageToken string `json:"nextPageToken,omitempty"`
 15037  	// Results: Rows that matched the search query.
 15038  	Results []*ReportRow `json:"results,omitempty"`
 15039  
 15040  	// ServerResponse contains the HTTP response code and headers from the server.
 15041  	googleapi.ServerResponse `json:"-"`
 15042  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 15043  	// unconditionally include in API requests. By default, fields with empty or
 15044  	// default values are omitted from API requests. See
 15045  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15046  	// details.
 15047  	ForceSendFields []string `json:"-"`
 15048  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 15049  	// requests with the JSON null value. By default, fields with empty values are
 15050  	// omitted from API requests. See
 15051  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15052  	NullFields []string `json:"-"`
 15053  }
 15054  
 15055  func (s *SearchResponse) MarshalJSON() ([]byte, error) {
 15056  	type NoMethod SearchResponse
 15057  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15058  }
 15059  
 15060  // Segments: Dimensions according to which metrics are segmented in the
 15061  // response. Values of product dimensions, such as `offer_id`, reflect the
 15062  // state of a product at the time of the corresponding event, for example,
 15063  // impression or order. Segment fields cannot be selected in queries without
 15064  // also selecting at least one metric field. Values are only set for dimensions
 15065  // requested explicitly in the request's search query.
 15066  type Segments struct {
 15067  	// Brand: Brand of the product.
 15068  	Brand string `json:"brand,omitempty"`
 15069  	// CategoryL1: Product category (1st level)
 15070  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15071  	// in Google's product taxonomy.
 15072  	CategoryL1 string `json:"categoryL1,omitempty"`
 15073  	// CategoryL2: Product category (2nd level)
 15074  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15075  	// in Google's product taxonomy.
 15076  	CategoryL2 string `json:"categoryL2,omitempty"`
 15077  	// CategoryL3: Product category (3rd level)
 15078  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15079  	// in Google's product taxonomy.
 15080  	CategoryL3 string `json:"categoryL3,omitempty"`
 15081  	// CategoryL4: Product category (4th level)
 15082  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15083  	// in Google's product taxonomy.
 15084  	CategoryL4 string `json:"categoryL4,omitempty"`
 15085  	// CategoryL5: Product category (5th level)
 15086  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15087  	// in Google's product taxonomy.
 15088  	CategoryL5 string `json:"categoryL5,omitempty"`
 15089  	// CurrencyCode: Currency in which price metrics are represented, for example,
 15090  	// if you select `ordered_item_sales_micros`, the returned value will be
 15091  	// represented by this currency.
 15092  	CurrencyCode string `json:"currencyCode,omitempty"`
 15093  	// CustomLabel0: Custom label 0 for custom grouping of products.
 15094  	CustomLabel0 string `json:"customLabel0,omitempty"`
 15095  	// CustomLabel1: Custom label 1 for custom grouping of products.
 15096  	CustomLabel1 string `json:"customLabel1,omitempty"`
 15097  	// CustomLabel2: Custom label 2 for custom grouping of products.
 15098  	CustomLabel2 string `json:"customLabel2,omitempty"`
 15099  	// CustomLabel3: Custom label 3 for custom grouping of products.
 15100  	CustomLabel3 string `json:"customLabel3,omitempty"`
 15101  	// CustomLabel4: Custom label 4 for custom grouping of products.
 15102  	CustomLabel4 string `json:"customLabel4,omitempty"`
 15103  	// CustomerCountryCode: Code of the country where the customer is located at
 15104  	// the time of the event. Represented in the ISO 3166 format. If the customer
 15105  	// country cannot be determined, a special 'ZZ' code is returned.
 15106  	CustomerCountryCode string `json:"customerCountryCode,omitempty"`
 15107  	// Date: Date in the merchant timezone to which metrics apply.
 15108  	Date *Date `json:"date,omitempty"`
 15109  	// OfferId: Merchant-provided id of the product.
 15110  	OfferId string `json:"offerId,omitempty"`
 15111  	// ProductTypeL1: Product type (1st level)
 15112  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15113  	// in merchant's own product taxonomy.
 15114  	ProductTypeL1 string `json:"productTypeL1,omitempty"`
 15115  	// ProductTypeL2: Product type (2nd level)
 15116  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15117  	// in merchant's own product taxonomy.
 15118  	ProductTypeL2 string `json:"productTypeL2,omitempty"`
 15119  	// ProductTypeL3: Product type (3rd level)
 15120  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15121  	// in merchant's own product taxonomy.
 15122  	ProductTypeL3 string `json:"productTypeL3,omitempty"`
 15123  	// ProductTypeL4: Product type (4th level)
 15124  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15125  	// in merchant's own product taxonomy.
 15126  	ProductTypeL4 string `json:"productTypeL4,omitempty"`
 15127  	// ProductTypeL5: Product type (5th level)
 15128  	// (https://developers.google.com/shopping-content/guides/reports/segmentation#category_and_product_type)
 15129  	// in merchant's own product taxonomy.
 15130  	ProductTypeL5 string `json:"productTypeL5,omitempty"`
 15131  	// Program: Program to which metrics apply, for example, Free Product Listing.
 15132  	//
 15133  	// Possible values:
 15134  	//   "PROGRAM_UNSPECIFIED" - Not specified.
 15135  	//   "SHOPPING_ADS" - Shopping Ads.
 15136  	//   "FREE_PRODUCT_LISTING" - Free Product Listing.
 15137  	//   "FREE_LOCAL_PRODUCT_LISTING" - Free Local Product Listing.
 15138  	//   "BUY_ON_GOOGLE_LISTING" - Buy on Google Listing.
 15139  	Program string `json:"program,omitempty"`
 15140  	// Title: Title of the product.
 15141  	Title string `json:"title,omitempty"`
 15142  	// Week: First day of the week (Monday) of the metrics date in the merchant
 15143  	// timezone.
 15144  	Week *Date `json:"week,omitempty"`
 15145  	// ForceSendFields is a list of field names (e.g. "Brand") to unconditionally
 15146  	// include in API requests. By default, fields with empty or default values are
 15147  	// omitted from API requests. See
 15148  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15149  	// details.
 15150  	ForceSendFields []string `json:"-"`
 15151  	// NullFields is a list of field names (e.g. "Brand") to include in API
 15152  	// requests with the JSON null value. By default, fields with empty values are
 15153  	// omitted from API requests. See
 15154  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15155  	NullFields []string `json:"-"`
 15156  }
 15157  
 15158  func (s *Segments) MarshalJSON() ([]byte, error) {
 15159  	type NoMethod Segments
 15160  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15161  }
 15162  
 15163  type Service struct {
 15164  	// Active: A boolean exposing the active status of the shipping service.
 15165  	// Required.
 15166  	Active bool `json:"active,omitempty"`
 15167  	// Currency: The CLDR code of the currency to which this service applies. Must
 15168  	// match that of the prices in rate groups.
 15169  	Currency string `json:"currency,omitempty"`
 15170  	// DeliveryCountry: The CLDR territory code of the country to which the service
 15171  	// applies. Required.
 15172  	DeliveryCountry string `json:"deliveryCountry,omitempty"`
 15173  	// DeliveryTime: Time spent in various aspects from order to the delivery of
 15174  	// the product. Required.
 15175  	DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"`
 15176  	// Eligibility: Eligibility for this service. Acceptable values are: - "All
 15177  	// scenarios" - "All scenarios except Shopping Actions" - "Shopping
 15178  	// Actions"
 15179  	Eligibility string `json:"eligibility,omitempty"`
 15180  	// MinimumOrderValue: Minimum order value for this service. If set, indicates
 15181  	// that customers will have to spend at least this amount. All prices within a
 15182  	// service must have the same currency. Cannot be set together with
 15183  	// minimum_order_value_table.
 15184  	MinimumOrderValue *Price `json:"minimumOrderValue,omitempty"`
 15185  	// MinimumOrderValueTable: Table of per store minimum order values for the
 15186  	// pickup fulfillment type. Cannot be set together with minimum_order_value.
 15187  	MinimumOrderValueTable *MinimumOrderValueTable `json:"minimumOrderValueTable,omitempty"`
 15188  	// Name: Free-form name of the service. Must be unique within target account.
 15189  	// Required.
 15190  	Name string `json:"name,omitempty"`
 15191  	// PickupService: The carrier-service pair delivering items to collection
 15192  	// points. The list of supported pickup services can be retrieved through the
 15193  	// `getSupportedPickupServices` method. Required if and only if the service
 15194  	// delivery type is `pickup`.
 15195  	PickupService *PickupCarrierService `json:"pickupService,omitempty"`
 15196  	// RateGroups: Shipping rate group definitions. Only the last one is allowed to
 15197  	// have an empty `applicableShippingLabels`, which means "everything else". The
 15198  	// other `applicableShippingLabels` must not overlap.
 15199  	RateGroups []*RateGroup `json:"rateGroups,omitempty"`
 15200  	// ShipmentType: Type of locations this service ships orders to. Acceptable
 15201  	// values are: - "delivery" - "pickup` (deprecated)" - "local_delivery" -
 15202  	// "collection_point"
 15203  	ShipmentType string `json:"shipmentType,omitempty"`
 15204  	// StoreConfig: A list of stores your products are delivered from. This is only
 15205  	// available for the local delivery shipment type.
 15206  	StoreConfig *ServiceStoreConfig `json:"storeConfig,omitempty"`
 15207  	// ForceSendFields is a list of field names (e.g. "Active") to unconditionally
 15208  	// include in API requests. By default, fields with empty or default values are
 15209  	// omitted from API requests. See
 15210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15211  	// details.
 15212  	ForceSendFields []string `json:"-"`
 15213  	// NullFields is a list of field names (e.g. "Active") to include in API
 15214  	// requests with the JSON null value. By default, fields with empty values are
 15215  	// omitted from API requests. See
 15216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15217  	NullFields []string `json:"-"`
 15218  }
 15219  
 15220  func (s *Service) MarshalJSON() ([]byte, error) {
 15221  	type NoMethod Service
 15222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15223  }
 15224  
 15225  // ServiceStoreConfig: Stores that provide local delivery. Only valid with
 15226  // local delivery fulfillment.
 15227  type ServiceStoreConfig struct {
 15228  	// CutoffConfig: Time local delivery ends for the day. This can be either
 15229  	// `local_cutoff_time` or `store_close_offset_hours`, if both are provided an
 15230  	// error is thrown.
 15231  	CutoffConfig *ServiceStoreConfigCutoffConfig `json:"cutoffConfig,omitempty"`
 15232  	// ServiceRadius: Maximum delivery radius. Only needed for local delivery
 15233  	// fulfillment type.
 15234  	ServiceRadius *Distance `json:"serviceRadius,omitempty"`
 15235  	// StoreCodes: A list of store codes that provide local delivery. If empty,
 15236  	// then `store_service_type` must be `all_stores`, or an error is thrown. If
 15237  	// not empty, then `store_service_type` must be `selected_stores`, or an error
 15238  	// is thrown.
 15239  	StoreCodes []string `json:"storeCodes,omitempty"`
 15240  	// StoreServiceType: Indicates whether all stores listed by this merchant
 15241  	// provide local delivery or not. Acceptable values are `all stores` and
 15242  	// `selected stores`
 15243  	StoreServiceType string `json:"storeServiceType,omitempty"`
 15244  	// ForceSendFields is a list of field names (e.g. "CutoffConfig") to
 15245  	// unconditionally include in API requests. By default, fields with empty or
 15246  	// default values are omitted from API requests. See
 15247  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15248  	// details.
 15249  	ForceSendFields []string `json:"-"`
 15250  	// NullFields is a list of field names (e.g. "CutoffConfig") to include in API
 15251  	// requests with the JSON null value. By default, fields with empty values are
 15252  	// omitted from API requests. See
 15253  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15254  	NullFields []string `json:"-"`
 15255  }
 15256  
 15257  func (s *ServiceStoreConfig) MarshalJSON() ([]byte, error) {
 15258  	type NoMethod ServiceStoreConfig
 15259  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15260  }
 15261  
 15262  // ServiceStoreConfigCutoffConfig: Time local delivery ends for the day based
 15263  // on the local timezone of the store. `local_cutoff_time` and
 15264  // `store_close_offset_hours` are mutually exclusive.
 15265  type ServiceStoreConfigCutoffConfig struct {
 15266  	// LocalCutoffTime: Time in hours and minutes in the local timezone when local
 15267  	// delivery ends.
 15268  	LocalCutoffTime *ServiceStoreConfigCutoffConfigLocalCutoffTime `json:"localCutoffTime,omitempty"`
 15269  	// NoDeliveryPostCutoff: Merchants can opt-out of showing n+1 day local
 15270  	// delivery when they have a shipping service configured to n day local
 15271  	// delivery. For example, if the shipping service defines same-day delivery,
 15272  	// and it's past the cut-off, setting this field to `true` results in the
 15273  	// calculated shipping service rate returning `NO_DELIVERY_POST_CUTOFF`. In the
 15274  	// same example, setting this field to `false` results in the calculated
 15275  	// shipping time being one day. This is only for local delivery.
 15276  	NoDeliveryPostCutoff bool `json:"noDeliveryPostCutoff,omitempty"`
 15277  	// StoreCloseOffsetHours: Represents cutoff time as the number of hours before
 15278  	// store closing. Mutually exclusive with other fields (hour and minute).
 15279  	StoreCloseOffsetHours int64 `json:"storeCloseOffsetHours,omitempty,string"`
 15280  	// ForceSendFields is a list of field names (e.g. "LocalCutoffTime") to
 15281  	// unconditionally include in API requests. By default, fields with empty or
 15282  	// default values are omitted from API requests. See
 15283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15284  	// details.
 15285  	ForceSendFields []string `json:"-"`
 15286  	// NullFields is a list of field names (e.g. "LocalCutoffTime") to include in
 15287  	// API requests with the JSON null value. By default, fields with empty values
 15288  	// are omitted from API requests. See
 15289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15290  	NullFields []string `json:"-"`
 15291  }
 15292  
 15293  func (s *ServiceStoreConfigCutoffConfig) MarshalJSON() ([]byte, error) {
 15294  	type NoMethod ServiceStoreConfigCutoffConfig
 15295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15296  }
 15297  
 15298  // ServiceStoreConfigCutoffConfigLocalCutoffTime: Time in hours and minutes in
 15299  // the local timezone when local delivery ends.
 15300  type ServiceStoreConfigCutoffConfigLocalCutoffTime struct {
 15301  	// Hour: Hour local delivery orders must be placed by to process the same day.
 15302  	Hour int64 `json:"hour,omitempty,string"`
 15303  	// Minute: Minute local delivery orders must be placed by to process the same
 15304  	// day.
 15305  	Minute int64 `json:"minute,omitempty,string"`
 15306  	// ForceSendFields is a list of field names (e.g. "Hour") to unconditionally
 15307  	// include in API requests. By default, fields with empty or default values are
 15308  	// omitted from API requests. See
 15309  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15310  	// details.
 15311  	ForceSendFields []string `json:"-"`
 15312  	// NullFields is a list of field names (e.g. "Hour") to include in API requests
 15313  	// with the JSON null value. By default, fields with empty values are omitted
 15314  	// from API requests. See
 15315  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15316  	NullFields []string `json:"-"`
 15317  }
 15318  
 15319  func (s *ServiceStoreConfigCutoffConfigLocalCutoffTime) MarshalJSON() ([]byte, error) {
 15320  	type NoMethod ServiceStoreConfigCutoffConfigLocalCutoffTime
 15321  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15322  }
 15323  
 15324  // SettlementReport:  Settlement reports detail order-level and item-level
 15325  // credits and debits between you and Google.
 15326  type SettlementReport struct {
 15327  	// EndDate: The end date on which all transactions are included in the report,
 15328  	// in ISO 8601 format.
 15329  	EndDate string `json:"endDate,omitempty"`
 15330  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15331  	// "content#settlementReport"
 15332  	Kind string `json:"kind,omitempty"`
 15333  	// PreviousBalance: The residual amount from the previous invoice. This is set
 15334  	// only if the previous invoices are not paid because of negative balance.
 15335  	PreviousBalance *Price `json:"previousBalance,omitempty"`
 15336  	// SettlementId: The ID of the settlement report.
 15337  	SettlementId string `json:"settlementId,omitempty"`
 15338  	// StartDate: The start date on which all transactions are included in the
 15339  	// report, in ISO 8601 format.
 15340  	StartDate string `json:"startDate,omitempty"`
 15341  	// TransferAmount: The money due to the merchant.
 15342  	TransferAmount *Price `json:"transferAmount,omitempty"`
 15343  	// TransferDate: Date on which transfer for this payment was initiated by
 15344  	// Google, in ISO 8601 format.
 15345  	TransferDate string `json:"transferDate,omitempty"`
 15346  	// TransferIds: The list of bank identifiers used for the transfer. For
 15347  	// example, Trace ID for Federal Automated Clearing House (ACH). This may also
 15348  	// be known as the Wire ID.
 15349  	TransferIds []string `json:"transferIds,omitempty"`
 15350  
 15351  	// ServerResponse contains the HTTP response code and headers from the server.
 15352  	googleapi.ServerResponse `json:"-"`
 15353  	// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally
 15354  	// include in API requests. By default, fields with empty or default values are
 15355  	// omitted from API requests. See
 15356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15357  	// details.
 15358  	ForceSendFields []string `json:"-"`
 15359  	// NullFields is a list of field names (e.g. "EndDate") to include in API
 15360  	// requests with the JSON null value. By default, fields with empty values are
 15361  	// omitted from API requests. See
 15362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15363  	NullFields []string `json:"-"`
 15364  }
 15365  
 15366  func (s *SettlementReport) MarshalJSON() ([]byte, error) {
 15367  	type NoMethod SettlementReport
 15368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15369  }
 15370  
 15371  // SettlementTransaction: Settlement transactions give a detailed breakdown of
 15372  // the settlement report.
 15373  type SettlementTransaction struct {
 15374  	// Amount: The amount for the transaction.
 15375  	Amount *SettlementTransactionAmount `json:"amount,omitempty"`
 15376  	// Identifiers: Identifiers of the transaction.
 15377  	Identifiers *SettlementTransactionIdentifiers `json:"identifiers,omitempty"`
 15378  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15379  	// "content#settlementTransaction"
 15380  	Kind string `json:"kind,omitempty"`
 15381  	// Transaction: Details of the transaction.
 15382  	Transaction *SettlementTransactionTransaction `json:"transaction,omitempty"`
 15383  	// ForceSendFields is a list of field names (e.g. "Amount") to unconditionally
 15384  	// include in API requests. By default, fields with empty or default values are
 15385  	// omitted from API requests. See
 15386  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15387  	// details.
 15388  	ForceSendFields []string `json:"-"`
 15389  	// NullFields is a list of field names (e.g. "Amount") to include in API
 15390  	// requests with the JSON null value. By default, fields with empty values are
 15391  	// omitted from API requests. See
 15392  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15393  	NullFields []string `json:"-"`
 15394  }
 15395  
 15396  func (s *SettlementTransaction) MarshalJSON() ([]byte, error) {
 15397  	type NoMethod SettlementTransaction
 15398  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15399  }
 15400  
 15401  type SettlementTransactionAmount struct {
 15402  	Commission *SettlementTransactionAmountCommission `json:"commission,omitempty"`
 15403  	// Description: The description of the event. Acceptable values are: -
 15404  	// "taxWithhold" - "principal" - "principalAdjustment" - "shippingFee"
 15405  	// - "merchantRemittedSalesTax" - "googleRemittedSalesTax" -
 15406  	// "merchantCoupon" - "merchantCouponTax" - "merchantRemittedDisposalTax"
 15407  	// - "googleRemittedDisposalTax" - "merchantRemittedRedemptionFee" -
 15408  	// "googleRemittedRedemptionFee" - "eeeEcoFee" - "furnitureEcoFee" -
 15409  	// "copyPrivateFee" - "eeeEcoFeeCommission" - "furnitureEcoFeeCommission"
 15410  	// - "copyPrivateFeeCommission" - "principalRefund" -
 15411  	// "principalRefundTax" - "itemCommission" - "adjustmentCommission" -
 15412  	// "shippingFeeCommission" - "commissionRefund" - "damaged" -
 15413  	// "damagedOrDefectiveItem" - "expiredItem" - "faultyItem" -
 15414  	// "incorrectItemReceived" - "itemMissing" - "qualityNotExpected" -
 15415  	// "receivedTooLate" - "storePackageMissing" - "transitPackageMissing" -
 15416  	// "unsuccessfulDeliveryUndeliverable" - "wrongChargeInStore" -
 15417  	// "wrongItem" - "returns" - "undeliverable" -
 15418  	// "issueRelatedRefundAndReplacementAmountDescription" -
 15419  	// "refundFromMerchant" - "returnLabelShippingFee" - "lumpSumCorrection"
 15420  	// - "pspFee" - "principalRefundDoesNotFit" -
 15421  	// "principalRefundOrderedWrongItem" - "principalRefundQualityNotExpected"
 15422  	// - "principalRefundBetterPriceFound" - "principalRefundNoLongerNeeded" -
 15423  	// "principalRefundChangedMind" - "principalRefundReceivedTooLate" -
 15424  	// "principalRefundIncorrectItemReceived" -
 15425  	// "principalRefundDamagedOrDefectiveItem" -
 15426  	// "principalRefundDidNotMatchDescription" - "principalRefundExpiredItem"
 15427  	Description string `json:"description,omitempty"`
 15428  	// TransactionAmount: The amount that contributes to the line item price.
 15429  	TransactionAmount *Price `json:"transactionAmount,omitempty"`
 15430  	// Type: The type of the amount. Acceptable values are: - "itemPrice" -
 15431  	// "orderPrice" - "refund" - "earlyRefund" - "courtesyRefund" -
 15432  	// "returnRefund" - "returnLabelShippingFeeAmount" -
 15433  	// "lumpSumCorrectionAmount"
 15434  	Type string `json:"type,omitempty"`
 15435  	// ForceSendFields is a list of field names (e.g. "Commission") to
 15436  	// unconditionally include in API requests. By default, fields with empty or
 15437  	// default values are omitted from API requests. See
 15438  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15439  	// details.
 15440  	ForceSendFields []string `json:"-"`
 15441  	// NullFields is a list of field names (e.g. "Commission") to include in API
 15442  	// requests with the JSON null value. By default, fields with empty values are
 15443  	// omitted from API requests. See
 15444  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15445  	NullFields []string `json:"-"`
 15446  }
 15447  
 15448  func (s *SettlementTransactionAmount) MarshalJSON() ([]byte, error) {
 15449  	type NoMethod SettlementTransactionAmount
 15450  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15451  }
 15452  
 15453  type SettlementTransactionAmountCommission struct {
 15454  	// Category: The category of the commission. Acceptable values are: -
 15455  	// "animalsAndPetSupplies" - "dogCatFoodAndCatLitter" -
 15456  	// "apparelAndAccessories" - "shoesHandbagsAndSunglasses" -
 15457  	// "costumesAndAccessories" - "jewelry" - "watches" -
 15458  	// "hobbiesArtsAndCrafts" - "homeAndGarden" - "entertainmentCollectibles"
 15459  	// - "collectibleCoins" - "sportsCollectibles" - "sportingGoods" -
 15460  	// "toysAndGames" - "musicalInstruments" - "giftCards" -
 15461  	// "babyAndToddler" - "babyFoodWipesAndDiapers" - "businessAndIndustrial"
 15462  	// - "camerasOpticsAndPhotography" - "consumerElectronics" -
 15463  	// "electronicsAccessories" - "personalComputers" - "videoGameConsoles" -
 15464  	// "foodAndGrocery" - "beverages" - "tobaccoProducts" - "furniture" -
 15465  	// "hardware" - "buildingMaterials" - "tools" - "healthAndPersonalCare"
 15466  	// - "beauty" - "householdSupplies" - "kitchenAndDining" -
 15467  	// "majorAppliances" - "luggageAndBags" - "media" - "officeSupplies" -
 15468  	// "softwareAndVideoGames" - "vehiclePartsAndAccessories" -
 15469  	// "vehicleTiresAndWheels" - "vehicles" - "everythingElse"
 15470  	Category string `json:"category,omitempty"`
 15471  	// Rate: Rate of the commission in percentage.
 15472  	Rate string `json:"rate,omitempty"`
 15473  	// ForceSendFields is a list of field names (e.g. "Category") to
 15474  	// unconditionally include in API requests. By default, fields with empty or
 15475  	// default values are omitted from API requests. See
 15476  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15477  	// details.
 15478  	ForceSendFields []string `json:"-"`
 15479  	// NullFields is a list of field names (e.g. "Category") to include in API
 15480  	// requests with the JSON null value. By default, fields with empty values are
 15481  	// omitted from API requests. See
 15482  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15483  	NullFields []string `json:"-"`
 15484  }
 15485  
 15486  func (s *SettlementTransactionAmountCommission) MarshalJSON() ([]byte, error) {
 15487  	type NoMethod SettlementTransactionAmountCommission
 15488  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15489  }
 15490  
 15491  type SettlementTransactionIdentifiers struct {
 15492  	// AdjustmentId: The identifier of the adjustments, if it's available.
 15493  	AdjustmentId string `json:"adjustmentId,omitempty"`
 15494  	// MerchantOrderId: The merchant provided order ID.
 15495  	MerchantOrderId string `json:"merchantOrderId,omitempty"`
 15496  	// OrderItemId: The identifier of the item.
 15497  	OrderItemId string `json:"orderItemId,omitempty"`
 15498  	// SettlementEntryId: The unique ID of the settlement transaction entry.
 15499  	SettlementEntryId string `json:"settlementEntryId,omitempty"`
 15500  	// ShipmentIds: The shipment ids for the item.
 15501  	ShipmentIds []string `json:"shipmentIds,omitempty"`
 15502  	// TransactionId: The Google transaction ID.
 15503  	TransactionId string `json:"transactionId,omitempty"`
 15504  	// ForceSendFields is a list of field names (e.g. "AdjustmentId") to
 15505  	// unconditionally include in API requests. By default, fields with empty or
 15506  	// default values are omitted from API requests. See
 15507  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15508  	// details.
 15509  	ForceSendFields []string `json:"-"`
 15510  	// NullFields is a list of field names (e.g. "AdjustmentId") to include in API
 15511  	// requests with the JSON null value. By default, fields with empty values are
 15512  	// omitted from API requests. See
 15513  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15514  	NullFields []string `json:"-"`
 15515  }
 15516  
 15517  func (s *SettlementTransactionIdentifiers) MarshalJSON() ([]byte, error) {
 15518  	type NoMethod SettlementTransactionIdentifiers
 15519  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15520  }
 15521  
 15522  type SettlementTransactionTransaction struct {
 15523  	// PostDate: The time on which the event occurred in ISO 8601 format.
 15524  	PostDate string `json:"postDate,omitempty"`
 15525  	// Type: The type of the transaction that occurred. Acceptable values are: -
 15526  	// "order" - "reversal" - "orderRefund" - "reversalRefund" -
 15527  	// "issueRelatedRefundAndReplacement" - "returnLabelShippingFeeTransaction"
 15528  	// - "reversalIssueRelatedRefundAndReplacement" -
 15529  	// "reversalReturnLabelShippingFeeTransaction" -
 15530  	// "lumpSumCorrectionTransaction"
 15531  	Type string `json:"type,omitempty"`
 15532  	// ForceSendFields is a list of field names (e.g. "PostDate") to
 15533  	// unconditionally include in API requests. By default, fields with empty or
 15534  	// default values are omitted from API requests. See
 15535  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15536  	// details.
 15537  	ForceSendFields []string `json:"-"`
 15538  	// NullFields is a list of field names (e.g. "PostDate") to include in API
 15539  	// requests with the JSON null value. By default, fields with empty values are
 15540  	// omitted from API requests. See
 15541  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15542  	NullFields []string `json:"-"`
 15543  }
 15544  
 15545  func (s *SettlementTransactionTransaction) MarshalJSON() ([]byte, error) {
 15546  	type NoMethod SettlementTransactionTransaction
 15547  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15548  }
 15549  
 15550  type SettlementreportsListResponse struct {
 15551  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15552  	// "content#settlementreportsListResponse".
 15553  	Kind string `json:"kind,omitempty"`
 15554  	// NextPageToken: The token for the retrieval of the next page of returns.
 15555  	NextPageToken string              `json:"nextPageToken,omitempty"`
 15556  	Resources     []*SettlementReport `json:"resources,omitempty"`
 15557  
 15558  	// ServerResponse contains the HTTP response code and headers from the server.
 15559  	googleapi.ServerResponse `json:"-"`
 15560  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 15561  	// include in API requests. By default, fields with empty or default values are
 15562  	// omitted from API requests. See
 15563  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15564  	// details.
 15565  	ForceSendFields []string `json:"-"`
 15566  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 15567  	// with the JSON null value. By default, fields with empty values are omitted
 15568  	// from API requests. See
 15569  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15570  	NullFields []string `json:"-"`
 15571  }
 15572  
 15573  func (s *SettlementreportsListResponse) MarshalJSON() ([]byte, error) {
 15574  	type NoMethod SettlementreportsListResponse
 15575  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15576  }
 15577  
 15578  type SettlementtransactionsListResponse struct {
 15579  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15580  	// "content#settlementtransactionsListResponse".
 15581  	Kind string `json:"kind,omitempty"`
 15582  	// NextPageToken: The token for the retrieval of the next page of returns.
 15583  	NextPageToken string                   `json:"nextPageToken,omitempty"`
 15584  	Resources     []*SettlementTransaction `json:"resources,omitempty"`
 15585  
 15586  	// ServerResponse contains the HTTP response code and headers from the server.
 15587  	googleapi.ServerResponse `json:"-"`
 15588  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 15589  	// include in API requests. By default, fields with empty or default values are
 15590  	// omitted from API requests. See
 15591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15592  	// details.
 15593  	ForceSendFields []string `json:"-"`
 15594  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 15595  	// with the JSON null value. By default, fields with empty values are omitted
 15596  	// from API requests. See
 15597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15598  	NullFields []string `json:"-"`
 15599  }
 15600  
 15601  func (s *SettlementtransactionsListResponse) MarshalJSON() ([]byte, error) {
 15602  	type NoMethod SettlementtransactionsListResponse
 15603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15604  }
 15605  
 15606  type ShipmentInvoice struct {
 15607  	// InvoiceSummary: [required] Invoice summary.
 15608  	InvoiceSummary *InvoiceSummary `json:"invoiceSummary,omitempty"`
 15609  	// LineItemInvoices: [required] Invoice details per line item.
 15610  	LineItemInvoices []*ShipmentInvoiceLineItemInvoice `json:"lineItemInvoices,omitempty"`
 15611  	// ShipmentGroupId: [required] ID of the shipment group. It is assigned by the
 15612  	// merchant in the `shipLineItems` method and is used to group multiple line
 15613  	// items that have the same kind of shipping charges.
 15614  	ShipmentGroupId string `json:"shipmentGroupId,omitempty"`
 15615  	// ForceSendFields is a list of field names (e.g. "InvoiceSummary") to
 15616  	// unconditionally include in API requests. By default, fields with empty or
 15617  	// default values are omitted from API requests. See
 15618  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15619  	// details.
 15620  	ForceSendFields []string `json:"-"`
 15621  	// NullFields is a list of field names (e.g. "InvoiceSummary") to include in
 15622  	// API requests with the JSON null value. By default, fields with empty values
 15623  	// are omitted from API requests. See
 15624  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15625  	NullFields []string `json:"-"`
 15626  }
 15627  
 15628  func (s *ShipmentInvoice) MarshalJSON() ([]byte, error) {
 15629  	type NoMethod ShipmentInvoice
 15630  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15631  }
 15632  
 15633  type ShipmentInvoiceLineItemInvoice struct {
 15634  	// LineItemId: ID of the line item. Either lineItemId or productId must be set.
 15635  	LineItemId string `json:"lineItemId,omitempty"`
 15636  	// ProductId: ID of the product. This is the REST ID used in the products
 15637  	// service. Either lineItemId or productId must be set.
 15638  	ProductId string `json:"productId,omitempty"`
 15639  	// ShipmentUnitIds: [required] The shipment unit ID is assigned by the merchant
 15640  	// and defines individual quantities within a line item. The same ID can be
 15641  	// assigned to units that are the same while units that differ must be assigned
 15642  	// a different ID (for example: free or promotional units).
 15643  	ShipmentUnitIds []string `json:"shipmentUnitIds,omitempty"`
 15644  	// UnitInvoice: [required] Invoice details for a single unit.
 15645  	UnitInvoice *UnitInvoice `json:"unitInvoice,omitempty"`
 15646  	// ForceSendFields is a list of field names (e.g. "LineItemId") to
 15647  	// unconditionally include in API requests. By default, fields with empty or
 15648  	// default values are omitted from API requests. See
 15649  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15650  	// details.
 15651  	ForceSendFields []string `json:"-"`
 15652  	// NullFields is a list of field names (e.g. "LineItemId") to include in API
 15653  	// requests with the JSON null value. By default, fields with empty values are
 15654  	// omitted from API requests. See
 15655  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15656  	NullFields []string `json:"-"`
 15657  }
 15658  
 15659  func (s *ShipmentInvoiceLineItemInvoice) MarshalJSON() ([]byte, error) {
 15660  	type NoMethod ShipmentInvoiceLineItemInvoice
 15661  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15662  }
 15663  
 15664  type ShipmentTrackingInfo struct {
 15665  	// Carrier: The shipping carrier that handles the package. Acceptable values
 15666  	// are: - "boxtal" - "bpost" - "chronopost" - "colisPrive" -
 15667  	// "colissimo" - "cxt" - "deliv" - "dhl" - "dpd" - "dynamex" -
 15668  	// "eCourier" - "easypost" - "efw" - "fedex" - "fedexSmartpost" -
 15669  	// "geodis" - "gls" - "googleCourier" - "gsx" - "jdLogistics" -
 15670  	// "laPoste" - "lasership" - "manual" - "mpx" - "onTrac" - "other"
 15671  	// - "tnt" - "uds" - "ups" - "usps"
 15672  	Carrier string `json:"carrier,omitempty"`
 15673  	// TrackingNumber: The tracking number for the package.
 15674  	TrackingNumber string `json:"trackingNumber,omitempty"`
 15675  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
 15676  	// include in API requests. By default, fields with empty or default values are
 15677  	// omitted from API requests. See
 15678  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15679  	// details.
 15680  	ForceSendFields []string `json:"-"`
 15681  	// NullFields is a list of field names (e.g. "Carrier") to include in API
 15682  	// requests with the JSON null value. By default, fields with empty values are
 15683  	// omitted from API requests. See
 15684  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15685  	NullFields []string `json:"-"`
 15686  }
 15687  
 15688  func (s *ShipmentTrackingInfo) MarshalJSON() ([]byte, error) {
 15689  	type NoMethod ShipmentTrackingInfo
 15690  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15691  }
 15692  
 15693  // ShippingSettings: The merchant account's shipping settings. All methods
 15694  // except getsupportedcarriers and getsupportedholidays require the admin role.
 15695  type ShippingSettings struct {
 15696  	// AccountId: The ID of the account to which these account shipping settings
 15697  	// belong. Ignored upon update, always present in get request responses.
 15698  	AccountId uint64 `json:"accountId,omitempty,string"`
 15699  	// PostalCodeGroups: A list of postal code groups that can be referred to in
 15700  	// `services`. Optional.
 15701  	PostalCodeGroups []*PostalCodeGroup `json:"postalCodeGroups,omitempty"`
 15702  	// Services: The target account's list of services. Optional.
 15703  	Services []*Service `json:"services,omitempty"`
 15704  	// Warehouses: Optional. A list of warehouses which can be referred to in
 15705  	// `services`.
 15706  	Warehouses []*Warehouse `json:"warehouses,omitempty"`
 15707  
 15708  	// ServerResponse contains the HTTP response code and headers from the server.
 15709  	googleapi.ServerResponse `json:"-"`
 15710  	// ForceSendFields is a list of field names (e.g. "AccountId") to
 15711  	// unconditionally include in API requests. By default, fields with empty or
 15712  	// default values are omitted from API requests. See
 15713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15714  	// details.
 15715  	ForceSendFields []string `json:"-"`
 15716  	// NullFields is a list of field names (e.g. "AccountId") to include in API
 15717  	// requests with the JSON null value. By default, fields with empty values are
 15718  	// omitted from API requests. See
 15719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15720  	NullFields []string `json:"-"`
 15721  }
 15722  
 15723  func (s *ShippingSettings) MarshalJSON() ([]byte, error) {
 15724  	type NoMethod ShippingSettings
 15725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15726  }
 15727  
 15728  type ShippingsettingsCustomBatchRequest struct {
 15729  	// Entries: The request entries to be processed in the batch.
 15730  	Entries []*ShippingsettingsCustomBatchRequestEntry `json:"entries,omitempty"`
 15731  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 15732  	// include in API requests. By default, fields with empty or default values are
 15733  	// omitted from API requests. See
 15734  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15735  	// details.
 15736  	ForceSendFields []string `json:"-"`
 15737  	// NullFields is a list of field names (e.g. "Entries") to include in API
 15738  	// requests with the JSON null value. By default, fields with empty values are
 15739  	// omitted from API requests. See
 15740  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15741  	NullFields []string `json:"-"`
 15742  }
 15743  
 15744  func (s *ShippingsettingsCustomBatchRequest) MarshalJSON() ([]byte, error) {
 15745  	type NoMethod ShippingsettingsCustomBatchRequest
 15746  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15747  }
 15748  
 15749  // ShippingsettingsCustomBatchRequestEntry: A batch entry encoding a single
 15750  // non-batch shippingsettings request.
 15751  type ShippingsettingsCustomBatchRequestEntry struct {
 15752  	// AccountId: The ID of the account for which to get/update account shipping
 15753  	// settings.
 15754  	AccountId uint64 `json:"accountId,omitempty,string"`
 15755  	// BatchId: An entry ID, unique within the batch request.
 15756  	BatchId int64 `json:"batchId,omitempty"`
 15757  	// MerchantId: The ID of the managing account.
 15758  	MerchantId uint64 `json:"merchantId,omitempty,string"`
 15759  	// Method: The method of the batch entry. Acceptable values are: - "get" -
 15760  	// "update"
 15761  	Method string `json:"method,omitempty"`
 15762  	// ShippingSettings: The account shipping settings to update. Only defined if
 15763  	// the method is `update`.
 15764  	ShippingSettings *ShippingSettings `json:"shippingSettings,omitempty"`
 15765  	// ForceSendFields is a list of field names (e.g. "AccountId") to
 15766  	// unconditionally include in API requests. By default, fields with empty or
 15767  	// default values are omitted from API requests. See
 15768  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15769  	// details.
 15770  	ForceSendFields []string `json:"-"`
 15771  	// NullFields is a list of field names (e.g. "AccountId") to include in API
 15772  	// requests with the JSON null value. By default, fields with empty values are
 15773  	// omitted from API requests. See
 15774  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15775  	NullFields []string `json:"-"`
 15776  }
 15777  
 15778  func (s *ShippingsettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
 15779  	type NoMethod ShippingsettingsCustomBatchRequestEntry
 15780  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15781  }
 15782  
 15783  type ShippingsettingsCustomBatchResponse struct {
 15784  	// Entries: The result of the execution of the batch requests.
 15785  	Entries []*ShippingsettingsCustomBatchResponseEntry `json:"entries,omitempty"`
 15786  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15787  	// "content#shippingsettingsCustomBatchResponse".
 15788  	Kind string `json:"kind,omitempty"`
 15789  
 15790  	// ServerResponse contains the HTTP response code and headers from the server.
 15791  	googleapi.ServerResponse `json:"-"`
 15792  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
 15793  	// include in API requests. By default, fields with empty or default values are
 15794  	// omitted from API requests. See
 15795  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15796  	// details.
 15797  	ForceSendFields []string `json:"-"`
 15798  	// NullFields is a list of field names (e.g. "Entries") to include in API
 15799  	// requests with the JSON null value. By default, fields with empty values are
 15800  	// omitted from API requests. See
 15801  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15802  	NullFields []string `json:"-"`
 15803  }
 15804  
 15805  func (s *ShippingsettingsCustomBatchResponse) MarshalJSON() ([]byte, error) {
 15806  	type NoMethod ShippingsettingsCustomBatchResponse
 15807  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15808  }
 15809  
 15810  // ShippingsettingsCustomBatchResponseEntry: A batch entry encoding a single
 15811  // non-batch shipping settings response.
 15812  type ShippingsettingsCustomBatchResponseEntry struct {
 15813  	// BatchId: The ID of the request entry to which this entry responds.
 15814  	BatchId int64 `json:"batchId,omitempty"`
 15815  	// Errors: A list of errors for failed custombatch entries. *Note:* Schema
 15816  	// errors fail the whole request.
 15817  	Errors *Errors `json:"errors,omitempty"`
 15818  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15819  	// "content#shippingsettingsCustomBatchResponseEntry"
 15820  	Kind string `json:"kind,omitempty"`
 15821  	// ShippingSettings: The retrieved or updated account shipping settings.
 15822  	ShippingSettings *ShippingSettings `json:"shippingSettings,omitempty"`
 15823  	// ForceSendFields is a list of field names (e.g. "BatchId") to unconditionally
 15824  	// include in API requests. By default, fields with empty or default values are
 15825  	// omitted from API requests. See
 15826  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15827  	// details.
 15828  	ForceSendFields []string `json:"-"`
 15829  	// NullFields is a list of field names (e.g. "BatchId") to include in API
 15830  	// requests with the JSON null value. By default, fields with empty values are
 15831  	// omitted from API requests. See
 15832  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15833  	NullFields []string `json:"-"`
 15834  }
 15835  
 15836  func (s *ShippingsettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
 15837  	type NoMethod ShippingsettingsCustomBatchResponseEntry
 15838  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15839  }
 15840  
 15841  type ShippingsettingsGetSupportedCarriersResponse struct {
 15842  	// Carriers: A list of supported carriers. May be empty.
 15843  	Carriers []*CarriersCarrier `json:"carriers,omitempty"`
 15844  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15845  	// "content#shippingsettingsGetSupportedCarriersResponse".
 15846  	Kind string `json:"kind,omitempty"`
 15847  
 15848  	// ServerResponse contains the HTTP response code and headers from the server.
 15849  	googleapi.ServerResponse `json:"-"`
 15850  	// ForceSendFields is a list of field names (e.g. "Carriers") to
 15851  	// unconditionally include in API requests. By default, fields with empty or
 15852  	// default values are omitted from API requests. See
 15853  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15854  	// details.
 15855  	ForceSendFields []string `json:"-"`
 15856  	// NullFields is a list of field names (e.g. "Carriers") to include in API
 15857  	// requests with the JSON null value. By default, fields with empty values are
 15858  	// omitted from API requests. See
 15859  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15860  	NullFields []string `json:"-"`
 15861  }
 15862  
 15863  func (s *ShippingsettingsGetSupportedCarriersResponse) MarshalJSON() ([]byte, error) {
 15864  	type NoMethod ShippingsettingsGetSupportedCarriersResponse
 15865  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15866  }
 15867  
 15868  type ShippingsettingsGetSupportedHolidaysResponse struct {
 15869  	// Holidays: A list of holidays applicable for delivery guarantees. May be
 15870  	// empty.
 15871  	Holidays []*HolidaysHoliday `json:"holidays,omitempty"`
 15872  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15873  	// "content#shippingsettingsGetSupportedHolidaysResponse".
 15874  	Kind string `json:"kind,omitempty"`
 15875  
 15876  	// ServerResponse contains the HTTP response code and headers from the server.
 15877  	googleapi.ServerResponse `json:"-"`
 15878  	// ForceSendFields is a list of field names (e.g. "Holidays") to
 15879  	// unconditionally include in API requests. By default, fields with empty or
 15880  	// default values are omitted from API requests. See
 15881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15882  	// details.
 15883  	ForceSendFields []string `json:"-"`
 15884  	// NullFields is a list of field names (e.g. "Holidays") to include in API
 15885  	// requests with the JSON null value. By default, fields with empty values are
 15886  	// omitted from API requests. See
 15887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15888  	NullFields []string `json:"-"`
 15889  }
 15890  
 15891  func (s *ShippingsettingsGetSupportedHolidaysResponse) MarshalJSON() ([]byte, error) {
 15892  	type NoMethod ShippingsettingsGetSupportedHolidaysResponse
 15893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15894  }
 15895  
 15896  type ShippingsettingsGetSupportedPickupServicesResponse struct {
 15897  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15898  	// "content#shippingsettingsGetSupportedPickupServicesResponse".
 15899  	Kind string `json:"kind,omitempty"`
 15900  	// PickupServices: A list of supported pickup services. May be empty.
 15901  	PickupServices []*PickupServicesPickupService `json:"pickupServices,omitempty"`
 15902  
 15903  	// ServerResponse contains the HTTP response code and headers from the server.
 15904  	googleapi.ServerResponse `json:"-"`
 15905  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 15906  	// include in API requests. By default, fields with empty or default values are
 15907  	// omitted from API requests. See
 15908  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15909  	// details.
 15910  	ForceSendFields []string `json:"-"`
 15911  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 15912  	// with the JSON null value. By default, fields with empty values are omitted
 15913  	// from API requests. See
 15914  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15915  	NullFields []string `json:"-"`
 15916  }
 15917  
 15918  func (s *ShippingsettingsGetSupportedPickupServicesResponse) MarshalJSON() ([]byte, error) {
 15919  	type NoMethod ShippingsettingsGetSupportedPickupServicesResponse
 15920  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15921  }
 15922  
 15923  type ShippingsettingsListResponse struct {
 15924  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 15925  	// "content#shippingsettingsListResponse".
 15926  	Kind string `json:"kind,omitempty"`
 15927  	// NextPageToken: The token for the retrieval of the next page of shipping
 15928  	// settings.
 15929  	NextPageToken string              `json:"nextPageToken,omitempty"`
 15930  	Resources     []*ShippingSettings `json:"resources,omitempty"`
 15931  
 15932  	// ServerResponse contains the HTTP response code and headers from the server.
 15933  	googleapi.ServerResponse `json:"-"`
 15934  	// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally
 15935  	// include in API requests. By default, fields with empty or default values are
 15936  	// omitted from API requests. See
 15937  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15938  	// details.
 15939  	ForceSendFields []string `json:"-"`
 15940  	// NullFields is a list of field names (e.g. "Kind") to include in API requests
 15941  	// with the JSON null value. By default, fields with empty values are omitted
 15942  	// from API requests. See
 15943  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15944  	NullFields []string `json:"-"`
 15945  }
 15946  
 15947  func (s *ShippingsettingsListResponse) MarshalJSON() ([]byte, error) {
 15948  	type NoMethod ShippingsettingsListResponse
 15949  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15950  }
 15951  
 15952  // ShoppingAdsProgramStatus: Response message for GetShoppingAdsProgramStatus.
 15953  type ShoppingAdsProgramStatus struct {
 15954  	// GlobalState: State of the program. `ENABLED` if there are offers for at
 15955  	// least one region.
 15956  	//
 15957  	// Possible values:
 15958  	//   "PROGRAM_STATE_UNSPECIFIED" - State is unknown.
 15959  	//   "NOT_ENABLED" - Program is not enabled for any country.
 15960  	//   "NO_OFFERS_UPLOADED" - No products have been uploaded for any region.
 15961  	// Upload products to Merchant Center.
 15962  	//   "ENABLED" - Program is enabled and offers are uploaded for at least one
 15963  	// country.
 15964  	GlobalState string `json:"globalState,omitempty"`
 15965  	// RegionStatuses: Status of the program in each region. Regions with the same
 15966  	// status and review eligibility are grouped together in `regionCodes`.
 15967  	RegionStatuses []*ShoppingAdsProgramStatusRegionStatus `json:"regionStatuses,omitempty"`
 15968  
 15969  	// ServerResponse contains the HTTP response code and headers from the server.
 15970  	googleapi.ServerResponse `json:"-"`
 15971  	// ForceSendFields is a list of field names (e.g. "GlobalState") to
 15972  	// unconditionally include in API requests. By default, fields with empty or
 15973  	// default values are omitted from API requests. See
 15974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 15975  	// details.
 15976  	ForceSendFields []string `json:"-"`
 15977  	// NullFields is a list of field names (e.g. "GlobalState") to include in API
 15978  	// requests with the JSON null value. By default, fields with empty values are
 15979  	// omitted from API requests. See
 15980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 15981  	NullFields []string `json:"-"`
 15982  }
 15983  
 15984  func (s *ShoppingAdsProgramStatus) MarshalJSON() ([]byte, error) {
 15985  	type NoMethod ShoppingAdsProgramStatus
 15986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 15987  }
 15988  
 15989  // ShoppingAdsProgramStatusRegionStatus: Status of program and region.
 15990  type ShoppingAdsProgramStatusRegionStatus struct {
 15991  	// DisapprovalDate: Date by which eligibilityStatus will go from `WARNING` to
 15992  	// `DISAPPROVED`. Only visible when your eligibilityStatus is WARNING. In ISO
 15993  	// 8601 (https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DD`.
 15994  	DisapprovalDate string `json:"disapprovalDate,omitempty"`
 15995  	// EligibilityStatus: Eligibility status of the Shopping Ads program.
 15996  	//
 15997  	// Possible values:
 15998  	//   "STATE_UNSPECIFIED" - State is not known.
 15999  	//   "APPROVED" - If the account has no issues and review is completed
 16000  	// successfully.
 16001  	//   "DISAPPROVED" - There are one or more issues that needs to be resolved for
 16002  	// account to be active for the program. Detailed list of account issues are
 16003  	// available in
 16004  	// [accountstatuses](https://developers.google.com/shopping-content/reference/re
 16005  	// st/v2.1/accountstatuses) API.
 16006  	//   "WARNING" - If account has issues but offers are servable. Some of the
 16007  	// issue can make account DISAPPROVED after a certain deadline.
 16008  	//   "UNDER_REVIEW" - Account is under review.
 16009  	//   "PENDING_REVIEW" - Account is waiting for review to start.
 16010  	//   "ONBOARDING" - Program is currently onboarding. Upload valid offers to
 16011  	// complete onboarding.
 16012  	EligibilityStatus string `json:"eligibilityStatus,omitempty"`
 16013  	// OnboardingIssues: Issues that must be fixed to be eligible for review.
 16014  	OnboardingIssues []string `json:"onboardingIssues,omitempty"`
 16015  	// RegionCodes: The two-letter ISO 3166-1 alpha-2
 16016  	// (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) codes for all the regions
 16017  	// with the same `eligibilityStatus` and `reviewEligibility`.
 16018  	RegionCodes []string `json:"regionCodes,omitempty"`
 16019  	// ReviewEligibilityStatus: If a program is eligible for review in a specific
 16020  	// region. Only visible if `eligibilityStatus` is `DISAPPROVED`.
 16021  	//
 16022  	// Possible values:
 16023  	//   "REVIEW_ELIGIBILITY_UNSPECIFIED" - Review eligibility state is unknown.
 16024  	//   "ELIGIBLE" - Account is eligible for review for a specified region code.
 16025  	//   "INELIGIBLE" - Account is not eligible for review for a specified region
 16026  	// code.
 16027  	ReviewEligibilityStatus string `json:"reviewEligibilityStatus,omitempty"`
 16028  	// ReviewIneligibilityReason: Review ineligibility reason if account is not
 16029  	// eligible for review.
 16030  	//
 16031  	// Possible values:
 16032  	//   "REVIEW_INELIGIBILITY_REASON_UNSPECIFIED" - Requesting a review from
 16033  	// Google is not possible.
 16034  	//   "ONBOARDING_ISSUES" - All onboarding issues needs to be fixed.
 16035  	//   "NOT_ENOUGH_OFFERS" - Not enough offers uploaded for this country.
 16036  	//   "IN_COOLDOWN_PERIOD" - Cooldown period applies. Wait until cooldown period
 16037  	// ends.
 16038  	//   "ALREADY_UNDER_REVIEW" - Account is already under review.
 16039  	//   "NO_REVIEW_REQUIRED" - No issues available to review.
 16040  	//   "WILL_BE_REVIEWED_AUTOMATICALLY" - Account will be automatically reviewed
 16041  	// at the end of the grace period.
 16042  	//   "IS_RETIRED" - Account is retired. Should not appear in MC.
 16043  	//   "ALREADY_REVIEWED" - Account was already reviewd.
 16044  	ReviewIneligibilityReason string `json:"reviewIneligibilityReason,omitempty"`
 16045  	// ReviewIneligibilityReasonDescription: Reason a program in a specific region
 16046  	// isn’t eligible for review. Only visible if `reviewEligibilityStatus` is
 16047  	// `INELIGIBLE`.
 16048  	ReviewIneligibilityReasonDescription string `json:"reviewIneligibilityReasonDescription,omitempty"`
 16049  	// ReviewIneligibilityReasonDetails: Additional information for ineligibility.
 16050  	// If `reviewIneligibilityReason` is `IN_COOLDOWN_PERIOD`, a timestamp for the
 16051  	// end of the cooldown period is provided.
 16052  	ReviewIneligibilityReasonDetails *ShoppingAdsProgramStatusReviewIneligibilityReasonDetails `json:"reviewIneligibilityReasonDetails,omitempty"`
 16053  	// ReviewIssues: Issues evaluated in the review process. Fix all issues before
 16054  	// requesting a review.
 16055  	ReviewIssues []string `json:"reviewIssues,omitempty"`
 16056  	// ForceSendFields is a list of field names (e.g. "DisapprovalDate") to
 16057  	// unconditionally include in API requests. By default, fields with empty or
 16058  	// default values are omitted from API requests. See
 16059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16060  	// details.
 16061  	ForceSendFields []string `json:"-"`
 16062  	// NullFields is a list of field names (e.g. "DisapprovalDate") to include in
 16063  	// API requests with the JSON null value. By default, fields with empty values
 16064  	// are omitted from API requests. See
 16065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16066  	NullFields []string `json:"-"`
 16067  }
 16068  
 16069  func (s *ShoppingAdsProgramStatusRegionStatus) MarshalJSON() ([]byte, error) {
 16070  	type NoMethod ShoppingAdsProgramStatusRegionStatus
 16071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16072  }
 16073  
 16074  // ShoppingAdsProgramStatusReviewIneligibilityReasonDetails: Additional details
 16075  // for review ineligibility reasons.
 16076  type ShoppingAdsProgramStatusReviewIneligibilityReasonDetails struct {
 16077  	// CooldownTime: This timestamp represents end of cooldown period for review
 16078  	// ineligbility reason `IN_COOLDOWN_PERIOD`.
 16079  	CooldownTime string `json:"cooldownTime,omitempty"`
 16080  	// ForceSendFields is a list of field names (e.g. "CooldownTime") to
 16081  	// unconditionally include in API requests. By default, fields with empty or
 16082  	// default values are omitted from API requests. See
 16083  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16084  	// details.
 16085  	ForceSendFields []string `json:"-"`
 16086  	// NullFields is a list of field names (e.g. "CooldownTime") to include in API
 16087  	// requests with the JSON null value. By default, fields with empty values are
 16088  	// omitted from API requests. See
 16089  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16090  	NullFields []string `json:"-"`
 16091  }
 16092  
 16093  func (s *ShoppingAdsProgramStatusReviewIneligibilityReasonDetails) MarshalJSON() ([]byte, error) {
 16094  	type NoMethod ShoppingAdsProgramStatusReviewIneligibilityReasonDetails
 16095  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16096  }
 16097  
 16098  type Table struct {
 16099  	// ColumnHeaders: Headers of the table's columns. Optional: if not set then the
 16100  	// table has only one dimension.
 16101  	ColumnHeaders *Headers `json:"columnHeaders,omitempty"`
 16102  	// Name: Name of the table. Required for subtables, ignored for the main table.
 16103  	Name string `json:"name,omitempty"`
 16104  	// RowHeaders: Headers of the table's rows. Required.
 16105  	RowHeaders *Headers `json:"rowHeaders,omitempty"`
 16106  	// Rows: The list of rows that constitute the table. Must have the same length
 16107  	// as `rowHeaders`. Required.
 16108  	Rows []*Row `json:"rows,omitempty"`
 16109  	// ForceSendFields is a list of field names (e.g. "ColumnHeaders") to
 16110  	// unconditionally include in API requests. By default, fields with empty or
 16111  	// default values are omitted from API requests. See
 16112  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16113  	// details.
 16114  	ForceSendFields []string `json:"-"`
 16115  	// NullFields is a list of field names (e.g. "ColumnHeaders") to include in API
 16116  	// requests with the JSON null value. By default, fields with empty values are
 16117  	// omitted from API requests. See
 16118  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16119  	NullFields []string `json:"-"`
 16120  }
 16121  
 16122  func (s *Table) MarshalJSON() ([]byte, error) {
 16123  	type NoMethod Table
 16124  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16125  }
 16126  
 16127  type TestOrder struct {
 16128  	// DeliveryDetails: Overrides the predefined delivery details if provided.
 16129  	DeliveryDetails *TestOrderDeliveryDetails `json:"deliveryDetails,omitempty"`
 16130  	// EnableOrderinvoices: Whether the orderinvoices service should support this
 16131  	// order.
 16132  	EnableOrderinvoices bool `json:"enableOrderinvoices,omitempty"`
 16133  	// Kind: Identifies what kind of resource this is. Value: the fixed string
 16134  	// "content#testOrder"
 16135  	Kind string `json:"kind,omitempty"`
 16136  	// LineItems: Required. Line items that are ordered. At least one line item
 16137  	// must be provided.
 16138  	LineItems []*TestOrderLineItem `json:"lineItems,omitempty"`
 16139  	// NotificationMode: Restricted. Do not use.
 16140  	NotificationMode string `json:"notificationMode,omitempty"`
 16141  	// PickupDetails: Overrides the predefined pickup details if provided.
 16142  	PickupDetails *TestOrderPickupDetails `json:"pickupDetails,omitempty"`
 16143  	// PredefinedBillingAddress: Required. The billing address. Acceptable values
 16144  	// are: - "dwight" - "jim" - "pam"
 16145  	PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"`
 16146  	// PredefinedDeliveryAddress: Required. Identifier of one of the predefined
 16147  	// delivery addresses for the delivery. Acceptable values are: - "dwight" -
 16148  	// "jim" - "pam"
 16149  	PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"`
 16150  	// PredefinedEmail: Required. Email address of the customer. Acceptable values
 16151  	// are: - "pog.dwight.schrute@gmail.com" - "pog.jim.halpert@gmail.com" -
 16152  	// "penpog.pam.beesly@gmail.comding"
 16153  	PredefinedEmail string `json:"predefinedEmail,omitempty"`
 16154  	// PredefinedPickupDetails: Identifier of one of the predefined pickup details.
 16155  	// Required for orders containing line items with shipping type `pickup`.
 16156  	// Acceptable values are: - "dwight" - "jim" - "pam"
 16157  	PredefinedPickupDetails string `json:"predefinedPickupDetails,omitempty"`
 16158  	// Promotions: Promotions associated with the order.
 16159  	Promotions []*OrderPromotion `json:"promotions,omitempty"`
 16160  	// ShippingCost: Required. The price of shipping for all items. Shipping tax is
 16161  	// automatically calculated for orders where marketplace facilitator tax laws
 16162  	// are applicable. Otherwise, tax settings from Merchant Center are applied.
 16163  	// Note that shipping is not taxed in certain states.
 16164  	ShippingCost *Price `json:"shippingCost,omitempty"`
 16165  	// ShippingOption: Required. The requested shipping option. Acceptable values
 16166  	// are: - "economy" - "expedited" - "oneDay" - "sameDay" - "standard"
 16167  	// - "twoDay"
 16168  	ShippingOption string `json:"shippingOption,omitempty"`
 16169  	// ForceSendFields is a list of field names (e.g. "DeliveryDetails") to
 16170  	// unconditionally include in API requests. By default, fields with empty or
 16171  	// default values are omitted from API requests. See
 16172  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16173  	// details.
 16174  	ForceSendFields []string `json:"-"`
 16175  	// NullFields is a list of field names (e.g. "DeliveryDetails") to include in
 16176  	// API requests with the JSON null value. By default, fields with empty values
 16177  	// are omitted from API requests. See
 16178  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16179  	NullFields []string `json:"-"`
 16180  }
 16181  
 16182  func (s *TestOrder) MarshalJSON() ([]byte, error) {
 16183  	type NoMethod TestOrder
 16184  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16185  }
 16186  
 16187  type TestOrderAddress struct {
 16188  	// Country: CLDR country code (for example, "US").
 16189  	Country string `json:"country,omitempty"`
 16190  	// FullAddress: Strings representing the lines of the printed label for mailing
 16191  	// the order, for example: John Smith 1600 Amphitheatre Parkway Mountain View,
 16192  	// CA, 94043 United States
 16193  	FullAddress []string `json:"fullAddress,omitempty"`
 16194  	// IsPostOfficeBox: Whether the address is a post office box.
 16195  	IsPostOfficeBox bool `json:"isPostOfficeBox,omitempty"`
 16196  	// Locality: City, town or commune. May also include dependent localities or
 16197  	// sublocalities (for example, neighborhoods or suburbs).
 16198  	Locality string `json:"locality,omitempty"`
 16199  	// PostalCode: Postal Code or ZIP (for example, "94043").
 16200  	PostalCode string `json:"postalCode,omitempty"`
 16201  	// RecipientName: Name of the recipient.
 16202  	RecipientName string `json:"recipientName,omitempty"`
 16203  	// Region: Top-level administrative subdivision of the country. For example, a
 16204  	// state like California ("CA") or a province like Quebec ("QC").
 16205  	Region string `json:"region,omitempty"`
 16206  	// StreetAddress: Street-level part of the address. Use `\n` to add a second
 16207  	// line.
 16208  	StreetAddress []string `json:"streetAddress,omitempty"`
 16209  	// ForceSendFields is a list of field names (e.g. "Country") to unconditionally
 16210  	// include in API requests. By default, fields with empty or default values are
 16211  	// omitted from API requests. See
 16212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16213  	// details.
 16214  	ForceSendFields []string `json:"-"`
 16215  	// NullFields is a list of field names (e.g. "Country") to include in API
 16216  	// requests with the JSON null value. By default, fields with empty values are
 16217  	// omitted from API requests. See
 16218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16219  	NullFields []string `json:"-"`
 16220  }
 16221  
 16222  func (s *TestOrderAddress) MarshalJSON() ([]byte, error) {
 16223  	type NoMethod TestOrderAddress
 16224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16225  }
 16226  
 16227  type TestOrderDeliveryDetails struct {
 16228  	// Address: The delivery address
 16229  	Address *TestOrderAddress `json:"address,omitempty"`
 16230  	// IsScheduledDelivery: Whether the order is scheduled delivery order.
 16231  	IsScheduledDelivery bool `json:"isScheduledDelivery,omitempty"`
 16232  	// PhoneNumber: The phone number of the person receiving the delivery.
 16233  	PhoneNumber string `json:"phoneNumber,omitempty"`
 16234  	// ForceSendFields is a list of field names (e.g. "Address") to unconditionally
 16235  	// include in API requests. By default, fields with empty or default values are
 16236  	// omitted from API requests. See
 16237  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16238  	// details.
 16239  	ForceSendFields []string `json:"-"`
 16240  	// NullFields is a list of field names (e.g. "Address") to include in API
 16241  	// requests with the JSON null value. By default, fields with empty values are
 16242  	// omitted from API requests. See
 16243  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16244  	NullFields []string `json:"-"`
 16245  }
 16246  
 16247  func (s *TestOrderDeliveryDetails) MarshalJSON() ([]byte, error) {
 16248  	type NoMethod TestOrderDeliveryDetails
 16249  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16250  }
 16251  
 16252  type TestOrderLineItem struct {
 16253  	// Product: Required. Product data from the time of the order placement.
 16254  	Product *TestOrderLineItemProduct `json:"product,omitempty"`
 16255  	// QuantityOrdered: Required. Number of items ordered.
 16256  	QuantityOrdered int64 `json:"quantityOrdered,omitempty"`
 16257  	// ReturnInfo: Required. Details of the return policy for the line item.
 16258  	ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`
 16259  	// ShippingDetails: Required. Details of the requested shipping for the line
 16260  	// item.
 16261  	ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`
 16262  	// ForceSendFields is a list of field names (e.g. "Product") to unconditionally
 16263  	// include in API requests. By default, fields with empty or default values are
 16264  	// omitted from API requests. See
 16265  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16266  	// details.
 16267  	ForceSendFields []string `json:"-"`
 16268  	// NullFields is a list of field names (e.g. "Product") to include in API
 16269  	// requests with the JSON null value. By default, fields with empty values are
 16270  	// omitted from API requests. See
 16271  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16272  	NullFields []string `json:"-"`
 16273  }
 16274  
 16275  func (s *TestOrderLineItem) MarshalJSON() ([]byte, error) {
 16276  	type NoMethod TestOrderLineItem
 16277  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16278  }
 16279  
 16280  type TestOrderLineItemProduct struct {
 16281  	// Brand: Required. Brand of the item.
 16282  	Brand string `json:"brand,omitempty"`
 16283  	// Condition: Required. Condition or state of the item. Acceptable values are:
 16284  	// - "new"
 16285  	Condition string `json:"condition,omitempty"`
 16286  	// ContentLanguage: Required. The two-letter ISO 639-1 language code for the
 16287  	// item. Acceptable values are: - "en" - "fr"
 16288  	ContentLanguage string `json:"contentLanguage,omitempty"`
 16289  	// Fees: Fees for the item. Optional.
 16290  	Fees []*OrderLineItemProductFee `json:"fees,omitempty"`
 16291  	// Gtin: Global Trade Item Number (GTIN) of the item. Optional.
 16292  	Gtin string `json:"gtin,omitempty"`
 16293  	// ImageLink: Required. URL of an image of the item.
 16294  	ImageLink string `json:"imageLink,omitempty"`
 16295  	// ItemGroupId: Shared identifier for all variants of the same product.
 16296  	// Optional.
 16297  	ItemGroupId string `json:"itemGroupId,omitempty"`
 16298  	// Mpn: Manufacturer Part Number (MPN) of the item. Optional.
 16299  	Mpn string `json:"mpn,omitempty"`
 16300  	// OfferId: Required. An identifier of the item.
 16301  	OfferId string `json:"offerId,omitempty"`
 16302  	// Price: Required. The price for the product. Tax is automatically calculated
 16303  	// for orders where marketplace facilitator tax laws are applicable. Otherwise,
 16304  	// tax settings from Merchant Center are applied.
 16305  	Price *Price `json:"price,omitempty"`
 16306  	// TargetCountry: Required. The CLDR territory code of the target country of
 16307  	// the product.
 16308  	TargetCountry string `json:"targetCountry,omitempty"`
 16309  	// Title: Required. The title of the product.
 16310  	Title string `json:"title,omitempty"`
 16311  	// VariantAttributes: Variant attributes for the item. Optional.
 16312  	VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`
 16313  	// ForceSendFields is a list of field names (e.g. "Brand") to unconditionally
 16314  	// include in API requests. By default, fields with empty or default values are
 16315  	// omitted from API requests. See
 16316  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16317  	// details.
 16318  	ForceSendFields []string `json:"-"`
 16319  	// NullFields is a list of field names (e.g. "Brand") to include in API
 16320  	// requests with the JSON null value. By default, fields with empty values are
 16321  	// omitted from API requests. See
 16322  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16323  	NullFields []string `json:"-"`
 16324  }
 16325  
 16326  func (s *TestOrderLineItemProduct) MarshalJSON() ([]byte, error) {
 16327  	type NoMethod TestOrderLineItemProduct
 16328  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16329  }
 16330  
 16331  type TestOrderPickupDetails struct {
 16332  	// LocationCode: Required. Code of the location defined by provider or
 16333  	// merchant.
 16334  	LocationCode string `json:"locationCode,omitempty"`
 16335  	// PickupLocationAddress: Required. Pickup location address.
 16336  	PickupLocationAddress *TestOrderAddress `json:"pickupLocationAddress,omitempty"`
 16337  	// PickupLocationType: Pickup location type. Acceptable values are: -
 16338  	// "locker" - "store" - "curbside"
 16339  	PickupLocationType string `json:"pickupLocationType,omitempty"`
 16340  	// PickupPersons: Required. all pickup persons set by users.
 16341  	PickupPersons []*TestOrderPickupDetailsPickupPerson `json:"pickupPersons,omitempty"`
 16342  	// ForceSendFields is a list of field names (e.g. "LocationCode") to
 16343  	// unconditionally include in API requests. By default, fields with empty or
 16344  	// default values are omitted from API requests. See
 16345  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16346  	// details.
 16347  	ForceSendFields []string `json:"-"`
 16348  	// NullFields is a list of field names (e.g. "LocationCode") to include in API
 16349  	// requests with the JSON null value. By default, fields with empty values are
 16350  	// omitted from API requests. See
 16351  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16352  	NullFields []string `json:"-"`
 16353  }
 16354  
 16355  func (s *TestOrderPickupDetails) MarshalJSON() ([]byte, error) {
 16356  	type NoMethod TestOrderPickupDetails
 16357  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16358  }
 16359  
 16360  type TestOrderPickupDetailsPickupPerson struct {
 16361  	// Name: Required. Full name of the pickup person.
 16362  	Name string `json:"name,omitempty"`
 16363  	// PhoneNumber: Required. The phone number of the person picking up the items.
 16364  	PhoneNumber string `json:"phoneNumber,omitempty"`
 16365  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 16366  	// include in API requests. By default, fields with empty or default values are
 16367  	// omitted from API requests. See
 16368  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16369  	// details.
 16370  	ForceSendFields []string `json:"-"`
 16371  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 16372  	// with the JSON null value. By default, fields with empty values are omitted
 16373  	// from API requests. See
 16374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16375  	NullFields []string `json:"-"`
 16376  }
 16377  
 16378  func (s *TestOrderPickupDetailsPickupPerson) MarshalJSON() ([]byte, error) {
 16379  	type NoMethod TestOrderPickupDetailsPickupPerson
 16380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16381  }
 16382  
 16383  // TextWithTooltip: Block of text that may contain a tooltip with more
 16384  // information.
 16385  type TextWithTooltip struct {
 16386  	// SimpleTooltipValue: Value of the tooltip as a simple text.
 16387  	SimpleTooltipValue string `json:"simpleTooltipValue,omitempty"`
 16388  	// SimpleValue: Value of the message as a simple text.
 16389  	SimpleValue string `json:"simpleValue,omitempty"`
 16390  	// TooltipIconStyle: The suggested type of an icon for tooltip, if a tooltip is
 16391  	// present.
 16392  	//
 16393  	// Possible values:
 16394  	//   "TOOLTIP_ICON_STYLE_UNSPECIFIED" - Default value. Will never be provided
 16395  	// by the API.
 16396  	//   "INFO" - Used when the tooltip adds additional information to the context,
 16397  	// the 'i' can be used as an icon.
 16398  	//   "QUESTION" - Used when the tooltip shows helpful information, the '?' can
 16399  	// be used as an icon.
 16400  	TooltipIconStyle string `json:"tooltipIconStyle,omitempty"`
 16401  	// ForceSendFields is a list of field names (e.g. "SimpleTooltipValue") to
 16402  	// unconditionally include in API requests. By default, fields with empty or
 16403  	// default values are omitted from API requests. See
 16404  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16405  	// details.
 16406  	ForceSendFields []string `json:"-"`
 16407  	// NullFields is a list of field names (e.g. "SimpleTooltipValue") to include
 16408  	// in API requests with the JSON null value. By default, fields with empty
 16409  	// values are omitted from API requests. See
 16410  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16411  	NullFields []string `json:"-"`
 16412  }
 16413  
 16414  func (s *TextWithTooltip) MarshalJSON() ([]byte, error) {
 16415  	type NoMethod TextWithTooltip
 16416  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16417  }
 16418  
 16419  // TimePeriod: A message that represents a time period.
 16420  type TimePeriod struct {
 16421  	// EndTime: The ending timestamp.
 16422  	EndTime string `json:"endTime,omitempty"`
 16423  	// StartTime: The starting timestamp.
 16424  	StartTime string `json:"startTime,omitempty"`
 16425  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
 16426  	// include in API requests. By default, fields with empty or default values are
 16427  	// omitted from API requests. See
 16428  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16429  	// details.
 16430  	ForceSendFields []string `json:"-"`
 16431  	// NullFields is a list of field names (e.g. "EndTime") to include in API
 16432  	// requests with the JSON null value. By default, fields with empty values are
 16433  	// omitted from API requests. See
 16434  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16435  	NullFields []string `json:"-"`
 16436  }
 16437  
 16438  func (s *TimePeriod) MarshalJSON() ([]byte, error) {
 16439  	type NoMethod TimePeriod
 16440  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16441  }
 16442  
 16443  // TimeZone: Represents a time zone from the IANA Time Zone Database
 16444  // (https://www.iana.org/time-zones).
 16445  type TimeZone struct {
 16446  	// Id: IANA Time Zone Database time zone, e.g. "America/New_York".
 16447  	Id string `json:"id,omitempty"`
 16448  	// Version: Optional. IANA Time Zone Database version number, e.g. "2019a".
 16449  	Version string `json:"version,omitempty"`
 16450  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
 16451  	// include in API requests. By default, fields with empty or default values are
 16452  	// omitted from API requests. See
 16453  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16454  	// details.
 16455  	ForceSendFields []string `json:"-"`
 16456  	// NullFields is a list of field names (e.g. "Id") to include in API requests
 16457  	// with the JSON null value. By default, fields with empty values are omitted
 16458  	// from API requests. See
 16459  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16460  	NullFields []string `json:"-"`
 16461  }
 16462  
 16463  func (s *TimeZone) MarshalJSON() ([]byte, error) {
 16464  	type NoMethod TimeZone
 16465  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16466  }
 16467  
 16468  // TopicTrends: Topic trends fields requested by the merchant in the query.
 16469  // Field values are only set if the merchant queries `TopicTrendsView`.
 16470  // Forecast data can be queried up to 13 weeks by passing a future date in the
 16471  // `date` field. Historical data is measured daily, and forecasted data is
 16472  // projected weekly. All data points are normalized based on the highest data
 16473  // points returned in the response. If you make separate queries with different
 16474  // date ranges, you might see different values for the same date in each
 16475  // response. The recommended way to get a trend score of a topic is
 16476  // `last7_days_search_interest / last{$day}_days_search_interest - 1`. You can
 16477  // view trends for up to eight topics at a time.
 16478  type TopicTrends struct {
 16479  	// CustomerCountryCode: Country trends are calculated for. Must be a two-letter
 16480  	// country code (ISO 3166-1-alpha-2 code), for example, `“US”`.
 16481  	CustomerCountryCode string `json:"customerCountryCode,omitempty"`
 16482  	// Date: Date the trend score was retrieved.
 16483  	Date *Date `json:"date,omitempty"`
 16484  	// Last120DaysSearchInterest: Search interest in the last 120 days, with the
 16485  	// same normalization as search_interest. This field is only present for a past
 16486  	// date.
 16487  	Last120DaysSearchInterest float64 `json:"last120DaysSearchInterest,omitempty"`
 16488  	// Last30DaysSearchInterest: Search interest in the last 30 days, with the same
 16489  	// normalization as search_interest. This field is only present for a past
 16490  	// date.
 16491  	Last30DaysSearchInterest float64 `json:"last30DaysSearchInterest,omitempty"`
 16492  	// Last7DaysSearchInterest: Search interest in the last 7 days, with the same
 16493  	// normalization as search_interest. This field is only present for a past
 16494  	// date.
 16495  	Last7DaysSearchInterest float64 `json:"last7DaysSearchInterest,omitempty"`
 16496  	// Last90DaysSearchInterest: Search interest in the last 90 days, with the same
 16497  	// normalization as search_interest. This field is only present for a past
 16498  	// date.
 16499  	Last90DaysSearchInterest float64 `json:"last90DaysSearchInterest,omitempty"`
 16500  	// Next7DaysSearchInterest: Estimated search interest in the next 7 days, with
 16501  	// the same normalization as search_interest. This field is only present for a
 16502  	// future date.
 16503  	Next7DaysSearchInterest float64 `json:"next7DaysSearchInterest,omitempty"`
 16504  	// SearchInterest: Daily search interest, normalized to the time and country to
 16505  	// make comparisons easier, with 100 representing peak popularity (from 0 to
 16506  	// 100) for the requested time period and location.
 16507  	SearchInterest float64 `json:"searchInterest,omitempty"`
 16508  	// Topic: Google-provided topic trends are calculated for. Only top eight
 16509  	// topics are returned. Topic is what shoppers are searching for on Google,
 16510  	// grouped by the same concept.
 16511  	Topic string `json:"topic,omitempty"`
 16512  	// ForceSendFields is a list of field names (e.g. "CustomerCountryCode") to
 16513  	// unconditionally include in API requests. By default, fields with empty or
 16514  	// default values are omitted from API requests. See
 16515  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16516  	// details.
 16517  	ForceSendFields []string `json:"-"`
 16518  	// NullFields is a list of field names (e.g. "CustomerCountryCode") to include
 16519  	// in API requests with the JSON null value. By default, fields with empty
 16520  	// values are omitted from API requests. See
 16521  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16522  	NullFields []string `json:"-"`
 16523  }
 16524  
 16525  func (s *TopicTrends) MarshalJSON() ([]byte, error) {
 16526  	type NoMethod TopicTrends
 16527  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16528  }
 16529  
 16530  func (s *TopicTrends) UnmarshalJSON(data []byte) error {
 16531  	type NoMethod TopicTrends
 16532  	var s1 struct {
 16533  		Last120DaysSearchInterest gensupport.JSONFloat64 `json:"last120DaysSearchInterest"`
 16534  		Last30DaysSearchInterest  gensupport.JSONFloat64 `json:"last30DaysSearchInterest"`
 16535  		Last7DaysSearchInterest   gensupport.JSONFloat64 `json:"last7DaysSearchInterest"`
 16536  		Last90DaysSearchInterest  gensupport.JSONFloat64 `json:"last90DaysSearchInterest"`
 16537  		Next7DaysSearchInterest   gensupport.JSONFloat64 `json:"next7DaysSearchInterest"`
 16538  		SearchInterest            gensupport.JSONFloat64 `json:"searchInterest"`
 16539  		*NoMethod
 16540  	}
 16541  	s1.NoMethod = (*NoMethod)(s)
 16542  	if err := json.Unmarshal(data, &s1); err != nil {
 16543  		return err
 16544  	}
 16545  	s.Last120DaysSearchInterest = float64(s1.Last120DaysSearchInterest)
 16546  	s.Last30DaysSearchInterest = float64(s1.Last30DaysSearchInterest)
 16547  	s.Last7DaysSearchInterest = float64(s1.Last7DaysSearchInterest)
 16548  	s.Last90DaysSearchInterest = float64(s1.Last90DaysSearchInterest)
 16549  	s.Next7DaysSearchInterest = float64(s1.Next7DaysSearchInterest)
 16550  	s.SearchInterest = float64(s1.SearchInterest)
 16551  	return nil
 16552  }
 16553  
 16554  type TransitTable struct {
 16555  	// PostalCodeGroupNames: A list of postal group names. The last value can be
 16556  	// "all other locations". Example: `["zone 1", "zone 2", "all other
 16557  	// locations"]`. The referred postal code groups must match the delivery
 16558  	// country of the service.
 16559  	PostalCodeGroupNames []string                      `json:"postalCodeGroupNames,omitempty"`
 16560  	Rows                 []*TransitTableTransitTimeRow `json:"rows,omitempty"`
 16561  	// TransitTimeLabels: A list of transit time labels. The last value can be
 16562  	// "all other labels". Example: `["food", "electronics", "all other
 16563  	// labels"]`.
 16564  	TransitTimeLabels []string `json:"transitTimeLabels,omitempty"`
 16565  	// ForceSendFields is a list of field names (e.g. "PostalCodeGroupNames") to
 16566  	// unconditionally include in API requests. By default, fields with empty or
 16567  	// default values are omitted from API requests. See
 16568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16569  	// details.
 16570  	ForceSendFields []string `json:"-"`
 16571  	// NullFields is a list of field names (e.g. "PostalCodeGroupNames") to include
 16572  	// in API requests with the JSON null value. By default, fields with empty
 16573  	// values are omitted from API requests. See
 16574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16575  	NullFields []string `json:"-"`
 16576  }
 16577  
 16578  func (s *TransitTable) MarshalJSON() ([]byte, error) {
 16579  	type NoMethod TransitTable
 16580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16581  }
 16582  
 16583  type TransitTableTransitTimeRow struct {
 16584  	Values []*TransitTableTransitTimeRowTransitTimeValue `json:"values,omitempty"`
 16585  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
 16586  	// include in API requests. By default, fields with empty or default values are
 16587  	// omitted from API requests. See
 16588  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16589  	// details.
 16590  	ForceSendFields []string `json:"-"`
 16591  	// NullFields is a list of field names (e.g. "Values") to include in API
 16592  	// requests with the JSON null value. By default, fields with empty values are
 16593  	// omitted from API requests. See
 16594  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16595  	NullFields []string `json:"-"`
 16596  }
 16597  
 16598  func (s *TransitTableTransitTimeRow) MarshalJSON() ([]byte, error) {
 16599  	type NoMethod TransitTableTransitTimeRow
 16600  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16601  }
 16602  
 16603  type TransitTableTransitTimeRowTransitTimeValue struct {
 16604  	// MaxTransitTimeInDays: Must be greater than or equal to
 16605  	// `minTransitTimeInDays`.
 16606  	MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"`
 16607  	// MinTransitTimeInDays: Transit time range (min-max) in business days. 0 means
 16608  	// same day delivery, 1 means next day delivery.
 16609  	MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"`
 16610  	// ForceSendFields is a list of field names (e.g. "MaxTransitTimeInDays") to
 16611  	// unconditionally include in API requests. By default, fields with empty or
 16612  	// default values are omitted from API requests. See
 16613  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16614  	// details.
 16615  	ForceSendFields []string `json:"-"`
 16616  	// NullFields is a list of field names (e.g. "MaxTransitTimeInDays") to include
 16617  	// in API requests with the JSON null value. By default, fields with empty
 16618  	// values are omitted from API requests. See
 16619  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16620  	NullFields []string `json:"-"`
 16621  }
 16622  
 16623  func (s *TransitTableTransitTimeRowTransitTimeValue) MarshalJSON() ([]byte, error) {
 16624  	type NoMethod TransitTableTransitTimeRowTransitTimeValue
 16625  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16626  }
 16627  
 16628  // TriggerActionPayload: The payload for the triggered action.
 16629  type TriggerActionPayload struct {
 16630  	// ActionContext: Required. The context from the selected action. The value is
 16631  	// obtained from rendered issues and needs to be sent back to identify the
 16632  	// action that is being triggered.
 16633  	ActionContext string `json:"actionContext,omitempty"`
 16634  	// ActionInput: Required. Input provided by the merchant.
 16635  	ActionInput *ActionInput `json:"actionInput,omitempty"`
 16636  	// ForceSendFields is a list of field names (e.g. "ActionContext") to
 16637  	// unconditionally include in API requests. By default, fields with empty or
 16638  	// default values are omitted from API requests. See
 16639  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16640  	// details.
 16641  	ForceSendFields []string `json:"-"`
 16642  	// NullFields is a list of field names (e.g. "ActionContext") to include in API
 16643  	// requests with the JSON null value. By default, fields with empty values are
 16644  	// omitted from API requests. See
 16645  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16646  	NullFields []string `json:"-"`
 16647  }
 16648  
 16649  func (s *TriggerActionPayload) MarshalJSON() ([]byte, error) {
 16650  	type NoMethod TriggerActionPayload
 16651  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16652  }
 16653  
 16654  // TriggerActionResponse: Response informing about the started action.
 16655  type TriggerActionResponse struct {
 16656  	// Message: The message for merchant.
 16657  	Message string `json:"message,omitempty"`
 16658  
 16659  	// ServerResponse contains the HTTP response code and headers from the server.
 16660  	googleapi.ServerResponse `json:"-"`
 16661  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
 16662  	// include in API requests. By default, fields with empty or default values are
 16663  	// omitted from API requests. See
 16664  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16665  	// details.
 16666  	ForceSendFields []string `json:"-"`
 16667  	// NullFields is a list of field names (e.g. "Message") to include in API
 16668  	// requests with the JSON null value. By default, fields with empty values are
 16669  	// omitted from API requests. See
 16670  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16671  	NullFields []string `json:"-"`
 16672  }
 16673  
 16674  func (s *TriggerActionResponse) MarshalJSON() ([]byte, error) {
 16675  	type NoMethod TriggerActionResponse
 16676  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16677  }
 16678  
 16679  // UndeleteConversionSourceRequest: Request message for the
 16680  // UndeleteConversionSource method.
 16681  type UndeleteConversionSourceRequest struct {
 16682  }
 16683  
 16684  type UnitInvoice struct {
 16685  	// AdditionalCharges: Additional charges for a unit, for example, shipping
 16686  	// costs.
 16687  	AdditionalCharges []*UnitInvoiceAdditionalCharge `json:"additionalCharges,omitempty"`
 16688  	// UnitPrice: [required] Pre-tax or post-tax price of one unit depending on the
 16689  	// locality of the order. *Note:* Invoicing works on a per unit basis. The
 16690  	// `unitPrice` is the price of a single unit, and will be multiplied by the
 16691  	// number of entries in `shipmentUnitId`.
 16692  	UnitPrice *Price `json:"unitPrice,omitempty"`
 16693  	// UnitPriceTaxes: Tax amounts to apply to the unit price.
 16694  	UnitPriceTaxes []*UnitInvoiceTaxLine `json:"unitPriceTaxes,omitempty"`
 16695  	// ForceSendFields is a list of field names (e.g. "AdditionalCharges") to
 16696  	// unconditionally include in API requests. By default, fields with empty or
 16697  	// default values are omitted from API requests. See
 16698  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16699  	// details.
 16700  	ForceSendFields []string `json:"-"`
 16701  	// NullFields is a list of field names (e.g. "AdditionalCharges") to include in
 16702  	// API requests with the JSON null value. By default, fields with empty values
 16703  	// are omitted from API requests. See
 16704  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16705  	NullFields []string `json:"-"`
 16706  }
 16707  
 16708  func (s *UnitInvoice) MarshalJSON() ([]byte, error) {
 16709  	type NoMethod UnitInvoice
 16710  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16711  }
 16712  
 16713  type UnitInvoiceAdditionalCharge struct {
 16714  	// AdditionalChargeAmount: [required] Amount of the additional charge per unit.
 16715  	// *Note:* Invoicing works on a per unit bases. The `additionalChargeAmount` is
 16716  	// the amount charged per unit, and will be multiplied by the number of entries
 16717  	// in `shipmentUnitID`.
 16718  	AdditionalChargeAmount *Amount `json:"additionalChargeAmount,omitempty"`
 16719  	// Type: [required] Type of the additional charge. Acceptable values are: -
 16720  	// "shipping"
 16721  	Type string `json:"type,omitempty"`
 16722  	// ForceSendFields is a list of field names (e.g. "AdditionalChargeAmount") to
 16723  	// unconditionally include in API requests. By default, fields with empty or
 16724  	// default values are omitted from API requests. See
 16725  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16726  	// details.
 16727  	ForceSendFields []string `json:"-"`
 16728  	// NullFields is a list of field names (e.g. "AdditionalChargeAmount") to
 16729  	// include in API requests with the JSON null value. By default, fields with
 16730  	// empty values are omitted from API requests. See
 16731  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16732  	NullFields []string `json:"-"`
 16733  }
 16734  
 16735  func (s *UnitInvoiceAdditionalCharge) MarshalJSON() ([]byte, error) {
 16736  	type NoMethod UnitInvoiceAdditionalCharge
 16737  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16738  }
 16739  
 16740  type UnitInvoiceTaxLine struct {
 16741  	// TaxAmount: [required] Tax amount for the tax type.
 16742  	TaxAmount *Price `json:"taxAmount,omitempty"`
 16743  	// TaxName: Optional name of the tax type. This should only be provided if
 16744  	// `taxType` is `otherFeeTax`.
 16745  	TaxName string `json:"taxName,omitempty"`
 16746  	// TaxType: [required] Type of the tax. Acceptable values are: - "otherFee" -
 16747  	// "otherFeeTax" - "sales"
 16748  	TaxType string `json:"taxType,omitempty"`
 16749  	// ForceSendFields is a list of field names (e.g. "TaxAmount") to
 16750  	// unconditionally include in API requests. By default, fields with empty or
 16751  	// default values are omitted from API requests. See
 16752  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16753  	// details.
 16754  	ForceSendFields []string `json:"-"`
 16755  	// NullFields is a list of field names (e.g. "TaxAmount") to include in API
 16756  	// requests with the JSON null value. By default, fields with empty values are
 16757  	// omitted from API requests. See
 16758  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16759  	NullFields []string `json:"-"`
 16760  }
 16761  
 16762  func (s *UnitInvoiceTaxLine) MarshalJSON() ([]byte, error) {
 16763  	type NoMethod UnitInvoiceTaxLine
 16764  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16765  }
 16766  
 16767  // UrlSettings: Specifications related to the `Checkout` URL. The `UriTemplate`
 16768  // is of the form `https://www.mystore.com/checkout?item_id={id}` where `{id}`
 16769  // will be automatically replaced with data from the merchant account with this
 16770  // attribute offer_id
 16771  // (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.offer_id)
 16772  type UrlSettings struct {
 16773  	// CartUriTemplate: URL template when the placeholders are expanded will
 16774  	// redirect the buyer to the cart page on the merchant website with the
 16775  	// selected item in cart.
 16776  	CartUriTemplate string `json:"cartUriTemplate,omitempty"`
 16777  	// CheckoutUriTemplate: URL template when the placeholders are expanded will
 16778  	// redirect the buyer to the merchant checkout page with the item in the cart.
 16779  	CheckoutUriTemplate string `json:"checkoutUriTemplate,omitempty"`
 16780  	// ForceSendFields is a list of field names (e.g. "CartUriTemplate") to
 16781  	// unconditionally include in API requests. By default, fields with empty or
 16782  	// default values are omitted from API requests. See
 16783  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16784  	// details.
 16785  	ForceSendFields []string `json:"-"`
 16786  	// NullFields is a list of field names (e.g. "CartUriTemplate") to include in
 16787  	// API requests with the JSON null value. By default, fields with empty values
 16788  	// are omitted from API requests. See
 16789  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16790  	NullFields []string `json:"-"`
 16791  }
 16792  
 16793  func (s *UrlSettings) MarshalJSON() ([]byte, error) {
 16794  	type NoMethod UrlSettings
 16795  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16796  }
 16797  
 16798  // Value: The single value of a rate group or the value of a rate group table's
 16799  // cell. Exactly one of `noShipping`, `flatRate`, `pricePercentage`,
 16800  // `carrierRateName`, `subtableName` must be set.
 16801  type Value struct {
 16802  	// CarrierRateName: The name of a carrier rate referring to a carrier rate
 16803  	// defined in the same rate group. Can only be set if all other fields are not
 16804  	// set.
 16805  	CarrierRateName string `json:"carrierRateName,omitempty"`
 16806  	// FlatRate: A flat rate. Can only be set if all other fields are not set.
 16807  	FlatRate *Price `json:"flatRate,omitempty"`
 16808  	// NoShipping: If true, then the product can't ship. Must be true when set, can
 16809  	// only be set if all other fields are not set.
 16810  	NoShipping bool `json:"noShipping,omitempty"`
 16811  	// PricePercentage: A percentage of the price represented as a number in
 16812  	// decimal notation (for example, "5.4"). Can only be set if all other fields
 16813  	// are not set.
 16814  	PricePercentage string `json:"pricePercentage,omitempty"`
 16815  	// SubtableName: The name of a subtable. Can only be set in table cells (not
 16816  	// for single values), and only if all other fields are not set.
 16817  	SubtableName string `json:"subtableName,omitempty"`
 16818  	// ForceSendFields is a list of field names (e.g. "CarrierRateName") to
 16819  	// unconditionally include in API requests. By default, fields with empty or
 16820  	// default values are omitted from API requests. See
 16821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16822  	// details.
 16823  	ForceSendFields []string `json:"-"`
 16824  	// NullFields is a list of field names (e.g. "CarrierRateName") to include in
 16825  	// API requests with the JSON null value. By default, fields with empty values
 16826  	// are omitted from API requests. See
 16827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16828  	NullFields []string `json:"-"`
 16829  }
 16830  
 16831  func (s *Value) MarshalJSON() ([]byte, error) {
 16832  	type NoMethod Value
 16833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16834  }
 16835  
 16836  // VerifyPhoneNumberRequest: Request message for the VerifyPhoneNumber method.
 16837  type VerifyPhoneNumberRequest struct {
 16838  	// PhoneVerificationMethod: Verification method used to receive verification
 16839  	// code.
 16840  	//
 16841  	// Possible values:
 16842  	//   "PHONE_VERIFICATION_METHOD_UNSPECIFIED" - Unknown method.
 16843  	//   "SMS" - Receive verification code by SMS.
 16844  	//   "PHONE_CALL" - Receive verification code by phone call.
 16845  	PhoneVerificationMethod string `json:"phoneVerificationMethod,omitempty"`
 16846  	// VerificationCode: The verification code that was sent to the phone number
 16847  	// for validation.
 16848  	VerificationCode string `json:"verificationCode,omitempty"`
 16849  	// VerificationId: The verification ID returned by `requestphoneverification`.
 16850  	VerificationId string `json:"verificationId,omitempty"`
 16851  	// ForceSendFields is a list of field names (e.g. "PhoneVerificationMethod") to
 16852  	// unconditionally include in API requests. By default, fields with empty or
 16853  	// default values are omitted from API requests. See
 16854  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16855  	// details.
 16856  	ForceSendFields []string `json:"-"`
 16857  	// NullFields is a list of field names (e.g. "PhoneVerificationMethod") to
 16858  	// include in API requests with the JSON null value. By default, fields with
 16859  	// empty values are omitted from API requests. See
 16860  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16861  	NullFields []string `json:"-"`
 16862  }
 16863  
 16864  func (s *VerifyPhoneNumberRequest) MarshalJSON() ([]byte, error) {
 16865  	type NoMethod VerifyPhoneNumberRequest
 16866  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16867  }
 16868  
 16869  // VerifyPhoneNumberResponse: Response message for the VerifyPhoneNumber
 16870  // method.
 16871  type VerifyPhoneNumberResponse struct {
 16872  	// VerifiedPhoneNumber: Verified phone number if verification is successful.
 16873  	// This phone number can only be replaced by another verified phone number.
 16874  	VerifiedPhoneNumber string `json:"verifiedPhoneNumber,omitempty"`
 16875  
 16876  	// ServerResponse contains the HTTP response code and headers from the server.
 16877  	googleapi.ServerResponse `json:"-"`
 16878  	// ForceSendFields is a list of field names (e.g. "VerifiedPhoneNumber") to
 16879  	// unconditionally include in API requests. By default, fields with empty or
 16880  	// default values are omitted from API requests. See
 16881  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16882  	// details.
 16883  	ForceSendFields []string `json:"-"`
 16884  	// NullFields is a list of field names (e.g. "VerifiedPhoneNumber") to include
 16885  	// in API requests with the JSON null value. By default, fields with empty
 16886  	// values are omitted from API requests. See
 16887  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16888  	NullFields []string `json:"-"`
 16889  }
 16890  
 16891  func (s *VerifyPhoneNumberResponse) MarshalJSON() ([]byte, error) {
 16892  	type NoMethod VerifyPhoneNumberResponse
 16893  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16894  }
 16895  
 16896  // Warehouse: A fulfillment warehouse, which stores and handles inventory.
 16897  type Warehouse struct {
 16898  	// BusinessDayConfig: Business days of the warehouse. If not set, will be
 16899  	// Monday to Friday by default.
 16900  	BusinessDayConfig *BusinessDayConfig `json:"businessDayConfig,omitempty"`
 16901  	// CutoffTime: Required. The latest time of day that an order can be accepted
 16902  	// and begin processing. Later orders will be processed in the next day. The
 16903  	// time is based on the warehouse postal code.
 16904  	CutoffTime *WarehouseCutoffTime `json:"cutoffTime,omitempty"`
 16905  	// HandlingDays: Required. The number of days it takes for this warehouse to
 16906  	// pack up and ship an item. This is on the warehouse level, but can be
 16907  	// overridden on the offer level based on the attributes of an item.
 16908  	HandlingDays int64 `json:"handlingDays,omitempty,string"`
 16909  	// Name: Required. The name of the warehouse. Must be unique within account.
 16910  	Name string `json:"name,omitempty"`
 16911  	// ShippingAddress: Required. Shipping address of the warehouse.
 16912  	ShippingAddress *Address `json:"shippingAddress,omitempty"`
 16913  	// ForceSendFields is a list of field names (e.g. "BusinessDayConfig") to
 16914  	// unconditionally include in API requests. By default, fields with empty or
 16915  	// default values are omitted from API requests. See
 16916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16917  	// details.
 16918  	ForceSendFields []string `json:"-"`
 16919  	// NullFields is a list of field names (e.g. "BusinessDayConfig") to include in
 16920  	// API requests with the JSON null value. By default, fields with empty values
 16921  	// are omitted from API requests. See
 16922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16923  	NullFields []string `json:"-"`
 16924  }
 16925  
 16926  func (s *Warehouse) MarshalJSON() ([]byte, error) {
 16927  	type NoMethod Warehouse
 16928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16929  }
 16930  
 16931  type WarehouseBasedDeliveryTime struct {
 16932  	// Carrier: Required. Carrier, such as "UPS" or "Fedex". The list of
 16933  	// supported carriers can be retrieved through the `listSupportedCarriers`
 16934  	// method.
 16935  	Carrier string `json:"carrier,omitempty"`
 16936  	// CarrierService: Required. Carrier service, such as "ground" or "2 days".
 16937  	// The list of supported services for a carrier can be retrieved through the
 16938  	// `listSupportedCarriers` method. The name of the service must be in the
 16939  	// eddSupportedServices list.
 16940  	CarrierService string `json:"carrierService,omitempty"`
 16941  	// OriginAdministrativeArea: Shipping origin's state.
 16942  	OriginAdministrativeArea string `json:"originAdministrativeArea,omitempty"`
 16943  	// OriginCity: Shipping origin's city.
 16944  	OriginCity string `json:"originCity,omitempty"`
 16945  	// OriginCountry: Shipping origin's country represented as a CLDR territory
 16946  	// code (https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
 16947  	OriginCountry string `json:"originCountry,omitempty"`
 16948  	// OriginPostalCode: Shipping origin.
 16949  	OriginPostalCode string `json:"originPostalCode,omitempty"`
 16950  	// OriginStreetAddress: Shipping origin's street address.
 16951  	OriginStreetAddress string `json:"originStreetAddress,omitempty"`
 16952  	// WarehouseName: The name of the warehouse. Warehouse name need to be matched
 16953  	// with name. If warehouseName is set, the below fields will be ignored. The
 16954  	// warehouse info will be read from warehouse.
 16955  	WarehouseName string `json:"warehouseName,omitempty"`
 16956  	// ForceSendFields is a list of field names (e.g. "Carrier") to unconditionally
 16957  	// include in API requests. By default, fields with empty or default values are
 16958  	// omitted from API requests. See
 16959  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16960  	// details.
 16961  	ForceSendFields []string `json:"-"`
 16962  	// NullFields is a list of field names (e.g. "Carrier") to include in API
 16963  	// requests with the JSON null value. By default, fields with empty values are
 16964  	// omitted from API requests. See
 16965  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16966  	NullFields []string `json:"-"`
 16967  }
 16968  
 16969  func (s *WarehouseBasedDeliveryTime) MarshalJSON() ([]byte, error) {
 16970  	type NoMethod WarehouseBasedDeliveryTime
 16971  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16972  }
 16973  
 16974  type WarehouseCutoffTime struct {
 16975  	// Hour: Required. Hour (24-hour clock) of the cutoff time until which an order
 16976  	// has to be placed to be processed in the same day by the warehouse. Hour is
 16977  	// based on the timezone of warehouse.
 16978  	Hour int64 `json:"hour,omitempty"`
 16979  	// Minute: Required. Minute of the cutoff time until which an order has to be
 16980  	// placed to be processed in the same day by the warehouse. Minute is based on
 16981  	// the timezone of warehouse.
 16982  	Minute int64 `json:"minute,omitempty"`
 16983  	// ForceSendFields is a list of field names (e.g. "Hour") to unconditionally
 16984  	// include in API requests. By default, fields with empty or default values are
 16985  	// omitted from API requests. See
 16986  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 16987  	// details.
 16988  	ForceSendFields []string `json:"-"`
 16989  	// NullFields is a list of field names (e.g. "Hour") to include in API requests
 16990  	// with the JSON null value. By default, fields with empty values are omitted
 16991  	// from API requests. See
 16992  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 16993  	NullFields []string `json:"-"`
 16994  }
 16995  
 16996  func (s *WarehouseCutoffTime) MarshalJSON() ([]byte, error) {
 16997  	type NoMethod WarehouseCutoffTime
 16998  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 16999  }
 17000  
 17001  type Weight struct {
 17002  	// Unit: Required. The weight unit. Acceptable values are: - "kg" - "lb"
 17003  	Unit string `json:"unit,omitempty"`
 17004  	// Value: Required. The weight represented as a number. The weight can have a
 17005  	// maximum precision of four decimal places.
 17006  	Value string `json:"value,omitempty"`
 17007  	// ForceSendFields is a list of field names (e.g. "Unit") to unconditionally
 17008  	// include in API requests. By default, fields with empty or default values are
 17009  	// omitted from API requests. See
 17010  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 17011  	// details.
 17012  	ForceSendFields []string `json:"-"`
 17013  	// NullFields is a list of field names (e.g. "Unit") to include in API requests
 17014  	// with the JSON null value. By default, fields with empty values are omitted
 17015  	// from API requests. See
 17016  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 17017  	NullFields []string `json:"-"`
 17018  }
 17019  
 17020  func (s *Weight) MarshalJSON() ([]byte, error) {
 17021  	type NoMethod Weight
 17022  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 17023  }
 17024  
 17025  type AccountsAuthinfoCall struct {
 17026  	s            *APIService
 17027  	urlParams_   gensupport.URLParams
 17028  	ifNoneMatch_ string
 17029  	ctx_         context.Context
 17030  	header_      http.Header
 17031  }
 17032  
 17033  // Authinfo: Returns information about the authenticated user.
 17034  func (r *AccountsService) Authinfo() *AccountsAuthinfoCall {
 17035  	c := &AccountsAuthinfoCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17036  	return c
 17037  }
 17038  
 17039  // Fields allows partial responses to be retrieved. See
 17040  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17041  // details.
 17042  func (c *AccountsAuthinfoCall) Fields(s ...googleapi.Field) *AccountsAuthinfoCall {
 17043  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17044  	return c
 17045  }
 17046  
 17047  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17048  // object's ETag matches the given value. This is useful for getting updates
 17049  // only after the object has changed since the last request.
 17050  func (c *AccountsAuthinfoCall) IfNoneMatch(entityTag string) *AccountsAuthinfoCall {
 17051  	c.ifNoneMatch_ = entityTag
 17052  	return c
 17053  }
 17054  
 17055  // Context sets the context to be used in this call's Do method.
 17056  func (c *AccountsAuthinfoCall) Context(ctx context.Context) *AccountsAuthinfoCall {
 17057  	c.ctx_ = ctx
 17058  	return c
 17059  }
 17060  
 17061  // Header returns a http.Header that can be modified by the caller to add
 17062  // headers to the request.
 17063  func (c *AccountsAuthinfoCall) Header() http.Header {
 17064  	if c.header_ == nil {
 17065  		c.header_ = make(http.Header)
 17066  	}
 17067  	return c.header_
 17068  }
 17069  
 17070  func (c *AccountsAuthinfoCall) doRequest(alt string) (*http.Response, error) {
 17071  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17072  	if c.ifNoneMatch_ != "" {
 17073  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17074  	}
 17075  	var body io.Reader = nil
 17076  	c.urlParams_.Set("alt", alt)
 17077  	c.urlParams_.Set("prettyPrint", "false")
 17078  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/authinfo")
 17079  	urls += "?" + c.urlParams_.Encode()
 17080  	req, err := http.NewRequest("GET", urls, body)
 17081  	if err != nil {
 17082  		return nil, err
 17083  	}
 17084  	req.Header = reqHeaders
 17085  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17086  }
 17087  
 17088  // Do executes the "content.accounts.authinfo" call.
 17089  // Any non-2xx status code is an error. Response headers are in either
 17090  // *AccountsAuthInfoResponse.ServerResponse.Header or (if a response was
 17091  // returned at all) in error.(*googleapi.Error).Header. Use
 17092  // googleapi.IsNotModified to check whether the returned error was because
 17093  // http.StatusNotModified was returned.
 17094  func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthInfoResponse, error) {
 17095  	gensupport.SetOptions(c.urlParams_, opts...)
 17096  	res, err := c.doRequest("json")
 17097  	if res != nil && res.StatusCode == http.StatusNotModified {
 17098  		if res.Body != nil {
 17099  			res.Body.Close()
 17100  		}
 17101  		return nil, gensupport.WrapError(&googleapi.Error{
 17102  			Code:   res.StatusCode,
 17103  			Header: res.Header,
 17104  		})
 17105  	}
 17106  	if err != nil {
 17107  		return nil, err
 17108  	}
 17109  	defer googleapi.CloseBody(res)
 17110  	if err := googleapi.CheckResponse(res); err != nil {
 17111  		return nil, gensupport.WrapError(err)
 17112  	}
 17113  	ret := &AccountsAuthInfoResponse{
 17114  		ServerResponse: googleapi.ServerResponse{
 17115  			Header:         res.Header,
 17116  			HTTPStatusCode: res.StatusCode,
 17117  		},
 17118  	}
 17119  	target := &ret
 17120  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17121  		return nil, err
 17122  	}
 17123  	return ret, nil
 17124  }
 17125  
 17126  type AccountsClaimwebsiteCall struct {
 17127  	s          *APIService
 17128  	merchantId uint64
 17129  	accountId  uint64
 17130  	urlParams_ gensupport.URLParams
 17131  	ctx_       context.Context
 17132  	header_    http.Header
 17133  }
 17134  
 17135  // Claimwebsite: Claims the website of a Merchant Center sub-account. Merchant
 17136  // accounts with approved third-party CSSs aren't required to claim a website.
 17137  //
 17138  //   - accountId: The ID of the account whose website is claimed.
 17139  //   - merchantId: The ID of the managing account. If this parameter is not the
 17140  //     same as accountId, then this account must be a multi-client account and
 17141  //     `accountId` must be the ID of a sub-account of this account.
 17142  func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *AccountsClaimwebsiteCall {
 17143  	c := &AccountsClaimwebsiteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17144  	c.merchantId = merchantId
 17145  	c.accountId = accountId
 17146  	return c
 17147  }
 17148  
 17149  // Overwrite sets the optional parameter "overwrite": Only available to
 17150  // selected merchants, for example multi-client accounts (MCAs) and their
 17151  // sub-accounts. When set to `True`, this option removes any existing claim on
 17152  // the requested website and replaces it with a claim from the account that
 17153  // makes the request.
 17154  func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall {
 17155  	c.urlParams_.Set("overwrite", fmt.Sprint(overwrite))
 17156  	return c
 17157  }
 17158  
 17159  // Fields allows partial responses to be retrieved. See
 17160  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17161  // details.
 17162  func (c *AccountsClaimwebsiteCall) Fields(s ...googleapi.Field) *AccountsClaimwebsiteCall {
 17163  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17164  	return c
 17165  }
 17166  
 17167  // Context sets the context to be used in this call's Do method.
 17168  func (c *AccountsClaimwebsiteCall) Context(ctx context.Context) *AccountsClaimwebsiteCall {
 17169  	c.ctx_ = ctx
 17170  	return c
 17171  }
 17172  
 17173  // Header returns a http.Header that can be modified by the caller to add
 17174  // headers to the request.
 17175  func (c *AccountsClaimwebsiteCall) Header() http.Header {
 17176  	if c.header_ == nil {
 17177  		c.header_ = make(http.Header)
 17178  	}
 17179  	return c.header_
 17180  }
 17181  
 17182  func (c *AccountsClaimwebsiteCall) doRequest(alt string) (*http.Response, error) {
 17183  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17184  	var body io.Reader = nil
 17185  	c.urlParams_.Set("alt", alt)
 17186  	c.urlParams_.Set("prettyPrint", "false")
 17187  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/claimwebsite")
 17188  	urls += "?" + c.urlParams_.Encode()
 17189  	req, err := http.NewRequest("POST", urls, body)
 17190  	if err != nil {
 17191  		return nil, err
 17192  	}
 17193  	req.Header = reqHeaders
 17194  	googleapi.Expand(req.URL, map[string]string{
 17195  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 17196  		"accountId":  strconv.FormatUint(c.accountId, 10),
 17197  	})
 17198  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17199  }
 17200  
 17201  // Do executes the "content.accounts.claimwebsite" call.
 17202  // Any non-2xx status code is an error. Response headers are in either
 17203  // *AccountsClaimWebsiteResponse.ServerResponse.Header or (if a response was
 17204  // returned at all) in error.(*googleapi.Error).Header. Use
 17205  // googleapi.IsNotModified to check whether the returned error was because
 17206  // http.StatusNotModified was returned.
 17207  func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsClaimWebsiteResponse, error) {
 17208  	gensupport.SetOptions(c.urlParams_, opts...)
 17209  	res, err := c.doRequest("json")
 17210  	if res != nil && res.StatusCode == http.StatusNotModified {
 17211  		if res.Body != nil {
 17212  			res.Body.Close()
 17213  		}
 17214  		return nil, gensupport.WrapError(&googleapi.Error{
 17215  			Code:   res.StatusCode,
 17216  			Header: res.Header,
 17217  		})
 17218  	}
 17219  	if err != nil {
 17220  		return nil, err
 17221  	}
 17222  	defer googleapi.CloseBody(res)
 17223  	if err := googleapi.CheckResponse(res); err != nil {
 17224  		return nil, gensupport.WrapError(err)
 17225  	}
 17226  	ret := &AccountsClaimWebsiteResponse{
 17227  		ServerResponse: googleapi.ServerResponse{
 17228  			Header:         res.Header,
 17229  			HTTPStatusCode: res.StatusCode,
 17230  		},
 17231  	}
 17232  	target := &ret
 17233  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17234  		return nil, err
 17235  	}
 17236  	return ret, nil
 17237  }
 17238  
 17239  type AccountsCustombatchCall struct {
 17240  	s                          *APIService
 17241  	accountscustombatchrequest *AccountsCustomBatchRequest
 17242  	urlParams_                 gensupport.URLParams
 17243  	ctx_                       context.Context
 17244  	header_                    http.Header
 17245  }
 17246  
 17247  // Custombatch: Retrieves, inserts, updates, and deletes multiple Merchant
 17248  // Center (sub-)accounts in a single request.
 17249  func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustomBatchRequest) *AccountsCustombatchCall {
 17250  	c := &AccountsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17251  	c.accountscustombatchrequest = accountscustombatchrequest
 17252  	return c
 17253  }
 17254  
 17255  // Fields allows partial responses to be retrieved. See
 17256  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17257  // details.
 17258  func (c *AccountsCustombatchCall) Fields(s ...googleapi.Field) *AccountsCustombatchCall {
 17259  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17260  	return c
 17261  }
 17262  
 17263  // Context sets the context to be used in this call's Do method.
 17264  func (c *AccountsCustombatchCall) Context(ctx context.Context) *AccountsCustombatchCall {
 17265  	c.ctx_ = ctx
 17266  	return c
 17267  }
 17268  
 17269  // Header returns a http.Header that can be modified by the caller to add
 17270  // headers to the request.
 17271  func (c *AccountsCustombatchCall) Header() http.Header {
 17272  	if c.header_ == nil {
 17273  		c.header_ = make(http.Header)
 17274  	}
 17275  	return c.header_
 17276  }
 17277  
 17278  func (c *AccountsCustombatchCall) doRequest(alt string) (*http.Response, error) {
 17279  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17280  	var body io.Reader = nil
 17281  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountscustombatchrequest)
 17282  	if err != nil {
 17283  		return nil, err
 17284  	}
 17285  	c.urlParams_.Set("alt", alt)
 17286  	c.urlParams_.Set("prettyPrint", "false")
 17287  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/batch")
 17288  	urls += "?" + c.urlParams_.Encode()
 17289  	req, err := http.NewRequest("POST", urls, body)
 17290  	if err != nil {
 17291  		return nil, err
 17292  	}
 17293  	req.Header = reqHeaders
 17294  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17295  }
 17296  
 17297  // Do executes the "content.accounts.custombatch" call.
 17298  // Any non-2xx status code is an error. Response headers are in either
 17299  // *AccountsCustomBatchResponse.ServerResponse.Header or (if a response was
 17300  // returned at all) in error.(*googleapi.Error).Header. Use
 17301  // googleapi.IsNotModified to check whether the returned error was because
 17302  // http.StatusNotModified was returned.
 17303  func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCustomBatchResponse, error) {
 17304  	gensupport.SetOptions(c.urlParams_, opts...)
 17305  	res, err := c.doRequest("json")
 17306  	if res != nil && res.StatusCode == http.StatusNotModified {
 17307  		if res.Body != nil {
 17308  			res.Body.Close()
 17309  		}
 17310  		return nil, gensupport.WrapError(&googleapi.Error{
 17311  			Code:   res.StatusCode,
 17312  			Header: res.Header,
 17313  		})
 17314  	}
 17315  	if err != nil {
 17316  		return nil, err
 17317  	}
 17318  	defer googleapi.CloseBody(res)
 17319  	if err := googleapi.CheckResponse(res); err != nil {
 17320  		return nil, gensupport.WrapError(err)
 17321  	}
 17322  	ret := &AccountsCustomBatchResponse{
 17323  		ServerResponse: googleapi.ServerResponse{
 17324  			Header:         res.Header,
 17325  			HTTPStatusCode: res.StatusCode,
 17326  		},
 17327  	}
 17328  	target := &ret
 17329  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17330  		return nil, err
 17331  	}
 17332  	return ret, nil
 17333  }
 17334  
 17335  type AccountsDeleteCall struct {
 17336  	s          *APIService
 17337  	merchantId uint64
 17338  	accountId  uint64
 17339  	urlParams_ gensupport.URLParams
 17340  	ctx_       context.Context
 17341  	header_    http.Header
 17342  }
 17343  
 17344  // Delete: Deletes a Merchant Center sub-account.
 17345  //
 17346  //   - accountId: The ID of the account.
 17347  //   - merchantId: The ID of the managing account. This must be a multi-client
 17348  //     account, and accountId must be the ID of a sub-account of this account.
 17349  func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall {
 17350  	c := &AccountsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17351  	c.merchantId = merchantId
 17352  	c.accountId = accountId
 17353  	return c
 17354  }
 17355  
 17356  // Force sets the optional parameter "force": Option to delete sub-accounts
 17357  // with products. The default value is false.
 17358  func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall {
 17359  	c.urlParams_.Set("force", fmt.Sprint(force))
 17360  	return c
 17361  }
 17362  
 17363  // Fields allows partial responses to be retrieved. See
 17364  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17365  // details.
 17366  func (c *AccountsDeleteCall) Fields(s ...googleapi.Field) *AccountsDeleteCall {
 17367  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17368  	return c
 17369  }
 17370  
 17371  // Context sets the context to be used in this call's Do method.
 17372  func (c *AccountsDeleteCall) Context(ctx context.Context) *AccountsDeleteCall {
 17373  	c.ctx_ = ctx
 17374  	return c
 17375  }
 17376  
 17377  // Header returns a http.Header that can be modified by the caller to add
 17378  // headers to the request.
 17379  func (c *AccountsDeleteCall) Header() http.Header {
 17380  	if c.header_ == nil {
 17381  		c.header_ = make(http.Header)
 17382  	}
 17383  	return c.header_
 17384  }
 17385  
 17386  func (c *AccountsDeleteCall) doRequest(alt string) (*http.Response, error) {
 17387  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17388  	var body io.Reader = nil
 17389  	c.urlParams_.Set("alt", alt)
 17390  	c.urlParams_.Set("prettyPrint", "false")
 17391  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}")
 17392  	urls += "?" + c.urlParams_.Encode()
 17393  	req, err := http.NewRequest("DELETE", urls, body)
 17394  	if err != nil {
 17395  		return nil, err
 17396  	}
 17397  	req.Header = reqHeaders
 17398  	googleapi.Expand(req.URL, map[string]string{
 17399  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 17400  		"accountId":  strconv.FormatUint(c.accountId, 10),
 17401  	})
 17402  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17403  }
 17404  
 17405  // Do executes the "content.accounts.delete" call.
 17406  func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error {
 17407  	gensupport.SetOptions(c.urlParams_, opts...)
 17408  	res, err := c.doRequest("json")
 17409  	if err != nil {
 17410  		return err
 17411  	}
 17412  	defer googleapi.CloseBody(res)
 17413  	if err := googleapi.CheckResponse(res); err != nil {
 17414  		return gensupport.WrapError(err)
 17415  	}
 17416  	return nil
 17417  }
 17418  
 17419  type AccountsGetCall struct {
 17420  	s            *APIService
 17421  	merchantId   uint64
 17422  	accountId    uint64
 17423  	urlParams_   gensupport.URLParams
 17424  	ifNoneMatch_ string
 17425  	ctx_         context.Context
 17426  	header_      http.Header
 17427  }
 17428  
 17429  // Get: Retrieves a Merchant Center account.
 17430  //
 17431  //   - accountId: The ID of the account.
 17432  //   - merchantId: The ID of the managing account. If this parameter is not the
 17433  //     same as accountId, then this account must be a multi-client account and
 17434  //     `accountId` must be the ID of a sub-account of this account.
 17435  func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall {
 17436  	c := &AccountsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17437  	c.merchantId = merchantId
 17438  	c.accountId = accountId
 17439  	return c
 17440  }
 17441  
 17442  // View sets the optional parameter "view": Controls which fields will be
 17443  // populated. Acceptable values are: "merchant" and "css". The default value is
 17444  // "merchant".
 17445  //
 17446  // Possible values:
 17447  //
 17448  //	"MERCHANT" - Default. View is populated with Merchant Center fields.
 17449  //	"CSS" - View is populated with Comparison Shopping Services fields.
 17450  func (c *AccountsGetCall) View(view string) *AccountsGetCall {
 17451  	c.urlParams_.Set("view", view)
 17452  	return c
 17453  }
 17454  
 17455  // Fields allows partial responses to be retrieved. See
 17456  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17457  // details.
 17458  func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall {
 17459  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17460  	return c
 17461  }
 17462  
 17463  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17464  // object's ETag matches the given value. This is useful for getting updates
 17465  // only after the object has changed since the last request.
 17466  func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall {
 17467  	c.ifNoneMatch_ = entityTag
 17468  	return c
 17469  }
 17470  
 17471  // Context sets the context to be used in this call's Do method.
 17472  func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall {
 17473  	c.ctx_ = ctx
 17474  	return c
 17475  }
 17476  
 17477  // Header returns a http.Header that can be modified by the caller to add
 17478  // headers to the request.
 17479  func (c *AccountsGetCall) Header() http.Header {
 17480  	if c.header_ == nil {
 17481  		c.header_ = make(http.Header)
 17482  	}
 17483  	return c.header_
 17484  }
 17485  
 17486  func (c *AccountsGetCall) doRequest(alt string) (*http.Response, error) {
 17487  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17488  	if c.ifNoneMatch_ != "" {
 17489  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17490  	}
 17491  	var body io.Reader = nil
 17492  	c.urlParams_.Set("alt", alt)
 17493  	c.urlParams_.Set("prettyPrint", "false")
 17494  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}")
 17495  	urls += "?" + c.urlParams_.Encode()
 17496  	req, err := http.NewRequest("GET", urls, body)
 17497  	if err != nil {
 17498  		return nil, err
 17499  	}
 17500  	req.Header = reqHeaders
 17501  	googleapi.Expand(req.URL, map[string]string{
 17502  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 17503  		"accountId":  strconv.FormatUint(c.accountId, 10),
 17504  	})
 17505  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17506  }
 17507  
 17508  // Do executes the "content.accounts.get" call.
 17509  // Any non-2xx status code is an error. Response headers are in either
 17510  // *Account.ServerResponse.Header or (if a response was returned at all) in
 17511  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17512  // whether the returned error was because http.StatusNotModified was returned.
 17513  func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error) {
 17514  	gensupport.SetOptions(c.urlParams_, opts...)
 17515  	res, err := c.doRequest("json")
 17516  	if res != nil && res.StatusCode == http.StatusNotModified {
 17517  		if res.Body != nil {
 17518  			res.Body.Close()
 17519  		}
 17520  		return nil, gensupport.WrapError(&googleapi.Error{
 17521  			Code:   res.StatusCode,
 17522  			Header: res.Header,
 17523  		})
 17524  	}
 17525  	if err != nil {
 17526  		return nil, err
 17527  	}
 17528  	defer googleapi.CloseBody(res)
 17529  	if err := googleapi.CheckResponse(res); err != nil {
 17530  		return nil, gensupport.WrapError(err)
 17531  	}
 17532  	ret := &Account{
 17533  		ServerResponse: googleapi.ServerResponse{
 17534  			Header:         res.Header,
 17535  			HTTPStatusCode: res.StatusCode,
 17536  		},
 17537  	}
 17538  	target := &ret
 17539  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17540  		return nil, err
 17541  	}
 17542  	return ret, nil
 17543  }
 17544  
 17545  type AccountsInsertCall struct {
 17546  	s          *APIService
 17547  	merchantId uint64
 17548  	account    *Account
 17549  	urlParams_ gensupport.URLParams
 17550  	ctx_       context.Context
 17551  	header_    http.Header
 17552  }
 17553  
 17554  // Insert: Creates a Merchant Center sub-account.
 17555  //
 17556  //   - merchantId: The ID of the managing account. This must be a multi-client
 17557  //     account.
 17558  func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall {
 17559  	c := &AccountsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17560  	c.merchantId = merchantId
 17561  	c.account = account
 17562  	return c
 17563  }
 17564  
 17565  // Fields allows partial responses to be retrieved. See
 17566  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17567  // details.
 17568  func (c *AccountsInsertCall) Fields(s ...googleapi.Field) *AccountsInsertCall {
 17569  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17570  	return c
 17571  }
 17572  
 17573  // Context sets the context to be used in this call's Do method.
 17574  func (c *AccountsInsertCall) Context(ctx context.Context) *AccountsInsertCall {
 17575  	c.ctx_ = ctx
 17576  	return c
 17577  }
 17578  
 17579  // Header returns a http.Header that can be modified by the caller to add
 17580  // headers to the request.
 17581  func (c *AccountsInsertCall) Header() http.Header {
 17582  	if c.header_ == nil {
 17583  		c.header_ = make(http.Header)
 17584  	}
 17585  	return c.header_
 17586  }
 17587  
 17588  func (c *AccountsInsertCall) doRequest(alt string) (*http.Response, error) {
 17589  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17590  	var body io.Reader = nil
 17591  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
 17592  	if err != nil {
 17593  		return nil, err
 17594  	}
 17595  	c.urlParams_.Set("alt", alt)
 17596  	c.urlParams_.Set("prettyPrint", "false")
 17597  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts")
 17598  	urls += "?" + c.urlParams_.Encode()
 17599  	req, err := http.NewRequest("POST", urls, body)
 17600  	if err != nil {
 17601  		return nil, err
 17602  	}
 17603  	req.Header = reqHeaders
 17604  	googleapi.Expand(req.URL, map[string]string{
 17605  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 17606  	})
 17607  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17608  }
 17609  
 17610  // Do executes the "content.accounts.insert" call.
 17611  // Any non-2xx status code is an error. Response headers are in either
 17612  // *Account.ServerResponse.Header or (if a response was returned at all) in
 17613  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17614  // whether the returned error was because http.StatusNotModified was returned.
 17615  func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error) {
 17616  	gensupport.SetOptions(c.urlParams_, opts...)
 17617  	res, err := c.doRequest("json")
 17618  	if res != nil && res.StatusCode == http.StatusNotModified {
 17619  		if res.Body != nil {
 17620  			res.Body.Close()
 17621  		}
 17622  		return nil, gensupport.WrapError(&googleapi.Error{
 17623  			Code:   res.StatusCode,
 17624  			Header: res.Header,
 17625  		})
 17626  	}
 17627  	if err != nil {
 17628  		return nil, err
 17629  	}
 17630  	defer googleapi.CloseBody(res)
 17631  	if err := googleapi.CheckResponse(res); err != nil {
 17632  		return nil, gensupport.WrapError(err)
 17633  	}
 17634  	ret := &Account{
 17635  		ServerResponse: googleapi.ServerResponse{
 17636  			Header:         res.Header,
 17637  			HTTPStatusCode: res.StatusCode,
 17638  		},
 17639  	}
 17640  	target := &ret
 17641  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17642  		return nil, err
 17643  	}
 17644  	return ret, nil
 17645  }
 17646  
 17647  type AccountsLinkCall struct {
 17648  	s                   *APIService
 17649  	merchantId          uint64
 17650  	accountId           uint64
 17651  	accountslinkrequest *AccountsLinkRequest
 17652  	urlParams_          gensupport.URLParams
 17653  	ctx_                context.Context
 17654  	header_             http.Header
 17655  }
 17656  
 17657  // Link: Performs an action on a link between two Merchant Center accounts,
 17658  // namely accountId and linkedAccountId.
 17659  //
 17660  //   - accountId: The ID of the account that should be linked.
 17661  //   - merchantId: The ID of the managing account. If this parameter is not the
 17662  //     same as accountId, then this account must be a multi-client account and
 17663  //     `accountId` must be the ID of a sub-account of this account.
 17664  func (r *AccountsService) Link(merchantId uint64, accountId uint64, accountslinkrequest *AccountsLinkRequest) *AccountsLinkCall {
 17665  	c := &AccountsLinkCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17666  	c.merchantId = merchantId
 17667  	c.accountId = accountId
 17668  	c.accountslinkrequest = accountslinkrequest
 17669  	return c
 17670  }
 17671  
 17672  // Fields allows partial responses to be retrieved. See
 17673  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17674  // details.
 17675  func (c *AccountsLinkCall) Fields(s ...googleapi.Field) *AccountsLinkCall {
 17676  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17677  	return c
 17678  }
 17679  
 17680  // Context sets the context to be used in this call's Do method.
 17681  func (c *AccountsLinkCall) Context(ctx context.Context) *AccountsLinkCall {
 17682  	c.ctx_ = ctx
 17683  	return c
 17684  }
 17685  
 17686  // Header returns a http.Header that can be modified by the caller to add
 17687  // headers to the request.
 17688  func (c *AccountsLinkCall) Header() http.Header {
 17689  	if c.header_ == nil {
 17690  		c.header_ = make(http.Header)
 17691  	}
 17692  	return c.header_
 17693  }
 17694  
 17695  func (c *AccountsLinkCall) doRequest(alt string) (*http.Response, error) {
 17696  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17697  	var body io.Reader = nil
 17698  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountslinkrequest)
 17699  	if err != nil {
 17700  		return nil, err
 17701  	}
 17702  	c.urlParams_.Set("alt", alt)
 17703  	c.urlParams_.Set("prettyPrint", "false")
 17704  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/link")
 17705  	urls += "?" + c.urlParams_.Encode()
 17706  	req, err := http.NewRequest("POST", urls, body)
 17707  	if err != nil {
 17708  		return nil, err
 17709  	}
 17710  	req.Header = reqHeaders
 17711  	googleapi.Expand(req.URL, map[string]string{
 17712  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 17713  		"accountId":  strconv.FormatUint(c.accountId, 10),
 17714  	})
 17715  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17716  }
 17717  
 17718  // Do executes the "content.accounts.link" call.
 17719  // Any non-2xx status code is an error. Response headers are in either
 17720  // *AccountsLinkResponse.ServerResponse.Header or (if a response was returned
 17721  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17722  // check whether the returned error was because http.StatusNotModified was
 17723  // returned.
 17724  func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkResponse, error) {
 17725  	gensupport.SetOptions(c.urlParams_, opts...)
 17726  	res, err := c.doRequest("json")
 17727  	if res != nil && res.StatusCode == http.StatusNotModified {
 17728  		if res.Body != nil {
 17729  			res.Body.Close()
 17730  		}
 17731  		return nil, gensupport.WrapError(&googleapi.Error{
 17732  			Code:   res.StatusCode,
 17733  			Header: res.Header,
 17734  		})
 17735  	}
 17736  	if err != nil {
 17737  		return nil, err
 17738  	}
 17739  	defer googleapi.CloseBody(res)
 17740  	if err := googleapi.CheckResponse(res); err != nil {
 17741  		return nil, gensupport.WrapError(err)
 17742  	}
 17743  	ret := &AccountsLinkResponse{
 17744  		ServerResponse: googleapi.ServerResponse{
 17745  			Header:         res.Header,
 17746  			HTTPStatusCode: res.StatusCode,
 17747  		},
 17748  	}
 17749  	target := &ret
 17750  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17751  		return nil, err
 17752  	}
 17753  	return ret, nil
 17754  }
 17755  
 17756  type AccountsListCall struct {
 17757  	s            *APIService
 17758  	merchantId   uint64
 17759  	urlParams_   gensupport.URLParams
 17760  	ifNoneMatch_ string
 17761  	ctx_         context.Context
 17762  	header_      http.Header
 17763  }
 17764  
 17765  // List: Lists the sub-accounts in your Merchant Center account.
 17766  //
 17767  //   - merchantId: The ID of the managing account. This must be a multi-client
 17768  //     account.
 17769  func (r *AccountsService) List(merchantId uint64) *AccountsListCall {
 17770  	c := &AccountsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17771  	c.merchantId = merchantId
 17772  	return c
 17773  }
 17774  
 17775  // Label sets the optional parameter "label": If view is set to "css", only
 17776  // return accounts that are assigned label with given ID.
 17777  func (c *AccountsListCall) Label(label uint64) *AccountsListCall {
 17778  	c.urlParams_.Set("label", fmt.Sprint(label))
 17779  	return c
 17780  }
 17781  
 17782  // MaxResults sets the optional parameter "maxResults": The maximum number of
 17783  // accounts to return in the response, used for paging.
 17784  func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall {
 17785  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 17786  	return c
 17787  }
 17788  
 17789  // Name sets the optional parameter "name": If set, only the accounts with the
 17790  // given name (case sensitive) will be returned.
 17791  func (c *AccountsListCall) Name(name string) *AccountsListCall {
 17792  	c.urlParams_.Set("name", name)
 17793  	return c
 17794  }
 17795  
 17796  // PageToken sets the optional parameter "pageToken": The token returned by the
 17797  // previous request.
 17798  func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall {
 17799  	c.urlParams_.Set("pageToken", pageToken)
 17800  	return c
 17801  }
 17802  
 17803  // View sets the optional parameter "view": Controls which fields will be
 17804  // populated. Acceptable values are: "merchant" and "css". The default value is
 17805  // "merchant".
 17806  //
 17807  // Possible values:
 17808  //
 17809  //	"MERCHANT" - Default. View is populated with Merchant Center fields.
 17810  //	"CSS" - View is populated with Comparison Shopping Services fields.
 17811  func (c *AccountsListCall) View(view string) *AccountsListCall {
 17812  	c.urlParams_.Set("view", view)
 17813  	return c
 17814  }
 17815  
 17816  // Fields allows partial responses to be retrieved. See
 17817  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17818  // details.
 17819  func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall {
 17820  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17821  	return c
 17822  }
 17823  
 17824  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17825  // object's ETag matches the given value. This is useful for getting updates
 17826  // only after the object has changed since the last request.
 17827  func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall {
 17828  	c.ifNoneMatch_ = entityTag
 17829  	return c
 17830  }
 17831  
 17832  // Context sets the context to be used in this call's Do method.
 17833  func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall {
 17834  	c.ctx_ = ctx
 17835  	return c
 17836  }
 17837  
 17838  // Header returns a http.Header that can be modified by the caller to add
 17839  // headers to the request.
 17840  func (c *AccountsListCall) Header() http.Header {
 17841  	if c.header_ == nil {
 17842  		c.header_ = make(http.Header)
 17843  	}
 17844  	return c.header_
 17845  }
 17846  
 17847  func (c *AccountsListCall) doRequest(alt string) (*http.Response, error) {
 17848  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17849  	if c.ifNoneMatch_ != "" {
 17850  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17851  	}
 17852  	var body io.Reader = nil
 17853  	c.urlParams_.Set("alt", alt)
 17854  	c.urlParams_.Set("prettyPrint", "false")
 17855  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts")
 17856  	urls += "?" + c.urlParams_.Encode()
 17857  	req, err := http.NewRequest("GET", urls, body)
 17858  	if err != nil {
 17859  		return nil, err
 17860  	}
 17861  	req.Header = reqHeaders
 17862  	googleapi.Expand(req.URL, map[string]string{
 17863  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 17864  	})
 17865  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17866  }
 17867  
 17868  // Do executes the "content.accounts.list" call.
 17869  // Any non-2xx status code is an error. Response headers are in either
 17870  // *AccountsListResponse.ServerResponse.Header or (if a response was returned
 17871  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17872  // check whether the returned error was because http.StatusNotModified was
 17873  // returned.
 17874  func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error) {
 17875  	gensupport.SetOptions(c.urlParams_, opts...)
 17876  	res, err := c.doRequest("json")
 17877  	if res != nil && res.StatusCode == http.StatusNotModified {
 17878  		if res.Body != nil {
 17879  			res.Body.Close()
 17880  		}
 17881  		return nil, gensupport.WrapError(&googleapi.Error{
 17882  			Code:   res.StatusCode,
 17883  			Header: res.Header,
 17884  		})
 17885  	}
 17886  	if err != nil {
 17887  		return nil, err
 17888  	}
 17889  	defer googleapi.CloseBody(res)
 17890  	if err := googleapi.CheckResponse(res); err != nil {
 17891  		return nil, gensupport.WrapError(err)
 17892  	}
 17893  	ret := &AccountsListResponse{
 17894  		ServerResponse: googleapi.ServerResponse{
 17895  			Header:         res.Header,
 17896  			HTTPStatusCode: res.StatusCode,
 17897  		},
 17898  	}
 17899  	target := &ret
 17900  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17901  		return nil, err
 17902  	}
 17903  	return ret, nil
 17904  }
 17905  
 17906  // Pages invokes f for each page of results.
 17907  // A non-nil error returned from f will halt the iteration.
 17908  // The provided context supersedes any context provided to the Context method.
 17909  func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error {
 17910  	c.ctx_ = ctx
 17911  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17912  	for {
 17913  		x, err := c.Do()
 17914  		if err != nil {
 17915  			return err
 17916  		}
 17917  		if err := f(x); err != nil {
 17918  			return err
 17919  		}
 17920  		if x.NextPageToken == "" {
 17921  			return nil
 17922  		}
 17923  		c.PageToken(x.NextPageToken)
 17924  	}
 17925  }
 17926  
 17927  type AccountsListlinksCall struct {
 17928  	s            *APIService
 17929  	merchantId   uint64
 17930  	accountId    uint64
 17931  	urlParams_   gensupport.URLParams
 17932  	ifNoneMatch_ string
 17933  	ctx_         context.Context
 17934  	header_      http.Header
 17935  }
 17936  
 17937  // Listlinks: Returns the list of accounts linked to your Merchant Center
 17938  // account.
 17939  //
 17940  //   - accountId: The ID of the account for which to list links.
 17941  //   - merchantId: The ID of the managing account. If this parameter is not the
 17942  //     same as accountId, then this account must be a multi-client account and
 17943  //     `accountId` must be the ID of a sub-account of this account.
 17944  func (r *AccountsService) Listlinks(merchantId uint64, accountId uint64) *AccountsListlinksCall {
 17945  	c := &AccountsListlinksCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17946  	c.merchantId = merchantId
 17947  	c.accountId = accountId
 17948  	return c
 17949  }
 17950  
 17951  // MaxResults sets the optional parameter "maxResults": The maximum number of
 17952  // links to return in the response, used for pagination. The minimum allowed
 17953  // value is 5 results per page. If provided value is lower than 5, it will be
 17954  // automatically increased to 5.
 17955  func (c *AccountsListlinksCall) MaxResults(maxResults int64) *AccountsListlinksCall {
 17956  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 17957  	return c
 17958  }
 17959  
 17960  // PageToken sets the optional parameter "pageToken": The token returned by the
 17961  // previous request.
 17962  func (c *AccountsListlinksCall) PageToken(pageToken string) *AccountsListlinksCall {
 17963  	c.urlParams_.Set("pageToken", pageToken)
 17964  	return c
 17965  }
 17966  
 17967  // Fields allows partial responses to be retrieved. See
 17968  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17969  // details.
 17970  func (c *AccountsListlinksCall) Fields(s ...googleapi.Field) *AccountsListlinksCall {
 17971  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17972  	return c
 17973  }
 17974  
 17975  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17976  // object's ETag matches the given value. This is useful for getting updates
 17977  // only after the object has changed since the last request.
 17978  func (c *AccountsListlinksCall) IfNoneMatch(entityTag string) *AccountsListlinksCall {
 17979  	c.ifNoneMatch_ = entityTag
 17980  	return c
 17981  }
 17982  
 17983  // Context sets the context to be used in this call's Do method.
 17984  func (c *AccountsListlinksCall) Context(ctx context.Context) *AccountsListlinksCall {
 17985  	c.ctx_ = ctx
 17986  	return c
 17987  }
 17988  
 17989  // Header returns a http.Header that can be modified by the caller to add
 17990  // headers to the request.
 17991  func (c *AccountsListlinksCall) Header() http.Header {
 17992  	if c.header_ == nil {
 17993  		c.header_ = make(http.Header)
 17994  	}
 17995  	return c.header_
 17996  }
 17997  
 17998  func (c *AccountsListlinksCall) doRequest(alt string) (*http.Response, error) {
 17999  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18000  	if c.ifNoneMatch_ != "" {
 18001  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18002  	}
 18003  	var body io.Reader = nil
 18004  	c.urlParams_.Set("alt", alt)
 18005  	c.urlParams_.Set("prettyPrint", "false")
 18006  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/listlinks")
 18007  	urls += "?" + c.urlParams_.Encode()
 18008  	req, err := http.NewRequest("GET", urls, body)
 18009  	if err != nil {
 18010  		return nil, err
 18011  	}
 18012  	req.Header = reqHeaders
 18013  	googleapi.Expand(req.URL, map[string]string{
 18014  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 18015  		"accountId":  strconv.FormatUint(c.accountId, 10),
 18016  	})
 18017  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18018  }
 18019  
 18020  // Do executes the "content.accounts.listlinks" call.
 18021  // Any non-2xx status code is an error. Response headers are in either
 18022  // *AccountsListLinksResponse.ServerResponse.Header or (if a response was
 18023  // returned at all) in error.(*googleapi.Error).Header. Use
 18024  // googleapi.IsNotModified to check whether the returned error was because
 18025  // http.StatusNotModified was returned.
 18026  func (c *AccountsListlinksCall) Do(opts ...googleapi.CallOption) (*AccountsListLinksResponse, error) {
 18027  	gensupport.SetOptions(c.urlParams_, opts...)
 18028  	res, err := c.doRequest("json")
 18029  	if res != nil && res.StatusCode == http.StatusNotModified {
 18030  		if res.Body != nil {
 18031  			res.Body.Close()
 18032  		}
 18033  		return nil, gensupport.WrapError(&googleapi.Error{
 18034  			Code:   res.StatusCode,
 18035  			Header: res.Header,
 18036  		})
 18037  	}
 18038  	if err != nil {
 18039  		return nil, err
 18040  	}
 18041  	defer googleapi.CloseBody(res)
 18042  	if err := googleapi.CheckResponse(res); err != nil {
 18043  		return nil, gensupport.WrapError(err)
 18044  	}
 18045  	ret := &AccountsListLinksResponse{
 18046  		ServerResponse: googleapi.ServerResponse{
 18047  			Header:         res.Header,
 18048  			HTTPStatusCode: res.StatusCode,
 18049  		},
 18050  	}
 18051  	target := &ret
 18052  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18053  		return nil, err
 18054  	}
 18055  	return ret, nil
 18056  }
 18057  
 18058  // Pages invokes f for each page of results.
 18059  // A non-nil error returned from f will halt the iteration.
 18060  // The provided context supersedes any context provided to the Context method.
 18061  func (c *AccountsListlinksCall) Pages(ctx context.Context, f func(*AccountsListLinksResponse) error) error {
 18062  	c.ctx_ = ctx
 18063  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18064  	for {
 18065  		x, err := c.Do()
 18066  		if err != nil {
 18067  			return err
 18068  		}
 18069  		if err := f(x); err != nil {
 18070  			return err
 18071  		}
 18072  		if x.NextPageToken == "" {
 18073  			return nil
 18074  		}
 18075  		c.PageToken(x.NextPageToken)
 18076  	}
 18077  }
 18078  
 18079  type AccountsRequestphoneverificationCall struct {
 18080  	s                               *APIService
 18081  	merchantId                      int64
 18082  	accountId                       int64
 18083  	requestphoneverificationrequest *RequestPhoneVerificationRequest
 18084  	urlParams_                      gensupport.URLParams
 18085  	ctx_                            context.Context
 18086  	header_                         http.Header
 18087  }
 18088  
 18089  // Requestphoneverification: Request verification code to start phone
 18090  // verification.
 18091  //
 18092  //   - accountId: The ID of the account.
 18093  //   - merchantId: The ID of the managing account. If this parameter is not the
 18094  //     same as accountId, then this account must be a multi-client account and
 18095  //     accountId must be the ID of a sub-account of this account.
 18096  func (r *AccountsService) Requestphoneverification(merchantId int64, accountId int64, requestphoneverificationrequest *RequestPhoneVerificationRequest) *AccountsRequestphoneverificationCall {
 18097  	c := &AccountsRequestphoneverificationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18098  	c.merchantId = merchantId
 18099  	c.accountId = accountId
 18100  	c.requestphoneverificationrequest = requestphoneverificationrequest
 18101  	return c
 18102  }
 18103  
 18104  // Fields allows partial responses to be retrieved. See
 18105  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18106  // details.
 18107  func (c *AccountsRequestphoneverificationCall) Fields(s ...googleapi.Field) *AccountsRequestphoneverificationCall {
 18108  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18109  	return c
 18110  }
 18111  
 18112  // Context sets the context to be used in this call's Do method.
 18113  func (c *AccountsRequestphoneverificationCall) Context(ctx context.Context) *AccountsRequestphoneverificationCall {
 18114  	c.ctx_ = ctx
 18115  	return c
 18116  }
 18117  
 18118  // Header returns a http.Header that can be modified by the caller to add
 18119  // headers to the request.
 18120  func (c *AccountsRequestphoneverificationCall) Header() http.Header {
 18121  	if c.header_ == nil {
 18122  		c.header_ = make(http.Header)
 18123  	}
 18124  	return c.header_
 18125  }
 18126  
 18127  func (c *AccountsRequestphoneverificationCall) doRequest(alt string) (*http.Response, error) {
 18128  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18129  	var body io.Reader = nil
 18130  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestphoneverificationrequest)
 18131  	if err != nil {
 18132  		return nil, err
 18133  	}
 18134  	c.urlParams_.Set("alt", alt)
 18135  	c.urlParams_.Set("prettyPrint", "false")
 18136  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/requestphoneverification")
 18137  	urls += "?" + c.urlParams_.Encode()
 18138  	req, err := http.NewRequest("POST", urls, body)
 18139  	if err != nil {
 18140  		return nil, err
 18141  	}
 18142  	req.Header = reqHeaders
 18143  	googleapi.Expand(req.URL, map[string]string{
 18144  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 18145  		"accountId":  strconv.FormatInt(c.accountId, 10),
 18146  	})
 18147  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18148  }
 18149  
 18150  // Do executes the "content.accounts.requestphoneverification" call.
 18151  // Any non-2xx status code is an error. Response headers are in either
 18152  // *RequestPhoneVerificationResponse.ServerResponse.Header or (if a response
 18153  // was returned at all) in error.(*googleapi.Error).Header. Use
 18154  // googleapi.IsNotModified to check whether the returned error was because
 18155  // http.StatusNotModified was returned.
 18156  func (c *AccountsRequestphoneverificationCall) Do(opts ...googleapi.CallOption) (*RequestPhoneVerificationResponse, error) {
 18157  	gensupport.SetOptions(c.urlParams_, opts...)
 18158  	res, err := c.doRequest("json")
 18159  	if res != nil && res.StatusCode == http.StatusNotModified {
 18160  		if res.Body != nil {
 18161  			res.Body.Close()
 18162  		}
 18163  		return nil, gensupport.WrapError(&googleapi.Error{
 18164  			Code:   res.StatusCode,
 18165  			Header: res.Header,
 18166  		})
 18167  	}
 18168  	if err != nil {
 18169  		return nil, err
 18170  	}
 18171  	defer googleapi.CloseBody(res)
 18172  	if err := googleapi.CheckResponse(res); err != nil {
 18173  		return nil, gensupport.WrapError(err)
 18174  	}
 18175  	ret := &RequestPhoneVerificationResponse{
 18176  		ServerResponse: googleapi.ServerResponse{
 18177  			Header:         res.Header,
 18178  			HTTPStatusCode: res.StatusCode,
 18179  		},
 18180  	}
 18181  	target := &ret
 18182  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18183  		return nil, err
 18184  	}
 18185  	return ret, nil
 18186  }
 18187  
 18188  type AccountsUpdateCall struct {
 18189  	s          *APIService
 18190  	merchantId uint64
 18191  	accountId  uint64
 18192  	account    *Account
 18193  	urlParams_ gensupport.URLParams
 18194  	ctx_       context.Context
 18195  	header_    http.Header
 18196  }
 18197  
 18198  // Update: Updates a Merchant Center account. Any fields that are not provided
 18199  // are deleted from the resource.
 18200  //
 18201  //   - accountId: The ID of the account.
 18202  //   - merchantId: The ID of the managing account. If this parameter is not the
 18203  //     same as accountId, then this account must be a multi-client account and
 18204  //     `accountId` must be the ID of a sub-account of this account.
 18205  func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall {
 18206  	c := &AccountsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18207  	c.merchantId = merchantId
 18208  	c.accountId = accountId
 18209  	c.account = account
 18210  	return c
 18211  }
 18212  
 18213  // Fields allows partial responses to be retrieved. See
 18214  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18215  // details.
 18216  func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall {
 18217  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18218  	return c
 18219  }
 18220  
 18221  // Context sets the context to be used in this call's Do method.
 18222  func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall {
 18223  	c.ctx_ = ctx
 18224  	return c
 18225  }
 18226  
 18227  // Header returns a http.Header that can be modified by the caller to add
 18228  // headers to the request.
 18229  func (c *AccountsUpdateCall) Header() http.Header {
 18230  	if c.header_ == nil {
 18231  		c.header_ = make(http.Header)
 18232  	}
 18233  	return c.header_
 18234  }
 18235  
 18236  func (c *AccountsUpdateCall) doRequest(alt string) (*http.Response, error) {
 18237  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18238  	var body io.Reader = nil
 18239  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.account)
 18240  	if err != nil {
 18241  		return nil, err
 18242  	}
 18243  	c.urlParams_.Set("alt", alt)
 18244  	c.urlParams_.Set("prettyPrint", "false")
 18245  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}")
 18246  	urls += "?" + c.urlParams_.Encode()
 18247  	req, err := http.NewRequest("PUT", urls, body)
 18248  	if err != nil {
 18249  		return nil, err
 18250  	}
 18251  	req.Header = reqHeaders
 18252  	googleapi.Expand(req.URL, map[string]string{
 18253  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 18254  		"accountId":  strconv.FormatUint(c.accountId, 10),
 18255  	})
 18256  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18257  }
 18258  
 18259  // Do executes the "content.accounts.update" call.
 18260  // Any non-2xx status code is an error. Response headers are in either
 18261  // *Account.ServerResponse.Header or (if a response was returned at all) in
 18262  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18263  // whether the returned error was because http.StatusNotModified was returned.
 18264  func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error) {
 18265  	gensupport.SetOptions(c.urlParams_, opts...)
 18266  	res, err := c.doRequest("json")
 18267  	if res != nil && res.StatusCode == http.StatusNotModified {
 18268  		if res.Body != nil {
 18269  			res.Body.Close()
 18270  		}
 18271  		return nil, gensupport.WrapError(&googleapi.Error{
 18272  			Code:   res.StatusCode,
 18273  			Header: res.Header,
 18274  		})
 18275  	}
 18276  	if err != nil {
 18277  		return nil, err
 18278  	}
 18279  	defer googleapi.CloseBody(res)
 18280  	if err := googleapi.CheckResponse(res); err != nil {
 18281  		return nil, gensupport.WrapError(err)
 18282  	}
 18283  	ret := &Account{
 18284  		ServerResponse: googleapi.ServerResponse{
 18285  			Header:         res.Header,
 18286  			HTTPStatusCode: res.StatusCode,
 18287  		},
 18288  	}
 18289  	target := &ret
 18290  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18291  		return nil, err
 18292  	}
 18293  	return ret, nil
 18294  }
 18295  
 18296  type AccountsUpdatelabelsCall struct {
 18297  	s                           *APIService
 18298  	merchantId                  uint64
 18299  	accountId                   uint64
 18300  	accountsupdatelabelsrequest *AccountsUpdateLabelsRequest
 18301  	urlParams_                  gensupport.URLParams
 18302  	ctx_                        context.Context
 18303  	header_                     http.Header
 18304  }
 18305  
 18306  // Updatelabels: Updates labels that are assigned to the Merchant Center
 18307  // account by CSS user.
 18308  //
 18309  // - accountId: The ID of the account whose labels are updated.
 18310  // - merchantId: The ID of the managing account.
 18311  func (r *AccountsService) Updatelabels(merchantId uint64, accountId uint64, accountsupdatelabelsrequest *AccountsUpdateLabelsRequest) *AccountsUpdatelabelsCall {
 18312  	c := &AccountsUpdatelabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18313  	c.merchantId = merchantId
 18314  	c.accountId = accountId
 18315  	c.accountsupdatelabelsrequest = accountsupdatelabelsrequest
 18316  	return c
 18317  }
 18318  
 18319  // Fields allows partial responses to be retrieved. See
 18320  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18321  // details.
 18322  func (c *AccountsUpdatelabelsCall) Fields(s ...googleapi.Field) *AccountsUpdatelabelsCall {
 18323  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18324  	return c
 18325  }
 18326  
 18327  // Context sets the context to be used in this call's Do method.
 18328  func (c *AccountsUpdatelabelsCall) Context(ctx context.Context) *AccountsUpdatelabelsCall {
 18329  	c.ctx_ = ctx
 18330  	return c
 18331  }
 18332  
 18333  // Header returns a http.Header that can be modified by the caller to add
 18334  // headers to the request.
 18335  func (c *AccountsUpdatelabelsCall) Header() http.Header {
 18336  	if c.header_ == nil {
 18337  		c.header_ = make(http.Header)
 18338  	}
 18339  	return c.header_
 18340  }
 18341  
 18342  func (c *AccountsUpdatelabelsCall) doRequest(alt string) (*http.Response, error) {
 18343  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18344  	var body io.Reader = nil
 18345  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountsupdatelabelsrequest)
 18346  	if err != nil {
 18347  		return nil, err
 18348  	}
 18349  	c.urlParams_.Set("alt", alt)
 18350  	c.urlParams_.Set("prettyPrint", "false")
 18351  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/updatelabels")
 18352  	urls += "?" + c.urlParams_.Encode()
 18353  	req, err := http.NewRequest("POST", urls, body)
 18354  	if err != nil {
 18355  		return nil, err
 18356  	}
 18357  	req.Header = reqHeaders
 18358  	googleapi.Expand(req.URL, map[string]string{
 18359  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 18360  		"accountId":  strconv.FormatUint(c.accountId, 10),
 18361  	})
 18362  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18363  }
 18364  
 18365  // Do executes the "content.accounts.updatelabels" call.
 18366  // Any non-2xx status code is an error. Response headers are in either
 18367  // *AccountsUpdateLabelsResponse.ServerResponse.Header or (if a response was
 18368  // returned at all) in error.(*googleapi.Error).Header. Use
 18369  // googleapi.IsNotModified to check whether the returned error was because
 18370  // http.StatusNotModified was returned.
 18371  func (c *AccountsUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*AccountsUpdateLabelsResponse, error) {
 18372  	gensupport.SetOptions(c.urlParams_, opts...)
 18373  	res, err := c.doRequest("json")
 18374  	if res != nil && res.StatusCode == http.StatusNotModified {
 18375  		if res.Body != nil {
 18376  			res.Body.Close()
 18377  		}
 18378  		return nil, gensupport.WrapError(&googleapi.Error{
 18379  			Code:   res.StatusCode,
 18380  			Header: res.Header,
 18381  		})
 18382  	}
 18383  	if err != nil {
 18384  		return nil, err
 18385  	}
 18386  	defer googleapi.CloseBody(res)
 18387  	if err := googleapi.CheckResponse(res); err != nil {
 18388  		return nil, gensupport.WrapError(err)
 18389  	}
 18390  	ret := &AccountsUpdateLabelsResponse{
 18391  		ServerResponse: googleapi.ServerResponse{
 18392  			Header:         res.Header,
 18393  			HTTPStatusCode: res.StatusCode,
 18394  		},
 18395  	}
 18396  	target := &ret
 18397  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18398  		return nil, err
 18399  	}
 18400  	return ret, nil
 18401  }
 18402  
 18403  type AccountsVerifyphonenumberCall struct {
 18404  	s                        *APIService
 18405  	merchantId               int64
 18406  	accountId                int64
 18407  	verifyphonenumberrequest *VerifyPhoneNumberRequest
 18408  	urlParams_               gensupport.URLParams
 18409  	ctx_                     context.Context
 18410  	header_                  http.Header
 18411  }
 18412  
 18413  // Verifyphonenumber: Validates verification code to verify phone number for
 18414  // the account. If successful this will overwrite the value of
 18415  // `accounts.businessinformation.phoneNumber`. Only verified phone number will
 18416  // replace an existing verified phone number.
 18417  //
 18418  //   - accountId: The ID of the account.
 18419  //   - merchantId: The ID of the managing account. If this parameter is not the
 18420  //     same as accountId, then this account must be a multi-client account and
 18421  //     accountId must be the ID of a sub-account of this account.
 18422  func (r *AccountsService) Verifyphonenumber(merchantId int64, accountId int64, verifyphonenumberrequest *VerifyPhoneNumberRequest) *AccountsVerifyphonenumberCall {
 18423  	c := &AccountsVerifyphonenumberCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18424  	c.merchantId = merchantId
 18425  	c.accountId = accountId
 18426  	c.verifyphonenumberrequest = verifyphonenumberrequest
 18427  	return c
 18428  }
 18429  
 18430  // Fields allows partial responses to be retrieved. See
 18431  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18432  // details.
 18433  func (c *AccountsVerifyphonenumberCall) Fields(s ...googleapi.Field) *AccountsVerifyphonenumberCall {
 18434  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18435  	return c
 18436  }
 18437  
 18438  // Context sets the context to be used in this call's Do method.
 18439  func (c *AccountsVerifyphonenumberCall) Context(ctx context.Context) *AccountsVerifyphonenumberCall {
 18440  	c.ctx_ = ctx
 18441  	return c
 18442  }
 18443  
 18444  // Header returns a http.Header that can be modified by the caller to add
 18445  // headers to the request.
 18446  func (c *AccountsVerifyphonenumberCall) Header() http.Header {
 18447  	if c.header_ == nil {
 18448  		c.header_ = make(http.Header)
 18449  	}
 18450  	return c.header_
 18451  }
 18452  
 18453  func (c *AccountsVerifyphonenumberCall) doRequest(alt string) (*http.Response, error) {
 18454  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18455  	var body io.Reader = nil
 18456  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.verifyphonenumberrequest)
 18457  	if err != nil {
 18458  		return nil, err
 18459  	}
 18460  	c.urlParams_.Set("alt", alt)
 18461  	c.urlParams_.Set("prettyPrint", "false")
 18462  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounts/{accountId}/verifyphonenumber")
 18463  	urls += "?" + c.urlParams_.Encode()
 18464  	req, err := http.NewRequest("POST", urls, body)
 18465  	if err != nil {
 18466  		return nil, err
 18467  	}
 18468  	req.Header = reqHeaders
 18469  	googleapi.Expand(req.URL, map[string]string{
 18470  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 18471  		"accountId":  strconv.FormatInt(c.accountId, 10),
 18472  	})
 18473  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18474  }
 18475  
 18476  // Do executes the "content.accounts.verifyphonenumber" call.
 18477  // Any non-2xx status code is an error. Response headers are in either
 18478  // *VerifyPhoneNumberResponse.ServerResponse.Header or (if a response was
 18479  // returned at all) in error.(*googleapi.Error).Header. Use
 18480  // googleapi.IsNotModified to check whether the returned error was because
 18481  // http.StatusNotModified was returned.
 18482  func (c *AccountsVerifyphonenumberCall) Do(opts ...googleapi.CallOption) (*VerifyPhoneNumberResponse, error) {
 18483  	gensupport.SetOptions(c.urlParams_, opts...)
 18484  	res, err := c.doRequest("json")
 18485  	if res != nil && res.StatusCode == http.StatusNotModified {
 18486  		if res.Body != nil {
 18487  			res.Body.Close()
 18488  		}
 18489  		return nil, gensupport.WrapError(&googleapi.Error{
 18490  			Code:   res.StatusCode,
 18491  			Header: res.Header,
 18492  		})
 18493  	}
 18494  	if err != nil {
 18495  		return nil, err
 18496  	}
 18497  	defer googleapi.CloseBody(res)
 18498  	if err := googleapi.CheckResponse(res); err != nil {
 18499  		return nil, gensupport.WrapError(err)
 18500  	}
 18501  	ret := &VerifyPhoneNumberResponse{
 18502  		ServerResponse: googleapi.ServerResponse{
 18503  			Header:         res.Header,
 18504  			HTTPStatusCode: res.StatusCode,
 18505  		},
 18506  	}
 18507  	target := &ret
 18508  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18509  		return nil, err
 18510  	}
 18511  	return ret, nil
 18512  }
 18513  
 18514  type AccountsCredentialsCreateCall struct {
 18515  	s                  *APIService
 18516  	accountId          int64
 18517  	accountcredentials *AccountCredentials
 18518  	urlParams_         gensupport.URLParams
 18519  	ctx_               context.Context
 18520  	header_            http.Header
 18521  }
 18522  
 18523  // Create: Uploads credentials for the Merchant Center account. If credentials
 18524  // already exist for this Merchant Center account and purpose, this method
 18525  // updates them.
 18526  //
 18527  // - accountId: The merchant id of the account these credentials belong to.
 18528  func (r *AccountsCredentialsService) Create(accountId int64, accountcredentials *AccountCredentials) *AccountsCredentialsCreateCall {
 18529  	c := &AccountsCredentialsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18530  	c.accountId = accountId
 18531  	c.accountcredentials = accountcredentials
 18532  	return c
 18533  }
 18534  
 18535  // Fields allows partial responses to be retrieved. See
 18536  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18537  // details.
 18538  func (c *AccountsCredentialsCreateCall) Fields(s ...googleapi.Field) *AccountsCredentialsCreateCall {
 18539  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18540  	return c
 18541  }
 18542  
 18543  // Context sets the context to be used in this call's Do method.
 18544  func (c *AccountsCredentialsCreateCall) Context(ctx context.Context) *AccountsCredentialsCreateCall {
 18545  	c.ctx_ = ctx
 18546  	return c
 18547  }
 18548  
 18549  // Header returns a http.Header that can be modified by the caller to add
 18550  // headers to the request.
 18551  func (c *AccountsCredentialsCreateCall) Header() http.Header {
 18552  	if c.header_ == nil {
 18553  		c.header_ = make(http.Header)
 18554  	}
 18555  	return c.header_
 18556  }
 18557  
 18558  func (c *AccountsCredentialsCreateCall) doRequest(alt string) (*http.Response, error) {
 18559  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18560  	var body io.Reader = nil
 18561  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountcredentials)
 18562  	if err != nil {
 18563  		return nil, err
 18564  	}
 18565  	c.urlParams_.Set("alt", alt)
 18566  	c.urlParams_.Set("prettyPrint", "false")
 18567  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/credentials")
 18568  	urls += "?" + c.urlParams_.Encode()
 18569  	req, err := http.NewRequest("POST", urls, body)
 18570  	if err != nil {
 18571  		return nil, err
 18572  	}
 18573  	req.Header = reqHeaders
 18574  	googleapi.Expand(req.URL, map[string]string{
 18575  		"accountId": strconv.FormatInt(c.accountId, 10),
 18576  	})
 18577  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18578  }
 18579  
 18580  // Do executes the "content.accounts.credentials.create" call.
 18581  // Any non-2xx status code is an error. Response headers are in either
 18582  // *AccountCredentials.ServerResponse.Header or (if a response was returned at
 18583  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 18584  // check whether the returned error was because http.StatusNotModified was
 18585  // returned.
 18586  func (c *AccountsCredentialsCreateCall) Do(opts ...googleapi.CallOption) (*AccountCredentials, error) {
 18587  	gensupport.SetOptions(c.urlParams_, opts...)
 18588  	res, err := c.doRequest("json")
 18589  	if res != nil && res.StatusCode == http.StatusNotModified {
 18590  		if res.Body != nil {
 18591  			res.Body.Close()
 18592  		}
 18593  		return nil, gensupport.WrapError(&googleapi.Error{
 18594  			Code:   res.StatusCode,
 18595  			Header: res.Header,
 18596  		})
 18597  	}
 18598  	if err != nil {
 18599  		return nil, err
 18600  	}
 18601  	defer googleapi.CloseBody(res)
 18602  	if err := googleapi.CheckResponse(res); err != nil {
 18603  		return nil, gensupport.WrapError(err)
 18604  	}
 18605  	ret := &AccountCredentials{
 18606  		ServerResponse: googleapi.ServerResponse{
 18607  			Header:         res.Header,
 18608  			HTTPStatusCode: res.StatusCode,
 18609  		},
 18610  	}
 18611  	target := &ret
 18612  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18613  		return nil, err
 18614  	}
 18615  	return ret, nil
 18616  }
 18617  
 18618  type AccountsLabelsCreateCall struct {
 18619  	s            *APIService
 18620  	accountId    int64
 18621  	accountlabel *AccountLabel
 18622  	urlParams_   gensupport.URLParams
 18623  	ctx_         context.Context
 18624  	header_      http.Header
 18625  }
 18626  
 18627  // Create: Creates a new label, not assigned to any account.
 18628  //
 18629  // - accountId: The id of the account this label belongs to.
 18630  func (r *AccountsLabelsService) Create(accountId int64, accountlabel *AccountLabel) *AccountsLabelsCreateCall {
 18631  	c := &AccountsLabelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18632  	c.accountId = accountId
 18633  	c.accountlabel = accountlabel
 18634  	return c
 18635  }
 18636  
 18637  // Fields allows partial responses to be retrieved. See
 18638  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18639  // details.
 18640  func (c *AccountsLabelsCreateCall) Fields(s ...googleapi.Field) *AccountsLabelsCreateCall {
 18641  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18642  	return c
 18643  }
 18644  
 18645  // Context sets the context to be used in this call's Do method.
 18646  func (c *AccountsLabelsCreateCall) Context(ctx context.Context) *AccountsLabelsCreateCall {
 18647  	c.ctx_ = ctx
 18648  	return c
 18649  }
 18650  
 18651  // Header returns a http.Header that can be modified by the caller to add
 18652  // headers to the request.
 18653  func (c *AccountsLabelsCreateCall) Header() http.Header {
 18654  	if c.header_ == nil {
 18655  		c.header_ = make(http.Header)
 18656  	}
 18657  	return c.header_
 18658  }
 18659  
 18660  func (c *AccountsLabelsCreateCall) doRequest(alt string) (*http.Response, error) {
 18661  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18662  	var body io.Reader = nil
 18663  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountlabel)
 18664  	if err != nil {
 18665  		return nil, err
 18666  	}
 18667  	c.urlParams_.Set("alt", alt)
 18668  	c.urlParams_.Set("prettyPrint", "false")
 18669  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels")
 18670  	urls += "?" + c.urlParams_.Encode()
 18671  	req, err := http.NewRequest("POST", urls, body)
 18672  	if err != nil {
 18673  		return nil, err
 18674  	}
 18675  	req.Header = reqHeaders
 18676  	googleapi.Expand(req.URL, map[string]string{
 18677  		"accountId": strconv.FormatInt(c.accountId, 10),
 18678  	})
 18679  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18680  }
 18681  
 18682  // Do executes the "content.accounts.labels.create" call.
 18683  // Any non-2xx status code is an error. Response headers are in either
 18684  // *AccountLabel.ServerResponse.Header or (if a response was returned at all)
 18685  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18686  // whether the returned error was because http.StatusNotModified was returned.
 18687  func (c *AccountsLabelsCreateCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error) {
 18688  	gensupport.SetOptions(c.urlParams_, opts...)
 18689  	res, err := c.doRequest("json")
 18690  	if res != nil && res.StatusCode == http.StatusNotModified {
 18691  		if res.Body != nil {
 18692  			res.Body.Close()
 18693  		}
 18694  		return nil, gensupport.WrapError(&googleapi.Error{
 18695  			Code:   res.StatusCode,
 18696  			Header: res.Header,
 18697  		})
 18698  	}
 18699  	if err != nil {
 18700  		return nil, err
 18701  	}
 18702  	defer googleapi.CloseBody(res)
 18703  	if err := googleapi.CheckResponse(res); err != nil {
 18704  		return nil, gensupport.WrapError(err)
 18705  	}
 18706  	ret := &AccountLabel{
 18707  		ServerResponse: googleapi.ServerResponse{
 18708  			Header:         res.Header,
 18709  			HTTPStatusCode: res.StatusCode,
 18710  		},
 18711  	}
 18712  	target := &ret
 18713  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18714  		return nil, err
 18715  	}
 18716  	return ret, nil
 18717  }
 18718  
 18719  type AccountsLabelsDeleteCall struct {
 18720  	s          *APIService
 18721  	accountId  int64
 18722  	labelId    int64
 18723  	urlParams_ gensupport.URLParams
 18724  	ctx_       context.Context
 18725  	header_    http.Header
 18726  }
 18727  
 18728  // Delete: Deletes a label and removes it from all accounts to which it was
 18729  // assigned.
 18730  //
 18731  // - accountId: The id of the account that owns the label.
 18732  // - labelId: The id of the label to delete.
 18733  func (r *AccountsLabelsService) Delete(accountId int64, labelId int64) *AccountsLabelsDeleteCall {
 18734  	c := &AccountsLabelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18735  	c.accountId = accountId
 18736  	c.labelId = labelId
 18737  	return c
 18738  }
 18739  
 18740  // Fields allows partial responses to be retrieved. See
 18741  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18742  // details.
 18743  func (c *AccountsLabelsDeleteCall) Fields(s ...googleapi.Field) *AccountsLabelsDeleteCall {
 18744  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18745  	return c
 18746  }
 18747  
 18748  // Context sets the context to be used in this call's Do method.
 18749  func (c *AccountsLabelsDeleteCall) Context(ctx context.Context) *AccountsLabelsDeleteCall {
 18750  	c.ctx_ = ctx
 18751  	return c
 18752  }
 18753  
 18754  // Header returns a http.Header that can be modified by the caller to add
 18755  // headers to the request.
 18756  func (c *AccountsLabelsDeleteCall) Header() http.Header {
 18757  	if c.header_ == nil {
 18758  		c.header_ = make(http.Header)
 18759  	}
 18760  	return c.header_
 18761  }
 18762  
 18763  func (c *AccountsLabelsDeleteCall) doRequest(alt string) (*http.Response, error) {
 18764  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18765  	var body io.Reader = nil
 18766  	c.urlParams_.Set("alt", alt)
 18767  	c.urlParams_.Set("prettyPrint", "false")
 18768  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels/{labelId}")
 18769  	urls += "?" + c.urlParams_.Encode()
 18770  	req, err := http.NewRequest("DELETE", urls, body)
 18771  	if err != nil {
 18772  		return nil, err
 18773  	}
 18774  	req.Header = reqHeaders
 18775  	googleapi.Expand(req.URL, map[string]string{
 18776  		"accountId": strconv.FormatInt(c.accountId, 10),
 18777  		"labelId":   strconv.FormatInt(c.labelId, 10),
 18778  	})
 18779  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18780  }
 18781  
 18782  // Do executes the "content.accounts.labels.delete" call.
 18783  func (c *AccountsLabelsDeleteCall) Do(opts ...googleapi.CallOption) error {
 18784  	gensupport.SetOptions(c.urlParams_, opts...)
 18785  	res, err := c.doRequest("json")
 18786  	if err != nil {
 18787  		return err
 18788  	}
 18789  	defer googleapi.CloseBody(res)
 18790  	if err := googleapi.CheckResponse(res); err != nil {
 18791  		return gensupport.WrapError(err)
 18792  	}
 18793  	return nil
 18794  }
 18795  
 18796  type AccountsLabelsListCall struct {
 18797  	s            *APIService
 18798  	accountId    int64
 18799  	urlParams_   gensupport.URLParams
 18800  	ifNoneMatch_ string
 18801  	ctx_         context.Context
 18802  	header_      http.Header
 18803  }
 18804  
 18805  // List: Lists the labels assigned to an account.
 18806  //
 18807  // - accountId: The account id for whose labels are to be listed.
 18808  func (r *AccountsLabelsService) List(accountId int64) *AccountsLabelsListCall {
 18809  	c := &AccountsLabelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18810  	c.accountId = accountId
 18811  	return c
 18812  }
 18813  
 18814  // PageSize sets the optional parameter "pageSize": The maximum number of
 18815  // labels to return. The service may return fewer than this value. If
 18816  // unspecified, at most 50 labels will be returned. The maximum value is 1000;
 18817  // values above 1000 will be coerced to 1000.
 18818  func (c *AccountsLabelsListCall) PageSize(pageSize int64) *AccountsLabelsListCall {
 18819  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18820  	return c
 18821  }
 18822  
 18823  // PageToken sets the optional parameter "pageToken": A page token, received
 18824  // from a previous `ListAccountLabels` call. Provide this to retrieve the
 18825  // subsequent page. When paginating, all other parameters provided to
 18826  // `ListAccountLabels` must match the call that provided the page token.
 18827  func (c *AccountsLabelsListCall) PageToken(pageToken string) *AccountsLabelsListCall {
 18828  	c.urlParams_.Set("pageToken", pageToken)
 18829  	return c
 18830  }
 18831  
 18832  // Fields allows partial responses to be retrieved. See
 18833  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18834  // details.
 18835  func (c *AccountsLabelsListCall) Fields(s ...googleapi.Field) *AccountsLabelsListCall {
 18836  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18837  	return c
 18838  }
 18839  
 18840  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18841  // object's ETag matches the given value. This is useful for getting updates
 18842  // only after the object has changed since the last request.
 18843  func (c *AccountsLabelsListCall) IfNoneMatch(entityTag string) *AccountsLabelsListCall {
 18844  	c.ifNoneMatch_ = entityTag
 18845  	return c
 18846  }
 18847  
 18848  // Context sets the context to be used in this call's Do method.
 18849  func (c *AccountsLabelsListCall) Context(ctx context.Context) *AccountsLabelsListCall {
 18850  	c.ctx_ = ctx
 18851  	return c
 18852  }
 18853  
 18854  // Header returns a http.Header that can be modified by the caller to add
 18855  // headers to the request.
 18856  func (c *AccountsLabelsListCall) Header() http.Header {
 18857  	if c.header_ == nil {
 18858  		c.header_ = make(http.Header)
 18859  	}
 18860  	return c.header_
 18861  }
 18862  
 18863  func (c *AccountsLabelsListCall) doRequest(alt string) (*http.Response, error) {
 18864  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18865  	if c.ifNoneMatch_ != "" {
 18866  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18867  	}
 18868  	var body io.Reader = nil
 18869  	c.urlParams_.Set("alt", alt)
 18870  	c.urlParams_.Set("prettyPrint", "false")
 18871  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels")
 18872  	urls += "?" + c.urlParams_.Encode()
 18873  	req, err := http.NewRequest("GET", urls, body)
 18874  	if err != nil {
 18875  		return nil, err
 18876  	}
 18877  	req.Header = reqHeaders
 18878  	googleapi.Expand(req.URL, map[string]string{
 18879  		"accountId": strconv.FormatInt(c.accountId, 10),
 18880  	})
 18881  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18882  }
 18883  
 18884  // Do executes the "content.accounts.labels.list" call.
 18885  // Any non-2xx status code is an error. Response headers are in either
 18886  // *ListAccountLabelsResponse.ServerResponse.Header or (if a response was
 18887  // returned at all) in error.(*googleapi.Error).Header. Use
 18888  // googleapi.IsNotModified to check whether the returned error was because
 18889  // http.StatusNotModified was returned.
 18890  func (c *AccountsLabelsListCall) Do(opts ...googleapi.CallOption) (*ListAccountLabelsResponse, error) {
 18891  	gensupport.SetOptions(c.urlParams_, opts...)
 18892  	res, err := c.doRequest("json")
 18893  	if res != nil && res.StatusCode == http.StatusNotModified {
 18894  		if res.Body != nil {
 18895  			res.Body.Close()
 18896  		}
 18897  		return nil, gensupport.WrapError(&googleapi.Error{
 18898  			Code:   res.StatusCode,
 18899  			Header: res.Header,
 18900  		})
 18901  	}
 18902  	if err != nil {
 18903  		return nil, err
 18904  	}
 18905  	defer googleapi.CloseBody(res)
 18906  	if err := googleapi.CheckResponse(res); err != nil {
 18907  		return nil, gensupport.WrapError(err)
 18908  	}
 18909  	ret := &ListAccountLabelsResponse{
 18910  		ServerResponse: googleapi.ServerResponse{
 18911  			Header:         res.Header,
 18912  			HTTPStatusCode: res.StatusCode,
 18913  		},
 18914  	}
 18915  	target := &ret
 18916  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18917  		return nil, err
 18918  	}
 18919  	return ret, nil
 18920  }
 18921  
 18922  // Pages invokes f for each page of results.
 18923  // A non-nil error returned from f will halt the iteration.
 18924  // The provided context supersedes any context provided to the Context method.
 18925  func (c *AccountsLabelsListCall) Pages(ctx context.Context, f func(*ListAccountLabelsResponse) error) error {
 18926  	c.ctx_ = ctx
 18927  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18928  	for {
 18929  		x, err := c.Do()
 18930  		if err != nil {
 18931  			return err
 18932  		}
 18933  		if err := f(x); err != nil {
 18934  			return err
 18935  		}
 18936  		if x.NextPageToken == "" {
 18937  			return nil
 18938  		}
 18939  		c.PageToken(x.NextPageToken)
 18940  	}
 18941  }
 18942  
 18943  type AccountsLabelsPatchCall struct {
 18944  	s            *APIService
 18945  	accountId    int64
 18946  	labelId      int64
 18947  	accountlabel *AccountLabel
 18948  	urlParams_   gensupport.URLParams
 18949  	ctx_         context.Context
 18950  	header_      http.Header
 18951  }
 18952  
 18953  // Patch: Updates a label.
 18954  //
 18955  // - accountId: The id of the account this label belongs to.
 18956  // - labelId: The id of the label to update.
 18957  func (r *AccountsLabelsService) Patch(accountId int64, labelId int64, accountlabel *AccountLabel) *AccountsLabelsPatchCall {
 18958  	c := &AccountsLabelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18959  	c.accountId = accountId
 18960  	c.labelId = labelId
 18961  	c.accountlabel = accountlabel
 18962  	return c
 18963  }
 18964  
 18965  // Fields allows partial responses to be retrieved. See
 18966  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18967  // details.
 18968  func (c *AccountsLabelsPatchCall) Fields(s ...googleapi.Field) *AccountsLabelsPatchCall {
 18969  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18970  	return c
 18971  }
 18972  
 18973  // Context sets the context to be used in this call's Do method.
 18974  func (c *AccountsLabelsPatchCall) Context(ctx context.Context) *AccountsLabelsPatchCall {
 18975  	c.ctx_ = ctx
 18976  	return c
 18977  }
 18978  
 18979  // Header returns a http.Header that can be modified by the caller to add
 18980  // headers to the request.
 18981  func (c *AccountsLabelsPatchCall) Header() http.Header {
 18982  	if c.header_ == nil {
 18983  		c.header_ = make(http.Header)
 18984  	}
 18985  	return c.header_
 18986  }
 18987  
 18988  func (c *AccountsLabelsPatchCall) doRequest(alt string) (*http.Response, error) {
 18989  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18990  	var body io.Reader = nil
 18991  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountlabel)
 18992  	if err != nil {
 18993  		return nil, err
 18994  	}
 18995  	c.urlParams_.Set("alt", alt)
 18996  	c.urlParams_.Set("prettyPrint", "false")
 18997  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/labels/{labelId}")
 18998  	urls += "?" + c.urlParams_.Encode()
 18999  	req, err := http.NewRequest("PATCH", urls, body)
 19000  	if err != nil {
 19001  		return nil, err
 19002  	}
 19003  	req.Header = reqHeaders
 19004  	googleapi.Expand(req.URL, map[string]string{
 19005  		"accountId": strconv.FormatInt(c.accountId, 10),
 19006  		"labelId":   strconv.FormatInt(c.labelId, 10),
 19007  	})
 19008  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19009  }
 19010  
 19011  // Do executes the "content.accounts.labels.patch" call.
 19012  // Any non-2xx status code is an error. Response headers are in either
 19013  // *AccountLabel.ServerResponse.Header or (if a response was returned at all)
 19014  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19015  // whether the returned error was because http.StatusNotModified was returned.
 19016  func (c *AccountsLabelsPatchCall) Do(opts ...googleapi.CallOption) (*AccountLabel, error) {
 19017  	gensupport.SetOptions(c.urlParams_, opts...)
 19018  	res, err := c.doRequest("json")
 19019  	if res != nil && res.StatusCode == http.StatusNotModified {
 19020  		if res.Body != nil {
 19021  			res.Body.Close()
 19022  		}
 19023  		return nil, gensupport.WrapError(&googleapi.Error{
 19024  			Code:   res.StatusCode,
 19025  			Header: res.Header,
 19026  		})
 19027  	}
 19028  	if err != nil {
 19029  		return nil, err
 19030  	}
 19031  	defer googleapi.CloseBody(res)
 19032  	if err := googleapi.CheckResponse(res); err != nil {
 19033  		return nil, gensupport.WrapError(err)
 19034  	}
 19035  	ret := &AccountLabel{
 19036  		ServerResponse: googleapi.ServerResponse{
 19037  			Header:         res.Header,
 19038  			HTTPStatusCode: res.StatusCode,
 19039  		},
 19040  	}
 19041  	target := &ret
 19042  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19043  		return nil, err
 19044  	}
 19045  	return ret, nil
 19046  }
 19047  
 19048  type AccountsReturncarrierCreateCall struct {
 19049  	s                    *APIService
 19050  	accountId            int64
 19051  	accountreturncarrier *AccountReturnCarrier
 19052  	urlParams_           gensupport.URLParams
 19053  	ctx_                 context.Context
 19054  	header_              http.Header
 19055  }
 19056  
 19057  // Create: Links return carrier to a merchant account.
 19058  //
 19059  //   - accountId: The Merchant Center Account Id under which the Return Carrier
 19060  //     is to be linked.
 19061  func (r *AccountsReturncarrierService) Create(accountId int64, accountreturncarrier *AccountReturnCarrier) *AccountsReturncarrierCreateCall {
 19062  	c := &AccountsReturncarrierCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19063  	c.accountId = accountId
 19064  	c.accountreturncarrier = accountreturncarrier
 19065  	return c
 19066  }
 19067  
 19068  // Fields allows partial responses to be retrieved. See
 19069  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19070  // details.
 19071  func (c *AccountsReturncarrierCreateCall) Fields(s ...googleapi.Field) *AccountsReturncarrierCreateCall {
 19072  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19073  	return c
 19074  }
 19075  
 19076  // Context sets the context to be used in this call's Do method.
 19077  func (c *AccountsReturncarrierCreateCall) Context(ctx context.Context) *AccountsReturncarrierCreateCall {
 19078  	c.ctx_ = ctx
 19079  	return c
 19080  }
 19081  
 19082  // Header returns a http.Header that can be modified by the caller to add
 19083  // headers to the request.
 19084  func (c *AccountsReturncarrierCreateCall) Header() http.Header {
 19085  	if c.header_ == nil {
 19086  		c.header_ = make(http.Header)
 19087  	}
 19088  	return c.header_
 19089  }
 19090  
 19091  func (c *AccountsReturncarrierCreateCall) doRequest(alt string) (*http.Response, error) {
 19092  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19093  	var body io.Reader = nil
 19094  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountreturncarrier)
 19095  	if err != nil {
 19096  		return nil, err
 19097  	}
 19098  	c.urlParams_.Set("alt", alt)
 19099  	c.urlParams_.Set("prettyPrint", "false")
 19100  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier")
 19101  	urls += "?" + c.urlParams_.Encode()
 19102  	req, err := http.NewRequest("POST", urls, body)
 19103  	if err != nil {
 19104  		return nil, err
 19105  	}
 19106  	req.Header = reqHeaders
 19107  	googleapi.Expand(req.URL, map[string]string{
 19108  		"accountId": strconv.FormatInt(c.accountId, 10),
 19109  	})
 19110  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19111  }
 19112  
 19113  // Do executes the "content.accounts.returncarrier.create" call.
 19114  // Any non-2xx status code is an error. Response headers are in either
 19115  // *AccountReturnCarrier.ServerResponse.Header or (if a response was returned
 19116  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19117  // check whether the returned error was because http.StatusNotModified was
 19118  // returned.
 19119  func (c *AccountsReturncarrierCreateCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error) {
 19120  	gensupport.SetOptions(c.urlParams_, opts...)
 19121  	res, err := c.doRequest("json")
 19122  	if res != nil && res.StatusCode == http.StatusNotModified {
 19123  		if res.Body != nil {
 19124  			res.Body.Close()
 19125  		}
 19126  		return nil, gensupport.WrapError(&googleapi.Error{
 19127  			Code:   res.StatusCode,
 19128  			Header: res.Header,
 19129  		})
 19130  	}
 19131  	if err != nil {
 19132  		return nil, err
 19133  	}
 19134  	defer googleapi.CloseBody(res)
 19135  	if err := googleapi.CheckResponse(res); err != nil {
 19136  		return nil, gensupport.WrapError(err)
 19137  	}
 19138  	ret := &AccountReturnCarrier{
 19139  		ServerResponse: googleapi.ServerResponse{
 19140  			Header:         res.Header,
 19141  			HTTPStatusCode: res.StatusCode,
 19142  		},
 19143  	}
 19144  	target := &ret
 19145  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19146  		return nil, err
 19147  	}
 19148  	return ret, nil
 19149  }
 19150  
 19151  type AccountsReturncarrierDeleteCall struct {
 19152  	s                *APIService
 19153  	accountId        int64
 19154  	carrierAccountId int64
 19155  	urlParams_       gensupport.URLParams
 19156  	ctx_             context.Context
 19157  	header_          http.Header
 19158  }
 19159  
 19160  // Delete: Delete a return carrier in the merchant account.
 19161  //
 19162  //   - accountId: The Merchant Center Account Id under which the Return Carrier
 19163  //     is to be linked.
 19164  //   - carrierAccountId: The Google-provided unique carrier ID, used to update
 19165  //     the resource.
 19166  func (r *AccountsReturncarrierService) Delete(accountId int64, carrierAccountId int64) *AccountsReturncarrierDeleteCall {
 19167  	c := &AccountsReturncarrierDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19168  	c.accountId = accountId
 19169  	c.carrierAccountId = carrierAccountId
 19170  	return c
 19171  }
 19172  
 19173  // Fields allows partial responses to be retrieved. See
 19174  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19175  // details.
 19176  func (c *AccountsReturncarrierDeleteCall) Fields(s ...googleapi.Field) *AccountsReturncarrierDeleteCall {
 19177  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19178  	return c
 19179  }
 19180  
 19181  // Context sets the context to be used in this call's Do method.
 19182  func (c *AccountsReturncarrierDeleteCall) Context(ctx context.Context) *AccountsReturncarrierDeleteCall {
 19183  	c.ctx_ = ctx
 19184  	return c
 19185  }
 19186  
 19187  // Header returns a http.Header that can be modified by the caller to add
 19188  // headers to the request.
 19189  func (c *AccountsReturncarrierDeleteCall) Header() http.Header {
 19190  	if c.header_ == nil {
 19191  		c.header_ = make(http.Header)
 19192  	}
 19193  	return c.header_
 19194  }
 19195  
 19196  func (c *AccountsReturncarrierDeleteCall) doRequest(alt string) (*http.Response, error) {
 19197  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19198  	var body io.Reader = nil
 19199  	c.urlParams_.Set("alt", alt)
 19200  	c.urlParams_.Set("prettyPrint", "false")
 19201  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier/{carrierAccountId}")
 19202  	urls += "?" + c.urlParams_.Encode()
 19203  	req, err := http.NewRequest("DELETE", urls, body)
 19204  	if err != nil {
 19205  		return nil, err
 19206  	}
 19207  	req.Header = reqHeaders
 19208  	googleapi.Expand(req.URL, map[string]string{
 19209  		"accountId":        strconv.FormatInt(c.accountId, 10),
 19210  		"carrierAccountId": strconv.FormatInt(c.carrierAccountId, 10),
 19211  	})
 19212  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19213  }
 19214  
 19215  // Do executes the "content.accounts.returncarrier.delete" call.
 19216  func (c *AccountsReturncarrierDeleteCall) Do(opts ...googleapi.CallOption) error {
 19217  	gensupport.SetOptions(c.urlParams_, opts...)
 19218  	res, err := c.doRequest("json")
 19219  	if err != nil {
 19220  		return err
 19221  	}
 19222  	defer googleapi.CloseBody(res)
 19223  	if err := googleapi.CheckResponse(res); err != nil {
 19224  		return gensupport.WrapError(err)
 19225  	}
 19226  	return nil
 19227  }
 19228  
 19229  type AccountsReturncarrierListCall struct {
 19230  	s            *APIService
 19231  	accountId    int64
 19232  	urlParams_   gensupport.URLParams
 19233  	ifNoneMatch_ string
 19234  	ctx_         context.Context
 19235  	header_      http.Header
 19236  }
 19237  
 19238  // List: Lists available return carriers in the merchant account.
 19239  //
 19240  //   - accountId: The Merchant Center Account Id under which the Return Carrier
 19241  //     is to be linked.
 19242  func (r *AccountsReturncarrierService) List(accountId int64) *AccountsReturncarrierListCall {
 19243  	c := &AccountsReturncarrierListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19244  	c.accountId = accountId
 19245  	return c
 19246  }
 19247  
 19248  // Fields allows partial responses to be retrieved. See
 19249  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19250  // details.
 19251  func (c *AccountsReturncarrierListCall) Fields(s ...googleapi.Field) *AccountsReturncarrierListCall {
 19252  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19253  	return c
 19254  }
 19255  
 19256  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19257  // object's ETag matches the given value. This is useful for getting updates
 19258  // only after the object has changed since the last request.
 19259  func (c *AccountsReturncarrierListCall) IfNoneMatch(entityTag string) *AccountsReturncarrierListCall {
 19260  	c.ifNoneMatch_ = entityTag
 19261  	return c
 19262  }
 19263  
 19264  // Context sets the context to be used in this call's Do method.
 19265  func (c *AccountsReturncarrierListCall) Context(ctx context.Context) *AccountsReturncarrierListCall {
 19266  	c.ctx_ = ctx
 19267  	return c
 19268  }
 19269  
 19270  // Header returns a http.Header that can be modified by the caller to add
 19271  // headers to the request.
 19272  func (c *AccountsReturncarrierListCall) Header() http.Header {
 19273  	if c.header_ == nil {
 19274  		c.header_ = make(http.Header)
 19275  	}
 19276  	return c.header_
 19277  }
 19278  
 19279  func (c *AccountsReturncarrierListCall) doRequest(alt string) (*http.Response, error) {
 19280  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19281  	if c.ifNoneMatch_ != "" {
 19282  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19283  	}
 19284  	var body io.Reader = nil
 19285  	c.urlParams_.Set("alt", alt)
 19286  	c.urlParams_.Set("prettyPrint", "false")
 19287  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier")
 19288  	urls += "?" + c.urlParams_.Encode()
 19289  	req, err := http.NewRequest("GET", urls, body)
 19290  	if err != nil {
 19291  		return nil, err
 19292  	}
 19293  	req.Header = reqHeaders
 19294  	googleapi.Expand(req.URL, map[string]string{
 19295  		"accountId": strconv.FormatInt(c.accountId, 10),
 19296  	})
 19297  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19298  }
 19299  
 19300  // Do executes the "content.accounts.returncarrier.list" call.
 19301  // Any non-2xx status code is an error. Response headers are in either
 19302  // *ListAccountReturnCarrierResponse.ServerResponse.Header or (if a response
 19303  // was returned at all) in error.(*googleapi.Error).Header. Use
 19304  // googleapi.IsNotModified to check whether the returned error was because
 19305  // http.StatusNotModified was returned.
 19306  func (c *AccountsReturncarrierListCall) Do(opts ...googleapi.CallOption) (*ListAccountReturnCarrierResponse, error) {
 19307  	gensupport.SetOptions(c.urlParams_, opts...)
 19308  	res, err := c.doRequest("json")
 19309  	if res != nil && res.StatusCode == http.StatusNotModified {
 19310  		if res.Body != nil {
 19311  			res.Body.Close()
 19312  		}
 19313  		return nil, gensupport.WrapError(&googleapi.Error{
 19314  			Code:   res.StatusCode,
 19315  			Header: res.Header,
 19316  		})
 19317  	}
 19318  	if err != nil {
 19319  		return nil, err
 19320  	}
 19321  	defer googleapi.CloseBody(res)
 19322  	if err := googleapi.CheckResponse(res); err != nil {
 19323  		return nil, gensupport.WrapError(err)
 19324  	}
 19325  	ret := &ListAccountReturnCarrierResponse{
 19326  		ServerResponse: googleapi.ServerResponse{
 19327  			Header:         res.Header,
 19328  			HTTPStatusCode: res.StatusCode,
 19329  		},
 19330  	}
 19331  	target := &ret
 19332  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19333  		return nil, err
 19334  	}
 19335  	return ret, nil
 19336  }
 19337  
 19338  type AccountsReturncarrierPatchCall struct {
 19339  	s                    *APIService
 19340  	accountId            int64
 19341  	carrierAccountId     int64
 19342  	accountreturncarrier *AccountReturnCarrier
 19343  	urlParams_           gensupport.URLParams
 19344  	ctx_                 context.Context
 19345  	header_              http.Header
 19346  }
 19347  
 19348  // Patch: Updates a return carrier in the merchant account.
 19349  //
 19350  //   - accountId: The Merchant Center Account Id under which the Return Carrier
 19351  //     is to be linked.
 19352  //   - carrierAccountId: The Google-provided unique carrier ID, used to update
 19353  //     the resource.
 19354  func (r *AccountsReturncarrierService) Patch(accountId int64, carrierAccountId int64, accountreturncarrier *AccountReturnCarrier) *AccountsReturncarrierPatchCall {
 19355  	c := &AccountsReturncarrierPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19356  	c.accountId = accountId
 19357  	c.carrierAccountId = carrierAccountId
 19358  	c.accountreturncarrier = accountreturncarrier
 19359  	return c
 19360  }
 19361  
 19362  // Fields allows partial responses to be retrieved. See
 19363  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19364  // details.
 19365  func (c *AccountsReturncarrierPatchCall) Fields(s ...googleapi.Field) *AccountsReturncarrierPatchCall {
 19366  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19367  	return c
 19368  }
 19369  
 19370  // Context sets the context to be used in this call's Do method.
 19371  func (c *AccountsReturncarrierPatchCall) Context(ctx context.Context) *AccountsReturncarrierPatchCall {
 19372  	c.ctx_ = ctx
 19373  	return c
 19374  }
 19375  
 19376  // Header returns a http.Header that can be modified by the caller to add
 19377  // headers to the request.
 19378  func (c *AccountsReturncarrierPatchCall) Header() http.Header {
 19379  	if c.header_ == nil {
 19380  		c.header_ = make(http.Header)
 19381  	}
 19382  	return c.header_
 19383  }
 19384  
 19385  func (c *AccountsReturncarrierPatchCall) doRequest(alt string) (*http.Response, error) {
 19386  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19387  	var body io.Reader = nil
 19388  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountreturncarrier)
 19389  	if err != nil {
 19390  		return nil, err
 19391  	}
 19392  	c.urlParams_.Set("alt", alt)
 19393  	c.urlParams_.Set("prettyPrint", "false")
 19394  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounts/{accountId}/returncarrier/{carrierAccountId}")
 19395  	urls += "?" + c.urlParams_.Encode()
 19396  	req, err := http.NewRequest("PATCH", urls, body)
 19397  	if err != nil {
 19398  		return nil, err
 19399  	}
 19400  	req.Header = reqHeaders
 19401  	googleapi.Expand(req.URL, map[string]string{
 19402  		"accountId":        strconv.FormatInt(c.accountId, 10),
 19403  		"carrierAccountId": strconv.FormatInt(c.carrierAccountId, 10),
 19404  	})
 19405  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19406  }
 19407  
 19408  // Do executes the "content.accounts.returncarrier.patch" call.
 19409  // Any non-2xx status code is an error. Response headers are in either
 19410  // *AccountReturnCarrier.ServerResponse.Header or (if a response was returned
 19411  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19412  // check whether the returned error was because http.StatusNotModified was
 19413  // returned.
 19414  func (c *AccountsReturncarrierPatchCall) Do(opts ...googleapi.CallOption) (*AccountReturnCarrier, error) {
 19415  	gensupport.SetOptions(c.urlParams_, opts...)
 19416  	res, err := c.doRequest("json")
 19417  	if res != nil && res.StatusCode == http.StatusNotModified {
 19418  		if res.Body != nil {
 19419  			res.Body.Close()
 19420  		}
 19421  		return nil, gensupport.WrapError(&googleapi.Error{
 19422  			Code:   res.StatusCode,
 19423  			Header: res.Header,
 19424  		})
 19425  	}
 19426  	if err != nil {
 19427  		return nil, err
 19428  	}
 19429  	defer googleapi.CloseBody(res)
 19430  	if err := googleapi.CheckResponse(res); err != nil {
 19431  		return nil, gensupport.WrapError(err)
 19432  	}
 19433  	ret := &AccountReturnCarrier{
 19434  		ServerResponse: googleapi.ServerResponse{
 19435  			Header:         res.Header,
 19436  			HTTPStatusCode: res.StatusCode,
 19437  		},
 19438  	}
 19439  	target := &ret
 19440  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19441  		return nil, err
 19442  	}
 19443  	return ret, nil
 19444  }
 19445  
 19446  type AccountstatusesCustombatchCall struct {
 19447  	s                                 *APIService
 19448  	accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest
 19449  	urlParams_                        gensupport.URLParams
 19450  	ctx_                              context.Context
 19451  	header_                           http.Header
 19452  }
 19453  
 19454  // Custombatch: Retrieves multiple Merchant Center account statuses in a single
 19455  // request.
 19456  func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall {
 19457  	c := &AccountstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19458  	c.accountstatusescustombatchrequest = accountstatusescustombatchrequest
 19459  	return c
 19460  }
 19461  
 19462  // Fields allows partial responses to be retrieved. See
 19463  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19464  // details.
 19465  func (c *AccountstatusesCustombatchCall) Fields(s ...googleapi.Field) *AccountstatusesCustombatchCall {
 19466  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19467  	return c
 19468  }
 19469  
 19470  // Context sets the context to be used in this call's Do method.
 19471  func (c *AccountstatusesCustombatchCall) Context(ctx context.Context) *AccountstatusesCustombatchCall {
 19472  	c.ctx_ = ctx
 19473  	return c
 19474  }
 19475  
 19476  // Header returns a http.Header that can be modified by the caller to add
 19477  // headers to the request.
 19478  func (c *AccountstatusesCustombatchCall) Header() http.Header {
 19479  	if c.header_ == nil {
 19480  		c.header_ = make(http.Header)
 19481  	}
 19482  	return c.header_
 19483  }
 19484  
 19485  func (c *AccountstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) {
 19486  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19487  	var body io.Reader = nil
 19488  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accountstatusescustombatchrequest)
 19489  	if err != nil {
 19490  		return nil, err
 19491  	}
 19492  	c.urlParams_.Set("alt", alt)
 19493  	c.urlParams_.Set("prettyPrint", "false")
 19494  	urls := googleapi.ResolveRelative(c.s.BasePath, "accountstatuses/batch")
 19495  	urls += "?" + c.urlParams_.Encode()
 19496  	req, err := http.NewRequest("POST", urls, body)
 19497  	if err != nil {
 19498  		return nil, err
 19499  	}
 19500  	req.Header = reqHeaders
 19501  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19502  }
 19503  
 19504  // Do executes the "content.accountstatuses.custombatch" call.
 19505  // Any non-2xx status code is an error. Response headers are in either
 19506  // *AccountstatusesCustomBatchResponse.ServerResponse.Header or (if a response
 19507  // was returned at all) in error.(*googleapi.Error).Header. Use
 19508  // googleapi.IsNotModified to check whether the returned error was because
 19509  // http.StatusNotModified was returned.
 19510  func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountstatusesCustomBatchResponse, error) {
 19511  	gensupport.SetOptions(c.urlParams_, opts...)
 19512  	res, err := c.doRequest("json")
 19513  	if res != nil && res.StatusCode == http.StatusNotModified {
 19514  		if res.Body != nil {
 19515  			res.Body.Close()
 19516  		}
 19517  		return nil, gensupport.WrapError(&googleapi.Error{
 19518  			Code:   res.StatusCode,
 19519  			Header: res.Header,
 19520  		})
 19521  	}
 19522  	if err != nil {
 19523  		return nil, err
 19524  	}
 19525  	defer googleapi.CloseBody(res)
 19526  	if err := googleapi.CheckResponse(res); err != nil {
 19527  		return nil, gensupport.WrapError(err)
 19528  	}
 19529  	ret := &AccountstatusesCustomBatchResponse{
 19530  		ServerResponse: googleapi.ServerResponse{
 19531  			Header:         res.Header,
 19532  			HTTPStatusCode: res.StatusCode,
 19533  		},
 19534  	}
 19535  	target := &ret
 19536  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19537  		return nil, err
 19538  	}
 19539  	return ret, nil
 19540  }
 19541  
 19542  type AccountstatusesGetCall struct {
 19543  	s            *APIService
 19544  	merchantId   uint64
 19545  	accountId    uint64
 19546  	urlParams_   gensupport.URLParams
 19547  	ifNoneMatch_ string
 19548  	ctx_         context.Context
 19549  	header_      http.Header
 19550  }
 19551  
 19552  // Get: Retrieves the status of a Merchant Center account. No itemLevelIssues
 19553  // are returned for multi-client accounts.
 19554  //
 19555  //   - accountId: The ID of the account.
 19556  //   - merchantId: The ID of the managing account. If this parameter is not the
 19557  //     same as accountId, then this account must be a multi-client account and
 19558  //     `accountId` must be the ID of a sub-account of this account.
 19559  func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall {
 19560  	c := &AccountstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19561  	c.merchantId = merchantId
 19562  	c.accountId = accountId
 19563  	return c
 19564  }
 19565  
 19566  // Destinations sets the optional parameter "destinations": If set, only issues
 19567  // for the specified destinations are returned, otherwise only issues for the
 19568  // Shopping destination.
 19569  func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall {
 19570  	c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
 19571  	return c
 19572  }
 19573  
 19574  // Fields allows partial responses to be retrieved. See
 19575  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19576  // details.
 19577  func (c *AccountstatusesGetCall) Fields(s ...googleapi.Field) *AccountstatusesGetCall {
 19578  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19579  	return c
 19580  }
 19581  
 19582  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19583  // object's ETag matches the given value. This is useful for getting updates
 19584  // only after the object has changed since the last request.
 19585  func (c *AccountstatusesGetCall) IfNoneMatch(entityTag string) *AccountstatusesGetCall {
 19586  	c.ifNoneMatch_ = entityTag
 19587  	return c
 19588  }
 19589  
 19590  // Context sets the context to be used in this call's Do method.
 19591  func (c *AccountstatusesGetCall) Context(ctx context.Context) *AccountstatusesGetCall {
 19592  	c.ctx_ = ctx
 19593  	return c
 19594  }
 19595  
 19596  // Header returns a http.Header that can be modified by the caller to add
 19597  // headers to the request.
 19598  func (c *AccountstatusesGetCall) Header() http.Header {
 19599  	if c.header_ == nil {
 19600  		c.header_ = make(http.Header)
 19601  	}
 19602  	return c.header_
 19603  }
 19604  
 19605  func (c *AccountstatusesGetCall) doRequest(alt string) (*http.Response, error) {
 19606  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19607  	if c.ifNoneMatch_ != "" {
 19608  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19609  	}
 19610  	var body io.Reader = nil
 19611  	c.urlParams_.Set("alt", alt)
 19612  	c.urlParams_.Set("prettyPrint", "false")
 19613  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accountstatuses/{accountId}")
 19614  	urls += "?" + c.urlParams_.Encode()
 19615  	req, err := http.NewRequest("GET", urls, body)
 19616  	if err != nil {
 19617  		return nil, err
 19618  	}
 19619  	req.Header = reqHeaders
 19620  	googleapi.Expand(req.URL, map[string]string{
 19621  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 19622  		"accountId":  strconv.FormatUint(c.accountId, 10),
 19623  	})
 19624  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19625  }
 19626  
 19627  // Do executes the "content.accountstatuses.get" call.
 19628  // Any non-2xx status code is an error. Response headers are in either
 19629  // *AccountStatus.ServerResponse.Header or (if a response was returned at all)
 19630  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 19631  // whether the returned error was because http.StatusNotModified was returned.
 19632  func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatus, error) {
 19633  	gensupport.SetOptions(c.urlParams_, opts...)
 19634  	res, err := c.doRequest("json")
 19635  	if res != nil && res.StatusCode == http.StatusNotModified {
 19636  		if res.Body != nil {
 19637  			res.Body.Close()
 19638  		}
 19639  		return nil, gensupport.WrapError(&googleapi.Error{
 19640  			Code:   res.StatusCode,
 19641  			Header: res.Header,
 19642  		})
 19643  	}
 19644  	if err != nil {
 19645  		return nil, err
 19646  	}
 19647  	defer googleapi.CloseBody(res)
 19648  	if err := googleapi.CheckResponse(res); err != nil {
 19649  		return nil, gensupport.WrapError(err)
 19650  	}
 19651  	ret := &AccountStatus{
 19652  		ServerResponse: googleapi.ServerResponse{
 19653  			Header:         res.Header,
 19654  			HTTPStatusCode: res.StatusCode,
 19655  		},
 19656  	}
 19657  	target := &ret
 19658  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19659  		return nil, err
 19660  	}
 19661  	return ret, nil
 19662  }
 19663  
 19664  type AccountstatusesListCall struct {
 19665  	s            *APIService
 19666  	merchantId   uint64
 19667  	urlParams_   gensupport.URLParams
 19668  	ifNoneMatch_ string
 19669  	ctx_         context.Context
 19670  	header_      http.Header
 19671  }
 19672  
 19673  // List: Lists the statuses of the sub-accounts in your Merchant Center
 19674  // account.
 19675  //
 19676  //   - merchantId: The ID of the managing account. This must be a multi-client
 19677  //     account.
 19678  func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall {
 19679  	c := &AccountstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19680  	c.merchantId = merchantId
 19681  	return c
 19682  }
 19683  
 19684  // Destinations sets the optional parameter "destinations": If set, only issues
 19685  // for the specified destinations are returned, otherwise only issues for the
 19686  // Shopping destination.
 19687  func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall {
 19688  	c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
 19689  	return c
 19690  }
 19691  
 19692  // MaxResults sets the optional parameter "maxResults": The maximum number of
 19693  // account statuses to return in the response, used for paging.
 19694  func (c *AccountstatusesListCall) MaxResults(maxResults int64) *AccountstatusesListCall {
 19695  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 19696  	return c
 19697  }
 19698  
 19699  // Name sets the optional parameter "name": If set, only the accounts with the
 19700  // given name (case sensitive) will be returned.
 19701  func (c *AccountstatusesListCall) Name(name string) *AccountstatusesListCall {
 19702  	c.urlParams_.Set("name", name)
 19703  	return c
 19704  }
 19705  
 19706  // PageToken sets the optional parameter "pageToken": The token returned by the
 19707  // previous request.
 19708  func (c *AccountstatusesListCall) PageToken(pageToken string) *AccountstatusesListCall {
 19709  	c.urlParams_.Set("pageToken", pageToken)
 19710  	return c
 19711  }
 19712  
 19713  // Fields allows partial responses to be retrieved. See
 19714  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19715  // details.
 19716  func (c *AccountstatusesListCall) Fields(s ...googleapi.Field) *AccountstatusesListCall {
 19717  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19718  	return c
 19719  }
 19720  
 19721  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19722  // object's ETag matches the given value. This is useful for getting updates
 19723  // only after the object has changed since the last request.
 19724  func (c *AccountstatusesListCall) IfNoneMatch(entityTag string) *AccountstatusesListCall {
 19725  	c.ifNoneMatch_ = entityTag
 19726  	return c
 19727  }
 19728  
 19729  // Context sets the context to be used in this call's Do method.
 19730  func (c *AccountstatusesListCall) Context(ctx context.Context) *AccountstatusesListCall {
 19731  	c.ctx_ = ctx
 19732  	return c
 19733  }
 19734  
 19735  // Header returns a http.Header that can be modified by the caller to add
 19736  // headers to the request.
 19737  func (c *AccountstatusesListCall) Header() http.Header {
 19738  	if c.header_ == nil {
 19739  		c.header_ = make(http.Header)
 19740  	}
 19741  	return c.header_
 19742  }
 19743  
 19744  func (c *AccountstatusesListCall) doRequest(alt string) (*http.Response, error) {
 19745  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19746  	if c.ifNoneMatch_ != "" {
 19747  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19748  	}
 19749  	var body io.Reader = nil
 19750  	c.urlParams_.Set("alt", alt)
 19751  	c.urlParams_.Set("prettyPrint", "false")
 19752  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accountstatuses")
 19753  	urls += "?" + c.urlParams_.Encode()
 19754  	req, err := http.NewRequest("GET", urls, body)
 19755  	if err != nil {
 19756  		return nil, err
 19757  	}
 19758  	req.Header = reqHeaders
 19759  	googleapi.Expand(req.URL, map[string]string{
 19760  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 19761  	})
 19762  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19763  }
 19764  
 19765  // Do executes the "content.accountstatuses.list" call.
 19766  // Any non-2xx status code is an error. Response headers are in either
 19767  // *AccountstatusesListResponse.ServerResponse.Header or (if a response was
 19768  // returned at all) in error.(*googleapi.Error).Header. Use
 19769  // googleapi.IsNotModified to check whether the returned error was because
 19770  // http.StatusNotModified was returned.
 19771  func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*AccountstatusesListResponse, error) {
 19772  	gensupport.SetOptions(c.urlParams_, opts...)
 19773  	res, err := c.doRequest("json")
 19774  	if res != nil && res.StatusCode == http.StatusNotModified {
 19775  		if res.Body != nil {
 19776  			res.Body.Close()
 19777  		}
 19778  		return nil, gensupport.WrapError(&googleapi.Error{
 19779  			Code:   res.StatusCode,
 19780  			Header: res.Header,
 19781  		})
 19782  	}
 19783  	if err != nil {
 19784  		return nil, err
 19785  	}
 19786  	defer googleapi.CloseBody(res)
 19787  	if err := googleapi.CheckResponse(res); err != nil {
 19788  		return nil, gensupport.WrapError(err)
 19789  	}
 19790  	ret := &AccountstatusesListResponse{
 19791  		ServerResponse: googleapi.ServerResponse{
 19792  			Header:         res.Header,
 19793  			HTTPStatusCode: res.StatusCode,
 19794  		},
 19795  	}
 19796  	target := &ret
 19797  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19798  		return nil, err
 19799  	}
 19800  	return ret, nil
 19801  }
 19802  
 19803  // Pages invokes f for each page of results.
 19804  // A non-nil error returned from f will halt the iteration.
 19805  // The provided context supersedes any context provided to the Context method.
 19806  func (c *AccountstatusesListCall) Pages(ctx context.Context, f func(*AccountstatusesListResponse) error) error {
 19807  	c.ctx_ = ctx
 19808  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19809  	for {
 19810  		x, err := c.Do()
 19811  		if err != nil {
 19812  			return err
 19813  		}
 19814  		if err := f(x); err != nil {
 19815  			return err
 19816  		}
 19817  		if x.NextPageToken == "" {
 19818  			return nil
 19819  		}
 19820  		c.PageToken(x.NextPageToken)
 19821  	}
 19822  }
 19823  
 19824  type AccounttaxCustombatchCall struct {
 19825  	s                            *APIService
 19826  	accounttaxcustombatchrequest *AccounttaxCustomBatchRequest
 19827  	urlParams_                   gensupport.URLParams
 19828  	ctx_                         context.Context
 19829  	header_                      http.Header
 19830  }
 19831  
 19832  // Custombatch: Retrieves and updates tax settings of multiple accounts in a
 19833  // single request.
 19834  func (r *AccounttaxService) Custombatch(accounttaxcustombatchrequest *AccounttaxCustomBatchRequest) *AccounttaxCustombatchCall {
 19835  	c := &AccounttaxCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19836  	c.accounttaxcustombatchrequest = accounttaxcustombatchrequest
 19837  	return c
 19838  }
 19839  
 19840  // Fields allows partial responses to be retrieved. See
 19841  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19842  // details.
 19843  func (c *AccounttaxCustombatchCall) Fields(s ...googleapi.Field) *AccounttaxCustombatchCall {
 19844  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19845  	return c
 19846  }
 19847  
 19848  // Context sets the context to be used in this call's Do method.
 19849  func (c *AccounttaxCustombatchCall) Context(ctx context.Context) *AccounttaxCustombatchCall {
 19850  	c.ctx_ = ctx
 19851  	return c
 19852  }
 19853  
 19854  // Header returns a http.Header that can be modified by the caller to add
 19855  // headers to the request.
 19856  func (c *AccounttaxCustombatchCall) Header() http.Header {
 19857  	if c.header_ == nil {
 19858  		c.header_ = make(http.Header)
 19859  	}
 19860  	return c.header_
 19861  }
 19862  
 19863  func (c *AccounttaxCustombatchCall) doRequest(alt string) (*http.Response, error) {
 19864  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19865  	var body io.Reader = nil
 19866  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accounttaxcustombatchrequest)
 19867  	if err != nil {
 19868  		return nil, err
 19869  	}
 19870  	c.urlParams_.Set("alt", alt)
 19871  	c.urlParams_.Set("prettyPrint", "false")
 19872  	urls := googleapi.ResolveRelative(c.s.BasePath, "accounttax/batch")
 19873  	urls += "?" + c.urlParams_.Encode()
 19874  	req, err := http.NewRequest("POST", urls, body)
 19875  	if err != nil {
 19876  		return nil, err
 19877  	}
 19878  	req.Header = reqHeaders
 19879  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19880  }
 19881  
 19882  // Do executes the "content.accounttax.custombatch" call.
 19883  // Any non-2xx status code is an error. Response headers are in either
 19884  // *AccounttaxCustomBatchResponse.ServerResponse.Header or (if a response was
 19885  // returned at all) in error.(*googleapi.Error).Header. Use
 19886  // googleapi.IsNotModified to check whether the returned error was because
 19887  // http.StatusNotModified was returned.
 19888  func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*AccounttaxCustomBatchResponse, error) {
 19889  	gensupport.SetOptions(c.urlParams_, opts...)
 19890  	res, err := c.doRequest("json")
 19891  	if res != nil && res.StatusCode == http.StatusNotModified {
 19892  		if res.Body != nil {
 19893  			res.Body.Close()
 19894  		}
 19895  		return nil, gensupport.WrapError(&googleapi.Error{
 19896  			Code:   res.StatusCode,
 19897  			Header: res.Header,
 19898  		})
 19899  	}
 19900  	if err != nil {
 19901  		return nil, err
 19902  	}
 19903  	defer googleapi.CloseBody(res)
 19904  	if err := googleapi.CheckResponse(res); err != nil {
 19905  		return nil, gensupport.WrapError(err)
 19906  	}
 19907  	ret := &AccounttaxCustomBatchResponse{
 19908  		ServerResponse: googleapi.ServerResponse{
 19909  			Header:         res.Header,
 19910  			HTTPStatusCode: res.StatusCode,
 19911  		},
 19912  	}
 19913  	target := &ret
 19914  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19915  		return nil, err
 19916  	}
 19917  	return ret, nil
 19918  }
 19919  
 19920  type AccounttaxGetCall struct {
 19921  	s            *APIService
 19922  	merchantId   uint64
 19923  	accountId    uint64
 19924  	urlParams_   gensupport.URLParams
 19925  	ifNoneMatch_ string
 19926  	ctx_         context.Context
 19927  	header_      http.Header
 19928  }
 19929  
 19930  // Get: Retrieves the tax settings of the account.
 19931  //
 19932  //   - accountId: The ID of the account for which to get/update account tax
 19933  //     settings.
 19934  //   - merchantId: The ID of the managing account. If this parameter is not the
 19935  //     same as accountId, then this account must be a multi-client account and
 19936  //     `accountId` must be the ID of a sub-account of this account.
 19937  func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *AccounttaxGetCall {
 19938  	c := &AccounttaxGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19939  	c.merchantId = merchantId
 19940  	c.accountId = accountId
 19941  	return c
 19942  }
 19943  
 19944  // Fields allows partial responses to be retrieved. See
 19945  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19946  // details.
 19947  func (c *AccounttaxGetCall) Fields(s ...googleapi.Field) *AccounttaxGetCall {
 19948  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19949  	return c
 19950  }
 19951  
 19952  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19953  // object's ETag matches the given value. This is useful for getting updates
 19954  // only after the object has changed since the last request.
 19955  func (c *AccounttaxGetCall) IfNoneMatch(entityTag string) *AccounttaxGetCall {
 19956  	c.ifNoneMatch_ = entityTag
 19957  	return c
 19958  }
 19959  
 19960  // Context sets the context to be used in this call's Do method.
 19961  func (c *AccounttaxGetCall) Context(ctx context.Context) *AccounttaxGetCall {
 19962  	c.ctx_ = ctx
 19963  	return c
 19964  }
 19965  
 19966  // Header returns a http.Header that can be modified by the caller to add
 19967  // headers to the request.
 19968  func (c *AccounttaxGetCall) Header() http.Header {
 19969  	if c.header_ == nil {
 19970  		c.header_ = make(http.Header)
 19971  	}
 19972  	return c.header_
 19973  }
 19974  
 19975  func (c *AccounttaxGetCall) doRequest(alt string) (*http.Response, error) {
 19976  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19977  	if c.ifNoneMatch_ != "" {
 19978  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19979  	}
 19980  	var body io.Reader = nil
 19981  	c.urlParams_.Set("alt", alt)
 19982  	c.urlParams_.Set("prettyPrint", "false")
 19983  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax/{accountId}")
 19984  	urls += "?" + c.urlParams_.Encode()
 19985  	req, err := http.NewRequest("GET", urls, body)
 19986  	if err != nil {
 19987  		return nil, err
 19988  	}
 19989  	req.Header = reqHeaders
 19990  	googleapi.Expand(req.URL, map[string]string{
 19991  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 19992  		"accountId":  strconv.FormatUint(c.accountId, 10),
 19993  	})
 19994  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19995  }
 19996  
 19997  // Do executes the "content.accounttax.get" call.
 19998  // Any non-2xx status code is an error. Response headers are in either
 19999  // *AccountTax.ServerResponse.Header or (if a response was returned at all) in
 20000  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20001  // whether the returned error was because http.StatusNotModified was returned.
 20002  func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error) {
 20003  	gensupport.SetOptions(c.urlParams_, opts...)
 20004  	res, err := c.doRequest("json")
 20005  	if res != nil && res.StatusCode == http.StatusNotModified {
 20006  		if res.Body != nil {
 20007  			res.Body.Close()
 20008  		}
 20009  		return nil, gensupport.WrapError(&googleapi.Error{
 20010  			Code:   res.StatusCode,
 20011  			Header: res.Header,
 20012  		})
 20013  	}
 20014  	if err != nil {
 20015  		return nil, err
 20016  	}
 20017  	defer googleapi.CloseBody(res)
 20018  	if err := googleapi.CheckResponse(res); err != nil {
 20019  		return nil, gensupport.WrapError(err)
 20020  	}
 20021  	ret := &AccountTax{
 20022  		ServerResponse: googleapi.ServerResponse{
 20023  			Header:         res.Header,
 20024  			HTTPStatusCode: res.StatusCode,
 20025  		},
 20026  	}
 20027  	target := &ret
 20028  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20029  		return nil, err
 20030  	}
 20031  	return ret, nil
 20032  }
 20033  
 20034  type AccounttaxListCall struct {
 20035  	s            *APIService
 20036  	merchantId   uint64
 20037  	urlParams_   gensupport.URLParams
 20038  	ifNoneMatch_ string
 20039  	ctx_         context.Context
 20040  	header_      http.Header
 20041  }
 20042  
 20043  // List: Lists the tax settings of the sub-accounts in your Merchant Center
 20044  // account.
 20045  //
 20046  //   - merchantId: The ID of the managing account. This must be a multi-client
 20047  //     account.
 20048  func (r *AccounttaxService) List(merchantId uint64) *AccounttaxListCall {
 20049  	c := &AccounttaxListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20050  	c.merchantId = merchantId
 20051  	return c
 20052  }
 20053  
 20054  // MaxResults sets the optional parameter "maxResults": The maximum number of
 20055  // tax settings to return in the response, used for paging.
 20056  func (c *AccounttaxListCall) MaxResults(maxResults int64) *AccounttaxListCall {
 20057  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 20058  	return c
 20059  }
 20060  
 20061  // PageToken sets the optional parameter "pageToken": The token returned by the
 20062  // previous request.
 20063  func (c *AccounttaxListCall) PageToken(pageToken string) *AccounttaxListCall {
 20064  	c.urlParams_.Set("pageToken", pageToken)
 20065  	return c
 20066  }
 20067  
 20068  // Fields allows partial responses to be retrieved. See
 20069  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20070  // details.
 20071  func (c *AccounttaxListCall) Fields(s ...googleapi.Field) *AccounttaxListCall {
 20072  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20073  	return c
 20074  }
 20075  
 20076  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20077  // object's ETag matches the given value. This is useful for getting updates
 20078  // only after the object has changed since the last request.
 20079  func (c *AccounttaxListCall) IfNoneMatch(entityTag string) *AccounttaxListCall {
 20080  	c.ifNoneMatch_ = entityTag
 20081  	return c
 20082  }
 20083  
 20084  // Context sets the context to be used in this call's Do method.
 20085  func (c *AccounttaxListCall) Context(ctx context.Context) *AccounttaxListCall {
 20086  	c.ctx_ = ctx
 20087  	return c
 20088  }
 20089  
 20090  // Header returns a http.Header that can be modified by the caller to add
 20091  // headers to the request.
 20092  func (c *AccounttaxListCall) Header() http.Header {
 20093  	if c.header_ == nil {
 20094  		c.header_ = make(http.Header)
 20095  	}
 20096  	return c.header_
 20097  }
 20098  
 20099  func (c *AccounttaxListCall) doRequest(alt string) (*http.Response, error) {
 20100  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20101  	if c.ifNoneMatch_ != "" {
 20102  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20103  	}
 20104  	var body io.Reader = nil
 20105  	c.urlParams_.Set("alt", alt)
 20106  	c.urlParams_.Set("prettyPrint", "false")
 20107  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax")
 20108  	urls += "?" + c.urlParams_.Encode()
 20109  	req, err := http.NewRequest("GET", urls, body)
 20110  	if err != nil {
 20111  		return nil, err
 20112  	}
 20113  	req.Header = reqHeaders
 20114  	googleapi.Expand(req.URL, map[string]string{
 20115  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 20116  	})
 20117  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20118  }
 20119  
 20120  // Do executes the "content.accounttax.list" call.
 20121  // Any non-2xx status code is an error. Response headers are in either
 20122  // *AccounttaxListResponse.ServerResponse.Header or (if a response was returned
 20123  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20124  // check whether the returned error was because http.StatusNotModified was
 20125  // returned.
 20126  func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListResponse, error) {
 20127  	gensupport.SetOptions(c.urlParams_, opts...)
 20128  	res, err := c.doRequest("json")
 20129  	if res != nil && res.StatusCode == http.StatusNotModified {
 20130  		if res.Body != nil {
 20131  			res.Body.Close()
 20132  		}
 20133  		return nil, gensupport.WrapError(&googleapi.Error{
 20134  			Code:   res.StatusCode,
 20135  			Header: res.Header,
 20136  		})
 20137  	}
 20138  	if err != nil {
 20139  		return nil, err
 20140  	}
 20141  	defer googleapi.CloseBody(res)
 20142  	if err := googleapi.CheckResponse(res); err != nil {
 20143  		return nil, gensupport.WrapError(err)
 20144  	}
 20145  	ret := &AccounttaxListResponse{
 20146  		ServerResponse: googleapi.ServerResponse{
 20147  			Header:         res.Header,
 20148  			HTTPStatusCode: res.StatusCode,
 20149  		},
 20150  	}
 20151  	target := &ret
 20152  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20153  		return nil, err
 20154  	}
 20155  	return ret, nil
 20156  }
 20157  
 20158  // Pages invokes f for each page of results.
 20159  // A non-nil error returned from f will halt the iteration.
 20160  // The provided context supersedes any context provided to the Context method.
 20161  func (c *AccounttaxListCall) Pages(ctx context.Context, f func(*AccounttaxListResponse) error) error {
 20162  	c.ctx_ = ctx
 20163  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20164  	for {
 20165  		x, err := c.Do()
 20166  		if err != nil {
 20167  			return err
 20168  		}
 20169  		if err := f(x); err != nil {
 20170  			return err
 20171  		}
 20172  		if x.NextPageToken == "" {
 20173  			return nil
 20174  		}
 20175  		c.PageToken(x.NextPageToken)
 20176  	}
 20177  }
 20178  
 20179  type AccounttaxUpdateCall struct {
 20180  	s          *APIService
 20181  	merchantId uint64
 20182  	accountId  uint64
 20183  	accounttax *AccountTax
 20184  	urlParams_ gensupport.URLParams
 20185  	ctx_       context.Context
 20186  	header_    http.Header
 20187  }
 20188  
 20189  // Update: Updates the tax settings of the account. Any fields that are not
 20190  // provided are deleted from the resource.
 20191  //
 20192  //   - accountId: The ID of the account for which to get/update account tax
 20193  //     settings.
 20194  //   - merchantId: The ID of the managing account. If this parameter is not the
 20195  //     same as accountId, then this account must be a multi-client account and
 20196  //     `accountId` must be the ID of a sub-account of this account.
 20197  func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall {
 20198  	c := &AccounttaxUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20199  	c.merchantId = merchantId
 20200  	c.accountId = accountId
 20201  	c.accounttax = accounttax
 20202  	return c
 20203  }
 20204  
 20205  // Fields allows partial responses to be retrieved. See
 20206  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20207  // details.
 20208  func (c *AccounttaxUpdateCall) Fields(s ...googleapi.Field) *AccounttaxUpdateCall {
 20209  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20210  	return c
 20211  }
 20212  
 20213  // Context sets the context to be used in this call's Do method.
 20214  func (c *AccounttaxUpdateCall) Context(ctx context.Context) *AccounttaxUpdateCall {
 20215  	c.ctx_ = ctx
 20216  	return c
 20217  }
 20218  
 20219  // Header returns a http.Header that can be modified by the caller to add
 20220  // headers to the request.
 20221  func (c *AccounttaxUpdateCall) Header() http.Header {
 20222  	if c.header_ == nil {
 20223  		c.header_ = make(http.Header)
 20224  	}
 20225  	return c.header_
 20226  }
 20227  
 20228  func (c *AccounttaxUpdateCall) doRequest(alt string) (*http.Response, error) {
 20229  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20230  	var body io.Reader = nil
 20231  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.accounttax)
 20232  	if err != nil {
 20233  		return nil, err
 20234  	}
 20235  	c.urlParams_.Set("alt", alt)
 20236  	c.urlParams_.Set("prettyPrint", "false")
 20237  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/accounttax/{accountId}")
 20238  	urls += "?" + c.urlParams_.Encode()
 20239  	req, err := http.NewRequest("PUT", urls, body)
 20240  	if err != nil {
 20241  		return nil, err
 20242  	}
 20243  	req.Header = reqHeaders
 20244  	googleapi.Expand(req.URL, map[string]string{
 20245  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 20246  		"accountId":  strconv.FormatUint(c.accountId, 10),
 20247  	})
 20248  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20249  }
 20250  
 20251  // Do executes the "content.accounttax.update" call.
 20252  // Any non-2xx status code is an error. Response headers are in either
 20253  // *AccountTax.ServerResponse.Header or (if a response was returned at all) in
 20254  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20255  // whether the returned error was because http.StatusNotModified was returned.
 20256  func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, error) {
 20257  	gensupport.SetOptions(c.urlParams_, opts...)
 20258  	res, err := c.doRequest("json")
 20259  	if res != nil && res.StatusCode == http.StatusNotModified {
 20260  		if res.Body != nil {
 20261  			res.Body.Close()
 20262  		}
 20263  		return nil, gensupport.WrapError(&googleapi.Error{
 20264  			Code:   res.StatusCode,
 20265  			Header: res.Header,
 20266  		})
 20267  	}
 20268  	if err != nil {
 20269  		return nil, err
 20270  	}
 20271  	defer googleapi.CloseBody(res)
 20272  	if err := googleapi.CheckResponse(res); err != nil {
 20273  		return nil, gensupport.WrapError(err)
 20274  	}
 20275  	ret := &AccountTax{
 20276  		ServerResponse: googleapi.ServerResponse{
 20277  			Header:         res.Header,
 20278  			HTTPStatusCode: res.StatusCode,
 20279  		},
 20280  	}
 20281  	target := &ret
 20282  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20283  		return nil, err
 20284  	}
 20285  	return ret, nil
 20286  }
 20287  
 20288  type BuyongoogleprogramsActivateCall struct {
 20289  	s                                 *APIService
 20290  	merchantId                        int64
 20291  	regionCode                        string
 20292  	activatebuyongoogleprogramrequest *ActivateBuyOnGoogleProgramRequest
 20293  	urlParams_                        gensupport.URLParams
 20294  	ctx_                              context.Context
 20295  	header_                           http.Header
 20296  }
 20297  
 20298  // Activate: Reactivates the BoG program in your Merchant Center account. Moves
 20299  // the program to the active state when allowed, for example, when paused. This
 20300  // method is only available to selected merchants.
 20301  //
 20302  //   - merchantId: The ID of the account.
 20303  //   - regionCode: The program region code ISO 3166-1 alpha-2
 20304  //     (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US is
 20305  //     available.
 20306  func (r *BuyongoogleprogramsService) Activate(merchantId int64, regionCode string, activatebuyongoogleprogramrequest *ActivateBuyOnGoogleProgramRequest) *BuyongoogleprogramsActivateCall {
 20307  	c := &BuyongoogleprogramsActivateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20308  	c.merchantId = merchantId
 20309  	c.regionCode = regionCode
 20310  	c.activatebuyongoogleprogramrequest = activatebuyongoogleprogramrequest
 20311  	return c
 20312  }
 20313  
 20314  // Fields allows partial responses to be retrieved. See
 20315  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20316  // details.
 20317  func (c *BuyongoogleprogramsActivateCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsActivateCall {
 20318  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20319  	return c
 20320  }
 20321  
 20322  // Context sets the context to be used in this call's Do method.
 20323  func (c *BuyongoogleprogramsActivateCall) Context(ctx context.Context) *BuyongoogleprogramsActivateCall {
 20324  	c.ctx_ = ctx
 20325  	return c
 20326  }
 20327  
 20328  // Header returns a http.Header that can be modified by the caller to add
 20329  // headers to the request.
 20330  func (c *BuyongoogleprogramsActivateCall) Header() http.Header {
 20331  	if c.header_ == nil {
 20332  		c.header_ = make(http.Header)
 20333  	}
 20334  	return c.header_
 20335  }
 20336  
 20337  func (c *BuyongoogleprogramsActivateCall) doRequest(alt string) (*http.Response, error) {
 20338  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20339  	var body io.Reader = nil
 20340  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.activatebuyongoogleprogramrequest)
 20341  	if err != nil {
 20342  		return nil, err
 20343  	}
 20344  	c.urlParams_.Set("alt", alt)
 20345  	c.urlParams_.Set("prettyPrint", "false")
 20346  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/activate")
 20347  	urls += "?" + c.urlParams_.Encode()
 20348  	req, err := http.NewRequest("POST", urls, body)
 20349  	if err != nil {
 20350  		return nil, err
 20351  	}
 20352  	req.Header = reqHeaders
 20353  	googleapi.Expand(req.URL, map[string]string{
 20354  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 20355  		"regionCode": c.regionCode,
 20356  	})
 20357  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20358  }
 20359  
 20360  // Do executes the "content.buyongoogleprograms.activate" call.
 20361  func (c *BuyongoogleprogramsActivateCall) Do(opts ...googleapi.CallOption) error {
 20362  	gensupport.SetOptions(c.urlParams_, opts...)
 20363  	res, err := c.doRequest("json")
 20364  	if err != nil {
 20365  		return err
 20366  	}
 20367  	defer googleapi.CloseBody(res)
 20368  	if err := googleapi.CheckResponse(res); err != nil {
 20369  		return gensupport.WrapError(err)
 20370  	}
 20371  	return nil
 20372  }
 20373  
 20374  type BuyongoogleprogramsGetCall struct {
 20375  	s            *APIService
 20376  	merchantId   int64
 20377  	regionCode   string
 20378  	urlParams_   gensupport.URLParams
 20379  	ifNoneMatch_ string
 20380  	ctx_         context.Context
 20381  	header_      http.Header
 20382  }
 20383  
 20384  // Get: Retrieves a status of the BoG program for your Merchant Center account.
 20385  //
 20386  //   - merchantId: The ID of the account.
 20387  //   - regionCode: The Program region code ISO 3166-1 alpha-2
 20388  //     (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US is
 20389  //     available.
 20390  func (r *BuyongoogleprogramsService) Get(merchantId int64, regionCode string) *BuyongoogleprogramsGetCall {
 20391  	c := &BuyongoogleprogramsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20392  	c.merchantId = merchantId
 20393  	c.regionCode = regionCode
 20394  	return c
 20395  }
 20396  
 20397  // Fields allows partial responses to be retrieved. See
 20398  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20399  // details.
 20400  func (c *BuyongoogleprogramsGetCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsGetCall {
 20401  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20402  	return c
 20403  }
 20404  
 20405  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20406  // object's ETag matches the given value. This is useful for getting updates
 20407  // only after the object has changed since the last request.
 20408  func (c *BuyongoogleprogramsGetCall) IfNoneMatch(entityTag string) *BuyongoogleprogramsGetCall {
 20409  	c.ifNoneMatch_ = entityTag
 20410  	return c
 20411  }
 20412  
 20413  // Context sets the context to be used in this call's Do method.
 20414  func (c *BuyongoogleprogramsGetCall) Context(ctx context.Context) *BuyongoogleprogramsGetCall {
 20415  	c.ctx_ = ctx
 20416  	return c
 20417  }
 20418  
 20419  // Header returns a http.Header that can be modified by the caller to add
 20420  // headers to the request.
 20421  func (c *BuyongoogleprogramsGetCall) Header() http.Header {
 20422  	if c.header_ == nil {
 20423  		c.header_ = make(http.Header)
 20424  	}
 20425  	return c.header_
 20426  }
 20427  
 20428  func (c *BuyongoogleprogramsGetCall) doRequest(alt string) (*http.Response, error) {
 20429  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20430  	if c.ifNoneMatch_ != "" {
 20431  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20432  	}
 20433  	var body io.Reader = nil
 20434  	c.urlParams_.Set("alt", alt)
 20435  	c.urlParams_.Set("prettyPrint", "false")
 20436  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}")
 20437  	urls += "?" + c.urlParams_.Encode()
 20438  	req, err := http.NewRequest("GET", urls, body)
 20439  	if err != nil {
 20440  		return nil, err
 20441  	}
 20442  	req.Header = reqHeaders
 20443  	googleapi.Expand(req.URL, map[string]string{
 20444  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 20445  		"regionCode": c.regionCode,
 20446  	})
 20447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20448  }
 20449  
 20450  // Do executes the "content.buyongoogleprograms.get" call.
 20451  // Any non-2xx status code is an error. Response headers are in either
 20452  // *BuyOnGoogleProgramStatus.ServerResponse.Header or (if a response was
 20453  // returned at all) in error.(*googleapi.Error).Header. Use
 20454  // googleapi.IsNotModified to check whether the returned error was because
 20455  // http.StatusNotModified was returned.
 20456  func (c *BuyongoogleprogramsGetCall) Do(opts ...googleapi.CallOption) (*BuyOnGoogleProgramStatus, error) {
 20457  	gensupport.SetOptions(c.urlParams_, opts...)
 20458  	res, err := c.doRequest("json")
 20459  	if res != nil && res.StatusCode == http.StatusNotModified {
 20460  		if res.Body != nil {
 20461  			res.Body.Close()
 20462  		}
 20463  		return nil, gensupport.WrapError(&googleapi.Error{
 20464  			Code:   res.StatusCode,
 20465  			Header: res.Header,
 20466  		})
 20467  	}
 20468  	if err != nil {
 20469  		return nil, err
 20470  	}
 20471  	defer googleapi.CloseBody(res)
 20472  	if err := googleapi.CheckResponse(res); err != nil {
 20473  		return nil, gensupport.WrapError(err)
 20474  	}
 20475  	ret := &BuyOnGoogleProgramStatus{
 20476  		ServerResponse: googleapi.ServerResponse{
 20477  			Header:         res.Header,
 20478  			HTTPStatusCode: res.StatusCode,
 20479  		},
 20480  	}
 20481  	target := &ret
 20482  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20483  		return nil, err
 20484  	}
 20485  	return ret, nil
 20486  }
 20487  
 20488  type BuyongoogleprogramsOnboardCall struct {
 20489  	s                                *APIService
 20490  	merchantId                       int64
 20491  	regionCode                       string
 20492  	onboardbuyongoogleprogramrequest *OnboardBuyOnGoogleProgramRequest
 20493  	urlParams_                       gensupport.URLParams
 20494  	ctx_                             context.Context
 20495  	header_                          http.Header
 20496  }
 20497  
 20498  // Onboard: Onboards the BoG program in your Merchant Center account. By using
 20499  // this method, you agree to the Terms of Service
 20500  // (https://merchants.google.com/mc/termsofservice/transactions/US/latest).
 20501  // Calling this method is only possible if the authenticated account is the
 20502  // same as the merchant id in the request. Calling this method multiple times
 20503  // will only accept Terms of Service if the latest version is not currently
 20504  // signed.
 20505  //
 20506  //   - merchantId: The ID of the account.
 20507  //   - regionCode: The program region code ISO 3166-1 alpha-2
 20508  //     (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US is
 20509  //     available.
 20510  func (r *BuyongoogleprogramsService) Onboard(merchantId int64, regionCode string, onboardbuyongoogleprogramrequest *OnboardBuyOnGoogleProgramRequest) *BuyongoogleprogramsOnboardCall {
 20511  	c := &BuyongoogleprogramsOnboardCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20512  	c.merchantId = merchantId
 20513  	c.regionCode = regionCode
 20514  	c.onboardbuyongoogleprogramrequest = onboardbuyongoogleprogramrequest
 20515  	return c
 20516  }
 20517  
 20518  // Fields allows partial responses to be retrieved. See
 20519  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20520  // details.
 20521  func (c *BuyongoogleprogramsOnboardCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsOnboardCall {
 20522  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20523  	return c
 20524  }
 20525  
 20526  // Context sets the context to be used in this call's Do method.
 20527  func (c *BuyongoogleprogramsOnboardCall) Context(ctx context.Context) *BuyongoogleprogramsOnboardCall {
 20528  	c.ctx_ = ctx
 20529  	return c
 20530  }
 20531  
 20532  // Header returns a http.Header that can be modified by the caller to add
 20533  // headers to the request.
 20534  func (c *BuyongoogleprogramsOnboardCall) Header() http.Header {
 20535  	if c.header_ == nil {
 20536  		c.header_ = make(http.Header)
 20537  	}
 20538  	return c.header_
 20539  }
 20540  
 20541  func (c *BuyongoogleprogramsOnboardCall) doRequest(alt string) (*http.Response, error) {
 20542  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20543  	var body io.Reader = nil
 20544  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.onboardbuyongoogleprogramrequest)
 20545  	if err != nil {
 20546  		return nil, err
 20547  	}
 20548  	c.urlParams_.Set("alt", alt)
 20549  	c.urlParams_.Set("prettyPrint", "false")
 20550  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/onboard")
 20551  	urls += "?" + c.urlParams_.Encode()
 20552  	req, err := http.NewRequest("POST", urls, body)
 20553  	if err != nil {
 20554  		return nil, err
 20555  	}
 20556  	req.Header = reqHeaders
 20557  	googleapi.Expand(req.URL, map[string]string{
 20558  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 20559  		"regionCode": c.regionCode,
 20560  	})
 20561  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20562  }
 20563  
 20564  // Do executes the "content.buyongoogleprograms.onboard" call.
 20565  func (c *BuyongoogleprogramsOnboardCall) Do(opts ...googleapi.CallOption) error {
 20566  	gensupport.SetOptions(c.urlParams_, opts...)
 20567  	res, err := c.doRequest("json")
 20568  	if err != nil {
 20569  		return err
 20570  	}
 20571  	defer googleapi.CloseBody(res)
 20572  	if err := googleapi.CheckResponse(res); err != nil {
 20573  		return gensupport.WrapError(err)
 20574  	}
 20575  	return nil
 20576  }
 20577  
 20578  type BuyongoogleprogramsPatchCall struct {
 20579  	s                        *APIService
 20580  	merchantId               int64
 20581  	regionCode               string
 20582  	buyongoogleprogramstatus *BuyOnGoogleProgramStatus
 20583  	urlParams_               gensupport.URLParams
 20584  	ctx_                     context.Context
 20585  	header_                  http.Header
 20586  }
 20587  
 20588  // Patch: Updates the status of the BoG program for your Merchant Center
 20589  // account.
 20590  //
 20591  //   - merchantId: The ID of the account.
 20592  //   - regionCode: The program region code ISO 3166-1 alpha-2
 20593  //     (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US is
 20594  //     available.
 20595  func (r *BuyongoogleprogramsService) Patch(merchantId int64, regionCode string, buyongoogleprogramstatus *BuyOnGoogleProgramStatus) *BuyongoogleprogramsPatchCall {
 20596  	c := &BuyongoogleprogramsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20597  	c.merchantId = merchantId
 20598  	c.regionCode = regionCode
 20599  	c.buyongoogleprogramstatus = buyongoogleprogramstatus
 20600  	return c
 20601  }
 20602  
 20603  // UpdateMask sets the optional parameter "updateMask": The list of fields to
 20604  // update. If the update mask is not provided, then all the fields set in
 20605  // buyOnGoogleProgramStatus will be updated. Clearing fields is only possible
 20606  // if update mask is provided.
 20607  func (c *BuyongoogleprogramsPatchCall) UpdateMask(updateMask string) *BuyongoogleprogramsPatchCall {
 20608  	c.urlParams_.Set("updateMask", updateMask)
 20609  	return c
 20610  }
 20611  
 20612  // Fields allows partial responses to be retrieved. See
 20613  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20614  // details.
 20615  func (c *BuyongoogleprogramsPatchCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsPatchCall {
 20616  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20617  	return c
 20618  }
 20619  
 20620  // Context sets the context to be used in this call's Do method.
 20621  func (c *BuyongoogleprogramsPatchCall) Context(ctx context.Context) *BuyongoogleprogramsPatchCall {
 20622  	c.ctx_ = ctx
 20623  	return c
 20624  }
 20625  
 20626  // Header returns a http.Header that can be modified by the caller to add
 20627  // headers to the request.
 20628  func (c *BuyongoogleprogramsPatchCall) Header() http.Header {
 20629  	if c.header_ == nil {
 20630  		c.header_ = make(http.Header)
 20631  	}
 20632  	return c.header_
 20633  }
 20634  
 20635  func (c *BuyongoogleprogramsPatchCall) doRequest(alt string) (*http.Response, error) {
 20636  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20637  	var body io.Reader = nil
 20638  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.buyongoogleprogramstatus)
 20639  	if err != nil {
 20640  		return nil, err
 20641  	}
 20642  	c.urlParams_.Set("alt", alt)
 20643  	c.urlParams_.Set("prettyPrint", "false")
 20644  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}")
 20645  	urls += "?" + c.urlParams_.Encode()
 20646  	req, err := http.NewRequest("PATCH", urls, body)
 20647  	if err != nil {
 20648  		return nil, err
 20649  	}
 20650  	req.Header = reqHeaders
 20651  	googleapi.Expand(req.URL, map[string]string{
 20652  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 20653  		"regionCode": c.regionCode,
 20654  	})
 20655  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20656  }
 20657  
 20658  // Do executes the "content.buyongoogleprograms.patch" call.
 20659  // Any non-2xx status code is an error. Response headers are in either
 20660  // *BuyOnGoogleProgramStatus.ServerResponse.Header or (if a response was
 20661  // returned at all) in error.(*googleapi.Error).Header. Use
 20662  // googleapi.IsNotModified to check whether the returned error was because
 20663  // http.StatusNotModified was returned.
 20664  func (c *BuyongoogleprogramsPatchCall) Do(opts ...googleapi.CallOption) (*BuyOnGoogleProgramStatus, error) {
 20665  	gensupport.SetOptions(c.urlParams_, opts...)
 20666  	res, err := c.doRequest("json")
 20667  	if res != nil && res.StatusCode == http.StatusNotModified {
 20668  		if res.Body != nil {
 20669  			res.Body.Close()
 20670  		}
 20671  		return nil, gensupport.WrapError(&googleapi.Error{
 20672  			Code:   res.StatusCode,
 20673  			Header: res.Header,
 20674  		})
 20675  	}
 20676  	if err != nil {
 20677  		return nil, err
 20678  	}
 20679  	defer googleapi.CloseBody(res)
 20680  	if err := googleapi.CheckResponse(res); err != nil {
 20681  		return nil, gensupport.WrapError(err)
 20682  	}
 20683  	ret := &BuyOnGoogleProgramStatus{
 20684  		ServerResponse: googleapi.ServerResponse{
 20685  			Header:         res.Header,
 20686  			HTTPStatusCode: res.StatusCode,
 20687  		},
 20688  	}
 20689  	target := &ret
 20690  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20691  		return nil, err
 20692  	}
 20693  	return ret, nil
 20694  }
 20695  
 20696  type BuyongoogleprogramsPauseCall struct {
 20697  	s                              *APIService
 20698  	merchantId                     int64
 20699  	regionCode                     string
 20700  	pausebuyongoogleprogramrequest *PauseBuyOnGoogleProgramRequest
 20701  	urlParams_                     gensupport.URLParams
 20702  	ctx_                           context.Context
 20703  	header_                        http.Header
 20704  }
 20705  
 20706  // Pause: Pauses the BoG program in your Merchant Center account. This method
 20707  // is only available to selected merchants.
 20708  //
 20709  //   - merchantId: The ID of the account.
 20710  //   - regionCode: The program region code ISO 3166-1 alpha-2
 20711  //     (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US is
 20712  //     available.
 20713  func (r *BuyongoogleprogramsService) Pause(merchantId int64, regionCode string, pausebuyongoogleprogramrequest *PauseBuyOnGoogleProgramRequest) *BuyongoogleprogramsPauseCall {
 20714  	c := &BuyongoogleprogramsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20715  	c.merchantId = merchantId
 20716  	c.regionCode = regionCode
 20717  	c.pausebuyongoogleprogramrequest = pausebuyongoogleprogramrequest
 20718  	return c
 20719  }
 20720  
 20721  // Fields allows partial responses to be retrieved. See
 20722  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20723  // details.
 20724  func (c *BuyongoogleprogramsPauseCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsPauseCall {
 20725  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20726  	return c
 20727  }
 20728  
 20729  // Context sets the context to be used in this call's Do method.
 20730  func (c *BuyongoogleprogramsPauseCall) Context(ctx context.Context) *BuyongoogleprogramsPauseCall {
 20731  	c.ctx_ = ctx
 20732  	return c
 20733  }
 20734  
 20735  // Header returns a http.Header that can be modified by the caller to add
 20736  // headers to the request.
 20737  func (c *BuyongoogleprogramsPauseCall) Header() http.Header {
 20738  	if c.header_ == nil {
 20739  		c.header_ = make(http.Header)
 20740  	}
 20741  	return c.header_
 20742  }
 20743  
 20744  func (c *BuyongoogleprogramsPauseCall) doRequest(alt string) (*http.Response, error) {
 20745  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20746  	var body io.Reader = nil
 20747  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.pausebuyongoogleprogramrequest)
 20748  	if err != nil {
 20749  		return nil, err
 20750  	}
 20751  	c.urlParams_.Set("alt", alt)
 20752  	c.urlParams_.Set("prettyPrint", "false")
 20753  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/pause")
 20754  	urls += "?" + c.urlParams_.Encode()
 20755  	req, err := http.NewRequest("POST", urls, body)
 20756  	if err != nil {
 20757  		return nil, err
 20758  	}
 20759  	req.Header = reqHeaders
 20760  	googleapi.Expand(req.URL, map[string]string{
 20761  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 20762  		"regionCode": c.regionCode,
 20763  	})
 20764  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20765  }
 20766  
 20767  // Do executes the "content.buyongoogleprograms.pause" call.
 20768  func (c *BuyongoogleprogramsPauseCall) Do(opts ...googleapi.CallOption) error {
 20769  	gensupport.SetOptions(c.urlParams_, opts...)
 20770  	res, err := c.doRequest("json")
 20771  	if err != nil {
 20772  		return err
 20773  	}
 20774  	defer googleapi.CloseBody(res)
 20775  	if err := googleapi.CheckResponse(res); err != nil {
 20776  		return gensupport.WrapError(err)
 20777  	}
 20778  	return nil
 20779  }
 20780  
 20781  type BuyongoogleprogramsRequestreviewCall struct {
 20782  	s                                      *APIService
 20783  	merchantId                             int64
 20784  	regionCode                             string
 20785  	requestreviewbuyongoogleprogramrequest *RequestReviewBuyOnGoogleProgramRequest
 20786  	urlParams_                             gensupport.URLParams
 20787  	ctx_                                   context.Context
 20788  	header_                                http.Header
 20789  }
 20790  
 20791  // Requestreview: Requests review and then activates the BoG program in your
 20792  // Merchant Center account for the first time. Moves the program to the
 20793  // REVIEW_PENDING state. This method is only available to selected merchants.
 20794  //
 20795  //   - merchantId: The ID of the account.
 20796  //   - regionCode: The program region code ISO 3166-1 alpha-2
 20797  //     (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). Currently only US is
 20798  //     available.
 20799  func (r *BuyongoogleprogramsService) Requestreview(merchantId int64, regionCode string, requestreviewbuyongoogleprogramrequest *RequestReviewBuyOnGoogleProgramRequest) *BuyongoogleprogramsRequestreviewCall {
 20800  	c := &BuyongoogleprogramsRequestreviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20801  	c.merchantId = merchantId
 20802  	c.regionCode = regionCode
 20803  	c.requestreviewbuyongoogleprogramrequest = requestreviewbuyongoogleprogramrequest
 20804  	return c
 20805  }
 20806  
 20807  // Fields allows partial responses to be retrieved. See
 20808  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20809  // details.
 20810  func (c *BuyongoogleprogramsRequestreviewCall) Fields(s ...googleapi.Field) *BuyongoogleprogramsRequestreviewCall {
 20811  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20812  	return c
 20813  }
 20814  
 20815  // Context sets the context to be used in this call's Do method.
 20816  func (c *BuyongoogleprogramsRequestreviewCall) Context(ctx context.Context) *BuyongoogleprogramsRequestreviewCall {
 20817  	c.ctx_ = ctx
 20818  	return c
 20819  }
 20820  
 20821  // Header returns a http.Header that can be modified by the caller to add
 20822  // headers to the request.
 20823  func (c *BuyongoogleprogramsRequestreviewCall) Header() http.Header {
 20824  	if c.header_ == nil {
 20825  		c.header_ = make(http.Header)
 20826  	}
 20827  	return c.header_
 20828  }
 20829  
 20830  func (c *BuyongoogleprogramsRequestreviewCall) doRequest(alt string) (*http.Response, error) {
 20831  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20832  	var body io.Reader = nil
 20833  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestreviewbuyongoogleprogramrequest)
 20834  	if err != nil {
 20835  		return nil, err
 20836  	}
 20837  	c.urlParams_.Set("alt", alt)
 20838  	c.urlParams_.Set("prettyPrint", "false")
 20839  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/buyongoogleprograms/{regionCode}/requestreview")
 20840  	urls += "?" + c.urlParams_.Encode()
 20841  	req, err := http.NewRequest("POST", urls, body)
 20842  	if err != nil {
 20843  		return nil, err
 20844  	}
 20845  	req.Header = reqHeaders
 20846  	googleapi.Expand(req.URL, map[string]string{
 20847  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 20848  		"regionCode": c.regionCode,
 20849  	})
 20850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20851  }
 20852  
 20853  // Do executes the "content.buyongoogleprograms.requestreview" call.
 20854  func (c *BuyongoogleprogramsRequestreviewCall) Do(opts ...googleapi.CallOption) error {
 20855  	gensupport.SetOptions(c.urlParams_, opts...)
 20856  	res, err := c.doRequest("json")
 20857  	if err != nil {
 20858  		return err
 20859  	}
 20860  	defer googleapi.CloseBody(res)
 20861  	if err := googleapi.CheckResponse(res); err != nil {
 20862  		return gensupport.WrapError(err)
 20863  	}
 20864  	return nil
 20865  }
 20866  
 20867  type CollectionsCreateCall struct {
 20868  	s          *APIService
 20869  	merchantId int64
 20870  	collection *Collection
 20871  	urlParams_ gensupport.URLParams
 20872  	ctx_       context.Context
 20873  	header_    http.Header
 20874  }
 20875  
 20876  // Create: Uploads a collection to your Merchant Center account. If a
 20877  // collection with the same collectionId already exists, this method updates
 20878  // that entry. In each update, the collection is completely replaced by the
 20879  // fields in the body of the update request.
 20880  //
 20881  //   - merchantId: The ID of the account that contains the collection. This
 20882  //     account cannot be a multi-client account.
 20883  func (r *CollectionsService) Create(merchantId int64, collection *Collection) *CollectionsCreateCall {
 20884  	c := &CollectionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20885  	c.merchantId = merchantId
 20886  	c.collection = collection
 20887  	return c
 20888  }
 20889  
 20890  // Fields allows partial responses to be retrieved. See
 20891  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20892  // details.
 20893  func (c *CollectionsCreateCall) Fields(s ...googleapi.Field) *CollectionsCreateCall {
 20894  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20895  	return c
 20896  }
 20897  
 20898  // Context sets the context to be used in this call's Do method.
 20899  func (c *CollectionsCreateCall) Context(ctx context.Context) *CollectionsCreateCall {
 20900  	c.ctx_ = ctx
 20901  	return c
 20902  }
 20903  
 20904  // Header returns a http.Header that can be modified by the caller to add
 20905  // headers to the request.
 20906  func (c *CollectionsCreateCall) Header() http.Header {
 20907  	if c.header_ == nil {
 20908  		c.header_ = make(http.Header)
 20909  	}
 20910  	return c.header_
 20911  }
 20912  
 20913  func (c *CollectionsCreateCall) doRequest(alt string) (*http.Response, error) {
 20914  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20915  	var body io.Reader = nil
 20916  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.collection)
 20917  	if err != nil {
 20918  		return nil, err
 20919  	}
 20920  	c.urlParams_.Set("alt", alt)
 20921  	c.urlParams_.Set("prettyPrint", "false")
 20922  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections")
 20923  	urls += "?" + c.urlParams_.Encode()
 20924  	req, err := http.NewRequest("POST", urls, body)
 20925  	if err != nil {
 20926  		return nil, err
 20927  	}
 20928  	req.Header = reqHeaders
 20929  	googleapi.Expand(req.URL, map[string]string{
 20930  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 20931  	})
 20932  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20933  }
 20934  
 20935  // Do executes the "content.collections.create" call.
 20936  // Any non-2xx status code is an error. Response headers are in either
 20937  // *Collection.ServerResponse.Header or (if a response was returned at all) in
 20938  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20939  // whether the returned error was because http.StatusNotModified was returned.
 20940  func (c *CollectionsCreateCall) Do(opts ...googleapi.CallOption) (*Collection, error) {
 20941  	gensupport.SetOptions(c.urlParams_, opts...)
 20942  	res, err := c.doRequest("json")
 20943  	if res != nil && res.StatusCode == http.StatusNotModified {
 20944  		if res.Body != nil {
 20945  			res.Body.Close()
 20946  		}
 20947  		return nil, gensupport.WrapError(&googleapi.Error{
 20948  			Code:   res.StatusCode,
 20949  			Header: res.Header,
 20950  		})
 20951  	}
 20952  	if err != nil {
 20953  		return nil, err
 20954  	}
 20955  	defer googleapi.CloseBody(res)
 20956  	if err := googleapi.CheckResponse(res); err != nil {
 20957  		return nil, gensupport.WrapError(err)
 20958  	}
 20959  	ret := &Collection{
 20960  		ServerResponse: googleapi.ServerResponse{
 20961  			Header:         res.Header,
 20962  			HTTPStatusCode: res.StatusCode,
 20963  		},
 20964  	}
 20965  	target := &ret
 20966  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20967  		return nil, err
 20968  	}
 20969  	return ret, nil
 20970  }
 20971  
 20972  type CollectionsDeleteCall struct {
 20973  	s            *APIService
 20974  	merchantId   int64
 20975  	collectionId string
 20976  	urlParams_   gensupport.URLParams
 20977  	ctx_         context.Context
 20978  	header_      http.Header
 20979  }
 20980  
 20981  // Delete: Deletes a collection from your Merchant Center account.
 20982  //
 20983  //   - collectionId: The collectionId of the collection. CollectionId is the same
 20984  //     as the REST ID of the collection.
 20985  //   - merchantId: The ID of the account that contains the collection. This
 20986  //     account cannot be a multi-client account.
 20987  func (r *CollectionsService) Delete(merchantId int64, collectionId string) *CollectionsDeleteCall {
 20988  	c := &CollectionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20989  	c.merchantId = merchantId
 20990  	c.collectionId = collectionId
 20991  	return c
 20992  }
 20993  
 20994  // Fields allows partial responses to be retrieved. See
 20995  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20996  // details.
 20997  func (c *CollectionsDeleteCall) Fields(s ...googleapi.Field) *CollectionsDeleteCall {
 20998  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20999  	return c
 21000  }
 21001  
 21002  // Context sets the context to be used in this call's Do method.
 21003  func (c *CollectionsDeleteCall) Context(ctx context.Context) *CollectionsDeleteCall {
 21004  	c.ctx_ = ctx
 21005  	return c
 21006  }
 21007  
 21008  // Header returns a http.Header that can be modified by the caller to add
 21009  // headers to the request.
 21010  func (c *CollectionsDeleteCall) Header() http.Header {
 21011  	if c.header_ == nil {
 21012  		c.header_ = make(http.Header)
 21013  	}
 21014  	return c.header_
 21015  }
 21016  
 21017  func (c *CollectionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21018  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21019  	var body io.Reader = nil
 21020  	c.urlParams_.Set("alt", alt)
 21021  	c.urlParams_.Set("prettyPrint", "false")
 21022  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections/{collectionId}")
 21023  	urls += "?" + c.urlParams_.Encode()
 21024  	req, err := http.NewRequest("DELETE", urls, body)
 21025  	if err != nil {
 21026  		return nil, err
 21027  	}
 21028  	req.Header = reqHeaders
 21029  	googleapi.Expand(req.URL, map[string]string{
 21030  		"merchantId":   strconv.FormatInt(c.merchantId, 10),
 21031  		"collectionId": c.collectionId,
 21032  	})
 21033  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21034  }
 21035  
 21036  // Do executes the "content.collections.delete" call.
 21037  func (c *CollectionsDeleteCall) Do(opts ...googleapi.CallOption) error {
 21038  	gensupport.SetOptions(c.urlParams_, opts...)
 21039  	res, err := c.doRequest("json")
 21040  	if err != nil {
 21041  		return err
 21042  	}
 21043  	defer googleapi.CloseBody(res)
 21044  	if err := googleapi.CheckResponse(res); err != nil {
 21045  		return gensupport.WrapError(err)
 21046  	}
 21047  	return nil
 21048  }
 21049  
 21050  type CollectionsGetCall struct {
 21051  	s            *APIService
 21052  	merchantId   int64
 21053  	collectionId string
 21054  	urlParams_   gensupport.URLParams
 21055  	ifNoneMatch_ string
 21056  	ctx_         context.Context
 21057  	header_      http.Header
 21058  }
 21059  
 21060  // Get: Retrieves a collection from your Merchant Center account.
 21061  //
 21062  //   - collectionId: The REST ID of the collection.
 21063  //   - merchantId: The ID of the account that contains the collection. This
 21064  //     account cannot be a multi-client account.
 21065  func (r *CollectionsService) Get(merchantId int64, collectionId string) *CollectionsGetCall {
 21066  	c := &CollectionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21067  	c.merchantId = merchantId
 21068  	c.collectionId = collectionId
 21069  	return c
 21070  }
 21071  
 21072  // Fields allows partial responses to be retrieved. See
 21073  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21074  // details.
 21075  func (c *CollectionsGetCall) Fields(s ...googleapi.Field) *CollectionsGetCall {
 21076  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21077  	return c
 21078  }
 21079  
 21080  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21081  // object's ETag matches the given value. This is useful for getting updates
 21082  // only after the object has changed since the last request.
 21083  func (c *CollectionsGetCall) IfNoneMatch(entityTag string) *CollectionsGetCall {
 21084  	c.ifNoneMatch_ = entityTag
 21085  	return c
 21086  }
 21087  
 21088  // Context sets the context to be used in this call's Do method.
 21089  func (c *CollectionsGetCall) Context(ctx context.Context) *CollectionsGetCall {
 21090  	c.ctx_ = ctx
 21091  	return c
 21092  }
 21093  
 21094  // Header returns a http.Header that can be modified by the caller to add
 21095  // headers to the request.
 21096  func (c *CollectionsGetCall) Header() http.Header {
 21097  	if c.header_ == nil {
 21098  		c.header_ = make(http.Header)
 21099  	}
 21100  	return c.header_
 21101  }
 21102  
 21103  func (c *CollectionsGetCall) doRequest(alt string) (*http.Response, error) {
 21104  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21105  	if c.ifNoneMatch_ != "" {
 21106  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21107  	}
 21108  	var body io.Reader = nil
 21109  	c.urlParams_.Set("alt", alt)
 21110  	c.urlParams_.Set("prettyPrint", "false")
 21111  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections/{collectionId}")
 21112  	urls += "?" + c.urlParams_.Encode()
 21113  	req, err := http.NewRequest("GET", urls, body)
 21114  	if err != nil {
 21115  		return nil, err
 21116  	}
 21117  	req.Header = reqHeaders
 21118  	googleapi.Expand(req.URL, map[string]string{
 21119  		"merchantId":   strconv.FormatInt(c.merchantId, 10),
 21120  		"collectionId": c.collectionId,
 21121  	})
 21122  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21123  }
 21124  
 21125  // Do executes the "content.collections.get" call.
 21126  // Any non-2xx status code is an error. Response headers are in either
 21127  // *Collection.ServerResponse.Header or (if a response was returned at all) in
 21128  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21129  // whether the returned error was because http.StatusNotModified was returned.
 21130  func (c *CollectionsGetCall) Do(opts ...googleapi.CallOption) (*Collection, error) {
 21131  	gensupport.SetOptions(c.urlParams_, opts...)
 21132  	res, err := c.doRequest("json")
 21133  	if res != nil && res.StatusCode == http.StatusNotModified {
 21134  		if res.Body != nil {
 21135  			res.Body.Close()
 21136  		}
 21137  		return nil, gensupport.WrapError(&googleapi.Error{
 21138  			Code:   res.StatusCode,
 21139  			Header: res.Header,
 21140  		})
 21141  	}
 21142  	if err != nil {
 21143  		return nil, err
 21144  	}
 21145  	defer googleapi.CloseBody(res)
 21146  	if err := googleapi.CheckResponse(res); err != nil {
 21147  		return nil, gensupport.WrapError(err)
 21148  	}
 21149  	ret := &Collection{
 21150  		ServerResponse: googleapi.ServerResponse{
 21151  			Header:         res.Header,
 21152  			HTTPStatusCode: res.StatusCode,
 21153  		},
 21154  	}
 21155  	target := &ret
 21156  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21157  		return nil, err
 21158  	}
 21159  	return ret, nil
 21160  }
 21161  
 21162  type CollectionsListCall struct {
 21163  	s            *APIService
 21164  	merchantId   int64
 21165  	urlParams_   gensupport.URLParams
 21166  	ifNoneMatch_ string
 21167  	ctx_         context.Context
 21168  	header_      http.Header
 21169  }
 21170  
 21171  // List: Lists the collections in your Merchant Center account. The response
 21172  // might contain fewer items than specified by page_size. Rely on
 21173  // next_page_token to determine if there are more items to be requested.
 21174  //
 21175  //   - merchantId: The ID of the account that contains the collection. This
 21176  //     account cannot be a multi-client account.
 21177  func (r *CollectionsService) List(merchantId int64) *CollectionsListCall {
 21178  	c := &CollectionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21179  	c.merchantId = merchantId
 21180  	return c
 21181  }
 21182  
 21183  // PageSize sets the optional parameter "pageSize": The maximum number of
 21184  // collections to return in the response, used for paging. Defaults to 50;
 21185  // values above 1000 will be coerced to 1000.
 21186  func (c *CollectionsListCall) PageSize(pageSize int64) *CollectionsListCall {
 21187  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21188  	return c
 21189  }
 21190  
 21191  // PageToken sets the optional parameter "pageToken": Token (if provided) to
 21192  // retrieve the subsequent page. All other parameters must match the original
 21193  // call that provided the page token.
 21194  func (c *CollectionsListCall) PageToken(pageToken string) *CollectionsListCall {
 21195  	c.urlParams_.Set("pageToken", pageToken)
 21196  	return c
 21197  }
 21198  
 21199  // Fields allows partial responses to be retrieved. See
 21200  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21201  // details.
 21202  func (c *CollectionsListCall) Fields(s ...googleapi.Field) *CollectionsListCall {
 21203  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21204  	return c
 21205  }
 21206  
 21207  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21208  // object's ETag matches the given value. This is useful for getting updates
 21209  // only after the object has changed since the last request.
 21210  func (c *CollectionsListCall) IfNoneMatch(entityTag string) *CollectionsListCall {
 21211  	c.ifNoneMatch_ = entityTag
 21212  	return c
 21213  }
 21214  
 21215  // Context sets the context to be used in this call's Do method.
 21216  func (c *CollectionsListCall) Context(ctx context.Context) *CollectionsListCall {
 21217  	c.ctx_ = ctx
 21218  	return c
 21219  }
 21220  
 21221  // Header returns a http.Header that can be modified by the caller to add
 21222  // headers to the request.
 21223  func (c *CollectionsListCall) Header() http.Header {
 21224  	if c.header_ == nil {
 21225  		c.header_ = make(http.Header)
 21226  	}
 21227  	return c.header_
 21228  }
 21229  
 21230  func (c *CollectionsListCall) doRequest(alt string) (*http.Response, error) {
 21231  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21232  	if c.ifNoneMatch_ != "" {
 21233  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21234  	}
 21235  	var body io.Reader = nil
 21236  	c.urlParams_.Set("alt", alt)
 21237  	c.urlParams_.Set("prettyPrint", "false")
 21238  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collections")
 21239  	urls += "?" + c.urlParams_.Encode()
 21240  	req, err := http.NewRequest("GET", urls, body)
 21241  	if err != nil {
 21242  		return nil, err
 21243  	}
 21244  	req.Header = reqHeaders
 21245  	googleapi.Expand(req.URL, map[string]string{
 21246  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 21247  	})
 21248  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21249  }
 21250  
 21251  // Do executes the "content.collections.list" call.
 21252  // Any non-2xx status code is an error. Response headers are in either
 21253  // *ListCollectionsResponse.ServerResponse.Header or (if a response was
 21254  // returned at all) in error.(*googleapi.Error).Header. Use
 21255  // googleapi.IsNotModified to check whether the returned error was because
 21256  // http.StatusNotModified was returned.
 21257  func (c *CollectionsListCall) Do(opts ...googleapi.CallOption) (*ListCollectionsResponse, error) {
 21258  	gensupport.SetOptions(c.urlParams_, opts...)
 21259  	res, err := c.doRequest("json")
 21260  	if res != nil && res.StatusCode == http.StatusNotModified {
 21261  		if res.Body != nil {
 21262  			res.Body.Close()
 21263  		}
 21264  		return nil, gensupport.WrapError(&googleapi.Error{
 21265  			Code:   res.StatusCode,
 21266  			Header: res.Header,
 21267  		})
 21268  	}
 21269  	if err != nil {
 21270  		return nil, err
 21271  	}
 21272  	defer googleapi.CloseBody(res)
 21273  	if err := googleapi.CheckResponse(res); err != nil {
 21274  		return nil, gensupport.WrapError(err)
 21275  	}
 21276  	ret := &ListCollectionsResponse{
 21277  		ServerResponse: googleapi.ServerResponse{
 21278  			Header:         res.Header,
 21279  			HTTPStatusCode: res.StatusCode,
 21280  		},
 21281  	}
 21282  	target := &ret
 21283  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21284  		return nil, err
 21285  	}
 21286  	return ret, nil
 21287  }
 21288  
 21289  // Pages invokes f for each page of results.
 21290  // A non-nil error returned from f will halt the iteration.
 21291  // The provided context supersedes any context provided to the Context method.
 21292  func (c *CollectionsListCall) Pages(ctx context.Context, f func(*ListCollectionsResponse) error) error {
 21293  	c.ctx_ = ctx
 21294  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21295  	for {
 21296  		x, err := c.Do()
 21297  		if err != nil {
 21298  			return err
 21299  		}
 21300  		if err := f(x); err != nil {
 21301  			return err
 21302  		}
 21303  		if x.NextPageToken == "" {
 21304  			return nil
 21305  		}
 21306  		c.PageToken(x.NextPageToken)
 21307  	}
 21308  }
 21309  
 21310  type CollectionstatusesGetCall struct {
 21311  	s            *APIService
 21312  	merchantId   int64
 21313  	collectionId string
 21314  	urlParams_   gensupport.URLParams
 21315  	ifNoneMatch_ string
 21316  	ctx_         context.Context
 21317  	header_      http.Header
 21318  }
 21319  
 21320  // Get: Gets the status of a collection from your Merchant Center account.
 21321  //
 21322  //   - collectionId: The collectionId of the collection. CollectionId is the same
 21323  //     as the REST ID of the collection.
 21324  //   - merchantId: The ID of the account that contains the collection. This
 21325  //     account cannot be a multi-client account.
 21326  func (r *CollectionstatusesService) Get(merchantId int64, collectionId string) *CollectionstatusesGetCall {
 21327  	c := &CollectionstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21328  	c.merchantId = merchantId
 21329  	c.collectionId = collectionId
 21330  	return c
 21331  }
 21332  
 21333  // Fields allows partial responses to be retrieved. See
 21334  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21335  // details.
 21336  func (c *CollectionstatusesGetCall) Fields(s ...googleapi.Field) *CollectionstatusesGetCall {
 21337  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21338  	return c
 21339  }
 21340  
 21341  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21342  // object's ETag matches the given value. This is useful for getting updates
 21343  // only after the object has changed since the last request.
 21344  func (c *CollectionstatusesGetCall) IfNoneMatch(entityTag string) *CollectionstatusesGetCall {
 21345  	c.ifNoneMatch_ = entityTag
 21346  	return c
 21347  }
 21348  
 21349  // Context sets the context to be used in this call's Do method.
 21350  func (c *CollectionstatusesGetCall) Context(ctx context.Context) *CollectionstatusesGetCall {
 21351  	c.ctx_ = ctx
 21352  	return c
 21353  }
 21354  
 21355  // Header returns a http.Header that can be modified by the caller to add
 21356  // headers to the request.
 21357  func (c *CollectionstatusesGetCall) Header() http.Header {
 21358  	if c.header_ == nil {
 21359  		c.header_ = make(http.Header)
 21360  	}
 21361  	return c.header_
 21362  }
 21363  
 21364  func (c *CollectionstatusesGetCall) doRequest(alt string) (*http.Response, error) {
 21365  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21366  	if c.ifNoneMatch_ != "" {
 21367  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21368  	}
 21369  	var body io.Reader = nil
 21370  	c.urlParams_.Set("alt", alt)
 21371  	c.urlParams_.Set("prettyPrint", "false")
 21372  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collectionstatuses/{collectionId}")
 21373  	urls += "?" + c.urlParams_.Encode()
 21374  	req, err := http.NewRequest("GET", urls, body)
 21375  	if err != nil {
 21376  		return nil, err
 21377  	}
 21378  	req.Header = reqHeaders
 21379  	googleapi.Expand(req.URL, map[string]string{
 21380  		"merchantId":   strconv.FormatInt(c.merchantId, 10),
 21381  		"collectionId": c.collectionId,
 21382  	})
 21383  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21384  }
 21385  
 21386  // Do executes the "content.collectionstatuses.get" call.
 21387  // Any non-2xx status code is an error. Response headers are in either
 21388  // *CollectionStatus.ServerResponse.Header or (if a response was returned at
 21389  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21390  // check whether the returned error was because http.StatusNotModified was
 21391  // returned.
 21392  func (c *CollectionstatusesGetCall) Do(opts ...googleapi.CallOption) (*CollectionStatus, error) {
 21393  	gensupport.SetOptions(c.urlParams_, opts...)
 21394  	res, err := c.doRequest("json")
 21395  	if res != nil && res.StatusCode == http.StatusNotModified {
 21396  		if res.Body != nil {
 21397  			res.Body.Close()
 21398  		}
 21399  		return nil, gensupport.WrapError(&googleapi.Error{
 21400  			Code:   res.StatusCode,
 21401  			Header: res.Header,
 21402  		})
 21403  	}
 21404  	if err != nil {
 21405  		return nil, err
 21406  	}
 21407  	defer googleapi.CloseBody(res)
 21408  	if err := googleapi.CheckResponse(res); err != nil {
 21409  		return nil, gensupport.WrapError(err)
 21410  	}
 21411  	ret := &CollectionStatus{
 21412  		ServerResponse: googleapi.ServerResponse{
 21413  			Header:         res.Header,
 21414  			HTTPStatusCode: res.StatusCode,
 21415  		},
 21416  	}
 21417  	target := &ret
 21418  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21419  		return nil, err
 21420  	}
 21421  	return ret, nil
 21422  }
 21423  
 21424  type CollectionstatusesListCall struct {
 21425  	s            *APIService
 21426  	merchantId   int64
 21427  	urlParams_   gensupport.URLParams
 21428  	ifNoneMatch_ string
 21429  	ctx_         context.Context
 21430  	header_      http.Header
 21431  }
 21432  
 21433  // List: Lists the statuses of the collections in your Merchant Center account.
 21434  //
 21435  //   - merchantId: The ID of the account that contains the collection. This
 21436  //     account cannot be a multi-client account.
 21437  func (r *CollectionstatusesService) List(merchantId int64) *CollectionstatusesListCall {
 21438  	c := &CollectionstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21439  	c.merchantId = merchantId
 21440  	return c
 21441  }
 21442  
 21443  // PageSize sets the optional parameter "pageSize": The maximum number of
 21444  // collection statuses to return in the response, used for paging. Defaults to
 21445  // 50; values above 1000 will be coerced to 1000.
 21446  func (c *CollectionstatusesListCall) PageSize(pageSize int64) *CollectionstatusesListCall {
 21447  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21448  	return c
 21449  }
 21450  
 21451  // PageToken sets the optional parameter "pageToken": Token (if provided) to
 21452  // retrieve the subsequent page. All other parameters must match the original
 21453  // call that provided the page token.
 21454  func (c *CollectionstatusesListCall) PageToken(pageToken string) *CollectionstatusesListCall {
 21455  	c.urlParams_.Set("pageToken", pageToken)
 21456  	return c
 21457  }
 21458  
 21459  // Fields allows partial responses to be retrieved. See
 21460  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21461  // details.
 21462  func (c *CollectionstatusesListCall) Fields(s ...googleapi.Field) *CollectionstatusesListCall {
 21463  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21464  	return c
 21465  }
 21466  
 21467  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21468  // object's ETag matches the given value. This is useful for getting updates
 21469  // only after the object has changed since the last request.
 21470  func (c *CollectionstatusesListCall) IfNoneMatch(entityTag string) *CollectionstatusesListCall {
 21471  	c.ifNoneMatch_ = entityTag
 21472  	return c
 21473  }
 21474  
 21475  // Context sets the context to be used in this call's Do method.
 21476  func (c *CollectionstatusesListCall) Context(ctx context.Context) *CollectionstatusesListCall {
 21477  	c.ctx_ = ctx
 21478  	return c
 21479  }
 21480  
 21481  // Header returns a http.Header that can be modified by the caller to add
 21482  // headers to the request.
 21483  func (c *CollectionstatusesListCall) Header() http.Header {
 21484  	if c.header_ == nil {
 21485  		c.header_ = make(http.Header)
 21486  	}
 21487  	return c.header_
 21488  }
 21489  
 21490  func (c *CollectionstatusesListCall) doRequest(alt string) (*http.Response, error) {
 21491  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21492  	if c.ifNoneMatch_ != "" {
 21493  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21494  	}
 21495  	var body io.Reader = nil
 21496  	c.urlParams_.Set("alt", alt)
 21497  	c.urlParams_.Set("prettyPrint", "false")
 21498  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/collectionstatuses")
 21499  	urls += "?" + c.urlParams_.Encode()
 21500  	req, err := http.NewRequest("GET", urls, body)
 21501  	if err != nil {
 21502  		return nil, err
 21503  	}
 21504  	req.Header = reqHeaders
 21505  	googleapi.Expand(req.URL, map[string]string{
 21506  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 21507  	})
 21508  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21509  }
 21510  
 21511  // Do executes the "content.collectionstatuses.list" call.
 21512  // Any non-2xx status code is an error. Response headers are in either
 21513  // *ListCollectionStatusesResponse.ServerResponse.Header or (if a response was
 21514  // returned at all) in error.(*googleapi.Error).Header. Use
 21515  // googleapi.IsNotModified to check whether the returned error was because
 21516  // http.StatusNotModified was returned.
 21517  func (c *CollectionstatusesListCall) Do(opts ...googleapi.CallOption) (*ListCollectionStatusesResponse, error) {
 21518  	gensupport.SetOptions(c.urlParams_, opts...)
 21519  	res, err := c.doRequest("json")
 21520  	if res != nil && res.StatusCode == http.StatusNotModified {
 21521  		if res.Body != nil {
 21522  			res.Body.Close()
 21523  		}
 21524  		return nil, gensupport.WrapError(&googleapi.Error{
 21525  			Code:   res.StatusCode,
 21526  			Header: res.Header,
 21527  		})
 21528  	}
 21529  	if err != nil {
 21530  		return nil, err
 21531  	}
 21532  	defer googleapi.CloseBody(res)
 21533  	if err := googleapi.CheckResponse(res); err != nil {
 21534  		return nil, gensupport.WrapError(err)
 21535  	}
 21536  	ret := &ListCollectionStatusesResponse{
 21537  		ServerResponse: googleapi.ServerResponse{
 21538  			Header:         res.Header,
 21539  			HTTPStatusCode: res.StatusCode,
 21540  		},
 21541  	}
 21542  	target := &ret
 21543  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21544  		return nil, err
 21545  	}
 21546  	return ret, nil
 21547  }
 21548  
 21549  // Pages invokes f for each page of results.
 21550  // A non-nil error returned from f will halt the iteration.
 21551  // The provided context supersedes any context provided to the Context method.
 21552  func (c *CollectionstatusesListCall) Pages(ctx context.Context, f func(*ListCollectionStatusesResponse) error) error {
 21553  	c.ctx_ = ctx
 21554  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21555  	for {
 21556  		x, err := c.Do()
 21557  		if err != nil {
 21558  			return err
 21559  		}
 21560  		if err := f(x); err != nil {
 21561  			return err
 21562  		}
 21563  		if x.NextPageToken == "" {
 21564  			return nil
 21565  		}
 21566  		c.PageToken(x.NextPageToken)
 21567  	}
 21568  }
 21569  
 21570  type ConversionsourcesCreateCall struct {
 21571  	s                *APIService
 21572  	merchantId       int64
 21573  	conversionsource *ConversionSource
 21574  	urlParams_       gensupport.URLParams
 21575  	ctx_             context.Context
 21576  	header_          http.Header
 21577  }
 21578  
 21579  // Create: Creates a new conversion source.
 21580  //
 21581  // - merchantId: The ID of the account that owns the new conversion source.
 21582  func (r *ConversionsourcesService) Create(merchantId int64, conversionsource *ConversionSource) *ConversionsourcesCreateCall {
 21583  	c := &ConversionsourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21584  	c.merchantId = merchantId
 21585  	c.conversionsource = conversionsource
 21586  	return c
 21587  }
 21588  
 21589  // Fields allows partial responses to be retrieved. See
 21590  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21591  // details.
 21592  func (c *ConversionsourcesCreateCall) Fields(s ...googleapi.Field) *ConversionsourcesCreateCall {
 21593  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21594  	return c
 21595  }
 21596  
 21597  // Context sets the context to be used in this call's Do method.
 21598  func (c *ConversionsourcesCreateCall) Context(ctx context.Context) *ConversionsourcesCreateCall {
 21599  	c.ctx_ = ctx
 21600  	return c
 21601  }
 21602  
 21603  // Header returns a http.Header that can be modified by the caller to add
 21604  // headers to the request.
 21605  func (c *ConversionsourcesCreateCall) Header() http.Header {
 21606  	if c.header_ == nil {
 21607  		c.header_ = make(http.Header)
 21608  	}
 21609  	return c.header_
 21610  }
 21611  
 21612  func (c *ConversionsourcesCreateCall) doRequest(alt string) (*http.Response, error) {
 21613  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21614  	var body io.Reader = nil
 21615  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsource)
 21616  	if err != nil {
 21617  		return nil, err
 21618  	}
 21619  	c.urlParams_.Set("alt", alt)
 21620  	c.urlParams_.Set("prettyPrint", "false")
 21621  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources")
 21622  	urls += "?" + c.urlParams_.Encode()
 21623  	req, err := http.NewRequest("POST", urls, body)
 21624  	if err != nil {
 21625  		return nil, err
 21626  	}
 21627  	req.Header = reqHeaders
 21628  	googleapi.Expand(req.URL, map[string]string{
 21629  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 21630  	})
 21631  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21632  }
 21633  
 21634  // Do executes the "content.conversionsources.create" call.
 21635  // Any non-2xx status code is an error. Response headers are in either
 21636  // *ConversionSource.ServerResponse.Header or (if a response was returned at
 21637  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21638  // check whether the returned error was because http.StatusNotModified was
 21639  // returned.
 21640  func (c *ConversionsourcesCreateCall) Do(opts ...googleapi.CallOption) (*ConversionSource, error) {
 21641  	gensupport.SetOptions(c.urlParams_, opts...)
 21642  	res, err := c.doRequest("json")
 21643  	if res != nil && res.StatusCode == http.StatusNotModified {
 21644  		if res.Body != nil {
 21645  			res.Body.Close()
 21646  		}
 21647  		return nil, gensupport.WrapError(&googleapi.Error{
 21648  			Code:   res.StatusCode,
 21649  			Header: res.Header,
 21650  		})
 21651  	}
 21652  	if err != nil {
 21653  		return nil, err
 21654  	}
 21655  	defer googleapi.CloseBody(res)
 21656  	if err := googleapi.CheckResponse(res); err != nil {
 21657  		return nil, gensupport.WrapError(err)
 21658  	}
 21659  	ret := &ConversionSource{
 21660  		ServerResponse: googleapi.ServerResponse{
 21661  			Header:         res.Header,
 21662  			HTTPStatusCode: res.StatusCode,
 21663  		},
 21664  	}
 21665  	target := &ret
 21666  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21667  		return nil, err
 21668  	}
 21669  	return ret, nil
 21670  }
 21671  
 21672  type ConversionsourcesDeleteCall struct {
 21673  	s                  *APIService
 21674  	merchantId         int64
 21675  	conversionSourceId string
 21676  	urlParams_         gensupport.URLParams
 21677  	ctx_               context.Context
 21678  	header_            http.Header
 21679  }
 21680  
 21681  // Delete: Archives an existing conversion source. It will be recoverable for
 21682  // 30 days. This archiving behavior is not typical in the Content API and
 21683  // unique to this service.
 21684  //
 21685  // - conversionSourceId: The ID of the conversion source to be deleted.
 21686  // - merchantId: The ID of the account that owns the new conversion source.
 21687  func (r *ConversionsourcesService) Delete(merchantId int64, conversionSourceId string) *ConversionsourcesDeleteCall {
 21688  	c := &ConversionsourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21689  	c.merchantId = merchantId
 21690  	c.conversionSourceId = conversionSourceId
 21691  	return c
 21692  }
 21693  
 21694  // Fields allows partial responses to be retrieved. See
 21695  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21696  // details.
 21697  func (c *ConversionsourcesDeleteCall) Fields(s ...googleapi.Field) *ConversionsourcesDeleteCall {
 21698  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21699  	return c
 21700  }
 21701  
 21702  // Context sets the context to be used in this call's Do method.
 21703  func (c *ConversionsourcesDeleteCall) Context(ctx context.Context) *ConversionsourcesDeleteCall {
 21704  	c.ctx_ = ctx
 21705  	return c
 21706  }
 21707  
 21708  // Header returns a http.Header that can be modified by the caller to add
 21709  // headers to the request.
 21710  func (c *ConversionsourcesDeleteCall) Header() http.Header {
 21711  	if c.header_ == nil {
 21712  		c.header_ = make(http.Header)
 21713  	}
 21714  	return c.header_
 21715  }
 21716  
 21717  func (c *ConversionsourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
 21718  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21719  	var body io.Reader = nil
 21720  	c.urlParams_.Set("alt", alt)
 21721  	c.urlParams_.Set("prettyPrint", "false")
 21722  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}")
 21723  	urls += "?" + c.urlParams_.Encode()
 21724  	req, err := http.NewRequest("DELETE", urls, body)
 21725  	if err != nil {
 21726  		return nil, err
 21727  	}
 21728  	req.Header = reqHeaders
 21729  	googleapi.Expand(req.URL, map[string]string{
 21730  		"merchantId":         strconv.FormatInt(c.merchantId, 10),
 21731  		"conversionSourceId": c.conversionSourceId,
 21732  	})
 21733  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21734  }
 21735  
 21736  // Do executes the "content.conversionsources.delete" call.
 21737  func (c *ConversionsourcesDeleteCall) Do(opts ...googleapi.CallOption) error {
 21738  	gensupport.SetOptions(c.urlParams_, opts...)
 21739  	res, err := c.doRequest("json")
 21740  	if err != nil {
 21741  		return err
 21742  	}
 21743  	defer googleapi.CloseBody(res)
 21744  	if err := googleapi.CheckResponse(res); err != nil {
 21745  		return gensupport.WrapError(err)
 21746  	}
 21747  	return nil
 21748  }
 21749  
 21750  type ConversionsourcesGetCall struct {
 21751  	s                  *APIService
 21752  	merchantId         int64
 21753  	conversionSourceId string
 21754  	urlParams_         gensupport.URLParams
 21755  	ifNoneMatch_       string
 21756  	ctx_               context.Context
 21757  	header_            http.Header
 21758  }
 21759  
 21760  // Get: Fetches a conversion source.
 21761  //
 21762  // - conversionSourceId: The REST ID of the collection.
 21763  // - merchantId: The ID of the account that owns the new conversion source.
 21764  func (r *ConversionsourcesService) Get(merchantId int64, conversionSourceId string) *ConversionsourcesGetCall {
 21765  	c := &ConversionsourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21766  	c.merchantId = merchantId
 21767  	c.conversionSourceId = conversionSourceId
 21768  	return c
 21769  }
 21770  
 21771  // Fields allows partial responses to be retrieved. See
 21772  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21773  // details.
 21774  func (c *ConversionsourcesGetCall) Fields(s ...googleapi.Field) *ConversionsourcesGetCall {
 21775  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21776  	return c
 21777  }
 21778  
 21779  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21780  // object's ETag matches the given value. This is useful for getting updates
 21781  // only after the object has changed since the last request.
 21782  func (c *ConversionsourcesGetCall) IfNoneMatch(entityTag string) *ConversionsourcesGetCall {
 21783  	c.ifNoneMatch_ = entityTag
 21784  	return c
 21785  }
 21786  
 21787  // Context sets the context to be used in this call's Do method.
 21788  func (c *ConversionsourcesGetCall) Context(ctx context.Context) *ConversionsourcesGetCall {
 21789  	c.ctx_ = ctx
 21790  	return c
 21791  }
 21792  
 21793  // Header returns a http.Header that can be modified by the caller to add
 21794  // headers to the request.
 21795  func (c *ConversionsourcesGetCall) Header() http.Header {
 21796  	if c.header_ == nil {
 21797  		c.header_ = make(http.Header)
 21798  	}
 21799  	return c.header_
 21800  }
 21801  
 21802  func (c *ConversionsourcesGetCall) doRequest(alt string) (*http.Response, error) {
 21803  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21804  	if c.ifNoneMatch_ != "" {
 21805  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21806  	}
 21807  	var body io.Reader = nil
 21808  	c.urlParams_.Set("alt", alt)
 21809  	c.urlParams_.Set("prettyPrint", "false")
 21810  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}")
 21811  	urls += "?" + c.urlParams_.Encode()
 21812  	req, err := http.NewRequest("GET", urls, body)
 21813  	if err != nil {
 21814  		return nil, err
 21815  	}
 21816  	req.Header = reqHeaders
 21817  	googleapi.Expand(req.URL, map[string]string{
 21818  		"merchantId":         strconv.FormatInt(c.merchantId, 10),
 21819  		"conversionSourceId": c.conversionSourceId,
 21820  	})
 21821  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21822  }
 21823  
 21824  // Do executes the "content.conversionsources.get" call.
 21825  // Any non-2xx status code is an error. Response headers are in either
 21826  // *ConversionSource.ServerResponse.Header or (if a response was returned at
 21827  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21828  // check whether the returned error was because http.StatusNotModified was
 21829  // returned.
 21830  func (c *ConversionsourcesGetCall) Do(opts ...googleapi.CallOption) (*ConversionSource, error) {
 21831  	gensupport.SetOptions(c.urlParams_, opts...)
 21832  	res, err := c.doRequest("json")
 21833  	if res != nil && res.StatusCode == http.StatusNotModified {
 21834  		if res.Body != nil {
 21835  			res.Body.Close()
 21836  		}
 21837  		return nil, gensupport.WrapError(&googleapi.Error{
 21838  			Code:   res.StatusCode,
 21839  			Header: res.Header,
 21840  		})
 21841  	}
 21842  	if err != nil {
 21843  		return nil, err
 21844  	}
 21845  	defer googleapi.CloseBody(res)
 21846  	if err := googleapi.CheckResponse(res); err != nil {
 21847  		return nil, gensupport.WrapError(err)
 21848  	}
 21849  	ret := &ConversionSource{
 21850  		ServerResponse: googleapi.ServerResponse{
 21851  			Header:         res.Header,
 21852  			HTTPStatusCode: res.StatusCode,
 21853  		},
 21854  	}
 21855  	target := &ret
 21856  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21857  		return nil, err
 21858  	}
 21859  	return ret, nil
 21860  }
 21861  
 21862  type ConversionsourcesListCall struct {
 21863  	s            *APIService
 21864  	merchantId   int64
 21865  	urlParams_   gensupport.URLParams
 21866  	ifNoneMatch_ string
 21867  	ctx_         context.Context
 21868  	header_      http.Header
 21869  }
 21870  
 21871  // List: Retrieves the list of conversion sources the caller has access to.
 21872  //
 21873  // - merchantId: The ID of the account that owns the new conversion source.
 21874  func (r *ConversionsourcesService) List(merchantId int64) *ConversionsourcesListCall {
 21875  	c := &ConversionsourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21876  	c.merchantId = merchantId
 21877  	return c
 21878  }
 21879  
 21880  // PageSize sets the optional parameter "pageSize": The maximum number of
 21881  // conversion sources to return in a page. If no `page_size` is specified,
 21882  // `100` is used as the default value. The maximum value is `200`. Values above
 21883  // `200` will be coerced to `200`. Regardless of pagination, at most `200`
 21884  // conversion sources are returned in total.
 21885  func (c *ConversionsourcesListCall) PageSize(pageSize int64) *ConversionsourcesListCall {
 21886  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21887  	return c
 21888  }
 21889  
 21890  // PageToken sets the optional parameter "pageToken": Page token.
 21891  func (c *ConversionsourcesListCall) PageToken(pageToken string) *ConversionsourcesListCall {
 21892  	c.urlParams_.Set("pageToken", pageToken)
 21893  	return c
 21894  }
 21895  
 21896  // ShowDeleted sets the optional parameter "showDeleted": If true, also returns
 21897  // archived conversion sources.
 21898  func (c *ConversionsourcesListCall) ShowDeleted(showDeleted bool) *ConversionsourcesListCall {
 21899  	c.urlParams_.Set("showDeleted", fmt.Sprint(showDeleted))
 21900  	return c
 21901  }
 21902  
 21903  // Fields allows partial responses to be retrieved. See
 21904  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21905  // details.
 21906  func (c *ConversionsourcesListCall) Fields(s ...googleapi.Field) *ConversionsourcesListCall {
 21907  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21908  	return c
 21909  }
 21910  
 21911  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21912  // object's ETag matches the given value. This is useful for getting updates
 21913  // only after the object has changed since the last request.
 21914  func (c *ConversionsourcesListCall) IfNoneMatch(entityTag string) *ConversionsourcesListCall {
 21915  	c.ifNoneMatch_ = entityTag
 21916  	return c
 21917  }
 21918  
 21919  // Context sets the context to be used in this call's Do method.
 21920  func (c *ConversionsourcesListCall) Context(ctx context.Context) *ConversionsourcesListCall {
 21921  	c.ctx_ = ctx
 21922  	return c
 21923  }
 21924  
 21925  // Header returns a http.Header that can be modified by the caller to add
 21926  // headers to the request.
 21927  func (c *ConversionsourcesListCall) Header() http.Header {
 21928  	if c.header_ == nil {
 21929  		c.header_ = make(http.Header)
 21930  	}
 21931  	return c.header_
 21932  }
 21933  
 21934  func (c *ConversionsourcesListCall) doRequest(alt string) (*http.Response, error) {
 21935  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21936  	if c.ifNoneMatch_ != "" {
 21937  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21938  	}
 21939  	var body io.Reader = nil
 21940  	c.urlParams_.Set("alt", alt)
 21941  	c.urlParams_.Set("prettyPrint", "false")
 21942  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources")
 21943  	urls += "?" + c.urlParams_.Encode()
 21944  	req, err := http.NewRequest("GET", urls, body)
 21945  	if err != nil {
 21946  		return nil, err
 21947  	}
 21948  	req.Header = reqHeaders
 21949  	googleapi.Expand(req.URL, map[string]string{
 21950  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 21951  	})
 21952  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21953  }
 21954  
 21955  // Do executes the "content.conversionsources.list" call.
 21956  // Any non-2xx status code is an error. Response headers are in either
 21957  // *ListConversionSourcesResponse.ServerResponse.Header or (if a response was
 21958  // returned at all) in error.(*googleapi.Error).Header. Use
 21959  // googleapi.IsNotModified to check whether the returned error was because
 21960  // http.StatusNotModified was returned.
 21961  func (c *ConversionsourcesListCall) Do(opts ...googleapi.CallOption) (*ListConversionSourcesResponse, error) {
 21962  	gensupport.SetOptions(c.urlParams_, opts...)
 21963  	res, err := c.doRequest("json")
 21964  	if res != nil && res.StatusCode == http.StatusNotModified {
 21965  		if res.Body != nil {
 21966  			res.Body.Close()
 21967  		}
 21968  		return nil, gensupport.WrapError(&googleapi.Error{
 21969  			Code:   res.StatusCode,
 21970  			Header: res.Header,
 21971  		})
 21972  	}
 21973  	if err != nil {
 21974  		return nil, err
 21975  	}
 21976  	defer googleapi.CloseBody(res)
 21977  	if err := googleapi.CheckResponse(res); err != nil {
 21978  		return nil, gensupport.WrapError(err)
 21979  	}
 21980  	ret := &ListConversionSourcesResponse{
 21981  		ServerResponse: googleapi.ServerResponse{
 21982  			Header:         res.Header,
 21983  			HTTPStatusCode: res.StatusCode,
 21984  		},
 21985  	}
 21986  	target := &ret
 21987  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21988  		return nil, err
 21989  	}
 21990  	return ret, nil
 21991  }
 21992  
 21993  // Pages invokes f for each page of results.
 21994  // A non-nil error returned from f will halt the iteration.
 21995  // The provided context supersedes any context provided to the Context method.
 21996  func (c *ConversionsourcesListCall) Pages(ctx context.Context, f func(*ListConversionSourcesResponse) error) error {
 21997  	c.ctx_ = ctx
 21998  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21999  	for {
 22000  		x, err := c.Do()
 22001  		if err != nil {
 22002  			return err
 22003  		}
 22004  		if err := f(x); err != nil {
 22005  			return err
 22006  		}
 22007  		if x.NextPageToken == "" {
 22008  			return nil
 22009  		}
 22010  		c.PageToken(x.NextPageToken)
 22011  	}
 22012  }
 22013  
 22014  type ConversionsourcesPatchCall struct {
 22015  	s                  *APIService
 22016  	merchantId         int64
 22017  	conversionSourceId string
 22018  	conversionsource   *ConversionSource
 22019  	urlParams_         gensupport.URLParams
 22020  	ctx_               context.Context
 22021  	header_            http.Header
 22022  }
 22023  
 22024  // Patch: Updates information of an existing conversion source.
 22025  //
 22026  // - conversionSourceId: The ID of the conversion source to be updated.
 22027  // - merchantId: The ID of the account that owns the new conversion source.
 22028  func (r *ConversionsourcesService) Patch(merchantId int64, conversionSourceId string, conversionsource *ConversionSource) *ConversionsourcesPatchCall {
 22029  	c := &ConversionsourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22030  	c.merchantId = merchantId
 22031  	c.conversionSourceId = conversionSourceId
 22032  	c.conversionsource = conversionsource
 22033  	return c
 22034  }
 22035  
 22036  // UpdateMask sets the optional parameter "updateMask": Required. List of
 22037  // fields being updated.
 22038  func (c *ConversionsourcesPatchCall) UpdateMask(updateMask string) *ConversionsourcesPatchCall {
 22039  	c.urlParams_.Set("updateMask", updateMask)
 22040  	return c
 22041  }
 22042  
 22043  // Fields allows partial responses to be retrieved. See
 22044  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22045  // details.
 22046  func (c *ConversionsourcesPatchCall) Fields(s ...googleapi.Field) *ConversionsourcesPatchCall {
 22047  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22048  	return c
 22049  }
 22050  
 22051  // Context sets the context to be used in this call's Do method.
 22052  func (c *ConversionsourcesPatchCall) Context(ctx context.Context) *ConversionsourcesPatchCall {
 22053  	c.ctx_ = ctx
 22054  	return c
 22055  }
 22056  
 22057  // Header returns a http.Header that can be modified by the caller to add
 22058  // headers to the request.
 22059  func (c *ConversionsourcesPatchCall) Header() http.Header {
 22060  	if c.header_ == nil {
 22061  		c.header_ = make(http.Header)
 22062  	}
 22063  	return c.header_
 22064  }
 22065  
 22066  func (c *ConversionsourcesPatchCall) doRequest(alt string) (*http.Response, error) {
 22067  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22068  	var body io.Reader = nil
 22069  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.conversionsource)
 22070  	if err != nil {
 22071  		return nil, err
 22072  	}
 22073  	c.urlParams_.Set("alt", alt)
 22074  	c.urlParams_.Set("prettyPrint", "false")
 22075  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}")
 22076  	urls += "?" + c.urlParams_.Encode()
 22077  	req, err := http.NewRequest("PATCH", urls, body)
 22078  	if err != nil {
 22079  		return nil, err
 22080  	}
 22081  	req.Header = reqHeaders
 22082  	googleapi.Expand(req.URL, map[string]string{
 22083  		"merchantId":         strconv.FormatInt(c.merchantId, 10),
 22084  		"conversionSourceId": c.conversionSourceId,
 22085  	})
 22086  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22087  }
 22088  
 22089  // Do executes the "content.conversionsources.patch" call.
 22090  // Any non-2xx status code is an error. Response headers are in either
 22091  // *ConversionSource.ServerResponse.Header or (if a response was returned at
 22092  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22093  // check whether the returned error was because http.StatusNotModified was
 22094  // returned.
 22095  func (c *ConversionsourcesPatchCall) Do(opts ...googleapi.CallOption) (*ConversionSource, error) {
 22096  	gensupport.SetOptions(c.urlParams_, opts...)
 22097  	res, err := c.doRequest("json")
 22098  	if res != nil && res.StatusCode == http.StatusNotModified {
 22099  		if res.Body != nil {
 22100  			res.Body.Close()
 22101  		}
 22102  		return nil, gensupport.WrapError(&googleapi.Error{
 22103  			Code:   res.StatusCode,
 22104  			Header: res.Header,
 22105  		})
 22106  	}
 22107  	if err != nil {
 22108  		return nil, err
 22109  	}
 22110  	defer googleapi.CloseBody(res)
 22111  	if err := googleapi.CheckResponse(res); err != nil {
 22112  		return nil, gensupport.WrapError(err)
 22113  	}
 22114  	ret := &ConversionSource{
 22115  		ServerResponse: googleapi.ServerResponse{
 22116  			Header:         res.Header,
 22117  			HTTPStatusCode: res.StatusCode,
 22118  		},
 22119  	}
 22120  	target := &ret
 22121  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22122  		return nil, err
 22123  	}
 22124  	return ret, nil
 22125  }
 22126  
 22127  type ConversionsourcesUndeleteCall struct {
 22128  	s                               *APIService
 22129  	merchantId                      int64
 22130  	conversionSourceId              string
 22131  	undeleteconversionsourcerequest *UndeleteConversionSourceRequest
 22132  	urlParams_                      gensupport.URLParams
 22133  	ctx_                            context.Context
 22134  	header_                         http.Header
 22135  }
 22136  
 22137  // Undelete: Re-enables an archived conversion source.
 22138  //
 22139  // - conversionSourceId: The ID of the conversion source to be undeleted.
 22140  // - merchantId: The ID of the account that owns the new conversion source.
 22141  func (r *ConversionsourcesService) Undelete(merchantId int64, conversionSourceId string, undeleteconversionsourcerequest *UndeleteConversionSourceRequest) *ConversionsourcesUndeleteCall {
 22142  	c := &ConversionsourcesUndeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22143  	c.merchantId = merchantId
 22144  	c.conversionSourceId = conversionSourceId
 22145  	c.undeleteconversionsourcerequest = undeleteconversionsourcerequest
 22146  	return c
 22147  }
 22148  
 22149  // Fields allows partial responses to be retrieved. See
 22150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22151  // details.
 22152  func (c *ConversionsourcesUndeleteCall) Fields(s ...googleapi.Field) *ConversionsourcesUndeleteCall {
 22153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22154  	return c
 22155  }
 22156  
 22157  // Context sets the context to be used in this call's Do method.
 22158  func (c *ConversionsourcesUndeleteCall) Context(ctx context.Context) *ConversionsourcesUndeleteCall {
 22159  	c.ctx_ = ctx
 22160  	return c
 22161  }
 22162  
 22163  // Header returns a http.Header that can be modified by the caller to add
 22164  // headers to the request.
 22165  func (c *ConversionsourcesUndeleteCall) Header() http.Header {
 22166  	if c.header_ == nil {
 22167  		c.header_ = make(http.Header)
 22168  	}
 22169  	return c.header_
 22170  }
 22171  
 22172  func (c *ConversionsourcesUndeleteCall) doRequest(alt string) (*http.Response, error) {
 22173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22174  	var body io.Reader = nil
 22175  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.undeleteconversionsourcerequest)
 22176  	if err != nil {
 22177  		return nil, err
 22178  	}
 22179  	c.urlParams_.Set("alt", alt)
 22180  	c.urlParams_.Set("prettyPrint", "false")
 22181  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/conversionsources/{conversionSourceId}:undelete")
 22182  	urls += "?" + c.urlParams_.Encode()
 22183  	req, err := http.NewRequest("POST", urls, body)
 22184  	if err != nil {
 22185  		return nil, err
 22186  	}
 22187  	req.Header = reqHeaders
 22188  	googleapi.Expand(req.URL, map[string]string{
 22189  		"merchantId":         strconv.FormatInt(c.merchantId, 10),
 22190  		"conversionSourceId": c.conversionSourceId,
 22191  	})
 22192  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22193  }
 22194  
 22195  // Do executes the "content.conversionsources.undelete" call.
 22196  func (c *ConversionsourcesUndeleteCall) Do(opts ...googleapi.CallOption) error {
 22197  	gensupport.SetOptions(c.urlParams_, opts...)
 22198  	res, err := c.doRequest("json")
 22199  	if err != nil {
 22200  		return err
 22201  	}
 22202  	defer googleapi.CloseBody(res)
 22203  	if err := googleapi.CheckResponse(res); err != nil {
 22204  		return gensupport.WrapError(err)
 22205  	}
 22206  	return nil
 22207  }
 22208  
 22209  type CssesGetCall struct {
 22210  	s            *APIService
 22211  	cssGroupId   int64
 22212  	cssDomainId  int64
 22213  	urlParams_   gensupport.URLParams
 22214  	ifNoneMatch_ string
 22215  	ctx_         context.Context
 22216  	header_      http.Header
 22217  }
 22218  
 22219  // Get: Retrieves a single CSS domain by ID.
 22220  //
 22221  //   - cssDomainId: The ID of the CSS domain to return.
 22222  //   - cssGroupId: The ID of the managing account. If this parameter is not the
 22223  //     same as cssDomainId (#cssDomainId), then this ID must be a CSS group ID
 22224  //     and `cssDomainId` must be the ID of a CSS domain affiliated with this
 22225  //     group.
 22226  func (r *CssesService) Get(cssGroupId int64, cssDomainId int64) *CssesGetCall {
 22227  	c := &CssesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22228  	c.cssGroupId = cssGroupId
 22229  	c.cssDomainId = cssDomainId
 22230  	return c
 22231  }
 22232  
 22233  // Fields allows partial responses to be retrieved. See
 22234  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22235  // details.
 22236  func (c *CssesGetCall) Fields(s ...googleapi.Field) *CssesGetCall {
 22237  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22238  	return c
 22239  }
 22240  
 22241  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22242  // object's ETag matches the given value. This is useful for getting updates
 22243  // only after the object has changed since the last request.
 22244  func (c *CssesGetCall) IfNoneMatch(entityTag string) *CssesGetCall {
 22245  	c.ifNoneMatch_ = entityTag
 22246  	return c
 22247  }
 22248  
 22249  // Context sets the context to be used in this call's Do method.
 22250  func (c *CssesGetCall) Context(ctx context.Context) *CssesGetCall {
 22251  	c.ctx_ = ctx
 22252  	return c
 22253  }
 22254  
 22255  // Header returns a http.Header that can be modified by the caller to add
 22256  // headers to the request.
 22257  func (c *CssesGetCall) Header() http.Header {
 22258  	if c.header_ == nil {
 22259  		c.header_ = make(http.Header)
 22260  	}
 22261  	return c.header_
 22262  }
 22263  
 22264  func (c *CssesGetCall) doRequest(alt string) (*http.Response, error) {
 22265  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22266  	if c.ifNoneMatch_ != "" {
 22267  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22268  	}
 22269  	var body io.Reader = nil
 22270  	c.urlParams_.Set("alt", alt)
 22271  	c.urlParams_.Set("prettyPrint", "false")
 22272  	urls := googleapi.ResolveRelative(c.s.BasePath, "{cssGroupId}/csses/{cssDomainId}")
 22273  	urls += "?" + c.urlParams_.Encode()
 22274  	req, err := http.NewRequest("GET", urls, body)
 22275  	if err != nil {
 22276  		return nil, err
 22277  	}
 22278  	req.Header = reqHeaders
 22279  	googleapi.Expand(req.URL, map[string]string{
 22280  		"cssGroupId":  strconv.FormatInt(c.cssGroupId, 10),
 22281  		"cssDomainId": strconv.FormatInt(c.cssDomainId, 10),
 22282  	})
 22283  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22284  }
 22285  
 22286  // Do executes the "content.csses.get" call.
 22287  // Any non-2xx status code is an error. Response headers are in either
 22288  // *Css.ServerResponse.Header or (if a response was returned at all) in
 22289  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22290  // whether the returned error was because http.StatusNotModified was returned.
 22291  func (c *CssesGetCall) Do(opts ...googleapi.CallOption) (*Css, error) {
 22292  	gensupport.SetOptions(c.urlParams_, opts...)
 22293  	res, err := c.doRequest("json")
 22294  	if res != nil && res.StatusCode == http.StatusNotModified {
 22295  		if res.Body != nil {
 22296  			res.Body.Close()
 22297  		}
 22298  		return nil, gensupport.WrapError(&googleapi.Error{
 22299  			Code:   res.StatusCode,
 22300  			Header: res.Header,
 22301  		})
 22302  	}
 22303  	if err != nil {
 22304  		return nil, err
 22305  	}
 22306  	defer googleapi.CloseBody(res)
 22307  	if err := googleapi.CheckResponse(res); err != nil {
 22308  		return nil, gensupport.WrapError(err)
 22309  	}
 22310  	ret := &Css{
 22311  		ServerResponse: googleapi.ServerResponse{
 22312  			Header:         res.Header,
 22313  			HTTPStatusCode: res.StatusCode,
 22314  		},
 22315  	}
 22316  	target := &ret
 22317  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22318  		return nil, err
 22319  	}
 22320  	return ret, nil
 22321  }
 22322  
 22323  type CssesListCall struct {
 22324  	s            *APIService
 22325  	cssGroupId   int64
 22326  	urlParams_   gensupport.URLParams
 22327  	ifNoneMatch_ string
 22328  	ctx_         context.Context
 22329  	header_      http.Header
 22330  }
 22331  
 22332  // List: Lists CSS domains affiliated with a CSS group.
 22333  //
 22334  // - cssGroupId: The CSS group ID of CSS domains to be listed.
 22335  func (r *CssesService) List(cssGroupId int64) *CssesListCall {
 22336  	c := &CssesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22337  	c.cssGroupId = cssGroupId
 22338  	return c
 22339  }
 22340  
 22341  // PageSize sets the optional parameter "pageSize": The maximum number of CSS
 22342  // domains to return. The service may return fewer than this value. If
 22343  // unspecified, at most 50 CSS domains will be returned. The maximum value is
 22344  // 1000; values above 1000 will be coerced to 1000.
 22345  func (c *CssesListCall) PageSize(pageSize int64) *CssesListCall {
 22346  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22347  	return c
 22348  }
 22349  
 22350  // PageToken sets the optional parameter "pageToken": A page token, received
 22351  // from a previous `ListCsses` call. Provide this to retrieve the subsequent
 22352  // page. When paginating, all other parameters provided to `ListCsses` must
 22353  // match the call that provided the page token.
 22354  func (c *CssesListCall) PageToken(pageToken string) *CssesListCall {
 22355  	c.urlParams_.Set("pageToken", pageToken)
 22356  	return c
 22357  }
 22358  
 22359  // Fields allows partial responses to be retrieved. See
 22360  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22361  // details.
 22362  func (c *CssesListCall) Fields(s ...googleapi.Field) *CssesListCall {
 22363  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22364  	return c
 22365  }
 22366  
 22367  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22368  // object's ETag matches the given value. This is useful for getting updates
 22369  // only after the object has changed since the last request.
 22370  func (c *CssesListCall) IfNoneMatch(entityTag string) *CssesListCall {
 22371  	c.ifNoneMatch_ = entityTag
 22372  	return c
 22373  }
 22374  
 22375  // Context sets the context to be used in this call's Do method.
 22376  func (c *CssesListCall) Context(ctx context.Context) *CssesListCall {
 22377  	c.ctx_ = ctx
 22378  	return c
 22379  }
 22380  
 22381  // Header returns a http.Header that can be modified by the caller to add
 22382  // headers to the request.
 22383  func (c *CssesListCall) Header() http.Header {
 22384  	if c.header_ == nil {
 22385  		c.header_ = make(http.Header)
 22386  	}
 22387  	return c.header_
 22388  }
 22389  
 22390  func (c *CssesListCall) doRequest(alt string) (*http.Response, error) {
 22391  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22392  	if c.ifNoneMatch_ != "" {
 22393  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22394  	}
 22395  	var body io.Reader = nil
 22396  	c.urlParams_.Set("alt", alt)
 22397  	c.urlParams_.Set("prettyPrint", "false")
 22398  	urls := googleapi.ResolveRelative(c.s.BasePath, "{cssGroupId}/csses")
 22399  	urls += "?" + c.urlParams_.Encode()
 22400  	req, err := http.NewRequest("GET", urls, body)
 22401  	if err != nil {
 22402  		return nil, err
 22403  	}
 22404  	req.Header = reqHeaders
 22405  	googleapi.Expand(req.URL, map[string]string{
 22406  		"cssGroupId": strconv.FormatInt(c.cssGroupId, 10),
 22407  	})
 22408  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22409  }
 22410  
 22411  // Do executes the "content.csses.list" call.
 22412  // Any non-2xx status code is an error. Response headers are in either
 22413  // *ListCssesResponse.ServerResponse.Header or (if a response was returned at
 22414  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 22415  // check whether the returned error was because http.StatusNotModified was
 22416  // returned.
 22417  func (c *CssesListCall) Do(opts ...googleapi.CallOption) (*ListCssesResponse, error) {
 22418  	gensupport.SetOptions(c.urlParams_, opts...)
 22419  	res, err := c.doRequest("json")
 22420  	if res != nil && res.StatusCode == http.StatusNotModified {
 22421  		if res.Body != nil {
 22422  			res.Body.Close()
 22423  		}
 22424  		return nil, gensupport.WrapError(&googleapi.Error{
 22425  			Code:   res.StatusCode,
 22426  			Header: res.Header,
 22427  		})
 22428  	}
 22429  	if err != nil {
 22430  		return nil, err
 22431  	}
 22432  	defer googleapi.CloseBody(res)
 22433  	if err := googleapi.CheckResponse(res); err != nil {
 22434  		return nil, gensupport.WrapError(err)
 22435  	}
 22436  	ret := &ListCssesResponse{
 22437  		ServerResponse: googleapi.ServerResponse{
 22438  			Header:         res.Header,
 22439  			HTTPStatusCode: res.StatusCode,
 22440  		},
 22441  	}
 22442  	target := &ret
 22443  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22444  		return nil, err
 22445  	}
 22446  	return ret, nil
 22447  }
 22448  
 22449  // Pages invokes f for each page of results.
 22450  // A non-nil error returned from f will halt the iteration.
 22451  // The provided context supersedes any context provided to the Context method.
 22452  func (c *CssesListCall) Pages(ctx context.Context, f func(*ListCssesResponse) error) error {
 22453  	c.ctx_ = ctx
 22454  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22455  	for {
 22456  		x, err := c.Do()
 22457  		if err != nil {
 22458  			return err
 22459  		}
 22460  		if err := f(x); err != nil {
 22461  			return err
 22462  		}
 22463  		if x.NextPageToken == "" {
 22464  			return nil
 22465  		}
 22466  		c.PageToken(x.NextPageToken)
 22467  	}
 22468  }
 22469  
 22470  type CssesUpdatelabelsCall struct {
 22471  	s           *APIService
 22472  	cssGroupId  int64
 22473  	cssDomainId int64
 22474  	labelids    *LabelIds
 22475  	urlParams_  gensupport.URLParams
 22476  	ctx_        context.Context
 22477  	header_     http.Header
 22478  }
 22479  
 22480  // Updatelabels: Updates labels that are assigned to a CSS domain by its CSS
 22481  // group.
 22482  //
 22483  // - cssDomainId: The ID of the updated CSS domain.
 22484  // - cssGroupId: The CSS group ID of the updated CSS domain.
 22485  func (r *CssesService) Updatelabels(cssGroupId int64, cssDomainId int64, labelids *LabelIds) *CssesUpdatelabelsCall {
 22486  	c := &CssesUpdatelabelsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22487  	c.cssGroupId = cssGroupId
 22488  	c.cssDomainId = cssDomainId
 22489  	c.labelids = labelids
 22490  	return c
 22491  }
 22492  
 22493  // Fields allows partial responses to be retrieved. See
 22494  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22495  // details.
 22496  func (c *CssesUpdatelabelsCall) Fields(s ...googleapi.Field) *CssesUpdatelabelsCall {
 22497  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22498  	return c
 22499  }
 22500  
 22501  // Context sets the context to be used in this call's Do method.
 22502  func (c *CssesUpdatelabelsCall) Context(ctx context.Context) *CssesUpdatelabelsCall {
 22503  	c.ctx_ = ctx
 22504  	return c
 22505  }
 22506  
 22507  // Header returns a http.Header that can be modified by the caller to add
 22508  // headers to the request.
 22509  func (c *CssesUpdatelabelsCall) Header() http.Header {
 22510  	if c.header_ == nil {
 22511  		c.header_ = make(http.Header)
 22512  	}
 22513  	return c.header_
 22514  }
 22515  
 22516  func (c *CssesUpdatelabelsCall) doRequest(alt string) (*http.Response, error) {
 22517  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22518  	var body io.Reader = nil
 22519  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.labelids)
 22520  	if err != nil {
 22521  		return nil, err
 22522  	}
 22523  	c.urlParams_.Set("alt", alt)
 22524  	c.urlParams_.Set("prettyPrint", "false")
 22525  	urls := googleapi.ResolveRelative(c.s.BasePath, "{cssGroupId}/csses/{cssDomainId}/updatelabels")
 22526  	urls += "?" + c.urlParams_.Encode()
 22527  	req, err := http.NewRequest("POST", urls, body)
 22528  	if err != nil {
 22529  		return nil, err
 22530  	}
 22531  	req.Header = reqHeaders
 22532  	googleapi.Expand(req.URL, map[string]string{
 22533  		"cssGroupId":  strconv.FormatInt(c.cssGroupId, 10),
 22534  		"cssDomainId": strconv.FormatInt(c.cssDomainId, 10),
 22535  	})
 22536  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22537  }
 22538  
 22539  // Do executes the "content.csses.updatelabels" call.
 22540  // Any non-2xx status code is an error. Response headers are in either
 22541  // *Css.ServerResponse.Header or (if a response was returned at all) in
 22542  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22543  // whether the returned error was because http.StatusNotModified was returned.
 22544  func (c *CssesUpdatelabelsCall) Do(opts ...googleapi.CallOption) (*Css, error) {
 22545  	gensupport.SetOptions(c.urlParams_, opts...)
 22546  	res, err := c.doRequest("json")
 22547  	if res != nil && res.StatusCode == http.StatusNotModified {
 22548  		if res.Body != nil {
 22549  			res.Body.Close()
 22550  		}
 22551  		return nil, gensupport.WrapError(&googleapi.Error{
 22552  			Code:   res.StatusCode,
 22553  			Header: res.Header,
 22554  		})
 22555  	}
 22556  	if err != nil {
 22557  		return nil, err
 22558  	}
 22559  	defer googleapi.CloseBody(res)
 22560  	if err := googleapi.CheckResponse(res); err != nil {
 22561  		return nil, gensupport.WrapError(err)
 22562  	}
 22563  	ret := &Css{
 22564  		ServerResponse: googleapi.ServerResponse{
 22565  			Header:         res.Header,
 22566  			HTTPStatusCode: res.StatusCode,
 22567  		},
 22568  	}
 22569  	target := &ret
 22570  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22571  		return nil, err
 22572  	}
 22573  	return ret, nil
 22574  }
 22575  
 22576  type DatafeedsCustombatchCall struct {
 22577  	s                           *APIService
 22578  	datafeedscustombatchrequest *DatafeedsCustomBatchRequest
 22579  	urlParams_                  gensupport.URLParams
 22580  	ctx_                        context.Context
 22581  	header_                     http.Header
 22582  }
 22583  
 22584  // Custombatch: Deletes, fetches, gets, inserts and updates multiple datafeeds
 22585  // in a single request.
 22586  func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall {
 22587  	c := &DatafeedsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22588  	c.datafeedscustombatchrequest = datafeedscustombatchrequest
 22589  	return c
 22590  }
 22591  
 22592  // Fields allows partial responses to be retrieved. See
 22593  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22594  // details.
 22595  func (c *DatafeedsCustombatchCall) Fields(s ...googleapi.Field) *DatafeedsCustombatchCall {
 22596  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22597  	return c
 22598  }
 22599  
 22600  // Context sets the context to be used in this call's Do method.
 22601  func (c *DatafeedsCustombatchCall) Context(ctx context.Context) *DatafeedsCustombatchCall {
 22602  	c.ctx_ = ctx
 22603  	return c
 22604  }
 22605  
 22606  // Header returns a http.Header that can be modified by the caller to add
 22607  // headers to the request.
 22608  func (c *DatafeedsCustombatchCall) Header() http.Header {
 22609  	if c.header_ == nil {
 22610  		c.header_ = make(http.Header)
 22611  	}
 22612  	return c.header_
 22613  }
 22614  
 22615  func (c *DatafeedsCustombatchCall) doRequest(alt string) (*http.Response, error) {
 22616  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22617  	var body io.Reader = nil
 22618  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeedscustombatchrequest)
 22619  	if err != nil {
 22620  		return nil, err
 22621  	}
 22622  	c.urlParams_.Set("alt", alt)
 22623  	c.urlParams_.Set("prettyPrint", "false")
 22624  	urls := googleapi.ResolveRelative(c.s.BasePath, "datafeeds/batch")
 22625  	urls += "?" + c.urlParams_.Encode()
 22626  	req, err := http.NewRequest("POST", urls, body)
 22627  	if err != nil {
 22628  		return nil, err
 22629  	}
 22630  	req.Header = reqHeaders
 22631  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22632  }
 22633  
 22634  // Do executes the "content.datafeeds.custombatch" call.
 22635  // Any non-2xx status code is an error. Response headers are in either
 22636  // *DatafeedsCustomBatchResponse.ServerResponse.Header or (if a response was
 22637  // returned at all) in error.(*googleapi.Error).Header. Use
 22638  // googleapi.IsNotModified to check whether the returned error was because
 22639  // http.StatusNotModified was returned.
 22640  func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsCustomBatchResponse, error) {
 22641  	gensupport.SetOptions(c.urlParams_, opts...)
 22642  	res, err := c.doRequest("json")
 22643  	if res != nil && res.StatusCode == http.StatusNotModified {
 22644  		if res.Body != nil {
 22645  			res.Body.Close()
 22646  		}
 22647  		return nil, gensupport.WrapError(&googleapi.Error{
 22648  			Code:   res.StatusCode,
 22649  			Header: res.Header,
 22650  		})
 22651  	}
 22652  	if err != nil {
 22653  		return nil, err
 22654  	}
 22655  	defer googleapi.CloseBody(res)
 22656  	if err := googleapi.CheckResponse(res); err != nil {
 22657  		return nil, gensupport.WrapError(err)
 22658  	}
 22659  	ret := &DatafeedsCustomBatchResponse{
 22660  		ServerResponse: googleapi.ServerResponse{
 22661  			Header:         res.Header,
 22662  			HTTPStatusCode: res.StatusCode,
 22663  		},
 22664  	}
 22665  	target := &ret
 22666  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22667  		return nil, err
 22668  	}
 22669  	return ret, nil
 22670  }
 22671  
 22672  type DatafeedsDeleteCall struct {
 22673  	s          *APIService
 22674  	merchantId uint64
 22675  	datafeedId uint64
 22676  	urlParams_ gensupport.URLParams
 22677  	ctx_       context.Context
 22678  	header_    http.Header
 22679  }
 22680  
 22681  // Delete: Deletes a datafeed configuration from your Merchant Center account.
 22682  //
 22683  //   - datafeedId: The ID of the datafeed.
 22684  //   - merchantId: The ID of the account that manages the datafeed. This account
 22685  //     cannot be a multi-client account.
 22686  func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall {
 22687  	c := &DatafeedsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22688  	c.merchantId = merchantId
 22689  	c.datafeedId = datafeedId
 22690  	return c
 22691  }
 22692  
 22693  // Fields allows partial responses to be retrieved. See
 22694  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22695  // details.
 22696  func (c *DatafeedsDeleteCall) Fields(s ...googleapi.Field) *DatafeedsDeleteCall {
 22697  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22698  	return c
 22699  }
 22700  
 22701  // Context sets the context to be used in this call's Do method.
 22702  func (c *DatafeedsDeleteCall) Context(ctx context.Context) *DatafeedsDeleteCall {
 22703  	c.ctx_ = ctx
 22704  	return c
 22705  }
 22706  
 22707  // Header returns a http.Header that can be modified by the caller to add
 22708  // headers to the request.
 22709  func (c *DatafeedsDeleteCall) Header() http.Header {
 22710  	if c.header_ == nil {
 22711  		c.header_ = make(http.Header)
 22712  	}
 22713  	return c.header_
 22714  }
 22715  
 22716  func (c *DatafeedsDeleteCall) doRequest(alt string) (*http.Response, error) {
 22717  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22718  	var body io.Reader = nil
 22719  	c.urlParams_.Set("alt", alt)
 22720  	c.urlParams_.Set("prettyPrint", "false")
 22721  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}")
 22722  	urls += "?" + c.urlParams_.Encode()
 22723  	req, err := http.NewRequest("DELETE", urls, body)
 22724  	if err != nil {
 22725  		return nil, err
 22726  	}
 22727  	req.Header = reqHeaders
 22728  	googleapi.Expand(req.URL, map[string]string{
 22729  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 22730  		"datafeedId": strconv.FormatUint(c.datafeedId, 10),
 22731  	})
 22732  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22733  }
 22734  
 22735  // Do executes the "content.datafeeds.delete" call.
 22736  func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error {
 22737  	gensupport.SetOptions(c.urlParams_, opts...)
 22738  	res, err := c.doRequest("json")
 22739  	if err != nil {
 22740  		return err
 22741  	}
 22742  	defer googleapi.CloseBody(res)
 22743  	if err := googleapi.CheckResponse(res); err != nil {
 22744  		return gensupport.WrapError(err)
 22745  	}
 22746  	return nil
 22747  }
 22748  
 22749  type DatafeedsFetchnowCall struct {
 22750  	s          *APIService
 22751  	merchantId uint64
 22752  	datafeedId uint64
 22753  	urlParams_ gensupport.URLParams
 22754  	ctx_       context.Context
 22755  	header_    http.Header
 22756  }
 22757  
 22758  // Fetchnow: Invokes a fetch for the datafeed in your Merchant Center account.
 22759  // If you need to call this method more than once per day, we recommend you use
 22760  // the Products service
 22761  // (https://developers.google.com/shopping-content/reference/rest/v2.1/products)
 22762  // to update your product data.
 22763  //
 22764  //   - datafeedId: The ID of the datafeed to be fetched.
 22765  //   - merchantId: The ID of the account that manages the datafeed. This account
 22766  //     cannot be a multi-client account.
 22767  func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall {
 22768  	c := &DatafeedsFetchnowCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22769  	c.merchantId = merchantId
 22770  	c.datafeedId = datafeedId
 22771  	return c
 22772  }
 22773  
 22774  // Fields allows partial responses to be retrieved. See
 22775  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22776  // details.
 22777  func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall {
 22778  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22779  	return c
 22780  }
 22781  
 22782  // Context sets the context to be used in this call's Do method.
 22783  func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall {
 22784  	c.ctx_ = ctx
 22785  	return c
 22786  }
 22787  
 22788  // Header returns a http.Header that can be modified by the caller to add
 22789  // headers to the request.
 22790  func (c *DatafeedsFetchnowCall) Header() http.Header {
 22791  	if c.header_ == nil {
 22792  		c.header_ = make(http.Header)
 22793  	}
 22794  	return c.header_
 22795  }
 22796  
 22797  func (c *DatafeedsFetchnowCall) doRequest(alt string) (*http.Response, error) {
 22798  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22799  	var body io.Reader = nil
 22800  	c.urlParams_.Set("alt", alt)
 22801  	c.urlParams_.Set("prettyPrint", "false")
 22802  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}/fetchNow")
 22803  	urls += "?" + c.urlParams_.Encode()
 22804  	req, err := http.NewRequest("POST", urls, body)
 22805  	if err != nil {
 22806  		return nil, err
 22807  	}
 22808  	req.Header = reqHeaders
 22809  	googleapi.Expand(req.URL, map[string]string{
 22810  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 22811  		"datafeedId": strconv.FormatUint(c.datafeedId, 10),
 22812  	})
 22813  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22814  }
 22815  
 22816  // Do executes the "content.datafeeds.fetchnow" call.
 22817  // Any non-2xx status code is an error. Response headers are in either
 22818  // *DatafeedsFetchNowResponse.ServerResponse.Header or (if a response was
 22819  // returned at all) in error.(*googleapi.Error).Header. Use
 22820  // googleapi.IsNotModified to check whether the returned error was because
 22821  // http.StatusNotModified was returned.
 22822  func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error) {
 22823  	gensupport.SetOptions(c.urlParams_, opts...)
 22824  	res, err := c.doRequest("json")
 22825  	if res != nil && res.StatusCode == http.StatusNotModified {
 22826  		if res.Body != nil {
 22827  			res.Body.Close()
 22828  		}
 22829  		return nil, gensupport.WrapError(&googleapi.Error{
 22830  			Code:   res.StatusCode,
 22831  			Header: res.Header,
 22832  		})
 22833  	}
 22834  	if err != nil {
 22835  		return nil, err
 22836  	}
 22837  	defer googleapi.CloseBody(res)
 22838  	if err := googleapi.CheckResponse(res); err != nil {
 22839  		return nil, gensupport.WrapError(err)
 22840  	}
 22841  	ret := &DatafeedsFetchNowResponse{
 22842  		ServerResponse: googleapi.ServerResponse{
 22843  			Header:         res.Header,
 22844  			HTTPStatusCode: res.StatusCode,
 22845  		},
 22846  	}
 22847  	target := &ret
 22848  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22849  		return nil, err
 22850  	}
 22851  	return ret, nil
 22852  }
 22853  
 22854  type DatafeedsGetCall struct {
 22855  	s            *APIService
 22856  	merchantId   uint64
 22857  	datafeedId   uint64
 22858  	urlParams_   gensupport.URLParams
 22859  	ifNoneMatch_ string
 22860  	ctx_         context.Context
 22861  	header_      http.Header
 22862  }
 22863  
 22864  // Get: Retrieves a datafeed configuration from your Merchant Center account.
 22865  //
 22866  //   - datafeedId: The ID of the datafeed.
 22867  //   - merchantId: The ID of the account that manages the datafeed. This account
 22868  //     cannot be a multi-client account.
 22869  func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall {
 22870  	c := &DatafeedsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22871  	c.merchantId = merchantId
 22872  	c.datafeedId = datafeedId
 22873  	return c
 22874  }
 22875  
 22876  // Fields allows partial responses to be retrieved. See
 22877  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22878  // details.
 22879  func (c *DatafeedsGetCall) Fields(s ...googleapi.Field) *DatafeedsGetCall {
 22880  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22881  	return c
 22882  }
 22883  
 22884  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22885  // object's ETag matches the given value. This is useful for getting updates
 22886  // only after the object has changed since the last request.
 22887  func (c *DatafeedsGetCall) IfNoneMatch(entityTag string) *DatafeedsGetCall {
 22888  	c.ifNoneMatch_ = entityTag
 22889  	return c
 22890  }
 22891  
 22892  // Context sets the context to be used in this call's Do method.
 22893  func (c *DatafeedsGetCall) Context(ctx context.Context) *DatafeedsGetCall {
 22894  	c.ctx_ = ctx
 22895  	return c
 22896  }
 22897  
 22898  // Header returns a http.Header that can be modified by the caller to add
 22899  // headers to the request.
 22900  func (c *DatafeedsGetCall) Header() http.Header {
 22901  	if c.header_ == nil {
 22902  		c.header_ = make(http.Header)
 22903  	}
 22904  	return c.header_
 22905  }
 22906  
 22907  func (c *DatafeedsGetCall) doRequest(alt string) (*http.Response, error) {
 22908  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22909  	if c.ifNoneMatch_ != "" {
 22910  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22911  	}
 22912  	var body io.Reader = nil
 22913  	c.urlParams_.Set("alt", alt)
 22914  	c.urlParams_.Set("prettyPrint", "false")
 22915  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}")
 22916  	urls += "?" + c.urlParams_.Encode()
 22917  	req, err := http.NewRequest("GET", urls, body)
 22918  	if err != nil {
 22919  		return nil, err
 22920  	}
 22921  	req.Header = reqHeaders
 22922  	googleapi.Expand(req.URL, map[string]string{
 22923  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 22924  		"datafeedId": strconv.FormatUint(c.datafeedId, 10),
 22925  	})
 22926  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22927  }
 22928  
 22929  // Do executes the "content.datafeeds.get" call.
 22930  // Any non-2xx status code is an error. Response headers are in either
 22931  // *Datafeed.ServerResponse.Header or (if a response was returned at all) in
 22932  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22933  // whether the returned error was because http.StatusNotModified was returned.
 22934  func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) {
 22935  	gensupport.SetOptions(c.urlParams_, opts...)
 22936  	res, err := c.doRequest("json")
 22937  	if res != nil && res.StatusCode == http.StatusNotModified {
 22938  		if res.Body != nil {
 22939  			res.Body.Close()
 22940  		}
 22941  		return nil, gensupport.WrapError(&googleapi.Error{
 22942  			Code:   res.StatusCode,
 22943  			Header: res.Header,
 22944  		})
 22945  	}
 22946  	if err != nil {
 22947  		return nil, err
 22948  	}
 22949  	defer googleapi.CloseBody(res)
 22950  	if err := googleapi.CheckResponse(res); err != nil {
 22951  		return nil, gensupport.WrapError(err)
 22952  	}
 22953  	ret := &Datafeed{
 22954  		ServerResponse: googleapi.ServerResponse{
 22955  			Header:         res.Header,
 22956  			HTTPStatusCode: res.StatusCode,
 22957  		},
 22958  	}
 22959  	target := &ret
 22960  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22961  		return nil, err
 22962  	}
 22963  	return ret, nil
 22964  }
 22965  
 22966  type DatafeedsInsertCall struct {
 22967  	s          *APIService
 22968  	merchantId uint64
 22969  	datafeed   *Datafeed
 22970  	urlParams_ gensupport.URLParams
 22971  	ctx_       context.Context
 22972  	header_    http.Header
 22973  }
 22974  
 22975  // Insert: Registers a datafeed configuration with your Merchant Center
 22976  // account.
 22977  //
 22978  //   - merchantId: The ID of the account that manages the datafeed. This account
 22979  //     cannot be a multi-client account.
 22980  func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall {
 22981  	c := &DatafeedsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22982  	c.merchantId = merchantId
 22983  	c.datafeed = datafeed
 22984  	return c
 22985  }
 22986  
 22987  // Fields allows partial responses to be retrieved. See
 22988  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22989  // details.
 22990  func (c *DatafeedsInsertCall) Fields(s ...googleapi.Field) *DatafeedsInsertCall {
 22991  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22992  	return c
 22993  }
 22994  
 22995  // Context sets the context to be used in this call's Do method.
 22996  func (c *DatafeedsInsertCall) Context(ctx context.Context) *DatafeedsInsertCall {
 22997  	c.ctx_ = ctx
 22998  	return c
 22999  }
 23000  
 23001  // Header returns a http.Header that can be modified by the caller to add
 23002  // headers to the request.
 23003  func (c *DatafeedsInsertCall) Header() http.Header {
 23004  	if c.header_ == nil {
 23005  		c.header_ = make(http.Header)
 23006  	}
 23007  	return c.header_
 23008  }
 23009  
 23010  func (c *DatafeedsInsertCall) doRequest(alt string) (*http.Response, error) {
 23011  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23012  	var body io.Reader = nil
 23013  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeed)
 23014  	if err != nil {
 23015  		return nil, err
 23016  	}
 23017  	c.urlParams_.Set("alt", alt)
 23018  	c.urlParams_.Set("prettyPrint", "false")
 23019  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds")
 23020  	urls += "?" + c.urlParams_.Encode()
 23021  	req, err := http.NewRequest("POST", urls, body)
 23022  	if err != nil {
 23023  		return nil, err
 23024  	}
 23025  	req.Header = reqHeaders
 23026  	googleapi.Expand(req.URL, map[string]string{
 23027  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 23028  	})
 23029  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23030  }
 23031  
 23032  // Do executes the "content.datafeeds.insert" call.
 23033  // Any non-2xx status code is an error. Response headers are in either
 23034  // *Datafeed.ServerResponse.Header or (if a response was returned at all) in
 23035  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 23036  // whether the returned error was because http.StatusNotModified was returned.
 23037  func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) {
 23038  	gensupport.SetOptions(c.urlParams_, opts...)
 23039  	res, err := c.doRequest("json")
 23040  	if res != nil && res.StatusCode == http.StatusNotModified {
 23041  		if res.Body != nil {
 23042  			res.Body.Close()
 23043  		}
 23044  		return nil, gensupport.WrapError(&googleapi.Error{
 23045  			Code:   res.StatusCode,
 23046  			Header: res.Header,
 23047  		})
 23048  	}
 23049  	if err != nil {
 23050  		return nil, err
 23051  	}
 23052  	defer googleapi.CloseBody(res)
 23053  	if err := googleapi.CheckResponse(res); err != nil {
 23054  		return nil, gensupport.WrapError(err)
 23055  	}
 23056  	ret := &Datafeed{
 23057  		ServerResponse: googleapi.ServerResponse{
 23058  			Header:         res.Header,
 23059  			HTTPStatusCode: res.StatusCode,
 23060  		},
 23061  	}
 23062  	target := &ret
 23063  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23064  		return nil, err
 23065  	}
 23066  	return ret, nil
 23067  }
 23068  
 23069  type DatafeedsListCall struct {
 23070  	s            *APIService
 23071  	merchantId   uint64
 23072  	urlParams_   gensupport.URLParams
 23073  	ifNoneMatch_ string
 23074  	ctx_         context.Context
 23075  	header_      http.Header
 23076  }
 23077  
 23078  // List: Lists the configurations for datafeeds in your Merchant Center
 23079  // account.
 23080  //
 23081  //   - merchantId: The ID of the account that manages the datafeeds. This account
 23082  //     cannot be a multi-client account.
 23083  func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall {
 23084  	c := &DatafeedsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23085  	c.merchantId = merchantId
 23086  	return c
 23087  }
 23088  
 23089  // MaxResults sets the optional parameter "maxResults": The maximum number of
 23090  // products to return in the response, used for paging.
 23091  func (c *DatafeedsListCall) MaxResults(maxResults int64) *DatafeedsListCall {
 23092  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 23093  	return c
 23094  }
 23095  
 23096  // PageToken sets the optional parameter "pageToken": The token returned by the
 23097  // previous request.
 23098  func (c *DatafeedsListCall) PageToken(pageToken string) *DatafeedsListCall {
 23099  	c.urlParams_.Set("pageToken", pageToken)
 23100  	return c
 23101  }
 23102  
 23103  // Fields allows partial responses to be retrieved. See
 23104  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23105  // details.
 23106  func (c *DatafeedsListCall) Fields(s ...googleapi.Field) *DatafeedsListCall {
 23107  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23108  	return c
 23109  }
 23110  
 23111  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23112  // object's ETag matches the given value. This is useful for getting updates
 23113  // only after the object has changed since the last request.
 23114  func (c *DatafeedsListCall) IfNoneMatch(entityTag string) *DatafeedsListCall {
 23115  	c.ifNoneMatch_ = entityTag
 23116  	return c
 23117  }
 23118  
 23119  // Context sets the context to be used in this call's Do method.
 23120  func (c *DatafeedsListCall) Context(ctx context.Context) *DatafeedsListCall {
 23121  	c.ctx_ = ctx
 23122  	return c
 23123  }
 23124  
 23125  // Header returns a http.Header that can be modified by the caller to add
 23126  // headers to the request.
 23127  func (c *DatafeedsListCall) Header() http.Header {
 23128  	if c.header_ == nil {
 23129  		c.header_ = make(http.Header)
 23130  	}
 23131  	return c.header_
 23132  }
 23133  
 23134  func (c *DatafeedsListCall) doRequest(alt string) (*http.Response, error) {
 23135  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23136  	if c.ifNoneMatch_ != "" {
 23137  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23138  	}
 23139  	var body io.Reader = nil
 23140  	c.urlParams_.Set("alt", alt)
 23141  	c.urlParams_.Set("prettyPrint", "false")
 23142  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds")
 23143  	urls += "?" + c.urlParams_.Encode()
 23144  	req, err := http.NewRequest("GET", urls, body)
 23145  	if err != nil {
 23146  		return nil, err
 23147  	}
 23148  	req.Header = reqHeaders
 23149  	googleapi.Expand(req.URL, map[string]string{
 23150  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 23151  	})
 23152  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23153  }
 23154  
 23155  // Do executes the "content.datafeeds.list" call.
 23156  // Any non-2xx status code is an error. Response headers are in either
 23157  // *DatafeedsListResponse.ServerResponse.Header or (if a response was returned
 23158  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23159  // check whether the returned error was because http.StatusNotModified was
 23160  // returned.
 23161  func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResponse, error) {
 23162  	gensupport.SetOptions(c.urlParams_, opts...)
 23163  	res, err := c.doRequest("json")
 23164  	if res != nil && res.StatusCode == http.StatusNotModified {
 23165  		if res.Body != nil {
 23166  			res.Body.Close()
 23167  		}
 23168  		return nil, gensupport.WrapError(&googleapi.Error{
 23169  			Code:   res.StatusCode,
 23170  			Header: res.Header,
 23171  		})
 23172  	}
 23173  	if err != nil {
 23174  		return nil, err
 23175  	}
 23176  	defer googleapi.CloseBody(res)
 23177  	if err := googleapi.CheckResponse(res); err != nil {
 23178  		return nil, gensupport.WrapError(err)
 23179  	}
 23180  	ret := &DatafeedsListResponse{
 23181  		ServerResponse: googleapi.ServerResponse{
 23182  			Header:         res.Header,
 23183  			HTTPStatusCode: res.StatusCode,
 23184  		},
 23185  	}
 23186  	target := &ret
 23187  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23188  		return nil, err
 23189  	}
 23190  	return ret, nil
 23191  }
 23192  
 23193  // Pages invokes f for each page of results.
 23194  // A non-nil error returned from f will halt the iteration.
 23195  // The provided context supersedes any context provided to the Context method.
 23196  func (c *DatafeedsListCall) Pages(ctx context.Context, f func(*DatafeedsListResponse) error) error {
 23197  	c.ctx_ = ctx
 23198  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23199  	for {
 23200  		x, err := c.Do()
 23201  		if err != nil {
 23202  			return err
 23203  		}
 23204  		if err := f(x); err != nil {
 23205  			return err
 23206  		}
 23207  		if x.NextPageToken == "" {
 23208  			return nil
 23209  		}
 23210  		c.PageToken(x.NextPageToken)
 23211  	}
 23212  }
 23213  
 23214  type DatafeedsUpdateCall struct {
 23215  	s          *APIService
 23216  	merchantId uint64
 23217  	datafeedId uint64
 23218  	datafeed   *Datafeed
 23219  	urlParams_ gensupport.URLParams
 23220  	ctx_       context.Context
 23221  	header_    http.Header
 23222  }
 23223  
 23224  // Update: Updates a datafeed configuration of your Merchant Center account.
 23225  // Any fields that are not provided are deleted from the resource.
 23226  //
 23227  //   - datafeedId: The ID of the datafeed.
 23228  //   - merchantId: The ID of the account that manages the datafeed. This account
 23229  //     cannot be a multi-client account.
 23230  func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall {
 23231  	c := &DatafeedsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23232  	c.merchantId = merchantId
 23233  	c.datafeedId = datafeedId
 23234  	c.datafeed = datafeed
 23235  	return c
 23236  }
 23237  
 23238  // Fields allows partial responses to be retrieved. See
 23239  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23240  // details.
 23241  func (c *DatafeedsUpdateCall) Fields(s ...googleapi.Field) *DatafeedsUpdateCall {
 23242  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23243  	return c
 23244  }
 23245  
 23246  // Context sets the context to be used in this call's Do method.
 23247  func (c *DatafeedsUpdateCall) Context(ctx context.Context) *DatafeedsUpdateCall {
 23248  	c.ctx_ = ctx
 23249  	return c
 23250  }
 23251  
 23252  // Header returns a http.Header that can be modified by the caller to add
 23253  // headers to the request.
 23254  func (c *DatafeedsUpdateCall) Header() http.Header {
 23255  	if c.header_ == nil {
 23256  		c.header_ = make(http.Header)
 23257  	}
 23258  	return c.header_
 23259  }
 23260  
 23261  func (c *DatafeedsUpdateCall) doRequest(alt string) (*http.Response, error) {
 23262  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23263  	var body io.Reader = nil
 23264  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeed)
 23265  	if err != nil {
 23266  		return nil, err
 23267  	}
 23268  	c.urlParams_.Set("alt", alt)
 23269  	c.urlParams_.Set("prettyPrint", "false")
 23270  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeeds/{datafeedId}")
 23271  	urls += "?" + c.urlParams_.Encode()
 23272  	req, err := http.NewRequest("PUT", urls, body)
 23273  	if err != nil {
 23274  		return nil, err
 23275  	}
 23276  	req.Header = reqHeaders
 23277  	googleapi.Expand(req.URL, map[string]string{
 23278  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 23279  		"datafeedId": strconv.FormatUint(c.datafeedId, 10),
 23280  	})
 23281  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23282  }
 23283  
 23284  // Do executes the "content.datafeeds.update" call.
 23285  // Any non-2xx status code is an error. Response headers are in either
 23286  // *Datafeed.ServerResponse.Header or (if a response was returned at all) in
 23287  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 23288  // whether the returned error was because http.StatusNotModified was returned.
 23289  func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error) {
 23290  	gensupport.SetOptions(c.urlParams_, opts...)
 23291  	res, err := c.doRequest("json")
 23292  	if res != nil && res.StatusCode == http.StatusNotModified {
 23293  		if res.Body != nil {
 23294  			res.Body.Close()
 23295  		}
 23296  		return nil, gensupport.WrapError(&googleapi.Error{
 23297  			Code:   res.StatusCode,
 23298  			Header: res.Header,
 23299  		})
 23300  	}
 23301  	if err != nil {
 23302  		return nil, err
 23303  	}
 23304  	defer googleapi.CloseBody(res)
 23305  	if err := googleapi.CheckResponse(res); err != nil {
 23306  		return nil, gensupport.WrapError(err)
 23307  	}
 23308  	ret := &Datafeed{
 23309  		ServerResponse: googleapi.ServerResponse{
 23310  			Header:         res.Header,
 23311  			HTTPStatusCode: res.StatusCode,
 23312  		},
 23313  	}
 23314  	target := &ret
 23315  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23316  		return nil, err
 23317  	}
 23318  	return ret, nil
 23319  }
 23320  
 23321  type DatafeedstatusesCustombatchCall struct {
 23322  	s                                  *APIService
 23323  	datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest
 23324  	urlParams_                         gensupport.URLParams
 23325  	ctx_                               context.Context
 23326  	header_                            http.Header
 23327  }
 23328  
 23329  // Custombatch: Gets multiple Merchant Center datafeed statuses in a single
 23330  // request.
 23331  func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall {
 23332  	c := &DatafeedstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23333  	c.datafeedstatusescustombatchrequest = datafeedstatusescustombatchrequest
 23334  	return c
 23335  }
 23336  
 23337  // Fields allows partial responses to be retrieved. See
 23338  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23339  // details.
 23340  func (c *DatafeedstatusesCustombatchCall) Fields(s ...googleapi.Field) *DatafeedstatusesCustombatchCall {
 23341  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23342  	return c
 23343  }
 23344  
 23345  // Context sets the context to be used in this call's Do method.
 23346  func (c *DatafeedstatusesCustombatchCall) Context(ctx context.Context) *DatafeedstatusesCustombatchCall {
 23347  	c.ctx_ = ctx
 23348  	return c
 23349  }
 23350  
 23351  // Header returns a http.Header that can be modified by the caller to add
 23352  // headers to the request.
 23353  func (c *DatafeedstatusesCustombatchCall) Header() http.Header {
 23354  	if c.header_ == nil {
 23355  		c.header_ = make(http.Header)
 23356  	}
 23357  	return c.header_
 23358  }
 23359  
 23360  func (c *DatafeedstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) {
 23361  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23362  	var body io.Reader = nil
 23363  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.datafeedstatusescustombatchrequest)
 23364  	if err != nil {
 23365  		return nil, err
 23366  	}
 23367  	c.urlParams_.Set("alt", alt)
 23368  	c.urlParams_.Set("prettyPrint", "false")
 23369  	urls := googleapi.ResolveRelative(c.s.BasePath, "datafeedstatuses/batch")
 23370  	urls += "?" + c.urlParams_.Encode()
 23371  	req, err := http.NewRequest("POST", urls, body)
 23372  	if err != nil {
 23373  		return nil, err
 23374  	}
 23375  	req.Header = reqHeaders
 23376  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23377  }
 23378  
 23379  // Do executes the "content.datafeedstatuses.custombatch" call.
 23380  // Any non-2xx status code is an error. Response headers are in either
 23381  // *DatafeedstatusesCustomBatchResponse.ServerResponse.Header or (if a response
 23382  // was returned at all) in error.(*googleapi.Error).Header. Use
 23383  // googleapi.IsNotModified to check whether the returned error was because
 23384  // http.StatusNotModified was returned.
 23385  func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesCustomBatchResponse, error) {
 23386  	gensupport.SetOptions(c.urlParams_, opts...)
 23387  	res, err := c.doRequest("json")
 23388  	if res != nil && res.StatusCode == http.StatusNotModified {
 23389  		if res.Body != nil {
 23390  			res.Body.Close()
 23391  		}
 23392  		return nil, gensupport.WrapError(&googleapi.Error{
 23393  			Code:   res.StatusCode,
 23394  			Header: res.Header,
 23395  		})
 23396  	}
 23397  	if err != nil {
 23398  		return nil, err
 23399  	}
 23400  	defer googleapi.CloseBody(res)
 23401  	if err := googleapi.CheckResponse(res); err != nil {
 23402  		return nil, gensupport.WrapError(err)
 23403  	}
 23404  	ret := &DatafeedstatusesCustomBatchResponse{
 23405  		ServerResponse: googleapi.ServerResponse{
 23406  			Header:         res.Header,
 23407  			HTTPStatusCode: res.StatusCode,
 23408  		},
 23409  	}
 23410  	target := &ret
 23411  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23412  		return nil, err
 23413  	}
 23414  	return ret, nil
 23415  }
 23416  
 23417  type DatafeedstatusesGetCall struct {
 23418  	s            *APIService
 23419  	merchantId   uint64
 23420  	datafeedId   uint64
 23421  	urlParams_   gensupport.URLParams
 23422  	ifNoneMatch_ string
 23423  	ctx_         context.Context
 23424  	header_      http.Header
 23425  }
 23426  
 23427  // Get: Retrieves the status of a datafeed from your Merchant Center account.
 23428  //
 23429  //   - datafeedId: The ID of the datafeed.
 23430  //   - merchantId: The ID of the account that manages the datafeed. This account
 23431  //     cannot be a multi-client account.
 23432  func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall {
 23433  	c := &DatafeedstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23434  	c.merchantId = merchantId
 23435  	c.datafeedId = datafeedId
 23436  	return c
 23437  }
 23438  
 23439  // Country sets the optional parameter "country": Deprecated. Use `feedLabel`
 23440  // instead. The country to get the datafeed status for. If this parameter is
 23441  // provided then `language` must also be provided. Note that this parameter is
 23442  // required for feeds targeting multiple countries and languages, since a feed
 23443  // may have a different status for each target.
 23444  func (c *DatafeedstatusesGetCall) Country(country string) *DatafeedstatusesGetCall {
 23445  	c.urlParams_.Set("country", country)
 23446  	return c
 23447  }
 23448  
 23449  // FeedLabel sets the optional parameter "feedLabel": The feed label to get the
 23450  // datafeed status for. If this parameter is provided then `language` must also
 23451  // be provided. Note that this parameter is required for feeds targeting
 23452  // multiple countries and languages, since a feed may have a different status
 23453  // for each target.
 23454  func (c *DatafeedstatusesGetCall) FeedLabel(feedLabel string) *DatafeedstatusesGetCall {
 23455  	c.urlParams_.Set("feedLabel", feedLabel)
 23456  	return c
 23457  }
 23458  
 23459  // Language sets the optional parameter "language": The language to get the
 23460  // datafeed status for. If this parameter is provided then `country` must also
 23461  // be provided. Note that this parameter is required for feeds targeting
 23462  // multiple countries and languages, since a feed may have a different status
 23463  // for each target.
 23464  func (c *DatafeedstatusesGetCall) Language(language string) *DatafeedstatusesGetCall {
 23465  	c.urlParams_.Set("language", language)
 23466  	return c
 23467  }
 23468  
 23469  // Fields allows partial responses to be retrieved. See
 23470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23471  // details.
 23472  func (c *DatafeedstatusesGetCall) Fields(s ...googleapi.Field) *DatafeedstatusesGetCall {
 23473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23474  	return c
 23475  }
 23476  
 23477  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23478  // object's ETag matches the given value. This is useful for getting updates
 23479  // only after the object has changed since the last request.
 23480  func (c *DatafeedstatusesGetCall) IfNoneMatch(entityTag string) *DatafeedstatusesGetCall {
 23481  	c.ifNoneMatch_ = entityTag
 23482  	return c
 23483  }
 23484  
 23485  // Context sets the context to be used in this call's Do method.
 23486  func (c *DatafeedstatusesGetCall) Context(ctx context.Context) *DatafeedstatusesGetCall {
 23487  	c.ctx_ = ctx
 23488  	return c
 23489  }
 23490  
 23491  // Header returns a http.Header that can be modified by the caller to add
 23492  // headers to the request.
 23493  func (c *DatafeedstatusesGetCall) Header() http.Header {
 23494  	if c.header_ == nil {
 23495  		c.header_ = make(http.Header)
 23496  	}
 23497  	return c.header_
 23498  }
 23499  
 23500  func (c *DatafeedstatusesGetCall) doRequest(alt string) (*http.Response, error) {
 23501  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23502  	if c.ifNoneMatch_ != "" {
 23503  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23504  	}
 23505  	var body io.Reader = nil
 23506  	c.urlParams_.Set("alt", alt)
 23507  	c.urlParams_.Set("prettyPrint", "false")
 23508  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeedstatuses/{datafeedId}")
 23509  	urls += "?" + c.urlParams_.Encode()
 23510  	req, err := http.NewRequest("GET", urls, body)
 23511  	if err != nil {
 23512  		return nil, err
 23513  	}
 23514  	req.Header = reqHeaders
 23515  	googleapi.Expand(req.URL, map[string]string{
 23516  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 23517  		"datafeedId": strconv.FormatUint(c.datafeedId, 10),
 23518  	})
 23519  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23520  }
 23521  
 23522  // Do executes the "content.datafeedstatuses.get" call.
 23523  // Any non-2xx status code is an error. Response headers are in either
 23524  // *DatafeedStatus.ServerResponse.Header or (if a response was returned at all)
 23525  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 23526  // whether the returned error was because http.StatusNotModified was returned.
 23527  func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedStatus, error) {
 23528  	gensupport.SetOptions(c.urlParams_, opts...)
 23529  	res, err := c.doRequest("json")
 23530  	if res != nil && res.StatusCode == http.StatusNotModified {
 23531  		if res.Body != nil {
 23532  			res.Body.Close()
 23533  		}
 23534  		return nil, gensupport.WrapError(&googleapi.Error{
 23535  			Code:   res.StatusCode,
 23536  			Header: res.Header,
 23537  		})
 23538  	}
 23539  	if err != nil {
 23540  		return nil, err
 23541  	}
 23542  	defer googleapi.CloseBody(res)
 23543  	if err := googleapi.CheckResponse(res); err != nil {
 23544  		return nil, gensupport.WrapError(err)
 23545  	}
 23546  	ret := &DatafeedStatus{
 23547  		ServerResponse: googleapi.ServerResponse{
 23548  			Header:         res.Header,
 23549  			HTTPStatusCode: res.StatusCode,
 23550  		},
 23551  	}
 23552  	target := &ret
 23553  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23554  		return nil, err
 23555  	}
 23556  	return ret, nil
 23557  }
 23558  
 23559  type DatafeedstatusesListCall struct {
 23560  	s            *APIService
 23561  	merchantId   uint64
 23562  	urlParams_   gensupport.URLParams
 23563  	ifNoneMatch_ string
 23564  	ctx_         context.Context
 23565  	header_      http.Header
 23566  }
 23567  
 23568  // List: Lists the statuses of the datafeeds in your Merchant Center account.
 23569  //
 23570  //   - merchantId: The ID of the account that manages the datafeeds. This account
 23571  //     cannot be a multi-client account.
 23572  func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall {
 23573  	c := &DatafeedstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23574  	c.merchantId = merchantId
 23575  	return c
 23576  }
 23577  
 23578  // MaxResults sets the optional parameter "maxResults": The maximum number of
 23579  // products to return in the response, used for paging.
 23580  func (c *DatafeedstatusesListCall) MaxResults(maxResults int64) *DatafeedstatusesListCall {
 23581  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 23582  	return c
 23583  }
 23584  
 23585  // PageToken sets the optional parameter "pageToken": The token returned by the
 23586  // previous request.
 23587  func (c *DatafeedstatusesListCall) PageToken(pageToken string) *DatafeedstatusesListCall {
 23588  	c.urlParams_.Set("pageToken", pageToken)
 23589  	return c
 23590  }
 23591  
 23592  // Fields allows partial responses to be retrieved. See
 23593  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23594  // details.
 23595  func (c *DatafeedstatusesListCall) Fields(s ...googleapi.Field) *DatafeedstatusesListCall {
 23596  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23597  	return c
 23598  }
 23599  
 23600  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23601  // object's ETag matches the given value. This is useful for getting updates
 23602  // only after the object has changed since the last request.
 23603  func (c *DatafeedstatusesListCall) IfNoneMatch(entityTag string) *DatafeedstatusesListCall {
 23604  	c.ifNoneMatch_ = entityTag
 23605  	return c
 23606  }
 23607  
 23608  // Context sets the context to be used in this call's Do method.
 23609  func (c *DatafeedstatusesListCall) Context(ctx context.Context) *DatafeedstatusesListCall {
 23610  	c.ctx_ = ctx
 23611  	return c
 23612  }
 23613  
 23614  // Header returns a http.Header that can be modified by the caller to add
 23615  // headers to the request.
 23616  func (c *DatafeedstatusesListCall) Header() http.Header {
 23617  	if c.header_ == nil {
 23618  		c.header_ = make(http.Header)
 23619  	}
 23620  	return c.header_
 23621  }
 23622  
 23623  func (c *DatafeedstatusesListCall) doRequest(alt string) (*http.Response, error) {
 23624  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23625  	if c.ifNoneMatch_ != "" {
 23626  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23627  	}
 23628  	var body io.Reader = nil
 23629  	c.urlParams_.Set("alt", alt)
 23630  	c.urlParams_.Set("prettyPrint", "false")
 23631  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/datafeedstatuses")
 23632  	urls += "?" + c.urlParams_.Encode()
 23633  	req, err := http.NewRequest("GET", urls, body)
 23634  	if err != nil {
 23635  		return nil, err
 23636  	}
 23637  	req.Header = reqHeaders
 23638  	googleapi.Expand(req.URL, map[string]string{
 23639  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 23640  	})
 23641  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23642  }
 23643  
 23644  // Do executes the "content.datafeedstatuses.list" call.
 23645  // Any non-2xx status code is an error. Response headers are in either
 23646  // *DatafeedstatusesListResponse.ServerResponse.Header or (if a response was
 23647  // returned at all) in error.(*googleapi.Error).Header. Use
 23648  // googleapi.IsNotModified to check whether the returned error was because
 23649  // http.StatusNotModified was returned.
 23650  func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesListResponse, error) {
 23651  	gensupport.SetOptions(c.urlParams_, opts...)
 23652  	res, err := c.doRequest("json")
 23653  	if res != nil && res.StatusCode == http.StatusNotModified {
 23654  		if res.Body != nil {
 23655  			res.Body.Close()
 23656  		}
 23657  		return nil, gensupport.WrapError(&googleapi.Error{
 23658  			Code:   res.StatusCode,
 23659  			Header: res.Header,
 23660  		})
 23661  	}
 23662  	if err != nil {
 23663  		return nil, err
 23664  	}
 23665  	defer googleapi.CloseBody(res)
 23666  	if err := googleapi.CheckResponse(res); err != nil {
 23667  		return nil, gensupport.WrapError(err)
 23668  	}
 23669  	ret := &DatafeedstatusesListResponse{
 23670  		ServerResponse: googleapi.ServerResponse{
 23671  			Header:         res.Header,
 23672  			HTTPStatusCode: res.StatusCode,
 23673  		},
 23674  	}
 23675  	target := &ret
 23676  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23677  		return nil, err
 23678  	}
 23679  	return ret, nil
 23680  }
 23681  
 23682  // Pages invokes f for each page of results.
 23683  // A non-nil error returned from f will halt the iteration.
 23684  // The provided context supersedes any context provided to the Context method.
 23685  func (c *DatafeedstatusesListCall) Pages(ctx context.Context, f func(*DatafeedstatusesListResponse) error) error {
 23686  	c.ctx_ = ctx
 23687  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23688  	for {
 23689  		x, err := c.Do()
 23690  		if err != nil {
 23691  			return err
 23692  		}
 23693  		if err := f(x); err != nil {
 23694  			return err
 23695  		}
 23696  		if x.NextPageToken == "" {
 23697  			return nil
 23698  		}
 23699  		c.PageToken(x.NextPageToken)
 23700  	}
 23701  }
 23702  
 23703  type FreelistingsprogramGetCall struct {
 23704  	s            *APIService
 23705  	merchantId   int64
 23706  	urlParams_   gensupport.URLParams
 23707  	ifNoneMatch_ string
 23708  	ctx_         context.Context
 23709  	header_      http.Header
 23710  }
 23711  
 23712  // Get: Retrieves the status and review eligibility for the free listing
 23713  // program. Returns errors and warnings if they require action to resolve, will
 23714  // become disapprovals, or impact impressions. Use `accountstatuses` to view
 23715  // all issues for an account.
 23716  //
 23717  // - merchantId: The ID of the account.
 23718  func (r *FreelistingsprogramService) Get(merchantId int64) *FreelistingsprogramGetCall {
 23719  	c := &FreelistingsprogramGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23720  	c.merchantId = merchantId
 23721  	return c
 23722  }
 23723  
 23724  // Fields allows partial responses to be retrieved. See
 23725  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23726  // details.
 23727  func (c *FreelistingsprogramGetCall) Fields(s ...googleapi.Field) *FreelistingsprogramGetCall {
 23728  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23729  	return c
 23730  }
 23731  
 23732  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23733  // object's ETag matches the given value. This is useful for getting updates
 23734  // only after the object has changed since the last request.
 23735  func (c *FreelistingsprogramGetCall) IfNoneMatch(entityTag string) *FreelistingsprogramGetCall {
 23736  	c.ifNoneMatch_ = entityTag
 23737  	return c
 23738  }
 23739  
 23740  // Context sets the context to be used in this call's Do method.
 23741  func (c *FreelistingsprogramGetCall) Context(ctx context.Context) *FreelistingsprogramGetCall {
 23742  	c.ctx_ = ctx
 23743  	return c
 23744  }
 23745  
 23746  // Header returns a http.Header that can be modified by the caller to add
 23747  // headers to the request.
 23748  func (c *FreelistingsprogramGetCall) Header() http.Header {
 23749  	if c.header_ == nil {
 23750  		c.header_ = make(http.Header)
 23751  	}
 23752  	return c.header_
 23753  }
 23754  
 23755  func (c *FreelistingsprogramGetCall) doRequest(alt string) (*http.Response, error) {
 23756  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23757  	if c.ifNoneMatch_ != "" {
 23758  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23759  	}
 23760  	var body io.Reader = nil
 23761  	c.urlParams_.Set("alt", alt)
 23762  	c.urlParams_.Set("prettyPrint", "false")
 23763  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram")
 23764  	urls += "?" + c.urlParams_.Encode()
 23765  	req, err := http.NewRequest("GET", urls, body)
 23766  	if err != nil {
 23767  		return nil, err
 23768  	}
 23769  	req.Header = reqHeaders
 23770  	googleapi.Expand(req.URL, map[string]string{
 23771  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 23772  	})
 23773  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23774  }
 23775  
 23776  // Do executes the "content.freelistingsprogram.get" call.
 23777  // Any non-2xx status code is an error. Response headers are in either
 23778  // *FreeListingsProgramStatus.ServerResponse.Header or (if a response was
 23779  // returned at all) in error.(*googleapi.Error).Header. Use
 23780  // googleapi.IsNotModified to check whether the returned error was because
 23781  // http.StatusNotModified was returned.
 23782  func (c *FreelistingsprogramGetCall) Do(opts ...googleapi.CallOption) (*FreeListingsProgramStatus, error) {
 23783  	gensupport.SetOptions(c.urlParams_, opts...)
 23784  	res, err := c.doRequest("json")
 23785  	if res != nil && res.StatusCode == http.StatusNotModified {
 23786  		if res.Body != nil {
 23787  			res.Body.Close()
 23788  		}
 23789  		return nil, gensupport.WrapError(&googleapi.Error{
 23790  			Code:   res.StatusCode,
 23791  			Header: res.Header,
 23792  		})
 23793  	}
 23794  	if err != nil {
 23795  		return nil, err
 23796  	}
 23797  	defer googleapi.CloseBody(res)
 23798  	if err := googleapi.CheckResponse(res); err != nil {
 23799  		return nil, gensupport.WrapError(err)
 23800  	}
 23801  	ret := &FreeListingsProgramStatus{
 23802  		ServerResponse: googleapi.ServerResponse{
 23803  			Header:         res.Header,
 23804  			HTTPStatusCode: res.StatusCode,
 23805  		},
 23806  	}
 23807  	target := &ret
 23808  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23809  		return nil, err
 23810  	}
 23811  	return ret, nil
 23812  }
 23813  
 23814  type FreelistingsprogramRequestreviewCall struct {
 23815  	s                                *APIService
 23816  	merchantId                       int64
 23817  	requestreviewfreelistingsrequest *RequestReviewFreeListingsRequest
 23818  	urlParams_                       gensupport.URLParams
 23819  	ctx_                             context.Context
 23820  	header_                          http.Header
 23821  }
 23822  
 23823  // Requestreview: Requests a review of free listings in a specific region. This
 23824  // method deprecated. Use the `MerchantSupportService` to view product and
 23825  // account issues and request a review.
 23826  //
 23827  // - merchantId: The ID of the account.
 23828  func (r *FreelistingsprogramService) Requestreview(merchantId int64, requestreviewfreelistingsrequest *RequestReviewFreeListingsRequest) *FreelistingsprogramRequestreviewCall {
 23829  	c := &FreelistingsprogramRequestreviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23830  	c.merchantId = merchantId
 23831  	c.requestreviewfreelistingsrequest = requestreviewfreelistingsrequest
 23832  	return c
 23833  }
 23834  
 23835  // Fields allows partial responses to be retrieved. See
 23836  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23837  // details.
 23838  func (c *FreelistingsprogramRequestreviewCall) Fields(s ...googleapi.Field) *FreelistingsprogramRequestreviewCall {
 23839  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23840  	return c
 23841  }
 23842  
 23843  // Context sets the context to be used in this call's Do method.
 23844  func (c *FreelistingsprogramRequestreviewCall) Context(ctx context.Context) *FreelistingsprogramRequestreviewCall {
 23845  	c.ctx_ = ctx
 23846  	return c
 23847  }
 23848  
 23849  // Header returns a http.Header that can be modified by the caller to add
 23850  // headers to the request.
 23851  func (c *FreelistingsprogramRequestreviewCall) Header() http.Header {
 23852  	if c.header_ == nil {
 23853  		c.header_ = make(http.Header)
 23854  	}
 23855  	return c.header_
 23856  }
 23857  
 23858  func (c *FreelistingsprogramRequestreviewCall) doRequest(alt string) (*http.Response, error) {
 23859  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23860  	var body io.Reader = nil
 23861  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestreviewfreelistingsrequest)
 23862  	if err != nil {
 23863  		return nil, err
 23864  	}
 23865  	c.urlParams_.Set("alt", alt)
 23866  	c.urlParams_.Set("prettyPrint", "false")
 23867  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/requestreview")
 23868  	urls += "?" + c.urlParams_.Encode()
 23869  	req, err := http.NewRequest("POST", urls, body)
 23870  	if err != nil {
 23871  		return nil, err
 23872  	}
 23873  	req.Header = reqHeaders
 23874  	googleapi.Expand(req.URL, map[string]string{
 23875  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 23876  	})
 23877  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23878  }
 23879  
 23880  // Do executes the "content.freelistingsprogram.requestreview" call.
 23881  func (c *FreelistingsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) error {
 23882  	gensupport.SetOptions(c.urlParams_, opts...)
 23883  	res, err := c.doRequest("json")
 23884  	if err != nil {
 23885  		return err
 23886  	}
 23887  	defer googleapi.CloseBody(res)
 23888  	if err := googleapi.CheckResponse(res); err != nil {
 23889  		return gensupport.WrapError(err)
 23890  	}
 23891  	return nil
 23892  }
 23893  
 23894  type FreelistingsprogramCheckoutsettingsDeleteCall struct {
 23895  	s          *APIService
 23896  	merchantId int64
 23897  	urlParams_ gensupport.URLParams
 23898  	ctx_       context.Context
 23899  	header_    http.Header
 23900  }
 23901  
 23902  // Delete: Deletes `Checkout` settings and unenrolls merchant from `Checkout`
 23903  // program.
 23904  //
 23905  // - merchantId: The ID of the account.
 23906  func (r *FreelistingsprogramCheckoutsettingsService) Delete(merchantId int64) *FreelistingsprogramCheckoutsettingsDeleteCall {
 23907  	c := &FreelistingsprogramCheckoutsettingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23908  	c.merchantId = merchantId
 23909  	return c
 23910  }
 23911  
 23912  // Fields allows partial responses to be retrieved. See
 23913  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23914  // details.
 23915  func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Fields(s ...googleapi.Field) *FreelistingsprogramCheckoutsettingsDeleteCall {
 23916  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23917  	return c
 23918  }
 23919  
 23920  // Context sets the context to be used in this call's Do method.
 23921  func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Context(ctx context.Context) *FreelistingsprogramCheckoutsettingsDeleteCall {
 23922  	c.ctx_ = ctx
 23923  	return c
 23924  }
 23925  
 23926  // Header returns a http.Header that can be modified by the caller to add
 23927  // headers to the request.
 23928  func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Header() http.Header {
 23929  	if c.header_ == nil {
 23930  		c.header_ = make(http.Header)
 23931  	}
 23932  	return c.header_
 23933  }
 23934  
 23935  func (c *FreelistingsprogramCheckoutsettingsDeleteCall) doRequest(alt string) (*http.Response, error) {
 23936  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23937  	var body io.Reader = nil
 23938  	c.urlParams_.Set("alt", alt)
 23939  	c.urlParams_.Set("prettyPrint", "false")
 23940  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/checkoutsettings")
 23941  	urls += "?" + c.urlParams_.Encode()
 23942  	req, err := http.NewRequest("DELETE", urls, body)
 23943  	if err != nil {
 23944  		return nil, err
 23945  	}
 23946  	req.Header = reqHeaders
 23947  	googleapi.Expand(req.URL, map[string]string{
 23948  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 23949  	})
 23950  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23951  }
 23952  
 23953  // Do executes the "content.freelistingsprogram.checkoutsettings.delete" call.
 23954  func (c *FreelistingsprogramCheckoutsettingsDeleteCall) Do(opts ...googleapi.CallOption) error {
 23955  	gensupport.SetOptions(c.urlParams_, opts...)
 23956  	res, err := c.doRequest("json")
 23957  	if err != nil {
 23958  		return err
 23959  	}
 23960  	defer googleapi.CloseBody(res)
 23961  	if err := googleapi.CheckResponse(res); err != nil {
 23962  		return gensupport.WrapError(err)
 23963  	}
 23964  	return nil
 23965  }
 23966  
 23967  type FreelistingsprogramCheckoutsettingsGetCall struct {
 23968  	s            *APIService
 23969  	merchantId   int64
 23970  	urlParams_   gensupport.URLParams
 23971  	ifNoneMatch_ string
 23972  	ctx_         context.Context
 23973  	header_      http.Header
 23974  }
 23975  
 23976  // Get: Gets Checkout settings for the given merchant. This includes
 23977  // information about review state, enrollment state and URL settings.
 23978  //
 23979  // - merchantId: The ID of the account.
 23980  func (r *FreelistingsprogramCheckoutsettingsService) Get(merchantId int64) *FreelistingsprogramCheckoutsettingsGetCall {
 23981  	c := &FreelistingsprogramCheckoutsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23982  	c.merchantId = merchantId
 23983  	return c
 23984  }
 23985  
 23986  // Fields allows partial responses to be retrieved. See
 23987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23988  // details.
 23989  func (c *FreelistingsprogramCheckoutsettingsGetCall) Fields(s ...googleapi.Field) *FreelistingsprogramCheckoutsettingsGetCall {
 23990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23991  	return c
 23992  }
 23993  
 23994  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23995  // object's ETag matches the given value. This is useful for getting updates
 23996  // only after the object has changed since the last request.
 23997  func (c *FreelistingsprogramCheckoutsettingsGetCall) IfNoneMatch(entityTag string) *FreelistingsprogramCheckoutsettingsGetCall {
 23998  	c.ifNoneMatch_ = entityTag
 23999  	return c
 24000  }
 24001  
 24002  // Context sets the context to be used in this call's Do method.
 24003  func (c *FreelistingsprogramCheckoutsettingsGetCall) Context(ctx context.Context) *FreelistingsprogramCheckoutsettingsGetCall {
 24004  	c.ctx_ = ctx
 24005  	return c
 24006  }
 24007  
 24008  // Header returns a http.Header that can be modified by the caller to add
 24009  // headers to the request.
 24010  func (c *FreelistingsprogramCheckoutsettingsGetCall) Header() http.Header {
 24011  	if c.header_ == nil {
 24012  		c.header_ = make(http.Header)
 24013  	}
 24014  	return c.header_
 24015  }
 24016  
 24017  func (c *FreelistingsprogramCheckoutsettingsGetCall) doRequest(alt string) (*http.Response, error) {
 24018  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24019  	if c.ifNoneMatch_ != "" {
 24020  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24021  	}
 24022  	var body io.Reader = nil
 24023  	c.urlParams_.Set("alt", alt)
 24024  	c.urlParams_.Set("prettyPrint", "false")
 24025  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/checkoutsettings")
 24026  	urls += "?" + c.urlParams_.Encode()
 24027  	req, err := http.NewRequest("GET", urls, body)
 24028  	if err != nil {
 24029  		return nil, err
 24030  	}
 24031  	req.Header = reqHeaders
 24032  	googleapi.Expand(req.URL, map[string]string{
 24033  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 24034  	})
 24035  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24036  }
 24037  
 24038  // Do executes the "content.freelistingsprogram.checkoutsettings.get" call.
 24039  // Any non-2xx status code is an error. Response headers are in either
 24040  // *CheckoutSettings.ServerResponse.Header or (if a response was returned at
 24041  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24042  // check whether the returned error was because http.StatusNotModified was
 24043  // returned.
 24044  func (c *FreelistingsprogramCheckoutsettingsGetCall) Do(opts ...googleapi.CallOption) (*CheckoutSettings, error) {
 24045  	gensupport.SetOptions(c.urlParams_, opts...)
 24046  	res, err := c.doRequest("json")
 24047  	if res != nil && res.StatusCode == http.StatusNotModified {
 24048  		if res.Body != nil {
 24049  			res.Body.Close()
 24050  		}
 24051  		return nil, gensupport.WrapError(&googleapi.Error{
 24052  			Code:   res.StatusCode,
 24053  			Header: res.Header,
 24054  		})
 24055  	}
 24056  	if err != nil {
 24057  		return nil, err
 24058  	}
 24059  	defer googleapi.CloseBody(res)
 24060  	if err := googleapi.CheckResponse(res); err != nil {
 24061  		return nil, gensupport.WrapError(err)
 24062  	}
 24063  	ret := &CheckoutSettings{
 24064  		ServerResponse: googleapi.ServerResponse{
 24065  			Header:         res.Header,
 24066  			HTTPStatusCode: res.StatusCode,
 24067  		},
 24068  	}
 24069  	target := &ret
 24070  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24071  		return nil, err
 24072  	}
 24073  	return ret, nil
 24074  }
 24075  
 24076  type FreelistingsprogramCheckoutsettingsInsertCall struct {
 24077  	s                             *APIService
 24078  	merchantId                    int64
 24079  	insertcheckoutsettingsrequest *InsertCheckoutSettingsRequest
 24080  	urlParams_                    gensupport.URLParams
 24081  	ctx_                          context.Context
 24082  	header_                       http.Header
 24083  }
 24084  
 24085  // Insert: Enrolls merchant in `Checkout` program.
 24086  //
 24087  // - merchantId: The ID of the account.
 24088  func (r *FreelistingsprogramCheckoutsettingsService) Insert(merchantId int64, insertcheckoutsettingsrequest *InsertCheckoutSettingsRequest) *FreelistingsprogramCheckoutsettingsInsertCall {
 24089  	c := &FreelistingsprogramCheckoutsettingsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24090  	c.merchantId = merchantId
 24091  	c.insertcheckoutsettingsrequest = insertcheckoutsettingsrequest
 24092  	return c
 24093  }
 24094  
 24095  // Fields allows partial responses to be retrieved. See
 24096  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24097  // details.
 24098  func (c *FreelistingsprogramCheckoutsettingsInsertCall) Fields(s ...googleapi.Field) *FreelistingsprogramCheckoutsettingsInsertCall {
 24099  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24100  	return c
 24101  }
 24102  
 24103  // Context sets the context to be used in this call's Do method.
 24104  func (c *FreelistingsprogramCheckoutsettingsInsertCall) Context(ctx context.Context) *FreelistingsprogramCheckoutsettingsInsertCall {
 24105  	c.ctx_ = ctx
 24106  	return c
 24107  }
 24108  
 24109  // Header returns a http.Header that can be modified by the caller to add
 24110  // headers to the request.
 24111  func (c *FreelistingsprogramCheckoutsettingsInsertCall) Header() http.Header {
 24112  	if c.header_ == nil {
 24113  		c.header_ = make(http.Header)
 24114  	}
 24115  	return c.header_
 24116  }
 24117  
 24118  func (c *FreelistingsprogramCheckoutsettingsInsertCall) doRequest(alt string) (*http.Response, error) {
 24119  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24120  	var body io.Reader = nil
 24121  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.insertcheckoutsettingsrequest)
 24122  	if err != nil {
 24123  		return nil, err
 24124  	}
 24125  	c.urlParams_.Set("alt", alt)
 24126  	c.urlParams_.Set("prettyPrint", "false")
 24127  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/freelistingsprogram/checkoutsettings")
 24128  	urls += "?" + c.urlParams_.Encode()
 24129  	req, err := http.NewRequest("POST", urls, body)
 24130  	if err != nil {
 24131  		return nil, err
 24132  	}
 24133  	req.Header = reqHeaders
 24134  	googleapi.Expand(req.URL, map[string]string{
 24135  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 24136  	})
 24137  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24138  }
 24139  
 24140  // Do executes the "content.freelistingsprogram.checkoutsettings.insert" call.
 24141  // Any non-2xx status code is an error. Response headers are in either
 24142  // *CheckoutSettings.ServerResponse.Header or (if a response was returned at
 24143  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24144  // check whether the returned error was because http.StatusNotModified was
 24145  // returned.
 24146  func (c *FreelistingsprogramCheckoutsettingsInsertCall) Do(opts ...googleapi.CallOption) (*CheckoutSettings, error) {
 24147  	gensupport.SetOptions(c.urlParams_, opts...)
 24148  	res, err := c.doRequest("json")
 24149  	if res != nil && res.StatusCode == http.StatusNotModified {
 24150  		if res.Body != nil {
 24151  			res.Body.Close()
 24152  		}
 24153  		return nil, gensupport.WrapError(&googleapi.Error{
 24154  			Code:   res.StatusCode,
 24155  			Header: res.Header,
 24156  		})
 24157  	}
 24158  	if err != nil {
 24159  		return nil, err
 24160  	}
 24161  	defer googleapi.CloseBody(res)
 24162  	if err := googleapi.CheckResponse(res); err != nil {
 24163  		return nil, gensupport.WrapError(err)
 24164  	}
 24165  	ret := &CheckoutSettings{
 24166  		ServerResponse: googleapi.ServerResponse{
 24167  			Header:         res.Header,
 24168  			HTTPStatusCode: res.StatusCode,
 24169  		},
 24170  	}
 24171  	target := &ret
 24172  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24173  		return nil, err
 24174  	}
 24175  	return ret, nil
 24176  }
 24177  
 24178  type LiasettingsCustombatchCall struct {
 24179  	s                             *APIService
 24180  	liasettingscustombatchrequest *LiasettingsCustomBatchRequest
 24181  	urlParams_                    gensupport.URLParams
 24182  	ctx_                          context.Context
 24183  	header_                       http.Header
 24184  }
 24185  
 24186  // Custombatch: Retrieves and/or updates the LIA settings of multiple accounts
 24187  // in a single request.
 24188  func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall {
 24189  	c := &LiasettingsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24190  	c.liasettingscustombatchrequest = liasettingscustombatchrequest
 24191  	return c
 24192  }
 24193  
 24194  // Fields allows partial responses to be retrieved. See
 24195  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24196  // details.
 24197  func (c *LiasettingsCustombatchCall) Fields(s ...googleapi.Field) *LiasettingsCustombatchCall {
 24198  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24199  	return c
 24200  }
 24201  
 24202  // Context sets the context to be used in this call's Do method.
 24203  func (c *LiasettingsCustombatchCall) Context(ctx context.Context) *LiasettingsCustombatchCall {
 24204  	c.ctx_ = ctx
 24205  	return c
 24206  }
 24207  
 24208  // Header returns a http.Header that can be modified by the caller to add
 24209  // headers to the request.
 24210  func (c *LiasettingsCustombatchCall) Header() http.Header {
 24211  	if c.header_ == nil {
 24212  		c.header_ = make(http.Header)
 24213  	}
 24214  	return c.header_
 24215  }
 24216  
 24217  func (c *LiasettingsCustombatchCall) doRequest(alt string) (*http.Response, error) {
 24218  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24219  	var body io.Reader = nil
 24220  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.liasettingscustombatchrequest)
 24221  	if err != nil {
 24222  		return nil, err
 24223  	}
 24224  	c.urlParams_.Set("alt", alt)
 24225  	c.urlParams_.Set("prettyPrint", "false")
 24226  	urls := googleapi.ResolveRelative(c.s.BasePath, "liasettings/batch")
 24227  	urls += "?" + c.urlParams_.Encode()
 24228  	req, err := http.NewRequest("POST", urls, body)
 24229  	if err != nil {
 24230  		return nil, err
 24231  	}
 24232  	req.Header = reqHeaders
 24233  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24234  }
 24235  
 24236  // Do executes the "content.liasettings.custombatch" call.
 24237  // Any non-2xx status code is an error. Response headers are in either
 24238  // *LiasettingsCustomBatchResponse.ServerResponse.Header or (if a response was
 24239  // returned at all) in error.(*googleapi.Error).Header. Use
 24240  // googleapi.IsNotModified to check whether the returned error was because
 24241  // http.StatusNotModified was returned.
 24242  func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*LiasettingsCustomBatchResponse, error) {
 24243  	gensupport.SetOptions(c.urlParams_, opts...)
 24244  	res, err := c.doRequest("json")
 24245  	if res != nil && res.StatusCode == http.StatusNotModified {
 24246  		if res.Body != nil {
 24247  			res.Body.Close()
 24248  		}
 24249  		return nil, gensupport.WrapError(&googleapi.Error{
 24250  			Code:   res.StatusCode,
 24251  			Header: res.Header,
 24252  		})
 24253  	}
 24254  	if err != nil {
 24255  		return nil, err
 24256  	}
 24257  	defer googleapi.CloseBody(res)
 24258  	if err := googleapi.CheckResponse(res); err != nil {
 24259  		return nil, gensupport.WrapError(err)
 24260  	}
 24261  	ret := &LiasettingsCustomBatchResponse{
 24262  		ServerResponse: googleapi.ServerResponse{
 24263  			Header:         res.Header,
 24264  			HTTPStatusCode: res.StatusCode,
 24265  		},
 24266  	}
 24267  	target := &ret
 24268  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24269  		return nil, err
 24270  	}
 24271  	return ret, nil
 24272  }
 24273  
 24274  type LiasettingsGetCall struct {
 24275  	s            *APIService
 24276  	merchantId   uint64
 24277  	accountId    uint64
 24278  	urlParams_   gensupport.URLParams
 24279  	ifNoneMatch_ string
 24280  	ctx_         context.Context
 24281  	header_      http.Header
 24282  }
 24283  
 24284  // Get: Retrieves the LIA settings of the account.
 24285  //
 24286  //   - accountId: The ID of the account for which to get or update LIA settings.
 24287  //   - merchantId: The ID of the managing account. If this parameter is not the
 24288  //     same as accountId, then this account must be a multi-client account and
 24289  //     `accountId` must be the ID of a sub-account of this account.
 24290  func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall {
 24291  	c := &LiasettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24292  	c.merchantId = merchantId
 24293  	c.accountId = accountId
 24294  	return c
 24295  }
 24296  
 24297  // Fields allows partial responses to be retrieved. See
 24298  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24299  // details.
 24300  func (c *LiasettingsGetCall) Fields(s ...googleapi.Field) *LiasettingsGetCall {
 24301  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24302  	return c
 24303  }
 24304  
 24305  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24306  // object's ETag matches the given value. This is useful for getting updates
 24307  // only after the object has changed since the last request.
 24308  func (c *LiasettingsGetCall) IfNoneMatch(entityTag string) *LiasettingsGetCall {
 24309  	c.ifNoneMatch_ = entityTag
 24310  	return c
 24311  }
 24312  
 24313  // Context sets the context to be used in this call's Do method.
 24314  func (c *LiasettingsGetCall) Context(ctx context.Context) *LiasettingsGetCall {
 24315  	c.ctx_ = ctx
 24316  	return c
 24317  }
 24318  
 24319  // Header returns a http.Header that can be modified by the caller to add
 24320  // headers to the request.
 24321  func (c *LiasettingsGetCall) Header() http.Header {
 24322  	if c.header_ == nil {
 24323  		c.header_ = make(http.Header)
 24324  	}
 24325  	return c.header_
 24326  }
 24327  
 24328  func (c *LiasettingsGetCall) doRequest(alt string) (*http.Response, error) {
 24329  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24330  	if c.ifNoneMatch_ != "" {
 24331  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24332  	}
 24333  	var body io.Reader = nil
 24334  	c.urlParams_.Set("alt", alt)
 24335  	c.urlParams_.Set("prettyPrint", "false")
 24336  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}")
 24337  	urls += "?" + c.urlParams_.Encode()
 24338  	req, err := http.NewRequest("GET", urls, body)
 24339  	if err != nil {
 24340  		return nil, err
 24341  	}
 24342  	req.Header = reqHeaders
 24343  	googleapi.Expand(req.URL, map[string]string{
 24344  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 24345  		"accountId":  strconv.FormatUint(c.accountId, 10),
 24346  	})
 24347  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24348  }
 24349  
 24350  // Do executes the "content.liasettings.get" call.
 24351  // Any non-2xx status code is an error. Response headers are in either
 24352  // *LiaSettings.ServerResponse.Header or (if a response was returned at all) in
 24353  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24354  // whether the returned error was because http.StatusNotModified was returned.
 24355  func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error) {
 24356  	gensupport.SetOptions(c.urlParams_, opts...)
 24357  	res, err := c.doRequest("json")
 24358  	if res != nil && res.StatusCode == http.StatusNotModified {
 24359  		if res.Body != nil {
 24360  			res.Body.Close()
 24361  		}
 24362  		return nil, gensupport.WrapError(&googleapi.Error{
 24363  			Code:   res.StatusCode,
 24364  			Header: res.Header,
 24365  		})
 24366  	}
 24367  	if err != nil {
 24368  		return nil, err
 24369  	}
 24370  	defer googleapi.CloseBody(res)
 24371  	if err := googleapi.CheckResponse(res); err != nil {
 24372  		return nil, gensupport.WrapError(err)
 24373  	}
 24374  	ret := &LiaSettings{
 24375  		ServerResponse: googleapi.ServerResponse{
 24376  			Header:         res.Header,
 24377  			HTTPStatusCode: res.StatusCode,
 24378  		},
 24379  	}
 24380  	target := &ret
 24381  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24382  		return nil, err
 24383  	}
 24384  	return ret, nil
 24385  }
 24386  
 24387  type LiasettingsGetaccessiblegmbaccountsCall struct {
 24388  	s            *APIService
 24389  	merchantId   uint64
 24390  	accountId    uint64
 24391  	urlParams_   gensupport.URLParams
 24392  	ifNoneMatch_ string
 24393  	ctx_         context.Context
 24394  	header_      http.Header
 24395  }
 24396  
 24397  // Getaccessiblegmbaccounts: Retrieves the list of accessible Business
 24398  // Profiles.
 24399  //
 24400  //   - accountId: The ID of the account for which to retrieve accessible Business
 24401  //     Profiles.
 24402  //   - merchantId: The ID of the managing account. If this parameter is not the
 24403  //     same as accountId, then this account must be a multi-client account and
 24404  //     `accountId` must be the ID of a sub-account of this account.
 24405  func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall {
 24406  	c := &LiasettingsGetaccessiblegmbaccountsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24407  	c.merchantId = merchantId
 24408  	c.accountId = accountId
 24409  	return c
 24410  }
 24411  
 24412  // Fields allows partial responses to be retrieved. See
 24413  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24414  // details.
 24415  func (c *LiasettingsGetaccessiblegmbaccountsCall) Fields(s ...googleapi.Field) *LiasettingsGetaccessiblegmbaccountsCall {
 24416  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24417  	return c
 24418  }
 24419  
 24420  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24421  // object's ETag matches the given value. This is useful for getting updates
 24422  // only after the object has changed since the last request.
 24423  func (c *LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch(entityTag string) *LiasettingsGetaccessiblegmbaccountsCall {
 24424  	c.ifNoneMatch_ = entityTag
 24425  	return c
 24426  }
 24427  
 24428  // Context sets the context to be used in this call's Do method.
 24429  func (c *LiasettingsGetaccessiblegmbaccountsCall) Context(ctx context.Context) *LiasettingsGetaccessiblegmbaccountsCall {
 24430  	c.ctx_ = ctx
 24431  	return c
 24432  }
 24433  
 24434  // Header returns a http.Header that can be modified by the caller to add
 24435  // headers to the request.
 24436  func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header {
 24437  	if c.header_ == nil {
 24438  		c.header_ = make(http.Header)
 24439  	}
 24440  	return c.header_
 24441  }
 24442  
 24443  func (c *LiasettingsGetaccessiblegmbaccountsCall) doRequest(alt string) (*http.Response, error) {
 24444  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24445  	if c.ifNoneMatch_ != "" {
 24446  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24447  	}
 24448  	var body io.Reader = nil
 24449  	c.urlParams_.Set("alt", alt)
 24450  	c.urlParams_.Set("prettyPrint", "false")
 24451  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/accessiblegmbaccounts")
 24452  	urls += "?" + c.urlParams_.Encode()
 24453  	req, err := http.NewRequest("GET", urls, body)
 24454  	if err != nil {
 24455  		return nil, err
 24456  	}
 24457  	req.Header = reqHeaders
 24458  	googleapi.Expand(req.URL, map[string]string{
 24459  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 24460  		"accountId":  strconv.FormatUint(c.accountId, 10),
 24461  	})
 24462  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24463  }
 24464  
 24465  // Do executes the "content.liasettings.getaccessiblegmbaccounts" call.
 24466  // Any non-2xx status code is an error. Response headers are in either
 24467  // *LiasettingsGetAccessibleGmbAccountsResponse.ServerResponse.Header or (if a
 24468  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24469  // googleapi.IsNotModified to check whether the returned error was because
 24470  // http.StatusNotModified was returned.
 24471  func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOption) (*LiasettingsGetAccessibleGmbAccountsResponse, error) {
 24472  	gensupport.SetOptions(c.urlParams_, opts...)
 24473  	res, err := c.doRequest("json")
 24474  	if res != nil && res.StatusCode == http.StatusNotModified {
 24475  		if res.Body != nil {
 24476  			res.Body.Close()
 24477  		}
 24478  		return nil, gensupport.WrapError(&googleapi.Error{
 24479  			Code:   res.StatusCode,
 24480  			Header: res.Header,
 24481  		})
 24482  	}
 24483  	if err != nil {
 24484  		return nil, err
 24485  	}
 24486  	defer googleapi.CloseBody(res)
 24487  	if err := googleapi.CheckResponse(res); err != nil {
 24488  		return nil, gensupport.WrapError(err)
 24489  	}
 24490  	ret := &LiasettingsGetAccessibleGmbAccountsResponse{
 24491  		ServerResponse: googleapi.ServerResponse{
 24492  			Header:         res.Header,
 24493  			HTTPStatusCode: res.StatusCode,
 24494  		},
 24495  	}
 24496  	target := &ret
 24497  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24498  		return nil, err
 24499  	}
 24500  	return ret, nil
 24501  }
 24502  
 24503  type LiasettingsListCall struct {
 24504  	s            *APIService
 24505  	merchantId   uint64
 24506  	urlParams_   gensupport.URLParams
 24507  	ifNoneMatch_ string
 24508  	ctx_         context.Context
 24509  	header_      http.Header
 24510  }
 24511  
 24512  // List: Lists the LIA settings of the sub-accounts in your Merchant Center
 24513  // account.
 24514  //
 24515  //   - merchantId: The ID of the managing account. This must be a multi-client
 24516  //     account.
 24517  func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall {
 24518  	c := &LiasettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24519  	c.merchantId = merchantId
 24520  	return c
 24521  }
 24522  
 24523  // MaxResults sets the optional parameter "maxResults": The maximum number of
 24524  // LIA settings to return in the response, used for paging.
 24525  func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall {
 24526  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 24527  	return c
 24528  }
 24529  
 24530  // PageToken sets the optional parameter "pageToken": The token returned by the
 24531  // previous request.
 24532  func (c *LiasettingsListCall) PageToken(pageToken string) *LiasettingsListCall {
 24533  	c.urlParams_.Set("pageToken", pageToken)
 24534  	return c
 24535  }
 24536  
 24537  // Fields allows partial responses to be retrieved. See
 24538  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24539  // details.
 24540  func (c *LiasettingsListCall) Fields(s ...googleapi.Field) *LiasettingsListCall {
 24541  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24542  	return c
 24543  }
 24544  
 24545  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24546  // object's ETag matches the given value. This is useful for getting updates
 24547  // only after the object has changed since the last request.
 24548  func (c *LiasettingsListCall) IfNoneMatch(entityTag string) *LiasettingsListCall {
 24549  	c.ifNoneMatch_ = entityTag
 24550  	return c
 24551  }
 24552  
 24553  // Context sets the context to be used in this call's Do method.
 24554  func (c *LiasettingsListCall) Context(ctx context.Context) *LiasettingsListCall {
 24555  	c.ctx_ = ctx
 24556  	return c
 24557  }
 24558  
 24559  // Header returns a http.Header that can be modified by the caller to add
 24560  // headers to the request.
 24561  func (c *LiasettingsListCall) Header() http.Header {
 24562  	if c.header_ == nil {
 24563  		c.header_ = make(http.Header)
 24564  	}
 24565  	return c.header_
 24566  }
 24567  
 24568  func (c *LiasettingsListCall) doRequest(alt string) (*http.Response, error) {
 24569  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24570  	if c.ifNoneMatch_ != "" {
 24571  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24572  	}
 24573  	var body io.Reader = nil
 24574  	c.urlParams_.Set("alt", alt)
 24575  	c.urlParams_.Set("prettyPrint", "false")
 24576  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings")
 24577  	urls += "?" + c.urlParams_.Encode()
 24578  	req, err := http.NewRequest("GET", urls, body)
 24579  	if err != nil {
 24580  		return nil, err
 24581  	}
 24582  	req.Header = reqHeaders
 24583  	googleapi.Expand(req.URL, map[string]string{
 24584  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 24585  	})
 24586  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24587  }
 24588  
 24589  // Do executes the "content.liasettings.list" call.
 24590  // Any non-2xx status code is an error. Response headers are in either
 24591  // *LiasettingsListResponse.ServerResponse.Header or (if a response was
 24592  // returned at all) in error.(*googleapi.Error).Header. Use
 24593  // googleapi.IsNotModified to check whether the returned error was because
 24594  // http.StatusNotModified was returned.
 24595  func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsListResponse, error) {
 24596  	gensupport.SetOptions(c.urlParams_, opts...)
 24597  	res, err := c.doRequest("json")
 24598  	if res != nil && res.StatusCode == http.StatusNotModified {
 24599  		if res.Body != nil {
 24600  			res.Body.Close()
 24601  		}
 24602  		return nil, gensupport.WrapError(&googleapi.Error{
 24603  			Code:   res.StatusCode,
 24604  			Header: res.Header,
 24605  		})
 24606  	}
 24607  	if err != nil {
 24608  		return nil, err
 24609  	}
 24610  	defer googleapi.CloseBody(res)
 24611  	if err := googleapi.CheckResponse(res); err != nil {
 24612  		return nil, gensupport.WrapError(err)
 24613  	}
 24614  	ret := &LiasettingsListResponse{
 24615  		ServerResponse: googleapi.ServerResponse{
 24616  			Header:         res.Header,
 24617  			HTTPStatusCode: res.StatusCode,
 24618  		},
 24619  	}
 24620  	target := &ret
 24621  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24622  		return nil, err
 24623  	}
 24624  	return ret, nil
 24625  }
 24626  
 24627  // Pages invokes f for each page of results.
 24628  // A non-nil error returned from f will halt the iteration.
 24629  // The provided context supersedes any context provided to the Context method.
 24630  func (c *LiasettingsListCall) Pages(ctx context.Context, f func(*LiasettingsListResponse) error) error {
 24631  	c.ctx_ = ctx
 24632  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24633  	for {
 24634  		x, err := c.Do()
 24635  		if err != nil {
 24636  			return err
 24637  		}
 24638  		if err := f(x); err != nil {
 24639  			return err
 24640  		}
 24641  		if x.NextPageToken == "" {
 24642  			return nil
 24643  		}
 24644  		c.PageToken(x.NextPageToken)
 24645  	}
 24646  }
 24647  
 24648  type LiasettingsListposdataprovidersCall struct {
 24649  	s            *APIService
 24650  	urlParams_   gensupport.URLParams
 24651  	ifNoneMatch_ string
 24652  	ctx_         context.Context
 24653  	header_      http.Header
 24654  }
 24655  
 24656  // Listposdataproviders: Retrieves the list of POS data providers that have
 24657  // active settings for the all eiligible countries.
 24658  func (r *LiasettingsService) Listposdataproviders() *LiasettingsListposdataprovidersCall {
 24659  	c := &LiasettingsListposdataprovidersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24660  	return c
 24661  }
 24662  
 24663  // Fields allows partial responses to be retrieved. See
 24664  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24665  // details.
 24666  func (c *LiasettingsListposdataprovidersCall) Fields(s ...googleapi.Field) *LiasettingsListposdataprovidersCall {
 24667  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24668  	return c
 24669  }
 24670  
 24671  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24672  // object's ETag matches the given value. This is useful for getting updates
 24673  // only after the object has changed since the last request.
 24674  func (c *LiasettingsListposdataprovidersCall) IfNoneMatch(entityTag string) *LiasettingsListposdataprovidersCall {
 24675  	c.ifNoneMatch_ = entityTag
 24676  	return c
 24677  }
 24678  
 24679  // Context sets the context to be used in this call's Do method.
 24680  func (c *LiasettingsListposdataprovidersCall) Context(ctx context.Context) *LiasettingsListposdataprovidersCall {
 24681  	c.ctx_ = ctx
 24682  	return c
 24683  }
 24684  
 24685  // Header returns a http.Header that can be modified by the caller to add
 24686  // headers to the request.
 24687  func (c *LiasettingsListposdataprovidersCall) Header() http.Header {
 24688  	if c.header_ == nil {
 24689  		c.header_ = make(http.Header)
 24690  	}
 24691  	return c.header_
 24692  }
 24693  
 24694  func (c *LiasettingsListposdataprovidersCall) doRequest(alt string) (*http.Response, error) {
 24695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24696  	if c.ifNoneMatch_ != "" {
 24697  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24698  	}
 24699  	var body io.Reader = nil
 24700  	c.urlParams_.Set("alt", alt)
 24701  	c.urlParams_.Set("prettyPrint", "false")
 24702  	urls := googleapi.ResolveRelative(c.s.BasePath, "liasettings/posdataproviders")
 24703  	urls += "?" + c.urlParams_.Encode()
 24704  	req, err := http.NewRequest("GET", urls, body)
 24705  	if err != nil {
 24706  		return nil, err
 24707  	}
 24708  	req.Header = reqHeaders
 24709  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24710  }
 24711  
 24712  // Do executes the "content.liasettings.listposdataproviders" call.
 24713  // Any non-2xx status code is an error. Response headers are in either
 24714  // *LiasettingsListPosDataProvidersResponse.ServerResponse.Header or (if a
 24715  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24716  // googleapi.IsNotModified to check whether the returned error was because
 24717  // http.StatusNotModified was returned.
 24718  func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) (*LiasettingsListPosDataProvidersResponse, error) {
 24719  	gensupport.SetOptions(c.urlParams_, opts...)
 24720  	res, err := c.doRequest("json")
 24721  	if res != nil && res.StatusCode == http.StatusNotModified {
 24722  		if res.Body != nil {
 24723  			res.Body.Close()
 24724  		}
 24725  		return nil, gensupport.WrapError(&googleapi.Error{
 24726  			Code:   res.StatusCode,
 24727  			Header: res.Header,
 24728  		})
 24729  	}
 24730  	if err != nil {
 24731  		return nil, err
 24732  	}
 24733  	defer googleapi.CloseBody(res)
 24734  	if err := googleapi.CheckResponse(res); err != nil {
 24735  		return nil, gensupport.WrapError(err)
 24736  	}
 24737  	ret := &LiasettingsListPosDataProvidersResponse{
 24738  		ServerResponse: googleapi.ServerResponse{
 24739  			Header:         res.Header,
 24740  			HTTPStatusCode: res.StatusCode,
 24741  		},
 24742  	}
 24743  	target := &ret
 24744  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24745  		return nil, err
 24746  	}
 24747  	return ret, nil
 24748  }
 24749  
 24750  type LiasettingsRequestgmbaccessCall struct {
 24751  	s          *APIService
 24752  	merchantId uint64
 24753  	accountId  uint64
 24754  	urlParams_ gensupport.URLParams
 24755  	ctx_       context.Context
 24756  	header_    http.Header
 24757  }
 24758  
 24759  // Requestgmbaccess: Requests access to a specified Business Profile.
 24760  //
 24761  //   - accountId: The ID of the account for which Business Profile access is
 24762  //     requested.
 24763  //   - gmbEmail: The email of the Business Profile.
 24764  //   - merchantId: The ID of the managing account. If this parameter is not the
 24765  //     same as accountId, then this account must be a multi-client account and
 24766  //     `accountId` must be the ID of a sub-account of this account.
 24767  func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64, gmbEmail string) *LiasettingsRequestgmbaccessCall {
 24768  	c := &LiasettingsRequestgmbaccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24769  	c.merchantId = merchantId
 24770  	c.accountId = accountId
 24771  	c.urlParams_.Set("gmbEmail", gmbEmail)
 24772  	return c
 24773  }
 24774  
 24775  // Fields allows partial responses to be retrieved. See
 24776  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24777  // details.
 24778  func (c *LiasettingsRequestgmbaccessCall) Fields(s ...googleapi.Field) *LiasettingsRequestgmbaccessCall {
 24779  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24780  	return c
 24781  }
 24782  
 24783  // Context sets the context to be used in this call's Do method.
 24784  func (c *LiasettingsRequestgmbaccessCall) Context(ctx context.Context) *LiasettingsRequestgmbaccessCall {
 24785  	c.ctx_ = ctx
 24786  	return c
 24787  }
 24788  
 24789  // Header returns a http.Header that can be modified by the caller to add
 24790  // headers to the request.
 24791  func (c *LiasettingsRequestgmbaccessCall) Header() http.Header {
 24792  	if c.header_ == nil {
 24793  		c.header_ = make(http.Header)
 24794  	}
 24795  	return c.header_
 24796  }
 24797  
 24798  func (c *LiasettingsRequestgmbaccessCall) doRequest(alt string) (*http.Response, error) {
 24799  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24800  	var body io.Reader = nil
 24801  	c.urlParams_.Set("alt", alt)
 24802  	c.urlParams_.Set("prettyPrint", "false")
 24803  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/requestgmbaccess")
 24804  	urls += "?" + c.urlParams_.Encode()
 24805  	req, err := http.NewRequest("POST", urls, body)
 24806  	if err != nil {
 24807  		return nil, err
 24808  	}
 24809  	req.Header = reqHeaders
 24810  	googleapi.Expand(req.URL, map[string]string{
 24811  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 24812  		"accountId":  strconv.FormatUint(c.accountId, 10),
 24813  	})
 24814  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24815  }
 24816  
 24817  // Do executes the "content.liasettings.requestgmbaccess" call.
 24818  // Any non-2xx status code is an error. Response headers are in either
 24819  // *LiasettingsRequestGmbAccessResponse.ServerResponse.Header or (if a response
 24820  // was returned at all) in error.(*googleapi.Error).Header. Use
 24821  // googleapi.IsNotModified to check whether the returned error was because
 24822  // http.StatusNotModified was returned.
 24823  func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestGmbAccessResponse, error) {
 24824  	gensupport.SetOptions(c.urlParams_, opts...)
 24825  	res, err := c.doRequest("json")
 24826  	if res != nil && res.StatusCode == http.StatusNotModified {
 24827  		if res.Body != nil {
 24828  			res.Body.Close()
 24829  		}
 24830  		return nil, gensupport.WrapError(&googleapi.Error{
 24831  			Code:   res.StatusCode,
 24832  			Header: res.Header,
 24833  		})
 24834  	}
 24835  	if err != nil {
 24836  		return nil, err
 24837  	}
 24838  	defer googleapi.CloseBody(res)
 24839  	if err := googleapi.CheckResponse(res); err != nil {
 24840  		return nil, gensupport.WrapError(err)
 24841  	}
 24842  	ret := &LiasettingsRequestGmbAccessResponse{
 24843  		ServerResponse: googleapi.ServerResponse{
 24844  			Header:         res.Header,
 24845  			HTTPStatusCode: res.StatusCode,
 24846  		},
 24847  	}
 24848  	target := &ret
 24849  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24850  		return nil, err
 24851  	}
 24852  	return ret, nil
 24853  }
 24854  
 24855  type LiasettingsRequestinventoryverificationCall struct {
 24856  	s          *APIService
 24857  	merchantId uint64
 24858  	accountId  uint64
 24859  	country    string
 24860  	urlParams_ gensupport.URLParams
 24861  	ctx_       context.Context
 24862  	header_    http.Header
 24863  }
 24864  
 24865  // Requestinventoryverification: Requests inventory validation for the
 24866  // specified country.
 24867  //
 24868  //   - accountId: The ID of the account that manages the order. This cannot be a
 24869  //     multi-client account.
 24870  //   - country: The country for which inventory validation is requested.
 24871  //   - merchantId: The ID of the managing account. If this parameter is not the
 24872  //     same as accountId, then this account must be a multi-client account and
 24873  //     `accountId` must be the ID of a sub-account of this account.
 24874  func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall {
 24875  	c := &LiasettingsRequestinventoryverificationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24876  	c.merchantId = merchantId
 24877  	c.accountId = accountId
 24878  	c.country = country
 24879  	return c
 24880  }
 24881  
 24882  // Fields allows partial responses to be retrieved. See
 24883  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24884  // details.
 24885  func (c *LiasettingsRequestinventoryverificationCall) Fields(s ...googleapi.Field) *LiasettingsRequestinventoryverificationCall {
 24886  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24887  	return c
 24888  }
 24889  
 24890  // Context sets the context to be used in this call's Do method.
 24891  func (c *LiasettingsRequestinventoryverificationCall) Context(ctx context.Context) *LiasettingsRequestinventoryverificationCall {
 24892  	c.ctx_ = ctx
 24893  	return c
 24894  }
 24895  
 24896  // Header returns a http.Header that can be modified by the caller to add
 24897  // headers to the request.
 24898  func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header {
 24899  	if c.header_ == nil {
 24900  		c.header_ = make(http.Header)
 24901  	}
 24902  	return c.header_
 24903  }
 24904  
 24905  func (c *LiasettingsRequestinventoryverificationCall) doRequest(alt string) (*http.Response, error) {
 24906  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24907  	var body io.Reader = nil
 24908  	c.urlParams_.Set("alt", alt)
 24909  	c.urlParams_.Set("prettyPrint", "false")
 24910  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}")
 24911  	urls += "?" + c.urlParams_.Encode()
 24912  	req, err := http.NewRequest("POST", urls, body)
 24913  	if err != nil {
 24914  		return nil, err
 24915  	}
 24916  	req.Header = reqHeaders
 24917  	googleapi.Expand(req.URL, map[string]string{
 24918  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 24919  		"accountId":  strconv.FormatUint(c.accountId, 10),
 24920  		"country":    c.country,
 24921  	})
 24922  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24923  }
 24924  
 24925  // Do executes the "content.liasettings.requestinventoryverification" call.
 24926  // Any non-2xx status code is an error. Response headers are in either
 24927  // *LiasettingsRequestInventoryVerificationResponse.ServerResponse.Header or
 24928  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24929  // googleapi.IsNotModified to check whether the returned error was because
 24930  // http.StatusNotModified was returned.
 24931  func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestInventoryVerificationResponse, error) {
 24932  	gensupport.SetOptions(c.urlParams_, opts...)
 24933  	res, err := c.doRequest("json")
 24934  	if res != nil && res.StatusCode == http.StatusNotModified {
 24935  		if res.Body != nil {
 24936  			res.Body.Close()
 24937  		}
 24938  		return nil, gensupport.WrapError(&googleapi.Error{
 24939  			Code:   res.StatusCode,
 24940  			Header: res.Header,
 24941  		})
 24942  	}
 24943  	if err != nil {
 24944  		return nil, err
 24945  	}
 24946  	defer googleapi.CloseBody(res)
 24947  	if err := googleapi.CheckResponse(res); err != nil {
 24948  		return nil, gensupport.WrapError(err)
 24949  	}
 24950  	ret := &LiasettingsRequestInventoryVerificationResponse{
 24951  		ServerResponse: googleapi.ServerResponse{
 24952  			Header:         res.Header,
 24953  			HTTPStatusCode: res.StatusCode,
 24954  		},
 24955  	}
 24956  	target := &ret
 24957  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24958  		return nil, err
 24959  	}
 24960  	return ret, nil
 24961  }
 24962  
 24963  type LiasettingsSetinventoryverificationcontactCall struct {
 24964  	s          *APIService
 24965  	merchantId uint64
 24966  	accountId  uint64
 24967  	urlParams_ gensupport.URLParams
 24968  	ctx_       context.Context
 24969  	header_    http.Header
 24970  }
 24971  
 24972  // Setinventoryverificationcontact: Sets the inventory verification contract
 24973  // for the specified country.
 24974  //
 24975  //   - accountId: The ID of the account that manages the order. This cannot be a
 24976  //     multi-client account.
 24977  //   - contactEmail: The email of the inventory verification contact.
 24978  //   - contactName: The name of the inventory verification contact.
 24979  //   - country: The country for which inventory verification is requested.
 24980  //   - language: The language for which inventory verification is requested.
 24981  //   - merchantId: The ID of the managing account. If this parameter is not the
 24982  //     same as accountId, then this account must be a multi-client account and
 24983  //     `accountId` must be the ID of a sub-account of this account.
 24984  func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, country string, language string, contactName string, contactEmail string) *LiasettingsSetinventoryverificationcontactCall {
 24985  	c := &LiasettingsSetinventoryverificationcontactCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24986  	c.merchantId = merchantId
 24987  	c.accountId = accountId
 24988  	c.urlParams_.Set("country", country)
 24989  	c.urlParams_.Set("language", language)
 24990  	c.urlParams_.Set("contactName", contactName)
 24991  	c.urlParams_.Set("contactEmail", contactEmail)
 24992  	return c
 24993  }
 24994  
 24995  // Fields allows partial responses to be retrieved. See
 24996  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24997  // details.
 24998  func (c *LiasettingsSetinventoryverificationcontactCall) Fields(s ...googleapi.Field) *LiasettingsSetinventoryverificationcontactCall {
 24999  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25000  	return c
 25001  }
 25002  
 25003  // Context sets the context to be used in this call's Do method.
 25004  func (c *LiasettingsSetinventoryverificationcontactCall) Context(ctx context.Context) *LiasettingsSetinventoryverificationcontactCall {
 25005  	c.ctx_ = ctx
 25006  	return c
 25007  }
 25008  
 25009  // Header returns a http.Header that can be modified by the caller to add
 25010  // headers to the request.
 25011  func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header {
 25012  	if c.header_ == nil {
 25013  		c.header_ = make(http.Header)
 25014  	}
 25015  	return c.header_
 25016  }
 25017  
 25018  func (c *LiasettingsSetinventoryverificationcontactCall) doRequest(alt string) (*http.Response, error) {
 25019  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25020  	var body io.Reader = nil
 25021  	c.urlParams_.Set("alt", alt)
 25022  	c.urlParams_.Set("prettyPrint", "false")
 25023  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setinventoryverificationcontact")
 25024  	urls += "?" + c.urlParams_.Encode()
 25025  	req, err := http.NewRequest("POST", urls, body)
 25026  	if err != nil {
 25027  		return nil, err
 25028  	}
 25029  	req.Header = reqHeaders
 25030  	googleapi.Expand(req.URL, map[string]string{
 25031  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 25032  		"accountId":  strconv.FormatUint(c.accountId, 10),
 25033  	})
 25034  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25035  }
 25036  
 25037  // Do executes the "content.liasettings.setinventoryverificationcontact" call.
 25038  // Any non-2xx status code is an error. Response headers are in either
 25039  // *LiasettingsSetInventoryVerificationContactResponse.ServerResponse.Header or
 25040  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 25041  // googleapi.IsNotModified to check whether the returned error was because
 25042  // http.StatusNotModified was returned.
 25043  func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetInventoryVerificationContactResponse, error) {
 25044  	gensupport.SetOptions(c.urlParams_, opts...)
 25045  	res, err := c.doRequest("json")
 25046  	if res != nil && res.StatusCode == http.StatusNotModified {
 25047  		if res.Body != nil {
 25048  			res.Body.Close()
 25049  		}
 25050  		return nil, gensupport.WrapError(&googleapi.Error{
 25051  			Code:   res.StatusCode,
 25052  			Header: res.Header,
 25053  		})
 25054  	}
 25055  	if err != nil {
 25056  		return nil, err
 25057  	}
 25058  	defer googleapi.CloseBody(res)
 25059  	if err := googleapi.CheckResponse(res); err != nil {
 25060  		return nil, gensupport.WrapError(err)
 25061  	}
 25062  	ret := &LiasettingsSetInventoryVerificationContactResponse{
 25063  		ServerResponse: googleapi.ServerResponse{
 25064  			Header:         res.Header,
 25065  			HTTPStatusCode: res.StatusCode,
 25066  		},
 25067  	}
 25068  	target := &ret
 25069  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25070  		return nil, err
 25071  	}
 25072  	return ret, nil
 25073  }
 25074  
 25075  type LiasettingsSetomnichannelexperienceCall struct {
 25076  	s          *APIService
 25077  	merchantId uint64
 25078  	accountId  uint64
 25079  	urlParams_ gensupport.URLParams
 25080  	ctx_       context.Context
 25081  	header_    http.Header
 25082  }
 25083  
 25084  // Setomnichannelexperience: Sets the omnichannel experience for the specified
 25085  // country. Only supported for merchants whose POS data provider is trusted to
 25086  // enable the corresponding experience. For more context, see these help
 25087  // articles about LFP (https://support.google.com/merchants/answer/7676652) and
 25088  // how to get started (https://support.google.com/merchants/answer/7676578)
 25089  // with it.
 25090  //
 25091  //   - accountId: The ID of the account for which to retrieve accessible Business
 25092  //     Profiles.
 25093  //   - merchantId: The ID of the managing account. If this parameter is not the
 25094  //     same as accountId, then this account must be a multi-client account and
 25095  //     `accountId` must be the ID of a sub-account of this account.
 25096  func (r *LiasettingsService) Setomnichannelexperience(merchantId uint64, accountId uint64) *LiasettingsSetomnichannelexperienceCall {
 25097  	c := &LiasettingsSetomnichannelexperienceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25098  	c.merchantId = merchantId
 25099  	c.accountId = accountId
 25100  	return c
 25101  }
 25102  
 25103  // Country sets the optional parameter "country": The CLDR country code (for
 25104  // example, "US") for which the omnichannel experience is selected.
 25105  func (c *LiasettingsSetomnichannelexperienceCall) Country(country string) *LiasettingsSetomnichannelexperienceCall {
 25106  	c.urlParams_.Set("country", country)
 25107  	return c
 25108  }
 25109  
 25110  // LsfType sets the optional parameter "lsfType": The Local Store Front (LSF)
 25111  // type for this country. Acceptable values are: - "ghlsf" (Google-Hosted
 25112  // Local Store Front) - "mhlsfBasic" (Merchant-Hosted Local Store Front
 25113  // Basic) - "mhlsfFull" (Merchant-Hosted Local Store Front Full) More details
 25114  // about these types can be found here.
 25115  func (c *LiasettingsSetomnichannelexperienceCall) LsfType(lsfType string) *LiasettingsSetomnichannelexperienceCall {
 25116  	c.urlParams_.Set("lsfType", lsfType)
 25117  	return c
 25118  }
 25119  
 25120  // PickupTypes sets the optional parameter "pickupTypes": The Pickup types for
 25121  // this country. Acceptable values are: - "pickupToday" - "pickupLater"
 25122  func (c *LiasettingsSetomnichannelexperienceCall) PickupTypes(pickupTypes ...string) *LiasettingsSetomnichannelexperienceCall {
 25123  	c.urlParams_.SetMulti("pickupTypes", append([]string{}, pickupTypes...))
 25124  	return c
 25125  }
 25126  
 25127  // Fields allows partial responses to be retrieved. See
 25128  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25129  // details.
 25130  func (c *LiasettingsSetomnichannelexperienceCall) Fields(s ...googleapi.Field) *LiasettingsSetomnichannelexperienceCall {
 25131  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25132  	return c
 25133  }
 25134  
 25135  // Context sets the context to be used in this call's Do method.
 25136  func (c *LiasettingsSetomnichannelexperienceCall) Context(ctx context.Context) *LiasettingsSetomnichannelexperienceCall {
 25137  	c.ctx_ = ctx
 25138  	return c
 25139  }
 25140  
 25141  // Header returns a http.Header that can be modified by the caller to add
 25142  // headers to the request.
 25143  func (c *LiasettingsSetomnichannelexperienceCall) Header() http.Header {
 25144  	if c.header_ == nil {
 25145  		c.header_ = make(http.Header)
 25146  	}
 25147  	return c.header_
 25148  }
 25149  
 25150  func (c *LiasettingsSetomnichannelexperienceCall) doRequest(alt string) (*http.Response, error) {
 25151  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25152  	var body io.Reader = nil
 25153  	c.urlParams_.Set("alt", alt)
 25154  	c.urlParams_.Set("prettyPrint", "false")
 25155  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setomnichannelexperience")
 25156  	urls += "?" + c.urlParams_.Encode()
 25157  	req, err := http.NewRequest("POST", urls, body)
 25158  	if err != nil {
 25159  		return nil, err
 25160  	}
 25161  	req.Header = reqHeaders
 25162  	googleapi.Expand(req.URL, map[string]string{
 25163  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 25164  		"accountId":  strconv.FormatUint(c.accountId, 10),
 25165  	})
 25166  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25167  }
 25168  
 25169  // Do executes the "content.liasettings.setomnichannelexperience" call.
 25170  // Any non-2xx status code is an error. Response headers are in either
 25171  // *LiaOmnichannelExperience.ServerResponse.Header or (if a response was
 25172  // returned at all) in error.(*googleapi.Error).Header. Use
 25173  // googleapi.IsNotModified to check whether the returned error was because
 25174  // http.StatusNotModified was returned.
 25175  func (c *LiasettingsSetomnichannelexperienceCall) Do(opts ...googleapi.CallOption) (*LiaOmnichannelExperience, error) {
 25176  	gensupport.SetOptions(c.urlParams_, opts...)
 25177  	res, err := c.doRequest("json")
 25178  	if res != nil && res.StatusCode == http.StatusNotModified {
 25179  		if res.Body != nil {
 25180  			res.Body.Close()
 25181  		}
 25182  		return nil, gensupport.WrapError(&googleapi.Error{
 25183  			Code:   res.StatusCode,
 25184  			Header: res.Header,
 25185  		})
 25186  	}
 25187  	if err != nil {
 25188  		return nil, err
 25189  	}
 25190  	defer googleapi.CloseBody(res)
 25191  	if err := googleapi.CheckResponse(res); err != nil {
 25192  		return nil, gensupport.WrapError(err)
 25193  	}
 25194  	ret := &LiaOmnichannelExperience{
 25195  		ServerResponse: googleapi.ServerResponse{
 25196  			Header:         res.Header,
 25197  			HTTPStatusCode: res.StatusCode,
 25198  		},
 25199  	}
 25200  	target := &ret
 25201  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25202  		return nil, err
 25203  	}
 25204  	return ret, nil
 25205  }
 25206  
 25207  type LiasettingsSetposdataproviderCall struct {
 25208  	s          *APIService
 25209  	merchantId uint64
 25210  	accountId  uint64
 25211  	urlParams_ gensupport.URLParams
 25212  	ctx_       context.Context
 25213  	header_    http.Header
 25214  }
 25215  
 25216  // Setposdataprovider: Sets the POS data provider for the specified country.
 25217  //
 25218  //   - accountId: The ID of the account for which to retrieve accessible Business
 25219  //     Profiles.
 25220  //   - country: The country for which the POS data provider is selected.
 25221  //   - merchantId: The ID of the managing account. If this parameter is not the
 25222  //     same as accountId, then this account must be a multi-client account and
 25223  //     `accountId` must be the ID of a sub-account of this account.
 25224  func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64, country string) *LiasettingsSetposdataproviderCall {
 25225  	c := &LiasettingsSetposdataproviderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25226  	c.merchantId = merchantId
 25227  	c.accountId = accountId
 25228  	c.urlParams_.Set("country", country)
 25229  	return c
 25230  }
 25231  
 25232  // PosDataProviderId sets the optional parameter "posDataProviderId": The ID of
 25233  // POS data provider.
 25234  func (c *LiasettingsSetposdataproviderCall) PosDataProviderId(posDataProviderId uint64) *LiasettingsSetposdataproviderCall {
 25235  	c.urlParams_.Set("posDataProviderId", fmt.Sprint(posDataProviderId))
 25236  	return c
 25237  }
 25238  
 25239  // PosExternalAccountId sets the optional parameter "posExternalAccountId": The
 25240  // account ID by which this merchant is known to the POS data provider.
 25241  func (c *LiasettingsSetposdataproviderCall) PosExternalAccountId(posExternalAccountId string) *LiasettingsSetposdataproviderCall {
 25242  	c.urlParams_.Set("posExternalAccountId", posExternalAccountId)
 25243  	return c
 25244  }
 25245  
 25246  // Fields allows partial responses to be retrieved. See
 25247  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25248  // details.
 25249  func (c *LiasettingsSetposdataproviderCall) Fields(s ...googleapi.Field) *LiasettingsSetposdataproviderCall {
 25250  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25251  	return c
 25252  }
 25253  
 25254  // Context sets the context to be used in this call's Do method.
 25255  func (c *LiasettingsSetposdataproviderCall) Context(ctx context.Context) *LiasettingsSetposdataproviderCall {
 25256  	c.ctx_ = ctx
 25257  	return c
 25258  }
 25259  
 25260  // Header returns a http.Header that can be modified by the caller to add
 25261  // headers to the request.
 25262  func (c *LiasettingsSetposdataproviderCall) Header() http.Header {
 25263  	if c.header_ == nil {
 25264  		c.header_ = make(http.Header)
 25265  	}
 25266  	return c.header_
 25267  }
 25268  
 25269  func (c *LiasettingsSetposdataproviderCall) doRequest(alt string) (*http.Response, error) {
 25270  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25271  	var body io.Reader = nil
 25272  	c.urlParams_.Set("alt", alt)
 25273  	c.urlParams_.Set("prettyPrint", "false")
 25274  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}/setposdataprovider")
 25275  	urls += "?" + c.urlParams_.Encode()
 25276  	req, err := http.NewRequest("POST", urls, body)
 25277  	if err != nil {
 25278  		return nil, err
 25279  	}
 25280  	req.Header = reqHeaders
 25281  	googleapi.Expand(req.URL, map[string]string{
 25282  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 25283  		"accountId":  strconv.FormatUint(c.accountId, 10),
 25284  	})
 25285  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25286  }
 25287  
 25288  // Do executes the "content.liasettings.setposdataprovider" call.
 25289  // Any non-2xx status code is an error. Response headers are in either
 25290  // *LiasettingsSetPosDataProviderResponse.ServerResponse.Header or (if a
 25291  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25292  // googleapi.IsNotModified to check whether the returned error was because
 25293  // http.StatusNotModified was returned.
 25294  func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetPosDataProviderResponse, error) {
 25295  	gensupport.SetOptions(c.urlParams_, opts...)
 25296  	res, err := c.doRequest("json")
 25297  	if res != nil && res.StatusCode == http.StatusNotModified {
 25298  		if res.Body != nil {
 25299  			res.Body.Close()
 25300  		}
 25301  		return nil, gensupport.WrapError(&googleapi.Error{
 25302  			Code:   res.StatusCode,
 25303  			Header: res.Header,
 25304  		})
 25305  	}
 25306  	if err != nil {
 25307  		return nil, err
 25308  	}
 25309  	defer googleapi.CloseBody(res)
 25310  	if err := googleapi.CheckResponse(res); err != nil {
 25311  		return nil, gensupport.WrapError(err)
 25312  	}
 25313  	ret := &LiasettingsSetPosDataProviderResponse{
 25314  		ServerResponse: googleapi.ServerResponse{
 25315  			Header:         res.Header,
 25316  			HTTPStatusCode: res.StatusCode,
 25317  		},
 25318  	}
 25319  	target := &ret
 25320  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25321  		return nil, err
 25322  	}
 25323  	return ret, nil
 25324  }
 25325  
 25326  type LiasettingsUpdateCall struct {
 25327  	s           *APIService
 25328  	merchantId  uint64
 25329  	accountId   uint64
 25330  	liasettings *LiaSettings
 25331  	urlParams_  gensupport.URLParams
 25332  	ctx_        context.Context
 25333  	header_     http.Header
 25334  }
 25335  
 25336  // Update: Updates the LIA settings of the account. Any fields that are not
 25337  // provided are deleted from the resource.
 25338  //
 25339  //   - accountId: The ID of the account for which to get or update LIA settings.
 25340  //   - merchantId: The ID of the managing account. If this parameter is not the
 25341  //     same as accountId, then this account must be a multi-client account and
 25342  //     `accountId` must be the ID of a sub-account of this account.
 25343  func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall {
 25344  	c := &LiasettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25345  	c.merchantId = merchantId
 25346  	c.accountId = accountId
 25347  	c.liasettings = liasettings
 25348  	return c
 25349  }
 25350  
 25351  // Fields allows partial responses to be retrieved. See
 25352  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25353  // details.
 25354  func (c *LiasettingsUpdateCall) Fields(s ...googleapi.Field) *LiasettingsUpdateCall {
 25355  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25356  	return c
 25357  }
 25358  
 25359  // Context sets the context to be used in this call's Do method.
 25360  func (c *LiasettingsUpdateCall) Context(ctx context.Context) *LiasettingsUpdateCall {
 25361  	c.ctx_ = ctx
 25362  	return c
 25363  }
 25364  
 25365  // Header returns a http.Header that can be modified by the caller to add
 25366  // headers to the request.
 25367  func (c *LiasettingsUpdateCall) Header() http.Header {
 25368  	if c.header_ == nil {
 25369  		c.header_ = make(http.Header)
 25370  	}
 25371  	return c.header_
 25372  }
 25373  
 25374  func (c *LiasettingsUpdateCall) doRequest(alt string) (*http.Response, error) {
 25375  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25376  	var body io.Reader = nil
 25377  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.liasettings)
 25378  	if err != nil {
 25379  		return nil, err
 25380  	}
 25381  	c.urlParams_.Set("alt", alt)
 25382  	c.urlParams_.Set("prettyPrint", "false")
 25383  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/liasettings/{accountId}")
 25384  	urls += "?" + c.urlParams_.Encode()
 25385  	req, err := http.NewRequest("PUT", urls, body)
 25386  	if err != nil {
 25387  		return nil, err
 25388  	}
 25389  	req.Header = reqHeaders
 25390  	googleapi.Expand(req.URL, map[string]string{
 25391  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 25392  		"accountId":  strconv.FormatUint(c.accountId, 10),
 25393  	})
 25394  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25395  }
 25396  
 25397  // Do executes the "content.liasettings.update" call.
 25398  // Any non-2xx status code is an error. Response headers are in either
 25399  // *LiaSettings.ServerResponse.Header or (if a response was returned at all) in
 25400  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25401  // whether the returned error was because http.StatusNotModified was returned.
 25402  func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error) {
 25403  	gensupport.SetOptions(c.urlParams_, opts...)
 25404  	res, err := c.doRequest("json")
 25405  	if res != nil && res.StatusCode == http.StatusNotModified {
 25406  		if res.Body != nil {
 25407  			res.Body.Close()
 25408  		}
 25409  		return nil, gensupport.WrapError(&googleapi.Error{
 25410  			Code:   res.StatusCode,
 25411  			Header: res.Header,
 25412  		})
 25413  	}
 25414  	if err != nil {
 25415  		return nil, err
 25416  	}
 25417  	defer googleapi.CloseBody(res)
 25418  	if err := googleapi.CheckResponse(res); err != nil {
 25419  		return nil, gensupport.WrapError(err)
 25420  	}
 25421  	ret := &LiaSettings{
 25422  		ServerResponse: googleapi.ServerResponse{
 25423  			Header:         res.Header,
 25424  			HTTPStatusCode: res.StatusCode,
 25425  		},
 25426  	}
 25427  	target := &ret
 25428  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25429  		return nil, err
 25430  	}
 25431  	return ret, nil
 25432  }
 25433  
 25434  type LocalinventoryCustombatchCall struct {
 25435  	s                                *APIService
 25436  	localinventorycustombatchrequest *LocalinventoryCustomBatchRequest
 25437  	urlParams_                       gensupport.URLParams
 25438  	ctx_                             context.Context
 25439  	header_                          http.Header
 25440  }
 25441  
 25442  // Custombatch: Updates local inventory for multiple products or stores in a
 25443  // single request.
 25444  func (r *LocalinventoryService) Custombatch(localinventorycustombatchrequest *LocalinventoryCustomBatchRequest) *LocalinventoryCustombatchCall {
 25445  	c := &LocalinventoryCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25446  	c.localinventorycustombatchrequest = localinventorycustombatchrequest
 25447  	return c
 25448  }
 25449  
 25450  // Fields allows partial responses to be retrieved. See
 25451  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25452  // details.
 25453  func (c *LocalinventoryCustombatchCall) Fields(s ...googleapi.Field) *LocalinventoryCustombatchCall {
 25454  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25455  	return c
 25456  }
 25457  
 25458  // Context sets the context to be used in this call's Do method.
 25459  func (c *LocalinventoryCustombatchCall) Context(ctx context.Context) *LocalinventoryCustombatchCall {
 25460  	c.ctx_ = ctx
 25461  	return c
 25462  }
 25463  
 25464  // Header returns a http.Header that can be modified by the caller to add
 25465  // headers to the request.
 25466  func (c *LocalinventoryCustombatchCall) Header() http.Header {
 25467  	if c.header_ == nil {
 25468  		c.header_ = make(http.Header)
 25469  	}
 25470  	return c.header_
 25471  }
 25472  
 25473  func (c *LocalinventoryCustombatchCall) doRequest(alt string) (*http.Response, error) {
 25474  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25475  	var body io.Reader = nil
 25476  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.localinventorycustombatchrequest)
 25477  	if err != nil {
 25478  		return nil, err
 25479  	}
 25480  	c.urlParams_.Set("alt", alt)
 25481  	c.urlParams_.Set("prettyPrint", "false")
 25482  	urls := googleapi.ResolveRelative(c.s.BasePath, "localinventory/batch")
 25483  	urls += "?" + c.urlParams_.Encode()
 25484  	req, err := http.NewRequest("POST", urls, body)
 25485  	if err != nil {
 25486  		return nil, err
 25487  	}
 25488  	req.Header = reqHeaders
 25489  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25490  }
 25491  
 25492  // Do executes the "content.localinventory.custombatch" call.
 25493  // Any non-2xx status code is an error. Response headers are in either
 25494  // *LocalinventoryCustomBatchResponse.ServerResponse.Header or (if a response
 25495  // was returned at all) in error.(*googleapi.Error).Header. Use
 25496  // googleapi.IsNotModified to check whether the returned error was because
 25497  // http.StatusNotModified was returned.
 25498  func (c *LocalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*LocalinventoryCustomBatchResponse, error) {
 25499  	gensupport.SetOptions(c.urlParams_, opts...)
 25500  	res, err := c.doRequest("json")
 25501  	if res != nil && res.StatusCode == http.StatusNotModified {
 25502  		if res.Body != nil {
 25503  			res.Body.Close()
 25504  		}
 25505  		return nil, gensupport.WrapError(&googleapi.Error{
 25506  			Code:   res.StatusCode,
 25507  			Header: res.Header,
 25508  		})
 25509  	}
 25510  	if err != nil {
 25511  		return nil, err
 25512  	}
 25513  	defer googleapi.CloseBody(res)
 25514  	if err := googleapi.CheckResponse(res); err != nil {
 25515  		return nil, gensupport.WrapError(err)
 25516  	}
 25517  	ret := &LocalinventoryCustomBatchResponse{
 25518  		ServerResponse: googleapi.ServerResponse{
 25519  			Header:         res.Header,
 25520  			HTTPStatusCode: res.StatusCode,
 25521  		},
 25522  	}
 25523  	target := &ret
 25524  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25525  		return nil, err
 25526  	}
 25527  	return ret, nil
 25528  }
 25529  
 25530  type LocalinventoryInsertCall struct {
 25531  	s              *APIService
 25532  	merchantId     uint64
 25533  	productId      string
 25534  	localinventory *LocalInventory
 25535  	urlParams_     gensupport.URLParams
 25536  	ctx_           context.Context
 25537  	header_        http.Header
 25538  }
 25539  
 25540  // Insert: Updates the local inventory of a product in your Merchant Center
 25541  // account.
 25542  //
 25543  //   - merchantId: The ID of the account that contains the product. This account
 25544  //     cannot be a multi-client account.
 25545  //   - productId: The REST ID of the product for which to update local inventory.
 25546  func (r *LocalinventoryService) Insert(merchantId uint64, productId string, localinventory *LocalInventory) *LocalinventoryInsertCall {
 25547  	c := &LocalinventoryInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25548  	c.merchantId = merchantId
 25549  	c.productId = productId
 25550  	c.localinventory = localinventory
 25551  	return c
 25552  }
 25553  
 25554  // Fields allows partial responses to be retrieved. See
 25555  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25556  // details.
 25557  func (c *LocalinventoryInsertCall) Fields(s ...googleapi.Field) *LocalinventoryInsertCall {
 25558  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25559  	return c
 25560  }
 25561  
 25562  // Context sets the context to be used in this call's Do method.
 25563  func (c *LocalinventoryInsertCall) Context(ctx context.Context) *LocalinventoryInsertCall {
 25564  	c.ctx_ = ctx
 25565  	return c
 25566  }
 25567  
 25568  // Header returns a http.Header that can be modified by the caller to add
 25569  // headers to the request.
 25570  func (c *LocalinventoryInsertCall) Header() http.Header {
 25571  	if c.header_ == nil {
 25572  		c.header_ = make(http.Header)
 25573  	}
 25574  	return c.header_
 25575  }
 25576  
 25577  func (c *LocalinventoryInsertCall) doRequest(alt string) (*http.Response, error) {
 25578  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25579  	var body io.Reader = nil
 25580  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.localinventory)
 25581  	if err != nil {
 25582  		return nil, err
 25583  	}
 25584  	c.urlParams_.Set("alt", alt)
 25585  	c.urlParams_.Set("prettyPrint", "false")
 25586  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}/localinventory")
 25587  	urls += "?" + c.urlParams_.Encode()
 25588  	req, err := http.NewRequest("POST", urls, body)
 25589  	if err != nil {
 25590  		return nil, err
 25591  	}
 25592  	req.Header = reqHeaders
 25593  	googleapi.Expand(req.URL, map[string]string{
 25594  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 25595  		"productId":  c.productId,
 25596  	})
 25597  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25598  }
 25599  
 25600  // Do executes the "content.localinventory.insert" call.
 25601  // Any non-2xx status code is an error. Response headers are in either
 25602  // *LocalInventory.ServerResponse.Header or (if a response was returned at all)
 25603  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 25604  // whether the returned error was because http.StatusNotModified was returned.
 25605  func (c *LocalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*LocalInventory, error) {
 25606  	gensupport.SetOptions(c.urlParams_, opts...)
 25607  	res, err := c.doRequest("json")
 25608  	if res != nil && res.StatusCode == http.StatusNotModified {
 25609  		if res.Body != nil {
 25610  			res.Body.Close()
 25611  		}
 25612  		return nil, gensupport.WrapError(&googleapi.Error{
 25613  			Code:   res.StatusCode,
 25614  			Header: res.Header,
 25615  		})
 25616  	}
 25617  	if err != nil {
 25618  		return nil, err
 25619  	}
 25620  	defer googleapi.CloseBody(res)
 25621  	if err := googleapi.CheckResponse(res); err != nil {
 25622  		return nil, gensupport.WrapError(err)
 25623  	}
 25624  	ret := &LocalInventory{
 25625  		ServerResponse: googleapi.ServerResponse{
 25626  			Header:         res.Header,
 25627  			HTTPStatusCode: res.StatusCode,
 25628  		},
 25629  	}
 25630  	target := &ret
 25631  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25632  		return nil, err
 25633  	}
 25634  	return ret, nil
 25635  }
 25636  
 25637  type MerchantsupportRenderaccountissuesCall struct {
 25638  	s                                 *APIService
 25639  	merchantId                        int64
 25640  	renderaccountissuesrequestpayload *RenderAccountIssuesRequestPayload
 25641  	urlParams_                        gensupport.URLParams
 25642  	ctx_                              context.Context
 25643  	header_                           http.Header
 25644  }
 25645  
 25646  // Renderaccountissues: Provide a list of merchant's issues with a support
 25647  // content and available actions. This content and actions are meant to be
 25648  // rendered and shown in third-party applications.
 25649  //
 25650  // - merchantId: The ID of the account to fetch issues for.
 25651  func (r *MerchantsupportService) Renderaccountissues(merchantId int64, renderaccountissuesrequestpayload *RenderAccountIssuesRequestPayload) *MerchantsupportRenderaccountissuesCall {
 25652  	c := &MerchantsupportRenderaccountissuesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25653  	c.merchantId = merchantId
 25654  	c.renderaccountissuesrequestpayload = renderaccountissuesrequestpayload
 25655  	return c
 25656  }
 25657  
 25658  // LanguageCode sets the optional parameter "languageCode": The IETF BCP-47
 25659  // (https://tools.ietf.org/html/bcp47) language code used to localize support
 25660  // content. If not set, the result will be in default language `en-US`.
 25661  func (c *MerchantsupportRenderaccountissuesCall) LanguageCode(languageCode string) *MerchantsupportRenderaccountissuesCall {
 25662  	c.urlParams_.Set("languageCode", languageCode)
 25663  	return c
 25664  }
 25665  
 25666  // TimeZone sets the optional parameter "timeZone": The IANA
 25667  // (https://www.iana.org/time-zones) timezone used to localize times in support
 25668  // content. For example 'America/Los_Angeles'. If not set, results will use as
 25669  // a default UTC.
 25670  func (c *MerchantsupportRenderaccountissuesCall) TimeZone(timeZone string) *MerchantsupportRenderaccountissuesCall {
 25671  	c.urlParams_.Set("timeZone", timeZone)
 25672  	return c
 25673  }
 25674  
 25675  // Fields allows partial responses to be retrieved. See
 25676  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25677  // details.
 25678  func (c *MerchantsupportRenderaccountissuesCall) Fields(s ...googleapi.Field) *MerchantsupportRenderaccountissuesCall {
 25679  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25680  	return c
 25681  }
 25682  
 25683  // Context sets the context to be used in this call's Do method.
 25684  func (c *MerchantsupportRenderaccountissuesCall) Context(ctx context.Context) *MerchantsupportRenderaccountissuesCall {
 25685  	c.ctx_ = ctx
 25686  	return c
 25687  }
 25688  
 25689  // Header returns a http.Header that can be modified by the caller to add
 25690  // headers to the request.
 25691  func (c *MerchantsupportRenderaccountissuesCall) Header() http.Header {
 25692  	if c.header_ == nil {
 25693  		c.header_ = make(http.Header)
 25694  	}
 25695  	return c.header_
 25696  }
 25697  
 25698  func (c *MerchantsupportRenderaccountissuesCall) doRequest(alt string) (*http.Response, error) {
 25699  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25700  	var body io.Reader = nil
 25701  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.renderaccountissuesrequestpayload)
 25702  	if err != nil {
 25703  		return nil, err
 25704  	}
 25705  	c.urlParams_.Set("alt", alt)
 25706  	c.urlParams_.Set("prettyPrint", "false")
 25707  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/merchantsupport/renderaccountissues")
 25708  	urls += "?" + c.urlParams_.Encode()
 25709  	req, err := http.NewRequest("POST", urls, body)
 25710  	if err != nil {
 25711  		return nil, err
 25712  	}
 25713  	req.Header = reqHeaders
 25714  	googleapi.Expand(req.URL, map[string]string{
 25715  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 25716  	})
 25717  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25718  }
 25719  
 25720  // Do executes the "content.merchantsupport.renderaccountissues" call.
 25721  // Any non-2xx status code is an error. Response headers are in either
 25722  // *RenderAccountIssuesResponse.ServerResponse.Header or (if a response was
 25723  // returned at all) in error.(*googleapi.Error).Header. Use
 25724  // googleapi.IsNotModified to check whether the returned error was because
 25725  // http.StatusNotModified was returned.
 25726  func (c *MerchantsupportRenderaccountissuesCall) Do(opts ...googleapi.CallOption) (*RenderAccountIssuesResponse, error) {
 25727  	gensupport.SetOptions(c.urlParams_, opts...)
 25728  	res, err := c.doRequest("json")
 25729  	if res != nil && res.StatusCode == http.StatusNotModified {
 25730  		if res.Body != nil {
 25731  			res.Body.Close()
 25732  		}
 25733  		return nil, gensupport.WrapError(&googleapi.Error{
 25734  			Code:   res.StatusCode,
 25735  			Header: res.Header,
 25736  		})
 25737  	}
 25738  	if err != nil {
 25739  		return nil, err
 25740  	}
 25741  	defer googleapi.CloseBody(res)
 25742  	if err := googleapi.CheckResponse(res); err != nil {
 25743  		return nil, gensupport.WrapError(err)
 25744  	}
 25745  	ret := &RenderAccountIssuesResponse{
 25746  		ServerResponse: googleapi.ServerResponse{
 25747  			Header:         res.Header,
 25748  			HTTPStatusCode: res.StatusCode,
 25749  		},
 25750  	}
 25751  	target := &ret
 25752  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25753  		return nil, err
 25754  	}
 25755  	return ret, nil
 25756  }
 25757  
 25758  type MerchantsupportRenderproductissuesCall struct {
 25759  	s                                 *APIService
 25760  	merchantId                        int64
 25761  	productId                         string
 25762  	renderproductissuesrequestpayload *RenderProductIssuesRequestPayload
 25763  	urlParams_                        gensupport.URLParams
 25764  	ctx_                              context.Context
 25765  	header_                           http.Header
 25766  }
 25767  
 25768  // Renderproductissues: Provide a list of issues for merchant's product with a
 25769  // support content and available actions. This content and actions are meant to
 25770  // be rendered and shown in third-party applications.
 25771  //
 25772  //   - merchantId: The ID of the account that contains the product.
 25773  //   - productId: The REST_ID
 25774  //     (https://developers.google.com/shopping-content/reference/rest/v2.1/products#Product.FIELDS.id)
 25775  //     of the product to fetch issues for.
 25776  func (r *MerchantsupportService) Renderproductissues(merchantId int64, productId string, renderproductissuesrequestpayload *RenderProductIssuesRequestPayload) *MerchantsupportRenderproductissuesCall {
 25777  	c := &MerchantsupportRenderproductissuesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25778  	c.merchantId = merchantId
 25779  	c.productId = productId
 25780  	c.renderproductissuesrequestpayload = renderproductissuesrequestpayload
 25781  	return c
 25782  }
 25783  
 25784  // LanguageCode sets the optional parameter "languageCode": The IETF BCP-47
 25785  // (https://tools.ietf.org/html/bcp47) language code used to localize support
 25786  // content. If not set, the result will be in default language `en-US`.
 25787  func (c *MerchantsupportRenderproductissuesCall) LanguageCode(languageCode string) *MerchantsupportRenderproductissuesCall {
 25788  	c.urlParams_.Set("languageCode", languageCode)
 25789  	return c
 25790  }
 25791  
 25792  // TimeZone sets the optional parameter "timeZone": The IANA
 25793  // (https://www.iana.org/time-zones) timezone used to localize times in support
 25794  // content. For example 'America/Los_Angeles'. If not set, results will use as
 25795  // a default UTC.
 25796  func (c *MerchantsupportRenderproductissuesCall) TimeZone(timeZone string) *MerchantsupportRenderproductissuesCall {
 25797  	c.urlParams_.Set("timeZone", timeZone)
 25798  	return c
 25799  }
 25800  
 25801  // Fields allows partial responses to be retrieved. See
 25802  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25803  // details.
 25804  func (c *MerchantsupportRenderproductissuesCall) Fields(s ...googleapi.Field) *MerchantsupportRenderproductissuesCall {
 25805  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25806  	return c
 25807  }
 25808  
 25809  // Context sets the context to be used in this call's Do method.
 25810  func (c *MerchantsupportRenderproductissuesCall) Context(ctx context.Context) *MerchantsupportRenderproductissuesCall {
 25811  	c.ctx_ = ctx
 25812  	return c
 25813  }
 25814  
 25815  // Header returns a http.Header that can be modified by the caller to add
 25816  // headers to the request.
 25817  func (c *MerchantsupportRenderproductissuesCall) Header() http.Header {
 25818  	if c.header_ == nil {
 25819  		c.header_ = make(http.Header)
 25820  	}
 25821  	return c.header_
 25822  }
 25823  
 25824  func (c *MerchantsupportRenderproductissuesCall) doRequest(alt string) (*http.Response, error) {
 25825  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25826  	var body io.Reader = nil
 25827  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.renderproductissuesrequestpayload)
 25828  	if err != nil {
 25829  		return nil, err
 25830  	}
 25831  	c.urlParams_.Set("alt", alt)
 25832  	c.urlParams_.Set("prettyPrint", "false")
 25833  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/merchantsupport/renderproductissues/{productId}")
 25834  	urls += "?" + c.urlParams_.Encode()
 25835  	req, err := http.NewRequest("POST", urls, body)
 25836  	if err != nil {
 25837  		return nil, err
 25838  	}
 25839  	req.Header = reqHeaders
 25840  	googleapi.Expand(req.URL, map[string]string{
 25841  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 25842  		"productId":  c.productId,
 25843  	})
 25844  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25845  }
 25846  
 25847  // Do executes the "content.merchantsupport.renderproductissues" call.
 25848  // Any non-2xx status code is an error. Response headers are in either
 25849  // *RenderProductIssuesResponse.ServerResponse.Header or (if a response was
 25850  // returned at all) in error.(*googleapi.Error).Header. Use
 25851  // googleapi.IsNotModified to check whether the returned error was because
 25852  // http.StatusNotModified was returned.
 25853  func (c *MerchantsupportRenderproductissuesCall) Do(opts ...googleapi.CallOption) (*RenderProductIssuesResponse, error) {
 25854  	gensupport.SetOptions(c.urlParams_, opts...)
 25855  	res, err := c.doRequest("json")
 25856  	if res != nil && res.StatusCode == http.StatusNotModified {
 25857  		if res.Body != nil {
 25858  			res.Body.Close()
 25859  		}
 25860  		return nil, gensupport.WrapError(&googleapi.Error{
 25861  			Code:   res.StatusCode,
 25862  			Header: res.Header,
 25863  		})
 25864  	}
 25865  	if err != nil {
 25866  		return nil, err
 25867  	}
 25868  	defer googleapi.CloseBody(res)
 25869  	if err := googleapi.CheckResponse(res); err != nil {
 25870  		return nil, gensupport.WrapError(err)
 25871  	}
 25872  	ret := &RenderProductIssuesResponse{
 25873  		ServerResponse: googleapi.ServerResponse{
 25874  			Header:         res.Header,
 25875  			HTTPStatusCode: res.StatusCode,
 25876  		},
 25877  	}
 25878  	target := &ret
 25879  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25880  		return nil, err
 25881  	}
 25882  	return ret, nil
 25883  }
 25884  
 25885  type MerchantsupportTriggeractionCall struct {
 25886  	s                    *APIService
 25887  	merchantId           int64
 25888  	triggeractionpayload *TriggerActionPayload
 25889  	urlParams_           gensupport.URLParams
 25890  	ctx_                 context.Context
 25891  	header_              http.Header
 25892  }
 25893  
 25894  // Triggeraction: Start an action. The action can be requested by merchants in
 25895  // third-party application. Before merchants can request the action, the
 25896  // third-party application needs to show them action specific content and
 25897  // display a user input form. The action can be successfully started only once
 25898  // all `required` inputs are provided. If any `required` input is missing, or
 25899  // invalid value was provided, the service will return 400 error. Validation
 25900  // errors will contain Ids for all problematic field together with translated,
 25901  // human readable error messages that can be shown to the user.
 25902  //
 25903  // - merchantId: The ID of the merchant's account.
 25904  func (r *MerchantsupportService) Triggeraction(merchantId int64, triggeractionpayload *TriggerActionPayload) *MerchantsupportTriggeractionCall {
 25905  	c := &MerchantsupportTriggeractionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25906  	c.merchantId = merchantId
 25907  	c.triggeractionpayload = triggeractionpayload
 25908  	return c
 25909  }
 25910  
 25911  // LanguageCode sets the optional parameter "languageCode": Language code IETF
 25912  // BCP 47 syntax (https://tools.ietf.org/html/bcp47) used to localize the
 25913  // response. If not set, the result will be in default language `en-US`.
 25914  func (c *MerchantsupportTriggeractionCall) LanguageCode(languageCode string) *MerchantsupportTriggeractionCall {
 25915  	c.urlParams_.Set("languageCode", languageCode)
 25916  	return c
 25917  }
 25918  
 25919  // Fields allows partial responses to be retrieved. See
 25920  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25921  // details.
 25922  func (c *MerchantsupportTriggeractionCall) Fields(s ...googleapi.Field) *MerchantsupportTriggeractionCall {
 25923  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25924  	return c
 25925  }
 25926  
 25927  // Context sets the context to be used in this call's Do method.
 25928  func (c *MerchantsupportTriggeractionCall) Context(ctx context.Context) *MerchantsupportTriggeractionCall {
 25929  	c.ctx_ = ctx
 25930  	return c
 25931  }
 25932  
 25933  // Header returns a http.Header that can be modified by the caller to add
 25934  // headers to the request.
 25935  func (c *MerchantsupportTriggeractionCall) Header() http.Header {
 25936  	if c.header_ == nil {
 25937  		c.header_ = make(http.Header)
 25938  	}
 25939  	return c.header_
 25940  }
 25941  
 25942  func (c *MerchantsupportTriggeractionCall) doRequest(alt string) (*http.Response, error) {
 25943  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25944  	var body io.Reader = nil
 25945  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.triggeractionpayload)
 25946  	if err != nil {
 25947  		return nil, err
 25948  	}
 25949  	c.urlParams_.Set("alt", alt)
 25950  	c.urlParams_.Set("prettyPrint", "false")
 25951  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/merchantsupport/triggeraction")
 25952  	urls += "?" + c.urlParams_.Encode()
 25953  	req, err := http.NewRequest("POST", urls, body)
 25954  	if err != nil {
 25955  		return nil, err
 25956  	}
 25957  	req.Header = reqHeaders
 25958  	googleapi.Expand(req.URL, map[string]string{
 25959  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 25960  	})
 25961  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25962  }
 25963  
 25964  // Do executes the "content.merchantsupport.triggeraction" call.
 25965  // Any non-2xx status code is an error. Response headers are in either
 25966  // *TriggerActionResponse.ServerResponse.Header or (if a response was returned
 25967  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25968  // check whether the returned error was because http.StatusNotModified was
 25969  // returned.
 25970  func (c *MerchantsupportTriggeractionCall) Do(opts ...googleapi.CallOption) (*TriggerActionResponse, error) {
 25971  	gensupport.SetOptions(c.urlParams_, opts...)
 25972  	res, err := c.doRequest("json")
 25973  	if res != nil && res.StatusCode == http.StatusNotModified {
 25974  		if res.Body != nil {
 25975  			res.Body.Close()
 25976  		}
 25977  		return nil, gensupport.WrapError(&googleapi.Error{
 25978  			Code:   res.StatusCode,
 25979  			Header: res.Header,
 25980  		})
 25981  	}
 25982  	if err != nil {
 25983  		return nil, err
 25984  	}
 25985  	defer googleapi.CloseBody(res)
 25986  	if err := googleapi.CheckResponse(res); err != nil {
 25987  		return nil, gensupport.WrapError(err)
 25988  	}
 25989  	ret := &TriggerActionResponse{
 25990  		ServerResponse: googleapi.ServerResponse{
 25991  			Header:         res.Header,
 25992  			HTTPStatusCode: res.StatusCode,
 25993  		},
 25994  	}
 25995  	target := &ret
 25996  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25997  		return nil, err
 25998  	}
 25999  	return ret, nil
 26000  }
 26001  
 26002  type OrderinvoicesCreatechargeinvoiceCall struct {
 26003  	s                                       *APIService
 26004  	merchantId                              uint64
 26005  	orderId                                 string
 26006  	orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest
 26007  	urlParams_                              gensupport.URLParams
 26008  	ctx_                                    context.Context
 26009  	header_                                 http.Header
 26010  }
 26011  
 26012  // Createchargeinvoice: Creates a charge invoice for a shipment group, and
 26013  // triggers a charge capture for orderinvoice enabled orders.
 26014  //
 26015  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26016  //     multi-client account.
 26017  //   - orderId: The ID of the order.
 26018  func (r *OrderinvoicesService) Createchargeinvoice(merchantId uint64, orderId string, orderinvoicescreatechargeinvoicerequest *OrderinvoicesCreateChargeInvoiceRequest) *OrderinvoicesCreatechargeinvoiceCall {
 26019  	c := &OrderinvoicesCreatechargeinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26020  	c.merchantId = merchantId
 26021  	c.orderId = orderId
 26022  	c.orderinvoicescreatechargeinvoicerequest = orderinvoicescreatechargeinvoicerequest
 26023  	return c
 26024  }
 26025  
 26026  // Fields allows partial responses to be retrieved. See
 26027  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26028  // details.
 26029  func (c *OrderinvoicesCreatechargeinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreatechargeinvoiceCall {
 26030  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26031  	return c
 26032  }
 26033  
 26034  // Context sets the context to be used in this call's Do method.
 26035  func (c *OrderinvoicesCreatechargeinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreatechargeinvoiceCall {
 26036  	c.ctx_ = ctx
 26037  	return c
 26038  }
 26039  
 26040  // Header returns a http.Header that can be modified by the caller to add
 26041  // headers to the request.
 26042  func (c *OrderinvoicesCreatechargeinvoiceCall) Header() http.Header {
 26043  	if c.header_ == nil {
 26044  		c.header_ = make(http.Header)
 26045  	}
 26046  	return c.header_
 26047  }
 26048  
 26049  func (c *OrderinvoicesCreatechargeinvoiceCall) doRequest(alt string) (*http.Response, error) {
 26050  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26051  	var body io.Reader = nil
 26052  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreatechargeinvoicerequest)
 26053  	if err != nil {
 26054  		return nil, err
 26055  	}
 26056  	c.urlParams_.Set("alt", alt)
 26057  	c.urlParams_.Set("prettyPrint", "false")
 26058  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createChargeInvoice")
 26059  	urls += "?" + c.urlParams_.Encode()
 26060  	req, err := http.NewRequest("POST", urls, body)
 26061  	if err != nil {
 26062  		return nil, err
 26063  	}
 26064  	req.Header = reqHeaders
 26065  	googleapi.Expand(req.URL, map[string]string{
 26066  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 26067  		"orderId":    c.orderId,
 26068  	})
 26069  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26070  }
 26071  
 26072  // Do executes the "content.orderinvoices.createchargeinvoice" call.
 26073  // Any non-2xx status code is an error. Response headers are in either
 26074  // *OrderinvoicesCreateChargeInvoiceResponse.ServerResponse.Header or (if a
 26075  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26076  // googleapi.IsNotModified to check whether the returned error was because
 26077  // http.StatusNotModified was returned.
 26078  func (c *OrderinvoicesCreatechargeinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateChargeInvoiceResponse, error) {
 26079  	gensupport.SetOptions(c.urlParams_, opts...)
 26080  	res, err := c.doRequest("json")
 26081  	if res != nil && res.StatusCode == http.StatusNotModified {
 26082  		if res.Body != nil {
 26083  			res.Body.Close()
 26084  		}
 26085  		return nil, gensupport.WrapError(&googleapi.Error{
 26086  			Code:   res.StatusCode,
 26087  			Header: res.Header,
 26088  		})
 26089  	}
 26090  	if err != nil {
 26091  		return nil, err
 26092  	}
 26093  	defer googleapi.CloseBody(res)
 26094  	if err := googleapi.CheckResponse(res); err != nil {
 26095  		return nil, gensupport.WrapError(err)
 26096  	}
 26097  	ret := &OrderinvoicesCreateChargeInvoiceResponse{
 26098  		ServerResponse: googleapi.ServerResponse{
 26099  			Header:         res.Header,
 26100  			HTTPStatusCode: res.StatusCode,
 26101  		},
 26102  	}
 26103  	target := &ret
 26104  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26105  		return nil, err
 26106  	}
 26107  	return ret, nil
 26108  }
 26109  
 26110  type OrderinvoicesCreaterefundinvoiceCall struct {
 26111  	s                                       *APIService
 26112  	merchantId                              uint64
 26113  	orderId                                 string
 26114  	orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest
 26115  	urlParams_                              gensupport.URLParams
 26116  	ctx_                                    context.Context
 26117  	header_                                 http.Header
 26118  }
 26119  
 26120  // Createrefundinvoice: Creates a refund invoice for one or more shipment
 26121  // groups, and triggers a refund for orderinvoice enabled orders. This can only
 26122  // be used for line items that have previously been charged using
 26123  // `createChargeInvoice`. All amounts (except for the summary) are incremental
 26124  // with respect to the previous invoice.
 26125  //
 26126  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26127  //     multi-client account.
 26128  //   - orderId: The ID of the order.
 26129  func (r *OrderinvoicesService) Createrefundinvoice(merchantId uint64, orderId string, orderinvoicescreaterefundinvoicerequest *OrderinvoicesCreateRefundInvoiceRequest) *OrderinvoicesCreaterefundinvoiceCall {
 26130  	c := &OrderinvoicesCreaterefundinvoiceCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26131  	c.merchantId = merchantId
 26132  	c.orderId = orderId
 26133  	c.orderinvoicescreaterefundinvoicerequest = orderinvoicescreaterefundinvoicerequest
 26134  	return c
 26135  }
 26136  
 26137  // Fields allows partial responses to be retrieved. See
 26138  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26139  // details.
 26140  func (c *OrderinvoicesCreaterefundinvoiceCall) Fields(s ...googleapi.Field) *OrderinvoicesCreaterefundinvoiceCall {
 26141  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26142  	return c
 26143  }
 26144  
 26145  // Context sets the context to be used in this call's Do method.
 26146  func (c *OrderinvoicesCreaterefundinvoiceCall) Context(ctx context.Context) *OrderinvoicesCreaterefundinvoiceCall {
 26147  	c.ctx_ = ctx
 26148  	return c
 26149  }
 26150  
 26151  // Header returns a http.Header that can be modified by the caller to add
 26152  // headers to the request.
 26153  func (c *OrderinvoicesCreaterefundinvoiceCall) Header() http.Header {
 26154  	if c.header_ == nil {
 26155  		c.header_ = make(http.Header)
 26156  	}
 26157  	return c.header_
 26158  }
 26159  
 26160  func (c *OrderinvoicesCreaterefundinvoiceCall) doRequest(alt string) (*http.Response, error) {
 26161  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26162  	var body io.Reader = nil
 26163  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderinvoicescreaterefundinvoicerequest)
 26164  	if err != nil {
 26165  		return nil, err
 26166  	}
 26167  	c.urlParams_.Set("alt", alt)
 26168  	c.urlParams_.Set("prettyPrint", "false")
 26169  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderinvoices/{orderId}/createRefundInvoice")
 26170  	urls += "?" + c.urlParams_.Encode()
 26171  	req, err := http.NewRequest("POST", urls, body)
 26172  	if err != nil {
 26173  		return nil, err
 26174  	}
 26175  	req.Header = reqHeaders
 26176  	googleapi.Expand(req.URL, map[string]string{
 26177  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 26178  		"orderId":    c.orderId,
 26179  	})
 26180  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26181  }
 26182  
 26183  // Do executes the "content.orderinvoices.createrefundinvoice" call.
 26184  // Any non-2xx status code is an error. Response headers are in either
 26185  // *OrderinvoicesCreateRefundInvoiceResponse.ServerResponse.Header or (if a
 26186  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26187  // googleapi.IsNotModified to check whether the returned error was because
 26188  // http.StatusNotModified was returned.
 26189  func (c *OrderinvoicesCreaterefundinvoiceCall) Do(opts ...googleapi.CallOption) (*OrderinvoicesCreateRefundInvoiceResponse, error) {
 26190  	gensupport.SetOptions(c.urlParams_, opts...)
 26191  	res, err := c.doRequest("json")
 26192  	if res != nil && res.StatusCode == http.StatusNotModified {
 26193  		if res.Body != nil {
 26194  			res.Body.Close()
 26195  		}
 26196  		return nil, gensupport.WrapError(&googleapi.Error{
 26197  			Code:   res.StatusCode,
 26198  			Header: res.Header,
 26199  		})
 26200  	}
 26201  	if err != nil {
 26202  		return nil, err
 26203  	}
 26204  	defer googleapi.CloseBody(res)
 26205  	if err := googleapi.CheckResponse(res); err != nil {
 26206  		return nil, gensupport.WrapError(err)
 26207  	}
 26208  	ret := &OrderinvoicesCreateRefundInvoiceResponse{
 26209  		ServerResponse: googleapi.ServerResponse{
 26210  			Header:         res.Header,
 26211  			HTTPStatusCode: res.StatusCode,
 26212  		},
 26213  	}
 26214  	target := &ret
 26215  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26216  		return nil, err
 26217  	}
 26218  	return ret, nil
 26219  }
 26220  
 26221  type OrderreportsListdisbursementsCall struct {
 26222  	s            *APIService
 26223  	merchantId   uint64
 26224  	urlParams_   gensupport.URLParams
 26225  	ifNoneMatch_ string
 26226  	ctx_         context.Context
 26227  	header_      http.Header
 26228  }
 26229  
 26230  // Listdisbursements: Retrieves a report for disbursements from your Merchant
 26231  // Center account.
 26232  //
 26233  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26234  //     multi-client account.
 26235  func (r *OrderreportsService) Listdisbursements(merchantId uint64) *OrderreportsListdisbursementsCall {
 26236  	c := &OrderreportsListdisbursementsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26237  	c.merchantId = merchantId
 26238  	return c
 26239  }
 26240  
 26241  // DisbursementEndDate sets the optional parameter "disbursementEndDate": The
 26242  // last date which disbursements occurred. In ISO 8601 format. Default: current
 26243  // date.
 26244  func (c *OrderreportsListdisbursementsCall) DisbursementEndDate(disbursementEndDate string) *OrderreportsListdisbursementsCall {
 26245  	c.urlParams_.Set("disbursementEndDate", disbursementEndDate)
 26246  	return c
 26247  }
 26248  
 26249  // DisbursementStartDate sets the optional parameter "disbursementStartDate":
 26250  // The first date which disbursements occurred. In ISO 8601 format.
 26251  func (c *OrderreportsListdisbursementsCall) DisbursementStartDate(disbursementStartDate string) *OrderreportsListdisbursementsCall {
 26252  	c.urlParams_.Set("disbursementStartDate", disbursementStartDate)
 26253  	return c
 26254  }
 26255  
 26256  // MaxResults sets the optional parameter "maxResults": The maximum number of
 26257  // disbursements to return in the response, used for paging.
 26258  func (c *OrderreportsListdisbursementsCall) MaxResults(maxResults int64) *OrderreportsListdisbursementsCall {
 26259  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 26260  	return c
 26261  }
 26262  
 26263  // PageToken sets the optional parameter "pageToken": The token returned by the
 26264  // previous request.
 26265  func (c *OrderreportsListdisbursementsCall) PageToken(pageToken string) *OrderreportsListdisbursementsCall {
 26266  	c.urlParams_.Set("pageToken", pageToken)
 26267  	return c
 26268  }
 26269  
 26270  // Fields allows partial responses to be retrieved. See
 26271  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26272  // details.
 26273  func (c *OrderreportsListdisbursementsCall) Fields(s ...googleapi.Field) *OrderreportsListdisbursementsCall {
 26274  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26275  	return c
 26276  }
 26277  
 26278  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26279  // object's ETag matches the given value. This is useful for getting updates
 26280  // only after the object has changed since the last request.
 26281  func (c *OrderreportsListdisbursementsCall) IfNoneMatch(entityTag string) *OrderreportsListdisbursementsCall {
 26282  	c.ifNoneMatch_ = entityTag
 26283  	return c
 26284  }
 26285  
 26286  // Context sets the context to be used in this call's Do method.
 26287  func (c *OrderreportsListdisbursementsCall) Context(ctx context.Context) *OrderreportsListdisbursementsCall {
 26288  	c.ctx_ = ctx
 26289  	return c
 26290  }
 26291  
 26292  // Header returns a http.Header that can be modified by the caller to add
 26293  // headers to the request.
 26294  func (c *OrderreportsListdisbursementsCall) Header() http.Header {
 26295  	if c.header_ == nil {
 26296  		c.header_ = make(http.Header)
 26297  	}
 26298  	return c.header_
 26299  }
 26300  
 26301  func (c *OrderreportsListdisbursementsCall) doRequest(alt string) (*http.Response, error) {
 26302  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26303  	if c.ifNoneMatch_ != "" {
 26304  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26305  	}
 26306  	var body io.Reader = nil
 26307  	c.urlParams_.Set("alt", alt)
 26308  	c.urlParams_.Set("prettyPrint", "false")
 26309  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreports/disbursements")
 26310  	urls += "?" + c.urlParams_.Encode()
 26311  	req, err := http.NewRequest("GET", urls, body)
 26312  	if err != nil {
 26313  		return nil, err
 26314  	}
 26315  	req.Header = reqHeaders
 26316  	googleapi.Expand(req.URL, map[string]string{
 26317  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 26318  	})
 26319  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26320  }
 26321  
 26322  // Do executes the "content.orderreports.listdisbursements" call.
 26323  // Any non-2xx status code is an error. Response headers are in either
 26324  // *OrderreportsListDisbursementsResponse.ServerResponse.Header or (if a
 26325  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26326  // googleapi.IsNotModified to check whether the returned error was because
 26327  // http.StatusNotModified was returned.
 26328  func (c *OrderreportsListdisbursementsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListDisbursementsResponse, error) {
 26329  	gensupport.SetOptions(c.urlParams_, opts...)
 26330  	res, err := c.doRequest("json")
 26331  	if res != nil && res.StatusCode == http.StatusNotModified {
 26332  		if res.Body != nil {
 26333  			res.Body.Close()
 26334  		}
 26335  		return nil, gensupport.WrapError(&googleapi.Error{
 26336  			Code:   res.StatusCode,
 26337  			Header: res.Header,
 26338  		})
 26339  	}
 26340  	if err != nil {
 26341  		return nil, err
 26342  	}
 26343  	defer googleapi.CloseBody(res)
 26344  	if err := googleapi.CheckResponse(res); err != nil {
 26345  		return nil, gensupport.WrapError(err)
 26346  	}
 26347  	ret := &OrderreportsListDisbursementsResponse{
 26348  		ServerResponse: googleapi.ServerResponse{
 26349  			Header:         res.Header,
 26350  			HTTPStatusCode: res.StatusCode,
 26351  		},
 26352  	}
 26353  	target := &ret
 26354  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26355  		return nil, err
 26356  	}
 26357  	return ret, nil
 26358  }
 26359  
 26360  // Pages invokes f for each page of results.
 26361  // A non-nil error returned from f will halt the iteration.
 26362  // The provided context supersedes any context provided to the Context method.
 26363  func (c *OrderreportsListdisbursementsCall) Pages(ctx context.Context, f func(*OrderreportsListDisbursementsResponse) error) error {
 26364  	c.ctx_ = ctx
 26365  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26366  	for {
 26367  		x, err := c.Do()
 26368  		if err != nil {
 26369  			return err
 26370  		}
 26371  		if err := f(x); err != nil {
 26372  			return err
 26373  		}
 26374  		if x.NextPageToken == "" {
 26375  			return nil
 26376  		}
 26377  		c.PageToken(x.NextPageToken)
 26378  	}
 26379  }
 26380  
 26381  type OrderreportsListtransactionsCall struct {
 26382  	s              *APIService
 26383  	merchantId     uint64
 26384  	disbursementId string
 26385  	urlParams_     gensupport.URLParams
 26386  	ifNoneMatch_   string
 26387  	ctx_           context.Context
 26388  	header_        http.Header
 26389  }
 26390  
 26391  // Listtransactions: Retrieves a list of transactions for a disbursement from
 26392  // your Merchant Center account.
 26393  //
 26394  //   - disbursementId: The Google-provided ID of the disbursement (found in
 26395  //     Wallet).
 26396  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26397  //     multi-client account.
 26398  func (r *OrderreportsService) Listtransactions(merchantId uint64, disbursementId string) *OrderreportsListtransactionsCall {
 26399  	c := &OrderreportsListtransactionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26400  	c.merchantId = merchantId
 26401  	c.disbursementId = disbursementId
 26402  	return c
 26403  }
 26404  
 26405  // MaxResults sets the optional parameter "maxResults": The maximum number of
 26406  // disbursements to return in the response, used for paging.
 26407  func (c *OrderreportsListtransactionsCall) MaxResults(maxResults int64) *OrderreportsListtransactionsCall {
 26408  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 26409  	return c
 26410  }
 26411  
 26412  // PageToken sets the optional parameter "pageToken": The token returned by the
 26413  // previous request.
 26414  func (c *OrderreportsListtransactionsCall) PageToken(pageToken string) *OrderreportsListtransactionsCall {
 26415  	c.urlParams_.Set("pageToken", pageToken)
 26416  	return c
 26417  }
 26418  
 26419  // TransactionEndDate sets the optional parameter "transactionEndDate": The
 26420  // last date in which transaction occurred. In ISO 8601 format. Default:
 26421  // current date.
 26422  func (c *OrderreportsListtransactionsCall) TransactionEndDate(transactionEndDate string) *OrderreportsListtransactionsCall {
 26423  	c.urlParams_.Set("transactionEndDate", transactionEndDate)
 26424  	return c
 26425  }
 26426  
 26427  // TransactionStartDate sets the optional parameter "transactionStartDate": The
 26428  // first date in which transaction occurred. In ISO 8601 format.
 26429  func (c *OrderreportsListtransactionsCall) TransactionStartDate(transactionStartDate string) *OrderreportsListtransactionsCall {
 26430  	c.urlParams_.Set("transactionStartDate", transactionStartDate)
 26431  	return c
 26432  }
 26433  
 26434  // Fields allows partial responses to be retrieved. See
 26435  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26436  // details.
 26437  func (c *OrderreportsListtransactionsCall) Fields(s ...googleapi.Field) *OrderreportsListtransactionsCall {
 26438  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26439  	return c
 26440  }
 26441  
 26442  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26443  // object's ETag matches the given value. This is useful for getting updates
 26444  // only after the object has changed since the last request.
 26445  func (c *OrderreportsListtransactionsCall) IfNoneMatch(entityTag string) *OrderreportsListtransactionsCall {
 26446  	c.ifNoneMatch_ = entityTag
 26447  	return c
 26448  }
 26449  
 26450  // Context sets the context to be used in this call's Do method.
 26451  func (c *OrderreportsListtransactionsCall) Context(ctx context.Context) *OrderreportsListtransactionsCall {
 26452  	c.ctx_ = ctx
 26453  	return c
 26454  }
 26455  
 26456  // Header returns a http.Header that can be modified by the caller to add
 26457  // headers to the request.
 26458  func (c *OrderreportsListtransactionsCall) Header() http.Header {
 26459  	if c.header_ == nil {
 26460  		c.header_ = make(http.Header)
 26461  	}
 26462  	return c.header_
 26463  }
 26464  
 26465  func (c *OrderreportsListtransactionsCall) doRequest(alt string) (*http.Response, error) {
 26466  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26467  	if c.ifNoneMatch_ != "" {
 26468  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26469  	}
 26470  	var body io.Reader = nil
 26471  	c.urlParams_.Set("alt", alt)
 26472  	c.urlParams_.Set("prettyPrint", "false")
 26473  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreports/disbursements/{disbursementId}/transactions")
 26474  	urls += "?" + c.urlParams_.Encode()
 26475  	req, err := http.NewRequest("GET", urls, body)
 26476  	if err != nil {
 26477  		return nil, err
 26478  	}
 26479  	req.Header = reqHeaders
 26480  	googleapi.Expand(req.URL, map[string]string{
 26481  		"merchantId":     strconv.FormatUint(c.merchantId, 10),
 26482  		"disbursementId": c.disbursementId,
 26483  	})
 26484  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26485  }
 26486  
 26487  // Do executes the "content.orderreports.listtransactions" call.
 26488  // Any non-2xx status code is an error. Response headers are in either
 26489  // *OrderreportsListTransactionsResponse.ServerResponse.Header or (if a
 26490  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26491  // googleapi.IsNotModified to check whether the returned error was because
 26492  // http.StatusNotModified was returned.
 26493  func (c *OrderreportsListtransactionsCall) Do(opts ...googleapi.CallOption) (*OrderreportsListTransactionsResponse, error) {
 26494  	gensupport.SetOptions(c.urlParams_, opts...)
 26495  	res, err := c.doRequest("json")
 26496  	if res != nil && res.StatusCode == http.StatusNotModified {
 26497  		if res.Body != nil {
 26498  			res.Body.Close()
 26499  		}
 26500  		return nil, gensupport.WrapError(&googleapi.Error{
 26501  			Code:   res.StatusCode,
 26502  			Header: res.Header,
 26503  		})
 26504  	}
 26505  	if err != nil {
 26506  		return nil, err
 26507  	}
 26508  	defer googleapi.CloseBody(res)
 26509  	if err := googleapi.CheckResponse(res); err != nil {
 26510  		return nil, gensupport.WrapError(err)
 26511  	}
 26512  	ret := &OrderreportsListTransactionsResponse{
 26513  		ServerResponse: googleapi.ServerResponse{
 26514  			Header:         res.Header,
 26515  			HTTPStatusCode: res.StatusCode,
 26516  		},
 26517  	}
 26518  	target := &ret
 26519  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26520  		return nil, err
 26521  	}
 26522  	return ret, nil
 26523  }
 26524  
 26525  // Pages invokes f for each page of results.
 26526  // A non-nil error returned from f will halt the iteration.
 26527  // The provided context supersedes any context provided to the Context method.
 26528  func (c *OrderreportsListtransactionsCall) Pages(ctx context.Context, f func(*OrderreportsListTransactionsResponse) error) error {
 26529  	c.ctx_ = ctx
 26530  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26531  	for {
 26532  		x, err := c.Do()
 26533  		if err != nil {
 26534  			return err
 26535  		}
 26536  		if err := f(x); err != nil {
 26537  			return err
 26538  		}
 26539  		if x.NextPageToken == "" {
 26540  			return nil
 26541  		}
 26542  		c.PageToken(x.NextPageToken)
 26543  	}
 26544  }
 26545  
 26546  type OrderreturnsAcknowledgeCall struct {
 26547  	s                              *APIService
 26548  	merchantId                     uint64
 26549  	returnId                       string
 26550  	orderreturnsacknowledgerequest *OrderreturnsAcknowledgeRequest
 26551  	urlParams_                     gensupport.URLParams
 26552  	ctx_                           context.Context
 26553  	header_                        http.Header
 26554  }
 26555  
 26556  // Acknowledge: Acks an order return in your Merchant Center account.
 26557  //
 26558  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26559  //     multi-client account.
 26560  //   - returnId: The ID of the return.
 26561  func (r *OrderreturnsService) Acknowledge(merchantId uint64, returnId string, orderreturnsacknowledgerequest *OrderreturnsAcknowledgeRequest) *OrderreturnsAcknowledgeCall {
 26562  	c := &OrderreturnsAcknowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26563  	c.merchantId = merchantId
 26564  	c.returnId = returnId
 26565  	c.orderreturnsacknowledgerequest = orderreturnsacknowledgerequest
 26566  	return c
 26567  }
 26568  
 26569  // Fields allows partial responses to be retrieved. See
 26570  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26571  // details.
 26572  func (c *OrderreturnsAcknowledgeCall) Fields(s ...googleapi.Field) *OrderreturnsAcknowledgeCall {
 26573  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26574  	return c
 26575  }
 26576  
 26577  // Context sets the context to be used in this call's Do method.
 26578  func (c *OrderreturnsAcknowledgeCall) Context(ctx context.Context) *OrderreturnsAcknowledgeCall {
 26579  	c.ctx_ = ctx
 26580  	return c
 26581  }
 26582  
 26583  // Header returns a http.Header that can be modified by the caller to add
 26584  // headers to the request.
 26585  func (c *OrderreturnsAcknowledgeCall) Header() http.Header {
 26586  	if c.header_ == nil {
 26587  		c.header_ = make(http.Header)
 26588  	}
 26589  	return c.header_
 26590  }
 26591  
 26592  func (c *OrderreturnsAcknowledgeCall) doRequest(alt string) (*http.Response, error) {
 26593  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26594  	var body io.Reader = nil
 26595  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderreturnsacknowledgerequest)
 26596  	if err != nil {
 26597  		return nil, err
 26598  	}
 26599  	c.urlParams_.Set("alt", alt)
 26600  	c.urlParams_.Set("prettyPrint", "false")
 26601  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}/acknowledge")
 26602  	urls += "?" + c.urlParams_.Encode()
 26603  	req, err := http.NewRequest("POST", urls, body)
 26604  	if err != nil {
 26605  		return nil, err
 26606  	}
 26607  	req.Header = reqHeaders
 26608  	googleapi.Expand(req.URL, map[string]string{
 26609  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 26610  		"returnId":   c.returnId,
 26611  	})
 26612  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26613  }
 26614  
 26615  // Do executes the "content.orderreturns.acknowledge" call.
 26616  // Any non-2xx status code is an error. Response headers are in either
 26617  // *OrderreturnsAcknowledgeResponse.ServerResponse.Header or (if a response was
 26618  // returned at all) in error.(*googleapi.Error).Header. Use
 26619  // googleapi.IsNotModified to check whether the returned error was because
 26620  // http.StatusNotModified was returned.
 26621  func (c *OrderreturnsAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrderreturnsAcknowledgeResponse, error) {
 26622  	gensupport.SetOptions(c.urlParams_, opts...)
 26623  	res, err := c.doRequest("json")
 26624  	if res != nil && res.StatusCode == http.StatusNotModified {
 26625  		if res.Body != nil {
 26626  			res.Body.Close()
 26627  		}
 26628  		return nil, gensupport.WrapError(&googleapi.Error{
 26629  			Code:   res.StatusCode,
 26630  			Header: res.Header,
 26631  		})
 26632  	}
 26633  	if err != nil {
 26634  		return nil, err
 26635  	}
 26636  	defer googleapi.CloseBody(res)
 26637  	if err := googleapi.CheckResponse(res); err != nil {
 26638  		return nil, gensupport.WrapError(err)
 26639  	}
 26640  	ret := &OrderreturnsAcknowledgeResponse{
 26641  		ServerResponse: googleapi.ServerResponse{
 26642  			Header:         res.Header,
 26643  			HTTPStatusCode: res.StatusCode,
 26644  		},
 26645  	}
 26646  	target := &ret
 26647  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26648  		return nil, err
 26649  	}
 26650  	return ret, nil
 26651  }
 26652  
 26653  type OrderreturnsCreateorderreturnCall struct {
 26654  	s                                    *APIService
 26655  	merchantId                           uint64
 26656  	orderreturnscreateorderreturnrequest *OrderreturnsCreateOrderReturnRequest
 26657  	urlParams_                           gensupport.URLParams
 26658  	ctx_                                 context.Context
 26659  	header_                              http.Header
 26660  }
 26661  
 26662  // Createorderreturn: Create return in your Merchant Center account.
 26663  //
 26664  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26665  //     multi-client account.
 26666  func (r *OrderreturnsService) Createorderreturn(merchantId uint64, orderreturnscreateorderreturnrequest *OrderreturnsCreateOrderReturnRequest) *OrderreturnsCreateorderreturnCall {
 26667  	c := &OrderreturnsCreateorderreturnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26668  	c.merchantId = merchantId
 26669  	c.orderreturnscreateorderreturnrequest = orderreturnscreateorderreturnrequest
 26670  	return c
 26671  }
 26672  
 26673  // Fields allows partial responses to be retrieved. See
 26674  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26675  // details.
 26676  func (c *OrderreturnsCreateorderreturnCall) Fields(s ...googleapi.Field) *OrderreturnsCreateorderreturnCall {
 26677  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26678  	return c
 26679  }
 26680  
 26681  // Context sets the context to be used in this call's Do method.
 26682  func (c *OrderreturnsCreateorderreturnCall) Context(ctx context.Context) *OrderreturnsCreateorderreturnCall {
 26683  	c.ctx_ = ctx
 26684  	return c
 26685  }
 26686  
 26687  // Header returns a http.Header that can be modified by the caller to add
 26688  // headers to the request.
 26689  func (c *OrderreturnsCreateorderreturnCall) Header() http.Header {
 26690  	if c.header_ == nil {
 26691  		c.header_ = make(http.Header)
 26692  	}
 26693  	return c.header_
 26694  }
 26695  
 26696  func (c *OrderreturnsCreateorderreturnCall) doRequest(alt string) (*http.Response, error) {
 26697  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26698  	var body io.Reader = nil
 26699  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderreturnscreateorderreturnrequest)
 26700  	if err != nil {
 26701  		return nil, err
 26702  	}
 26703  	c.urlParams_.Set("alt", alt)
 26704  	c.urlParams_.Set("prettyPrint", "false")
 26705  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/createOrderReturn")
 26706  	urls += "?" + c.urlParams_.Encode()
 26707  	req, err := http.NewRequest("POST", urls, body)
 26708  	if err != nil {
 26709  		return nil, err
 26710  	}
 26711  	req.Header = reqHeaders
 26712  	googleapi.Expand(req.URL, map[string]string{
 26713  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 26714  	})
 26715  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26716  }
 26717  
 26718  // Do executes the "content.orderreturns.createorderreturn" call.
 26719  // Any non-2xx status code is an error. Response headers are in either
 26720  // *OrderreturnsCreateOrderReturnResponse.ServerResponse.Header or (if a
 26721  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26722  // googleapi.IsNotModified to check whether the returned error was because
 26723  // http.StatusNotModified was returned.
 26724  func (c *OrderreturnsCreateorderreturnCall) Do(opts ...googleapi.CallOption) (*OrderreturnsCreateOrderReturnResponse, error) {
 26725  	gensupport.SetOptions(c.urlParams_, opts...)
 26726  	res, err := c.doRequest("json")
 26727  	if res != nil && res.StatusCode == http.StatusNotModified {
 26728  		if res.Body != nil {
 26729  			res.Body.Close()
 26730  		}
 26731  		return nil, gensupport.WrapError(&googleapi.Error{
 26732  			Code:   res.StatusCode,
 26733  			Header: res.Header,
 26734  		})
 26735  	}
 26736  	if err != nil {
 26737  		return nil, err
 26738  	}
 26739  	defer googleapi.CloseBody(res)
 26740  	if err := googleapi.CheckResponse(res); err != nil {
 26741  		return nil, gensupport.WrapError(err)
 26742  	}
 26743  	ret := &OrderreturnsCreateOrderReturnResponse{
 26744  		ServerResponse: googleapi.ServerResponse{
 26745  			Header:         res.Header,
 26746  			HTTPStatusCode: res.StatusCode,
 26747  		},
 26748  	}
 26749  	target := &ret
 26750  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26751  		return nil, err
 26752  	}
 26753  	return ret, nil
 26754  }
 26755  
 26756  type OrderreturnsGetCall struct {
 26757  	s            *APIService
 26758  	merchantId   uint64
 26759  	returnId     string
 26760  	urlParams_   gensupport.URLParams
 26761  	ifNoneMatch_ string
 26762  	ctx_         context.Context
 26763  	header_      http.Header
 26764  }
 26765  
 26766  // Get: Retrieves an order return from your Merchant Center account.
 26767  //
 26768  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26769  //     multi-client account.
 26770  //   - returnId: Merchant order return ID generated by Google.
 26771  func (r *OrderreturnsService) Get(merchantId uint64, returnId string) *OrderreturnsGetCall {
 26772  	c := &OrderreturnsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26773  	c.merchantId = merchantId
 26774  	c.returnId = returnId
 26775  	return c
 26776  }
 26777  
 26778  // Fields allows partial responses to be retrieved. See
 26779  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26780  // details.
 26781  func (c *OrderreturnsGetCall) Fields(s ...googleapi.Field) *OrderreturnsGetCall {
 26782  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26783  	return c
 26784  }
 26785  
 26786  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26787  // object's ETag matches the given value. This is useful for getting updates
 26788  // only after the object has changed since the last request.
 26789  func (c *OrderreturnsGetCall) IfNoneMatch(entityTag string) *OrderreturnsGetCall {
 26790  	c.ifNoneMatch_ = entityTag
 26791  	return c
 26792  }
 26793  
 26794  // Context sets the context to be used in this call's Do method.
 26795  func (c *OrderreturnsGetCall) Context(ctx context.Context) *OrderreturnsGetCall {
 26796  	c.ctx_ = ctx
 26797  	return c
 26798  }
 26799  
 26800  // Header returns a http.Header that can be modified by the caller to add
 26801  // headers to the request.
 26802  func (c *OrderreturnsGetCall) Header() http.Header {
 26803  	if c.header_ == nil {
 26804  		c.header_ = make(http.Header)
 26805  	}
 26806  	return c.header_
 26807  }
 26808  
 26809  func (c *OrderreturnsGetCall) doRequest(alt string) (*http.Response, error) {
 26810  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26811  	if c.ifNoneMatch_ != "" {
 26812  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26813  	}
 26814  	var body io.Reader = nil
 26815  	c.urlParams_.Set("alt", alt)
 26816  	c.urlParams_.Set("prettyPrint", "false")
 26817  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}")
 26818  	urls += "?" + c.urlParams_.Encode()
 26819  	req, err := http.NewRequest("GET", urls, body)
 26820  	if err != nil {
 26821  		return nil, err
 26822  	}
 26823  	req.Header = reqHeaders
 26824  	googleapi.Expand(req.URL, map[string]string{
 26825  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 26826  		"returnId":   c.returnId,
 26827  	})
 26828  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26829  }
 26830  
 26831  // Do executes the "content.orderreturns.get" call.
 26832  // Any non-2xx status code is an error. Response headers are in either
 26833  // *MerchantOrderReturn.ServerResponse.Header or (if a response was returned at
 26834  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26835  // check whether the returned error was because http.StatusNotModified was
 26836  // returned.
 26837  func (c *OrderreturnsGetCall) Do(opts ...googleapi.CallOption) (*MerchantOrderReturn, error) {
 26838  	gensupport.SetOptions(c.urlParams_, opts...)
 26839  	res, err := c.doRequest("json")
 26840  	if res != nil && res.StatusCode == http.StatusNotModified {
 26841  		if res.Body != nil {
 26842  			res.Body.Close()
 26843  		}
 26844  		return nil, gensupport.WrapError(&googleapi.Error{
 26845  			Code:   res.StatusCode,
 26846  			Header: res.Header,
 26847  		})
 26848  	}
 26849  	if err != nil {
 26850  		return nil, err
 26851  	}
 26852  	defer googleapi.CloseBody(res)
 26853  	if err := googleapi.CheckResponse(res); err != nil {
 26854  		return nil, gensupport.WrapError(err)
 26855  	}
 26856  	ret := &MerchantOrderReturn{
 26857  		ServerResponse: googleapi.ServerResponse{
 26858  			Header:         res.Header,
 26859  			HTTPStatusCode: res.StatusCode,
 26860  		},
 26861  	}
 26862  	target := &ret
 26863  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26864  		return nil, err
 26865  	}
 26866  	return ret, nil
 26867  }
 26868  
 26869  type OrderreturnsListCall struct {
 26870  	s            *APIService
 26871  	merchantId   uint64
 26872  	urlParams_   gensupport.URLParams
 26873  	ifNoneMatch_ string
 26874  	ctx_         context.Context
 26875  	header_      http.Header
 26876  }
 26877  
 26878  // List: Lists order returns in your Merchant Center account.
 26879  //
 26880  //   - merchantId: The ID of the account that manages the order. This cannot be a
 26881  //     multi-client account.
 26882  func (r *OrderreturnsService) List(merchantId uint64) *OrderreturnsListCall {
 26883  	c := &OrderreturnsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26884  	c.merchantId = merchantId
 26885  	return c
 26886  }
 26887  
 26888  // Acknowledged sets the optional parameter "acknowledged": Obtains order
 26889  // returns that match the acknowledgement status. When set to true, obtains
 26890  // order returns that have been acknowledged. When false, obtains order returns
 26891  // that have not been acknowledged. When not provided, obtains order returns
 26892  // regardless of their acknowledgement status. We recommend using this filter
 26893  // set to `false`, in conjunction with the `acknowledge` call, such that only
 26894  // un-acknowledged order returns are returned.
 26895  func (c *OrderreturnsListCall) Acknowledged(acknowledged bool) *OrderreturnsListCall {
 26896  	c.urlParams_.Set("acknowledged", fmt.Sprint(acknowledged))
 26897  	return c
 26898  }
 26899  
 26900  // CreatedEndDate sets the optional parameter "createdEndDate": Obtains order
 26901  // returns created before this date (inclusively), in ISO 8601 format.
 26902  func (c *OrderreturnsListCall) CreatedEndDate(createdEndDate string) *OrderreturnsListCall {
 26903  	c.urlParams_.Set("createdEndDate", createdEndDate)
 26904  	return c
 26905  }
 26906  
 26907  // CreatedStartDate sets the optional parameter "createdStartDate": Obtains
 26908  // order returns created after this date (inclusively), in ISO 8601 format.
 26909  func (c *OrderreturnsListCall) CreatedStartDate(createdStartDate string) *OrderreturnsListCall {
 26910  	c.urlParams_.Set("createdStartDate", createdStartDate)
 26911  	return c
 26912  }
 26913  
 26914  // GoogleOrderIds sets the optional parameter "googleOrderIds": Obtains order
 26915  // returns with the specified order ids. If this parameter is provided,
 26916  // createdStartDate, createdEndDate, shipmentType, shipmentStatus,
 26917  // shipmentState and acknowledged parameters must be not set. Note: if
 26918  // googleOrderId and shipmentTrackingNumber parameters are provided, the
 26919  // obtained results will include all order returns that either match the
 26920  // specified order id or the specified tracking number.
 26921  func (c *OrderreturnsListCall) GoogleOrderIds(googleOrderIds ...string) *OrderreturnsListCall {
 26922  	c.urlParams_.SetMulti("googleOrderIds", append([]string{}, googleOrderIds...))
 26923  	return c
 26924  }
 26925  
 26926  // MaxResults sets the optional parameter "maxResults": The maximum number of
 26927  // order returns to return in the response, used for paging. The default value
 26928  // is 25 returns per page, and the maximum allowed value is 250 returns per
 26929  // page.
 26930  func (c *OrderreturnsListCall) MaxResults(maxResults int64) *OrderreturnsListCall {
 26931  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 26932  	return c
 26933  }
 26934  
 26935  // OrderBy sets the optional parameter "orderBy": Return the results in the
 26936  // specified order.
 26937  //
 26938  // Possible values:
 26939  //
 26940  //	"RETURN_CREATION_TIME_DESC" - Return results in descending order.
 26941  //	"RETURN_CREATION_TIME_ASC" - Return results in ascending order.
 26942  func (c *OrderreturnsListCall) OrderBy(orderBy string) *OrderreturnsListCall {
 26943  	c.urlParams_.Set("orderBy", orderBy)
 26944  	return c
 26945  }
 26946  
 26947  // PageToken sets the optional parameter "pageToken": The token returned by the
 26948  // previous request.
 26949  func (c *OrderreturnsListCall) PageToken(pageToken string) *OrderreturnsListCall {
 26950  	c.urlParams_.Set("pageToken", pageToken)
 26951  	return c
 26952  }
 26953  
 26954  // ShipmentStates sets the optional parameter "shipmentStates": Obtains order
 26955  // returns that match any shipment state provided in this parameter. When this
 26956  // parameter is not provided, order returns are obtained regardless of their
 26957  // shipment states.
 26958  //
 26959  // Possible values:
 26960  //
 26961  //	"NEW" - Return shipments with `new` state only.
 26962  //	"SHIPPED" - Return shipments with `shipped` state only.
 26963  //	"COMPLETED" - Return shipments with `completed` state only.
 26964  //	"UNDELIVERABLE" - Return shipments with `undeliverable` state only.
 26965  //	"PENDING" - Return shipments with `pending` state only.
 26966  func (c *OrderreturnsListCall) ShipmentStates(shipmentStates ...string) *OrderreturnsListCall {
 26967  	c.urlParams_.SetMulti("shipmentStates", append([]string{}, shipmentStates...))
 26968  	return c
 26969  }
 26970  
 26971  // ShipmentStatus sets the optional parameter "shipmentStatus": Obtains order
 26972  // returns that match any shipment status provided in this parameter. When this
 26973  // parameter is not provided, order returns are obtained regardless of their
 26974  // shipment statuses.
 26975  //
 26976  // Possible values:
 26977  //
 26978  //	"NEW" - Return shipments with `new` status only.
 26979  //	"IN_PROGRESS" - Return shipments with `inProgress` status only.
 26980  //	"PROCESSED" - Return shipments with `processed` status only.
 26981  func (c *OrderreturnsListCall) ShipmentStatus(shipmentStatus ...string) *OrderreturnsListCall {
 26982  	c.urlParams_.SetMulti("shipmentStatus", append([]string{}, shipmentStatus...))
 26983  	return c
 26984  }
 26985  
 26986  // ShipmentTrackingNumbers sets the optional parameter
 26987  // "shipmentTrackingNumbers": Obtains order returns with the specified tracking
 26988  // numbers. If this parameter is provided, createdStartDate, createdEndDate,
 26989  // shipmentType, shipmentStatus, shipmentState and acknowledged parameters must
 26990  // be not set. Note: if googleOrderId and shipmentTrackingNumber parameters are
 26991  // provided, the obtained results will include all order returns that either
 26992  // match the specified order id or the specified tracking number.
 26993  func (c *OrderreturnsListCall) ShipmentTrackingNumbers(shipmentTrackingNumbers ...string) *OrderreturnsListCall {
 26994  	c.urlParams_.SetMulti("shipmentTrackingNumbers", append([]string{}, shipmentTrackingNumbers...))
 26995  	return c
 26996  }
 26997  
 26998  // ShipmentTypes sets the optional parameter "shipmentTypes": Obtains order
 26999  // returns that match any shipment type provided in this parameter. When this
 27000  // parameter is not provided, order returns are obtained regardless of their
 27001  // shipment types.
 27002  //
 27003  // Possible values:
 27004  //
 27005  //	"BY_MAIL" - Return shipments with type `byMail` only.
 27006  //	"RETURNLESS" - Return shipments with type `returnless` only.
 27007  //	"CONTACT_CUSTOMER_SUPPORT" - Return shipments with type
 27008  //
 27009  // `contactCustomerSupport` only.
 27010  func (c *OrderreturnsListCall) ShipmentTypes(shipmentTypes ...string) *OrderreturnsListCall {
 27011  	c.urlParams_.SetMulti("shipmentTypes", append([]string{}, shipmentTypes...))
 27012  	return c
 27013  }
 27014  
 27015  // Fields allows partial responses to be retrieved. See
 27016  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27017  // details.
 27018  func (c *OrderreturnsListCall) Fields(s ...googleapi.Field) *OrderreturnsListCall {
 27019  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27020  	return c
 27021  }
 27022  
 27023  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27024  // object's ETag matches the given value. This is useful for getting updates
 27025  // only after the object has changed since the last request.
 27026  func (c *OrderreturnsListCall) IfNoneMatch(entityTag string) *OrderreturnsListCall {
 27027  	c.ifNoneMatch_ = entityTag
 27028  	return c
 27029  }
 27030  
 27031  // Context sets the context to be used in this call's Do method.
 27032  func (c *OrderreturnsListCall) Context(ctx context.Context) *OrderreturnsListCall {
 27033  	c.ctx_ = ctx
 27034  	return c
 27035  }
 27036  
 27037  // Header returns a http.Header that can be modified by the caller to add
 27038  // headers to the request.
 27039  func (c *OrderreturnsListCall) Header() http.Header {
 27040  	if c.header_ == nil {
 27041  		c.header_ = make(http.Header)
 27042  	}
 27043  	return c.header_
 27044  }
 27045  
 27046  func (c *OrderreturnsListCall) doRequest(alt string) (*http.Response, error) {
 27047  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27048  	if c.ifNoneMatch_ != "" {
 27049  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27050  	}
 27051  	var body io.Reader = nil
 27052  	c.urlParams_.Set("alt", alt)
 27053  	c.urlParams_.Set("prettyPrint", "false")
 27054  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns")
 27055  	urls += "?" + c.urlParams_.Encode()
 27056  	req, err := http.NewRequest("GET", urls, body)
 27057  	if err != nil {
 27058  		return nil, err
 27059  	}
 27060  	req.Header = reqHeaders
 27061  	googleapi.Expand(req.URL, map[string]string{
 27062  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 27063  	})
 27064  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27065  }
 27066  
 27067  // Do executes the "content.orderreturns.list" call.
 27068  // Any non-2xx status code is an error. Response headers are in either
 27069  // *OrderreturnsListResponse.ServerResponse.Header or (if a response was
 27070  // returned at all) in error.(*googleapi.Error).Header. Use
 27071  // googleapi.IsNotModified to check whether the returned error was because
 27072  // http.StatusNotModified was returned.
 27073  func (c *OrderreturnsListCall) Do(opts ...googleapi.CallOption) (*OrderreturnsListResponse, error) {
 27074  	gensupport.SetOptions(c.urlParams_, opts...)
 27075  	res, err := c.doRequest("json")
 27076  	if res != nil && res.StatusCode == http.StatusNotModified {
 27077  		if res.Body != nil {
 27078  			res.Body.Close()
 27079  		}
 27080  		return nil, gensupport.WrapError(&googleapi.Error{
 27081  			Code:   res.StatusCode,
 27082  			Header: res.Header,
 27083  		})
 27084  	}
 27085  	if err != nil {
 27086  		return nil, err
 27087  	}
 27088  	defer googleapi.CloseBody(res)
 27089  	if err := googleapi.CheckResponse(res); err != nil {
 27090  		return nil, gensupport.WrapError(err)
 27091  	}
 27092  	ret := &OrderreturnsListResponse{
 27093  		ServerResponse: googleapi.ServerResponse{
 27094  			Header:         res.Header,
 27095  			HTTPStatusCode: res.StatusCode,
 27096  		},
 27097  	}
 27098  	target := &ret
 27099  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27100  		return nil, err
 27101  	}
 27102  	return ret, nil
 27103  }
 27104  
 27105  // Pages invokes f for each page of results.
 27106  // A non-nil error returned from f will halt the iteration.
 27107  // The provided context supersedes any context provided to the Context method.
 27108  func (c *OrderreturnsListCall) Pages(ctx context.Context, f func(*OrderreturnsListResponse) error) error {
 27109  	c.ctx_ = ctx
 27110  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27111  	for {
 27112  		x, err := c.Do()
 27113  		if err != nil {
 27114  			return err
 27115  		}
 27116  		if err := f(x); err != nil {
 27117  			return err
 27118  		}
 27119  		if x.NextPageToken == "" {
 27120  			return nil
 27121  		}
 27122  		c.PageToken(x.NextPageToken)
 27123  	}
 27124  }
 27125  
 27126  type OrderreturnsProcessCall struct {
 27127  	s                          *APIService
 27128  	merchantId                 uint64
 27129  	returnId                   string
 27130  	orderreturnsprocessrequest *OrderreturnsProcessRequest
 27131  	urlParams_                 gensupport.URLParams
 27132  	ctx_                       context.Context
 27133  	header_                    http.Header
 27134  }
 27135  
 27136  // Process: Processes return in your Merchant Center account.
 27137  //
 27138  //   - merchantId: The ID of the account that manages the order. This cannot be a
 27139  //     multi-client account.
 27140  //   - returnId: The ID of the return.
 27141  func (r *OrderreturnsService) Process(merchantId uint64, returnId string, orderreturnsprocessrequest *OrderreturnsProcessRequest) *OrderreturnsProcessCall {
 27142  	c := &OrderreturnsProcessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27143  	c.merchantId = merchantId
 27144  	c.returnId = returnId
 27145  	c.orderreturnsprocessrequest = orderreturnsprocessrequest
 27146  	return c
 27147  }
 27148  
 27149  // Fields allows partial responses to be retrieved. See
 27150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27151  // details.
 27152  func (c *OrderreturnsProcessCall) Fields(s ...googleapi.Field) *OrderreturnsProcessCall {
 27153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27154  	return c
 27155  }
 27156  
 27157  // Context sets the context to be used in this call's Do method.
 27158  func (c *OrderreturnsProcessCall) Context(ctx context.Context) *OrderreturnsProcessCall {
 27159  	c.ctx_ = ctx
 27160  	return c
 27161  }
 27162  
 27163  // Header returns a http.Header that can be modified by the caller to add
 27164  // headers to the request.
 27165  func (c *OrderreturnsProcessCall) Header() http.Header {
 27166  	if c.header_ == nil {
 27167  		c.header_ = make(http.Header)
 27168  	}
 27169  	return c.header_
 27170  }
 27171  
 27172  func (c *OrderreturnsProcessCall) doRequest(alt string) (*http.Response, error) {
 27173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27174  	var body io.Reader = nil
 27175  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderreturnsprocessrequest)
 27176  	if err != nil {
 27177  		return nil, err
 27178  	}
 27179  	c.urlParams_.Set("alt", alt)
 27180  	c.urlParams_.Set("prettyPrint", "false")
 27181  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}/process")
 27182  	urls += "?" + c.urlParams_.Encode()
 27183  	req, err := http.NewRequest("POST", urls, body)
 27184  	if err != nil {
 27185  		return nil, err
 27186  	}
 27187  	req.Header = reqHeaders
 27188  	googleapi.Expand(req.URL, map[string]string{
 27189  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 27190  		"returnId":   c.returnId,
 27191  	})
 27192  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27193  }
 27194  
 27195  // Do executes the "content.orderreturns.process" call.
 27196  // Any non-2xx status code is an error. Response headers are in either
 27197  // *OrderreturnsProcessResponse.ServerResponse.Header or (if a response was
 27198  // returned at all) in error.(*googleapi.Error).Header. Use
 27199  // googleapi.IsNotModified to check whether the returned error was because
 27200  // http.StatusNotModified was returned.
 27201  func (c *OrderreturnsProcessCall) Do(opts ...googleapi.CallOption) (*OrderreturnsProcessResponse, error) {
 27202  	gensupport.SetOptions(c.urlParams_, opts...)
 27203  	res, err := c.doRequest("json")
 27204  	if res != nil && res.StatusCode == http.StatusNotModified {
 27205  		if res.Body != nil {
 27206  			res.Body.Close()
 27207  		}
 27208  		return nil, gensupport.WrapError(&googleapi.Error{
 27209  			Code:   res.StatusCode,
 27210  			Header: res.Header,
 27211  		})
 27212  	}
 27213  	if err != nil {
 27214  		return nil, err
 27215  	}
 27216  	defer googleapi.CloseBody(res)
 27217  	if err := googleapi.CheckResponse(res); err != nil {
 27218  		return nil, gensupport.WrapError(err)
 27219  	}
 27220  	ret := &OrderreturnsProcessResponse{
 27221  		ServerResponse: googleapi.ServerResponse{
 27222  			Header:         res.Header,
 27223  			HTTPStatusCode: res.StatusCode,
 27224  		},
 27225  	}
 27226  	target := &ret
 27227  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27228  		return nil, err
 27229  	}
 27230  	return ret, nil
 27231  }
 27232  
 27233  type OrderreturnsLabelsCreateCall struct {
 27234  	s                   *APIService
 27235  	merchantId          int64
 27236  	returnId            string
 27237  	returnshippinglabel *ReturnShippingLabel
 27238  	urlParams_          gensupport.URLParams
 27239  	ctx_                context.Context
 27240  	header_             http.Header
 27241  }
 27242  
 27243  // Create: Links a return shipping label to a return id. You can only create
 27244  // one return label per return id. Since the label is sent to the buyer, the
 27245  // linked return label cannot be updated or deleted. If you try to create
 27246  // multiple return shipping labels for a single return id, every create request
 27247  // except the first will fail.
 27248  //
 27249  // - merchantId: The merchant the Return Shipping Label belongs to.
 27250  // - returnId: Provide the Google-generated merchant order return ID.
 27251  func (r *OrderreturnsLabelsService) Create(merchantId int64, returnId string, returnshippinglabel *ReturnShippingLabel) *OrderreturnsLabelsCreateCall {
 27252  	c := &OrderreturnsLabelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27253  	c.merchantId = merchantId
 27254  	c.returnId = returnId
 27255  	c.returnshippinglabel = returnshippinglabel
 27256  	return c
 27257  }
 27258  
 27259  // Fields allows partial responses to be retrieved. See
 27260  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27261  // details.
 27262  func (c *OrderreturnsLabelsCreateCall) Fields(s ...googleapi.Field) *OrderreturnsLabelsCreateCall {
 27263  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27264  	return c
 27265  }
 27266  
 27267  // Context sets the context to be used in this call's Do method.
 27268  func (c *OrderreturnsLabelsCreateCall) Context(ctx context.Context) *OrderreturnsLabelsCreateCall {
 27269  	c.ctx_ = ctx
 27270  	return c
 27271  }
 27272  
 27273  // Header returns a http.Header that can be modified by the caller to add
 27274  // headers to the request.
 27275  func (c *OrderreturnsLabelsCreateCall) Header() http.Header {
 27276  	if c.header_ == nil {
 27277  		c.header_ = make(http.Header)
 27278  	}
 27279  	return c.header_
 27280  }
 27281  
 27282  func (c *OrderreturnsLabelsCreateCall) doRequest(alt string) (*http.Response, error) {
 27283  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27284  	var body io.Reader = nil
 27285  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnshippinglabel)
 27286  	if err != nil {
 27287  		return nil, err
 27288  	}
 27289  	c.urlParams_.Set("alt", alt)
 27290  	c.urlParams_.Set("prettyPrint", "false")
 27291  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orderreturns/{returnId}/labels")
 27292  	urls += "?" + c.urlParams_.Encode()
 27293  	req, err := http.NewRequest("POST", urls, body)
 27294  	if err != nil {
 27295  		return nil, err
 27296  	}
 27297  	req.Header = reqHeaders
 27298  	googleapi.Expand(req.URL, map[string]string{
 27299  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 27300  		"returnId":   c.returnId,
 27301  	})
 27302  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27303  }
 27304  
 27305  // Do executes the "content.orderreturns.labels.create" call.
 27306  // Any non-2xx status code is an error. Response headers are in either
 27307  // *ReturnShippingLabel.ServerResponse.Header or (if a response was returned at
 27308  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27309  // check whether the returned error was because http.StatusNotModified was
 27310  // returned.
 27311  func (c *OrderreturnsLabelsCreateCall) Do(opts ...googleapi.CallOption) (*ReturnShippingLabel, error) {
 27312  	gensupport.SetOptions(c.urlParams_, opts...)
 27313  	res, err := c.doRequest("json")
 27314  	if res != nil && res.StatusCode == http.StatusNotModified {
 27315  		if res.Body != nil {
 27316  			res.Body.Close()
 27317  		}
 27318  		return nil, gensupport.WrapError(&googleapi.Error{
 27319  			Code:   res.StatusCode,
 27320  			Header: res.Header,
 27321  		})
 27322  	}
 27323  	if err != nil {
 27324  		return nil, err
 27325  	}
 27326  	defer googleapi.CloseBody(res)
 27327  	if err := googleapi.CheckResponse(res); err != nil {
 27328  		return nil, gensupport.WrapError(err)
 27329  	}
 27330  	ret := &ReturnShippingLabel{
 27331  		ServerResponse: googleapi.ServerResponse{
 27332  			Header:         res.Header,
 27333  			HTTPStatusCode: res.StatusCode,
 27334  		},
 27335  	}
 27336  	target := &ret
 27337  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27338  		return nil, err
 27339  	}
 27340  	return ret, nil
 27341  }
 27342  
 27343  type OrdersAcknowledgeCall struct {
 27344  	s                        *APIService
 27345  	merchantId               uint64
 27346  	orderId                  string
 27347  	ordersacknowledgerequest *OrdersAcknowledgeRequest
 27348  	urlParams_               gensupport.URLParams
 27349  	ctx_                     context.Context
 27350  	header_                  http.Header
 27351  }
 27352  
 27353  // Acknowledge: Marks an order as acknowledged.
 27354  //
 27355  //   - merchantId: The ID of the account that manages the order. This cannot be a
 27356  //     multi-client account.
 27357  //   - orderId: The ID of the order.
 27358  func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall {
 27359  	c := &OrdersAcknowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27360  	c.merchantId = merchantId
 27361  	c.orderId = orderId
 27362  	c.ordersacknowledgerequest = ordersacknowledgerequest
 27363  	return c
 27364  }
 27365  
 27366  // Fields allows partial responses to be retrieved. See
 27367  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27368  // details.
 27369  func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall {
 27370  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27371  	return c
 27372  }
 27373  
 27374  // Context sets the context to be used in this call's Do method.
 27375  func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall {
 27376  	c.ctx_ = ctx
 27377  	return c
 27378  }
 27379  
 27380  // Header returns a http.Header that can be modified by the caller to add
 27381  // headers to the request.
 27382  func (c *OrdersAcknowledgeCall) Header() http.Header {
 27383  	if c.header_ == nil {
 27384  		c.header_ = make(http.Header)
 27385  	}
 27386  	return c.header_
 27387  }
 27388  
 27389  func (c *OrdersAcknowledgeCall) doRequest(alt string) (*http.Response, error) {
 27390  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27391  	var body io.Reader = nil
 27392  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersacknowledgerequest)
 27393  	if err != nil {
 27394  		return nil, err
 27395  	}
 27396  	c.urlParams_.Set("alt", alt)
 27397  	c.urlParams_.Set("prettyPrint", "false")
 27398  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/acknowledge")
 27399  	urls += "?" + c.urlParams_.Encode()
 27400  	req, err := http.NewRequest("POST", urls, body)
 27401  	if err != nil {
 27402  		return nil, err
 27403  	}
 27404  	req.Header = reqHeaders
 27405  	googleapi.Expand(req.URL, map[string]string{
 27406  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 27407  		"orderId":    c.orderId,
 27408  	})
 27409  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27410  }
 27411  
 27412  // Do executes the "content.orders.acknowledge" call.
 27413  // Any non-2xx status code is an error. Response headers are in either
 27414  // *OrdersAcknowledgeResponse.ServerResponse.Header or (if a response was
 27415  // returned at all) in error.(*googleapi.Error).Header. Use
 27416  // googleapi.IsNotModified to check whether the returned error was because
 27417  // http.StatusNotModified was returned.
 27418  func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error) {
 27419  	gensupport.SetOptions(c.urlParams_, opts...)
 27420  	res, err := c.doRequest("json")
 27421  	if res != nil && res.StatusCode == http.StatusNotModified {
 27422  		if res.Body != nil {
 27423  			res.Body.Close()
 27424  		}
 27425  		return nil, gensupport.WrapError(&googleapi.Error{
 27426  			Code:   res.StatusCode,
 27427  			Header: res.Header,
 27428  		})
 27429  	}
 27430  	if err != nil {
 27431  		return nil, err
 27432  	}
 27433  	defer googleapi.CloseBody(res)
 27434  	if err := googleapi.CheckResponse(res); err != nil {
 27435  		return nil, gensupport.WrapError(err)
 27436  	}
 27437  	ret := &OrdersAcknowledgeResponse{
 27438  		ServerResponse: googleapi.ServerResponse{
 27439  			Header:         res.Header,
 27440  			HTTPStatusCode: res.StatusCode,
 27441  		},
 27442  	}
 27443  	target := &ret
 27444  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27445  		return nil, err
 27446  	}
 27447  	return ret, nil
 27448  }
 27449  
 27450  type OrdersAdvancetestorderCall struct {
 27451  	s          *APIService
 27452  	merchantId uint64
 27453  	orderId    string
 27454  	urlParams_ gensupport.URLParams
 27455  	ctx_       context.Context
 27456  	header_    http.Header
 27457  }
 27458  
 27459  // Advancetestorder: Sandbox only. Moves a test order from state "inProgress"
 27460  // to state "pendingShipment".
 27461  //
 27462  //   - merchantId: The ID of the account that manages the order. This cannot be a
 27463  //     multi-client account.
 27464  //   - orderId: The ID of the test order to modify.
 27465  func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall {
 27466  	c := &OrdersAdvancetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27467  	c.merchantId = merchantId
 27468  	c.orderId = orderId
 27469  	return c
 27470  }
 27471  
 27472  // Fields allows partial responses to be retrieved. See
 27473  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27474  // details.
 27475  func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall {
 27476  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27477  	return c
 27478  }
 27479  
 27480  // Context sets the context to be used in this call's Do method.
 27481  func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall {
 27482  	c.ctx_ = ctx
 27483  	return c
 27484  }
 27485  
 27486  // Header returns a http.Header that can be modified by the caller to add
 27487  // headers to the request.
 27488  func (c *OrdersAdvancetestorderCall) Header() http.Header {
 27489  	if c.header_ == nil {
 27490  		c.header_ = make(http.Header)
 27491  	}
 27492  	return c.header_
 27493  }
 27494  
 27495  func (c *OrdersAdvancetestorderCall) doRequest(alt string) (*http.Response, error) {
 27496  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27497  	var body io.Reader = nil
 27498  	c.urlParams_.Set("alt", alt)
 27499  	c.urlParams_.Set("prettyPrint", "false")
 27500  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/advance")
 27501  	urls += "?" + c.urlParams_.Encode()
 27502  	req, err := http.NewRequest("POST", urls, body)
 27503  	if err != nil {
 27504  		return nil, err
 27505  	}
 27506  	req.Header = reqHeaders
 27507  	googleapi.Expand(req.URL, map[string]string{
 27508  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 27509  		"orderId":    c.orderId,
 27510  	})
 27511  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27512  }
 27513  
 27514  // Do executes the "content.orders.advancetestorder" call.
 27515  // Any non-2xx status code is an error. Response headers are in either
 27516  // *OrdersAdvanceTestOrderResponse.ServerResponse.Header or (if a response was
 27517  // returned at all) in error.(*googleapi.Error).Header. Use
 27518  // googleapi.IsNotModified to check whether the returned error was because
 27519  // http.StatusNotModified was returned.
 27520  func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error) {
 27521  	gensupport.SetOptions(c.urlParams_, opts...)
 27522  	res, err := c.doRequest("json")
 27523  	if res != nil && res.StatusCode == http.StatusNotModified {
 27524  		if res.Body != nil {
 27525  			res.Body.Close()
 27526  		}
 27527  		return nil, gensupport.WrapError(&googleapi.Error{
 27528  			Code:   res.StatusCode,
 27529  			Header: res.Header,
 27530  		})
 27531  	}
 27532  	if err != nil {
 27533  		return nil, err
 27534  	}
 27535  	defer googleapi.CloseBody(res)
 27536  	if err := googleapi.CheckResponse(res); err != nil {
 27537  		return nil, gensupport.WrapError(err)
 27538  	}
 27539  	ret := &OrdersAdvanceTestOrderResponse{
 27540  		ServerResponse: googleapi.ServerResponse{
 27541  			Header:         res.Header,
 27542  			HTTPStatusCode: res.StatusCode,
 27543  		},
 27544  	}
 27545  	target := &ret
 27546  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27547  		return nil, err
 27548  	}
 27549  	return ret, nil
 27550  }
 27551  
 27552  type OrdersCancelCall struct {
 27553  	s                   *APIService
 27554  	merchantId          uint64
 27555  	orderId             string
 27556  	orderscancelrequest *OrdersCancelRequest
 27557  	urlParams_          gensupport.URLParams
 27558  	ctx_                context.Context
 27559  	header_             http.Header
 27560  }
 27561  
 27562  // Cancel: Cancels all line items in an order, making a full refund.
 27563  //
 27564  //   - merchantId: The ID of the account that manages the order. This cannot be a
 27565  //     multi-client account.
 27566  //   - orderId: The ID of the order to cancel.
 27567  func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall {
 27568  	c := &OrdersCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27569  	c.merchantId = merchantId
 27570  	c.orderId = orderId
 27571  	c.orderscancelrequest = orderscancelrequest
 27572  	return c
 27573  }
 27574  
 27575  // Fields allows partial responses to be retrieved. See
 27576  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27577  // details.
 27578  func (c *OrdersCancelCall) Fields(s ...googleapi.Field) *OrdersCancelCall {
 27579  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27580  	return c
 27581  }
 27582  
 27583  // Context sets the context to be used in this call's Do method.
 27584  func (c *OrdersCancelCall) Context(ctx context.Context) *OrdersCancelCall {
 27585  	c.ctx_ = ctx
 27586  	return c
 27587  }
 27588  
 27589  // Header returns a http.Header that can be modified by the caller to add
 27590  // headers to the request.
 27591  func (c *OrdersCancelCall) Header() http.Header {
 27592  	if c.header_ == nil {
 27593  		c.header_ = make(http.Header)
 27594  	}
 27595  	return c.header_
 27596  }
 27597  
 27598  func (c *OrdersCancelCall) doRequest(alt string) (*http.Response, error) {
 27599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27600  	var body io.Reader = nil
 27601  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancelrequest)
 27602  	if err != nil {
 27603  		return nil, err
 27604  	}
 27605  	c.urlParams_.Set("alt", alt)
 27606  	c.urlParams_.Set("prettyPrint", "false")
 27607  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancel")
 27608  	urls += "?" + c.urlParams_.Encode()
 27609  	req, err := http.NewRequest("POST", urls, body)
 27610  	if err != nil {
 27611  		return nil, err
 27612  	}
 27613  	req.Header = reqHeaders
 27614  	googleapi.Expand(req.URL, map[string]string{
 27615  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 27616  		"orderId":    c.orderId,
 27617  	})
 27618  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27619  }
 27620  
 27621  // Do executes the "content.orders.cancel" call.
 27622  // Any non-2xx status code is an error. Response headers are in either
 27623  // *OrdersCancelResponse.ServerResponse.Header or (if a response was returned
 27624  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27625  // check whether the returned error was because http.StatusNotModified was
 27626  // returned.
 27627  func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelResponse, error) {
 27628  	gensupport.SetOptions(c.urlParams_, opts...)
 27629  	res, err := c.doRequest("json")
 27630  	if res != nil && res.StatusCode == http.StatusNotModified {
 27631  		if res.Body != nil {
 27632  			res.Body.Close()
 27633  		}
 27634  		return nil, gensupport.WrapError(&googleapi.Error{
 27635  			Code:   res.StatusCode,
 27636  			Header: res.Header,
 27637  		})
 27638  	}
 27639  	if err != nil {
 27640  		return nil, err
 27641  	}
 27642  	defer googleapi.CloseBody(res)
 27643  	if err := googleapi.CheckResponse(res); err != nil {
 27644  		return nil, gensupport.WrapError(err)
 27645  	}
 27646  	ret := &OrdersCancelResponse{
 27647  		ServerResponse: googleapi.ServerResponse{
 27648  			Header:         res.Header,
 27649  			HTTPStatusCode: res.StatusCode,
 27650  		},
 27651  	}
 27652  	target := &ret
 27653  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27654  		return nil, err
 27655  	}
 27656  	return ret, nil
 27657  }
 27658  
 27659  type OrdersCancellineitemCall struct {
 27660  	s                           *APIService
 27661  	merchantId                  uint64
 27662  	orderId                     string
 27663  	orderscancellineitemrequest *OrdersCancelLineItemRequest
 27664  	urlParams_                  gensupport.URLParams
 27665  	ctx_                        context.Context
 27666  	header_                     http.Header
 27667  }
 27668  
 27669  // Cancellineitem: Cancels a line item, making a full refund.
 27670  //
 27671  //   - merchantId: The ID of the account that manages the order. This cannot be a
 27672  //     multi-client account.
 27673  //   - orderId: The ID of the order.
 27674  func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall {
 27675  	c := &OrdersCancellineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27676  	c.merchantId = merchantId
 27677  	c.orderId = orderId
 27678  	c.orderscancellineitemrequest = orderscancellineitemrequest
 27679  	return c
 27680  }
 27681  
 27682  // Fields allows partial responses to be retrieved. See
 27683  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27684  // details.
 27685  func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall {
 27686  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27687  	return c
 27688  }
 27689  
 27690  // Context sets the context to be used in this call's Do method.
 27691  func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall {
 27692  	c.ctx_ = ctx
 27693  	return c
 27694  }
 27695  
 27696  // Header returns a http.Header that can be modified by the caller to add
 27697  // headers to the request.
 27698  func (c *OrdersCancellineitemCall) Header() http.Header {
 27699  	if c.header_ == nil {
 27700  		c.header_ = make(http.Header)
 27701  	}
 27702  	return c.header_
 27703  }
 27704  
 27705  func (c *OrdersCancellineitemCall) doRequest(alt string) (*http.Response, error) {
 27706  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27707  	var body io.Reader = nil
 27708  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscancellineitemrequest)
 27709  	if err != nil {
 27710  		return nil, err
 27711  	}
 27712  	c.urlParams_.Set("alt", alt)
 27713  	c.urlParams_.Set("prettyPrint", "false")
 27714  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/cancelLineItem")
 27715  	urls += "?" + c.urlParams_.Encode()
 27716  	req, err := http.NewRequest("POST", urls, body)
 27717  	if err != nil {
 27718  		return nil, err
 27719  	}
 27720  	req.Header = reqHeaders
 27721  	googleapi.Expand(req.URL, map[string]string{
 27722  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 27723  		"orderId":    c.orderId,
 27724  	})
 27725  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27726  }
 27727  
 27728  // Do executes the "content.orders.cancellineitem" call.
 27729  // Any non-2xx status code is an error. Response headers are in either
 27730  // *OrdersCancelLineItemResponse.ServerResponse.Header or (if a response was
 27731  // returned at all) in error.(*googleapi.Error).Header. Use
 27732  // googleapi.IsNotModified to check whether the returned error was because
 27733  // http.StatusNotModified was returned.
 27734  func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error) {
 27735  	gensupport.SetOptions(c.urlParams_, opts...)
 27736  	res, err := c.doRequest("json")
 27737  	if res != nil && res.StatusCode == http.StatusNotModified {
 27738  		if res.Body != nil {
 27739  			res.Body.Close()
 27740  		}
 27741  		return nil, gensupport.WrapError(&googleapi.Error{
 27742  			Code:   res.StatusCode,
 27743  			Header: res.Header,
 27744  		})
 27745  	}
 27746  	if err != nil {
 27747  		return nil, err
 27748  	}
 27749  	defer googleapi.CloseBody(res)
 27750  	if err := googleapi.CheckResponse(res); err != nil {
 27751  		return nil, gensupport.WrapError(err)
 27752  	}
 27753  	ret := &OrdersCancelLineItemResponse{
 27754  		ServerResponse: googleapi.ServerResponse{
 27755  			Header:         res.Header,
 27756  			HTTPStatusCode: res.StatusCode,
 27757  		},
 27758  	}
 27759  	target := &ret
 27760  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27761  		return nil, err
 27762  	}
 27763  	return ret, nil
 27764  }
 27765  
 27766  type OrdersCanceltestorderbycustomerCall struct {
 27767  	s                                      *APIService
 27768  	merchantId                             uint64
 27769  	orderId                                string
 27770  	orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest
 27771  	urlParams_                             gensupport.URLParams
 27772  	ctx_                                   context.Context
 27773  	header_                                http.Header
 27774  }
 27775  
 27776  // Canceltestorderbycustomer: Sandbox only. Cancels a test order for
 27777  // customer-initiated cancellation.
 27778  //
 27779  //   - merchantId: The ID of the account that manages the order. This cannot be a
 27780  //     multi-client account.
 27781  //   - orderId: The ID of the test order to cancel.
 27782  func (r *OrdersService) Canceltestorderbycustomer(merchantId uint64, orderId string, orderscanceltestorderbycustomerrequest *OrdersCancelTestOrderByCustomerRequest) *OrdersCanceltestorderbycustomerCall {
 27783  	c := &OrdersCanceltestorderbycustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27784  	c.merchantId = merchantId
 27785  	c.orderId = orderId
 27786  	c.orderscanceltestorderbycustomerrequest = orderscanceltestorderbycustomerrequest
 27787  	return c
 27788  }
 27789  
 27790  // Fields allows partial responses to be retrieved. See
 27791  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27792  // details.
 27793  func (c *OrdersCanceltestorderbycustomerCall) Fields(s ...googleapi.Field) *OrdersCanceltestorderbycustomerCall {
 27794  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27795  	return c
 27796  }
 27797  
 27798  // Context sets the context to be used in this call's Do method.
 27799  func (c *OrdersCanceltestorderbycustomerCall) Context(ctx context.Context) *OrdersCanceltestorderbycustomerCall {
 27800  	c.ctx_ = ctx
 27801  	return c
 27802  }
 27803  
 27804  // Header returns a http.Header that can be modified by the caller to add
 27805  // headers to the request.
 27806  func (c *OrdersCanceltestorderbycustomerCall) Header() http.Header {
 27807  	if c.header_ == nil {
 27808  		c.header_ = make(http.Header)
 27809  	}
 27810  	return c.header_
 27811  }
 27812  
 27813  func (c *OrdersCanceltestorderbycustomerCall) doRequest(alt string) (*http.Response, error) {
 27814  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27815  	var body io.Reader = nil
 27816  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscanceltestorderbycustomerrequest)
 27817  	if err != nil {
 27818  		return nil, err
 27819  	}
 27820  	c.urlParams_.Set("alt", alt)
 27821  	c.urlParams_.Set("prettyPrint", "false")
 27822  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders/{orderId}/cancelByCustomer")
 27823  	urls += "?" + c.urlParams_.Encode()
 27824  	req, err := http.NewRequest("POST", urls, body)
 27825  	if err != nil {
 27826  		return nil, err
 27827  	}
 27828  	req.Header = reqHeaders
 27829  	googleapi.Expand(req.URL, map[string]string{
 27830  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 27831  		"orderId":    c.orderId,
 27832  	})
 27833  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27834  }
 27835  
 27836  // Do executes the "content.orders.canceltestorderbycustomer" call.
 27837  // Any non-2xx status code is an error. Response headers are in either
 27838  // *OrdersCancelTestOrderByCustomerResponse.ServerResponse.Header or (if a
 27839  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27840  // googleapi.IsNotModified to check whether the returned error was because
 27841  // http.StatusNotModified was returned.
 27842  func (c *OrdersCanceltestorderbycustomerCall) Do(opts ...googleapi.CallOption) (*OrdersCancelTestOrderByCustomerResponse, error) {
 27843  	gensupport.SetOptions(c.urlParams_, opts...)
 27844  	res, err := c.doRequest("json")
 27845  	if res != nil && res.StatusCode == http.StatusNotModified {
 27846  		if res.Body != nil {
 27847  			res.Body.Close()
 27848  		}
 27849  		return nil, gensupport.WrapError(&googleapi.Error{
 27850  			Code:   res.StatusCode,
 27851  			Header: res.Header,
 27852  		})
 27853  	}
 27854  	if err != nil {
 27855  		return nil, err
 27856  	}
 27857  	defer googleapi.CloseBody(res)
 27858  	if err := googleapi.CheckResponse(res); err != nil {
 27859  		return nil, gensupport.WrapError(err)
 27860  	}
 27861  	ret := &OrdersCancelTestOrderByCustomerResponse{
 27862  		ServerResponse: googleapi.ServerResponse{
 27863  			Header:         res.Header,
 27864  			HTTPStatusCode: res.StatusCode,
 27865  		},
 27866  	}
 27867  	target := &ret
 27868  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27869  		return nil, err
 27870  	}
 27871  	return ret, nil
 27872  }
 27873  
 27874  type OrdersCaptureOrderCall struct {
 27875  	s                   *APIService
 27876  	merchantId          int64
 27877  	orderId             string
 27878  	captureorderrequest *CaptureOrderRequest
 27879  	urlParams_          gensupport.URLParams
 27880  	ctx_                context.Context
 27881  	header_             http.Header
 27882  }
 27883  
 27884  // CaptureOrder: Capture funds from the customer for the current order total.
 27885  // This method should be called after the merchant verifies that they are able
 27886  // and ready to start shipping the order. This method blocks until a response
 27887  // is received from the payment processsor. If this method succeeds, the
 27888  // merchant is guaranteed to receive funds for the order after shipment. If the
 27889  // request fails, it can be retried or the order may be cancelled. This method
 27890  // cannot be called after the entire order is already shipped. A rejected error
 27891  // code is returned when the payment service provider has declined the charge.
 27892  // This indicates a problem between the PSP and either the merchant's or
 27893  // customer's account. Sometimes this error will be resolved by the customer.
 27894  // We recommend retrying these errors once per day or cancelling the order with
 27895  // reason `failedToCaptureFunds` if the items cannot be held.
 27896  //
 27897  //   - merchantId: The ID of the account that manages the order. This cannot be a
 27898  //     multi-client account.
 27899  //   - orderId: The ID of the Order.
 27900  func (r *OrdersService) CaptureOrder(merchantId int64, orderId string, captureorderrequest *CaptureOrderRequest) *OrdersCaptureOrderCall {
 27901  	c := &OrdersCaptureOrderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27902  	c.merchantId = merchantId
 27903  	c.orderId = orderId
 27904  	c.captureorderrequest = captureorderrequest
 27905  	return c
 27906  }
 27907  
 27908  // Fields allows partial responses to be retrieved. See
 27909  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27910  // details.
 27911  func (c *OrdersCaptureOrderCall) Fields(s ...googleapi.Field) *OrdersCaptureOrderCall {
 27912  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27913  	return c
 27914  }
 27915  
 27916  // Context sets the context to be used in this call's Do method.
 27917  func (c *OrdersCaptureOrderCall) Context(ctx context.Context) *OrdersCaptureOrderCall {
 27918  	c.ctx_ = ctx
 27919  	return c
 27920  }
 27921  
 27922  // Header returns a http.Header that can be modified by the caller to add
 27923  // headers to the request.
 27924  func (c *OrdersCaptureOrderCall) Header() http.Header {
 27925  	if c.header_ == nil {
 27926  		c.header_ = make(http.Header)
 27927  	}
 27928  	return c.header_
 27929  }
 27930  
 27931  func (c *OrdersCaptureOrderCall) doRequest(alt string) (*http.Response, error) {
 27932  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27933  	var body io.Reader = nil
 27934  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.captureorderrequest)
 27935  	if err != nil {
 27936  		return nil, err
 27937  	}
 27938  	c.urlParams_.Set("alt", alt)
 27939  	c.urlParams_.Set("prettyPrint", "false")
 27940  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/captureOrder")
 27941  	urls += "?" + c.urlParams_.Encode()
 27942  	req, err := http.NewRequest("POST", urls, body)
 27943  	if err != nil {
 27944  		return nil, err
 27945  	}
 27946  	req.Header = reqHeaders
 27947  	googleapi.Expand(req.URL, map[string]string{
 27948  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 27949  		"orderId":    c.orderId,
 27950  	})
 27951  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27952  }
 27953  
 27954  // Do executes the "content.orders.captureOrder" call.
 27955  // Any non-2xx status code is an error. Response headers are in either
 27956  // *CaptureOrderResponse.ServerResponse.Header or (if a response was returned
 27957  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27958  // check whether the returned error was because http.StatusNotModified was
 27959  // returned.
 27960  func (c *OrdersCaptureOrderCall) Do(opts ...googleapi.CallOption) (*CaptureOrderResponse, error) {
 27961  	gensupport.SetOptions(c.urlParams_, opts...)
 27962  	res, err := c.doRequest("json")
 27963  	if res != nil && res.StatusCode == http.StatusNotModified {
 27964  		if res.Body != nil {
 27965  			res.Body.Close()
 27966  		}
 27967  		return nil, gensupport.WrapError(&googleapi.Error{
 27968  			Code:   res.StatusCode,
 27969  			Header: res.Header,
 27970  		})
 27971  	}
 27972  	if err != nil {
 27973  		return nil, err
 27974  	}
 27975  	defer googleapi.CloseBody(res)
 27976  	if err := googleapi.CheckResponse(res); err != nil {
 27977  		return nil, gensupport.WrapError(err)
 27978  	}
 27979  	ret := &CaptureOrderResponse{
 27980  		ServerResponse: googleapi.ServerResponse{
 27981  			Header:         res.Header,
 27982  			HTTPStatusCode: res.StatusCode,
 27983  		},
 27984  	}
 27985  	target := &ret
 27986  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27987  		return nil, err
 27988  	}
 27989  	return ret, nil
 27990  }
 27991  
 27992  type OrdersCreatetestorderCall struct {
 27993  	s                            *APIService
 27994  	merchantId                   uint64
 27995  	orderscreatetestorderrequest *OrdersCreateTestOrderRequest
 27996  	urlParams_                   gensupport.URLParams
 27997  	ctx_                         context.Context
 27998  	header_                      http.Header
 27999  }
 28000  
 28001  // Createtestorder: Sandbox only. Creates a test order.
 28002  //
 28003  //   - merchantId: The ID of the account that should manage the order. This
 28004  //     cannot be a multi-client account.
 28005  func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall {
 28006  	c := &OrdersCreatetestorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28007  	c.merchantId = merchantId
 28008  	c.orderscreatetestorderrequest = orderscreatetestorderrequest
 28009  	return c
 28010  }
 28011  
 28012  // Fields allows partial responses to be retrieved. See
 28013  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28014  // details.
 28015  func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall {
 28016  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28017  	return c
 28018  }
 28019  
 28020  // Context sets the context to be used in this call's Do method.
 28021  func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall {
 28022  	c.ctx_ = ctx
 28023  	return c
 28024  }
 28025  
 28026  // Header returns a http.Header that can be modified by the caller to add
 28027  // headers to the request.
 28028  func (c *OrdersCreatetestorderCall) Header() http.Header {
 28029  	if c.header_ == nil {
 28030  		c.header_ = make(http.Header)
 28031  	}
 28032  	return c.header_
 28033  }
 28034  
 28035  func (c *OrdersCreatetestorderCall) doRequest(alt string) (*http.Response, error) {
 28036  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28037  	var body io.Reader = nil
 28038  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestorderrequest)
 28039  	if err != nil {
 28040  		return nil, err
 28041  	}
 28042  	c.urlParams_.Set("alt", alt)
 28043  	c.urlParams_.Set("prettyPrint", "false")
 28044  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testorders")
 28045  	urls += "?" + c.urlParams_.Encode()
 28046  	req, err := http.NewRequest("POST", urls, body)
 28047  	if err != nil {
 28048  		return nil, err
 28049  	}
 28050  	req.Header = reqHeaders
 28051  	googleapi.Expand(req.URL, map[string]string{
 28052  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 28053  	})
 28054  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28055  }
 28056  
 28057  // Do executes the "content.orders.createtestorder" call.
 28058  // Any non-2xx status code is an error. Response headers are in either
 28059  // *OrdersCreateTestOrderResponse.ServerResponse.Header or (if a response was
 28060  // returned at all) in error.(*googleapi.Error).Header. Use
 28061  // googleapi.IsNotModified to check whether the returned error was because
 28062  // http.StatusNotModified was returned.
 28063  func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error) {
 28064  	gensupport.SetOptions(c.urlParams_, opts...)
 28065  	res, err := c.doRequest("json")
 28066  	if res != nil && res.StatusCode == http.StatusNotModified {
 28067  		if res.Body != nil {
 28068  			res.Body.Close()
 28069  		}
 28070  		return nil, gensupport.WrapError(&googleapi.Error{
 28071  			Code:   res.StatusCode,
 28072  			Header: res.Header,
 28073  		})
 28074  	}
 28075  	if err != nil {
 28076  		return nil, err
 28077  	}
 28078  	defer googleapi.CloseBody(res)
 28079  	if err := googleapi.CheckResponse(res); err != nil {
 28080  		return nil, gensupport.WrapError(err)
 28081  	}
 28082  	ret := &OrdersCreateTestOrderResponse{
 28083  		ServerResponse: googleapi.ServerResponse{
 28084  			Header:         res.Header,
 28085  			HTTPStatusCode: res.StatusCode,
 28086  		},
 28087  	}
 28088  	target := &ret
 28089  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28090  		return nil, err
 28091  	}
 28092  	return ret, nil
 28093  }
 28094  
 28095  type OrdersCreatetestreturnCall struct {
 28096  	s                             *APIService
 28097  	merchantId                    uint64
 28098  	orderId                       string
 28099  	orderscreatetestreturnrequest *OrdersCreateTestReturnRequest
 28100  	urlParams_                    gensupport.URLParams
 28101  	ctx_                          context.Context
 28102  	header_                       http.Header
 28103  }
 28104  
 28105  // Createtestreturn: Sandbox only. Creates a test return.
 28106  //
 28107  //   - merchantId: The ID of the account that manages the order. This cannot be a
 28108  //     multi-client account.
 28109  //   - orderId: The ID of the order.
 28110  func (r *OrdersService) Createtestreturn(merchantId uint64, orderId string, orderscreatetestreturnrequest *OrdersCreateTestReturnRequest) *OrdersCreatetestreturnCall {
 28111  	c := &OrdersCreatetestreturnCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28112  	c.merchantId = merchantId
 28113  	c.orderId = orderId
 28114  	c.orderscreatetestreturnrequest = orderscreatetestreturnrequest
 28115  	return c
 28116  }
 28117  
 28118  // Fields allows partial responses to be retrieved. See
 28119  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28120  // details.
 28121  func (c *OrdersCreatetestreturnCall) Fields(s ...googleapi.Field) *OrdersCreatetestreturnCall {
 28122  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28123  	return c
 28124  }
 28125  
 28126  // Context sets the context to be used in this call's Do method.
 28127  func (c *OrdersCreatetestreturnCall) Context(ctx context.Context) *OrdersCreatetestreturnCall {
 28128  	c.ctx_ = ctx
 28129  	return c
 28130  }
 28131  
 28132  // Header returns a http.Header that can be modified by the caller to add
 28133  // headers to the request.
 28134  func (c *OrdersCreatetestreturnCall) Header() http.Header {
 28135  	if c.header_ == nil {
 28136  		c.header_ = make(http.Header)
 28137  	}
 28138  	return c.header_
 28139  }
 28140  
 28141  func (c *OrdersCreatetestreturnCall) doRequest(alt string) (*http.Response, error) {
 28142  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28143  	var body io.Reader = nil
 28144  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderscreatetestreturnrequest)
 28145  	if err != nil {
 28146  		return nil, err
 28147  	}
 28148  	c.urlParams_.Set("alt", alt)
 28149  	c.urlParams_.Set("prettyPrint", "false")
 28150  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/testreturn")
 28151  	urls += "?" + c.urlParams_.Encode()
 28152  	req, err := http.NewRequest("POST", urls, body)
 28153  	if err != nil {
 28154  		return nil, err
 28155  	}
 28156  	req.Header = reqHeaders
 28157  	googleapi.Expand(req.URL, map[string]string{
 28158  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 28159  		"orderId":    c.orderId,
 28160  	})
 28161  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28162  }
 28163  
 28164  // Do executes the "content.orders.createtestreturn" call.
 28165  // Any non-2xx status code is an error. Response headers are in either
 28166  // *OrdersCreateTestReturnResponse.ServerResponse.Header or (if a response was
 28167  // returned at all) in error.(*googleapi.Error).Header. Use
 28168  // googleapi.IsNotModified to check whether the returned error was because
 28169  // http.StatusNotModified was returned.
 28170  func (c *OrdersCreatetestreturnCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestReturnResponse, error) {
 28171  	gensupport.SetOptions(c.urlParams_, opts...)
 28172  	res, err := c.doRequest("json")
 28173  	if res != nil && res.StatusCode == http.StatusNotModified {
 28174  		if res.Body != nil {
 28175  			res.Body.Close()
 28176  		}
 28177  		return nil, gensupport.WrapError(&googleapi.Error{
 28178  			Code:   res.StatusCode,
 28179  			Header: res.Header,
 28180  		})
 28181  	}
 28182  	if err != nil {
 28183  		return nil, err
 28184  	}
 28185  	defer googleapi.CloseBody(res)
 28186  	if err := googleapi.CheckResponse(res); err != nil {
 28187  		return nil, gensupport.WrapError(err)
 28188  	}
 28189  	ret := &OrdersCreateTestReturnResponse{
 28190  		ServerResponse: googleapi.ServerResponse{
 28191  			Header:         res.Header,
 28192  			HTTPStatusCode: res.StatusCode,
 28193  		},
 28194  	}
 28195  	target := &ret
 28196  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28197  		return nil, err
 28198  	}
 28199  	return ret, nil
 28200  }
 28201  
 28202  type OrdersGetCall struct {
 28203  	s            *APIService
 28204  	merchantId   uint64
 28205  	orderId      string
 28206  	urlParams_   gensupport.URLParams
 28207  	ifNoneMatch_ string
 28208  	ctx_         context.Context
 28209  	header_      http.Header
 28210  }
 28211  
 28212  // Get: Retrieves an order from your Merchant Center account.
 28213  //
 28214  //   - merchantId: The ID of the account that manages the order. This cannot be a
 28215  //     multi-client account.
 28216  //   - orderId: The ID of the order.
 28217  func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall {
 28218  	c := &OrdersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28219  	c.merchantId = merchantId
 28220  	c.orderId = orderId
 28221  	return c
 28222  }
 28223  
 28224  // Fields allows partial responses to be retrieved. See
 28225  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28226  // details.
 28227  func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall {
 28228  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28229  	return c
 28230  }
 28231  
 28232  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28233  // object's ETag matches the given value. This is useful for getting updates
 28234  // only after the object has changed since the last request.
 28235  func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall {
 28236  	c.ifNoneMatch_ = entityTag
 28237  	return c
 28238  }
 28239  
 28240  // Context sets the context to be used in this call's Do method.
 28241  func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall {
 28242  	c.ctx_ = ctx
 28243  	return c
 28244  }
 28245  
 28246  // Header returns a http.Header that can be modified by the caller to add
 28247  // headers to the request.
 28248  func (c *OrdersGetCall) Header() http.Header {
 28249  	if c.header_ == nil {
 28250  		c.header_ = make(http.Header)
 28251  	}
 28252  	return c.header_
 28253  }
 28254  
 28255  func (c *OrdersGetCall) doRequest(alt string) (*http.Response, error) {
 28256  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28257  	if c.ifNoneMatch_ != "" {
 28258  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28259  	}
 28260  	var body io.Reader = nil
 28261  	c.urlParams_.Set("alt", alt)
 28262  	c.urlParams_.Set("prettyPrint", "false")
 28263  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}")
 28264  	urls += "?" + c.urlParams_.Encode()
 28265  	req, err := http.NewRequest("GET", urls, body)
 28266  	if err != nil {
 28267  		return nil, err
 28268  	}
 28269  	req.Header = reqHeaders
 28270  	googleapi.Expand(req.URL, map[string]string{
 28271  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 28272  		"orderId":    c.orderId,
 28273  	})
 28274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28275  }
 28276  
 28277  // Do executes the "content.orders.get" call.
 28278  // Any non-2xx status code is an error. Response headers are in either
 28279  // *Order.ServerResponse.Header or (if a response was returned at all) in
 28280  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 28281  // whether the returned error was because http.StatusNotModified was returned.
 28282  func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error) {
 28283  	gensupport.SetOptions(c.urlParams_, opts...)
 28284  	res, err := c.doRequest("json")
 28285  	if res != nil && res.StatusCode == http.StatusNotModified {
 28286  		if res.Body != nil {
 28287  			res.Body.Close()
 28288  		}
 28289  		return nil, gensupport.WrapError(&googleapi.Error{
 28290  			Code:   res.StatusCode,
 28291  			Header: res.Header,
 28292  		})
 28293  	}
 28294  	if err != nil {
 28295  		return nil, err
 28296  	}
 28297  	defer googleapi.CloseBody(res)
 28298  	if err := googleapi.CheckResponse(res); err != nil {
 28299  		return nil, gensupport.WrapError(err)
 28300  	}
 28301  	ret := &Order{
 28302  		ServerResponse: googleapi.ServerResponse{
 28303  			Header:         res.Header,
 28304  			HTTPStatusCode: res.StatusCode,
 28305  		},
 28306  	}
 28307  	target := &ret
 28308  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28309  		return nil, err
 28310  	}
 28311  	return ret, nil
 28312  }
 28313  
 28314  type OrdersGetbymerchantorderidCall struct {
 28315  	s               *APIService
 28316  	merchantId      uint64
 28317  	merchantOrderId string
 28318  	urlParams_      gensupport.URLParams
 28319  	ifNoneMatch_    string
 28320  	ctx_            context.Context
 28321  	header_         http.Header
 28322  }
 28323  
 28324  // Getbymerchantorderid: Retrieves an order using merchant order ID.
 28325  //
 28326  //   - merchantId: The ID of the account that manages the order. This cannot be a
 28327  //     multi-client account.
 28328  //   - merchantOrderId: The merchant order ID to be looked for.
 28329  func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall {
 28330  	c := &OrdersGetbymerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28331  	c.merchantId = merchantId
 28332  	c.merchantOrderId = merchantOrderId
 28333  	return c
 28334  }
 28335  
 28336  // Fields allows partial responses to be retrieved. See
 28337  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28338  // details.
 28339  func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall {
 28340  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28341  	return c
 28342  }
 28343  
 28344  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28345  // object's ETag matches the given value. This is useful for getting updates
 28346  // only after the object has changed since the last request.
 28347  func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall {
 28348  	c.ifNoneMatch_ = entityTag
 28349  	return c
 28350  }
 28351  
 28352  // Context sets the context to be used in this call's Do method.
 28353  func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall {
 28354  	c.ctx_ = ctx
 28355  	return c
 28356  }
 28357  
 28358  // Header returns a http.Header that can be modified by the caller to add
 28359  // headers to the request.
 28360  func (c *OrdersGetbymerchantorderidCall) Header() http.Header {
 28361  	if c.header_ == nil {
 28362  		c.header_ = make(http.Header)
 28363  	}
 28364  	return c.header_
 28365  }
 28366  
 28367  func (c *OrdersGetbymerchantorderidCall) doRequest(alt string) (*http.Response, error) {
 28368  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28369  	if c.ifNoneMatch_ != "" {
 28370  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28371  	}
 28372  	var body io.Reader = nil
 28373  	c.urlParams_.Set("alt", alt)
 28374  	c.urlParams_.Set("prettyPrint", "false")
 28375  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/ordersbymerchantid/{merchantOrderId}")
 28376  	urls += "?" + c.urlParams_.Encode()
 28377  	req, err := http.NewRequest("GET", urls, body)
 28378  	if err != nil {
 28379  		return nil, err
 28380  	}
 28381  	req.Header = reqHeaders
 28382  	googleapi.Expand(req.URL, map[string]string{
 28383  		"merchantId":      strconv.FormatUint(c.merchantId, 10),
 28384  		"merchantOrderId": c.merchantOrderId,
 28385  	})
 28386  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28387  }
 28388  
 28389  // Do executes the "content.orders.getbymerchantorderid" call.
 28390  // Any non-2xx status code is an error. Response headers are in either
 28391  // *OrdersGetByMerchantOrderIdResponse.ServerResponse.Header or (if a response
 28392  // was returned at all) in error.(*googleapi.Error).Header. Use
 28393  // googleapi.IsNotModified to check whether the returned error was because
 28394  // http.StatusNotModified was returned.
 28395  func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error) {
 28396  	gensupport.SetOptions(c.urlParams_, opts...)
 28397  	res, err := c.doRequest("json")
 28398  	if res != nil && res.StatusCode == http.StatusNotModified {
 28399  		if res.Body != nil {
 28400  			res.Body.Close()
 28401  		}
 28402  		return nil, gensupport.WrapError(&googleapi.Error{
 28403  			Code:   res.StatusCode,
 28404  			Header: res.Header,
 28405  		})
 28406  	}
 28407  	if err != nil {
 28408  		return nil, err
 28409  	}
 28410  	defer googleapi.CloseBody(res)
 28411  	if err := googleapi.CheckResponse(res); err != nil {
 28412  		return nil, gensupport.WrapError(err)
 28413  	}
 28414  	ret := &OrdersGetByMerchantOrderIdResponse{
 28415  		ServerResponse: googleapi.ServerResponse{
 28416  			Header:         res.Header,
 28417  			HTTPStatusCode: res.StatusCode,
 28418  		},
 28419  	}
 28420  	target := &ret
 28421  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28422  		return nil, err
 28423  	}
 28424  	return ret, nil
 28425  }
 28426  
 28427  type OrdersGettestordertemplateCall struct {
 28428  	s            *APIService
 28429  	merchantId   uint64
 28430  	templateName string
 28431  	urlParams_   gensupport.URLParams
 28432  	ifNoneMatch_ string
 28433  	ctx_         context.Context
 28434  	header_      http.Header
 28435  }
 28436  
 28437  // Gettestordertemplate: Sandbox only. Retrieves an order template that can be
 28438  // used to quickly create a new order in sandbox.
 28439  //
 28440  //   - merchantId: The ID of the account that should manage the order. This
 28441  //     cannot be a multi-client account.
 28442  //   - templateName: The name of the template to retrieve.
 28443  func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall {
 28444  	c := &OrdersGettestordertemplateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28445  	c.merchantId = merchantId
 28446  	c.templateName = templateName
 28447  	return c
 28448  }
 28449  
 28450  // Country sets the optional parameter "country": The country of the template
 28451  // to retrieve. Defaults to "US".
 28452  func (c *OrdersGettestordertemplateCall) Country(country string) *OrdersGettestordertemplateCall {
 28453  	c.urlParams_.Set("country", country)
 28454  	return c
 28455  }
 28456  
 28457  // Fields allows partial responses to be retrieved. See
 28458  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28459  // details.
 28460  func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall {
 28461  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28462  	return c
 28463  }
 28464  
 28465  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28466  // object's ETag matches the given value. This is useful for getting updates
 28467  // only after the object has changed since the last request.
 28468  func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall {
 28469  	c.ifNoneMatch_ = entityTag
 28470  	return c
 28471  }
 28472  
 28473  // Context sets the context to be used in this call's Do method.
 28474  func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall {
 28475  	c.ctx_ = ctx
 28476  	return c
 28477  }
 28478  
 28479  // Header returns a http.Header that can be modified by the caller to add
 28480  // headers to the request.
 28481  func (c *OrdersGettestordertemplateCall) Header() http.Header {
 28482  	if c.header_ == nil {
 28483  		c.header_ = make(http.Header)
 28484  	}
 28485  	return c.header_
 28486  }
 28487  
 28488  func (c *OrdersGettestordertemplateCall) doRequest(alt string) (*http.Response, error) {
 28489  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28490  	if c.ifNoneMatch_ != "" {
 28491  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28492  	}
 28493  	var body io.Reader = nil
 28494  	c.urlParams_.Set("alt", alt)
 28495  	c.urlParams_.Set("prettyPrint", "false")
 28496  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/testordertemplates/{templateName}")
 28497  	urls += "?" + c.urlParams_.Encode()
 28498  	req, err := http.NewRequest("GET", urls, body)
 28499  	if err != nil {
 28500  		return nil, err
 28501  	}
 28502  	req.Header = reqHeaders
 28503  	googleapi.Expand(req.URL, map[string]string{
 28504  		"merchantId":   strconv.FormatUint(c.merchantId, 10),
 28505  		"templateName": c.templateName,
 28506  	})
 28507  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28508  }
 28509  
 28510  // Do executes the "content.orders.gettestordertemplate" call.
 28511  // Any non-2xx status code is an error. Response headers are in either
 28512  // *OrdersGetTestOrderTemplateResponse.ServerResponse.Header or (if a response
 28513  // was returned at all) in error.(*googleapi.Error).Header. Use
 28514  // googleapi.IsNotModified to check whether the returned error was because
 28515  // http.StatusNotModified was returned.
 28516  func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error) {
 28517  	gensupport.SetOptions(c.urlParams_, opts...)
 28518  	res, err := c.doRequest("json")
 28519  	if res != nil && res.StatusCode == http.StatusNotModified {
 28520  		if res.Body != nil {
 28521  			res.Body.Close()
 28522  		}
 28523  		return nil, gensupport.WrapError(&googleapi.Error{
 28524  			Code:   res.StatusCode,
 28525  			Header: res.Header,
 28526  		})
 28527  	}
 28528  	if err != nil {
 28529  		return nil, err
 28530  	}
 28531  	defer googleapi.CloseBody(res)
 28532  	if err := googleapi.CheckResponse(res); err != nil {
 28533  		return nil, gensupport.WrapError(err)
 28534  	}
 28535  	ret := &OrdersGetTestOrderTemplateResponse{
 28536  		ServerResponse: googleapi.ServerResponse{
 28537  			Header:         res.Header,
 28538  			HTTPStatusCode: res.StatusCode,
 28539  		},
 28540  	}
 28541  	target := &ret
 28542  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28543  		return nil, err
 28544  	}
 28545  	return ret, nil
 28546  }
 28547  
 28548  type OrdersInstorerefundlineitemCall struct {
 28549  	s                                  *APIService
 28550  	merchantId                         uint64
 28551  	orderId                            string
 28552  	ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest
 28553  	urlParams_                         gensupport.URLParams
 28554  	ctx_                               context.Context
 28555  	header_                            http.Header
 28556  }
 28557  
 28558  // Instorerefundlineitem: Deprecated. Notifies that item return and refund was
 28559  // handled directly by merchant outside of Google payments processing (for
 28560  // example, cash refund done in store). Note: We recommend calling the
 28561  // returnrefundlineitem method to refund in-store returns. We will issue the
 28562  // refund directly to the customer. This helps to prevent possible differences
 28563  // arising between merchant and Google transaction records. We also recommend
 28564  // having the point of sale system communicate with Google to ensure that
 28565  // customers do not receive a double refund by first refunding through Google
 28566  // then through an in-store return.
 28567  //
 28568  //   - merchantId: The ID of the account that manages the order. This cannot be a
 28569  //     multi-client account.
 28570  //   - orderId: The ID of the order.
 28571  func (r *OrdersService) Instorerefundlineitem(merchantId uint64, orderId string, ordersinstorerefundlineitemrequest *OrdersInStoreRefundLineItemRequest) *OrdersInstorerefundlineitemCall {
 28572  	c := &OrdersInstorerefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28573  	c.merchantId = merchantId
 28574  	c.orderId = orderId
 28575  	c.ordersinstorerefundlineitemrequest = ordersinstorerefundlineitemrequest
 28576  	return c
 28577  }
 28578  
 28579  // Fields allows partial responses to be retrieved. See
 28580  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28581  // details.
 28582  func (c *OrdersInstorerefundlineitemCall) Fields(s ...googleapi.Field) *OrdersInstorerefundlineitemCall {
 28583  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28584  	return c
 28585  }
 28586  
 28587  // Context sets the context to be used in this call's Do method.
 28588  func (c *OrdersInstorerefundlineitemCall) Context(ctx context.Context) *OrdersInstorerefundlineitemCall {
 28589  	c.ctx_ = ctx
 28590  	return c
 28591  }
 28592  
 28593  // Header returns a http.Header that can be modified by the caller to add
 28594  // headers to the request.
 28595  func (c *OrdersInstorerefundlineitemCall) Header() http.Header {
 28596  	if c.header_ == nil {
 28597  		c.header_ = make(http.Header)
 28598  	}
 28599  	return c.header_
 28600  }
 28601  
 28602  func (c *OrdersInstorerefundlineitemCall) doRequest(alt string) (*http.Response, error) {
 28603  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28604  	var body io.Reader = nil
 28605  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersinstorerefundlineitemrequest)
 28606  	if err != nil {
 28607  		return nil, err
 28608  	}
 28609  	c.urlParams_.Set("alt", alt)
 28610  	c.urlParams_.Set("prettyPrint", "false")
 28611  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/inStoreRefundLineItem")
 28612  	urls += "?" + c.urlParams_.Encode()
 28613  	req, err := http.NewRequest("POST", urls, body)
 28614  	if err != nil {
 28615  		return nil, err
 28616  	}
 28617  	req.Header = reqHeaders
 28618  	googleapi.Expand(req.URL, map[string]string{
 28619  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 28620  		"orderId":    c.orderId,
 28621  	})
 28622  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28623  }
 28624  
 28625  // Do executes the "content.orders.instorerefundlineitem" call.
 28626  // Any non-2xx status code is an error. Response headers are in either
 28627  // *OrdersInStoreRefundLineItemResponse.ServerResponse.Header or (if a response
 28628  // was returned at all) in error.(*googleapi.Error).Header. Use
 28629  // googleapi.IsNotModified to check whether the returned error was because
 28630  // http.StatusNotModified was returned.
 28631  func (c *OrdersInstorerefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersInStoreRefundLineItemResponse, error) {
 28632  	gensupport.SetOptions(c.urlParams_, opts...)
 28633  	res, err := c.doRequest("json")
 28634  	if res != nil && res.StatusCode == http.StatusNotModified {
 28635  		if res.Body != nil {
 28636  			res.Body.Close()
 28637  		}
 28638  		return nil, gensupport.WrapError(&googleapi.Error{
 28639  			Code:   res.StatusCode,
 28640  			Header: res.Header,
 28641  		})
 28642  	}
 28643  	if err != nil {
 28644  		return nil, err
 28645  	}
 28646  	defer googleapi.CloseBody(res)
 28647  	if err := googleapi.CheckResponse(res); err != nil {
 28648  		return nil, gensupport.WrapError(err)
 28649  	}
 28650  	ret := &OrdersInStoreRefundLineItemResponse{
 28651  		ServerResponse: googleapi.ServerResponse{
 28652  			Header:         res.Header,
 28653  			HTTPStatusCode: res.StatusCode,
 28654  		},
 28655  	}
 28656  	target := &ret
 28657  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28658  		return nil, err
 28659  	}
 28660  	return ret, nil
 28661  }
 28662  
 28663  type OrdersListCall struct {
 28664  	s            *APIService
 28665  	merchantId   uint64
 28666  	urlParams_   gensupport.URLParams
 28667  	ifNoneMatch_ string
 28668  	ctx_         context.Context
 28669  	header_      http.Header
 28670  }
 28671  
 28672  // List: Lists the orders in your Merchant Center account.
 28673  //
 28674  //   - merchantId: The ID of the account that manages the order. This cannot be a
 28675  //     multi-client account.
 28676  func (r *OrdersService) List(merchantId uint64) *OrdersListCall {
 28677  	c := &OrdersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28678  	c.merchantId = merchantId
 28679  	return c
 28680  }
 28681  
 28682  // Acknowledged sets the optional parameter "acknowledged": Obtains orders that
 28683  // match the acknowledgement status. When set to true, obtains orders that have
 28684  // been acknowledged. When false, obtains orders that have not been
 28685  // acknowledged. We recommend using this filter set to `false`, in conjunction
 28686  // with the `acknowledge` call, such that only un-acknowledged orders are
 28687  // returned.
 28688  func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall {
 28689  	c.urlParams_.Set("acknowledged", fmt.Sprint(acknowledged))
 28690  	return c
 28691  }
 28692  
 28693  // MaxResults sets the optional parameter "maxResults": The maximum number of
 28694  // orders to return in the response, used for paging. The default value is 25
 28695  // orders per page, and the maximum allowed value is 250 orders per page.
 28696  func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall {
 28697  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 28698  	return c
 28699  }
 28700  
 28701  // OrderBy sets the optional parameter "orderBy": Order results by placement
 28702  // date in descending or ascending order. Acceptable values are: -
 28703  // placedDateAsc - placedDateDesc
 28704  func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall {
 28705  	c.urlParams_.Set("orderBy", orderBy)
 28706  	return c
 28707  }
 28708  
 28709  // PageToken sets the optional parameter "pageToken": The token returned by the
 28710  // previous request.
 28711  func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall {
 28712  	c.urlParams_.Set("pageToken", pageToken)
 28713  	return c
 28714  }
 28715  
 28716  // PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains orders
 28717  // placed before this date (exclusively), in ISO 8601 format.
 28718  func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall {
 28719  	c.urlParams_.Set("placedDateEnd", placedDateEnd)
 28720  	return c
 28721  }
 28722  
 28723  // PlacedDateStart sets the optional parameter "placedDateStart": Obtains
 28724  // orders placed after this date (inclusively), in ISO 8601 format.
 28725  func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall {
 28726  	c.urlParams_.Set("placedDateStart", placedDateStart)
 28727  	return c
 28728  }
 28729  
 28730  // Statuses sets the optional parameter "statuses": Obtains orders that match
 28731  // any of the specified statuses. Note that `active` is a shortcut for
 28732  // `pendingShipment` and `partiallyShipped`, and `completed` is a shortcut for
 28733  // `shipped`, `partiallyDelivered`, `delivered`, `partiallyReturned`,
 28734  // `returned`, and `canceled`.
 28735  //
 28736  // Possible values:
 28737  //
 28738  //	"ACTIVE" - Return orders with status `active`. The `active` status
 28739  //
 28740  // includes `pendingShipment` and `partiallyShipped` orders.
 28741  //
 28742  //	"COMPLETED" - Return orders with status `completed`. The `completed`
 28743  //
 28744  // status includes `shipped`, `partiallyDelivered`, `delivered`,
 28745  // `partiallyReturned`, `returned`, and `canceled` orders.
 28746  //
 28747  //	"CANCELED" - Return orders with status `canceled`.
 28748  //	"IN_PROGRESS" - Return orders with status `inProgress`.
 28749  //	"PENDING_SHIPMENT" - Return orders with status `pendingShipment`.
 28750  //	"PARTIALLY_SHIPPED" - Return orders with status `partiallyShipped`.
 28751  //	"SHIPPED" - Return orders with status `shipped`.
 28752  //	"PARTIALLY_DELIVERED" - Return orders with status `partiallyDelivered`.
 28753  //	"DELIVERED" - Return orders with status `delivered`.
 28754  //	"PARTIALLY_RETURNED" - Return orders with status `partiallyReturned`.
 28755  //	"RETURNED" - Return orders with status `returned`.
 28756  func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall {
 28757  	c.urlParams_.SetMulti("statuses", append([]string{}, statuses...))
 28758  	return c
 28759  }
 28760  
 28761  // Fields allows partial responses to be retrieved. See
 28762  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28763  // details.
 28764  func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall {
 28765  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28766  	return c
 28767  }
 28768  
 28769  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28770  // object's ETag matches the given value. This is useful for getting updates
 28771  // only after the object has changed since the last request.
 28772  func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall {
 28773  	c.ifNoneMatch_ = entityTag
 28774  	return c
 28775  }
 28776  
 28777  // Context sets the context to be used in this call's Do method.
 28778  func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall {
 28779  	c.ctx_ = ctx
 28780  	return c
 28781  }
 28782  
 28783  // Header returns a http.Header that can be modified by the caller to add
 28784  // headers to the request.
 28785  func (c *OrdersListCall) Header() http.Header {
 28786  	if c.header_ == nil {
 28787  		c.header_ = make(http.Header)
 28788  	}
 28789  	return c.header_
 28790  }
 28791  
 28792  func (c *OrdersListCall) doRequest(alt string) (*http.Response, error) {
 28793  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28794  	if c.ifNoneMatch_ != "" {
 28795  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28796  	}
 28797  	var body io.Reader = nil
 28798  	c.urlParams_.Set("alt", alt)
 28799  	c.urlParams_.Set("prettyPrint", "false")
 28800  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders")
 28801  	urls += "?" + c.urlParams_.Encode()
 28802  	req, err := http.NewRequest("GET", urls, body)
 28803  	if err != nil {
 28804  		return nil, err
 28805  	}
 28806  	req.Header = reqHeaders
 28807  	googleapi.Expand(req.URL, map[string]string{
 28808  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 28809  	})
 28810  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28811  }
 28812  
 28813  // Do executes the "content.orders.list" call.
 28814  // Any non-2xx status code is an error. Response headers are in either
 28815  // *OrdersListResponse.ServerResponse.Header or (if a response was returned at
 28816  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 28817  // check whether the returned error was because http.StatusNotModified was
 28818  // returned.
 28819  func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error) {
 28820  	gensupport.SetOptions(c.urlParams_, opts...)
 28821  	res, err := c.doRequest("json")
 28822  	if res != nil && res.StatusCode == http.StatusNotModified {
 28823  		if res.Body != nil {
 28824  			res.Body.Close()
 28825  		}
 28826  		return nil, gensupport.WrapError(&googleapi.Error{
 28827  			Code:   res.StatusCode,
 28828  			Header: res.Header,
 28829  		})
 28830  	}
 28831  	if err != nil {
 28832  		return nil, err
 28833  	}
 28834  	defer googleapi.CloseBody(res)
 28835  	if err := googleapi.CheckResponse(res); err != nil {
 28836  		return nil, gensupport.WrapError(err)
 28837  	}
 28838  	ret := &OrdersListResponse{
 28839  		ServerResponse: googleapi.ServerResponse{
 28840  			Header:         res.Header,
 28841  			HTTPStatusCode: res.StatusCode,
 28842  		},
 28843  	}
 28844  	target := &ret
 28845  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28846  		return nil, err
 28847  	}
 28848  	return ret, nil
 28849  }
 28850  
 28851  // Pages invokes f for each page of results.
 28852  // A non-nil error returned from f will halt the iteration.
 28853  // The provided context supersedes any context provided to the Context method.
 28854  func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) error) error {
 28855  	c.ctx_ = ctx
 28856  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28857  	for {
 28858  		x, err := c.Do()
 28859  		if err != nil {
 28860  			return err
 28861  		}
 28862  		if err := f(x); err != nil {
 28863  			return err
 28864  		}
 28865  		if x.NextPageToken == "" {
 28866  			return nil
 28867  		}
 28868  		c.PageToken(x.NextPageToken)
 28869  	}
 28870  }
 28871  
 28872  type OrdersRefunditemCall struct {
 28873  	s                       *APIService
 28874  	merchantId              uint64
 28875  	orderId                 string
 28876  	ordersrefunditemrequest *OrdersRefundItemRequest
 28877  	urlParams_              gensupport.URLParams
 28878  	ctx_                    context.Context
 28879  	header_                 http.Header
 28880  }
 28881  
 28882  // Refunditem: Issues a partial or total refund for items and shipment.
 28883  //
 28884  //   - merchantId: The ID of the account that manages the order. This cannot be a
 28885  //     multi-client account.
 28886  //   - orderId: The ID of the order to refund.
 28887  func (r *OrdersService) Refunditem(merchantId uint64, orderId string, ordersrefunditemrequest *OrdersRefundItemRequest) *OrdersRefunditemCall {
 28888  	c := &OrdersRefunditemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28889  	c.merchantId = merchantId
 28890  	c.orderId = orderId
 28891  	c.ordersrefunditemrequest = ordersrefunditemrequest
 28892  	return c
 28893  }
 28894  
 28895  // Fields allows partial responses to be retrieved. See
 28896  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28897  // details.
 28898  func (c *OrdersRefunditemCall) Fields(s ...googleapi.Field) *OrdersRefunditemCall {
 28899  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28900  	return c
 28901  }
 28902  
 28903  // Context sets the context to be used in this call's Do method.
 28904  func (c *OrdersRefunditemCall) Context(ctx context.Context) *OrdersRefunditemCall {
 28905  	c.ctx_ = ctx
 28906  	return c
 28907  }
 28908  
 28909  // Header returns a http.Header that can be modified by the caller to add
 28910  // headers to the request.
 28911  func (c *OrdersRefunditemCall) Header() http.Header {
 28912  	if c.header_ == nil {
 28913  		c.header_ = make(http.Header)
 28914  	}
 28915  	return c.header_
 28916  }
 28917  
 28918  func (c *OrdersRefunditemCall) doRequest(alt string) (*http.Response, error) {
 28919  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28920  	var body io.Reader = nil
 28921  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrefunditemrequest)
 28922  	if err != nil {
 28923  		return nil, err
 28924  	}
 28925  	c.urlParams_.Set("alt", alt)
 28926  	c.urlParams_.Set("prettyPrint", "false")
 28927  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refunditem")
 28928  	urls += "?" + c.urlParams_.Encode()
 28929  	req, err := http.NewRequest("POST", urls, body)
 28930  	if err != nil {
 28931  		return nil, err
 28932  	}
 28933  	req.Header = reqHeaders
 28934  	googleapi.Expand(req.URL, map[string]string{
 28935  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 28936  		"orderId":    c.orderId,
 28937  	})
 28938  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28939  }
 28940  
 28941  // Do executes the "content.orders.refunditem" call.
 28942  // Any non-2xx status code is an error. Response headers are in either
 28943  // *OrdersRefundItemResponse.ServerResponse.Header or (if a response was
 28944  // returned at all) in error.(*googleapi.Error).Header. Use
 28945  // googleapi.IsNotModified to check whether the returned error was because
 28946  // http.StatusNotModified was returned.
 28947  func (c *OrdersRefunditemCall) Do(opts ...googleapi.CallOption) (*OrdersRefundItemResponse, error) {
 28948  	gensupport.SetOptions(c.urlParams_, opts...)
 28949  	res, err := c.doRequest("json")
 28950  	if res != nil && res.StatusCode == http.StatusNotModified {
 28951  		if res.Body != nil {
 28952  			res.Body.Close()
 28953  		}
 28954  		return nil, gensupport.WrapError(&googleapi.Error{
 28955  			Code:   res.StatusCode,
 28956  			Header: res.Header,
 28957  		})
 28958  	}
 28959  	if err != nil {
 28960  		return nil, err
 28961  	}
 28962  	defer googleapi.CloseBody(res)
 28963  	if err := googleapi.CheckResponse(res); err != nil {
 28964  		return nil, gensupport.WrapError(err)
 28965  	}
 28966  	ret := &OrdersRefundItemResponse{
 28967  		ServerResponse: googleapi.ServerResponse{
 28968  			Header:         res.Header,
 28969  			HTTPStatusCode: res.StatusCode,
 28970  		},
 28971  	}
 28972  	target := &ret
 28973  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28974  		return nil, err
 28975  	}
 28976  	return ret, nil
 28977  }
 28978  
 28979  type OrdersRefundorderCall struct {
 28980  	s                        *APIService
 28981  	merchantId               uint64
 28982  	orderId                  string
 28983  	ordersrefundorderrequest *OrdersRefundOrderRequest
 28984  	urlParams_               gensupport.URLParams
 28985  	ctx_                     context.Context
 28986  	header_                  http.Header
 28987  }
 28988  
 28989  // Refundorder: Issues a partial or total refund for an order.
 28990  //
 28991  //   - merchantId: The ID of the account that manages the order. This cannot be a
 28992  //     multi-client account.
 28993  //   - orderId: The ID of the order to refund.
 28994  func (r *OrdersService) Refundorder(merchantId uint64, orderId string, ordersrefundorderrequest *OrdersRefundOrderRequest) *OrdersRefundorderCall {
 28995  	c := &OrdersRefundorderCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28996  	c.merchantId = merchantId
 28997  	c.orderId = orderId
 28998  	c.ordersrefundorderrequest = ordersrefundorderrequest
 28999  	return c
 29000  }
 29001  
 29002  // Fields allows partial responses to be retrieved. See
 29003  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29004  // details.
 29005  func (c *OrdersRefundorderCall) Fields(s ...googleapi.Field) *OrdersRefundorderCall {
 29006  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29007  	return c
 29008  }
 29009  
 29010  // Context sets the context to be used in this call's Do method.
 29011  func (c *OrdersRefundorderCall) Context(ctx context.Context) *OrdersRefundorderCall {
 29012  	c.ctx_ = ctx
 29013  	return c
 29014  }
 29015  
 29016  // Header returns a http.Header that can be modified by the caller to add
 29017  // headers to the request.
 29018  func (c *OrdersRefundorderCall) Header() http.Header {
 29019  	if c.header_ == nil {
 29020  		c.header_ = make(http.Header)
 29021  	}
 29022  	return c.header_
 29023  }
 29024  
 29025  func (c *OrdersRefundorderCall) doRequest(alt string) (*http.Response, error) {
 29026  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29027  	var body io.Reader = nil
 29028  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrefundorderrequest)
 29029  	if err != nil {
 29030  		return nil, err
 29031  	}
 29032  	c.urlParams_.Set("alt", alt)
 29033  	c.urlParams_.Set("prettyPrint", "false")
 29034  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/refundorder")
 29035  	urls += "?" + c.urlParams_.Encode()
 29036  	req, err := http.NewRequest("POST", urls, body)
 29037  	if err != nil {
 29038  		return nil, err
 29039  	}
 29040  	req.Header = reqHeaders
 29041  	googleapi.Expand(req.URL, map[string]string{
 29042  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29043  		"orderId":    c.orderId,
 29044  	})
 29045  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29046  }
 29047  
 29048  // Do executes the "content.orders.refundorder" call.
 29049  // Any non-2xx status code is an error. Response headers are in either
 29050  // *OrdersRefundOrderResponse.ServerResponse.Header or (if a response was
 29051  // returned at all) in error.(*googleapi.Error).Header. Use
 29052  // googleapi.IsNotModified to check whether the returned error was because
 29053  // http.StatusNotModified was returned.
 29054  func (c *OrdersRefundorderCall) Do(opts ...googleapi.CallOption) (*OrdersRefundOrderResponse, error) {
 29055  	gensupport.SetOptions(c.urlParams_, opts...)
 29056  	res, err := c.doRequest("json")
 29057  	if res != nil && res.StatusCode == http.StatusNotModified {
 29058  		if res.Body != nil {
 29059  			res.Body.Close()
 29060  		}
 29061  		return nil, gensupport.WrapError(&googleapi.Error{
 29062  			Code:   res.StatusCode,
 29063  			Header: res.Header,
 29064  		})
 29065  	}
 29066  	if err != nil {
 29067  		return nil, err
 29068  	}
 29069  	defer googleapi.CloseBody(res)
 29070  	if err := googleapi.CheckResponse(res); err != nil {
 29071  		return nil, gensupport.WrapError(err)
 29072  	}
 29073  	ret := &OrdersRefundOrderResponse{
 29074  		ServerResponse: googleapi.ServerResponse{
 29075  			Header:         res.Header,
 29076  			HTTPStatusCode: res.StatusCode,
 29077  		},
 29078  	}
 29079  	target := &ret
 29080  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29081  		return nil, err
 29082  	}
 29083  	return ret, nil
 29084  }
 29085  
 29086  type OrdersRejectreturnlineitemCall struct {
 29087  	s                                 *APIService
 29088  	merchantId                        uint64
 29089  	orderId                           string
 29090  	ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest
 29091  	urlParams_                        gensupport.URLParams
 29092  	ctx_                              context.Context
 29093  	header_                           http.Header
 29094  }
 29095  
 29096  // Rejectreturnlineitem: Rejects return on an line item.
 29097  //
 29098  //   - merchantId: The ID of the account that manages the order. This cannot be a
 29099  //     multi-client account.
 29100  //   - orderId: The ID of the order.
 29101  func (r *OrdersService) Rejectreturnlineitem(merchantId uint64, orderId string, ordersrejectreturnlineitemrequest *OrdersRejectReturnLineItemRequest) *OrdersRejectreturnlineitemCall {
 29102  	c := &OrdersRejectreturnlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29103  	c.merchantId = merchantId
 29104  	c.orderId = orderId
 29105  	c.ordersrejectreturnlineitemrequest = ordersrejectreturnlineitemrequest
 29106  	return c
 29107  }
 29108  
 29109  // Fields allows partial responses to be retrieved. See
 29110  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29111  // details.
 29112  func (c *OrdersRejectreturnlineitemCall) Fields(s ...googleapi.Field) *OrdersRejectreturnlineitemCall {
 29113  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29114  	return c
 29115  }
 29116  
 29117  // Context sets the context to be used in this call's Do method.
 29118  func (c *OrdersRejectreturnlineitemCall) Context(ctx context.Context) *OrdersRejectreturnlineitemCall {
 29119  	c.ctx_ = ctx
 29120  	return c
 29121  }
 29122  
 29123  // Header returns a http.Header that can be modified by the caller to add
 29124  // headers to the request.
 29125  func (c *OrdersRejectreturnlineitemCall) Header() http.Header {
 29126  	if c.header_ == nil {
 29127  		c.header_ = make(http.Header)
 29128  	}
 29129  	return c.header_
 29130  }
 29131  
 29132  func (c *OrdersRejectreturnlineitemCall) doRequest(alt string) (*http.Response, error) {
 29133  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29134  	var body io.Reader = nil
 29135  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersrejectreturnlineitemrequest)
 29136  	if err != nil {
 29137  		return nil, err
 29138  	}
 29139  	c.urlParams_.Set("alt", alt)
 29140  	c.urlParams_.Set("prettyPrint", "false")
 29141  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/rejectReturnLineItem")
 29142  	urls += "?" + c.urlParams_.Encode()
 29143  	req, err := http.NewRequest("POST", urls, body)
 29144  	if err != nil {
 29145  		return nil, err
 29146  	}
 29147  	req.Header = reqHeaders
 29148  	googleapi.Expand(req.URL, map[string]string{
 29149  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29150  		"orderId":    c.orderId,
 29151  	})
 29152  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29153  }
 29154  
 29155  // Do executes the "content.orders.rejectreturnlineitem" call.
 29156  // Any non-2xx status code is an error. Response headers are in either
 29157  // *OrdersRejectReturnLineItemResponse.ServerResponse.Header or (if a response
 29158  // was returned at all) in error.(*googleapi.Error).Header. Use
 29159  // googleapi.IsNotModified to check whether the returned error was because
 29160  // http.StatusNotModified was returned.
 29161  func (c *OrdersRejectreturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersRejectReturnLineItemResponse, error) {
 29162  	gensupport.SetOptions(c.urlParams_, opts...)
 29163  	res, err := c.doRequest("json")
 29164  	if res != nil && res.StatusCode == http.StatusNotModified {
 29165  		if res.Body != nil {
 29166  			res.Body.Close()
 29167  		}
 29168  		return nil, gensupport.WrapError(&googleapi.Error{
 29169  			Code:   res.StatusCode,
 29170  			Header: res.Header,
 29171  		})
 29172  	}
 29173  	if err != nil {
 29174  		return nil, err
 29175  	}
 29176  	defer googleapi.CloseBody(res)
 29177  	if err := googleapi.CheckResponse(res); err != nil {
 29178  		return nil, gensupport.WrapError(err)
 29179  	}
 29180  	ret := &OrdersRejectReturnLineItemResponse{
 29181  		ServerResponse: googleapi.ServerResponse{
 29182  			Header:         res.Header,
 29183  			HTTPStatusCode: res.StatusCode,
 29184  		},
 29185  	}
 29186  	target := &ret
 29187  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29188  		return nil, err
 29189  	}
 29190  	return ret, nil
 29191  }
 29192  
 29193  type OrdersReturnrefundlineitemCall struct {
 29194  	s                                 *APIService
 29195  	merchantId                        uint64
 29196  	orderId                           string
 29197  	ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest
 29198  	urlParams_                        gensupport.URLParams
 29199  	ctx_                              context.Context
 29200  	header_                           http.Header
 29201  }
 29202  
 29203  // Returnrefundlineitem: Returns and refunds a line item. Note that this method
 29204  // can only be called on fully shipped orders. The Orderreturns API is the
 29205  // preferred way to handle returns after you receive a return from a customer.
 29206  // You can use Orderreturns.list or Orderreturns.get to search for the return,
 29207  // and then use Orderreturns.processreturn to issue the refund. If the return
 29208  // cannot be found, then we recommend using this API to issue a refund.
 29209  //
 29210  //   - merchantId: The ID of the account that manages the order. This cannot be a
 29211  //     multi-client account.
 29212  //   - orderId: The ID of the order.
 29213  func (r *OrdersService) Returnrefundlineitem(merchantId uint64, orderId string, ordersreturnrefundlineitemrequest *OrdersReturnRefundLineItemRequest) *OrdersReturnrefundlineitemCall {
 29214  	c := &OrdersReturnrefundlineitemCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29215  	c.merchantId = merchantId
 29216  	c.orderId = orderId
 29217  	c.ordersreturnrefundlineitemrequest = ordersreturnrefundlineitemrequest
 29218  	return c
 29219  }
 29220  
 29221  // Fields allows partial responses to be retrieved. See
 29222  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29223  // details.
 29224  func (c *OrdersReturnrefundlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnrefundlineitemCall {
 29225  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29226  	return c
 29227  }
 29228  
 29229  // Context sets the context to be used in this call's Do method.
 29230  func (c *OrdersReturnrefundlineitemCall) Context(ctx context.Context) *OrdersReturnrefundlineitemCall {
 29231  	c.ctx_ = ctx
 29232  	return c
 29233  }
 29234  
 29235  // Header returns a http.Header that can be modified by the caller to add
 29236  // headers to the request.
 29237  func (c *OrdersReturnrefundlineitemCall) Header() http.Header {
 29238  	if c.header_ == nil {
 29239  		c.header_ = make(http.Header)
 29240  	}
 29241  	return c.header_
 29242  }
 29243  
 29244  func (c *OrdersReturnrefundlineitemCall) doRequest(alt string) (*http.Response, error) {
 29245  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29246  	var body io.Reader = nil
 29247  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersreturnrefundlineitemrequest)
 29248  	if err != nil {
 29249  		return nil, err
 29250  	}
 29251  	c.urlParams_.Set("alt", alt)
 29252  	c.urlParams_.Set("prettyPrint", "false")
 29253  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/returnRefundLineItem")
 29254  	urls += "?" + c.urlParams_.Encode()
 29255  	req, err := http.NewRequest("POST", urls, body)
 29256  	if err != nil {
 29257  		return nil, err
 29258  	}
 29259  	req.Header = reqHeaders
 29260  	googleapi.Expand(req.URL, map[string]string{
 29261  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29262  		"orderId":    c.orderId,
 29263  	})
 29264  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29265  }
 29266  
 29267  // Do executes the "content.orders.returnrefundlineitem" call.
 29268  // Any non-2xx status code is an error. Response headers are in either
 29269  // *OrdersReturnRefundLineItemResponse.ServerResponse.Header or (if a response
 29270  // was returned at all) in error.(*googleapi.Error).Header. Use
 29271  // googleapi.IsNotModified to check whether the returned error was because
 29272  // http.StatusNotModified was returned.
 29273  func (c *OrdersReturnrefundlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnRefundLineItemResponse, error) {
 29274  	gensupport.SetOptions(c.urlParams_, opts...)
 29275  	res, err := c.doRequest("json")
 29276  	if res != nil && res.StatusCode == http.StatusNotModified {
 29277  		if res.Body != nil {
 29278  			res.Body.Close()
 29279  		}
 29280  		return nil, gensupport.WrapError(&googleapi.Error{
 29281  			Code:   res.StatusCode,
 29282  			Header: res.Header,
 29283  		})
 29284  	}
 29285  	if err != nil {
 29286  		return nil, err
 29287  	}
 29288  	defer googleapi.CloseBody(res)
 29289  	if err := googleapi.CheckResponse(res); err != nil {
 29290  		return nil, gensupport.WrapError(err)
 29291  	}
 29292  	ret := &OrdersReturnRefundLineItemResponse{
 29293  		ServerResponse: googleapi.ServerResponse{
 29294  			Header:         res.Header,
 29295  			HTTPStatusCode: res.StatusCode,
 29296  		},
 29297  	}
 29298  	target := &ret
 29299  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29300  		return nil, err
 29301  	}
 29302  	return ret, nil
 29303  }
 29304  
 29305  type OrdersSetlineitemmetadataCall struct {
 29306  	s                                *APIService
 29307  	merchantId                       uint64
 29308  	orderId                          string
 29309  	orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest
 29310  	urlParams_                       gensupport.URLParams
 29311  	ctx_                             context.Context
 29312  	header_                          http.Header
 29313  }
 29314  
 29315  // Setlineitemmetadata: Sets (or overrides if it already exists) merchant
 29316  // provided annotations in the form of key-value pairs. A common use case would
 29317  // be to supply us with additional structured information about a line item
 29318  // that cannot be provided through other methods. Submitted key-value pairs can
 29319  // be retrieved as part of the orders resource.
 29320  //
 29321  //   - merchantId: The ID of the account that manages the order. This cannot be a
 29322  //     multi-client account.
 29323  //   - orderId: The ID of the order.
 29324  func (r *OrdersService) Setlineitemmetadata(merchantId uint64, orderId string, orderssetlineitemmetadatarequest *OrdersSetLineItemMetadataRequest) *OrdersSetlineitemmetadataCall {
 29325  	c := &OrdersSetlineitemmetadataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29326  	c.merchantId = merchantId
 29327  	c.orderId = orderId
 29328  	c.orderssetlineitemmetadatarequest = orderssetlineitemmetadatarequest
 29329  	return c
 29330  }
 29331  
 29332  // Fields allows partial responses to be retrieved. See
 29333  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29334  // details.
 29335  func (c *OrdersSetlineitemmetadataCall) Fields(s ...googleapi.Field) *OrdersSetlineitemmetadataCall {
 29336  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29337  	return c
 29338  }
 29339  
 29340  // Context sets the context to be used in this call's Do method.
 29341  func (c *OrdersSetlineitemmetadataCall) Context(ctx context.Context) *OrdersSetlineitemmetadataCall {
 29342  	c.ctx_ = ctx
 29343  	return c
 29344  }
 29345  
 29346  // Header returns a http.Header that can be modified by the caller to add
 29347  // headers to the request.
 29348  func (c *OrdersSetlineitemmetadataCall) Header() http.Header {
 29349  	if c.header_ == nil {
 29350  		c.header_ = make(http.Header)
 29351  	}
 29352  	return c.header_
 29353  }
 29354  
 29355  func (c *OrdersSetlineitemmetadataCall) doRequest(alt string) (*http.Response, error) {
 29356  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29357  	var body io.Reader = nil
 29358  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.orderssetlineitemmetadatarequest)
 29359  	if err != nil {
 29360  		return nil, err
 29361  	}
 29362  	c.urlParams_.Set("alt", alt)
 29363  	c.urlParams_.Set("prettyPrint", "false")
 29364  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/setLineItemMetadata")
 29365  	urls += "?" + c.urlParams_.Encode()
 29366  	req, err := http.NewRequest("POST", urls, body)
 29367  	if err != nil {
 29368  		return nil, err
 29369  	}
 29370  	req.Header = reqHeaders
 29371  	googleapi.Expand(req.URL, map[string]string{
 29372  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29373  		"orderId":    c.orderId,
 29374  	})
 29375  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29376  }
 29377  
 29378  // Do executes the "content.orders.setlineitemmetadata" call.
 29379  // Any non-2xx status code is an error. Response headers are in either
 29380  // *OrdersSetLineItemMetadataResponse.ServerResponse.Header or (if a response
 29381  // was returned at all) in error.(*googleapi.Error).Header. Use
 29382  // googleapi.IsNotModified to check whether the returned error was because
 29383  // http.StatusNotModified was returned.
 29384  func (c *OrdersSetlineitemmetadataCall) Do(opts ...googleapi.CallOption) (*OrdersSetLineItemMetadataResponse, error) {
 29385  	gensupport.SetOptions(c.urlParams_, opts...)
 29386  	res, err := c.doRequest("json")
 29387  	if res != nil && res.StatusCode == http.StatusNotModified {
 29388  		if res.Body != nil {
 29389  			res.Body.Close()
 29390  		}
 29391  		return nil, gensupport.WrapError(&googleapi.Error{
 29392  			Code:   res.StatusCode,
 29393  			Header: res.Header,
 29394  		})
 29395  	}
 29396  	if err != nil {
 29397  		return nil, err
 29398  	}
 29399  	defer googleapi.CloseBody(res)
 29400  	if err := googleapi.CheckResponse(res); err != nil {
 29401  		return nil, gensupport.WrapError(err)
 29402  	}
 29403  	ret := &OrdersSetLineItemMetadataResponse{
 29404  		ServerResponse: googleapi.ServerResponse{
 29405  			Header:         res.Header,
 29406  			HTTPStatusCode: res.StatusCode,
 29407  		},
 29408  	}
 29409  	target := &ret
 29410  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29411  		return nil, err
 29412  	}
 29413  	return ret, nil
 29414  }
 29415  
 29416  type OrdersShiplineitemsCall struct {
 29417  	s                          *APIService
 29418  	merchantId                 uint64
 29419  	orderId                    string
 29420  	ordersshiplineitemsrequest *OrdersShipLineItemsRequest
 29421  	urlParams_                 gensupport.URLParams
 29422  	ctx_                       context.Context
 29423  	header_                    http.Header
 29424  }
 29425  
 29426  // Shiplineitems: Marks line item(s) as shipped.
 29427  //
 29428  //   - merchantId: The ID of the account that manages the order. This cannot be a
 29429  //     multi-client account.
 29430  //   - orderId: The ID of the order.
 29431  func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall {
 29432  	c := &OrdersShiplineitemsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29433  	c.merchantId = merchantId
 29434  	c.orderId = orderId
 29435  	c.ordersshiplineitemsrequest = ordersshiplineitemsrequest
 29436  	return c
 29437  }
 29438  
 29439  // Fields allows partial responses to be retrieved. See
 29440  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29441  // details.
 29442  func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall {
 29443  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29444  	return c
 29445  }
 29446  
 29447  // Context sets the context to be used in this call's Do method.
 29448  func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall {
 29449  	c.ctx_ = ctx
 29450  	return c
 29451  }
 29452  
 29453  // Header returns a http.Header that can be modified by the caller to add
 29454  // headers to the request.
 29455  func (c *OrdersShiplineitemsCall) Header() http.Header {
 29456  	if c.header_ == nil {
 29457  		c.header_ = make(http.Header)
 29458  	}
 29459  	return c.header_
 29460  }
 29461  
 29462  func (c *OrdersShiplineitemsCall) doRequest(alt string) (*http.Response, error) {
 29463  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29464  	var body io.Reader = nil
 29465  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersshiplineitemsrequest)
 29466  	if err != nil {
 29467  		return nil, err
 29468  	}
 29469  	c.urlParams_.Set("alt", alt)
 29470  	c.urlParams_.Set("prettyPrint", "false")
 29471  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/shipLineItems")
 29472  	urls += "?" + c.urlParams_.Encode()
 29473  	req, err := http.NewRequest("POST", urls, body)
 29474  	if err != nil {
 29475  		return nil, err
 29476  	}
 29477  	req.Header = reqHeaders
 29478  	googleapi.Expand(req.URL, map[string]string{
 29479  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29480  		"orderId":    c.orderId,
 29481  	})
 29482  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29483  }
 29484  
 29485  // Do executes the "content.orders.shiplineitems" call.
 29486  // Any non-2xx status code is an error. Response headers are in either
 29487  // *OrdersShipLineItemsResponse.ServerResponse.Header or (if a response was
 29488  // returned at all) in error.(*googleapi.Error).Header. Use
 29489  // googleapi.IsNotModified to check whether the returned error was because
 29490  // http.StatusNotModified was returned.
 29491  func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error) {
 29492  	gensupport.SetOptions(c.urlParams_, opts...)
 29493  	res, err := c.doRequest("json")
 29494  	if res != nil && res.StatusCode == http.StatusNotModified {
 29495  		if res.Body != nil {
 29496  			res.Body.Close()
 29497  		}
 29498  		return nil, gensupport.WrapError(&googleapi.Error{
 29499  			Code:   res.StatusCode,
 29500  			Header: res.Header,
 29501  		})
 29502  	}
 29503  	if err != nil {
 29504  		return nil, err
 29505  	}
 29506  	defer googleapi.CloseBody(res)
 29507  	if err := googleapi.CheckResponse(res); err != nil {
 29508  		return nil, gensupport.WrapError(err)
 29509  	}
 29510  	ret := &OrdersShipLineItemsResponse{
 29511  		ServerResponse: googleapi.ServerResponse{
 29512  			Header:         res.Header,
 29513  			HTTPStatusCode: res.StatusCode,
 29514  		},
 29515  	}
 29516  	target := &ret
 29517  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29518  		return nil, err
 29519  	}
 29520  	return ret, nil
 29521  }
 29522  
 29523  type OrdersUpdatelineitemshippingdetailsCall struct {
 29524  	s                                          *APIService
 29525  	merchantId                                 uint64
 29526  	orderId                                    string
 29527  	ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest
 29528  	urlParams_                                 gensupport.URLParams
 29529  	ctx_                                       context.Context
 29530  	header_                                    http.Header
 29531  }
 29532  
 29533  // Updatelineitemshippingdetails: Updates ship by and delivery by dates for a
 29534  // line item.
 29535  //
 29536  //   - merchantId: The ID of the account that manages the order. This cannot be a
 29537  //     multi-client account.
 29538  //   - orderId: The ID of the order.
 29539  func (r *OrdersService) Updatelineitemshippingdetails(merchantId uint64, orderId string, ordersupdatelineitemshippingdetailsrequest *OrdersUpdateLineItemShippingDetailsRequest) *OrdersUpdatelineitemshippingdetailsCall {
 29540  	c := &OrdersUpdatelineitemshippingdetailsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29541  	c.merchantId = merchantId
 29542  	c.orderId = orderId
 29543  	c.ordersupdatelineitemshippingdetailsrequest = ordersupdatelineitemshippingdetailsrequest
 29544  	return c
 29545  }
 29546  
 29547  // Fields allows partial responses to be retrieved. See
 29548  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29549  // details.
 29550  func (c *OrdersUpdatelineitemshippingdetailsCall) Fields(s ...googleapi.Field) *OrdersUpdatelineitemshippingdetailsCall {
 29551  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29552  	return c
 29553  }
 29554  
 29555  // Context sets the context to be used in this call's Do method.
 29556  func (c *OrdersUpdatelineitemshippingdetailsCall) Context(ctx context.Context) *OrdersUpdatelineitemshippingdetailsCall {
 29557  	c.ctx_ = ctx
 29558  	return c
 29559  }
 29560  
 29561  // Header returns a http.Header that can be modified by the caller to add
 29562  // headers to the request.
 29563  func (c *OrdersUpdatelineitemshippingdetailsCall) Header() http.Header {
 29564  	if c.header_ == nil {
 29565  		c.header_ = make(http.Header)
 29566  	}
 29567  	return c.header_
 29568  }
 29569  
 29570  func (c *OrdersUpdatelineitemshippingdetailsCall) doRequest(alt string) (*http.Response, error) {
 29571  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29572  	var body io.Reader = nil
 29573  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatelineitemshippingdetailsrequest)
 29574  	if err != nil {
 29575  		return nil, err
 29576  	}
 29577  	c.urlParams_.Set("alt", alt)
 29578  	c.urlParams_.Set("prettyPrint", "false")
 29579  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateLineItemShippingDetails")
 29580  	urls += "?" + c.urlParams_.Encode()
 29581  	req, err := http.NewRequest("POST", urls, body)
 29582  	if err != nil {
 29583  		return nil, err
 29584  	}
 29585  	req.Header = reqHeaders
 29586  	googleapi.Expand(req.URL, map[string]string{
 29587  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29588  		"orderId":    c.orderId,
 29589  	})
 29590  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29591  }
 29592  
 29593  // Do executes the "content.orders.updatelineitemshippingdetails" call.
 29594  // Any non-2xx status code is an error. Response headers are in either
 29595  // *OrdersUpdateLineItemShippingDetailsResponse.ServerResponse.Header or (if a
 29596  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29597  // googleapi.IsNotModified to check whether the returned error was because
 29598  // http.StatusNotModified was returned.
 29599  func (c *OrdersUpdatelineitemshippingdetailsCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateLineItemShippingDetailsResponse, error) {
 29600  	gensupport.SetOptions(c.urlParams_, opts...)
 29601  	res, err := c.doRequest("json")
 29602  	if res != nil && res.StatusCode == http.StatusNotModified {
 29603  		if res.Body != nil {
 29604  			res.Body.Close()
 29605  		}
 29606  		return nil, gensupport.WrapError(&googleapi.Error{
 29607  			Code:   res.StatusCode,
 29608  			Header: res.Header,
 29609  		})
 29610  	}
 29611  	if err != nil {
 29612  		return nil, err
 29613  	}
 29614  	defer googleapi.CloseBody(res)
 29615  	if err := googleapi.CheckResponse(res); err != nil {
 29616  		return nil, gensupport.WrapError(err)
 29617  	}
 29618  	ret := &OrdersUpdateLineItemShippingDetailsResponse{
 29619  		ServerResponse: googleapi.ServerResponse{
 29620  			Header:         res.Header,
 29621  			HTTPStatusCode: res.StatusCode,
 29622  		},
 29623  	}
 29624  	target := &ret
 29625  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29626  		return nil, err
 29627  	}
 29628  	return ret, nil
 29629  }
 29630  
 29631  type OrdersUpdatemerchantorderidCall struct {
 29632  	s                                  *APIService
 29633  	merchantId                         uint64
 29634  	orderId                            string
 29635  	ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest
 29636  	urlParams_                         gensupport.URLParams
 29637  	ctx_                               context.Context
 29638  	header_                            http.Header
 29639  }
 29640  
 29641  // Updatemerchantorderid: Updates the merchant order ID for a given order.
 29642  //
 29643  //   - merchantId: The ID of the account that manages the order. This cannot be a
 29644  //     multi-client account.
 29645  //   - orderId: The ID of the order.
 29646  func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall {
 29647  	c := &OrdersUpdatemerchantorderidCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29648  	c.merchantId = merchantId
 29649  	c.orderId = orderId
 29650  	c.ordersupdatemerchantorderidrequest = ordersupdatemerchantorderidrequest
 29651  	return c
 29652  }
 29653  
 29654  // Fields allows partial responses to be retrieved. See
 29655  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29656  // details.
 29657  func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall {
 29658  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29659  	return c
 29660  }
 29661  
 29662  // Context sets the context to be used in this call's Do method.
 29663  func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall {
 29664  	c.ctx_ = ctx
 29665  	return c
 29666  }
 29667  
 29668  // Header returns a http.Header that can be modified by the caller to add
 29669  // headers to the request.
 29670  func (c *OrdersUpdatemerchantorderidCall) Header() http.Header {
 29671  	if c.header_ == nil {
 29672  		c.header_ = make(http.Header)
 29673  	}
 29674  	return c.header_
 29675  }
 29676  
 29677  func (c *OrdersUpdatemerchantorderidCall) doRequest(alt string) (*http.Response, error) {
 29678  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29679  	var body io.Reader = nil
 29680  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdatemerchantorderidrequest)
 29681  	if err != nil {
 29682  		return nil, err
 29683  	}
 29684  	c.urlParams_.Set("alt", alt)
 29685  	c.urlParams_.Set("prettyPrint", "false")
 29686  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateMerchantOrderId")
 29687  	urls += "?" + c.urlParams_.Encode()
 29688  	req, err := http.NewRequest("POST", urls, body)
 29689  	if err != nil {
 29690  		return nil, err
 29691  	}
 29692  	req.Header = reqHeaders
 29693  	googleapi.Expand(req.URL, map[string]string{
 29694  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29695  		"orderId":    c.orderId,
 29696  	})
 29697  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29698  }
 29699  
 29700  // Do executes the "content.orders.updatemerchantorderid" call.
 29701  // Any non-2xx status code is an error. Response headers are in either
 29702  // *OrdersUpdateMerchantOrderIdResponse.ServerResponse.Header or (if a response
 29703  // was returned at all) in error.(*googleapi.Error).Header. Use
 29704  // googleapi.IsNotModified to check whether the returned error was because
 29705  // http.StatusNotModified was returned.
 29706  func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error) {
 29707  	gensupport.SetOptions(c.urlParams_, opts...)
 29708  	res, err := c.doRequest("json")
 29709  	if res != nil && res.StatusCode == http.StatusNotModified {
 29710  		if res.Body != nil {
 29711  			res.Body.Close()
 29712  		}
 29713  		return nil, gensupport.WrapError(&googleapi.Error{
 29714  			Code:   res.StatusCode,
 29715  			Header: res.Header,
 29716  		})
 29717  	}
 29718  	if err != nil {
 29719  		return nil, err
 29720  	}
 29721  	defer googleapi.CloseBody(res)
 29722  	if err := googleapi.CheckResponse(res); err != nil {
 29723  		return nil, gensupport.WrapError(err)
 29724  	}
 29725  	ret := &OrdersUpdateMerchantOrderIdResponse{
 29726  		ServerResponse: googleapi.ServerResponse{
 29727  			Header:         res.Header,
 29728  			HTTPStatusCode: res.StatusCode,
 29729  		},
 29730  	}
 29731  	target := &ret
 29732  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29733  		return nil, err
 29734  	}
 29735  	return ret, nil
 29736  }
 29737  
 29738  type OrdersUpdateshipmentCall struct {
 29739  	s                           *APIService
 29740  	merchantId                  uint64
 29741  	orderId                     string
 29742  	ordersupdateshipmentrequest *OrdersUpdateShipmentRequest
 29743  	urlParams_                  gensupport.URLParams
 29744  	ctx_                        context.Context
 29745  	header_                     http.Header
 29746  }
 29747  
 29748  // Updateshipment: Updates a shipment's status, carrier, and/or tracking ID.
 29749  //
 29750  //   - merchantId: The ID of the account that manages the order. This cannot be a
 29751  //     multi-client account.
 29752  //   - orderId: The ID of the order.
 29753  func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall {
 29754  	c := &OrdersUpdateshipmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29755  	c.merchantId = merchantId
 29756  	c.orderId = orderId
 29757  	c.ordersupdateshipmentrequest = ordersupdateshipmentrequest
 29758  	return c
 29759  }
 29760  
 29761  // Fields allows partial responses to be retrieved. See
 29762  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29763  // details.
 29764  func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall {
 29765  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29766  	return c
 29767  }
 29768  
 29769  // Context sets the context to be used in this call's Do method.
 29770  func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall {
 29771  	c.ctx_ = ctx
 29772  	return c
 29773  }
 29774  
 29775  // Header returns a http.Header that can be modified by the caller to add
 29776  // headers to the request.
 29777  func (c *OrdersUpdateshipmentCall) Header() http.Header {
 29778  	if c.header_ == nil {
 29779  		c.header_ = make(http.Header)
 29780  	}
 29781  	return c.header_
 29782  }
 29783  
 29784  func (c *OrdersUpdateshipmentCall) doRequest(alt string) (*http.Response, error) {
 29785  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29786  	var body io.Reader = nil
 29787  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordersupdateshipmentrequest)
 29788  	if err != nil {
 29789  		return nil, err
 29790  	}
 29791  	c.urlParams_.Set("alt", alt)
 29792  	c.urlParams_.Set("prettyPrint", "false")
 29793  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/orders/{orderId}/updateShipment")
 29794  	urls += "?" + c.urlParams_.Encode()
 29795  	req, err := http.NewRequest("POST", urls, body)
 29796  	if err != nil {
 29797  		return nil, err
 29798  	}
 29799  	req.Header = reqHeaders
 29800  	googleapi.Expand(req.URL, map[string]string{
 29801  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 29802  		"orderId":    c.orderId,
 29803  	})
 29804  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29805  }
 29806  
 29807  // Do executes the "content.orders.updateshipment" call.
 29808  // Any non-2xx status code is an error. Response headers are in either
 29809  // *OrdersUpdateShipmentResponse.ServerResponse.Header or (if a response was
 29810  // returned at all) in error.(*googleapi.Error).Header. Use
 29811  // googleapi.IsNotModified to check whether the returned error was because
 29812  // http.StatusNotModified was returned.
 29813  func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error) {
 29814  	gensupport.SetOptions(c.urlParams_, opts...)
 29815  	res, err := c.doRequest("json")
 29816  	if res != nil && res.StatusCode == http.StatusNotModified {
 29817  		if res.Body != nil {
 29818  			res.Body.Close()
 29819  		}
 29820  		return nil, gensupport.WrapError(&googleapi.Error{
 29821  			Code:   res.StatusCode,
 29822  			Header: res.Header,
 29823  		})
 29824  	}
 29825  	if err != nil {
 29826  		return nil, err
 29827  	}
 29828  	defer googleapi.CloseBody(res)
 29829  	if err := googleapi.CheckResponse(res); err != nil {
 29830  		return nil, gensupport.WrapError(err)
 29831  	}
 29832  	ret := &OrdersUpdateShipmentResponse{
 29833  		ServerResponse: googleapi.ServerResponse{
 29834  			Header:         res.Header,
 29835  			HTTPStatusCode: res.StatusCode,
 29836  		},
 29837  	}
 29838  	target := &ret
 29839  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29840  		return nil, err
 29841  	}
 29842  	return ret, nil
 29843  }
 29844  
 29845  type OrdertrackingsignalsCreateCall struct {
 29846  	s                   *APIService
 29847  	merchantId          int64
 29848  	ordertrackingsignal *OrderTrackingSignal
 29849  	urlParams_          gensupport.URLParams
 29850  	ctx_                context.Context
 29851  	header_             http.Header
 29852  }
 29853  
 29854  // Create: Creates new order tracking signal.
 29855  //
 29856  // - merchantId: The ID of the merchant for which the order signal is created.
 29857  func (r *OrdertrackingsignalsService) Create(merchantId int64, ordertrackingsignal *OrderTrackingSignal) *OrdertrackingsignalsCreateCall {
 29858  	c := &OrdertrackingsignalsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29859  	c.merchantId = merchantId
 29860  	c.ordertrackingsignal = ordertrackingsignal
 29861  	return c
 29862  }
 29863  
 29864  // Fields allows partial responses to be retrieved. See
 29865  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29866  // details.
 29867  func (c *OrdertrackingsignalsCreateCall) Fields(s ...googleapi.Field) *OrdertrackingsignalsCreateCall {
 29868  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29869  	return c
 29870  }
 29871  
 29872  // Context sets the context to be used in this call's Do method.
 29873  func (c *OrdertrackingsignalsCreateCall) Context(ctx context.Context) *OrdertrackingsignalsCreateCall {
 29874  	c.ctx_ = ctx
 29875  	return c
 29876  }
 29877  
 29878  // Header returns a http.Header that can be modified by the caller to add
 29879  // headers to the request.
 29880  func (c *OrdertrackingsignalsCreateCall) Header() http.Header {
 29881  	if c.header_ == nil {
 29882  		c.header_ = make(http.Header)
 29883  	}
 29884  	return c.header_
 29885  }
 29886  
 29887  func (c *OrdertrackingsignalsCreateCall) doRequest(alt string) (*http.Response, error) {
 29888  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29889  	var body io.Reader = nil
 29890  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.ordertrackingsignal)
 29891  	if err != nil {
 29892  		return nil, err
 29893  	}
 29894  	c.urlParams_.Set("alt", alt)
 29895  	c.urlParams_.Set("prettyPrint", "false")
 29896  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/ordertrackingsignals")
 29897  	urls += "?" + c.urlParams_.Encode()
 29898  	req, err := http.NewRequest("POST", urls, body)
 29899  	if err != nil {
 29900  		return nil, err
 29901  	}
 29902  	req.Header = reqHeaders
 29903  	googleapi.Expand(req.URL, map[string]string{
 29904  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 29905  	})
 29906  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29907  }
 29908  
 29909  // Do executes the "content.ordertrackingsignals.create" call.
 29910  // Any non-2xx status code is an error. Response headers are in either
 29911  // *OrderTrackingSignal.ServerResponse.Header or (if a response was returned at
 29912  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 29913  // check whether the returned error was because http.StatusNotModified was
 29914  // returned.
 29915  func (c *OrdertrackingsignalsCreateCall) Do(opts ...googleapi.CallOption) (*OrderTrackingSignal, error) {
 29916  	gensupport.SetOptions(c.urlParams_, opts...)
 29917  	res, err := c.doRequest("json")
 29918  	if res != nil && res.StatusCode == http.StatusNotModified {
 29919  		if res.Body != nil {
 29920  			res.Body.Close()
 29921  		}
 29922  		return nil, gensupport.WrapError(&googleapi.Error{
 29923  			Code:   res.StatusCode,
 29924  			Header: res.Header,
 29925  		})
 29926  	}
 29927  	if err != nil {
 29928  		return nil, err
 29929  	}
 29930  	defer googleapi.CloseBody(res)
 29931  	if err := googleapi.CheckResponse(res); err != nil {
 29932  		return nil, gensupport.WrapError(err)
 29933  	}
 29934  	ret := &OrderTrackingSignal{
 29935  		ServerResponse: googleapi.ServerResponse{
 29936  			Header:         res.Header,
 29937  			HTTPStatusCode: res.StatusCode,
 29938  		},
 29939  	}
 29940  	target := &ret
 29941  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29942  		return nil, err
 29943  	}
 29944  	return ret, nil
 29945  }
 29946  
 29947  type PosCustombatchCall struct {
 29948  	s                     *APIService
 29949  	poscustombatchrequest *PosCustomBatchRequest
 29950  	urlParams_            gensupport.URLParams
 29951  	ctx_                  context.Context
 29952  	header_               http.Header
 29953  }
 29954  
 29955  // Custombatch: Batches multiple POS-related calls in a single request.
 29956  func (r *PosService) Custombatch(poscustombatchrequest *PosCustomBatchRequest) *PosCustombatchCall {
 29957  	c := &PosCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29958  	c.poscustombatchrequest = poscustombatchrequest
 29959  	return c
 29960  }
 29961  
 29962  // Fields allows partial responses to be retrieved. See
 29963  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29964  // details.
 29965  func (c *PosCustombatchCall) Fields(s ...googleapi.Field) *PosCustombatchCall {
 29966  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29967  	return c
 29968  }
 29969  
 29970  // Context sets the context to be used in this call's Do method.
 29971  func (c *PosCustombatchCall) Context(ctx context.Context) *PosCustombatchCall {
 29972  	c.ctx_ = ctx
 29973  	return c
 29974  }
 29975  
 29976  // Header returns a http.Header that can be modified by the caller to add
 29977  // headers to the request.
 29978  func (c *PosCustombatchCall) Header() http.Header {
 29979  	if c.header_ == nil {
 29980  		c.header_ = make(http.Header)
 29981  	}
 29982  	return c.header_
 29983  }
 29984  
 29985  func (c *PosCustombatchCall) doRequest(alt string) (*http.Response, error) {
 29986  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29987  	var body io.Reader = nil
 29988  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.poscustombatchrequest)
 29989  	if err != nil {
 29990  		return nil, err
 29991  	}
 29992  	c.urlParams_.Set("alt", alt)
 29993  	c.urlParams_.Set("prettyPrint", "false")
 29994  	urls := googleapi.ResolveRelative(c.s.BasePath, "pos/batch")
 29995  	urls += "?" + c.urlParams_.Encode()
 29996  	req, err := http.NewRequest("POST", urls, body)
 29997  	if err != nil {
 29998  		return nil, err
 29999  	}
 30000  	req.Header = reqHeaders
 30001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30002  }
 30003  
 30004  // Do executes the "content.pos.custombatch" call.
 30005  // Any non-2xx status code is an error. Response headers are in either
 30006  // *PosCustomBatchResponse.ServerResponse.Header or (if a response was returned
 30007  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30008  // check whether the returned error was because http.StatusNotModified was
 30009  // returned.
 30010  func (c *PosCustombatchCall) Do(opts ...googleapi.CallOption) (*PosCustomBatchResponse, error) {
 30011  	gensupport.SetOptions(c.urlParams_, opts...)
 30012  	res, err := c.doRequest("json")
 30013  	if res != nil && res.StatusCode == http.StatusNotModified {
 30014  		if res.Body != nil {
 30015  			res.Body.Close()
 30016  		}
 30017  		return nil, gensupport.WrapError(&googleapi.Error{
 30018  			Code:   res.StatusCode,
 30019  			Header: res.Header,
 30020  		})
 30021  	}
 30022  	if err != nil {
 30023  		return nil, err
 30024  	}
 30025  	defer googleapi.CloseBody(res)
 30026  	if err := googleapi.CheckResponse(res); err != nil {
 30027  		return nil, gensupport.WrapError(err)
 30028  	}
 30029  	ret := &PosCustomBatchResponse{
 30030  		ServerResponse: googleapi.ServerResponse{
 30031  			Header:         res.Header,
 30032  			HTTPStatusCode: res.StatusCode,
 30033  		},
 30034  	}
 30035  	target := &ret
 30036  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30037  		return nil, err
 30038  	}
 30039  	return ret, nil
 30040  }
 30041  
 30042  type PosDeleteCall struct {
 30043  	s                *APIService
 30044  	merchantId       uint64
 30045  	targetMerchantId uint64
 30046  	storeCode        string
 30047  	urlParams_       gensupport.URLParams
 30048  	ctx_             context.Context
 30049  	header_          http.Header
 30050  }
 30051  
 30052  // Delete: Deletes a store for the given merchant.
 30053  //
 30054  // - merchantId: The ID of the POS or inventory data provider.
 30055  // - storeCode: A store code that is unique per merchant.
 30056  // - targetMerchantId: The ID of the target merchant.
 30057  func (r *PosService) Delete(merchantId uint64, targetMerchantId uint64, storeCode string) *PosDeleteCall {
 30058  	c := &PosDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30059  	c.merchantId = merchantId
 30060  	c.targetMerchantId = targetMerchantId
 30061  	c.storeCode = storeCode
 30062  	return c
 30063  }
 30064  
 30065  // Fields allows partial responses to be retrieved. See
 30066  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30067  // details.
 30068  func (c *PosDeleteCall) Fields(s ...googleapi.Field) *PosDeleteCall {
 30069  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30070  	return c
 30071  }
 30072  
 30073  // Context sets the context to be used in this call's Do method.
 30074  func (c *PosDeleteCall) Context(ctx context.Context) *PosDeleteCall {
 30075  	c.ctx_ = ctx
 30076  	return c
 30077  }
 30078  
 30079  // Header returns a http.Header that can be modified by the caller to add
 30080  // headers to the request.
 30081  func (c *PosDeleteCall) Header() http.Header {
 30082  	if c.header_ == nil {
 30083  		c.header_ = make(http.Header)
 30084  	}
 30085  	return c.header_
 30086  }
 30087  
 30088  func (c *PosDeleteCall) doRequest(alt string) (*http.Response, error) {
 30089  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30090  	var body io.Reader = nil
 30091  	c.urlParams_.Set("alt", alt)
 30092  	c.urlParams_.Set("prettyPrint", "false")
 30093  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store/{storeCode}")
 30094  	urls += "?" + c.urlParams_.Encode()
 30095  	req, err := http.NewRequest("DELETE", urls, body)
 30096  	if err != nil {
 30097  		return nil, err
 30098  	}
 30099  	req.Header = reqHeaders
 30100  	googleapi.Expand(req.URL, map[string]string{
 30101  		"merchantId":       strconv.FormatUint(c.merchantId, 10),
 30102  		"targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
 30103  		"storeCode":        c.storeCode,
 30104  	})
 30105  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30106  }
 30107  
 30108  // Do executes the "content.pos.delete" call.
 30109  func (c *PosDeleteCall) Do(opts ...googleapi.CallOption) error {
 30110  	gensupport.SetOptions(c.urlParams_, opts...)
 30111  	res, err := c.doRequest("json")
 30112  	if err != nil {
 30113  		return err
 30114  	}
 30115  	defer googleapi.CloseBody(res)
 30116  	if err := googleapi.CheckResponse(res); err != nil {
 30117  		return gensupport.WrapError(err)
 30118  	}
 30119  	return nil
 30120  }
 30121  
 30122  type PosGetCall struct {
 30123  	s                *APIService
 30124  	merchantId       uint64
 30125  	targetMerchantId uint64
 30126  	storeCode        string
 30127  	urlParams_       gensupport.URLParams
 30128  	ifNoneMatch_     string
 30129  	ctx_             context.Context
 30130  	header_          http.Header
 30131  }
 30132  
 30133  // Get: Retrieves information about the given store.
 30134  //
 30135  // - merchantId: The ID of the POS or inventory data provider.
 30136  // - storeCode: A store code that is unique per merchant.
 30137  // - targetMerchantId: The ID of the target merchant.
 30138  func (r *PosService) Get(merchantId uint64, targetMerchantId uint64, storeCode string) *PosGetCall {
 30139  	c := &PosGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30140  	c.merchantId = merchantId
 30141  	c.targetMerchantId = targetMerchantId
 30142  	c.storeCode = storeCode
 30143  	return c
 30144  }
 30145  
 30146  // Fields allows partial responses to be retrieved. See
 30147  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30148  // details.
 30149  func (c *PosGetCall) Fields(s ...googleapi.Field) *PosGetCall {
 30150  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30151  	return c
 30152  }
 30153  
 30154  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30155  // object's ETag matches the given value. This is useful for getting updates
 30156  // only after the object has changed since the last request.
 30157  func (c *PosGetCall) IfNoneMatch(entityTag string) *PosGetCall {
 30158  	c.ifNoneMatch_ = entityTag
 30159  	return c
 30160  }
 30161  
 30162  // Context sets the context to be used in this call's Do method.
 30163  func (c *PosGetCall) Context(ctx context.Context) *PosGetCall {
 30164  	c.ctx_ = ctx
 30165  	return c
 30166  }
 30167  
 30168  // Header returns a http.Header that can be modified by the caller to add
 30169  // headers to the request.
 30170  func (c *PosGetCall) Header() http.Header {
 30171  	if c.header_ == nil {
 30172  		c.header_ = make(http.Header)
 30173  	}
 30174  	return c.header_
 30175  }
 30176  
 30177  func (c *PosGetCall) doRequest(alt string) (*http.Response, error) {
 30178  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30179  	if c.ifNoneMatch_ != "" {
 30180  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30181  	}
 30182  	var body io.Reader = nil
 30183  	c.urlParams_.Set("alt", alt)
 30184  	c.urlParams_.Set("prettyPrint", "false")
 30185  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store/{storeCode}")
 30186  	urls += "?" + c.urlParams_.Encode()
 30187  	req, err := http.NewRequest("GET", urls, body)
 30188  	if err != nil {
 30189  		return nil, err
 30190  	}
 30191  	req.Header = reqHeaders
 30192  	googleapi.Expand(req.URL, map[string]string{
 30193  		"merchantId":       strconv.FormatUint(c.merchantId, 10),
 30194  		"targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
 30195  		"storeCode":        c.storeCode,
 30196  	})
 30197  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30198  }
 30199  
 30200  // Do executes the "content.pos.get" call.
 30201  // Any non-2xx status code is an error. Response headers are in either
 30202  // *PosStore.ServerResponse.Header or (if a response was returned at all) in
 30203  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 30204  // whether the returned error was because http.StatusNotModified was returned.
 30205  func (c *PosGetCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
 30206  	gensupport.SetOptions(c.urlParams_, opts...)
 30207  	res, err := c.doRequest("json")
 30208  	if res != nil && res.StatusCode == http.StatusNotModified {
 30209  		if res.Body != nil {
 30210  			res.Body.Close()
 30211  		}
 30212  		return nil, gensupport.WrapError(&googleapi.Error{
 30213  			Code:   res.StatusCode,
 30214  			Header: res.Header,
 30215  		})
 30216  	}
 30217  	if err != nil {
 30218  		return nil, err
 30219  	}
 30220  	defer googleapi.CloseBody(res)
 30221  	if err := googleapi.CheckResponse(res); err != nil {
 30222  		return nil, gensupport.WrapError(err)
 30223  	}
 30224  	ret := &PosStore{
 30225  		ServerResponse: googleapi.ServerResponse{
 30226  			Header:         res.Header,
 30227  			HTTPStatusCode: res.StatusCode,
 30228  		},
 30229  	}
 30230  	target := &ret
 30231  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30232  		return nil, err
 30233  	}
 30234  	return ret, nil
 30235  }
 30236  
 30237  type PosInsertCall struct {
 30238  	s                *APIService
 30239  	merchantId       uint64
 30240  	targetMerchantId uint64
 30241  	posstore         *PosStore
 30242  	urlParams_       gensupport.URLParams
 30243  	ctx_             context.Context
 30244  	header_          http.Header
 30245  }
 30246  
 30247  // Insert: Creates a store for the given merchant.
 30248  //
 30249  // - merchantId: The ID of the POS or inventory data provider.
 30250  // - targetMerchantId: The ID of the target merchant.
 30251  func (r *PosService) Insert(merchantId uint64, targetMerchantId uint64, posstore *PosStore) *PosInsertCall {
 30252  	c := &PosInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30253  	c.merchantId = merchantId
 30254  	c.targetMerchantId = targetMerchantId
 30255  	c.posstore = posstore
 30256  	return c
 30257  }
 30258  
 30259  // Fields allows partial responses to be retrieved. See
 30260  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30261  // details.
 30262  func (c *PosInsertCall) Fields(s ...googleapi.Field) *PosInsertCall {
 30263  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30264  	return c
 30265  }
 30266  
 30267  // Context sets the context to be used in this call's Do method.
 30268  func (c *PosInsertCall) Context(ctx context.Context) *PosInsertCall {
 30269  	c.ctx_ = ctx
 30270  	return c
 30271  }
 30272  
 30273  // Header returns a http.Header that can be modified by the caller to add
 30274  // headers to the request.
 30275  func (c *PosInsertCall) Header() http.Header {
 30276  	if c.header_ == nil {
 30277  		c.header_ = make(http.Header)
 30278  	}
 30279  	return c.header_
 30280  }
 30281  
 30282  func (c *PosInsertCall) doRequest(alt string) (*http.Response, error) {
 30283  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30284  	var body io.Reader = nil
 30285  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.posstore)
 30286  	if err != nil {
 30287  		return nil, err
 30288  	}
 30289  	c.urlParams_.Set("alt", alt)
 30290  	c.urlParams_.Set("prettyPrint", "false")
 30291  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store")
 30292  	urls += "?" + c.urlParams_.Encode()
 30293  	req, err := http.NewRequest("POST", urls, body)
 30294  	if err != nil {
 30295  		return nil, err
 30296  	}
 30297  	req.Header = reqHeaders
 30298  	googleapi.Expand(req.URL, map[string]string{
 30299  		"merchantId":       strconv.FormatUint(c.merchantId, 10),
 30300  		"targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
 30301  	})
 30302  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30303  }
 30304  
 30305  // Do executes the "content.pos.insert" call.
 30306  // Any non-2xx status code is an error. Response headers are in either
 30307  // *PosStore.ServerResponse.Header or (if a response was returned at all) in
 30308  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 30309  // whether the returned error was because http.StatusNotModified was returned.
 30310  func (c *PosInsertCall) Do(opts ...googleapi.CallOption) (*PosStore, error) {
 30311  	gensupport.SetOptions(c.urlParams_, opts...)
 30312  	res, err := c.doRequest("json")
 30313  	if res != nil && res.StatusCode == http.StatusNotModified {
 30314  		if res.Body != nil {
 30315  			res.Body.Close()
 30316  		}
 30317  		return nil, gensupport.WrapError(&googleapi.Error{
 30318  			Code:   res.StatusCode,
 30319  			Header: res.Header,
 30320  		})
 30321  	}
 30322  	if err != nil {
 30323  		return nil, err
 30324  	}
 30325  	defer googleapi.CloseBody(res)
 30326  	if err := googleapi.CheckResponse(res); err != nil {
 30327  		return nil, gensupport.WrapError(err)
 30328  	}
 30329  	ret := &PosStore{
 30330  		ServerResponse: googleapi.ServerResponse{
 30331  			Header:         res.Header,
 30332  			HTTPStatusCode: res.StatusCode,
 30333  		},
 30334  	}
 30335  	target := &ret
 30336  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30337  		return nil, err
 30338  	}
 30339  	return ret, nil
 30340  }
 30341  
 30342  type PosInventoryCall struct {
 30343  	s                   *APIService
 30344  	merchantId          uint64
 30345  	targetMerchantId    uint64
 30346  	posinventoryrequest *PosInventoryRequest
 30347  	urlParams_          gensupport.URLParams
 30348  	ctx_                context.Context
 30349  	header_             http.Header
 30350  }
 30351  
 30352  // Inventory: Submit inventory for the given merchant.
 30353  //
 30354  // - merchantId: The ID of the POS or inventory data provider.
 30355  // - targetMerchantId: The ID of the target merchant.
 30356  func (r *PosService) Inventory(merchantId uint64, targetMerchantId uint64, posinventoryrequest *PosInventoryRequest) *PosInventoryCall {
 30357  	c := &PosInventoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30358  	c.merchantId = merchantId
 30359  	c.targetMerchantId = targetMerchantId
 30360  	c.posinventoryrequest = posinventoryrequest
 30361  	return c
 30362  }
 30363  
 30364  // Fields allows partial responses to be retrieved. See
 30365  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30366  // details.
 30367  func (c *PosInventoryCall) Fields(s ...googleapi.Field) *PosInventoryCall {
 30368  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30369  	return c
 30370  }
 30371  
 30372  // Context sets the context to be used in this call's Do method.
 30373  func (c *PosInventoryCall) Context(ctx context.Context) *PosInventoryCall {
 30374  	c.ctx_ = ctx
 30375  	return c
 30376  }
 30377  
 30378  // Header returns a http.Header that can be modified by the caller to add
 30379  // headers to the request.
 30380  func (c *PosInventoryCall) Header() http.Header {
 30381  	if c.header_ == nil {
 30382  		c.header_ = make(http.Header)
 30383  	}
 30384  	return c.header_
 30385  }
 30386  
 30387  func (c *PosInventoryCall) doRequest(alt string) (*http.Response, error) {
 30388  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30389  	var body io.Reader = nil
 30390  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.posinventoryrequest)
 30391  	if err != nil {
 30392  		return nil, err
 30393  	}
 30394  	c.urlParams_.Set("alt", alt)
 30395  	c.urlParams_.Set("prettyPrint", "false")
 30396  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/inventory")
 30397  	urls += "?" + c.urlParams_.Encode()
 30398  	req, err := http.NewRequest("POST", urls, body)
 30399  	if err != nil {
 30400  		return nil, err
 30401  	}
 30402  	req.Header = reqHeaders
 30403  	googleapi.Expand(req.URL, map[string]string{
 30404  		"merchantId":       strconv.FormatUint(c.merchantId, 10),
 30405  		"targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
 30406  	})
 30407  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30408  }
 30409  
 30410  // Do executes the "content.pos.inventory" call.
 30411  // Any non-2xx status code is an error. Response headers are in either
 30412  // *PosInventoryResponse.ServerResponse.Header or (if a response was returned
 30413  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30414  // check whether the returned error was because http.StatusNotModified was
 30415  // returned.
 30416  func (c *PosInventoryCall) Do(opts ...googleapi.CallOption) (*PosInventoryResponse, error) {
 30417  	gensupport.SetOptions(c.urlParams_, opts...)
 30418  	res, err := c.doRequest("json")
 30419  	if res != nil && res.StatusCode == http.StatusNotModified {
 30420  		if res.Body != nil {
 30421  			res.Body.Close()
 30422  		}
 30423  		return nil, gensupport.WrapError(&googleapi.Error{
 30424  			Code:   res.StatusCode,
 30425  			Header: res.Header,
 30426  		})
 30427  	}
 30428  	if err != nil {
 30429  		return nil, err
 30430  	}
 30431  	defer googleapi.CloseBody(res)
 30432  	if err := googleapi.CheckResponse(res); err != nil {
 30433  		return nil, gensupport.WrapError(err)
 30434  	}
 30435  	ret := &PosInventoryResponse{
 30436  		ServerResponse: googleapi.ServerResponse{
 30437  			Header:         res.Header,
 30438  			HTTPStatusCode: res.StatusCode,
 30439  		},
 30440  	}
 30441  	target := &ret
 30442  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30443  		return nil, err
 30444  	}
 30445  	return ret, nil
 30446  }
 30447  
 30448  type PosListCall struct {
 30449  	s                *APIService
 30450  	merchantId       uint64
 30451  	targetMerchantId uint64
 30452  	urlParams_       gensupport.URLParams
 30453  	ifNoneMatch_     string
 30454  	ctx_             context.Context
 30455  	header_          http.Header
 30456  }
 30457  
 30458  // List: Lists the stores of the target merchant.
 30459  //
 30460  // - merchantId: The ID of the POS or inventory data provider.
 30461  // - targetMerchantId: The ID of the target merchant.
 30462  func (r *PosService) List(merchantId uint64, targetMerchantId uint64) *PosListCall {
 30463  	c := &PosListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30464  	c.merchantId = merchantId
 30465  	c.targetMerchantId = targetMerchantId
 30466  	return c
 30467  }
 30468  
 30469  // Fields allows partial responses to be retrieved. See
 30470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30471  // details.
 30472  func (c *PosListCall) Fields(s ...googleapi.Field) *PosListCall {
 30473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30474  	return c
 30475  }
 30476  
 30477  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30478  // object's ETag matches the given value. This is useful for getting updates
 30479  // only after the object has changed since the last request.
 30480  func (c *PosListCall) IfNoneMatch(entityTag string) *PosListCall {
 30481  	c.ifNoneMatch_ = entityTag
 30482  	return c
 30483  }
 30484  
 30485  // Context sets the context to be used in this call's Do method.
 30486  func (c *PosListCall) Context(ctx context.Context) *PosListCall {
 30487  	c.ctx_ = ctx
 30488  	return c
 30489  }
 30490  
 30491  // Header returns a http.Header that can be modified by the caller to add
 30492  // headers to the request.
 30493  func (c *PosListCall) Header() http.Header {
 30494  	if c.header_ == nil {
 30495  		c.header_ = make(http.Header)
 30496  	}
 30497  	return c.header_
 30498  }
 30499  
 30500  func (c *PosListCall) doRequest(alt string) (*http.Response, error) {
 30501  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30502  	if c.ifNoneMatch_ != "" {
 30503  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30504  	}
 30505  	var body io.Reader = nil
 30506  	c.urlParams_.Set("alt", alt)
 30507  	c.urlParams_.Set("prettyPrint", "false")
 30508  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/store")
 30509  	urls += "?" + c.urlParams_.Encode()
 30510  	req, err := http.NewRequest("GET", urls, body)
 30511  	if err != nil {
 30512  		return nil, err
 30513  	}
 30514  	req.Header = reqHeaders
 30515  	googleapi.Expand(req.URL, map[string]string{
 30516  		"merchantId":       strconv.FormatUint(c.merchantId, 10),
 30517  		"targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
 30518  	})
 30519  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30520  }
 30521  
 30522  // Do executes the "content.pos.list" call.
 30523  // Any non-2xx status code is an error. Response headers are in either
 30524  // *PosListResponse.ServerResponse.Header or (if a response was returned at
 30525  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30526  // check whether the returned error was because http.StatusNotModified was
 30527  // returned.
 30528  func (c *PosListCall) Do(opts ...googleapi.CallOption) (*PosListResponse, error) {
 30529  	gensupport.SetOptions(c.urlParams_, opts...)
 30530  	res, err := c.doRequest("json")
 30531  	if res != nil && res.StatusCode == http.StatusNotModified {
 30532  		if res.Body != nil {
 30533  			res.Body.Close()
 30534  		}
 30535  		return nil, gensupport.WrapError(&googleapi.Error{
 30536  			Code:   res.StatusCode,
 30537  			Header: res.Header,
 30538  		})
 30539  	}
 30540  	if err != nil {
 30541  		return nil, err
 30542  	}
 30543  	defer googleapi.CloseBody(res)
 30544  	if err := googleapi.CheckResponse(res); err != nil {
 30545  		return nil, gensupport.WrapError(err)
 30546  	}
 30547  	ret := &PosListResponse{
 30548  		ServerResponse: googleapi.ServerResponse{
 30549  			Header:         res.Header,
 30550  			HTTPStatusCode: res.StatusCode,
 30551  		},
 30552  	}
 30553  	target := &ret
 30554  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30555  		return nil, err
 30556  	}
 30557  	return ret, nil
 30558  }
 30559  
 30560  type PosSaleCall struct {
 30561  	s                *APIService
 30562  	merchantId       uint64
 30563  	targetMerchantId uint64
 30564  	possalerequest   *PosSaleRequest
 30565  	urlParams_       gensupport.URLParams
 30566  	ctx_             context.Context
 30567  	header_          http.Header
 30568  }
 30569  
 30570  // Sale: Submit a sale event for the given merchant.
 30571  //
 30572  // - merchantId: The ID of the POS or inventory data provider.
 30573  // - targetMerchantId: The ID of the target merchant.
 30574  func (r *PosService) Sale(merchantId uint64, targetMerchantId uint64, possalerequest *PosSaleRequest) *PosSaleCall {
 30575  	c := &PosSaleCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30576  	c.merchantId = merchantId
 30577  	c.targetMerchantId = targetMerchantId
 30578  	c.possalerequest = possalerequest
 30579  	return c
 30580  }
 30581  
 30582  // Fields allows partial responses to be retrieved. See
 30583  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30584  // details.
 30585  func (c *PosSaleCall) Fields(s ...googleapi.Field) *PosSaleCall {
 30586  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30587  	return c
 30588  }
 30589  
 30590  // Context sets the context to be used in this call's Do method.
 30591  func (c *PosSaleCall) Context(ctx context.Context) *PosSaleCall {
 30592  	c.ctx_ = ctx
 30593  	return c
 30594  }
 30595  
 30596  // Header returns a http.Header that can be modified by the caller to add
 30597  // headers to the request.
 30598  func (c *PosSaleCall) Header() http.Header {
 30599  	if c.header_ == nil {
 30600  		c.header_ = make(http.Header)
 30601  	}
 30602  	return c.header_
 30603  }
 30604  
 30605  func (c *PosSaleCall) doRequest(alt string) (*http.Response, error) {
 30606  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30607  	var body io.Reader = nil
 30608  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.possalerequest)
 30609  	if err != nil {
 30610  		return nil, err
 30611  	}
 30612  	c.urlParams_.Set("alt", alt)
 30613  	c.urlParams_.Set("prettyPrint", "false")
 30614  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pos/{targetMerchantId}/sale")
 30615  	urls += "?" + c.urlParams_.Encode()
 30616  	req, err := http.NewRequest("POST", urls, body)
 30617  	if err != nil {
 30618  		return nil, err
 30619  	}
 30620  	req.Header = reqHeaders
 30621  	googleapi.Expand(req.URL, map[string]string{
 30622  		"merchantId":       strconv.FormatUint(c.merchantId, 10),
 30623  		"targetMerchantId": strconv.FormatUint(c.targetMerchantId, 10),
 30624  	})
 30625  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30626  }
 30627  
 30628  // Do executes the "content.pos.sale" call.
 30629  // Any non-2xx status code is an error. Response headers are in either
 30630  // *PosSaleResponse.ServerResponse.Header or (if a response was returned at
 30631  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30632  // check whether the returned error was because http.StatusNotModified was
 30633  // returned.
 30634  func (c *PosSaleCall) Do(opts ...googleapi.CallOption) (*PosSaleResponse, error) {
 30635  	gensupport.SetOptions(c.urlParams_, opts...)
 30636  	res, err := c.doRequest("json")
 30637  	if res != nil && res.StatusCode == http.StatusNotModified {
 30638  		if res.Body != nil {
 30639  			res.Body.Close()
 30640  		}
 30641  		return nil, gensupport.WrapError(&googleapi.Error{
 30642  			Code:   res.StatusCode,
 30643  			Header: res.Header,
 30644  		})
 30645  	}
 30646  	if err != nil {
 30647  		return nil, err
 30648  	}
 30649  	defer googleapi.CloseBody(res)
 30650  	if err := googleapi.CheckResponse(res); err != nil {
 30651  		return nil, gensupport.WrapError(err)
 30652  	}
 30653  	ret := &PosSaleResponse{
 30654  		ServerResponse: googleapi.ServerResponse{
 30655  			Header:         res.Header,
 30656  			HTTPStatusCode: res.StatusCode,
 30657  		},
 30658  	}
 30659  	target := &ret
 30660  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30661  		return nil, err
 30662  	}
 30663  	return ret, nil
 30664  }
 30665  
 30666  type ProductdeliverytimeCreateCall struct {
 30667  	s                   *APIService
 30668  	merchantId          int64
 30669  	productdeliverytime *ProductDeliveryTime
 30670  	urlParams_          gensupport.URLParams
 30671  	ctx_                context.Context
 30672  	header_             http.Header
 30673  }
 30674  
 30675  // Create: Creates or updates the delivery time of a product.
 30676  //
 30677  //   - merchantId: The Google merchant ID of the account that contains the
 30678  //     product. This account cannot be a multi-client account.
 30679  func (r *ProductdeliverytimeService) Create(merchantId int64, productdeliverytime *ProductDeliveryTime) *ProductdeliverytimeCreateCall {
 30680  	c := &ProductdeliverytimeCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30681  	c.merchantId = merchantId
 30682  	c.productdeliverytime = productdeliverytime
 30683  	return c
 30684  }
 30685  
 30686  // Fields allows partial responses to be retrieved. See
 30687  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30688  // details.
 30689  func (c *ProductdeliverytimeCreateCall) Fields(s ...googleapi.Field) *ProductdeliverytimeCreateCall {
 30690  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30691  	return c
 30692  }
 30693  
 30694  // Context sets the context to be used in this call's Do method.
 30695  func (c *ProductdeliverytimeCreateCall) Context(ctx context.Context) *ProductdeliverytimeCreateCall {
 30696  	c.ctx_ = ctx
 30697  	return c
 30698  }
 30699  
 30700  // Header returns a http.Header that can be modified by the caller to add
 30701  // headers to the request.
 30702  func (c *ProductdeliverytimeCreateCall) Header() http.Header {
 30703  	if c.header_ == nil {
 30704  		c.header_ = make(http.Header)
 30705  	}
 30706  	return c.header_
 30707  }
 30708  
 30709  func (c *ProductdeliverytimeCreateCall) doRequest(alt string) (*http.Response, error) {
 30710  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30711  	var body io.Reader = nil
 30712  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.productdeliverytime)
 30713  	if err != nil {
 30714  		return nil, err
 30715  	}
 30716  	c.urlParams_.Set("alt", alt)
 30717  	c.urlParams_.Set("prettyPrint", "false")
 30718  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productdeliverytime")
 30719  	urls += "?" + c.urlParams_.Encode()
 30720  	req, err := http.NewRequest("POST", urls, body)
 30721  	if err != nil {
 30722  		return nil, err
 30723  	}
 30724  	req.Header = reqHeaders
 30725  	googleapi.Expand(req.URL, map[string]string{
 30726  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 30727  	})
 30728  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30729  }
 30730  
 30731  // Do executes the "content.productdeliverytime.create" call.
 30732  // Any non-2xx status code is an error. Response headers are in either
 30733  // *ProductDeliveryTime.ServerResponse.Header or (if a response was returned at
 30734  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30735  // check whether the returned error was because http.StatusNotModified was
 30736  // returned.
 30737  func (c *ProductdeliverytimeCreateCall) Do(opts ...googleapi.CallOption) (*ProductDeliveryTime, error) {
 30738  	gensupport.SetOptions(c.urlParams_, opts...)
 30739  	res, err := c.doRequest("json")
 30740  	if res != nil && res.StatusCode == http.StatusNotModified {
 30741  		if res.Body != nil {
 30742  			res.Body.Close()
 30743  		}
 30744  		return nil, gensupport.WrapError(&googleapi.Error{
 30745  			Code:   res.StatusCode,
 30746  			Header: res.Header,
 30747  		})
 30748  	}
 30749  	if err != nil {
 30750  		return nil, err
 30751  	}
 30752  	defer googleapi.CloseBody(res)
 30753  	if err := googleapi.CheckResponse(res); err != nil {
 30754  		return nil, gensupport.WrapError(err)
 30755  	}
 30756  	ret := &ProductDeliveryTime{
 30757  		ServerResponse: googleapi.ServerResponse{
 30758  			Header:         res.Header,
 30759  			HTTPStatusCode: res.StatusCode,
 30760  		},
 30761  	}
 30762  	target := &ret
 30763  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30764  		return nil, err
 30765  	}
 30766  	return ret, nil
 30767  }
 30768  
 30769  type ProductdeliverytimeDeleteCall struct {
 30770  	s          *APIService
 30771  	merchantId int64
 30772  	productId  string
 30773  	urlParams_ gensupport.URLParams
 30774  	ctx_       context.Context
 30775  	header_    http.Header
 30776  }
 30777  
 30778  // Delete: Deletes the delivery time of a product.
 30779  //
 30780  //   - merchantId: The Google merchant ID of the account that contains the
 30781  //     product. This account cannot be a multi-client account.
 30782  //   - productId: The Content API ID of the product, in the form
 30783  //     `channel:contentLanguage:targetCountry:offerId`.
 30784  func (r *ProductdeliverytimeService) Delete(merchantId int64, productId string) *ProductdeliverytimeDeleteCall {
 30785  	c := &ProductdeliverytimeDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30786  	c.merchantId = merchantId
 30787  	c.productId = productId
 30788  	return c
 30789  }
 30790  
 30791  // Fields allows partial responses to be retrieved. See
 30792  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30793  // details.
 30794  func (c *ProductdeliverytimeDeleteCall) Fields(s ...googleapi.Field) *ProductdeliverytimeDeleteCall {
 30795  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30796  	return c
 30797  }
 30798  
 30799  // Context sets the context to be used in this call's Do method.
 30800  func (c *ProductdeliverytimeDeleteCall) Context(ctx context.Context) *ProductdeliverytimeDeleteCall {
 30801  	c.ctx_ = ctx
 30802  	return c
 30803  }
 30804  
 30805  // Header returns a http.Header that can be modified by the caller to add
 30806  // headers to the request.
 30807  func (c *ProductdeliverytimeDeleteCall) Header() http.Header {
 30808  	if c.header_ == nil {
 30809  		c.header_ = make(http.Header)
 30810  	}
 30811  	return c.header_
 30812  }
 30813  
 30814  func (c *ProductdeliverytimeDeleteCall) doRequest(alt string) (*http.Response, error) {
 30815  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30816  	var body io.Reader = nil
 30817  	c.urlParams_.Set("alt", alt)
 30818  	c.urlParams_.Set("prettyPrint", "false")
 30819  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productdeliverytime/{productId}")
 30820  	urls += "?" + c.urlParams_.Encode()
 30821  	req, err := http.NewRequest("DELETE", urls, body)
 30822  	if err != nil {
 30823  		return nil, err
 30824  	}
 30825  	req.Header = reqHeaders
 30826  	googleapi.Expand(req.URL, map[string]string{
 30827  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 30828  		"productId":  c.productId,
 30829  	})
 30830  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30831  }
 30832  
 30833  // Do executes the "content.productdeliverytime.delete" call.
 30834  func (c *ProductdeliverytimeDeleteCall) Do(opts ...googleapi.CallOption) error {
 30835  	gensupport.SetOptions(c.urlParams_, opts...)
 30836  	res, err := c.doRequest("json")
 30837  	if err != nil {
 30838  		return err
 30839  	}
 30840  	defer googleapi.CloseBody(res)
 30841  	if err := googleapi.CheckResponse(res); err != nil {
 30842  		return gensupport.WrapError(err)
 30843  	}
 30844  	return nil
 30845  }
 30846  
 30847  type ProductdeliverytimeGetCall struct {
 30848  	s            *APIService
 30849  	merchantId   int64
 30850  	productId    string
 30851  	urlParams_   gensupport.URLParams
 30852  	ifNoneMatch_ string
 30853  	ctx_         context.Context
 30854  	header_      http.Header
 30855  }
 30856  
 30857  // Get: Gets `productDeliveryTime` by `productId`.
 30858  //
 30859  //   - merchantId: The Google merchant ID of the account that contains the
 30860  //     product. This account cannot be a multi-client account.
 30861  //   - productId: The Content API ID of the product, in the form
 30862  //     `channel:contentLanguage:targetCountry:offerId`.
 30863  func (r *ProductdeliverytimeService) Get(merchantId int64, productId string) *ProductdeliverytimeGetCall {
 30864  	c := &ProductdeliverytimeGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30865  	c.merchantId = merchantId
 30866  	c.productId = productId
 30867  	return c
 30868  }
 30869  
 30870  // Fields allows partial responses to be retrieved. See
 30871  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30872  // details.
 30873  func (c *ProductdeliverytimeGetCall) Fields(s ...googleapi.Field) *ProductdeliverytimeGetCall {
 30874  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30875  	return c
 30876  }
 30877  
 30878  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30879  // object's ETag matches the given value. This is useful for getting updates
 30880  // only after the object has changed since the last request.
 30881  func (c *ProductdeliverytimeGetCall) IfNoneMatch(entityTag string) *ProductdeliverytimeGetCall {
 30882  	c.ifNoneMatch_ = entityTag
 30883  	return c
 30884  }
 30885  
 30886  // Context sets the context to be used in this call's Do method.
 30887  func (c *ProductdeliverytimeGetCall) Context(ctx context.Context) *ProductdeliverytimeGetCall {
 30888  	c.ctx_ = ctx
 30889  	return c
 30890  }
 30891  
 30892  // Header returns a http.Header that can be modified by the caller to add
 30893  // headers to the request.
 30894  func (c *ProductdeliverytimeGetCall) Header() http.Header {
 30895  	if c.header_ == nil {
 30896  		c.header_ = make(http.Header)
 30897  	}
 30898  	return c.header_
 30899  }
 30900  
 30901  func (c *ProductdeliverytimeGetCall) doRequest(alt string) (*http.Response, error) {
 30902  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30903  	if c.ifNoneMatch_ != "" {
 30904  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30905  	}
 30906  	var body io.Reader = nil
 30907  	c.urlParams_.Set("alt", alt)
 30908  	c.urlParams_.Set("prettyPrint", "false")
 30909  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productdeliverytime/{productId}")
 30910  	urls += "?" + c.urlParams_.Encode()
 30911  	req, err := http.NewRequest("GET", urls, body)
 30912  	if err != nil {
 30913  		return nil, err
 30914  	}
 30915  	req.Header = reqHeaders
 30916  	googleapi.Expand(req.URL, map[string]string{
 30917  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 30918  		"productId":  c.productId,
 30919  	})
 30920  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30921  }
 30922  
 30923  // Do executes the "content.productdeliverytime.get" call.
 30924  // Any non-2xx status code is an error. Response headers are in either
 30925  // *ProductDeliveryTime.ServerResponse.Header or (if a response was returned at
 30926  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30927  // check whether the returned error was because http.StatusNotModified was
 30928  // returned.
 30929  func (c *ProductdeliverytimeGetCall) Do(opts ...googleapi.CallOption) (*ProductDeliveryTime, error) {
 30930  	gensupport.SetOptions(c.urlParams_, opts...)
 30931  	res, err := c.doRequest("json")
 30932  	if res != nil && res.StatusCode == http.StatusNotModified {
 30933  		if res.Body != nil {
 30934  			res.Body.Close()
 30935  		}
 30936  		return nil, gensupport.WrapError(&googleapi.Error{
 30937  			Code:   res.StatusCode,
 30938  			Header: res.Header,
 30939  		})
 30940  	}
 30941  	if err != nil {
 30942  		return nil, err
 30943  	}
 30944  	defer googleapi.CloseBody(res)
 30945  	if err := googleapi.CheckResponse(res); err != nil {
 30946  		return nil, gensupport.WrapError(err)
 30947  	}
 30948  	ret := &ProductDeliveryTime{
 30949  		ServerResponse: googleapi.ServerResponse{
 30950  			Header:         res.Header,
 30951  			HTTPStatusCode: res.StatusCode,
 30952  		},
 30953  	}
 30954  	target := &ret
 30955  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30956  		return nil, err
 30957  	}
 30958  	return ret, nil
 30959  }
 30960  
 30961  type ProductsCustombatchCall struct {
 30962  	s                          *APIService
 30963  	productscustombatchrequest *ProductsCustomBatchRequest
 30964  	urlParams_                 gensupport.URLParams
 30965  	ctx_                       context.Context
 30966  	header_                    http.Header
 30967  }
 30968  
 30969  // Custombatch: Retrieves, inserts, and deletes multiple products in a single
 30970  // request.
 30971  func (r *ProductsService) Custombatch(productscustombatchrequest *ProductsCustomBatchRequest) *ProductsCustombatchCall {
 30972  	c := &ProductsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30973  	c.productscustombatchrequest = productscustombatchrequest
 30974  	return c
 30975  }
 30976  
 30977  // Fields allows partial responses to be retrieved. See
 30978  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30979  // details.
 30980  func (c *ProductsCustombatchCall) Fields(s ...googleapi.Field) *ProductsCustombatchCall {
 30981  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30982  	return c
 30983  }
 30984  
 30985  // Context sets the context to be used in this call's Do method.
 30986  func (c *ProductsCustombatchCall) Context(ctx context.Context) *ProductsCustombatchCall {
 30987  	c.ctx_ = ctx
 30988  	return c
 30989  }
 30990  
 30991  // Header returns a http.Header that can be modified by the caller to add
 30992  // headers to the request.
 30993  func (c *ProductsCustombatchCall) Header() http.Header {
 30994  	if c.header_ == nil {
 30995  		c.header_ = make(http.Header)
 30996  	}
 30997  	return c.header_
 30998  }
 30999  
 31000  func (c *ProductsCustombatchCall) doRequest(alt string) (*http.Response, error) {
 31001  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31002  	var body io.Reader = nil
 31003  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.productscustombatchrequest)
 31004  	if err != nil {
 31005  		return nil, err
 31006  	}
 31007  	c.urlParams_.Set("alt", alt)
 31008  	c.urlParams_.Set("prettyPrint", "false")
 31009  	urls := googleapi.ResolveRelative(c.s.BasePath, "products/batch")
 31010  	urls += "?" + c.urlParams_.Encode()
 31011  	req, err := http.NewRequest("POST", urls, body)
 31012  	if err != nil {
 31013  		return nil, err
 31014  	}
 31015  	req.Header = reqHeaders
 31016  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31017  }
 31018  
 31019  // Do executes the "content.products.custombatch" call.
 31020  // Any non-2xx status code is an error. Response headers are in either
 31021  // *ProductsCustomBatchResponse.ServerResponse.Header or (if a response was
 31022  // returned at all) in error.(*googleapi.Error).Header. Use
 31023  // googleapi.IsNotModified to check whether the returned error was because
 31024  // http.StatusNotModified was returned.
 31025  func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCustomBatchResponse, error) {
 31026  	gensupport.SetOptions(c.urlParams_, opts...)
 31027  	res, err := c.doRequest("json")
 31028  	if res != nil && res.StatusCode == http.StatusNotModified {
 31029  		if res.Body != nil {
 31030  			res.Body.Close()
 31031  		}
 31032  		return nil, gensupport.WrapError(&googleapi.Error{
 31033  			Code:   res.StatusCode,
 31034  			Header: res.Header,
 31035  		})
 31036  	}
 31037  	if err != nil {
 31038  		return nil, err
 31039  	}
 31040  	defer googleapi.CloseBody(res)
 31041  	if err := googleapi.CheckResponse(res); err != nil {
 31042  		return nil, gensupport.WrapError(err)
 31043  	}
 31044  	ret := &ProductsCustomBatchResponse{
 31045  		ServerResponse: googleapi.ServerResponse{
 31046  			Header:         res.Header,
 31047  			HTTPStatusCode: res.StatusCode,
 31048  		},
 31049  	}
 31050  	target := &ret
 31051  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31052  		return nil, err
 31053  	}
 31054  	return ret, nil
 31055  }
 31056  
 31057  type ProductsDeleteCall struct {
 31058  	s          *APIService
 31059  	merchantId uint64
 31060  	productId  string
 31061  	urlParams_ gensupport.URLParams
 31062  	ctx_       context.Context
 31063  	header_    http.Header
 31064  }
 31065  
 31066  // Delete: Deletes a product from your Merchant Center account.
 31067  //
 31068  //   - merchantId: The ID of the account that contains the product. This account
 31069  //     cannot be a multi-client account.
 31070  //   - productId: The REST ID of the product.
 31071  func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall {
 31072  	c := &ProductsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31073  	c.merchantId = merchantId
 31074  	c.productId = productId
 31075  	return c
 31076  }
 31077  
 31078  // FeedId sets the optional parameter "feedId": The Content API Supplemental
 31079  // Feed ID. If present then product deletion applies to the data in a
 31080  // supplemental feed. If absent, entire product will be deleted.
 31081  func (c *ProductsDeleteCall) FeedId(feedId uint64) *ProductsDeleteCall {
 31082  	c.urlParams_.Set("feedId", fmt.Sprint(feedId))
 31083  	return c
 31084  }
 31085  
 31086  // Fields allows partial responses to be retrieved. See
 31087  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31088  // details.
 31089  func (c *ProductsDeleteCall) Fields(s ...googleapi.Field) *ProductsDeleteCall {
 31090  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31091  	return c
 31092  }
 31093  
 31094  // Context sets the context to be used in this call's Do method.
 31095  func (c *ProductsDeleteCall) Context(ctx context.Context) *ProductsDeleteCall {
 31096  	c.ctx_ = ctx
 31097  	return c
 31098  }
 31099  
 31100  // Header returns a http.Header that can be modified by the caller to add
 31101  // headers to the request.
 31102  func (c *ProductsDeleteCall) Header() http.Header {
 31103  	if c.header_ == nil {
 31104  		c.header_ = make(http.Header)
 31105  	}
 31106  	return c.header_
 31107  }
 31108  
 31109  func (c *ProductsDeleteCall) doRequest(alt string) (*http.Response, error) {
 31110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31111  	var body io.Reader = nil
 31112  	c.urlParams_.Set("alt", alt)
 31113  	c.urlParams_.Set("prettyPrint", "false")
 31114  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}")
 31115  	urls += "?" + c.urlParams_.Encode()
 31116  	req, err := http.NewRequest("DELETE", urls, body)
 31117  	if err != nil {
 31118  		return nil, err
 31119  	}
 31120  	req.Header = reqHeaders
 31121  	googleapi.Expand(req.URL, map[string]string{
 31122  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 31123  		"productId":  c.productId,
 31124  	})
 31125  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31126  }
 31127  
 31128  // Do executes the "content.products.delete" call.
 31129  func (c *ProductsDeleteCall) Do(opts ...googleapi.CallOption) error {
 31130  	gensupport.SetOptions(c.urlParams_, opts...)
 31131  	res, err := c.doRequest("json")
 31132  	if err != nil {
 31133  		return err
 31134  	}
 31135  	defer googleapi.CloseBody(res)
 31136  	if err := googleapi.CheckResponse(res); err != nil {
 31137  		return gensupport.WrapError(err)
 31138  	}
 31139  	return nil
 31140  }
 31141  
 31142  type ProductsGetCall struct {
 31143  	s            *APIService
 31144  	merchantId   uint64
 31145  	productId    string
 31146  	urlParams_   gensupport.URLParams
 31147  	ifNoneMatch_ string
 31148  	ctx_         context.Context
 31149  	header_      http.Header
 31150  }
 31151  
 31152  // Get: Retrieves a product from your Merchant Center account.
 31153  //
 31154  //   - merchantId: The ID of the account that contains the product. This account
 31155  //     cannot be a multi-client account.
 31156  //   - productId: The REST ID of the product.
 31157  func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall {
 31158  	c := &ProductsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31159  	c.merchantId = merchantId
 31160  	c.productId = productId
 31161  	return c
 31162  }
 31163  
 31164  // Fields allows partial responses to be retrieved. See
 31165  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31166  // details.
 31167  func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall {
 31168  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31169  	return c
 31170  }
 31171  
 31172  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31173  // object's ETag matches the given value. This is useful for getting updates
 31174  // only after the object has changed since the last request.
 31175  func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall {
 31176  	c.ifNoneMatch_ = entityTag
 31177  	return c
 31178  }
 31179  
 31180  // Context sets the context to be used in this call's Do method.
 31181  func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall {
 31182  	c.ctx_ = ctx
 31183  	return c
 31184  }
 31185  
 31186  // Header returns a http.Header that can be modified by the caller to add
 31187  // headers to the request.
 31188  func (c *ProductsGetCall) Header() http.Header {
 31189  	if c.header_ == nil {
 31190  		c.header_ = make(http.Header)
 31191  	}
 31192  	return c.header_
 31193  }
 31194  
 31195  func (c *ProductsGetCall) doRequest(alt string) (*http.Response, error) {
 31196  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31197  	if c.ifNoneMatch_ != "" {
 31198  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31199  	}
 31200  	var body io.Reader = nil
 31201  	c.urlParams_.Set("alt", alt)
 31202  	c.urlParams_.Set("prettyPrint", "false")
 31203  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}")
 31204  	urls += "?" + c.urlParams_.Encode()
 31205  	req, err := http.NewRequest("GET", urls, body)
 31206  	if err != nil {
 31207  		return nil, err
 31208  	}
 31209  	req.Header = reqHeaders
 31210  	googleapi.Expand(req.URL, map[string]string{
 31211  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 31212  		"productId":  c.productId,
 31213  	})
 31214  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31215  }
 31216  
 31217  // Do executes the "content.products.get" call.
 31218  // Any non-2xx status code is an error. Response headers are in either
 31219  // *Product.ServerResponse.Header or (if a response was returned at all) in
 31220  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 31221  // whether the returned error was because http.StatusNotModified was returned.
 31222  func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error) {
 31223  	gensupport.SetOptions(c.urlParams_, opts...)
 31224  	res, err := c.doRequest("json")
 31225  	if res != nil && res.StatusCode == http.StatusNotModified {
 31226  		if res.Body != nil {
 31227  			res.Body.Close()
 31228  		}
 31229  		return nil, gensupport.WrapError(&googleapi.Error{
 31230  			Code:   res.StatusCode,
 31231  			Header: res.Header,
 31232  		})
 31233  	}
 31234  	if err != nil {
 31235  		return nil, err
 31236  	}
 31237  	defer googleapi.CloseBody(res)
 31238  	if err := googleapi.CheckResponse(res); err != nil {
 31239  		return nil, gensupport.WrapError(err)
 31240  	}
 31241  	ret := &Product{
 31242  		ServerResponse: googleapi.ServerResponse{
 31243  			Header:         res.Header,
 31244  			HTTPStatusCode: res.StatusCode,
 31245  		},
 31246  	}
 31247  	target := &ret
 31248  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31249  		return nil, err
 31250  	}
 31251  	return ret, nil
 31252  }
 31253  
 31254  type ProductsInsertCall struct {
 31255  	s          *APIService
 31256  	merchantId uint64
 31257  	product    *Product
 31258  	urlParams_ gensupport.URLParams
 31259  	ctx_       context.Context
 31260  	header_    http.Header
 31261  }
 31262  
 31263  // Insert: Uploads a product to your Merchant Center account. If an item with
 31264  // the same channel, contentLanguage, offerId, and targetCountry already
 31265  // exists, this method updates that entry.
 31266  //
 31267  //   - merchantId: The ID of the account that contains the product. This account
 31268  //     cannot be a multi-client account.
 31269  func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsInsertCall {
 31270  	c := &ProductsInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31271  	c.merchantId = merchantId
 31272  	c.product = product
 31273  	return c
 31274  }
 31275  
 31276  // FeedId sets the optional parameter "feedId": The Content API Supplemental
 31277  // Feed ID. If present then product insertion applies to the data in a
 31278  // supplemental feed.
 31279  func (c *ProductsInsertCall) FeedId(feedId uint64) *ProductsInsertCall {
 31280  	c.urlParams_.Set("feedId", fmt.Sprint(feedId))
 31281  	return c
 31282  }
 31283  
 31284  // Fields allows partial responses to be retrieved. See
 31285  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31286  // details.
 31287  func (c *ProductsInsertCall) Fields(s ...googleapi.Field) *ProductsInsertCall {
 31288  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31289  	return c
 31290  }
 31291  
 31292  // Context sets the context to be used in this call's Do method.
 31293  func (c *ProductsInsertCall) Context(ctx context.Context) *ProductsInsertCall {
 31294  	c.ctx_ = ctx
 31295  	return c
 31296  }
 31297  
 31298  // Header returns a http.Header that can be modified by the caller to add
 31299  // headers to the request.
 31300  func (c *ProductsInsertCall) Header() http.Header {
 31301  	if c.header_ == nil {
 31302  		c.header_ = make(http.Header)
 31303  	}
 31304  	return c.header_
 31305  }
 31306  
 31307  func (c *ProductsInsertCall) doRequest(alt string) (*http.Response, error) {
 31308  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31309  	var body io.Reader = nil
 31310  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.product)
 31311  	if err != nil {
 31312  		return nil, err
 31313  	}
 31314  	c.urlParams_.Set("alt", alt)
 31315  	c.urlParams_.Set("prettyPrint", "false")
 31316  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products")
 31317  	urls += "?" + c.urlParams_.Encode()
 31318  	req, err := http.NewRequest("POST", urls, body)
 31319  	if err != nil {
 31320  		return nil, err
 31321  	}
 31322  	req.Header = reqHeaders
 31323  	googleapi.Expand(req.URL, map[string]string{
 31324  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 31325  	})
 31326  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31327  }
 31328  
 31329  // Do executes the "content.products.insert" call.
 31330  // Any non-2xx status code is an error. Response headers are in either
 31331  // *Product.ServerResponse.Header or (if a response was returned at all) in
 31332  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 31333  // whether the returned error was because http.StatusNotModified was returned.
 31334  func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error) {
 31335  	gensupport.SetOptions(c.urlParams_, opts...)
 31336  	res, err := c.doRequest("json")
 31337  	if res != nil && res.StatusCode == http.StatusNotModified {
 31338  		if res.Body != nil {
 31339  			res.Body.Close()
 31340  		}
 31341  		return nil, gensupport.WrapError(&googleapi.Error{
 31342  			Code:   res.StatusCode,
 31343  			Header: res.Header,
 31344  		})
 31345  	}
 31346  	if err != nil {
 31347  		return nil, err
 31348  	}
 31349  	defer googleapi.CloseBody(res)
 31350  	if err := googleapi.CheckResponse(res); err != nil {
 31351  		return nil, gensupport.WrapError(err)
 31352  	}
 31353  	ret := &Product{
 31354  		ServerResponse: googleapi.ServerResponse{
 31355  			Header:         res.Header,
 31356  			HTTPStatusCode: res.StatusCode,
 31357  		},
 31358  	}
 31359  	target := &ret
 31360  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31361  		return nil, err
 31362  	}
 31363  	return ret, nil
 31364  }
 31365  
 31366  type ProductsListCall struct {
 31367  	s            *APIService
 31368  	merchantId   uint64
 31369  	urlParams_   gensupport.URLParams
 31370  	ifNoneMatch_ string
 31371  	ctx_         context.Context
 31372  	header_      http.Header
 31373  }
 31374  
 31375  // List: Lists the products in your Merchant Center account. The response might
 31376  // contain fewer items than specified by maxResults. Rely on nextPageToken to
 31377  // determine if there are more items to be requested.
 31378  //
 31379  //   - merchantId: The ID of the account that contains the products. This account
 31380  //     cannot be a multi-client account.
 31381  func (r *ProductsService) List(merchantId uint64) *ProductsListCall {
 31382  	c := &ProductsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31383  	c.merchantId = merchantId
 31384  	return c
 31385  }
 31386  
 31387  // MaxResults sets the optional parameter "maxResults": The maximum number of
 31388  // products to return in the response, used for paging. The default value is
 31389  // 25. The maximum value is 250.
 31390  func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall {
 31391  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 31392  	return c
 31393  }
 31394  
 31395  // PageToken sets the optional parameter "pageToken": The token returned by the
 31396  // previous request.
 31397  func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall {
 31398  	c.urlParams_.Set("pageToken", pageToken)
 31399  	return c
 31400  }
 31401  
 31402  // Fields allows partial responses to be retrieved. See
 31403  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31404  // details.
 31405  func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall {
 31406  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31407  	return c
 31408  }
 31409  
 31410  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31411  // object's ETag matches the given value. This is useful for getting updates
 31412  // only after the object has changed since the last request.
 31413  func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall {
 31414  	c.ifNoneMatch_ = entityTag
 31415  	return c
 31416  }
 31417  
 31418  // Context sets the context to be used in this call's Do method.
 31419  func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall {
 31420  	c.ctx_ = ctx
 31421  	return c
 31422  }
 31423  
 31424  // Header returns a http.Header that can be modified by the caller to add
 31425  // headers to the request.
 31426  func (c *ProductsListCall) Header() http.Header {
 31427  	if c.header_ == nil {
 31428  		c.header_ = make(http.Header)
 31429  	}
 31430  	return c.header_
 31431  }
 31432  
 31433  func (c *ProductsListCall) doRequest(alt string) (*http.Response, error) {
 31434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31435  	if c.ifNoneMatch_ != "" {
 31436  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31437  	}
 31438  	var body io.Reader = nil
 31439  	c.urlParams_.Set("alt", alt)
 31440  	c.urlParams_.Set("prettyPrint", "false")
 31441  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products")
 31442  	urls += "?" + c.urlParams_.Encode()
 31443  	req, err := http.NewRequest("GET", urls, body)
 31444  	if err != nil {
 31445  		return nil, err
 31446  	}
 31447  	req.Header = reqHeaders
 31448  	googleapi.Expand(req.URL, map[string]string{
 31449  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 31450  	})
 31451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31452  }
 31453  
 31454  // Do executes the "content.products.list" call.
 31455  // Any non-2xx status code is an error. Response headers are in either
 31456  // *ProductsListResponse.ServerResponse.Header or (if a response was returned
 31457  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 31458  // check whether the returned error was because http.StatusNotModified was
 31459  // returned.
 31460  func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse, error) {
 31461  	gensupport.SetOptions(c.urlParams_, opts...)
 31462  	res, err := c.doRequest("json")
 31463  	if res != nil && res.StatusCode == http.StatusNotModified {
 31464  		if res.Body != nil {
 31465  			res.Body.Close()
 31466  		}
 31467  		return nil, gensupport.WrapError(&googleapi.Error{
 31468  			Code:   res.StatusCode,
 31469  			Header: res.Header,
 31470  		})
 31471  	}
 31472  	if err != nil {
 31473  		return nil, err
 31474  	}
 31475  	defer googleapi.CloseBody(res)
 31476  	if err := googleapi.CheckResponse(res); err != nil {
 31477  		return nil, gensupport.WrapError(err)
 31478  	}
 31479  	ret := &ProductsListResponse{
 31480  		ServerResponse: googleapi.ServerResponse{
 31481  			Header:         res.Header,
 31482  			HTTPStatusCode: res.StatusCode,
 31483  		},
 31484  	}
 31485  	target := &ret
 31486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31487  		return nil, err
 31488  	}
 31489  	return ret, nil
 31490  }
 31491  
 31492  // Pages invokes f for each page of results.
 31493  // A non-nil error returned from f will halt the iteration.
 31494  // The provided context supersedes any context provided to the Context method.
 31495  func (c *ProductsListCall) Pages(ctx context.Context, f func(*ProductsListResponse) error) error {
 31496  	c.ctx_ = ctx
 31497  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31498  	for {
 31499  		x, err := c.Do()
 31500  		if err != nil {
 31501  			return err
 31502  		}
 31503  		if err := f(x); err != nil {
 31504  			return err
 31505  		}
 31506  		if x.NextPageToken == "" {
 31507  			return nil
 31508  		}
 31509  		c.PageToken(x.NextPageToken)
 31510  	}
 31511  }
 31512  
 31513  type ProductsUpdateCall struct {
 31514  	s          *APIService
 31515  	merchantId uint64
 31516  	productId  string
 31517  	product    *Product
 31518  	urlParams_ gensupport.URLParams
 31519  	ctx_       context.Context
 31520  	header_    http.Header
 31521  }
 31522  
 31523  // Update: Updates an existing product in your Merchant Center account. Only
 31524  // updates attributes provided in the request.
 31525  //
 31526  //   - merchantId: The ID of the account that contains the product. This account
 31527  //     cannot be a multi-client account.
 31528  //   - productId: The REST ID of the product for which to update.
 31529  func (r *ProductsService) Update(merchantId uint64, productId string, product *Product) *ProductsUpdateCall {
 31530  	c := &ProductsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31531  	c.merchantId = merchantId
 31532  	c.productId = productId
 31533  	c.product = product
 31534  	return c
 31535  }
 31536  
 31537  // UpdateMask sets the optional parameter "updateMask": The comma-separated
 31538  // list of product attributes to be updated. Example: "title,salePrice".
 31539  // Attributes specified in the update mask without a value specified in the
 31540  // body will be deleted from the product. *You must specify the update mask to
 31541  // delete attributes.* Only top-level product attributes can be updated. If not
 31542  // defined, product attributes with set values will be updated and other
 31543  // attributes will stay unchanged.
 31544  func (c *ProductsUpdateCall) UpdateMask(updateMask string) *ProductsUpdateCall {
 31545  	c.urlParams_.Set("updateMask", updateMask)
 31546  	return c
 31547  }
 31548  
 31549  // Fields allows partial responses to be retrieved. See
 31550  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31551  // details.
 31552  func (c *ProductsUpdateCall) Fields(s ...googleapi.Field) *ProductsUpdateCall {
 31553  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31554  	return c
 31555  }
 31556  
 31557  // Context sets the context to be used in this call's Do method.
 31558  func (c *ProductsUpdateCall) Context(ctx context.Context) *ProductsUpdateCall {
 31559  	c.ctx_ = ctx
 31560  	return c
 31561  }
 31562  
 31563  // Header returns a http.Header that can be modified by the caller to add
 31564  // headers to the request.
 31565  func (c *ProductsUpdateCall) Header() http.Header {
 31566  	if c.header_ == nil {
 31567  		c.header_ = make(http.Header)
 31568  	}
 31569  	return c.header_
 31570  }
 31571  
 31572  func (c *ProductsUpdateCall) doRequest(alt string) (*http.Response, error) {
 31573  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31574  	var body io.Reader = nil
 31575  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.product)
 31576  	if err != nil {
 31577  		return nil, err
 31578  	}
 31579  	c.urlParams_.Set("alt", alt)
 31580  	c.urlParams_.Set("prettyPrint", "false")
 31581  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}")
 31582  	urls += "?" + c.urlParams_.Encode()
 31583  	req, err := http.NewRequest("PATCH", urls, body)
 31584  	if err != nil {
 31585  		return nil, err
 31586  	}
 31587  	req.Header = reqHeaders
 31588  	googleapi.Expand(req.URL, map[string]string{
 31589  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 31590  		"productId":  c.productId,
 31591  	})
 31592  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31593  }
 31594  
 31595  // Do executes the "content.products.update" call.
 31596  // Any non-2xx status code is an error. Response headers are in either
 31597  // *Product.ServerResponse.Header or (if a response was returned at all) in
 31598  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 31599  // whether the returned error was because http.StatusNotModified was returned.
 31600  func (c *ProductsUpdateCall) Do(opts ...googleapi.CallOption) (*Product, error) {
 31601  	gensupport.SetOptions(c.urlParams_, opts...)
 31602  	res, err := c.doRequest("json")
 31603  	if res != nil && res.StatusCode == http.StatusNotModified {
 31604  		if res.Body != nil {
 31605  			res.Body.Close()
 31606  		}
 31607  		return nil, gensupport.WrapError(&googleapi.Error{
 31608  			Code:   res.StatusCode,
 31609  			Header: res.Header,
 31610  		})
 31611  	}
 31612  	if err != nil {
 31613  		return nil, err
 31614  	}
 31615  	defer googleapi.CloseBody(res)
 31616  	if err := googleapi.CheckResponse(res); err != nil {
 31617  		return nil, gensupport.WrapError(err)
 31618  	}
 31619  	ret := &Product{
 31620  		ServerResponse: googleapi.ServerResponse{
 31621  			Header:         res.Header,
 31622  			HTTPStatusCode: res.StatusCode,
 31623  		},
 31624  	}
 31625  	target := &ret
 31626  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31627  		return nil, err
 31628  	}
 31629  	return ret, nil
 31630  }
 31631  
 31632  type ProductstatusesCustombatchCall struct {
 31633  	s                                 *APIService
 31634  	productstatusescustombatchrequest *ProductstatusesCustomBatchRequest
 31635  	urlParams_                        gensupport.URLParams
 31636  	ctx_                              context.Context
 31637  	header_                           http.Header
 31638  }
 31639  
 31640  // Custombatch: Gets the statuses of multiple products in a single request.
 31641  func (r *ProductstatusesService) Custombatch(productstatusescustombatchrequest *ProductstatusesCustomBatchRequest) *ProductstatusesCustombatchCall {
 31642  	c := &ProductstatusesCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31643  	c.productstatusescustombatchrequest = productstatusescustombatchrequest
 31644  	return c
 31645  }
 31646  
 31647  // Fields allows partial responses to be retrieved. See
 31648  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31649  // details.
 31650  func (c *ProductstatusesCustombatchCall) Fields(s ...googleapi.Field) *ProductstatusesCustombatchCall {
 31651  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31652  	return c
 31653  }
 31654  
 31655  // Context sets the context to be used in this call's Do method.
 31656  func (c *ProductstatusesCustombatchCall) Context(ctx context.Context) *ProductstatusesCustombatchCall {
 31657  	c.ctx_ = ctx
 31658  	return c
 31659  }
 31660  
 31661  // Header returns a http.Header that can be modified by the caller to add
 31662  // headers to the request.
 31663  func (c *ProductstatusesCustombatchCall) Header() http.Header {
 31664  	if c.header_ == nil {
 31665  		c.header_ = make(http.Header)
 31666  	}
 31667  	return c.header_
 31668  }
 31669  
 31670  func (c *ProductstatusesCustombatchCall) doRequest(alt string) (*http.Response, error) {
 31671  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31672  	var body io.Reader = nil
 31673  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.productstatusescustombatchrequest)
 31674  	if err != nil {
 31675  		return nil, err
 31676  	}
 31677  	c.urlParams_.Set("alt", alt)
 31678  	c.urlParams_.Set("prettyPrint", "false")
 31679  	urls := googleapi.ResolveRelative(c.s.BasePath, "productstatuses/batch")
 31680  	urls += "?" + c.urlParams_.Encode()
 31681  	req, err := http.NewRequest("POST", urls, body)
 31682  	if err != nil {
 31683  		return nil, err
 31684  	}
 31685  	req.Header = reqHeaders
 31686  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31687  }
 31688  
 31689  // Do executes the "content.productstatuses.custombatch" call.
 31690  // Any non-2xx status code is an error. Response headers are in either
 31691  // *ProductstatusesCustomBatchResponse.ServerResponse.Header or (if a response
 31692  // was returned at all) in error.(*googleapi.Error).Header. Use
 31693  // googleapi.IsNotModified to check whether the returned error was because
 31694  // http.StatusNotModified was returned.
 31695  func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductstatusesCustomBatchResponse, error) {
 31696  	gensupport.SetOptions(c.urlParams_, opts...)
 31697  	res, err := c.doRequest("json")
 31698  	if res != nil && res.StatusCode == http.StatusNotModified {
 31699  		if res.Body != nil {
 31700  			res.Body.Close()
 31701  		}
 31702  		return nil, gensupport.WrapError(&googleapi.Error{
 31703  			Code:   res.StatusCode,
 31704  			Header: res.Header,
 31705  		})
 31706  	}
 31707  	if err != nil {
 31708  		return nil, err
 31709  	}
 31710  	defer googleapi.CloseBody(res)
 31711  	if err := googleapi.CheckResponse(res); err != nil {
 31712  		return nil, gensupport.WrapError(err)
 31713  	}
 31714  	ret := &ProductstatusesCustomBatchResponse{
 31715  		ServerResponse: googleapi.ServerResponse{
 31716  			Header:         res.Header,
 31717  			HTTPStatusCode: res.StatusCode,
 31718  		},
 31719  	}
 31720  	target := &ret
 31721  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31722  		return nil, err
 31723  	}
 31724  	return ret, nil
 31725  }
 31726  
 31727  type ProductstatusesGetCall struct {
 31728  	s            *APIService
 31729  	merchantId   uint64
 31730  	productId    string
 31731  	urlParams_   gensupport.URLParams
 31732  	ifNoneMatch_ string
 31733  	ctx_         context.Context
 31734  	header_      http.Header
 31735  }
 31736  
 31737  // Get: Gets the status of a product from your Merchant Center account.
 31738  //
 31739  //   - merchantId: The ID of the account that contains the product. This account
 31740  //     cannot be a multi-client account.
 31741  //   - productId: The REST ID of the product.
 31742  func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall {
 31743  	c := &ProductstatusesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31744  	c.merchantId = merchantId
 31745  	c.productId = productId
 31746  	return c
 31747  }
 31748  
 31749  // Destinations sets the optional parameter "destinations": If set, only issues
 31750  // for the specified destinations are returned, otherwise only issues for the
 31751  // Shopping destination.
 31752  func (c *ProductstatusesGetCall) Destinations(destinations ...string) *ProductstatusesGetCall {
 31753  	c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
 31754  	return c
 31755  }
 31756  
 31757  // Fields allows partial responses to be retrieved. See
 31758  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31759  // details.
 31760  func (c *ProductstatusesGetCall) Fields(s ...googleapi.Field) *ProductstatusesGetCall {
 31761  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31762  	return c
 31763  }
 31764  
 31765  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31766  // object's ETag matches the given value. This is useful for getting updates
 31767  // only after the object has changed since the last request.
 31768  func (c *ProductstatusesGetCall) IfNoneMatch(entityTag string) *ProductstatusesGetCall {
 31769  	c.ifNoneMatch_ = entityTag
 31770  	return c
 31771  }
 31772  
 31773  // Context sets the context to be used in this call's Do method.
 31774  func (c *ProductstatusesGetCall) Context(ctx context.Context) *ProductstatusesGetCall {
 31775  	c.ctx_ = ctx
 31776  	return c
 31777  }
 31778  
 31779  // Header returns a http.Header that can be modified by the caller to add
 31780  // headers to the request.
 31781  func (c *ProductstatusesGetCall) Header() http.Header {
 31782  	if c.header_ == nil {
 31783  		c.header_ = make(http.Header)
 31784  	}
 31785  	return c.header_
 31786  }
 31787  
 31788  func (c *ProductstatusesGetCall) doRequest(alt string) (*http.Response, error) {
 31789  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31790  	if c.ifNoneMatch_ != "" {
 31791  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31792  	}
 31793  	var body io.Reader = nil
 31794  	c.urlParams_.Set("alt", alt)
 31795  	c.urlParams_.Set("prettyPrint", "false")
 31796  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productstatuses/{productId}")
 31797  	urls += "?" + c.urlParams_.Encode()
 31798  	req, err := http.NewRequest("GET", urls, body)
 31799  	if err != nil {
 31800  		return nil, err
 31801  	}
 31802  	req.Header = reqHeaders
 31803  	googleapi.Expand(req.URL, map[string]string{
 31804  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 31805  		"productId":  c.productId,
 31806  	})
 31807  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31808  }
 31809  
 31810  // Do executes the "content.productstatuses.get" call.
 31811  // Any non-2xx status code is an error. Response headers are in either
 31812  // *ProductStatus.ServerResponse.Header or (if a response was returned at all)
 31813  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 31814  // whether the returned error was because http.StatusNotModified was returned.
 31815  func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatus, error) {
 31816  	gensupport.SetOptions(c.urlParams_, opts...)
 31817  	res, err := c.doRequest("json")
 31818  	if res != nil && res.StatusCode == http.StatusNotModified {
 31819  		if res.Body != nil {
 31820  			res.Body.Close()
 31821  		}
 31822  		return nil, gensupport.WrapError(&googleapi.Error{
 31823  			Code:   res.StatusCode,
 31824  			Header: res.Header,
 31825  		})
 31826  	}
 31827  	if err != nil {
 31828  		return nil, err
 31829  	}
 31830  	defer googleapi.CloseBody(res)
 31831  	if err := googleapi.CheckResponse(res); err != nil {
 31832  		return nil, gensupport.WrapError(err)
 31833  	}
 31834  	ret := &ProductStatus{
 31835  		ServerResponse: googleapi.ServerResponse{
 31836  			Header:         res.Header,
 31837  			HTTPStatusCode: res.StatusCode,
 31838  		},
 31839  	}
 31840  	target := &ret
 31841  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31842  		return nil, err
 31843  	}
 31844  	return ret, nil
 31845  }
 31846  
 31847  type ProductstatusesListCall struct {
 31848  	s            *APIService
 31849  	merchantId   uint64
 31850  	urlParams_   gensupport.URLParams
 31851  	ifNoneMatch_ string
 31852  	ctx_         context.Context
 31853  	header_      http.Header
 31854  }
 31855  
 31856  // List: Lists the statuses of the products in your Merchant Center account.
 31857  //
 31858  //   - merchantId: The ID of the account that contains the products. This account
 31859  //     cannot be a multi-client account.
 31860  func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall {
 31861  	c := &ProductstatusesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31862  	c.merchantId = merchantId
 31863  	return c
 31864  }
 31865  
 31866  // Destinations sets the optional parameter "destinations": If set, only issues
 31867  // for the specified destinations are returned, otherwise only issues for the
 31868  // Shopping destination.
 31869  func (c *ProductstatusesListCall) Destinations(destinations ...string) *ProductstatusesListCall {
 31870  	c.urlParams_.SetMulti("destinations", append([]string{}, destinations...))
 31871  	return c
 31872  }
 31873  
 31874  // MaxResults sets the optional parameter "maxResults": The maximum number of
 31875  // product statuses to return in the response, used for paging. The default
 31876  // value is 25. The maximum value is 250.
 31877  func (c *ProductstatusesListCall) MaxResults(maxResults int64) *ProductstatusesListCall {
 31878  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 31879  	return c
 31880  }
 31881  
 31882  // PageToken sets the optional parameter "pageToken": The token returned by the
 31883  // previous request.
 31884  func (c *ProductstatusesListCall) PageToken(pageToken string) *ProductstatusesListCall {
 31885  	c.urlParams_.Set("pageToken", pageToken)
 31886  	return c
 31887  }
 31888  
 31889  // Fields allows partial responses to be retrieved. See
 31890  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31891  // details.
 31892  func (c *ProductstatusesListCall) Fields(s ...googleapi.Field) *ProductstatusesListCall {
 31893  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31894  	return c
 31895  }
 31896  
 31897  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31898  // object's ETag matches the given value. This is useful for getting updates
 31899  // only after the object has changed since the last request.
 31900  func (c *ProductstatusesListCall) IfNoneMatch(entityTag string) *ProductstatusesListCall {
 31901  	c.ifNoneMatch_ = entityTag
 31902  	return c
 31903  }
 31904  
 31905  // Context sets the context to be used in this call's Do method.
 31906  func (c *ProductstatusesListCall) Context(ctx context.Context) *ProductstatusesListCall {
 31907  	c.ctx_ = ctx
 31908  	return c
 31909  }
 31910  
 31911  // Header returns a http.Header that can be modified by the caller to add
 31912  // headers to the request.
 31913  func (c *ProductstatusesListCall) Header() http.Header {
 31914  	if c.header_ == nil {
 31915  		c.header_ = make(http.Header)
 31916  	}
 31917  	return c.header_
 31918  }
 31919  
 31920  func (c *ProductstatusesListCall) doRequest(alt string) (*http.Response, error) {
 31921  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31922  	if c.ifNoneMatch_ != "" {
 31923  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31924  	}
 31925  	var body io.Reader = nil
 31926  	c.urlParams_.Set("alt", alt)
 31927  	c.urlParams_.Set("prettyPrint", "false")
 31928  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/productstatuses")
 31929  	urls += "?" + c.urlParams_.Encode()
 31930  	req, err := http.NewRequest("GET", urls, body)
 31931  	if err != nil {
 31932  		return nil, err
 31933  	}
 31934  	req.Header = reqHeaders
 31935  	googleapi.Expand(req.URL, map[string]string{
 31936  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 31937  	})
 31938  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31939  }
 31940  
 31941  // Do executes the "content.productstatuses.list" call.
 31942  // Any non-2xx status code is an error. Response headers are in either
 31943  // *ProductstatusesListResponse.ServerResponse.Header or (if a response was
 31944  // returned at all) in error.(*googleapi.Error).Header. Use
 31945  // googleapi.IsNotModified to check whether the returned error was because
 31946  // http.StatusNotModified was returned.
 31947  func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*ProductstatusesListResponse, error) {
 31948  	gensupport.SetOptions(c.urlParams_, opts...)
 31949  	res, err := c.doRequest("json")
 31950  	if res != nil && res.StatusCode == http.StatusNotModified {
 31951  		if res.Body != nil {
 31952  			res.Body.Close()
 31953  		}
 31954  		return nil, gensupport.WrapError(&googleapi.Error{
 31955  			Code:   res.StatusCode,
 31956  			Header: res.Header,
 31957  		})
 31958  	}
 31959  	if err != nil {
 31960  		return nil, err
 31961  	}
 31962  	defer googleapi.CloseBody(res)
 31963  	if err := googleapi.CheckResponse(res); err != nil {
 31964  		return nil, gensupport.WrapError(err)
 31965  	}
 31966  	ret := &ProductstatusesListResponse{
 31967  		ServerResponse: googleapi.ServerResponse{
 31968  			Header:         res.Header,
 31969  			HTTPStatusCode: res.StatusCode,
 31970  		},
 31971  	}
 31972  	target := &ret
 31973  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31974  		return nil, err
 31975  	}
 31976  	return ret, nil
 31977  }
 31978  
 31979  // Pages invokes f for each page of results.
 31980  // A non-nil error returned from f will halt the iteration.
 31981  // The provided context supersedes any context provided to the Context method.
 31982  func (c *ProductstatusesListCall) Pages(ctx context.Context, f func(*ProductstatusesListResponse) error) error {
 31983  	c.ctx_ = ctx
 31984  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31985  	for {
 31986  		x, err := c.Do()
 31987  		if err != nil {
 31988  			return err
 31989  		}
 31990  		if err := f(x); err != nil {
 31991  			return err
 31992  		}
 31993  		if x.NextPageToken == "" {
 31994  			return nil
 31995  		}
 31996  		c.PageToken(x.NextPageToken)
 31997  	}
 31998  }
 31999  
 32000  type PromotionsCreateCall struct {
 32001  	s          *APIService
 32002  	merchantId int64
 32003  	promotion  *Promotion
 32004  	urlParams_ gensupport.URLParams
 32005  	ctx_       context.Context
 32006  	header_    http.Header
 32007  }
 32008  
 32009  // Create: Inserts a promotion for your Merchant Center account. If the
 32010  // promotion already exists, then it updates the promotion instead. To [end or
 32011  // delete]
 32012  // (https://developers.google.com/shopping-content/guides/promotions#end_a_promotion)
 32013  // a promotion update the time period of the promotion to a time that has
 32014  // already passed.
 32015  //
 32016  // - merchantId: The ID of the account that contains the collection.
 32017  func (r *PromotionsService) Create(merchantId int64, promotion *Promotion) *PromotionsCreateCall {
 32018  	c := &PromotionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32019  	c.merchantId = merchantId
 32020  	c.promotion = promotion
 32021  	return c
 32022  }
 32023  
 32024  // Fields allows partial responses to be retrieved. See
 32025  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32026  // details.
 32027  func (c *PromotionsCreateCall) Fields(s ...googleapi.Field) *PromotionsCreateCall {
 32028  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32029  	return c
 32030  }
 32031  
 32032  // Context sets the context to be used in this call's Do method.
 32033  func (c *PromotionsCreateCall) Context(ctx context.Context) *PromotionsCreateCall {
 32034  	c.ctx_ = ctx
 32035  	return c
 32036  }
 32037  
 32038  // Header returns a http.Header that can be modified by the caller to add
 32039  // headers to the request.
 32040  func (c *PromotionsCreateCall) Header() http.Header {
 32041  	if c.header_ == nil {
 32042  		c.header_ = make(http.Header)
 32043  	}
 32044  	return c.header_
 32045  }
 32046  
 32047  func (c *PromotionsCreateCall) doRequest(alt string) (*http.Response, error) {
 32048  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32049  	var body io.Reader = nil
 32050  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.promotion)
 32051  	if err != nil {
 32052  		return nil, err
 32053  	}
 32054  	c.urlParams_.Set("alt", alt)
 32055  	c.urlParams_.Set("prettyPrint", "false")
 32056  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/promotions")
 32057  	urls += "?" + c.urlParams_.Encode()
 32058  	req, err := http.NewRequest("POST", urls, body)
 32059  	if err != nil {
 32060  		return nil, err
 32061  	}
 32062  	req.Header = reqHeaders
 32063  	googleapi.Expand(req.URL, map[string]string{
 32064  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 32065  	})
 32066  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32067  }
 32068  
 32069  // Do executes the "content.promotions.create" call.
 32070  // Any non-2xx status code is an error. Response headers are in either
 32071  // *Promotion.ServerResponse.Header or (if a response was returned at all) in
 32072  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 32073  // whether the returned error was because http.StatusNotModified was returned.
 32074  func (c *PromotionsCreateCall) Do(opts ...googleapi.CallOption) (*Promotion, error) {
 32075  	gensupport.SetOptions(c.urlParams_, opts...)
 32076  	res, err := c.doRequest("json")
 32077  	if res != nil && res.StatusCode == http.StatusNotModified {
 32078  		if res.Body != nil {
 32079  			res.Body.Close()
 32080  		}
 32081  		return nil, gensupport.WrapError(&googleapi.Error{
 32082  			Code:   res.StatusCode,
 32083  			Header: res.Header,
 32084  		})
 32085  	}
 32086  	if err != nil {
 32087  		return nil, err
 32088  	}
 32089  	defer googleapi.CloseBody(res)
 32090  	if err := googleapi.CheckResponse(res); err != nil {
 32091  		return nil, gensupport.WrapError(err)
 32092  	}
 32093  	ret := &Promotion{
 32094  		ServerResponse: googleapi.ServerResponse{
 32095  			Header:         res.Header,
 32096  			HTTPStatusCode: res.StatusCode,
 32097  		},
 32098  	}
 32099  	target := &ret
 32100  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32101  		return nil, err
 32102  	}
 32103  	return ret, nil
 32104  }
 32105  
 32106  type PromotionsGetCall struct {
 32107  	s            *APIService
 32108  	merchantId   int64
 32109  	id           string
 32110  	urlParams_   gensupport.URLParams
 32111  	ifNoneMatch_ string
 32112  	ctx_         context.Context
 32113  	header_      http.Header
 32114  }
 32115  
 32116  // Get: Retrieves a promotion from your Merchant Center account.
 32117  //
 32118  // - id: REST ID of the promotion to retrieve.
 32119  // - merchantId: The ID of the account that contains the collection.
 32120  func (r *PromotionsService) Get(merchantId int64, id string) *PromotionsGetCall {
 32121  	c := &PromotionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32122  	c.merchantId = merchantId
 32123  	c.id = id
 32124  	return c
 32125  }
 32126  
 32127  // Fields allows partial responses to be retrieved. See
 32128  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32129  // details.
 32130  func (c *PromotionsGetCall) Fields(s ...googleapi.Field) *PromotionsGetCall {
 32131  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32132  	return c
 32133  }
 32134  
 32135  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32136  // object's ETag matches the given value. This is useful for getting updates
 32137  // only after the object has changed since the last request.
 32138  func (c *PromotionsGetCall) IfNoneMatch(entityTag string) *PromotionsGetCall {
 32139  	c.ifNoneMatch_ = entityTag
 32140  	return c
 32141  }
 32142  
 32143  // Context sets the context to be used in this call's Do method.
 32144  func (c *PromotionsGetCall) Context(ctx context.Context) *PromotionsGetCall {
 32145  	c.ctx_ = ctx
 32146  	return c
 32147  }
 32148  
 32149  // Header returns a http.Header that can be modified by the caller to add
 32150  // headers to the request.
 32151  func (c *PromotionsGetCall) Header() http.Header {
 32152  	if c.header_ == nil {
 32153  		c.header_ = make(http.Header)
 32154  	}
 32155  	return c.header_
 32156  }
 32157  
 32158  func (c *PromotionsGetCall) doRequest(alt string) (*http.Response, error) {
 32159  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32160  	if c.ifNoneMatch_ != "" {
 32161  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32162  	}
 32163  	var body io.Reader = nil
 32164  	c.urlParams_.Set("alt", alt)
 32165  	c.urlParams_.Set("prettyPrint", "false")
 32166  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/promotions/{id}")
 32167  	urls += "?" + c.urlParams_.Encode()
 32168  	req, err := http.NewRequest("GET", urls, body)
 32169  	if err != nil {
 32170  		return nil, err
 32171  	}
 32172  	req.Header = reqHeaders
 32173  	googleapi.Expand(req.URL, map[string]string{
 32174  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 32175  		"id":         c.id,
 32176  	})
 32177  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32178  }
 32179  
 32180  // Do executes the "content.promotions.get" call.
 32181  // Any non-2xx status code is an error. Response headers are in either
 32182  // *Promotion.ServerResponse.Header or (if a response was returned at all) in
 32183  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 32184  // whether the returned error was because http.StatusNotModified was returned.
 32185  func (c *PromotionsGetCall) Do(opts ...googleapi.CallOption) (*Promotion, error) {
 32186  	gensupport.SetOptions(c.urlParams_, opts...)
 32187  	res, err := c.doRequest("json")
 32188  	if res != nil && res.StatusCode == http.StatusNotModified {
 32189  		if res.Body != nil {
 32190  			res.Body.Close()
 32191  		}
 32192  		return nil, gensupport.WrapError(&googleapi.Error{
 32193  			Code:   res.StatusCode,
 32194  			Header: res.Header,
 32195  		})
 32196  	}
 32197  	if err != nil {
 32198  		return nil, err
 32199  	}
 32200  	defer googleapi.CloseBody(res)
 32201  	if err := googleapi.CheckResponse(res); err != nil {
 32202  		return nil, gensupport.WrapError(err)
 32203  	}
 32204  	ret := &Promotion{
 32205  		ServerResponse: googleapi.ServerResponse{
 32206  			Header:         res.Header,
 32207  			HTTPStatusCode: res.StatusCode,
 32208  		},
 32209  	}
 32210  	target := &ret
 32211  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32212  		return nil, err
 32213  	}
 32214  	return ret, nil
 32215  }
 32216  
 32217  type PromotionsListCall struct {
 32218  	s            *APIService
 32219  	merchantId   int64
 32220  	urlParams_   gensupport.URLParams
 32221  	ifNoneMatch_ string
 32222  	ctx_         context.Context
 32223  	header_      http.Header
 32224  }
 32225  
 32226  // List: List all promotions from your Merchant Center account.
 32227  //
 32228  // - merchantId: The ID of the account that contains the collection.
 32229  func (r *PromotionsService) List(merchantId int64) *PromotionsListCall {
 32230  	c := &PromotionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32231  	c.merchantId = merchantId
 32232  	return c
 32233  }
 32234  
 32235  // CountryCode sets the optional parameter "countryCode": CLDR country code
 32236  // (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (for
 32237  // example, "US"), used as a filter on promotions target country.
 32238  func (c *PromotionsListCall) CountryCode(countryCode string) *PromotionsListCall {
 32239  	c.urlParams_.Set("countryCode", countryCode)
 32240  	return c
 32241  }
 32242  
 32243  // LanguageCode sets the optional parameter "languageCode": The two-letter ISO
 32244  // 639-1 language code associated with the promotions, used as a filter.
 32245  func (c *PromotionsListCall) LanguageCode(languageCode string) *PromotionsListCall {
 32246  	c.urlParams_.Set("languageCode", languageCode)
 32247  	return c
 32248  }
 32249  
 32250  // PageSize sets the optional parameter "pageSize": The maximum number of
 32251  // promotions to return. The service may return fewer than this value. If
 32252  // unspecified, at most 50 labels will be returned. The maximum value is 1000;
 32253  // values above 1000 will be coerced to 1000.
 32254  func (c *PromotionsListCall) PageSize(pageSize int64) *PromotionsListCall {
 32255  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 32256  	return c
 32257  }
 32258  
 32259  // PageToken sets the optional parameter "pageToken": A page token, received
 32260  // from a previous `ListPromotion` call. Provide this to retrieve the
 32261  // subsequent page. When paginating, all other parameters provided to
 32262  // `ListPromotion` must match the call that provided the page token.
 32263  func (c *PromotionsListCall) PageToken(pageToken string) *PromotionsListCall {
 32264  	c.urlParams_.Set("pageToken", pageToken)
 32265  	return c
 32266  }
 32267  
 32268  // Fields allows partial responses to be retrieved. See
 32269  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32270  // details.
 32271  func (c *PromotionsListCall) Fields(s ...googleapi.Field) *PromotionsListCall {
 32272  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32273  	return c
 32274  }
 32275  
 32276  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32277  // object's ETag matches the given value. This is useful for getting updates
 32278  // only after the object has changed since the last request.
 32279  func (c *PromotionsListCall) IfNoneMatch(entityTag string) *PromotionsListCall {
 32280  	c.ifNoneMatch_ = entityTag
 32281  	return c
 32282  }
 32283  
 32284  // Context sets the context to be used in this call's Do method.
 32285  func (c *PromotionsListCall) Context(ctx context.Context) *PromotionsListCall {
 32286  	c.ctx_ = ctx
 32287  	return c
 32288  }
 32289  
 32290  // Header returns a http.Header that can be modified by the caller to add
 32291  // headers to the request.
 32292  func (c *PromotionsListCall) Header() http.Header {
 32293  	if c.header_ == nil {
 32294  		c.header_ = make(http.Header)
 32295  	}
 32296  	return c.header_
 32297  }
 32298  
 32299  func (c *PromotionsListCall) doRequest(alt string) (*http.Response, error) {
 32300  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32301  	if c.ifNoneMatch_ != "" {
 32302  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32303  	}
 32304  	var body io.Reader = nil
 32305  	c.urlParams_.Set("alt", alt)
 32306  	c.urlParams_.Set("prettyPrint", "false")
 32307  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/promotions")
 32308  	urls += "?" + c.urlParams_.Encode()
 32309  	req, err := http.NewRequest("GET", urls, body)
 32310  	if err != nil {
 32311  		return nil, err
 32312  	}
 32313  	req.Header = reqHeaders
 32314  	googleapi.Expand(req.URL, map[string]string{
 32315  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 32316  	})
 32317  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32318  }
 32319  
 32320  // Do executes the "content.promotions.list" call.
 32321  // Any non-2xx status code is an error. Response headers are in either
 32322  // *ListPromotionResponse.ServerResponse.Header or (if a response was returned
 32323  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 32324  // check whether the returned error was because http.StatusNotModified was
 32325  // returned.
 32326  func (c *PromotionsListCall) Do(opts ...googleapi.CallOption) (*ListPromotionResponse, error) {
 32327  	gensupport.SetOptions(c.urlParams_, opts...)
 32328  	res, err := c.doRequest("json")
 32329  	if res != nil && res.StatusCode == http.StatusNotModified {
 32330  		if res.Body != nil {
 32331  			res.Body.Close()
 32332  		}
 32333  		return nil, gensupport.WrapError(&googleapi.Error{
 32334  			Code:   res.StatusCode,
 32335  			Header: res.Header,
 32336  		})
 32337  	}
 32338  	if err != nil {
 32339  		return nil, err
 32340  	}
 32341  	defer googleapi.CloseBody(res)
 32342  	if err := googleapi.CheckResponse(res); err != nil {
 32343  		return nil, gensupport.WrapError(err)
 32344  	}
 32345  	ret := &ListPromotionResponse{
 32346  		ServerResponse: googleapi.ServerResponse{
 32347  			Header:         res.Header,
 32348  			HTTPStatusCode: res.StatusCode,
 32349  		},
 32350  	}
 32351  	target := &ret
 32352  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32353  		return nil, err
 32354  	}
 32355  	return ret, nil
 32356  }
 32357  
 32358  // Pages invokes f for each page of results.
 32359  // A non-nil error returned from f will halt the iteration.
 32360  // The provided context supersedes any context provided to the Context method.
 32361  func (c *PromotionsListCall) Pages(ctx context.Context, f func(*ListPromotionResponse) error) error {
 32362  	c.ctx_ = ctx
 32363  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 32364  	for {
 32365  		x, err := c.Do()
 32366  		if err != nil {
 32367  			return err
 32368  		}
 32369  		if err := f(x); err != nil {
 32370  			return err
 32371  		}
 32372  		if x.NextPageToken == "" {
 32373  			return nil
 32374  		}
 32375  		c.PageToken(x.NextPageToken)
 32376  	}
 32377  }
 32378  
 32379  type PubsubnotificationsettingsGetCall struct {
 32380  	s            *APIService
 32381  	merchantId   uint64
 32382  	urlParams_   gensupport.URLParams
 32383  	ifNoneMatch_ string
 32384  	ctx_         context.Context
 32385  	header_      http.Header
 32386  }
 32387  
 32388  // Get: Retrieves a Merchant Center account's pubsub notification settings.
 32389  //
 32390  //   - merchantId: The ID of the account for which to get pubsub notification
 32391  //     settings.
 32392  func (r *PubsubnotificationsettingsService) Get(merchantId uint64) *PubsubnotificationsettingsGetCall {
 32393  	c := &PubsubnotificationsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32394  	c.merchantId = merchantId
 32395  	return c
 32396  }
 32397  
 32398  // Fields allows partial responses to be retrieved. See
 32399  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32400  // details.
 32401  func (c *PubsubnotificationsettingsGetCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsGetCall {
 32402  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32403  	return c
 32404  }
 32405  
 32406  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32407  // object's ETag matches the given value. This is useful for getting updates
 32408  // only after the object has changed since the last request.
 32409  func (c *PubsubnotificationsettingsGetCall) IfNoneMatch(entityTag string) *PubsubnotificationsettingsGetCall {
 32410  	c.ifNoneMatch_ = entityTag
 32411  	return c
 32412  }
 32413  
 32414  // Context sets the context to be used in this call's Do method.
 32415  func (c *PubsubnotificationsettingsGetCall) Context(ctx context.Context) *PubsubnotificationsettingsGetCall {
 32416  	c.ctx_ = ctx
 32417  	return c
 32418  }
 32419  
 32420  // Header returns a http.Header that can be modified by the caller to add
 32421  // headers to the request.
 32422  func (c *PubsubnotificationsettingsGetCall) Header() http.Header {
 32423  	if c.header_ == nil {
 32424  		c.header_ = make(http.Header)
 32425  	}
 32426  	return c.header_
 32427  }
 32428  
 32429  func (c *PubsubnotificationsettingsGetCall) doRequest(alt string) (*http.Response, error) {
 32430  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32431  	if c.ifNoneMatch_ != "" {
 32432  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32433  	}
 32434  	var body io.Reader = nil
 32435  	c.urlParams_.Set("alt", alt)
 32436  	c.urlParams_.Set("prettyPrint", "false")
 32437  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pubsubnotificationsettings")
 32438  	urls += "?" + c.urlParams_.Encode()
 32439  	req, err := http.NewRequest("GET", urls, body)
 32440  	if err != nil {
 32441  		return nil, err
 32442  	}
 32443  	req.Header = reqHeaders
 32444  	googleapi.Expand(req.URL, map[string]string{
 32445  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 32446  	})
 32447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32448  }
 32449  
 32450  // Do executes the "content.pubsubnotificationsettings.get" call.
 32451  // Any non-2xx status code is an error. Response headers are in either
 32452  // *PubsubNotificationSettings.ServerResponse.Header or (if a response was
 32453  // returned at all) in error.(*googleapi.Error).Header. Use
 32454  // googleapi.IsNotModified to check whether the returned error was because
 32455  // http.StatusNotModified was returned.
 32456  func (c *PubsubnotificationsettingsGetCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error) {
 32457  	gensupport.SetOptions(c.urlParams_, opts...)
 32458  	res, err := c.doRequest("json")
 32459  	if res != nil && res.StatusCode == http.StatusNotModified {
 32460  		if res.Body != nil {
 32461  			res.Body.Close()
 32462  		}
 32463  		return nil, gensupport.WrapError(&googleapi.Error{
 32464  			Code:   res.StatusCode,
 32465  			Header: res.Header,
 32466  		})
 32467  	}
 32468  	if err != nil {
 32469  		return nil, err
 32470  	}
 32471  	defer googleapi.CloseBody(res)
 32472  	if err := googleapi.CheckResponse(res); err != nil {
 32473  		return nil, gensupport.WrapError(err)
 32474  	}
 32475  	ret := &PubsubNotificationSettings{
 32476  		ServerResponse: googleapi.ServerResponse{
 32477  			Header:         res.Header,
 32478  			HTTPStatusCode: res.StatusCode,
 32479  		},
 32480  	}
 32481  	target := &ret
 32482  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32483  		return nil, err
 32484  	}
 32485  	return ret, nil
 32486  }
 32487  
 32488  type PubsubnotificationsettingsUpdateCall struct {
 32489  	s                          *APIService
 32490  	merchantId                 uint64
 32491  	pubsubnotificationsettings *PubsubNotificationSettings
 32492  	urlParams_                 gensupport.URLParams
 32493  	ctx_                       context.Context
 32494  	header_                    http.Header
 32495  }
 32496  
 32497  // Update: Register a Merchant Center account for pubsub notifications. Note
 32498  // that cloud topic name shouldn't be provided as part of the request.
 32499  //
 32500  // - merchantId: The ID of the account.
 32501  func (r *PubsubnotificationsettingsService) Update(merchantId uint64, pubsubnotificationsettings *PubsubNotificationSettings) *PubsubnotificationsettingsUpdateCall {
 32502  	c := &PubsubnotificationsettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32503  	c.merchantId = merchantId
 32504  	c.pubsubnotificationsettings = pubsubnotificationsettings
 32505  	return c
 32506  }
 32507  
 32508  // Fields allows partial responses to be retrieved. See
 32509  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32510  // details.
 32511  func (c *PubsubnotificationsettingsUpdateCall) Fields(s ...googleapi.Field) *PubsubnotificationsettingsUpdateCall {
 32512  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32513  	return c
 32514  }
 32515  
 32516  // Context sets the context to be used in this call's Do method.
 32517  func (c *PubsubnotificationsettingsUpdateCall) Context(ctx context.Context) *PubsubnotificationsettingsUpdateCall {
 32518  	c.ctx_ = ctx
 32519  	return c
 32520  }
 32521  
 32522  // Header returns a http.Header that can be modified by the caller to add
 32523  // headers to the request.
 32524  func (c *PubsubnotificationsettingsUpdateCall) Header() http.Header {
 32525  	if c.header_ == nil {
 32526  		c.header_ = make(http.Header)
 32527  	}
 32528  	return c.header_
 32529  }
 32530  
 32531  func (c *PubsubnotificationsettingsUpdateCall) doRequest(alt string) (*http.Response, error) {
 32532  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32533  	var body io.Reader = nil
 32534  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.pubsubnotificationsettings)
 32535  	if err != nil {
 32536  		return nil, err
 32537  	}
 32538  	c.urlParams_.Set("alt", alt)
 32539  	c.urlParams_.Set("prettyPrint", "false")
 32540  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/pubsubnotificationsettings")
 32541  	urls += "?" + c.urlParams_.Encode()
 32542  	req, err := http.NewRequest("PUT", urls, body)
 32543  	if err != nil {
 32544  		return nil, err
 32545  	}
 32546  	req.Header = reqHeaders
 32547  	googleapi.Expand(req.URL, map[string]string{
 32548  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 32549  	})
 32550  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32551  }
 32552  
 32553  // Do executes the "content.pubsubnotificationsettings.update" call.
 32554  // Any non-2xx status code is an error. Response headers are in either
 32555  // *PubsubNotificationSettings.ServerResponse.Header or (if a response was
 32556  // returned at all) in error.(*googleapi.Error).Header. Use
 32557  // googleapi.IsNotModified to check whether the returned error was because
 32558  // http.StatusNotModified was returned.
 32559  func (c *PubsubnotificationsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*PubsubNotificationSettings, error) {
 32560  	gensupport.SetOptions(c.urlParams_, opts...)
 32561  	res, err := c.doRequest("json")
 32562  	if res != nil && res.StatusCode == http.StatusNotModified {
 32563  		if res.Body != nil {
 32564  			res.Body.Close()
 32565  		}
 32566  		return nil, gensupport.WrapError(&googleapi.Error{
 32567  			Code:   res.StatusCode,
 32568  			Header: res.Header,
 32569  		})
 32570  	}
 32571  	if err != nil {
 32572  		return nil, err
 32573  	}
 32574  	defer googleapi.CloseBody(res)
 32575  	if err := googleapi.CheckResponse(res); err != nil {
 32576  		return nil, gensupport.WrapError(err)
 32577  	}
 32578  	ret := &PubsubNotificationSettings{
 32579  		ServerResponse: googleapi.ServerResponse{
 32580  			Header:         res.Header,
 32581  			HTTPStatusCode: res.StatusCode,
 32582  		},
 32583  	}
 32584  	target := &ret
 32585  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32586  		return nil, err
 32587  	}
 32588  	return ret, nil
 32589  }
 32590  
 32591  type QuotasListCall struct {
 32592  	s            *APIService
 32593  	merchantId   int64
 32594  	urlParams_   gensupport.URLParams
 32595  	ifNoneMatch_ string
 32596  	ctx_         context.Context
 32597  	header_      http.Header
 32598  }
 32599  
 32600  // List: Lists the daily call quota and usage per method for your Merchant
 32601  // Center account.
 32602  //
 32603  //   - merchantId: The ID of the account that has quota. This account must be an
 32604  //     admin.
 32605  func (r *QuotasService) List(merchantId int64) *QuotasListCall {
 32606  	c := &QuotasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32607  	c.merchantId = merchantId
 32608  	return c
 32609  }
 32610  
 32611  // PageSize sets the optional parameter "pageSize": The maximum number of
 32612  // quotas to return in the response, used for paging. Defaults to 500; values
 32613  // above 1000 will be coerced to 1000.
 32614  func (c *QuotasListCall) PageSize(pageSize int64) *QuotasListCall {
 32615  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 32616  	return c
 32617  }
 32618  
 32619  // PageToken sets the optional parameter "pageToken": Token (if provided) to
 32620  // retrieve the subsequent page. All other parameters must match the original
 32621  // call that provided the page token.
 32622  func (c *QuotasListCall) PageToken(pageToken string) *QuotasListCall {
 32623  	c.urlParams_.Set("pageToken", pageToken)
 32624  	return c
 32625  }
 32626  
 32627  // Fields allows partial responses to be retrieved. See
 32628  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32629  // details.
 32630  func (c *QuotasListCall) Fields(s ...googleapi.Field) *QuotasListCall {
 32631  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32632  	return c
 32633  }
 32634  
 32635  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32636  // object's ETag matches the given value. This is useful for getting updates
 32637  // only after the object has changed since the last request.
 32638  func (c *QuotasListCall) IfNoneMatch(entityTag string) *QuotasListCall {
 32639  	c.ifNoneMatch_ = entityTag
 32640  	return c
 32641  }
 32642  
 32643  // Context sets the context to be used in this call's Do method.
 32644  func (c *QuotasListCall) Context(ctx context.Context) *QuotasListCall {
 32645  	c.ctx_ = ctx
 32646  	return c
 32647  }
 32648  
 32649  // Header returns a http.Header that can be modified by the caller to add
 32650  // headers to the request.
 32651  func (c *QuotasListCall) Header() http.Header {
 32652  	if c.header_ == nil {
 32653  		c.header_ = make(http.Header)
 32654  	}
 32655  	return c.header_
 32656  }
 32657  
 32658  func (c *QuotasListCall) doRequest(alt string) (*http.Response, error) {
 32659  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32660  	if c.ifNoneMatch_ != "" {
 32661  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32662  	}
 32663  	var body io.Reader = nil
 32664  	c.urlParams_.Set("alt", alt)
 32665  	c.urlParams_.Set("prettyPrint", "false")
 32666  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/quotas")
 32667  	urls += "?" + c.urlParams_.Encode()
 32668  	req, err := http.NewRequest("GET", urls, body)
 32669  	if err != nil {
 32670  		return nil, err
 32671  	}
 32672  	req.Header = reqHeaders
 32673  	googleapi.Expand(req.URL, map[string]string{
 32674  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 32675  	})
 32676  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32677  }
 32678  
 32679  // Do executes the "content.quotas.list" call.
 32680  // Any non-2xx status code is an error. Response headers are in either
 32681  // *ListMethodQuotasResponse.ServerResponse.Header or (if a response was
 32682  // returned at all) in error.(*googleapi.Error).Header. Use
 32683  // googleapi.IsNotModified to check whether the returned error was because
 32684  // http.StatusNotModified was returned.
 32685  func (c *QuotasListCall) Do(opts ...googleapi.CallOption) (*ListMethodQuotasResponse, error) {
 32686  	gensupport.SetOptions(c.urlParams_, opts...)
 32687  	res, err := c.doRequest("json")
 32688  	if res != nil && res.StatusCode == http.StatusNotModified {
 32689  		if res.Body != nil {
 32690  			res.Body.Close()
 32691  		}
 32692  		return nil, gensupport.WrapError(&googleapi.Error{
 32693  			Code:   res.StatusCode,
 32694  			Header: res.Header,
 32695  		})
 32696  	}
 32697  	if err != nil {
 32698  		return nil, err
 32699  	}
 32700  	defer googleapi.CloseBody(res)
 32701  	if err := googleapi.CheckResponse(res); err != nil {
 32702  		return nil, gensupport.WrapError(err)
 32703  	}
 32704  	ret := &ListMethodQuotasResponse{
 32705  		ServerResponse: googleapi.ServerResponse{
 32706  			Header:         res.Header,
 32707  			HTTPStatusCode: res.StatusCode,
 32708  		},
 32709  	}
 32710  	target := &ret
 32711  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32712  		return nil, err
 32713  	}
 32714  	return ret, nil
 32715  }
 32716  
 32717  // Pages invokes f for each page of results.
 32718  // A non-nil error returned from f will halt the iteration.
 32719  // The provided context supersedes any context provided to the Context method.
 32720  func (c *QuotasListCall) Pages(ctx context.Context, f func(*ListMethodQuotasResponse) error) error {
 32721  	c.ctx_ = ctx
 32722  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 32723  	for {
 32724  		x, err := c.Do()
 32725  		if err != nil {
 32726  			return err
 32727  		}
 32728  		if err := f(x); err != nil {
 32729  			return err
 32730  		}
 32731  		if x.NextPageToken == "" {
 32732  			return nil
 32733  		}
 32734  		c.PageToken(x.NextPageToken)
 32735  	}
 32736  }
 32737  
 32738  type RecommendationsGenerateCall struct {
 32739  	s            *APIService
 32740  	merchantId   int64
 32741  	urlParams_   gensupport.URLParams
 32742  	ifNoneMatch_ string
 32743  	ctx_         context.Context
 32744  	header_      http.Header
 32745  }
 32746  
 32747  // Generate: Generates recommendations for a merchant.
 32748  //
 32749  // - merchantId: The ID of the account to fetch recommendations for.
 32750  func (r *RecommendationsService) Generate(merchantId int64) *RecommendationsGenerateCall {
 32751  	c := &RecommendationsGenerateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32752  	c.merchantId = merchantId
 32753  	return c
 32754  }
 32755  
 32756  // AllowedTag sets the optional parameter "allowedTag": List of allowed tags.
 32757  // Tags are a set of predefined strings that describe the category that
 32758  // individual recommendation types belong to. User can specify zero or more
 32759  // tags in this field to indicate what categories of recommendations they want
 32760  // to receive. Current list of supported tags: - TREND
 32761  func (c *RecommendationsGenerateCall) AllowedTag(allowedTag ...string) *RecommendationsGenerateCall {
 32762  	c.urlParams_.SetMulti("allowedTag", append([]string{}, allowedTag...))
 32763  	return c
 32764  }
 32765  
 32766  // LanguageCode sets the optional parameter "languageCode": Language code of
 32767  // the client. If not set, the result will be in default language (English).
 32768  // This language code affects all fields prefixed with "localized". This should
 32769  // be set to ISO 639-1 country code. List of currently verified supported
 32770  // language code: en, fr, cs, da, de, es, it, nl, no, pl, pt, pt, fi, sv, vi,
 32771  // tr, th, ko, zh-CN, zh-TW, ja, id, hi
 32772  func (c *RecommendationsGenerateCall) LanguageCode(languageCode string) *RecommendationsGenerateCall {
 32773  	c.urlParams_.Set("languageCode", languageCode)
 32774  	return c
 32775  }
 32776  
 32777  // Fields allows partial responses to be retrieved. See
 32778  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32779  // details.
 32780  func (c *RecommendationsGenerateCall) Fields(s ...googleapi.Field) *RecommendationsGenerateCall {
 32781  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32782  	return c
 32783  }
 32784  
 32785  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32786  // object's ETag matches the given value. This is useful for getting updates
 32787  // only after the object has changed since the last request.
 32788  func (c *RecommendationsGenerateCall) IfNoneMatch(entityTag string) *RecommendationsGenerateCall {
 32789  	c.ifNoneMatch_ = entityTag
 32790  	return c
 32791  }
 32792  
 32793  // Context sets the context to be used in this call's Do method.
 32794  func (c *RecommendationsGenerateCall) Context(ctx context.Context) *RecommendationsGenerateCall {
 32795  	c.ctx_ = ctx
 32796  	return c
 32797  }
 32798  
 32799  // Header returns a http.Header that can be modified by the caller to add
 32800  // headers to the request.
 32801  func (c *RecommendationsGenerateCall) Header() http.Header {
 32802  	if c.header_ == nil {
 32803  		c.header_ = make(http.Header)
 32804  	}
 32805  	return c.header_
 32806  }
 32807  
 32808  func (c *RecommendationsGenerateCall) doRequest(alt string) (*http.Response, error) {
 32809  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32810  	if c.ifNoneMatch_ != "" {
 32811  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32812  	}
 32813  	var body io.Reader = nil
 32814  	c.urlParams_.Set("alt", alt)
 32815  	c.urlParams_.Set("prettyPrint", "false")
 32816  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/recommendations/generate")
 32817  	urls += "?" + c.urlParams_.Encode()
 32818  	req, err := http.NewRequest("GET", urls, body)
 32819  	if err != nil {
 32820  		return nil, err
 32821  	}
 32822  	req.Header = reqHeaders
 32823  	googleapi.Expand(req.URL, map[string]string{
 32824  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 32825  	})
 32826  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32827  }
 32828  
 32829  // Do executes the "content.recommendations.generate" call.
 32830  // Any non-2xx status code is an error. Response headers are in either
 32831  // *GenerateRecommendationsResponse.ServerResponse.Header or (if a response was
 32832  // returned at all) in error.(*googleapi.Error).Header. Use
 32833  // googleapi.IsNotModified to check whether the returned error was because
 32834  // http.StatusNotModified was returned.
 32835  func (c *RecommendationsGenerateCall) Do(opts ...googleapi.CallOption) (*GenerateRecommendationsResponse, error) {
 32836  	gensupport.SetOptions(c.urlParams_, opts...)
 32837  	res, err := c.doRequest("json")
 32838  	if res != nil && res.StatusCode == http.StatusNotModified {
 32839  		if res.Body != nil {
 32840  			res.Body.Close()
 32841  		}
 32842  		return nil, gensupport.WrapError(&googleapi.Error{
 32843  			Code:   res.StatusCode,
 32844  			Header: res.Header,
 32845  		})
 32846  	}
 32847  	if err != nil {
 32848  		return nil, err
 32849  	}
 32850  	defer googleapi.CloseBody(res)
 32851  	if err := googleapi.CheckResponse(res); err != nil {
 32852  		return nil, gensupport.WrapError(err)
 32853  	}
 32854  	ret := &GenerateRecommendationsResponse{
 32855  		ServerResponse: googleapi.ServerResponse{
 32856  			Header:         res.Header,
 32857  			HTTPStatusCode: res.StatusCode,
 32858  		},
 32859  	}
 32860  	target := &ret
 32861  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32862  		return nil, err
 32863  	}
 32864  	return ret, nil
 32865  }
 32866  
 32867  type RecommendationsReportInteractionCall struct {
 32868  	s                        *APIService
 32869  	merchantId               int64
 32870  	reportinteractionrequest *ReportInteractionRequest
 32871  	urlParams_               gensupport.URLParams
 32872  	ctx_                     context.Context
 32873  	header_                  http.Header
 32874  }
 32875  
 32876  // ReportInteraction: Reports an interaction on a recommendation for a
 32877  // merchant.
 32878  //
 32879  // - merchantId: The ID of the account that wants to report an interaction.
 32880  func (r *RecommendationsService) ReportInteraction(merchantId int64, reportinteractionrequest *ReportInteractionRequest) *RecommendationsReportInteractionCall {
 32881  	c := &RecommendationsReportInteractionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32882  	c.merchantId = merchantId
 32883  	c.reportinteractionrequest = reportinteractionrequest
 32884  	return c
 32885  }
 32886  
 32887  // Fields allows partial responses to be retrieved. See
 32888  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32889  // details.
 32890  func (c *RecommendationsReportInteractionCall) Fields(s ...googleapi.Field) *RecommendationsReportInteractionCall {
 32891  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32892  	return c
 32893  }
 32894  
 32895  // Context sets the context to be used in this call's Do method.
 32896  func (c *RecommendationsReportInteractionCall) Context(ctx context.Context) *RecommendationsReportInteractionCall {
 32897  	c.ctx_ = ctx
 32898  	return c
 32899  }
 32900  
 32901  // Header returns a http.Header that can be modified by the caller to add
 32902  // headers to the request.
 32903  func (c *RecommendationsReportInteractionCall) Header() http.Header {
 32904  	if c.header_ == nil {
 32905  		c.header_ = make(http.Header)
 32906  	}
 32907  	return c.header_
 32908  }
 32909  
 32910  func (c *RecommendationsReportInteractionCall) doRequest(alt string) (*http.Response, error) {
 32911  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32912  	var body io.Reader = nil
 32913  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.reportinteractionrequest)
 32914  	if err != nil {
 32915  		return nil, err
 32916  	}
 32917  	c.urlParams_.Set("alt", alt)
 32918  	c.urlParams_.Set("prettyPrint", "false")
 32919  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/recommendations/reportInteraction")
 32920  	urls += "?" + c.urlParams_.Encode()
 32921  	req, err := http.NewRequest("POST", urls, body)
 32922  	if err != nil {
 32923  		return nil, err
 32924  	}
 32925  	req.Header = reqHeaders
 32926  	googleapi.Expand(req.URL, map[string]string{
 32927  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 32928  	})
 32929  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32930  }
 32931  
 32932  // Do executes the "content.recommendations.reportInteraction" call.
 32933  func (c *RecommendationsReportInteractionCall) Do(opts ...googleapi.CallOption) error {
 32934  	gensupport.SetOptions(c.urlParams_, opts...)
 32935  	res, err := c.doRequest("json")
 32936  	if err != nil {
 32937  		return err
 32938  	}
 32939  	defer googleapi.CloseBody(res)
 32940  	if err := googleapi.CheckResponse(res); err != nil {
 32941  		return gensupport.WrapError(err)
 32942  	}
 32943  	return nil
 32944  }
 32945  
 32946  type RegionalinventoryCustombatchCall struct {
 32947  	s                                   *APIService
 32948  	regionalinventorycustombatchrequest *RegionalinventoryCustomBatchRequest
 32949  	urlParams_                          gensupport.URLParams
 32950  	ctx_                                context.Context
 32951  	header_                             http.Header
 32952  }
 32953  
 32954  // Custombatch: Updates regional inventory for multiple products or regions in
 32955  // a single request.
 32956  func (r *RegionalinventoryService) Custombatch(regionalinventorycustombatchrequest *RegionalinventoryCustomBatchRequest) *RegionalinventoryCustombatchCall {
 32957  	c := &RegionalinventoryCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32958  	c.regionalinventorycustombatchrequest = regionalinventorycustombatchrequest
 32959  	return c
 32960  }
 32961  
 32962  // Fields allows partial responses to be retrieved. See
 32963  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32964  // details.
 32965  func (c *RegionalinventoryCustombatchCall) Fields(s ...googleapi.Field) *RegionalinventoryCustombatchCall {
 32966  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32967  	return c
 32968  }
 32969  
 32970  // Context sets the context to be used in this call's Do method.
 32971  func (c *RegionalinventoryCustombatchCall) Context(ctx context.Context) *RegionalinventoryCustombatchCall {
 32972  	c.ctx_ = ctx
 32973  	return c
 32974  }
 32975  
 32976  // Header returns a http.Header that can be modified by the caller to add
 32977  // headers to the request.
 32978  func (c *RegionalinventoryCustombatchCall) Header() http.Header {
 32979  	if c.header_ == nil {
 32980  		c.header_ = make(http.Header)
 32981  	}
 32982  	return c.header_
 32983  }
 32984  
 32985  func (c *RegionalinventoryCustombatchCall) doRequest(alt string) (*http.Response, error) {
 32986  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32987  	var body io.Reader = nil
 32988  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionalinventorycustombatchrequest)
 32989  	if err != nil {
 32990  		return nil, err
 32991  	}
 32992  	c.urlParams_.Set("alt", alt)
 32993  	c.urlParams_.Set("prettyPrint", "false")
 32994  	urls := googleapi.ResolveRelative(c.s.BasePath, "regionalinventory/batch")
 32995  	urls += "?" + c.urlParams_.Encode()
 32996  	req, err := http.NewRequest("POST", urls, body)
 32997  	if err != nil {
 32998  		return nil, err
 32999  	}
 33000  	req.Header = reqHeaders
 33001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33002  }
 33003  
 33004  // Do executes the "content.regionalinventory.custombatch" call.
 33005  // Any non-2xx status code is an error. Response headers are in either
 33006  // *RegionalinventoryCustomBatchResponse.ServerResponse.Header or (if a
 33007  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33008  // googleapi.IsNotModified to check whether the returned error was because
 33009  // http.StatusNotModified was returned.
 33010  func (c *RegionalinventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*RegionalinventoryCustomBatchResponse, error) {
 33011  	gensupport.SetOptions(c.urlParams_, opts...)
 33012  	res, err := c.doRequest("json")
 33013  	if res != nil && res.StatusCode == http.StatusNotModified {
 33014  		if res.Body != nil {
 33015  			res.Body.Close()
 33016  		}
 33017  		return nil, gensupport.WrapError(&googleapi.Error{
 33018  			Code:   res.StatusCode,
 33019  			Header: res.Header,
 33020  		})
 33021  	}
 33022  	if err != nil {
 33023  		return nil, err
 33024  	}
 33025  	defer googleapi.CloseBody(res)
 33026  	if err := googleapi.CheckResponse(res); err != nil {
 33027  		return nil, gensupport.WrapError(err)
 33028  	}
 33029  	ret := &RegionalinventoryCustomBatchResponse{
 33030  		ServerResponse: googleapi.ServerResponse{
 33031  			Header:         res.Header,
 33032  			HTTPStatusCode: res.StatusCode,
 33033  		},
 33034  	}
 33035  	target := &ret
 33036  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33037  		return nil, err
 33038  	}
 33039  	return ret, nil
 33040  }
 33041  
 33042  type RegionalinventoryInsertCall struct {
 33043  	s                 *APIService
 33044  	merchantId        uint64
 33045  	productId         string
 33046  	regionalinventory *RegionalInventory
 33047  	urlParams_        gensupport.URLParams
 33048  	ctx_              context.Context
 33049  	header_           http.Header
 33050  }
 33051  
 33052  // Insert: Updates the regional inventory of a product in your Merchant Center
 33053  // account. If a regional inventory with the same region ID already exists,
 33054  // this method updates that entry.
 33055  //
 33056  //   - merchantId: The ID of the account that contains the product. This account
 33057  //     cannot be a multi-client account.
 33058  //   - productId: The REST ID of the product for which to update the regional
 33059  //     inventory.
 33060  func (r *RegionalinventoryService) Insert(merchantId uint64, productId string, regionalinventory *RegionalInventory) *RegionalinventoryInsertCall {
 33061  	c := &RegionalinventoryInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33062  	c.merchantId = merchantId
 33063  	c.productId = productId
 33064  	c.regionalinventory = regionalinventory
 33065  	return c
 33066  }
 33067  
 33068  // Fields allows partial responses to be retrieved. See
 33069  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33070  // details.
 33071  func (c *RegionalinventoryInsertCall) Fields(s ...googleapi.Field) *RegionalinventoryInsertCall {
 33072  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33073  	return c
 33074  }
 33075  
 33076  // Context sets the context to be used in this call's Do method.
 33077  func (c *RegionalinventoryInsertCall) Context(ctx context.Context) *RegionalinventoryInsertCall {
 33078  	c.ctx_ = ctx
 33079  	return c
 33080  }
 33081  
 33082  // Header returns a http.Header that can be modified by the caller to add
 33083  // headers to the request.
 33084  func (c *RegionalinventoryInsertCall) Header() http.Header {
 33085  	if c.header_ == nil {
 33086  		c.header_ = make(http.Header)
 33087  	}
 33088  	return c.header_
 33089  }
 33090  
 33091  func (c *RegionalinventoryInsertCall) doRequest(alt string) (*http.Response, error) {
 33092  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33093  	var body io.Reader = nil
 33094  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.regionalinventory)
 33095  	if err != nil {
 33096  		return nil, err
 33097  	}
 33098  	c.urlParams_.Set("alt", alt)
 33099  	c.urlParams_.Set("prettyPrint", "false")
 33100  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/products/{productId}/regionalinventory")
 33101  	urls += "?" + c.urlParams_.Encode()
 33102  	req, err := http.NewRequest("POST", urls, body)
 33103  	if err != nil {
 33104  		return nil, err
 33105  	}
 33106  	req.Header = reqHeaders
 33107  	googleapi.Expand(req.URL, map[string]string{
 33108  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 33109  		"productId":  c.productId,
 33110  	})
 33111  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33112  }
 33113  
 33114  // Do executes the "content.regionalinventory.insert" call.
 33115  // Any non-2xx status code is an error. Response headers are in either
 33116  // *RegionalInventory.ServerResponse.Header or (if a response was returned at
 33117  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 33118  // check whether the returned error was because http.StatusNotModified was
 33119  // returned.
 33120  func (c *RegionalinventoryInsertCall) Do(opts ...googleapi.CallOption) (*RegionalInventory, error) {
 33121  	gensupport.SetOptions(c.urlParams_, opts...)
 33122  	res, err := c.doRequest("json")
 33123  	if res != nil && res.StatusCode == http.StatusNotModified {
 33124  		if res.Body != nil {
 33125  			res.Body.Close()
 33126  		}
 33127  		return nil, gensupport.WrapError(&googleapi.Error{
 33128  			Code:   res.StatusCode,
 33129  			Header: res.Header,
 33130  		})
 33131  	}
 33132  	if err != nil {
 33133  		return nil, err
 33134  	}
 33135  	defer googleapi.CloseBody(res)
 33136  	if err := googleapi.CheckResponse(res); err != nil {
 33137  		return nil, gensupport.WrapError(err)
 33138  	}
 33139  	ret := &RegionalInventory{
 33140  		ServerResponse: googleapi.ServerResponse{
 33141  			Header:         res.Header,
 33142  			HTTPStatusCode: res.StatusCode,
 33143  		},
 33144  	}
 33145  	target := &ret
 33146  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33147  		return nil, err
 33148  	}
 33149  	return ret, nil
 33150  }
 33151  
 33152  type RegionsCreateCall struct {
 33153  	s          *APIService
 33154  	merchantId int64
 33155  	region     *Region
 33156  	urlParams_ gensupport.URLParams
 33157  	ctx_       context.Context
 33158  	header_    http.Header
 33159  }
 33160  
 33161  // Create: Creates a region definition in your Merchant Center account.
 33162  //
 33163  // - merchantId: The id of the merchant for which to create region definition.
 33164  func (r *RegionsService) Create(merchantId int64, region *Region) *RegionsCreateCall {
 33165  	c := &RegionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33166  	c.merchantId = merchantId
 33167  	c.region = region
 33168  	return c
 33169  }
 33170  
 33171  // RegionId sets the optional parameter "regionId": Required. The id of the
 33172  // region to create.
 33173  func (c *RegionsCreateCall) RegionId(regionId string) *RegionsCreateCall {
 33174  	c.urlParams_.Set("regionId", regionId)
 33175  	return c
 33176  }
 33177  
 33178  // Fields allows partial responses to be retrieved. See
 33179  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33180  // details.
 33181  func (c *RegionsCreateCall) Fields(s ...googleapi.Field) *RegionsCreateCall {
 33182  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33183  	return c
 33184  }
 33185  
 33186  // Context sets the context to be used in this call's Do method.
 33187  func (c *RegionsCreateCall) Context(ctx context.Context) *RegionsCreateCall {
 33188  	c.ctx_ = ctx
 33189  	return c
 33190  }
 33191  
 33192  // Header returns a http.Header that can be modified by the caller to add
 33193  // headers to the request.
 33194  func (c *RegionsCreateCall) Header() http.Header {
 33195  	if c.header_ == nil {
 33196  		c.header_ = make(http.Header)
 33197  	}
 33198  	return c.header_
 33199  }
 33200  
 33201  func (c *RegionsCreateCall) doRequest(alt string) (*http.Response, error) {
 33202  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33203  	var body io.Reader = nil
 33204  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.region)
 33205  	if err != nil {
 33206  		return nil, err
 33207  	}
 33208  	c.urlParams_.Set("alt", alt)
 33209  	c.urlParams_.Set("prettyPrint", "false")
 33210  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions")
 33211  	urls += "?" + c.urlParams_.Encode()
 33212  	req, err := http.NewRequest("POST", urls, body)
 33213  	if err != nil {
 33214  		return nil, err
 33215  	}
 33216  	req.Header = reqHeaders
 33217  	googleapi.Expand(req.URL, map[string]string{
 33218  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 33219  	})
 33220  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33221  }
 33222  
 33223  // Do executes the "content.regions.create" call.
 33224  // Any non-2xx status code is an error. Response headers are in either
 33225  // *Region.ServerResponse.Header or (if a response was returned at all) in
 33226  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 33227  // whether the returned error was because http.StatusNotModified was returned.
 33228  func (c *RegionsCreateCall) Do(opts ...googleapi.CallOption) (*Region, error) {
 33229  	gensupport.SetOptions(c.urlParams_, opts...)
 33230  	res, err := c.doRequest("json")
 33231  	if res != nil && res.StatusCode == http.StatusNotModified {
 33232  		if res.Body != nil {
 33233  			res.Body.Close()
 33234  		}
 33235  		return nil, gensupport.WrapError(&googleapi.Error{
 33236  			Code:   res.StatusCode,
 33237  			Header: res.Header,
 33238  		})
 33239  	}
 33240  	if err != nil {
 33241  		return nil, err
 33242  	}
 33243  	defer googleapi.CloseBody(res)
 33244  	if err := googleapi.CheckResponse(res); err != nil {
 33245  		return nil, gensupport.WrapError(err)
 33246  	}
 33247  	ret := &Region{
 33248  		ServerResponse: googleapi.ServerResponse{
 33249  			Header:         res.Header,
 33250  			HTTPStatusCode: res.StatusCode,
 33251  		},
 33252  	}
 33253  	target := &ret
 33254  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33255  		return nil, err
 33256  	}
 33257  	return ret, nil
 33258  }
 33259  
 33260  type RegionsDeleteCall struct {
 33261  	s          *APIService
 33262  	merchantId int64
 33263  	regionId   string
 33264  	urlParams_ gensupport.URLParams
 33265  	ctx_       context.Context
 33266  	header_    http.Header
 33267  }
 33268  
 33269  // Delete: Deletes a region definition from your Merchant Center account.
 33270  //
 33271  // - merchantId: The id of the merchant for which to delete region definition.
 33272  // - regionId: The id of the region to delete.
 33273  func (r *RegionsService) Delete(merchantId int64, regionId string) *RegionsDeleteCall {
 33274  	c := &RegionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33275  	c.merchantId = merchantId
 33276  	c.regionId = regionId
 33277  	return c
 33278  }
 33279  
 33280  // Fields allows partial responses to be retrieved. See
 33281  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33282  // details.
 33283  func (c *RegionsDeleteCall) Fields(s ...googleapi.Field) *RegionsDeleteCall {
 33284  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33285  	return c
 33286  }
 33287  
 33288  // Context sets the context to be used in this call's Do method.
 33289  func (c *RegionsDeleteCall) Context(ctx context.Context) *RegionsDeleteCall {
 33290  	c.ctx_ = ctx
 33291  	return c
 33292  }
 33293  
 33294  // Header returns a http.Header that can be modified by the caller to add
 33295  // headers to the request.
 33296  func (c *RegionsDeleteCall) Header() http.Header {
 33297  	if c.header_ == nil {
 33298  		c.header_ = make(http.Header)
 33299  	}
 33300  	return c.header_
 33301  }
 33302  
 33303  func (c *RegionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 33304  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33305  	var body io.Reader = nil
 33306  	c.urlParams_.Set("alt", alt)
 33307  	c.urlParams_.Set("prettyPrint", "false")
 33308  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions/{regionId}")
 33309  	urls += "?" + c.urlParams_.Encode()
 33310  	req, err := http.NewRequest("DELETE", urls, body)
 33311  	if err != nil {
 33312  		return nil, err
 33313  	}
 33314  	req.Header = reqHeaders
 33315  	googleapi.Expand(req.URL, map[string]string{
 33316  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 33317  		"regionId":   c.regionId,
 33318  	})
 33319  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33320  }
 33321  
 33322  // Do executes the "content.regions.delete" call.
 33323  func (c *RegionsDeleteCall) Do(opts ...googleapi.CallOption) error {
 33324  	gensupport.SetOptions(c.urlParams_, opts...)
 33325  	res, err := c.doRequest("json")
 33326  	if err != nil {
 33327  		return err
 33328  	}
 33329  	defer googleapi.CloseBody(res)
 33330  	if err := googleapi.CheckResponse(res); err != nil {
 33331  		return gensupport.WrapError(err)
 33332  	}
 33333  	return nil
 33334  }
 33335  
 33336  type RegionsGetCall struct {
 33337  	s            *APIService
 33338  	merchantId   int64
 33339  	regionId     string
 33340  	urlParams_   gensupport.URLParams
 33341  	ifNoneMatch_ string
 33342  	ctx_         context.Context
 33343  	header_      http.Header
 33344  }
 33345  
 33346  // Get: Retrieves a region defined in your Merchant Center account.
 33347  //
 33348  //   - merchantId: The id of the merchant for which to retrieve region
 33349  //     definition.
 33350  //   - regionId: The id of the region to retrieve.
 33351  func (r *RegionsService) Get(merchantId int64, regionId string) *RegionsGetCall {
 33352  	c := &RegionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33353  	c.merchantId = merchantId
 33354  	c.regionId = regionId
 33355  	return c
 33356  }
 33357  
 33358  // Fields allows partial responses to be retrieved. See
 33359  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33360  // details.
 33361  func (c *RegionsGetCall) Fields(s ...googleapi.Field) *RegionsGetCall {
 33362  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33363  	return c
 33364  }
 33365  
 33366  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33367  // object's ETag matches the given value. This is useful for getting updates
 33368  // only after the object has changed since the last request.
 33369  func (c *RegionsGetCall) IfNoneMatch(entityTag string) *RegionsGetCall {
 33370  	c.ifNoneMatch_ = entityTag
 33371  	return c
 33372  }
 33373  
 33374  // Context sets the context to be used in this call's Do method.
 33375  func (c *RegionsGetCall) Context(ctx context.Context) *RegionsGetCall {
 33376  	c.ctx_ = ctx
 33377  	return c
 33378  }
 33379  
 33380  // Header returns a http.Header that can be modified by the caller to add
 33381  // headers to the request.
 33382  func (c *RegionsGetCall) Header() http.Header {
 33383  	if c.header_ == nil {
 33384  		c.header_ = make(http.Header)
 33385  	}
 33386  	return c.header_
 33387  }
 33388  
 33389  func (c *RegionsGetCall) doRequest(alt string) (*http.Response, error) {
 33390  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33391  	if c.ifNoneMatch_ != "" {
 33392  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33393  	}
 33394  	var body io.Reader = nil
 33395  	c.urlParams_.Set("alt", alt)
 33396  	c.urlParams_.Set("prettyPrint", "false")
 33397  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions/{regionId}")
 33398  	urls += "?" + c.urlParams_.Encode()
 33399  	req, err := http.NewRequest("GET", urls, body)
 33400  	if err != nil {
 33401  		return nil, err
 33402  	}
 33403  	req.Header = reqHeaders
 33404  	googleapi.Expand(req.URL, map[string]string{
 33405  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 33406  		"regionId":   c.regionId,
 33407  	})
 33408  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33409  }
 33410  
 33411  // Do executes the "content.regions.get" call.
 33412  // Any non-2xx status code is an error. Response headers are in either
 33413  // *Region.ServerResponse.Header or (if a response was returned at all) in
 33414  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 33415  // whether the returned error was because http.StatusNotModified was returned.
 33416  func (c *RegionsGetCall) Do(opts ...googleapi.CallOption) (*Region, error) {
 33417  	gensupport.SetOptions(c.urlParams_, opts...)
 33418  	res, err := c.doRequest("json")
 33419  	if res != nil && res.StatusCode == http.StatusNotModified {
 33420  		if res.Body != nil {
 33421  			res.Body.Close()
 33422  		}
 33423  		return nil, gensupport.WrapError(&googleapi.Error{
 33424  			Code:   res.StatusCode,
 33425  			Header: res.Header,
 33426  		})
 33427  	}
 33428  	if err != nil {
 33429  		return nil, err
 33430  	}
 33431  	defer googleapi.CloseBody(res)
 33432  	if err := googleapi.CheckResponse(res); err != nil {
 33433  		return nil, gensupport.WrapError(err)
 33434  	}
 33435  	ret := &Region{
 33436  		ServerResponse: googleapi.ServerResponse{
 33437  			Header:         res.Header,
 33438  			HTTPStatusCode: res.StatusCode,
 33439  		},
 33440  	}
 33441  	target := &ret
 33442  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33443  		return nil, err
 33444  	}
 33445  	return ret, nil
 33446  }
 33447  
 33448  type RegionsListCall struct {
 33449  	s            *APIService
 33450  	merchantId   int64
 33451  	urlParams_   gensupport.URLParams
 33452  	ifNoneMatch_ string
 33453  	ctx_         context.Context
 33454  	header_      http.Header
 33455  }
 33456  
 33457  // List: Lists the regions in your Merchant Center account.
 33458  //
 33459  // - merchantId: The id of the merchant for which to list region definitions.
 33460  func (r *RegionsService) List(merchantId int64) *RegionsListCall {
 33461  	c := &RegionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33462  	c.merchantId = merchantId
 33463  	return c
 33464  }
 33465  
 33466  // PageSize sets the optional parameter "pageSize": The maximum number of
 33467  // regions to return. The service may return fewer than this value. If
 33468  // unspecified, at most 50 rules will be returned. The maximum value is 1000;
 33469  // values above 1000 will be coerced to 1000.
 33470  func (c *RegionsListCall) PageSize(pageSize int64) *RegionsListCall {
 33471  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33472  	return c
 33473  }
 33474  
 33475  // PageToken sets the optional parameter "pageToken": A page token, received
 33476  // from a previous `ListRegions` call. Provide this to retrieve the subsequent
 33477  // page. When paginating, all other parameters provided to `ListRegions` must
 33478  // match the call that provided the page token.
 33479  func (c *RegionsListCall) PageToken(pageToken string) *RegionsListCall {
 33480  	c.urlParams_.Set("pageToken", pageToken)
 33481  	return c
 33482  }
 33483  
 33484  // Fields allows partial responses to be retrieved. See
 33485  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33486  // details.
 33487  func (c *RegionsListCall) Fields(s ...googleapi.Field) *RegionsListCall {
 33488  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33489  	return c
 33490  }
 33491  
 33492  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33493  // object's ETag matches the given value. This is useful for getting updates
 33494  // only after the object has changed since the last request.
 33495  func (c *RegionsListCall) IfNoneMatch(entityTag string) *RegionsListCall {
 33496  	c.ifNoneMatch_ = entityTag
 33497  	return c
 33498  }
 33499  
 33500  // Context sets the context to be used in this call's Do method.
 33501  func (c *RegionsListCall) Context(ctx context.Context) *RegionsListCall {
 33502  	c.ctx_ = ctx
 33503  	return c
 33504  }
 33505  
 33506  // Header returns a http.Header that can be modified by the caller to add
 33507  // headers to the request.
 33508  func (c *RegionsListCall) Header() http.Header {
 33509  	if c.header_ == nil {
 33510  		c.header_ = make(http.Header)
 33511  	}
 33512  	return c.header_
 33513  }
 33514  
 33515  func (c *RegionsListCall) doRequest(alt string) (*http.Response, error) {
 33516  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33517  	if c.ifNoneMatch_ != "" {
 33518  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33519  	}
 33520  	var body io.Reader = nil
 33521  	c.urlParams_.Set("alt", alt)
 33522  	c.urlParams_.Set("prettyPrint", "false")
 33523  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions")
 33524  	urls += "?" + c.urlParams_.Encode()
 33525  	req, err := http.NewRequest("GET", urls, body)
 33526  	if err != nil {
 33527  		return nil, err
 33528  	}
 33529  	req.Header = reqHeaders
 33530  	googleapi.Expand(req.URL, map[string]string{
 33531  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 33532  	})
 33533  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33534  }
 33535  
 33536  // Do executes the "content.regions.list" call.
 33537  // Any non-2xx status code is an error. Response headers are in either
 33538  // *ListRegionsResponse.ServerResponse.Header or (if a response was returned at
 33539  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 33540  // check whether the returned error was because http.StatusNotModified was
 33541  // returned.
 33542  func (c *RegionsListCall) Do(opts ...googleapi.CallOption) (*ListRegionsResponse, error) {
 33543  	gensupport.SetOptions(c.urlParams_, opts...)
 33544  	res, err := c.doRequest("json")
 33545  	if res != nil && res.StatusCode == http.StatusNotModified {
 33546  		if res.Body != nil {
 33547  			res.Body.Close()
 33548  		}
 33549  		return nil, gensupport.WrapError(&googleapi.Error{
 33550  			Code:   res.StatusCode,
 33551  			Header: res.Header,
 33552  		})
 33553  	}
 33554  	if err != nil {
 33555  		return nil, err
 33556  	}
 33557  	defer googleapi.CloseBody(res)
 33558  	if err := googleapi.CheckResponse(res); err != nil {
 33559  		return nil, gensupport.WrapError(err)
 33560  	}
 33561  	ret := &ListRegionsResponse{
 33562  		ServerResponse: googleapi.ServerResponse{
 33563  			Header:         res.Header,
 33564  			HTTPStatusCode: res.StatusCode,
 33565  		},
 33566  	}
 33567  	target := &ret
 33568  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33569  		return nil, err
 33570  	}
 33571  	return ret, nil
 33572  }
 33573  
 33574  // Pages invokes f for each page of results.
 33575  // A non-nil error returned from f will halt the iteration.
 33576  // The provided context supersedes any context provided to the Context method.
 33577  func (c *RegionsListCall) Pages(ctx context.Context, f func(*ListRegionsResponse) error) error {
 33578  	c.ctx_ = ctx
 33579  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33580  	for {
 33581  		x, err := c.Do()
 33582  		if err != nil {
 33583  			return err
 33584  		}
 33585  		if err := f(x); err != nil {
 33586  			return err
 33587  		}
 33588  		if x.NextPageToken == "" {
 33589  			return nil
 33590  		}
 33591  		c.PageToken(x.NextPageToken)
 33592  	}
 33593  }
 33594  
 33595  type RegionsPatchCall struct {
 33596  	s          *APIService
 33597  	merchantId int64
 33598  	regionId   string
 33599  	region     *Region
 33600  	urlParams_ gensupport.URLParams
 33601  	ctx_       context.Context
 33602  	header_    http.Header
 33603  }
 33604  
 33605  // Patch: Updates a region definition in your Merchant Center account.
 33606  //
 33607  // - merchantId: The id of the merchant for which to update region definition.
 33608  // - regionId: The id of the region to update.
 33609  func (r *RegionsService) Patch(merchantId int64, regionId string, region *Region) *RegionsPatchCall {
 33610  	c := &RegionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33611  	c.merchantId = merchantId
 33612  	c.regionId = regionId
 33613  	c.region = region
 33614  	return c
 33615  }
 33616  
 33617  // UpdateMask sets the optional parameter "updateMask": The comma-separated
 33618  // field mask indicating the fields to update. Example:
 33619  // "displayName,postalCodeArea.regionCode".
 33620  func (c *RegionsPatchCall) UpdateMask(updateMask string) *RegionsPatchCall {
 33621  	c.urlParams_.Set("updateMask", updateMask)
 33622  	return c
 33623  }
 33624  
 33625  // Fields allows partial responses to be retrieved. See
 33626  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33627  // details.
 33628  func (c *RegionsPatchCall) Fields(s ...googleapi.Field) *RegionsPatchCall {
 33629  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33630  	return c
 33631  }
 33632  
 33633  // Context sets the context to be used in this call's Do method.
 33634  func (c *RegionsPatchCall) Context(ctx context.Context) *RegionsPatchCall {
 33635  	c.ctx_ = ctx
 33636  	return c
 33637  }
 33638  
 33639  // Header returns a http.Header that can be modified by the caller to add
 33640  // headers to the request.
 33641  func (c *RegionsPatchCall) Header() http.Header {
 33642  	if c.header_ == nil {
 33643  		c.header_ = make(http.Header)
 33644  	}
 33645  	return c.header_
 33646  }
 33647  
 33648  func (c *RegionsPatchCall) doRequest(alt string) (*http.Response, error) {
 33649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33650  	var body io.Reader = nil
 33651  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.region)
 33652  	if err != nil {
 33653  		return nil, err
 33654  	}
 33655  	c.urlParams_.Set("alt", alt)
 33656  	c.urlParams_.Set("prettyPrint", "false")
 33657  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/regions/{regionId}")
 33658  	urls += "?" + c.urlParams_.Encode()
 33659  	req, err := http.NewRequest("PATCH", urls, body)
 33660  	if err != nil {
 33661  		return nil, err
 33662  	}
 33663  	req.Header = reqHeaders
 33664  	googleapi.Expand(req.URL, map[string]string{
 33665  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 33666  		"regionId":   c.regionId,
 33667  	})
 33668  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33669  }
 33670  
 33671  // Do executes the "content.regions.patch" call.
 33672  // Any non-2xx status code is an error. Response headers are in either
 33673  // *Region.ServerResponse.Header or (if a response was returned at all) in
 33674  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 33675  // whether the returned error was because http.StatusNotModified was returned.
 33676  func (c *RegionsPatchCall) Do(opts ...googleapi.CallOption) (*Region, error) {
 33677  	gensupport.SetOptions(c.urlParams_, opts...)
 33678  	res, err := c.doRequest("json")
 33679  	if res != nil && res.StatusCode == http.StatusNotModified {
 33680  		if res.Body != nil {
 33681  			res.Body.Close()
 33682  		}
 33683  		return nil, gensupport.WrapError(&googleapi.Error{
 33684  			Code:   res.StatusCode,
 33685  			Header: res.Header,
 33686  		})
 33687  	}
 33688  	if err != nil {
 33689  		return nil, err
 33690  	}
 33691  	defer googleapi.CloseBody(res)
 33692  	if err := googleapi.CheckResponse(res); err != nil {
 33693  		return nil, gensupport.WrapError(err)
 33694  	}
 33695  	ret := &Region{
 33696  		ServerResponse: googleapi.ServerResponse{
 33697  			Header:         res.Header,
 33698  			HTTPStatusCode: res.StatusCode,
 33699  		},
 33700  	}
 33701  	target := &ret
 33702  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33703  		return nil, err
 33704  	}
 33705  	return ret, nil
 33706  }
 33707  
 33708  type ReportsSearchCall struct {
 33709  	s             *APIService
 33710  	merchantId    int64
 33711  	searchrequest *SearchRequest
 33712  	urlParams_    gensupport.URLParams
 33713  	ctx_          context.Context
 33714  	header_       http.Header
 33715  }
 33716  
 33717  // Search: Retrieves merchant performance metrics matching the search query and
 33718  // optionally segmented by selected dimensions.
 33719  //
 33720  //   - merchantId: Id of the merchant making the call. Must be a standalone
 33721  //     account or an MCA subaccount.
 33722  func (r *ReportsService) Search(merchantId int64, searchrequest *SearchRequest) *ReportsSearchCall {
 33723  	c := &ReportsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33724  	c.merchantId = merchantId
 33725  	c.searchrequest = searchrequest
 33726  	return c
 33727  }
 33728  
 33729  // Fields allows partial responses to be retrieved. See
 33730  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33731  // details.
 33732  func (c *ReportsSearchCall) Fields(s ...googleapi.Field) *ReportsSearchCall {
 33733  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33734  	return c
 33735  }
 33736  
 33737  // Context sets the context to be used in this call's Do method.
 33738  func (c *ReportsSearchCall) Context(ctx context.Context) *ReportsSearchCall {
 33739  	c.ctx_ = ctx
 33740  	return c
 33741  }
 33742  
 33743  // Header returns a http.Header that can be modified by the caller to add
 33744  // headers to the request.
 33745  func (c *ReportsSearchCall) Header() http.Header {
 33746  	if c.header_ == nil {
 33747  		c.header_ = make(http.Header)
 33748  	}
 33749  	return c.header_
 33750  }
 33751  
 33752  func (c *ReportsSearchCall) doRequest(alt string) (*http.Response, error) {
 33753  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33754  	var body io.Reader = nil
 33755  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchrequest)
 33756  	if err != nil {
 33757  		return nil, err
 33758  	}
 33759  	c.urlParams_.Set("alt", alt)
 33760  	c.urlParams_.Set("prettyPrint", "false")
 33761  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/reports/search")
 33762  	urls += "?" + c.urlParams_.Encode()
 33763  	req, err := http.NewRequest("POST", urls, body)
 33764  	if err != nil {
 33765  		return nil, err
 33766  	}
 33767  	req.Header = reqHeaders
 33768  	googleapi.Expand(req.URL, map[string]string{
 33769  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 33770  	})
 33771  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33772  }
 33773  
 33774  // Do executes the "content.reports.search" call.
 33775  // Any non-2xx status code is an error. Response headers are in either
 33776  // *SearchResponse.ServerResponse.Header or (if a response was returned at all)
 33777  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 33778  // whether the returned error was because http.StatusNotModified was returned.
 33779  func (c *ReportsSearchCall) Do(opts ...googleapi.CallOption) (*SearchResponse, error) {
 33780  	gensupport.SetOptions(c.urlParams_, opts...)
 33781  	res, err := c.doRequest("json")
 33782  	if res != nil && res.StatusCode == http.StatusNotModified {
 33783  		if res.Body != nil {
 33784  			res.Body.Close()
 33785  		}
 33786  		return nil, gensupport.WrapError(&googleapi.Error{
 33787  			Code:   res.StatusCode,
 33788  			Header: res.Header,
 33789  		})
 33790  	}
 33791  	if err != nil {
 33792  		return nil, err
 33793  	}
 33794  	defer googleapi.CloseBody(res)
 33795  	if err := googleapi.CheckResponse(res); err != nil {
 33796  		return nil, gensupport.WrapError(err)
 33797  	}
 33798  	ret := &SearchResponse{
 33799  		ServerResponse: googleapi.ServerResponse{
 33800  			Header:         res.Header,
 33801  			HTTPStatusCode: res.StatusCode,
 33802  		},
 33803  	}
 33804  	target := &ret
 33805  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33806  		return nil, err
 33807  	}
 33808  	return ret, nil
 33809  }
 33810  
 33811  // Pages invokes f for each page of results.
 33812  // A non-nil error returned from f will halt the iteration.
 33813  // The provided context supersedes any context provided to the Context method.
 33814  func (c *ReportsSearchCall) Pages(ctx context.Context, f func(*SearchResponse) error) error {
 33815  	c.ctx_ = ctx
 33816  	defer func(pt string) { c.searchrequest.PageToken = pt }(c.searchrequest.PageToken)
 33817  	for {
 33818  		x, err := c.Do()
 33819  		if err != nil {
 33820  			return err
 33821  		}
 33822  		if err := f(x); err != nil {
 33823  			return err
 33824  		}
 33825  		if x.NextPageToken == "" {
 33826  			return nil
 33827  		}
 33828  		c.searchrequest.PageToken = x.NextPageToken
 33829  	}
 33830  }
 33831  
 33832  type ReturnaddressCustombatchCall struct {
 33833  	s                               *APIService
 33834  	returnaddresscustombatchrequest *ReturnaddressCustomBatchRequest
 33835  	urlParams_                      gensupport.URLParams
 33836  	ctx_                            context.Context
 33837  	header_                         http.Header
 33838  }
 33839  
 33840  // Custombatch: Batches multiple return address related calls in a single
 33841  // request.
 33842  func (r *ReturnaddressService) Custombatch(returnaddresscustombatchrequest *ReturnaddressCustomBatchRequest) *ReturnaddressCustombatchCall {
 33843  	c := &ReturnaddressCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33844  	c.returnaddresscustombatchrequest = returnaddresscustombatchrequest
 33845  	return c
 33846  }
 33847  
 33848  // Fields allows partial responses to be retrieved. See
 33849  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33850  // details.
 33851  func (c *ReturnaddressCustombatchCall) Fields(s ...googleapi.Field) *ReturnaddressCustombatchCall {
 33852  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33853  	return c
 33854  }
 33855  
 33856  // Context sets the context to be used in this call's Do method.
 33857  func (c *ReturnaddressCustombatchCall) Context(ctx context.Context) *ReturnaddressCustombatchCall {
 33858  	c.ctx_ = ctx
 33859  	return c
 33860  }
 33861  
 33862  // Header returns a http.Header that can be modified by the caller to add
 33863  // headers to the request.
 33864  func (c *ReturnaddressCustombatchCall) Header() http.Header {
 33865  	if c.header_ == nil {
 33866  		c.header_ = make(http.Header)
 33867  	}
 33868  	return c.header_
 33869  }
 33870  
 33871  func (c *ReturnaddressCustombatchCall) doRequest(alt string) (*http.Response, error) {
 33872  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33873  	var body io.Reader = nil
 33874  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnaddresscustombatchrequest)
 33875  	if err != nil {
 33876  		return nil, err
 33877  	}
 33878  	c.urlParams_.Set("alt", alt)
 33879  	c.urlParams_.Set("prettyPrint", "false")
 33880  	urls := googleapi.ResolveRelative(c.s.BasePath, "returnaddress/batch")
 33881  	urls += "?" + c.urlParams_.Encode()
 33882  	req, err := http.NewRequest("POST", urls, body)
 33883  	if err != nil {
 33884  		return nil, err
 33885  	}
 33886  	req.Header = reqHeaders
 33887  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33888  }
 33889  
 33890  // Do executes the "content.returnaddress.custombatch" call.
 33891  // Any non-2xx status code is an error. Response headers are in either
 33892  // *ReturnaddressCustomBatchResponse.ServerResponse.Header or (if a response
 33893  // was returned at all) in error.(*googleapi.Error).Header. Use
 33894  // googleapi.IsNotModified to check whether the returned error was because
 33895  // http.StatusNotModified was returned.
 33896  func (c *ReturnaddressCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnaddressCustomBatchResponse, error) {
 33897  	gensupport.SetOptions(c.urlParams_, opts...)
 33898  	res, err := c.doRequest("json")
 33899  	if res != nil && res.StatusCode == http.StatusNotModified {
 33900  		if res.Body != nil {
 33901  			res.Body.Close()
 33902  		}
 33903  		return nil, gensupport.WrapError(&googleapi.Error{
 33904  			Code:   res.StatusCode,
 33905  			Header: res.Header,
 33906  		})
 33907  	}
 33908  	if err != nil {
 33909  		return nil, err
 33910  	}
 33911  	defer googleapi.CloseBody(res)
 33912  	if err := googleapi.CheckResponse(res); err != nil {
 33913  		return nil, gensupport.WrapError(err)
 33914  	}
 33915  	ret := &ReturnaddressCustomBatchResponse{
 33916  		ServerResponse: googleapi.ServerResponse{
 33917  			Header:         res.Header,
 33918  			HTTPStatusCode: res.StatusCode,
 33919  		},
 33920  	}
 33921  	target := &ret
 33922  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33923  		return nil, err
 33924  	}
 33925  	return ret, nil
 33926  }
 33927  
 33928  type ReturnaddressDeleteCall struct {
 33929  	s               *APIService
 33930  	merchantId      uint64
 33931  	returnAddressId string
 33932  	urlParams_      gensupport.URLParams
 33933  	ctx_            context.Context
 33934  	header_         http.Header
 33935  }
 33936  
 33937  // Delete: Deletes a return address for the given Merchant Center account.
 33938  //
 33939  //   - merchantId: The Merchant Center account from which to delete the given
 33940  //     return address.
 33941  //   - returnAddressId: Return address ID generated by Google.
 33942  func (r *ReturnaddressService) Delete(merchantId uint64, returnAddressId string) *ReturnaddressDeleteCall {
 33943  	c := &ReturnaddressDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33944  	c.merchantId = merchantId
 33945  	c.returnAddressId = returnAddressId
 33946  	return c
 33947  }
 33948  
 33949  // Fields allows partial responses to be retrieved. See
 33950  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33951  // details.
 33952  func (c *ReturnaddressDeleteCall) Fields(s ...googleapi.Field) *ReturnaddressDeleteCall {
 33953  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33954  	return c
 33955  }
 33956  
 33957  // Context sets the context to be used in this call's Do method.
 33958  func (c *ReturnaddressDeleteCall) Context(ctx context.Context) *ReturnaddressDeleteCall {
 33959  	c.ctx_ = ctx
 33960  	return c
 33961  }
 33962  
 33963  // Header returns a http.Header that can be modified by the caller to add
 33964  // headers to the request.
 33965  func (c *ReturnaddressDeleteCall) Header() http.Header {
 33966  	if c.header_ == nil {
 33967  		c.header_ = make(http.Header)
 33968  	}
 33969  	return c.header_
 33970  }
 33971  
 33972  func (c *ReturnaddressDeleteCall) doRequest(alt string) (*http.Response, error) {
 33973  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33974  	var body io.Reader = nil
 33975  	c.urlParams_.Set("alt", alt)
 33976  	c.urlParams_.Set("prettyPrint", "false")
 33977  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress/{returnAddressId}")
 33978  	urls += "?" + c.urlParams_.Encode()
 33979  	req, err := http.NewRequest("DELETE", urls, body)
 33980  	if err != nil {
 33981  		return nil, err
 33982  	}
 33983  	req.Header = reqHeaders
 33984  	googleapi.Expand(req.URL, map[string]string{
 33985  		"merchantId":      strconv.FormatUint(c.merchantId, 10),
 33986  		"returnAddressId": c.returnAddressId,
 33987  	})
 33988  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33989  }
 33990  
 33991  // Do executes the "content.returnaddress.delete" call.
 33992  func (c *ReturnaddressDeleteCall) Do(opts ...googleapi.CallOption) error {
 33993  	gensupport.SetOptions(c.urlParams_, opts...)
 33994  	res, err := c.doRequest("json")
 33995  	if err != nil {
 33996  		return err
 33997  	}
 33998  	defer googleapi.CloseBody(res)
 33999  	if err := googleapi.CheckResponse(res); err != nil {
 34000  		return gensupport.WrapError(err)
 34001  	}
 34002  	return nil
 34003  }
 34004  
 34005  type ReturnaddressGetCall struct {
 34006  	s               *APIService
 34007  	merchantId      uint64
 34008  	returnAddressId string
 34009  	urlParams_      gensupport.URLParams
 34010  	ifNoneMatch_    string
 34011  	ctx_            context.Context
 34012  	header_         http.Header
 34013  }
 34014  
 34015  // Get: Gets a return address of the Merchant Center account.
 34016  //
 34017  // - merchantId: The Merchant Center account to get a return address for.
 34018  // - returnAddressId: Return address ID generated by Google.
 34019  func (r *ReturnaddressService) Get(merchantId uint64, returnAddressId string) *ReturnaddressGetCall {
 34020  	c := &ReturnaddressGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34021  	c.merchantId = merchantId
 34022  	c.returnAddressId = returnAddressId
 34023  	return c
 34024  }
 34025  
 34026  // Fields allows partial responses to be retrieved. See
 34027  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34028  // details.
 34029  func (c *ReturnaddressGetCall) Fields(s ...googleapi.Field) *ReturnaddressGetCall {
 34030  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34031  	return c
 34032  }
 34033  
 34034  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34035  // object's ETag matches the given value. This is useful for getting updates
 34036  // only after the object has changed since the last request.
 34037  func (c *ReturnaddressGetCall) IfNoneMatch(entityTag string) *ReturnaddressGetCall {
 34038  	c.ifNoneMatch_ = entityTag
 34039  	return c
 34040  }
 34041  
 34042  // Context sets the context to be used in this call's Do method.
 34043  func (c *ReturnaddressGetCall) Context(ctx context.Context) *ReturnaddressGetCall {
 34044  	c.ctx_ = ctx
 34045  	return c
 34046  }
 34047  
 34048  // Header returns a http.Header that can be modified by the caller to add
 34049  // headers to the request.
 34050  func (c *ReturnaddressGetCall) Header() http.Header {
 34051  	if c.header_ == nil {
 34052  		c.header_ = make(http.Header)
 34053  	}
 34054  	return c.header_
 34055  }
 34056  
 34057  func (c *ReturnaddressGetCall) doRequest(alt string) (*http.Response, error) {
 34058  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34059  	if c.ifNoneMatch_ != "" {
 34060  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34061  	}
 34062  	var body io.Reader = nil
 34063  	c.urlParams_.Set("alt", alt)
 34064  	c.urlParams_.Set("prettyPrint", "false")
 34065  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress/{returnAddressId}")
 34066  	urls += "?" + c.urlParams_.Encode()
 34067  	req, err := http.NewRequest("GET", urls, body)
 34068  	if err != nil {
 34069  		return nil, err
 34070  	}
 34071  	req.Header = reqHeaders
 34072  	googleapi.Expand(req.URL, map[string]string{
 34073  		"merchantId":      strconv.FormatUint(c.merchantId, 10),
 34074  		"returnAddressId": c.returnAddressId,
 34075  	})
 34076  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34077  }
 34078  
 34079  // Do executes the "content.returnaddress.get" call.
 34080  // Any non-2xx status code is an error. Response headers are in either
 34081  // *ReturnAddress.ServerResponse.Header or (if a response was returned at all)
 34082  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 34083  // whether the returned error was because http.StatusNotModified was returned.
 34084  func (c *ReturnaddressGetCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error) {
 34085  	gensupport.SetOptions(c.urlParams_, opts...)
 34086  	res, err := c.doRequest("json")
 34087  	if res != nil && res.StatusCode == http.StatusNotModified {
 34088  		if res.Body != nil {
 34089  			res.Body.Close()
 34090  		}
 34091  		return nil, gensupport.WrapError(&googleapi.Error{
 34092  			Code:   res.StatusCode,
 34093  			Header: res.Header,
 34094  		})
 34095  	}
 34096  	if err != nil {
 34097  		return nil, err
 34098  	}
 34099  	defer googleapi.CloseBody(res)
 34100  	if err := googleapi.CheckResponse(res); err != nil {
 34101  		return nil, gensupport.WrapError(err)
 34102  	}
 34103  	ret := &ReturnAddress{
 34104  		ServerResponse: googleapi.ServerResponse{
 34105  			Header:         res.Header,
 34106  			HTTPStatusCode: res.StatusCode,
 34107  		},
 34108  	}
 34109  	target := &ret
 34110  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34111  		return nil, err
 34112  	}
 34113  	return ret, nil
 34114  }
 34115  
 34116  type ReturnaddressInsertCall struct {
 34117  	s             *APIService
 34118  	merchantId    uint64
 34119  	returnaddress *ReturnAddress
 34120  	urlParams_    gensupport.URLParams
 34121  	ctx_          context.Context
 34122  	header_       http.Header
 34123  }
 34124  
 34125  // Insert: Inserts a return address for the Merchant Center account.
 34126  //
 34127  // - merchantId: The Merchant Center account to insert a return address for.
 34128  func (r *ReturnaddressService) Insert(merchantId uint64, returnaddress *ReturnAddress) *ReturnaddressInsertCall {
 34129  	c := &ReturnaddressInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34130  	c.merchantId = merchantId
 34131  	c.returnaddress = returnaddress
 34132  	return c
 34133  }
 34134  
 34135  // Fields allows partial responses to be retrieved. See
 34136  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34137  // details.
 34138  func (c *ReturnaddressInsertCall) Fields(s ...googleapi.Field) *ReturnaddressInsertCall {
 34139  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34140  	return c
 34141  }
 34142  
 34143  // Context sets the context to be used in this call's Do method.
 34144  func (c *ReturnaddressInsertCall) Context(ctx context.Context) *ReturnaddressInsertCall {
 34145  	c.ctx_ = ctx
 34146  	return c
 34147  }
 34148  
 34149  // Header returns a http.Header that can be modified by the caller to add
 34150  // headers to the request.
 34151  func (c *ReturnaddressInsertCall) Header() http.Header {
 34152  	if c.header_ == nil {
 34153  		c.header_ = make(http.Header)
 34154  	}
 34155  	return c.header_
 34156  }
 34157  
 34158  func (c *ReturnaddressInsertCall) doRequest(alt string) (*http.Response, error) {
 34159  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34160  	var body io.Reader = nil
 34161  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnaddress)
 34162  	if err != nil {
 34163  		return nil, err
 34164  	}
 34165  	c.urlParams_.Set("alt", alt)
 34166  	c.urlParams_.Set("prettyPrint", "false")
 34167  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress")
 34168  	urls += "?" + c.urlParams_.Encode()
 34169  	req, err := http.NewRequest("POST", urls, body)
 34170  	if err != nil {
 34171  		return nil, err
 34172  	}
 34173  	req.Header = reqHeaders
 34174  	googleapi.Expand(req.URL, map[string]string{
 34175  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 34176  	})
 34177  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34178  }
 34179  
 34180  // Do executes the "content.returnaddress.insert" call.
 34181  // Any non-2xx status code is an error. Response headers are in either
 34182  // *ReturnAddress.ServerResponse.Header or (if a response was returned at all)
 34183  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 34184  // whether the returned error was because http.StatusNotModified was returned.
 34185  func (c *ReturnaddressInsertCall) Do(opts ...googleapi.CallOption) (*ReturnAddress, error) {
 34186  	gensupport.SetOptions(c.urlParams_, opts...)
 34187  	res, err := c.doRequest("json")
 34188  	if res != nil && res.StatusCode == http.StatusNotModified {
 34189  		if res.Body != nil {
 34190  			res.Body.Close()
 34191  		}
 34192  		return nil, gensupport.WrapError(&googleapi.Error{
 34193  			Code:   res.StatusCode,
 34194  			Header: res.Header,
 34195  		})
 34196  	}
 34197  	if err != nil {
 34198  		return nil, err
 34199  	}
 34200  	defer googleapi.CloseBody(res)
 34201  	if err := googleapi.CheckResponse(res); err != nil {
 34202  		return nil, gensupport.WrapError(err)
 34203  	}
 34204  	ret := &ReturnAddress{
 34205  		ServerResponse: googleapi.ServerResponse{
 34206  			Header:         res.Header,
 34207  			HTTPStatusCode: res.StatusCode,
 34208  		},
 34209  	}
 34210  	target := &ret
 34211  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34212  		return nil, err
 34213  	}
 34214  	return ret, nil
 34215  }
 34216  
 34217  type ReturnaddressListCall struct {
 34218  	s            *APIService
 34219  	merchantId   uint64
 34220  	urlParams_   gensupport.URLParams
 34221  	ifNoneMatch_ string
 34222  	ctx_         context.Context
 34223  	header_      http.Header
 34224  }
 34225  
 34226  // List: Lists the return addresses of the Merchant Center account.
 34227  //
 34228  // - merchantId: The Merchant Center account to list return addresses for.
 34229  func (r *ReturnaddressService) List(merchantId uint64) *ReturnaddressListCall {
 34230  	c := &ReturnaddressListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34231  	c.merchantId = merchantId
 34232  	return c
 34233  }
 34234  
 34235  // Country sets the optional parameter "country": List only return addresses
 34236  // applicable to the given country of sale. When omitted, all return addresses
 34237  // are listed.
 34238  func (c *ReturnaddressListCall) Country(country string) *ReturnaddressListCall {
 34239  	c.urlParams_.Set("country", country)
 34240  	return c
 34241  }
 34242  
 34243  // MaxResults sets the optional parameter "maxResults": The maximum number of
 34244  // addresses in the response, used for paging.
 34245  func (c *ReturnaddressListCall) MaxResults(maxResults int64) *ReturnaddressListCall {
 34246  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 34247  	return c
 34248  }
 34249  
 34250  // PageToken sets the optional parameter "pageToken": The token returned by the
 34251  // previous request.
 34252  func (c *ReturnaddressListCall) PageToken(pageToken string) *ReturnaddressListCall {
 34253  	c.urlParams_.Set("pageToken", pageToken)
 34254  	return c
 34255  }
 34256  
 34257  // Fields allows partial responses to be retrieved. See
 34258  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34259  // details.
 34260  func (c *ReturnaddressListCall) Fields(s ...googleapi.Field) *ReturnaddressListCall {
 34261  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34262  	return c
 34263  }
 34264  
 34265  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34266  // object's ETag matches the given value. This is useful for getting updates
 34267  // only after the object has changed since the last request.
 34268  func (c *ReturnaddressListCall) IfNoneMatch(entityTag string) *ReturnaddressListCall {
 34269  	c.ifNoneMatch_ = entityTag
 34270  	return c
 34271  }
 34272  
 34273  // Context sets the context to be used in this call's Do method.
 34274  func (c *ReturnaddressListCall) Context(ctx context.Context) *ReturnaddressListCall {
 34275  	c.ctx_ = ctx
 34276  	return c
 34277  }
 34278  
 34279  // Header returns a http.Header that can be modified by the caller to add
 34280  // headers to the request.
 34281  func (c *ReturnaddressListCall) Header() http.Header {
 34282  	if c.header_ == nil {
 34283  		c.header_ = make(http.Header)
 34284  	}
 34285  	return c.header_
 34286  }
 34287  
 34288  func (c *ReturnaddressListCall) doRequest(alt string) (*http.Response, error) {
 34289  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34290  	if c.ifNoneMatch_ != "" {
 34291  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34292  	}
 34293  	var body io.Reader = nil
 34294  	c.urlParams_.Set("alt", alt)
 34295  	c.urlParams_.Set("prettyPrint", "false")
 34296  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnaddress")
 34297  	urls += "?" + c.urlParams_.Encode()
 34298  	req, err := http.NewRequest("GET", urls, body)
 34299  	if err != nil {
 34300  		return nil, err
 34301  	}
 34302  	req.Header = reqHeaders
 34303  	googleapi.Expand(req.URL, map[string]string{
 34304  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 34305  	})
 34306  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34307  }
 34308  
 34309  // Do executes the "content.returnaddress.list" call.
 34310  // Any non-2xx status code is an error. Response headers are in either
 34311  // *ReturnaddressListResponse.ServerResponse.Header or (if a response was
 34312  // returned at all) in error.(*googleapi.Error).Header. Use
 34313  // googleapi.IsNotModified to check whether the returned error was because
 34314  // http.StatusNotModified was returned.
 34315  func (c *ReturnaddressListCall) Do(opts ...googleapi.CallOption) (*ReturnaddressListResponse, error) {
 34316  	gensupport.SetOptions(c.urlParams_, opts...)
 34317  	res, err := c.doRequest("json")
 34318  	if res != nil && res.StatusCode == http.StatusNotModified {
 34319  		if res.Body != nil {
 34320  			res.Body.Close()
 34321  		}
 34322  		return nil, gensupport.WrapError(&googleapi.Error{
 34323  			Code:   res.StatusCode,
 34324  			Header: res.Header,
 34325  		})
 34326  	}
 34327  	if err != nil {
 34328  		return nil, err
 34329  	}
 34330  	defer googleapi.CloseBody(res)
 34331  	if err := googleapi.CheckResponse(res); err != nil {
 34332  		return nil, gensupport.WrapError(err)
 34333  	}
 34334  	ret := &ReturnaddressListResponse{
 34335  		ServerResponse: googleapi.ServerResponse{
 34336  			Header:         res.Header,
 34337  			HTTPStatusCode: res.StatusCode,
 34338  		},
 34339  	}
 34340  	target := &ret
 34341  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34342  		return nil, err
 34343  	}
 34344  	return ret, nil
 34345  }
 34346  
 34347  // Pages invokes f for each page of results.
 34348  // A non-nil error returned from f will halt the iteration.
 34349  // The provided context supersedes any context provided to the Context method.
 34350  func (c *ReturnaddressListCall) Pages(ctx context.Context, f func(*ReturnaddressListResponse) error) error {
 34351  	c.ctx_ = ctx
 34352  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 34353  	for {
 34354  		x, err := c.Do()
 34355  		if err != nil {
 34356  			return err
 34357  		}
 34358  		if err := f(x); err != nil {
 34359  			return err
 34360  		}
 34361  		if x.NextPageToken == "" {
 34362  			return nil
 34363  		}
 34364  		c.PageToken(x.NextPageToken)
 34365  	}
 34366  }
 34367  
 34368  type ReturnpolicyCustombatchCall struct {
 34369  	s                              *APIService
 34370  	returnpolicycustombatchrequest *ReturnpolicyCustomBatchRequest
 34371  	urlParams_                     gensupport.URLParams
 34372  	ctx_                           context.Context
 34373  	header_                        http.Header
 34374  }
 34375  
 34376  // Custombatch: Batches multiple return policy related calls in a single
 34377  // request.
 34378  func (r *ReturnpolicyService) Custombatch(returnpolicycustombatchrequest *ReturnpolicyCustomBatchRequest) *ReturnpolicyCustombatchCall {
 34379  	c := &ReturnpolicyCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34380  	c.returnpolicycustombatchrequest = returnpolicycustombatchrequest
 34381  	return c
 34382  }
 34383  
 34384  // Fields allows partial responses to be retrieved. See
 34385  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34386  // details.
 34387  func (c *ReturnpolicyCustombatchCall) Fields(s ...googleapi.Field) *ReturnpolicyCustombatchCall {
 34388  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34389  	return c
 34390  }
 34391  
 34392  // Context sets the context to be used in this call's Do method.
 34393  func (c *ReturnpolicyCustombatchCall) Context(ctx context.Context) *ReturnpolicyCustombatchCall {
 34394  	c.ctx_ = ctx
 34395  	return c
 34396  }
 34397  
 34398  // Header returns a http.Header that can be modified by the caller to add
 34399  // headers to the request.
 34400  func (c *ReturnpolicyCustombatchCall) Header() http.Header {
 34401  	if c.header_ == nil {
 34402  		c.header_ = make(http.Header)
 34403  	}
 34404  	return c.header_
 34405  }
 34406  
 34407  func (c *ReturnpolicyCustombatchCall) doRequest(alt string) (*http.Response, error) {
 34408  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34409  	var body io.Reader = nil
 34410  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicycustombatchrequest)
 34411  	if err != nil {
 34412  		return nil, err
 34413  	}
 34414  	c.urlParams_.Set("alt", alt)
 34415  	c.urlParams_.Set("prettyPrint", "false")
 34416  	urls := googleapi.ResolveRelative(c.s.BasePath, "returnpolicy/batch")
 34417  	urls += "?" + c.urlParams_.Encode()
 34418  	req, err := http.NewRequest("POST", urls, body)
 34419  	if err != nil {
 34420  		return nil, err
 34421  	}
 34422  	req.Header = reqHeaders
 34423  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34424  }
 34425  
 34426  // Do executes the "content.returnpolicy.custombatch" call.
 34427  // Any non-2xx status code is an error. Response headers are in either
 34428  // *ReturnpolicyCustomBatchResponse.ServerResponse.Header or (if a response was
 34429  // returned at all) in error.(*googleapi.Error).Header. Use
 34430  // googleapi.IsNotModified to check whether the returned error was because
 34431  // http.StatusNotModified was returned.
 34432  func (c *ReturnpolicyCustombatchCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyCustomBatchResponse, error) {
 34433  	gensupport.SetOptions(c.urlParams_, opts...)
 34434  	res, err := c.doRequest("json")
 34435  	if res != nil && res.StatusCode == http.StatusNotModified {
 34436  		if res.Body != nil {
 34437  			res.Body.Close()
 34438  		}
 34439  		return nil, gensupport.WrapError(&googleapi.Error{
 34440  			Code:   res.StatusCode,
 34441  			Header: res.Header,
 34442  		})
 34443  	}
 34444  	if err != nil {
 34445  		return nil, err
 34446  	}
 34447  	defer googleapi.CloseBody(res)
 34448  	if err := googleapi.CheckResponse(res); err != nil {
 34449  		return nil, gensupport.WrapError(err)
 34450  	}
 34451  	ret := &ReturnpolicyCustomBatchResponse{
 34452  		ServerResponse: googleapi.ServerResponse{
 34453  			Header:         res.Header,
 34454  			HTTPStatusCode: res.StatusCode,
 34455  		},
 34456  	}
 34457  	target := &ret
 34458  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34459  		return nil, err
 34460  	}
 34461  	return ret, nil
 34462  }
 34463  
 34464  type ReturnpolicyDeleteCall struct {
 34465  	s              *APIService
 34466  	merchantId     uint64
 34467  	returnPolicyId string
 34468  	urlParams_     gensupport.URLParams
 34469  	ctx_           context.Context
 34470  	header_        http.Header
 34471  }
 34472  
 34473  // Delete: Deletes a return policy for the given Merchant Center account.
 34474  //
 34475  //   - merchantId: The Merchant Center account from which to delete the given
 34476  //     return policy.
 34477  //   - returnPolicyId: Return policy ID generated by Google.
 34478  func (r *ReturnpolicyService) Delete(merchantId uint64, returnPolicyId string) *ReturnpolicyDeleteCall {
 34479  	c := &ReturnpolicyDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34480  	c.merchantId = merchantId
 34481  	c.returnPolicyId = returnPolicyId
 34482  	return c
 34483  }
 34484  
 34485  // Fields allows partial responses to be retrieved. See
 34486  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34487  // details.
 34488  func (c *ReturnpolicyDeleteCall) Fields(s ...googleapi.Field) *ReturnpolicyDeleteCall {
 34489  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34490  	return c
 34491  }
 34492  
 34493  // Context sets the context to be used in this call's Do method.
 34494  func (c *ReturnpolicyDeleteCall) Context(ctx context.Context) *ReturnpolicyDeleteCall {
 34495  	c.ctx_ = ctx
 34496  	return c
 34497  }
 34498  
 34499  // Header returns a http.Header that can be modified by the caller to add
 34500  // headers to the request.
 34501  func (c *ReturnpolicyDeleteCall) Header() http.Header {
 34502  	if c.header_ == nil {
 34503  		c.header_ = make(http.Header)
 34504  	}
 34505  	return c.header_
 34506  }
 34507  
 34508  func (c *ReturnpolicyDeleteCall) doRequest(alt string) (*http.Response, error) {
 34509  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34510  	var body io.Reader = nil
 34511  	c.urlParams_.Set("alt", alt)
 34512  	c.urlParams_.Set("prettyPrint", "false")
 34513  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy/{returnPolicyId}")
 34514  	urls += "?" + c.urlParams_.Encode()
 34515  	req, err := http.NewRequest("DELETE", urls, body)
 34516  	if err != nil {
 34517  		return nil, err
 34518  	}
 34519  	req.Header = reqHeaders
 34520  	googleapi.Expand(req.URL, map[string]string{
 34521  		"merchantId":     strconv.FormatUint(c.merchantId, 10),
 34522  		"returnPolicyId": c.returnPolicyId,
 34523  	})
 34524  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34525  }
 34526  
 34527  // Do executes the "content.returnpolicy.delete" call.
 34528  func (c *ReturnpolicyDeleteCall) Do(opts ...googleapi.CallOption) error {
 34529  	gensupport.SetOptions(c.urlParams_, opts...)
 34530  	res, err := c.doRequest("json")
 34531  	if err != nil {
 34532  		return err
 34533  	}
 34534  	defer googleapi.CloseBody(res)
 34535  	if err := googleapi.CheckResponse(res); err != nil {
 34536  		return gensupport.WrapError(err)
 34537  	}
 34538  	return nil
 34539  }
 34540  
 34541  type ReturnpolicyGetCall struct {
 34542  	s              *APIService
 34543  	merchantId     uint64
 34544  	returnPolicyId string
 34545  	urlParams_     gensupport.URLParams
 34546  	ifNoneMatch_   string
 34547  	ctx_           context.Context
 34548  	header_        http.Header
 34549  }
 34550  
 34551  // Get: Gets a return policy of the Merchant Center account.
 34552  //
 34553  // - merchantId: The Merchant Center account to get a return policy for.
 34554  // - returnPolicyId: Return policy ID generated by Google.
 34555  func (r *ReturnpolicyService) Get(merchantId uint64, returnPolicyId string) *ReturnpolicyGetCall {
 34556  	c := &ReturnpolicyGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34557  	c.merchantId = merchantId
 34558  	c.returnPolicyId = returnPolicyId
 34559  	return c
 34560  }
 34561  
 34562  // Fields allows partial responses to be retrieved. See
 34563  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34564  // details.
 34565  func (c *ReturnpolicyGetCall) Fields(s ...googleapi.Field) *ReturnpolicyGetCall {
 34566  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34567  	return c
 34568  }
 34569  
 34570  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34571  // object's ETag matches the given value. This is useful for getting updates
 34572  // only after the object has changed since the last request.
 34573  func (c *ReturnpolicyGetCall) IfNoneMatch(entityTag string) *ReturnpolicyGetCall {
 34574  	c.ifNoneMatch_ = entityTag
 34575  	return c
 34576  }
 34577  
 34578  // Context sets the context to be used in this call's Do method.
 34579  func (c *ReturnpolicyGetCall) Context(ctx context.Context) *ReturnpolicyGetCall {
 34580  	c.ctx_ = ctx
 34581  	return c
 34582  }
 34583  
 34584  // Header returns a http.Header that can be modified by the caller to add
 34585  // headers to the request.
 34586  func (c *ReturnpolicyGetCall) Header() http.Header {
 34587  	if c.header_ == nil {
 34588  		c.header_ = make(http.Header)
 34589  	}
 34590  	return c.header_
 34591  }
 34592  
 34593  func (c *ReturnpolicyGetCall) doRequest(alt string) (*http.Response, error) {
 34594  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34595  	if c.ifNoneMatch_ != "" {
 34596  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34597  	}
 34598  	var body io.Reader = nil
 34599  	c.urlParams_.Set("alt", alt)
 34600  	c.urlParams_.Set("prettyPrint", "false")
 34601  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy/{returnPolicyId}")
 34602  	urls += "?" + c.urlParams_.Encode()
 34603  	req, err := http.NewRequest("GET", urls, body)
 34604  	if err != nil {
 34605  		return nil, err
 34606  	}
 34607  	req.Header = reqHeaders
 34608  	googleapi.Expand(req.URL, map[string]string{
 34609  		"merchantId":     strconv.FormatUint(c.merchantId, 10),
 34610  		"returnPolicyId": c.returnPolicyId,
 34611  	})
 34612  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34613  }
 34614  
 34615  // Do executes the "content.returnpolicy.get" call.
 34616  // Any non-2xx status code is an error. Response headers are in either
 34617  // *ReturnPolicy.ServerResponse.Header or (if a response was returned at all)
 34618  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 34619  // whether the returned error was because http.StatusNotModified was returned.
 34620  func (c *ReturnpolicyGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error) {
 34621  	gensupport.SetOptions(c.urlParams_, opts...)
 34622  	res, err := c.doRequest("json")
 34623  	if res != nil && res.StatusCode == http.StatusNotModified {
 34624  		if res.Body != nil {
 34625  			res.Body.Close()
 34626  		}
 34627  		return nil, gensupport.WrapError(&googleapi.Error{
 34628  			Code:   res.StatusCode,
 34629  			Header: res.Header,
 34630  		})
 34631  	}
 34632  	if err != nil {
 34633  		return nil, err
 34634  	}
 34635  	defer googleapi.CloseBody(res)
 34636  	if err := googleapi.CheckResponse(res); err != nil {
 34637  		return nil, gensupport.WrapError(err)
 34638  	}
 34639  	ret := &ReturnPolicy{
 34640  		ServerResponse: googleapi.ServerResponse{
 34641  			Header:         res.Header,
 34642  			HTTPStatusCode: res.StatusCode,
 34643  		},
 34644  	}
 34645  	target := &ret
 34646  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34647  		return nil, err
 34648  	}
 34649  	return ret, nil
 34650  }
 34651  
 34652  type ReturnpolicyInsertCall struct {
 34653  	s            *APIService
 34654  	merchantId   uint64
 34655  	returnpolicy *ReturnPolicy
 34656  	urlParams_   gensupport.URLParams
 34657  	ctx_         context.Context
 34658  	header_      http.Header
 34659  }
 34660  
 34661  // Insert: Inserts a return policy for the Merchant Center account.
 34662  //
 34663  // - merchantId: The Merchant Center account to insert a return policy for.
 34664  func (r *ReturnpolicyService) Insert(merchantId uint64, returnpolicy *ReturnPolicy) *ReturnpolicyInsertCall {
 34665  	c := &ReturnpolicyInsertCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34666  	c.merchantId = merchantId
 34667  	c.returnpolicy = returnpolicy
 34668  	return c
 34669  }
 34670  
 34671  // Fields allows partial responses to be retrieved. See
 34672  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34673  // details.
 34674  func (c *ReturnpolicyInsertCall) Fields(s ...googleapi.Field) *ReturnpolicyInsertCall {
 34675  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34676  	return c
 34677  }
 34678  
 34679  // Context sets the context to be used in this call's Do method.
 34680  func (c *ReturnpolicyInsertCall) Context(ctx context.Context) *ReturnpolicyInsertCall {
 34681  	c.ctx_ = ctx
 34682  	return c
 34683  }
 34684  
 34685  // Header returns a http.Header that can be modified by the caller to add
 34686  // headers to the request.
 34687  func (c *ReturnpolicyInsertCall) Header() http.Header {
 34688  	if c.header_ == nil {
 34689  		c.header_ = make(http.Header)
 34690  	}
 34691  	return c.header_
 34692  }
 34693  
 34694  func (c *ReturnpolicyInsertCall) doRequest(alt string) (*http.Response, error) {
 34695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34696  	var body io.Reader = nil
 34697  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicy)
 34698  	if err != nil {
 34699  		return nil, err
 34700  	}
 34701  	c.urlParams_.Set("alt", alt)
 34702  	c.urlParams_.Set("prettyPrint", "false")
 34703  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy")
 34704  	urls += "?" + c.urlParams_.Encode()
 34705  	req, err := http.NewRequest("POST", urls, body)
 34706  	if err != nil {
 34707  		return nil, err
 34708  	}
 34709  	req.Header = reqHeaders
 34710  	googleapi.Expand(req.URL, map[string]string{
 34711  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 34712  	})
 34713  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34714  }
 34715  
 34716  // Do executes the "content.returnpolicy.insert" call.
 34717  // Any non-2xx status code is an error. Response headers are in either
 34718  // *ReturnPolicy.ServerResponse.Header or (if a response was returned at all)
 34719  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 34720  // whether the returned error was because http.StatusNotModified was returned.
 34721  func (c *ReturnpolicyInsertCall) Do(opts ...googleapi.CallOption) (*ReturnPolicy, error) {
 34722  	gensupport.SetOptions(c.urlParams_, opts...)
 34723  	res, err := c.doRequest("json")
 34724  	if res != nil && res.StatusCode == http.StatusNotModified {
 34725  		if res.Body != nil {
 34726  			res.Body.Close()
 34727  		}
 34728  		return nil, gensupport.WrapError(&googleapi.Error{
 34729  			Code:   res.StatusCode,
 34730  			Header: res.Header,
 34731  		})
 34732  	}
 34733  	if err != nil {
 34734  		return nil, err
 34735  	}
 34736  	defer googleapi.CloseBody(res)
 34737  	if err := googleapi.CheckResponse(res); err != nil {
 34738  		return nil, gensupport.WrapError(err)
 34739  	}
 34740  	ret := &ReturnPolicy{
 34741  		ServerResponse: googleapi.ServerResponse{
 34742  			Header:         res.Header,
 34743  			HTTPStatusCode: res.StatusCode,
 34744  		},
 34745  	}
 34746  	target := &ret
 34747  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34748  		return nil, err
 34749  	}
 34750  	return ret, nil
 34751  }
 34752  
 34753  type ReturnpolicyListCall struct {
 34754  	s            *APIService
 34755  	merchantId   uint64
 34756  	urlParams_   gensupport.URLParams
 34757  	ifNoneMatch_ string
 34758  	ctx_         context.Context
 34759  	header_      http.Header
 34760  }
 34761  
 34762  // List: Lists the return policies of the Merchant Center account.
 34763  //
 34764  // - merchantId: The Merchant Center account to list return policies for.
 34765  func (r *ReturnpolicyService) List(merchantId uint64) *ReturnpolicyListCall {
 34766  	c := &ReturnpolicyListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34767  	c.merchantId = merchantId
 34768  	return c
 34769  }
 34770  
 34771  // Fields allows partial responses to be retrieved. See
 34772  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34773  // details.
 34774  func (c *ReturnpolicyListCall) Fields(s ...googleapi.Field) *ReturnpolicyListCall {
 34775  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34776  	return c
 34777  }
 34778  
 34779  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34780  // object's ETag matches the given value. This is useful for getting updates
 34781  // only after the object has changed since the last request.
 34782  func (c *ReturnpolicyListCall) IfNoneMatch(entityTag string) *ReturnpolicyListCall {
 34783  	c.ifNoneMatch_ = entityTag
 34784  	return c
 34785  }
 34786  
 34787  // Context sets the context to be used in this call's Do method.
 34788  func (c *ReturnpolicyListCall) Context(ctx context.Context) *ReturnpolicyListCall {
 34789  	c.ctx_ = ctx
 34790  	return c
 34791  }
 34792  
 34793  // Header returns a http.Header that can be modified by the caller to add
 34794  // headers to the request.
 34795  func (c *ReturnpolicyListCall) Header() http.Header {
 34796  	if c.header_ == nil {
 34797  		c.header_ = make(http.Header)
 34798  	}
 34799  	return c.header_
 34800  }
 34801  
 34802  func (c *ReturnpolicyListCall) doRequest(alt string) (*http.Response, error) {
 34803  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34804  	if c.ifNoneMatch_ != "" {
 34805  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34806  	}
 34807  	var body io.Reader = nil
 34808  	c.urlParams_.Set("alt", alt)
 34809  	c.urlParams_.Set("prettyPrint", "false")
 34810  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicy")
 34811  	urls += "?" + c.urlParams_.Encode()
 34812  	req, err := http.NewRequest("GET", urls, body)
 34813  	if err != nil {
 34814  		return nil, err
 34815  	}
 34816  	req.Header = reqHeaders
 34817  	googleapi.Expand(req.URL, map[string]string{
 34818  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 34819  	})
 34820  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34821  }
 34822  
 34823  // Do executes the "content.returnpolicy.list" call.
 34824  // Any non-2xx status code is an error. Response headers are in either
 34825  // *ReturnpolicyListResponse.ServerResponse.Header or (if a response was
 34826  // returned at all) in error.(*googleapi.Error).Header. Use
 34827  // googleapi.IsNotModified to check whether the returned error was because
 34828  // http.StatusNotModified was returned.
 34829  func (c *ReturnpolicyListCall) Do(opts ...googleapi.CallOption) (*ReturnpolicyListResponse, error) {
 34830  	gensupport.SetOptions(c.urlParams_, opts...)
 34831  	res, err := c.doRequest("json")
 34832  	if res != nil && res.StatusCode == http.StatusNotModified {
 34833  		if res.Body != nil {
 34834  			res.Body.Close()
 34835  		}
 34836  		return nil, gensupport.WrapError(&googleapi.Error{
 34837  			Code:   res.StatusCode,
 34838  			Header: res.Header,
 34839  		})
 34840  	}
 34841  	if err != nil {
 34842  		return nil, err
 34843  	}
 34844  	defer googleapi.CloseBody(res)
 34845  	if err := googleapi.CheckResponse(res); err != nil {
 34846  		return nil, gensupport.WrapError(err)
 34847  	}
 34848  	ret := &ReturnpolicyListResponse{
 34849  		ServerResponse: googleapi.ServerResponse{
 34850  			Header:         res.Header,
 34851  			HTTPStatusCode: res.StatusCode,
 34852  		},
 34853  	}
 34854  	target := &ret
 34855  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34856  		return nil, err
 34857  	}
 34858  	return ret, nil
 34859  }
 34860  
 34861  type ReturnpolicyonlineCreateCall struct {
 34862  	s                  *APIService
 34863  	merchantId         int64
 34864  	returnpolicyonline *ReturnPolicyOnline
 34865  	urlParams_         gensupport.URLParams
 34866  	ctx_               context.Context
 34867  	header_            http.Header
 34868  }
 34869  
 34870  // Create: Creates a new return policy.
 34871  //
 34872  //   - merchantId: The id of the merchant for which to retrieve the return policy
 34873  //     online object.
 34874  func (r *ReturnpolicyonlineService) Create(merchantId int64, returnpolicyonline *ReturnPolicyOnline) *ReturnpolicyonlineCreateCall {
 34875  	c := &ReturnpolicyonlineCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34876  	c.merchantId = merchantId
 34877  	c.returnpolicyonline = returnpolicyonline
 34878  	return c
 34879  }
 34880  
 34881  // Fields allows partial responses to be retrieved. See
 34882  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34883  // details.
 34884  func (c *ReturnpolicyonlineCreateCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineCreateCall {
 34885  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34886  	return c
 34887  }
 34888  
 34889  // Context sets the context to be used in this call's Do method.
 34890  func (c *ReturnpolicyonlineCreateCall) Context(ctx context.Context) *ReturnpolicyonlineCreateCall {
 34891  	c.ctx_ = ctx
 34892  	return c
 34893  }
 34894  
 34895  // Header returns a http.Header that can be modified by the caller to add
 34896  // headers to the request.
 34897  func (c *ReturnpolicyonlineCreateCall) Header() http.Header {
 34898  	if c.header_ == nil {
 34899  		c.header_ = make(http.Header)
 34900  	}
 34901  	return c.header_
 34902  }
 34903  
 34904  func (c *ReturnpolicyonlineCreateCall) doRequest(alt string) (*http.Response, error) {
 34905  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34906  	var body io.Reader = nil
 34907  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicyonline)
 34908  	if err != nil {
 34909  		return nil, err
 34910  	}
 34911  	c.urlParams_.Set("alt", alt)
 34912  	c.urlParams_.Set("prettyPrint", "false")
 34913  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline")
 34914  	urls += "?" + c.urlParams_.Encode()
 34915  	req, err := http.NewRequest("POST", urls, body)
 34916  	if err != nil {
 34917  		return nil, err
 34918  	}
 34919  	req.Header = reqHeaders
 34920  	googleapi.Expand(req.URL, map[string]string{
 34921  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 34922  	})
 34923  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34924  }
 34925  
 34926  // Do executes the "content.returnpolicyonline.create" call.
 34927  // Any non-2xx status code is an error. Response headers are in either
 34928  // *ReturnPolicyOnline.ServerResponse.Header or (if a response was returned at
 34929  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 34930  // check whether the returned error was because http.StatusNotModified was
 34931  // returned.
 34932  func (c *ReturnpolicyonlineCreateCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error) {
 34933  	gensupport.SetOptions(c.urlParams_, opts...)
 34934  	res, err := c.doRequest("json")
 34935  	if res != nil && res.StatusCode == http.StatusNotModified {
 34936  		if res.Body != nil {
 34937  			res.Body.Close()
 34938  		}
 34939  		return nil, gensupport.WrapError(&googleapi.Error{
 34940  			Code:   res.StatusCode,
 34941  			Header: res.Header,
 34942  		})
 34943  	}
 34944  	if err != nil {
 34945  		return nil, err
 34946  	}
 34947  	defer googleapi.CloseBody(res)
 34948  	if err := googleapi.CheckResponse(res); err != nil {
 34949  		return nil, gensupport.WrapError(err)
 34950  	}
 34951  	ret := &ReturnPolicyOnline{
 34952  		ServerResponse: googleapi.ServerResponse{
 34953  			Header:         res.Header,
 34954  			HTTPStatusCode: res.StatusCode,
 34955  		},
 34956  	}
 34957  	target := &ret
 34958  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34959  		return nil, err
 34960  	}
 34961  	return ret, nil
 34962  }
 34963  
 34964  type ReturnpolicyonlineDeleteCall struct {
 34965  	s              *APIService
 34966  	merchantId     int64
 34967  	returnPolicyId string
 34968  	urlParams_     gensupport.URLParams
 34969  	ctx_           context.Context
 34970  	header_        http.Header
 34971  }
 34972  
 34973  // Delete: Deletes an existing return policy.
 34974  //
 34975  //   - merchantId: The id of the merchant for which to retrieve the return policy
 34976  //     online object.
 34977  //   - returnPolicyId: The id of the return policy to delete.
 34978  func (r *ReturnpolicyonlineService) Delete(merchantId int64, returnPolicyId string) *ReturnpolicyonlineDeleteCall {
 34979  	c := &ReturnpolicyonlineDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34980  	c.merchantId = merchantId
 34981  	c.returnPolicyId = returnPolicyId
 34982  	return c
 34983  }
 34984  
 34985  // Fields allows partial responses to be retrieved. See
 34986  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34987  // details.
 34988  func (c *ReturnpolicyonlineDeleteCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineDeleteCall {
 34989  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34990  	return c
 34991  }
 34992  
 34993  // Context sets the context to be used in this call's Do method.
 34994  func (c *ReturnpolicyonlineDeleteCall) Context(ctx context.Context) *ReturnpolicyonlineDeleteCall {
 34995  	c.ctx_ = ctx
 34996  	return c
 34997  }
 34998  
 34999  // Header returns a http.Header that can be modified by the caller to add
 35000  // headers to the request.
 35001  func (c *ReturnpolicyonlineDeleteCall) Header() http.Header {
 35002  	if c.header_ == nil {
 35003  		c.header_ = make(http.Header)
 35004  	}
 35005  	return c.header_
 35006  }
 35007  
 35008  func (c *ReturnpolicyonlineDeleteCall) doRequest(alt string) (*http.Response, error) {
 35009  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35010  	var body io.Reader = nil
 35011  	c.urlParams_.Set("alt", alt)
 35012  	c.urlParams_.Set("prettyPrint", "false")
 35013  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline/{returnPolicyId}")
 35014  	urls += "?" + c.urlParams_.Encode()
 35015  	req, err := http.NewRequest("DELETE", urls, body)
 35016  	if err != nil {
 35017  		return nil, err
 35018  	}
 35019  	req.Header = reqHeaders
 35020  	googleapi.Expand(req.URL, map[string]string{
 35021  		"merchantId":     strconv.FormatInt(c.merchantId, 10),
 35022  		"returnPolicyId": c.returnPolicyId,
 35023  	})
 35024  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35025  }
 35026  
 35027  // Do executes the "content.returnpolicyonline.delete" call.
 35028  func (c *ReturnpolicyonlineDeleteCall) Do(opts ...googleapi.CallOption) error {
 35029  	gensupport.SetOptions(c.urlParams_, opts...)
 35030  	res, err := c.doRequest("json")
 35031  	if err != nil {
 35032  		return err
 35033  	}
 35034  	defer googleapi.CloseBody(res)
 35035  	if err := googleapi.CheckResponse(res); err != nil {
 35036  		return gensupport.WrapError(err)
 35037  	}
 35038  	return nil
 35039  }
 35040  
 35041  type ReturnpolicyonlineGetCall struct {
 35042  	s              *APIService
 35043  	merchantId     int64
 35044  	returnPolicyId string
 35045  	urlParams_     gensupport.URLParams
 35046  	ifNoneMatch_   string
 35047  	ctx_           context.Context
 35048  	header_        http.Header
 35049  }
 35050  
 35051  // Get: Gets an existing return policy.
 35052  //
 35053  //   - merchantId: The id of the merchant for which to retrieve the return policy
 35054  //     online object.
 35055  //   - returnPolicyId: The id of the return policy to retrieve.
 35056  func (r *ReturnpolicyonlineService) Get(merchantId int64, returnPolicyId string) *ReturnpolicyonlineGetCall {
 35057  	c := &ReturnpolicyonlineGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35058  	c.merchantId = merchantId
 35059  	c.returnPolicyId = returnPolicyId
 35060  	return c
 35061  }
 35062  
 35063  // Fields allows partial responses to be retrieved. See
 35064  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35065  // details.
 35066  func (c *ReturnpolicyonlineGetCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineGetCall {
 35067  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35068  	return c
 35069  }
 35070  
 35071  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35072  // object's ETag matches the given value. This is useful for getting updates
 35073  // only after the object has changed since the last request.
 35074  func (c *ReturnpolicyonlineGetCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineGetCall {
 35075  	c.ifNoneMatch_ = entityTag
 35076  	return c
 35077  }
 35078  
 35079  // Context sets the context to be used in this call's Do method.
 35080  func (c *ReturnpolicyonlineGetCall) Context(ctx context.Context) *ReturnpolicyonlineGetCall {
 35081  	c.ctx_ = ctx
 35082  	return c
 35083  }
 35084  
 35085  // Header returns a http.Header that can be modified by the caller to add
 35086  // headers to the request.
 35087  func (c *ReturnpolicyonlineGetCall) Header() http.Header {
 35088  	if c.header_ == nil {
 35089  		c.header_ = make(http.Header)
 35090  	}
 35091  	return c.header_
 35092  }
 35093  
 35094  func (c *ReturnpolicyonlineGetCall) doRequest(alt string) (*http.Response, error) {
 35095  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35096  	if c.ifNoneMatch_ != "" {
 35097  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35098  	}
 35099  	var body io.Reader = nil
 35100  	c.urlParams_.Set("alt", alt)
 35101  	c.urlParams_.Set("prettyPrint", "false")
 35102  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline/{returnPolicyId}")
 35103  	urls += "?" + c.urlParams_.Encode()
 35104  	req, err := http.NewRequest("GET", urls, body)
 35105  	if err != nil {
 35106  		return nil, err
 35107  	}
 35108  	req.Header = reqHeaders
 35109  	googleapi.Expand(req.URL, map[string]string{
 35110  		"merchantId":     strconv.FormatInt(c.merchantId, 10),
 35111  		"returnPolicyId": c.returnPolicyId,
 35112  	})
 35113  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35114  }
 35115  
 35116  // Do executes the "content.returnpolicyonline.get" call.
 35117  // Any non-2xx status code is an error. Response headers are in either
 35118  // *ReturnPolicyOnline.ServerResponse.Header or (if a response was returned at
 35119  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 35120  // check whether the returned error was because http.StatusNotModified was
 35121  // returned.
 35122  func (c *ReturnpolicyonlineGetCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error) {
 35123  	gensupport.SetOptions(c.urlParams_, opts...)
 35124  	res, err := c.doRequest("json")
 35125  	if res != nil && res.StatusCode == http.StatusNotModified {
 35126  		if res.Body != nil {
 35127  			res.Body.Close()
 35128  		}
 35129  		return nil, gensupport.WrapError(&googleapi.Error{
 35130  			Code:   res.StatusCode,
 35131  			Header: res.Header,
 35132  		})
 35133  	}
 35134  	if err != nil {
 35135  		return nil, err
 35136  	}
 35137  	defer googleapi.CloseBody(res)
 35138  	if err := googleapi.CheckResponse(res); err != nil {
 35139  		return nil, gensupport.WrapError(err)
 35140  	}
 35141  	ret := &ReturnPolicyOnline{
 35142  		ServerResponse: googleapi.ServerResponse{
 35143  			Header:         res.Header,
 35144  			HTTPStatusCode: res.StatusCode,
 35145  		},
 35146  	}
 35147  	target := &ret
 35148  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35149  		return nil, err
 35150  	}
 35151  	return ret, nil
 35152  }
 35153  
 35154  type ReturnpolicyonlineListCall struct {
 35155  	s            *APIService
 35156  	merchantId   int64
 35157  	urlParams_   gensupport.URLParams
 35158  	ifNoneMatch_ string
 35159  	ctx_         context.Context
 35160  	header_      http.Header
 35161  }
 35162  
 35163  // List: Lists all existing return policies.
 35164  //
 35165  //   - merchantId: The id of the merchant for which to retrieve the return policy
 35166  //     online object.
 35167  func (r *ReturnpolicyonlineService) List(merchantId int64) *ReturnpolicyonlineListCall {
 35168  	c := &ReturnpolicyonlineListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35169  	c.merchantId = merchantId
 35170  	return c
 35171  }
 35172  
 35173  // Fields allows partial responses to be retrieved. See
 35174  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35175  // details.
 35176  func (c *ReturnpolicyonlineListCall) Fields(s ...googleapi.Field) *ReturnpolicyonlineListCall {
 35177  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35178  	return c
 35179  }
 35180  
 35181  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35182  // object's ETag matches the given value. This is useful for getting updates
 35183  // only after the object has changed since the last request.
 35184  func (c *ReturnpolicyonlineListCall) IfNoneMatch(entityTag string) *ReturnpolicyonlineListCall {
 35185  	c.ifNoneMatch_ = entityTag
 35186  	return c
 35187  }
 35188  
 35189  // Context sets the context to be used in this call's Do method.
 35190  func (c *ReturnpolicyonlineListCall) Context(ctx context.Context) *ReturnpolicyonlineListCall {
 35191  	c.ctx_ = ctx
 35192  	return c
 35193  }
 35194  
 35195  // Header returns a http.Header that can be modified by the caller to add
 35196  // headers to the request.
 35197  func (c *ReturnpolicyonlineListCall) Header() http.Header {
 35198  	if c.header_ == nil {
 35199  		c.header_ = make(http.Header)
 35200  	}
 35201  	return c.header_
 35202  }
 35203  
 35204  func (c *ReturnpolicyonlineListCall) doRequest(alt string) (*http.Response, error) {
 35205  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35206  	if c.ifNoneMatch_ != "" {
 35207  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35208  	}
 35209  	var body io.Reader = nil
 35210  	c.urlParams_.Set("alt", alt)
 35211  	c.urlParams_.Set("prettyPrint", "false")
 35212  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline")
 35213  	urls += "?" + c.urlParams_.Encode()
 35214  	req, err := http.NewRequest("GET", urls, body)
 35215  	if err != nil {
 35216  		return nil, err
 35217  	}
 35218  	req.Header = reqHeaders
 35219  	googleapi.Expand(req.URL, map[string]string{
 35220  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 35221  	})
 35222  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35223  }
 35224  
 35225  // Do executes the "content.returnpolicyonline.list" call.
 35226  // Any non-2xx status code is an error. Response headers are in either
 35227  // *ListReturnPolicyOnlineResponse.ServerResponse.Header or (if a response was
 35228  // returned at all) in error.(*googleapi.Error).Header. Use
 35229  // googleapi.IsNotModified to check whether the returned error was because
 35230  // http.StatusNotModified was returned.
 35231  func (c *ReturnpolicyonlineListCall) Do(opts ...googleapi.CallOption) (*ListReturnPolicyOnlineResponse, error) {
 35232  	gensupport.SetOptions(c.urlParams_, opts...)
 35233  	res, err := c.doRequest("json")
 35234  	if res != nil && res.StatusCode == http.StatusNotModified {
 35235  		if res.Body != nil {
 35236  			res.Body.Close()
 35237  		}
 35238  		return nil, gensupport.WrapError(&googleapi.Error{
 35239  			Code:   res.StatusCode,
 35240  			Header: res.Header,
 35241  		})
 35242  	}
 35243  	if err != nil {
 35244  		return nil, err
 35245  	}
 35246  	defer googleapi.CloseBody(res)
 35247  	if err := googleapi.CheckResponse(res); err != nil {
 35248  		return nil, gensupport.WrapError(err)
 35249  	}
 35250  	ret := &ListReturnPolicyOnlineResponse{
 35251  		ServerResponse: googleapi.ServerResponse{
 35252  			Header:         res.Header,
 35253  			HTTPStatusCode: res.StatusCode,
 35254  		},
 35255  	}
 35256  	target := &ret
 35257  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35258  		return nil, err
 35259  	}
 35260  	return ret, nil
 35261  }
 35262  
 35263  type ReturnpolicyonlinePatchCall struct {
 35264  	s                  *APIService
 35265  	merchantId         int64
 35266  	returnPolicyId     string
 35267  	returnpolicyonline *ReturnPolicyOnline
 35268  	urlParams_         gensupport.URLParams
 35269  	ctx_               context.Context
 35270  	header_            http.Header
 35271  }
 35272  
 35273  // Patch: Updates an existing return policy.
 35274  //
 35275  //   - merchantId: The id of the merchant for which to retrieve the return policy
 35276  //     online object.
 35277  //   - returnPolicyId: The id of the return policy to update.
 35278  func (r *ReturnpolicyonlineService) Patch(merchantId int64, returnPolicyId string, returnpolicyonline *ReturnPolicyOnline) *ReturnpolicyonlinePatchCall {
 35279  	c := &ReturnpolicyonlinePatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35280  	c.merchantId = merchantId
 35281  	c.returnPolicyId = returnPolicyId
 35282  	c.returnpolicyonline = returnpolicyonline
 35283  	return c
 35284  }
 35285  
 35286  // Fields allows partial responses to be retrieved. See
 35287  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35288  // details.
 35289  func (c *ReturnpolicyonlinePatchCall) Fields(s ...googleapi.Field) *ReturnpolicyonlinePatchCall {
 35290  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35291  	return c
 35292  }
 35293  
 35294  // Context sets the context to be used in this call's Do method.
 35295  func (c *ReturnpolicyonlinePatchCall) Context(ctx context.Context) *ReturnpolicyonlinePatchCall {
 35296  	c.ctx_ = ctx
 35297  	return c
 35298  }
 35299  
 35300  // Header returns a http.Header that can be modified by the caller to add
 35301  // headers to the request.
 35302  func (c *ReturnpolicyonlinePatchCall) Header() http.Header {
 35303  	if c.header_ == nil {
 35304  		c.header_ = make(http.Header)
 35305  	}
 35306  	return c.header_
 35307  }
 35308  
 35309  func (c *ReturnpolicyonlinePatchCall) doRequest(alt string) (*http.Response, error) {
 35310  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35311  	var body io.Reader = nil
 35312  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.returnpolicyonline)
 35313  	if err != nil {
 35314  		return nil, err
 35315  	}
 35316  	c.urlParams_.Set("alt", alt)
 35317  	c.urlParams_.Set("prettyPrint", "false")
 35318  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/returnpolicyonline/{returnPolicyId}")
 35319  	urls += "?" + c.urlParams_.Encode()
 35320  	req, err := http.NewRequest("PATCH", urls, body)
 35321  	if err != nil {
 35322  		return nil, err
 35323  	}
 35324  	req.Header = reqHeaders
 35325  	googleapi.Expand(req.URL, map[string]string{
 35326  		"merchantId":     strconv.FormatInt(c.merchantId, 10),
 35327  		"returnPolicyId": c.returnPolicyId,
 35328  	})
 35329  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35330  }
 35331  
 35332  // Do executes the "content.returnpolicyonline.patch" call.
 35333  // Any non-2xx status code is an error. Response headers are in either
 35334  // *ReturnPolicyOnline.ServerResponse.Header or (if a response was returned at
 35335  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 35336  // check whether the returned error was because http.StatusNotModified was
 35337  // returned.
 35338  func (c *ReturnpolicyonlinePatchCall) Do(opts ...googleapi.CallOption) (*ReturnPolicyOnline, error) {
 35339  	gensupport.SetOptions(c.urlParams_, opts...)
 35340  	res, err := c.doRequest("json")
 35341  	if res != nil && res.StatusCode == http.StatusNotModified {
 35342  		if res.Body != nil {
 35343  			res.Body.Close()
 35344  		}
 35345  		return nil, gensupport.WrapError(&googleapi.Error{
 35346  			Code:   res.StatusCode,
 35347  			Header: res.Header,
 35348  		})
 35349  	}
 35350  	if err != nil {
 35351  		return nil, err
 35352  	}
 35353  	defer googleapi.CloseBody(res)
 35354  	if err := googleapi.CheckResponse(res); err != nil {
 35355  		return nil, gensupport.WrapError(err)
 35356  	}
 35357  	ret := &ReturnPolicyOnline{
 35358  		ServerResponse: googleapi.ServerResponse{
 35359  			Header:         res.Header,
 35360  			HTTPStatusCode: res.StatusCode,
 35361  		},
 35362  	}
 35363  	target := &ret
 35364  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35365  		return nil, err
 35366  	}
 35367  	return ret, nil
 35368  }
 35369  
 35370  type SettlementreportsGetCall struct {
 35371  	s            *APIService
 35372  	merchantId   uint64
 35373  	settlementId string
 35374  	urlParams_   gensupport.URLParams
 35375  	ifNoneMatch_ string
 35376  	ctx_         context.Context
 35377  	header_      http.Header
 35378  }
 35379  
 35380  // Get: Retrieves a settlement report from your Merchant Center account.
 35381  //
 35382  // - merchantId: The Merchant Center account of the settlement report.
 35383  // - settlementId: The Google-provided ID of the settlement.
 35384  func (r *SettlementreportsService) Get(merchantId uint64, settlementId string) *SettlementreportsGetCall {
 35385  	c := &SettlementreportsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35386  	c.merchantId = merchantId
 35387  	c.settlementId = settlementId
 35388  	return c
 35389  }
 35390  
 35391  // Fields allows partial responses to be retrieved. See
 35392  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35393  // details.
 35394  func (c *SettlementreportsGetCall) Fields(s ...googleapi.Field) *SettlementreportsGetCall {
 35395  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35396  	return c
 35397  }
 35398  
 35399  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35400  // object's ETag matches the given value. This is useful for getting updates
 35401  // only after the object has changed since the last request.
 35402  func (c *SettlementreportsGetCall) IfNoneMatch(entityTag string) *SettlementreportsGetCall {
 35403  	c.ifNoneMatch_ = entityTag
 35404  	return c
 35405  }
 35406  
 35407  // Context sets the context to be used in this call's Do method.
 35408  func (c *SettlementreportsGetCall) Context(ctx context.Context) *SettlementreportsGetCall {
 35409  	c.ctx_ = ctx
 35410  	return c
 35411  }
 35412  
 35413  // Header returns a http.Header that can be modified by the caller to add
 35414  // headers to the request.
 35415  func (c *SettlementreportsGetCall) Header() http.Header {
 35416  	if c.header_ == nil {
 35417  		c.header_ = make(http.Header)
 35418  	}
 35419  	return c.header_
 35420  }
 35421  
 35422  func (c *SettlementreportsGetCall) doRequest(alt string) (*http.Response, error) {
 35423  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35424  	if c.ifNoneMatch_ != "" {
 35425  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35426  	}
 35427  	var body io.Reader = nil
 35428  	c.urlParams_.Set("alt", alt)
 35429  	c.urlParams_.Set("prettyPrint", "false")
 35430  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/settlementreports/{settlementId}")
 35431  	urls += "?" + c.urlParams_.Encode()
 35432  	req, err := http.NewRequest("GET", urls, body)
 35433  	if err != nil {
 35434  		return nil, err
 35435  	}
 35436  	req.Header = reqHeaders
 35437  	googleapi.Expand(req.URL, map[string]string{
 35438  		"merchantId":   strconv.FormatUint(c.merchantId, 10),
 35439  		"settlementId": c.settlementId,
 35440  	})
 35441  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35442  }
 35443  
 35444  // Do executes the "content.settlementreports.get" call.
 35445  // Any non-2xx status code is an error. Response headers are in either
 35446  // *SettlementReport.ServerResponse.Header or (if a response was returned at
 35447  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 35448  // check whether the returned error was because http.StatusNotModified was
 35449  // returned.
 35450  func (c *SettlementreportsGetCall) Do(opts ...googleapi.CallOption) (*SettlementReport, error) {
 35451  	gensupport.SetOptions(c.urlParams_, opts...)
 35452  	res, err := c.doRequest("json")
 35453  	if res != nil && res.StatusCode == http.StatusNotModified {
 35454  		if res.Body != nil {
 35455  			res.Body.Close()
 35456  		}
 35457  		return nil, gensupport.WrapError(&googleapi.Error{
 35458  			Code:   res.StatusCode,
 35459  			Header: res.Header,
 35460  		})
 35461  	}
 35462  	if err != nil {
 35463  		return nil, err
 35464  	}
 35465  	defer googleapi.CloseBody(res)
 35466  	if err := googleapi.CheckResponse(res); err != nil {
 35467  		return nil, gensupport.WrapError(err)
 35468  	}
 35469  	ret := &SettlementReport{
 35470  		ServerResponse: googleapi.ServerResponse{
 35471  			Header:         res.Header,
 35472  			HTTPStatusCode: res.StatusCode,
 35473  		},
 35474  	}
 35475  	target := &ret
 35476  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35477  		return nil, err
 35478  	}
 35479  	return ret, nil
 35480  }
 35481  
 35482  type SettlementreportsListCall struct {
 35483  	s            *APIService
 35484  	merchantId   uint64
 35485  	urlParams_   gensupport.URLParams
 35486  	ifNoneMatch_ string
 35487  	ctx_         context.Context
 35488  	header_      http.Header
 35489  }
 35490  
 35491  // List: Retrieves a list of settlement reports from your Merchant Center
 35492  // account.
 35493  //
 35494  // - merchantId: The Merchant Center account to list settlements for.
 35495  func (r *SettlementreportsService) List(merchantId uint64) *SettlementreportsListCall {
 35496  	c := &SettlementreportsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35497  	c.merchantId = merchantId
 35498  	return c
 35499  }
 35500  
 35501  // MaxResults sets the optional parameter "maxResults": The maximum number of
 35502  // settlements to return in the response, used for paging. The default value is
 35503  // 200 returns per page, and the maximum allowed value is 5000 returns per
 35504  // page.
 35505  func (c *SettlementreportsListCall) MaxResults(maxResults int64) *SettlementreportsListCall {
 35506  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 35507  	return c
 35508  }
 35509  
 35510  // PageToken sets the optional parameter "pageToken": The token returned by the
 35511  // previous request.
 35512  func (c *SettlementreportsListCall) PageToken(pageToken string) *SettlementreportsListCall {
 35513  	c.urlParams_.Set("pageToken", pageToken)
 35514  	return c
 35515  }
 35516  
 35517  // TransferEndDate sets the optional parameter "transferEndDate": Obtains
 35518  // settlements which have transactions before this date (inclusively), in ISO
 35519  // 8601 format.
 35520  func (c *SettlementreportsListCall) TransferEndDate(transferEndDate string) *SettlementreportsListCall {
 35521  	c.urlParams_.Set("transferEndDate", transferEndDate)
 35522  	return c
 35523  }
 35524  
 35525  // TransferStartDate sets the optional parameter "transferStartDate": Obtains
 35526  // settlements which have transactions after this date (inclusively), in ISO
 35527  // 8601 format.
 35528  func (c *SettlementreportsListCall) TransferStartDate(transferStartDate string) *SettlementreportsListCall {
 35529  	c.urlParams_.Set("transferStartDate", transferStartDate)
 35530  	return c
 35531  }
 35532  
 35533  // Fields allows partial responses to be retrieved. See
 35534  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35535  // details.
 35536  func (c *SettlementreportsListCall) Fields(s ...googleapi.Field) *SettlementreportsListCall {
 35537  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35538  	return c
 35539  }
 35540  
 35541  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35542  // object's ETag matches the given value. This is useful for getting updates
 35543  // only after the object has changed since the last request.
 35544  func (c *SettlementreportsListCall) IfNoneMatch(entityTag string) *SettlementreportsListCall {
 35545  	c.ifNoneMatch_ = entityTag
 35546  	return c
 35547  }
 35548  
 35549  // Context sets the context to be used in this call's Do method.
 35550  func (c *SettlementreportsListCall) Context(ctx context.Context) *SettlementreportsListCall {
 35551  	c.ctx_ = ctx
 35552  	return c
 35553  }
 35554  
 35555  // Header returns a http.Header that can be modified by the caller to add
 35556  // headers to the request.
 35557  func (c *SettlementreportsListCall) Header() http.Header {
 35558  	if c.header_ == nil {
 35559  		c.header_ = make(http.Header)
 35560  	}
 35561  	return c.header_
 35562  }
 35563  
 35564  func (c *SettlementreportsListCall) doRequest(alt string) (*http.Response, error) {
 35565  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35566  	if c.ifNoneMatch_ != "" {
 35567  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35568  	}
 35569  	var body io.Reader = nil
 35570  	c.urlParams_.Set("alt", alt)
 35571  	c.urlParams_.Set("prettyPrint", "false")
 35572  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/settlementreports")
 35573  	urls += "?" + c.urlParams_.Encode()
 35574  	req, err := http.NewRequest("GET", urls, body)
 35575  	if err != nil {
 35576  		return nil, err
 35577  	}
 35578  	req.Header = reqHeaders
 35579  	googleapi.Expand(req.URL, map[string]string{
 35580  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 35581  	})
 35582  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35583  }
 35584  
 35585  // Do executes the "content.settlementreports.list" call.
 35586  // Any non-2xx status code is an error. Response headers are in either
 35587  // *SettlementreportsListResponse.ServerResponse.Header or (if a response was
 35588  // returned at all) in error.(*googleapi.Error).Header. Use
 35589  // googleapi.IsNotModified to check whether the returned error was because
 35590  // http.StatusNotModified was returned.
 35591  func (c *SettlementreportsListCall) Do(opts ...googleapi.CallOption) (*SettlementreportsListResponse, error) {
 35592  	gensupport.SetOptions(c.urlParams_, opts...)
 35593  	res, err := c.doRequest("json")
 35594  	if res != nil && res.StatusCode == http.StatusNotModified {
 35595  		if res.Body != nil {
 35596  			res.Body.Close()
 35597  		}
 35598  		return nil, gensupport.WrapError(&googleapi.Error{
 35599  			Code:   res.StatusCode,
 35600  			Header: res.Header,
 35601  		})
 35602  	}
 35603  	if err != nil {
 35604  		return nil, err
 35605  	}
 35606  	defer googleapi.CloseBody(res)
 35607  	if err := googleapi.CheckResponse(res); err != nil {
 35608  		return nil, gensupport.WrapError(err)
 35609  	}
 35610  	ret := &SettlementreportsListResponse{
 35611  		ServerResponse: googleapi.ServerResponse{
 35612  			Header:         res.Header,
 35613  			HTTPStatusCode: res.StatusCode,
 35614  		},
 35615  	}
 35616  	target := &ret
 35617  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35618  		return nil, err
 35619  	}
 35620  	return ret, nil
 35621  }
 35622  
 35623  // Pages invokes f for each page of results.
 35624  // A non-nil error returned from f will halt the iteration.
 35625  // The provided context supersedes any context provided to the Context method.
 35626  func (c *SettlementreportsListCall) Pages(ctx context.Context, f func(*SettlementreportsListResponse) error) error {
 35627  	c.ctx_ = ctx
 35628  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 35629  	for {
 35630  		x, err := c.Do()
 35631  		if err != nil {
 35632  			return err
 35633  		}
 35634  		if err := f(x); err != nil {
 35635  			return err
 35636  		}
 35637  		if x.NextPageToken == "" {
 35638  			return nil
 35639  		}
 35640  		c.PageToken(x.NextPageToken)
 35641  	}
 35642  }
 35643  
 35644  type SettlementtransactionsListCall struct {
 35645  	s            *APIService
 35646  	merchantId   uint64
 35647  	settlementId string
 35648  	urlParams_   gensupport.URLParams
 35649  	ifNoneMatch_ string
 35650  	ctx_         context.Context
 35651  	header_      http.Header
 35652  }
 35653  
 35654  // List: Retrieves a list of transactions for the settlement.
 35655  //
 35656  // - merchantId: The Merchant Center account to list transactions for.
 35657  // - settlementId: The Google-provided ID of the settlement.
 35658  func (r *SettlementtransactionsService) List(merchantId uint64, settlementId string) *SettlementtransactionsListCall {
 35659  	c := &SettlementtransactionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35660  	c.merchantId = merchantId
 35661  	c.settlementId = settlementId
 35662  	return c
 35663  }
 35664  
 35665  // MaxResults sets the optional parameter "maxResults": The maximum number of
 35666  // transactions to return in the response, used for paging. The default value
 35667  // is 200 transactions per page, and the maximum allowed value is 5000
 35668  // transactions per page.
 35669  func (c *SettlementtransactionsListCall) MaxResults(maxResults int64) *SettlementtransactionsListCall {
 35670  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 35671  	return c
 35672  }
 35673  
 35674  // PageToken sets the optional parameter "pageToken": The token returned by the
 35675  // previous request.
 35676  func (c *SettlementtransactionsListCall) PageToken(pageToken string) *SettlementtransactionsListCall {
 35677  	c.urlParams_.Set("pageToken", pageToken)
 35678  	return c
 35679  }
 35680  
 35681  // TransactionIds sets the optional parameter "transactionIds": The list of
 35682  // transactions to return. If not set, all transactions will be returned.
 35683  func (c *SettlementtransactionsListCall) TransactionIds(transactionIds ...string) *SettlementtransactionsListCall {
 35684  	c.urlParams_.SetMulti("transactionIds", append([]string{}, transactionIds...))
 35685  	return c
 35686  }
 35687  
 35688  // Fields allows partial responses to be retrieved. See
 35689  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35690  // details.
 35691  func (c *SettlementtransactionsListCall) Fields(s ...googleapi.Field) *SettlementtransactionsListCall {
 35692  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35693  	return c
 35694  }
 35695  
 35696  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35697  // object's ETag matches the given value. This is useful for getting updates
 35698  // only after the object has changed since the last request.
 35699  func (c *SettlementtransactionsListCall) IfNoneMatch(entityTag string) *SettlementtransactionsListCall {
 35700  	c.ifNoneMatch_ = entityTag
 35701  	return c
 35702  }
 35703  
 35704  // Context sets the context to be used in this call's Do method.
 35705  func (c *SettlementtransactionsListCall) Context(ctx context.Context) *SettlementtransactionsListCall {
 35706  	c.ctx_ = ctx
 35707  	return c
 35708  }
 35709  
 35710  // Header returns a http.Header that can be modified by the caller to add
 35711  // headers to the request.
 35712  func (c *SettlementtransactionsListCall) Header() http.Header {
 35713  	if c.header_ == nil {
 35714  		c.header_ = make(http.Header)
 35715  	}
 35716  	return c.header_
 35717  }
 35718  
 35719  func (c *SettlementtransactionsListCall) doRequest(alt string) (*http.Response, error) {
 35720  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35721  	if c.ifNoneMatch_ != "" {
 35722  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35723  	}
 35724  	var body io.Reader = nil
 35725  	c.urlParams_.Set("alt", alt)
 35726  	c.urlParams_.Set("prettyPrint", "false")
 35727  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/settlementreports/{settlementId}/transactions")
 35728  	urls += "?" + c.urlParams_.Encode()
 35729  	req, err := http.NewRequest("GET", urls, body)
 35730  	if err != nil {
 35731  		return nil, err
 35732  	}
 35733  	req.Header = reqHeaders
 35734  	googleapi.Expand(req.URL, map[string]string{
 35735  		"merchantId":   strconv.FormatUint(c.merchantId, 10),
 35736  		"settlementId": c.settlementId,
 35737  	})
 35738  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35739  }
 35740  
 35741  // Do executes the "content.settlementtransactions.list" call.
 35742  // Any non-2xx status code is an error. Response headers are in either
 35743  // *SettlementtransactionsListResponse.ServerResponse.Header or (if a response
 35744  // was returned at all) in error.(*googleapi.Error).Header. Use
 35745  // googleapi.IsNotModified to check whether the returned error was because
 35746  // http.StatusNotModified was returned.
 35747  func (c *SettlementtransactionsListCall) Do(opts ...googleapi.CallOption) (*SettlementtransactionsListResponse, error) {
 35748  	gensupport.SetOptions(c.urlParams_, opts...)
 35749  	res, err := c.doRequest("json")
 35750  	if res != nil && res.StatusCode == http.StatusNotModified {
 35751  		if res.Body != nil {
 35752  			res.Body.Close()
 35753  		}
 35754  		return nil, gensupport.WrapError(&googleapi.Error{
 35755  			Code:   res.StatusCode,
 35756  			Header: res.Header,
 35757  		})
 35758  	}
 35759  	if err != nil {
 35760  		return nil, err
 35761  	}
 35762  	defer googleapi.CloseBody(res)
 35763  	if err := googleapi.CheckResponse(res); err != nil {
 35764  		return nil, gensupport.WrapError(err)
 35765  	}
 35766  	ret := &SettlementtransactionsListResponse{
 35767  		ServerResponse: googleapi.ServerResponse{
 35768  			Header:         res.Header,
 35769  			HTTPStatusCode: res.StatusCode,
 35770  		},
 35771  	}
 35772  	target := &ret
 35773  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35774  		return nil, err
 35775  	}
 35776  	return ret, nil
 35777  }
 35778  
 35779  // Pages invokes f for each page of results.
 35780  // A non-nil error returned from f will halt the iteration.
 35781  // The provided context supersedes any context provided to the Context method.
 35782  func (c *SettlementtransactionsListCall) Pages(ctx context.Context, f func(*SettlementtransactionsListResponse) error) error {
 35783  	c.ctx_ = ctx
 35784  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 35785  	for {
 35786  		x, err := c.Do()
 35787  		if err != nil {
 35788  			return err
 35789  		}
 35790  		if err := f(x); err != nil {
 35791  			return err
 35792  		}
 35793  		if x.NextPageToken == "" {
 35794  			return nil
 35795  		}
 35796  		c.PageToken(x.NextPageToken)
 35797  	}
 35798  }
 35799  
 35800  type ShippingsettingsCustombatchCall struct {
 35801  	s                                  *APIService
 35802  	shippingsettingscustombatchrequest *ShippingsettingsCustomBatchRequest
 35803  	urlParams_                         gensupport.URLParams
 35804  	ctx_                               context.Context
 35805  	header_                            http.Header
 35806  }
 35807  
 35808  // Custombatch: Retrieves and updates the shipping settings of multiple
 35809  // accounts in a single request.
 35810  func (r *ShippingsettingsService) Custombatch(shippingsettingscustombatchrequest *ShippingsettingsCustomBatchRequest) *ShippingsettingsCustombatchCall {
 35811  	c := &ShippingsettingsCustombatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35812  	c.shippingsettingscustombatchrequest = shippingsettingscustombatchrequest
 35813  	return c
 35814  }
 35815  
 35816  // Fields allows partial responses to be retrieved. See
 35817  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35818  // details.
 35819  func (c *ShippingsettingsCustombatchCall) Fields(s ...googleapi.Field) *ShippingsettingsCustombatchCall {
 35820  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35821  	return c
 35822  }
 35823  
 35824  // Context sets the context to be used in this call's Do method.
 35825  func (c *ShippingsettingsCustombatchCall) Context(ctx context.Context) *ShippingsettingsCustombatchCall {
 35826  	c.ctx_ = ctx
 35827  	return c
 35828  }
 35829  
 35830  // Header returns a http.Header that can be modified by the caller to add
 35831  // headers to the request.
 35832  func (c *ShippingsettingsCustombatchCall) Header() http.Header {
 35833  	if c.header_ == nil {
 35834  		c.header_ = make(http.Header)
 35835  	}
 35836  	return c.header_
 35837  }
 35838  
 35839  func (c *ShippingsettingsCustombatchCall) doRequest(alt string) (*http.Response, error) {
 35840  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 35841  	var body io.Reader = nil
 35842  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.shippingsettingscustombatchrequest)
 35843  	if err != nil {
 35844  		return nil, err
 35845  	}
 35846  	c.urlParams_.Set("alt", alt)
 35847  	c.urlParams_.Set("prettyPrint", "false")
 35848  	urls := googleapi.ResolveRelative(c.s.BasePath, "shippingsettings/batch")
 35849  	urls += "?" + c.urlParams_.Encode()
 35850  	req, err := http.NewRequest("POST", urls, body)
 35851  	if err != nil {
 35852  		return nil, err
 35853  	}
 35854  	req.Header = reqHeaders
 35855  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35856  }
 35857  
 35858  // Do executes the "content.shippingsettings.custombatch" call.
 35859  // Any non-2xx status code is an error. Response headers are in either
 35860  // *ShippingsettingsCustomBatchResponse.ServerResponse.Header or (if a response
 35861  // was returned at all) in error.(*googleapi.Error).Header. Use
 35862  // googleapi.IsNotModified to check whether the returned error was because
 35863  // http.StatusNotModified was returned.
 35864  func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsCustomBatchResponse, error) {
 35865  	gensupport.SetOptions(c.urlParams_, opts...)
 35866  	res, err := c.doRequest("json")
 35867  	if res != nil && res.StatusCode == http.StatusNotModified {
 35868  		if res.Body != nil {
 35869  			res.Body.Close()
 35870  		}
 35871  		return nil, gensupport.WrapError(&googleapi.Error{
 35872  			Code:   res.StatusCode,
 35873  			Header: res.Header,
 35874  		})
 35875  	}
 35876  	if err != nil {
 35877  		return nil, err
 35878  	}
 35879  	defer googleapi.CloseBody(res)
 35880  	if err := googleapi.CheckResponse(res); err != nil {
 35881  		return nil, gensupport.WrapError(err)
 35882  	}
 35883  	ret := &ShippingsettingsCustomBatchResponse{
 35884  		ServerResponse: googleapi.ServerResponse{
 35885  			Header:         res.Header,
 35886  			HTTPStatusCode: res.StatusCode,
 35887  		},
 35888  	}
 35889  	target := &ret
 35890  	if err := gensupport.DecodeResponse(target, res); err != nil {
 35891  		return nil, err
 35892  	}
 35893  	return ret, nil
 35894  }
 35895  
 35896  type ShippingsettingsGetCall struct {
 35897  	s            *APIService
 35898  	merchantId   uint64
 35899  	accountId    uint64
 35900  	urlParams_   gensupport.URLParams
 35901  	ifNoneMatch_ string
 35902  	ctx_         context.Context
 35903  	header_      http.Header
 35904  }
 35905  
 35906  // Get: Retrieves the shipping settings of the account.
 35907  //
 35908  //   - accountId: The ID of the account for which to get/update shipping
 35909  //     settings.
 35910  //   - merchantId: The ID of the managing account. If this parameter is not the
 35911  //     same as accountId, then this account must be a multi-client account and
 35912  //     `accountId` must be the ID of a sub-account of this account.
 35913  func (r *ShippingsettingsService) Get(merchantId uint64, accountId uint64) *ShippingsettingsGetCall {
 35914  	c := &ShippingsettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 35915  	c.merchantId = merchantId
 35916  	c.accountId = accountId
 35917  	return c
 35918  }
 35919  
 35920  // Fields allows partial responses to be retrieved. See
 35921  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 35922  // details.
 35923  func (c *ShippingsettingsGetCall) Fields(s ...googleapi.Field) *ShippingsettingsGetCall {
 35924  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 35925  	return c
 35926  }
 35927  
 35928  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 35929  // object's ETag matches the given value. This is useful for getting updates
 35930  // only after the object has changed since the last request.
 35931  func (c *ShippingsettingsGetCall) IfNoneMatch(entityTag string) *ShippingsettingsGetCall {
 35932  	c.ifNoneMatch_ = entityTag
 35933  	return c
 35934  }
 35935  
 35936  // Context sets the context to be used in this call's Do method.
 35937  func (c *ShippingsettingsGetCall) Context(ctx context.Context) *ShippingsettingsGetCall {
 35938  	c.ctx_ = ctx
 35939  	return c
 35940  }
 35941  
 35942  // Header returns a http.Header that can be modified by the caller to add
 35943  // headers to the request.
 35944  func (c *ShippingsettingsGetCall) Header() http.Header {
 35945  	if c.header_ == nil {
 35946  		c.header_ = make(http.Header)
 35947  	}
 35948  	return c.header_
 35949  }
 35950  
 35951  func (c *ShippingsettingsGetCall) doRequest(alt string) (*http.Response, error) {
 35952  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 35953  	if c.ifNoneMatch_ != "" {
 35954  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 35955  	}
 35956  	var body io.Reader = nil
 35957  	c.urlParams_.Set("alt", alt)
 35958  	c.urlParams_.Set("prettyPrint", "false")
 35959  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings/{accountId}")
 35960  	urls += "?" + c.urlParams_.Encode()
 35961  	req, err := http.NewRequest("GET", urls, body)
 35962  	if err != nil {
 35963  		return nil, err
 35964  	}
 35965  	req.Header = reqHeaders
 35966  	googleapi.Expand(req.URL, map[string]string{
 35967  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 35968  		"accountId":  strconv.FormatUint(c.accountId, 10),
 35969  	})
 35970  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 35971  }
 35972  
 35973  // Do executes the "content.shippingsettings.get" call.
 35974  // Any non-2xx status code is an error. Response headers are in either
 35975  // *ShippingSettings.ServerResponse.Header or (if a response was returned at
 35976  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 35977  // check whether the returned error was because http.StatusNotModified was
 35978  // returned.
 35979  func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error) {
 35980  	gensupport.SetOptions(c.urlParams_, opts...)
 35981  	res, err := c.doRequest("json")
 35982  	if res != nil && res.StatusCode == http.StatusNotModified {
 35983  		if res.Body != nil {
 35984  			res.Body.Close()
 35985  		}
 35986  		return nil, gensupport.WrapError(&googleapi.Error{
 35987  			Code:   res.StatusCode,
 35988  			Header: res.Header,
 35989  		})
 35990  	}
 35991  	if err != nil {
 35992  		return nil, err
 35993  	}
 35994  	defer googleapi.CloseBody(res)
 35995  	if err := googleapi.CheckResponse(res); err != nil {
 35996  		return nil, gensupport.WrapError(err)
 35997  	}
 35998  	ret := &ShippingSettings{
 35999  		ServerResponse: googleapi.ServerResponse{
 36000  			Header:         res.Header,
 36001  			HTTPStatusCode: res.StatusCode,
 36002  		},
 36003  	}
 36004  	target := &ret
 36005  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36006  		return nil, err
 36007  	}
 36008  	return ret, nil
 36009  }
 36010  
 36011  type ShippingsettingsGetsupportedcarriersCall struct {
 36012  	s            *APIService
 36013  	merchantId   uint64
 36014  	urlParams_   gensupport.URLParams
 36015  	ifNoneMatch_ string
 36016  	ctx_         context.Context
 36017  	header_      http.Header
 36018  }
 36019  
 36020  // Getsupportedcarriers: Retrieves supported carriers and carrier services for
 36021  // an account.
 36022  //
 36023  //   - merchantId: The ID of the account for which to retrieve the supported
 36024  //     carriers.
 36025  func (r *ShippingsettingsService) Getsupportedcarriers(merchantId uint64) *ShippingsettingsGetsupportedcarriersCall {
 36026  	c := &ShippingsettingsGetsupportedcarriersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36027  	c.merchantId = merchantId
 36028  	return c
 36029  }
 36030  
 36031  // Fields allows partial responses to be retrieved. See
 36032  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36033  // details.
 36034  func (c *ShippingsettingsGetsupportedcarriersCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedcarriersCall {
 36035  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36036  	return c
 36037  }
 36038  
 36039  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36040  // object's ETag matches the given value. This is useful for getting updates
 36041  // only after the object has changed since the last request.
 36042  func (c *ShippingsettingsGetsupportedcarriersCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedcarriersCall {
 36043  	c.ifNoneMatch_ = entityTag
 36044  	return c
 36045  }
 36046  
 36047  // Context sets the context to be used in this call's Do method.
 36048  func (c *ShippingsettingsGetsupportedcarriersCall) Context(ctx context.Context) *ShippingsettingsGetsupportedcarriersCall {
 36049  	c.ctx_ = ctx
 36050  	return c
 36051  }
 36052  
 36053  // Header returns a http.Header that can be modified by the caller to add
 36054  // headers to the request.
 36055  func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header {
 36056  	if c.header_ == nil {
 36057  		c.header_ = make(http.Header)
 36058  	}
 36059  	return c.header_
 36060  }
 36061  
 36062  func (c *ShippingsettingsGetsupportedcarriersCall) doRequest(alt string) (*http.Response, error) {
 36063  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36064  	if c.ifNoneMatch_ != "" {
 36065  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36066  	}
 36067  	var body io.Reader = nil
 36068  	c.urlParams_.Set("alt", alt)
 36069  	c.urlParams_.Set("prettyPrint", "false")
 36070  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedCarriers")
 36071  	urls += "?" + c.urlParams_.Encode()
 36072  	req, err := http.NewRequest("GET", urls, body)
 36073  	if err != nil {
 36074  		return nil, err
 36075  	}
 36076  	req.Header = reqHeaders
 36077  	googleapi.Expand(req.URL, map[string]string{
 36078  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 36079  	})
 36080  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36081  }
 36082  
 36083  // Do executes the "content.shippingsettings.getsupportedcarriers" call.
 36084  // Any non-2xx status code is an error. Response headers are in either
 36085  // *ShippingsettingsGetSupportedCarriersResponse.ServerResponse.Header or (if a
 36086  // response was returned at all) in error.(*googleapi.Error).Header. Use
 36087  // googleapi.IsNotModified to check whether the returned error was because
 36088  // http.StatusNotModified was returned.
 36089  func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedCarriersResponse, error) {
 36090  	gensupport.SetOptions(c.urlParams_, opts...)
 36091  	res, err := c.doRequest("json")
 36092  	if res != nil && res.StatusCode == http.StatusNotModified {
 36093  		if res.Body != nil {
 36094  			res.Body.Close()
 36095  		}
 36096  		return nil, gensupport.WrapError(&googleapi.Error{
 36097  			Code:   res.StatusCode,
 36098  			Header: res.Header,
 36099  		})
 36100  	}
 36101  	if err != nil {
 36102  		return nil, err
 36103  	}
 36104  	defer googleapi.CloseBody(res)
 36105  	if err := googleapi.CheckResponse(res); err != nil {
 36106  		return nil, gensupport.WrapError(err)
 36107  	}
 36108  	ret := &ShippingsettingsGetSupportedCarriersResponse{
 36109  		ServerResponse: googleapi.ServerResponse{
 36110  			Header:         res.Header,
 36111  			HTTPStatusCode: res.StatusCode,
 36112  		},
 36113  	}
 36114  	target := &ret
 36115  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36116  		return nil, err
 36117  	}
 36118  	return ret, nil
 36119  }
 36120  
 36121  type ShippingsettingsGetsupportedholidaysCall struct {
 36122  	s            *APIService
 36123  	merchantId   uint64
 36124  	urlParams_   gensupport.URLParams
 36125  	ifNoneMatch_ string
 36126  	ctx_         context.Context
 36127  	header_      http.Header
 36128  }
 36129  
 36130  // Getsupportedholidays: Retrieves supported holidays for an account.
 36131  //
 36132  //   - merchantId: The ID of the account for which to retrieve the supported
 36133  //     holidays.
 36134  func (r *ShippingsettingsService) Getsupportedholidays(merchantId uint64) *ShippingsettingsGetsupportedholidaysCall {
 36135  	c := &ShippingsettingsGetsupportedholidaysCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36136  	c.merchantId = merchantId
 36137  	return c
 36138  }
 36139  
 36140  // Fields allows partial responses to be retrieved. See
 36141  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36142  // details.
 36143  func (c *ShippingsettingsGetsupportedholidaysCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedholidaysCall {
 36144  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36145  	return c
 36146  }
 36147  
 36148  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36149  // object's ETag matches the given value. This is useful for getting updates
 36150  // only after the object has changed since the last request.
 36151  func (c *ShippingsettingsGetsupportedholidaysCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedholidaysCall {
 36152  	c.ifNoneMatch_ = entityTag
 36153  	return c
 36154  }
 36155  
 36156  // Context sets the context to be used in this call's Do method.
 36157  func (c *ShippingsettingsGetsupportedholidaysCall) Context(ctx context.Context) *ShippingsettingsGetsupportedholidaysCall {
 36158  	c.ctx_ = ctx
 36159  	return c
 36160  }
 36161  
 36162  // Header returns a http.Header that can be modified by the caller to add
 36163  // headers to the request.
 36164  func (c *ShippingsettingsGetsupportedholidaysCall) Header() http.Header {
 36165  	if c.header_ == nil {
 36166  		c.header_ = make(http.Header)
 36167  	}
 36168  	return c.header_
 36169  }
 36170  
 36171  func (c *ShippingsettingsGetsupportedholidaysCall) doRequest(alt string) (*http.Response, error) {
 36172  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36173  	if c.ifNoneMatch_ != "" {
 36174  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36175  	}
 36176  	var body io.Reader = nil
 36177  	c.urlParams_.Set("alt", alt)
 36178  	c.urlParams_.Set("prettyPrint", "false")
 36179  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedHolidays")
 36180  	urls += "?" + c.urlParams_.Encode()
 36181  	req, err := http.NewRequest("GET", urls, body)
 36182  	if err != nil {
 36183  		return nil, err
 36184  	}
 36185  	req.Header = reqHeaders
 36186  	googleapi.Expand(req.URL, map[string]string{
 36187  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 36188  	})
 36189  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36190  }
 36191  
 36192  // Do executes the "content.shippingsettings.getsupportedholidays" call.
 36193  // Any non-2xx status code is an error. Response headers are in either
 36194  // *ShippingsettingsGetSupportedHolidaysResponse.ServerResponse.Header or (if a
 36195  // response was returned at all) in error.(*googleapi.Error).Header. Use
 36196  // googleapi.IsNotModified to check whether the returned error was because
 36197  // http.StatusNotModified was returned.
 36198  func (c *ShippingsettingsGetsupportedholidaysCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedHolidaysResponse, error) {
 36199  	gensupport.SetOptions(c.urlParams_, opts...)
 36200  	res, err := c.doRequest("json")
 36201  	if res != nil && res.StatusCode == http.StatusNotModified {
 36202  		if res.Body != nil {
 36203  			res.Body.Close()
 36204  		}
 36205  		return nil, gensupport.WrapError(&googleapi.Error{
 36206  			Code:   res.StatusCode,
 36207  			Header: res.Header,
 36208  		})
 36209  	}
 36210  	if err != nil {
 36211  		return nil, err
 36212  	}
 36213  	defer googleapi.CloseBody(res)
 36214  	if err := googleapi.CheckResponse(res); err != nil {
 36215  		return nil, gensupport.WrapError(err)
 36216  	}
 36217  	ret := &ShippingsettingsGetSupportedHolidaysResponse{
 36218  		ServerResponse: googleapi.ServerResponse{
 36219  			Header:         res.Header,
 36220  			HTTPStatusCode: res.StatusCode,
 36221  		},
 36222  	}
 36223  	target := &ret
 36224  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36225  		return nil, err
 36226  	}
 36227  	return ret, nil
 36228  }
 36229  
 36230  type ShippingsettingsGetsupportedpickupservicesCall struct {
 36231  	s            *APIService
 36232  	merchantId   uint64
 36233  	urlParams_   gensupport.URLParams
 36234  	ifNoneMatch_ string
 36235  	ctx_         context.Context
 36236  	header_      http.Header
 36237  }
 36238  
 36239  // Getsupportedpickupservices: Retrieves supported pickup services for an
 36240  // account.
 36241  //
 36242  //   - merchantId: The ID of the account for which to retrieve the supported
 36243  //     pickup services.
 36244  func (r *ShippingsettingsService) Getsupportedpickupservices(merchantId uint64) *ShippingsettingsGetsupportedpickupservicesCall {
 36245  	c := &ShippingsettingsGetsupportedpickupservicesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36246  	c.merchantId = merchantId
 36247  	return c
 36248  }
 36249  
 36250  // Fields allows partial responses to be retrieved. See
 36251  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36252  // details.
 36253  func (c *ShippingsettingsGetsupportedpickupservicesCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedpickupservicesCall {
 36254  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36255  	return c
 36256  }
 36257  
 36258  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36259  // object's ETag matches the given value. This is useful for getting updates
 36260  // only after the object has changed since the last request.
 36261  func (c *ShippingsettingsGetsupportedpickupservicesCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedpickupservicesCall {
 36262  	c.ifNoneMatch_ = entityTag
 36263  	return c
 36264  }
 36265  
 36266  // Context sets the context to be used in this call's Do method.
 36267  func (c *ShippingsettingsGetsupportedpickupservicesCall) Context(ctx context.Context) *ShippingsettingsGetsupportedpickupservicesCall {
 36268  	c.ctx_ = ctx
 36269  	return c
 36270  }
 36271  
 36272  // Header returns a http.Header that can be modified by the caller to add
 36273  // headers to the request.
 36274  func (c *ShippingsettingsGetsupportedpickupservicesCall) Header() http.Header {
 36275  	if c.header_ == nil {
 36276  		c.header_ = make(http.Header)
 36277  	}
 36278  	return c.header_
 36279  }
 36280  
 36281  func (c *ShippingsettingsGetsupportedpickupservicesCall) doRequest(alt string) (*http.Response, error) {
 36282  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36283  	if c.ifNoneMatch_ != "" {
 36284  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36285  	}
 36286  	var body io.Reader = nil
 36287  	c.urlParams_.Set("alt", alt)
 36288  	c.urlParams_.Set("prettyPrint", "false")
 36289  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/supportedPickupServices")
 36290  	urls += "?" + c.urlParams_.Encode()
 36291  	req, err := http.NewRequest("GET", urls, body)
 36292  	if err != nil {
 36293  		return nil, err
 36294  	}
 36295  	req.Header = reqHeaders
 36296  	googleapi.Expand(req.URL, map[string]string{
 36297  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 36298  	})
 36299  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36300  }
 36301  
 36302  // Do executes the "content.shippingsettings.getsupportedpickupservices" call.
 36303  // Any non-2xx status code is an error. Response headers are in either
 36304  // *ShippingsettingsGetSupportedPickupServicesResponse.ServerResponse.Header or
 36305  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 36306  // googleapi.IsNotModified to check whether the returned error was because
 36307  // http.StatusNotModified was returned.
 36308  func (c *ShippingsettingsGetsupportedpickupservicesCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedPickupServicesResponse, error) {
 36309  	gensupport.SetOptions(c.urlParams_, opts...)
 36310  	res, err := c.doRequest("json")
 36311  	if res != nil && res.StatusCode == http.StatusNotModified {
 36312  		if res.Body != nil {
 36313  			res.Body.Close()
 36314  		}
 36315  		return nil, gensupport.WrapError(&googleapi.Error{
 36316  			Code:   res.StatusCode,
 36317  			Header: res.Header,
 36318  		})
 36319  	}
 36320  	if err != nil {
 36321  		return nil, err
 36322  	}
 36323  	defer googleapi.CloseBody(res)
 36324  	if err := googleapi.CheckResponse(res); err != nil {
 36325  		return nil, gensupport.WrapError(err)
 36326  	}
 36327  	ret := &ShippingsettingsGetSupportedPickupServicesResponse{
 36328  		ServerResponse: googleapi.ServerResponse{
 36329  			Header:         res.Header,
 36330  			HTTPStatusCode: res.StatusCode,
 36331  		},
 36332  	}
 36333  	target := &ret
 36334  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36335  		return nil, err
 36336  	}
 36337  	return ret, nil
 36338  }
 36339  
 36340  type ShippingsettingsListCall struct {
 36341  	s            *APIService
 36342  	merchantId   uint64
 36343  	urlParams_   gensupport.URLParams
 36344  	ifNoneMatch_ string
 36345  	ctx_         context.Context
 36346  	header_      http.Header
 36347  }
 36348  
 36349  // List: Lists the shipping settings of the sub-accounts in your Merchant
 36350  // Center account.
 36351  //
 36352  //   - merchantId: The ID of the managing account. This must be a multi-client
 36353  //     account.
 36354  func (r *ShippingsettingsService) List(merchantId uint64) *ShippingsettingsListCall {
 36355  	c := &ShippingsettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36356  	c.merchantId = merchantId
 36357  	return c
 36358  }
 36359  
 36360  // MaxResults sets the optional parameter "maxResults": The maximum number of
 36361  // shipping settings to return in the response, used for paging.
 36362  func (c *ShippingsettingsListCall) MaxResults(maxResults int64) *ShippingsettingsListCall {
 36363  	c.urlParams_.Set("maxResults", fmt.Sprint(maxResults))
 36364  	return c
 36365  }
 36366  
 36367  // PageToken sets the optional parameter "pageToken": The token returned by the
 36368  // previous request.
 36369  func (c *ShippingsettingsListCall) PageToken(pageToken string) *ShippingsettingsListCall {
 36370  	c.urlParams_.Set("pageToken", pageToken)
 36371  	return c
 36372  }
 36373  
 36374  // Fields allows partial responses to be retrieved. See
 36375  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36376  // details.
 36377  func (c *ShippingsettingsListCall) Fields(s ...googleapi.Field) *ShippingsettingsListCall {
 36378  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36379  	return c
 36380  }
 36381  
 36382  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36383  // object's ETag matches the given value. This is useful for getting updates
 36384  // only after the object has changed since the last request.
 36385  func (c *ShippingsettingsListCall) IfNoneMatch(entityTag string) *ShippingsettingsListCall {
 36386  	c.ifNoneMatch_ = entityTag
 36387  	return c
 36388  }
 36389  
 36390  // Context sets the context to be used in this call's Do method.
 36391  func (c *ShippingsettingsListCall) Context(ctx context.Context) *ShippingsettingsListCall {
 36392  	c.ctx_ = ctx
 36393  	return c
 36394  }
 36395  
 36396  // Header returns a http.Header that can be modified by the caller to add
 36397  // headers to the request.
 36398  func (c *ShippingsettingsListCall) Header() http.Header {
 36399  	if c.header_ == nil {
 36400  		c.header_ = make(http.Header)
 36401  	}
 36402  	return c.header_
 36403  }
 36404  
 36405  func (c *ShippingsettingsListCall) doRequest(alt string) (*http.Response, error) {
 36406  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36407  	if c.ifNoneMatch_ != "" {
 36408  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36409  	}
 36410  	var body io.Reader = nil
 36411  	c.urlParams_.Set("alt", alt)
 36412  	c.urlParams_.Set("prettyPrint", "false")
 36413  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings")
 36414  	urls += "?" + c.urlParams_.Encode()
 36415  	req, err := http.NewRequest("GET", urls, body)
 36416  	if err != nil {
 36417  		return nil, err
 36418  	}
 36419  	req.Header = reqHeaders
 36420  	googleapi.Expand(req.URL, map[string]string{
 36421  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 36422  	})
 36423  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36424  }
 36425  
 36426  // Do executes the "content.shippingsettings.list" call.
 36427  // Any non-2xx status code is an error. Response headers are in either
 36428  // *ShippingsettingsListResponse.ServerResponse.Header or (if a response was
 36429  // returned at all) in error.(*googleapi.Error).Header. Use
 36430  // googleapi.IsNotModified to check whether the returned error was because
 36431  // http.StatusNotModified was returned.
 36432  func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsListResponse, error) {
 36433  	gensupport.SetOptions(c.urlParams_, opts...)
 36434  	res, err := c.doRequest("json")
 36435  	if res != nil && res.StatusCode == http.StatusNotModified {
 36436  		if res.Body != nil {
 36437  			res.Body.Close()
 36438  		}
 36439  		return nil, gensupport.WrapError(&googleapi.Error{
 36440  			Code:   res.StatusCode,
 36441  			Header: res.Header,
 36442  		})
 36443  	}
 36444  	if err != nil {
 36445  		return nil, err
 36446  	}
 36447  	defer googleapi.CloseBody(res)
 36448  	if err := googleapi.CheckResponse(res); err != nil {
 36449  		return nil, gensupport.WrapError(err)
 36450  	}
 36451  	ret := &ShippingsettingsListResponse{
 36452  		ServerResponse: googleapi.ServerResponse{
 36453  			Header:         res.Header,
 36454  			HTTPStatusCode: res.StatusCode,
 36455  		},
 36456  	}
 36457  	target := &ret
 36458  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36459  		return nil, err
 36460  	}
 36461  	return ret, nil
 36462  }
 36463  
 36464  // Pages invokes f for each page of results.
 36465  // A non-nil error returned from f will halt the iteration.
 36466  // The provided context supersedes any context provided to the Context method.
 36467  func (c *ShippingsettingsListCall) Pages(ctx context.Context, f func(*ShippingsettingsListResponse) error) error {
 36468  	c.ctx_ = ctx
 36469  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 36470  	for {
 36471  		x, err := c.Do()
 36472  		if err != nil {
 36473  			return err
 36474  		}
 36475  		if err := f(x); err != nil {
 36476  			return err
 36477  		}
 36478  		if x.NextPageToken == "" {
 36479  			return nil
 36480  		}
 36481  		c.PageToken(x.NextPageToken)
 36482  	}
 36483  }
 36484  
 36485  type ShippingsettingsUpdateCall struct {
 36486  	s                *APIService
 36487  	merchantId       uint64
 36488  	accountId        uint64
 36489  	shippingsettings *ShippingSettings
 36490  	urlParams_       gensupport.URLParams
 36491  	ctx_             context.Context
 36492  	header_          http.Header
 36493  }
 36494  
 36495  // Update: Updates the shipping settings of the account. Any fields that are
 36496  // not provided are deleted from the resource.
 36497  //
 36498  //   - accountId: The ID of the account for which to get/update shipping
 36499  //     settings.
 36500  //   - merchantId: The ID of the managing account. If this parameter is not the
 36501  //     same as accountId, then this account must be a multi-client account and
 36502  //     `accountId` must be the ID of a sub-account of this account.
 36503  func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsUpdateCall {
 36504  	c := &ShippingsettingsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36505  	c.merchantId = merchantId
 36506  	c.accountId = accountId
 36507  	c.shippingsettings = shippingsettings
 36508  	return c
 36509  }
 36510  
 36511  // Fields allows partial responses to be retrieved. See
 36512  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36513  // details.
 36514  func (c *ShippingsettingsUpdateCall) Fields(s ...googleapi.Field) *ShippingsettingsUpdateCall {
 36515  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36516  	return c
 36517  }
 36518  
 36519  // Context sets the context to be used in this call's Do method.
 36520  func (c *ShippingsettingsUpdateCall) Context(ctx context.Context) *ShippingsettingsUpdateCall {
 36521  	c.ctx_ = ctx
 36522  	return c
 36523  }
 36524  
 36525  // Header returns a http.Header that can be modified by the caller to add
 36526  // headers to the request.
 36527  func (c *ShippingsettingsUpdateCall) Header() http.Header {
 36528  	if c.header_ == nil {
 36529  		c.header_ = make(http.Header)
 36530  	}
 36531  	return c.header_
 36532  }
 36533  
 36534  func (c *ShippingsettingsUpdateCall) doRequest(alt string) (*http.Response, error) {
 36535  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36536  	var body io.Reader = nil
 36537  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.shippingsettings)
 36538  	if err != nil {
 36539  		return nil, err
 36540  	}
 36541  	c.urlParams_.Set("alt", alt)
 36542  	c.urlParams_.Set("prettyPrint", "false")
 36543  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shippingsettings/{accountId}")
 36544  	urls += "?" + c.urlParams_.Encode()
 36545  	req, err := http.NewRequest("PUT", urls, body)
 36546  	if err != nil {
 36547  		return nil, err
 36548  	}
 36549  	req.Header = reqHeaders
 36550  	googleapi.Expand(req.URL, map[string]string{
 36551  		"merchantId": strconv.FormatUint(c.merchantId, 10),
 36552  		"accountId":  strconv.FormatUint(c.accountId, 10),
 36553  	})
 36554  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36555  }
 36556  
 36557  // Do executes the "content.shippingsettings.update" call.
 36558  // Any non-2xx status code is an error. Response headers are in either
 36559  // *ShippingSettings.ServerResponse.Header or (if a response was returned at
 36560  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 36561  // check whether the returned error was because http.StatusNotModified was
 36562  // returned.
 36563  func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error) {
 36564  	gensupport.SetOptions(c.urlParams_, opts...)
 36565  	res, err := c.doRequest("json")
 36566  	if res != nil && res.StatusCode == http.StatusNotModified {
 36567  		if res.Body != nil {
 36568  			res.Body.Close()
 36569  		}
 36570  		return nil, gensupport.WrapError(&googleapi.Error{
 36571  			Code:   res.StatusCode,
 36572  			Header: res.Header,
 36573  		})
 36574  	}
 36575  	if err != nil {
 36576  		return nil, err
 36577  	}
 36578  	defer googleapi.CloseBody(res)
 36579  	if err := googleapi.CheckResponse(res); err != nil {
 36580  		return nil, gensupport.WrapError(err)
 36581  	}
 36582  	ret := &ShippingSettings{
 36583  		ServerResponse: googleapi.ServerResponse{
 36584  			Header:         res.Header,
 36585  			HTTPStatusCode: res.StatusCode,
 36586  		},
 36587  	}
 36588  	target := &ret
 36589  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36590  		return nil, err
 36591  	}
 36592  	return ret, nil
 36593  }
 36594  
 36595  type ShoppingadsprogramGetCall struct {
 36596  	s            *APIService
 36597  	merchantId   int64
 36598  	urlParams_   gensupport.URLParams
 36599  	ifNoneMatch_ string
 36600  	ctx_         context.Context
 36601  	header_      http.Header
 36602  }
 36603  
 36604  // Get: Retrieves the status and review eligibility for the Shopping Ads
 36605  // program. Returns errors and warnings if they require action to resolve, will
 36606  // become disapprovals, or impact impressions. Use `accountstatuses` to view
 36607  // all issues for an account.
 36608  //
 36609  // - merchantId: The ID of the account.
 36610  func (r *ShoppingadsprogramService) Get(merchantId int64) *ShoppingadsprogramGetCall {
 36611  	c := &ShoppingadsprogramGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36612  	c.merchantId = merchantId
 36613  	return c
 36614  }
 36615  
 36616  // Fields allows partial responses to be retrieved. See
 36617  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36618  // details.
 36619  func (c *ShoppingadsprogramGetCall) Fields(s ...googleapi.Field) *ShoppingadsprogramGetCall {
 36620  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36621  	return c
 36622  }
 36623  
 36624  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 36625  // object's ETag matches the given value. This is useful for getting updates
 36626  // only after the object has changed since the last request.
 36627  func (c *ShoppingadsprogramGetCall) IfNoneMatch(entityTag string) *ShoppingadsprogramGetCall {
 36628  	c.ifNoneMatch_ = entityTag
 36629  	return c
 36630  }
 36631  
 36632  // Context sets the context to be used in this call's Do method.
 36633  func (c *ShoppingadsprogramGetCall) Context(ctx context.Context) *ShoppingadsprogramGetCall {
 36634  	c.ctx_ = ctx
 36635  	return c
 36636  }
 36637  
 36638  // Header returns a http.Header that can be modified by the caller to add
 36639  // headers to the request.
 36640  func (c *ShoppingadsprogramGetCall) Header() http.Header {
 36641  	if c.header_ == nil {
 36642  		c.header_ = make(http.Header)
 36643  	}
 36644  	return c.header_
 36645  }
 36646  
 36647  func (c *ShoppingadsprogramGetCall) doRequest(alt string) (*http.Response, error) {
 36648  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 36649  	if c.ifNoneMatch_ != "" {
 36650  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 36651  	}
 36652  	var body io.Reader = nil
 36653  	c.urlParams_.Set("alt", alt)
 36654  	c.urlParams_.Set("prettyPrint", "false")
 36655  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shoppingadsprogram")
 36656  	urls += "?" + c.urlParams_.Encode()
 36657  	req, err := http.NewRequest("GET", urls, body)
 36658  	if err != nil {
 36659  		return nil, err
 36660  	}
 36661  	req.Header = reqHeaders
 36662  	googleapi.Expand(req.URL, map[string]string{
 36663  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 36664  	})
 36665  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36666  }
 36667  
 36668  // Do executes the "content.shoppingadsprogram.get" call.
 36669  // Any non-2xx status code is an error. Response headers are in either
 36670  // *ShoppingAdsProgramStatus.ServerResponse.Header or (if a response was
 36671  // returned at all) in error.(*googleapi.Error).Header. Use
 36672  // googleapi.IsNotModified to check whether the returned error was because
 36673  // http.StatusNotModified was returned.
 36674  func (c *ShoppingadsprogramGetCall) Do(opts ...googleapi.CallOption) (*ShoppingAdsProgramStatus, error) {
 36675  	gensupport.SetOptions(c.urlParams_, opts...)
 36676  	res, err := c.doRequest("json")
 36677  	if res != nil && res.StatusCode == http.StatusNotModified {
 36678  		if res.Body != nil {
 36679  			res.Body.Close()
 36680  		}
 36681  		return nil, gensupport.WrapError(&googleapi.Error{
 36682  			Code:   res.StatusCode,
 36683  			Header: res.Header,
 36684  		})
 36685  	}
 36686  	if err != nil {
 36687  		return nil, err
 36688  	}
 36689  	defer googleapi.CloseBody(res)
 36690  	if err := googleapi.CheckResponse(res); err != nil {
 36691  		return nil, gensupport.WrapError(err)
 36692  	}
 36693  	ret := &ShoppingAdsProgramStatus{
 36694  		ServerResponse: googleapi.ServerResponse{
 36695  			Header:         res.Header,
 36696  			HTTPStatusCode: res.StatusCode,
 36697  		},
 36698  	}
 36699  	target := &ret
 36700  	if err := gensupport.DecodeResponse(target, res); err != nil {
 36701  		return nil, err
 36702  	}
 36703  	return ret, nil
 36704  }
 36705  
 36706  type ShoppingadsprogramRequestreviewCall struct {
 36707  	s                               *APIService
 36708  	merchantId                      int64
 36709  	requestreviewshoppingadsrequest *RequestReviewShoppingAdsRequest
 36710  	urlParams_                      gensupport.URLParams
 36711  	ctx_                            context.Context
 36712  	header_                         http.Header
 36713  }
 36714  
 36715  // Requestreview: Requests a review of Shopping ads in a specific region. This
 36716  // method deprecated. Use the `MerchantSupportService` to view product and
 36717  // account issues and request a review.
 36718  //
 36719  // - merchantId: The ID of the account.
 36720  func (r *ShoppingadsprogramService) Requestreview(merchantId int64, requestreviewshoppingadsrequest *RequestReviewShoppingAdsRequest) *ShoppingadsprogramRequestreviewCall {
 36721  	c := &ShoppingadsprogramRequestreviewCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 36722  	c.merchantId = merchantId
 36723  	c.requestreviewshoppingadsrequest = requestreviewshoppingadsrequest
 36724  	return c
 36725  }
 36726  
 36727  // Fields allows partial responses to be retrieved. See
 36728  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 36729  // details.
 36730  func (c *ShoppingadsprogramRequestreviewCall) Fields(s ...googleapi.Field) *ShoppingadsprogramRequestreviewCall {
 36731  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 36732  	return c
 36733  }
 36734  
 36735  // Context sets the context to be used in this call's Do method.
 36736  func (c *ShoppingadsprogramRequestreviewCall) Context(ctx context.Context) *ShoppingadsprogramRequestreviewCall {
 36737  	c.ctx_ = ctx
 36738  	return c
 36739  }
 36740  
 36741  // Header returns a http.Header that can be modified by the caller to add
 36742  // headers to the request.
 36743  func (c *ShoppingadsprogramRequestreviewCall) Header() http.Header {
 36744  	if c.header_ == nil {
 36745  		c.header_ = make(http.Header)
 36746  	}
 36747  	return c.header_
 36748  }
 36749  
 36750  func (c *ShoppingadsprogramRequestreviewCall) doRequest(alt string) (*http.Response, error) {
 36751  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 36752  	var body io.Reader = nil
 36753  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.requestreviewshoppingadsrequest)
 36754  	if err != nil {
 36755  		return nil, err
 36756  	}
 36757  	c.urlParams_.Set("alt", alt)
 36758  	c.urlParams_.Set("prettyPrint", "false")
 36759  	urls := googleapi.ResolveRelative(c.s.BasePath, "{merchantId}/shoppingadsprogram/requestreview")
 36760  	urls += "?" + c.urlParams_.Encode()
 36761  	req, err := http.NewRequest("POST", urls, body)
 36762  	if err != nil {
 36763  		return nil, err
 36764  	}
 36765  	req.Header = reqHeaders
 36766  	googleapi.Expand(req.URL, map[string]string{
 36767  		"merchantId": strconv.FormatInt(c.merchantId, 10),
 36768  	})
 36769  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 36770  }
 36771  
 36772  // Do executes the "content.shoppingadsprogram.requestreview" call.
 36773  func (c *ShoppingadsprogramRequestreviewCall) Do(opts ...googleapi.CallOption) error {
 36774  	gensupport.SetOptions(c.urlParams_, opts...)
 36775  	res, err := c.doRequest("json")
 36776  	if err != nil {
 36777  		return err
 36778  	}
 36779  	defer googleapi.CloseBody(res)
 36780  	if err := googleapi.CheckResponse(res); err != nil {
 36781  		return gensupport.WrapError(err)
 36782  	}
 36783  	return nil
 36784  }
 36785  

View as plain text