api: google.golang.org/api/content/v2 Index | Files

package content

import "google.golang.org/api/content/v2"

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"
...
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.

Index

Package Files

content-gen.go

Constants

const (
    // Manage your product listings and accounts for Google Shopping
    ContentScope = "https://www.googleapis.com/auth/content"
)

OAuth2 scopes used by this API.

type APIService Uses

type APIService struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Accounts *AccountsService

    Accountstatuses *AccountstatusesService

    Accounttax *AccounttaxService

    Datafeeds *DatafeedsService

    Datafeedstatuses *DatafeedstatusesService

    Inventory *InventoryService

    Liasettings *LiasettingsService

    Orderinvoices *OrderinvoicesService

    Orderpayments *OrderpaymentsService

    Orderreports *OrderreportsService

    Orderreturns *OrderreturnsService

    Orders *OrdersService

    Pos *PosService

    Products *ProductsService

    Productstatuses *ProductstatusesService

    Shippingsettings *ShippingsettingsService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*APIService, error)

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 NewService Uses

func NewService(ctx context.Context, opts ...option.ClientOption) (*APIService, error)

NewService creates a new APIService.

type Account Uses

type Account struct {
    // AdultContent: Indicates whether the merchant sells adult content.
    AdultContent bool `json:"adultContent,omitempty"`

    // AdwordsLinks: List of linked AdWords 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 AdWords interface or through the
    // AdWords API. To delete an active link, or to cancel a link request,
    // remove it from the list.
    AdwordsLinks []*AccountAdwordsLink `json:"adwordsLinks,omitempty"`

    // BusinessInformation: The business information of the account.
    BusinessInformation *AccountBusinessInformation `json:"businessInformation,omitempty"`

    // 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: 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"`

    // Name: Display name for the account.
    Name string `json:"name,omitempty"`

    // ReviewsUrl: [DEPRECATED] This field is never returned and will be
    // ignored if provided.
    ReviewsUrl string `json:"reviewsUrl,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. "AdultContent") 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. "AdultContent") 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:"-"`
}

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, patch, and update require the admin role.

func (*Account) MarshalJSON Uses

func (s *Account) MarshalJSON() ([]byte, error)

type AccountAddress Uses

type AccountAddress struct {
    // Country: CLDR country code (e.g. "US").
    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 (*AccountAddress) MarshalJSON Uses

func (s *AccountAddress) MarshalJSON() ([]byte, error)
type AccountAdwordsLink struct {
    // AdwordsId: Customer ID of the AdWords account.
    AdwordsId uint64 `json:"adwordsId,omitempty,string"`

    // Status: Status of the link between this Merchant Center account and
    // the AdWords account. Upon retrieval, it represents the actual status
    // of the link and can be either active if it was approved in Google
    // AdWords 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. "AdwordsId") 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. "AdwordsId") 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 (*AccountAdwordsLink) MarshalJSON Uses

func (s *AccountAdwordsLink) MarshalJSON() ([]byte, error)

type AccountBusinessInformation Uses

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 (*AccountBusinessInformation) MarshalJSON Uses

func (s *AccountBusinessInformation) MarshalJSON() ([]byte, error)

type AccountCustomerService Uses

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 (*AccountCustomerService) MarshalJSON Uses

func (s *AccountCustomerService) MarshalJSON() ([]byte, error)
type AccountGoogleMyBusinessLink struct {
    // 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.
    Status string `json:"status,omitempty"`

    // ForceSendFields is a list of field names (e.g. "GmbEmail") 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. "GmbEmail") 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 (*AccountGoogleMyBusinessLink) MarshalJSON Uses

func (s *AccountGoogleMyBusinessLink) MarshalJSON() ([]byte, error)

type AccountIdentifier Uses

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 (*AccountIdentifier) MarshalJSON Uses

func (s *AccountIdentifier) MarshalJSON() ([]byte, error)

type AccountStatus Uses

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"`

    // DataQualityIssues: DEPRECATED - never populated.
    DataQualityIssues []*AccountStatusDataQualityIssue `json:"dataQualityIssues,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:"-"`
}

AccountStatus: The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.

func (*AccountStatus) MarshalJSON Uses

func (s *AccountStatus) MarshalJSON() ([]byte, error)

type AccountStatusAccountLevelIssue Uses

type AccountStatusAccountLevelIssue struct {
    // Country: Country for which this issue is reported.
    Country string `json:"country,omitempty"`

    // Destination: The destination the issue applies to.
    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.
    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 (*AccountStatusAccountLevelIssue) MarshalJSON Uses

func (s *AccountStatusAccountLevelIssue) MarshalJSON() ([]byte, error)

type AccountStatusDataQualityIssue Uses

type AccountStatusDataQualityIssue struct {
    Country string `json:"country,omitempty"`

    Destination string `json:"destination,omitempty"`

    Detail string `json:"detail,omitempty"`

    DisplayedValue string `json:"displayedValue,omitempty"`

    ExampleItems []*AccountStatusExampleItem `json:"exampleItems,omitempty"`

    Id  string `json:"id,omitempty"`

    LastChecked string `json:"lastChecked,omitempty"`

    Location string `json:"location,omitempty"`

    NumItems int64 `json:"numItems,omitempty"`

    Severity string `json:"severity,omitempty"`

    SubmittedValue string `json:"submittedValue,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 (*AccountStatusDataQualityIssue) MarshalJSON Uses

func (s *AccountStatusDataQualityIssue) MarshalJSON() ([]byte, error)

type AccountStatusExampleItem Uses

type AccountStatusExampleItem struct {
    ItemId string `json:"itemId,omitempty"`

    Link string `json:"link,omitempty"`

    SubmittedValue string `json:"submittedValue,omitempty"`

    Title string `json:"title,omitempty"`

    ValueOnLandingPage string `json:"valueOnLandingPage,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 (*AccountStatusExampleItem) MarshalJSON Uses

func (s *AccountStatusExampleItem) MarshalJSON() ([]byte, error)

type AccountStatusItemLevelIssue Uses

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 (*AccountStatusItemLevelIssue) MarshalJSON Uses

func (s *AccountStatusItemLevelIssue) MarshalJSON() ([]byte, error)

type AccountStatusProducts Uses

type AccountStatusProducts struct {
    // Channel: The channel the data applies to.
    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 (*AccountStatusProducts) MarshalJSON Uses

func (s *AccountStatusProducts) MarshalJSON() ([]byte, error)

type AccountStatusStatistics Uses

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 (*AccountStatusStatistics) MarshalJSON Uses

func (s *AccountStatusStatistics) MarshalJSON() ([]byte, error)

type AccountTax Uses

type AccountTax struct {
    // AccountId: 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:"-"`
}

AccountTax: The tax settings of a merchant account. All methods require the admin role.

func (*AccountTax) MarshalJSON Uses

func (s *AccountTax) MarshalJSON() ([]byte, error)

type AccountTaxTaxRule Uses

type AccountTaxTaxRule struct {
    // Country: Country code in which tax is applicable.
    Country string `json:"country,omitempty"`

    // LocationId: 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:"-"`
}

AccountTaxTaxRule: Tax calculation rule to apply in a state or province (USA only).

func (*AccountTaxTaxRule) MarshalJSON Uses

func (s *AccountTaxTaxRule) MarshalJSON() ([]byte, error)

type AccountUser Uses

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 (*AccountUser) MarshalJSON Uses

func (s *AccountUser) MarshalJSON() ([]byte, error)
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 (*AccountYouTubeChannelLink) MarshalJSON Uses

func (s *AccountYouTubeChannelLink) MarshalJSON() ([]byte, error)

type AccountsAuthInfoResponse Uses

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 (*AccountsAuthInfoResponse) MarshalJSON Uses

func (s *AccountsAuthInfoResponse) MarshalJSON() ([]byte, error)

type AccountsAuthinfoCall Uses

type AccountsAuthinfoCall struct {
    // contains filtered or unexported fields
}

func (*AccountsAuthinfoCall) Context Uses

func (c *AccountsAuthinfoCall) Context(ctx context.Context) *AccountsAuthinfoCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsAuthinfoCall) Do Uses

func (c *AccountsAuthinfoCall) Do(opts ...googleapi.CallOption) (*AccountsAuthInfoResponse, error)

Do executes the "content.accounts.authinfo" call. Exactly one of *AccountsAuthInfoResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsAuthInfoResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsAuthinfoCall) Fields Uses

func (c *AccountsAuthinfoCall) Fields(s ...googleapi.Field) *AccountsAuthinfoCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsAuthinfoCall) Header Uses

func (c *AccountsAuthinfoCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsAuthinfoCall) IfNoneMatch Uses

func (c *AccountsAuthinfoCall) IfNoneMatch(entityTag string) *AccountsAuthinfoCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsClaimWebsiteResponse Uses

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 (*AccountsClaimWebsiteResponse) MarshalJSON Uses

func (s *AccountsClaimWebsiteResponse) MarshalJSON() ([]byte, error)

type AccountsClaimwebsiteCall Uses

type AccountsClaimwebsiteCall struct {
    // contains filtered or unexported fields
}

func (*AccountsClaimwebsiteCall) Context Uses

func (c *AccountsClaimwebsiteCall) Context(ctx context.Context) *AccountsClaimwebsiteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsClaimwebsiteCall) Do Uses

func (c *AccountsClaimwebsiteCall) Do(opts ...googleapi.CallOption) (*AccountsClaimWebsiteResponse, error)

Do executes the "content.accounts.claimwebsite" call. Exactly one of *AccountsClaimWebsiteResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsClaimWebsiteResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsClaimwebsiteCall) Fields Uses

func (c *AccountsClaimwebsiteCall) Fields(s ...googleapi.Field) *AccountsClaimwebsiteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsClaimwebsiteCall) Header Uses

func (c *AccountsClaimwebsiteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsClaimwebsiteCall) Overwrite Uses

func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall

Overwrite sets the optional parameter "overwrite": Only available to selected merchants. When set to True, this flag removes any existing claim on the requested website by another account and replaces it with a claim from this account.

type AccountsCustomBatchRequest Uses

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 (*AccountsCustomBatchRequest) MarshalJSON Uses

func (s *AccountsCustomBatchRequest) MarshalJSON() ([]byte, error)

type AccountsCustomBatchRequestEntry Uses

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"`

    // 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.
    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"`

    // 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:"-"`
}

AccountsCustomBatchRequestEntry: A batch entry encoding a single non-batch accounts request.

func (*AccountsCustomBatchRequestEntry) MarshalJSON Uses

func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)

type AccountsCustomBatchRequestEntryLinkRequest Uses

type AccountsCustomBatchRequestEntryLinkRequest struct {
    // Action: Action to perform for this link. The "request" action is only
    // available to select merchants.
    Action string `json:"action,omitempty"`

    // LinkType: Type of the link between the two accounts.
    LinkType string `json:"linkType,omitempty"`

    // LinkedAccountId: The ID of the linked account.
    LinkedAccountId string `json:"linkedAccountId,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 (*AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON Uses

func (s *AccountsCustomBatchRequestEntryLinkRequest) MarshalJSON() ([]byte, error)

type AccountsCustomBatchResponse Uses

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 (*AccountsCustomBatchResponse) MarshalJSON Uses

func (s *AccountsCustomBatchResponse) MarshalJSON() ([]byte, error)

type AccountsCustomBatchResponseEntry Uses

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"`

    // LinkStatus: Deprecated. This field is never set.
    LinkStatus string `json:"linkStatus,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:"-"`
}

AccountsCustomBatchResponseEntry: A batch entry encoding a single non-batch accounts response.

func (*AccountsCustomBatchResponseEntry) MarshalJSON Uses

func (s *AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)

type AccountsCustombatchCall Uses

type AccountsCustombatchCall struct {
    // contains filtered or unexported fields
}

func (*AccountsCustombatchCall) Context Uses

func (c *AccountsCustombatchCall) Context(ctx context.Context) *AccountsCustombatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsCustombatchCall) Do Uses

func (c *AccountsCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountsCustomBatchResponse, error)

Do executes the "content.accounts.custombatch" call. Exactly one of *AccountsCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsCustombatchCall) DryRun Uses

func (c *AccountsCustombatchCall) DryRun(dryRun bool) *AccountsCustombatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccountsCustombatchCall) Fields Uses

func (c *AccountsCustombatchCall) Fields(s ...googleapi.Field) *AccountsCustombatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsCustombatchCall) Header Uses

func (c *AccountsCustombatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsDeleteCall Uses

type AccountsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*AccountsDeleteCall) Context Uses

func (c *AccountsDeleteCall) Context(ctx context.Context) *AccountsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsDeleteCall) Do Uses

func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "content.accounts.delete" call.

func (*AccountsDeleteCall) DryRun Uses

func (c *AccountsDeleteCall) DryRun(dryRun bool) *AccountsDeleteCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccountsDeleteCall) Fields Uses

func (c *AccountsDeleteCall) Fields(s ...googleapi.Field) *AccountsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsDeleteCall) Force Uses

func (c *AccountsDeleteCall) Force(force bool) *AccountsDeleteCall

Force sets the optional parameter "force": Flag to delete sub-accounts with products. The default value is false.

func (*AccountsDeleteCall) Header Uses

