blob: 3f6fa026cfaa8405ca0b79e84a7a49020c7df022 [file] [log] [blame]
// Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package content provides access to the Content API for Shopping.
//
// For product documentation, see: https://developers.google.com/shopping-content
//
// Creating a client
//
// Usage example:
//
// import "google.golang.org/api/content/v2.1"
// ...
// ctx := context.Background()
// contentService, err := content.NewService(ctx)
//
// In this example, Google Application Default Credentials are used for authentication.
//
// For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.
//
// Other authentication options
//
// To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:
//
// contentService, err := content.NewService(ctx, option.WithAPIKey("AIza..."))
//
// To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:
//
// config := &oauth2.Config{...}
// // ...
// token, err := config.Exchange(ctx, ...)
// contentService, err := content.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
//
// See https://godoc.org/google.golang.org/api/option/ for details on options.
package content // import "google.golang.org/api/content/v2.1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
googleapi "google.golang.org/api/googleapi"
gensupport "google.golang.org/api/internal/gensupport"
option "google.golang.org/api/option"
internaloption "google.golang.org/api/option/internaloption"
htransport "google.golang.org/api/transport/http"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
var _ = internaloption.WithDefaultEndpoint
const apiId = "content:v2.1"
const apiName = "content"
const apiVersion = "v2.1"
const basePath = "https://www.googleapis.com/content/v2.1/"
// OAuth2 scopes used by this API.
const (
// Manage your product listings and accounts for Google Shopping
ContentScope = "https://www.googleapis.com/auth/content"
)
// NewService creates a new APIService.
func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error) {
scopesOption := option.WithScopes(
"https://www.googleapis.com/auth/content",
)
// NOTE: prepend, so we don't override user-specified scopes.
opts = append([]option.ClientOption{scopesOption}, opts...)
opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
client, endpoint, err := htransport.NewClient(ctx, opts...)
if err != nil {
return nil, err
}
s, err := New(client)
if err != nil {
return nil, err
}
if endpoint != "" {
s.BasePath = endpoint
}
return s, nil
}
// New creates a new APIService. It uses the provided http.Client for requests.
//
// Deprecated: please use NewService instead.
// To provide a custom HTTP client, use option.WithHTTPClient.
// If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
func New(client *http.Client) (*APIService, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &APIService{client: client, BasePath: basePath}
s.Accounts = NewAccountsService(s)
s.Accountstatuses = NewAccountstatusesService(s)
s.Accounttax = NewAccounttaxService(s)
s.Datafeeds = NewDatafeedsService(s)
s.Datafeedstatuses = NewDatafeedstatusesService(s)
s.Liasettings = NewLiasettingsService(s)
s.Localinventory = NewLocalinventoryService(s)
s.Orderinvoices = NewOrderinvoicesService(s)
s.Orderreports = NewOrderreportsService(s)
s.Orderreturns = NewOrderreturnsService(s)
s.Orders = NewOrdersService(s)
s.Pos = NewPosService(s)
s.Products = NewProductsService(s)
s.Productstatuses = NewProductstatusesService(s)
s.Pubsubnotificationsettings = NewPubsubnotificationsettingsService(s)
s.Regionalinventory = NewRegionalinventoryService(s)
s.Returnaddress = NewReturnaddressService(s)
s.Returnpolicy = NewReturnpolicyService(s)
s.Settlementreports = NewSettlementreportsService(s)
s.Settlementtransactions = NewSettlementtransactionsService(s)
s.Shippingsettings = NewShippingsettingsService(s)
return s, nil
}
type APIService struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Accounts *AccountsService
Accountstatuses *AccountstatusesService
Accounttax *AccounttaxService
Datafeeds *DatafeedsService
Datafeedstatuses *DatafeedstatusesService
Liasettings *LiasettingsService
Localinventory *LocalinventoryService
Orderinvoices *OrderinvoicesService
Orderreports *OrderreportsService
Orderreturns *OrderreturnsService
Orders *OrdersService
Pos *PosService
Products *ProductsService
Productstatuses *ProductstatusesService
Pubsubnotificationsettings *PubsubnotificationsettingsService
Regionalinventory *RegionalinventoryService
Returnaddress *ReturnaddressService
Returnpolicy *ReturnpolicyService
Settlementreports *SettlementreportsService
Settlementtransactions *SettlementtransactionsService
Shippingsettings *ShippingsettingsService
}
func (s *APIService) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewAccountsService(s *APIService) *AccountsService {
rs := &AccountsService{s: s}
return rs
}
type AccountsService struct {
s *APIService
}
func NewAccountstatusesService(s *APIService) *AccountstatusesService {
rs := &AccountstatusesService{s: s}
return rs
}
type AccountstatusesService struct {
s *APIService
}
func NewAccounttaxService(s *APIService) *AccounttaxService {
rs := &AccounttaxService{s: s}
return rs
}
type AccounttaxService struct {
s *APIService
}
func NewDatafeedsService(s *APIService) *DatafeedsService {
rs := &DatafeedsService{s: s}
return rs
}
type DatafeedsService struct {
s *APIService
}
func NewDatafeedstatusesService(s *APIService) *DatafeedstatusesService {
rs := &DatafeedstatusesService{s: s}
return rs
}
type DatafeedstatusesService struct {
s *APIService
}
func NewLiasettingsService(s *APIService) *LiasettingsService {
rs := &LiasettingsService{s: s}
return rs
}
type LiasettingsService struct {
s *APIService
}
func NewLocalinventoryService(s *APIService) *LocalinventoryService {
rs := &LocalinventoryService{s: s}
return rs
}
type LocalinventoryService struct {
s *APIService
}
func NewOrderinvoicesService(s *APIService) *OrderinvoicesService {
rs := &OrderinvoicesService{s: s}
return rs
}
type OrderinvoicesService struct {
s *APIService
}
func NewOrderreportsService(s *APIService) *OrderreportsService {
rs := &OrderreportsService{s: s}
return rs
}
type OrderreportsService struct {
s *APIService
}
func NewOrderreturnsService(s *APIService) *OrderreturnsService {
rs := &OrderreturnsService{s: s}
return rs
}
type OrderreturnsService struct {
s *APIService
}
func NewOrdersService(s *APIService) *OrdersService {
rs := &OrdersService{s: s}
return rs
}
type OrdersService struct {
s *APIService
}
func NewPosService(s *APIService) *PosService {
rs := &PosService{s: s}
return rs
}
type PosService struct {
s *APIService
}
func NewProductsService(s *APIService) *ProductsService {
rs := &ProductsService{s: s}
return rs
}
type ProductsService struct {
s *APIService
}
func NewProductstatusesService(s *APIService) *ProductstatusesService {
rs := &ProductstatusesService{s: s}
return rs
}
type ProductstatusesService struct {
s *APIService
}
func NewPubsubnotificationsettingsService(s *APIService) *PubsubnotificationsettingsService {
rs := &PubsubnotificationsettingsService{s: s}
return rs
}
type PubsubnotificationsettingsService struct {
s *APIService
}
func NewRegionalinventoryService(s *APIService) *RegionalinventoryService {
rs := &RegionalinventoryService{s: s}
return rs
}
type RegionalinventoryService struct {
s *APIService
}
func NewReturnaddressService(s *APIService) *ReturnaddressService {
rs := &ReturnaddressService{s: s}
return rs
}
type ReturnaddressService struct {
s *APIService
}
func NewReturnpolicyService(s *APIService) *ReturnpolicyService {
rs := &ReturnpolicyService{s: s}
return rs
}
type ReturnpolicyService struct {
s *APIService
}
func NewSettlementreportsService(s *APIService) *SettlementreportsService {
rs := &SettlementreportsService{s: s}
return rs
}
type SettlementreportsService struct {
s *APIService
}
func NewSettlementtransactionsService(s *APIService) *SettlementtransactionsService {
rs := &SettlementtransactionsService{s: s}
return rs
}
type SettlementtransactionsService struct {
s *APIService
}
func NewShippingsettingsService(s *APIService) *ShippingsettingsService {
rs := &ShippingsettingsService{s: s}
return rs
}
type ShippingsettingsService struct {
s *APIService
}
// Account: Account data. After the creation of a new account it may
// take a few minutes before it is fully operational. The methods
// delete, insert, and update require the admin role.
type Account struct {
// AdsLinks: List of linked Ads accounts that are active or pending
// approval. To create a new link request, add a new link with status
// `active` to the list. It will remain in a `pending` state until
// approved or rejected either in the Ads interface or through the
// AdWords API. To delete an active link, or to cancel a link request,
// remove it from the list.
AdsLinks []*AccountAdsLink `json:"adsLinks,omitempty"`
// AdultContent: Indicates whether the merchant sells adult content.
AdultContent bool `json:"adultContent,omitempty"`
// BusinessInformation: The business information of the account.
BusinessInformation *AccountBusinessInformation `json:"businessInformation,omitempty"`
// CssId: ID of CSS the account belongs to.
CssId uint64 `json:"cssId,omitempty,string"`
// GoogleMyBusinessLink: The GMB account which is linked or in the
// process of being linked with the Merchant Center account.
GoogleMyBusinessLink *AccountGoogleMyBusinessLink `json:"googleMyBusinessLink,omitempty"`
// Id: Required for update. Merchant Center account ID.
Id uint64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#account"
Kind string `json:"kind,omitempty"`
// LabelIds: List of label IDs that are assigned to the account by CSS.
LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
// Name: Required. Display name for the account.
Name string `json:"name,omitempty"`
// SellerId: Client-specific, locally-unique, internal ID for the child
// account.
SellerId string `json:"sellerId,omitempty"`
// Users: Users with access to the account. Every account (except for
// subaccounts) must have at least one admin user.
Users []*AccountUser `json:"users,omitempty"`
// WebsiteUrl: The merchant's website.
WebsiteUrl string `json:"websiteUrl,omitempty"`
// YoutubeChannelLinks: List of linked YouTube channels that are active
// or pending approval. To create a new link request, add a new link
// with status `active` to the list. It will remain in a `pending` state
// until approved or rejected in the YT Creator Studio interface. To
// delete an active link, or to cancel a link request, remove it from
// the list.
YoutubeChannelLinks []*AccountYouTubeChannelLink `json:"youtubeChannelLinks,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AdsLinks") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdsLinks") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Account) MarshalJSON() ([]byte, error) {
type NoMethod Account
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountAddress struct {
// Country: CLDR country code (e.g. "US"). This value cannot be set for
// a sub-account of an MCA. All MCA sub-accounts inherit the country of
// their parent MCA.
Country string `json:"country,omitempty"`
// Locality: City, town or commune. May also include dependent
// localities or sublocalities (e.g. neighborhoods or suburbs).
Locality string `json:"locality,omitempty"`
// PostalCode: Postal code or ZIP (e.g. "94043").
PostalCode string `json:"postalCode,omitempty"`
// Region: Top-level administrative subdivision of the country. For
// example, a state like California ("CA") or a province like Quebec
// ("QC").
Region string `json:"region,omitempty"`
// StreetAddress: Street-level part of the address.
StreetAddress string `json:"streetAddress,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountAddress) MarshalJSON() ([]byte, error) {
type NoMethod AccountAddress
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountAdsLink struct {
// AdsId: Customer ID of the Ads account.
AdsId uint64 `json:"adsId,omitempty,string"`
// Status: Status of the link between this Merchant Center account and
// the Ads account. Upon retrieval, it represents the actual status of
// the link and can be either `active` if it was approved in Google Ads
// or `pending` if it's pending approval. Upon insertion, it represents
// the intended status of the link. Re-uploading a link with status
// `active` when it's still pending or with status `pending` when it's
// already active will have no effect: the status will remain unchanged.
// Re-uploading a link with deprecated status `inactive` is equivalent
// to not submitting the link at all and will delete the link if it was
// active or cancel the link request if it was pending.
//
// Acceptable values are:
// - "active"
// - "pending"
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "AdsId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdsId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountAdsLink) MarshalJSON() ([]byte, error) {
type NoMethod AccountAdsLink
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountBusinessInformation struct {
// Address: The address of the business.
Address *AccountAddress `json:"address,omitempty"`
// CustomerService: The customer service information of the business.
CustomerService *AccountCustomerService `json:"customerService,omitempty"`
// PhoneNumber: The phone number of the business.
PhoneNumber string `json:"phoneNumber,omitempty"`
// ForceSendFields is a list of field names (e.g. "Address") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Address") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountBusinessInformation) MarshalJSON() ([]byte, error) {
type NoMethod AccountBusinessInformation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountCustomerService struct {
// Email: Customer service email.
Email string `json:"email,omitempty"`
// PhoneNumber: Customer service phone number.
PhoneNumber string `json:"phoneNumber,omitempty"`
// Url: Customer service URL.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Email") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountCustomerService) MarshalJSON() ([]byte, error) {
type NoMethod AccountCustomerService
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountGoogleMyBusinessLink struct {
// GmbAccountId: The ID of the GMB account. If this is provided, then
// `gmbEmail` is ignored. The value of this field should match the
// `accountId` used by the GMB API.
GmbAccountId string `json:"gmbAccountId,omitempty"`
// GmbEmail: The GMB email address of which a specific account within a
// GMB account. A sample account within a GMB account could be a
// business account with set of locations, managed under the GMB
// account.
GmbEmail string `json:"gmbEmail,omitempty"`
// Status: Status of the link between this Merchant Center account and
// the GMB account.
//
// Acceptable values are:
// - "active"
// - "pending"
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "GmbAccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GmbAccountId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountGoogleMyBusinessLink) MarshalJSON() ([]byte, error) {
type NoMethod AccountGoogleMyBusinessLink
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountIdentifier struct {
// AggregatorId: The aggregator ID, set for aggregators and subaccounts
// (in that case, it represents the aggregator of the subaccount).
AggregatorId uint64 `json:"aggregatorId,omitempty,string"`
// MerchantId: The merchant account ID, set for individual accounts and
// subaccounts.
MerchantId uint64 `json:"merchantId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "AggregatorId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AggregatorId") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountIdentifier) MarshalJSON() ([]byte, error) {
type NoMethod AccountIdentifier
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountStatus: The status of an account, i.e., information about its
// products, which is computed offline and not returned immediately at
// insertion time.
type AccountStatus struct {
// AccountId: The ID of the account for which the status is reported.
AccountId string `json:"accountId,omitempty"`
// AccountLevelIssues: A list of account level issues.
AccountLevelIssues []*AccountStatusAccountLevelIssue `json:"accountLevelIssues,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountStatus"
Kind string `json:"kind,omitempty"`
// Products: List of product-related data by channel, destination, and
// country. Data in this field may be delayed by up to 30 minutes.
Products []*AccountStatusProducts `json:"products,omitempty"`
// WebsiteClaimed: Whether the account's website is claimed or not.
WebsiteClaimed bool `json:"websiteClaimed,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountStatus) MarshalJSON() ([]byte, error) {
type NoMethod AccountStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountStatusAccountLevelIssue struct {
// Country: Country for which this issue is reported.
Country string `json:"country,omitempty"`
// Destination: The destination the issue applies to. If this field is
// empty then the issue applies to all available destinations.
Destination string `json:"destination,omitempty"`
// Detail: Additional details about the issue.
Detail string `json:"detail,omitempty"`
// Documentation: The URL of a web page to help resolving this issue.
Documentation string `json:"documentation,omitempty"`
// Id: Issue identifier.
Id string `json:"id,omitempty"`
// Severity: Severity of the issue.
//
// Acceptable values are:
// - "critical"
// - "error"
// - "suggestion"
Severity string `json:"severity,omitempty"`
// Title: Short description of the issue.
Title string `json:"title,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error) {
type NoMethod AccountStatusAccountLevelIssue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountStatusItemLevelIssue struct {
// AttributeName: The attribute's name, if the issue is caused by a
// single attribute.
AttributeName string `json:"attributeName,omitempty"`
// Code: The error code of the issue.
Code string `json:"code,omitempty"`
// Description: A short issue description in English.
Description string `json:"description,omitempty"`
// Detail: A detailed issue description in English.
Detail string `json:"detail,omitempty"`
// Documentation: The URL of a web page to help with resolving this
// issue.
Documentation string `json:"documentation,omitempty"`
// NumItems: Number of items with this issue.
NumItems int64 `json:"numItems,omitempty,string"`
// Resolution: Whether the issue can be resolved by the merchant.
Resolution string `json:"resolution,omitempty"`
// Servability: How this issue affects serving of the offer.
Servability string `json:"servability,omitempty"`
// ForceSendFields is a list of field names (e.g. "AttributeName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AttributeName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error) {
type NoMethod AccountStatusItemLevelIssue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountStatusProducts struct {
// Channel: The channel the data applies to.
//
// Acceptable values are:
// - "local"
// - "online"
Channel string `json:"channel,omitempty"`
// Country: The country the data applies to.
Country string `json:"country,omitempty"`
// Destination: The destination the data applies to.
Destination string `json:"destination,omitempty"`
// ItemLevelIssues: List of item-level issues.
ItemLevelIssues []*AccountStatusItemLevelIssue `json:"itemLevelIssues,omitempty"`
// Statistics: Aggregated product statistics.
Statistics *AccountStatusStatistics `json:"statistics,omitempty"`
// ForceSendFields is a list of field names (e.g. "Channel") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Channel") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountStatusProducts) MarshalJSON() ([]byte, error) {
type NoMethod AccountStatusProducts
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountStatusStatistics struct {
// Active: Number of active offers.
Active int64 `json:"active,omitempty,string"`
// Disapproved: Number of disapproved offers.
Disapproved int64 `json:"disapproved,omitempty,string"`
// Expiring: Number of expiring offers.
Expiring int64 `json:"expiring,omitempty,string"`
// Pending: Number of pending offers.
Pending int64 `json:"pending,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Active") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Active") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountStatusStatistics) MarshalJSON() ([]byte, error) {
type NoMethod AccountStatusStatistics
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountTax: The tax settings of a merchant account. All methods
// require the admin role.
type AccountTax struct {
// AccountId: Required. The ID of the account to which these account tax
// settings belong.
AccountId uint64 `json:"accountId,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountTax".
Kind string `json:"kind,omitempty"`
// Rules: Tax rules. Updating the tax rules will enable US taxes (not
// reversible). Defining no rules is equivalent to not charging tax at
// all.
Rules []*AccountTaxTaxRule `json:"rules,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountTax) MarshalJSON() ([]byte, error) {
type NoMethod AccountTax
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountTaxTaxRule: Tax calculation rule to apply in a state or
// province (USA only).
type AccountTaxTaxRule struct {
// Country: Country code in which tax is applicable.
Country string `json:"country,omitempty"`
// LocationId: Required. State (or province) is which the tax is
// applicable, described by its location ID (also called criteria ID).
LocationId uint64 `json:"locationId,omitempty,string"`
// RatePercent: Explicit tax rate in percent, represented as a floating
// point number without the percentage character. Must not be negative.
RatePercent string `json:"ratePercent,omitempty"`
// ShippingTaxed: If true, shipping charges are also taxed.
ShippingTaxed bool `json:"shippingTaxed,omitempty"`
// UseGlobalRate: Whether the tax rate is taken from a global tax table
// or specified explicitly.
UseGlobalRate bool `json:"useGlobalRate,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountTaxTaxRule) MarshalJSON() ([]byte, error) {
type NoMethod AccountTaxTaxRule
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountUser struct {
// Admin: Whether user is an admin.
Admin bool `json:"admin,omitempty"`
// EmailAddress: User's email address.
EmailAddress string `json:"emailAddress,omitempty"`
// OrderManager: Whether user is an order manager.
OrderManager bool `json:"orderManager,omitempty"`
// PaymentsAnalyst: Whether user can access payment statements.
PaymentsAnalyst bool `json:"paymentsAnalyst,omitempty"`
// PaymentsManager: Whether user can manage payment settings.
PaymentsManager bool `json:"paymentsManager,omitempty"`
// ForceSendFields is a list of field names (e.g. "Admin") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Admin") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountUser) MarshalJSON() ([]byte, error) {
type NoMethod AccountUser
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountYouTubeChannelLink struct {
// ChannelId: Channel ID.
ChannelId string `json:"channelId,omitempty"`
// Status: Status of the link between this Merchant Center account and
// the YouTube channel. Upon retrieval, it represents the actual status
// of the link and can be either `active` if it was approved in YT
// Creator Studio or `pending` if it's pending approval. Upon insertion,
// it represents the intended status of the link. Re-uploading a link
// with status `active` when it's still pending or with status `pending`
// when it's already active will have no effect: the status will remain
// unchanged. Re-uploading a link with deprecated status `inactive` is
// equivalent to not submitting the link at all and will delete the link
// if it was active or cancel the link request if it was pending.
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g. "ChannelId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChannelId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountYouTubeChannelLink) MarshalJSON() ([]byte, error) {
type NoMethod AccountYouTubeChannelLink
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsAuthInfoResponse struct {
// AccountIdentifiers: The account identifiers corresponding to the
// authenticated user.
// - For an individual account: only the merchant ID is defined
// - For an aggregator: only the aggregator ID is defined
// - For a subaccount of an MCA: both the merchant ID and the aggregator
// ID are defined.
AccountIdentifiers []*AccountIdentifier `json:"accountIdentifiers,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsAuthInfoResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountIdentifiers")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountIdentifiers") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AccountsAuthInfoResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsAuthInfoResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsClaimWebsiteResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsClaimWebsiteResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsClaimWebsiteResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsClaimWebsiteResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsCustomBatchRequest struct {
// Entries: The request entries to be processed in the batch.
Entries []*AccountsCustomBatchRequestEntry `json:"entries,omitempty"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsCustomBatchRequest) MarshalJSON() ([]byte, error) {
type NoMethod AccountsCustomBatchRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountsCustomBatchRequestEntry: A batch entry encoding a single
// non-batch accounts request.
type AccountsCustomBatchRequestEntry struct {
// Account: The account to create or update. Only defined if the method
// is `insert` or `update`.
Account *Account `json:"account,omitempty"`
// AccountId: The ID of the targeted account. Only defined if the method
// is not `insert`.
AccountId uint64 `json:"accountId,omitempty,string"`
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Force: Whether the account should be deleted if the account has
// offers. Only applicable if the method is `delete`.
Force bool `json:"force,omitempty"`
// LabelIds: Label IDs for the 'updatelabels' request.
LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
// LinkRequest: Details about the `link` request.
LinkRequest *AccountsCustomBatchRequestEntryLinkRequest `json:"linkRequest,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
// Method: The method of the batch entry.
//
// Acceptable values are:
// - "claimWebsite"
// - "delete"
// - "get"
// - "insert"
// - "link"
// - "update"
Method string `json:"method,omitempty"`
// Overwrite: Only applicable if the method is `claimwebsite`. Indicates
// whether or not to take the claim from another account in case there
// is a conflict.
Overwrite bool `json:"overwrite,omitempty"`
// View: Controls which fields are visible. Only applicable if the
// method is 'get'.
View string `json:"view,omitempty"`
// ForceSendFields is a list of field names (e.g. "Account") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Account") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
type NoMethod AccountsCustomBatchRequestEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsCustomBatchRequestEntryLinkRequest struct {
// Action: Action to perform for this link. The "request" action is
// only available to select merchants.
//
// Acceptable values are:
// - "approve"
// - "remove"
// - "request"
Action string `json:"action,omitempty"`
// LinkType: Type of the link between the two accounts.
//
// Acceptable values are:
// - "channelPartner"
// - "eCommercePlatform"
LinkType string `json:"linkType,omitempty"`
// LinkedAccountId: The ID of the linked account.
LinkedAccountId string `json:"linkedAccountId,omitempty"`
// Services: List of provided services.
Services []string `json:"services,omitempty"`
// ForceSendFields is a list of field names (e.g. "Action") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Action") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON() ([]byte, error) {
type NoMethod AccountsCustomBatchRequestEntryLinkRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsCustomBatchResponse struct {
// Entries: The result of the execution of the batch requests.
Entries []*AccountsCustomBatchResponseEntry `json:"entries,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsCustomBatchResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsCustomBatchResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsCustomBatchResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountsCustomBatchResponseEntry: A batch entry encoding a single
// non-batch accounts response.
type AccountsCustomBatchResponseEntry struct {
// Account: The retrieved, created, or updated account. Not defined if
// the method was `delete`, `claimwebsite` or `link`.
Account *Account `json:"account,omitempty"`
// BatchId: The ID of the request entry this entry responds to.
BatchId int64 `json:"batchId,omitempty"`
// Errors: A list of errors defined if and only if the request failed.
Errors *Errors `json:"errors,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsCustomBatchResponseEntry"
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "Account") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Account") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
type NoMethod AccountsCustomBatchResponseEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsLinkRequest struct {
// Action: Action to perform for this link. The "request" action is
// only available to select merchants.
//
// Acceptable values are:
// - "approve"
// - "remove"
// - "request"
Action string `json:"action,omitempty"`
// LinkType: Type of the link between the two accounts.
//
// Acceptable values are:
// - "channelPartner"
// - "eCommercePlatform"
LinkType string `json:"linkType,omitempty"`
// LinkedAccountId: The ID of the linked account.
LinkedAccountId string `json:"linkedAccountId,omitempty"`
// Services: List of provided services.
Services []string `json:"services,omitempty"`
// ForceSendFields is a list of field names (e.g. "Action") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Action") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsLinkRequest) MarshalJSON() ([]byte, error) {
type NoMethod AccountsLinkRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsLinkResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsLinkResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsLinkResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsLinkResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsListLinksResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsListLinksResponse".
Kind string `json:"kind,omitempty"`
// Links: The list of available links.
Links []*LinkedAccount `json:"links,omitempty"`
// NextPageToken: The token for the retrieval of the next page of links.
NextPageToken string `json:"nextPageToken,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsListLinksResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsListLinksResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: The token for the retrieval of the next page of
// accounts.
NextPageToken string `json:"nextPageToken,omitempty"`
Resources []*Account `json:"resources,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsUpdateLabelsRequest struct {
// LabelIds: The IDs of labels that should be assigned to the account.
LabelIds googleapi.Uint64s `json:"labelIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "LabelIds") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "LabelIds") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsUpdateLabelsRequest) MarshalJSON() ([]byte, error) {
type NoMethod AccountsUpdateLabelsRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountsUpdateLabelsResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountsUpdateLabelsResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsUpdateLabelsResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsUpdateLabelsResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountstatusesCustomBatchRequest struct {
// Entries: The request entries to be processed in the batch.
Entries []*AccountstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
type NoMethod AccountstatusesCustomBatchRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountstatusesCustomBatchRequestEntry: A batch entry encoding a
// single non-batch accountstatuses request.
type AccountstatusesCustomBatchRequestEntry struct {
// AccountId: The ID of the (sub-)account whose status to get.
AccountId uint64 `json:"accountId,omitempty,string"`
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Destinations: If set, only issues for the specified destinations are
// returned, otherwise only issues for the Shopping destination.
Destinations []string `json:"destinations,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
// Method: The method of the batch entry.
//
// Acceptable values are:
// - "get"
Method string `json:"method,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
type NoMethod AccountstatusesCustomBatchRequestEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountstatusesCustomBatchResponse struct {
// Entries: The result of the execution of the batch requests.
Entries []*AccountstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountstatusesCustomBatchResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountstatusesCustomBatchResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountstatusesCustomBatchResponseEntry: A batch entry encoding a
// single non-batch accountstatuses response.
type AccountstatusesCustomBatchResponseEntry struct {
// AccountStatus: The requested account status. Defined if and only if
// the request was successful.
AccountStatus *AccountStatus `json:"accountStatus,omitempty"`
// BatchId: The ID of the request entry this entry responds to.
BatchId int64 `json:"batchId,omitempty"`
// Errors: A list of errors defined if and only if the request failed.
Errors *Errors `json:"errors,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountStatus") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountStatus") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
type NoMethod AccountstatusesCustomBatchResponseEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccountstatusesListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accountstatusesListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: The token for the retrieval of the next page of
// account statuses.
NextPageToken string `json:"nextPageToken,omitempty"`
Resources []*AccountStatus `json:"resources,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountstatusesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountstatusesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccounttaxCustomBatchRequest struct {
// Entries: The request entries to be processed in the batch.
Entries []*AccounttaxCustomBatchRequestEntry `json:"entries,omitempty"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccounttaxCustomBatchRequest) MarshalJSON() ([]byte, error) {
type NoMethod AccounttaxCustomBatchRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccounttaxCustomBatchRequestEntry: A batch entry encoding a single
// non-batch accounttax request.
type AccounttaxCustomBatchRequestEntry struct {
// AccountId: The ID of the account for which to get/update account tax
// settings.
AccountId uint64 `json:"accountId,omitempty,string"`
// AccountTax: The account tax settings to update. Only defined if the
// method is `update`.
AccountTax *AccountTax `json:"accountTax,omitempty"`
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
// Method: The method of the batch entry.
//
// Acceptable values are:
// - "get"
// - "update"
Method string `json:"method,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccounttaxCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
type NoMethod AccounttaxCustomBatchRequestEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccounttaxCustomBatchResponse struct {
// Entries: The result of the execution of the batch requests.
Entries []*AccounttaxCustomBatchResponseEntry `json:"entries,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accounttaxCustomBatchResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccounttaxCustomBatchResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccounttaxCustomBatchResponseEntry: A batch entry encoding a single
// non-batch accounttax response.
type AccounttaxCustomBatchResponseEntry struct {
// AccountTax: The retrieved or updated account tax settings.
AccountTax *AccountTax `json:"accountTax,omitempty"`
// BatchId: The ID of the request entry this entry responds to.
BatchId int64 `json:"batchId,omitempty"`
// Errors: A list of errors defined if and only if the request failed.
Errors *Errors `json:"errors,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accounttaxCustomBatchResponseEntry"
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountTax") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountTax") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccounttaxCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
type NoMethod AccounttaxCustomBatchResponseEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AccounttaxListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#accounttaxListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: The token for the retrieval of the next page of
// account tax settings.
NextPageToken string `json:"nextPageToken,omitempty"`
Resources []*AccountTax `json:"resources,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccounttaxListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccounttaxListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Amount struct {
// PriceAmount: [required] The pre-tax or post-tax price depending on
// the location of the order.
PriceAmount *Price `json:"priceAmount,omitempty"`
// TaxAmount: [required] Tax value.
TaxAmount *Price `json:"taxAmount,omitempty"`
// ForceSendFields is a list of field names (e.g. "PriceAmount") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "PriceAmount") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Amount) MarshalJSON() ([]byte, error) {
type NoMethod Amount
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type BusinessDayConfig struct {
// BusinessDays: Regular business days. May not be empty.
BusinessDays []string `json:"businessDays,omitempty"`
// ForceSendFields is a list of field names (e.g. "BusinessDays") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BusinessDays") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BusinessDayConfig) MarshalJSON() ([]byte, error) {
type NoMethod BusinessDayConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CarrierRate struct {
// CarrierName: Carrier service, such as "UPS" or "Fedex". The list
// of supported carriers can be retrieved via the `getSupportedCarriers`
// method. Required.
CarrierName string `json:"carrierName,omitempty"`
// CarrierService: Carrier service, such as "ground" or "2 days".
// The list of supported services for a carrier can be retrieved via the
// `getSupportedCarriers` method. Required.
CarrierService string `json:"carrierService,omitempty"`
// FlatAdjustment: Additive shipping rate modifier. Can be negative. For
// example `{ "value": "1", "currency" : "USD" }` adds $1 to the rate,
// `{ "value": "-3", "currency" : "USD" }` removes $3 from the rate.
// Optional.
FlatAdjustment *Price `json:"flatAdjustment,omitempty"`
// Name: Name of the carrier rate. Must be unique per rate group.
// Required.
Name string `json:"name,omitempty"`
// OriginPostalCode: Shipping origin for this carrier rate. Required.
OriginPostalCode string `json:"originPostalCode,omitempty"`
// PercentageAdjustment: Multiplicative shipping rate modifier as a
// number in decimal notation. Can be negative. For example "5.4"
// increases the rate by 5.4%, "-3" decreases the rate by 3%.
// Optional.
PercentageAdjustment string `json:"percentageAdjustment,omitempty"`
// ForceSendFields is a list of field names (e.g. "CarrierName") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CarrierName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CarrierRate) MarshalJSON() ([]byte, error) {
type NoMethod CarrierRate
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CarriersCarrier struct {
// Country: The CLDR country code of the carrier (e.g., "US"). Always
// present.
Country string `json:"country,omitempty"`
// Name: The name of the carrier (e.g., "UPS"). Always present.
Name string `json:"name,omitempty"`
// Services: A list of supported services (e.g., "ground") for that
// carrier. Contains at least one service.
Services []string `json:"services,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CarriersCarrier) MarshalJSON() ([]byte, error) {
type NoMethod CarriersCarrier
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CustomAttribute struct {
// GroupValues: Subattributes within this attribute group. Exactly one
// of value or groupValues must be provided.
GroupValues []*CustomAttribute `json:"groupValues,omitempty"`
// Name: The name of the attribute. Underscores will be replaced by
// spaces upon insertion.
Name string `json:"name,omitempty"`
// Value: The value of the attribute.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "GroupValues") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "GroupValues") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CustomAttribute) MarshalJSON() ([]byte, error) {
type NoMethod CustomAttribute
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CustomerReturnReason struct {
// Description: Description of the reason.
Description string `json:"description,omitempty"`
// ReasonCode: Code of the return reason.
//
// Acceptable values are:
// - "betterPriceFound"
// - "changedMind"
// - "damagedOrDefectiveItem"
// - "didNotMatchDescription"
// - "doesNotFit"
// - "expiredItem"
// - "incorrectItemReceived"
// - "noLongerNeeded"
// - "notSpecified"
// - "orderedWrongItem"
// - "other"
// - "qualityNotExpected"
// - "receivedTooLate"
// - "undeliverable"
ReasonCode string `json:"reasonCode,omitempty"`
// ForceSendFields is a list of field names (e.g. "Description") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Description") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CustomerReturnReason) MarshalJSON() ([]byte, error) {
type NoMethod CustomerReturnReason
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type CutoffTime struct {
// Hour: Hour of the cutoff time until which an order has to be placed
// to be processed in the same day. Required.
Hour int64 `json:"hour,omitempty"`
// Minute: Minute of the cutoff time until which an order has to be
// placed to be processed in the same day. Required.
Minute int64 `json:"minute,omitempty"`
// Timezone: Timezone identifier for the cutoff time. A list of
// identifiers can be found in the AdWords API documentation. E.g.
// "Europe/Zurich". Required.
Timezone string `json:"timezone,omitempty"`
// ForceSendFields is a list of field names (e.g. "Hour") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Hour") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CutoffTime) MarshalJSON() ([]byte, error) {
type NoMethod CutoffTime
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Datafeed: Datafeed configuration data.
type Datafeed struct {
// AttributeLanguage: The two-letter ISO 639-1 language in which the
// attributes are defined in the data feed.
AttributeLanguage string `json:"attributeLanguage,omitempty"`
// ContentType: Required. The type of data feed. For product inventory
// feeds, only feeds for local stores, not online stores, are
// supported.
//
// Acceptable values are:
// - "local products"
// - "product inventory"
// - "products"
ContentType string `json:"contentType,omitempty"`
// FetchSchedule: Fetch schedule for the feed file.
FetchSchedule *DatafeedFetchSchedule `json:"fetchSchedule,omitempty"`
// FileName: Required. The filename of the feed. All feeds must have a
// unique file name.
FileName string `json:"fileName,omitempty"`
// Format: Format of the feed file.
Format *DatafeedFormat `json:"format,omitempty"`
// Id: Required for update. The ID of the data feed.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeed"
Kind string `json:"kind,omitempty"`
// Name: Required for insert. A descriptive name of the data feed.
Name string `json:"name,omitempty"`
// Targets: The targets this feed should apply to (country, language,
// destinations).
Targets []*DatafeedTarget `json:"targets,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AttributeLanguage")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AttributeLanguage") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Datafeed) MarshalJSON() ([]byte, error) {
type NoMethod Datafeed
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedFetchSchedule: The required fields vary based on the
// frequency of fetching. For a monthly fetch schedule, day_of_month and
// hour are required. For a weekly fetch schedule, weekday and hour are
// required. For a daily fetch schedule, only hour is required.
type DatafeedFetchSchedule struct {
// DayOfMonth: The day of the month the feed file should be fetched
// (1-31).
DayOfMonth int64 `json:"dayOfMonth,omitempty"`
// FetchUrl: The URL where the feed file can be fetched. Google Merchant
// Center will support automatic scheduled uploads using the HTTP,
// HTTPS, FTP, or SFTP protocols, so the value will need to be a valid
// link using one of those four protocols.
FetchUrl string `json:"fetchUrl,omitempty"`
// Hour: The hour of the day the feed file should be fetched (0-23).
Hour int64 `json:"hour,omitempty"`
// MinuteOfHour: The minute of the hour the feed file should be fetched
// (0-59). Read-only.
MinuteOfHour int64 `json:"minuteOfHour,omitempty"`
// Password: An optional password for fetch_url.
Password string `json:"password,omitempty"`
// Paused: Whether the scheduled fetch is paused or not.
Paused bool `json:"paused,omitempty"`
// TimeZone: Time zone used for schedule. UTC by default. E.g.,
// "America/Los_Angeles".
TimeZone string `json:"timeZone,omitempty"`
// Username: An optional user name for fetch_url.
Username string `json:"username,omitempty"`
// Weekday: The day of the week the feed file should be
// fetched.
//
// Acceptable values are:
// - "monday"
// - "tuesday"
// - "wednesday"
// - "thursday"
// - "friday"
// - "saturday"
// - "sunday"
Weekday string `json:"weekday,omitempty"`
// ForceSendFields is a list of field names (e.g. "DayOfMonth") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DayOfMonth") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedFetchSchedule) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedFetchSchedule
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedFormat struct {
// ColumnDelimiter: Delimiter for the separation of values in a
// delimiter-separated values feed. If not specified, the delimiter will
// be auto-detected. Ignored for non-DSV data feeds.
//
// Acceptable values are:
// - "pipe"
// - "tab"
// - "tilde"
ColumnDelimiter string `json:"columnDelimiter,omitempty"`
// FileEncoding: Character encoding scheme of the data feed. If not
// specified, the encoding will be auto-detected.
//
// Acceptable values are:
// - "latin-1"
// - "utf-16be"
// - "utf-16le"
// - "utf-8"
// - "windows-1252"
FileEncoding string `json:"fileEncoding,omitempty"`
// QuotingMode: Specifies how double quotes are interpreted. If not
// specified, the mode will be auto-detected. Ignored for non-DSV data
// feeds.
//
// Acceptable values are:
// - "normal character"
// - "value quoting"
QuotingMode string `json:"quotingMode,omitempty"`
// ForceSendFields is a list of field names (e.g. "ColumnDelimiter") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ColumnDelimiter") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *DatafeedFormat) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedFormat
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedStatus: The status of a datafeed, i.e., the result of the
// last retrieval of the datafeed computed asynchronously when the feed
// processing is finished.
type DatafeedStatus struct {
// Country: The country for which the status is reported, represented as
// a CLDR territory code.
Country string `json:"country,omitempty"`
// DatafeedId: The ID of the feed for which the status is reported.
DatafeedId uint64 `json:"datafeedId,omitempty,string"`
// Errors: The list of errors occurring in the feed.
Errors []*DatafeedStatusError `json:"errors,omitempty"`
// ItemsTotal: The number of items in the feed that were processed.
ItemsTotal uint64 `json:"itemsTotal,omitempty,string"`
// ItemsValid: The number of items in the feed that were valid.
ItemsValid uint64 `json:"itemsValid,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedStatus"
Kind string `json:"kind,omitempty"`
// Language: The two-letter ISO 639-1 language for which the status is
// reported.
Language string `json:"language,omitempty"`
// LastUploadDate: The last date at which the feed was uploaded.
LastUploadDate string `json:"lastUploadDate,omitempty"`
// ProcessingStatus: The processing status of the feed.
//
// Acceptable values are:
// - ""failure": The feed could not be processed or all items had
// errors."
// - "in progress": The feed is being processed.
// - "none": The feed has not yet been processed. For example, a feed
// that has never been uploaded will have this processing status.
// - "success": The feed was processed successfully, though some items
// might have had errors.
ProcessingStatus string `json:"processingStatus,omitempty"`
// Warnings: The list of errors occurring in the feed.
Warnings []*DatafeedStatusError `json:"warnings,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedStatus) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedStatusError: An error occurring in the feed, like "invalid
// price".
type DatafeedStatusError struct {
// Code: The code of the error, e.g., "validation/invalid_value".
Code string `json:"code,omitempty"`
// Count: The number of occurrences of the error in the feed.
Count uint64 `json:"count,omitempty,string"`
// Examples: A list of example occurrences of the error, grouped by
// product.
Examples []*DatafeedStatusExample `json:"examples,omitempty"`
// Message: The error message, e.g., "Invalid price".
Message string `json:"message,omitempty"`
// ForceSendFields is a list of field names (e.g. "Code") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Code") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedStatusError) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedStatusError
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedStatusExample: An example occurrence for a particular error.
type DatafeedStatusExample struct {
// ItemId: The ID of the example item.
ItemId string `json:"itemId,omitempty"`
// LineNumber: Line number in the data feed where the example is found.
LineNumber uint64 `json:"lineNumber,omitempty,string"`
// Value: The problematic value.
Value string `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g. "ItemId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ItemId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedStatusExample
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedTarget struct {
// Country: The country where the items in the feed will be included in
// the search index, represented as a CLDR territory code.
Country string `json:"country,omitempty"`
// ExcludedDestinations: The list of destinations to exclude for this
// target (corresponds to unchecked check boxes in Merchant Center).
ExcludedDestinations []string `json:"excludedDestinations,omitempty"`
// IncludedDestinations: The list of destinations to include for this
// target (corresponds to checked check boxes in Merchant Center).
// Default destinations are always included unless provided in
// `excludedDestinations`.
//
// List of supported destinations (if available to the account):
// - DisplayAds
// - Shopping
// - ShoppingActions
// - SurfacesAcrossGoogle
IncludedDestinations []string `json:"includedDestinations,omitempty"`
// Language: The two-letter ISO 639-1 language of the items in the feed.
// Must be a valid language for `targets[].country`.
Language string `json:"language,omitempty"`
// ForceSendFields is a list of field names (e.g. "Country") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Country") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedTarget) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedTarget
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsCustomBatchRequest struct {
// Entries: The request entries to be processed in the batch.
Entries []*DatafeedsCustomBatchRequestEntry `json:"entries,omitempty"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsCustomBatchRequest) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsCustomBatchRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedsCustomBatchRequestEntry: A batch entry encoding a single
// non-batch datafeeds request.
type DatafeedsCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Datafeed: The data feed to insert.
Datafeed *Datafeed `json:"datafeed,omitempty"`
// DatafeedId: The ID of the data feed to get, delete or fetch.
DatafeedId uint64 `json:"datafeedId,omitempty,string"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
// Method: The method of the batch entry.
//
// Acceptable values are:
// - "delete"
// - "fetchNow"
// - "get"
// - "insert"
// - "update"
Method string `json:"method,omitempty"`
// ForceSendFields is a list of field names (e.g. "BatchId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BatchId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsCustomBatchRequestEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsCustomBatchResponse struct {
// Entries: The result of the execution of the batch requests.
Entries []*DatafeedsCustomBatchResponseEntry `json:"entries,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedsCustomBatchResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsCustomBatchResponse) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsCustomBatchResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedsCustomBatchResponseEntry: A batch entry encoding a single
// non-batch datafeeds response.
type DatafeedsCustomBatchResponseEntry struct {
// BatchId: The ID of the request entry this entry responds to.
BatchId int64 `json:"batchId,omitempty"`
// Datafeed: The requested data feed. Defined if and only if the request
// was successful.
Datafeed *Datafeed `json:"datafeed,omitempty"`
// Errors: A list of errors defined if and only if the request failed.
Errors *Errors `json:"errors,omitempty"`
// ForceSendFields is a list of field names (e.g. "BatchId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BatchId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsCustomBatchResponseEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsFetchNowResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedsFetchNowResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsFetchNowResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedsListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: The token for the retrieval of the next page of
// datafeeds.
NextPageToken string `json:"nextPageToken,omitempty"`
Resources []*Datafeed `json:"resources,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedstatusesCustomBatchRequest struct {
// Entries: The request entries to be processed in the batch.
Entries []*DatafeedstatusesCustomBatchRequestEntry `json:"entries,omitempty"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedstatusesCustomBatchRequest) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedstatusesCustomBatchRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedstatusesCustomBatchRequestEntry: A batch entry encoding a
// single non-batch datafeedstatuses request.
type DatafeedstatusesCustomBatchRequestEntry struct {
// BatchId: An entry ID, unique within the batch request.
BatchId int64 `json:"batchId,omitempty"`
// Country: The country for which to get the datafeed status. If this
// parameter is provided then language must also be provided. Note that
// for multi-target datafeeds this parameter is required.
Country string `json:"country,omitempty"`
// DatafeedId: The ID of the data feed to get.
DatafeedId uint64 `json:"datafeedId,omitempty,string"`
// Language: The language for which to get the datafeed status. If this
// parameter is provided then country must also be provided. Note that
// for multi-target datafeeds this parameter is required.
Language string `json:"language,omitempty"`
// MerchantId: The ID of the managing account.
MerchantId uint64 `json:"merchantId,omitempty,string"`
// Method: The method of the batch entry.
//
// Acceptable values are:
// - "get"
Method string `json:"method,omitempty"`
// ForceSendFields is a list of field names (e.g. "BatchId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BatchId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedstatusesCustomBatchRequestEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedstatusesCustomBatchResponse struct {
// Entries: The result of the execution of the batch requests.
Entries []*DatafeedstatusesCustomBatchResponseEntry `json:"entries,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedstatusesCustomBatchResponse".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Entries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Entries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedstatusesCustomBatchResponse) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedstatusesCustomBatchResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DatafeedstatusesCustomBatchResponseEntry: A batch entry encoding a
// single non-batch datafeedstatuses response.
type DatafeedstatusesCustomBatchResponseEntry struct {
// BatchId: The ID of the request entry this entry responds to.
BatchId int64 `json:"batchId,omitempty"`
// DatafeedStatus: The requested data feed status. Defined if and only
// if the request was successful.
DatafeedStatus *DatafeedStatus `json:"datafeedStatus,omitempty"`
// Errors: A list of errors defined if and only if the request failed.
Errors *Errors `json:"errors,omitempty"`
// ForceSendFields is a list of field names (e.g. "BatchId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BatchId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedstatusesCustomBatchResponseEntry
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DatafeedstatusesListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "content#datafeedstatusesListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: The token for the retrieval of the next page of
// datafeed statuses.
NextPageToken string `json:"nextPageToken,omitempty"`
Resources []*DatafeedStatus `json:"resources,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod DatafeedstatusesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type DeliveryTime struct {
// CutoffTime: Business days cutoff time definition. If not configured
// the cutoff time will be defaulted to 8AM PST.
CutoffTime *CutoffTime `json:"cutoffTime,omitempty"`
// HandlingBusinessDayConfig: The business days during which orders can
// be handled. If not provided, Monday to Friday business days will be
// assumed.
HandlingBusinessDayConfig *BusinessDayConfig `json:"handlingBusinessDayConfig,omitempty"`
// HolidayCutoffs: Holiday cutoff definitions. If configured, they
// specify order cutoff times for holiday-specific shipping.
HolidayCutoffs []*HolidayCutoff `json:"holidayCutoffs,omitempty"`
// MaxHandlingTimeInDays: Maximum number of business days spent before
// an order is shipped. 0 means same day shipped, 1 means next day
// shipped. Must be greater than or equal to `minHandlingTimeInDays`.
MaxHandlingTimeInDays int64 `json:"maxHandlingTimeInDays,omitempty"`
// MaxTransitTimeInDays: Maximum number of business days that is spent
// in transit. 0 means same day delivery, 1 means next day delivery.
// Must be greater than or equal to `minTransitTimeInDays`.
MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"`
// MinHandlingTimeInDays: Minimum number of business days spent before
// an order is shipped. 0 means same day shipped, 1 means next day
// shipped.
MinHandlingTimeInDays int64 `json:"minHandlingTimeInDays,omitempty"`
// MinTransitTimeInDays: Minimum number of business days that is spent
// in transit. 0 means same day delivery, 1 means next day delivery.
// Either `{min,max}TransitTimeInDays` or `transitTimeTable` must be
// set, but not both.
MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"`
// TransitBusinessDayConfig: The business days during which orders can
// be in-transit. If not provided, Monday to Friday business days will
// be assumed.
TransitBusinessDayConfig *BusinessDayConfig `json:"transitBusinessDayConfig,omitempty"`
// TransitTimeTable: Transit time table, number of business days spent
// in transit based on row and column dimensions. Either
// `{min,max}TransitTimeInDays` or `transitTimeTable` can be set, but
// not both.
TransitTimeTable *TransitTable `json:"transitTimeTable,omitempty"`
// ForceSendFields is a list of field names (e.g. "CutoffTime") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CutoffTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeliveryTime) MarshalJSON() ([]byte, error) {
type NoMethod DeliveryTime
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Error: An error returned by the API.
type Error struct {
// Domain: The domain of the error.
Domain string `json:"domain,omitempty"`
// Message: A description of the error.
Message string `json:"message,omitempty"`
// Reason: The error code.
Reason string `json:"reason,omitempty"`
// ForceSendFields is a list of field names (e.g. "Domain") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Domain") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Error) MarshalJSON() ([]byte, error) {
type NoMethod Error
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Errors: A list of errors returned by a failed batch entry.
type Errors struct {
// Code: The HTTP status of the first error in `errors`.
Code int64 `json:"code,omitempty"`
// Errors: A list of errors.
Errors []*Error `json:"errors,omitempty"`
// Message: The message of the first error in `errors`.
Message string `json:"message,omitempty"`
// ForceSendFields is a list of field names (e.g. "Code") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Code") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Errors) MarshalJSON() ([]byte, error) {
type NoMethod Errors
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GmbAccounts struct {
// AccountId: The ID of the Merchant Center account.
AccountId uint64 `json:"accountId,omitempty,string"`
// GmbAccounts: A list of GMB accounts which are available to the
// merchant.
GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GmbAccounts) MarshalJSON() ([]byte, error) {
type NoMethod GmbAccounts
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type GmbAccountsGmbAccount struct {
// Email: The email which identifies the GMB account.
Email string `json:"email,omitempty"`
// ListingCount: Number of listings under this account.
ListingCount uint64 `json:"listingCount,omitempty,string"`
// Name: The name of the GMB account.
Name string `json:"name,omitempty"`
// Type: The type of the GMB account (User or Business).
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Email") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GmbAccountsGmbAccount) MarshalJSON() ([]byte, error) {
type NoMethod GmbAccountsGmbAccount
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Headers: A non-empty list of row or column headers for a table.
// Exactly one of `prices`, `weights`, `numItems`,
// `postalCodeGroupNames`, or `location` must be set.
type Headers struct {
// Locations: A list of location ID sets. Must be non-empty. Can only be
// set if all other fields are not set.
Locations []*LocationIdSet `json:"locations,omitempty"`
// NumberOfItems: A list of inclusive number of items upper bounds. The
// last value can be "infinity". For example `["10", "50",
// "infinity"]` represents the headers "<= 10 items", " 50 items". Must
// be non-empty. Can only be set if all other fields are not set.
NumberOfItems []string `json:"numberOfItems,omitempty"`
// PostalCodeGroupNames: A list of postal group names. The last value
// can be "all other locations". Example: `["zone 1", "zone 2", "all
// other locations"]`. The referred postal code groups must match the
// delivery country of the service. Must be non-empty. Can only be set
// if all other fields are not set.
PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"`
// Prices: A list of inclusive order price upper bounds. The last
// price's value can be "infinity". For example `[{"value": "10",
// "currency": "USD"}, {"value": "500", "currency": "USD"}, {"value":
// "infinity", "currency": "USD"}]` represents the headers "<= $10", "
// $500". All prices within a service must have the same currency. Must
// be non-empty. Can only be set if all other fields are not set.
Prices []*Price `json:"prices,omitempty"`
// Weights: A list of inclusive order weight upper bounds. The last
// weight's value can be "infinity". For example `[{"value": "10",
// "unit": "kg"}, {"value": "50", "unit": "kg"}, {"value": "infinity",
// "unit": "kg"}]` represents the headers "<= 10kg", " 50kg". All
// weights within a service must have the same unit. Must be non-empty.
// Can only be set if all other fields are not set.
Weights []*Weight `json:"weights,omitempty"`
// ForceSendFields is a list of field names (e.g. "Locations") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Locations") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Headers) MarshalJSON() ([]byte, error) {
type NoMethod Headers
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type HolidayCutoff struct {
// DeadlineDate: Date of the order deadline, in ISO 8601 format. E.g.
// "2016-11-29" for 29th November 2016. Required.
DeadlineDate string `json:"deadlineDate,omitempty"`
// DeadlineHour: Hour of the day on the deadline date until which the
// order has to be placed to qualify for the delivery guarantee.
// Possible values are: 0 (midnight), 1, ..., 12 (noon), 13, ..., 23.
// Required.
DeadlineHour int64 `json:"deadlineHour,omitempty"`
// DeadlineTimezone: Timezone identifier for the deadline hour. A list
// of identifiers can be found in the AdWords API documentation. E.g.
// "Europe/Zurich". Required.
DeadlineTimezone string `json:"deadlineTimezone,omitempty"`
// HolidayId: Unique identifier for the holiday. Required.
HolidayId string `json:"holidayId,omitempty"`
// VisibleFromDate: Date on which the deadline will become visible to
// consumers in ISO 8601 format. E.g. "2016-10-31" for 31st October
// 2016. Required.
VisibleFromDate string `json:"visibleFromDate,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeadlineDate") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "DeadlineDate") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *HolidayCutoff) MarshalJSON() ([]byte, error) {
type NoMethod HolidayCutoff
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type HolidaysHoliday struct {
// CountryCode: The CLDR territory code of the country in which the
// holiday is available. E.g. "US", "DE", "GB". A holiday cutoff can
// only be configured in a shipping settings service with matching
// delivery country. Always present.
CountryCode string `json:"countryCode,omitempty"`
// Date: Date of the holiday, in ISO 8601 format. E.g. "2016-12-25" for
// Christmas 2016. Always present.
Date string `json:"date,omitempty"`
// DeliveryGuaranteeDate: Date on which the order has to arrive at the
// customer's, in ISO 8601 format. E.g. "2016-12-24" for 24th December
// 2016. Always present.
DeliveryGuaranteeDate string `json:"deliveryGuaranteeDate,omitempty"`
// DeliveryGuaranteeHour: Hour of the day in the delivery location's
// timezone on the guaranteed delivery date by which the order has to
// arrive at the customer's. Possible values are: 0 (midnight), 1, ...,
// 12 (noon), 13, ..., 23. Always present.
DeliveryGuaranteeHour uint64 `json:"deliveryGuaranteeHour,omitempty,string"`
// Id: Unique identifier for the holiday to be used when configuring
// holiday cutoffs. Always present.
Id string `json:"id,omitempty"`
// Type: The holiday type. Always present.
//
// Acceptable values are:
// - "Christmas"
// - "Easter"
// - "Father's Day"
// - "Halloween"
// - "Independence Day (USA)"
// - "Mother's Day"
// - "Thanksgiving"
// - "Valentine's Day"
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "CountryCode") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CountryCode") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *HolidaysHoliday) MarshalJSON() ([]byte, error) {
type NoMethod HolidaysHoliday
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type Installment struct {
// Amount: The amount the buyer has to pay per month.
Amount *Price `json:"amount,omitempty"`
// Months: The number of installments the buyer has to pay.
Months int64 `json:"months,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Amount") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Amount") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Installment) MarshalJSON() ([]byte, error) {
type NoMethod Installment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type InvoiceSummary struct {
// AdditionalChargeSummaries: Summary of the total amounts of the
// additional charges.
AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"`
// ProductTotal: [required] Total price for the product.
ProductTotal *Amount `json:"productTotal,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "AdditionalChargeSummaries") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "AdditionalChargeSummaries") to include in API requests with the JSON
// null value. By default, fields with empty values are omitted from API
// requests. However, any field with an empty value appearing in
// NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InvoiceSummary) MarshalJSON() ([]byte, error) {
type NoMethod InvoiceSummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type InvoiceSummaryAdditionalChargeSummary struct {
// TotalAmount: [required] Total additional charge for this type.
TotalAmount *Amount `json:"totalAmount,omitempty"`
// Type: [required] Type of the additional charge.
//
// Acceptable values are:
// - "shipping"
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "TotalAmount") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "TotalAmount") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error) {
type NoMethod InvoiceSummaryAdditionalChargeSummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LiaAboutPageSettings struct {
// Status: The status of the verification process for the About
// page.
//
// Acceptable values are:
// - "active"
// - "inactive"
// - "pending"
Status string `json:"status,omitempty"`
// Url: The URL for the About page.
Url string `json:"url,omitempty"`
// ForceSendFields is a list of field names (e.g. "Status") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Status") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error) {
type NoMethod LiaAboutPageSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LiaCountrySettings struct {
// About: The settings for the About page.
About *LiaAboutPageSettings `json:"about,omitempty"`
// Country: Required. CLDR country code (e.g. "US").
Country string `json:"country,omitempty"`
// HostedLocalStorefrontActive: The status of the "Merchant hosted local
// storefront" feature.
HostedLocalStorefrontActive bool `json:"hostedLocalStorefrontActive,omitempty"`
// Inventory: LIA inventory verification settings.
Inventory *LiaInventorySettings `json:"inventory,omitempty"`
// OnDisplayToOrder: LIA "On Display To Order" settings.
OnDisplayToOrder *LiaOnDisplayToOrderSettings `json:"onDisplayToOrder,omitempty"`
// PosDataProvider: The POS data provider linked with this country.
PosDataProvider *LiaPosDataProvider `json:"posDataProvider,omitempty"`
// StorePickupActive: The status of the "Store pickup" feature.
StorePickupActive bool `json:"storePickupActive,omitempty"`
// ForceSendFields is a list of field names (e.g. "About") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "About") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LiaCountrySettings) MarshalJSON() ([]byte, error) {
type NoMethod LiaCountrySettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type LiaInventorySettings struct {
// InventoryVerificationContactEmail: The email of the contact for the
// inventory verification process.
InventoryVerificationContactEmail string `json:"inventoryVerificationContactEmail,omitempty"`
// InventoryVerificationContactName: The name of the contact for the
// inventory verification process.
InventoryVerificationContactName string `json:"inventoryVerificationContactName,omitempty"`
// InventoryVerificationContactStatus: The status of the verification
// contact.
//
// Acceptable values are:
// - "active"
// - "inactive"
// - "pending"
InventoryVerificationContactStatus string `json:"inventoryVerificationContactStatus,omitempty"`
// Status: The status of the inventory verification process.
//
// Acceptable values are:
// - "active"
// - "inactive"
// - "pending"
Status string `json:"status,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "InventoryVerificationContactEmail") to unconditionally include in
// API requests. By default, fields with empty values are omitted from
// API requests. However, any non-pointer, non-interface field appearing
// in ForceSendFields will be sent to the server regardless of whether
// the field is empty or not. This may be used to include empty fields
// in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "InventoryVerificationContactEmail") to include in API requests with
// the JSON null value. By default, fields with empty values are omitted