Package content
Overview ▹
Index ▹
Constants
OAuth2 scopes used by this API.
const (
// Manage your product listings and accounts for Google Shopping
ContentScope = "https://www.googleapis.com/auth/content"
)
type APIService ¶
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 Orders *OrdersService Products *ProductsService Productstatuses *ProductstatusesService Shippingsettings *ShippingsettingsService // contains filtered or unexported fields }
func New ¶
func New(client *http.Client) (*APIService, error)
type Account ¶
Account: Account data.
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"` // 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: URL for individual seller reviews, i.e., reviews for each // child account. 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"` // 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:"-"` }
func (*Account) MarshalJSON ¶
func (s *Account) MarshalJSON() ([]byte, error)
type AccountAdwordsLink ¶
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 ¶
func (s *AccountAdwordsLink) MarshalJSON() ([]byte, error)
type AccountIdentifier ¶
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 ¶
func (s *AccountIdentifier) MarshalJSON() ([]byte, error)
type AccountStatus ¶
AccountStatus: The status of an account, i.e., information about its products, which is computed offline and not returned immediately at insertion time.
type AccountStatus struct { // AccountId: The ID of the account for which the status is reported. AccountId string `json:"accountId,omitempty"` // DataQualityIssues: A list of data quality issues. DataQualityIssues []*AccountStatusDataQualityIssue `json:"dataQualityIssues,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountStatus". Kind string `json:"kind,omitempty"` // WebsiteClaimed: Whether the account's website is claimed or not. WebsiteClaimed bool `json:"websiteClaimed,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountStatus) MarshalJSON ¶
func (s *AccountStatus) MarshalJSON() ([]byte, error)
type AccountStatusDataQualityIssue ¶
type AccountStatusDataQualityIssue struct { // Country: Country for which this issue is reported. Country string `json:"country,omitempty"` // Detail: A more detailed description of the issue. Detail string `json:"detail,omitempty"` // DisplayedValue: Actual value displayed on the landing page. DisplayedValue string `json:"displayedValue,omitempty"` // ExampleItems: Example items featuring the issue. ExampleItems []*AccountStatusExampleItem `json:"exampleItems,omitempty"` // Id: Issue identifier. Id string `json:"id,omitempty"` // LastChecked: Last time the account was checked for this issue. LastChecked string `json:"lastChecked,omitempty"` // Location: The attribute name that is relevant for the issue. Location string `json:"location,omitempty"` // NumItems: Number of items in the account found to have the said // issue. NumItems int64 `json:"numItems,omitempty"` // Severity: Severity of the problem. Severity string `json:"severity,omitempty"` // SubmittedValue: Submitted value that causes the issue. 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 ¶
func (s *AccountStatusDataQualityIssue) MarshalJSON() ([]byte, error)
type AccountStatusExampleItem ¶
AccountStatusExampleItem: An example of an item that has poor data quality. An item value on the landing page differs from what is submitted, or conflicts with a policy.
type AccountStatusExampleItem struct { // ItemId: Unique item ID as specified in the uploaded product data. ItemId string `json:"itemId,omitempty"` // Link: Landing page of the item. Link string `json:"link,omitempty"` // SubmittedValue: The item value that was submitted. SubmittedValue string `json:"submittedValue,omitempty"` // Title: Title of the item. Title string `json:"title,omitempty"` // ValueOnLandingPage: The actual value on the landing page. 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 ¶
func (s *AccountStatusExampleItem) MarshalJSON() ([]byte, error)
type AccountTax ¶
AccountTax: The tax settings of a merchant account.
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:"-"` }
func (*AccountTax) MarshalJSON ¶
func (s *AccountTax) MarshalJSON() ([]byte, error)
type AccountTaxTaxRule ¶
AccountTaxTaxRule: Tax calculation rule to apply in a state or province (USA only).
type AccountTaxTaxRule struct { // Country: Country code in which tax is applicable. Country string `json:"country,omitempty"` // LocationId: State (or province) is which the tax is applicable, // described by its location id (also called criteria id). LocationId uint64 `json:"locationId,omitempty,string"` // RatePercent: Explicit tax rate in percent, represented as a floating // point number without the percentage character. Must not be negative. RatePercent string `json:"ratePercent,omitempty"` // ShippingTaxed: If true, shipping charges are also taxed. ShippingTaxed bool `json:"shippingTaxed,omitempty"` // UseGlobalRate: Whether the tax rate is taken from a global tax table // or specified explicitly. UseGlobalRate bool `json:"useGlobalRate,omitempty"` // ForceSendFields is a list of field names (e.g. "Country") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Country") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountTaxTaxRule) MarshalJSON ¶
func (s *AccountTaxTaxRule) MarshalJSON() ([]byte, error)
type AccountUser ¶
type AccountUser struct { // Admin: Whether user is an admin. Admin *bool `json:"admin,omitempty"` // EmailAddress: User's email address. EmailAddress string `json:"emailAddress,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 ¶
func (s *AccountUser) MarshalJSON() ([]byte, error)
type AccountsAuthInfoResponse ¶
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 ¶
func (s *AccountsAuthInfoResponse) MarshalJSON() ([]byte, error)
type AccountsAuthinfoCall ¶
type AccountsAuthinfoCall struct {
// contains filtered or unexported fields
}
func (*AccountsAuthinfoCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (s *AccountsClaimWebsiteResponse) MarshalJSON() ([]byte, error)
type AccountsClaimwebsiteCall ¶
type AccountsClaimwebsiteCall struct {
// contains filtered or unexported fields
}
func (*AccountsClaimwebsiteCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *AccountsClaimwebsiteCall) Overwrite(overwrite bool) *AccountsClaimwebsiteCall
Overwrite sets the optional parameter "overwrite": Flag to remove any existing claim on the requested website by another account and replace it with a claim from this account.
type AccountsCustomBatchRequest ¶
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 ¶
func (s *AccountsCustomBatchRequest) MarshalJSON() ([]byte, error)
type AccountsCustomBatchRequestEntry ¶
AccountsCustomBatchRequestEntry: A batch entry encoding a single non-batch accounts request.
type AccountsCustomBatchRequestEntry struct { // Account: The account to create or update. Only defined if the method // is insert or update. Account *Account `json:"account,omitempty"` // AccountId: The ID of the targeted account. Only defined if the method // is get, delete or claimwebsite. AccountId uint64 `json:"accountId,omitempty,string"` // 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"` // 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:"-"` }
func (*AccountsCustomBatchRequestEntry) MarshalJSON ¶
func (s *AccountsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type AccountsCustomBatchResponse ¶
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 ¶
func (s *AccountsCustomBatchResponse) MarshalJSON() ([]byte, error)
type AccountsCustomBatchResponseEntry ¶
AccountsCustomBatchResponseEntry: A batch entry encoding a single non-batch accounts response.
type AccountsCustomBatchResponseEntry struct { // Account: The retrieved, created, or updated account. Not defined if // the method was delete or claimwebsite. Account *Account `json:"account,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accountsCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "Account") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Account") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountsCustomBatchResponseEntry) MarshalJSON ¶
func (s *AccountsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type AccountsCustombatchCall ¶
type AccountsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsCustombatchCall) Context ¶
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 ¶
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 ¶
func (c *AccountsCustombatchCall) DryRun(dryRun bool) *AccountsCustombatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccountsCustombatchCall) Fields ¶
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 ¶
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 ¶
type AccountsDeleteCall struct {
// contains filtered or unexported fields
}
func (*AccountsDeleteCall) Context ¶
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 ¶
func (c *AccountsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.accounts.delete" call.
func (*AccountsDeleteCall) DryRun ¶
func (c *AccountsDeleteCall) DryRun(dryRun bool) *AccountsDeleteCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccountsDeleteCall) Fields ¶
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) Header ¶
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 ¶
type AccountsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type AccountsInsertCall struct {
// contains filtered or unexported fields
}
func (*AccountsInsertCall) Context ¶
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 ¶
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 ¶
func (c *AccountsInsertCall) DryRun(dryRun bool) *AccountsInsertCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccountsInsertCall) Fields ¶
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 ¶
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 AccountsListCall ¶
type AccountsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *AccountsListCall) PageToken(pageToken string) *AccountsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*AccountsListCall) Pages ¶
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 ¶
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 ¶
func (s *AccountsListResponse) MarshalJSON() ([]byte, error)
type AccountsPatchCall ¶
type AccountsPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsPatchCall) Context ¶
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 ¶
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 ¶
func (c *AccountsPatchCall) DryRun(dryRun bool) *AccountsPatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccountsPatchCall) Fields ¶
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 ¶
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 ¶
type AccountsService struct {
// contains filtered or unexported fields
}
func NewAccountsService ¶
func NewAccountsService(s *APIService) *AccountsService
func (*AccountsService) Authinfo ¶
func (r *AccountsService) Authinfo() *AccountsAuthinfoCall
Authinfo: Returns information about the authenticated user.
func (*AccountsService) Claimwebsite ¶
func (r *AccountsService) Claimwebsite(merchantId uint64, accountId uint64) *AccountsClaimwebsiteCall
Claimwebsite: Claims the website of a Merchant Center sub-account. This method can only be called for multi-client accounts.
func (*AccountsService) Custombatch ¶
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 ¶
func (r *AccountsService) Delete(merchantId uint64, accountId uint64) *AccountsDeleteCall
Delete: Deletes a Merchant Center sub-account. This method can only be called for multi-client accounts.
func (*AccountsService) Get ¶
func (r *AccountsService) Get(merchantId uint64, accountId uint64) *AccountsGetCall
Get: Retrieves a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
func (*AccountsService) Insert ¶
func (r *AccountsService) Insert(merchantId uint64, account *Account) *AccountsInsertCall
Insert: Creates a Merchant Center sub-account. This method can only be called for multi-client accounts.
func (*AccountsService) List ¶
func (r *AccountsService) List(merchantId uint64) *AccountsListCall
List: Lists the sub-accounts in your Merchant Center account. This method can only be called for multi-client accounts.
func (*AccountsService) Patch ¶
func (r *AccountsService) Patch(merchantId uint64, accountId uint64, account *Account) *AccountsPatchCall
Patch: Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.
func (*AccountsService) Update ¶
func (r *AccountsService) Update(merchantId uint64, accountId uint64, account *Account) *AccountsUpdateCall
Update: Updates a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
type AccountsUpdateCall ¶
type AccountsUpdateCall struct {
// contains filtered or unexported fields
}
func (*AccountsUpdateCall) Context ¶
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 ¶
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 ¶
func (c *AccountsUpdateCall) DryRun(dryRun bool) *AccountsUpdateCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccountsUpdateCall) Fields ¶
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 ¶
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 ¶
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 ¶
func (s *AccountstatusesCustomBatchRequest) MarshalJSON() ([]byte, error)
type AccountstatusesCustomBatchRequestEntry ¶
AccountstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch accountstatuses request.
type AccountstatusesCustomBatchRequestEntry struct { // AccountId: The ID of the (sub-)account whose status to get. AccountId uint64 `json:"accountId,omitempty,string"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // 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:"-"` }
func (*AccountstatusesCustomBatchRequestEntry) MarshalJSON ¶
func (s *AccountstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type AccountstatusesCustomBatchResponse ¶
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 ¶
func (s *AccountstatusesCustomBatchResponse) MarshalJSON() ([]byte, error)
type AccountstatusesCustomBatchResponseEntry ¶
AccountstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch accountstatuses response.
type AccountstatusesCustomBatchResponseEntry struct { // AccountStatus: The requested account status. Defined if and only if // the request was successful. AccountStatus *AccountStatus `json:"accountStatus,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountStatus") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountStatus") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccountstatusesCustomBatchResponseEntry) MarshalJSON ¶
func (s *AccountstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type AccountstatusesCustombatchCall ¶
type AccountstatusesCustombatchCall struct {
// contains filtered or unexported fields
}
func (*AccountstatusesCustombatchCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type AccountstatusesGetCall struct {
// contains filtered or unexported fields
}
func (*AccountstatusesGetCall) Context ¶
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) Do ¶
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 ¶
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 ¶
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 ¶
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 ¶
type AccountstatusesListCall struct {
// contains filtered or unexported fields
}
func (*AccountstatusesListCall) Context ¶
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) Do ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *AccountstatusesListCall) PageToken(pageToken string) *AccountstatusesListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*AccountstatusesListCall) Pages ¶
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 ¶
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 ¶
func (s *AccountstatusesListResponse) MarshalJSON() ([]byte, error)
type AccountstatusesService ¶
type AccountstatusesService struct {
// contains filtered or unexported fields
}
func NewAccountstatusesService ¶
func NewAccountstatusesService(s *APIService) *AccountstatusesService
func (*AccountstatusesService) Custombatch ¶
func (r *AccountstatusesService) Custombatch(accountstatusescustombatchrequest *AccountstatusesCustomBatchRequest) *AccountstatusesCustombatchCall
Custombatch:
func (*AccountstatusesService) Get ¶
func (r *AccountstatusesService) Get(merchantId uint64, accountId uint64) *AccountstatusesGetCall
Get: Retrieves the status of a Merchant Center account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
func (*AccountstatusesService) List ¶
func (r *AccountstatusesService) List(merchantId uint64) *AccountstatusesListCall
List: Lists the statuses of the sub-accounts in your Merchant Center account. This method can only be called for multi-client accounts.
type AccounttaxCustomBatchRequest ¶
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 ¶
func (s *AccounttaxCustomBatchRequest) MarshalJSON() ([]byte, error)
type AccounttaxCustomBatchRequestEntry ¶
AccounttaxCustomBatchRequestEntry: A batch entry encoding a single non-batch accounttax request.
type AccounttaxCustomBatchRequestEntry struct { // AccountId: The ID of the account for which to get/update account tax // settings. AccountId uint64 `json:"accountId,omitempty,string"` // AccountTax: The account tax settings to update. Only defined if the // method is update. AccountTax *AccountTax `json:"accountTax,omitempty"` // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` Method string `json:"method,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccounttaxCustomBatchRequestEntry) MarshalJSON ¶
func (s *AccounttaxCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type AccounttaxCustomBatchResponse ¶
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 ¶
func (s *AccounttaxCustomBatchResponse) MarshalJSON() ([]byte, error)
type AccounttaxCustomBatchResponseEntry ¶
AccounttaxCustomBatchResponseEntry: A batch entry encoding a single non-batch accounttax response.
type AccounttaxCustomBatchResponseEntry struct { // AccountTax: The retrieved or updated account tax settings. AccountTax *AccountTax `json:"accountTax,omitempty"` // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#accounttaxCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "AccountTax") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountTax") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*AccounttaxCustomBatchResponseEntry) MarshalJSON ¶
func (s *AccounttaxCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type AccounttaxCustombatchCall ¶
type AccounttaxCustombatchCall struct {
// contains filtered or unexported fields
}
func (*AccounttaxCustombatchCall) Context ¶
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 ¶
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 ¶
func (c *AccounttaxCustombatchCall) DryRun(dryRun bool) *AccounttaxCustombatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccounttaxCustombatchCall) Fields ¶
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 ¶
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 ¶
type AccounttaxGetCall struct {
// contains filtered or unexported fields
}
func (*AccounttaxGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type AccounttaxListCall struct {
// contains filtered or unexported fields
}
func (*AccounttaxListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *AccounttaxListCall) PageToken(pageToken string) *AccounttaxListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*AccounttaxListCall) Pages ¶
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 ¶
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 ¶
func (s *AccounttaxListResponse) MarshalJSON() ([]byte, error)
type AccounttaxPatchCall ¶
type AccounttaxPatchCall struct {
// contains filtered or unexported fields
}
func (*AccounttaxPatchCall) Context ¶
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 ¶
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 ¶
func (c *AccounttaxPatchCall) DryRun(dryRun bool) *AccounttaxPatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccounttaxPatchCall) Fields ¶
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 ¶
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 ¶
type AccounttaxService struct {
// contains filtered or unexported fields
}
func NewAccounttaxService ¶
func NewAccounttaxService(s *APIService) *AccounttaxService
func (*AccounttaxService) Custombatch ¶
func (r *AccounttaxService) Custombatch(accounttaxcustombatchrequest *AccounttaxCustomBatchRequest) *AccounttaxCustombatchCall
Custombatch: Retrieves and updates tax settings of multiple accounts in a single request.
func (*AccounttaxService) Get ¶
func (r *AccounttaxService) Get(merchantId uint64, accountId uint64) *AccounttaxGetCall
Get: Retrieves the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
func (*AccounttaxService) List ¶
func (r *AccounttaxService) List(merchantId uint64) *AccounttaxListCall
List: Lists the tax settings of the sub-accounts in your Merchant Center account. This method can only be called for multi-client accounts.
func (*AccounttaxService) Patch ¶
func (r *AccounttaxService) Patch(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxPatchCall
Patch: Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.
func (*AccounttaxService) Update ¶
func (r *AccounttaxService) Update(merchantId uint64, accountId uint64, accounttax *AccountTax) *AccounttaxUpdateCall
Update: Updates the tax settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
type AccounttaxUpdateCall ¶
type AccounttaxUpdateCall struct {
// contains filtered or unexported fields
}
func (*AccounttaxUpdateCall) Context ¶
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 ¶
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 ¶
func (c *AccounttaxUpdateCall) DryRun(dryRun bool) *AccounttaxUpdateCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*AccounttaxUpdateCall) Fields ¶
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 ¶
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 CarrierRate ¶
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 ¶
func (s *CarrierRate) MarshalJSON() ([]byte, error)
type CarriersCarrier ¶
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 ¶
func (s *CarriersCarrier) MarshalJSON() ([]byte, error)
type Datafeed ¶
Datafeed: Datafeed configuration data.
type Datafeed struct { // AttributeLanguage: The two-letter ISO 639-1 language in which the // attributes are defined in the data feed. AttributeLanguage string `json:"attributeLanguage,omitempty"` // ContentLanguage: 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: 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: 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"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AttributeLanguage") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AttributeLanguage") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*Datafeed) MarshalJSON ¶
func (s *Datafeed) MarshalJSON() ([]byte, error)
type DatafeedFetchSchedule ¶
DatafeedFetchSchedule: The required fields vary based on the frequency of fetching. For a monthly fetch schedule, day_of_month and hour are required. For a weekly fetch schedule, weekday and hour are required. For a daily fetch schedule, only hour is required.
type DatafeedFetchSchedule struct { // DayOfMonth: The day of the month the feed file should be fetched // (1-31). DayOfMonth int64 `json:"dayOfMonth,omitempty"` // FetchUrl: The URL where the feed file can be fetched. Google Merchant // Center will support automatic scheduled uploads using the HTTP, // HTTPS, FTP, or SFTP protocols, so the value will need to be a valid // link using one of those four protocols. FetchUrl string `json:"fetchUrl,omitempty"` // Hour: The hour of the day the feed file should be fetched (0-23). Hour int64 `json:"hour,omitempty"` // MinuteOfHour: The minute of the hour the feed file should be fetched // (0-59). Read-only. MinuteOfHour int64 `json:"minuteOfHour,omitempty"` // Password: An optional password for fetch_url. Password string `json:"password,omitempty"` // 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:"-"` }
func (*DatafeedFetchSchedule) MarshalJSON ¶
func (s *DatafeedFetchSchedule) MarshalJSON() ([]byte, error)
type DatafeedFormat ¶
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 ¶
func (s *DatafeedFormat) MarshalJSON() ([]byte, error)
type DatafeedStatus ¶
DatafeedStatus: The status of a datafeed, i.e., the result of the last retrieval of the datafeed computed asynchronously when the feed processing is finished.
type DatafeedStatus struct { // 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"` // 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. "DatafeedId") 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. "DatafeedId") 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 (*DatafeedStatus) MarshalJSON ¶
func (s *DatafeedStatus) MarshalJSON() ([]byte, error)
type DatafeedStatusError ¶
DatafeedStatusError: An error occurring in the feed, like "invalid price".
type DatafeedStatusError struct { // Code: The code of the error, e.g., "validation/invalid_value". Code string `json:"code,omitempty"` // Count: The number of occurrences of the error in the feed. Count uint64 `json:"count,omitempty,string"` // Examples: A list of example occurrences of the error, grouped by // product. Examples []*DatafeedStatusExample `json:"examples,omitempty"` // Message: The error message, e.g., "Invalid price". Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DatafeedStatusError) MarshalJSON ¶
func (s *DatafeedStatusError) MarshalJSON() ([]byte, error)
type DatafeedStatusExample ¶
DatafeedStatusExample: An example occurrence for a particular error.
type DatafeedStatusExample struct { // ItemId: The ID of the example item. ItemId string `json:"itemId,omitempty"` // LineNumber: Line number in the data feed where the example is found. LineNumber uint64 `json:"lineNumber,omitempty,string"` // Value: The problematic value. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "ItemId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ItemId") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DatafeedStatusExample) MarshalJSON ¶
func (s *DatafeedStatusExample) MarshalJSON() ([]byte, error)
type DatafeedsCustomBatchRequest ¶
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 ¶
func (s *DatafeedsCustomBatchRequest) MarshalJSON() ([]byte, error)
type DatafeedsCustomBatchRequestEntry ¶
DatafeedsCustomBatchRequestEntry: A batch entry encoding a single non-batch datafeeds request.
type DatafeedsCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Datafeed: The data feed to insert. Datafeed *Datafeed `json:"datafeed,omitempty"` // DatafeedId: The ID of the data feed to get or delete. 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:"-"` }
func (*DatafeedsCustomBatchRequestEntry) MarshalJSON ¶
func (s *DatafeedsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type DatafeedsCustomBatchResponse ¶
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 ¶
func (s *DatafeedsCustomBatchResponse) MarshalJSON() ([]byte, error)
type DatafeedsCustomBatchResponseEntry ¶
DatafeedsCustomBatchResponseEntry: A batch entry encoding a single non-batch datafeeds response.
type DatafeedsCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Datafeed: The requested data feed. Defined if and only if the request // was successful. Datafeed *Datafeed `json:"datafeed,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BatchId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DatafeedsCustomBatchResponseEntry) MarshalJSON ¶
func (s *DatafeedsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type DatafeedsCustombatchCall ¶
type DatafeedsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsCustombatchCall) Context ¶
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 ¶
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 ¶
func (c *DatafeedsCustombatchCall) DryRun(dryRun bool) *DatafeedsCustombatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*DatafeedsCustombatchCall) Fields ¶
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 ¶
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 ¶
type DatafeedsDeleteCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsDeleteCall) Context ¶
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 ¶
func (c *DatafeedsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.datafeeds.delete" call.
func (*DatafeedsDeleteCall) DryRun ¶
func (c *DatafeedsDeleteCall) DryRun(dryRun bool) *DatafeedsDeleteCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*DatafeedsDeleteCall) Fields ¶
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 ¶
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 DatafeedsGetCall ¶
type DatafeedsGetCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsGetCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type DatafeedsInsertCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsInsertCall) Context ¶
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 ¶
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 ¶
func (c *DatafeedsInsertCall) DryRun(dryRun bool) *DatafeedsInsertCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*DatafeedsInsertCall) Fields ¶
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 ¶
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 ¶
type DatafeedsListCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *DatafeedsListCall) PageToken(pageToken string) *DatafeedsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*DatafeedsListCall) Pages ¶
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 ¶
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 ¶
func (s *DatafeedsListResponse) MarshalJSON() ([]byte, error)
type DatafeedsPatchCall ¶
type DatafeedsPatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsPatchCall) Context ¶
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 ¶
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 ¶
func (c *DatafeedsPatchCall) DryRun(dryRun bool) *DatafeedsPatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*DatafeedsPatchCall) Fields ¶
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 ¶
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 ¶
type DatafeedsService struct {
// contains filtered or unexported fields
}
func NewDatafeedsService ¶
func NewDatafeedsService(s *APIService) *DatafeedsService
func (*DatafeedsService) Custombatch ¶
func (r *DatafeedsService) Custombatch(datafeedscustombatchrequest *DatafeedsCustomBatchRequest) *DatafeedsCustombatchCall
Custombatch:
func (*DatafeedsService) Delete ¶
func (r *DatafeedsService) Delete(merchantId uint64, datafeedId uint64) *DatafeedsDeleteCall
Delete: Deletes a datafeed configuration from your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*DatafeedsService) Get ¶
func (r *DatafeedsService) Get(merchantId uint64, datafeedId uint64) *DatafeedsGetCall
Get: Retrieves a datafeed configuration from your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*DatafeedsService) Insert ¶
func (r *DatafeedsService) Insert(merchantId uint64, datafeed *Datafeed) *DatafeedsInsertCall
Insert: Registers a datafeed configuration with your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*DatafeedsService) List ¶
func (r *DatafeedsService) List(merchantId uint64) *DatafeedsListCall
List: Lists the datafeeds in your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*DatafeedsService) Patch ¶
func (r *DatafeedsService) Patch(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsPatchCall
Patch: Updates a datafeed configuration of your Merchant Center account. This method can only be called for non-multi-client accounts. This method supports patch semantics.
func (*DatafeedsService) Update ¶
func (r *DatafeedsService) Update(merchantId uint64, datafeedId uint64, datafeed *Datafeed) *DatafeedsUpdateCall
Update: Updates a datafeed configuration of your Merchant Center account. This method can only be called for non-multi-client accounts.
type DatafeedsUpdateCall ¶
type DatafeedsUpdateCall struct {
// contains filtered or unexported fields
}
func (*DatafeedsUpdateCall) Context ¶
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 ¶
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 ¶
func (c *DatafeedsUpdateCall) DryRun(dryRun bool) *DatafeedsUpdateCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*DatafeedsUpdateCall) Fields ¶
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 ¶
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 ¶
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 ¶
func (s *DatafeedstatusesCustomBatchRequest) MarshalJSON() ([]byte, error)
type DatafeedstatusesCustomBatchRequestEntry ¶
DatafeedstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch datafeedstatuses request.
type DatafeedstatusesCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // DatafeedId: The ID of the data feed to get or delete. 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:"-"` }
func (*DatafeedstatusesCustomBatchRequestEntry) MarshalJSON ¶
func (s *DatafeedstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type DatafeedstatusesCustomBatchResponse ¶
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 ¶
func (s *DatafeedstatusesCustomBatchResponse) MarshalJSON() ([]byte, error)
type DatafeedstatusesCustomBatchResponseEntry ¶
DatafeedstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch datafeedstatuses response.
type DatafeedstatusesCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // DatafeedStatus: The requested data feed status. Defined if and only // if the request was successful. DatafeedStatus *DatafeedStatus `json:"datafeedStatus,omitempty"` // Errors: A list of errors defined if and only if the request failed. Errors *Errors `json:"errors,omitempty"` // ForceSendFields is a list of field names (e.g. "BatchId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "BatchId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*DatafeedstatusesCustomBatchResponseEntry) MarshalJSON ¶
func (s *DatafeedstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type DatafeedstatusesCustombatchCall ¶
type DatafeedstatusesCustombatchCall struct {
// contains filtered or unexported fields
}
func (*DatafeedstatusesCustombatchCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
type DatafeedstatusesGetCall struct {
// contains filtered or unexported fields
}
func (*DatafeedstatusesGetCall) Context ¶
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) Do ¶
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 ¶
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 ¶
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 ¶
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.
type DatafeedstatusesListCall ¶
type DatafeedstatusesListCall struct {
// contains filtered or unexported fields
}
func (*DatafeedstatusesListCall) Context ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (c *DatafeedstatusesListCall) PageToken(pageToken string) *DatafeedstatusesListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*DatafeedstatusesListCall) Pages ¶
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 ¶
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 ¶
func (s *DatafeedstatusesListResponse) MarshalJSON() ([]byte, error)
type DatafeedstatusesService ¶
type DatafeedstatusesService struct {
// contains filtered or unexported fields
}
func NewDatafeedstatusesService ¶
func NewDatafeedstatusesService(s *APIService) *DatafeedstatusesService
func (*DatafeedstatusesService) Custombatch ¶
func (r *DatafeedstatusesService) Custombatch(datafeedstatusescustombatchrequest *DatafeedstatusesCustomBatchRequest) *DatafeedstatusesCustombatchCall
Custombatch:
func (*DatafeedstatusesService) Get ¶
func (r *DatafeedstatusesService) Get(merchantId uint64, datafeedId uint64) *DatafeedstatusesGetCall
Get: Retrieves the status of a datafeed from your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*DatafeedstatusesService) List ¶
func (r *DatafeedstatusesService) List(merchantId uint64) *DatafeedstatusesListCall
List: Lists the statuses of the datafeeds in your Merchant Center account. This method can only be called for non-multi-client accounts.
type DeliveryTime ¶
type DeliveryTime struct { // 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. Required. MaxTransitTimeInDays int64 `json:"maxTransitTimeInDays,omitempty"` // MinTransitTimeInDays: Minimum number of business days that is spent // in transit. 0 means same day delivery, 1 means next day delivery. // Required. MinTransitTimeInDays int64 `json:"minTransitTimeInDays,omitempty"` // ForceSendFields is a list of field names (e.g. // "MaxTransitTimeInDays") 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. "MaxTransitTimeInDays") 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 ¶
func (s *DeliveryTime) MarshalJSON() ([]byte, error)
type Error ¶
Error: An error returned by the API.
type Error struct { // Domain: The domain of the error. Domain string `json:"domain,omitempty"` // Message: A description of the error. Message string `json:"message,omitempty"` // Reason: The error code. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Domain") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Domain") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Error) MarshalJSON ¶
func (s *Error) MarshalJSON() ([]byte, error)
type Errors ¶
Errors: A list of errors returned by a failed batch entry.
type Errors struct { // Code: The HTTP status of the first error in errors. Code int64 `json:"code,omitempty"` // Errors: A list of errors. Errors []*Error `json:"errors,omitempty"` // Message: The message of the first error in errors. Message string `json:"message,omitempty"` // ForceSendFields is a list of field names (e.g. "Code") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Code") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Errors) MarshalJSON ¶
func (s *Errors) MarshalJSON() ([]byte, error)
type Headers ¶
Headers: A non-empty list of row or column headers for a table. Exactly one of prices, weights, numItems, postalCodeGroupNames, or locations must be set.
type Headers struct { // Locations: A list of location ID sets. Must be non-empty. Can only be // set if all other fields are not set. Locations []*LocationIdSet `json:"locations,omitempty"` // NumberOfItems: A list of inclusive number of items upper bounds. The // last value can be "infinity". For example ["10", "50", "infinity"] // represents the headers "<= 10 items", " 50 items". Must be non-empty. // Can only be set if all other fields are not set. NumberOfItems []string `json:"numberOfItems,omitempty"` // PostalCodeGroupNames: A list of postal group names. The last value // can be "all other locations". Example: ["zone 1", "zone 2", "all // other locations"]. The referred postal code groups must match the // delivery country of the service. Must be non-empty. Can only be set // if all other fields are not set. PostalCodeGroupNames []string `json:"postalCodeGroupNames,omitempty"` // Prices: 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: be "infinity". For example [{"value": "10", "unit": "kg"}, // {"value": "50", "unit": "kg"}, {"value": "infinity", "unit": "kg"}] // represents the headers "<= 10kg", " 50kg". All weights within a // service must have the same unit. Must be non-empty. Can only be set // if all other fields are not set. Weights []*Weight `json:"weights,omitempty"` // ForceSendFields is a list of field names (e.g. "Locations") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locations") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*Headers) MarshalJSON ¶
func (s *Headers) MarshalJSON() ([]byte, error)
type Installment ¶
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 ¶
func (s *Installment) MarshalJSON() ([]byte, error)
type Inventory ¶
type Inventory struct { // Availability: The availability of the product. Availability string `json:"availability,omitempty"` // Installment: Number and amount of installments to pay for an item. // Brazil only. Installment *Installment `json:"installment,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 reserved // for sell-on-google ads. 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 ¶
func (s *Inventory) MarshalJSON() ([]byte, error)
type InventoryCustomBatchRequest ¶
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 ¶
func (s *InventoryCustomBatchRequest) MarshalJSON() ([]byte, error)
type InventoryCustomBatchRequestEntry ¶
InventoryCustomBatchRequestEntry: A batch entry encoding a single non-batch inventory request.
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:"-"` }
func (*InventoryCustomBatchRequestEntry) MarshalJSON ¶
func (s *InventoryCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type InventoryCustomBatchResponse ¶
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 ¶
func (s *InventoryCustomBatchResponse) MarshalJSON() ([]byte, error)
type InventoryCustomBatchResponseEntry ¶
InventoryCustomBatchResponseEntry: A batch entry encoding a single non-batch inventory response.
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:"-"` }
func (*InventoryCustomBatchResponseEntry) MarshalJSON ¶
func (s *InventoryCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type InventoryCustombatchCall ¶
type InventoryCustombatchCall struct {
// contains filtered or unexported fields
}
func (*InventoryCustombatchCall) Context ¶
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 ¶
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 ¶
func (c *InventoryCustombatchCall) DryRun(dryRun bool) *InventoryCustombatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*InventoryCustombatchCall) Fields ¶
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 ¶
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 ¶
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 ¶
func (s *InventoryPickup) MarshalJSON() ([]byte, error)
type InventoryService ¶
type InventoryService struct {
// contains filtered or unexported fields
}
func NewInventoryService ¶
func NewInventoryService(s *APIService) *InventoryService
func (*InventoryService) Custombatch ¶
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. This method can only be called for non-multi-client accounts.
func (*InventoryService) Set ¶
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. This operation does not update the expiration date of the product. This method can only be called for non-multi-client accounts.
type InventorySetCall ¶
type InventorySetCall struct {
// contains filtered or unexported fields
}
func (*InventorySetCall) Context ¶
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 ¶
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 ¶
func (c *InventorySetCall) DryRun(dryRun bool) *InventorySetCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*InventorySetCall) Fields ¶
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 ¶
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 ¶
type InventorySetRequest struct { // Availability: The availability of the product. Availability string `json:"availability,omitempty"` // Installment: Number and amount of installments to pay for an item. // Brazil only. Installment *Installment `json:"installment,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 reserved // for sell-on-google ads. 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 ¶
func (s *InventorySetRequest) MarshalJSON() ([]byte, error)
type InventorySetResponse ¶
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 ¶
func (s *InventorySetResponse) MarshalJSON() ([]byte, error)
type LocationIdSet ¶
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 ¶
func (s *LocationIdSet) MarshalJSON() ([]byte, error)
type LoyaltyPoints ¶
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 ¶
func (s *LoyaltyPoints) MarshalJSON() ([]byte, error)
func (*LoyaltyPoints) UnmarshalJSON ¶
func (s *LoyaltyPoints) UnmarshalJSON(data []byte) error
type Order ¶
type Order struct { // Acknowledged: Whether the order was acknowledged. Acknowledged bool `json:"acknowledged,omitempty"` // ChannelType: The channel type of the order: "purchaseOnGoogle" or // "googleExpress". ChannelType string `json:"channelType,omitempty"` // Customer: The details of the customer who placed the order. Customer *OrderCustomer `json:"customer,omitempty"` // DeliveryDetails: The details for the 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"` // 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 []*OrderPromotion `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: The requested shipping option. ShippingOption string `json:"shippingOption,omitempty"` // Status: The status of the order. Status string `json:"status,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:"-"` }
func (*Order) MarshalJSON ¶
func (s *Order) MarshalJSON() ([]byte, error)
type OrderAddress ¶
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 (e.g. // "CA"). 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 ¶
func (s *OrderAddress) MarshalJSON() ([]byte, error)
type OrderCancellation ¶
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 POG 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 ¶
func (s *OrderCancellation) MarshalJSON() ([]byte, error)
type OrderCustomer ¶
type OrderCustomer struct { // Email: Email address of the customer. Email string `json:"email,omitempty"` // ExplicitMarketingPreference: If set, this indicates the user // explicitly chose to opt in or out of providing marketing rights to // the merchant. If unset, this indicates the user has already made this // choice in a previous purchase, and was thus not shown the marketing // right opt in/out checkbox during the checkout flow. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` // FullName: Full name of the customer. FullName string `json:"fullName,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 ¶
func (s *OrderCustomer) MarshalJSON() ([]byte, error)
type OrderDeliveryDetails ¶
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 ¶
func (s *OrderDeliveryDetails) MarshalJSON() ([]byte, error)
type OrderLineItem ¶
type OrderLineItem struct { // 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 from the time of the order placement. 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"` // 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. "Cancellations") 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. "Cancellations") 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 ¶
func (s *OrderLineItem) MarshalJSON() ([]byte, error)
type OrderLineItemProduct ¶
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"` // 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 ¶
func (s *OrderLineItemProduct) MarshalJSON() ([]byte, error)
type OrderLineItemProductVariantAttribute ¶
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 ¶
func (s *OrderLineItemProductVariantAttribute) MarshalJSON() ([]byte, error)
type OrderLineItemReturnInfo ¶
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 ¶
func (s *OrderLineItemReturnInfo) MarshalJSON() ([]byte, error)
type OrderLineItemShippingDetails ¶
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"` // 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 ¶
func (s *OrderLineItemShippingDetails) MarshalJSON() ([]byte, error)
type OrderLineItemShippingDetailsMethod ¶
type OrderLineItemShippingDetailsMethod struct { // Carrier: The carrier for the shipping. Optional. Carrier string `json:"carrier,omitempty"` // MaxDaysInTransit: Maximum transit time. MaxDaysInTransit int64 `json:"maxDaysInTransit,omitempty"` // MethodName: The name of the shipping method. MethodName string `json:"methodName,omitempty"` // MinDaysInTransit: Minimum transit time. MinDaysInTransit int64 `json:"minDaysInTransit,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 (*OrderLineItemShippingDetailsMethod) MarshalJSON ¶
func (s *OrderLineItemShippingDetailsMethod) MarshalJSON() ([]byte, error)
type OrderPaymentMethod ¶
type OrderPaymentMethod struct { // BillingAddress: The billing address. BillingAddress *OrderAddress `json:"billingAddress,omitempty"` // ExpirationMonth: The card expiration month (January = 1, February = 2 // etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` // PhoneNumber: The billing phone number. PhoneNumber string `json:"phoneNumber,omitempty"` // Type: The type of instrument (VISA, Mastercard, etc). Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "BillingAddress") 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. "BillingAddress") 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 (*OrderPaymentMethod) MarshalJSON ¶
func (s *OrderPaymentMethod) MarshalJSON() ([]byte, error)
type OrderPromotion ¶
type OrderPromotion struct { Benefits []*OrderPromotionBenefit `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 (*OrderPromotion) MarshalJSON ¶
func (s *OrderPromotion) MarshalJSON() ([]byte, error)
type OrderPromotionBenefit ¶
type OrderPromotionBenefit 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 (*OrderPromotionBenefit) MarshalJSON ¶
func (s *OrderPromotionBenefit) MarshalJSON() ([]byte, error)
type OrderRefund ¶
type OrderRefund struct { // Actor: The actor that created the refund. Actor string `json:"actor,omitempty"` // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` // CreationDate: Date on which the item has been created, in ISO 8601 // format. CreationDate string `json:"creationDate,omitempty"` // Reason: The reason for the refund. 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 (*OrderRefund) MarshalJSON ¶
func (s *OrderRefund) MarshalJSON() ([]byte, error)
type OrderReturn ¶
type OrderReturn struct { // Actor: The actor that created the refund. Actor string `json:"actor,omitempty"` // CreationDate: Date on which the item has been created, in ISO 8601 // format. CreationDate string `json:"creationDate,omitempty"` // Quantity: Quantity that is returned. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. 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 (*OrderReturn) MarshalJSON ¶
func (s *OrderReturn) MarshalJSON() ([]byte, error)
type OrderShipment ¶
type OrderShipment struct { // Carrier: The carrier handling the shipment. Carrier string `json:"carrier,omitempty"` // CreationDate: Date on which the shipment has been created, in ISO // 8601 format. CreationDate string `json:"creationDate,omitempty"` // DeliveryDate: Date on which the shipment has been delivered, in ISO // 8601 format. Present only if status is delievered DeliveryDate string `json:"deliveryDate,omitempty"` // Id: The id of the shipment. Id string `json:"id,omitempty"` // LineItems: The line items that are shipped. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` // Status: The status of the shipment. Status string `json:"status,omitempty"` // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 (*OrderShipment) MarshalJSON ¶
func (s *OrderShipment) MarshalJSON() ([]byte, error)
type OrderShipmentLineItemShipment ¶
type OrderShipmentLineItemShipment struct { // LineItemId: The id of the line item that is shipped. LineItemId string `json:"lineItemId,omitempty"` // Quantity: The quantity that is shipped. Quantity int64 `json:"quantity,omitempty"` // ForceSendFields is a list of field names (e.g. "LineItemId") 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. "LineItemId") 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 (*OrderShipmentLineItemShipment) MarshalJSON ¶
func (s *OrderShipmentLineItemShipment) MarshalJSON() ([]byte, error)
type OrdersAcknowledgeCall ¶
type OrdersAcknowledgeCall struct {
// contains filtered or unexported fields
}
func (*OrdersAcknowledgeCall) Context ¶
func (c *OrdersAcknowledgeCall) Context(ctx context.Context) *OrdersAcknowledgeCall
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 (*OrdersAcknowledgeCall) Do ¶
func (c *OrdersAcknowledgeCall) Do(opts ...googleapi.CallOption) (*OrdersAcknowledgeResponse, error)
Do executes the "content.orders.acknowledge" call. Exactly one of *OrdersAcknowledgeResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersAcknowledgeResponse.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 (*OrdersAcknowledgeCall) Fields ¶
func (c *OrdersAcknowledgeCall) Fields(s ...googleapi.Field) *OrdersAcknowledgeCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersAcknowledgeCall) Header ¶
func (c *OrdersAcknowledgeCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersAcknowledgeRequest ¶
type OrdersAcknowledgeRequest struct { // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ForceSendFields is a list of field names (e.g. "OperationId") 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. "OperationId") 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 (*OrdersAcknowledgeRequest) MarshalJSON ¶
func (s *OrdersAcknowledgeRequest) MarshalJSON() ([]byte, error)
type OrdersAcknowledgeResponse ¶
type OrdersAcknowledgeResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersAcknowledgeResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersAcknowledgeResponse) MarshalJSON ¶
func (s *OrdersAcknowledgeResponse) MarshalJSON() ([]byte, error)
type OrdersAdvanceTestOrderResponse ¶
type OrdersAdvanceTestOrderResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersAdvanceTestOrderResponse". 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 (*OrdersAdvanceTestOrderResponse) MarshalJSON ¶
func (s *OrdersAdvanceTestOrderResponse) MarshalJSON() ([]byte, error)
type OrdersAdvancetestorderCall ¶
type OrdersAdvancetestorderCall struct {
// contains filtered or unexported fields
}
func (*OrdersAdvancetestorderCall) Context ¶
func (c *OrdersAdvancetestorderCall) Context(ctx context.Context) *OrdersAdvancetestorderCall
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 (*OrdersAdvancetestorderCall) Do ¶
func (c *OrdersAdvancetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersAdvanceTestOrderResponse, error)
Do executes the "content.orders.advancetestorder" call. Exactly one of *OrdersAdvanceTestOrderResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersAdvanceTestOrderResponse.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 (*OrdersAdvancetestorderCall) Fields ¶
func (c *OrdersAdvancetestorderCall) Fields(s ...googleapi.Field) *OrdersAdvancetestorderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersAdvancetestorderCall) Header ¶
func (c *OrdersAdvancetestorderCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersCancelCall ¶
type OrdersCancelCall struct {
// contains filtered or unexported fields
}
func (*OrdersCancelCall) Context ¶
func (c *OrdersCancelCall) Context(ctx context.Context) *OrdersCancelCall
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 (*OrdersCancelCall) Do ¶
func (c *OrdersCancelCall) Do(opts ...googleapi.CallOption) (*OrdersCancelResponse, error)
Do executes the "content.orders.cancel" call. Exactly one of *OrdersCancelResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCancelResponse.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 (*OrdersCancelCall) Fields ¶
func (c *OrdersCancelCall) Fields(s ...googleapi.Field) *OrdersCancelCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersCancelCall) Header ¶
func (c *OrdersCancelCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersCancelLineItemRequest ¶
type OrdersCancelLineItemRequest struct { // Amount: Amount to refund for the cancelation. Optional. If not set, // Google will calculate the default based on the price and tax of the // items involved. The amount must not be larger than the net amount // left on the order. Amount *Price `json:"amount,omitempty"` // LineItemId: The ID of the line item to cancel. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the cancellation. 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. "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 (*OrdersCancelLineItemRequest) MarshalJSON ¶
func (s *OrdersCancelLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersCancelLineItemResponse ¶
type OrdersCancelLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCancelLineItemResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersCancelLineItemResponse) MarshalJSON ¶
func (s *OrdersCancelLineItemResponse) MarshalJSON() ([]byte, error)
type OrdersCancelRequest ¶
type OrdersCancelRequest struct { // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Reason: The reason for the cancellation. 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. "OperationId") 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. "OperationId") 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 (*OrdersCancelRequest) MarshalJSON ¶
func (s *OrdersCancelRequest) MarshalJSON() ([]byte, error)
type OrdersCancelResponse ¶
type OrdersCancelResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCancelResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersCancelResponse) MarshalJSON ¶
func (s *OrdersCancelResponse) MarshalJSON() ([]byte, error)
type OrdersCancellineitemCall ¶
type OrdersCancellineitemCall struct {
// contains filtered or unexported fields
}
func (*OrdersCancellineitemCall) Context ¶
func (c *OrdersCancellineitemCall) Context(ctx context.Context) *OrdersCancellineitemCall
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 (*OrdersCancellineitemCall) Do ¶
func (c *OrdersCancellineitemCall) Do(opts ...googleapi.CallOption) (*OrdersCancelLineItemResponse, error)
Do executes the "content.orders.cancellineitem" call. Exactly one of *OrdersCancelLineItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCancelLineItemResponse.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 (*OrdersCancellineitemCall) Fields ¶
func (c *OrdersCancellineitemCall) Fields(s ...googleapi.Field) *OrdersCancellineitemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersCancellineitemCall) Header ¶
func (c *OrdersCancellineitemCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersCreateTestOrderRequest ¶
type OrdersCreateTestOrderRequest struct { // TemplateName: The test order template to use. Specify as an // alternative to testOrder as a shortcut for retrieving a template and // then creating an order using that template. TemplateName string `json:"templateName,omitempty"` // TestOrder: The test order to create. TestOrder *TestOrder `json:"testOrder,omitempty"` // ForceSendFields is a list of field names (e.g. "TemplateName") 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. "TemplateName") 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 (*OrdersCreateTestOrderRequest) MarshalJSON ¶
func (s *OrdersCreateTestOrderRequest) MarshalJSON() ([]byte, error)
type OrdersCreateTestOrderResponse ¶
type OrdersCreateTestOrderResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCreateTestOrderResponse". Kind string `json:"kind,omitempty"` // OrderId: The ID of the newly created test order. OrderId string `json:"orderId,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 (*OrdersCreateTestOrderResponse) MarshalJSON ¶
func (s *OrdersCreateTestOrderResponse) MarshalJSON() ([]byte, error)
type OrdersCreatetestorderCall ¶
type OrdersCreatetestorderCall struct {
// contains filtered or unexported fields
}
func (*OrdersCreatetestorderCall) Context ¶
func (c *OrdersCreatetestorderCall) Context(ctx context.Context) *OrdersCreatetestorderCall
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 (*OrdersCreatetestorderCall) Do ¶
func (c *OrdersCreatetestorderCall) Do(opts ...googleapi.CallOption) (*OrdersCreateTestOrderResponse, error)
Do executes the "content.orders.createtestorder" call. Exactly one of *OrdersCreateTestOrderResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCreateTestOrderResponse.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 (*OrdersCreatetestorderCall) Fields ¶
func (c *OrdersCreatetestorderCall) Fields(s ...googleapi.Field) *OrdersCreatetestorderCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersCreatetestorderCall) Header ¶
func (c *OrdersCreatetestorderCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersCustomBatchRequest ¶
type OrdersCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*OrdersCustomBatchRequestEntry `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 (*OrdersCustomBatchRequest) MarshalJSON ¶
func (s *OrdersCustomBatchRequest) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntry ¶
type OrdersCustomBatchRequestEntry struct { // BatchId: An entry ID, unique within the batch request. BatchId int64 `json:"batchId,omitempty"` // Cancel: Required for cancel method. Cancel *OrdersCustomBatchRequestEntryCancel `json:"cancel,omitempty"` // CancelLineItem: Required for cancelLineItem method. CancelLineItem *OrdersCustomBatchRequestEntryCancelLineItem `json:"cancelLineItem,omitempty"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` // MerchantOrderId: The merchant order id. Required for // updateMerchantOrderId and getByMerchantOrderId methods. MerchantOrderId string `json:"merchantOrderId,omitempty"` // Method: The method to apply. Method string `json:"method,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. Required for all methods beside get and // getByMerchantOrderId. OperationId string `json:"operationId,omitempty"` // OrderId: The ID of the order. Required for all methods beside // getByMerchantOrderId. OrderId string `json:"orderId,omitempty"` // Refund: Required for refund method. Refund *OrdersCustomBatchRequestEntryRefund `json:"refund,omitempty"` // ReturnLineItem: Required for returnLineItem method. ReturnLineItem *OrdersCustomBatchRequestEntryReturnLineItem `json:"returnLineItem,omitempty"` // ShipLineItems: Required for shipLineItems method. ShipLineItems *OrdersCustomBatchRequestEntryShipLineItems `json:"shipLineItems,omitempty"` // UpdateShipment: Required for updateShipment method. UpdateShipment *OrdersCustomBatchRequestEntryUpdateShipment `json:"updateShipment,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 (*OrdersCustomBatchRequestEntry) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryCancel ¶
type OrdersCustomBatchRequestEntryCancel struct { // Reason: The reason for the cancellation. 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. "Reason") 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. "Reason") 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 (*OrdersCustomBatchRequestEntryCancel) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryCancel) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryCancelLineItem ¶
type OrdersCustomBatchRequestEntryCancelLineItem struct { // Amount: Amount to refund for the cancelation. Optional. If not set, // Google will calculate the default based on the price and tax of the // items involved. The amount must not be larger than the net amount // left on the order. Amount *Price `json:"amount,omitempty"` // LineItemId: The ID of the line item to cancel. LineItemId string `json:"lineItemId,omitempty"` // Quantity: The quantity to cancel. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the cancellation. 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. "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 (*OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryCancelLineItem) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryRefund ¶
type OrdersCustomBatchRequestEntryRefund struct { // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` // Reason: The reason for the refund. 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. "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 (*OrdersCustomBatchRequestEntryRefund) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryRefund) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryReturnLineItem ¶
type OrdersCustomBatchRequestEntryReturnLineItem struct { // LineItemId: The ID of the line item to return. LineItemId string `json:"lineItemId,omitempty"` // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. 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. "LineItemId") 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. "LineItemId") 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 (*OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryReturnLineItem) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryShipLineItems ¶
type OrdersCustomBatchRequestEntryShipLineItems struct { // Carrier: The carrier handling the shipment. Carrier string `json:"carrier,omitempty"` // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 (*OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryShipLineItems) MarshalJSON() ([]byte, error)
type OrdersCustomBatchRequestEntryUpdateShipment ¶
type OrdersCustomBatchRequestEntryUpdateShipment struct { // Carrier: The carrier handling the shipment. Not updated if missing. Carrier string `json:"carrier,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // Status: New status for the shipment. Not updated if missing. Status string `json:"status,omitempty"` // TrackingId: The tracking id for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 (*OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON ¶
func (s *OrdersCustomBatchRequestEntryUpdateShipment) MarshalJSON() ([]byte, error)
type OrdersCustomBatchResponse ¶
type OrdersCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*OrdersCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCustomBatchResponse". 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 (*OrdersCustomBatchResponse) MarshalJSON ¶
func (s *OrdersCustomBatchResponse) MarshalJSON() ([]byte, error)
type OrdersCustomBatchResponseEntry ¶
type OrdersCustomBatchResponseEntry 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"` // ExecutionStatus: The status of the execution. Only defined if the // method is not get or getByMerchantOrderId and if the request was // successful. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // Order: The retrieved order. Only defined if the method is get and if // the request was successful. Order *Order `json:"order,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 (*OrdersCustomBatchResponseEntry) MarshalJSON ¶
func (s *OrdersCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type OrdersCustombatchCall ¶
type OrdersCustombatchCall struct {
// contains filtered or unexported fields
}
func (*OrdersCustombatchCall) Context ¶
func (c *OrdersCustombatchCall) Context(ctx context.Context) *OrdersCustombatchCall
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 (*OrdersCustombatchCall) Do ¶
func (c *OrdersCustombatchCall) Do(opts ...googleapi.CallOption) (*OrdersCustomBatchResponse, error)
Do executes the "content.orders.custombatch" call. Exactly one of *OrdersCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersCustomBatchResponse.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 (*OrdersCustombatchCall) Fields ¶
func (c *OrdersCustombatchCall) Fields(s ...googleapi.Field) *OrdersCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersCustombatchCall) Header ¶
func (c *OrdersCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersGetByMerchantOrderIdResponse ¶
type OrdersGetByMerchantOrderIdResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersGetByMerchantOrderIdResponse". Kind string `json:"kind,omitempty"` // Order: The requested order. Order *Order `json:"order,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 (*OrdersGetByMerchantOrderIdResponse) MarshalJSON ¶
func (s *OrdersGetByMerchantOrderIdResponse) MarshalJSON() ([]byte, error)
type OrdersGetCall ¶
type OrdersGetCall struct {
// contains filtered or unexported fields
}
func (*OrdersGetCall) Context ¶
func (c *OrdersGetCall) Context(ctx context.Context) *OrdersGetCall
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 (*OrdersGetCall) Do ¶
func (c *OrdersGetCall) Do(opts ...googleapi.CallOption) (*Order, error)
Do executes the "content.orders.get" call. Exactly one of *Order or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Order.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 (*OrdersGetCall) Fields ¶
func (c *OrdersGetCall) Fields(s ...googleapi.Field) *OrdersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersGetCall) Header ¶
func (c *OrdersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrdersGetCall) IfNoneMatch ¶
func (c *OrdersGetCall) IfNoneMatch(entityTag string) *OrdersGetCall
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 OrdersGetTestOrderTemplateResponse ¶
type OrdersGetTestOrderTemplateResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersGetTestOrderTemplateResponse". Kind string `json:"kind,omitempty"` // Template: The requested test order template. Template *TestOrder `json:"template,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 (*OrdersGetTestOrderTemplateResponse) MarshalJSON ¶
func (s *OrdersGetTestOrderTemplateResponse) MarshalJSON() ([]byte, error)
type OrdersGetbymerchantorderidCall ¶
type OrdersGetbymerchantorderidCall struct {
// contains filtered or unexported fields
}
func (*OrdersGetbymerchantorderidCall) Context ¶
func (c *OrdersGetbymerchantorderidCall) Context(ctx context.Context) *OrdersGetbymerchantorderidCall
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 (*OrdersGetbymerchantorderidCall) Do ¶
func (c *OrdersGetbymerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersGetByMerchantOrderIdResponse, error)
Do executes the "content.orders.getbymerchantorderid" call. Exactly one of *OrdersGetByMerchantOrderIdResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersGetByMerchantOrderIdResponse.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 (*OrdersGetbymerchantorderidCall) Fields ¶
func (c *OrdersGetbymerchantorderidCall) Fields(s ...googleapi.Field) *OrdersGetbymerchantorderidCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersGetbymerchantorderidCall) Header ¶
func (c *OrdersGetbymerchantorderidCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrdersGetbymerchantorderidCall) IfNoneMatch ¶
func (c *OrdersGetbymerchantorderidCall) IfNoneMatch(entityTag string) *OrdersGetbymerchantorderidCall
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 OrdersGettestordertemplateCall ¶
type OrdersGettestordertemplateCall struct {
// contains filtered or unexported fields
}
func (*OrdersGettestordertemplateCall) Context ¶
func (c *OrdersGettestordertemplateCall) Context(ctx context.Context) *OrdersGettestordertemplateCall
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 (*OrdersGettestordertemplateCall) Do ¶
func (c *OrdersGettestordertemplateCall) Do(opts ...googleapi.CallOption) (*OrdersGetTestOrderTemplateResponse, error)
Do executes the "content.orders.gettestordertemplate" call. Exactly one of *OrdersGetTestOrderTemplateResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersGetTestOrderTemplateResponse.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 (*OrdersGettestordertemplateCall) Fields ¶
func (c *OrdersGettestordertemplateCall) Fields(s ...googleapi.Field) *OrdersGettestordertemplateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersGettestordertemplateCall) Header ¶
func (c *OrdersGettestordertemplateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrdersGettestordertemplateCall) IfNoneMatch ¶
func (c *OrdersGettestordertemplateCall) IfNoneMatch(entityTag string) *OrdersGettestordertemplateCall
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 OrdersListCall ¶
type OrdersListCall struct {
// contains filtered or unexported fields
}
func (*OrdersListCall) Acknowledged ¶
func (c *OrdersListCall) Acknowledged(acknowledged bool) *OrdersListCall
Acknowledged sets the optional parameter "acknowledged": Obtains orders that match the acknowledgement status. When set to true, obtains orders that have been acknowledged. When false, obtains orders that have not been acknowledged. We recommend using this filter set to false, in conjunction with the acknowledge call, such that only un-acknowledged orders are returned.
func (*OrdersListCall) Context ¶
func (c *OrdersListCall) Context(ctx context.Context) *OrdersListCall
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 (*OrdersListCall) Do ¶
func (c *OrdersListCall) Do(opts ...googleapi.CallOption) (*OrdersListResponse, error)
Do executes the "content.orders.list" call. Exactly one of *OrdersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersListResponse.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 (*OrdersListCall) Fields ¶
func (c *OrdersListCall) Fields(s ...googleapi.Field) *OrdersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersListCall) Header ¶
func (c *OrdersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*OrdersListCall) IfNoneMatch ¶
func (c *OrdersListCall) IfNoneMatch(entityTag string) *OrdersListCall
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 (*OrdersListCall) MaxResults ¶
func (c *OrdersListCall) MaxResults(maxResults int64) *OrdersListCall
MaxResults sets the optional parameter "maxResults": The maximum number of orders to return in the response, used for paging. The default value is 25 orders per page, and the maximum allowed value is 250 orders per page. Known issue: All List calls will return all Orders without limit regardless of the value of this field.
func (*OrdersListCall) OrderBy ¶
func (c *OrdersListCall) OrderBy(orderBy string) *OrdersListCall
OrderBy sets the optional parameter "orderBy": The ordering of the returned list. The only supported value are placedDate desc and placedDate asc for now, which returns orders sorted by placement date. "placedDate desc" stands for listing orders by placement date, from oldest to most recent. "placedDate asc" stands for listing orders by placement date, from most recent to oldest. In future releases we'll support other sorting criteria.
Possible values:
"placedDate asc" "placedDate desc"
func (*OrdersListCall) PageToken ¶
func (c *OrdersListCall) PageToken(pageToken string) *OrdersListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*OrdersListCall) Pages ¶
func (c *OrdersListCall) Pages(ctx context.Context, f func(*OrdersListResponse) 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.
func (*OrdersListCall) PlacedDateEnd ¶
func (c *OrdersListCall) PlacedDateEnd(placedDateEnd string) *OrdersListCall
PlacedDateEnd sets the optional parameter "placedDateEnd": Obtains orders placed before this date (exclusively), in ISO 8601 format.
func (*OrdersListCall) PlacedDateStart ¶
func (c *OrdersListCall) PlacedDateStart(placedDateStart string) *OrdersListCall
PlacedDateStart sets the optional parameter "placedDateStart": Obtains orders placed after this date (inclusively), in ISO 8601 format.
func (*OrdersListCall) Statuses ¶
func (c *OrdersListCall) Statuses(statuses ...string) *OrdersListCall
Statuses sets the optional parameter "statuses": Obtains orders that match any of the specified statuses. Multiple values can be specified with comma separation. Additionally, please note that active is a shortcut for pendingShipment and partiallyShipped, and completed is a shortcut for shipped , partiallyDelivered, delivered, partiallyReturned, returned, and canceled.
Possible values:
"active" "canceled" "completed" "delivered" "inProgress" "partiallyDelivered" "partiallyReturned" "partiallyShipped" "pendingShipment" "returned" "shipped"
type OrdersListResponse ¶
type OrdersListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // orders. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*Order `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 (*OrdersListResponse) MarshalJSON ¶
func (s *OrdersListResponse) MarshalJSON() ([]byte, error)
type OrdersRefundCall ¶
type OrdersRefundCall struct {
// contains filtered or unexported fields
}
func (*OrdersRefundCall) Context ¶
func (c *OrdersRefundCall) Context(ctx context.Context) *OrdersRefundCall
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 (*OrdersRefundCall) Do ¶
func (c *OrdersRefundCall) Do(opts ...googleapi.CallOption) (*OrdersRefundResponse, error)
Do executes the "content.orders.refund" call. Exactly one of *OrdersRefundResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersRefundResponse.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 (*OrdersRefundCall) Fields ¶
func (c *OrdersRefundCall) Fields(s ...googleapi.Field) *OrdersRefundCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersRefundCall) Header ¶
func (c *OrdersRefundCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersRefundRequest ¶
type OrdersRefundRequest struct { // Amount: The amount that is refunded. Amount *Price `json:"amount,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Reason: The reason for the refund. 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. "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 (*OrdersRefundRequest) MarshalJSON ¶
func (s *OrdersRefundRequest) MarshalJSON() ([]byte, error)
type OrdersRefundResponse ¶
type OrdersRefundResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersRefundResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersRefundResponse) MarshalJSON ¶
func (s *OrdersRefundResponse) MarshalJSON() ([]byte, error)
type OrdersReturnLineItemRequest ¶
type OrdersReturnLineItemRequest struct { // LineItemId: The ID of the line item to return. LineItemId string `json:"lineItemId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // Quantity: The quantity to return. Quantity int64 `json:"quantity,omitempty"` // Reason: The reason for the return. 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. "LineItemId") 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. "LineItemId") 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 (*OrdersReturnLineItemRequest) MarshalJSON ¶
func (s *OrdersReturnLineItemRequest) MarshalJSON() ([]byte, error)
type OrdersReturnLineItemResponse ¶
type OrdersReturnLineItemResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersReturnLineItemResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersReturnLineItemResponse) MarshalJSON ¶
func (s *OrdersReturnLineItemResponse) MarshalJSON() ([]byte, error)
type OrdersReturnlineitemCall ¶
type OrdersReturnlineitemCall struct {
// contains filtered or unexported fields
}
func (*OrdersReturnlineitemCall) Context ¶
func (c *OrdersReturnlineitemCall) Context(ctx context.Context) *OrdersReturnlineitemCall
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 (*OrdersReturnlineitemCall) Do ¶
func (c *OrdersReturnlineitemCall) Do(opts ...googleapi.CallOption) (*OrdersReturnLineItemResponse, error)
Do executes the "content.orders.returnlineitem" call. Exactly one of *OrdersReturnLineItemResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersReturnLineItemResponse.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 (*OrdersReturnlineitemCall) Fields ¶
func (c *OrdersReturnlineitemCall) Fields(s ...googleapi.Field) *OrdersReturnlineitemCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersReturnlineitemCall) Header ¶
func (c *OrdersReturnlineitemCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersService ¶
type OrdersService struct {
// contains filtered or unexported fields
}
func NewOrdersService ¶
func NewOrdersService(s *APIService) *OrdersService
func (*OrdersService) Acknowledge ¶
func (r *OrdersService) Acknowledge(merchantId uint64, orderId string, ordersacknowledgerequest *OrdersAcknowledgeRequest) *OrdersAcknowledgeCall
Acknowledge: Marks an order as acknowledged. This method can only be called for non-multi-client accounts.
func (*OrdersService) Advancetestorder ¶
func (r *OrdersService) Advancetestorder(merchantId uint64, orderId string) *OrdersAdvancetestorderCall
Advancetestorder: Sandbox only. Moves a test order from state "inProgress" to state "pendingShipment". This method can only be called for non-multi-client accounts.
func (*OrdersService) Cancel ¶
func (r *OrdersService) Cancel(merchantId uint64, orderId string, orderscancelrequest *OrdersCancelRequest) *OrdersCancelCall
Cancel: Cancels all line items in an order, making a full refund. This method can only be called for non-multi-client accounts.
func (*OrdersService) Cancellineitem ¶
func (r *OrdersService) Cancellineitem(merchantId uint64, orderId string, orderscancellineitemrequest *OrdersCancelLineItemRequest) *OrdersCancellineitemCall
Cancellineitem: Cancels a line item, making a full refund. This method can only be called for non-multi-client accounts.
func (*OrdersService) Createtestorder ¶
func (r *OrdersService) Createtestorder(merchantId uint64, orderscreatetestorderrequest *OrdersCreateTestOrderRequest) *OrdersCreatetestorderCall
Createtestorder: Sandbox only. Creates a test order. This method can only be called for non-multi-client accounts.
func (*OrdersService) Custombatch ¶
func (r *OrdersService) Custombatch(orderscustombatchrequest *OrdersCustomBatchRequest) *OrdersCustombatchCall
Custombatch: Retrieves or modifies multiple orders in a single request. This method can only be called for non-multi-client accounts.
func (*OrdersService) Get ¶
func (r *OrdersService) Get(merchantId uint64, orderId string) *OrdersGetCall
Get: Retrieves an order from your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*OrdersService) Getbymerchantorderid ¶
func (r *OrdersService) Getbymerchantorderid(merchantId uint64, merchantOrderId string) *OrdersGetbymerchantorderidCall
Getbymerchantorderid: Retrieves an order using merchant order id. This method can only be called for non-multi-client accounts.
func (*OrdersService) Gettestordertemplate ¶
func (r *OrdersService) Gettestordertemplate(merchantId uint64, templateName string) *OrdersGettestordertemplateCall
Gettestordertemplate: Sandbox only. Retrieves an order template that can be used to quickly create a new order in sandbox. This method can only be called for non-multi-client accounts.
func (*OrdersService) List ¶
func (r *OrdersService) List(merchantId uint64) *OrdersListCall
List: Lists the orders in your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*OrdersService) Refund ¶
func (r *OrdersService) Refund(merchantId uint64, orderId string, ordersrefundrequest *OrdersRefundRequest) *OrdersRefundCall
Refund: Refund a portion of the order, up to the full amount paid. This method can only be called for non-multi-client accounts.
func (*OrdersService) Returnlineitem ¶
func (r *OrdersService) Returnlineitem(merchantId uint64, orderId string, ordersreturnlineitemrequest *OrdersReturnLineItemRequest) *OrdersReturnlineitemCall
Returnlineitem: Returns a line item. This method can only be called for non-multi-client accounts.
func (*OrdersService) Shiplineitems ¶
func (r *OrdersService) Shiplineitems(merchantId uint64, orderId string, ordersshiplineitemsrequest *OrdersShipLineItemsRequest) *OrdersShiplineitemsCall
Shiplineitems: Marks line item(s) as shipped. This method can only be called for non-multi-client accounts.
func (*OrdersService) Updatemerchantorderid ¶
func (r *OrdersService) Updatemerchantorderid(merchantId uint64, orderId string, ordersupdatemerchantorderidrequest *OrdersUpdateMerchantOrderIdRequest) *OrdersUpdatemerchantorderidCall
Updatemerchantorderid: Updates the merchant order ID for a given order. This method can only be called for non-multi-client accounts.
func (*OrdersService) Updateshipment ¶
func (r *OrdersService) Updateshipment(merchantId uint64, orderId string, ordersupdateshipmentrequest *OrdersUpdateShipmentRequest) *OrdersUpdateshipmentCall
Updateshipment: Updates a shipment's status, carrier, and/or tracking ID. This method can only be called for non-multi-client accounts.
type OrdersShipLineItemsRequest ¶
type OrdersShipLineItemsRequest struct { // Carrier: The carrier handling the shipment. Carrier string `json:"carrier,omitempty"` // LineItems: Line items to ship. LineItems []*OrderShipmentLineItemShipment `json:"lineItems,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // TrackingId: The tracking id for the shipment. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 (*OrdersShipLineItemsRequest) MarshalJSON ¶
func (s *OrdersShipLineItemsRequest) MarshalJSON() ([]byte, error)
type OrdersShipLineItemsResponse ¶
type OrdersShipLineItemsResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersShipLineItemsResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersShipLineItemsResponse) MarshalJSON ¶
func (s *OrdersShipLineItemsResponse) MarshalJSON() ([]byte, error)
type OrdersShiplineitemsCall ¶
type OrdersShiplineitemsCall struct {
// contains filtered or unexported fields
}
func (*OrdersShiplineitemsCall) Context ¶
func (c *OrdersShiplineitemsCall) Context(ctx context.Context) *OrdersShiplineitemsCall
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 (*OrdersShiplineitemsCall) Do ¶
func (c *OrdersShiplineitemsCall) Do(opts ...googleapi.CallOption) (*OrdersShipLineItemsResponse, error)
Do executes the "content.orders.shiplineitems" call. Exactly one of *OrdersShipLineItemsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersShipLineItemsResponse.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 (*OrdersShiplineitemsCall) Fields ¶
func (c *OrdersShiplineitemsCall) Fields(s ...googleapi.Field) *OrdersShiplineitemsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersShiplineitemsCall) Header ¶
func (c *OrdersShiplineitemsCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersUpdateMerchantOrderIdRequest ¶
type OrdersUpdateMerchantOrderIdRequest struct { // MerchantOrderId: The merchant order id to be assigned to the order. // Must be unique per merchant. MerchantOrderId string `json:"merchantOrderId,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ForceSendFields is a list of field names (e.g. "MerchantOrderId") 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. "MerchantOrderId") 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 (*OrdersUpdateMerchantOrderIdRequest) MarshalJSON ¶
func (s *OrdersUpdateMerchantOrderIdRequest) MarshalJSON() ([]byte, error)
type OrdersUpdateMerchantOrderIdResponse ¶
type OrdersUpdateMerchantOrderIdResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersUpdateMerchantOrderIdResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersUpdateMerchantOrderIdResponse) MarshalJSON ¶
func (s *OrdersUpdateMerchantOrderIdResponse) MarshalJSON() ([]byte, error)
type OrdersUpdateShipmentRequest ¶
type OrdersUpdateShipmentRequest struct { // Carrier: The carrier handling the shipment. Not updated if missing. Carrier string `json:"carrier,omitempty"` // OperationId: The ID of the operation. Unique across all operations // for a given order. OperationId string `json:"operationId,omitempty"` // ShipmentId: The ID of the shipment. ShipmentId string `json:"shipmentId,omitempty"` // Status: New status for the shipment. Not updated if missing. Status string `json:"status,omitempty"` // TrackingId: The tracking id for the shipment. Not updated if missing. TrackingId string `json:"trackingId,omitempty"` // ForceSendFields is a list of field names (e.g. "Carrier") 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. "Carrier") 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 (*OrdersUpdateShipmentRequest) MarshalJSON ¶
func (s *OrdersUpdateShipmentRequest) MarshalJSON() ([]byte, error)
type OrdersUpdateShipmentResponse ¶
type OrdersUpdateShipmentResponse struct { // ExecutionStatus: The status of the execution. ExecutionStatus string `json:"executionStatus,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#ordersUpdateShipmentResponse". 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. "ExecutionStatus") 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. "ExecutionStatus") 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 (*OrdersUpdateShipmentResponse) MarshalJSON ¶
func (s *OrdersUpdateShipmentResponse) MarshalJSON() ([]byte, error)
type OrdersUpdatemerchantorderidCall ¶
type OrdersUpdatemerchantorderidCall struct {
// contains filtered or unexported fields
}
func (*OrdersUpdatemerchantorderidCall) Context ¶
func (c *OrdersUpdatemerchantorderidCall) Context(ctx context.Context) *OrdersUpdatemerchantorderidCall
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 (*OrdersUpdatemerchantorderidCall) Do ¶
func (c *OrdersUpdatemerchantorderidCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateMerchantOrderIdResponse, error)
Do executes the "content.orders.updatemerchantorderid" call. Exactly one of *OrdersUpdateMerchantOrderIdResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersUpdateMerchantOrderIdResponse.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 (*OrdersUpdatemerchantorderidCall) Fields ¶
func (c *OrdersUpdatemerchantorderidCall) Fields(s ...googleapi.Field) *OrdersUpdatemerchantorderidCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersUpdatemerchantorderidCall) Header ¶
func (c *OrdersUpdatemerchantorderidCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type OrdersUpdateshipmentCall ¶
type OrdersUpdateshipmentCall struct {
// contains filtered or unexported fields
}
func (*OrdersUpdateshipmentCall) Context ¶
func (c *OrdersUpdateshipmentCall) Context(ctx context.Context) *OrdersUpdateshipmentCall
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 (*OrdersUpdateshipmentCall) Do ¶
func (c *OrdersUpdateshipmentCall) Do(opts ...googleapi.CallOption) (*OrdersUpdateShipmentResponse, error)
Do executes the "content.orders.updateshipment" call. Exactly one of *OrdersUpdateShipmentResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrdersUpdateShipmentResponse.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 (*OrdersUpdateshipmentCall) Fields ¶
func (c *OrdersUpdateshipmentCall) Fields(s ...googleapi.Field) *OrdersUpdateshipmentCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrdersUpdateshipmentCall) Header ¶
func (c *OrdersUpdateshipmentCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type PostalCodeGroup ¶
type PostalCodeGroup struct { // Country: The CLDR territory code of the country the postal code group // applies to. Required. Country string `json:"country,omitempty"` // Name: The name of the postal code group, referred to in headers. // Required. Name string `json:"name,omitempty"` // PostalCodeRanges: A range of postal codes. Required. PostalCodeRanges []*PostalCodeRange `json:"postalCodeRanges,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 (*PostalCodeGroup) MarshalJSON ¶
func (s *PostalCodeGroup) MarshalJSON() ([]byte, error)
type PostalCodeRange ¶
type PostalCodeRange struct { // PostalCodeRangeBegin: A postal code or a pattern of the form prefix* // denoting the inclusive lower bound of the range defining the area. // Examples values: "94108", "9410*", "9*". Required. PostalCodeRangeBegin string `json:"postalCodeRangeBegin,omitempty"` // PostalCodeRangeEnd: A postal code or a pattern of the form prefix* // denoting the inclusive upper bound of the range defining the area. It // must have the same length as postalCodeRangeBegin: if // postalCodeRangeBegin is a postal code then postalCodeRangeEnd must be // a postal code too; if postalCodeRangeBegin is a pattern then // postalCodeRangeEnd must be a pattern with the same prefix length. // Optional: if not set, then the area is defined as being all the // postal codes matching postalCodeRangeBegin. PostalCodeRangeEnd string `json:"postalCodeRangeEnd,omitempty"` // ForceSendFields is a list of field names (e.g. // "PostalCodeRangeBegin") 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. "PostalCodeRangeBegin") 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 (*PostalCodeRange) MarshalJSON ¶
func (s *PostalCodeRange) MarshalJSON() ([]byte, error)
type Price ¶
type Price struct { // Currency: The currency of the price. Currency string `json:"currency,omitempty"` // Value: The price represented as a number. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Currency") 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. "Currency") 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 (*Price) MarshalJSON ¶
func (s *Price) MarshalJSON() ([]byte, error)
type Product ¶
Product: Product data.
type Product struct { // AdditionalImageLinks: Additional URLs of images of the item. AdditionalImageLinks []string `json:"additionalImageLinks,omitempty"` // AdditionalProductTypes: Additional categories of the item (formatted // as in products feed specification). AdditionalProductTypes []string `json:"additionalProductTypes,omitempty"` // Adult: Set to true if the item is targeted towards adults. Adult bool `json:"adult,omitempty"` // AdwordsGrouping: Used to group items in an arbitrary way. Only for // CPA%, discouraged otherwise. AdwordsGrouping string `json:"adwordsGrouping,omitempty"` // AdwordsLabels: Similar to adwords_grouping, but only works on CPC. AdwordsLabels []string `json:"adwordsLabels,omitempty"` // AdwordsRedirect: Allows advertisers to override the item URL when the // product is shown within the context of Product Ads. AdwordsRedirect string `json:"adwordsRedirect,omitempty"` // AgeGroup: Target age group of the item. AgeGroup string `json:"ageGroup,omitempty"` // Aspects: Specifies the intended aspects for the product. Aspects []*ProductAspect `json:"aspects,omitempty"` // Availability: Availability status of the item. Availability string `json:"availability,omitempty"` // AvailabilityDate: The day a pre-ordered product becomes available for // delivery, in ISO 8601 format. AvailabilityDate string `json:"availabilityDate,omitempty"` // Brand: Brand of the item. Brand string `json:"brand,omitempty"` // Channel: The item's channel (online or local). Channel string `json:"channel,omitempty"` // Color: Color of the item. Color string `json:"color,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"` // CustomAttributes: A list of custom (merchant-provided) attributes. It // can also be used for submitting any attribute of the feed // specification in its generic form (e.g., { "name": "size type", // "type": "text", "value": "regular" }). This is useful for submitting // attributes not explicitly exposed by the API. CustomAttributes []*ProductCustomAttribute `json:"customAttributes,omitempty"` // CustomGroups: A list of custom (merchant-provided) custom attribute // groups. CustomGroups []*ProductCustomGroup `json:"customGroups,omitempty"` // CustomLabel0: Custom label 0 for custom grouping of items in a // Shopping campaign. CustomLabel0 string `json:"customLabel0,omitempty"` // CustomLabel1: Custom label 1 for custom grouping of items in a // Shopping campaign. CustomLabel1 string `json:"customLabel1,omitempty"` // CustomLabel2: Custom label 2 for custom grouping of items in a // Shopping campaign. CustomLabel2 string `json:"customLabel2,omitempty"` // CustomLabel3: Custom label 3 for custom grouping of items in a // Shopping campaign. CustomLabel3 string `json:"customLabel3,omitempty"` // CustomLabel4: Custom label 4 for custom grouping of items in a // Shopping campaign. CustomLabel4 string `json:"customLabel4,omitempty"` // Description: Description of the item. Description string `json:"description,omitempty"` // Destinations: Specifies the intended destinations for the product. Destinations []*ProductDestination `json:"destinations,omitempty"` // DisplayAdsId: An identifier for an item for dynamic remarketing // campaigns. DisplayAdsId string `json:"displayAdsId,omitempty"` // DisplayAdsLink: URL directly to your item's landing page for dynamic // remarketing campaigns. DisplayAdsLink string `json:"displayAdsLink,omitempty"` // DisplayAdsSimilarIds: Advertiser-specified recommendations. DisplayAdsSimilarIds []string `json:"displayAdsSimilarIds,omitempty"` // DisplayAdsTitle: Title of an item for dynamic remarketing campaigns. DisplayAdsTitle string `json:"displayAdsTitle,omitempty"` // DisplayAdsValue: Offer margin for dynamic remarketing campaigns. DisplayAdsValue float64 `json:"displayAdsValue,omitempty"` // EnergyEfficiencyClass: The energy efficiency class as defined in EU // directive 2010/30/EU. EnergyEfficiencyClass string `json:"energyEfficiencyClass,omitempty"` // ExpirationDate: Date on which the item should expire, as specified // upon insertion, in ISO 8601 format. The actual expiration date in // Google Shopping is exposed in productstatuses as googleExpirationDate // and might be earlier if expirationDate is too far in the future. ExpirationDate string `json:"expirationDate,omitempty"` // Gender: Target gender of the item. Gender string `json:"gender,omitempty"` // GoogleProductCategory: Google's category of the item (see Google // product taxonomy). GoogleProductCategory string `json:"googleProductCategory,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"` // IdentifierExists: False when the item does not have unique product // identifiers appropriate to its category, such as GTIN, MPN, and // brand. Required according to the Unique Product Identifier Rules for // all target countries except for Canada. IdentifierExists bool `json:"identifierExists,omitempty"` // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` // Installment: Number and amount of installments to pay for an item. // Brazil only. Installment *Installment `json:"installment,omitempty"` // IsBundle: Whether the item is a merchant-defined bundle. A bundle is // a custom grouping of different products sold by a merchant for a // single price. IsBundle bool `json:"isBundle,omitempty"` // ItemGroupId: Shared identifier for all variants of the same product. ItemGroupId string `json:"itemGroupId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#product". Kind string `json:"kind,omitempty"` // Link: URL directly linking to your item's page on your website. Link string `json:"link,omitempty"` // LoyaltyPoints: Loyalty points that users receive after purchasing the // item. Japan only. LoyaltyPoints *LoyaltyPoints `json:"loyaltyPoints,omitempty"` // Material: The material of which the item is made. Material string `json:"material,omitempty"` // MaxHandlingTime: Maximal product handling time (in business days). MaxHandlingTime int64 `json:"maxHandlingTime,omitempty,string"` // MinHandlingTime: Minimal product handling time (in business days). MinHandlingTime int64 `json:"minHandlingTime,omitempty,string"` // MobileLink: Link to a mobile-optimized version of the landing page. MobileLink string `json:"mobileLink,omitempty"` // Mpn: Manufacturer Part Number (MPN) of the item. Mpn string `json:"mpn,omitempty"` // Multipack: The number of identical products in a merchant-defined // multipack. Multipack int64 `json:"multipack,omitempty,string"` // OfferId: An identifier of the item. Leading and trailing whitespaces // are stripped and multiple whitespaces are replaced by a single // whitespace upon submission. Only valid unicode characters are // accepted. See the products feed specification for details. OfferId string `json:"offerId,omitempty"` // OnlineOnly: Whether an item is available for purchase only online. OnlineOnly bool `json:"onlineOnly,omitempty"` // Pattern: The item's pattern (e.g. polka dots). Pattern string `json:"pattern,omitempty"` // Price: Price of the item. Price *Price `json:"price,omitempty"` // ProductType: Your category of the item (formatted as in products feed // specification). ProductType string `json:"productType,omitempty"` // PromotionIds: The unique ID of a promotion. PromotionIds []string `json:"promotionIds,omitempty"` // SalePrice: Advertised sale price of the item. SalePrice *Price `json:"salePrice,omitempty"` // SalePriceEffectiveDate: Date range during which the item is on sale // (see products feed specification). SalePriceEffectiveDate string `json:"salePriceEffectiveDate,omitempty"` // SellOnGoogleQuantity: The quantity of the product that is reserved // for sell-on-google ads. SellOnGoogleQuantity int64 `json:"sellOnGoogleQuantity,omitempty,string"` // Shipping: Shipping rules. Shipping []*ProductShipping `json:"shipping,omitempty"` // ShippingHeight: Height of the item for shipping. ShippingHeight *ProductShippingDimension `json:"shippingHeight,omitempty"` // ShippingLabel: The shipping label of the product, used to group // product in account-level shipping rules. ShippingLabel string `json:"shippingLabel,omitempty"` // ShippingLength: Length of the item for shipping. ShippingLength *ProductShippingDimension `json:"shippingLength,omitempty"` // ShippingWeight: Weight of the item for shipping. ShippingWeight *ProductShippingWeight `json:"shippingWeight,omitempty"` // ShippingWidth: Width of the item for shipping. ShippingWidth *ProductShippingDimension `json:"shippingWidth,omitempty"` // SizeSystem: System in which the size is specified. Recommended for // apparel items. SizeSystem string `json:"sizeSystem,omitempty"` // SizeType: The cut of the item. Recommended for apparel items. SizeType string `json:"sizeType,omitempty"` // Sizes: Size of the item. Sizes []string `json:"sizes,omitempty"` // TargetCountry: The CLDR territory code for the item. TargetCountry string `json:"targetCountry,omitempty"` // Taxes: Tax information. Taxes []*ProductTax `json:"taxes,omitempty"` // Title: Title of the item. Title string `json:"title,omitempty"` // UnitPricingBaseMeasure: The preference of the denominator of the unit // price. UnitPricingBaseMeasure *ProductUnitPricingBaseMeasure `json:"unitPricingBaseMeasure,omitempty"` // UnitPricingMeasure: The measure and dimension of an item. UnitPricingMeasure *ProductUnitPricingMeasure `json:"unitPricingMeasure,omitempty"` // ValidatedDestinations: The read-only list of intended destinations // which passed validation. ValidatedDestinations []string `json:"validatedDestinations,omitempty"` // Warnings: Read-only warnings. Warnings []*Error `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. // "AdditionalImageLinks") 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. "AdditionalImageLinks") 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 (*Product) MarshalJSON ¶
func (s *Product) MarshalJSON() ([]byte, error)
func (*Product) UnmarshalJSON ¶
func (s *Product) UnmarshalJSON(data []byte) error
type ProductAspect ¶
type ProductAspect struct { // AspectName: The name of the aspect. AspectName string `json:"aspectName,omitempty"` // DestinationName: The name of the destination. Leave out to apply to // all destinations. DestinationName string `json:"destinationName,omitempty"` // Intention: Whether the aspect is required, excluded or should be // validated. Intention string `json:"intention,omitempty"` // ForceSendFields is a list of field names (e.g. "AspectName") 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. "AspectName") 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 (*ProductAspect) MarshalJSON ¶
func (s *ProductAspect) MarshalJSON() ([]byte, error)
type ProductCustomAttribute ¶
type ProductCustomAttribute 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 or FLOAT. 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 (*ProductCustomAttribute) MarshalJSON ¶
func (s *ProductCustomAttribute) MarshalJSON() ([]byte, error)
type ProductCustomGroup ¶
type ProductCustomGroup struct { // Attributes: The sub-attributes. Attributes []*ProductCustomAttribute `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 (*ProductCustomGroup) MarshalJSON ¶
func (s *ProductCustomGroup) MarshalJSON() ([]byte, error)
type ProductDestination ¶
type ProductDestination struct { // DestinationName: The name of the destination. DestinationName string `json:"destinationName,omitempty"` // Intention: Whether the destination is required, excluded or should be // validated. Intention string `json:"intention,omitempty"` // ForceSendFields is a list of field names (e.g. "DestinationName") 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. "DestinationName") 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 (*ProductDestination) MarshalJSON ¶
func (s *ProductDestination) MarshalJSON() ([]byte, error)
type ProductShipping ¶
type ProductShipping struct { // Country: The CLDR territory code of the country to which an item will // ship. Country string `json:"country,omitempty"` // LocationGroupName: The location where the shipping is applicable, // represented by a location group name. LocationGroupName string `json:"locationGroupName,omitempty"` // LocationId: The numeric id of a location that the shipping rate // applies to as defined in the AdWords API. LocationId int64 `json:"locationId,omitempty,string"` // PostalCode: The postal code range that the shipping rate applies to, // represented by a postal code, a postal code prefix followed by a * // wildcard, a range between two postal codes or two postal code // prefixes of equal length. PostalCode string `json:"postalCode,omitempty"` // Price: Fixed shipping price, represented as a number. Price *Price `json:"price,omitempty"` // Region: The geographic region to which a shipping rate applies (e.g. // zip code). Region string `json:"region,omitempty"` // Service: A free-form description of the service class or delivery // speed. Service string `json:"service,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 (*ProductShipping) MarshalJSON ¶
func (s *ProductShipping) MarshalJSON() ([]byte, error)
type ProductShippingDimension ¶
type ProductShippingDimension struct { // Unit: The unit of value. // // Acceptable values are: // - "cm" // - "in" Unit string `json:"unit,omitempty"` // Value: The dimension of the product used to calculate the shipping // cost of the item. Value float64 `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Unit") 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. "Unit") 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 (*ProductShippingDimension) MarshalJSON ¶
func (s *ProductShippingDimension) MarshalJSON() ([]byte, error)
func (*ProductShippingDimension) UnmarshalJSON ¶
func (s *ProductShippingDimension) UnmarshalJSON(data []byte) error
type ProductShippingWeight ¶
type ProductShippingWeight struct { // Unit: The unit of value. Unit string `json:"unit,omitempty"` // Value: The weight of the product used to calculate the shipping cost // of the item. Value float64 `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Unit") 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. "Unit") 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 (*ProductShippingWeight) MarshalJSON ¶
func (s *ProductShippingWeight) MarshalJSON() ([]byte, error)
func (*ProductShippingWeight) UnmarshalJSON ¶
func (s *ProductShippingWeight) UnmarshalJSON(data []byte) error
type ProductStatus ¶
ProductStatus: The status of a product, i.e., information about a product computed asynchronously by the data quality analysis.
type ProductStatus struct { // CreationDate: Date on which the item has been created, in ISO 8601 // format. CreationDate string `json:"creationDate,omitempty"` // DataQualityIssues: A list of data quality issues associated with the // product. DataQualityIssues []*ProductStatusDataQualityIssue `json:"dataQualityIssues,omitempty"` // DestinationStatuses: The intended destinations for the product. DestinationStatuses []*ProductStatusDestinationStatus `json:"destinationStatuses,omitempty"` // GoogleExpirationDate: Date on which the item expires in Google // Shopping, in ISO 8601 format. GoogleExpirationDate string `json:"googleExpirationDate,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productStatus". Kind string `json:"kind,omitempty"` // LastUpdateDate: Date on which the item has been last updated, in ISO // 8601 format. LastUpdateDate string `json:"lastUpdateDate,omitempty"` // Link: The link to the product. Link string `json:"link,omitempty"` // ProductId: The id of the product for which status is reported. ProductId string `json:"productId,omitempty"` // Title: The title of the product. Title string `json:"title,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 (*ProductStatus) MarshalJSON ¶
func (s *ProductStatus) MarshalJSON() ([]byte, error)
type ProductStatusDataQualityIssue ¶
type ProductStatusDataQualityIssue struct { // Detail: A more detailed error string. Detail string `json:"detail,omitempty"` // FetchStatus: The fetch status for landing_page_errors. FetchStatus string `json:"fetchStatus,omitempty"` // Id: The id of the data quality issue. Id string `json:"id,omitempty"` // Location: The attribute name that is relevant for the issue. Location string `json:"location,omitempty"` // Severity: The severity of the data quality issue. Severity string `json:"severity,omitempty"` // Timestamp: The time stamp of the data quality issue. Timestamp string `json:"timestamp,omitempty"` // ValueOnLandingPage: The value of that attribute that was found on the // landing page ValueOnLandingPage string `json:"valueOnLandingPage,omitempty"` // ValueProvided: The value the attribute had at time of evaluation. ValueProvided string `json:"valueProvided,omitempty"` // ForceSendFields is a list of field names (e.g. "Detail") 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. "Detail") 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 (*ProductStatusDataQualityIssue) MarshalJSON ¶
func (s *ProductStatusDataQualityIssue) MarshalJSON() ([]byte, error)
type ProductStatusDestinationStatus ¶
type ProductStatusDestinationStatus struct { // ApprovalStatus: The destination's approval status. ApprovalStatus string `json:"approvalStatus,omitempty"` // Destination: The name of the destination Destination string `json:"destination,omitempty"` // Intention: Whether the destination is required, excluded, selected by // default or should be validated. Intention string `json:"intention,omitempty"` // ForceSendFields is a list of field names (e.g. "ApprovalStatus") 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. "ApprovalStatus") 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 (*ProductStatusDestinationStatus) MarshalJSON ¶
func (s *ProductStatusDestinationStatus) MarshalJSON() ([]byte, error)
type ProductTax ¶
type ProductTax struct { // Country: The country within which the item is taxed, specified as a // CLDR territory code. Country string `json:"country,omitempty"` // LocationId: The numeric id of a location that the tax rate applies to // as defined in the AdWords API. LocationId int64 `json:"locationId,omitempty,string"` // PostalCode: The postal code range that the tax rate applies to, // represented by a ZIP code, a ZIP code prefix using * wildcard, a // range between two ZIP codes or two ZIP code prefixes of equal length. // Examples: 94114, 94*, 94002-95460, 94*-95*. PostalCode string `json:"postalCode,omitempty"` // Rate: The percentage of tax rate that applies to the item price. Rate float64 `json:"rate,omitempty"` // Region: The geographic region to which the tax rate applies. Region string `json:"region,omitempty"` // TaxShip: Set to true if tax is charged on shipping. TaxShip bool `json:"taxShip,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 (*ProductTax) MarshalJSON ¶
func (s *ProductTax) MarshalJSON() ([]byte, error)
func (*ProductTax) UnmarshalJSON ¶
func (s *ProductTax) UnmarshalJSON(data []byte) error
type ProductUnitPricingBaseMeasure ¶
type ProductUnitPricingBaseMeasure struct { // Unit: The unit of the denominator. Unit string `json:"unit,omitempty"` // Value: The denominator of the unit price. Value int64 `json:"value,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Unit") 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. "Unit") 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 (*ProductUnitPricingBaseMeasure) MarshalJSON ¶
func (s *ProductUnitPricingBaseMeasure) MarshalJSON() ([]byte, error)
type ProductUnitPricingMeasure ¶
type ProductUnitPricingMeasure struct { // Unit: The unit of the measure. Unit string `json:"unit,omitempty"` // Value: The measure of an item. Value float64 `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Unit") 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. "Unit") 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 (*ProductUnitPricingMeasure) MarshalJSON ¶
func (s *ProductUnitPricingMeasure) MarshalJSON() ([]byte, error)
func (*ProductUnitPricingMeasure) UnmarshalJSON ¶
func (s *ProductUnitPricingMeasure) UnmarshalJSON(data []byte) error
type ProductsCustomBatchRequest ¶
type ProductsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ProductsCustomBatchRequestEntry `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 (*ProductsCustomBatchRequest) MarshalJSON ¶
func (s *ProductsCustomBatchRequest) MarshalJSON() ([]byte, error)
type ProductsCustomBatchRequestEntry ¶
ProductsCustomBatchRequestEntry: A batch entry encoding a single non-batch products request.
type ProductsCustomBatchRequestEntry struct { // 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"` // Product: The product to insert. Only required if the method is // insert. Product *Product `json:"product,omitempty"` // ProductId: The ID of the product to get or delete. Only defined if // the method is get or delete. ProductId string `json:"productId,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 (*ProductsCustomBatchRequestEntry) MarshalJSON ¶
func (s *ProductsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type ProductsCustomBatchResponse ¶
type ProductsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ProductsCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productsCustomBatchResponse". 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 (*ProductsCustomBatchResponse) MarshalJSON ¶
func (s *ProductsCustomBatchResponse) MarshalJSON() ([]byte, error)
type ProductsCustomBatchResponseEntry ¶
ProductsCustomBatchResponseEntry: A batch entry encoding a single non-batch products response.
type ProductsCustomBatchResponseEntry 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#productsCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // Product: The inserted product. Only defined if the method is insert // and if the request was successful. Product *Product `json:"product,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 (*ProductsCustomBatchResponseEntry) MarshalJSON ¶
func (s *ProductsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type ProductsCustombatchCall ¶
type ProductsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*ProductsCustombatchCall) Context ¶
func (c *ProductsCustombatchCall) Context(ctx context.Context) *ProductsCustombatchCall
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 (*ProductsCustombatchCall) Do ¶
func (c *ProductsCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductsCustomBatchResponse, error)
Do executes the "content.products.custombatch" call. Exactly one of *ProductsCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductsCustomBatchResponse.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 (*ProductsCustombatchCall) DryRun ¶
func (c *ProductsCustombatchCall) DryRun(dryRun bool) *ProductsCustombatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*ProductsCustombatchCall) Fields ¶
func (c *ProductsCustombatchCall) Fields(s ...googleapi.Field) *ProductsCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsCustombatchCall) Header ¶
func (c *ProductsCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProductsDeleteCall ¶
type ProductsDeleteCall struct {
// contains filtered or unexported fields
}
func (*ProductsDeleteCall) Context ¶
func (c *ProductsDeleteCall) Context(ctx context.Context) *ProductsDeleteCall
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 (*ProductsDeleteCall) Do ¶
func (c *ProductsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "content.products.delete" call.
func (*ProductsDeleteCall) DryRun ¶
func (c *ProductsDeleteCall) DryRun(dryRun bool) *ProductsDeleteCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*ProductsDeleteCall) Fields ¶
func (c *ProductsDeleteCall) Fields(s ...googleapi.Field) *ProductsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsDeleteCall) Header ¶
func (c *ProductsDeleteCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProductsGetCall ¶
type ProductsGetCall struct {
// contains filtered or unexported fields
}
func (*ProductsGetCall) Context ¶
func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall
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 (*ProductsGetCall) Do ¶
func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error)
Do executes the "content.products.get" call. Exactly one of *Product or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Product.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 (*ProductsGetCall) Fields ¶
func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsGetCall) Header ¶
func (c *ProductsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductsGetCall) IfNoneMatch ¶
func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall
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 ProductsInsertCall ¶
type ProductsInsertCall struct {
// contains filtered or unexported fields
}
func (*ProductsInsertCall) Context ¶
func (c *ProductsInsertCall) Context(ctx context.Context) *ProductsInsertCall
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 (*ProductsInsertCall) Do ¶
func (c *ProductsInsertCall) Do(opts ...googleapi.CallOption) (*Product, error)
Do executes the "content.products.insert" call. Exactly one of *Product or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Product.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 (*ProductsInsertCall) DryRun ¶
func (c *ProductsInsertCall) DryRun(dryRun bool) *ProductsInsertCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*ProductsInsertCall) Fields ¶
func (c *ProductsInsertCall) Fields(s ...googleapi.Field) *ProductsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsInsertCall) Header ¶
func (c *ProductsInsertCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ProductsListCall ¶
type ProductsListCall struct {
// contains filtered or unexported fields
}
func (*ProductsListCall) Context ¶
func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall
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 (*ProductsListCall) Do ¶
func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse, error)
Do executes the "content.products.list" call. Exactly one of *ProductsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductsListResponse.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 (*ProductsListCall) Fields ¶
func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsListCall) Header ¶
func (c *ProductsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductsListCall) IfNoneMatch ¶
func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall
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 (*ProductsListCall) IncludeInvalidInsertedItems ¶
func (c *ProductsListCall) IncludeInvalidInsertedItems(includeInvalidInsertedItems bool) *ProductsListCall
IncludeInvalidInsertedItems sets the optional parameter "includeInvalidInsertedItems": Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).
func (*ProductsListCall) MaxResults ¶
func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of products to return in the response, used for paging.
func (*ProductsListCall) PageToken ¶
func (c *ProductsListCall) PageToken(pageToken string) *ProductsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*ProductsListCall) Pages ¶
func (c *ProductsListCall) Pages(ctx context.Context, f func(*ProductsListResponse) 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 ProductsListResponse ¶
type ProductsListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productsListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // products. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*Product `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 (*ProductsListResponse) MarshalJSON ¶
func (s *ProductsListResponse) MarshalJSON() ([]byte, error)
type ProductsService ¶
type ProductsService struct {
// contains filtered or unexported fields
}
func NewProductsService ¶
func NewProductsService(s *APIService) *ProductsService
func (*ProductsService) Custombatch ¶
func (r *ProductsService) Custombatch(productscustombatchrequest *ProductsCustomBatchRequest) *ProductsCustombatchCall
Custombatch: Retrieves, inserts, and deletes multiple products in a single request. This method can only be called for non-multi-client accounts.
func (*ProductsService) Delete ¶
func (r *ProductsService) Delete(merchantId uint64, productId string) *ProductsDeleteCall
Delete: Deletes a product from your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*ProductsService) Get ¶
func (r *ProductsService) Get(merchantId uint64, productId string) *ProductsGetCall
Get: Retrieves a product from your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*ProductsService) Insert ¶
func (r *ProductsService) Insert(merchantId uint64, product *Product) *ProductsInsertCall
Insert: Uploads a product to your Merchant Center account. If an item with the same channel, contentLanguage, offerId, and targetCountry already exists, this method updates that entry. This method can only be called for non-multi-client accounts.
func (*ProductsService) List ¶
func (r *ProductsService) List(merchantId uint64) *ProductsListCall
List: Lists the products in your Merchant Center account. This method can only be called for non-multi-client accounts.
type ProductstatusesCustomBatchRequest ¶
type ProductstatusesCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ProductstatusesCustomBatchRequestEntry `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 (*ProductstatusesCustomBatchRequest) MarshalJSON ¶
func (s *ProductstatusesCustomBatchRequest) MarshalJSON() ([]byte, error)
type ProductstatusesCustomBatchRequestEntry ¶
ProductstatusesCustomBatchRequestEntry: A batch entry encoding a single non-batch productstatuses request.
type ProductstatusesCustomBatchRequestEntry struct { // 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"` // ProductId: The ID of the product whose status to get. ProductId string `json:"productId,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 (*ProductstatusesCustomBatchRequestEntry) MarshalJSON ¶
func (s *ProductstatusesCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type ProductstatusesCustomBatchResponse ¶
type ProductstatusesCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ProductstatusesCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productstatusesCustomBatchResponse". 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 (*ProductstatusesCustomBatchResponse) MarshalJSON ¶
func (s *ProductstatusesCustomBatchResponse) MarshalJSON() ([]byte, error)
type ProductstatusesCustomBatchResponseEntry ¶
ProductstatusesCustomBatchResponseEntry: A batch entry encoding a single non-batch productstatuses response.
type ProductstatusesCustomBatchResponseEntry struct { // BatchId: The ID of the request entry this entry responds to. BatchId int64 `json:"batchId,omitempty"` // Errors: A list of errors, if the request failed. Errors *Errors `json:"errors,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productstatusesCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // ProductStatus: The requested product status. Only defined if the // request was successful. ProductStatus *ProductStatus `json:"productStatus,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 (*ProductstatusesCustomBatchResponseEntry) MarshalJSON ¶
func (s *ProductstatusesCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type ProductstatusesCustombatchCall ¶
type ProductstatusesCustombatchCall struct {
// contains filtered or unexported fields
}
func (*ProductstatusesCustombatchCall) Context ¶
func (c *ProductstatusesCustombatchCall) Context(ctx context.Context) *ProductstatusesCustombatchCall
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 (*ProductstatusesCustombatchCall) Do ¶
func (c *ProductstatusesCustombatchCall) Do(opts ...googleapi.CallOption) (*ProductstatusesCustomBatchResponse, error)
Do executes the "content.productstatuses.custombatch" call. Exactly one of *ProductstatusesCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductstatusesCustomBatchResponse.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 (*ProductstatusesCustombatchCall) Fields ¶
func (c *ProductstatusesCustombatchCall) Fields(s ...googleapi.Field) *ProductstatusesCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductstatusesCustombatchCall) Header ¶
func (c *ProductstatusesCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductstatusesCustombatchCall) IncludeAttributes ¶
func (c *ProductstatusesCustombatchCall) IncludeAttributes(includeAttributes bool) *ProductstatusesCustombatchCall
IncludeAttributes sets the optional parameter "includeAttributes": Flag to include full product data in the results of this request. The default value is false.
type ProductstatusesGetCall ¶
type ProductstatusesGetCall struct {
// contains filtered or unexported fields
}
func (*ProductstatusesGetCall) Context ¶
func (c *ProductstatusesGetCall) Context(ctx context.Context) *ProductstatusesGetCall
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 (*ProductstatusesGetCall) Do ¶
func (c *ProductstatusesGetCall) Do(opts ...googleapi.CallOption) (*ProductStatus, error)
Do executes the "content.productstatuses.get" call. Exactly one of *ProductStatus or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductStatus.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 (*ProductstatusesGetCall) Fields ¶
func (c *ProductstatusesGetCall) Fields(s ...googleapi.Field) *ProductstatusesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductstatusesGetCall) Header ¶
func (c *ProductstatusesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductstatusesGetCall) IfNoneMatch ¶
func (c *ProductstatusesGetCall) IfNoneMatch(entityTag string) *ProductstatusesGetCall
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 (*ProductstatusesGetCall) IncludeAttributes ¶
func (c *ProductstatusesGetCall) IncludeAttributes(includeAttributes bool) *ProductstatusesGetCall
IncludeAttributes sets the optional parameter "includeAttributes": Flag to include full product data in the result of this get request. The default value is false.
type ProductstatusesListCall ¶
type ProductstatusesListCall struct {
// contains filtered or unexported fields
}
func (*ProductstatusesListCall) Context ¶
func (c *ProductstatusesListCall) Context(ctx context.Context) *ProductstatusesListCall
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 (*ProductstatusesListCall) Do ¶
func (c *ProductstatusesListCall) Do(opts ...googleapi.CallOption) (*ProductstatusesListResponse, error)
Do executes the "content.productstatuses.list" call. Exactly one of *ProductstatusesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductstatusesListResponse.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 (*ProductstatusesListCall) Fields ¶
func (c *ProductstatusesListCall) Fields(s ...googleapi.Field) *ProductstatusesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductstatusesListCall) Header ¶
func (c *ProductstatusesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ProductstatusesListCall) IfNoneMatch ¶
func (c *ProductstatusesListCall) IfNoneMatch(entityTag string) *ProductstatusesListCall
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 (*ProductstatusesListCall) IncludeAttributes ¶
func (c *ProductstatusesListCall) IncludeAttributes(includeAttributes bool) *ProductstatusesListCall
IncludeAttributes sets the optional parameter "includeAttributes": Flag to include full product data in the results of the list request. The default value is false.
func (*ProductstatusesListCall) IncludeInvalidInsertedItems ¶
func (c *ProductstatusesListCall) IncludeInvalidInsertedItems(includeInvalidInsertedItems bool) *ProductstatusesListCall
IncludeInvalidInsertedItems sets the optional parameter "includeInvalidInsertedItems": Flag to include the invalid inserted items in the result of the list request. By default the invalid items are not shown (the default value is false).
func (*ProductstatusesListCall) MaxResults ¶
func (c *ProductstatusesListCall) MaxResults(maxResults int64) *ProductstatusesListCall
MaxResults sets the optional parameter "maxResults": The maximum number of product statuses to return in the response, used for paging.
func (*ProductstatusesListCall) PageToken ¶
func (c *ProductstatusesListCall) PageToken(pageToken string) *ProductstatusesListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*ProductstatusesListCall) Pages ¶
func (c *ProductstatusesListCall) Pages(ctx context.Context, f func(*ProductstatusesListResponse) 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 ProductstatusesListResponse ¶
type ProductstatusesListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#productstatusesListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // products statuses. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*ProductStatus `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 (*ProductstatusesListResponse) MarshalJSON ¶
func (s *ProductstatusesListResponse) MarshalJSON() ([]byte, error)
type ProductstatusesService ¶
type ProductstatusesService struct {
// contains filtered or unexported fields
}
func NewProductstatusesService ¶
func NewProductstatusesService(s *APIService) *ProductstatusesService
func (*ProductstatusesService) Custombatch ¶
func (r *ProductstatusesService) Custombatch(productstatusescustombatchrequest *ProductstatusesCustomBatchRequest) *ProductstatusesCustombatchCall
Custombatch: Gets the statuses of multiple products in a single request. This method can only be called for non-multi-client accounts.
func (*ProductstatusesService) Get ¶
func (r *ProductstatusesService) Get(merchantId uint64, productId string) *ProductstatusesGetCall
Get: Gets the status of a product from your Merchant Center account. This method can only be called for non-multi-client accounts.
func (*ProductstatusesService) List ¶
func (r *ProductstatusesService) List(merchantId uint64) *ProductstatusesListCall
List: Lists the statuses of the products in your Merchant Center account. This method can only be called for non-multi-client accounts.
type RateGroup ¶
type RateGroup struct { // ApplicableShippingLabels: A list of shipping labels defining the // products to which this rate group applies to. This is a disjunction: // only one of the labels has to match for the rate group to apply. May // only be empty for the last rate group of a service. Required. ApplicableShippingLabels []string `json:"applicableShippingLabels,omitempty"` // CarrierRates: A list of carrier rates that can be referred to by // mainTable or singleValue. CarrierRates []*CarrierRate `json:"carrierRates,omitempty"` // MainTable: A table defining the rate group, when singleValue is not // expressive enough. Can only be set if singleValue is not set. MainTable *Table `json:"mainTable,omitempty"` // SingleValue: The value of the rate group (e.g. flat rate $10). Can // only be set if mainTable and subtables are not set. SingleValue *Value `json:"singleValue,omitempty"` // Subtables: A list of subtables referred to by mainTable. Can only be // set if mainTable is set. Subtables []*Table `json:"subtables,omitempty"` // ForceSendFields is a list of field names (e.g. // "ApplicableShippingLabels") 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. "ApplicableShippingLabels") // 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 (*RateGroup) MarshalJSON ¶
func (s *RateGroup) MarshalJSON() ([]byte, error)
type Row ¶
type Row struct { // Cells: The list of cells that constitute the row. Must have the same // length as columnHeaders for two-dimensional tables, a length of 1 for // one-dimensional tables. Required. Cells []*Value `json:"cells,omitempty"` // ForceSendFields is a list of field names (e.g. "Cells") 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. "Cells") 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 (*Row) MarshalJSON ¶
func (s *Row) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { // Active: A boolean exposing the active status of the shipping service. // Required. Active bool `json:"active,omitempty"` // Currency: The CLDR code of the currency to which this service // applies. Must match that of the prices in rate groups. Currency string `json:"currency,omitempty"` // DeliveryCountry: The CLDR territory code of the country to which the // service applies. Required. DeliveryCountry string `json:"deliveryCountry,omitempty"` // DeliveryTime: Time spent in various aspects from order to the // delivery of the product. Required. DeliveryTime *DeliveryTime `json:"deliveryTime,omitempty"` // Name: Free-form name of the service. Must be unique within target // account. Required. Name string `json:"name,omitempty"` // RateGroups: Shipping rate group definitions. Only the last one is // allowed to have an empty applicableShippingLabels, which means // "everything else". The other applicableShippingLabels must not // overlap. RateGroups []*RateGroup `json:"rateGroups,omitempty"` // 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 (*Service) MarshalJSON ¶
func (s *Service) MarshalJSON() ([]byte, error)
type ShippingSettings ¶
ShippingSettings: The merchant account's shipping settings.
type ShippingSettings struct { // AccountId: The ID of the account to which these account shipping // settings belong. Ignored upon update, always present in get request // responses. AccountId uint64 `json:"accountId,omitempty,string"` // PostalCodeGroups: A list of postal code groups that can be referred // to in services. Optional. PostalCodeGroups []*PostalCodeGroup `json:"postalCodeGroups,omitempty"` // Services: The target account's list of services. Optional. Services []*Service `json:"services,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 (*ShippingSettings) MarshalJSON ¶
func (s *ShippingSettings) MarshalJSON() ([]byte, error)
type ShippingsettingsCustomBatchRequest ¶
type ShippingsettingsCustomBatchRequest struct { // Entries: The request entries to be processed in the batch. Entries []*ShippingsettingsCustomBatchRequestEntry `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 (*ShippingsettingsCustomBatchRequest) MarshalJSON ¶
func (s *ShippingsettingsCustomBatchRequest) MarshalJSON() ([]byte, error)
type ShippingsettingsCustomBatchRequestEntry ¶
ShippingsettingsCustomBatchRequestEntry: A batch entry encoding a single non-batch shippingsettings request.
type ShippingsettingsCustomBatchRequestEntry 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"` // MerchantId: The ID of the managing account. MerchantId uint64 `json:"merchantId,omitempty,string"` Method string `json:"method,omitempty"` // ShippingSettings: The account shipping settings to update. Only // defined if the method is update. ShippingSettings *ShippingSettings `json:"shippingSettings,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 (*ShippingsettingsCustomBatchRequestEntry) MarshalJSON ¶
func (s *ShippingsettingsCustomBatchRequestEntry) MarshalJSON() ([]byte, error)
type ShippingsettingsCustomBatchResponse ¶
type ShippingsettingsCustomBatchResponse struct { // Entries: The result of the execution of the batch requests. Entries []*ShippingsettingsCustomBatchResponseEntry `json:"entries,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#shippingsettingsCustomBatchResponse". 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 (*ShippingsettingsCustomBatchResponse) MarshalJSON ¶
func (s *ShippingsettingsCustomBatchResponse) MarshalJSON() ([]byte, error)
type ShippingsettingsCustomBatchResponseEntry ¶
ShippingsettingsCustomBatchResponseEntry: A batch entry encoding a single non-batch shipping settings response.
type ShippingsettingsCustomBatchResponseEntry 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"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#shippingsettingsCustomBatchResponseEntry". Kind string `json:"kind,omitempty"` // ShippingSettings: The retrieved or updated account shipping settings. ShippingSettings *ShippingSettings `json:"shippingSettings,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 (*ShippingsettingsCustomBatchResponseEntry) MarshalJSON ¶
func (s *ShippingsettingsCustomBatchResponseEntry) MarshalJSON() ([]byte, error)
type ShippingsettingsCustombatchCall ¶
type ShippingsettingsCustombatchCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsCustombatchCall) Context ¶
func (c *ShippingsettingsCustombatchCall) Context(ctx context.Context) *ShippingsettingsCustombatchCall
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 (*ShippingsettingsCustombatchCall) Do ¶
func (c *ShippingsettingsCustombatchCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsCustomBatchResponse, error)
Do executes the "content.shippingsettings.custombatch" call. Exactly one of *ShippingsettingsCustomBatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingsettingsCustomBatchResponse.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 (*ShippingsettingsCustombatchCall) DryRun ¶
func (c *ShippingsettingsCustombatchCall) DryRun(dryRun bool) *ShippingsettingsCustombatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*ShippingsettingsCustombatchCall) Fields ¶
func (c *ShippingsettingsCustombatchCall) Fields(s ...googleapi.Field) *ShippingsettingsCustombatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsCustombatchCall) Header ¶
func (c *ShippingsettingsCustombatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ShippingsettingsGetCall ¶
type ShippingsettingsGetCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsGetCall) Context ¶
func (c *ShippingsettingsGetCall) Context(ctx context.Context) *ShippingsettingsGetCall
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 (*ShippingsettingsGetCall) Do ¶
func (c *ShippingsettingsGetCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
Do executes the "content.shippingsettings.get" call. Exactly one of *ShippingSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingSettings.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 (*ShippingsettingsGetCall) Fields ¶
func (c *ShippingsettingsGetCall) Fields(s ...googleapi.Field) *ShippingsettingsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsGetCall) Header ¶
func (c *ShippingsettingsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ShippingsettingsGetCall) IfNoneMatch ¶
func (c *ShippingsettingsGetCall) IfNoneMatch(entityTag string) *ShippingsettingsGetCall
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 ShippingsettingsGetSupportedCarriersResponse ¶
type ShippingsettingsGetSupportedCarriersResponse struct { // Carriers: A list of supported carriers. May be empty. Carriers []*CarriersCarrier `json:"carriers,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#shippingsettingsGetSupportedCarriersResponse". 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. "Carriers") 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. "Carriers") 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 (*ShippingsettingsGetSupportedCarriersResponse) MarshalJSON ¶
func (s *ShippingsettingsGetSupportedCarriersResponse) MarshalJSON() ([]byte, error)
type ShippingsettingsGetsupportedcarriersCall ¶
type ShippingsettingsGetsupportedcarriersCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsGetsupportedcarriersCall) Context ¶
func (c *ShippingsettingsGetsupportedcarriersCall) Context(ctx context.Context) *ShippingsettingsGetsupportedcarriersCall
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 (*ShippingsettingsGetsupportedcarriersCall) Do ¶
func (c *ShippingsettingsGetsupportedcarriersCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsGetSupportedCarriersResponse, error)
Do executes the "content.shippingsettings.getsupportedcarriers" call. Exactly one of *ShippingsettingsGetSupportedCarriersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingsettingsGetSupportedCarriersResponse.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 (*ShippingsettingsGetsupportedcarriersCall) Fields ¶
func (c *ShippingsettingsGetsupportedcarriersCall) Fields(s ...googleapi.Field) *ShippingsettingsGetsupportedcarriersCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsGetsupportedcarriersCall) Header ¶
func (c *ShippingsettingsGetsupportedcarriersCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ShippingsettingsGetsupportedcarriersCall) IfNoneMatch ¶
func (c *ShippingsettingsGetsupportedcarriersCall) IfNoneMatch(entityTag string) *ShippingsettingsGetsupportedcarriersCall
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 ShippingsettingsListCall ¶
type ShippingsettingsListCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsListCall) Context ¶
func (c *ShippingsettingsListCall) Context(ctx context.Context) *ShippingsettingsListCall
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 (*ShippingsettingsListCall) Do ¶
func (c *ShippingsettingsListCall) Do(opts ...googleapi.CallOption) (*ShippingsettingsListResponse, error)
Do executes the "content.shippingsettings.list" call. Exactly one of *ShippingsettingsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingsettingsListResponse.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 (*ShippingsettingsListCall) Fields ¶
func (c *ShippingsettingsListCall) Fields(s ...googleapi.Field) *ShippingsettingsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsListCall) Header ¶
func (c *ShippingsettingsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*ShippingsettingsListCall) IfNoneMatch ¶
func (c *ShippingsettingsListCall) IfNoneMatch(entityTag string) *ShippingsettingsListCall
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 (*ShippingsettingsListCall) MaxResults ¶
func (c *ShippingsettingsListCall) MaxResults(maxResults int64) *ShippingsettingsListCall
MaxResults sets the optional parameter "maxResults": The maximum number of shipping settings to return in the response, used for paging.
func (*ShippingsettingsListCall) PageToken ¶
func (c *ShippingsettingsListCall) PageToken(pageToken string) *ShippingsettingsListCall
PageToken sets the optional parameter "pageToken": The token returned by the previous request.
func (*ShippingsettingsListCall) Pages ¶
func (c *ShippingsettingsListCall) Pages(ctx context.Context, f func(*ShippingsettingsListResponse) 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 ShippingsettingsListResponse ¶
type ShippingsettingsListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#shippingsettingsListResponse". Kind string `json:"kind,omitempty"` // NextPageToken: The token for the retrieval of the next page of // shipping settings. NextPageToken string `json:"nextPageToken,omitempty"` Resources []*ShippingSettings `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 (*ShippingsettingsListResponse) MarshalJSON ¶
func (s *ShippingsettingsListResponse) MarshalJSON() ([]byte, error)
type ShippingsettingsPatchCall ¶
type ShippingsettingsPatchCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsPatchCall) Context ¶
func (c *ShippingsettingsPatchCall) Context(ctx context.Context) *ShippingsettingsPatchCall
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 (*ShippingsettingsPatchCall) Do ¶
func (c *ShippingsettingsPatchCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
Do executes the "content.shippingsettings.patch" call. Exactly one of *ShippingSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingSettings.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 (*ShippingsettingsPatchCall) DryRun ¶
func (c *ShippingsettingsPatchCall) DryRun(dryRun bool) *ShippingsettingsPatchCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*ShippingsettingsPatchCall) Fields ¶
func (c *ShippingsettingsPatchCall) Fields(s ...googleapi.Field) *ShippingsettingsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsPatchCall) Header ¶
func (c *ShippingsettingsPatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type ShippingsettingsService ¶
type ShippingsettingsService struct {
// contains filtered or unexported fields
}
func NewShippingsettingsService ¶
func NewShippingsettingsService(s *APIService) *ShippingsettingsService
func (*ShippingsettingsService) Custombatch ¶
func (r *ShippingsettingsService) Custombatch(shippingsettingscustombatchrequest *ShippingsettingsCustomBatchRequest) *ShippingsettingsCustombatchCall
Custombatch: Retrieves and updates the shipping settings of multiple accounts in a single request.
func (*ShippingsettingsService) Get ¶
func (r *ShippingsettingsService) Get(merchantId uint64, accountId uint64) *ShippingsettingsGetCall
Get: Retrieves the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
func (*ShippingsettingsService) Getsupportedcarriers ¶
func (r *ShippingsettingsService) Getsupportedcarriers(merchantId uint64) *ShippingsettingsGetsupportedcarriersCall
Getsupportedcarriers: Retrieves supported carriers and carrier services for an account.
func (*ShippingsettingsService) List ¶
func (r *ShippingsettingsService) List(merchantId uint64) *ShippingsettingsListCall
List: Lists the shipping settings of the sub-accounts in your Merchant Center account. This method can only be called for multi-client accounts.
func (*ShippingsettingsService) Patch ¶
func (r *ShippingsettingsService) Patch(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsPatchCall
Patch: Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account. This method supports patch semantics.
func (*ShippingsettingsService) Update ¶
func (r *ShippingsettingsService) Update(merchantId uint64, accountId uint64, shippingsettings *ShippingSettings) *ShippingsettingsUpdateCall
Update: Updates the shipping settings of the account. This method can only be called for accounts to which the managing account has access: either the managing account itself or sub-accounts if the managing account is a multi-client account.
type ShippingsettingsUpdateCall ¶
type ShippingsettingsUpdateCall struct {
// contains filtered or unexported fields
}
func (*ShippingsettingsUpdateCall) Context ¶
func (c *ShippingsettingsUpdateCall) Context(ctx context.Context) *ShippingsettingsUpdateCall
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 (*ShippingsettingsUpdateCall) Do ¶
func (c *ShippingsettingsUpdateCall) Do(opts ...googleapi.CallOption) (*ShippingSettings, error)
Do executes the "content.shippingsettings.update" call. Exactly one of *ShippingSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ShippingSettings.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 (*ShippingsettingsUpdateCall) DryRun ¶
func (c *ShippingsettingsUpdateCall) DryRun(dryRun bool) *ShippingsettingsUpdateCall
DryRun sets the optional parameter "dryRun": Flag to run the request in dry-run mode.
func (*ShippingsettingsUpdateCall) Fields ¶
func (c *ShippingsettingsUpdateCall) Fields(s ...googleapi.Field) *ShippingsettingsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ShippingsettingsUpdateCall) Header ¶
func (c *ShippingsettingsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type Table ¶
type Table struct { // ColumnHeaders: Headers of the table's columns. Optional: if not set // then the table has only one dimension. ColumnHeaders *Headers `json:"columnHeaders,omitempty"` // Name: Name of the table. Required for subtables, ignored for the main // table. Name string `json:"name,omitempty"` // RowHeaders: Headers of the table's rows. Required. RowHeaders *Headers `json:"rowHeaders,omitempty"` // Rows: The list of rows that constitute the table. Must have the same // length as rowHeaders. Required. Rows []*Row `json:"rows,omitempty"` // ForceSendFields is a list of field names (e.g. "ColumnHeaders") 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. "ColumnHeaders") 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 (*Table) MarshalJSON ¶
func (s *Table) MarshalJSON() ([]byte, error)
type TestOrder ¶
type TestOrder struct { // Customer: The details of the customer who placed the order. Customer *TestOrderCustomer `json:"customer,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "content#testOrder". Kind string `json:"kind,omitempty"` // LineItems: Line items that are ordered. At least one line item must // be provided. LineItems []*TestOrderLineItem `json:"lineItems,omitempty"` // PaymentMethod: The details of the payment method. PaymentMethod *TestOrderPaymentMethod `json:"paymentMethod,omitempty"` // PredefinedDeliveryAddress: Identifier of one of the predefined // delivery addresses for the delivery. PredefinedDeliveryAddress string `json:"predefinedDeliveryAddress,omitempty"` // Promotions: The details of the merchant provided promotions applied // to the order. More details about the program are here. Promotions []*OrderPromotion `json:"promotions,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: The requested shipping option. ShippingOption string `json:"shippingOption,omitempty"` // ForceSendFields is a list of field names (e.g. "Customer") 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. "Customer") 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 (*TestOrder) MarshalJSON ¶
func (s *TestOrder) MarshalJSON() ([]byte, error)
type TestOrderCustomer ¶
type TestOrderCustomer struct { // Email: Email address of the customer. Email string `json:"email,omitempty"` // ExplicitMarketingPreference: If set, this indicates the user // explicitly chose to opt in or out of providing marketing rights to // the merchant. If unset, this indicates the user has already made this // choice in a previous purchase, and was thus not shown the marketing // right opt in/out checkbox during the checkout flow. Optional. ExplicitMarketingPreference bool `json:"explicitMarketingPreference,omitempty"` // FullName: Full name of the customer. FullName string `json:"fullName,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 (*TestOrderCustomer) MarshalJSON ¶
func (s *TestOrderCustomer) MarshalJSON() ([]byte, error)
type TestOrderLineItem ¶
type TestOrderLineItem struct { // Product: Product data from the time of the order placement. Product *TestOrderLineItemProduct `json:"product,omitempty"` // QuantityOrdered: Number of items ordered. QuantityOrdered int64 `json:"quantityOrdered,omitempty"` // ReturnInfo: Details of the return policy for the line item. ReturnInfo *OrderLineItemReturnInfo `json:"returnInfo,omitempty"` // ShippingDetails: Details of the requested shipping for the line item. ShippingDetails *OrderLineItemShippingDetails `json:"shippingDetails,omitempty"` // UnitTax: Unit tax for the line item. UnitTax *Price `json:"unitTax,omitempty"` // ForceSendFields is a list of field names (e.g. "Product") 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. "Product") 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 (*TestOrderLineItem) MarshalJSON ¶
func (s *TestOrderLineItem) MarshalJSON() ([]byte, error)
type TestOrderLineItemProduct ¶
type TestOrderLineItemProduct struct { // Brand: Brand of the item. Brand string `json:"brand,omitempty"` // Channel: The item's channel. 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"` // Gtin: Global Trade Item Number (GTIN) of the item. Optional. Gtin string `json:"gtin,omitempty"` // ImageLink: URL of an image of the item. ImageLink string `json:"imageLink,omitempty"` // ItemGroupId: Shared identifier for all variants of the same product. // Optional. ItemGroupId string `json:"itemGroupId,omitempty"` // Mpn: Manufacturer Part Number (MPN) of the item. Optional. Mpn string `json:"mpn,omitempty"` // OfferId: An identifier of the item. OfferId string `json:"offerId,omitempty"` // Price: The price for the product. Price *Price `json:"price,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. Optional. 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 (*TestOrderLineItemProduct) MarshalJSON ¶
func (s *TestOrderLineItemProduct) MarshalJSON() ([]byte, error)
type TestOrderPaymentMethod ¶
type TestOrderPaymentMethod struct { // ExpirationMonth: The card expiration month (January = 1, February = 2 // etc.). ExpirationMonth int64 `json:"expirationMonth,omitempty"` // ExpirationYear: The card expiration year (4-digit, e.g. 2015). ExpirationYear int64 `json:"expirationYear,omitempty"` // LastFourDigits: The last four digits of the card number. LastFourDigits string `json:"lastFourDigits,omitempty"` // PredefinedBillingAddress: The billing address. PredefinedBillingAddress string `json:"predefinedBillingAddress,omitempty"` // Type: The type of instrument. Note that real orders might have // different values than the four values accepted by createTestOrder. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "ExpirationMonth") 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. "ExpirationMonth") 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 (*TestOrderPaymentMethod) MarshalJSON ¶
func (s *TestOrderPaymentMethod) MarshalJSON() ([]byte, error)
type Value ¶
Value: The single value of a rate group or the value of a rate group table's cell. Exactly one of noShipping, flatRate, pricePercentage, carrierRateName, subtableName must be set.
type Value struct { // CarrierRateName: The name of a carrier rate referring to a carrier // rate defined in the same rate group. Can only be set if all other // fields are not set. CarrierRateName string `json:"carrierRateName,omitempty"` // FlatRate: A flat rate. Can only be set if all other fields are not // set. FlatRate *Price `json:"flatRate,omitempty"` // NoShipping: If true, then the product can't ship. Must be true when // set, can only be set if all other fields are not set. NoShipping bool `json:"noShipping,omitempty"` // PricePercentage: A percentage of the price represented as a number in // decimal notation (e.g., "5.4"). Can only be set if all other fields // are not set. PricePercentage string `json:"pricePercentage,omitempty"` // SubtableName: The name of a subtable. Can only be set in table cells // (i.e., not for single values), and only if all other fields are not // set. SubtableName string `json:"subtableName,omitempty"` // ForceSendFields is a list of field names (e.g. "CarrierRateName") 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. "CarrierRateName") 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 (*Value) MarshalJSON ¶
func (s *Value) MarshalJSON() ([]byte, error)
type Weight ¶
type Weight struct { // Unit: The weight unit. Unit string `json:"unit,omitempty"` // Value: The weight represented as a number. Value string `json:"value,omitempty"` // ForceSendFields is a list of field names (e.g. "Unit") 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. "Unit") 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 (*Weight) MarshalJSON ¶
func (s *Weight) MarshalJSON() ([]byte, error)