func (c *AccountsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsGetCall Uses

type AccountsGetCall struct {
    // contains filtered or unexported fields
}

func (*AccountsGetCall) Context Uses

func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsGetCall) Do Uses

func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "content.accounts.get" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsGetCall) Fields Uses

func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsGetCall) Header Uses

func (c *AccountsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsGetCall) IfNoneMatch Uses

func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsInsertCall Uses

type AccountsInsertCall struct {
    // contains filtered or unexported fields
}

func (*AccountsInsertCall) Context Uses

func (c *AccountsInsertCall) Context(ctx context.Context) *AccountsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsInsertCall) Do Uses

func (c *AccountsInsertCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "content.accounts.insert" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsInsertCall) DryRun Uses

func (c *AccountsInsertCall) DryRun(dryRun bool) *AccountsInsertCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccountsInsertCall) Fields Uses

func (c *AccountsInsertCall) Fields(s ...googleapi.Field) *AccountsInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsInsertCall) Header Uses

func (c *AccountsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsLinkCall Uses

type AccountsLinkCall struct {
    // contains filtered or unexported fields
}

func (*AccountsLinkCall) Context Uses

func (c *AccountsLinkCall) Context(ctx context.Context) *AccountsLinkCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsLinkCall) Do Uses

func (c *AccountsLinkCall) Do(opts ...googleapi.CallOption) (*AccountsLinkResponse, error)

Do executes the "content.accounts.link" call. Exactly one of *AccountsLinkResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsLinkResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsLinkCall) Fields Uses

func (c *AccountsLinkCall) Fields(s ...googleapi.Field) *AccountsLinkCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsLinkCall) Header Uses

func (c *AccountsLinkCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsLinkRequest Uses

type AccountsLinkRequest struct {
    // Action: Action to perform for this link. The "request" action is only
    // available to select merchants.
    Action string `json:"action,omitempty"`

    // LinkType: Type of the link between the two accounts.
    LinkType string `json:"linkType,omitempty"`

    // LinkedAccountId: The ID of the linked account.
    LinkedAccountId string `json:"linkedAccountId,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 (*AccountsLinkRequest) MarshalJSON Uses

func (s *AccountsLinkRequest) MarshalJSON() ([]byte, error)

type AccountsLinkResponse Uses

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 (*AccountsLinkResponse) MarshalJSON Uses

func (s *AccountsLinkResponse) MarshalJSON() ([]byte, error)

type AccountsListCall Uses

type AccountsListCall struct {
    // contains filtered or unexported fields
}

func (*AccountsListCall) Context Uses

func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsListCall) Do Uses

func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error)

Do executes the "content.accounts.list" call. Exactly one of *AccountsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsListCall) Fields Uses

func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsListCall) Header Uses

func (c *AccountsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsListCall) IfNoneMatch Uses

func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AccountsListCall) MaxResults Uses

func (c *AccountsListCall) MaxResults(maxResults int64) *AccountsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of accounts to return in the response, used for paging.

func (*AccountsListCall) PageToken Uses

func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

func (*AccountsListCall) Pages Uses

func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AccountsListResponse Uses

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 (*AccountsListResponse) MarshalJSON Uses

func (s *AccountsListResponse) MarshalJSON() ([]byte, error)

type AccountsPatchCall Uses

type AccountsPatchCall struct {
    // contains filtered or unexported fields
}

func (*AccountsPatchCall) Context Uses

func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPatchCall) Do Uses

func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "content.accounts.patch" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsPatchCall) DryRun Uses

func (c *AccountsPatchCall) DryRun(dryRun bool) *AccountsPatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccountsPatchCall) Fields Uses

func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsPatchCall) Header Uses

func (c *AccountsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsService Uses

type AccountsService struct {
    // contains filtered or unexported fields
}

func NewAccountsService Uses

func NewAccountsService(s *APIService) *AccountsService

func (*AccountsService) Authinfo Uses

func (r *AccountsService) Authinfo() *AccountsAuthinfoCall

Authinfo: Returns information about the authenticated user.

func (*AccountsService) Claimwebsite Uses

func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *AccountsClaimwebsiteCall

Claimwebsite: Claims the website of a Merchant Center sub-account.

func (*AccountsService) Custombatch Uses

func (r *AccountsService) Custombatch(accountscustombatchrequest *AccountsCustomBatchRequest) *AccountsCustombatchCall

Custombatch: Retrieves, inserts, updates, and deletes multiple Merchant Center (sub-)accounts in a single request.

func (*AccountsService) Delete Uses

func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall

Delete: Deletes a Merchant Center sub-account.

func (*AccountsService) Get Uses

func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall

Get: Retrieves a Merchant Center account.

func (*AccountsService) Insert Uses

func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall

Insert: Creates a Merchant Center sub-account.

func (r *AccountsService) Link(merchantId uint64, accountId uint64, accountslinkrequest *AccountsLinkRequest) *AccountsLinkCall

Link: Performs an action on a link between two Merchant Center accounts, namely accountId and linkedAccountId.

func (*AccountsService) List Uses

func (r *AccountsService) List(merchantId uint64) *AccountsListCall

List: Lists the sub-accounts in your Merchant Center account.

func (*AccountsService) Patch Uses

func (r *AccountsService) Patch(merchantId uint64, accountId uint64, account *Account) *AccountsPatchCall

Patch: Updates a Merchant Center account. This method supports patch semantics.

func (*AccountsService) Update Uses

func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall

Update: Updates a Merchant Center account.

type AccountsUpdateCall Uses

type AccountsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*AccountsUpdateCall) Context Uses

func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsUpdateCall) Do Uses

func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "content.accounts.update" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsUpdateCall) DryRun Uses

func (c *AccountsUpdateCall) DryRun(dryRun bool) *AccountsUpdateCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccountsUpdateCall) Fields Uses

func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsUpdateCall) Header Uses

func (c *AccountsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountstatusesCustomBatchRequest Uses

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 (*AccountstatusesCustomBatchRequest) MarshalJSON Uses

func (s *AccountstatusesCustomBatchRequest) MarshalJSON() ([]byte, error)

type AccountstatusesCustomBatchRequestEntry Uses

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 (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:"-"`
}

AccountstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch accountstatuses request.

func (*AccountstatusesCustomBatchRequestEntry) MarshalJSON Uses

func (s *AccountstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error)

type AccountstatusesCustomBatchResponse Uses

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 (*AccountstatusesCustomBatchResponse) MarshalJSON Uses

func (s *AccountstatusesCustomBatchResponse) MarshalJSON() ([]byte, error)

type AccountstatusesCustomBatchResponseEntry Uses

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:"-"`
}

AccountstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch accountstatuses response.

func (*AccountstatusesCustomBatchResponseEntry) MarshalJSON Uses

func (s *AccountstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error)

type AccountstatusesCustombatchCall Uses

type AccountstatusesCustombatchCall struct {
    // contains filtered or unexported fields
}

func (*AccountstatusesCustombatchCall) Context Uses

func (c *AccountstatusesCustombatchCall) Context(ctx context.Context) *AccountstatusesCustombatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountstatusesCustombatchCall) Do Uses

func (c *AccountstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*AccountstatusesCustomBatchResponse, error)

Do executes the "content.accountstatuses.custombatch" call. Exactly one of *AccountstatusesCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountstatusesCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountstatusesCustombatchCall) Fields Uses

func (c *AccountstatusesCustombatchCall) Fields(s ...googleapi.Field) *AccountstatusesCustombatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountstatusesCustombatchCall) Header Uses

func (c *AccountstatusesCustombatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountstatusesGetCall Uses

type AccountstatusesGetCall struct {
    // contains filtered or unexported fields
}

func (*AccountstatusesGetCall) Context Uses

func (c *AccountstatusesGetCall) Context(ctx context.Context) *AccountstatusesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountstatusesGetCall) Destinations Uses

func (c *AccountstatusesGetCall) Destinations(destinations ...string) *AccountstatusesGetCall

Destinations sets the optional parameter "destinations": If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.

func (*AccountstatusesGetCall) Do Uses

func (c *AccountstatusesGetCall) Do(opts ...googleapi.CallOption) (*AccountStatus, error)

Do executes the "content.accountstatuses.get" call. Exactly one of *AccountStatus or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountStatus.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountstatusesGetCall) Fields Uses

func (c *AccountstatusesGetCall) Fields(s ...googleapi.Field) *AccountstatusesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountstatusesGetCall) Header Uses

func (c *AccountstatusesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountstatusesGetCall) IfNoneMatch Uses

func (c *AccountstatusesGetCall) IfNoneMatch(entityTag string) *AccountstatusesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountstatusesListCall Uses

type AccountstatusesListCall struct {
    // contains filtered or unexported fields
}

func (*AccountstatusesListCall) Context Uses

func (c *AccountstatusesListCall) Context(ctx context.Context) *AccountstatusesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountstatusesListCall) Destinations Uses

func (c *AccountstatusesListCall) Destinations(destinations ...string) *AccountstatusesListCall

Destinations sets the optional parameter "destinations": If set, only issues for the specified destinations are returned, otherwise only issues for the Shopping destination.

func (*AccountstatusesListCall) Do Uses

func (c *AccountstatusesListCall) Do(opts ...googleapi.CallOption) (*AccountstatusesListResponse, error)

Do executes the "content.accountstatuses.list" call. Exactly one of *AccountstatusesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountstatusesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountstatusesListCall) Fields Uses

func (c *AccountstatusesListCall) Fields(s ...googleapi.Field) *AccountstatusesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountstatusesListCall) Header Uses

func (c *AccountstatusesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountstatusesListCall) IfNoneMatch Uses

func (c *AccountstatusesListCall) IfNoneMatch(entityTag string) *AccountstatusesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AccountstatusesListCall) MaxResults Uses

func (c *AccountstatusesListCall) MaxResults(maxResults int64) *AccountstatusesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of account statuses to return in the response, used for paging.

func (*AccountstatusesListCall) PageToken Uses

func (c *AccountstatusesListCall) PageToken(pageToken string) *AccountstatusesListCall

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

func (*AccountstatusesListCall) Pages Uses

func (c *AccountstatusesListCall) Pages(ctx context.Context, f func(*AccountstatusesListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AccountstatusesListResponse Uses

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 (*AccountstatusesListResponse) MarshalJSON Uses

func (s *AccountstatusesListResponse) MarshalJSON() ([]byte, error)

type AccountstatusesService Uses

type AccountstatusesService struct {
    // contains filtered or unexported fields
}

func NewAccountstatusesService Uses

func NewAccountstatusesService(s *APIService) *AccountstatusesService

func (*AccountstatusesService) Custombatch Uses

func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall

Custombatch: Retrieves multiple Merchant Center account statuses in a single request.

func (*AccountstatusesService) Get Uses

func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall

Get: Retrieves the status of a Merchant Center account. No itemLevelIssues are returned for multi-client accounts.

func (*AccountstatusesService) List Uses

func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall

List: Lists the statuses of the sub-accounts in your Merchant Center account.

type AccounttaxCustomBatchRequest Uses

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 (*AccounttaxCustomBatchRequest) MarshalJSON Uses

func (s *AccounttaxCustomBatchRequest) MarshalJSON() ([]byte, error)

type AccounttaxCustomBatchRequestEntry Uses

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 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:"-"`
}

AccounttaxCustomBatchRequestEntry: A batch entry encoding a single non-batch accounttax request.

func (*AccounttaxCustomBatchRequestEntry) MarshalJSON Uses

func (s *AccounttaxCustomBatchRequestEntry) MarshalJSON() ([]byte, error)

type AccounttaxCustomBatchResponse Uses

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 (*AccounttaxCustomBatchResponse) MarshalJSON Uses

func (s *AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error)

type AccounttaxCustomBatchResponseEntry Uses

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:"-"`
}

AccounttaxCustomBatchResponseEntry: A batch entry encoding a single non-batch accounttax response.

func (*AccounttaxCustomBatchResponseEntry) MarshalJSON Uses

func (s *AccounttaxCustomBatchResponseEntry) MarshalJSON() ([]byte, error)

type AccounttaxCustombatchCall Uses

type AccounttaxCustombatchCall struct {
    // contains filtered or unexported fields
}

func (*AccounttaxCustombatchCall) Context Uses

func (c *AccounttaxCustombatchCall) Context(ctx context.Context) *AccounttaxCustombatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccounttaxCustombatchCall) Do Uses

func (c *AccounttaxCustombatchCall) Do(opts ...googleapi.CallOption) (*AccounttaxCustomBatchResponse, error)

Do executes the "content.accounttax.custombatch" call. Exactly one of *AccounttaxCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccounttaxCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccounttaxCustombatchCall) DryRun Uses

func (c *AccounttaxCustombatchCall) DryRun(dryRun bool) *AccounttaxCustombatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccounttaxCustombatchCall) Fields Uses

func (c *AccounttaxCustombatchCall) Fields(s ...googleapi.Field) *AccounttaxCustombatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccounttaxCustombatchCall) Header Uses

func (c *AccounttaxCustombatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccounttaxGetCall Uses

type AccounttaxGetCall struct {
    // contains filtered or unexported fields
}

func (*AccounttaxGetCall) Context Uses

func (c *AccounttaxGetCall) Context(ctx context.Context) *AccounttaxGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccounttaxGetCall) Do Uses

func (c *AccounttaxGetCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)

Do executes the "content.accounttax.get" call. Exactly one of *AccountTax or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountTax.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccounttaxGetCall) Fields Uses

func (c *AccounttaxGetCall) Fields(s ...googleapi.Field) *AccounttaxGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccounttaxGetCall) Header Uses

func (c *AccounttaxGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccounttaxGetCall) IfNoneMatch Uses

func (c *AccounttaxGetCall) IfNoneMatch(entityTag string) *AccounttaxGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccounttaxListCall Uses

type AccounttaxListCall struct {
    // contains filtered or unexported fields
}

func (*AccounttaxListCall) Context Uses

func (c *AccounttaxListCall) Context(ctx context.Context) *AccounttaxListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccounttaxListCall) Do Uses

func (c *AccounttaxListCall) Do(opts ...googleapi.CallOption) (*AccounttaxListResponse, error)

Do executes the "content.accounttax.list" call. Exactly one of *AccounttaxListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccounttaxListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccounttaxListCall) Fields Uses

func (c *AccounttaxListCall) Fields(s ...googleapi.Field) *AccounttaxListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccounttaxListCall) Header Uses

func (c *AccounttaxListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccounttaxListCall) IfNoneMatch Uses

func (c *AccounttaxListCall) IfNoneMatch(entityTag string) *AccounttaxListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AccounttaxListCall) MaxResults Uses

func (c *AccounttaxListCall) MaxResults(maxResults int64) *AccounttaxListCall

MaxResults sets the optional parameter "maxResults": The maximum number of tax settings to return in the response, used for paging.

func (*AccounttaxListCall) PageToken Uses

func (c *AccounttaxListCall) PageToken(pageToken string) *AccounttaxListCall

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

func (*AccounttaxListCall) Pages Uses

func (c *AccounttaxListCall) Pages(ctx context.Context, f func(*AccounttaxListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type AccounttaxListResponse Uses

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 (*AccounttaxListResponse) MarshalJSON Uses

func (s *AccounttaxListResponse) MarshalJSON() ([]byte, error)

type AccounttaxPatchCall Uses

type AccounttaxPatchCall struct {
    // contains filtered or unexported fields
}

func (*AccounttaxPatchCall) Context Uses

func (c *AccounttaxPatchCall) Context(ctx context.Context) *AccounttaxPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccounttaxPatchCall) Do Uses

func (c *AccounttaxPatchCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)

Do executes the "content.accounttax.patch" call. Exactly one of *AccountTax or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountTax.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccounttaxPatchCall) DryRun Uses

func (c *AccounttaxPatchCall) DryRun(dryRun bool) *AccounttaxPatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccounttaxPatchCall) Fields Uses

func (c *AccounttaxPatchCall) Fields(s ...googleapi.Field) *AccounttaxPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccounttaxPatchCall) Header Uses

func (c *AccounttaxPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccounttaxService Uses

type AccounttaxService struct {
    // contains filtered or unexported fields
}

func NewAccounttaxService Uses

func NewAccounttaxService(s *APIService) *AccounttaxService

func (*AccounttaxService) Custombatch Uses

func (r *AccounttaxService) Custombatch(accounttaxcustombatchrequest *AccounttaxCustomBatchRequest) *AccounttaxCustombatchCall

Custombatch: Retrieves and updates tax settings of multiple accounts in a single request.

func (*AccounttaxService) Get Uses

func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *AccounttaxGetCall

Get: Retrieves the tax settings of the account.

func (*AccounttaxService) List Uses

func (r *AccounttaxService) List(merchantId uint64) *AccounttaxListCall

List: Lists the tax settings of the sub-accounts in your Merchant Center account.

func (*AccounttaxService) Patch Uses

func (r *AccounttaxService) Patch(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxPatchCall

Patch: Updates the tax settings of the account. This method supports patch semantics.

func (*AccounttaxService) Update Uses

func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall

Update: Updates the tax settings of the account.

type AccounttaxUpdateCall Uses

type AccounttaxUpdateCall struct {
    // contains filtered or unexported fields
}

func (*AccounttaxUpdateCall) Context Uses

func (c *AccounttaxUpdateCall) Context(ctx context.Context) *AccounttaxUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccounttaxUpdateCall) Do Uses

func (c *AccounttaxUpdateCall) Do(opts ...googleapi.CallOption) (*AccountTax, error)

Do executes the "content.accounttax.update" call. Exactly one of *AccountTax or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountTax.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccounttaxUpdateCall) DryRun Uses

func (c *AccounttaxUpdateCall) DryRun(dryRun bool) *AccounttaxUpdateCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*AccounttaxUpdateCall) Fields Uses

func (c *AccounttaxUpdateCall) Fields(s ...googleapi.Field) *AccounttaxUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccounttaxUpdateCall) Header Uses

func (c *AccounttaxUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Amount Uses

type Amount struct {
    // Pretax: [required] Value before taxes.
    Pretax *Price `json:"pretax,omitempty"`

    // Tax: [required] Tax value.
    Tax *Price `json:"tax,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Pretax") 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. "Pretax") 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 (*Amount) MarshalJSON Uses

func (s *Amount) MarshalJSON() ([]byte, error)

type BusinessDayConfig Uses

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 (*BusinessDayConfig) MarshalJSON Uses

func (s *BusinessDayConfig) MarshalJSON() ([]byte, error)

type CarrierRate Uses

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 (*CarrierRate) MarshalJSON Uses

func (s *CarrierRate) MarshalJSON() ([]byte, error)

type CarriersCarrier Uses

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 (*CarriersCarrier) MarshalJSON Uses

func (s *CarriersCarrier) MarshalJSON() ([]byte, error)

type CustomAttribute Uses

type CustomAttribute struct {
    // Name: The name of the attribute. Underscores will be replaced by
    // spaces upon insertion.
    Name string `json:"name,omitempty"`

    // Type: The type of the attribute.
    Type string `json:"type,omitempty"`

    // Unit: Free-form unit of the attribute. Unit can only be used for
    // values of type int, float, or price.
    Unit string `json:"unit,omitempty"`

    // Value: The value of the attribute.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 (*CustomAttribute) MarshalJSON Uses

func (s *CustomAttribute) MarshalJSON() ([]byte, error)

type CustomGroup Uses

type CustomGroup struct {
    // Attributes: The sub-attributes.
    Attributes []*CustomAttribute `json:"attributes,omitempty"`

    // Name: The name of the group. Underscores will be replaced by spaces
    // upon insertion.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Attributes") 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. "Attributes") 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 (*CustomGroup) MarshalJSON Uses

func (s *CustomGroup) MarshalJSON() ([]byte, error)

type CustomerReturnReason Uses

type CustomerReturnReason struct {
    Description string `json:"description,omitempty"`

    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 (*CustomerReturnReason) MarshalJSON Uses

func (s *CustomerReturnReason) MarshalJSON() ([]byte, error)

type CutoffTime Uses

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 (*CutoffTime) MarshalJSON Uses

func (s *CutoffTime) MarshalJSON() ([]byte, error)

type Datafeed Uses

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"`

    // ContentLanguage: [DEPRECATED] Please use targets[].language instead.
    // The two-letter ISO 639-1 language of the items in the feed. Must be a
    // valid language for targetCountry.
    ContentLanguage string `json:"contentLanguage,omitempty"`

    // ContentType: The type of data feed. For product inventory feeds, only
    // feeds for local stores, not online stores, are supported.
    ContentType string `json:"contentType,omitempty"`

    // FetchSchedule: Fetch schedule for the feed file.
    FetchSchedule *DatafeedFetchSchedule `json:"fetchSchedule,omitempty"`

    // FileName: 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: The ID of the data feed.
    Id  int64 `json:"id,omitempty,string"`

    // IntendedDestinations: [DEPRECATED] Please use
    // targets[].includedDestinations instead. The list of intended
    // destinations (corresponds to checked check boxes in Merchant Center).
    IntendedDestinations []string `json:"intendedDestinations,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#datafeed".
    Kind string `json:"kind,omitempty"`

    // Name: A descriptive name of the data feed.
    Name string `json:"name,omitempty"`

    // TargetCountry: [DEPRECATED] Please use targets[].country instead. The
    // country where the items in the feed will be included in the search
    // index, represented as a CLDR territory code.
    TargetCountry string `json:"targetCountry,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:"-"`
}

Datafeed: Datafeed configuration data.

func (*Datafeed) MarshalJSON Uses

func (s *Datafeed) MarshalJSON() ([]byte, error)

type DatafeedFetchSchedule Uses

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.
    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:"-"`
}

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.

func (*DatafeedFetchSchedule) MarshalJSON Uses

func (s *DatafeedFetchSchedule) MarshalJSON() ([]byte, error)

type DatafeedFormat Uses

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.
    ColumnDelimiter string `json:"columnDelimiter,omitempty"`

    // FileEncoding: Character encoding scheme of the data feed. If not
    // specified, the encoding will be auto-detected.
    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.
    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 (*DatafeedFormat) MarshalJSON Uses

func (s *DatafeedFormat) MarshalJSON() ([]byte, error)

type DatafeedStatus Uses

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.
    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:"-"`
}

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.

func (*DatafeedStatus) MarshalJSON Uses

func (s *DatafeedStatus) MarshalJSON() ([]byte, error)

type DatafeedStatusError Uses

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:"-"`
}

DatafeedStatusError: An error occurring in the feed, like "invalid price".

func (*DatafeedStatusError) MarshalJSON Uses

func (s *DatafeedStatusError) MarshalJSON() ([]byte, error)

type DatafeedStatusExample Uses

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:"-"`
}

DatafeedStatusExample: An example occurrence for a particular error.

func (*DatafeedStatusExample) MarshalJSON Uses

func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error)

type DatafeedTarget Uses

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.
    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 (*DatafeedTarget) MarshalJSON Uses

func (s *DatafeedTarget) MarshalJSON() ([]byte, error)

type DatafeedsCustomBatchRequest Uses

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 (*DatafeedsCustomBatchRequest) MarshalJSON Uses

func (s *DatafeedsCustomBatchRequest) MarshalJSON() ([]byte, error)

type DatafeedsCustomBatchRequestEntry Uses

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 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:"-"`
}

DatafeedsCustomBatchRequestEntry: A batch entry encoding a single non-batch datafeeds request.

func (*DatafeedsCustomBatchRequestEntry) MarshalJSON Uses

func (s *DatafeedsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)

type DatafeedsCustomBatchResponse Uses

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 (*DatafeedsCustomBatchResponse) MarshalJSON Uses

func (s *DatafeedsCustomBatchResponse) MarshalJSON() ([]byte, error)

type DatafeedsCustomBatchResponseEntry Uses

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:"-"`
}

DatafeedsCustomBatchResponseEntry: A batch entry encoding a single non-batch datafeeds response.

func (*DatafeedsCustomBatchResponseEntry) MarshalJSON Uses

func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)

type DatafeedsCustombatchCall Uses

type DatafeedsCustombatchCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsCustombatchCall) Context Uses

func (c *DatafeedsCustombatchCall) Context(ctx context.Context) *DatafeedsCustombatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsCustombatchCall) Do Uses

func (c *DatafeedsCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedsCustomBatchResponse, error)

Do executes the "content.datafeeds.custombatch" call. Exactly one of *DatafeedsCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatafeedsCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedsCustombatchCall) DryRun Uses

func (c *DatafeedsCustombatchCall) DryRun(dryRun bool) *DatafeedsCustombatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*DatafeedsCustombatchCall) Fields Uses

func (c *DatafeedsCustombatchCall) Fields(s ...googleapi.Field) *DatafeedsCustombatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsCustombatchCall) Header Uses

func (c *DatafeedsCustombatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatafeedsDeleteCall Uses

type DatafeedsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsDeleteCall) Context Uses

func (c *DatafeedsDeleteCall) Context(ctx context.Context) *DatafeedsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsDeleteCall) Do Uses

func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "content.datafeeds.delete" call.

func (*DatafeedsDeleteCall) DryRun Uses

func (c *DatafeedsDeleteCall) DryRun(dryRun bool) *DatafeedsDeleteCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*DatafeedsDeleteCall) Fields Uses

func (c *DatafeedsDeleteCall) Fields(s ...googleapi.Field) *DatafeedsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsDeleteCall) Header Uses

func (c *DatafeedsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatafeedsFetchNowResponse Uses

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 (*DatafeedsFetchNowResponse) MarshalJSON Uses

func (s *DatafeedsFetchNowResponse) MarshalJSON() ([]byte, error)

type DatafeedsFetchnowCall Uses

type DatafeedsFetchnowCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsFetchnowCall) Context Uses

func (c *DatafeedsFetchnowCall) Context(ctx context.Context) *DatafeedsFetchnowCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsFetchnowCall) Do Uses

func (c *DatafeedsFetchnowCall) Do(opts ...googleapi.CallOption) (*DatafeedsFetchNowResponse, error)

Do executes the "content.datafeeds.fetchnow" call. Exactly one of *DatafeedsFetchNowResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatafeedsFetchNowResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedsFetchnowCall) DryRun Uses

func (c *DatafeedsFetchnowCall) DryRun(dryRun bool) *DatafeedsFetchnowCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*DatafeedsFetchnowCall) Fields Uses

func (c *DatafeedsFetchnowCall) Fields(s ...googleapi.Field) *DatafeedsFetchnowCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsFetchnowCall) Header Uses

func (c *DatafeedsFetchnowCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatafeedsGetCall Uses

type DatafeedsGetCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsGetCall) Context Uses

func (c *DatafeedsGetCall) Context(ctx context.Context) *DatafeedsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsGetCall) Do Uses

func (c *DatafeedsGetCall) Do(opts ...googleapi.CallOption) (*Datafeed, error)

Do executes the "content.datafeeds.get" call. Exactly one of *Datafeed or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Datafeed.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedsGetCall) Fields Uses

func (c *DatafeedsGetCall) Fields(s ...googleapi.Field) *DatafeedsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsGetCall) Header Uses

func (c *DatafeedsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DatafeedsGetCall) IfNoneMatch Uses

func (c *DatafeedsGetCall) IfNoneMatch(entityTag string) *DatafeedsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type DatafeedsInsertCall Uses

type DatafeedsInsertCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsInsertCall) Context Uses

func (c *DatafeedsInsertCall) Context(ctx context.Context) *DatafeedsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsInsertCall) Do Uses

func (c *DatafeedsInsertCall) Do(opts ...googleapi.CallOption) (*Datafeed, error)

Do executes the "content.datafeeds.insert" call. Exactly one of *Datafeed or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Datafeed.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedsInsertCall) DryRun Uses

func (c *DatafeedsInsertCall) DryRun(dryRun bool) *DatafeedsInsertCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*DatafeedsInsertCall) Fields Uses

func (c *DatafeedsInsertCall) Fields(s ...googleapi.Field) *DatafeedsInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsInsertCall) Header Uses

func (c *DatafeedsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatafeedsListCall Uses

type DatafeedsListCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsListCall) Context Uses

func (c *DatafeedsListCall) Context(ctx context.Context) *DatafeedsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsListCall) Do Uses

func (c *DatafeedsListCall) Do(opts ...googleapi.CallOption) (*DatafeedsListResponse, error)

Do executes the "content.datafeeds.list" call. Exactly one of *DatafeedsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatafeedsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedsListCall) Fields Uses

func (c *DatafeedsListCall) Fields(s ...googleapi.Field) *DatafeedsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsListCall) Header Uses

func (c *DatafeedsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DatafeedsListCall) IfNoneMatch Uses

func (c *DatafeedsListCall) IfNoneMatch(entityTag string) *DatafeedsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DatafeedsListCall) MaxResults Uses

func (c *DatafeedsListCall) MaxResults(maxResults int64) *DatafeedsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of products to return in the response, used for paging.

func (*DatafeedsListCall) PageToken Uses

func (c *DatafeedsListCall) PageToken(pageToken string) *DatafeedsListCall

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

func (*DatafeedsListCall) Pages Uses

func (c *DatafeedsListCall) Pages(ctx context.Context, f func(*DatafeedsListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type DatafeedsListResponse Uses

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 (*DatafeedsListResponse) MarshalJSON Uses

func (s *DatafeedsListResponse) MarshalJSON() ([]byte, error)

type DatafeedsPatchCall Uses

type DatafeedsPatchCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsPatchCall) Context Uses

func (c *DatafeedsPatchCall) Context(ctx context.Context) *DatafeedsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsPatchCall) Do Uses

func (c *DatafeedsPatchCall) Do(opts ...googleapi.CallOption) (*Datafeed, error)

Do executes the "content.datafeeds.patch" call. Exactly one of *Datafeed or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Datafeed.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedsPatchCall) DryRun Uses

func (c *DatafeedsPatchCall) DryRun(dryRun bool) *DatafeedsPatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*DatafeedsPatchCall) Fields Uses

func (c *DatafeedsPatchCall) Fields(s ...googleapi.Field) *DatafeedsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsPatchCall) Header Uses

func (c *DatafeedsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatafeedsService Uses

type DatafeedsService struct {
    // contains filtered or unexported fields
}

func NewDatafeedsService Uses

func NewDatafeedsService(s *APIService) *DatafeedsService

func (*DatafeedsService) Custombatch Uses

func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall

Custombatch: Deletes, fetches, gets, inserts and updates multiple datafeeds in a single request.

func (*DatafeedsService) Delete Uses

func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall

Delete: Deletes a datafeed configuration from your Merchant Center account.

func (*DatafeedsService) Fetchnow Uses

func (r *DatafeedsService) Fetchnow(merchantId uint64, datafeedId uint64) *DatafeedsFetchnowCall

Fetchnow: Invokes a fetch for the datafeed in your Merchant Center account.

func (*DatafeedsService) Get Uses

func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall

Get: Retrieves a datafeed configuration from your Merchant Center account.

func (*DatafeedsService) Insert Uses

func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall

Insert: Registers a datafeed configuration with your Merchant Center account.

func (*DatafeedsService) List Uses

func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall

List: Lists the configurations for datafeeds in your Merchant Center account.

func (*DatafeedsService) Patch Uses

func (r *DatafeedsService) Patch(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsPatchCall

Patch: Updates a datafeed configuration of your Merchant Center account. This method supports patch semantics.

func (*DatafeedsService) Update Uses

func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall

Update: Updates a datafeed configuration of your Merchant Center account.

type DatafeedsUpdateCall Uses

type DatafeedsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedsUpdateCall) Context Uses

func (c *DatafeedsUpdateCall) Context(ctx context.Context) *DatafeedsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedsUpdateCall) Do Uses

func (c *DatafeedsUpdateCall) Do(opts ...googleapi.CallOption) (*Datafeed, error)

Do executes the "content.datafeeds.update" call. Exactly one of *Datafeed or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Datafeed.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedsUpdateCall) DryRun Uses

func (c *DatafeedsUpdateCall) DryRun(dryRun bool) *DatafeedsUpdateCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*DatafeedsUpdateCall) Fields Uses

func (c *DatafeedsUpdateCall) Fields(s ...googleapi.Field) *DatafeedsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedsUpdateCall) Header Uses

func (c *DatafeedsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatafeedstatusesCustomBatchRequest Uses

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 (*DatafeedstatusesCustomBatchRequest) MarshalJSON Uses

func (s *DatafeedstatusesCustomBatchRequest) MarshalJSON() ([]byte, error)

type DatafeedstatusesCustomBatchRequestEntry Uses

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 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:"-"`
}

DatafeedstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch datafeedstatuses request.

func (*DatafeedstatusesCustomBatchRequestEntry) MarshalJSON Uses

func (s *DatafeedstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error)

type DatafeedstatusesCustomBatchResponse Uses

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 (*DatafeedstatusesCustomBatchResponse) MarshalJSON Uses

func (s *DatafeedstatusesCustomBatchResponse) MarshalJSON() ([]byte, error)

type DatafeedstatusesCustomBatchResponseEntry Uses

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:"-"`
}

DatafeedstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch datafeedstatuses response.

func (*DatafeedstatusesCustomBatchResponseEntry) MarshalJSON Uses

func (s *DatafeedstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error)

type DatafeedstatusesCustombatchCall Uses

type DatafeedstatusesCustombatchCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedstatusesCustombatchCall) Context Uses

func (c *DatafeedstatusesCustombatchCall) Context(ctx context.Context) *DatafeedstatusesCustombatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedstatusesCustombatchCall) Do Uses

func (c *DatafeedstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesCustomBatchResponse, error)

Do executes the "content.datafeedstatuses.custombatch" call. Exactly one of *DatafeedstatusesCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatafeedstatusesCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedstatusesCustombatchCall) Fields Uses

func (c *DatafeedstatusesCustombatchCall) Fields(s ...googleapi.Field) *DatafeedstatusesCustombatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedstatusesCustombatchCall) Header Uses

func (c *DatafeedstatusesCustombatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DatafeedstatusesGetCall Uses

type DatafeedstatusesGetCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedstatusesGetCall) Context Uses

func (c *DatafeedstatusesGetCall) Context(ctx context.Context) *DatafeedstatusesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedstatusesGetCall) Country Uses

func (c *DatafeedstatusesGetCall) Country(country string) *DatafeedstatusesGetCall

Country sets the optional parameter "country": The country for which to get the datafeed status. If this parameter is provided then language must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.

func (*DatafeedstatusesGetCall) Do Uses

func (c *DatafeedstatusesGetCall) Do(opts ...googleapi.CallOption) (*DatafeedStatus, error)

Do executes the "content.datafeedstatuses.get" call. Exactly one of *DatafeedStatus or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatafeedStatus.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedstatusesGetCall) Fields Uses

func (c *DatafeedstatusesGetCall) Fields(s ...googleapi.Field) *DatafeedstatusesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedstatusesGetCall) Header Uses

func (c *DatafeedstatusesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DatafeedstatusesGetCall) IfNoneMatch Uses

func (c *DatafeedstatusesGetCall) IfNoneMatch(entityTag string) *DatafeedstatusesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DatafeedstatusesGetCall) Language Uses

func (c *DatafeedstatusesGetCall) Language(language string) *DatafeedstatusesGetCall

Language sets the optional parameter "language": The language for which to get the datafeed status. If this parameter is provided then country must also be provided. Note that this parameter is required for feeds targeting multiple countries and languages, since a feed may have a different status for each target.

type DatafeedstatusesListCall Uses

type DatafeedstatusesListCall struct {
    // contains filtered or unexported fields
}

func (*DatafeedstatusesListCall) Context Uses

func (c *DatafeedstatusesListCall) Context(ctx context.Context) *DatafeedstatusesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DatafeedstatusesListCall) Do Uses

func (c *DatafeedstatusesListCall) Do(opts ...googleapi.CallOption) (*DatafeedstatusesListResponse, error)

Do executes the "content.datafeedstatuses.list" call. Exactly one of *DatafeedstatusesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DatafeedstatusesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DatafeedstatusesListCall) Fields Uses

func (c *DatafeedstatusesListCall) Fields(s ...googleapi.Field) *DatafeedstatusesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DatafeedstatusesListCall) Header Uses

func (c *DatafeedstatusesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DatafeedstatusesListCall) IfNoneMatch Uses

func (c *DatafeedstatusesListCall) IfNoneMatch(entityTag string) *DatafeedstatusesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DatafeedstatusesListCall) MaxResults Uses

func (c *DatafeedstatusesListCall) MaxResults(maxResults int64) *DatafeedstatusesListCall

MaxResults sets the optional parameter "maxResults": The maximum number of products to return in the response, used for paging.

func (*DatafeedstatusesListCall) PageToken Uses

func (c *DatafeedstatusesListCall) PageToken(pageToken string) *DatafeedstatusesListCall

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

func (*DatafeedstatusesListCall) Pages Uses

func (c *DatafeedstatusesListCall) Pages(ctx context.Context, f func(*DatafeedstatusesListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type DatafeedstatusesListResponse Uses

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 (*DatafeedstatusesListResponse) MarshalJSON Uses

func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error)

type DatafeedstatusesService Uses

type DatafeedstatusesService struct {
    // contains filtered or unexported fields
}

func NewDatafeedstatusesService Uses

func NewDatafeedstatusesService(s *APIService) *DatafeedstatusesService

func (*DatafeedstatusesService) Custombatch Uses

func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall

Custombatch: Gets multiple Merchant Center datafeed statuses in a single request.

func (*DatafeedstatusesService) Get Uses

func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall

Get: Retrieves the status of a datafeed from your Merchant Center account.

func (*DatafeedstatusesService) List Uses

func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall

List: Lists the statuses of the datafeeds in your Merchant Center account.

type DeliveryTime Uses

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 (*DeliveryTime) MarshalJSON Uses

func (s *DeliveryTime) MarshalJSON() ([]byte, error)

type Error Uses

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:"-"`
}

Error: An error returned by the API.

func (*Error) MarshalJSON Uses

func (s *Error) MarshalJSON() ([]byte, error)

type Errors Uses

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:"-"`
}

Errors: A list of errors returned by a failed batch entry.

func (*Errors) MarshalJSON Uses

func (s *Errors) MarshalJSON() ([]byte, error)

type GmbAccounts Uses

type GmbAccounts struct {
    // AccountId: The ID of the 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 (*GmbAccounts) MarshalJSON Uses

func (s *GmbAccounts) MarshalJSON() ([]byte, error)

type GmbAccountsGmbAccount Uses

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 (*GmbAccountsGmbAccount) MarshalJSON Uses

func (s *GmbAccountsGmbAccount) MarshalJSON() ([]byte, error)

type Headers Uses

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:"-"`
}

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.

func (*Headers) MarshalJSON Uses

func (s *Headers) MarshalJSON() ([]byte, error)

type HolidayCutoff Uses

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 (*HolidayCutoff) MarshalJSON Uses

func (s *HolidayCutoff) MarshalJSON() ([]byte, error)

type HolidaysHoliday Uses

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.
    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 (*HolidaysHoliday) MarshalJSON Uses

func (s *HolidaysHoliday) MarshalJSON() ([]byte, error)

type Installment Uses

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 (*Installment) MarshalJSON Uses

func (s *Installment) MarshalJSON() ([]byte, error)

type Inventory Uses

type Inventory struct {
    // Availability: The availability of the product.
    Availability string `json:"availability,omitempty"`

    // CustomLabel0: Custom label 0 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel0 string `json:"customLabel0,omitempty"`

    // CustomLabel1: Custom label 1 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel1 string `json:"customLabel1,omitempty"`

    // CustomLabel2: Custom label 2 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel2 string `json:"customLabel2,omitempty"`

    // CustomLabel3: Custom label 3 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel3 string `json:"customLabel3,omitempty"`

    // CustomLabel4: Custom label 3 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel4 string `json:"customLabel4,omitempty"`

    // Installment: Number and amount of installments to pay for an item.
    // Brazil only.
    Installment *Installment `json:"installment,omitempty"`

    // InstoreProductLocation: The instore product location. Supported only
    // for local products.
    InstoreProductLocation string `json:"instoreProductLocation,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#inventory".
    Kind string `json:"kind,omitempty"`

    // LoyaltyPoints: Loyalty points that users receive after purchasing the
    // item. Japan only.
    LoyaltyPoints *LoyaltyPoints `json:"loyaltyPoints,omitempty"`

    // Pickup: Store pickup information. Only supported for local inventory.
    // Not setting pickup means "don't update" while setting it to the empty
    // value ({} in JSON) means "delete". Otherwise, pickupMethod and
    // pickupSla must be set together, unless pickupMethod is "not
    // supported".
    Pickup *InventoryPickup `json:"pickup,omitempty"`

    // Price: The price of the product.
    Price *Price `json:"price,omitempty"`

    // Quantity: The quantity of the product. Must be equal to or greater
    // than zero. Supported only for local products.
    Quantity int64 `json:"quantity,omitempty"`

    // SalePrice: The sale price of the product. Mandatory if
    // sale_price_effective_date is defined.
    SalePrice *Price `json:"salePrice,omitempty"`

    // SalePriceEffectiveDate: A date range represented by a pair of ISO
    // 8601 dates separated by a space, comma, or slash. Both dates might be
    // specified as 'null' if undecided.
    SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`

    // SellOnGoogleQuantity: The quantity of the product that is available
    // for selling on Google. Supported only for online products.
    SellOnGoogleQuantity int64 `json:"sellOnGoogleQuantity,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Availability") 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. "Availability") 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 (*Inventory) MarshalJSON Uses

func (s *Inventory) MarshalJSON() ([]byte, error)

type InventoryCustomBatchRequest Uses

type InventoryCustomBatchRequest struct {
    // Entries: The request entries to be processed in the batch.
    Entries []*InventoryCustomBatchRequestEntry `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 (*InventoryCustomBatchRequest) MarshalJSON Uses

func (s *InventoryCustomBatchRequest) MarshalJSON() ([]byte, error)

type InventoryCustomBatchRequestEntry Uses

type InventoryCustomBatchRequestEntry struct {
    // BatchId: An entry ID, unique within the batch request.
    BatchId int64 `json:"batchId,omitempty"`

    // Inventory: Price and availability of the product.
    Inventory *Inventory `json:"inventory,omitempty"`

    // MerchantId: The ID of the managing account.
    MerchantId uint64 `json:"merchantId,omitempty,string"`

    // ProductId: The ID of the product for which to update price and
    // availability.
    ProductId string `json:"productId,omitempty"`

    // StoreCode: The code of the store for which to update price and
    // availability. Use online to update price and availability of an
    // online product.
    StoreCode string `json:"storeCode,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:"-"`
}

InventoryCustomBatchRequestEntry: A batch entry encoding a single non-batch inventory request.

func (*InventoryCustomBatchRequestEntry) MarshalJSON Uses

func (s *InventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error)

type InventoryCustomBatchResponse Uses

type InventoryCustomBatchResponse struct {
    // Entries: The result of the execution of the batch requests.
    Entries []*InventoryCustomBatchResponseEntry `json:"entries,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#inventoryCustomBatchResponse".
    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 (*InventoryCustomBatchResponse) MarshalJSON Uses

func (s *InventoryCustomBatchResponse) MarshalJSON() ([]byte, error)

type InventoryCustomBatchResponseEntry Uses

type InventoryCustomBatchResponseEntry struct {
    // 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#inventoryCustomBatchResponseEntry".
    Kind string `json:"kind,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:"-"`
}

InventoryCustomBatchResponseEntry: A batch entry encoding a single non-batch inventory response.

func (*InventoryCustomBatchResponseEntry) MarshalJSON Uses

func (s *InventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error)

type InventoryCustombatchCall Uses

type InventoryCustombatchCall struct {
    // contains filtered or unexported fields
}

func (*InventoryCustombatchCall) Context Uses

func (c *InventoryCustombatchCall) Context(ctx context.Context) *InventoryCustombatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InventoryCustombatchCall) Do Uses

func (c *InventoryCustombatchCall) Do(opts ...googleapi.CallOption) (*InventoryCustomBatchResponse, error)

Do executes the "content.inventory.custombatch" call. Exactly one of *InventoryCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *InventoryCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*InventoryCustombatchCall) DryRun Uses

func (c *InventoryCustombatchCall) DryRun(dryRun bool) *InventoryCustombatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*InventoryCustombatchCall) Fields Uses

func (c *InventoryCustombatchCall) Fields(s ...googleapi.Field) *InventoryCustombatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*InventoryCustombatchCall) Header Uses

func (c *InventoryCustombatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type InventoryPickup Uses

type InventoryPickup struct {
    // PickupMethod: Whether store pickup is available for this offer and
    // whether the pickup option should be shown as buy, reserve, or not
    // supported. Only supported for local inventory. Unless the value is
    // "not supported", must be submitted together with pickupSla.
    PickupMethod string `json:"pickupMethod,omitempty"`

    // PickupSla: The expected date that an order will be ready for pickup,
    // relative to when the order is placed. Only supported for local
    // inventory. Must be submitted together with pickupMethod.
    PickupSla string `json:"pickupSla,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PickupMethod") 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. "PickupMethod") 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 (*InventoryPickup) MarshalJSON Uses

func (s *InventoryPickup) MarshalJSON() ([]byte, error)

type InventoryService Uses

type InventoryService struct {
    // contains filtered or unexported fields
}

func NewInventoryService Uses

func NewInventoryService(s *APIService) *InventoryService

func (*InventoryService) Custombatch Uses

func (r *InventoryService) Custombatch(inventorycustombatchrequest *InventoryCustomBatchRequest) *InventoryCustombatchCall

Custombatch: Updates price and availability for multiple products or stores in a single request. This operation does not update the expiration date of the products.

func (*InventoryService) Set Uses

func (r *InventoryService) Set(merchantId uint64, storeCode string, productId string, inventorysetrequest *InventorySetRequest) *InventorySetCall

Set: Updates price and availability of a product in your Merchant Center account.

type InventorySetCall Uses

type InventorySetCall struct {
    // contains filtered or unexported fields
}

func (*InventorySetCall) Context Uses

func (c *InventorySetCall) Context(ctx context.Context) *InventorySetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*InventorySetCall) Do Uses

func (c *InventorySetCall) Do(opts ...googleapi.CallOption) (*InventorySetResponse, error)

Do executes the "content.inventory.set" call. Exactly one of *InventorySetResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *InventorySetResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*InventorySetCall) DryRun Uses

func (c *InventorySetCall) DryRun(dryRun bool) *InventorySetCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*InventorySetCall) Fields Uses

func (c *InventorySetCall) Fields(s ...googleapi.Field) *InventorySetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*InventorySetCall) Header Uses

func (c *InventorySetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type InventorySetRequest Uses

type InventorySetRequest struct {
    // Availability: The availability of the product.
    Availability string `json:"availability,omitempty"`

    // CustomLabel0: Custom label 0 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel0 string `json:"customLabel0,omitempty"`

    // CustomLabel1: Custom label 1 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel1 string `json:"customLabel1,omitempty"`

    // CustomLabel2: Custom label 2 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel2 string `json:"customLabel2,omitempty"`

    // CustomLabel3: Custom label 3 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel3 string `json:"customLabel3,omitempty"`

    // CustomLabel4: Custom label 3 for custom grouping of items in a
    // Shopping campaign. Only supported for online products.
    CustomLabel4 string `json:"customLabel4,omitempty"`

    // Installment: Number and amount of installments to pay for an item.
    // Brazil only.
    Installment *Installment `json:"installment,omitempty"`

    // InstoreProductLocation: The instore product location. Supported only
    // for local products.
    InstoreProductLocation string `json:"instoreProductLocation,omitempty"`

    // LoyaltyPoints: Loyalty points that users receive after purchasing the
    // item. Japan only.
    LoyaltyPoints *LoyaltyPoints `json:"loyaltyPoints,omitempty"`

    // Pickup: Store pickup information. Only supported for local inventory.
    // Not setting pickup means "don't update" while setting it to the empty
    // value ({} in JSON) means "delete". Otherwise, pickupMethod and
    // pickupSla must be set together, unless pickupMethod is "not
    // supported".
    Pickup *InventoryPickup `json:"pickup,omitempty"`

    // Price: The price of the product.
    Price *Price `json:"price,omitempty"`

    // Quantity: The quantity of the product. Must be equal to or greater
    // than zero. Supported only for local products.
    Quantity int64 `json:"quantity,omitempty"`

    // SalePrice: The sale price of the product. Mandatory if
    // sale_price_effective_date is defined.
    SalePrice *Price `json:"salePrice,omitempty"`

    // SalePriceEffectiveDate: A date range represented by a pair of ISO
    // 8601 dates separated by a space, comma, or slash. Both dates might be
    // specified as 'null' if undecided.
    SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"`

    // SellOnGoogleQuantity: The quantity of the product that is available
    // for selling on Google. Supported only for online products.
    SellOnGoogleQuantity int64 `json:"sellOnGoogleQuantity,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Availability") 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. "Availability") 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 (*InventorySetRequest) MarshalJSON Uses

func (s *InventorySetRequest) MarshalJSON() ([]byte, error)

type InventorySetResponse Uses

type InventorySetResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#inventorySetResponse".
    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 (*InventorySetResponse) MarshalJSON Uses

func (s *InventorySetResponse) MarshalJSON() ([]byte, error)

type InvoiceSummary Uses

type InvoiceSummary struct {
    // AdditionalChargeSummaries: Summary of the total amounts of the
    // additional charges.
    AdditionalChargeSummaries []*InvoiceSummaryAdditionalChargeSummary `json:"additionalChargeSummaries,omitempty"`

    // CustomerBalance: Deprecated.
    CustomerBalance *Amount `json:"customerBalance,omitempty"`

    // GoogleBalance: Deprecated.
    GoogleBalance *Amount `json:"googleBalance,omitempty"`

    // MerchantBalance: Deprecated.
    MerchantBalance *Amount `json:"merchantBalance,omitempty"`

    // ProductTotal: [required] Total price for the product.
    ProductTotal *Amount `json:"productTotal,omitempty"`

    // PromotionSummaries: Deprecated.
    PromotionSummaries []*Promotion `json:"promotionSummaries,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 (*InvoiceSummary) MarshalJSON Uses

func (s *InvoiceSummary) MarshalJSON() ([]byte, error)

type InvoiceSummaryAdditionalChargeSummary Uses

type InvoiceSummaryAdditionalChargeSummary struct {
    // TotalAmount: [required] Total additional charge for this type.
    TotalAmount *Amount `json:"totalAmount,omitempty"`

    // Type: [required] Type of the additional charge.
    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 (*InvoiceSummaryAdditionalChargeSummary) MarshalJSON Uses

func (s *InvoiceSummaryAdditionalChargeSummary) MarshalJSON() ([]byte, error)

type LiaAboutPageSettings Uses

type LiaAboutPageSettings struct {
    // Status: The status of the verification process for the About page.
    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 (*LiaAboutPageSettings) MarshalJSON Uses

func (s *LiaAboutPageSettings) MarshalJSON() ([]byte, error)

type LiaCountrySettings Uses

type LiaCountrySettings struct {
    // About: The settings for the About page.
    About *LiaAboutPageSettings `json:"about,omitempty"`

    // Country: 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 (*LiaCountrySettings) MarshalJSON Uses

func (s *LiaCountrySettings) MarshalJSON() ([]byte, error)

type LiaInventorySettings Uses

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.
    InventoryVerificationContactStatus string `json:"inventoryVerificationContactStatus,omitempty"`

    // Status: The status of the inventory verification process.
    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
    // 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 (*LiaInventorySettings) MarshalJSON Uses

func (s *LiaInventorySettings) MarshalJSON() ([]byte, error)

type LiaOnDisplayToOrderSettings Uses

type LiaOnDisplayToOrderSettings struct {
    // ShippingCostPolicyUrl: Shipping cost and policy URL.
    ShippingCostPolicyUrl string `json:"shippingCostPolicyUrl,omitempty"`

    // Status: The status of the ?On display to order? feature.
    Status string `json:"status,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "ShippingCostPolicyUrl") 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. "ShippingCostPolicyUrl") 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 (*LiaOnDisplayToOrderSettings) MarshalJSON Uses

func (s *LiaOnDisplayToOrderSettings) MarshalJSON() ([]byte, error)

type LiaPosDataProvider Uses

type LiaPosDataProvider struct {
    // PosDataProviderId: The ID of the POS data provider.
    PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"`

    // PosExternalAccountId: The account ID by which this merchant is known
    // to the POS data provider.
    PosExternalAccountId string `json:"posExternalAccountId,omitempty"`

    // ForceSendFields is a list of field names (e.g. "PosDataProviderId")
    // 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. "PosDataProviderId") 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 (*LiaPosDataProvider) MarshalJSON Uses

func (s *LiaPosDataProvider) MarshalJSON() ([]byte, error)

type LiaSettings Uses

type LiaSettings struct {
    // AccountId: The ID of the account to which these LIA settings belong.
    // Ignored upon update, always present in get request responses.
    AccountId uint64 `json:"accountId,omitempty,string"`

    // CountrySettings: The LIA settings for each country.
    CountrySettings []*LiaCountrySettings `json:"countrySettings,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liaSettings".
    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. "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:"-"`
}

LiaSettings: Local Inventory ads (LIA) settings. All methods except listposdataproviders require the admin role.

func (*LiaSettings) MarshalJSON Uses

func (s *LiaSettings) MarshalJSON() ([]byte, error)

type LiasettingsCustomBatchRequest Uses

type LiasettingsCustomBatchRequest struct {
    // Entries: The request entries to be processed in the batch.
    Entries []*LiasettingsCustomBatchRequestEntry `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 (*LiasettingsCustomBatchRequest) MarshalJSON Uses

func (s *LiasettingsCustomBatchRequest) MarshalJSON() ([]byte, error)

type LiasettingsCustomBatchRequestEntry Uses

type LiasettingsCustomBatchRequestEntry struct {
    // AccountId: The ID of the account for which to get/update account
    // shipping settings.
    AccountId uint64 `json:"accountId,omitempty,string"`

    // BatchId: An entry ID, unique within the batch request.
    BatchId int64 `json:"batchId,omitempty"`

    // ContactEmail: Inventory validation contact email. Required only for
    // SetInventoryValidationContact.
    ContactEmail string `json:"contactEmail,omitempty"`

    // ContactName: Inventory validation contact name. Required only for
    // SetInventoryValidationContact.
    ContactName string `json:"contactName,omitempty"`

    // Country: The country code. Required only for
    // RequestInventoryVerification.
    Country string `json:"country,omitempty"`

    // GmbEmail: The GMB account. Required only for RequestGmbAccess.
    GmbEmail string `json:"gmbEmail,omitempty"`

    // LiaSettings: The account Lia settings to update. Only defined if the
    // method is update.
    LiaSettings *LiaSettings `json:"liaSettings,omitempty"`

    // MerchantId: The ID of the managing account.
    MerchantId uint64 `json:"merchantId,omitempty,string"`

    Method string `json:"method,omitempty"`

    // PosDataProviderId: The ID of POS data provider. Required only for
    // SetPosProvider.
    PosDataProviderId uint64 `json:"posDataProviderId,omitempty,string"`

    // PosExternalAccountId: The account ID by which this merchant is known
    // to the POS provider.
    PosExternalAccountId string `json:"posExternalAccountId,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 (*LiasettingsCustomBatchRequestEntry) MarshalJSON Uses

func (s *LiasettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)

type LiasettingsCustomBatchResponse Uses

type LiasettingsCustomBatchResponse struct {
    // Entries: The result of the execution of the batch requests.
    Entries []*LiasettingsCustomBatchResponseEntry `json:"entries,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsCustomBatchResponse".
    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 (*LiasettingsCustomBatchResponse) MarshalJSON Uses

func (s *LiasettingsCustomBatchResponse) MarshalJSON() ([]byte, error)

type LiasettingsCustomBatchResponseEntry Uses

type LiasettingsCustomBatchResponseEntry struct {
    // BatchId: The ID of the request entry to which this entry responds.
    BatchId int64 `json:"batchId,omitempty"`

    // Errors: A list of errors defined if, and only if, the request failed.
    Errors *Errors `json:"errors,omitempty"`

    // GmbAccounts: The the list of accessible GMB accounts.
    GmbAccounts *GmbAccounts `json:"gmbAccounts,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsCustomBatchResponseEntry".
    Kind string `json:"kind,omitempty"`

    // LiaSettings: The retrieved or updated Lia settings.
    LiaSettings *LiaSettings `json:"liaSettings,omitempty"`

    // PosDataProviders: The list of POS data providers.
    PosDataProviders []*PosDataProviders `json:"posDataProviders,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 (*LiasettingsCustomBatchResponseEntry) MarshalJSON Uses

func (s *LiasettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)

type LiasettingsCustombatchCall Uses

type LiasettingsCustombatchCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsCustombatchCall) Context Uses

func (c *LiasettingsCustombatchCall) Context(ctx context.Context) *LiasettingsCustombatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsCustombatchCall) Do Uses

func (c *LiasettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*LiasettingsCustomBatchResponse, error)

Do executes the "content.liasettings.custombatch" call. Exactly one of *LiasettingsCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsCustomBatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsCustombatchCall) DryRun Uses

func (c *LiasettingsCustombatchCall) DryRun(dryRun bool) *LiasettingsCustombatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*LiasettingsCustombatchCall) Fields Uses

func (c *LiasettingsCustombatchCall) Fields(s ...googleapi.Field) *LiasettingsCustombatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsCustombatchCall) Header Uses

func (c *LiasettingsCustombatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LiasettingsGetAccessibleGmbAccountsResponse Uses

type LiasettingsGetAccessibleGmbAccountsResponse struct {
    // AccountId: The ID of the account.
    AccountId uint64 `json:"accountId,omitempty,string"`

    // GmbAccounts: A list of GMB accounts which are available to the
    // merchant.
    GmbAccounts []*GmbAccountsGmbAccount `json:"gmbAccounts,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsGetAccessibleGmbAccountsResponse".
    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. "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 (*LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON Uses

func (s *LiasettingsGetAccessibleGmbAccountsResponse) MarshalJSON() ([]byte, error)

type LiasettingsGetCall Uses

type LiasettingsGetCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsGetCall) Context Uses

func (c *LiasettingsGetCall) Context(ctx context.Context) *LiasettingsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsGetCall) Do Uses

func (c *LiasettingsGetCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error)

Do executes the "content.liasettings.get" call. Exactly one of *LiaSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiaSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsGetCall) Fields Uses

func (c *LiasettingsGetCall) Fields(s ...googleapi.Field) *LiasettingsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsGetCall) Header Uses

func (c *LiasettingsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LiasettingsGetCall) IfNoneMatch Uses

func (c *LiasettingsGetCall) IfNoneMatch(entityTag string) *LiasettingsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type LiasettingsGetaccessiblegmbaccountsCall Uses

type LiasettingsGetaccessiblegmbaccountsCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsGetaccessiblegmbaccountsCall) Context Uses

func (c *LiasettingsGetaccessiblegmbaccountsCall) Context(ctx context.Context) *LiasettingsGetaccessiblegmbaccountsCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsGetaccessiblegmbaccountsCall) Do Uses

func (c *LiasettingsGetaccessiblegmbaccountsCall) Do(opts ...googleapi.CallOption) (*LiasettingsGetAccessibleGmbAccountsResponse, error)

Do executes the "content.liasettings.getaccessiblegmbaccounts" call. Exactly one of *LiasettingsGetAccessibleGmbAccountsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsGetAccessibleGmbAccountsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsGetaccessiblegmbaccountsCall) Fields Uses

func (c *LiasettingsGetaccessiblegmbaccountsCall) Fields(s ...googleapi.Field) *LiasettingsGetaccessiblegmbaccountsCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsGetaccessiblegmbaccountsCall) Header Uses

func (c *LiasettingsGetaccessiblegmbaccountsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch Uses

func (c *LiasettingsGetaccessiblegmbaccountsCall) IfNoneMatch(entityTag string) *LiasettingsGetaccessiblegmbaccountsCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type LiasettingsListCall Uses

type LiasettingsListCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsListCall) Context Uses

func (c *LiasettingsListCall) Context(ctx context.Context) *LiasettingsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsListCall) Do Uses

func (c *LiasettingsListCall) Do(opts ...googleapi.CallOption) (*LiasettingsListResponse, error)

Do executes the "content.liasettings.list" call. Exactly one of *LiasettingsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsListCall) Fields Uses

func (c *LiasettingsListCall) Fields(s ...googleapi.Field) *LiasettingsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsListCall) Header Uses

func (c *LiasettingsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LiasettingsListCall) IfNoneMatch Uses

func (c *LiasettingsListCall) IfNoneMatch(entityTag string) *LiasettingsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*LiasettingsListCall) MaxResults Uses

func (c *LiasettingsListCall) MaxResults(maxResults int64) *LiasettingsListCall

MaxResults sets the optional parameter "maxResults": The maximum number of LIA settings to return in the response, used for paging.

func (*LiasettingsListCall) PageToken Uses

func (c *LiasettingsListCall) PageToken(pageToken string) *LiasettingsListCall

PageToken sets the optional parameter "pageToken": The token returned by the previous request.

func (*LiasettingsListCall) Pages Uses

func (c *LiasettingsListCall) Pages(ctx context.Context, f func(*LiasettingsListResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type LiasettingsListPosDataProvidersResponse Uses

type LiasettingsListPosDataProvidersResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsListPosDataProvidersResponse".
    Kind string `json:"kind,omitempty"`

    // PosDataProviders: The list of POS data providers for each eligible
    // country
    PosDataProviders []*PosDataProviders `json:"posDataProviders,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 (*LiasettingsListPosDataProvidersResponse) MarshalJSON Uses

func (s *LiasettingsListPosDataProvidersResponse) MarshalJSON() ([]byte, error)

type LiasettingsListResponse Uses

type LiasettingsListResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsListResponse".
    Kind string `json:"kind,omitempty"`

    // NextPageToken: The token for the retrieval of the next page of LIA
    // settings.
    NextPageToken string `json:"nextPageToken,omitempty"`

    Resources []*LiaSettings `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 (*LiasettingsListResponse) MarshalJSON Uses

func (s *LiasettingsListResponse) MarshalJSON() ([]byte, error)

type LiasettingsListposdataprovidersCall Uses

type LiasettingsListposdataprovidersCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsListposdataprovidersCall) Context Uses

func (c *LiasettingsListposdataprovidersCall) Context(ctx context.Context) *LiasettingsListposdataprovidersCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsListposdataprovidersCall) Do Uses

func (c *LiasettingsListposdataprovidersCall) Do(opts ...googleapi.CallOption) (*LiasettingsListPosDataProvidersResponse, error)

Do executes the "content.liasettings.listposdataproviders" call. Exactly one of *LiasettingsListPosDataProvidersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsListPosDataProvidersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsListposdataprovidersCall) Fields Uses

func (c *LiasettingsListposdataprovidersCall) Fields(s ...googleapi.Field) *LiasettingsListposdataprovidersCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsListposdataprovidersCall) Header Uses

func (c *LiasettingsListposdataprovidersCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LiasettingsListposdataprovidersCall) IfNoneMatch Uses

func (c *LiasettingsListposdataprovidersCall) IfNoneMatch(entityTag string) *LiasettingsListposdataprovidersCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type LiasettingsPatchCall Uses

type LiasettingsPatchCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsPatchCall) Context Uses

func (c *LiasettingsPatchCall) Context(ctx context.Context) *LiasettingsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsPatchCall) Do Uses

func (c *LiasettingsPatchCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error)

Do executes the "content.liasettings.patch" call. Exactly one of *LiaSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiaSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsPatchCall) DryRun Uses

func (c *LiasettingsPatchCall) DryRun(dryRun bool) *LiasettingsPatchCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*LiasettingsPatchCall) Fields Uses

func (c *LiasettingsPatchCall) Fields(s ...googleapi.Field) *LiasettingsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsPatchCall) Header Uses

func (c *LiasettingsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LiasettingsRequestGmbAccessResponse Uses

type LiasettingsRequestGmbAccessResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsRequestGmbAccessResponse".
    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 (*LiasettingsRequestGmbAccessResponse) MarshalJSON Uses

func (s *LiasettingsRequestGmbAccessResponse) MarshalJSON() ([]byte, error)

type LiasettingsRequestInventoryVerificationResponse Uses

type LiasettingsRequestInventoryVerificationResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsRequestInventoryVerificationResponse".
    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 (*LiasettingsRequestInventoryVerificationResponse) MarshalJSON Uses

func (s *LiasettingsRequestInventoryVerificationResponse) MarshalJSON() ([]byte, error)

type LiasettingsRequestgmbaccessCall Uses

type LiasettingsRequestgmbaccessCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsRequestgmbaccessCall) Context Uses

func (c *LiasettingsRequestgmbaccessCall) Context(ctx context.Context) *LiasettingsRequestgmbaccessCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsRequestgmbaccessCall) Do Uses

func (c *LiasettingsRequestgmbaccessCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestGmbAccessResponse, error)

Do executes the "content.liasettings.requestgmbaccess" call. Exactly one of *LiasettingsRequestGmbAccessResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsRequestGmbAccessResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsRequestgmbaccessCall) Fields Uses

func (c *LiasettingsRequestgmbaccessCall) Fields(s ...googleapi.Field) *LiasettingsRequestgmbaccessCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsRequestgmbaccessCall) Header Uses

func (c *LiasettingsRequestgmbaccessCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LiasettingsRequestinventoryverificationCall Uses

type LiasettingsRequestinventoryverificationCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsRequestinventoryverificationCall) Context Uses

func (c *LiasettingsRequestinventoryverificationCall) Context(ctx context.Context) *LiasettingsRequestinventoryverificationCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsRequestinventoryverificationCall) Do Uses

func (c *LiasettingsRequestinventoryverificationCall) Do(opts ...googleapi.CallOption) (*LiasettingsRequestInventoryVerificationResponse, error)

Do executes the "content.liasettings.requestinventoryverification" call. Exactly one of *LiasettingsRequestInventoryVerificationResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsRequestInventoryVerificationResponse.ServerResponse.Header

or (if a response was returned at all) in

error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsRequestinventoryverificationCall) Fields Uses

func (c *LiasettingsRequestinventoryverificationCall) Fields(s ...googleapi.Field) *LiasettingsRequestinventoryverificationCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsRequestinventoryverificationCall) Header Uses

func (c *LiasettingsRequestinventoryverificationCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LiasettingsService Uses

type LiasettingsService struct {
    // contains filtered or unexported fields
}

func NewLiasettingsService Uses

func NewLiasettingsService(s *APIService) *LiasettingsService

func (*LiasettingsService) Custombatch Uses

func (r *LiasettingsService) Custombatch(liasettingscustombatchrequest *LiasettingsCustomBatchRequest) *LiasettingsCustombatchCall

Custombatch: Retrieves and/or updates the LIA settings of multiple accounts in a single request.

func (*LiasettingsService) Get Uses

func (r *LiasettingsService) Get(merchantId uint64, accountId uint64) *LiasettingsGetCall

Get: Retrieves the LIA settings of the account.

func (*LiasettingsService) Getaccessiblegmbaccounts Uses

func (r *LiasettingsService) Getaccessiblegmbaccounts(merchantId uint64, accountId uint64) *LiasettingsGetaccessiblegmbaccountsCall

Getaccessiblegmbaccounts: Retrieves the list of accessible Google My Business accounts.

func (*LiasettingsService) List Uses

func (r *LiasettingsService) List(merchantId uint64) *LiasettingsListCall

List: Lists the LIA settings of the sub-accounts in your Merchant Center account.

func (*LiasettingsService) Listposdataproviders Uses

func (r *LiasettingsService) Listposdataproviders() *LiasettingsListposdataprovidersCall

Listposdataproviders: Retrieves the list of POS data providers that have active settings for the all eiligible countries.

func (*LiasettingsService) Patch Uses

func (r *LiasettingsService) Patch(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsPatchCall

Patch: Updates the LIA settings of the account. This method supports patch semantics.

func (*LiasettingsService) Requestgmbaccess Uses

func (r *LiasettingsService) Requestgmbaccess(merchantId uint64, accountId uint64, gmbEmail string) *LiasettingsRequestgmbaccessCall

Requestgmbaccess: Requests access to a specified Google My Business account.

func (*LiasettingsService) Requestinventoryverification Uses

func (r *LiasettingsService) Requestinventoryverification(merchantId uint64, accountId uint64, country string) *LiasettingsRequestinventoryverificationCall

Requestinventoryverification: Requests inventory validation for the specified country.

func (*LiasettingsService) Setinventoryverificationcontact Uses

func (r *LiasettingsService) Setinventoryverificationcontact(merchantId uint64, accountId uint64, contactEmail string, contactName string, country string, language string) *LiasettingsSetinventoryverificationcontactCall

Setinventoryverificationcontact: Sets the inventory verification contract for the specified country.

func (*LiasettingsService) Setposdataprovider Uses

func (r *LiasettingsService) Setposdataprovider(merchantId uint64, accountId uint64, country string) *LiasettingsSetposdataproviderCall

Setposdataprovider: Sets the POS data provider for the specified country.

func (*LiasettingsService) Update Uses

func (r *LiasettingsService) Update(merchantId uint64, accountId uint64, liasettings *LiaSettings) *LiasettingsUpdateCall

Update: Updates the LIA settings of the account.

type LiasettingsSetInventoryVerificationContactResponse Uses

type LiasettingsSetInventoryVerificationContactResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsSetInventoryVerificationContactResponse".
    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 (*LiasettingsSetInventoryVerificationContactResponse) MarshalJSON Uses

func (s *LiasettingsSetInventoryVerificationContactResponse) MarshalJSON() ([]byte, error)

type LiasettingsSetPosDataProviderResponse Uses

type LiasettingsSetPosDataProviderResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#liasettingsSetPosDataProviderResponse".
    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 (*LiasettingsSetPosDataProviderResponse) MarshalJSON Uses

func (s *LiasettingsSetPosDataProviderResponse) MarshalJSON() ([]byte, error)

type LiasettingsSetinventoryverificationcontactCall Uses

type LiasettingsSetinventoryverificationcontactCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsSetinventoryverificationcontactCall) Context Uses

func (c *LiasettingsSetinventoryverificationcontactCall) Context(ctx context.Context) *LiasettingsSetinventoryverificationcontactCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsSetinventoryverificationcontactCall) Do Uses

func (c *LiasettingsSetinventoryverificationcontactCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetInventoryVerificationContactResponse, error)

Do executes the "content.liasettings.setinventoryverificationcontact" call. Exactly one of *LiasettingsSetInventoryVerificationContactResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsSetInventoryVerificationContactResponse.ServerResponse.Hea der or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsSetinventoryverificationcontactCall) Fields Uses

func (c *LiasettingsSetinventoryverificationcontactCall) Fields(s ...googleapi.Field) *LiasettingsSetinventoryverificationcontactCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsSetinventoryverificationcontactCall) Header Uses

func (c *LiasettingsSetinventoryverificationcontactCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LiasettingsSetposdataproviderCall Uses

type LiasettingsSetposdataproviderCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsSetposdataproviderCall) Context Uses

func (c *LiasettingsSetposdataproviderCall) Context(ctx context.Context) *LiasettingsSetposdataproviderCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsSetposdataproviderCall) Do Uses

func (c *LiasettingsSetposdataproviderCall) Do(opts ...googleapi.CallOption) (*LiasettingsSetPosDataProviderResponse, error)

Do executes the "content.liasettings.setposdataprovider" call. Exactly one of *LiasettingsSetPosDataProviderResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiasettingsSetPosDataProviderResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsSetposdataproviderCall) Fields Uses

func (c *LiasettingsSetposdataproviderCall) Fields(s ...googleapi.Field) *LiasettingsSetposdataproviderCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsSetposdataproviderCall) Header Uses

func (c *LiasettingsSetposdataproviderCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*LiasettingsSetposdataproviderCall) PosDataProviderId Uses

func (c *LiasettingsSetposdataproviderCall) PosDataProviderId(posDataProviderId uint64) *LiasettingsSetposdataproviderCall

PosDataProviderId sets the optional parameter "posDataProviderId": The ID of POS data provider.

func (*LiasettingsSetposdataproviderCall) PosExternalAccountId Uses

func (c *LiasettingsSetposdataproviderCall) PosExternalAccountId(posExternalAccountId string) *LiasettingsSetposdataproviderCall

PosExternalAccountId sets the optional parameter "posExternalAccountId": The account ID by which this merchant is known to the POS data provider.

type LiasettingsUpdateCall Uses

type LiasettingsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*LiasettingsUpdateCall) Context Uses

func (c *LiasettingsUpdateCall) Context(ctx context.Context) *LiasettingsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*LiasettingsUpdateCall) Do Uses

func (c *LiasettingsUpdateCall) Do(opts ...googleapi.CallOption) (*LiaSettings, error)

Do executes the "content.liasettings.update" call. Exactly one of *LiaSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LiaSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*LiasettingsUpdateCall) DryRun Uses

func (c *LiasettingsUpdateCall) DryRun(dryRun bool) *LiasettingsUpdateCall

DryRun sets the optional parameter "dryRun": Flag to simulate a request like in a live environment. If set to true, dry-run mode checks the validity of the request and returns errors (if any).

func (*LiasettingsUpdateCall) Fields Uses

func (c *LiasettingsUpdateCall) Fields(s ...googleapi.Field) *LiasettingsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LiasettingsUpdateCall) Header Uses

func (c *LiasettingsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type LocationIdSet Uses

type LocationIdSet struct {
    // LocationIds: A non-empty list of location IDs. They must all be of
    // the same location type (e.g., state).
    LocationIds []string `json:"locationIds,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LocationIds") 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. "LocationIds") 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 (*LocationIdSet) MarshalJSON Uses

func (s *LocationIdSet) MarshalJSON() ([]byte, error)

type LoyaltyPoints Uses

type LoyaltyPoints struct {
    // Name: Name of loyalty points program. It is recommended to limit the
    // name to 12 full-width characters or 24 Roman characters.
    Name string `json:"name,omitempty"`

    // PointsValue: The retailer's loyalty points in absolute value.
    PointsValue int64 `json:"pointsValue,omitempty,string"`

    // Ratio: The ratio of a point when converted to currency. Google
    // assumes currency based on Merchant Center settings. If ratio is left
    // out, it defaults to 1.0.
    Ratio float64 `json:"ratio,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") 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. "Name") 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 (*LoyaltyPoints) MarshalJSON Uses

func (s *LoyaltyPoints) MarshalJSON() ([]byte, error)

func (*LoyaltyPoints) UnmarshalJSON Uses

func (s *LoyaltyPoints) UnmarshalJSON(data []byte) error

type MerchantOrderReturn Uses

type MerchantOrderReturn struct {
    CreationDate string `json:"creationDate,omitempty"`

    MerchantOrderId string `json:"merchantOrderId,omitempty"`

    OrderId string `json:"orderId,omitempty"`

    OrderReturnId string `json:"orderReturnId,omitempty"`

    ReturnItems []*MerchantOrderReturnItem `json:"returnItems,omitempty"`

    ReturnShipments []*ReturnShipment `json:"returnShipments,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CreationDate") 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. "CreationDate") 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 (*MerchantOrderReturn) MarshalJSON Uses

func (s *MerchantOrderReturn) MarshalJSON() ([]byte, error)

type MerchantOrderReturnItem Uses

type MerchantOrderReturnItem struct {
    CustomerReturnReason *CustomerReturnReason `json:"customerReturnReason,omitempty"`

    ItemId string `json:"itemId,omitempty"`

    MerchantReturnReason *RefundReason `json:"merchantReturnReason,omitempty"`

    Product *OrderLineItemProduct `json:"product,omitempty"`

    ReturnShipmentIds []string `json:"returnShipmentIds,omitempty"`

    State string `json:"state,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "CustomerReturnReason") 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. "CustomerReturnReason") 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 (*MerchantOrderReturnItem) MarshalJSON Uses

func (s *MerchantOrderReturnItem) MarshalJSON() ([]byte, error)

type Order Uses

type Order struct {
    // Acknowledged: Whether the order was acknowledged.
    Acknowledged bool `json:"acknowledged,omitempty"`

    // ChannelType: Deprecated.
    ChannelType string `json:"channelType,omitempty"`

    // Customer: The details of the customer who placed the order.
    Customer *OrderCustomer `json:"customer,omitempty"`

    // DeliveryDetails: Delivery details for shipments of type delivery.
    DeliveryDetails *OrderDeliveryDetails `json:"deliveryDetails,omitempty"`

    // Id: The REST ID of the order. Globally unique.
    Id  string `json:"id,omitempty"`

    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "content#order".
    Kind string `json:"kind,omitempty"`

    // LineItems: Line items that are ordered.
    LineItems []*OrderLineItem `json:"lineItems,omitempty"`

    MerchantId uint64 `json:"merchantId,omitempty,string"`

    // MerchantOrderId: Merchant-provided ID of the order.
    MerchantOrderId string `json:"merchantOrderId,omitempty"`

    // NetAmount: The net amount for the order. For example, if an order was
    // originally for a grand total of $100 and a refund was issued for $20,
    // the net amount will be $80.
    NetAmount *Price `json:"netAmount,omitempty"`

    // PaymentMethod: The details of the payment method.
    PaymentMethod *OrderPaymentMethod `json:"paymentMethod,omitempty"`

    // PaymentStatus: The status of the payment.
    PaymentStatus string `json:"paymentStatus,omitempty"`

    // PickupDetails: Pickup details for shipments of type pickup.
    PickupDetails *OrderPickupDetails `json:"pickupDetails,omitempty"`

    // PlacedDate: The date when the order was placed, in ISO 8601 format.
    PlacedDate string `json:"placedDate,omitempty"`

    // Promotions: The details of the merchant provided promotions applied
    // to the order. More details about the program are here.
    Promotions []*OrderLegacyPromotion `json:"promotions,omitempty"`

    // Refunds: Refunds for the order.
    Refunds []*OrderRefund `json:"refunds,omitempty"`

    // Shipments: Shipments of the order.
    Shipments []*OrderShipment `json:"shipments,omitempty"`

    // ShippingCost: The total cost of shipping for all items.
    ShippingCost *Price `json:"shippingCost,omitempty"`

    // ShippingCostTax: The tax for the total shipping cost.
    ShippingCostTax *Price `json:"shippingCostTax,omitempty"`

    // ShippingOption: Deprecated. Shipping details are provided with line
    // items instead.
    ShippingOption string `json:"shippingOption,omitempty"`

    // Status: The status of the order.
    Status string `json:"status,omitempty"`

    // TaxCollector: The party responsible for collecting and remitting
    // taxes.
    TaxCollector string `json:"taxCollector,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Acknowledged") 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. "Acknowledged") 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:"-"`
}

Order: Order. All methods require the order manager role.

func (*Order) MarshalJSON Uses

func (s *Order) MarshalJSON() ([]byte, error)

type OrderAddress Uses

type OrderAddress struct {
    // Country: CLDR country code (e.g. "US").
    Country string `json:"country,omitempty"`

    // FullAddress: Strings representing the lines of the printed label for
    // mailing the order, for example:
    // John Smith
    // 1600 Amphitheatre Parkway
    // Mountain View, CA, 94043
    // United States
    FullAddress []string `json:"fullAddress,omitempty"`

    // IsPostOfficeBox: Whether the address is a post office box.
    IsPostOfficeBox bool `json:"isPostOfficeBox,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"`

    // RecipientName: Name of the recipient.
    RecipientName string `json:"recipientName,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 (*OrderAddress) MarshalJSON Uses

func (s *OrderAddress) MarshalJSON() ([]byte, error)

type OrderCancellation Uses

type OrderCancellation struct {
    // Actor: The actor that created the cancellation.
    Actor string `json:"actor,omitempty"`

    // CreationDate: Date on which the cancellation has been created, in ISO
    // 8601 format.
    CreationDate string `json:"creationDate,omitempty"`

    // Quantity: The quantity that was canceled.
    Quantity int64 `json:"quantity,omitempty"`

    // Reason: The reason for the cancellation. Orders that are cancelled
    // with a noInventory reason will lead to the removal of the product
    // from Shopping Actions until you make an update to that product. This
    // will not affect your Shopping ads.
    Reason string `json:"reason,omitempty"`

    // ReasonText: The explanation of the reason.
    ReasonText string `json:"reasonText,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Actor") 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. "Actor") 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 (*OrderCancellation) MarshalJSON Uses

func (s *OrderCancellation) MarshalJSON() ([]byte, error)

type OrderCustomer Uses

type OrderCustomer struct {
    // Email: Deprecated.
    Email string `json:"email,omitempty"`

    // ExplicitMarketingPreference: Deprecated. Please use
    // marketingRightsInfo instead.
    ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"`

    // FullName: Full name of the customer.
    FullName string `json:"fullName,omitempty"`

    // InvoiceReceivingEmail: Email address for receiving merchant issued
    // value-added tax or invoice documentation of this order.
    InvoiceReceivingEmail string `json:"invoiceReceivingEmail,omitempty"`

    // MarketingRightsInfo: Customer's marketing preferences. Contains the
    // marketing opt-in information that is current at the time that the
    // merchant call. User preference selections can change from one order
    // to the next so preferences must be checked with every order.
    MarketingRightsInfo *OrderCustomerMarketingRightsInfo `json:"marketingRightsInfo,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 (*OrderCustomer) MarshalJSON Uses

func (s *OrderCustomer) MarshalJSON() ([]byte, error)

type OrderCustomerMarketingRightsInfo Uses

type OrderCustomerMarketingRightsInfo struct {
    // ExplicitMarketingPreference: Last known customer selection regarding
    // marketing preferences. In certain cases this selection might not be
    // known, so this field would be empty. If a customer selected granted
    // in their most recent order, they can be subscribed to marketing
    // emails. Customers who have chosen denied must not be subscribed, or
    // must be unsubscribed if already opted-in.
    ExplicitMarketingPreference string `json:"explicitMarketingPreference,omitempty"`

    // LastUpdatedTimestamp: Timestamp when last time marketing preference
    // was updated. Could be empty, if user wasn't offered a selection yet.
    LastUpdatedTimestamp string `json:"lastUpdatedTimestamp,omitempty"`

    // MarketingEmailAddress: Email address that can be used for marketing
    // purposes. The field may be empty even if explicitMarketingPreference
    // is 'granted'. This happens when retrieving an old order from the
    // customer who deleted their account.
    MarketingEmailAddress string `json:"marketingEmailAddress,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "ExplicitMarketingPreference") 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.
    // "ExplicitMarketingPreference") 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 (*OrderCustomerMarketingRightsInfo) MarshalJSON Uses

func (s *OrderCustomerMarketingRightsInfo) MarshalJSON() ([]byte, error)

type OrderDeliveryDetails Uses

type OrderDeliveryDetails struct {
    // Address: The delivery address
    Address *OrderAddress `json:"address,omitempty"`

    // PhoneNumber: The phone number of the person receiving the delivery.
    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 (*OrderDeliveryDetails) MarshalJSON Uses

func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error)

type OrderLegacyPromotion Uses

type OrderLegacyPromotion struct {
    Benefits []*OrderLegacyPromotionBenefit `json:"benefits,omitempty"`

    // EffectiveDates: The date and time frame when the promotion is active
    // and ready for validation review. Note that the promotion live time
    // may be delayed for a few hours due to the validation review.
    // Start date and end date are separated by a forward slash (/). The
    // start date is specified by the format (YYYY-MM-DD), followed by the
    // letter ?T?, the time of the day when the sale starts (in Greenwich
    // Mean Time, GMT), followed by an expression of the time zone for the
    // sale. The end date is in the same format.
    EffectiveDates string `json:"effectiveDates,omitempty"`

    // GenericRedemptionCode: Optional. The text code that corresponds to
    // the promotion when applied on the retailer?s website.
    GenericRedemptionCode string `json:"genericRedemptionCode,omitempty"`

    // Id: The unique ID of the promotion.
    Id  string `json:"id,omitempty"`

    // LongTitle: The full title of the promotion.
    LongTitle string `json:"longTitle,omitempty"`

    // ProductApplicability: Whether the promotion is applicable to all
    // products or only specific products.
    ProductApplicability string `json:"productApplicability,omitempty"`

    // RedemptionChannel: Indicates that the promotion is valid online.
    RedemptionChannel string `json:"redemptionChannel,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Benefits") 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. "Benefits") 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 (*OrderLegacyPromotion) MarshalJSON Uses

func (s *OrderLegacyPromotion) MarshalJSON() ([]byte, error)

type OrderLegacyPromotionBenefit Uses

type OrderLegacyPromotionBenefit struct {
    // Discount: The discount in the order price when the promotion is
    // applied.
    Discount *Price `json:"discount,omitempty"`

    // OfferIds: The OfferId(s) that were purchased in this order and map to
    // this specific benefit of the promotion.
    OfferIds []string `json:"offerIds,omitempty"`

    // SubType: Further describes the benefit of the promotion. Note that we
    // will expand on this enumeration as we support new promotion
    // sub-types.
    SubType string `json:"subType,omitempty"`

    // TaxImpact: The impact on tax when the promotion is applied.
    TaxImpact *Price `json:"taxImpact,omitempty"`

    // Type: Describes whether the promotion applies to products (e.g. 20%
    // off) or to shipping (e.g. Free Shipping).
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Discount") 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. "Discount") 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 (*OrderLegacyPromotionBenefit) MarshalJSON Uses

func (s *OrderLegacyPromotionBenefit) MarshalJSON() ([]byte, error)

type OrderLineItem Uses

type OrderLineItem struct {
    // Annotations: Annotations that are attached to the line item.
    Annotations []*OrderMerchantProvidedAnnotation `json:"annotations,omitempty"`

    // Cancellations: Cancellations of the line item.
    Cancellations []*OrderCancellation `json:"cancellations,omitempty"`

    // Id: The ID of the line item.
    Id  string `json:"id,omitempty"`

    // Price: Total price for the line item. For example, if two items for
    // $10 are purchased, the total price will be $20.
    Price *Price `json:"price,omitempty"`

    // Product: Product data as seen by customer from the time of the order
    // placement. Note that certain attributes values (e.g. title or gtin)
    // might be reformatted and no longer match values submitted via product
    // feed.
    Product *OrderLineItemProduct `json:"product,omitempty"`

    // QuantityCanceled: Number of items canceled.
    QuantityCanceled int64 `json:"quantityCanceled,omitempty"`

    // QuantityDelivered: Number of items delivered.
    QuantityDelivered int64 `json:"quantityDelivered,omitempty"`

    // QuantityOrdered: Number of items ordered.
    QuantityOrdered int64 `json:"quantityOrdered,omitempty"`

    // QuantityPending: Number of items pending.
    QuantityPending int64 `json:"quantityPending,omitempty"`

    // QuantityReadyForPickup: Number of items ready for pickup.
    QuantityReadyForPickup int64 `json:"quantityReadyForPickup,omitempty"`

    // QuantityReturned: Number of items returned.
    QuantityReturned int64 `json:"quantityReturned,omitempty"`

    // QuantityShipped: Number of items shipped.
    QuantityShipped int64 `json:"quantityShipped,omitempty"`

    // ReturnInfo: Details of the return policy for the line item.
    ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"`

    // Returns: Returns of the line item.
    Returns []*OrderReturn `json:"returns,omitempty"`

    // ShippingDetails: Details of the requested shipping for the line item.
    ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"`

    // Tax: Total tax amount for the line item. For example, if two items
    // are purchased, and each have a cost tax of $2, the total tax amount
    // will be $4.
    Tax *Price `json:"tax,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Annotations") 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. "Annotations") 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 (*OrderLineItem) MarshalJSON Uses

func (s *OrderLineItem) MarshalJSON() ([]byte, error)

type OrderLineItemProduct Uses

type OrderLineItemProduct struct {
    // Brand: Brand of the item.
    Brand string `json:"brand,omitempty"`

    // Channel: The item's channel (online or local).
    Channel string `json:"channel,omitempty"`

    // Condition: Condition or state of the item.
    Condition string `json:"condition,omitempty"`

    // ContentLanguage: The two-letter ISO 639-1 language code for the item.
    ContentLanguage string `json:"contentLanguage,omitempty"`

    // Fees: Associated fees at order creation time.
    Fees []*OrderLineItemProductFee `json:"fees,omitempty"`

    // Gtin: Global Trade Item Number (GTIN) of the item.
    Gtin string `json:"gtin,omitempty"`

    // Id: The REST ID of the product.
    Id  string `json:"id,omitempty"`

    // ImageLink: URL of an image of the item.
    ImageLink string `json:"imageLink,omitempty"`

    // ItemGroupId: Shared identifier for all variants of the same product.
    ItemGroupId string `json:"itemGroupId,omitempty"`

    // Mpn: Manufacturer Part Number (MPN) of the item.
    Mpn string `json:"mpn,omitempty"`

    // OfferId: An identifier of the item.
    OfferId string `json:"offerId,omitempty"`

    // Price: Price of the item.
    Price *Price `json:"price,omitempty"`

    // ShownImage: URL to the cached image shown to the user when order was
    // placed.
    ShownImage string `json:"shownImage,omitempty"`

    // TargetCountry: The CLDR territory code of the target country of the
    // product.
    TargetCountry string `json:"targetCountry,omitempty"`

    // Title: The title of the product.
    Title string `json:"title,omitempty"`

    // VariantAttributes: Variant attributes for the item. These are
    // dimensions of the product, such as color, gender, material, pattern,
    // and size. You can find a comprehensive list of variant attributes
    // here.
    VariantAttributes []*OrderLineItemProductVariantAttribute `json:"variantAttributes,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Brand") 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. "Brand") 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 (*OrderLineItemProduct) MarshalJSON Uses

func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error)

type OrderLineItemProductFee Uses

type OrderLineItemProductFee struct {
    // Amount: Amount of the fee.
    Amount *Price `json:"amount,omitempty"`

    // Name: Name of the fee.
    Name string `json:"name,omitempty"`

    // 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 (*OrderLineItemProductFee) MarshalJSON Uses

func (s *OrderLineItemProductFee) MarshalJSON() ([]byte, error)

type OrderLineItemProductVariantAttribute Uses

type OrderLineItemProductVariantAttribute struct {
    // Dimension: The dimension of the variant.
    Dimension string `json:"dimension,omitempty"`

    // Value: The value for the dimension.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Dimension") 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. "Dimension") 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 (*OrderLineItemProductVariantAttribute) MarshalJSON Uses

func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error)

type OrderLineItemReturnInfo Uses

type OrderLineItemReturnInfo struct {
    // DaysToReturn: How many days later the item can be returned.
    DaysToReturn int64 `json:"daysToReturn,omitempty"`

    // IsReturnable: Whether the item is returnable.
    IsReturnable bool `json:"isReturnable,omitempty"`

    // PolicyUrl: URL of the item return policy.
    PolicyUrl string `json:"policyUrl,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DaysToReturn") 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. "DaysToReturn") 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 (*OrderLineItemReturnInfo) MarshalJSON Uses

func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error)

type OrderLineItemShippingDetails Uses

type OrderLineItemShippingDetails struct {
    // DeliverByDate: The delivery by date, in ISO 8601 format.
    DeliverByDate string `json:"deliverByDate,omitempty"`

    // Method: Details of the shipping method.
    Method *OrderLineItemShippingDetailsMethod `json:"method,omitempty"`

    // ShipByDate: The ship by date, in ISO 8601 format.
    ShipByDate string `json:"shipByDate,omitempty"`

    // Type: Type of shipment. Indicates whether deliveryDetails or
    // pickupDetails is applicable for this shipment.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DeliverByDate") 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. "DeliverByDate") 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 (*OrderLineItemShippingDetails) MarshalJSON Uses

func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error)

type OrderLineItemShippingDetailsMethod